mirror of
https://github.com/Wei-Shaw/claude-relay-service.git
synced 2026-01-22 16:43:35 +00:00
31 lines
120 KiB
JavaScript
31 lines
120 KiB
JavaScript
var oa=typeof global=="object"&&global&&global.Object===Object&&global,Ro=typeof self=="object"&&self&&self.Object===Object&&self,bt=oa||Ro||Function("return this")(),ut=bt.Symbol,sa=Object.prototype,Lo=sa.hasOwnProperty,Co=sa.toString,Oe=ut?ut.toStringTag:void 0;function jo(t){var e=Lo.call(t,Oe),n=t[Oe];try{t[Oe]=void 0;var r=!0}catch{}var i=Co.call(t);return r&&(e?t[Oe]=n:delete t[Oe]),i}var No=Object.prototype,Io=No.toString;function Ho(t){return Io.call(t)}var Yo="[object Null]",ko="[object Undefined]",Kr=ut?ut.toStringTag:void 0;function zt(t){return t==null?t===void 0?ko:Yo:Kr&&Kr in Object(t)?jo(t):Ho(t)}function At(t){return t!=null&&typeof t=="object"}var qo="[object Symbol]";function vn(t){return typeof t=="symbol"||At(t)&&zt(t)==qo}function lr(t,e){for(var n=-1,r=t==null?0:t.length,i=Array(r);++n<r;)i[n]=e(t[n],n,t);return i}var Z=Array.isArray,Jr=ut?ut.prototype:void 0,Qr=Jr?Jr.toString:void 0;function fa(t){if(typeof t=="string")return t;if(Z(t))return lr(t,fa)+"";if(vn(t))return Qr?Qr.call(t):"";var e=t+"";return e=="0"&&1/t==-1/0?"-0":e}var Bo=/\s/;function Wo(t){for(var e=t.length;e--&&Bo.test(t.charAt(e)););return e}var Uo=/^\s+/;function Go(t){return t&&t.slice(0,Wo(t)+1).replace(Uo,"")}function K(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}var ti=NaN,Vo=/^[-+]0x[0-9a-f]+$/i,Xo=/^0b[01]+$/i,zo=/^0o[0-7]+$/i,Zo=parseInt;function ei(t){if(typeof t=="number")return t;if(vn(t))return ti;if(K(t)){var e=typeof t.valueOf=="function"?t.valueOf():t;t=K(e)?e+"":e}if(typeof t!="string")return t===0?t:+t;t=Go(t);var n=Xo.test(t);return n||zo.test(t)?Zo(t.slice(2),n?2:8):Vo.test(t)?ti:+t}function dr(t){return t}var Ko="[object AsyncFunction]",Jo="[object Function]",Qo="[object GeneratorFunction]",ts="[object Proxy]";function hr(t){if(!K(t))return!1;var e=zt(t);return e==Jo||e==Qo||e==Ko||e==ts}var En=bt["__core-js_shared__"],ni=function(){var t=/[^.]+$/.exec(En&&En.keys&&En.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();function es(t){return!!ni&&ni in t}var ns=Function.prototype,rs=ns.toString;function Zt(t){if(t!=null){try{return rs.call(t)}catch{}try{return t+""}catch{}}return""}var is=/[\\^$.*+?()[\]{}|]/g,as=/^\[object .+?Constructor\]$/,os=Function.prototype,ss=Object.prototype,fs=os.toString,us=ss.hasOwnProperty,cs=RegExp("^"+fs.call(us).replace(is,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function ls(t){if(!K(t)||es(t))return!1;var e=hr(t)?cs:as;return e.test(Zt(t))}function ds(t,e){return t==null?void 0:t[e]}function Kt(t,e){var n=ds(t,e);return ls(n)?n:void 0}var Hn=Kt(bt,"WeakMap"),ri=Object.create,hs=function(){function t(){}return function(e){if(!K(e))return{};if(ri)return ri(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();function ps(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}function gs(){}function ua(t,e){var n=-1,r=t.length;for(e||(e=Array(r));++n<r;)e[n]=t[n];return e}var ms=800,vs=16,ys=Date.now;function bs(t){var e=0,n=0;return function(){var r=ys(),i=vs-(r-n);if(n=r,i>0){if(++e>=ms)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}function ws(t){return function(){return t}}var ln=function(){try{var t=Kt(Object,"defineProperty");return t({},"",{}),t}catch{}}(),xs=ln?function(t,e){return ln(t,"toString",{configurable:!0,enumerable:!1,value:ws(e),writable:!0})}:dr,ca=bs(xs);function Os(t,e){for(var n=-1,r=t==null?0:t.length;++n<r&&e(t[n],n,t)!==!1;);return t}function la(t,e,n,r){for(var i=t.length,a=n+(r?1:-1);r?a--:++a<i;)if(e(t[a],a,t))return a;return-1}function As(t){return t!==t}function $s(t,e,n){for(var r=n-1,i=t.length;++r<i;)if(t[r]===e)return r;return-1}function Ss(t,e,n){return e===e?$s(t,e,n):la(t,As,n)}function Ms(t,e){var n=t==null?0:t.length;return!!n&&Ss(t,e,0)>-1}var Ts=9007199254740991,_s=/^(?:0|[1-9]\d*)$/;function yn(t,e){var n=typeof t;return e=e??Ts,!!e&&(n=="number"||n!="symbol"&&_s.test(t))&&t>-1&&t%1==0&&t<e}function pr(t,e,n){e=="__proto__"&&ln?ln(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}function He(t,e){return t===e||t!==t&&e!==e}var Es=Object.prototype,Fs=Es.hasOwnProperty;function gr(t,e,n){var r=t[e];(!(Fs.call(t,e)&&He(r,n))||n===void 0&&!(e in t))&&pr(t,e,n)}function ge(t,e,n,r){var i=!n;n||(n={});for(var a=-1,o=e.length;++a<o;){var s=e[a],f=void 0;f===void 0&&(f=t[s]),i?pr(n,s,f):gr(n,s,f)}return n}var ii=Math.max;function da(t,e,n){return e=ii(e===void 0?t.length-1:e,0),function(){for(var r=arguments,i=-1,a=ii(r.length-e,0),o=Array(a);++i<a;)o[i]=r[e+i];i=-1;for(var s=Array(e+1);++i<e;)s[i]=r[i];return s[e]=n(o),ps(t,this,s)}}function ha(t,e){return ca(da(t,e,dr),t+"")}var Ps=9007199254740991;function mr(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=Ps}function me(t){return t!=null&&mr(t.length)&&!hr(t)}function Ds(t,e,n){if(!K(n))return!1;var r=typeof e;return(r=="number"?me(n)&&yn(e,n.length):r=="string"&&e in n)?He(n[e],t):!1}function Rs(t){return ha(function(e,n){var r=-1,i=n.length,a=i>1?n[i-1]:void 0,o=i>2?n[2]:void 0;for(a=t.length>3&&typeof a=="function"?(i--,a):void 0,o&&Ds(n[0],n[1],o)&&(a=i<3?void 0:a,i=1),e=Object(e);++r<i;){var s=n[r];s&&t(e,s,r,a)}return e})}var Ls=Object.prototype;function vr(t){var e=t&&t.constructor,n=typeof e=="function"&&e.prototype||Ls;return t===n}function Cs(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}var js="[object Arguments]";function ai(t){return At(t)&&zt(t)==js}var pa=Object.prototype,Ns=pa.hasOwnProperty,Is=pa.propertyIsEnumerable,Fe=ai(function(){return arguments}())?ai:function(t){return At(t)&&Ns.call(t,"callee")&&!Is.call(t,"callee")};function Hs(){return!1}var ga=typeof exports=="object"&&exports&&!exports.nodeType&&exports,oi=ga&&typeof module=="object"&&module&&!module.nodeType&&module,Ys=oi&&oi.exports===ga,si=Ys?bt.Buffer:void 0,ks=si?si.isBuffer:void 0,Pe=ks||Hs,qs="[object Arguments]",Bs="[object Array]",Ws="[object Boolean]",Us="[object Date]",Gs="[object Error]",Vs="[object Function]",Xs="[object Map]",zs="[object Number]",Zs="[object Object]",Ks="[object RegExp]",Js="[object Set]",Qs="[object String]",tf="[object WeakMap]",ef="[object ArrayBuffer]",nf="[object DataView]",rf="[object Float32Array]",af="[object Float64Array]",of="[object Int8Array]",sf="[object Int16Array]",ff="[object Int32Array]",uf="[object Uint8Array]",cf="[object Uint8ClampedArray]",lf="[object Uint16Array]",df="[object Uint32Array]",B={};B[rf]=B[af]=B[of]=B[sf]=B[ff]=B[uf]=B[cf]=B[lf]=B[df]=!0;B[qs]=B[Bs]=B[ef]=B[Ws]=B[nf]=B[Us]=B[Gs]=B[Vs]=B[Xs]=B[zs]=B[Zs]=B[Ks]=B[Js]=B[Qs]=B[tf]=!1;function hf(t){return At(t)&&mr(t.length)&&!!B[zt(t)]}function yr(t){return function(e){return t(e)}}var ma=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Me=ma&&typeof module=="object"&&module&&!module.nodeType&&module,pf=Me&&Me.exports===ma,Fn=pf&&oa.process,se=function(){try{var t=Me&&Me.require&&Me.require("util").types;return t||Fn&&Fn.binding&&Fn.binding("util")}catch{}}(),fi=se&&se.isTypedArray,br=fi?yr(fi):hf,gf=Object.prototype,mf=gf.hasOwnProperty;function va(t,e){var n=Z(t),r=!n&&Fe(t),i=!n&&!r&&Pe(t),a=!n&&!r&&!i&&br(t),o=n||r||i||a,s=o?Cs(t.length,String):[],f=s.length;for(var u in t)(e||mf.call(t,u))&&!(o&&(u=="length"||i&&(u=="offset"||u=="parent")||a&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||yn(u,f)))&&s.push(u);return s}function ya(t,e){return function(n){return t(e(n))}}var vf=ya(Object.keys,Object),yf=Object.prototype,bf=yf.hasOwnProperty;function wf(t){if(!vr(t))return vf(t);var e=[];for(var n in Object(t))bf.call(t,n)&&n!="constructor"&&e.push(n);return e}function Ye(t){return me(t)?va(t):wf(t)}function xf(t){var e=[];if(t!=null)for(var n in Object(t))e.push(n);return e}var Of=Object.prototype,Af=Of.hasOwnProperty;function $f(t){if(!K(t))return xf(t);var e=vr(t),n=[];for(var r in t)r=="constructor"&&(e||!Af.call(t,r))||n.push(r);return n}function ke(t){return me(t)?va(t,!0):$f(t)}var Sf=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Mf=/^\w*$/;function wr(t,e){if(Z(t))return!1;var n=typeof t;return n=="number"||n=="symbol"||n=="boolean"||t==null||vn(t)?!0:Mf.test(t)||!Sf.test(t)||e!=null&&t in Object(e)}var De=Kt(Object,"create");function Tf(){this.__data__=De?De(null):{},this.size=0}function _f(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}var Ef="__lodash_hash_undefined__",Ff=Object.prototype,Pf=Ff.hasOwnProperty;function Df(t){var e=this.__data__;if(De){var n=e[t];return n===Ef?void 0:n}return Pf.call(e,t)?e[t]:void 0}var Rf=Object.prototype,Lf=Rf.hasOwnProperty;function Cf(t){var e=this.__data__;return De?e[t]!==void 0:Lf.call(e,t)}var jf="__lodash_hash_undefined__";function Nf(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=De&&e===void 0?jf:e,this}function Gt(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}Gt.prototype.clear=Tf;Gt.prototype.delete=_f;Gt.prototype.get=Df;Gt.prototype.has=Cf;Gt.prototype.set=Nf;function If(){this.__data__=[],this.size=0}function bn(t,e){for(var n=t.length;n--;)if(He(t[n][0],e))return n;return-1}var Hf=Array.prototype,Yf=Hf.splice;function kf(t){var e=this.__data__,n=bn(e,t);if(n<0)return!1;var r=e.length-1;return n==r?e.pop():Yf.call(e,n,1),--this.size,!0}function qf(t){var e=this.__data__,n=bn(e,t);return n<0?void 0:e[n][1]}function Bf(t){return bn(this.__data__,t)>-1}function Wf(t,e){var n=this.__data__,r=bn(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this}function Ft(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}Ft.prototype.clear=If;Ft.prototype.delete=kf;Ft.prototype.get=qf;Ft.prototype.has=Bf;Ft.prototype.set=Wf;var Re=Kt(bt,"Map");function Uf(){this.size=0,this.__data__={hash:new Gt,map:new(Re||Ft),string:new Gt}}function Gf(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}function wn(t,e){var n=t.__data__;return Gf(e)?n[typeof e=="string"?"string":"hash"]:n.map}function Vf(t){var e=wn(this,t).delete(t);return this.size-=e?1:0,e}function Xf(t){return wn(this,t).get(t)}function zf(t){return wn(this,t).has(t)}function Zf(t,e){var n=wn(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this}function Pt(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}Pt.prototype.clear=Uf;Pt.prototype.delete=Vf;Pt.prototype.get=Xf;Pt.prototype.has=zf;Pt.prototype.set=Zf;var Kf="Expected a function";function xr(t,e){if(typeof t!="function"||e!=null&&typeof e!="function")throw new TypeError(Kf);var n=function(){var r=arguments,i=e?e.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);var o=t.apply(this,r);return n.cache=a.set(i,o)||a,o};return n.cache=new(xr.Cache||Pt),n}xr.Cache=Pt;var Jf=500;function Qf(t){var e=xr(t,function(r){return n.size===Jf&&n.clear(),r}),n=e.cache;return e}var tu=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,eu=/\\(\\)?/g,nu=Qf(function(t){var e=[];return t.charCodeAt(0)===46&&e.push(""),t.replace(tu,function(n,r,i,a){e.push(i?a.replace(eu,"$1"):r||n)}),e});function ru(t){return t==null?"":fa(t)}function ve(t,e){return Z(t)?t:wr(t,e)?[t]:nu(ru(t))}function ye(t){if(typeof t=="string"||vn(t))return t;var e=t+"";return e=="0"&&1/t==-1/0?"-0":e}function xn(t,e){e=ve(e,t);for(var n=0,r=e.length;t!=null&&n<r;)t=t[ye(e[n++])];return n&&n==r?t:void 0}function iu(t,e,n){var r=t==null?void 0:xn(t,e);return r===void 0?n:r}function Or(t,e){for(var n=-1,r=e.length,i=t.length;++n<r;)t[i+n]=e[n];return t}var ui=ut?ut.isConcatSpreadable:void 0;function au(t){return Z(t)||Fe(t)||!!(ui&&t&&t[ui])}function qe(t,e,n,r,i){var a=-1,o=t.length;for(n||(n=au),i||(i=[]);++a<o;){var s=t[a];e>0&&n(s)?e>1?qe(s,e-1,n,r,i):Or(i,s):r||(i[i.length]=s)}return i}function ou(t){var e=t==null?0:t.length;return e?qe(t,1):[]}function ba(t){return ca(da(t,void 0,ou),t+"")}var Ar=ya(Object.getPrototypeOf,Object),su="[object Object]",fu=Function.prototype,uu=Object.prototype,wa=fu.toString,cu=uu.hasOwnProperty,lu=wa.call(Object);function xa(t){if(!At(t)||zt(t)!=su)return!1;var e=Ar(t);if(e===null)return!0;var n=cu.call(e,"constructor")&&e.constructor;return typeof n=="function"&&n instanceof n&&wa.call(n)==lu}function du(t,e,n){var r=-1,i=t.length;e<0&&(e=-e>i?0:i+e),n=n>i?i:n,n<0&&(n+=i),i=e>n?0:n-e>>>0,e>>>=0;for(var a=Array(i);++r<i;)a[r]=t[r+e];return a}function bg(){if(!arguments.length)return[];var t=arguments[0];return Z(t)?t:[t]}function hu(){this.__data__=new Ft,this.size=0}function pu(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}function gu(t){return this.__data__.get(t)}function mu(t){return this.__data__.has(t)}var vu=200;function yu(t,e){var n=this.__data__;if(n instanceof Ft){var r=n.__data__;if(!Re||r.length<vu-1)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new Pt(r)}return n.set(t,e),this.size=n.size,this}function mt(t){var e=this.__data__=new Ft(t);this.size=e.size}mt.prototype.clear=hu;mt.prototype.delete=pu;mt.prototype.get=gu;mt.prototype.has=mu;mt.prototype.set=yu;function bu(t,e){return t&&ge(e,Ye(e),t)}function wu(t,e){return t&&ge(e,ke(e),t)}var Oa=typeof exports=="object"&&exports&&!exports.nodeType&&exports,ci=Oa&&typeof module=="object"&&module&&!module.nodeType&&module,xu=ci&&ci.exports===Oa,li=xu?bt.Buffer:void 0,di=li?li.allocUnsafe:void 0;function Aa(t,e){if(e)return t.slice();var n=t.length,r=di?di(n):new t.constructor(n);return t.copy(r),r}function Ou(t,e){for(var n=-1,r=t==null?0:t.length,i=0,a=[];++n<r;){var o=t[n];e(o,n,t)&&(a[i++]=o)}return a}function $a(){return[]}var Au=Object.prototype,$u=Au.propertyIsEnumerable,hi=Object.getOwnPropertySymbols,$r=hi?function(t){return t==null?[]:(t=Object(t),Ou(hi(t),function(e){return $u.call(t,e)}))}:$a;function Su(t,e){return ge(t,$r(t),e)}var Mu=Object.getOwnPropertySymbols,Sa=Mu?function(t){for(var e=[];t;)Or(e,$r(t)),t=Ar(t);return e}:$a;function Tu(t,e){return ge(t,Sa(t),e)}function Ma(t,e,n){var r=e(t);return Z(t)?r:Or(r,n(t))}function Yn(t){return Ma(t,Ye,$r)}function Ta(t){return Ma(t,ke,Sa)}var kn=Kt(bt,"DataView"),qn=Kt(bt,"Promise"),ie=Kt(bt,"Set"),pi="[object Map]",_u="[object Object]",gi="[object Promise]",mi="[object Set]",vi="[object WeakMap]",yi="[object DataView]",Eu=Zt(kn),Fu=Zt(Re),Pu=Zt(qn),Du=Zt(ie),Ru=Zt(Hn),gt=zt;(kn&>(new kn(new ArrayBuffer(1)))!=yi||Re&>(new Re)!=pi||qn&>(qn.resolve())!=gi||ie&>(new ie)!=mi||Hn&>(new Hn)!=vi)&&(gt=function(t){var e=zt(t),n=e==_u?t.constructor:void 0,r=n?Zt(n):"";if(r)switch(r){case Eu:return yi;case Fu:return pi;case Pu:return gi;case Du:return mi;case Ru:return vi}return e});var Lu=Object.prototype,Cu=Lu.hasOwnProperty;function ju(t){var e=t.length,n=new t.constructor(e);return e&&typeof t[0]=="string"&&Cu.call(t,"index")&&(n.index=t.index,n.input=t.input),n}var dn=bt.Uint8Array;function Sr(t){var e=new t.constructor(t.byteLength);return new dn(e).set(new dn(t)),e}function Nu(t,e){var n=e?Sr(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}var Iu=/\w*$/;function Hu(t){var e=new t.constructor(t.source,Iu.exec(t));return e.lastIndex=t.lastIndex,e}var bi=ut?ut.prototype:void 0,wi=bi?bi.valueOf:void 0;function Yu(t){return wi?Object(wi.call(t)):{}}function _a(t,e){var n=e?Sr(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}var ku="[object Boolean]",qu="[object Date]",Bu="[object Map]",Wu="[object Number]",Uu="[object RegExp]",Gu="[object Set]",Vu="[object String]",Xu="[object Symbol]",zu="[object ArrayBuffer]",Zu="[object DataView]",Ku="[object Float32Array]",Ju="[object Float64Array]",Qu="[object Int8Array]",tc="[object Int16Array]",ec="[object Int32Array]",nc="[object Uint8Array]",rc="[object Uint8ClampedArray]",ic="[object Uint16Array]",ac="[object Uint32Array]";function oc(t,e,n){var r=t.constructor;switch(e){case zu:return Sr(t);case ku:case qu:return new r(+t);case Zu:return Nu(t,n);case Ku:case Ju:case Qu:case tc:case ec:case nc:case rc:case ic:case ac:return _a(t,n);case Bu:return new r;case Wu:case Vu:return new r(t);case Uu:return Hu(t);case Gu:return new r;case Xu:return Yu(t)}}function Ea(t){return typeof t.constructor=="function"&&!vr(t)?hs(Ar(t)):{}}var sc="[object Map]";function fc(t){return At(t)&>(t)==sc}var xi=se&&se.isMap,uc=xi?yr(xi):fc,cc="[object Set]";function lc(t){return At(t)&>(t)==cc}var Oi=se&&se.isSet,dc=Oi?yr(Oi):lc,hc=1,pc=2,gc=4,Fa="[object Arguments]",mc="[object Array]",vc="[object Boolean]",yc="[object Date]",bc="[object Error]",Pa="[object Function]",wc="[object GeneratorFunction]",xc="[object Map]",Oc="[object Number]",Da="[object Object]",Ac="[object RegExp]",$c="[object Set]",Sc="[object String]",Mc="[object Symbol]",Tc="[object WeakMap]",_c="[object ArrayBuffer]",Ec="[object DataView]",Fc="[object Float32Array]",Pc="[object Float64Array]",Dc="[object Int8Array]",Rc="[object Int16Array]",Lc="[object Int32Array]",Cc="[object Uint8Array]",jc="[object Uint8ClampedArray]",Nc="[object Uint16Array]",Ic="[object Uint32Array]",q={};q[Fa]=q[mc]=q[_c]=q[Ec]=q[vc]=q[yc]=q[Fc]=q[Pc]=q[Dc]=q[Rc]=q[Lc]=q[xc]=q[Oc]=q[Da]=q[Ac]=q[$c]=q[Sc]=q[Mc]=q[Cc]=q[jc]=q[Nc]=q[Ic]=!0;q[bc]=q[Pa]=q[Tc]=!1;function ae(t,e,n,r,i,a){var o,s=e&hc,f=e&pc,u=e&gc;if(n&&(o=i?n(t,r,i,a):n(t)),o!==void 0)return o;if(!K(t))return t;var l=Z(t);if(l){if(o=ju(t),!s)return ua(t,o)}else{var c=gt(t),p=c==Pa||c==wc;if(Pe(t))return Aa(t,s);if(c==Da||c==Fa||p&&!i){if(o=f||p?{}:Ea(t),!s)return f?Tu(t,wu(o,t)):Su(t,bu(o,t))}else{if(!q[c])return i?t:{};o=oc(t,c,s)}}a||(a=new mt);var m=a.get(t);if(m)return m;a.set(t,o),dc(t)?t.forEach(function(h){o.add(ae(h,e,n,h,t,a))}):uc(t)&&t.forEach(function(h,d){o.set(d,ae(h,e,n,d,t,a))});var y=u?f?Ta:Yn:f?ke:Ye,g=l?void 0:y(t);return Os(g||t,function(h,d){g&&(d=h,h=t[d]),gr(o,d,ae(h,e,n,d,t,a))}),o}var Hc=4;function wg(t){return ae(t,Hc)}var Yc=1,kc=4;function xg(t){return ae(t,Yc|kc)}var qc="__lodash_hash_undefined__";function Bc(t){return this.__data__.set(t,qc),this}function Wc(t){return this.__data__.has(t)}function Le(t){var e=-1,n=t==null?0:t.length;for(this.__data__=new Pt;++e<n;)this.add(t[e])}Le.prototype.add=Le.prototype.push=Bc;Le.prototype.has=Wc;function Uc(t,e){for(var n=-1,r=t==null?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1}function Ra(t,e){return t.has(e)}var Gc=1,Vc=2;function La(t,e,n,r,i,a){var o=n&Gc,s=t.length,f=e.length;if(s!=f&&!(o&&f>s))return!1;var u=a.get(t),l=a.get(e);if(u&&l)return u==e&&l==t;var c=-1,p=!0,m=n&Vc?new Le:void 0;for(a.set(t,e),a.set(e,t);++c<s;){var y=t[c],g=e[c];if(r)var h=o?r(g,y,c,e,t,a):r(y,g,c,t,e,a);if(h!==void 0){if(h)continue;p=!1;break}if(m){if(!Uc(e,function(d,w){if(!Ra(m,w)&&(y===d||i(y,d,n,r,a)))return m.push(w)})){p=!1;break}}else if(!(y===g||i(y,g,n,r,a))){p=!1;break}}return a.delete(t),a.delete(e),p}function Xc(t){var e=-1,n=Array(t.size);return t.forEach(function(r,i){n[++e]=[i,r]}),n}function Mr(t){var e=-1,n=Array(t.size);return t.forEach(function(r){n[++e]=r}),n}var zc=1,Zc=2,Kc="[object Boolean]",Jc="[object Date]",Qc="[object Error]",tl="[object Map]",el="[object Number]",nl="[object RegExp]",rl="[object Set]",il="[object String]",al="[object Symbol]",ol="[object ArrayBuffer]",sl="[object DataView]",Ai=ut?ut.prototype:void 0,Pn=Ai?Ai.valueOf:void 0;function fl(t,e,n,r,i,a,o){switch(n){case sl:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case ol:return!(t.byteLength!=e.byteLength||!a(new dn(t),new dn(e)));case Kc:case Jc:case el:return He(+t,+e);case Qc:return t.name==e.name&&t.message==e.message;case nl:case il:return t==e+"";case tl:var s=Xc;case rl:var f=r&zc;if(s||(s=Mr),t.size!=e.size&&!f)return!1;var u=o.get(t);if(u)return u==e;r|=Zc,o.set(t,e);var l=La(s(t),s(e),r,i,a,o);return o.delete(t),l;case al:if(Pn)return Pn.call(t)==Pn.call(e)}return!1}var ul=1,cl=Object.prototype,ll=cl.hasOwnProperty;function dl(t,e,n,r,i,a){var o=n&ul,s=Yn(t),f=s.length,u=Yn(e),l=u.length;if(f!=l&&!o)return!1;for(var c=f;c--;){var p=s[c];if(!(o?p in e:ll.call(e,p)))return!1}var m=a.get(t),y=a.get(e);if(m&&y)return m==e&&y==t;var g=!0;a.set(t,e),a.set(e,t);for(var h=o;++c<f;){p=s[c];var d=t[p],w=e[p];if(r)var v=o?r(w,d,p,e,t,a):r(d,w,p,t,e,a);if(!(v===void 0?d===w||i(d,w,n,r,a):v)){g=!1;break}h||(h=p=="constructor")}if(g&&!h){var x=t.constructor,A=e.constructor;x!=A&&"constructor"in t&&"constructor"in e&&!(typeof x=="function"&&x instanceof x&&typeof A=="function"&&A instanceof A)&&(g=!1)}return a.delete(t),a.delete(e),g}var hl=1,$i="[object Arguments]",Si="[object Array]",Ze="[object Object]",pl=Object.prototype,Mi=pl.hasOwnProperty;function gl(t,e,n,r,i,a){var o=Z(t),s=Z(e),f=o?Si:gt(t),u=s?Si:gt(e);f=f==$i?Ze:f,u=u==$i?Ze:u;var l=f==Ze,c=u==Ze,p=f==u;if(p&&Pe(t)){if(!Pe(e))return!1;o=!0,l=!1}if(p&&!l)return a||(a=new mt),o||br(t)?La(t,e,n,r,i,a):fl(t,e,f,n,r,i,a);if(!(n&hl)){var m=l&&Mi.call(t,"__wrapped__"),y=c&&Mi.call(e,"__wrapped__");if(m||y){var g=m?t.value():t,h=y?e.value():e;return a||(a=new mt),i(g,h,n,r,a)}}return p?(a||(a=new mt),dl(t,e,n,r,i,a)):!1}function On(t,e,n,r,i){return t===e?!0:t==null||e==null||!At(t)&&!At(e)?t!==t&&e!==e:gl(t,e,n,r,On,i)}var ml=1,vl=2;function yl(t,e,n,r){var i=n.length,a=i;if(t==null)return!a;for(t=Object(t);i--;){var o=n[i];if(o[2]?o[1]!==t[o[0]]:!(o[0]in t))return!1}for(;++i<a;){o=n[i];var s=o[0],f=t[s],u=o[1];if(o[2]){if(f===void 0&&!(s in t))return!1}else{var l=new mt,c;if(!(c===void 0?On(u,f,ml|vl,r,l):c))return!1}}return!0}function Ca(t){return t===t&&!K(t)}function bl(t){for(var e=Ye(t),n=e.length;n--;){var r=e[n],i=t[r];e[n]=[r,i,Ca(i)]}return e}function ja(t,e){return function(n){return n==null?!1:n[t]===e&&(e!==void 0||t in Object(n))}}function wl(t){var e=bl(t);return e.length==1&&e[0][2]?ja(e[0][0],e[0][1]):function(n){return n===t||yl(n,t,e)}}function xl(t,e){return t!=null&&e in Object(t)}function Ol(t,e,n){e=ve(e,t);for(var r=-1,i=e.length,a=!1;++r<i;){var o=ye(e[r]);if(!(a=t!=null&&n(t,o)))break;t=t[o]}return a||++r!=i?a:(i=t==null?0:t.length,!!i&&mr(i)&&yn(o,i)&&(Z(t)||Fe(t)))}function Na(t,e){return t!=null&&Ol(t,e,xl)}var Al=1,$l=2;function Sl(t,e){return wr(t)&&Ca(e)?ja(ye(t),e):function(n){var r=iu(n,t);return r===void 0&&r===e?Na(n,t):On(e,r,Al|$l)}}function Ml(t){return function(e){return e==null?void 0:e[t]}}function Tl(t){return function(e){return xn(e,t)}}function _l(t){return wr(t)?Ml(ye(t)):Tl(t)}function Ia(t){return typeof t=="function"?t:t==null?dr:typeof t=="object"?Z(t)?Sl(t[0],t[1]):wl(t):_l(t)}function El(t){return function(e,n,r){for(var i=-1,a=Object(e),o=r(e),s=o.length;s--;){var f=o[++i];if(n(a[f],f,a)===!1)break}return e}}var Ha=El();function Fl(t,e){return t&&Ha(t,e,Ye)}function Pl(t,e){return function(n,r){if(n==null)return n;if(!me(n))return t(n,r);for(var i=n.length,a=-1,o=Object(n);++a<i&&r(o[a],a,o)!==!1;);return n}}var Dl=Pl(Fl),Dn=function(){return bt.Date.now()},Rl="Expected a function",Ll=Math.max,Cl=Math.min;function jl(t,e,n){var r,i,a,o,s,f,u=0,l=!1,c=!1,p=!0;if(typeof t!="function")throw new TypeError(Rl);e=ei(e)||0,K(n)&&(l=!!n.leading,c="maxWait"in n,a=c?Ll(ei(n.maxWait)||0,e):a,p="trailing"in n?!!n.trailing:p);function m(S){var E=r,P=i;return r=i=void 0,u=S,o=t.apply(P,E),o}function y(S){return u=S,s=setTimeout(d,e),l?m(S):o}function g(S){var E=S-f,P=S-u,L=e-E;return c?Cl(L,a-P):L}function h(S){var E=S-f,P=S-u;return f===void 0||E>=e||E<0||c&&P>=a}function d(){var S=Dn();if(h(S))return w(S);s=setTimeout(d,g(S))}function w(S){return s=void 0,p&&r?m(S):(r=i=void 0,o)}function v(){s!==void 0&&clearTimeout(s),u=0,r=f=i=s=void 0}function x(){return s===void 0?o:w(Dn())}function A(){var S=Dn(),E=h(S);if(r=arguments,i=this,f=S,E){if(s===void 0)return y(f);if(c)return clearTimeout(s),s=setTimeout(d,e),m(f)}return s===void 0&&(s=setTimeout(d,e)),o}return A.cancel=v,A.flush=x,A}function Bn(t,e,n){(n!==void 0&&!He(t[e],n)||n===void 0&&!(e in t))&&pr(t,e,n)}function Ya(t){return At(t)&&me(t)}function Wn(t,e){if(!(e==="constructor"&&typeof t[e]=="function")&&e!="__proto__")return t[e]}function Nl(t){return ge(t,ke(t))}function Il(t,e,n,r,i,a,o){var s=Wn(t,n),f=Wn(e,n),u=o.get(f);if(u){Bn(t,n,u);return}var l=a?a(s,f,n+"",t,e,o):void 0,c=l===void 0;if(c){var p=Z(f),m=!p&&Pe(f),y=!p&&!m&&br(f);l=f,p||m||y?Z(s)?l=s:Ya(s)?l=ua(s):m?(c=!1,l=Aa(f,!0)):y?(c=!1,l=_a(f,!0)):l=[]:xa(f)||Fe(f)?(l=s,Fe(s)?l=Nl(s):(!K(s)||hr(s))&&(l=Ea(f))):c=!1}c&&(o.set(f,l),i(l,f,r,a,o),o.delete(f)),Bn(t,n,l)}function ka(t,e,n,r,i){t!==e&&Ha(e,function(a,o){if(i||(i=new mt),K(a))Il(t,e,o,n,ka,r,i);else{var s=r?r(Wn(t,o),a,o+"",t,e,i):void 0;s===void 0&&(s=a),Bn(t,o,s)}},ke)}function Hl(t){var e=t==null?0:t.length;return e?t[e-1]:void 0}function Og(t,e,n){var r=t==null?0:t.length;if(!r)return-1;var i=r-1;return la(t,Ia(e),i,!0)}function Yl(t,e){var n=-1,r=me(t)?Array(t.length):[];return Dl(t,function(i,a,o){r[++n]=e(i,a,o)}),r}function kl(t,e){var n=Z(t)?lr:Yl;return n(t,Ia(e))}function Ag(t,e){return qe(kl(t,e),1)}var ql=1/0;function $g(t){var e=t==null?0:t.length;return e?qe(t,ql):[]}function Sg(t){for(var e=-1,n=t==null?0:t.length,r={};++e<n;){var i=t[e];r[i[0]]=i[1]}return r}function Bl(t,e){return e.length<2?t:xn(t,du(e,0,-1))}function Mg(t,e){return On(t,e)}function Tg(t){return t==null}function _g(t){return t===null}function Eg(t){return t===void 0}var Fg=Rs(function(t,e,n){ka(t,e,n)});function Wl(t,e){return e=ve(e,t),t=Bl(t,e),t==null||delete t[ye(Hl(e))]}function Ul(t){return xa(t)?void 0:t}var Gl=1,Vl=2,Xl=4,Pg=ba(function(t,e){var n={};if(t==null)return n;var r=!1;e=lr(e,function(a){return a=ve(a,t),r||(r=a.length>1),a}),ge(t,Ta(t),n),r&&(n=ae(n,Gl|Vl|Xl,Ul));for(var i=e.length;i--;)Wl(n,e[i]);return n});function qa(t,e,n,r){if(!K(t))return t;e=ve(e,t);for(var i=-1,a=e.length,o=a-1,s=t;s!=null&&++i<a;){var f=ye(e[i]),u=n;if(f==="__proto__"||f==="constructor"||f==="prototype")return t;if(i!=o){var l=s[f];u=void 0,u===void 0&&(u=K(l)?l:yn(e[i+1])?[]:{})}gr(s,f,u),s=s[f]}return t}function zl(t,e,n){for(var r=-1,i=e.length,a={};++r<i;){var o=e[r],s=xn(t,o);n(s,o)&&qa(a,ve(o,t),s)}return a}function Zl(t,e){return zl(t,e,function(n,r){return Na(t,r)})}var Dg=ba(function(t,e){return t==null?{}:Zl(t,e)});function Rg(t,e,n){return t==null?t:qa(t,e,n)}var Kl="Expected a function";function Lg(t,e,n){var r=!0,i=!0;if(typeof t!="function")throw new TypeError(Kl);return K(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),jl(t,e,{leading:r,maxWait:e,trailing:i})}var Jl=1/0,Ql=ie&&1/Mr(new ie([,-0]))[1]==Jl?function(t){return new ie(t)}:gs,td=200;function ed(t,e,n){var r=-1,i=Ms,a=t.length,o=!0,s=[],f=s;if(a>=td){var u=Ql(t);if(u)return Mr(u);o=!1,i=Ra,f=new Le}else f=s;t:for(;++r<a;){var l=t[r],c=l;if(l=l!==0?l:0,o&&c===c){for(var p=f.length;p--;)if(f[p]===c)continue t;s.push(l)}else i(f,c,n)||(f!==s&&f.push(c),s.push(l))}return s}var Cg=ha(function(t){return ed(qe(t,1,Ya,!0))}),tt="top",ct="bottom",lt="right",et="left",Tr="auto",Be=[tt,ct,lt,et],fe="start",Ce="end",nd="clippingParents",Ba="viewport",Ae="popper",rd="reference",Ti=Be.reduce(function(t,e){return t.concat([e+"-"+fe,e+"-"+Ce])},[]),Wa=[].concat(Be,[Tr]).reduce(function(t,e){return t.concat([e,e+"-"+fe,e+"-"+Ce])},[]),id="beforeRead",ad="read",od="afterRead",sd="beforeMain",fd="main",ud="afterMain",cd="beforeWrite",ld="write",dd="afterWrite",hd=[id,ad,od,sd,fd,ud,cd,ld,dd];function $t(t){return t?(t.nodeName||"").toLowerCase():null}function wt(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function ue(t){var e=wt(t).Element;return t instanceof e||t instanceof Element}function ft(t){var e=wt(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function _r(t){if(typeof ShadowRoot>"u")return!1;var e=wt(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}function pd(t){var e=t.state;Object.keys(e.elements).forEach(function(n){var r=e.styles[n]||{},i=e.attributes[n]||{},a=e.elements[n];!ft(a)||!$t(a)||(Object.assign(a.style,r),Object.keys(i).forEach(function(o){var s=i[o];s===!1?a.removeAttribute(o):a.setAttribute(o,s===!0?"":s)}))})}function gd(t){var e=t.state,n={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,n.popper),e.styles=n,e.elements.arrow&&Object.assign(e.elements.arrow.style,n.arrow),function(){Object.keys(e.elements).forEach(function(r){var i=e.elements[r],a=e.attributes[r]||{},o=Object.keys(e.styles.hasOwnProperty(r)?e.styles[r]:n[r]),s=o.reduce(function(f,u){return f[u]="",f},{});!ft(i)||!$t(i)||(Object.assign(i.style,s),Object.keys(a).forEach(function(f){i.removeAttribute(f)}))})}}var Ua={name:"applyStyles",enabled:!0,phase:"write",fn:pd,effect:gd,requires:["computeStyles"]};function xt(t){return t.split("-")[0]}var Wt=Math.max,hn=Math.min,ce=Math.round;function le(t,e){e===void 0&&(e=!1);var n=t.getBoundingClientRect(),r=1,i=1;if(ft(t)&&e){var a=t.offsetHeight,o=t.offsetWidth;o>0&&(r=ce(n.width)/o||1),a>0&&(i=ce(n.height)/a||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 Er(t){var e=le(t),n=t.offsetWidth,r=t.offsetHeight;return Math.abs(e.width-n)<=1&&(n=e.width),Math.abs(e.height-r)<=1&&(r=e.height),{x:t.offsetLeft,y:t.offsetTop,width:n,height:r}}function Ga(t,e){var n=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(n&&_r(n)){var r=e;do{if(r&&t.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Et(t){return wt(t).getComputedStyle(t)}function md(t){return["table","td","th"].indexOf($t(t))>=0}function Yt(t){return((ue(t)?t.ownerDocument:t.document)||window.document).documentElement}function An(t){return $t(t)==="html"?t:t.assignedSlot||t.parentNode||(_r(t)?t.host:null)||Yt(t)}function _i(t){return!ft(t)||Et(t).position==="fixed"?null:t.offsetParent}function vd(t){var e=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,n=navigator.userAgent.indexOf("Trident")!==-1;if(n&&ft(t)){var r=Et(t);if(r.position==="fixed")return null}var i=An(t);for(_r(i)&&(i=i.host);ft(i)&&["html","body"].indexOf($t(i))<0;){var a=Et(i);if(a.transform!=="none"||a.perspective!=="none"||a.contain==="paint"||["transform","perspective"].indexOf(a.willChange)!==-1||e&&a.willChange==="filter"||e&&a.filter&&a.filter!=="none")return i;i=i.parentNode}return null}function We(t){for(var e=wt(t),n=_i(t);n&&md(n)&&Et(n).position==="static";)n=_i(n);return n&&($t(n)==="html"||$t(n)==="body"&&Et(n).position==="static")?e:n||vd(t)||e}function Fr(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function Te(t,e,n){return Wt(t,hn(e,n))}function yd(t,e,n){var r=Te(t,e,n);return r>n?n:r}function Va(){return{top:0,right:0,bottom:0,left:0}}function Xa(t){return Object.assign({},Va(),t)}function za(t,e){return e.reduce(function(n,r){return n[r]=t,n},{})}var bd=function(t,e){return t=typeof t=="function"?t(Object.assign({},e.rects,{placement:e.placement})):t,Xa(typeof t!="number"?t:za(t,Be))};function wd(t){var e,n=t.state,r=t.name,i=t.options,a=n.elements.arrow,o=n.modifiersData.popperOffsets,s=xt(n.placement),f=Fr(s),u=[et,lt].indexOf(s)>=0,l=u?"height":"width";if(!(!a||!o)){var c=bd(i.padding,n),p=Er(a),m=f==="y"?tt:et,y=f==="y"?ct:lt,g=n.rects.reference[l]+n.rects.reference[f]-o[f]-n.rects.popper[l],h=o[f]-n.rects.reference[f],d=We(a),w=d?f==="y"?d.clientHeight||0:d.clientWidth||0:0,v=g/2-h/2,x=c[m],A=w-p[l]-c[y],S=w/2-p[l]/2+v,E=Te(x,S,A),P=f;n.modifiersData[r]=(e={},e[P]=E,e.centerOffset=E-S,e)}}function xd(t){var e=t.state,n=t.options,r=n.element,i=r===void 0?"[data-popper-arrow]":r;i!=null&&(typeof i=="string"&&(i=e.elements.popper.querySelector(i),!i)||!Ga(e.elements.popper,i)||(e.elements.arrow=i))}var Od={name:"arrow",enabled:!0,phase:"main",fn:wd,effect:xd,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function de(t){return t.split("-")[1]}var Ad={top:"auto",right:"auto",bottom:"auto",left:"auto"};function $d(t){var e=t.x,n=t.y,r=window,i=r.devicePixelRatio||1;return{x:ce(e*i)/i||0,y:ce(n*i)/i||0}}function Ei(t){var e,n=t.popper,r=t.popperRect,i=t.placement,a=t.variation,o=t.offsets,s=t.position,f=t.gpuAcceleration,u=t.adaptive,l=t.roundOffsets,c=t.isFixed,p=o.x,m=p===void 0?0:p,y=o.y,g=y===void 0?0:y,h=typeof l=="function"?l({x:m,y:g}):{x:m,y:g};m=h.x,g=h.y;var d=o.hasOwnProperty("x"),w=o.hasOwnProperty("y"),v=et,x=tt,A=window;if(u){var S=We(n),E="clientHeight",P="clientWidth";if(S===wt(n)&&(S=Yt(n),Et(S).position!=="static"&&s==="absolute"&&(E="scrollHeight",P="scrollWidth")),S=S,i===tt||(i===et||i===lt)&&a===Ce){x=ct;var L=c&&S===A&&A.visualViewport?A.visualViewport.height:S[E];g-=L-r.height,g*=f?1:-1}if(i===et||(i===tt||i===ct)&&a===Ce){v=lt;var D=c&&S===A&&A.visualViewport?A.visualViewport.width:S[P];m-=D-r.width,m*=f?1:-1}}var F=Object.assign({position:s},u&&Ad),C=l===!0?$d({x:m,y:g}):{x:m,y:g};if(m=C.x,g=C.y,f){var j;return Object.assign({},F,(j={},j[x]=w?"0":"",j[v]=d?"0":"",j.transform=(A.devicePixelRatio||1)<=1?"translate("+m+"px, "+g+"px)":"translate3d("+m+"px, "+g+"px, 0)",j))}return Object.assign({},F,(e={},e[x]=w?g+"px":"",e[v]=d?m+"px":"",e.transform="",e))}function Sd(t){var e=t.state,n=t.options,r=n.gpuAcceleration,i=r===void 0?!0:r,a=n.adaptive,o=a===void 0?!0:a,s=n.roundOffsets,f=s===void 0?!0:s,u={placement:xt(e.placement),variation:de(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:i,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,Ei(Object.assign({},u,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:o,roundOffsets:f})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,Ei(Object.assign({},u,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:f})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}var Za={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Sd,data:{}},Ke={passive:!0};function Md(t){var e=t.state,n=t.instance,r=t.options,i=r.scroll,a=i===void 0?!0:i,o=r.resize,s=o===void 0?!0:o,f=wt(e.elements.popper),u=[].concat(e.scrollParents.reference,e.scrollParents.popper);return a&&u.forEach(function(l){l.addEventListener("scroll",n.update,Ke)}),s&&f.addEventListener("resize",n.update,Ke),function(){a&&u.forEach(function(l){l.removeEventListener("scroll",n.update,Ke)}),s&&f.removeEventListener("resize",n.update,Ke)}}var Ka={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Md,data:{}},Td={left:"right",right:"left",bottom:"top",top:"bottom"};function on(t){return t.replace(/left|right|bottom|top/g,function(e){return Td[e]})}var _d={start:"end",end:"start"};function Fi(t){return t.replace(/start|end/g,function(e){return _d[e]})}function Pr(t){var e=wt(t),n=e.pageXOffset,r=e.pageYOffset;return{scrollLeft:n,scrollTop:r}}function Dr(t){return le(Yt(t)).left+Pr(t).scrollLeft}function Ed(t){var e=wt(t),n=Yt(t),r=e.visualViewport,i=n.clientWidth,a=n.clientHeight,o=0,s=0;return r&&(i=r.width,a=r.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(o=r.offsetLeft,s=r.offsetTop)),{width:i,height:a,x:o+Dr(t),y:s}}function Fd(t){var e,n=Yt(t),r=Pr(t),i=(e=t.ownerDocument)==null?void 0:e.body,a=Wt(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),o=Wt(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-r.scrollLeft+Dr(t),f=-r.scrollTop;return Et(i||n).direction==="rtl"&&(s+=Wt(n.clientWidth,i?i.clientWidth:0)-a),{width:a,height:o,x:s,y:f}}function Rr(t){var e=Et(t),n=e.overflow,r=e.overflowX,i=e.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function Ja(t){return["html","body","#document"].indexOf($t(t))>=0?t.ownerDocument.body:ft(t)&&Rr(t)?t:Ja(An(t))}function _e(t,e){var n;e===void 0&&(e=[]);var r=Ja(t),i=r===((n=t.ownerDocument)==null?void 0:n.body),a=wt(r),o=i?[a].concat(a.visualViewport||[],Rr(r)?r:[]):r,s=e.concat(o);return i?s:s.concat(_e(An(o)))}function Un(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function Pd(t){var e=le(t);return e.top=e.top+t.clientTop,e.left=e.left+t.clientLeft,e.bottom=e.top+t.clientHeight,e.right=e.left+t.clientWidth,e.width=t.clientWidth,e.height=t.clientHeight,e.x=e.left,e.y=e.top,e}function Pi(t,e){return e===Ba?Un(Ed(t)):ue(e)?Pd(e):Un(Fd(Yt(t)))}function Dd(t){var e=_e(An(t)),n=["absolute","fixed"].indexOf(Et(t).position)>=0,r=n&&ft(t)?We(t):t;return ue(r)?e.filter(function(i){return ue(i)&&Ga(i,r)&&$t(i)!=="body"}):[]}function Rd(t,e,n){var r=e==="clippingParents"?Dd(t):[].concat(e),i=[].concat(r,[n]),a=i[0],o=i.reduce(function(s,f){var u=Pi(t,f);return s.top=Wt(u.top,s.top),s.right=hn(u.right,s.right),s.bottom=hn(u.bottom,s.bottom),s.left=Wt(u.left,s.left),s},Pi(t,a));return o.width=o.right-o.left,o.height=o.bottom-o.top,o.x=o.left,o.y=o.top,o}function Qa(t){var e=t.reference,n=t.element,r=t.placement,i=r?xt(r):null,a=r?de(r):null,o=e.x+e.width/2-n.width/2,s=e.y+e.height/2-n.height/2,f;switch(i){case tt:f={x:o,y:e.y-n.height};break;case ct:f={x:o,y:e.y+e.height};break;case lt:f={x:e.x+e.width,y:s};break;case et:f={x:e.x-n.width,y:s};break;default:f={x:e.x,y:e.y}}var u=i?Fr(i):null;if(u!=null){var l=u==="y"?"height":"width";switch(a){case fe:f[u]=f[u]-(e[l]/2-n[l]/2);break;case Ce:f[u]=f[u]+(e[l]/2-n[l]/2);break}}return f}function je(t,e){e===void 0&&(e={});var n=e,r=n.placement,i=r===void 0?t.placement:r,a=n.boundary,o=a===void 0?nd:a,s=n.rootBoundary,f=s===void 0?Ba:s,u=n.elementContext,l=u===void 0?Ae:u,c=n.altBoundary,p=c===void 0?!1:c,m=n.padding,y=m===void 0?0:m,g=Xa(typeof y!="number"?y:za(y,Be)),h=l===Ae?rd:Ae,d=t.rects.popper,w=t.elements[p?h:l],v=Rd(ue(w)?w:w.contextElement||Yt(t.elements.popper),o,f),x=le(t.elements.reference),A=Qa({reference:x,element:d,placement:i}),S=Un(Object.assign({},d,A)),E=l===Ae?S:x,P={top:v.top-E.top+g.top,bottom:E.bottom-v.bottom+g.bottom,left:v.left-E.left+g.left,right:E.right-v.right+g.right},L=t.modifiersData.offset;if(l===Ae&&L){var D=L[i];Object.keys(P).forEach(function(F){var C=[lt,ct].indexOf(F)>=0?1:-1,j=[tt,ct].indexOf(F)>=0?"y":"x";P[F]+=D[j]*C})}return P}function Ld(t,e){e===void 0&&(e={});var n=e,r=n.placement,i=n.boundary,a=n.rootBoundary,o=n.padding,s=n.flipVariations,f=n.allowedAutoPlacements,u=f===void 0?Wa:f,l=de(r),c=l?s?Ti:Ti.filter(function(y){return de(y)===l}):Be,p=c.filter(function(y){return u.indexOf(y)>=0});p.length===0&&(p=c);var m=p.reduce(function(y,g){return y[g]=je(t,{placement:g,boundary:i,rootBoundary:a,padding:o})[xt(g)],y},{});return Object.keys(m).sort(function(y,g){return m[y]-m[g]})}function Cd(t){if(xt(t)===Tr)return[];var e=on(t);return[Fi(t),e,Fi(e)]}function jd(t){var e=t.state,n=t.options,r=t.name;if(!e.modifiersData[r]._skip){for(var i=n.mainAxis,a=i===void 0?!0:i,o=n.altAxis,s=o===void 0?!0:o,f=n.fallbackPlacements,u=n.padding,l=n.boundary,c=n.rootBoundary,p=n.altBoundary,m=n.flipVariations,y=m===void 0?!0:m,g=n.allowedAutoPlacements,h=e.options.placement,d=xt(h),w=d===h,v=f||(w||!y?[on(h)]:Cd(h)),x=[h].concat(v).reduce(function(k,W){return k.concat(xt(W)===Tr?Ld(e,{placement:W,boundary:l,rootBoundary:c,padding:u,flipVariations:y,allowedAutoPlacements:g}):W)},[]),A=e.rects.reference,S=e.rects.popper,E=new Map,P=!0,L=x[0],D=0;D<x.length;D++){var F=x[D],C=xt(F),j=de(F)===fe,T=[tt,ct].indexOf(C)>=0,$=T?"width":"height",b=je(e,{placement:F,boundary:l,rootBoundary:c,altBoundary:p,padding:u}),M=T?j?lt:et:j?ct:tt;A[$]>S[$]&&(M=on(M));var O=on(M),_=[];if(a&&_.push(b[C]<=0),s&&_.push(b[M]<=0,b[O]<=0),_.every(function(k){return k})){L=F,P=!1;break}E.set(F,_)}if(P)for(var R=y?3:1,N=function(k){var W=x.find(function(nt){var z=E.get(nt);if(z)return z.slice(0,k).every(function(J){return J})});if(W)return L=W,"break"},H=R;H>0;H--){var Y=N(H);if(Y==="break")break}e.placement!==L&&(e.modifiersData[r]._skip=!0,e.placement=L,e.reset=!0)}}var Nd={name:"flip",enabled:!0,phase:"main",fn:jd,requiresIfExists:["offset"],data:{_skip:!1}};function Di(t,e,n){return n===void 0&&(n={x:0,y:0}),{top:t.top-e.height-n.y,right:t.right-e.width+n.x,bottom:t.bottom-e.height+n.y,left:t.left-e.width-n.x}}function Ri(t){return[tt,lt,ct,et].some(function(e){return t[e]>=0})}function Id(t){var e=t.state,n=t.name,r=e.rects.reference,i=e.rects.popper,a=e.modifiersData.preventOverflow,o=je(e,{elementContext:"reference"}),s=je(e,{altBoundary:!0}),f=Di(o,r),u=Di(s,i,a),l=Ri(f),c=Ri(u);e.modifiersData[n]={referenceClippingOffsets:f,popperEscapeOffsets:u,isReferenceHidden:l,hasPopperEscaped:c},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":l,"data-popper-escaped":c})}var Hd={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Id};function Yd(t,e,n){var r=xt(t),i=[et,tt].indexOf(r)>=0?-1:1,a=typeof n=="function"?n(Object.assign({},e,{placement:t})):n,o=a[0],s=a[1];return o=o||0,s=(s||0)*i,[et,lt].indexOf(r)>=0?{x:s,y:o}:{x:o,y:s}}function kd(t){var e=t.state,n=t.options,r=t.name,i=n.offset,a=i===void 0?[0,0]:i,o=Wa.reduce(function(l,c){return l[c]=Yd(c,e.rects,a),l},{}),s=o[e.placement],f=s.x,u=s.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=f,e.modifiersData.popperOffsets.y+=u),e.modifiersData[r]=o}var qd={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:kd};function Bd(t){var e=t.state,n=t.name;e.modifiersData[n]=Qa({reference:e.rects.reference,element:e.rects.popper,placement:e.placement})}var to={name:"popperOffsets",enabled:!0,phase:"read",fn:Bd,data:{}};function Wd(t){return t==="x"?"y":"x"}function Ud(t){var e=t.state,n=t.options,r=t.name,i=n.mainAxis,a=i===void 0?!0:i,o=n.altAxis,s=o===void 0?!1:o,f=n.boundary,u=n.rootBoundary,l=n.altBoundary,c=n.padding,p=n.tether,m=p===void 0?!0:p,y=n.tetherOffset,g=y===void 0?0:y,h=je(e,{boundary:f,rootBoundary:u,padding:c,altBoundary:l}),d=xt(e.placement),w=de(e.placement),v=!w,x=Fr(d),A=Wd(x),S=e.modifiersData.popperOffsets,E=e.rects.reference,P=e.rects.popper,L=typeof g=="function"?g(Object.assign({},e.rects,{placement:e.placement})):g,D=typeof L=="number"?{mainAxis:L,altAxis:L}:Object.assign({mainAxis:0,altAxis:0},L),F=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,C={x:0,y:0};if(S){if(a){var j,T=x==="y"?tt:et,$=x==="y"?ct:lt,b=x==="y"?"height":"width",M=S[x],O=M+h[T],_=M-h[$],R=m?-P[b]/2:0,N=w===fe?E[b]:P[b],H=w===fe?-P[b]:-E[b],Y=e.elements.arrow,k=m&&Y?Er(Y):{width:0,height:0},W=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:Va(),nt=W[T],z=W[$],J=Te(0,E[b],k[b]),ot=v?E[b]/2-R-J-nt-D.mainAxis:N-J-nt-D.mainAxis,U=v?-E[b]/2+R+J+z+D.mainAxis:H+J+z+D.mainAxis,X=e.elements.arrow&&We(e.elements.arrow),dt=X?x==="y"?X.clientTop||0:X.clientLeft||0:0,ht=(j=F==null?void 0:F[x])!=null?j:0,Jt=M+ot-ht-dt,Qt=M+U-ht,te=Te(m?hn(O,Jt):O,M,m?Wt(_,Qt):_);S[x]=te,C[x]=te-M}if(s){var ee,we=x==="x"?tt:et,xe=x==="x"?ct:lt,Lt=S[A],ze=A==="y"?"height":"width",Ur=Lt+h[we],Gr=Lt-h[xe],_n=[tt,et].indexOf(d)!==-1,Vr=(ee=F==null?void 0:F[A])!=null?ee:0,Xr=_n?Ur:Lt-E[ze]-P[ze]-Vr+D.altAxis,zr=_n?Lt+E[ze]+P[ze]-Vr-D.altAxis:Gr,Zr=m&&_n?yd(Xr,Lt,zr):Te(m?Xr:Ur,Lt,m?zr:Gr);S[A]=Zr,C[A]=Zr-Lt}e.modifiersData[r]=C}}var Gd={name:"preventOverflow",enabled:!0,phase:"main",fn:Ud,requiresIfExists:["offset"]};function Vd(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function Xd(t){return t===wt(t)||!ft(t)?Pr(t):Vd(t)}function zd(t){var e=t.getBoundingClientRect(),n=ce(e.width)/t.offsetWidth||1,r=ce(e.height)/t.offsetHeight||1;return n!==1||r!==1}function Zd(t,e,n){n===void 0&&(n=!1);var r=ft(e),i=ft(e)&&zd(e),a=Yt(e),o=le(t,i),s={scrollLeft:0,scrollTop:0},f={x:0,y:0};return(r||!r&&!n)&&(($t(e)!=="body"||Rr(a))&&(s=Xd(e)),ft(e)?(f=le(e,!0),f.x+=e.clientLeft,f.y+=e.clientTop):a&&(f.x=Dr(a))),{x:o.left+s.scrollLeft-f.x,y:o.top+s.scrollTop-f.y,width:o.width,height:o.height}}function Kd(t){var e=new Map,n=new Set,r=[];t.forEach(function(a){e.set(a.name,a)});function i(a){n.add(a.name);var o=[].concat(a.requires||[],a.requiresIfExists||[]);o.forEach(function(s){if(!n.has(s)){var f=e.get(s);f&&i(f)}}),r.push(a)}return t.forEach(function(a){n.has(a.name)||i(a)}),r}function Jd(t){var e=Kd(t);return hd.reduce(function(n,r){return n.concat(e.filter(function(i){return i.phase===r}))},[])}function Qd(t){var e;return function(){return e||(e=new Promise(function(n){Promise.resolve().then(function(){e=void 0,n(t())})})),e}}function th(t){var e=t.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(e).map(function(n){return e[n]})}var Li={placement:"bottom",modifiers:[],strategy:"absolute"};function Ci(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return!e.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function Lr(t){t===void 0&&(t={});var e=t,n=e.defaultModifiers,r=n===void 0?[]:n,i=e.defaultOptions,a=i===void 0?Li:i;return function(o,s,f){f===void 0&&(f=a);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},Li,a),modifiersData:{},elements:{reference:o,popper:s},attributes:{},styles:{}},l=[],c=!1,p={state:u,setOptions:function(g){var h=typeof g=="function"?g(u.options):g;y(),u.options=Object.assign({},a,u.options,h),u.scrollParents={reference:ue(o)?_e(o):o.contextElement?_e(o.contextElement):[],popper:_e(s)};var d=Jd(th([].concat(r,u.options.modifiers)));return u.orderedModifiers=d.filter(function(w){return w.enabled}),m(),p.update()},forceUpdate:function(){if(!c){var g=u.elements,h=g.reference,d=g.popper;if(Ci(h,d)){u.rects={reference:Zd(h,We(d),u.options.strategy==="fixed"),popper:Er(d)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach(function(P){return u.modifiersData[P.name]=Object.assign({},P.data)});for(var w=0;w<u.orderedModifiers.length;w++){if(u.reset===!0){u.reset=!1,w=-1;continue}var v=u.orderedModifiers[w],x=v.fn,A=v.options,S=A===void 0?{}:A,E=v.name;typeof x=="function"&&(u=x({state:u,options:S,name:E,instance:p})||u)}}}},update:Qd(function(){return new Promise(function(g){p.forceUpdate(),g(u)})}),destroy:function(){y(),c=!0}};if(!Ci(o,s))return p;p.setOptions(f).then(function(g){!c&&f.onFirstUpdate&&f.onFirstUpdate(g)});function m(){u.orderedModifiers.forEach(function(g){var h=g.name,d=g.options,w=d===void 0?{}:d,v=g.effect;if(typeof v=="function"){var x=v({state:u,name:h,instance:p,options:w}),A=function(){};l.push(x||A)}})}function y(){l.forEach(function(g){return g()}),l=[]}return p}}Lr();var eh=[Ka,to,Za,Ua];Lr({defaultModifiers:eh});var nh=[Ka,to,Za,Ua,qd,Nd,Gd,Od,Hd],jg=Lr({defaultModifiers:nh});function V(t,e){rh(t)&&(t="100%");var n=ih(t);return t=e===360?t:Math.min(e,Math.max(0,parseFloat(t))),n&&(t=parseInt(String(t*e),10)/100),Math.abs(t-e)<1e-6?1:(e===360?t=(t<0?t%e+e:t%e)/parseFloat(String(e)):t=t%e/parseFloat(String(e)),t)}function Je(t){return Math.min(1,Math.max(0,t))}function rh(t){return typeof t=="string"&&t.indexOf(".")!==-1&&parseFloat(t)===1}function ih(t){return typeof t=="string"&&t.indexOf("%")!==-1}function eo(t){return t=parseFloat(t),(isNaN(t)||t<0||t>1)&&(t=1),t}function Qe(t){return t<=1?"".concat(Number(t)*100,"%"):t}function qt(t){return t.length===1?"0"+t:String(t)}function ah(t,e,n){return{r:V(t,255)*255,g:V(e,255)*255,b:V(n,255)*255}}function ji(t,e,n){t=V(t,255),e=V(e,255),n=V(n,255);var r=Math.max(t,e,n),i=Math.min(t,e,n),a=0,o=0,s=(r+i)/2;if(r===i)o=0,a=0;else{var f=r-i;switch(o=s>.5?f/(2-r-i):f/(r+i),r){case t:a=(e-n)/f+(e<n?6:0);break;case e:a=(n-t)/f+2;break;case n:a=(t-e)/f+4;break}a/=6}return{h:a,s:o,l:s}}function Rn(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+(e-t)*(6*n):n<1/2?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function oh(t,e,n){var r,i,a;if(t=V(t,360),e=V(e,100),n=V(n,100),e===0)i=n,a=n,r=n;else{var o=n<.5?n*(1+e):n+e-n*e,s=2*n-o;r=Rn(s,o,t+1/3),i=Rn(s,o,t),a=Rn(s,o,t-1/3)}return{r:r*255,g:i*255,b:a*255}}function Ni(t,e,n){t=V(t,255),e=V(e,255),n=V(n,255);var r=Math.max(t,e,n),i=Math.min(t,e,n),a=0,o=r,s=r-i,f=r===0?0:s/r;if(r===i)a=0;else{switch(r){case t:a=(e-n)/s+(e<n?6:0);break;case e:a=(n-t)/s+2;break;case n:a=(t-e)/s+4;break}a/=6}return{h:a,s:f,v:o}}function sh(t,e,n){t=V(t,360)*6,e=V(e,100),n=V(n,100);var r=Math.floor(t),i=t-r,a=n*(1-e),o=n*(1-i*e),s=n*(1-(1-i)*e),f=r%6,u=[n,o,a,a,s,n][f],l=[s,n,n,o,a,a][f],c=[a,a,s,n,n,o][f];return{r:u*255,g:l*255,b:c*255}}function Ii(t,e,n,r){var i=[qt(Math.round(t).toString(16)),qt(Math.round(e).toString(16)),qt(Math.round(n).toString(16))];return r&&i[0].startsWith(i[0].charAt(1))&&i[1].startsWith(i[1].charAt(1))&&i[2].startsWith(i[2].charAt(1))?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0):i.join("")}function fh(t,e,n,r,i){var a=[qt(Math.round(t).toString(16)),qt(Math.round(e).toString(16)),qt(Math.round(n).toString(16)),qt(uh(r))];return i&&a[0].startsWith(a[0].charAt(1))&&a[1].startsWith(a[1].charAt(1))&&a[2].startsWith(a[2].charAt(1))&&a[3].startsWith(a[3].charAt(1))?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0)+a[3].charAt(0):a.join("")}function uh(t){return Math.round(parseFloat(t)*255).toString(16)}function Hi(t){return rt(t)/255}function rt(t){return parseInt(t,16)}function ch(t){return{r:t>>16,g:(t&65280)>>8,b:t&255}}var Gn={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 lh(t){var e={r:0,g:0,b:0},n=1,r=null,i=null,a=null,o=!1,s=!1;return typeof t=="string"&&(t=ph(t)),typeof t=="object"&&(Tt(t.r)&&Tt(t.g)&&Tt(t.b)?(e=ah(t.r,t.g,t.b),o=!0,s=String(t.r).substr(-1)==="%"?"prgb":"rgb"):Tt(t.h)&&Tt(t.s)&&Tt(t.v)?(r=Qe(t.s),i=Qe(t.v),e=sh(t.h,r,i),o=!0,s="hsv"):Tt(t.h)&&Tt(t.s)&&Tt(t.l)&&(r=Qe(t.s),a=Qe(t.l),e=oh(t.h,r,a),o=!0,s="hsl"),Object.prototype.hasOwnProperty.call(t,"a")&&(n=t.a)),n=eo(n),{ok:o,format:t.format||s,r:Math.min(255,Math.max(e.r,0)),g:Math.min(255,Math.max(e.g,0)),b:Math.min(255,Math.max(e.b,0)),a:n}}var dh="[-\\+]?\\d+%?",hh="[-\\+]?\\d*\\.\\d+%?",Ct="(?:".concat(hh,")|(?:").concat(dh,")"),Ln="[\\s|\\(]+(".concat(Ct,")[,|\\s]+(").concat(Ct,")[,|\\s]+(").concat(Ct,")\\s*\\)?"),Cn="[\\s|\\(]+(".concat(Ct,")[,|\\s]+(").concat(Ct,")[,|\\s]+(").concat(Ct,")[,|\\s]+(").concat(Ct,")\\s*\\)?"),pt={CSS_UNIT:new RegExp(Ct),rgb:new RegExp("rgb"+Ln),rgba:new RegExp("rgba"+Cn),hsl:new RegExp("hsl"+Ln),hsla:new RegExp("hsla"+Cn),hsv:new RegExp("hsv"+Ln),hsva:new RegExp("hsva"+Cn),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 ph(t){if(t=t.trim().toLowerCase(),t.length===0)return!1;var e=!1;if(Gn[t])t=Gn[t],e=!0;else if(t==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=pt.rgb.exec(t);return n?{r:n[1],g:n[2],b:n[3]}:(n=pt.rgba.exec(t),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=pt.hsl.exec(t),n?{h:n[1],s:n[2],l:n[3]}:(n=pt.hsla.exec(t),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=pt.hsv.exec(t),n?{h:n[1],s:n[2],v:n[3]}:(n=pt.hsva.exec(t),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=pt.hex8.exec(t),n?{r:rt(n[1]),g:rt(n[2]),b:rt(n[3]),a:Hi(n[4]),format:e?"name":"hex8"}:(n=pt.hex6.exec(t),n?{r:rt(n[1]),g:rt(n[2]),b:rt(n[3]),format:e?"name":"hex"}:(n=pt.hex4.exec(t),n?{r:rt(n[1]+n[1]),g:rt(n[2]+n[2]),b:rt(n[3]+n[3]),a:Hi(n[4]+n[4]),format:e?"name":"hex8"}:(n=pt.hex3.exec(t),n?{r:rt(n[1]+n[1]),g:rt(n[2]+n[2]),b:rt(n[3]+n[3]),format:e?"name":"hex"}:!1)))))))))}function Tt(t){return!!pt.CSS_UNIT.exec(String(t))}var Ng=function(){function t(e,n){e===void 0&&(e=""),n===void 0&&(n={});var r;if(e instanceof t)return e;typeof e=="number"&&(e=ch(e)),this.originalInput=e;var i=lh(e);this.originalInput=e,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 t.prototype.isDark=function(){return this.getBrightness()<128},t.prototype.isLight=function(){return!this.isDark()},t.prototype.getBrightness=function(){var e=this.toRgb();return(e.r*299+e.g*587+e.b*114)/1e3},t.prototype.getLuminance=function(){var e=this.toRgb(),n,r,i,a=e.r/255,o=e.g/255,s=e.b/255;return a<=.03928?n=a/12.92:n=Math.pow((a+.055)/1.055,2.4),o<=.03928?r=o/12.92:r=Math.pow((o+.055)/1.055,2.4),s<=.03928?i=s/12.92:i=Math.pow((s+.055)/1.055,2.4),.2126*n+.7152*r+.0722*i},t.prototype.getAlpha=function(){return this.a},t.prototype.setAlpha=function(e){return this.a=eo(e),this.roundA=Math.round(100*this.a)/100,this},t.prototype.isMonochrome=function(){var e=this.toHsl().s;return e===0},t.prototype.toHsv=function(){var e=Ni(this.r,this.g,this.b);return{h:e.h*360,s:e.s,v:e.v,a:this.a}},t.prototype.toHsvString=function(){var e=Ni(this.r,this.g,this.b),n=Math.round(e.h*360),r=Math.round(e.s*100),i=Math.round(e.v*100);return this.a===1?"hsv(".concat(n,", ").concat(r,"%, ").concat(i,"%)"):"hsva(".concat(n,", ").concat(r,"%, ").concat(i,"%, ").concat(this.roundA,")")},t.prototype.toHsl=function(){var e=ji(this.r,this.g,this.b);return{h:e.h*360,s:e.s,l:e.l,a:this.a}},t.prototype.toHslString=function(){var e=ji(this.r,this.g,this.b),n=Math.round(e.h*360),r=Math.round(e.s*100),i=Math.round(e.l*100);return this.a===1?"hsl(".concat(n,", ").concat(r,"%, ").concat(i,"%)"):"hsla(".concat(n,", ").concat(r,"%, ").concat(i,"%, ").concat(this.roundA,")")},t.prototype.toHex=function(e){return e===void 0&&(e=!1),Ii(this.r,this.g,this.b,e)},t.prototype.toHexString=function(e){return e===void 0&&(e=!1),"#"+this.toHex(e)},t.prototype.toHex8=function(e){return e===void 0&&(e=!1),fh(this.r,this.g,this.b,this.a,e)},t.prototype.toHex8String=function(e){return e===void 0&&(e=!1),"#"+this.toHex8(e)},t.prototype.toHexShortString=function(e){return e===void 0&&(e=!1),this.a===1?this.toHexString(e):this.toHex8String(e)},t.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},t.prototype.toRgbString=function(){var e=Math.round(this.r),n=Math.round(this.g),r=Math.round(this.b);return this.a===1?"rgb(".concat(e,", ").concat(n,", ").concat(r,")"):"rgba(".concat(e,", ").concat(n,", ").concat(r,", ").concat(this.roundA,")")},t.prototype.toPercentageRgb=function(){var e=function(n){return"".concat(Math.round(V(n,255)*100),"%")};return{r:e(this.r),g:e(this.g),b:e(this.b),a:this.a}},t.prototype.toPercentageRgbString=function(){var e=function(n){return Math.round(V(n,255)*100)};return this.a===1?"rgb(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%)"):"rgba(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%, ").concat(this.roundA,")")},t.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var e="#"+Ii(this.r,this.g,this.b,!1),n=0,r=Object.entries(Gn);n<r.length;n++){var i=r[n],a=i[0],o=i[1];if(e===o)return a}return!1},t.prototype.toString=function(e){var n=!!e;e=e??this.format;var r=!1,i=this.a<1&&this.a>=0,a=!n&&i&&(e.startsWith("hex")||e==="name");return a?e==="name"&&this.a===0?this.toName():this.toRgbString():(e==="rgb"&&(r=this.toRgbString()),e==="prgb"&&(r=this.toPercentageRgbString()),(e==="hex"||e==="hex6")&&(r=this.toHexString()),e==="hex3"&&(r=this.toHexString(!0)),e==="hex4"&&(r=this.toHex8String(!0)),e==="hex8"&&(r=this.toHex8String()),e==="name"&&(r=this.toName()),e==="hsl"&&(r=this.toHslString()),e==="hsv"&&(r=this.toHsvString()),r||this.toHexString())},t.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},t.prototype.clone=function(){return new t(this.toString())},t.prototype.lighten=function(e){e===void 0&&(e=10);var n=this.toHsl();return n.l+=e/100,n.l=Je(n.l),new t(n)},t.prototype.brighten=function(e){e===void 0&&(e=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(255*-(e/100)))),n.g=Math.max(0,Math.min(255,n.g-Math.round(255*-(e/100)))),n.b=Math.max(0,Math.min(255,n.b-Math.round(255*-(e/100)))),new t(n)},t.prototype.darken=function(e){e===void 0&&(e=10);var n=this.toHsl();return n.l-=e/100,n.l=Je(n.l),new t(n)},t.prototype.tint=function(e){return e===void 0&&(e=10),this.mix("white",e)},t.prototype.shade=function(e){return e===void 0&&(e=10),this.mix("black",e)},t.prototype.desaturate=function(e){e===void 0&&(e=10);var n=this.toHsl();return n.s-=e/100,n.s=Je(n.s),new t(n)},t.prototype.saturate=function(e){e===void 0&&(e=10);var n=this.toHsl();return n.s+=e/100,n.s=Je(n.s),new t(n)},t.prototype.greyscale=function(){return this.desaturate(100)},t.prototype.spin=function(e){var n=this.toHsl(),r=(n.h+e)%360;return n.h=r<0?360+r:r,new t(n)},t.prototype.mix=function(e,n){n===void 0&&(n=50);var r=this.toRgb(),i=new t(e).toRgb(),a=n/100,o={r:(i.r-r.r)*a+r.r,g:(i.g-r.g)*a+r.g,b:(i.b-r.b)*a+r.b,a:(i.a-r.a)*a+r.a};return new t(o)},t.prototype.analogous=function(e,n){e===void 0&&(e=6),n===void 0&&(n=30);var r=this.toHsl(),i=360/n,a=[this];for(r.h=(r.h-(i*e>>1)+720)%360;--e;)r.h=(r.h+i)%360,a.push(new t(r));return a},t.prototype.complement=function(){var e=this.toHsl();return e.h=(e.h+180)%360,new t(e)},t.prototype.monochromatic=function(e){e===void 0&&(e=6);for(var n=this.toHsv(),r=n.h,i=n.s,a=n.v,o=[],s=1/e;e--;)o.push(new t({h:r,s:i,v:a})),a=(a+s)%1;return o},t.prototype.splitcomplement=function(){var e=this.toHsl(),n=e.h;return[this,new t({h:(n+72)%360,s:e.s,l:e.l}),new t({h:(n+216)%360,s:e.s,l:e.l})]},t.prototype.onBackground=function(e){var n=this.toRgb(),r=new t(e).toRgb(),i=n.a+r.a*(1-n.a);return new t({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})},t.prototype.triad=function(){return this.polyad(3)},t.prototype.tetrad=function(){return this.polyad(4)},t.prototype.polyad=function(e){for(var n=this.toHsl(),r=n.h,i=[this],a=360/e,o=1;o<e;o++)i.push(new t({h:(r+o*a)%360,s:n.s,l:n.l}));return i},t.prototype.equals=function(e){return this.toRgbString()===new t(e).toRgbString()},t}(),Dt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Rt(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var no={exports:{}};(function(t,e){(function(n,r){t.exports=r()})(Dt,function(){var n=1e3,r=6e4,i=36e5,a="millisecond",o="second",s="minute",f="hour",u="day",l="week",c="month",p="quarter",m="year",y="date",g="Invalid Date",h=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,d=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,w={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(T){var $=["th","st","nd","rd"],b=T%100;return"["+T+($[(b-20)%10]||$[b]||$[0])+"]"}},v=function(T,$,b){var M=String(T);return!M||M.length>=$?T:""+Array($+1-M.length).join(b)+T},x={s:v,z:function(T){var $=-T.utcOffset(),b=Math.abs($),M=Math.floor(b/60),O=b%60;return($<=0?"+":"-")+v(M,2,"0")+":"+v(O,2,"0")},m:function T($,b){if($.date()<b.date())return-T(b,$);var M=12*(b.year()-$.year())+(b.month()-$.month()),O=$.clone().add(M,c),_=b-O<0,R=$.clone().add(M+(_?-1:1),c);return+(-(M+(b-O)/(_?O-R:R-O))||0)},a:function(T){return T<0?Math.ceil(T)||0:Math.floor(T)},p:function(T){return{M:c,y:m,w:l,d:u,D:y,h:f,m:s,s:o,ms:a,Q:p}[T]||String(T||"").toLowerCase().replace(/s$/,"")},u:function(T){return T===void 0}},A="en",S={};S[A]=w;var E="$isDayjsObject",P=function(T){return T instanceof C||!(!T||!T[E])},L=function T($,b,M){var O;if(!$)return A;if(typeof $=="string"){var _=$.toLowerCase();S[_]&&(O=_),b&&(S[_]=b,O=_);var R=$.split("-");if(!O&&R.length>1)return T(R[0])}else{var N=$.name;S[N]=$,O=N}return!M&&O&&(A=O),O||!M&&A},D=function(T,$){if(P(T))return T.clone();var b=typeof $=="object"?$:{};return b.date=T,b.args=arguments,new C(b)},F=x;F.l=L,F.i=P,F.w=function(T,$){return D(T,{locale:$.$L,utc:$.$u,x:$.$x,$offset:$.$offset})};var C=function(){function T(b){this.$L=L(b.locale,null,!0),this.parse(b),this.$x=this.$x||b.x||{},this[E]=!0}var $=T.prototype;return $.parse=function(b){this.$d=function(M){var O=M.date,_=M.utc;if(O===null)return new Date(NaN);if(F.u(O))return new Date;if(O instanceof Date)return new Date(O);if(typeof O=="string"&&!/Z$/i.test(O)){var R=O.match(h);if(R){var N=R[2]-1||0,H=(R[7]||"0").substring(0,3);return _?new Date(Date.UTC(R[1],N,R[3]||1,R[4]||0,R[5]||0,R[6]||0,H)):new Date(R[1],N,R[3]||1,R[4]||0,R[5]||0,R[6]||0,H)}}return new Date(O)}(b),this.init()},$.init=function(){var b=this.$d;this.$y=b.getFullYear(),this.$M=b.getMonth(),this.$D=b.getDate(),this.$W=b.getDay(),this.$H=b.getHours(),this.$m=b.getMinutes(),this.$s=b.getSeconds(),this.$ms=b.getMilliseconds()},$.$utils=function(){return F},$.isValid=function(){return this.$d.toString()!==g},$.isSame=function(b,M){var O=D(b);return this.startOf(M)<=O&&O<=this.endOf(M)},$.isAfter=function(b,M){return D(b)<this.startOf(M)},$.isBefore=function(b,M){return this.endOf(M)<D(b)},$.$g=function(b,M,O){return F.u(b)?this[M]:this.set(O,b)},$.unix=function(){return Math.floor(this.valueOf()/1e3)},$.valueOf=function(){return this.$d.getTime()},$.startOf=function(b,M){var O=this,_=!!F.u(M)||M,R=F.p(b),N=function(ot,U){var X=F.w(O.$u?Date.UTC(O.$y,U,ot):new Date(O.$y,U,ot),O);return _?X:X.endOf(u)},H=function(ot,U){return F.w(O.toDate()[ot].apply(O.toDate("s"),(_?[0,0,0,0]:[23,59,59,999]).slice(U)),O)},Y=this.$W,k=this.$M,W=this.$D,nt="set"+(this.$u?"UTC":"");switch(R){case m:return _?N(1,0):N(31,11);case c:return _?N(1,k):N(0,k+1);case l:var z=this.$locale().weekStart||0,J=(Y<z?Y+7:Y)-z;return N(_?W-J:W+(6-J),k);case u:case y:return H(nt+"Hours",0);case f:return H(nt+"Minutes",1);case s:return H(nt+"Seconds",2);case o:return H(nt+"Milliseconds",3);default:return this.clone()}},$.endOf=function(b){return this.startOf(b,!1)},$.$set=function(b,M){var O,_=F.p(b),R="set"+(this.$u?"UTC":""),N=(O={},O[u]=R+"Date",O[y]=R+"Date",O[c]=R+"Month",O[m]=R+"FullYear",O[f]=R+"Hours",O[s]=R+"Minutes",O[o]=R+"Seconds",O[a]=R+"Milliseconds",O)[_],H=_===u?this.$D+(M-this.$W):M;if(_===c||_===m){var Y=this.clone().set(y,1);Y.$d[N](H),Y.init(),this.$d=Y.set(y,Math.min(this.$D,Y.daysInMonth())).$d}else N&&this.$d[N](H);return this.init(),this},$.set=function(b,M){return this.clone().$set(b,M)},$.get=function(b){return this[F.p(b)]()},$.add=function(b,M){var O,_=this;b=Number(b);var R=F.p(M),N=function(k){var W=D(_);return F.w(W.date(W.date()+Math.round(k*b)),_)};if(R===c)return this.set(c,this.$M+b);if(R===m)return this.set(m,this.$y+b);if(R===u)return N(1);if(R===l)return N(7);var H=(O={},O[s]=r,O[f]=i,O[o]=n,O)[R]||1,Y=this.$d.getTime()+b*H;return F.w(Y,this)},$.subtract=function(b,M){return this.add(-1*b,M)},$.format=function(b){var M=this,O=this.$locale();if(!this.isValid())return O.invalidDate||g;var _=b||"YYYY-MM-DDTHH:mm:ssZ",R=F.z(this),N=this.$H,H=this.$m,Y=this.$M,k=O.weekdays,W=O.months,nt=O.meridiem,z=function(U,X,dt,ht){return U&&(U[X]||U(M,_))||dt[X].slice(0,ht)},J=function(U){return F.s(N%12||12,U,"0")},ot=nt||function(U,X,dt){var ht=U<12?"AM":"PM";return dt?ht.toLowerCase():ht};return _.replace(d,function(U,X){return X||function(dt){switch(dt){case"YY":return String(M.$y).slice(-2);case"YYYY":return F.s(M.$y,4,"0");case"M":return Y+1;case"MM":return F.s(Y+1,2,"0");case"MMM":return z(O.monthsShort,Y,W,3);case"MMMM":return z(W,Y);case"D":return M.$D;case"DD":return F.s(M.$D,2,"0");case"d":return String(M.$W);case"dd":return z(O.weekdaysMin,M.$W,k,2);case"ddd":return z(O.weekdaysShort,M.$W,k,3);case"dddd":return k[M.$W];case"H":return String(N);case"HH":return F.s(N,2,"0");case"h":return J(1);case"hh":return J(2);case"a":return ot(N,H,!0);case"A":return ot(N,H,!1);case"m":return String(H);case"mm":return F.s(H,2,"0");case"s":return String(M.$s);case"ss":return F.s(M.$s,2,"0");case"SSS":return F.s(M.$ms,3,"0");case"Z":return R}return null}(U)||R.replace(":","")})},$.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},$.diff=function(b,M,O){var _,R=this,N=F.p(M),H=D(b),Y=(H.utcOffset()-this.utcOffset())*r,k=this-H,W=function(){return F.m(R,H)};switch(N){case m:_=W()/12;break;case c:_=W();break;case p:_=W()/3;break;case l:_=(k-Y)/6048e5;break;case u:_=(k-Y)/864e5;break;case f:_=k/i;break;case s:_=k/r;break;case o:_=k/n;break;default:_=k}return O?_:F.a(_)},$.daysInMonth=function(){return this.endOf(c).$D},$.$locale=function(){return S[this.$L]},$.locale=function(b,M){if(!b)return this.$L;var O=this.clone(),_=L(b,M,!0);return _&&(O.$L=_),O},$.clone=function(){return F.w(this.$d,this)},$.toDate=function(){return new Date(this.valueOf())},$.toJSON=function(){return this.isValid()?this.toISOString():null},$.toISOString=function(){return this.$d.toISOString()},$.toString=function(){return this.$d.toUTCString()},T}(),j=C.prototype;return D.prototype=j,[["$ms",a],["$s",o],["$m",s],["$H",f],["$W",u],["$M",c],["$y",m],["$D",y]].forEach(function(T){j[T[1]]=function($){return this.$g($,T[0],T[1])}}),D.extend=function(T,$){return T.$i||(T($,C,D),T.$i=!0),D},D.locale=L,D.isDayjs=P,D.unix=function(T){return D(1e3*T)},D.en=S[A],D.Ls=S,D.p={},D})})(no);var gh=no.exports;const Ig=Rt(gh);var ro={exports:{}};(function(t,e){(function(n,r){t.exports=r()})(Dt,function(){return function(n,r,i){var a=r.prototype,o=function(c){return c&&(c.indexOf?c:c.s)},s=function(c,p,m,y,g){var h=c.name?c:c.$locale(),d=o(h[p]),w=o(h[m]),v=d||w.map(function(A){return A.slice(0,y)});if(!g)return v;var x=h.weekStart;return v.map(function(A,S){return v[(S+(x||0))%7]})},f=function(){return i.Ls[i.locale()]},u=function(c,p){return c.formats[p]||function(m){return m.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(y,g,h){return g||h.slice(1)})}(c.formats[p.toUpperCase()])},l=function(){var c=this;return{months:function(p){return p?p.format("MMMM"):s(c,"months")},monthsShort:function(p){return p?p.format("MMM"):s(c,"monthsShort","months",3)},firstDayOfWeek:function(){return c.$locale().weekStart||0},weekdays:function(p){return p?p.format("dddd"):s(c,"weekdays")},weekdaysMin:function(p){return p?p.format("dd"):s(c,"weekdaysMin","weekdays",2)},weekdaysShort:function(p){return p?p.format("ddd"):s(c,"weekdaysShort","weekdays",3)},longDateFormat:function(p){return u(c.$locale(),p)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};a.localeData=function(){return l.bind(this)()},i.localeData=function(){var c=f();return{firstDayOfWeek:function(){return c.weekStart||0},weekdays:function(){return i.weekdays()},weekdaysShort:function(){return i.weekdaysShort()},weekdaysMin:function(){return i.weekdaysMin()},months:function(){return i.months()},monthsShort:function(){return i.monthsShort()},longDateFormat:function(p){return u(c,p)},meridiem:c.meridiem,ordinal:c.ordinal}},i.months=function(){return s(f(),"months")},i.monthsShort=function(){return s(f(),"monthsShort","months",3)},i.weekdays=function(c){return s(f(),"weekdays",null,null,c)},i.weekdaysShort=function(c){return s(f(),"weekdaysShort","weekdays",3,c)},i.weekdaysMin=function(c){return s(f(),"weekdaysMin","weekdays",2,c)}}})})(ro);var mh=ro.exports;const Hg=Rt(mh);var io={exports:{}};(function(t,e){(function(n,r){t.exports=r()})(Dt,function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},r=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,i=/\d/,a=/\d\d/,o=/\d\d?/,s=/\d*[^-_:/,()\s\d]+/,f={},u=function(h){return(h=+h)+(h>68?1900:2e3)},l=function(h){return function(d){this[h]=+d}},c=[/[+-]\d\d:?(\d\d)?|Z/,function(h){(this.zone||(this.zone={})).offset=function(d){if(!d||d==="Z")return 0;var w=d.match(/([+-]|\d\d)/g),v=60*w[1]+(+w[2]||0);return v===0?0:w[0]==="+"?-v:v}(h)}],p=function(h){var d=f[h];return d&&(d.indexOf?d:d.s.concat(d.f))},m=function(h,d){var w,v=f.meridiem;if(v){for(var x=1;x<=24;x+=1)if(h.indexOf(v(x,0,d))>-1){w=x>12;break}}else w=h===(d?"pm":"PM");return w},y={A:[s,function(h){this.afternoon=m(h,!1)}],a:[s,function(h){this.afternoon=m(h,!0)}],Q:[i,function(h){this.month=3*(h-1)+1}],S:[i,function(h){this.milliseconds=100*+h}],SS:[a,function(h){this.milliseconds=10*+h}],SSS:[/\d{3}/,function(h){this.milliseconds=+h}],s:[o,l("seconds")],ss:[o,l("seconds")],m:[o,l("minutes")],mm:[o,l("minutes")],H:[o,l("hours")],h:[o,l("hours")],HH:[o,l("hours")],hh:[o,l("hours")],D:[o,l("day")],DD:[a,l("day")],Do:[s,function(h){var d=f.ordinal,w=h.match(/\d+/);if(this.day=w[0],d)for(var v=1;v<=31;v+=1)d(v).replace(/\[|\]/g,"")===h&&(this.day=v)}],w:[o,l("week")],ww:[a,l("week")],M:[o,l("month")],MM:[a,l("month")],MMM:[s,function(h){var d=p("months"),w=(p("monthsShort")||d.map(function(v){return v.slice(0,3)})).indexOf(h)+1;if(w<1)throw new Error;this.month=w%12||w}],MMMM:[s,function(h){var d=p("months").indexOf(h)+1;if(d<1)throw new Error;this.month=d%12||d}],Y:[/[+-]?\d+/,l("year")],YY:[a,function(h){this.year=u(h)}],YYYY:[/\d{4}/,l("year")],Z:c,ZZ:c};function g(h){var d,w;d=h,w=f&&f.formats;for(var v=(h=d.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(D,F,C){var j=C&&C.toUpperCase();return F||w[C]||n[C]||w[j].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(T,$,b){return $||b.slice(1)})})).match(r),x=v.length,A=0;A<x;A+=1){var S=v[A],E=y[S],P=E&&E[0],L=E&&E[1];v[A]=L?{regex:P,parser:L}:S.replace(/^\[|\]$/g,"")}return function(D){for(var F={},C=0,j=0;C<x;C+=1){var T=v[C];if(typeof T=="string")j+=T.length;else{var $=T.regex,b=T.parser,M=D.slice(j),O=$.exec(M)[0];b.call(F,O),D=D.replace(O,"")}}return function(_){var R=_.afternoon;if(R!==void 0){var N=_.hours;R?N<12&&(_.hours+=12):N===12&&(_.hours=0),delete _.afternoon}}(F),F}}return function(h,d,w){w.p.customParseFormat=!0,h&&h.parseTwoDigitYear&&(u=h.parseTwoDigitYear);var v=d.prototype,x=v.parse;v.parse=function(A){var S=A.date,E=A.utc,P=A.args;this.$u=E;var L=P[1];if(typeof L=="string"){var D=P[2]===!0,F=P[3]===!0,C=D||F,j=P[2];F&&(j=P[2]),f=this.$locale(),!D&&j&&(f=w.Ls[j]),this.$d=function(M,O,_,R){try{if(["x","X"].indexOf(O)>-1)return new Date((O==="X"?1e3:1)*M);var N=g(O)(M),H=N.year,Y=N.month,k=N.day,W=N.hours,nt=N.minutes,z=N.seconds,J=N.milliseconds,ot=N.zone,U=N.week,X=new Date,dt=k||(H||Y?1:X.getDate()),ht=H||X.getFullYear(),Jt=0;H&&!Y||(Jt=Y>0?Y-1:X.getMonth());var Qt,te=W||0,ee=nt||0,we=z||0,xe=J||0;return ot?new Date(Date.UTC(ht,Jt,dt,te,ee,we,xe+60*ot.offset*1e3)):_?new Date(Date.UTC(ht,Jt,dt,te,ee,we,xe)):(Qt=new Date(ht,Jt,dt,te,ee,we,xe),U&&(Qt=R(Qt).week(U).toDate()),Qt)}catch{return new Date("")}}(S,L,E,w),this.init(),j&&j!==!0&&(this.$L=this.locale(j).$L),C&&S!=this.format(L)&&(this.$d=new Date("")),f={}}else if(L instanceof Array)for(var T=L.length,$=1;$<=T;$+=1){P[1]=L[$-1];var b=w.apply(this,P);if(b.isValid()){this.$d=b.$d,this.$L=b.$L,this.init();break}$===T&&(this.$d=new Date(""))}else x.call(this,A)}}})})(io);var vh=io.exports;const Yg=Rt(vh);var ao={exports:{}};(function(t,e){(function(n,r){t.exports=r()})(Dt,function(){return function(n,r){var i=r.prototype,a=i.format;i.format=function(o){var s=this,f=this.$locale();if(!this.isValid())return a.bind(this)(o);var u=this.$utils(),l=(o||"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(c){switch(c){case"Q":return Math.ceil((s.$M+1)/3);case"Do":return f.ordinal(s.$D);case"gggg":return s.weekYear();case"GGGG":return s.isoWeekYear();case"wo":return f.ordinal(s.week(),"W");case"w":case"ww":return u.s(s.week(),c==="w"?1:2,"0");case"W":case"WW":return u.s(s.isoWeek(),c==="W"?1:2,"0");case"k":case"kk":return u.s(String(s.$H===0?24:s.$H),c==="k"?1:2,"0");case"X":return Math.floor(s.$d.getTime()/1e3);case"x":return s.$d.getTime();case"z":return"["+s.offsetName()+"]";case"zzz":return"["+s.offsetName("long")+"]";default:return c}});return a.bind(this)(l)}}})})(ao);var yh=ao.exports;const kg=Rt(yh);var oo={exports:{}};(function(t,e){(function(n,r){t.exports=r()})(Dt,function(){var n="week",r="year";return function(i,a,o){var s=a.prototype;s.week=function(f){if(f===void 0&&(f=null),f!==null)return this.add(7*(f-this.week()),"day");var u=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var l=o(this).startOf(r).add(1,r).date(u),c=o(this).endOf(n);if(l.isBefore(c))return 1}var p=o(this).startOf(r).date(u).startOf(n).subtract(1,"millisecond"),m=this.diff(p,n,!0);return m<0?o(this).startOf("week").week():Math.ceil(m)},s.weeks=function(f){return f===void 0&&(f=null),this.week(f)}}})})(oo);var bh=oo.exports;const qg=Rt(bh);var so={exports:{}};(function(t,e){(function(n,r){t.exports=r()})(Dt,function(){return function(n,r){r.prototype.weekYear=function(){var i=this.month(),a=this.week(),o=this.year();return a===1&&i===11?o+1:i===0&&a>=52?o-1:o}}})})(so);var wh=so.exports;const Bg=Rt(wh);var fo={exports:{}};(function(t,e){(function(n,r){t.exports=r()})(Dt,function(){return function(n,r,i){r.prototype.dayOfYear=function(a){var o=Math.round((i(this).startOf("day")-i(this).startOf("year"))/864e5)+1;return a==null?o:this.add(a-o,"day")}}})})(fo);var xh=fo.exports;const Wg=Rt(xh);var uo={exports:{}};(function(t,e){(function(n,r){t.exports=r()})(Dt,function(){return function(n,r){r.prototype.isSameOrAfter=function(i,a){return this.isSame(i,a)||this.isAfter(i,a)}}})})(uo);var Oh=uo.exports;const Ug=Rt(Oh);var co={exports:{}};(function(t,e){(function(n,r){t.exports=r()})(Dt,function(){return function(n,r){r.prototype.isSameOrBefore=function(i,a){return this.isSame(i,a)||this.isBefore(i,a)}}})})(co);var Ah=co.exports;const Gg=Rt(Ah);function Bt(){return Bt=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Bt.apply(this,arguments)}function $h(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,Ne(t,e)}function Vn(t){return Vn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Vn(t)}function Ne(t,e){return Ne=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Ne(t,e)}function Sh(){if(typeof Reflect>"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 sn(t,e,n){return Sh()?sn=Reflect.construct.bind():sn=function(i,a,o){var s=[null];s.push.apply(s,a);var f=Function.bind.apply(i,s),u=new f;return o&&Ne(u,o.prototype),u},sn.apply(null,arguments)}function Mh(t){return Function.toString.call(t).indexOf("[native code]")!==-1}function Xn(t){var e=typeof Map=="function"?new Map:void 0;return Xn=function(r){if(r===null||!Mh(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(typeof e<"u"){if(e.has(r))return e.get(r);e.set(r,i)}function i(){return sn(r,arguments,Vn(this).constructor)}return i.prototype=Object.create(r.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),Ne(i,r)},Xn(t)}var Th=/%[sdj%]/g,_h=function(){};function zn(t){if(!t||!t.length)return null;var e={};return t.forEach(function(n){var r=n.field;e[r]=e[r]||[],e[r].push(n)}),e}function it(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];var i=0,a=n.length;if(typeof t=="function")return t.apply(null,n);if(typeof t=="string"){var o=t.replace(Th,function(s){if(s==="%%")return"%";if(i>=a)return s;switch(s){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 s}});return o}return t}function Eh(t){return t==="string"||t==="url"||t==="hex"||t==="email"||t==="date"||t==="pattern"}function G(t,e){return!!(t==null||e==="array"&&Array.isArray(t)&&!t.length||Eh(e)&&typeof t=="string"&&!t)}function Fh(t,e,n){var r=[],i=0,a=t.length;function o(s){r.push.apply(r,s||[]),i++,i===a&&n(r)}t.forEach(function(s){e(s,o)})}function Yi(t,e,n){var r=0,i=t.length;function a(o){if(o&&o.length){n(o);return}var s=r;r=r+1,s<i?e(t[s],a):n([])}a([])}function Ph(t){var e=[];return Object.keys(t).forEach(function(n){e.push.apply(e,t[n]||[])}),e}var ki=function(t){$h(e,t);function e(n,r){var i;return i=t.call(this,"Async Validation Error")||this,i.errors=n,i.fields=r,i}return e}(Xn(Error));function Dh(t,e,n,r,i){if(e.first){var a=new Promise(function(p,m){var y=function(d){return r(d),d.length?m(new ki(d,zn(d))):p(i)},g=Ph(t);Yi(g,n,y)});return a.catch(function(p){return p}),a}var o=e.firstFields===!0?Object.keys(t):e.firstFields||[],s=Object.keys(t),f=s.length,u=0,l=[],c=new Promise(function(p,m){var y=function(h){if(l.push.apply(l,h),u++,u===f)return r(l),l.length?m(new ki(l,zn(l))):p(i)};s.length||(r(l),p(i)),s.forEach(function(g){var h=t[g];o.indexOf(g)!==-1?Yi(h,n,y):Fh(h,n,y)})});return c.catch(function(p){return p}),c}function Rh(t){return!!(t&&t.message!==void 0)}function Lh(t,e){for(var n=t,r=0;r<e.length;r++){if(n==null)return n;n=n[e[r]]}return n}function qi(t,e){return function(n){var r;return t.fullFields?r=Lh(e,t.fullFields):r=e[n.field||t.fullField],Rh(n)?(n.field=n.field||t.fullField,n.fieldValue=r,n):{message:typeof n=="function"?n():n,fieldValue:r,field:n.field||t.fullField}}}function Bi(t,e){if(e){for(var n in e)if(e.hasOwnProperty(n)){var r=e[n];typeof r=="object"&&typeof t[n]=="object"?t[n]=Bt({},t[n],r):t[n]=r}}return t}var lo=function(e,n,r,i,a,o){e.required&&(!r.hasOwnProperty(e.field)||G(n,o||e.type))&&i.push(it(a.messages.required,e.fullField))},Ch=function(e,n,r,i,a){(/^\s+$/.test(n)||n==="")&&i.push(it(a.messages.whitespace,e.fullField))},tn,jh=function(){if(tn)return tn;var t="[a-fA-F\\d:]",e=function(x){return x&&x.includeBoundaries?"(?:(?<=\\s|^)(?="+t+")|(?<="+t+")(?=\\s|$))":""},n="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",r="[a-fA-F\\d]{1,4}",i=(`
|
|
(?:
|
|
(?:`+r+":){7}(?:"+r+`|:)| // 1:2:3:4:5:6:7:: 1:2:3:4:5:6:7:8
|
|
(?:`+r+":){6}(?:"+n+"|:"+r+`|:)| // 1:2:3:4:5:6:: 1:2:3:4:5:6::8 1:2:3:4:5:6::8 1:2:3:4:5:6::1.2.3.4
|
|
(?:`+r+":){5}(?::"+n+"|(?::"+r+`){1,2}|:)| // 1:2:3:4:5:: 1:2:3:4:5::7:8 1:2:3:4:5::8 1:2:3:4:5::7:1.2.3.4
|
|
(?:`+r+":){4}(?:(?::"+r+"){0,1}:"+n+"|(?::"+r+`){1,3}|:)| // 1:2:3:4:: 1:2:3:4::6:7:8 1:2:3:4::8 1:2:3:4::6:7:1.2.3.4
|
|
(?:`+r+":){3}(?:(?::"+r+"){0,2}:"+n+"|(?::"+r+`){1,4}|:)| // 1:2:3:: 1:2:3::5:6:7:8 1:2:3::8 1:2:3::5:6:7:1.2.3.4
|
|
(?:`+r+":){2}(?:(?::"+r+"){0,3}:"+n+"|(?::"+r+`){1,5}|:)| // 1:2:: 1:2::4:5:6:7:8 1:2::8 1:2::4:5:6:7:1.2.3.4
|
|
(?:`+r+":){1}(?:(?::"+r+"){0,4}:"+n+"|(?::"+r+`){1,6}|:)| // 1:: 1::3:4:5:6:7:8 1::8 1::3:4:5:6:7:1.2.3.4
|
|
(?::(?:(?::`+r+"){0,5}:"+n+"|(?::"+r+`){1,7}|:)) // ::2:3:4:5:6:7:8 ::2:3:4:5:6:7:8 ::8 ::1.2.3.4
|
|
)(?:%[0-9a-zA-Z]{1,})? // %eth0 %1
|
|
`).replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim(),a=new RegExp("(?:^"+n+"$)|(?:^"+i+"$)"),o=new RegExp("^"+n+"$"),s=new RegExp("^"+i+"$"),f=function(x){return x&&x.exact?a:new RegExp("(?:"+e(x)+n+e(x)+")|(?:"+e(x)+i+e(x)+")","g")};f.v4=function(v){return v&&v.exact?o:new RegExp(""+e(v)+n+e(v),"g")},f.v6=function(v){return v&&v.exact?s:new RegExp(""+e(v)+i+e(v),"g")};var u="(?:(?:[a-z]+:)?//)",l="(?:\\S+(?::\\S*)?@)?",c=f.v4().source,p=f.v6().source,m="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",y="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",g="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",h="(?::\\d{2,5})?",d='(?:[/?#][^\\s"]*)?',w="(?:"+u+"|www\\.)"+l+"(?:localhost|"+c+"|"+p+"|"+m+y+g+")"+h+d;return tn=new RegExp("(?:^"+w+"$)","i"),tn},Wi={email:/^(([^<>()\[\]\\.,;:\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},$e={integer:function(e){return $e.number(e)&&parseInt(e,10)===e},float:function(e){return $e.number(e)&&!$e.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch{return!1}},date:function(e){return typeof e.getTime=="function"&&typeof e.getMonth=="function"&&typeof e.getYear=="function"&&!isNaN(e.getTime())},number:function(e){return isNaN(e)?!1:typeof e=="number"},object:function(e){return typeof e=="object"&&!$e.array(e)},method:function(e){return typeof e=="function"},email:function(e){return typeof e=="string"&&e.length<=320&&!!e.match(Wi.email)},url:function(e){return typeof e=="string"&&e.length<=2048&&!!e.match(jh())},hex:function(e){return typeof e=="string"&&!!e.match(Wi.hex)}},Nh=function(e,n,r,i,a){if(e.required&&n===void 0){lo(e,n,r,i,a);return}var o=["integer","float","array","regexp","object","method","email","number","date","url","hex"],s=e.type;o.indexOf(s)>-1?$e[s](n)||i.push(it(a.messages.types[s],e.fullField,e.type)):s&&typeof n!==e.type&&i.push(it(a.messages.types[s],e.fullField,e.type))},Ih=function(e,n,r,i,a){var o=typeof e.len=="number",s=typeof e.min=="number",f=typeof e.max=="number",u=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,l=n,c=null,p=typeof n=="number",m=typeof n=="string",y=Array.isArray(n);if(p?c="number":m?c="string":y&&(c="array"),!c)return!1;y&&(l=n.length),m&&(l=n.replace(u,"_").length),o?l!==e.len&&i.push(it(a.messages[c].len,e.fullField,e.len)):s&&!f&&l<e.min?i.push(it(a.messages[c].min,e.fullField,e.min)):f&&!s&&l>e.max?i.push(it(a.messages[c].max,e.fullField,e.max)):s&&f&&(l<e.min||l>e.max)&&i.push(it(a.messages[c].range,e.fullField,e.min,e.max))},ne="enum",Hh=function(e,n,r,i,a){e[ne]=Array.isArray(e[ne])?e[ne]:[],e[ne].indexOf(n)===-1&&i.push(it(a.messages[ne],e.fullField,e[ne].join(", ")))},Yh=function(e,n,r,i,a){if(e.pattern){if(e.pattern instanceof RegExp)e.pattern.lastIndex=0,e.pattern.test(n)||i.push(it(a.messages.pattern.mismatch,e.fullField,n,e.pattern));else if(typeof e.pattern=="string"){var o=new RegExp(e.pattern);o.test(n)||i.push(it(a.messages.pattern.mismatch,e.fullField,n,e.pattern))}}},I={required:lo,whitespace:Ch,type:Nh,range:Ih,enum:Hh,pattern:Yh},kh=function(e,n,r,i,a){var o=[],s=e.required||!e.required&&i.hasOwnProperty(e.field);if(s){if(G(n,"string")&&!e.required)return r();I.required(e,n,i,o,a,"string"),G(n,"string")||(I.type(e,n,i,o,a),I.range(e,n,i,o,a),I.pattern(e,n,i,o,a),e.whitespace===!0&&I.whitespace(e,n,i,o,a))}r(o)},qh=function(e,n,r,i,a){var o=[],s=e.required||!e.required&&i.hasOwnProperty(e.field);if(s){if(G(n)&&!e.required)return r();I.required(e,n,i,o,a),n!==void 0&&I.type(e,n,i,o,a)}r(o)},Bh=function(e,n,r,i,a){var o=[],s=e.required||!e.required&&i.hasOwnProperty(e.field);if(s){if(n===""&&(n=void 0),G(n)&&!e.required)return r();I.required(e,n,i,o,a),n!==void 0&&(I.type(e,n,i,o,a),I.range(e,n,i,o,a))}r(o)},Wh=function(e,n,r,i,a){var o=[],s=e.required||!e.required&&i.hasOwnProperty(e.field);if(s){if(G(n)&&!e.required)return r();I.required(e,n,i,o,a),n!==void 0&&I.type(e,n,i,o,a)}r(o)},Uh=function(e,n,r,i,a){var o=[],s=e.required||!e.required&&i.hasOwnProperty(e.field);if(s){if(G(n)&&!e.required)return r();I.required(e,n,i,o,a),G(n)||I.type(e,n,i,o,a)}r(o)},Gh=function(e,n,r,i,a){var o=[],s=e.required||!e.required&&i.hasOwnProperty(e.field);if(s){if(G(n)&&!e.required)return r();I.required(e,n,i,o,a),n!==void 0&&(I.type(e,n,i,o,a),I.range(e,n,i,o,a))}r(o)},Vh=function(e,n,r,i,a){var o=[],s=e.required||!e.required&&i.hasOwnProperty(e.field);if(s){if(G(n)&&!e.required)return r();I.required(e,n,i,o,a),n!==void 0&&(I.type(e,n,i,o,a),I.range(e,n,i,o,a))}r(o)},Xh=function(e,n,r,i,a){var o=[],s=e.required||!e.required&&i.hasOwnProperty(e.field);if(s){if(n==null&&!e.required)return r();I.required(e,n,i,o,a,"array"),n!=null&&(I.type(e,n,i,o,a),I.range(e,n,i,o,a))}r(o)},zh=function(e,n,r,i,a){var o=[],s=e.required||!e.required&&i.hasOwnProperty(e.field);if(s){if(G(n)&&!e.required)return r();I.required(e,n,i,o,a),n!==void 0&&I.type(e,n,i,o,a)}r(o)},Zh="enum",Kh=function(e,n,r,i,a){var o=[],s=e.required||!e.required&&i.hasOwnProperty(e.field);if(s){if(G(n)&&!e.required)return r();I.required(e,n,i,o,a),n!==void 0&&I[Zh](e,n,i,o,a)}r(o)},Jh=function(e,n,r,i,a){var o=[],s=e.required||!e.required&&i.hasOwnProperty(e.field);if(s){if(G(n,"string")&&!e.required)return r();I.required(e,n,i,o,a),G(n,"string")||I.pattern(e,n,i,o,a)}r(o)},Qh=function(e,n,r,i,a){var o=[],s=e.required||!e.required&&i.hasOwnProperty(e.field);if(s){if(G(n,"date")&&!e.required)return r();if(I.required(e,n,i,o,a),!G(n,"date")){var f;n instanceof Date?f=n:f=new Date(n),I.type(e,f,i,o,a),f&&I.range(e,f.getTime(),i,o,a)}}r(o)},tp=function(e,n,r,i,a){var o=[],s=Array.isArray(n)?"array":typeof n;I.required(e,n,i,o,a,s),r(o)},jn=function(e,n,r,i,a){var o=e.type,s=[],f=e.required||!e.required&&i.hasOwnProperty(e.field);if(f){if(G(n,o)&&!e.required)return r();I.required(e,n,i,s,a,o),G(n,o)||I.type(e,n,i,s,a)}r(s)},ep=function(e,n,r,i,a){var o=[],s=e.required||!e.required&&i.hasOwnProperty(e.field);if(s){if(G(n)&&!e.required)return r();I.required(e,n,i,o,a)}r(o)},Ee={string:kh,method:qh,number:Bh,boolean:Wh,regexp:Uh,integer:Gh,float:Vh,array:Xh,object:zh,enum:Kh,pattern:Jh,date:Qh,url:jn,hex:jn,email:jn,required:tp,any:ep};function Zn(){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 e=JSON.parse(JSON.stringify(this));return e.clone=this.clone,e}}}var Kn=Zn(),$n=function(){function t(n){this.rules=null,this._messages=Kn,this.define(n)}var e=t.prototype;return e.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(a){var o=r[a];i.rules[a]=Array.isArray(o)?o:[o]})},e.messages=function(r){return r&&(this._messages=Bi(Zn(),r)),this._messages},e.validate=function(r,i,a){var o=this;i===void 0&&(i={}),a===void 0&&(a=function(){});var s=r,f=i,u=a;if(typeof f=="function"&&(u=f,f={}),!this.rules||Object.keys(this.rules).length===0)return u&&u(null,s),Promise.resolve(s);function l(g){var h=[],d={};function w(x){if(Array.isArray(x)){var A;h=(A=h).concat.apply(A,x)}else h.push(x)}for(var v=0;v<g.length;v++)w(g[v]);h.length?(d=zn(h),u(h,d)):u(null,s)}if(f.messages){var c=this.messages();c===Kn&&(c=Zn()),Bi(c,f.messages),f.messages=c}else f.messages=this.messages();var p={},m=f.keys||Object.keys(this.rules);m.forEach(function(g){var h=o.rules[g],d=s[g];h.forEach(function(w){var v=w;typeof v.transform=="function"&&(s===r&&(s=Bt({},s)),d=s[g]=v.transform(d)),typeof v=="function"?v={validator:v}:v=Bt({},v),v.validator=o.getValidationMethod(v),v.validator&&(v.field=g,v.fullField=v.fullField||g,v.type=o.getType(v),p[g]=p[g]||[],p[g].push({rule:v,value:d,source:s,field:g}))})});var y={};return Dh(p,f,function(g,h){var d=g.rule,w=(d.type==="object"||d.type==="array")&&(typeof d.fields=="object"||typeof d.defaultField=="object");w=w&&(d.required||!d.required&&g.value),d.field=g.field;function v(S,E){return Bt({},E,{fullField:d.fullField+"."+S,fullFields:d.fullFields?[].concat(d.fullFields,[S]):[S]})}function x(S){S===void 0&&(S=[]);var E=Array.isArray(S)?S:[S];!f.suppressWarning&&E.length&&t.warning("async-validator:",E),E.length&&d.message!==void 0&&(E=[].concat(d.message));var P=E.map(qi(d,s));if(f.first&&P.length)return y[d.field]=1,h(P);if(!w)h(P);else{if(d.required&&!g.value)return d.message!==void 0?P=[].concat(d.message).map(qi(d,s)):f.error&&(P=[f.error(d,it(f.messages.required,d.field))]),h(P);var L={};d.defaultField&&Object.keys(g.value).map(function(C){L[C]=d.defaultField}),L=Bt({},L,g.rule.fields);var D={};Object.keys(L).forEach(function(C){var j=L[C],T=Array.isArray(j)?j:[j];D[C]=T.map(v.bind(null,C))});var F=new t(D);F.messages(f.messages),g.rule.options&&(g.rule.options.messages=f.messages,g.rule.options.error=f.error),F.validate(g.value,g.rule.options||f,function(C){var j=[];P&&P.length&&j.push.apply(j,P),C&&C.length&&j.push.apply(j,C),h(j.length?j:null)})}}var A;if(d.asyncValidator)A=d.asyncValidator(d,g.value,x,g.source,f);else if(d.validator){try{A=d.validator(d,g.value,x,g.source,f)}catch(S){console.error==null||console.error(S),f.suppressValidatorError||setTimeout(function(){throw S},0),x(S.message)}A===!0?x():A===!1?x(typeof d.message=="function"?d.message(d.fullField||d.field):d.message||(d.fullField||d.field)+" fails"):A instanceof Array?x(A):A instanceof Error&&x(A.message)}A&&A.then&&A.then(function(){return x()},function(S){return x(S)})},function(g){l(g)},s)},e.getType=function(r){if(r.type===void 0&&r.pattern instanceof RegExp&&(r.type="pattern"),typeof r.validator!="function"&&r.type&&!Ee.hasOwnProperty(r.type))throw new Error(it("Unknown rule type %s",r.type));return r.type||"string"},e.getValidationMethod=function(r){if(typeof r.validator=="function")return r.validator;var i=Object.keys(r),a=i.indexOf("message");return a!==-1&&i.splice(a,1),i.length===1&&i[0]==="required"?Ee.required:Ee[this.getType(r)]||void 0},t}();$n.register=function(e,n){if(typeof n!="function")throw new Error("Cannot register a validator by type, validator is not a function");Ee[e]=n};$n.warning=_h;$n.messages=Kn;$n.validators=Ee;var Ui=Number.isNaN||function(e){return typeof e=="number"&&e!==e};function np(t,e){return!!(t===e||Ui(t)&&Ui(e))}function rp(t,e){if(t.length!==e.length)return!1;for(var n=0;n<t.length;n++)if(!np(t[n],e[n]))return!1;return!0}function Vg(t,e){e===void 0&&(e=rp);var n=null;function r(){for(var i=[],a=0;a<arguments.length;a++)i[a]=arguments[a];if(n&&n.lastThis===this&&e(i,n.lastArgs))return n.lastResult;var o=t.apply(this,i);return n={lastResult:o,lastArgs:i,lastThis:this},o}return r.clear=function(){n=null},r}var Gi=!1,kt,Jn,Qn,fn,un,ho,cn,tr,er,nr,po,rr,ir,go,mo;function Q(){if(!Gi){Gi=!0;var t=navigator.userAgent,e=/(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec(t),n=/(Mac OS X)|(Windows)|(Linux)/.exec(t);if(rr=/\b(iPhone|iP[ao]d)/.exec(t),ir=/\b(iP[ao]d)/.exec(t),nr=/Android/i.exec(t),go=/FBAN\/\w+;/i.exec(t),mo=/Mobile/i.exec(t),po=!!/Win64/.exec(t),e){kt=e[1]?parseFloat(e[1]):e[5]?parseFloat(e[5]):NaN,kt&&document&&document.documentMode&&(kt=document.documentMode);var r=/(?:Trident\/(\d+.\d+))/.exec(t);ho=r?parseFloat(r[1])+4:kt,Jn=e[2]?parseFloat(e[2]):NaN,Qn=e[3]?parseFloat(e[3]):NaN,fn=e[4]?parseFloat(e[4]):NaN,fn?(e=/(?:Chrome\/(\d+\.\d+))/.exec(t),un=e&&e[1]?parseFloat(e[1]):NaN):un=NaN}else kt=Jn=Qn=un=fn=NaN;if(n){if(n[1]){var i=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(t);cn=i?parseFloat(i[1].replace("_",".")):!0}else cn=!1;tr=!!n[2],er=!!n[3]}else cn=tr=er=!1}}var ar={ie:function(){return Q()||kt},ieCompatibilityMode:function(){return Q()||ho>kt},ie64:function(){return ar.ie()&&po},firefox:function(){return Q()||Jn},opera:function(){return Q()||Qn},webkit:function(){return Q()||fn},safari:function(){return ar.webkit()},chrome:function(){return Q()||un},windows:function(){return Q()||tr},osx:function(){return Q()||cn},linux:function(){return Q()||er},iphone:function(){return Q()||rr},mobile:function(){return Q()||rr||ir||nr||mo},nativeApp:function(){return Q()||go},android:function(){return Q()||nr},ipad:function(){return Q()||ir}},ip=ar,ap=!!(typeof window<"u"&&window.document&&window.document.createElement),op={canUseDOM:ap},vo=op,yo;vo.canUseDOM&&(yo=document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("","")!==!0);function sp(t,e){if(!vo.canUseDOM||e&&!("addEventListener"in document))return!1;var n="on"+t,r=n in document;if(!r){var i=document.createElement("div");i.setAttribute(n,"return;"),r=typeof i[n]=="function"}return!r&&yo&&t==="wheel"&&(r=document.implementation.hasFeature("Events.wheel","3.0")),r}var fp=sp,Vi=10,Xi=40,zi=800;function bo(t){var e=0,n=0,r=0,i=0;return"detail"in t&&(n=t.detail),"wheelDelta"in t&&(n=-t.wheelDelta/120),"wheelDeltaY"in t&&(n=-t.wheelDeltaY/120),"wheelDeltaX"in t&&(e=-t.wheelDeltaX/120),"axis"in t&&t.axis===t.HORIZONTAL_AXIS&&(e=n,n=0),r=e*Vi,i=n*Vi,"deltaY"in t&&(i=t.deltaY),"deltaX"in t&&(r=t.deltaX),(r||i)&&t.deltaMode&&(t.deltaMode==1?(r*=Xi,i*=Xi):(r*=zi,i*=zi)),r&&!e&&(e=r<1?-1:1),i&&!n&&(n=i<1?-1:1),{spinX:e,spinY:n,pixelX:r,pixelY:i}}bo.getEventType=function(){return ip.firefox()?"DOMMouseScroll":fp("wheel")?"wheel":"mousewheel"};var Xg=bo;/**
|
|
* 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 he=Math.min,Ut=Math.max,pn=Math.round,en=Math.floor,Ot=t=>({x:t,y:t}),up={left:"right",right:"left",bottom:"top",top:"bottom"},cp={start:"end",end:"start"};function or(t,e,n){return Ut(t,he(e,n))}function Ue(t,e){return typeof t=="function"?t(e):t}function Vt(t){return t.split("-")[0]}function Ge(t){return t.split("-")[1]}function wo(t){return t==="x"?"y":"x"}function Cr(t){return t==="y"?"height":"width"}const lp=new Set(["top","bottom"]);function jt(t){return lp.has(Vt(t))?"y":"x"}function jr(t){return wo(jt(t))}function dp(t,e,n){n===void 0&&(n=!1);const r=Ge(t),i=jr(t),a=Cr(i);let o=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return e.reference[a]>e.floating[a]&&(o=gn(o)),[o,gn(o)]}function hp(t){const e=gn(t);return[sr(t),e,sr(e)]}function sr(t){return t.replace(/start|end/g,e=>cp[e])}const Zi=["left","right"],Ki=["right","left"],pp=["top","bottom"],gp=["bottom","top"];function mp(t,e,n){switch(t){case"top":case"bottom":return n?e?Ki:Zi:e?Zi:Ki;case"left":case"right":return e?pp:gp;default:return[]}}function vp(t,e,n,r){const i=Ge(t);let a=mp(Vt(t),n==="start",r);return i&&(a=a.map(o=>o+"-"+i),e&&(a=a.concat(a.map(sr)))),a}function gn(t){return t.replace(/left|right|bottom|top/g,e=>up[e])}function yp(t){return{top:0,right:0,bottom:0,left:0,...t}}function xo(t){return typeof t!="number"?yp(t):{top:t,right:t,bottom:t,left:t}}function mn(t){const{x:e,y:n,width:r,height:i}=t;return{width:r,height:i,top:n,left:e,right:e+r,bottom:n+i,x:e,y:n}}function Ji(t,e,n){let{reference:r,floating:i}=t;const a=jt(e),o=jr(e),s=Cr(o),f=Vt(e),u=a==="y",l=r.x+r.width/2-i.width/2,c=r.y+r.height/2-i.height/2,p=r[s]/2-i[s]/2;let m;switch(f){case"top":m={x:l,y:r.y-i.height};break;case"bottom":m={x:l,y:r.y+r.height};break;case"right":m={x:r.x+r.width,y:c};break;case"left":m={x:r.x-i.width,y:c};break;default:m={x:r.x,y:r.y}}switch(Ge(e)){case"start":m[o]-=p*(n&&u?-1:1);break;case"end":m[o]+=p*(n&&u?-1:1);break}return m}const bp=async(t,e,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:a=[],platform:o}=n,s=a.filter(Boolean),f=await(o.isRTL==null?void 0:o.isRTL(e));let u=await o.getElementRects({reference:t,floating:e,strategy:i}),{x:l,y:c}=Ji(u,r,f),p=r,m={},y=0;for(let g=0;g<s.length;g++){const{name:h,fn:d}=s[g],{x:w,y:v,data:x,reset:A}=await d({x:l,y:c,initialPlacement:r,placement:p,strategy:i,middlewareData:m,rects:u,platform:o,elements:{reference:t,floating:e}});l=w??l,c=v??c,m={...m,[h]:{...m[h],...x}},A&&y<=50&&(y++,typeof A=="object"&&(A.placement&&(p=A.placement),A.rects&&(u=A.rects===!0?await o.getElementRects({reference:t,floating:e,strategy:i}):A.rects),{x:l,y:c}=Ji(u,p,f)),g=-1)}return{x:l,y:c,placement:p,strategy:i,middlewareData:m}};async function Nr(t,e){var n;e===void 0&&(e={});const{x:r,y:i,platform:a,rects:o,elements:s,strategy:f}=t,{boundary:u="clippingAncestors",rootBoundary:l="viewport",elementContext:c="floating",altBoundary:p=!1,padding:m=0}=Ue(e,t),y=xo(m),h=s[p?c==="floating"?"reference":"floating":c],d=mn(await a.getClippingRect({element:(n=await(a.isElement==null?void 0:a.isElement(h)))==null||n?h:h.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(s.floating)),boundary:u,rootBoundary:l,strategy:f})),w=c==="floating"?{x:r,y:i,width:o.floating.width,height:o.floating.height}:o.reference,v=await(a.getOffsetParent==null?void 0:a.getOffsetParent(s.floating)),x=await(a.isElement==null?void 0:a.isElement(v))?await(a.getScale==null?void 0:a.getScale(v))||{x:1,y:1}:{x:1,y:1},A=mn(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:w,offsetParent:v,strategy:f}):w);return{top:(d.top-A.top+y.top)/x.y,bottom:(A.bottom-d.bottom+y.bottom)/x.y,left:(d.left-A.left+y.left)/x.x,right:(A.right-d.right+y.right)/x.x}}const wp=t=>({name:"arrow",options:t,async fn(e){const{x:n,y:r,placement:i,rects:a,platform:o,elements:s,middlewareData:f}=e,{element:u,padding:l=0}=Ue(t,e)||{};if(u==null)return{};const c=xo(l),p={x:n,y:r},m=jr(i),y=Cr(m),g=await o.getDimensions(u),h=m==="y",d=h?"top":"left",w=h?"bottom":"right",v=h?"clientHeight":"clientWidth",x=a.reference[y]+a.reference[m]-p[m]-a.floating[y],A=p[m]-a.reference[m],S=await(o.getOffsetParent==null?void 0:o.getOffsetParent(u));let E=S?S[v]:0;(!E||!await(o.isElement==null?void 0:o.isElement(S)))&&(E=s.floating[v]||a.floating[y]);const P=x/2-A/2,L=E/2-g[y]/2-1,D=he(c[d],L),F=he(c[w],L),C=D,j=E-g[y]-F,T=E/2-g[y]/2+P,$=or(C,T,j),b=!f.arrow&&Ge(i)!=null&&T!==$&&a.reference[y]/2-(T<C?D:F)-g[y]/2<0,M=b?T<C?T-C:T-j:0;return{[m]:p[m]+M,data:{[m]:$,centerOffset:T-$-M,...b&&{alignmentOffset:M}},reset:b}}}),xp=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var n,r;const{placement:i,middlewareData:a,rects:o,initialPlacement:s,platform:f,elements:u}=e,{mainAxis:l=!0,crossAxis:c=!0,fallbackPlacements:p,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:y="none",flipAlignment:g=!0,...h}=Ue(t,e);if((n=a.arrow)!=null&&n.alignmentOffset)return{};const d=Vt(i),w=jt(s),v=Vt(s)===s,x=await(f.isRTL==null?void 0:f.isRTL(u.floating)),A=p||(v||!g?[gn(s)]:hp(s)),S=y!=="none";!p&&S&&A.push(...vp(s,g,y,x));const E=[s,...A],P=await Nr(e,h),L=[];let D=((r=a.flip)==null?void 0:r.overflows)||[];if(l&&L.push(P[d]),c){const T=dp(i,o,x);L.push(P[T[0]],P[T[1]])}if(D=[...D,{placement:i,overflows:L}],!L.every(T=>T<=0)){var F,C;const T=(((F=a.flip)==null?void 0:F.index)||0)+1,$=E[T];if($&&(!(c==="alignment"?w!==jt($):!1)||D.every(O=>O.overflows[0]>0&&jt(O.placement)===w)))return{data:{index:T,overflows:D},reset:{placement:$}};let b=(C=D.filter(M=>M.overflows[0]<=0).sort((M,O)=>M.overflows[1]-O.overflows[1])[0])==null?void 0:C.placement;if(!b)switch(m){case"bestFit":{var j;const M=(j=D.filter(O=>{if(S){const _=jt(O.placement);return _===w||_==="y"}return!0}).map(O=>[O.placement,O.overflows.filter(_=>_>0).reduce((_,R)=>_+R,0)]).sort((O,_)=>O[1]-_[1])[0])==null?void 0:j[0];M&&(b=M);break}case"initialPlacement":b=s;break}if(i!==b)return{reset:{placement:b}}}return{}}}},Op=new Set(["left","top"]);async function Ap(t,e){const{placement:n,platform:r,elements:i}=t,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=Vt(n),s=Ge(n),f=jt(n)==="y",u=Op.has(o)?-1:1,l=a&&f?-1:1,c=Ue(e,t);let{mainAxis:p,crossAxis:m,alignmentAxis:y}=typeof c=="number"?{mainAxis:c,crossAxis:0,alignmentAxis:null}:{mainAxis:c.mainAxis||0,crossAxis:c.crossAxis||0,alignmentAxis:c.alignmentAxis};return s&&typeof y=="number"&&(m=s==="end"?y*-1:y),f?{x:m*l,y:p*u}:{x:p*u,y:m*l}}const $p=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var n,r;const{x:i,y:a,placement:o,middlewareData:s}=e,f=await Ap(e,t);return o===((n=s.offset)==null?void 0:n.placement)&&(r=s.arrow)!=null&&r.alignmentOffset?{}:{x:i+f.x,y:a+f.y,data:{...f,placement:o}}}}},Sp=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:r,placement:i}=e,{mainAxis:a=!0,crossAxis:o=!1,limiter:s={fn:h=>{let{x:d,y:w}=h;return{x:d,y:w}}},...f}=Ue(t,e),u={x:n,y:r},l=await Nr(e,f),c=jt(Vt(i)),p=wo(c);let m=u[p],y=u[c];if(a){const h=p==="y"?"top":"left",d=p==="y"?"bottom":"right",w=m+l[h],v=m-l[d];m=or(w,m,v)}if(o){const h=c==="y"?"top":"left",d=c==="y"?"bottom":"right",w=y+l[h],v=y-l[d];y=or(w,y,v)}const g=s.fn({...e,[p]:m,[c]:y});return{...g,data:{x:g.x-n,y:g.y-r,enabled:{[p]:a,[c]:o}}}}}};function Sn(){return typeof window<"u"}function be(t){return Oo(t)?(t.nodeName||"").toLowerCase():"#document"}function at(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function Mt(t){var e;return(e=(Oo(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function Oo(t){return Sn()?t instanceof Node||t instanceof at(t).Node:!1}function vt(t){return Sn()?t instanceof Element||t instanceof at(t).Element:!1}function St(t){return Sn()?t instanceof HTMLElement||t instanceof at(t).HTMLElement:!1}function Qi(t){return!Sn()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof at(t).ShadowRoot}const Mp=new Set(["inline","contents"]);function Ve(t){const{overflow:e,overflowX:n,overflowY:r,display:i}=yt(t);return/auto|scroll|overlay|hidden|clip/.test(e+r+n)&&!Mp.has(i)}const Tp=new Set(["table","td","th"]);function _p(t){return Tp.has(be(t))}const Ep=[":popover-open",":modal"];function Mn(t){return Ep.some(e=>{try{return t.matches(e)}catch{return!1}})}const Fp=["transform","translate","scale","rotate","perspective"],Pp=["transform","translate","scale","rotate","perspective","filter"],Dp=["paint","layout","strict","content"];function Ir(t){const e=Hr(),n=vt(t)?yt(t):t;return Fp.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!e&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!e&&(n.filter?n.filter!=="none":!1)||Pp.some(r=>(n.willChange||"").includes(r))||Dp.some(r=>(n.contain||"").includes(r))}function Rp(t){let e=Ht(t);for(;St(e)&&!pe(e);){if(Ir(e))return e;if(Mn(e))return null;e=Ht(e)}return null}function Hr(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const Lp=new Set(["html","body","#document"]);function pe(t){return Lp.has(be(t))}function yt(t){return at(t).getComputedStyle(t)}function Tn(t){return vt(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function Ht(t){if(be(t)==="html")return t;const e=t.assignedSlot||t.parentNode||Qi(t)&&t.host||Mt(t);return Qi(e)?e.host:e}function Ao(t){const e=Ht(t);return pe(e)?t.ownerDocument?t.ownerDocument.body:t.body:St(e)&&Ve(e)?e:Ao(e)}function Ie(t,e,n){var r;e===void 0&&(e=[]),n===void 0&&(n=!0);const i=Ao(t),a=i===((r=t.ownerDocument)==null?void 0:r.body),o=at(i);if(a){const s=fr(o);return e.concat(o,o.visualViewport||[],Ve(i)?i:[],s&&n?Ie(s):[])}return e.concat(i,Ie(i,[],n))}function fr(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function $o(t){const e=yt(t);let n=parseFloat(e.width)||0,r=parseFloat(e.height)||0;const i=St(t),a=i?t.offsetWidth:n,o=i?t.offsetHeight:r,s=pn(n)!==a||pn(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function Yr(t){return vt(t)?t:t.contextElement}function oe(t){const e=Yr(t);if(!St(e))return Ot(1);const n=e.getBoundingClientRect(),{width:r,height:i,$:a}=$o(e);let o=(a?pn(n.width):n.width)/r,s=(a?pn(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}const Cp=Ot(0);function So(t){const e=at(t);return!Hr()||!e.visualViewport?Cp:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function jp(t,e,n){return e===void 0&&(e=!1),!n||e&&n!==at(t)?!1:e}function Xt(t,e,n,r){e===void 0&&(e=!1),n===void 0&&(n=!1);const i=t.getBoundingClientRect(),a=Yr(t);let o=Ot(1);e&&(r?vt(r)&&(o=oe(r)):o=oe(t));const s=jp(a,n,r)?So(a):Ot(0);let f=(i.left+s.x)/o.x,u=(i.top+s.y)/o.y,l=i.width/o.x,c=i.height/o.y;if(a){const p=at(a),m=r&&vt(r)?at(r):r;let y=p,g=fr(y);for(;g&&r&&m!==y;){const h=oe(g),d=g.getBoundingClientRect(),w=yt(g),v=d.left+(g.clientLeft+parseFloat(w.paddingLeft))*h.x,x=d.top+(g.clientTop+parseFloat(w.paddingTop))*h.y;f*=h.x,u*=h.y,l*=h.x,c*=h.y,f+=v,u+=x,y=at(g),g=fr(y)}}return mn({width:l,height:c,x:f,y:u})}function kr(t,e){const n=Tn(t).scrollLeft;return e?e.left+n:Xt(Mt(t)).left+n}function Mo(t,e,n){n===void 0&&(n=!1);const r=t.getBoundingClientRect(),i=r.left+e.scrollLeft-(n?0:kr(t,r)),a=r.top+e.scrollTop;return{x:i,y:a}}function Np(t){let{elements:e,rect:n,offsetParent:r,strategy:i}=t;const a=i==="fixed",o=Mt(r),s=e?Mn(e.floating):!1;if(r===o||s&&a)return n;let f={scrollLeft:0,scrollTop:0},u=Ot(1);const l=Ot(0),c=St(r);if((c||!c&&!a)&&((be(r)!=="body"||Ve(o))&&(f=Tn(r)),St(r))){const m=Xt(r);u=oe(r),l.x=m.x+r.clientLeft,l.y=m.y+r.clientTop}const p=o&&!c&&!a?Mo(o,f,!0):Ot(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-f.scrollLeft*u.x+l.x+p.x,y:n.y*u.y-f.scrollTop*u.y+l.y+p.y}}function Ip(t){return Array.from(t.getClientRects())}function Hp(t){const e=Mt(t),n=Tn(t),r=t.ownerDocument.body,i=Ut(e.scrollWidth,e.clientWidth,r.scrollWidth,r.clientWidth),a=Ut(e.scrollHeight,e.clientHeight,r.scrollHeight,r.clientHeight);let o=-n.scrollLeft+kr(t);const s=-n.scrollTop;return yt(r).direction==="rtl"&&(o+=Ut(e.clientWidth,r.clientWidth)-i),{width:i,height:a,x:o,y:s}}function Yp(t,e){const n=at(t),r=Mt(t),i=n.visualViewport;let a=r.clientWidth,o=r.clientHeight,s=0,f=0;if(i){a=i.width,o=i.height;const u=Hr();(!u||u&&e==="fixed")&&(s=i.offsetLeft,f=i.offsetTop)}return{width:a,height:o,x:s,y:f}}const kp=new Set(["absolute","fixed"]);function qp(t,e){const n=Xt(t,!0,e==="fixed"),r=n.top+t.clientTop,i=n.left+t.clientLeft,a=St(t)?oe(t):Ot(1),o=t.clientWidth*a.x,s=t.clientHeight*a.y,f=i*a.x,u=r*a.y;return{width:o,height:s,x:f,y:u}}function ta(t,e,n){let r;if(e==="viewport")r=Yp(t,n);else if(e==="document")r=Hp(Mt(t));else if(vt(e))r=qp(e,n);else{const i=So(t);r={x:e.x-i.x,y:e.y-i.y,width:e.width,height:e.height}}return mn(r)}function To(t,e){const n=Ht(t);return n===e||!vt(n)||pe(n)?!1:yt(n).position==="fixed"||To(n,e)}function Bp(t,e){const n=e.get(t);if(n)return n;let r=Ie(t,[],!1).filter(s=>vt(s)&&be(s)!=="body"),i=null;const a=yt(t).position==="fixed";let o=a?Ht(t):t;for(;vt(o)&&!pe(o);){const s=yt(o),f=Ir(o);!f&&s.position==="fixed"&&(i=null),(a?!f&&!i:!f&&s.position==="static"&&!!i&&kp.has(i.position)||Ve(o)&&!f&&To(t,o))?r=r.filter(l=>l!==o):i=s,o=Ht(o)}return e.set(t,r),r}function Wp(t){let{element:e,boundary:n,rootBoundary:r,strategy:i}=t;const o=[...n==="clippingAncestors"?Mn(e)?[]:Bp(e,this._c):[].concat(n),r],s=o[0],f=o.reduce((u,l)=>{const c=ta(e,l,i);return u.top=Ut(c.top,u.top),u.right=he(c.right,u.right),u.bottom=he(c.bottom,u.bottom),u.left=Ut(c.left,u.left),u},ta(e,s,i));return{width:f.right-f.left,height:f.bottom-f.top,x:f.left,y:f.top}}function Up(t){const{width:e,height:n}=$o(t);return{width:e,height:n}}function Gp(t,e,n){const r=St(e),i=Mt(e),a=n==="fixed",o=Xt(t,!0,a,e);let s={scrollLeft:0,scrollTop:0};const f=Ot(0);function u(){f.x=kr(i)}if(r||!r&&!a)if((be(e)!=="body"||Ve(i))&&(s=Tn(e)),r){const m=Xt(e,!0,a,e);f.x=m.x+e.clientLeft,f.y=m.y+e.clientTop}else i&&u();a&&!r&&i&&u();const l=i&&!r&&!a?Mo(i,s):Ot(0),c=o.left+s.scrollLeft-f.x-l.x,p=o.top+s.scrollTop-f.y-l.y;return{x:c,y:p,width:o.width,height:o.height}}function Nn(t){return yt(t).position==="static"}function ea(t,e){if(!St(t)||yt(t).position==="fixed")return null;if(e)return e(t);let n=t.offsetParent;return Mt(t)===n&&(n=n.ownerDocument.body),n}function _o(t,e){const n=at(t);if(Mn(t))return n;if(!St(t)){let i=Ht(t);for(;i&&!pe(i);){if(vt(i)&&!Nn(i))return i;i=Ht(i)}return n}let r=ea(t,e);for(;r&&_p(r)&&Nn(r);)r=ea(r,e);return r&&pe(r)&&Nn(r)&&!Ir(r)?n:r||Rp(t)||n}const Vp=async function(t){const e=this.getOffsetParent||_o,n=this.getDimensions,r=await n(t.floating);return{reference:Gp(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Xp(t){return yt(t).direction==="rtl"}const zp={convertOffsetParentRelativeRectToViewportRelativeRect:Np,getDocumentElement:Mt,getClippingRect:Wp,getOffsetParent:_o,getElementRects:Vp,getClientRects:Ip,getDimensions:Up,getScale:oe,isElement:vt,isRTL:Xp};function Eo(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function Zp(t,e){let n=null,r;const i=Mt(t);function a(){var s;clearTimeout(r),(s=n)==null||s.disconnect(),n=null}function o(s,f){s===void 0&&(s=!1),f===void 0&&(f=1),a();const u=t.getBoundingClientRect(),{left:l,top:c,width:p,height:m}=u;if(s||e(),!p||!m)return;const y=en(c),g=en(i.clientWidth-(l+p)),h=en(i.clientHeight-(c+m)),d=en(l),v={rootMargin:-y+"px "+-g+"px "+-h+"px "+-d+"px",threshold:Ut(0,he(1,f))||1};let x=!0;function A(S){const E=S[0].intersectionRatio;if(E!==f){if(!x)return o();E?o(!1,E):r=setTimeout(()=>{o(!1,1e-7)},1e3)}E===1&&!Eo(u,t.getBoundingClientRect())&&o(),x=!1}try{n=new IntersectionObserver(A,{...v,root:i.ownerDocument})}catch{n=new IntersectionObserver(A,v)}n.observe(t)}return o(!0),a}function zg(t,e,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:f=!1}=r,u=Yr(t),l=i||a?[...u?Ie(u):[],...Ie(e)]:[];l.forEach(d=>{i&&d.addEventListener("scroll",n,{passive:!0}),a&&d.addEventListener("resize",n)});const c=u&&s?Zp(u,n):null;let p=-1,m=null;o&&(m=new ResizeObserver(d=>{let[w]=d;w&&w.target===u&&m&&(m.unobserve(e),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var v;(v=m)==null||v.observe(e)})),n()}),u&&!f&&m.observe(u),m.observe(e));let y,g=f?Xt(t):null;f&&h();function h(){const d=Xt(t);g&&!Eo(g,d)&&n(),g=d,y=requestAnimationFrame(h)}return n(),()=>{var d;l.forEach(w=>{i&&w.removeEventListener("scroll",n),a&&w.removeEventListener("resize",n)}),c==null||c(),(d=m)==null||d.disconnect(),m=null,f&&cancelAnimationFrame(y)}}const Zg=Nr,Kg=$p,Jg=Sp,Qg=xp,t0=wp,e0=(t,e,n)=>{const r=new Map,i={platform:zp,...n},a={...i.platform,_c:r};return bp(t,e,{...i,platform:a})};/*!
|
|
* @kurkle/color v0.3.4
|
|
* https://github.com/kurkle/color#readme
|
|
* (c) 2024 Jukka Kurkela
|
|
* Released under the MIT License
|
|
*/function Xe(t){return t+.5|0}const Nt=(t,e,n)=>Math.max(Math.min(t,n),e);function Se(t){return Nt(Xe(t*2.55),0,255)}function It(t){return Nt(Xe(t*255),0,255)}function _t(t){return Nt(Xe(t/2.55)/100,0,1)}function na(t){return Nt(Xe(t*100),0,100)}const st={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},ur=[..."0123456789ABCDEF"],Kp=t=>ur[t&15],Jp=t=>ur[(t&240)>>4]+ur[t&15],nn=t=>(t&240)>>4===(t&15),Qp=t=>nn(t.r)&&nn(t.g)&&nn(t.b)&&nn(t.a);function tg(t){var e=t.length,n;return t[0]==="#"&&(e===4||e===5?n={r:255&st[t[1]]*17,g:255&st[t[2]]*17,b:255&st[t[3]]*17,a:e===5?st[t[4]]*17:255}:(e===7||e===9)&&(n={r:st[t[1]]<<4|st[t[2]],g:st[t[3]]<<4|st[t[4]],b:st[t[5]]<<4|st[t[6]],a:e===9?st[t[7]]<<4|st[t[8]]:255})),n}const eg=(t,e)=>t<255?e(t):"";function ng(t){var e=Qp(t)?Kp:Jp;return t?"#"+e(t.r)+e(t.g)+e(t.b)+eg(t.a,e):void 0}const rg=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function Fo(t,e,n){const r=e*Math.min(n,1-n),i=(a,o=(a+t/30)%12)=>n-r*Math.max(Math.min(o-3,9-o,1),-1);return[i(0),i(8),i(4)]}function ig(t,e,n){const r=(i,a=(i+t/60)%6)=>n-n*e*Math.max(Math.min(a,4-a,1),0);return[r(5),r(3),r(1)]}function ag(t,e,n){const r=Fo(t,1,.5);let i;for(e+n>1&&(i=1/(e+n),e*=i,n*=i),i=0;i<3;i++)r[i]*=1-e-n,r[i]+=e;return r}function og(t,e,n,r,i){return t===i?(e-n)/r+(e<n?6:0):e===i?(n-t)/r+2:(t-e)/r+4}function qr(t){const n=t.r/255,r=t.g/255,i=t.b/255,a=Math.max(n,r,i),o=Math.min(n,r,i),s=(a+o)/2;let f,u,l;return a!==o&&(l=a-o,u=s>.5?l/(2-a-o):l/(a+o),f=og(n,r,i,l,a),f=f*60+.5),[f|0,u||0,s]}function Br(t,e,n,r){return(Array.isArray(e)?t(e[0],e[1],e[2]):t(e,n,r)).map(It)}function Wr(t,e,n){return Br(Fo,t,e,n)}function sg(t,e,n){return Br(ag,t,e,n)}function fg(t,e,n){return Br(ig,t,e,n)}function Po(t){return(t%360+360)%360}function ug(t){const e=rg.exec(t);let n=255,r;if(!e)return;e[5]!==r&&(n=e[6]?Se(+e[5]):It(+e[5]));const i=Po(+e[2]),a=+e[3]/100,o=+e[4]/100;return e[1]==="hwb"?r=sg(i,a,o):e[1]==="hsv"?r=fg(i,a,o):r=Wr(i,a,o),{r:r[0],g:r[1],b:r[2],a:n}}function cg(t,e){var n=qr(t);n[0]=Po(n[0]+e),n=Wr(n),t.r=n[0],t.g=n[1],t.b=n[2]}function lg(t){if(!t)return;const e=qr(t),n=e[0],r=na(e[1]),i=na(e[2]);return t.a<255?`hsla(${n}, ${r}%, ${i}%, ${_t(t.a)})`:`hsl(${n}, ${r}%, ${i}%)`}const ra={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"},ia={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 dg(){const t={},e=Object.keys(ia),n=Object.keys(ra);let r,i,a,o,s;for(r=0;r<e.length;r++){for(o=s=e[r],i=0;i<n.length;i++)a=n[i],s=s.replace(a,ra[a]);a=parseInt(ia[o],16),t[s]=[a>>16&255,a>>8&255,a&255]}return t}let rn;function hg(t){rn||(rn=dg(),rn.transparent=[0,0,0,0]);const e=rn[t.toLowerCase()];return e&&{r:e[0],g:e[1],b:e[2],a:e.length===4?e[3]:255}}const pg=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;function gg(t){const e=pg.exec(t);let n=255,r,i,a;if(e){if(e[7]!==r){const o=+e[7];n=e[8]?Se(o):Nt(o*255,0,255)}return r=+e[1],i=+e[3],a=+e[5],r=255&(e[2]?Se(r):Nt(r,0,255)),i=255&(e[4]?Se(i):Nt(i,0,255)),a=255&(e[6]?Se(a):Nt(a,0,255)),{r,g:i,b:a,a:n}}}function mg(t){return t&&(t.a<255?`rgba(${t.r}, ${t.g}, ${t.b}, ${_t(t.a)})`:`rgb(${t.r}, ${t.g}, ${t.b})`)}const In=t=>t<=.0031308?t*12.92:Math.pow(t,1/2.4)*1.055-.055,re=t=>t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4);function vg(t,e,n){const r=re(_t(t.r)),i=re(_t(t.g)),a=re(_t(t.b));return{r:It(In(r+n*(re(_t(e.r))-r))),g:It(In(i+n*(re(_t(e.g))-i))),b:It(In(a+n*(re(_t(e.b))-a))),a:t.a+n*(e.a-t.a)}}function an(t,e,n){if(t){let r=qr(t);r[e]=Math.max(0,Math.min(r[e]+r[e]*n,e===0?360:1)),r=Wr(r),t.r=r[0],t.g=r[1],t.b=r[2]}}function Do(t,e){return t&&Object.assign(e||{},t)}function aa(t){var e={r:0,g:0,b:0,a:255};return Array.isArray(t)?t.length>=3&&(e={r:t[0],g:t[1],b:t[2],a:255},t.length>3&&(e.a=It(t[3]))):(e=Do(t,{r:0,g:0,b:0,a:1}),e.a=It(e.a)),e}function yg(t){return t.charAt(0)==="r"?gg(t):ug(t)}class cr{constructor(e){if(e instanceof cr)return e;const n=typeof e;let r;n==="object"?r=aa(e):n==="string"&&(r=tg(e)||hg(e)||yg(e)),this._rgb=r,this._valid=!!r}get valid(){return this._valid}get rgb(){var e=Do(this._rgb);return e&&(e.a=_t(e.a)),e}set rgb(e){this._rgb=aa(e)}rgbString(){return this._valid?mg(this._rgb):void 0}hexString(){return this._valid?ng(this._rgb):void 0}hslString(){return this._valid?lg(this._rgb):void 0}mix(e,n){if(e){const r=this.rgb,i=e.rgb;let a;const o=n===a?.5:n,s=2*o-1,f=r.a-i.a,u=((s*f===-1?s:(s+f)/(1+s*f))+1)/2;a=1-u,r.r=255&u*r.r+a*i.r+.5,r.g=255&u*r.g+a*i.g+.5,r.b=255&u*r.b+a*i.b+.5,r.a=o*r.a+(1-o)*i.a,this.rgb=r}return this}interpolate(e,n){return e&&(this._rgb=vg(this._rgb,e._rgb,n)),this}clone(){return new cr(this.rgb)}alpha(e){return this._rgb.a=It(e),this}clearer(e){const n=this._rgb;return n.a*=1-e,this}greyscale(){const e=this._rgb,n=Xe(e.r*.3+e.g*.59+e.b*.11);return e.r=e.g=e.b=n,this}opaquer(e){const n=this._rgb;return n.a*=1+e,this}negate(){const e=this._rgb;return e.r=255-e.r,e.g=255-e.g,e.b=255-e.b,this}lighten(e){return an(this._rgb,2,e),this}darken(e){return an(this._rgb,2,-e),this}saturate(e){return an(this._rgb,1,e),this}desaturate(e){return an(this._rgb,1,-e),this}rotate(e){return cg(this._rgb,e),this}}export{xr as A,Vg as B,cr as C,_g as D,Wa as E,Fg as F,Ag as G,Pg as H,t0 as I,e0 as J,Kg as K,Qg as L,Jg as M,zg as N,Zg as O,$n as S,Ng as T,Xg as Y,Eg as a,Ig as b,Mg as c,jl as d,$g as e,Sg as f,iu as g,xg as h,Tg as i,bg as j,Yg as k,Hg as l,ou as m,kg as n,Bg as o,Dg as p,Wg as q,Ug as r,Rg as s,Lg as t,Cg as u,Gg as v,qg as w,wg as x,jg as y,Og as z};
|