var fs=typeof global=="object"&&global&&global.Object===Object&&global,sf=typeof self=="object"&&self&&self.Object===Object&&self,Ee=fs||sf||Function("return this")(),ge=Ee.Symbol,cs=Object.prototype,af=cs.hasOwnProperty,ff=cs.toString,Lt=ge?ge.toStringTag:void 0;function cf(e){var t=af.call(e,Lt),n=e[Lt];try{e[Lt]=void 0;var r=!0}catch{}var i=ff.call(e);return r&&(t?e[Lt]=n:delete e[Lt]),i}var uf=Object.prototype,lf=uf.toString;function df(e){return lf.call(e)}var hf="[object Null]",pf="[object Undefined]",Bi=ge?ge.toStringTag:void 0;function st(e){return e==null?e===void 0?pf:hf:Bi&&Bi in Object(e)?cf(e):df(e)}function Pe(e){return e!=null&&typeof e=="object"}var gf="[object Symbol]";function Hn(e){return typeof e=="symbol"||Pe(e)&&st(e)==gf}function Jr(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++n0){if(++t>=Uf)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function Vf(e){return function(){return e}}var Dn=function(){try{var e=ft(Object,"defineProperty");return e({},"",{}),e}catch{}}(),Gf=Dn?function(e,t){return Dn(e,"toString",{configurable:!0,enumerable:!1,value:Vf(t),writable:!0})}:Kr,ds=zf(Gf);function Xf(e,t){for(var n=-1,r=e==null?0:e.length;++n-1}var ec=9007199254740991,tc=/^(?:0|[1-9]\d*)$/;function qn(e,t){var n=typeof e;return t=t??ec,!!t&&(n=="number"||n!="symbol"&&tc.test(e))&&e>-1&&e%1==0&&e-1&&e%1==0&&e<=ic}function Rt(e){return e!=null&&ti(e.length)&&!Zr(e)}function oc(e,t,n){if(!te(n))return!1;var r=typeof t;return(r=="number"?Rt(n)&&qn(t,n.length):r=="string"&&t in n)?en(n[t],e):!1}function sc(e){return gs(function(t,n){var r=-1,i=n.length,o=i>1?n[i-1]:void 0,s=i>2?n[2]:void 0;for(o=e.length>3&&typeof o=="function"?(i--,o):void 0,s&&oc(n[0],n[1],s)&&(o=i<3?void 0:o,i=1),t=Object(t);++r-1}function mu(e,t){var n=this.__data__,r=Un(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function ke(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t0&&n(a)?t>1?rn(a,t-1,n,r,i):ai(i,a):r||(i[i.length]=a)}return i}function Fu(e){var t=e==null?0:e.length;return t?rn(e,1):[]}function xs(e){return ds(ps(e,void 0,Fu),e+"")}var fi=ws(Object.getPrototypeOf,Object),Du="[object Object]",Cu=Function.prototype,Lu=Object.prototype,Os=Cu.toString,Nu=Lu.hasOwnProperty,ju=Os.call(Object);function Ss(e){if(!Pe(e)||st(e)!=Du)return!1;var t=fi(e);if(t===null)return!0;var n=Nu.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&Os.call(n)==ju}function ku(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),n=n>i?i:n,n<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var o=Array(i);++ra))return!1;var c=o.get(e),u=o.get(t);if(c&&u)return c==t&&u==e;var l=-1,g=!0,y=n&vd?new Gt:void 0;for(o.set(e,t),o.set(t,e);++l=t||_<0||l&&F>=o}function p(){var A=fr();if(d(A))return w(A);a=setTimeout(p,h(A))}function w(A){return a=void 0,g&&r?y(A):(r=i=void 0,s)}function v(){a!==void 0&&clearTimeout(a),c=0,r=f=i=a=void 0}function S(){return a===void 0?s:w(fr())}function x(){var A=fr(),_=d(A);if(r=arguments,i=this,f=A,_){if(a===void 0)return m(f);if(l)return clearTimeout(a),a=setTimeout(p,t),y(f)}return a===void 0&&(a=setTimeout(p,t)),s}return x.cancel=v,x.flush=S,x}function Or(e,t,n){(n!==void 0&&!en(e[t],n)||n===void 0&&!(t in e))&&Qr(e,t,n)}function qs(e){return Pe(e)&&Rt(e)}function Sr(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}function ch(e){return Tt(e,nn(e))}function uh(e,t,n,r,i,o,s){var a=Sr(e,n),f=Sr(t,n),c=s.get(f);if(c){Or(e,n,c);return}var u=o?o(a,f,n+"",e,t,s):void 0,l=u===void 0;if(l){var g=ee(f),y=!g&&Wt(f),m=!g&&!y&&ii(f);u=f,g||y||m?ee(a)?u=a:qs(a)?u=ls(a):y?(l=!1,u=Es(f,!0)):m?(l=!1,u=Ms(f,!0)):u=[]:Ss(f)||Yt(f)?(u=a,Yt(a)?u=ch(a):(!te(a)||Zr(a))&&(u=Ps(f))):l=!1}l&&(s.set(f,u),i(u,f,r,o,s),s.delete(f)),Or(e,n,u)}function Us(e,t,n,r,i){e!==t&&Hs(t,function(o,s){if(i||(i=new Oe),te(o))uh(e,t,s,n,Us,r,i);else{var a=r?r(Sr(e,s),o,s+"",e,t,i):void 0;a===void 0&&(a=o),Or(e,s,a)}},nn)}function lh(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}function Ay(e,t,n){var r=e==null?0:e.length;if(!r)return-1;var i=r-1;return hs(e,Is(t),i,!0)}function dh(e,t){var n=-1,r=Rt(e)?Array(e.length):[];return ih(e,function(i,o,s){r[++n]=t(i,o,s)}),r}function hh(e,t){var n=ee(e)?Jr:dh;return n(e,Is(t))}function Ey(e,t){return rn(hh(e,t),1)}var ph=1/0;function Ty(e){var t=e==null?0:e.length;return t?rn(e,ph):[]}function Ry(e){for(var t=-1,n=e==null?0:e.length,r={};++t1),o}),Tt(e,_s(e),n),r&&(n=mt(n,bh|vh|wh,yh));for(var i=t.length;i--;)mh(n,t[i]);return n});function Ys(e,t,n,r){if(!te(e))return e;t=$t(t,e);for(var i=-1,o=t.length,s=o-1,a=e;a!=null&&++i=Th){var c=Eh(e);if(c)return li(c);s=!1,i=Ls,f=new Gt}else f=a;e:for(;++r"u")return!1;var t=Te(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Ih(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},i=t.attributes[n]||{},o=t.elements[n];!pe(o)||!Fe(o)||(Object.assign(o.style,r),Object.keys(i).forEach(function(s){var a=i[s];a===!1?o.removeAttribute(s):o.setAttribute(s,a===!0?"":a)}))})}function Hh(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var i=t.elements[r],o=t.attributes[r]||{},s=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),a=s.reduce(function(f,c){return f[c]="",f},{});!pe(i)||!Fe(i)||(Object.assign(i.style,a),Object.keys(o).forEach(function(f){i.removeAttribute(f)}))})}}var Vs={name:"applyStyles",enabled:!0,phase:"write",fn:Ih,effect:Hh,requires:["computeStyles"]};function _e(e){return e.split("-")[0]}var Qe=Math.max,Ln=Math.min,xt=Math.round;function Ot(e,t){t===void 0&&(t=!1);var n=e.getBoundingClientRect(),r=1,i=1;if(pe(e)&&t){var o=e.offsetHeight,s=e.offsetWidth;s>0&&(r=xt(n.width)/s||1),o>0&&(i=xt(n.height)/o||1)}return{width:n.width/r,height:n.height/i,top:n.top/i,right:n.right/r,bottom:n.bottom/i,left:n.left/r,x:n.left/r,y:n.top/i}}function pi(e){var t=Ot(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function Gs(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&hi(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function je(e){return Te(e).getComputedStyle(e)}function qh(e){return["table","td","th"].indexOf(Fe(e))>=0}function Ge(e){return((wt(e)?e.ownerDocument:e.document)||window.document).documentElement}function Vn(e){return Fe(e)==="html"?e:e.assignedSlot||e.parentNode||(hi(e)?e.host:null)||Ge(e)}function yo(e){return!pe(e)||je(e).position==="fixed"?null:e.offsetParent}function Uh(e){var t=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,n=navigator.userAgent.indexOf("Trident")!==-1;if(n&&pe(e)){var r=je(e);if(r.position==="fixed")return null}var i=Vn(e);for(hi(i)&&(i=i.host);pe(i)&&["html","body"].indexOf(Fe(i))<0;){var o=je(i);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||t&&o.willChange==="filter"||t&&o.filter&&o.filter!=="none")return i;i=i.parentNode}return null}function sn(e){for(var t=Te(e),n=yo(e);n&&qh(n)&&je(n).position==="static";)n=yo(n);return n&&(Fe(n)==="html"||Fe(n)==="body"&&je(n).position==="static")?t:n||Uh(e)||t}function gi(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Ht(e,t,n){return Qe(e,Ln(t,n))}function Yh(e,t,n){var r=Ht(e,t,n);return r>n?n:r}function Xs(){return{top:0,right:0,bottom:0,left:0}}function Js(e){return Object.assign({},Xs(),e)}function Ks(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var Wh=function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,Js(typeof e!="number"?e:Ks(e,on))};function zh(e){var t,n=e.state,r=e.name,i=e.options,o=n.elements.arrow,s=n.modifiersData.popperOffsets,a=_e(n.placement),f=gi(a),c=[oe,ye].indexOf(a)>=0,u=c?"height":"width";if(!(!o||!s)){var l=Wh(i.padding,n),g=pi(o),y=f==="y"?ie:oe,m=f==="y"?me:ye,h=n.rects.reference[u]+n.rects.reference[f]-s[f]-n.rects.popper[u],d=s[f]-n.rects.reference[f],p=sn(o),w=p?f==="y"?p.clientHeight||0:p.clientWidth||0:0,v=h/2-d/2,S=l[y],x=w-g[u]-l[m],A=w/2-g[u]/2+v,_=Ht(S,A,x),F=f;n.modifiersData[r]=(t={},t[F]=_,t.centerOffset=_-A,t)}}function Vh(e){var t=e.state,n=e.options,r=n.element,i=r===void 0?"[data-popper-arrow]":r;i!=null&&(typeof i=="string"&&(i=t.elements.popper.querySelector(i),!i)||!Gs(t.elements.popper,i)||(t.elements.arrow=i))}var Gh={name:"arrow",enabled:!0,phase:"main",fn:zh,effect:Vh,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function St(e){return e.split("-")[1]}var Xh={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Jh(e){var t=e.x,n=e.y,r=window,i=r.devicePixelRatio||1;return{x:xt(t*i)/i||0,y:xt(n*i)/i||0}}function bo(e){var t,n=e.popper,r=e.popperRect,i=e.placement,o=e.variation,s=e.offsets,a=e.position,f=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,l=e.isFixed,g=s.x,y=g===void 0?0:g,m=s.y,h=m===void 0?0:m,d=typeof u=="function"?u({x:y,y:h}):{x:y,y:h};y=d.x,h=d.y;var p=s.hasOwnProperty("x"),w=s.hasOwnProperty("y"),v=oe,S=ie,x=window;if(c){var A=sn(n),_="clientHeight",F="clientWidth";if(A===Te(n)&&(A=Ge(n),je(A).position!=="static"&&a==="absolute"&&(_="scrollHeight",F="scrollWidth")),A=A,i===ie||(i===oe||i===ye)&&o===Xt){S=me;var L=l&&A===x&&x.visualViewport?x.visualViewport.height:A[_];h-=L-r.height,h*=f?1:-1}if(i===oe||(i===ie||i===me)&&o===Xt){v=ye;var D=l&&A===x&&x.visualViewport?x.visualViewport.width:A[F];y-=D-r.width,y*=f?1:-1}}var P=Object.assign({position:a},c&&Xh),N=u===!0?Jh({x:y,y:h}):{x:y,y:h};if(y=N.x,h=N.y,f){var j;return Object.assign({},P,(j={},j[S]=w?"0":"",j[v]=p?"0":"",j.transform=(x.devicePixelRatio||1)<=1?"translate("+y+"px, "+h+"px)":"translate3d("+y+"px, "+h+"px, 0)",j))}return Object.assign({},P,(t={},t[S]=w?h+"px":"",t[v]=p?y+"px":"",t.transform="",t))}function Kh(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=r===void 0?!0:r,o=n.adaptive,s=o===void 0?!0:o,a=n.roundOffsets,f=a===void 0?!0:a,c={placement:_e(t.placement),variation:St(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,bo(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:f})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,bo(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:f})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var Zs={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Kh,data:{}},yn={passive:!0};function Zh(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,o=i===void 0?!0:i,s=r.resize,a=s===void 0?!0:s,f=Te(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&c.forEach(function(u){u.addEventListener("scroll",n.update,yn)}),a&&f.addEventListener("resize",n.update,yn),function(){o&&c.forEach(function(u){u.removeEventListener("scroll",n.update,yn)}),a&&f.removeEventListener("resize",n.update,yn)}}var Qs={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Zh,data:{}},Qh={left:"right",right:"left",bottom:"top",top:"bottom"};function En(e){return e.replace(/left|right|bottom|top/g,function(t){return Qh[t]})}var ep={start:"end",end:"start"};function vo(e){return e.replace(/start|end/g,function(t){return ep[t]})}function mi(e){var t=Te(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function yi(e){return Ot(Ge(e)).left+mi(e).scrollLeft}function tp(e){var t=Te(e),n=Ge(e),r=t.visualViewport,i=n.clientWidth,o=n.clientHeight,s=0,a=0;return r&&(i=r.width,o=r.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(s=r.offsetLeft,a=r.offsetTop)),{width:i,height:o,x:s+yi(e),y:a}}function np(e){var t,n=Ge(e),r=mi(e),i=(t=e.ownerDocument)==null?void 0:t.body,o=Qe(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),s=Qe(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),a=-r.scrollLeft+yi(e),f=-r.scrollTop;return je(i||n).direction==="rtl"&&(a+=Qe(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:s,x:a,y:f}}function bi(e){var t=je(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function ea(e){return["html","body","#document"].indexOf(Fe(e))>=0?e.ownerDocument.body:pe(e)&&bi(e)?e:ea(Vn(e))}function qt(e,t){var n;t===void 0&&(t=[]);var r=ea(e),i=r===((n=e.ownerDocument)==null?void 0:n.body),o=Te(r),s=i?[o].concat(o.visualViewport||[],bi(r)?r:[]):r,a=t.concat(s);return i?a:a.concat(qt(Vn(s)))}function Ar(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function rp(e){var t=Ot(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}function wo(e,t){return t===Ws?Ar(tp(e)):wt(t)?rp(t):Ar(np(Ge(e)))}function ip(e){var t=qt(Vn(e)),n=["absolute","fixed"].indexOf(je(e).position)>=0,r=n&&pe(e)?sn(e):e;return wt(r)?t.filter(function(i){return wt(i)&&Gs(i,r)&&Fe(i)!=="body"}):[]}function op(e,t,n){var r=t==="clippingParents"?ip(e):[].concat(t),i=[].concat(r,[n]),o=i[0],s=i.reduce(function(a,f){var c=wo(e,f);return a.top=Qe(c.top,a.top),a.right=Ln(c.right,a.right),a.bottom=Ln(c.bottom,a.bottom),a.left=Qe(c.left,a.left),a},wo(e,o));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function ta(e){var t=e.reference,n=e.element,r=e.placement,i=r?_e(r):null,o=r?St(r):null,s=t.x+t.width/2-n.width/2,a=t.y+t.height/2-n.height/2,f;switch(i){case ie:f={x:s,y:t.y-n.height};break;case me:f={x:s,y:t.y+t.height};break;case ye:f={x:t.x+t.width,y:a};break;case oe:f={x:t.x-n.width,y:a};break;default:f={x:t.x,y:t.y}}var c=i?gi(i):null;if(c!=null){var u=c==="y"?"height":"width";switch(o){case vt:f[c]=f[c]-(t[u]/2-n[u]/2);break;case Xt:f[c]=f[c]+(t[u]/2-n[u]/2);break}}return f}function Jt(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=r===void 0?e.placement:r,o=n.boundary,s=o===void 0?$h:o,a=n.rootBoundary,f=a===void 0?Ws:a,c=n.elementContext,u=c===void 0?Nt:c,l=n.altBoundary,g=l===void 0?!1:l,y=n.padding,m=y===void 0?0:y,h=Js(typeof m!="number"?m:Ks(m,on)),d=u===Nt?_h:Nt,p=e.rects.popper,w=e.elements[g?d:u],v=op(wt(w)?w:w.contextElement||Ge(e.elements.popper),s,f),S=Ot(e.elements.reference),x=ta({reference:S,element:p,placement:i}),A=Ar(Object.assign({},p,x)),_=u===Nt?A:S,F={top:v.top-_.top+h.top,bottom:_.bottom-v.bottom+h.bottom,left:v.left-_.left+h.left,right:_.right-v.right+h.right},L=e.modifiersData.offset;if(u===Nt&&L){var D=L[i];Object.keys(F).forEach(function(P){var N=[ye,me].indexOf(P)>=0?1:-1,j=[ie,me].indexOf(P)>=0?"y":"x";F[P]+=D[j]*N})}return F}function sp(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=n.boundary,o=n.rootBoundary,s=n.padding,a=n.flipVariations,f=n.allowedAutoPlacements,c=f===void 0?zs:f,u=St(r),l=u?a?mo:mo.filter(function(m){return St(m)===u}):on,g=l.filter(function(m){return c.indexOf(m)>=0});g.length===0&&(g=l);var y=g.reduce(function(m,h){return m[h]=Jt(e,{placement:h,boundary:i,rootBoundary:o,padding:s})[_e(h)],m},{});return Object.keys(y).sort(function(m,h){return y[m]-y[h]})}function ap(e){if(_e(e)===di)return[];var t=En(e);return[vo(e),t,vo(t)]}function fp(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,o=i===void 0?!0:i,s=n.altAxis,a=s===void 0?!0:s,f=n.fallbackPlacements,c=n.padding,u=n.boundary,l=n.rootBoundary,g=n.altBoundary,y=n.flipVariations,m=y===void 0?!0:y,h=n.allowedAutoPlacements,d=t.options.placement,p=_e(d),w=p===d,v=f||(w||!m?[En(d)]:ap(d)),S=[d].concat(v).reduce(function(U,z){return U.concat(_e(z)===di?sp(t,{placement:z,boundary:u,rootBoundary:l,padding:c,flipVariations:m,allowedAutoPlacements:h}):z)},[]),x=t.rects.reference,A=t.rects.popper,_=new Map,F=!0,L=S[0],D=0;D=0,T=$?"width":"height",O=Jt(t,{placement:P,boundary:u,rootBoundary:l,altBoundary:g,padding:c}),R=$?j?ye:oe:j?me:ie;x[T]>A[T]&&(R=En(R));var E=En(R),M=[];if(o&&M.push(O[N]<=0),a&&M.push(O[R]<=0,O[E]<=0),M.every(function(U){return U})){L=P,F=!1;break}_.set(P,M)}if(F)for(var C=m?3:1,k=function(U){var z=S.find(function(fe){var Q=_.get(fe);if(Q)return Q.slice(0,U).every(function(ne){return ne})});if(z)return L=z,"break"},H=C;H>0;H--){var q=k(H);if(q==="break")break}t.placement!==L&&(t.modifiersData[r]._skip=!0,t.placement=L,t.reset=!0)}}var cp={name:"flip",enabled:!0,phase:"main",fn:fp,requiresIfExists:["offset"],data:{_skip:!1}};function xo(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Oo(e){return[ie,ye,me,oe].some(function(t){return e[t]>=0})}function up(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,s=Jt(t,{elementContext:"reference"}),a=Jt(t,{altBoundary:!0}),f=xo(s,r),c=xo(a,i,o),u=Oo(f),l=Oo(c);t.modifiersData[n]={referenceClippingOffsets:f,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:l},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":l})}var lp={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:up};function dp(e,t,n){var r=_e(e),i=[oe,ie].indexOf(r)>=0?-1:1,o=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,s=o[0],a=o[1];return s=s||0,a=(a||0)*i,[oe,ye].indexOf(r)>=0?{x:a,y:s}:{x:s,y:a}}function hp(e){var t=e.state,n=e.options,r=e.name,i=n.offset,o=i===void 0?[0,0]:i,s=zs.reduce(function(u,l){return u[l]=dp(l,t.rects,o),u},{}),a=s[t.placement],f=a.x,c=a.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=f,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=s}var pp={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:hp};function gp(e){var t=e.state,n=e.name;t.modifiersData[n]=ta({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}var na={name:"popperOffsets",enabled:!0,phase:"read",fn:gp,data:{}};function mp(e){return e==="x"?"y":"x"}function yp(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,o=i===void 0?!0:i,s=n.altAxis,a=s===void 0?!1:s,f=n.boundary,c=n.rootBoundary,u=n.altBoundary,l=n.padding,g=n.tether,y=g===void 0?!0:g,m=n.tetherOffset,h=m===void 0?0:m,d=Jt(t,{boundary:f,rootBoundary:c,padding:l,altBoundary:u}),p=_e(t.placement),w=St(t.placement),v=!w,S=gi(p),x=mp(S),A=t.modifiersData.popperOffsets,_=t.rects.reference,F=t.rects.popper,L=typeof h=="function"?h(Object.assign({},t.rects,{placement:t.placement})):h,D=typeof L=="number"?{mainAxis:L,altAxis:L}:Object.assign({mainAxis:0,altAxis:0},L),P=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,N={x:0,y:0};if(A){if(o){var j,$=S==="y"?ie:oe,T=S==="y"?me:ye,O=S==="y"?"height":"width",R=A[S],E=R+d[$],M=R-d[T],C=y?-F[O]/2:0,k=w===vt?_[O]:F[O],H=w===vt?-F[O]:-_[O],q=t.elements.arrow,U=y&&q?pi(q):{width:0,height:0},z=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Xs(),fe=z[$],Q=z[T],ne=Ht(0,_[O],U[O]),de=v?_[O]/2-C-ne-fe-D.mainAxis:k-ne-fe-D.mainAxis,G=v?-_[O]/2+C+ne+Q+D.mainAxis:H+ne+Q+D.mainAxis,K=t.elements.arrow&&sn(t.elements.arrow),be=K?S==="y"?K.clientTop||0:K.clientLeft||0:0,ve=(j=P==null?void 0:P[S])!=null?j:0,ct=R+de-ve-be,ut=R+G-ve,lt=Ht(y?Ln(E,ct):E,R,y?Qe(M,ut):M);A[S]=lt,N[S]=lt-R}if(a){var dt,Dt=S==="x"?ie:oe,Ct=S==="x"?me:ye,qe=A[x],gn=x==="y"?"height":"width",Di=qe+d[Dt],Ci=qe-d[Ct],ir=[ie,oe].indexOf(p)!==-1,Li=(dt=P==null?void 0:P[x])!=null?dt:0,Ni=ir?Di:qe-_[gn]-F[gn]-Li+D.altAxis,ji=ir?qe+_[gn]+F[gn]-Li-D.altAxis:Ci,ki=y&&ir?Yh(Ni,qe,ji):Ht(y?Ni:Di,qe,y?ji:Ci);A[x]=ki,N[x]=ki-qe}t.modifiersData[r]=N}}var bp={name:"preventOverflow",enabled:!0,phase:"main",fn:yp,requiresIfExists:["offset"]};function vp(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function wp(e){return e===Te(e)||!pe(e)?mi(e):vp(e)}function xp(e){var t=e.getBoundingClientRect(),n=xt(t.width)/e.offsetWidth||1,r=xt(t.height)/e.offsetHeight||1;return n!==1||r!==1}function Op(e,t,n){n===void 0&&(n=!1);var r=pe(t),i=pe(t)&&xp(t),o=Ge(t),s=Ot(e,i),a={scrollLeft:0,scrollTop:0},f={x:0,y:0};return(r||!r&&!n)&&((Fe(t)!=="body"||bi(o))&&(a=wp(t)),pe(t)?(f=Ot(t,!0),f.x+=t.clientLeft,f.y+=t.clientTop):o&&(f.x=yi(o))),{x:s.left+a.scrollLeft-f.x,y:s.top+a.scrollTop-f.y,width:s.width,height:s.height}}function Sp(e){var t=new Map,n=new Set,r=[];e.forEach(function(o){t.set(o.name,o)});function i(o){n.add(o.name);var s=[].concat(o.requires||[],o.requiresIfExists||[]);s.forEach(function(a){if(!n.has(a)){var f=t.get(a);f&&i(f)}}),r.push(o)}return e.forEach(function(o){n.has(o.name)||i(o)}),r}function Ap(e){var t=Sp(e);return Bh.reduce(function(n,r){return n.concat(t.filter(function(i){return i.phase===r}))},[])}function Ep(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function Tp(e){var t=e.reduce(function(n,r){var i=n[r.name];return n[r.name]=i?Object.assign({},i,r,{options:Object.assign({},i.options,r.options),data:Object.assign({},i.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var So={placement:"bottom",modifiers:[],strategy:"absolute"};function Ao(){for(var e=arguments.length,t=new Array(e),n=0;n1)&&(e=1),e}function vn(e){return e<=1?"".concat(Number(e)*100,"%"):e}function Je(e){return e.length===1?"0"+e:String(e)}function Pp(e,t,n){return{r:J(e,255)*255,g:J(t,255)*255,b:J(n,255)*255}}function Eo(e,t,n){e=J(e,255),t=J(t,255),n=J(n,255);var r=Math.max(e,t,n),i=Math.min(e,t,n),o=0,s=0,a=(r+i)/2;if(r===i)s=0,o=0;else{var f=r-i;switch(s=a>.5?f/(2-r-i):f/(r+i),r){case e:o=(t-n)/f+(t1&&(n-=1),n<1/6?e+(t-e)*(6*n):n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function Fp(e,t,n){var r,i,o;if(e=J(e,360),t=J(t,100),n=J(n,100),t===0)i=n,o=n,r=n;else{var s=n<.5?n*(1+t):n+t-n*t,a=2*n-s;r=cr(a,s,e+1/3),i=cr(a,s,e),o=cr(a,s,e-1/3)}return{r:r*255,g:i*255,b:o*255}}function To(e,t,n){e=J(e,255),t=J(t,255),n=J(n,255);var r=Math.max(e,t,n),i=Math.min(e,t,n),o=0,s=r,a=r-i,f=r===0?0:a/r;if(r===i)o=0;else{switch(r){case e:o=(t-n)/a+(t>16,g:(e&65280)>>8,b:e&255}}var Er={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function jp(e){var t={r:0,g:0,b:0},n=1,r=null,i=null,o=null,s=!1,a=!1;return typeof e=="string"&&(e=Ip(e)),typeof e=="object"&&(Le(e.r)&&Le(e.g)&&Le(e.b)?(t=Pp(e.r,e.g,e.b),s=!0,a=String(e.r).substr(-1)==="%"?"prgb":"rgb"):Le(e.h)&&Le(e.s)&&Le(e.v)?(r=vn(e.s),i=vn(e.v),t=Dp(e.h,r,i),s=!0,a="hsv"):Le(e.h)&&Le(e.s)&&Le(e.l)&&(r=vn(e.s),o=vn(e.l),t=Fp(e.h,r,o),s=!0,a="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=ra(n),{ok:s,format:e.format||a,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}var kp="[-\\+]?\\d+%?",Bp="[-\\+]?\\d*\\.\\d+%?",Ue="(?:".concat(Bp,")|(?:").concat(kp,")"),ur="[\\s|\\(]+(".concat(Ue,")[,|\\s]+(").concat(Ue,")[,|\\s]+(").concat(Ue,")\\s*\\)?"),lr="[\\s|\\(]+(".concat(Ue,")[,|\\s]+(").concat(Ue,")[,|\\s]+(").concat(Ue,")[,|\\s]+(").concat(Ue,")\\s*\\)?"),we={CSS_UNIT:new RegExp(Ue),rgb:new RegExp("rgb"+ur),rgba:new RegExp("rgba"+lr),hsl:new RegExp("hsl"+ur),hsla:new RegExp("hsla"+lr),hsv:new RegExp("hsv"+ur),hsva:new RegExp("hsva"+lr),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function Ip(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(Er[e])e=Er[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=we.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=we.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=we.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=we.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=we.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=we.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=we.hex8.exec(e),n?{r:ce(n[1]),g:ce(n[2]),b:ce(n[3]),a:$o(n[4]),format:t?"name":"hex8"}:(n=we.hex6.exec(e),n?{r:ce(n[1]),g:ce(n[2]),b:ce(n[3]),format:t?"name":"hex"}:(n=we.hex4.exec(e),n?{r:ce(n[1]+n[1]),g:ce(n[2]+n[2]),b:ce(n[3]+n[3]),a:$o(n[4]+n[4]),format:t?"name":"hex8"}:(n=we.hex3.exec(e),n?{r:ce(n[1]+n[1]),g:ce(n[2]+n[2]),b:ce(n[3]+n[3]),format:t?"name":"hex"}:!1)))))))))}function Le(e){return!!we.CSS_UNIT.exec(String(e))}var By=function(){function e(t,n){t===void 0&&(t=""),n===void 0&&(n={});var r;if(t instanceof e)return t;typeof t=="number"&&(t=Np(t)),this.originalInput=t;var i=jp(t);this.originalInput=t,this.r=i.r,this.g=i.g,this.b=i.b,this.a=i.a,this.roundA=Math.round(100*this.a)/100,this.format=(r=n.format)!==null&&r!==void 0?r:i.format,this.gradientType=n.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=i.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},e.prototype.getLuminance=function(){var t=this.toRgb(),n,r,i,o=t.r/255,s=t.g/255,a=t.b/255;return o<=.03928?n=o/12.92:n=Math.pow((o+.055)/1.055,2.4),s<=.03928?r=s/12.92:r=Math.pow((s+.055)/1.055,2.4),a<=.03928?i=a/12.92:i=Math.pow((a+.055)/1.055,2.4),.2126*n+.7152*r+.0722*i},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(t){return this.a=ra(t),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){var t=this.toHsl().s;return t===0},e.prototype.toHsv=function(){var t=To(this.r,this.g,this.b);return{h:t.h*360,s:t.s,v:t.v,a:this.a}},e.prototype.toHsvString=function(){var t=To(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),i=Math.round(t.v*100);return this.a===1?"hsv(".concat(n,", ").concat(r,"%, ").concat(i,"%)"):"hsva(".concat(n,", ").concat(r,"%, ").concat(i,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var t=Eo(this.r,this.g,this.b);return{h:t.h*360,s:t.s,l:t.l,a:this.a}},e.prototype.toHslString=function(){var t=Eo(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),i=Math.round(t.l*100);return this.a===1?"hsl(".concat(n,", ").concat(r,"%, ").concat(i,"%)"):"hsla(".concat(n,", ").concat(r,"%, ").concat(i,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(t){return t===void 0&&(t=!1),Ro(this.r,this.g,this.b,t)},e.prototype.toHexString=function(t){return t===void 0&&(t=!1),"#"+this.toHex(t)},e.prototype.toHex8=function(t){return t===void 0&&(t=!1),Cp(this.r,this.g,this.b,this.a,t)},e.prototype.toHex8String=function(t){return t===void 0&&(t=!1),"#"+this.toHex8(t)},e.prototype.toHexShortString=function(t){return t===void 0&&(t=!1),this.a===1?this.toHexString(t):this.toHex8String(t)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var t=Math.round(this.r),n=Math.round(this.g),r=Math.round(this.b);return this.a===1?"rgb(".concat(t,", ").concat(n,", ").concat(r,")"):"rgba(".concat(t,", ").concat(n,", ").concat(r,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var t=function(n){return"".concat(Math.round(J(n,255)*100),"%")};return{r:t(this.r),g:t(this.g),b:t(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var t=function(n){return Math.round(J(n,255)*100)};return this.a===1?"rgb(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%)"):"rgba(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var t="#"+Ro(this.r,this.g,this.b,!1),n=0,r=Object.entries(Er);n=0,o=!n&&i&&(t.startsWith("hex")||t==="name");return o?t==="name"&&this.a===0?this.toName():this.toRgbString():(t==="rgb"&&(r=this.toRgbString()),t==="prgb"&&(r=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(r=this.toHexString()),t==="hex3"&&(r=this.toHexString(!0)),t==="hex4"&&(r=this.toHex8String(!0)),t==="hex8"&&(r=this.toHex8String()),t==="name"&&(r=this.toName()),t==="hsl"&&(r=this.toHslString()),t==="hsv"&&(r=this.toHsvString()),r||this.toHexString())},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l+=t/100,n.l=bn(n.l),new e(n)},e.prototype.brighten=function(t){t===void 0&&(t=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(255*-(t/100)))),n.g=Math.max(0,Math.min(255,n.g-Math.round(255*-(t/100)))),n.b=Math.max(0,Math.min(255,n.b-Math.round(255*-(t/100)))),new e(n)},e.prototype.darken=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l-=t/100,n.l=bn(n.l),new e(n)},e.prototype.tint=function(t){return t===void 0&&(t=10),this.mix("white",t)},e.prototype.shade=function(t){return t===void 0&&(t=10),this.mix("black",t)},e.prototype.desaturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s-=t/100,n.s=bn(n.s),new e(n)},e.prototype.saturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s+=t/100,n.s=bn(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,new e(n)},e.prototype.mix=function(t,n){n===void 0&&(n=50);var r=this.toRgb(),i=new e(t).toRgb(),o=n/100,s={r:(i.r-r.r)*o+r.r,g:(i.g-r.g)*o+r.g,b:(i.b-r.b)*o+r.b,a:(i.a-r.a)*o+r.a};return new e(s)},e.prototype.analogous=function(t,n){t===void 0&&(t=6),n===void 0&&(n=30);var r=this.toHsl(),i=360/n,o=[this];for(r.h=(r.h-(i*t>>1)+720)%360;--t;)r.h=(r.h+i)%360,o.push(new e(r));return o},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){t===void 0&&(t=6);for(var n=this.toHsv(),r=n.h,i=n.s,o=n.v,s=[],a=1/t;t--;)s.push(new e({h:r,s:i,v:o})),o=(o+a)%1;return s},e.prototype.splitcomplement=function(){var t=this.toHsl(),n=t.h;return[this,new e({h:(n+72)%360,s:t.s,l:t.l}),new e({h:(n+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var n=this.toRgb(),r=new e(t).toRgb(),i=n.a+r.a*(1-n.a);return new e({r:(n.r*n.a+r.r*r.a*(1-n.a))/i,g:(n.g*n.a+r.g*r.a*(1-n.a))/i,b:(n.b*n.a+r.b*r.a*(1-n.a))/i,a:i})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var n=this.toHsl(),r=n.h,i=[this],o=360/t,s=1;s=T?$:""+Array(T+1-R.length).join(O)+$},S={s:v,z:function($){var T=-$.utcOffset(),O=Math.abs(T),R=Math.floor(O/60),E=O%60;return(T<=0?"+":"-")+v(R,2,"0")+":"+v(E,2,"0")},m:function $(T,O){if(T.date()1)return $(C[0])}else{var k=T.name;A[k]=T,E=k}return!R&&E&&(x=E),E||!R&&x},D=function($,T){if(F($))return $.clone();var O=typeof T=="object"?T:{};return O.date=$,O.args=arguments,new N(O)},P=S;P.l=L,P.i=F,P.w=function($,T){return D($,{locale:T.$L,utc:T.$u,x:T.$x,$offset:T.$offset})};var N=function(){function $(O){this.$L=L(O.locale,null,!0),this.parse(O),this.$x=this.$x||O.x||{},this[_]=!0}var T=$.prototype;return T.parse=function(O){this.$d=function(R){var E=R.date,M=R.utc;if(E===null)return new Date(NaN);if(P.u(E))return new Date;if(E instanceof Date)return new Date(E);if(typeof E=="string"&&!/Z$/i.test(E)){var C=E.match(d);if(C){var k=C[2]-1||0,H=(C[7]||"0").substring(0,3);return M?new Date(Date.UTC(C[1],k,C[3]||1,C[4]||0,C[5]||0,C[6]||0,H)):new Date(C[1],k,C[3]||1,C[4]||0,C[5]||0,C[6]||0,H)}}return new Date(E)}(O),this.init()},T.init=function(){var O=this.$d;this.$y=O.getFullYear(),this.$M=O.getMonth(),this.$D=O.getDate(),this.$W=O.getDay(),this.$H=O.getHours(),this.$m=O.getMinutes(),this.$s=O.getSeconds(),this.$ms=O.getMilliseconds()},T.$utils=function(){return P},T.isValid=function(){return this.$d.toString()!==h},T.isSame=function(O,R){var E=D(O);return this.startOf(R)<=E&&E<=this.endOf(R)},T.isAfter=function(O,R){return D(O)68?1900:2e3)},u=function(d){return function(p){this[d]=+p}},l=[/[+-]\d\d:?(\d\d)?|Z/,function(d){(this.zone||(this.zone={})).offset=function(p){if(!p||p==="Z")return 0;var w=p.match(/([+-]|\d\d)/g),v=60*w[1]+(+w[2]||0);return v===0?0:w[0]==="+"?-v:v}(d)}],g=function(d){var p=f[d];return p&&(p.indexOf?p:p.s.concat(p.f))},y=function(d,p){var w,v=f.meridiem;if(v){for(var S=1;S<=24;S+=1)if(d.indexOf(v(S,0,p))>-1){w=S>12;break}}else w=d===(p?"pm":"PM");return w},m={A:[a,function(d){this.afternoon=y(d,!1)}],a:[a,function(d){this.afternoon=y(d,!0)}],Q:[i,function(d){this.month=3*(d-1)+1}],S:[i,function(d){this.milliseconds=100*+d}],SS:[o,function(d){this.milliseconds=10*+d}],SSS:[/\d{3}/,function(d){this.milliseconds=+d}],s:[s,u("seconds")],ss:[s,u("seconds")],m:[s,u("minutes")],mm:[s,u("minutes")],H:[s,u("hours")],h:[s,u("hours")],HH:[s,u("hours")],hh:[s,u("hours")],D:[s,u("day")],DD:[o,u("day")],Do:[a,function(d){var p=f.ordinal,w=d.match(/\d+/);if(this.day=w[0],p)for(var v=1;v<=31;v+=1)p(v).replace(/\[|\]/g,"")===d&&(this.day=v)}],w:[s,u("week")],ww:[o,u("week")],M:[s,u("month")],MM:[o,u("month")],MMM:[a,function(d){var p=g("months"),w=(g("monthsShort")||p.map(function(v){return v.slice(0,3)})).indexOf(d)+1;if(w<1)throw new Error;this.month=w%12||w}],MMMM:[a,function(d){var p=g("months").indexOf(d)+1;if(p<1)throw new Error;this.month=p%12||p}],Y:[/[+-]?\d+/,u("year")],YY:[o,function(d){this.year=c(d)}],YYYY:[/\d{4}/,u("year")],Z:l,ZZ:l};function h(d){var p,w;p=d,w=f&&f.formats;for(var v=(d=p.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(D,P,N){var j=N&&N.toUpperCase();return P||w[N]||n[N]||w[j].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function($,T,O){return T||O.slice(1)})})).match(r),S=v.length,x=0;x-1)return new Date((E==="X"?1e3:1)*R);var k=h(E)(R),H=k.year,q=k.month,U=k.day,z=k.hours,fe=k.minutes,Q=k.seconds,ne=k.milliseconds,de=k.zone,G=k.week,K=new Date,be=U||(H||q?1:K.getDate()),ve=H||K.getFullYear(),ct=0;H&&!q||(ct=q>0?q-1:K.getMonth());var ut,lt=z||0,dt=fe||0,Dt=Q||0,Ct=ne||0;return de?new Date(Date.UTC(ve,ct,be,lt,dt,Dt,Ct+60*de.offset*1e3)):M?new Date(Date.UTC(ve,ct,be,lt,dt,Dt,Ct)):(ut=new Date(ve,ct,be,lt,dt,Dt,Ct),G&&(ut=C(ut).week(G).toDate()),ut)}catch{return new Date("")}}(A,L,_,w),this.init(),j&&j!==!0&&(this.$L=this.locale(j).$L),N&&A!=this.format(L)&&(this.$d=new Date("")),f={}}else if(L instanceof Array)for(var $=L.length,T=1;T<=$;T+=1){F[1]=L[T-1];var O=w.apply(this,F);if(O.isValid()){this.$d=O.$d,this.$L=O.$L,this.init();break}T===$&&(this.$d=new Date(""))}else S.call(this,x)}}})})(sa);var Up=sa.exports;const qy=He(Up);var aa={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(Ie,function(){return function(n,r){var i=r.prototype,o=i.format;i.format=function(s){var a=this,f=this.$locale();if(!this.isValid())return o.bind(this)(s);var c=this.$utils(),u=(s||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(l){switch(l){case"Q":return Math.ceil((a.$M+1)/3);case"Do":return f.ordinal(a.$D);case"gggg":return a.weekYear();case"GGGG":return a.isoWeekYear();case"wo":return f.ordinal(a.week(),"W");case"w":case"ww":return c.s(a.week(),l==="w"?1:2,"0");case"W":case"WW":return c.s(a.isoWeek(),l==="W"?1:2,"0");case"k":case"kk":return c.s(String(a.$H===0?24:a.$H),l==="k"?1:2,"0");case"X":return Math.floor(a.$d.getTime()/1e3);case"x":return a.$d.getTime();case"z":return"["+a.offsetName()+"]";case"zzz":return"["+a.offsetName("long")+"]";default:return l}});return o.bind(this)(u)}}})})(aa);var Yp=aa.exports;const Uy=He(Yp);var fa={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(Ie,function(){var n="week",r="year";return function(i,o,s){var a=o.prototype;a.week=function(f){if(f===void 0&&(f=null),f!==null)return this.add(7*(f-this.week()),"day");var c=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var u=s(this).startOf(r).add(1,r).date(c),l=s(this).endOf(n);if(u.isBefore(l))return 1}var g=s(this).startOf(r).date(c).startOf(n).subtract(1,"millisecond"),y=this.diff(g,n,!0);return y<0?s(this).startOf("week").week():Math.ceil(y)},a.weeks=function(f){return f===void 0&&(f=null),this.week(f)}}})})(fa);var Wp=fa.exports;const Yy=He(Wp);var ca={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(Ie,function(){return function(n,r){r.prototype.weekYear=function(){var i=this.month(),o=this.week(),s=this.year();return o===1&&i===11?s+1:i===0&&o>=52?s-1:s}}})})(ca);var zp=ca.exports;const Wy=He(zp);var ua={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(Ie,function(){return function(n,r,i){r.prototype.dayOfYear=function(o){var s=Math.round((i(this).startOf("day")-i(this).startOf("year"))/864e5)+1;return o==null?s:this.add(o-s,"day")}}})})(ua);var Vp=ua.exports;const zy=He(Vp);var la={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(Ie,function(){return function(n,r){r.prototype.isSameOrAfter=function(i,o){return this.isSame(i,o)||this.isAfter(i,o)}}})})(la);var Gp=la.exports;const Vy=He(Gp);var da={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(Ie,function(){return function(n,r){r.prototype.isSameOrBefore=function(i,o){return this.isSame(i,o)||this.isBefore(i,o)}}})})(da);var Xp=da.exports;const Gy=He(Xp);function Ke(){return Ke=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Tn(e,t,n){return Kp()?Tn=Reflect.construct.bind():Tn=function(i,o,s){var a=[null];a.push.apply(a,o);var f=Function.bind.apply(i,a),c=new f;return s&&Kt(c,s.prototype),c},Tn.apply(null,arguments)}function Zp(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function Rr(e){var t=typeof Map=="function"?new Map:void 0;return Rr=function(r){if(r===null||!Zp(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t<"u"){if(t.has(r))return t.get(r);t.set(r,i)}function i(){return Tn(r,arguments,Tr(this).constructor)}return i.prototype=Object.create(r.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),Kt(i,r)},Rr(e)}var Qp=/%[sdj%]/g,eg=function(){};function $r(e){if(!e||!e.length)return null;var t={};return e.forEach(function(n){var r=n.field;t[r]=t[r]||[],t[r].push(n)}),t}function ue(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r=o)return a;switch(a){case"%s":return String(n[i++]);case"%d":return Number(n[i++]);case"%j":try{return JSON.stringify(n[i++])}catch{return"[Circular]"}break;default:return a}});return s}return e}function tg(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function X(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||tg(t)&&typeof e=="string"&&!e)}function ng(e,t,n){var r=[],i=0,o=e.length;function s(a){r.push.apply(r,a||[]),i++,i===o&&n(r)}e.forEach(function(a){t(a,s)})}function _o(e,t,n){var r=0,i=e.length;function o(s){if(s&&s.length){n(s);return}var a=r;r=r+1,a()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},kt={integer:function(t){return kt.number(t)&&parseInt(t,10)===t},float:function(t){return kt.number(t)&&!kt.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch{return!1}},date:function(t){return typeof t.getTime=="function"&&typeof t.getMonth=="function"&&typeof t.getYear=="function"&&!isNaN(t.getTime())},number:function(t){return isNaN(t)?!1:typeof t=="number"},object:function(t){return typeof t=="object"&&!kt.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(Do.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(fg())},hex:function(t){return typeof t=="string"&&!!t.match(Do.hex)}},cg=function(t,n,r,i,o){if(t.required&&n===void 0){ha(t,n,r,i,o);return}var s=["integer","float","array","regexp","object","method","email","number","date","url","hex"],a=t.type;s.indexOf(a)>-1?kt[a](n)||i.push(ue(o.messages.types[a],t.fullField,t.type)):a&&typeof n!==t.type&&i.push(ue(o.messages.types[a],t.fullField,t.type))},ug=function(t,n,r,i,o){var s=typeof t.len=="number",a=typeof t.min=="number",f=typeof t.max=="number",c=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,u=n,l=null,g=typeof n=="number",y=typeof n=="string",m=Array.isArray(n);if(g?l="number":y?l="string":m&&(l="array"),!l)return!1;m&&(u=n.length),y&&(u=n.replace(c,"_").length),s?u!==t.len&&i.push(ue(o.messages[l].len,t.fullField,t.len)):a&&!f&&ut.max?i.push(ue(o.messages[l].max,t.fullField,t.max)):a&&f&&(ut.max)&&i.push(ue(o.messages[l].range,t.fullField,t.min,t.max))},ht="enum",lg=function(t,n,r,i,o){t[ht]=Array.isArray(t[ht])?t[ht]:[],t[ht].indexOf(n)===-1&&i.push(ue(o.messages[ht],t.fullField,t[ht].join(", ")))},dg=function(t,n,r,i,o){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(n)||i.push(ue(o.messages.pattern.mismatch,t.fullField,n,t.pattern));else if(typeof t.pattern=="string"){var s=new RegExp(t.pattern);s.test(n)||i.push(ue(o.messages.pattern.mismatch,t.fullField,n,t.pattern))}}},I={required:ha,whitespace:ag,type:cg,range:ug,enum:lg,pattern:dg},hg=function(t,n,r,i,o){var s=[],a=t.required||!t.required&&i.hasOwnProperty(t.field);if(a){if(X(n,"string")&&!t.required)return r();I.required(t,n,i,s,o,"string"),X(n,"string")||(I.type(t,n,i,s,o),I.range(t,n,i,s,o),I.pattern(t,n,i,s,o),t.whitespace===!0&&I.whitespace(t,n,i,s,o))}r(s)},pg=function(t,n,r,i,o){var s=[],a=t.required||!t.required&&i.hasOwnProperty(t.field);if(a){if(X(n)&&!t.required)return r();I.required(t,n,i,s,o),n!==void 0&&I.type(t,n,i,s,o)}r(s)},gg=function(t,n,r,i,o){var s=[],a=t.required||!t.required&&i.hasOwnProperty(t.field);if(a){if(n===""&&(n=void 0),X(n)&&!t.required)return r();I.required(t,n,i,s,o),n!==void 0&&(I.type(t,n,i,s,o),I.range(t,n,i,s,o))}r(s)},mg=function(t,n,r,i,o){var s=[],a=t.required||!t.required&&i.hasOwnProperty(t.field);if(a){if(X(n)&&!t.required)return r();I.required(t,n,i,s,o),n!==void 0&&I.type(t,n,i,s,o)}r(s)},yg=function(t,n,r,i,o){var s=[],a=t.required||!t.required&&i.hasOwnProperty(t.field);if(a){if(X(n)&&!t.required)return r();I.required(t,n,i,s,o),X(n)||I.type(t,n,i,s,o)}r(s)},bg=function(t,n,r,i,o){var s=[],a=t.required||!t.required&&i.hasOwnProperty(t.field);if(a){if(X(n)&&!t.required)return r();I.required(t,n,i,s,o),n!==void 0&&(I.type(t,n,i,s,o),I.range(t,n,i,s,o))}r(s)},vg=function(t,n,r,i,o){var s=[],a=t.required||!t.required&&i.hasOwnProperty(t.field);if(a){if(X(n)&&!t.required)return r();I.required(t,n,i,s,o),n!==void 0&&(I.type(t,n,i,s,o),I.range(t,n,i,s,o))}r(s)},wg=function(t,n,r,i,o){var s=[],a=t.required||!t.required&&i.hasOwnProperty(t.field);if(a){if(n==null&&!t.required)return r();I.required(t,n,i,s,o,"array"),n!=null&&(I.type(t,n,i,s,o),I.range(t,n,i,s,o))}r(s)},xg=function(t,n,r,i,o){var s=[],a=t.required||!t.required&&i.hasOwnProperty(t.field);if(a){if(X(n)&&!t.required)return r();I.required(t,n,i,s,o),n!==void 0&&I.type(t,n,i,s,o)}r(s)},Og="enum",Sg=function(t,n,r,i,o){var s=[],a=t.required||!t.required&&i.hasOwnProperty(t.field);if(a){if(X(n)&&!t.required)return r();I.required(t,n,i,s,o),n!==void 0&&I[Og](t,n,i,s,o)}r(s)},Ag=function(t,n,r,i,o){var s=[],a=t.required||!t.required&&i.hasOwnProperty(t.field);if(a){if(X(n,"string")&&!t.required)return r();I.required(t,n,i,s,o),X(n,"string")||I.pattern(t,n,i,s,o)}r(s)},Eg=function(t,n,r,i,o){var s=[],a=t.required||!t.required&&i.hasOwnProperty(t.field);if(a){if(X(n,"date")&&!t.required)return r();if(I.required(t,n,i,s,o),!X(n,"date")){var f;n instanceof Date?f=n:f=new Date(n),I.type(t,f,i,s,o),f&&I.range(t,f.getTime(),i,s,o)}}r(s)},Tg=function(t,n,r,i,o){var s=[],a=Array.isArray(n)?"array":typeof n;I.required(t,n,i,s,o,a),r(s)},dr=function(t,n,r,i,o){var s=t.type,a=[],f=t.required||!t.required&&i.hasOwnProperty(t.field);if(f){if(X(n,s)&&!t.required)return r();I.required(t,n,i,a,o,s),X(n,s)||I.type(t,n,i,a,o)}r(a)},Rg=function(t,n,r,i,o){var s=[],a=t.required||!t.required&&i.hasOwnProperty(t.field);if(a){if(X(n)&&!t.required)return r();I.required(t,n,i,s,o)}r(s)},Ut={string:hg,method:pg,number:gg,boolean:mg,regexp:yg,integer:bg,float:vg,array:wg,object:xg,enum:Sg,pattern:Ag,date:Eg,url:dr,hex:dr,email:dr,required:Tg,any:Rg};function _r(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var t=JSON.parse(JSON.stringify(this));return t.clone=this.clone,t}}}var Mr=_r(),Gn=function(){function e(n){this.rules=null,this._messages=Mr,this.define(n)}var t=e.prototype;return t.define=function(r){var i=this;if(!r)throw new Error("Cannot configure a schema with no rules");if(typeof r!="object"||Array.isArray(r))throw new Error("Rules must be an object");this.rules={},Object.keys(r).forEach(function(o){var s=r[o];i.rules[o]=Array.isArray(s)?s:[s]})},t.messages=function(r){return r&&(this._messages=Fo(_r(),r)),this._messages},t.validate=function(r,i,o){var s=this;i===void 0&&(i={}),o===void 0&&(o=function(){});var a=r,f=i,c=o;if(typeof f=="function"&&(c=f,f={}),!this.rules||Object.keys(this.rules).length===0)return c&&c(null,a),Promise.resolve(a);function u(h){var d=[],p={};function w(S){if(Array.isArray(S)){var x;d=(x=d).concat.apply(x,S)}else d.push(S)}for(var v=0;vXe},ie64:function(){return kr.ie()&&ga},firefox:function(){return re()||Pr},opera:function(){return re()||Fr},webkit:function(){return re()||Rn},safari:function(){return kr.webkit()},chrome:function(){return re()||$n},windows:function(){return re()||Dr},osx:function(){return re()||_n},linux:function(){return re()||Cr},iphone:function(){return re()||Nr},mobile:function(){return re()||Nr||jr||Lr||ya},nativeApp:function(){return re()||ma},android:function(){return re()||Lr},ipad:function(){return re()||jr}},Mg=kr,Pg=!!(typeof window<"u"&&window.document&&window.document.createElement),Fg={canUseDOM:Pg},ba=Fg,va;ba.canUseDOM&&(va=document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("","")!==!0);function Dg(e,t){if(!ba.canUseDOM||t&&!("addEventListener"in document))return!1;var n="on"+e,r=n in document;if(!r){var i=document.createElement("div");i.setAttribute(n,"return;"),r=typeof i[n]=="function"}return!r&&va&&e==="wheel"&&(r=document.implementation.hasFeature("Events.wheel","3.0")),r}var Cg=Dg,No=10,jo=40,ko=800;function wa(e){var t=0,n=0,r=0,i=0;return"detail"in e&&(n=e.detail),"wheelDelta"in e&&(n=-e.wheelDelta/120),"wheelDeltaY"in e&&(n=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(t=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(t=n,n=0),r=t*No,i=n*No,"deltaY"in e&&(i=e.deltaY),"deltaX"in e&&(r=e.deltaX),(r||i)&&e.deltaMode&&(e.deltaMode==1?(r*=jo,i*=jo):(r*=ko,i*=ko)),r&&!t&&(t=r<1?-1:1),i&&!n&&(n=i<1?-1:1),{spinX:t,spinY:n,pixelX:r,pixelY:i}}wa.getEventType=function(){return Mg.firefox()?"DOMMouseScroll":Cg("wheel")?"wheel":"mousewheel"};var Jy=wa;/** * Checks if an event is supported in the current execution environment. * * NOTE: This will not work correctly for non-generic events such as `change`, * `reset`, `load`, `error`, and `select`. * * Borrows from Modernizr. * * @param {string} eventNameSuffix Event name, e.g. "click". * @param {?boolean} capture Check if the capture phase is supported. * @return {boolean} True if the event is supported. * @internal * @license Modernizr 3.0.0pre (Custom Build) | MIT */const At=Math.min,et=Math.max,Nn=Math.round,xn=Math.floor,Me=e=>({x:e,y:e}),Lg={left:"right",right:"left",bottom:"top",top:"bottom"},Ng={start:"end",end:"start"};function Br(e,t,n){return et(e,At(t,n))}function an(e,t){return typeof e=="function"?e(t):e}function rt(e){return e.split("-")[0]}function fn(e){return e.split("-")[1]}function xa(e){return e==="x"?"y":"x"}function wi(e){return e==="y"?"height":"width"}const jg=new Set(["top","bottom"]);function Ye(e){return jg.has(rt(e))?"y":"x"}function xi(e){return xa(Ye(e))}function kg(e,t,n){n===void 0&&(n=!1);const r=fn(e),i=xi(e),o=wi(i);let s=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(s=jn(s)),[s,jn(s)]}function Bg(e){const t=jn(e);return[Ir(e),t,Ir(t)]}function Ir(e){return e.replace(/start|end/g,t=>Ng[t])}const Bo=["left","right"],Io=["right","left"],Ig=["top","bottom"],Hg=["bottom","top"];function qg(e,t,n){switch(e){case"top":case"bottom":return n?t?Io:Bo:t?Bo:Io;case"left":case"right":return t?Ig:Hg;default:return[]}}function Ug(e,t,n,r){const i=fn(e);let o=qg(rt(e),n==="start",r);return i&&(o=o.map(s=>s+"-"+i),t&&(o=o.concat(o.map(Ir)))),o}function jn(e){return e.replace(/left|right|bottom|top/g,t=>Lg[t])}function Yg(e){return{top:0,right:0,bottom:0,left:0,...e}}function Oa(e){return typeof e!="number"?Yg(e):{top:e,right:e,bottom:e,left:e}}function kn(e){const{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function Ho(e,t,n){let{reference:r,floating:i}=e;const o=Ye(t),s=xi(t),a=wi(s),f=rt(t),c=o==="y",u=r.x+r.width/2-i.width/2,l=r.y+r.height/2-i.height/2,g=r[a]/2-i[a]/2;let y;switch(f){case"top":y={x:u,y:r.y-i.height};break;case"bottom":y={x:u,y:r.y+r.height};break;case"right":y={x:r.x+r.width,y:l};break;case"left":y={x:r.x-i.width,y:l};break;default:y={x:r.x,y:r.y}}switch(fn(t)){case"start":y[s]-=g*(n&&c?-1:1);break;case"end":y[s]+=g*(n&&c?-1:1);break}return y}const Wg=async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:o=[],platform:s}=n,a=o.filter(Boolean),f=await(s.isRTL==null?void 0:s.isRTL(t));let c=await s.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:l}=Ho(c,r,f),g=r,y={},m=0;for(let h=0;h({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:i,rects:o,platform:s,elements:a,middlewareData:f}=t,{element:c,padding:u=0}=an(e,t)||{};if(c==null)return{};const l=Oa(u),g={x:n,y:r},y=xi(i),m=wi(y),h=await s.getDimensions(c),d=y==="y",p=d?"top":"left",w=d?"bottom":"right",v=d?"clientHeight":"clientWidth",S=o.reference[m]+o.reference[y]-g[y]-o.floating[m],x=g[y]-o.reference[y],A=await(s.getOffsetParent==null?void 0:s.getOffsetParent(c));let _=A?A[v]:0;(!_||!await(s.isElement==null?void 0:s.isElement(A)))&&(_=a.floating[v]||o.floating[m]);const F=S/2-x/2,L=_/2-h[m]/2-1,D=At(l[p],L),P=At(l[w],L),N=D,j=_-h[m]-P,$=_/2-h[m]/2+F,T=Br(N,$,j),O=!f.arrow&&fn(i)!=null&&$!==T&&o.reference[m]/2-($$<=0)){var P,N;const $=(((P=o.flip)==null?void 0:P.index)||0)+1,T=_[$];if(T&&(!(l==="alignment"?w!==Ye(T):!1)||D.every(E=>E.overflows[0]>0&&Ye(E.placement)===w)))return{data:{index:$,overflows:D},reset:{placement:T}};let O=(N=D.filter(R=>R.overflows[0]<=0).sort((R,E)=>R.overflows[1]-E.overflows[1])[0])==null?void 0:N.placement;if(!O)switch(y){case"bestFit":{var j;const R=(j=D.filter(E=>{if(A){const M=Ye(E.placement);return M===w||M==="y"}return!0}).map(E=>[E.placement,E.overflows.filter(M=>M>0).reduce((M,C)=>M+C,0)]).sort((E,M)=>E[1]-M[1])[0])==null?void 0:j[0];R&&(O=R);break}case"initialPlacement":O=a;break}if(i!==O)return{reset:{placement:O}}}return{}}}},Gg=new Set(["left","top"]);async function Xg(e,t){const{placement:n,platform:r,elements:i}=e,o=await(r.isRTL==null?void 0:r.isRTL(i.floating)),s=rt(n),a=fn(n),f=Ye(n)==="y",c=Gg.has(s)?-1:1,u=o&&f?-1:1,l=an(t,e);let{mainAxis:g,crossAxis:y,alignmentAxis:m}=typeof l=="number"?{mainAxis:l,crossAxis:0,alignmentAxis:null}:{mainAxis:l.mainAxis||0,crossAxis:l.crossAxis||0,alignmentAxis:l.alignmentAxis};return a&&typeof m=="number"&&(y=a==="end"?m*-1:m),f?{x:y*u,y:g*c}:{x:g*c,y:y*u}}const Jg=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:i,y:o,placement:s,middlewareData:a}=t,f=await Xg(t,e);return s===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:i+f.x,y:o+f.y,data:{...f,placement:s}}}}},Kg=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:i}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:a={fn:d=>{let{x:p,y:w}=d;return{x:p,y:w}}},...f}=an(e,t),c={x:n,y:r},u=await Oi(t,f),l=Ye(rt(i)),g=xa(l);let y=c[g],m=c[l];if(o){const d=g==="y"?"top":"left",p=g==="y"?"bottom":"right",w=y+u[d],v=y-u[p];y=Br(w,y,v)}if(s){const d=l==="y"?"top":"left",p=l==="y"?"bottom":"right",w=m+u[d],v=m-u[p];m=Br(w,m,v)}const h=a.fn({...t,[g]:y,[l]:m});return{...h,data:{x:h.x-n,y:h.y-r,enabled:{[g]:o,[l]:s}}}}}};function Xn(){return typeof window<"u"}function Mt(e){return Sa(e)?(e.nodeName||"").toLowerCase():"#document"}function le(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Ce(e){var t;return(t=(Sa(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Sa(e){return Xn()?e instanceof Node||e instanceof le(e).Node:!1}function Se(e){return Xn()?e instanceof Element||e instanceof le(e).Element:!1}function De(e){return Xn()?e instanceof HTMLElement||e instanceof le(e).HTMLElement:!1}function qo(e){return!Xn()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof le(e).ShadowRoot}const Zg=new Set(["inline","contents"]);function cn(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=Ae(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!Zg.has(i)}const Qg=new Set(["table","td","th"]);function em(e){return Qg.has(Mt(e))}const tm=[":popover-open",":modal"];function Jn(e){return tm.some(t=>{try{return e.matches(t)}catch{return!1}})}const nm=["transform","translate","scale","rotate","perspective"],rm=["transform","translate","scale","rotate","perspective","filter"],im=["paint","layout","strict","content"];function Si(e){const t=Ai(),n=Se(e)?Ae(e):e;return nm.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||rm.some(r=>(n.willChange||"").includes(r))||im.some(r=>(n.contain||"").includes(r))}function om(e){let t=Ve(e);for(;De(t)&&!Et(t);){if(Si(t))return t;if(Jn(t))return null;t=Ve(t)}return null}function Ai(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const sm=new Set(["html","body","#document"]);function Et(e){return sm.has(Mt(e))}function Ae(e){return le(e).getComputedStyle(e)}function Kn(e){return Se(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Ve(e){if(Mt(e)==="html")return e;const t=e.assignedSlot||e.parentNode||qo(e)&&e.host||Ce(e);return qo(t)?t.host:t}function Aa(e){const t=Ve(e);return Et(t)?e.ownerDocument?e.ownerDocument.body:e.body:De(t)&&cn(t)?t:Aa(t)}function Zt(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=Aa(e),o=i===((r=e.ownerDocument)==null?void 0:r.body),s=le(i);if(o){const a=Hr(s);return t.concat(s,s.visualViewport||[],cn(i)?i:[],a&&n?Zt(a):[])}return t.concat(i,Zt(i,[],n))}function Hr(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Ea(e){const t=Ae(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=De(e),o=i?e.offsetWidth:n,s=i?e.offsetHeight:r,a=Nn(n)!==o||Nn(r)!==s;return a&&(n=o,r=s),{width:n,height:r,$:a}}function Ei(e){return Se(e)?e:e.contextElement}function yt(e){const t=Ei(e);if(!De(t))return Me(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:o}=Ea(t);let s=(o?Nn(n.width):n.width)/r,a=(o?Nn(n.height):n.height)/i;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}const am=Me(0);function Ta(e){const t=le(e);return!Ai()||!t.visualViewport?am:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function fm(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==le(e)?!1:t}function it(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),o=Ei(e);let s=Me(1);t&&(r?Se(r)&&(s=yt(r)):s=yt(e));const a=fm(o,n,r)?Ta(o):Me(0);let f=(i.left+a.x)/s.x,c=(i.top+a.y)/s.y,u=i.width/s.x,l=i.height/s.y;if(o){const g=le(o),y=r&&Se(r)?le(r):r;let m=g,h=Hr(m);for(;h&&r&&y!==m;){const d=yt(h),p=h.getBoundingClientRect(),w=Ae(h),v=p.left+(h.clientLeft+parseFloat(w.paddingLeft))*d.x,S=p.top+(h.clientTop+parseFloat(w.paddingTop))*d.y;f*=d.x,c*=d.y,u*=d.x,l*=d.y,f+=v,c+=S,m=le(h),h=Hr(m)}}return kn({width:u,height:l,x:f,y:c})}function Ti(e,t){const n=Kn(e).scrollLeft;return t?t.left+n:it(Ce(e)).left+n}function Ra(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),i=r.left+t.scrollLeft-(n?0:Ti(e,r)),o=r.top+t.scrollTop;return{x:i,y:o}}function cm(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const o=i==="fixed",s=Ce(r),a=t?Jn(t.floating):!1;if(r===s||a&&o)return n;let f={scrollLeft:0,scrollTop:0},c=Me(1);const u=Me(0),l=De(r);if((l||!l&&!o)&&((Mt(r)!=="body"||cn(s))&&(f=Kn(r)),De(r))){const y=it(r);c=yt(r),u.x=y.x+r.clientLeft,u.y=y.y+r.clientTop}const g=s&&!l&&!o?Ra(s,f,!0):Me(0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-f.scrollLeft*c.x+u.x+g.x,y:n.y*c.y-f.scrollTop*c.y+u.y+g.y}}function um(e){return Array.from(e.getClientRects())}function lm(e){const t=Ce(e),n=Kn(e),r=e.ownerDocument.body,i=et(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=et(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+Ti(e);const a=-n.scrollTop;return Ae(r).direction==="rtl"&&(s+=et(t.clientWidth,r.clientWidth)-i),{width:i,height:o,x:s,y:a}}function dm(e,t){const n=le(e),r=Ce(e),i=n.visualViewport;let o=r.clientWidth,s=r.clientHeight,a=0,f=0;if(i){o=i.width,s=i.height;const c=Ai();(!c||c&&t==="fixed")&&(a=i.offsetLeft,f=i.offsetTop)}return{width:o,height:s,x:a,y:f}}const hm=new Set(["absolute","fixed"]);function pm(e,t){const n=it(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,o=De(e)?yt(e):Me(1),s=e.clientWidth*o.x,a=e.clientHeight*o.y,f=i*o.x,c=r*o.y;return{width:s,height:a,x:f,y:c}}function Uo(e,t,n){let r;if(t==="viewport")r=dm(e,n);else if(t==="document")r=lm(Ce(e));else if(Se(t))r=pm(t,n);else{const i=Ta(e);r={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return kn(r)}function $a(e,t){const n=Ve(e);return n===t||!Se(n)||Et(n)?!1:Ae(n).position==="fixed"||$a(n,t)}function gm(e,t){const n=t.get(e);if(n)return n;let r=Zt(e,[],!1).filter(a=>Se(a)&&Mt(a)!=="body"),i=null;const o=Ae(e).position==="fixed";let s=o?Ve(e):e;for(;Se(s)&&!Et(s);){const a=Ae(s),f=Si(s);!f&&a.position==="fixed"&&(i=null),(o?!f&&!i:!f&&a.position==="static"&&!!i&&hm.has(i.position)||cn(s)&&!f&&$a(e,s))?r=r.filter(u=>u!==s):i=a,s=Ve(s)}return t.set(e,r),r}function mm(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const s=[...n==="clippingAncestors"?Jn(t)?[]:gm(t,this._c):[].concat(n),r],a=s[0],f=s.reduce((c,u)=>{const l=Uo(t,u,i);return c.top=et(l.top,c.top),c.right=At(l.right,c.right),c.bottom=At(l.bottom,c.bottom),c.left=et(l.left,c.left),c},Uo(t,a,i));return{width:f.right-f.left,height:f.bottom-f.top,x:f.left,y:f.top}}function ym(e){const{width:t,height:n}=Ea(e);return{width:t,height:n}}function bm(e,t,n){const r=De(t),i=Ce(t),o=n==="fixed",s=it(e,!0,o,t);let a={scrollLeft:0,scrollTop:0};const f=Me(0);function c(){f.x=Ti(i)}if(r||!r&&!o)if((Mt(t)!=="body"||cn(i))&&(a=Kn(t)),r){const y=it(t,!0,o,t);f.x=y.x+t.clientLeft,f.y=y.y+t.clientTop}else i&&c();o&&!r&&i&&c();const u=i&&!r&&!o?Ra(i,a):Me(0),l=s.left+a.scrollLeft-f.x-u.x,g=s.top+a.scrollTop-f.y-u.y;return{x:l,y:g,width:s.width,height:s.height}}function hr(e){return Ae(e).position==="static"}function Yo(e,t){if(!De(e)||Ae(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Ce(e)===n&&(n=n.ownerDocument.body),n}function _a(e,t){const n=le(e);if(Jn(e))return n;if(!De(e)){let i=Ve(e);for(;i&&!Et(i);){if(Se(i)&&!hr(i))return i;i=Ve(i)}return n}let r=Yo(e,t);for(;r&&em(r)&&hr(r);)r=Yo(r,t);return r&&Et(r)&&hr(r)&&!Si(r)?n:r||om(e)||n}const vm=async function(e){const t=this.getOffsetParent||_a,n=this.getDimensions,r=await n(e.floating);return{reference:bm(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function wm(e){return Ae(e).direction==="rtl"}const xm={convertOffsetParentRelativeRectToViewportRelativeRect:cm,getDocumentElement:Ce,getClippingRect:mm,getOffsetParent:_a,getElementRects:vm,getClientRects:um,getDimensions:ym,getScale:yt,isElement:Se,isRTL:wm};function Ma(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Om(e,t){let n=null,r;const i=Ce(e);function o(){var a;clearTimeout(r),(a=n)==null||a.disconnect(),n=null}function s(a,f){a===void 0&&(a=!1),f===void 0&&(f=1),o();const c=e.getBoundingClientRect(),{left:u,top:l,width:g,height:y}=c;if(a||t(),!g||!y)return;const m=xn(l),h=xn(i.clientWidth-(u+g)),d=xn(i.clientHeight-(l+y)),p=xn(u),v={rootMargin:-m+"px "+-h+"px "+-d+"px "+-p+"px",threshold:et(0,At(1,f))||1};let S=!0;function x(A){const _=A[0].intersectionRatio;if(_!==f){if(!S)return s();_?s(!1,_):r=setTimeout(()=>{s(!1,1e-7)},1e3)}_===1&&!Ma(c,e.getBoundingClientRect())&&s(),S=!1}try{n=new IntersectionObserver(x,{...v,root:i.ownerDocument})}catch{n=new IntersectionObserver(x,v)}n.observe(e)}return s(!0),o}function Ky(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:f=!1}=r,c=Ei(e),u=i||o?[...c?Zt(c):[],...Zt(t)]:[];u.forEach(p=>{i&&p.addEventListener("scroll",n,{passive:!0}),o&&p.addEventListener("resize",n)});const l=c&&a?Om(c,n):null;let g=-1,y=null;s&&(y=new ResizeObserver(p=>{let[w]=p;w&&w.target===c&&y&&(y.unobserve(t),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var v;(v=y)==null||v.observe(t)})),n()}),c&&!f&&y.observe(c),y.observe(t));let m,h=f?it(e):null;f&&d();function d(){const p=it(e);h&&!Ma(h,p)&&n(),h=p,m=requestAnimationFrame(d)}return n(),()=>{var p;u.forEach(w=>{i&&w.removeEventListener("scroll",n),o&&w.removeEventListener("resize",n)}),l==null||l(),(p=y)==null||p.disconnect(),y=null,f&&cancelAnimationFrame(m)}}const Zy=Oi,Qy=Jg,eb=Kg,tb=Vg,nb=zg,rb=(e,t,n)=>{const r=new Map,i={platform:xm,...n},o={...i.platform,_c:r};return Wg(e,t,{...i,platform:o})};function Pa(e,t){return function(){return e.apply(t,arguments)}}const{toString:Sm}=Object.prototype,{getPrototypeOf:Ri}=Object,{iterator:Zn,toStringTag:Fa}=Symbol,Qn=(e=>t=>{const n=Sm.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Re=e=>(e=e.toLowerCase(),t=>Qn(t)===e),er=e=>t=>typeof t===e,{isArray:Pt}=Array,Qt=er("undefined");function un(e){return e!==null&&!Qt(e)&&e.constructor!==null&&!Qt(e.constructor)&&se(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Da=Re("ArrayBuffer");function Am(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Da(e.buffer),t}const Em=er("string"),se=er("function"),Ca=er("number"),ln=e=>e!==null&&typeof e=="object",Tm=e=>e===!0||e===!1,Mn=e=>{if(Qn(e)!=="object")return!1;const t=Ri(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Fa in e)&&!(Zn in e)},Rm=e=>{if(!ln(e)||un(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},$m=Re("Date"),_m=Re("File"),Mm=Re("Blob"),Pm=Re("FileList"),Fm=e=>ln(e)&&se(e.pipe),Dm=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||se(e.append)&&((t=Qn(e))==="formdata"||t==="object"&&se(e.toString)&&e.toString()==="[object FormData]"))},Cm=Re("URLSearchParams"),[Lm,Nm,jm,km]=["ReadableStream","Request","Response","Headers"].map(Re),Bm=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function dn(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,i;if(typeof e!="object"&&(e=[e]),Pt(e))for(r=0,i=e.length;r0;)if(i=n[r],t===i.toLowerCase())return i;return null}const Ze=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Na=e=>!Qt(e)&&e!==Ze;function qr(){const{caseless:e}=Na(this)&&this||{},t={},n=(r,i)=>{const o=e&&La(t,i)||i;Mn(t[o])&&Mn(r)?t[o]=qr(t[o],r):Mn(r)?t[o]=qr({},r):Pt(r)?t[o]=r.slice():t[o]=r};for(let r=0,i=arguments.length;r(dn(t,(i,o)=>{n&&se(i)?e[o]=Pa(i,n):e[o]=i},{allOwnKeys:r}),e),Hm=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),qm=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},Um=(e,t,n,r)=>{let i,o,s;const a={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),o=i.length;o-- >0;)s=i[o],(!r||r(s,e,t))&&!a[s]&&(t[s]=e[s],a[s]=!0);e=n!==!1&&Ri(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Ym=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},Wm=e=>{if(!e)return null;if(Pt(e))return e;let t=e.length;if(!Ca(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},zm=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Ri(Uint8Array)),Vm=(e,t)=>{const r=(e&&e[Zn]).call(e);let i;for(;(i=r.next())&&!i.done;){const o=i.value;t.call(e,o[0],o[1])}},Gm=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},Xm=Re("HTMLFormElement"),Jm=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,i){return r.toUpperCase()+i}),Wo=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Km=Re("RegExp"),ja=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};dn(n,(i,o)=>{let s;(s=t(i,o,e))!==!1&&(r[o]=s||i)}),Object.defineProperties(e,r)},Zm=e=>{ja(e,(t,n)=>{if(se(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(se(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},Qm=(e,t)=>{const n={},r=i=>{i.forEach(o=>{n[o]=!0})};return Pt(e)?r(e):r(String(e).split(t)),n},e0=()=>{},t0=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function n0(e){return!!(e&&se(e.append)&&e[Fa]==="FormData"&&e[Zn])}const r0=e=>{const t=new Array(10),n=(r,i)=>{if(ln(r)){if(t.indexOf(r)>=0)return;if(un(r))return r;if(!("toJSON"in r)){t[i]=r;const o=Pt(r)?[]:{};return dn(r,(s,a)=>{const f=n(s,i+1);!Qt(f)&&(o[a]=f)}),t[i]=void 0,o}}return r};return n(e,0)},i0=Re("AsyncFunction"),o0=e=>e&&(ln(e)||se(e))&&se(e.then)&&se(e.catch),ka=((e,t)=>e?setImmediate:t?((n,r)=>(Ze.addEventListener("message",({source:i,data:o})=>{i===Ze&&o===n&&r.length&&r.shift()()},!1),i=>{r.push(i),Ze.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",se(Ze.postMessage)),s0=typeof queueMicrotask<"u"?queueMicrotask.bind(Ze):typeof process<"u"&&process.nextTick||ka,a0=e=>e!=null&&se(e[Zn]),b={isArray:Pt,isArrayBuffer:Da,isBuffer:un,isFormData:Dm,isArrayBufferView:Am,isString:Em,isNumber:Ca,isBoolean:Tm,isObject:ln,isPlainObject:Mn,isEmptyObject:Rm,isReadableStream:Lm,isRequest:Nm,isResponse:jm,isHeaders:km,isUndefined:Qt,isDate:$m,isFile:_m,isBlob:Mm,isRegExp:Km,isFunction:se,isStream:Fm,isURLSearchParams:Cm,isTypedArray:zm,isFileList:Pm,forEach:dn,merge:qr,extend:Im,trim:Bm,stripBOM:Hm,inherits:qm,toFlatObject:Um,kindOf:Qn,kindOfTest:Re,endsWith:Ym,toArray:Wm,forEachEntry:Vm,matchAll:Gm,isHTMLForm:Xm,hasOwnProperty:Wo,hasOwnProp:Wo,reduceDescriptors:ja,freezeMethods:Zm,toObjectSet:Qm,toCamelCase:Jm,noop:e0,toFiniteNumber:t0,findKey:La,global:Ze,isContextDefined:Na,isSpecCompliantForm:n0,toJSONObject:r0,isAsyncFn:i0,isThenable:o0,setImmediate:ka,asap:s0,isIterable:a0};function B(e,t,n,r,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i,this.status=i.status?i.status:null)}b.inherits(B,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:b.toJSONObject(this.config),code:this.code,status:this.status}}});const Ba=B.prototype,Ia={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{Ia[e]={value:e}});Object.defineProperties(B,Ia);Object.defineProperty(Ba,"isAxiosError",{value:!0});B.from=(e,t,n,r,i,o)=>{const s=Object.create(Ba);return b.toFlatObject(e,s,function(f){return f!==Error.prototype},a=>a!=="isAxiosError"),B.call(s,e.message,t,n,r,i),s.cause=e,s.name=e.name,o&&Object.assign(s,o),s};const f0=null;function Ur(e){return b.isPlainObject(e)||b.isArray(e)}function Ha(e){return b.endsWith(e,"[]")?e.slice(0,-2):e}function zo(e,t,n){return e?e.concat(t).map(function(i,o){return i=Ha(i),!n&&o?"["+i+"]":i}).join(n?".":""):t}function c0(e){return b.isArray(e)&&!e.some(Ur)}const u0=b.toFlatObject(b,{},null,function(t){return/^is[A-Z]/.test(t)});function tr(e,t,n){if(!b.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=b.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(h,d){return!b.isUndefined(d[h])});const r=n.metaTokens,i=n.visitor||u,o=n.dots,s=n.indexes,f=(n.Blob||typeof Blob<"u"&&Blob)&&b.isSpecCompliantForm(t);if(!b.isFunction(i))throw new TypeError("visitor must be a function");function c(m){if(m===null)return"";if(b.isDate(m))return m.toISOString();if(b.isBoolean(m))return m.toString();if(!f&&b.isBlob(m))throw new B("Blob is not supported. Use a Buffer instead.");return b.isArrayBuffer(m)||b.isTypedArray(m)?f&&typeof Blob=="function"?new Blob([m]):Buffer.from(m):m}function u(m,h,d){let p=m;if(m&&!d&&typeof m=="object"){if(b.endsWith(h,"{}"))h=r?h:h.slice(0,-2),m=JSON.stringify(m);else if(b.isArray(m)&&c0(m)||(b.isFileList(m)||b.endsWith(h,"[]"))&&(p=b.toArray(m)))return h=Ha(h),p.forEach(function(v,S){!(b.isUndefined(v)||v===null)&&t.append(s===!0?zo([h],S,o):s===null?h:h+"[]",c(v))}),!1}return Ur(m)?!0:(t.append(zo(d,h,o),c(m)),!1)}const l=[],g=Object.assign(u0,{defaultVisitor:u,convertValue:c,isVisitable:Ur});function y(m,h){if(!b.isUndefined(m)){if(l.indexOf(m)!==-1)throw Error("Circular reference detected in "+h.join("."));l.push(m),b.forEach(m,function(p,w){(!(b.isUndefined(p)||p===null)&&i.call(t,p,b.isString(w)?w.trim():w,h,g))===!0&&y(p,h?h.concat(w):[w])}),l.pop()}}if(!b.isObject(e))throw new TypeError("data must be an object");return y(e),t}function Vo(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function $i(e,t){this._pairs=[],e&&tr(e,this,t)}const qa=$i.prototype;qa.append=function(t,n){this._pairs.push([t,n])};qa.toString=function(t){const n=t?function(r){return t.call(this,r,Vo)}:Vo;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function l0(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Ua(e,t,n){if(!t)return e;const r=n&&n.encode||l0;b.isFunction(n)&&(n={serialize:n});const i=n&&n.serialize;let o;if(i?o=i(t,n):o=b.isURLSearchParams(t)?t.toString():new $i(t,n).toString(r),o){const s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class Go{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){b.forEach(this.handlers,function(r){r!==null&&t(r)})}}const Ya={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},d0=typeof URLSearchParams<"u"?URLSearchParams:$i,h0=typeof FormData<"u"?FormData:null,p0=typeof Blob<"u"?Blob:null,g0={isBrowser:!0,classes:{URLSearchParams:d0,FormData:h0,Blob:p0},protocols:["http","https","file","blob","url","data"]},_i=typeof window<"u"&&typeof document<"u",Yr=typeof navigator=="object"&&navigator||void 0,m0=_i&&(!Yr||["ReactNative","NativeScript","NS"].indexOf(Yr.product)<0),y0=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",b0=_i&&window.location.href||"http://localhost",v0=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:_i,hasStandardBrowserEnv:m0,hasStandardBrowserWebWorkerEnv:y0,navigator:Yr,origin:b0},Symbol.toStringTag,{value:"Module"})),Z={...v0,...g0};function w0(e,t){return tr(e,new Z.classes.URLSearchParams,{visitor:function(n,r,i,o){return Z.isNode&&b.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)},...t})}function x0(e){return b.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function O0(e){const t={},n=Object.keys(e);let r;const i=n.length;let o;for(r=0;r=n.length;return s=!s&&b.isArray(i)?i.length:s,f?(b.hasOwnProp(i,s)?i[s]=[i[s],r]:i[s]=r,!a):((!i[s]||!b.isObject(i[s]))&&(i[s]=[]),t(n,r,i[s],o)&&b.isArray(i[s])&&(i[s]=O0(i[s])),!a)}if(b.isFormData(e)&&b.isFunction(e.entries)){const n={};return b.forEachEntry(e,(r,i)=>{t(x0(r),i,n,0)}),n}return null}function S0(e,t,n){if(b.isString(e))try{return(t||JSON.parse)(e),b.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const hn={transitional:Ya,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",i=r.indexOf("application/json")>-1,o=b.isObject(t);if(o&&b.isHTMLForm(t)&&(t=new FormData(t)),b.isFormData(t))return i?JSON.stringify(Wa(t)):t;if(b.isArrayBuffer(t)||b.isBuffer(t)||b.isStream(t)||b.isFile(t)||b.isBlob(t)||b.isReadableStream(t))return t;if(b.isArrayBufferView(t))return t.buffer;if(b.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let a;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return w0(t,this.formSerializer).toString();if((a=b.isFileList(t))||r.indexOf("multipart/form-data")>-1){const f=this.env&&this.env.FormData;return tr(a?{"files[]":t}:t,f&&new f,this.formSerializer)}}return o||i?(n.setContentType("application/json",!1),S0(t)):t}],transformResponse:[function(t){const n=this.transitional||hn.transitional,r=n&&n.forcedJSONParsing,i=this.responseType==="json";if(b.isResponse(t)||b.isReadableStream(t))return t;if(t&&b.isString(t)&&(r&&!this.responseType||i)){const s=!(n&&n.silentJSONParsing)&&i;try{return JSON.parse(t)}catch(a){if(s)throw a.name==="SyntaxError"?B.from(a,B.ERR_BAD_RESPONSE,this,null,this.response):a}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Z.classes.FormData,Blob:Z.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};b.forEach(["delete","get","head","post","put","patch"],e=>{hn.headers[e]={}});const A0=b.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),E0=e=>{const t={};let n,r,i;return e&&e.split(` `).forEach(function(s){i=s.indexOf(":"),n=s.substring(0,i).trim().toLowerCase(),r=s.substring(i+1).trim(),!(!n||t[n]&&A0[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},Xo=Symbol("internals");function jt(e){return e&&String(e).trim().toLowerCase()}function Pn(e){return e===!1||e==null?e:b.isArray(e)?e.map(Pn):String(e)}function T0(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const R0=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function pr(e,t,n,r,i){if(b.isFunction(r))return r.call(this,t,n);if(i&&(t=n),!!b.isString(t)){if(b.isString(r))return t.indexOf(r)!==-1;if(b.isRegExp(r))return r.test(t)}}function $0(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function _0(e,t){const n=b.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(i,o,s){return this[r].call(this,t,i,o,s)},configurable:!0})})}let ae=class{constructor(t){t&&this.set(t)}set(t,n,r){const i=this;function o(a,f,c){const u=jt(f);if(!u)throw new Error("header name must be a non-empty string");const l=b.findKey(i,u);(!l||i[l]===void 0||c===!0||c===void 0&&i[l]!==!1)&&(i[l||f]=Pn(a))}const s=(a,f)=>b.forEach(a,(c,u)=>o(c,u,f));if(b.isPlainObject(t)||t instanceof this.constructor)s(t,n);else if(b.isString(t)&&(t=t.trim())&&!R0(t))s(E0(t),n);else if(b.isObject(t)&&b.isIterable(t)){let a={},f,c;for(const u of t){if(!b.isArray(u))throw TypeError("Object iterator must return a key-value pair");a[c=u[0]]=(f=a[c])?b.isArray(f)?[...f,u[1]]:[f,u[1]]:u[1]}s(a,n)}else t!=null&&o(n,t,r);return this}get(t,n){if(t=jt(t),t){const r=b.findKey(this,t);if(r){const i=this[r];if(!n)return i;if(n===!0)return T0(i);if(b.isFunction(n))return n.call(this,i,r);if(b.isRegExp(n))return n.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=jt(t),t){const r=b.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||pr(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let i=!1;function o(s){if(s=jt(s),s){const a=b.findKey(r,s);a&&(!n||pr(r,r[a],a,n))&&(delete r[a],i=!0)}}return b.isArray(t)?t.forEach(o):o(t),i}clear(t){const n=Object.keys(this);let r=n.length,i=!1;for(;r--;){const o=n[r];(!t||pr(this,this[o],o,t,!0))&&(delete this[o],i=!0)}return i}normalize(t){const n=this,r={};return b.forEach(this,(i,o)=>{const s=b.findKey(r,o);if(s){n[s]=Pn(i),delete n[o];return}const a=t?$0(o):String(o).trim();a!==o&&delete n[o],n[a]=Pn(i),r[a]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return b.forEach(this,(r,i)=>{r!=null&&r!==!1&&(n[i]=t&&b.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` `)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(i=>r.set(i)),r}static accessor(t){const r=(this[Xo]=this[Xo]={accessors:{}}).accessors,i=this.prototype;function o(s){const a=jt(s);r[a]||(_0(i,s),r[a]=!0)}return b.isArray(t)?t.forEach(o):o(t),this}};ae.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);b.reduceDescriptors(ae.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});b.freezeMethods(ae);function gr(e,t){const n=this||hn,r=t||n,i=ae.from(r.headers);let o=r.data;return b.forEach(e,function(a){o=a.call(n,o,i.normalize(),t?t.status:void 0)}),i.normalize(),o}function za(e){return!!(e&&e.__CANCEL__)}function Ft(e,t,n){B.call(this,e??"canceled",B.ERR_CANCELED,t,n),this.name="CanceledError"}b.inherits(Ft,B,{__CANCEL__:!0});function Va(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new B("Request failed with status code "+n.status,[B.ERR_BAD_REQUEST,B.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function M0(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function P0(e,t){e=e||10;const n=new Array(e),r=new Array(e);let i=0,o=0,s;return t=t!==void 0?t:1e3,function(f){const c=Date.now(),u=r[o];s||(s=c),n[i]=f,r[i]=c;let l=o,g=0;for(;l!==i;)g+=n[l++],l=l%e;if(i=(i+1)%e,i===o&&(o=(o+1)%e),c-s{n=u,i=null,o&&(clearTimeout(o),o=null),e(...c)};return[(...c)=>{const u=Date.now(),l=u-n;l>=r?s(c,u):(i=c,o||(o=setTimeout(()=>{o=null,s(i)},r-l)))},()=>i&&s(i)]}const Bn=(e,t,n=3)=>{let r=0;const i=P0(50,250);return F0(o=>{const s=o.loaded,a=o.lengthComputable?o.total:void 0,f=s-r,c=i(f),u=s<=a;r=s;const l={loaded:s,total:a,progress:a?s/a:void 0,bytes:f,rate:c||void 0,estimated:c&&a&&u?(a-s)/c:void 0,event:o,lengthComputable:a!=null,[t?"download":"upload"]:!0};e(l)},n)},Jo=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Ko=e=>(...t)=>b.asap(()=>e(...t)),D0=Z.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,Z.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(Z.origin),Z.navigator&&/(msie|trident)/i.test(Z.navigator.userAgent)):()=>!0,C0=Z.hasStandardBrowserEnv?{write(e,t,n,r,i,o){const s=[e+"="+encodeURIComponent(t)];b.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),b.isString(r)&&s.push("path="+r),b.isString(i)&&s.push("domain="+i),o===!0&&s.push("secure"),document.cookie=s.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function L0(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function N0(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Ga(e,t,n){let r=!L0(t);return e&&(r||n==!1)?N0(e,t):t}const Zo=e=>e instanceof ae?{...e}:e;function ot(e,t){t=t||{};const n={};function r(c,u,l,g){return b.isPlainObject(c)&&b.isPlainObject(u)?b.merge.call({caseless:g},c,u):b.isPlainObject(u)?b.merge({},u):b.isArray(u)?u.slice():u}function i(c,u,l,g){if(b.isUndefined(u)){if(!b.isUndefined(c))return r(void 0,c,l,g)}else return r(c,u,l,g)}function o(c,u){if(!b.isUndefined(u))return r(void 0,u)}function s(c,u){if(b.isUndefined(u)){if(!b.isUndefined(c))return r(void 0,c)}else return r(void 0,u)}function a(c,u,l){if(l in t)return r(c,u);if(l in e)return r(void 0,c)}const f={url:o,method:o,data:o,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:a,headers:(c,u,l)=>i(Zo(c),Zo(u),l,!0)};return b.forEach(Object.keys({...e,...t}),function(u){const l=f[u]||i,g=l(e[u],t[u],u);b.isUndefined(g)&&l!==a||(n[u]=g)}),n}const Xa=e=>{const t=ot({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:i,xsrfCookieName:o,headers:s,auth:a}=t;t.headers=s=ae.from(s),t.url=Ua(Ga(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),a&&s.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?unescape(encodeURIComponent(a.password)):"")));let f;if(b.isFormData(n)){if(Z.hasStandardBrowserEnv||Z.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if((f=s.getContentType())!==!1){const[c,...u]=f?f.split(";").map(l=>l.trim()).filter(Boolean):[];s.setContentType([c||"multipart/form-data",...u].join("; "))}}if(Z.hasStandardBrowserEnv&&(r&&b.isFunction(r)&&(r=r(t)),r||r!==!1&&D0(t.url))){const c=i&&o&&C0.read(o);c&&s.set(i,c)}return t},j0=typeof XMLHttpRequest<"u",k0=j0&&function(e){return new Promise(function(n,r){const i=Xa(e);let o=i.data;const s=ae.from(i.headers).normalize();let{responseType:a,onUploadProgress:f,onDownloadProgress:c}=i,u,l,g,y,m;function h(){y&&y(),m&&m(),i.cancelToken&&i.cancelToken.unsubscribe(u),i.signal&&i.signal.removeEventListener("abort",u)}let d=new XMLHttpRequest;d.open(i.method.toUpperCase(),i.url,!0),d.timeout=i.timeout;function p(){if(!d)return;const v=ae.from("getAllResponseHeaders"in d&&d.getAllResponseHeaders()),x={data:!a||a==="text"||a==="json"?d.responseText:d.response,status:d.status,statusText:d.statusText,headers:v,config:e,request:d};Va(function(_){n(_),h()},function(_){r(_),h()},x),d=null}"onloadend"in d?d.onloadend=p:d.onreadystatechange=function(){!d||d.readyState!==4||d.status===0&&!(d.responseURL&&d.responseURL.indexOf("file:")===0)||setTimeout(p)},d.onabort=function(){d&&(r(new B("Request aborted",B.ECONNABORTED,e,d)),d=null)},d.onerror=function(){r(new B("Network Error",B.ERR_NETWORK,e,d)),d=null},d.ontimeout=function(){let S=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const x=i.transitional||Ya;i.timeoutErrorMessage&&(S=i.timeoutErrorMessage),r(new B(S,x.clarifyTimeoutError?B.ETIMEDOUT:B.ECONNABORTED,e,d)),d=null},o===void 0&&s.setContentType(null),"setRequestHeader"in d&&b.forEach(s.toJSON(),function(S,x){d.setRequestHeader(x,S)}),b.isUndefined(i.withCredentials)||(d.withCredentials=!!i.withCredentials),a&&a!=="json"&&(d.responseType=i.responseType),c&&([g,m]=Bn(c,!0),d.addEventListener("progress",g)),f&&d.upload&&([l,y]=Bn(f),d.upload.addEventListener("progress",l),d.upload.addEventListener("loadend",y)),(i.cancelToken||i.signal)&&(u=v=>{d&&(r(!v||v.type?new Ft(null,e,d):v),d.abort(),d=null)},i.cancelToken&&i.cancelToken.subscribe(u),i.signal&&(i.signal.aborted?u():i.signal.addEventListener("abort",u)));const w=M0(i.url);if(w&&Z.protocols.indexOf(w)===-1){r(new B("Unsupported protocol "+w+":",B.ERR_BAD_REQUEST,e));return}d.send(o||null)})},B0=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,i;const o=function(c){if(!i){i=!0,a();const u=c instanceof Error?c:this.reason;r.abort(u instanceof B?u:new Ft(u instanceof Error?u.message:u))}};let s=t&&setTimeout(()=>{s=null,o(new B(`timeout ${t} of ms exceeded`,B.ETIMEDOUT))},t);const a=()=>{e&&(s&&clearTimeout(s),s=null,e.forEach(c=>{c.unsubscribe?c.unsubscribe(o):c.removeEventListener("abort",o)}),e=null)};e.forEach(c=>c.addEventListener("abort",o));const{signal:f}=r;return f.unsubscribe=()=>b.asap(a),f}},I0=function*(e,t){let n=e.byteLength;if(n{const i=H0(e,t);let o=0,s,a=f=>{s||(s=!0,r&&r(f))};return new ReadableStream({async pull(f){try{const{done:c,value:u}=await i.next();if(c){a(),f.close();return}let l=u.byteLength;if(n){let g=o+=l;n(g)}f.enqueue(new Uint8Array(u))}catch(c){throw a(c),c}},cancel(f){return a(f),i.return()}},{highWaterMark:2})},nr=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Ja=nr&&typeof ReadableStream=="function",U0=nr&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),Ka=(e,...t)=>{try{return!!e(...t)}catch{return!1}},Y0=Ja&&Ka(()=>{let e=!1;const t=new Request(Z.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),es=64*1024,Wr=Ja&&Ka(()=>b.isReadableStream(new Response("").body)),In={stream:Wr&&(e=>e.body)};nr&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!In[t]&&(In[t]=b.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new B(`Response type '${t}' is not supported`,B.ERR_NOT_SUPPORT,r)})})})(new Response);const W0=async e=>{if(e==null)return 0;if(b.isBlob(e))return e.size;if(b.isSpecCompliantForm(e))return(await new Request(Z.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(b.isArrayBufferView(e)||b.isArrayBuffer(e))return e.byteLength;if(b.isURLSearchParams(e)&&(e=e+""),b.isString(e))return(await U0(e)).byteLength},z0=async(e,t)=>{const n=b.toFiniteNumber(e.getContentLength());return n??W0(t)},V0=nr&&(async e=>{let{url:t,method:n,data:r,signal:i,cancelToken:o,timeout:s,onDownloadProgress:a,onUploadProgress:f,responseType:c,headers:u,withCredentials:l="same-origin",fetchOptions:g}=Xa(e);c=c?(c+"").toLowerCase():"text";let y=B0([i,o&&o.toAbortSignal()],s),m;const h=y&&y.unsubscribe&&(()=>{y.unsubscribe()});let d;try{if(f&&Y0&&n!=="get"&&n!=="head"&&(d=await z0(u,r))!==0){let x=new Request(t,{method:"POST",body:r,duplex:"half"}),A;if(b.isFormData(r)&&(A=x.headers.get("content-type"))&&u.setContentType(A),x.body){const[_,F]=Jo(d,Bn(Ko(f)));r=Qo(x.body,es,_,F)}}b.isString(l)||(l=l?"include":"omit");const p="credentials"in Request.prototype;m=new Request(t,{...g,signal:y,method:n.toUpperCase(),headers:u.normalize().toJSON(),body:r,duplex:"half",credentials:p?l:void 0});let w=await fetch(m,g);const v=Wr&&(c==="stream"||c==="response");if(Wr&&(a||v&&h)){const x={};["status","statusText","headers"].forEach(L=>{x[L]=w[L]});const A=b.toFiniteNumber(w.headers.get("content-length")),[_,F]=a&&Jo(A,Bn(Ko(a),!0))||[];w=new Response(Qo(w.body,es,_,()=>{F&&F(),h&&h()}),x)}c=c||"text";let S=await In[b.findKey(In,c)||"text"](w,e);return!v&&h&&h(),await new Promise((x,A)=>{Va(x,A,{data:S,headers:ae.from(w.headers),status:w.status,statusText:w.statusText,config:e,request:m})})}catch(p){throw h&&h(),p&&p.name==="TypeError"&&/Load failed|fetch/i.test(p.message)?Object.assign(new B("Network Error",B.ERR_NETWORK,e,m),{cause:p.cause||p}):B.from(p,p&&p.code,e,m)}}),zr={http:f0,xhr:k0,fetch:V0};b.forEach(zr,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const ts=e=>`- ${e}`,G0=e=>b.isFunction(e)||e===null||e===!1,Za={getAdapter:e=>{e=b.isArray(e)?e:[e];const{length:t}=e;let n,r;const i={};for(let o=0;o`adapter ${a} `+(f===!1?"is not supported by the environment":"is not available in the build"));let s=t?o.length>1?`since : `+o.map(ts).join(` `):" "+ts(o[0]):"as no adapter specified";throw new B("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return r},adapters:zr};function mr(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Ft(null,e)}function ns(e){return mr(e),e.headers=ae.from(e.headers),e.data=gr.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Za.getAdapter(e.adapter||hn.adapter)(e).then(function(r){return mr(e),r.data=gr.call(e,e.transformResponse,r),r.headers=ae.from(r.headers),r},function(r){return za(r)||(mr(e),r&&r.response&&(r.response.data=gr.call(e,e.transformResponse,r.response),r.response.headers=ae.from(r.response.headers))),Promise.reject(r)})}const Qa="1.11.0",rr={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{rr[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const rs={};rr.transitional=function(t,n,r){function i(o,s){return"[Axios v"+Qa+"] Transitional option '"+o+"'"+s+(r?". "+r:"")}return(o,s,a)=>{if(t===!1)throw new B(i(s," has been removed"+(n?" in "+n:"")),B.ERR_DEPRECATED);return n&&!rs[s]&&(rs[s]=!0,console.warn(i(s," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(o,s,a):!0}};rr.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function X0(e,t,n){if(typeof e!="object")throw new B("options must be an object",B.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let i=r.length;for(;i-- >0;){const o=r[i],s=t[o];if(s){const a=e[o],f=a===void 0||s(a,o,e);if(f!==!0)throw new B("option "+o+" must be "+f,B.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new B("Unknown option "+o,B.ERR_BAD_OPTION)}}const Fn={assertOptions:X0,validators:rr},$e=Fn.validators;let tt=class{constructor(t){this.defaults=t||{},this.interceptors={request:new Go,response:new Go}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let i={};Error.captureStackTrace?Error.captureStackTrace(i):i=new Error;const o=i.stack?i.stack.replace(/^.+\n/,""):"";try{r.stack?o&&!String(r.stack).endsWith(o.replace(/^.+\n.+\n/,""))&&(r.stack+=` `+o):r.stack=o}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=ot(this.defaults,n);const{transitional:r,paramsSerializer:i,headers:o}=n;r!==void 0&&Fn.assertOptions(r,{silentJSONParsing:$e.transitional($e.boolean),forcedJSONParsing:$e.transitional($e.boolean),clarifyTimeoutError:$e.transitional($e.boolean)},!1),i!=null&&(b.isFunction(i)?n.paramsSerializer={serialize:i}:Fn.assertOptions(i,{encode:$e.function,serialize:$e.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),Fn.assertOptions(n,{baseUrl:$e.spelling("baseURL"),withXsrfToken:$e.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let s=o&&b.merge(o.common,o[n.method]);o&&b.forEach(["delete","get","head","post","put","patch","common"],m=>{delete o[m]}),n.headers=ae.concat(s,o);const a=[];let f=!0;this.interceptors.request.forEach(function(h){typeof h.runWhen=="function"&&h.runWhen(n)===!1||(f=f&&h.synchronous,a.unshift(h.fulfilled,h.rejected))});const c=[];this.interceptors.response.forEach(function(h){c.push(h.fulfilled,h.rejected)});let u,l=0,g;if(!f){const m=[ns.bind(this),void 0];for(m.unshift(...a),m.push(...c),g=m.length,u=Promise.resolve(n);l{if(!r._listeners)return;let o=r._listeners.length;for(;o-- >0;)r._listeners[o](i);r._listeners=null}),this.promise.then=i=>{let o;const s=new Promise(a=>{r.subscribe(a),o=a}).then(i);return s.cancel=function(){r.unsubscribe(o)},s},t(function(o,s,a){r.reason||(r.reason=new Ft(o,s,a),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new ef(function(i){t=i}),cancel:t}}};function K0(e){return function(n){return e.apply(null,n)}}function Z0(e){return b.isObject(e)&&e.isAxiosError===!0}const Vr={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Vr).forEach(([e,t])=>{Vr[t]=e});function tf(e){const t=new tt(e),n=Pa(tt.prototype.request,t);return b.extend(n,tt.prototype,t,{allOwnKeys:!0}),b.extend(n,t,null,{allOwnKeys:!0}),n.create=function(i){return tf(ot(e,i))},n}const V=tf(hn);V.Axios=tt;V.CanceledError=Ft;V.CancelToken=J0;V.isCancel=za;V.VERSION=Qa;V.toFormData=tr;V.AxiosError=B;V.Cancel=V.CanceledError;V.all=function(t){return Promise.all(t)};V.spread=K0;V.isAxiosError=Z0;V.mergeConfig=ot;V.AxiosHeaders=ae;V.formToJSON=e=>Wa(b.isHTMLForm(e)?new FormData(e):e);V.getAdapter=Za.getAdapter;V.HttpStatusCode=Vr;V.default=V;const{Axios:sb,AxiosError:ab,CanceledError:fb,isCancel:cb,CancelToken:ub,VERSION:lb,all:db,Cancel:hb,isAxiosError:pb,spread:gb,toFormData:mb,AxiosHeaders:yb,HttpStatusCode:bb,formToJSON:vb,getAdapter:wb,mergeConfig:xb}=V;/*! * @kurkle/color v0.3.4 * https://github.com/kurkle/color#readme * (c) 2024 Jukka Kurkela * Released under the MIT License */function pn(e){return e+.5|0}const We=(e,t,n)=>Math.max(Math.min(e,n),t);function Bt(e){return We(pn(e*2.55),0,255)}function ze(e){return We(pn(e*255),0,255)}function Ne(e){return We(pn(e/2.55)/100,0,1)}function is(e){return We(pn(e*100),0,100)}const he={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},Gr=[..."0123456789ABCDEF"],Q0=e=>Gr[e&15],ey=e=>Gr[(e&240)>>4]+Gr[e&15],On=e=>(e&240)>>4===(e&15),ty=e=>On(e.r)&&On(e.g)&&On(e.b)&&On(e.a);function ny(e){var t=e.length,n;return e[0]==="#"&&(t===4||t===5?n={r:255&he[e[1]]*17,g:255&he[e[2]]*17,b:255&he[e[3]]*17,a:t===5?he[e[4]]*17:255}:(t===7||t===9)&&(n={r:he[e[1]]<<4|he[e[2]],g:he[e[3]]<<4|he[e[4]],b:he[e[5]]<<4|he[e[6]],a:t===9?he[e[7]]<<4|he[e[8]]:255})),n}const ry=(e,t)=>e<255?t(e):"";function iy(e){var t=ty(e)?Q0:ey;return e?"#"+t(e.r)+t(e.g)+t(e.b)+ry(e.a,t):void 0}const oy=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function nf(e,t,n){const r=t*Math.min(n,1-n),i=(o,s=(o+e/30)%12)=>n-r*Math.max(Math.min(s-3,9-s,1),-1);return[i(0),i(8),i(4)]}function sy(e,t,n){const r=(i,o=(i+e/60)%6)=>n-n*t*Math.max(Math.min(o,4-o,1),0);return[r(5),r(3),r(1)]}function ay(e,t,n){const r=nf(e,1,.5);let i;for(t+n>1&&(i=1/(t+n),t*=i,n*=i),i=0;i<3;i++)r[i]*=1-t-n,r[i]+=t;return r}function fy(e,t,n,r,i){return e===i?(t-n)/r+(t.5?u/(2-o-s):u/(o+s),f=fy(n,r,i,u,o),f=f*60+.5),[f|0,c||0,a]}function Pi(e,t,n,r){return(Array.isArray(t)?e(t[0],t[1],t[2]):e(t,n,r)).map(ze)}function Fi(e,t,n){return Pi(nf,e,t,n)}function cy(e,t,n){return Pi(ay,e,t,n)}function uy(e,t,n){return Pi(sy,e,t,n)}function rf(e){return(e%360+360)%360}function ly(e){const t=oy.exec(e);let n=255,r;if(!t)return;t[5]!==r&&(n=t[6]?Bt(+t[5]):ze(+t[5]));const i=rf(+t[2]),o=+t[3]/100,s=+t[4]/100;return t[1]==="hwb"?r=cy(i,o,s):t[1]==="hsv"?r=uy(i,o,s):r=Fi(i,o,s),{r:r[0],g:r[1],b:r[2],a:n}}function dy(e,t){var n=Mi(e);n[0]=rf(n[0]+t),n=Fi(n),e.r=n[0],e.g=n[1],e.b=n[2]}function hy(e){if(!e)return;const t=Mi(e),n=t[0],r=is(t[1]),i=is(t[2]);return e.a<255?`hsla(${n}, ${r}%, ${i}%, ${Ne(e.a)})`:`hsl(${n}, ${r}%, ${i}%)`}const os={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},ss={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};function py(){const e={},t=Object.keys(ss),n=Object.keys(os);let r,i,o,s,a;for(r=0;r>16&255,o>>8&255,o&255]}return e}let Sn;function gy(e){Sn||(Sn=py(),Sn.transparent=[0,0,0,0]);const t=Sn[e.toLowerCase()];return t&&{r:t[0],g:t[1],b:t[2],a:t.length===4?t[3]:255}}const my=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;function yy(e){const t=my.exec(e);let n=255,r,i,o;if(t){if(t[7]!==r){const s=+t[7];n=t[8]?Bt(s):We(s*255,0,255)}return r=+t[1],i=+t[3],o=+t[5],r=255&(t[2]?Bt(r):We(r,0,255)),i=255&(t[4]?Bt(i):We(i,0,255)),o=255&(t[6]?Bt(o):We(o,0,255)),{r,g:i,b:o,a:n}}}function by(e){return e&&(e.a<255?`rgba(${e.r}, ${e.g}, ${e.b}, ${Ne(e.a)})`:`rgb(${e.r}, ${e.g}, ${e.b})`)}const yr=e=>e<=.0031308?e*12.92:Math.pow(e,1/2.4)*1.055-.055,pt=e=>e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4);function vy(e,t,n){const r=pt(Ne(e.r)),i=pt(Ne(e.g)),o=pt(Ne(e.b));return{r:ze(yr(r+n*(pt(Ne(t.r))-r))),g:ze(yr(i+n*(pt(Ne(t.g))-i))),b:ze(yr(o+n*(pt(Ne(t.b))-o))),a:e.a+n*(t.a-e.a)}}function An(e,t,n){if(e){let r=Mi(e);r[t]=Math.max(0,Math.min(r[t]+r[t]*n,t===0?360:1)),r=Fi(r),e.r=r[0],e.g=r[1],e.b=r[2]}}function of(e,t){return e&&Object.assign(t||{},e)}function as(e){var t={r:0,g:0,b:0,a:255};return Array.isArray(e)?e.length>=3&&(t={r:e[0],g:e[1],b:e[2],a:255},e.length>3&&(t.a=ze(e[3]))):(t=of(e,{r:0,g:0,b:0,a:1}),t.a=ze(t.a)),t}function wy(e){return e.charAt(0)==="r"?yy(e):ly(e)}class Xr{constructor(t){if(t instanceof Xr)return t;const n=typeof t;let r;n==="object"?r=as(t):n==="string"&&(r=ny(t)||gy(t)||wy(t)),this._rgb=r,this._valid=!!r}get valid(){return this._valid}get rgb(){var t=of(this._rgb);return t&&(t.a=Ne(t.a)),t}set rgb(t){this._rgb=as(t)}rgbString(){return this._valid?by(this._rgb):void 0}hexString(){return this._valid?iy(this._rgb):void 0}hslString(){return this._valid?hy(this._rgb):void 0}mix(t,n){if(t){const r=this.rgb,i=t.rgb;let o;const s=n===o?.5:n,a=2*s-1,f=r.a-i.a,c=((a*f===-1?a:(a+f)/(1+a*f))+1)/2;o=1-c,r.r=255&c*r.r+o*i.r+.5,r.g=255&c*r.g+o*i.g+.5,r.b=255&c*r.b+o*i.b+.5,r.a=s*r.a+(1-s)*i.a,this.rgb=r}return this}interpolate(t,n){return t&&(this._rgb=vy(this._rgb,t._rgb,n)),this}clone(){return new Xr(this.rgb)}alpha(t){return this._rgb.a=ze(t),this}clearer(t){const n=this._rgb;return n.a*=1-t,this}greyscale(){const t=this._rgb,n=pn(t.r*.3+t.g*.59+t.b*.11);return t.r=t.g=t.b=n,this}opaquer(t){const n=this._rgb;return n.a*=1+t,this}negate(){const t=this._rgb;return t.r=255-t.r,t.g=255-t.g,t.b=255-t.b,this}lighten(t){return An(this._rgb,2,t),this}darken(t){return An(this._rgb,2,-t),this}saturate(t){return An(this._rgb,1,t),this}desaturate(t){return An(this._rgb,1,-t),this}rotate(t){return dy(this._rgb,t),this}}export{si as A,Xy as B,Xr as C,My as D,zs as E,Fy as F,Ey as G,Dy as H,nb as I,rb as J,Qy as K,tb as L,eb as M,Ky as N,Zy as O,V as P,Gn as S,By as T,Jy as Y,Py as a,Iy as b,$y as c,fh as d,Ty as e,Ry as f,Mu as g,Sy as h,_y as i,xy as j,qy as k,Hy as l,Fu as m,Uy as n,Wy as o,Cy as p,zy as q,Vy as r,Ly as s,Ny as t,jy as u,Gy as v,Yy as w,Oy as x,ky as y,Ay as z};