@aic-kits/react 0.34.13 → 0.35.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/DatePicker/hooks.d.ts +1 -1
- package/dist/index.cjs +16 -16
- package/dist/index.js +252 -252
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -5,11 +5,11 @@
|
|
|
5
5
|
* Released under MIT license <https://lodash.com/license>
|
|
6
6
|
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
7
7
|
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
8
|
-
*/var nb=Mi.exports,ld;function rb(){return ld||(ld=1,function(e,n){(function(){var i,s="4.17.21",a=200,l="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",d="Expected a function",f="Invalid `variable` option passed into `_.template`",h="__lodash_hash_undefined__",p=500,x="__lodash_placeholder__",w=1,_=2,v=4,C=1,R=2,k=1,T=2,E=4,I=8,$=16,M=32,z=64,j=128,H=256,se=512,te=30,re="...",B=800,W=16,P=1,le=2,K=3,ne=1/0,ie=9007199254740991,we=17976931348623157e292,pe=NaN,Se=4294967295,$e=Se-1,de=Se>>>1,je=[["ary",j],["bind",k],["bindKey",T],["curry",I],["curryRight",$],["flip",se],["partial",M],["partialRight",z],["rearg",H]],Ze="[object Arguments]",Ee="[object Array]",st="[object AsyncFunction]",ye="[object Boolean]",Te="[object Date]",Fe="[object DOMException]",ke="[object Error]",ee="[object Function]",ge="[object GeneratorFunction]",G="[object Map]",oe="[object Number]",he="[object Null]",Ae="[object Object]",Be="[object Promise]",Ye="[object Proxy]",De="[object RegExp]",nt="[object Set]",it="[object String]",ae="[object Symbol]",Ue="[object Undefined]",Pe="[object WeakMap]",Ge="[object WeakSet]",Je="[object ArrayBuffer]",bt="[object DataView]",$t="[object Float32Array]",rr="[object Float64Array]",un="[object Int8Array]",Xt="[object Int16Array]",Sr="[object Int32Array]",Wn="[object Uint8Array]",ri="[object Uint8ClampedArray]",Er="[object Uint16Array]",ii="[object Uint32Array]",Vi=/\b__p \+= '';/g,bs=/\b(__p \+=) '' \+/g,xs=/(__e\(.*?\)|\b__t\)) \+\n'';/g,oi=/&(?:amp|lt|gt|quot|#39);/g,At=/[&<>"']/g,yn=RegExp(oi.source),vs=RegExp(At.source),si=/<%-([\s\S]+?)%>/g,ai=/<%([\s\S]+?)%>/g,Bn=/<%=([\s\S]+?)%>/g,li=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ir=/^\w*$/,Ni=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,or=/[\\^$.*+?()[\]{}|]/g,xe=RegExp(or.source),gt=/^\s+/,Ht=/\s/,bn=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Ui=/\{\n\/\* \[wrapped with (.+)\] \*/,z1=/,? & /,L1=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,j1=/[()=,{}\[\]\/\s]/,D1=/\\(\\)?/g,P1=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Ll=/\w*$/,W1=/^[-+]0x[0-9a-f]+$/i,B1=/^0b[01]+$/i,H1=/^\[object .+?Constructor\]$/,Z1=/^0o[0-7]+$/i,V1=/^(?:0|[1-9]\d*)$/,N1=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Gi=/($^)/,U1=/['\n\r\u2028\u2029\\]/g,qi="\\ud800-\\udfff",G1="\\u0300-\\u036f",q1="\\ufe20-\\ufe2f",K1="\\u20d0-\\u20ff",jl=G1+q1+K1,Dl="\\u2700-\\u27bf",Pl="a-z\\xdf-\\xf6\\xf8-\\xff",Y1="\\xac\\xb1\\xd7\\xf7",X1="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Q1="\\u2000-\\u206f",J1=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Wl="A-Z\\xc0-\\xd6\\xd8-\\xde",Bl="\\ufe0e\\ufe0f",Hl=Y1+X1+Q1+J1,ws="['’]",eh="["+qi+"]",Zl="["+Hl+"]",Ki="["+jl+"]",Vl="\\d+",th="["+Dl+"]",Nl="["+Pl+"]",Ul="[^"+qi+Hl+Vl+Dl+Pl+Wl+"]",_s="\\ud83c[\\udffb-\\udfff]",nh="(?:"+Ki+"|"+_s+")",Gl="[^"+qi+"]",Cs="(?:\\ud83c[\\udde6-\\uddff]){2}",Ss="[\\ud800-\\udbff][\\udc00-\\udfff]",kr="["+Wl+"]",ql="\\u200d",Kl="(?:"+Nl+"|"+Ul+")",rh="(?:"+kr+"|"+Ul+")",Yl="(?:"+ws+"(?:d|ll|m|re|s|t|ve))?",Xl="(?:"+ws+"(?:D|LL|M|RE|S|T|VE))?",Ql=nh+"?",Jl="["+Bl+"]?",ih="(?:"+ql+"(?:"+[Gl,Cs,Ss].join("|")+")"+Jl+Ql+")*",oh="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",sh="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",ec=Jl+Ql+ih,ah="(?:"+[th,Cs,Ss].join("|")+")"+ec,lh="(?:"+[Gl+Ki+"?",Ki,Cs,Ss,eh].join("|")+")",ch=RegExp(ws,"g"),uh=RegExp(Ki,"g"),Es=RegExp(_s+"(?="+_s+")|"+lh+ec,"g"),dh=RegExp([kr+"?"+Nl+"+"+Yl+"(?="+[Zl,kr,"$"].join("|")+")",rh+"+"+Xl+"(?="+[Zl,kr+Kl,"$"].join("|")+")",kr+"?"+Kl+"+"+Yl,kr+"+"+Xl,sh,oh,Vl,ah].join("|"),"g"),fh=RegExp("["+ql+qi+jl+Bl+"]"),hh=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,ph=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],gh=-1,ot={};ot[$t]=ot[rr]=ot[un]=ot[Xt]=ot[Sr]=ot[Wn]=ot[ri]=ot[Er]=ot[ii]=!0,ot[Ze]=ot[Ee]=ot[Je]=ot[ye]=ot[bt]=ot[Te]=ot[ke]=ot[ee]=ot[G]=ot[oe]=ot[Ae]=ot[De]=ot[nt]=ot[it]=ot[Pe]=!1;var rt={};rt[Ze]=rt[Ee]=rt[Je]=rt[bt]=rt[ye]=rt[Te]=rt[$t]=rt[rr]=rt[un]=rt[Xt]=rt[Sr]=rt[G]=rt[oe]=rt[Ae]=rt[De]=rt[nt]=rt[it]=rt[ae]=rt[Wn]=rt[ri]=rt[Er]=rt[ii]=!0,rt[ke]=rt[ee]=rt[Pe]=!1;var mh={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},yh={"&":"&","<":"<",">":">",'"':""","'":"'"},bh={"&":"&","<":"<",">":">",""":'"',"'":"'"},xh={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},vh=parseFloat,wh=parseInt,tc=typeof Lo=="object"&&Lo&&Lo.Object===Object&&Lo,_h=typeof self=="object"&&self&&self.Object===Object&&self,wt=tc||_h||Function("return this")(),ks=n&&!n.nodeType&&n,sr=ks&&!0&&e&&!e.nodeType&&e,nc=sr&&sr.exports===ks,$s=nc&&tc.process,Qt=function(){try{var F=sr&&sr.require&&sr.require("util").types;return F||$s&&$s.binding&&$s.binding("util")}catch{}}(),rc=Qt&&Qt.isArrayBuffer,ic=Qt&&Qt.isDate,oc=Qt&&Qt.isMap,sc=Qt&&Qt.isRegExp,ac=Qt&&Qt.isSet,lc=Qt&&Qt.isTypedArray;function Zt(F,Z,D){switch(D.length){case 0:return F.call(Z);case 1:return F.call(Z,D[0]);case 2:return F.call(Z,D[0],D[1]);case 3:return F.call(Z,D[0],D[1],D[2])}return F.apply(Z,D)}function Ch(F,Z,D,fe){for(var Re=-1,qe=F==null?0:F.length;++Re<qe;){var mt=F[Re];Z(fe,mt,D(mt),F)}return fe}function Jt(F,Z){for(var D=-1,fe=F==null?0:F.length;++D<fe&&Z(F[D],D,F)!==!1;);return F}function Sh(F,Z){for(var D=F==null?0:F.length;D--&&Z(F[D],D,F)!==!1;);return F}function cc(F,Z){for(var D=-1,fe=F==null?0:F.length;++D<fe;)if(!Z(F[D],D,F))return!1;return!0}function Hn(F,Z){for(var D=-1,fe=F==null?0:F.length,Re=0,qe=[];++D<fe;){var mt=F[D];Z(mt,D,F)&&(qe[Re++]=mt)}return qe}function Yi(F,Z){var D=F==null?0:F.length;return!!D&&$r(F,Z,0)>-1}function As(F,Z,D){for(var fe=-1,Re=F==null?0:F.length;++fe<Re;)if(D(Z,F[fe]))return!0;return!1}function at(F,Z){for(var D=-1,fe=F==null?0:F.length,Re=Array(fe);++D<fe;)Re[D]=Z(F[D],D,F);return Re}function Zn(F,Z){for(var D=-1,fe=Z.length,Re=F.length;++D<fe;)F[Re+D]=Z[D];return F}function Ts(F,Z,D,fe){var Re=-1,qe=F==null?0:F.length;for(fe&&qe&&(D=F[++Re]);++Re<qe;)D=Z(D,F[Re],Re,F);return D}function Eh(F,Z,D,fe){var Re=F==null?0:F.length;for(fe&&Re&&(D=F[--Re]);Re--;)D=Z(D,F[Re],Re,F);return D}function Rs(F,Z){for(var D=-1,fe=F==null?0:F.length;++D<fe;)if(Z(F[D],D,F))return!0;return!1}var kh=Is("length");function $h(F){return F.split("")}function Ah(F){return F.match(L1)||[]}function uc(F,Z,D){var fe;return D(F,function(Re,qe,mt){if(Z(Re,qe,mt))return fe=qe,!1}),fe}function Xi(F,Z,D,fe){for(var Re=F.length,qe=D+(fe?1:-1);fe?qe--:++qe<Re;)if(Z(F[qe],qe,F))return qe;return-1}function $r(F,Z,D){return Z===Z?Wh(F,Z,D):Xi(F,dc,D)}function Th(F,Z,D,fe){for(var Re=D-1,qe=F.length;++Re<qe;)if(fe(F[Re],Z))return Re;return-1}function dc(F){return F!==F}function fc(F,Z){var D=F==null?0:F.length;return D?Fs(F,Z)/D:pe}function Is(F){return function(Z){return Z==null?i:Z[F]}}function Ms(F){return function(Z){return F==null?i:F[Z]}}function hc(F,Z,D,fe,Re){return Re(F,function(qe,mt,tt){D=fe?(fe=!1,qe):Z(D,qe,mt,tt)}),D}function Rh(F,Z){var D=F.length;for(F.sort(Z);D--;)F[D]=F[D].value;return F}function Fs(F,Z){for(var D,fe=-1,Re=F.length;++fe<Re;){var qe=Z(F[fe]);qe!==i&&(D=D===i?qe:D+qe)}return D}function Os(F,Z){for(var D=-1,fe=Array(F);++D<F;)fe[D]=Z(D);return fe}function Ih(F,Z){return at(Z,function(D){return[D,F[D]]})}function pc(F){return F&&F.slice(0,bc(F)+1).replace(gt,"")}function Vt(F){return function(Z){return F(Z)}}function zs(F,Z){return at(Z,function(D){return F[D]})}function ci(F,Z){return F.has(Z)}function gc(F,Z){for(var D=-1,fe=F.length;++D<fe&&$r(Z,F[D],0)>-1;);return D}function mc(F,Z){for(var D=F.length;D--&&$r(Z,F[D],0)>-1;);return D}function Mh(F,Z){for(var D=F.length,fe=0;D--;)F[D]===Z&&++fe;return fe}var Fh=Ms(mh),Oh=Ms(yh);function zh(F){return"\\"+xh[F]}function Lh(F,Z){return F==null?i:F[Z]}function Ar(F){return fh.test(F)}function jh(F){return hh.test(F)}function Dh(F){for(var Z,D=[];!(Z=F.next()).done;)D.push(Z.value);return D}function Ls(F){var Z=-1,D=Array(F.size);return F.forEach(function(fe,Re){D[++Z]=[Re,fe]}),D}function yc(F,Z){return function(D){return F(Z(D))}}function Vn(F,Z){for(var D=-1,fe=F.length,Re=0,qe=[];++D<fe;){var mt=F[D];(mt===Z||mt===x)&&(F[D]=x,qe[Re++]=D)}return qe}function Qi(F){var Z=-1,D=Array(F.size);return F.forEach(function(fe){D[++Z]=fe}),D}function Ph(F){var Z=-1,D=Array(F.size);return F.forEach(function(fe){D[++Z]=[fe,fe]}),D}function Wh(F,Z,D){for(var fe=D-1,Re=F.length;++fe<Re;)if(F[fe]===Z)return fe;return-1}function Bh(F,Z,D){for(var fe=D+1;fe--;)if(F[fe]===Z)return fe;return fe}function Tr(F){return Ar(F)?Zh(F):kh(F)}function dn(F){return Ar(F)?Vh(F):$h(F)}function bc(F){for(var Z=F.length;Z--&&Ht.test(F.charAt(Z)););return Z}var Hh=Ms(bh);function Zh(F){for(var Z=Es.lastIndex=0;Es.test(F);)++Z;return Z}function Vh(F){return F.match(Es)||[]}function Nh(F){return F.match(dh)||[]}var Uh=function F(Z){Z=Z==null?wt:Rr.defaults(wt.Object(),Z,Rr.pick(wt,ph));var D=Z.Array,fe=Z.Date,Re=Z.Error,qe=Z.Function,mt=Z.Math,tt=Z.Object,js=Z.RegExp,Gh=Z.String,en=Z.TypeError,Ji=D.prototype,qh=qe.prototype,Ir=tt.prototype,eo=Z["__core-js_shared__"],to=qh.toString,Xe=Ir.hasOwnProperty,Kh=0,xc=function(){var t=/[^.]+$/.exec(eo&&eo.keys&&eo.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),no=Ir.toString,Yh=to.call(tt),Xh=wt._,Qh=js("^"+to.call(Xe).replace(or,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ro=nc?Z.Buffer:i,Nn=Z.Symbol,io=Z.Uint8Array,vc=ro?ro.allocUnsafe:i,oo=yc(tt.getPrototypeOf,tt),wc=tt.create,_c=Ir.propertyIsEnumerable,so=Ji.splice,Cc=Nn?Nn.isConcatSpreadable:i,ui=Nn?Nn.iterator:i,ar=Nn?Nn.toStringTag:i,ao=function(){try{var t=fr(tt,"defineProperty");return t({},"",{}),t}catch{}}(),Jh=Z.clearTimeout!==wt.clearTimeout&&Z.clearTimeout,ep=fe&&fe.now!==wt.Date.now&&fe.now,tp=Z.setTimeout!==wt.setTimeout&&Z.setTimeout,lo=mt.ceil,co=mt.floor,Ds=tt.getOwnPropertySymbols,np=ro?ro.isBuffer:i,Sc=Z.isFinite,rp=Ji.join,ip=yc(tt.keys,tt),yt=mt.max,St=mt.min,op=fe.now,sp=Z.parseInt,Ec=mt.random,ap=Ji.reverse,Ps=fr(Z,"DataView"),di=fr(Z,"Map"),Ws=fr(Z,"Promise"),Mr=fr(Z,"Set"),fi=fr(Z,"WeakMap"),hi=fr(tt,"create"),uo=fi&&new fi,Fr={},lp=hr(Ps),cp=hr(di),up=hr(Ws),dp=hr(Mr),fp=hr(fi),fo=Nn?Nn.prototype:i,pi=fo?fo.valueOf:i,kc=fo?fo.toString:i;function y(t){if(ut(t)&&!Ie(t)&&!(t instanceof He)){if(t instanceof tn)return t;if(Xe.call(t,"__wrapped__"))return $u(t)}return new tn(t)}var Or=function(){function t(){}return function(r){if(!ct(r))return{};if(wc)return wc(r);t.prototype=r;var o=new t;return t.prototype=i,o}}();function ho(){}function tn(t,r){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!r,this.__index__=0,this.__values__=i}y.templateSettings={escape:si,evaluate:ai,interpolate:Bn,variable:"",imports:{_:y}},y.prototype=ho.prototype,y.prototype.constructor=y,tn.prototype=Or(ho.prototype),tn.prototype.constructor=tn;function He(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Se,this.__views__=[]}function hp(){var t=new He(this.__wrapped__);return t.__actions__=Ft(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=Ft(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=Ft(this.__views__),t}function pp(){if(this.__filtered__){var t=new He(this);t.__dir__=-1,t.__filtered__=!0}else t=this.clone(),t.__dir__*=-1;return t}function gp(){var t=this.__wrapped__.value(),r=this.__dir__,o=Ie(t),u=r<0,g=o?t.length:0,b=$g(0,g,this.__views__),S=b.start,A=b.end,O=A-S,N=u?A:S-1,U=this.__iteratees__,Y=U.length,ce=0,me=St(O,this.__takeCount__);if(!o||!u&&g==O&&me==O)return Yc(t,this.__actions__);var _e=[];e:for(;O--&&ce<me;){N+=r;for(var ze=-1,Ce=t[N];++ze<Y;){var We=U[ze],Ve=We.iteratee,Gt=We.type,It=Ve(Ce);if(Gt==le)Ce=It;else if(!It){if(Gt==P)continue e;break e}}_e[ce++]=Ce}return _e}He.prototype=Or(ho.prototype),He.prototype.constructor=He;function lr(t){var r=-1,o=t==null?0:t.length;for(this.clear();++r<o;){var u=t[r];this.set(u[0],u[1])}}function mp(){this.__data__=hi?hi(null):{},this.size=0}function yp(t){var r=this.has(t)&&delete this.__data__[t];return this.size-=r?1:0,r}function bp(t){var r=this.__data__;if(hi){var o=r[t];return o===h?i:o}return Xe.call(r,t)?r[t]:i}function xp(t){var r=this.__data__;return hi?r[t]!==i:Xe.call(r,t)}function vp(t,r){var o=this.__data__;return this.size+=this.has(t)?0:1,o[t]=hi&&r===i?h:r,this}lr.prototype.clear=mp,lr.prototype.delete=yp,lr.prototype.get=bp,lr.prototype.has=xp,lr.prototype.set=vp;function En(t){var r=-1,o=t==null?0:t.length;for(this.clear();++r<o;){var u=t[r];this.set(u[0],u[1])}}function wp(){this.__data__=[],this.size=0}function _p(t){var r=this.__data__,o=po(r,t);if(o<0)return!1;var u=r.length-1;return o==u?r.pop():so.call(r,o,1),--this.size,!0}function Cp(t){var r=this.__data__,o=po(r,t);return o<0?i:r[o][1]}function Sp(t){return po(this.__data__,t)>-1}function Ep(t,r){var o=this.__data__,u=po(o,t);return u<0?(++this.size,o.push([t,r])):o[u][1]=r,this}En.prototype.clear=wp,En.prototype.delete=_p,En.prototype.get=Cp,En.prototype.has=Sp,En.prototype.set=Ep;function kn(t){var r=-1,o=t==null?0:t.length;for(this.clear();++r<o;){var u=t[r];this.set(u[0],u[1])}}function kp(){this.size=0,this.__data__={hash:new lr,map:new(di||En),string:new lr}}function $p(t){var r=ko(this,t).delete(t);return this.size-=r?1:0,r}function Ap(t){return ko(this,t).get(t)}function Tp(t){return ko(this,t).has(t)}function Rp(t,r){var o=ko(this,t),u=o.size;return o.set(t,r),this.size+=o.size==u?0:1,this}kn.prototype.clear=kp,kn.prototype.delete=$p,kn.prototype.get=Ap,kn.prototype.has=Tp,kn.prototype.set=Rp;function cr(t){var r=-1,o=t==null?0:t.length;for(this.__data__=new kn;++r<o;)this.add(t[r])}function Ip(t){return this.__data__.set(t,h),this}function Mp(t){return this.__data__.has(t)}cr.prototype.add=cr.prototype.push=Ip,cr.prototype.has=Mp;function fn(t){var r=this.__data__=new En(t);this.size=r.size}function Fp(){this.__data__=new En,this.size=0}function Op(t){var r=this.__data__,o=r.delete(t);return this.size=r.size,o}function zp(t){return this.__data__.get(t)}function Lp(t){return this.__data__.has(t)}function jp(t,r){var o=this.__data__;if(o instanceof En){var u=o.__data__;if(!di||u.length<a-1)return u.push([t,r]),this.size=++o.size,this;o=this.__data__=new kn(u)}return o.set(t,r),this.size=o.size,this}fn.prototype.clear=Fp,fn.prototype.delete=Op,fn.prototype.get=zp,fn.prototype.has=Lp,fn.prototype.set=jp;function $c(t,r){var o=Ie(t),u=!o&&pr(t),g=!o&&!u&&Yn(t),b=!o&&!u&&!g&&Dr(t),S=o||u||g||b,A=S?Os(t.length,Gh):[],O=A.length;for(var N in t)(r||Xe.call(t,N))&&!(S&&(N=="length"||g&&(N=="offset"||N=="parent")||b&&(N=="buffer"||N=="byteLength"||N=="byteOffset")||Rn(N,O)))&&A.push(N);return A}function Ac(t){var r=t.length;return r?t[Xs(0,r-1)]:i}function Dp(t,r){return $o(Ft(t),ur(r,0,t.length))}function Pp(t){return $o(Ft(t))}function Bs(t,r,o){(o!==i&&!hn(t[r],o)||o===i&&!(r in t))&&$n(t,r,o)}function gi(t,r,o){var u=t[r];(!(Xe.call(t,r)&&hn(u,o))||o===i&&!(r in t))&&$n(t,r,o)}function po(t,r){for(var o=t.length;o--;)if(hn(t[o][0],r))return o;return-1}function Wp(t,r,o,u){return Un(t,function(g,b,S){r(u,g,o(g),S)}),u}function Tc(t,r){return t&&vn(r,xt(r),t)}function Bp(t,r){return t&&vn(r,zt(r),t)}function $n(t,r,o){r=="__proto__"&&ao?ao(t,r,{configurable:!0,enumerable:!0,value:o,writable:!0}):t[r]=o}function Hs(t,r){for(var o=-1,u=r.length,g=D(u),b=t==null;++o<u;)g[o]=b?i:_a(t,r[o]);return g}function ur(t,r,o){return t===t&&(o!==i&&(t=t<=o?t:o),r!==i&&(t=t>=r?t:r)),t}function nn(t,r,o,u,g,b){var S,A=r&w,O=r&_,N=r&v;if(o&&(S=g?o(t,u,g,b):o(t)),S!==i)return S;if(!ct(t))return t;var U=Ie(t);if(U){if(S=Tg(t),!A)return Ft(t,S)}else{var Y=Et(t),ce=Y==ee||Y==ge;if(Yn(t))return Jc(t,A);if(Y==Ae||Y==Ze||ce&&!g){if(S=O||ce?{}:bu(t),!A)return O?bg(t,Bp(S,t)):yg(t,Tc(S,t))}else{if(!rt[Y])return g?t:{};S=Rg(t,Y,A)}}b||(b=new fn);var me=b.get(t);if(me)return me;b.set(t,S),Gu(t)?t.forEach(function(Ce){S.add(nn(Ce,r,o,Ce,t,b))}):Nu(t)&&t.forEach(function(Ce,We){S.set(We,nn(Ce,r,o,We,t,b))});var _e=N?O?la:aa:O?zt:xt,ze=U?i:_e(t);return Jt(ze||t,function(Ce,We){ze&&(We=Ce,Ce=t[We]),gi(S,We,nn(Ce,r,o,We,t,b))}),S}function Hp(t){var r=xt(t);return function(o){return Rc(o,t,r)}}function Rc(t,r,o){var u=o.length;if(t==null)return!u;for(t=tt(t);u--;){var g=o[u],b=r[g],S=t[g];if(S===i&&!(g in t)||!b(S))return!1}return!0}function Ic(t,r,o){if(typeof t!="function")throw new en(d);return _i(function(){t.apply(i,o)},r)}function mi(t,r,o,u){var g=-1,b=Yi,S=!0,A=t.length,O=[],N=r.length;if(!A)return O;o&&(r=at(r,Vt(o))),u?(b=As,S=!1):r.length>=a&&(b=ci,S=!1,r=new cr(r));e:for(;++g<A;){var U=t[g],Y=o==null?U:o(U);if(U=u||U!==0?U:0,S&&Y===Y){for(var ce=N;ce--;)if(r[ce]===Y)continue e;O.push(U)}else b(r,Y,u)||O.push(U)}return O}var Un=iu(xn),Mc=iu(Vs,!0);function Zp(t,r){var o=!0;return Un(t,function(u,g,b){return o=!!r(u,g,b),o}),o}function go(t,r,o){for(var u=-1,g=t.length;++u<g;){var b=t[u],S=r(b);if(S!=null&&(A===i?S===S&&!Ut(S):o(S,A)))var A=S,O=b}return O}function Vp(t,r,o,u){var g=t.length;for(o=Oe(o),o<0&&(o=-o>g?0:g+o),u=u===i||u>g?g:Oe(u),u<0&&(u+=g),u=o>u?0:Ku(u);o<u;)t[o++]=r;return t}function Fc(t,r){var o=[];return Un(t,function(u,g,b){r(u,g,b)&&o.push(u)}),o}function _t(t,r,o,u,g){var b=-1,S=t.length;for(o||(o=Mg),g||(g=[]);++b<S;){var A=t[b];r>0&&o(A)?r>1?_t(A,r-1,o,u,g):Zn(g,A):u||(g[g.length]=A)}return g}var Zs=ou(),Oc=ou(!0);function xn(t,r){return t&&Zs(t,r,xt)}function Vs(t,r){return t&&Oc(t,r,xt)}function mo(t,r){return Hn(r,function(o){return In(t[o])})}function dr(t,r){r=qn(r,t);for(var o=0,u=r.length;t!=null&&o<u;)t=t[wn(r[o++])];return o&&o==u?t:i}function zc(t,r,o){var u=r(t);return Ie(t)?u:Zn(u,o(t))}function Tt(t){return t==null?t===i?Ue:he:ar&&ar in tt(t)?kg(t):Pg(t)}function Ns(t,r){return t>r}function Np(t,r){return t!=null&&Xe.call(t,r)}function Up(t,r){return t!=null&&r in tt(t)}function Gp(t,r,o){return t>=St(r,o)&&t<yt(r,o)}function Us(t,r,o){for(var u=o?As:Yi,g=t[0].length,b=t.length,S=b,A=D(b),O=1/0,N=[];S--;){var U=t[S];S&&r&&(U=at(U,Vt(r))),O=St(U.length,O),A[S]=!o&&(r||g>=120&&U.length>=120)?new cr(S&&U):i}U=t[0];var Y=-1,ce=A[0];e:for(;++Y<g&&N.length<O;){var me=U[Y],_e=r?r(me):me;if(me=o||me!==0?me:0,!(ce?ci(ce,_e):u(N,_e,o))){for(S=b;--S;){var ze=A[S];if(!(ze?ci(ze,_e):u(t[S],_e,o)))continue e}ce&&ce.push(_e),N.push(me)}}return N}function qp(t,r,o,u){return xn(t,function(g,b,S){r(u,o(g),b,S)}),u}function yi(t,r,o){r=qn(r,t),t=_u(t,r);var u=t==null?t:t[wn(on(r))];return u==null?i:Zt(u,t,o)}function Lc(t){return ut(t)&&Tt(t)==Ze}function Kp(t){return ut(t)&&Tt(t)==Je}function Yp(t){return ut(t)&&Tt(t)==Te}function bi(t,r,o,u,g){return t===r?!0:t==null||r==null||!ut(t)&&!ut(r)?t!==t&&r!==r:Xp(t,r,o,u,bi,g)}function Xp(t,r,o,u,g,b){var S=Ie(t),A=Ie(r),O=S?Ee:Et(t),N=A?Ee:Et(r);O=O==Ze?Ae:O,N=N==Ze?Ae:N;var U=O==Ae,Y=N==Ae,ce=O==N;if(ce&&Yn(t)){if(!Yn(r))return!1;S=!0,U=!1}if(ce&&!U)return b||(b=new fn),S||Dr(t)?gu(t,r,o,u,g,b):Sg(t,r,O,o,u,g,b);if(!(o&C)){var me=U&&Xe.call(t,"__wrapped__"),_e=Y&&Xe.call(r,"__wrapped__");if(me||_e){var ze=me?t.value():t,Ce=_e?r.value():r;return b||(b=new fn),g(ze,Ce,o,u,b)}}return ce?(b||(b=new fn),Eg(t,r,o,u,g,b)):!1}function Qp(t){return ut(t)&&Et(t)==G}function Gs(t,r,o,u){var g=o.length,b=g,S=!u;if(t==null)return!b;for(t=tt(t);g--;){var A=o[g];if(S&&A[2]?A[1]!==t[A[0]]:!(A[0]in t))return!1}for(;++g<b;){A=o[g];var O=A[0],N=t[O],U=A[1];if(S&&A[2]){if(N===i&&!(O in t))return!1}else{var Y=new fn;if(u)var ce=u(N,U,O,t,r,Y);if(!(ce===i?bi(U,N,C|R,u,Y):ce))return!1}}return!0}function jc(t){if(!ct(t)||Og(t))return!1;var r=In(t)?Qh:H1;return r.test(hr(t))}function Jp(t){return ut(t)&&Tt(t)==De}function eg(t){return ut(t)&&Et(t)==nt}function tg(t){return ut(t)&&Fo(t.length)&&!!ot[Tt(t)]}function Dc(t){return typeof t=="function"?t:t==null?Lt:typeof t=="object"?Ie(t)?Bc(t[0],t[1]):Wc(t):sd(t)}function qs(t){if(!wi(t))return ip(t);var r=[];for(var o in tt(t))Xe.call(t,o)&&o!="constructor"&&r.push(o);return r}function ng(t){if(!ct(t))return Dg(t);var r=wi(t),o=[];for(var u in t)u=="constructor"&&(r||!Xe.call(t,u))||o.push(u);return o}function Ks(t,r){return t<r}function Pc(t,r){var o=-1,u=Ot(t)?D(t.length):[];return Un(t,function(g,b,S){u[++o]=r(g,b,S)}),u}function Wc(t){var r=ua(t);return r.length==1&&r[0][2]?vu(r[0][0],r[0][1]):function(o){return o===t||Gs(o,t,r)}}function Bc(t,r){return fa(t)&&xu(r)?vu(wn(t),r):function(o){var u=_a(o,t);return u===i&&u===r?Ca(o,t):bi(r,u,C|R)}}function yo(t,r,o,u,g){t!==r&&Zs(r,function(b,S){if(g||(g=new fn),ct(b))rg(t,r,S,o,yo,u,g);else{var A=u?u(pa(t,S),b,S+"",t,r,g):i;A===i&&(A=b),Bs(t,S,A)}},zt)}function rg(t,r,o,u,g,b,S){var A=pa(t,o),O=pa(r,o),N=S.get(O);if(N){Bs(t,o,N);return}var U=b?b(A,O,o+"",t,r,S):i,Y=U===i;if(Y){var ce=Ie(O),me=!ce&&Yn(O),_e=!ce&&!me&&Dr(O);U=O,ce||me||_e?Ie(A)?U=A:dt(A)?U=Ft(A):me?(Y=!1,U=Jc(O,!0)):_e?(Y=!1,U=eu(O,!0)):U=[]:Ci(O)||pr(O)?(U=A,pr(A)?U=Yu(A):(!ct(A)||In(A))&&(U=bu(O))):Y=!1}Y&&(S.set(O,U),g(U,O,u,b,S),S.delete(O)),Bs(t,o,U)}function Hc(t,r){var o=t.length;if(o)return r+=r<0?o:0,Rn(r,o)?t[r]:i}function Zc(t,r,o){r.length?r=at(r,function(b){return Ie(b)?function(S){return dr(S,b.length===1?b[0]:b)}:b}):r=[Lt];var u=-1;r=at(r,Vt(ve()));var g=Pc(t,function(b,S,A){var O=at(r,function(N){return N(b)});return{criteria:O,index:++u,value:b}});return Rh(g,function(b,S){return mg(b,S,o)})}function ig(t,r){return Vc(t,r,function(o,u){return Ca(t,u)})}function Vc(t,r,o){for(var u=-1,g=r.length,b={};++u<g;){var S=r[u],A=dr(t,S);o(A,S)&&xi(b,qn(S,t),A)}return b}function og(t){return function(r){return dr(r,t)}}function Ys(t,r,o,u){var g=u?Th:$r,b=-1,S=r.length,A=t;for(t===r&&(r=Ft(r)),o&&(A=at(t,Vt(o)));++b<S;)for(var O=0,N=r[b],U=o?o(N):N;(O=g(A,U,O,u))>-1;)A!==t&&so.call(A,O,1),so.call(t,O,1);return t}function Nc(t,r){for(var o=t?r.length:0,u=o-1;o--;){var g=r[o];if(o==u||g!==b){var b=g;Rn(g)?so.call(t,g,1):ea(t,g)}}return t}function Xs(t,r){return t+co(Ec()*(r-t+1))}function sg(t,r,o,u){for(var g=-1,b=yt(lo((r-t)/(o||1)),0),S=D(b);b--;)S[u?b:++g]=t,t+=o;return S}function Qs(t,r){var o="";if(!t||r<1||r>ie)return o;do r%2&&(o+=t),r=co(r/2),r&&(t+=t);while(r);return o}function Le(t,r){return ga(wu(t,r,Lt),t+"")}function ag(t){return Ac(Pr(t))}function lg(t,r){var o=Pr(t);return $o(o,ur(r,0,o.length))}function xi(t,r,o,u){if(!ct(t))return t;r=qn(r,t);for(var g=-1,b=r.length,S=b-1,A=t;A!=null&&++g<b;){var O=wn(r[g]),N=o;if(O==="__proto__"||O==="constructor"||O==="prototype")return t;if(g!=S){var U=A[O];N=u?u(U,O,A):i,N===i&&(N=ct(U)?U:Rn(r[g+1])?[]:{})}gi(A,O,N),A=A[O]}return t}var Uc=uo?function(t,r){return uo.set(t,r),t}:Lt,cg=ao?function(t,r){return ao(t,"toString",{configurable:!0,enumerable:!1,value:Ea(r),writable:!0})}:Lt;function ug(t){return $o(Pr(t))}function rn(t,r,o){var u=-1,g=t.length;r<0&&(r=-r>g?0:g+r),o=o>g?g:o,o<0&&(o+=g),g=r>o?0:o-r>>>0,r>>>=0;for(var b=D(g);++u<g;)b[u]=t[u+r];return b}function dg(t,r){var o;return Un(t,function(u,g,b){return o=r(u,g,b),!o}),!!o}function bo(t,r,o){var u=0,g=t==null?u:t.length;if(typeof r=="number"&&r===r&&g<=de){for(;u<g;){var b=u+g>>>1,S=t[b];S!==null&&!Ut(S)&&(o?S<=r:S<r)?u=b+1:g=b}return g}return Js(t,r,Lt,o)}function Js(t,r,o,u){var g=0,b=t==null?0:t.length;if(b===0)return 0;r=o(r);for(var S=r!==r,A=r===null,O=Ut(r),N=r===i;g<b;){var U=co((g+b)/2),Y=o(t[U]),ce=Y!==i,me=Y===null,_e=Y===Y,ze=Ut(Y);if(S)var Ce=u||_e;else N?Ce=_e&&(u||ce):A?Ce=_e&&ce&&(u||!me):O?Ce=_e&&ce&&!me&&(u||!ze):me||ze?Ce=!1:Ce=u?Y<=r:Y<r;Ce?g=U+1:b=U}return St(b,$e)}function Gc(t,r){for(var o=-1,u=t.length,g=0,b=[];++o<u;){var S=t[o],A=r?r(S):S;if(!o||!hn(A,O)){var O=A;b[g++]=S===0?0:S}}return b}function qc(t){return typeof t=="number"?t:Ut(t)?pe:+t}function Nt(t){if(typeof t=="string")return t;if(Ie(t))return at(t,Nt)+"";if(Ut(t))return kc?kc.call(t):"";var r=t+"";return r=="0"&&1/t==-1/0?"-0":r}function Gn(t,r,o){var u=-1,g=Yi,b=t.length,S=!0,A=[],O=A;if(o)S=!1,g=As;else if(b>=a){var N=r?null:_g(t);if(N)return Qi(N);S=!1,g=ci,O=new cr}else O=r?[]:A;e:for(;++u<b;){var U=t[u],Y=r?r(U):U;if(U=o||U!==0?U:0,S&&Y===Y){for(var ce=O.length;ce--;)if(O[ce]===Y)continue e;r&&O.push(Y),A.push(U)}else g(O,Y,o)||(O!==A&&O.push(Y),A.push(U))}return A}function ea(t,r){return r=qn(r,t),t=_u(t,r),t==null||delete t[wn(on(r))]}function Kc(t,r,o,u){return xi(t,r,o(dr(t,r)),u)}function xo(t,r,o,u){for(var g=t.length,b=u?g:-1;(u?b--:++b<g)&&r(t[b],b,t););return o?rn(t,u?0:b,u?b+1:g):rn(t,u?b+1:0,u?g:b)}function Yc(t,r){var o=t;return o instanceof He&&(o=o.value()),Ts(r,function(u,g){return g.func.apply(g.thisArg,Zn([u],g.args))},o)}function ta(t,r,o){var u=t.length;if(u<2)return u?Gn(t[0]):[];for(var g=-1,b=D(u);++g<u;)for(var S=t[g],A=-1;++A<u;)A!=g&&(b[g]=mi(b[g]||S,t[A],r,o));return Gn(_t(b,1),r,o)}function Xc(t,r,o){for(var u=-1,g=t.length,b=r.length,S={};++u<g;){var A=u<b?r[u]:i;o(S,t[u],A)}return S}function na(t){return dt(t)?t:[]}function ra(t){return typeof t=="function"?t:Lt}function qn(t,r){return Ie(t)?t:fa(t,r)?[t]:ku(Ke(t))}var fg=Le;function Kn(t,r,o){var u=t.length;return o=o===i?u:o,!r&&o>=u?t:rn(t,r,o)}var Qc=Jh||function(t){return wt.clearTimeout(t)};function Jc(t,r){if(r)return t.slice();var o=t.length,u=vc?vc(o):new t.constructor(o);return t.copy(u),u}function ia(t){var r=new t.constructor(t.byteLength);return new io(r).set(new io(t)),r}function hg(t,r){var o=r?ia(t.buffer):t.buffer;return new t.constructor(o,t.byteOffset,t.byteLength)}function pg(t){var r=new t.constructor(t.source,Ll.exec(t));return r.lastIndex=t.lastIndex,r}function gg(t){return pi?tt(pi.call(t)):{}}function eu(t,r){var o=r?ia(t.buffer):t.buffer;return new t.constructor(o,t.byteOffset,t.length)}function tu(t,r){if(t!==r){var o=t!==i,u=t===null,g=t===t,b=Ut(t),S=r!==i,A=r===null,O=r===r,N=Ut(r);if(!A&&!N&&!b&&t>r||b&&S&&O&&!A&&!N||u&&S&&O||!o&&O||!g)return 1;if(!u&&!b&&!N&&t<r||N&&o&&g&&!u&&!b||A&&o&&g||!S&&g||!O)return-1}return 0}function mg(t,r,o){for(var u=-1,g=t.criteria,b=r.criteria,S=g.length,A=o.length;++u<S;){var O=tu(g[u],b[u]);if(O){if(u>=A)return O;var N=o[u];return O*(N=="desc"?-1:1)}}return t.index-r.index}function nu(t,r,o,u){for(var g=-1,b=t.length,S=o.length,A=-1,O=r.length,N=yt(b-S,0),U=D(O+N),Y=!u;++A<O;)U[A]=r[A];for(;++g<S;)(Y||g<b)&&(U[o[g]]=t[g]);for(;N--;)U[A++]=t[g++];return U}function ru(t,r,o,u){for(var g=-1,b=t.length,S=-1,A=o.length,O=-1,N=r.length,U=yt(b-A,0),Y=D(U+N),ce=!u;++g<U;)Y[g]=t[g];for(var me=g;++O<N;)Y[me+O]=r[O];for(;++S<A;)(ce||g<b)&&(Y[me+o[S]]=t[g++]);return Y}function Ft(t,r){var o=-1,u=t.length;for(r||(r=D(u));++o<u;)r[o]=t[o];return r}function vn(t,r,o,u){var g=!o;o||(o={});for(var b=-1,S=r.length;++b<S;){var A=r[b],O=u?u(o[A],t[A],A,o,t):i;O===i&&(O=t[A]),g?$n(o,A,O):gi(o,A,O)}return o}function yg(t,r){return vn(t,da(t),r)}function bg(t,r){return vn(t,mu(t),r)}function vo(t,r){return function(o,u){var g=Ie(o)?Ch:Wp,b=r?r():{};return g(o,t,ve(u,2),b)}}function zr(t){return Le(function(r,o){var u=-1,g=o.length,b=g>1?o[g-1]:i,S=g>2?o[2]:i;for(b=t.length>3&&typeof b=="function"?(g--,b):i,S&&Rt(o[0],o[1],S)&&(b=g<3?i:b,g=1),r=tt(r);++u<g;){var A=o[u];A&&t(r,A,u,b)}return r})}function iu(t,r){return function(o,u){if(o==null)return o;if(!Ot(o))return t(o,u);for(var g=o.length,b=r?g:-1,S=tt(o);(r?b--:++b<g)&&u(S[b],b,S)!==!1;);return o}}function ou(t){return function(r,o,u){for(var g=-1,b=tt(r),S=u(r),A=S.length;A--;){var O=S[t?A:++g];if(o(b[O],O,b)===!1)break}return r}}function xg(t,r,o){var u=r&k,g=vi(t);function b(){var S=this&&this!==wt&&this instanceof b?g:t;return S.apply(u?o:this,arguments)}return b}function su(t){return function(r){r=Ke(r);var o=Ar(r)?dn(r):i,u=o?o[0]:r.charAt(0),g=o?Kn(o,1).join(""):r.slice(1);return u[t]()+g}}function Lr(t){return function(r){return Ts(id(rd(r).replace(ch,"")),t,"")}}function vi(t){return function(){var r=arguments;switch(r.length){case 0:return new t;case 1:return new t(r[0]);case 2:return new t(r[0],r[1]);case 3:return new t(r[0],r[1],r[2]);case 4:return new t(r[0],r[1],r[2],r[3]);case 5:return new t(r[0],r[1],r[2],r[3],r[4]);case 6:return new t(r[0],r[1],r[2],r[3],r[4],r[5]);case 7:return new t(r[0],r[1],r[2],r[3],r[4],r[5],r[6])}var o=Or(t.prototype),u=t.apply(o,r);return ct(u)?u:o}}function vg(t,r,o){var u=vi(t);function g(){for(var b=arguments.length,S=D(b),A=b,O=jr(g);A--;)S[A]=arguments[A];var N=b<3&&S[0]!==O&&S[b-1]!==O?[]:Vn(S,O);if(b-=N.length,b<o)return du(t,r,wo,g.placeholder,i,S,N,i,i,o-b);var U=this&&this!==wt&&this instanceof g?u:t;return Zt(U,this,S)}return g}function au(t){return function(r,o,u){var g=tt(r);if(!Ot(r)){var b=ve(o,3);r=xt(r),o=function(A){return b(g[A],A,g)}}var S=t(r,o,u);return S>-1?g[b?r[S]:S]:i}}function lu(t){return Tn(function(r){var o=r.length,u=o,g=tn.prototype.thru;for(t&&r.reverse();u--;){var b=r[u];if(typeof b!="function")throw new en(d);if(g&&!S&&Eo(b)=="wrapper")var S=new tn([],!0)}for(u=S?u:o;++u<o;){b=r[u];var A=Eo(b),O=A=="wrapper"?ca(b):i;O&&ha(O[0])&&O[1]==(j|I|M|H)&&!O[4].length&&O[9]==1?S=S[Eo(O[0])].apply(S,O[3]):S=b.length==1&&ha(b)?S[A]():S.thru(b)}return function(){var N=arguments,U=N[0];if(S&&N.length==1&&Ie(U))return S.plant(U).value();for(var Y=0,ce=o?r[Y].apply(this,N):U;++Y<o;)ce=r[Y].call(this,ce);return ce}})}function wo(t,r,o,u,g,b,S,A,O,N){var U=r&j,Y=r&k,ce=r&T,me=r&(I|$),_e=r&se,ze=ce?i:vi(t);function Ce(){for(var We=arguments.length,Ve=D(We),Gt=We;Gt--;)Ve[Gt]=arguments[Gt];if(me)var It=jr(Ce),qt=Mh(Ve,It);if(u&&(Ve=nu(Ve,u,g,me)),b&&(Ve=ru(Ve,b,S,me)),We-=qt,me&&We<N){var ft=Vn(Ve,It);return du(t,r,wo,Ce.placeholder,o,Ve,ft,A,O,N-We)}var pn=Y?o:this,Fn=ce?pn[t]:t;return We=Ve.length,A?Ve=Wg(Ve,A):_e&&We>1&&Ve.reverse(),U&&O<We&&(Ve.length=O),this&&this!==wt&&this instanceof Ce&&(Fn=ze||vi(Fn)),Fn.apply(pn,Ve)}return Ce}function cu(t,r){return function(o,u){return qp(o,t,r(u),{})}}function _o(t,r){return function(o,u){var g;if(o===i&&u===i)return r;if(o!==i&&(g=o),u!==i){if(g===i)return u;typeof o=="string"||typeof u=="string"?(o=Nt(o),u=Nt(u)):(o=qc(o),u=qc(u)),g=t(o,u)}return g}}function oa(t){return Tn(function(r){return r=at(r,Vt(ve())),Le(function(o){var u=this;return t(r,function(g){return Zt(g,u,o)})})})}function Co(t,r){r=r===i?" ":Nt(r);var o=r.length;if(o<2)return o?Qs(r,t):r;var u=Qs(r,lo(t/Tr(r)));return Ar(r)?Kn(dn(u),0,t).join(""):u.slice(0,t)}function wg(t,r,o,u){var g=r&k,b=vi(t);function S(){for(var A=-1,O=arguments.length,N=-1,U=u.length,Y=D(U+O),ce=this&&this!==wt&&this instanceof S?b:t;++N<U;)Y[N]=u[N];for(;O--;)Y[N++]=arguments[++A];return Zt(ce,g?o:this,Y)}return S}function uu(t){return function(r,o,u){return u&&typeof u!="number"&&Rt(r,o,u)&&(o=u=i),r=Mn(r),o===i?(o=r,r=0):o=Mn(o),u=u===i?r<o?1:-1:Mn(u),sg(r,o,u,t)}}function So(t){return function(r,o){return typeof r=="string"&&typeof o=="string"||(r=sn(r),o=sn(o)),t(r,o)}}function du(t,r,o,u,g,b,S,A,O,N){var U=r&I,Y=U?S:i,ce=U?i:S,me=U?b:i,_e=U?i:b;r|=U?M:z,r&=~(U?z:M),r&E||(r&=-4);var ze=[t,r,g,me,Y,_e,ce,A,O,N],Ce=o.apply(i,ze);return ha(t)&&Cu(Ce,ze),Ce.placeholder=u,Su(Ce,t,r)}function sa(t){var r=mt[t];return function(o,u){if(o=sn(o),u=u==null?0:St(Oe(u),292),u&&Sc(o)){var g=(Ke(o)+"e").split("e"),b=r(g[0]+"e"+(+g[1]+u));return g=(Ke(b)+"e").split("e"),+(g[0]+"e"+(+g[1]-u))}return r(o)}}var _g=Mr&&1/Qi(new Mr([,-0]))[1]==ne?function(t){return new Mr(t)}:Aa;function fu(t){return function(r){var o=Et(r);return o==G?Ls(r):o==nt?Ph(r):Ih(r,t(r))}}function An(t,r,o,u,g,b,S,A){var O=r&T;if(!O&&typeof t!="function")throw new en(d);var N=u?u.length:0;if(N||(r&=-97,u=g=i),S=S===i?S:yt(Oe(S),0),A=A===i?A:Oe(A),N-=g?g.length:0,r&z){var U=u,Y=g;u=g=i}var ce=O?i:ca(t),me=[t,r,o,u,g,U,Y,b,S,A];if(ce&&jg(me,ce),t=me[0],r=me[1],o=me[2],u=me[3],g=me[4],A=me[9]=me[9]===i?O?0:t.length:yt(me[9]-N,0),!A&&r&(I|$)&&(r&=-25),!r||r==k)var _e=xg(t,r,o);else r==I||r==$?_e=vg(t,r,A):(r==M||r==(k|M))&&!g.length?_e=wg(t,r,o,u):_e=wo.apply(i,me);var ze=ce?Uc:Cu;return Su(ze(_e,me),t,r)}function hu(t,r,o,u){return t===i||hn(t,Ir[o])&&!Xe.call(u,o)?r:t}function pu(t,r,o,u,g,b){return ct(t)&&ct(r)&&(b.set(r,t),yo(t,r,i,pu,b),b.delete(r)),t}function Cg(t){return Ci(t)?i:t}function gu(t,r,o,u,g,b){var S=o&C,A=t.length,O=r.length;if(A!=O&&!(S&&O>A))return!1;var N=b.get(t),U=b.get(r);if(N&&U)return N==r&&U==t;var Y=-1,ce=!0,me=o&R?new cr:i;for(b.set(t,r),b.set(r,t);++Y<A;){var _e=t[Y],ze=r[Y];if(u)var Ce=S?u(ze,_e,Y,r,t,b):u(_e,ze,Y,t,r,b);if(Ce!==i){if(Ce)continue;ce=!1;break}if(me){if(!Rs(r,function(We,Ve){if(!ci(me,Ve)&&(_e===We||g(_e,We,o,u,b)))return me.push(Ve)})){ce=!1;break}}else if(!(_e===ze||g(_e,ze,o,u,b))){ce=!1;break}}return b.delete(t),b.delete(r),ce}function Sg(t,r,o,u,g,b,S){switch(o){case bt:if(t.byteLength!=r.byteLength||t.byteOffset!=r.byteOffset)return!1;t=t.buffer,r=r.buffer;case Je:return!(t.byteLength!=r.byteLength||!b(new io(t),new io(r)));case ye:case Te:case oe:return hn(+t,+r);case ke:return t.name==r.name&&t.message==r.message;case De:case it:return t==r+"";case G:var A=Ls;case nt:var O=u&C;if(A||(A=Qi),t.size!=r.size&&!O)return!1;var N=S.get(t);if(N)return N==r;u|=R,S.set(t,r);var U=gu(A(t),A(r),u,g,b,S);return S.delete(t),U;case ae:if(pi)return pi.call(t)==pi.call(r)}return!1}function Eg(t,r,o,u,g,b){var S=o&C,A=aa(t),O=A.length,N=aa(r),U=N.length;if(O!=U&&!S)return!1;for(var Y=O;Y--;){var ce=A[Y];if(!(S?ce in r:Xe.call(r,ce)))return!1}var me=b.get(t),_e=b.get(r);if(me&&_e)return me==r&&_e==t;var ze=!0;b.set(t,r),b.set(r,t);for(var Ce=S;++Y<O;){ce=A[Y];var We=t[ce],Ve=r[ce];if(u)var Gt=S?u(Ve,We,ce,r,t,b):u(We,Ve,ce,t,r,b);if(!(Gt===i?We===Ve||g(We,Ve,o,u,b):Gt)){ze=!1;break}Ce||(Ce=ce=="constructor")}if(ze&&!Ce){var It=t.constructor,qt=r.constructor;It!=qt&&"constructor"in t&&"constructor"in r&&!(typeof It=="function"&&It instanceof It&&typeof qt=="function"&&qt instanceof qt)&&(ze=!1)}return b.delete(t),b.delete(r),ze}function Tn(t){return ga(wu(t,i,Ru),t+"")}function aa(t){return zc(t,xt,da)}function la(t){return zc(t,zt,mu)}var ca=uo?function(t){return uo.get(t)}:Aa;function Eo(t){for(var r=t.name+"",o=Fr[r],u=Xe.call(Fr,r)?o.length:0;u--;){var g=o[u],b=g.func;if(b==null||b==t)return g.name}return r}function jr(t){var r=Xe.call(y,"placeholder")?y:t;return r.placeholder}function ve(){var t=y.iteratee||ka;return t=t===ka?Dc:t,arguments.length?t(arguments[0],arguments[1]):t}function ko(t,r){var o=t.__data__;return Fg(r)?o[typeof r=="string"?"string":"hash"]:o.map}function ua(t){for(var r=xt(t),o=r.length;o--;){var u=r[o],g=t[u];r[o]=[u,g,xu(g)]}return r}function fr(t,r){var o=Lh(t,r);return jc(o)?o:i}function kg(t){var r=Xe.call(t,ar),o=t[ar];try{t[ar]=i;var u=!0}catch{}var g=no.call(t);return u&&(r?t[ar]=o:delete t[ar]),g}var da=Ds?function(t){return t==null?[]:(t=tt(t),Hn(Ds(t),function(r){return _c.call(t,r)}))}:Ta,mu=Ds?function(t){for(var r=[];t;)Zn(r,da(t)),t=oo(t);return r}:Ta,Et=Tt;(Ps&&Et(new Ps(new ArrayBuffer(1)))!=bt||di&&Et(new di)!=G||Ws&&Et(Ws.resolve())!=Be||Mr&&Et(new Mr)!=nt||fi&&Et(new fi)!=Pe)&&(Et=function(t){var r=Tt(t),o=r==Ae?t.constructor:i,u=o?hr(o):"";if(u)switch(u){case lp:return bt;case cp:return G;case up:return Be;case dp:return nt;case fp:return Pe}return r});function $g(t,r,o){for(var u=-1,g=o.length;++u<g;){var b=o[u],S=b.size;switch(b.type){case"drop":t+=S;break;case"dropRight":r-=S;break;case"take":r=St(r,t+S);break;case"takeRight":t=yt(t,r-S);break}}return{start:t,end:r}}function Ag(t){var r=t.match(Ui);return r?r[1].split(z1):[]}function yu(t,r,o){r=qn(r,t);for(var u=-1,g=r.length,b=!1;++u<g;){var S=wn(r[u]);if(!(b=t!=null&&o(t,S)))break;t=t[S]}return b||++u!=g?b:(g=t==null?0:t.length,!!g&&Fo(g)&&Rn(S,g)&&(Ie(t)||pr(t)))}function Tg(t){var r=t.length,o=new t.constructor(r);return r&&typeof t[0]=="string"&&Xe.call(t,"index")&&(o.index=t.index,o.input=t.input),o}function bu(t){return typeof t.constructor=="function"&&!wi(t)?Or(oo(t)):{}}function Rg(t,r,o){var u=t.constructor;switch(r){case Je:return ia(t);case ye:case Te:return new u(+t);case bt:return hg(t,o);case $t:case rr:case un:case Xt:case Sr:case Wn:case ri:case Er:case ii:return eu(t,o);case G:return new u;case oe:case it:return new u(t);case De:return pg(t);case nt:return new u;case ae:return gg(t)}}function Ig(t,r){var o=r.length;if(!o)return t;var u=o-1;return r[u]=(o>1?"& ":"")+r[u],r=r.join(o>2?", ":" "),t.replace(bn,`{
|
|
8
|
+
*/var nb=Mi.exports,ld;function rb(){return ld||(ld=1,function(e,n){(function(){var i,s="4.17.21",a=200,l="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",d="Expected a function",f="Invalid `variable` option passed into `_.template`",h="__lodash_hash_undefined__",p=500,x="__lodash_placeholder__",w=1,_=2,v=4,C=1,R=2,k=1,T=2,E=4,I=8,$=16,M=32,z=64,j=128,H=256,se=512,te=30,re="...",B=800,W=16,P=1,le=2,K=3,ne=1/0,ie=9007199254740991,we=17976931348623157e292,pe=NaN,Se=4294967295,$e=Se-1,de=Se>>>1,Le=[["ary",j],["bind",k],["bindKey",T],["curry",I],["curryRight",$],["flip",se],["partial",M],["partialRight",z],["rearg",H]],Pe="[object Arguments]",Ee="[object Array]",st="[object AsyncFunction]",ye="[object Boolean]",Te="[object Date]",Fe="[object DOMException]",ke="[object Error]",ee="[object Function]",ge="[object GeneratorFunction]",G="[object Map]",oe="[object Number]",he="[object Null]",Ae="[object Object]",He="[object Promise]",Ye="[object Proxy]",De="[object RegExp]",nt="[object Set]",it="[object String]",ae="[object Symbol]",Ue="[object Undefined]",We="[object WeakMap]",Ge="[object WeakSet]",Je="[object ArrayBuffer]",bt="[object DataView]",$t="[object Float32Array]",rr="[object Float64Array]",un="[object Int8Array]",Xt="[object Int16Array]",Sr="[object Int32Array]",Wn="[object Uint8Array]",ri="[object Uint8ClampedArray]",Er="[object Uint16Array]",ii="[object Uint32Array]",Vi=/\b__p \+= '';/g,bs=/\b(__p \+=) '' \+/g,xs=/(__e\(.*?\)|\b__t\)) \+\n'';/g,oi=/&(?:amp|lt|gt|quot|#39);/g,At=/[&<>"']/g,yn=RegExp(oi.source),vs=RegExp(At.source),si=/<%-([\s\S]+?)%>/g,ai=/<%([\s\S]+?)%>/g,Bn=/<%=([\s\S]+?)%>/g,li=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ir=/^\w*$/,Ni=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,or=/[\\^$.*+?()[\]{}|]/g,xe=RegExp(or.source),ht=/^\s+/,Ht=/\s/,bn=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Ui=/\{\n\/\* \[wrapped with (.+)\] \*/,z1=/,? & /,L1=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,j1=/[()=,{}\[\]\/\s]/,D1=/\\(\\)?/g,P1=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Ll=/\w*$/,W1=/^[-+]0x[0-9a-f]+$/i,B1=/^0b[01]+$/i,H1=/^\[object .+?Constructor\]$/,Z1=/^0o[0-7]+$/i,V1=/^(?:0|[1-9]\d*)$/,N1=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Gi=/($^)/,U1=/['\n\r\u2028\u2029\\]/g,qi="\\ud800-\\udfff",G1="\\u0300-\\u036f",q1="\\ufe20-\\ufe2f",K1="\\u20d0-\\u20ff",jl=G1+q1+K1,Dl="\\u2700-\\u27bf",Pl="a-z\\xdf-\\xf6\\xf8-\\xff",Y1="\\xac\\xb1\\xd7\\xf7",X1="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Q1="\\u2000-\\u206f",J1=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Wl="A-Z\\xc0-\\xd6\\xd8-\\xde",Bl="\\ufe0e\\ufe0f",Hl=Y1+X1+Q1+J1,ws="['’]",eh="["+qi+"]",Zl="["+Hl+"]",Ki="["+jl+"]",Vl="\\d+",th="["+Dl+"]",Nl="["+Pl+"]",Ul="[^"+qi+Hl+Vl+Dl+Pl+Wl+"]",_s="\\ud83c[\\udffb-\\udfff]",nh="(?:"+Ki+"|"+_s+")",Gl="[^"+qi+"]",Cs="(?:\\ud83c[\\udde6-\\uddff]){2}",Ss="[\\ud800-\\udbff][\\udc00-\\udfff]",kr="["+Wl+"]",ql="\\u200d",Kl="(?:"+Nl+"|"+Ul+")",rh="(?:"+kr+"|"+Ul+")",Yl="(?:"+ws+"(?:d|ll|m|re|s|t|ve))?",Xl="(?:"+ws+"(?:D|LL|M|RE|S|T|VE))?",Ql=nh+"?",Jl="["+Bl+"]?",ih="(?:"+ql+"(?:"+[Gl,Cs,Ss].join("|")+")"+Jl+Ql+")*",oh="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",sh="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",ec=Jl+Ql+ih,ah="(?:"+[th,Cs,Ss].join("|")+")"+ec,lh="(?:"+[Gl+Ki+"?",Ki,Cs,Ss,eh].join("|")+")",ch=RegExp(ws,"g"),uh=RegExp(Ki,"g"),Es=RegExp(_s+"(?="+_s+")|"+lh+ec,"g"),dh=RegExp([kr+"?"+Nl+"+"+Yl+"(?="+[Zl,kr,"$"].join("|")+")",rh+"+"+Xl+"(?="+[Zl,kr+Kl,"$"].join("|")+")",kr+"?"+Kl+"+"+Yl,kr+"+"+Xl,sh,oh,Vl,ah].join("|"),"g"),fh=RegExp("["+ql+qi+jl+Bl+"]"),hh=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,ph=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],gh=-1,ot={};ot[$t]=ot[rr]=ot[un]=ot[Xt]=ot[Sr]=ot[Wn]=ot[ri]=ot[Er]=ot[ii]=!0,ot[Pe]=ot[Ee]=ot[Je]=ot[ye]=ot[bt]=ot[Te]=ot[ke]=ot[ee]=ot[G]=ot[oe]=ot[Ae]=ot[De]=ot[nt]=ot[it]=ot[We]=!1;var rt={};rt[Pe]=rt[Ee]=rt[Je]=rt[bt]=rt[ye]=rt[Te]=rt[$t]=rt[rr]=rt[un]=rt[Xt]=rt[Sr]=rt[G]=rt[oe]=rt[Ae]=rt[De]=rt[nt]=rt[it]=rt[ae]=rt[Wn]=rt[ri]=rt[Er]=rt[ii]=!0,rt[ke]=rt[ee]=rt[We]=!1;var mh={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},yh={"&":"&","<":"<",">":">",'"':""","'":"'"},bh={"&":"&","<":"<",">":">",""":'"',"'":"'"},xh={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},vh=parseFloat,wh=parseInt,tc=typeof Lo=="object"&&Lo&&Lo.Object===Object&&Lo,_h=typeof self=="object"&&self&&self.Object===Object&&self,wt=tc||_h||Function("return this")(),ks=n&&!n.nodeType&&n,sr=ks&&!0&&e&&!e.nodeType&&e,nc=sr&&sr.exports===ks,$s=nc&&tc.process,Qt=function(){try{var F=sr&&sr.require&&sr.require("util").types;return F||$s&&$s.binding&&$s.binding("util")}catch{}}(),rc=Qt&&Qt.isArrayBuffer,ic=Qt&&Qt.isDate,oc=Qt&&Qt.isMap,sc=Qt&&Qt.isRegExp,ac=Qt&&Qt.isSet,lc=Qt&&Qt.isTypedArray;function Zt(F,Z,D){switch(D.length){case 0:return F.call(Z);case 1:return F.call(Z,D[0]);case 2:return F.call(Z,D[0],D[1]);case 3:return F.call(Z,D[0],D[1],D[2])}return F.apply(Z,D)}function Ch(F,Z,D,fe){for(var Re=-1,qe=F==null?0:F.length;++Re<qe;){var mt=F[Re];Z(fe,mt,D(mt),F)}return fe}function Jt(F,Z){for(var D=-1,fe=F==null?0:F.length;++D<fe&&Z(F[D],D,F)!==!1;);return F}function Sh(F,Z){for(var D=F==null?0:F.length;D--&&Z(F[D],D,F)!==!1;);return F}function cc(F,Z){for(var D=-1,fe=F==null?0:F.length;++D<fe;)if(!Z(F[D],D,F))return!1;return!0}function Hn(F,Z){for(var D=-1,fe=F==null?0:F.length,Re=0,qe=[];++D<fe;){var mt=F[D];Z(mt,D,F)&&(qe[Re++]=mt)}return qe}function Yi(F,Z){var D=F==null?0:F.length;return!!D&&$r(F,Z,0)>-1}function As(F,Z,D){for(var fe=-1,Re=F==null?0:F.length;++fe<Re;)if(D(Z,F[fe]))return!0;return!1}function at(F,Z){for(var D=-1,fe=F==null?0:F.length,Re=Array(fe);++D<fe;)Re[D]=Z(F[D],D,F);return Re}function Zn(F,Z){for(var D=-1,fe=Z.length,Re=F.length;++D<fe;)F[Re+D]=Z[D];return F}function Ts(F,Z,D,fe){var Re=-1,qe=F==null?0:F.length;for(fe&&qe&&(D=F[++Re]);++Re<qe;)D=Z(D,F[Re],Re,F);return D}function Eh(F,Z,D,fe){var Re=F==null?0:F.length;for(fe&&Re&&(D=F[--Re]);Re--;)D=Z(D,F[Re],Re,F);return D}function Rs(F,Z){for(var D=-1,fe=F==null?0:F.length;++D<fe;)if(Z(F[D],D,F))return!0;return!1}var kh=Is("length");function $h(F){return F.split("")}function Ah(F){return F.match(L1)||[]}function uc(F,Z,D){var fe;return D(F,function(Re,qe,mt){if(Z(Re,qe,mt))return fe=qe,!1}),fe}function Xi(F,Z,D,fe){for(var Re=F.length,qe=D+(fe?1:-1);fe?qe--:++qe<Re;)if(Z(F[qe],qe,F))return qe;return-1}function $r(F,Z,D){return Z===Z?Wh(F,Z,D):Xi(F,dc,D)}function Th(F,Z,D,fe){for(var Re=D-1,qe=F.length;++Re<qe;)if(fe(F[Re],Z))return Re;return-1}function dc(F){return F!==F}function fc(F,Z){var D=F==null?0:F.length;return D?Fs(F,Z)/D:pe}function Is(F){return function(Z){return Z==null?i:Z[F]}}function Ms(F){return function(Z){return F==null?i:F[Z]}}function hc(F,Z,D,fe,Re){return Re(F,function(qe,mt,tt){D=fe?(fe=!1,qe):Z(D,qe,mt,tt)}),D}function Rh(F,Z){var D=F.length;for(F.sort(Z);D--;)F[D]=F[D].value;return F}function Fs(F,Z){for(var D,fe=-1,Re=F.length;++fe<Re;){var qe=Z(F[fe]);qe!==i&&(D=D===i?qe:D+qe)}return D}function Os(F,Z){for(var D=-1,fe=Array(F);++D<F;)fe[D]=Z(D);return fe}function Ih(F,Z){return at(Z,function(D){return[D,F[D]]})}function pc(F){return F&&F.slice(0,bc(F)+1).replace(ht,"")}function Vt(F){return function(Z){return F(Z)}}function zs(F,Z){return at(Z,function(D){return F[D]})}function ci(F,Z){return F.has(Z)}function gc(F,Z){for(var D=-1,fe=F.length;++D<fe&&$r(Z,F[D],0)>-1;);return D}function mc(F,Z){for(var D=F.length;D--&&$r(Z,F[D],0)>-1;);return D}function Mh(F,Z){for(var D=F.length,fe=0;D--;)F[D]===Z&&++fe;return fe}var Fh=Ms(mh),Oh=Ms(yh);function zh(F){return"\\"+xh[F]}function Lh(F,Z){return F==null?i:F[Z]}function Ar(F){return fh.test(F)}function jh(F){return hh.test(F)}function Dh(F){for(var Z,D=[];!(Z=F.next()).done;)D.push(Z.value);return D}function Ls(F){var Z=-1,D=Array(F.size);return F.forEach(function(fe,Re){D[++Z]=[Re,fe]}),D}function yc(F,Z){return function(D){return F(Z(D))}}function Vn(F,Z){for(var D=-1,fe=F.length,Re=0,qe=[];++D<fe;){var mt=F[D];(mt===Z||mt===x)&&(F[D]=x,qe[Re++]=D)}return qe}function Qi(F){var Z=-1,D=Array(F.size);return F.forEach(function(fe){D[++Z]=fe}),D}function Ph(F){var Z=-1,D=Array(F.size);return F.forEach(function(fe){D[++Z]=[fe,fe]}),D}function Wh(F,Z,D){for(var fe=D-1,Re=F.length;++fe<Re;)if(F[fe]===Z)return fe;return-1}function Bh(F,Z,D){for(var fe=D+1;fe--;)if(F[fe]===Z)return fe;return fe}function Tr(F){return Ar(F)?Zh(F):kh(F)}function dn(F){return Ar(F)?Vh(F):$h(F)}function bc(F){for(var Z=F.length;Z--&&Ht.test(F.charAt(Z)););return Z}var Hh=Ms(bh);function Zh(F){for(var Z=Es.lastIndex=0;Es.test(F);)++Z;return Z}function Vh(F){return F.match(Es)||[]}function Nh(F){return F.match(dh)||[]}var Uh=function F(Z){Z=Z==null?wt:Rr.defaults(wt.Object(),Z,Rr.pick(wt,ph));var D=Z.Array,fe=Z.Date,Re=Z.Error,qe=Z.Function,mt=Z.Math,tt=Z.Object,js=Z.RegExp,Gh=Z.String,en=Z.TypeError,Ji=D.prototype,qh=qe.prototype,Ir=tt.prototype,eo=Z["__core-js_shared__"],to=qh.toString,Xe=Ir.hasOwnProperty,Kh=0,xc=function(){var t=/[^.]+$/.exec(eo&&eo.keys&&eo.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),no=Ir.toString,Yh=to.call(tt),Xh=wt._,Qh=js("^"+to.call(Xe).replace(or,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ro=nc?Z.Buffer:i,Nn=Z.Symbol,io=Z.Uint8Array,vc=ro?ro.allocUnsafe:i,oo=yc(tt.getPrototypeOf,tt),wc=tt.create,_c=Ir.propertyIsEnumerable,so=Ji.splice,Cc=Nn?Nn.isConcatSpreadable:i,ui=Nn?Nn.iterator:i,ar=Nn?Nn.toStringTag:i,ao=function(){try{var t=fr(tt,"defineProperty");return t({},"",{}),t}catch{}}(),Jh=Z.clearTimeout!==wt.clearTimeout&&Z.clearTimeout,ep=fe&&fe.now!==wt.Date.now&&fe.now,tp=Z.setTimeout!==wt.setTimeout&&Z.setTimeout,lo=mt.ceil,co=mt.floor,Ds=tt.getOwnPropertySymbols,np=ro?ro.isBuffer:i,Sc=Z.isFinite,rp=Ji.join,ip=yc(tt.keys,tt),yt=mt.max,St=mt.min,op=fe.now,sp=Z.parseInt,Ec=mt.random,ap=Ji.reverse,Ps=fr(Z,"DataView"),di=fr(Z,"Map"),Ws=fr(Z,"Promise"),Mr=fr(Z,"Set"),fi=fr(Z,"WeakMap"),hi=fr(tt,"create"),uo=fi&&new fi,Fr={},lp=hr(Ps),cp=hr(di),up=hr(Ws),dp=hr(Mr),fp=hr(fi),fo=Nn?Nn.prototype:i,pi=fo?fo.valueOf:i,kc=fo?fo.toString:i;function y(t){if(ut(t)&&!Ie(t)&&!(t instanceof Ze)){if(t instanceof tn)return t;if(Xe.call(t,"__wrapped__"))return $u(t)}return new tn(t)}var Or=function(){function t(){}return function(r){if(!ct(r))return{};if(wc)return wc(r);t.prototype=r;var o=new t;return t.prototype=i,o}}();function ho(){}function tn(t,r){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!r,this.__index__=0,this.__values__=i}y.templateSettings={escape:si,evaluate:ai,interpolate:Bn,variable:"",imports:{_:y}},y.prototype=ho.prototype,y.prototype.constructor=y,tn.prototype=Or(ho.prototype),tn.prototype.constructor=tn;function Ze(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Se,this.__views__=[]}function hp(){var t=new Ze(this.__wrapped__);return t.__actions__=Ft(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=Ft(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=Ft(this.__views__),t}function pp(){if(this.__filtered__){var t=new Ze(this);t.__dir__=-1,t.__filtered__=!0}else t=this.clone(),t.__dir__*=-1;return t}function gp(){var t=this.__wrapped__.value(),r=this.__dir__,o=Ie(t),u=r<0,g=o?t.length:0,b=$g(0,g,this.__views__),S=b.start,A=b.end,O=A-S,N=u?A:S-1,U=this.__iteratees__,Y=U.length,ce=0,me=St(O,this.__takeCount__);if(!o||!u&&g==O&&me==O)return Yc(t,this.__actions__);var _e=[];e:for(;O--&&ce<me;){N+=r;for(var ze=-1,Ce=t[N];++ze<Y;){var Be=U[ze],Ve=Be.iteratee,Gt=Be.type,It=Ve(Ce);if(Gt==le)Ce=It;else if(!It){if(Gt==P)continue e;break e}}_e[ce++]=Ce}return _e}Ze.prototype=Or(ho.prototype),Ze.prototype.constructor=Ze;function lr(t){var r=-1,o=t==null?0:t.length;for(this.clear();++r<o;){var u=t[r];this.set(u[0],u[1])}}function mp(){this.__data__=hi?hi(null):{},this.size=0}function yp(t){var r=this.has(t)&&delete this.__data__[t];return this.size-=r?1:0,r}function bp(t){var r=this.__data__;if(hi){var o=r[t];return o===h?i:o}return Xe.call(r,t)?r[t]:i}function xp(t){var r=this.__data__;return hi?r[t]!==i:Xe.call(r,t)}function vp(t,r){var o=this.__data__;return this.size+=this.has(t)?0:1,o[t]=hi&&r===i?h:r,this}lr.prototype.clear=mp,lr.prototype.delete=yp,lr.prototype.get=bp,lr.prototype.has=xp,lr.prototype.set=vp;function En(t){var r=-1,o=t==null?0:t.length;for(this.clear();++r<o;){var u=t[r];this.set(u[0],u[1])}}function wp(){this.__data__=[],this.size=0}function _p(t){var r=this.__data__,o=po(r,t);if(o<0)return!1;var u=r.length-1;return o==u?r.pop():so.call(r,o,1),--this.size,!0}function Cp(t){var r=this.__data__,o=po(r,t);return o<0?i:r[o][1]}function Sp(t){return po(this.__data__,t)>-1}function Ep(t,r){var o=this.__data__,u=po(o,t);return u<0?(++this.size,o.push([t,r])):o[u][1]=r,this}En.prototype.clear=wp,En.prototype.delete=_p,En.prototype.get=Cp,En.prototype.has=Sp,En.prototype.set=Ep;function kn(t){var r=-1,o=t==null?0:t.length;for(this.clear();++r<o;){var u=t[r];this.set(u[0],u[1])}}function kp(){this.size=0,this.__data__={hash:new lr,map:new(di||En),string:new lr}}function $p(t){var r=ko(this,t).delete(t);return this.size-=r?1:0,r}function Ap(t){return ko(this,t).get(t)}function Tp(t){return ko(this,t).has(t)}function Rp(t,r){var o=ko(this,t),u=o.size;return o.set(t,r),this.size+=o.size==u?0:1,this}kn.prototype.clear=kp,kn.prototype.delete=$p,kn.prototype.get=Ap,kn.prototype.has=Tp,kn.prototype.set=Rp;function cr(t){var r=-1,o=t==null?0:t.length;for(this.__data__=new kn;++r<o;)this.add(t[r])}function Ip(t){return this.__data__.set(t,h),this}function Mp(t){return this.__data__.has(t)}cr.prototype.add=cr.prototype.push=Ip,cr.prototype.has=Mp;function fn(t){var r=this.__data__=new En(t);this.size=r.size}function Fp(){this.__data__=new En,this.size=0}function Op(t){var r=this.__data__,o=r.delete(t);return this.size=r.size,o}function zp(t){return this.__data__.get(t)}function Lp(t){return this.__data__.has(t)}function jp(t,r){var o=this.__data__;if(o instanceof En){var u=o.__data__;if(!di||u.length<a-1)return u.push([t,r]),this.size=++o.size,this;o=this.__data__=new kn(u)}return o.set(t,r),this.size=o.size,this}fn.prototype.clear=Fp,fn.prototype.delete=Op,fn.prototype.get=zp,fn.prototype.has=Lp,fn.prototype.set=jp;function $c(t,r){var o=Ie(t),u=!o&&pr(t),g=!o&&!u&&Yn(t),b=!o&&!u&&!g&&Dr(t),S=o||u||g||b,A=S?Os(t.length,Gh):[],O=A.length;for(var N in t)(r||Xe.call(t,N))&&!(S&&(N=="length"||g&&(N=="offset"||N=="parent")||b&&(N=="buffer"||N=="byteLength"||N=="byteOffset")||Rn(N,O)))&&A.push(N);return A}function Ac(t){var r=t.length;return r?t[Xs(0,r-1)]:i}function Dp(t,r){return $o(Ft(t),ur(r,0,t.length))}function Pp(t){return $o(Ft(t))}function Bs(t,r,o){(o!==i&&!hn(t[r],o)||o===i&&!(r in t))&&$n(t,r,o)}function gi(t,r,o){var u=t[r];(!(Xe.call(t,r)&&hn(u,o))||o===i&&!(r in t))&&$n(t,r,o)}function po(t,r){for(var o=t.length;o--;)if(hn(t[o][0],r))return o;return-1}function Wp(t,r,o,u){return Un(t,function(g,b,S){r(u,g,o(g),S)}),u}function Tc(t,r){return t&&vn(r,xt(r),t)}function Bp(t,r){return t&&vn(r,zt(r),t)}function $n(t,r,o){r=="__proto__"&&ao?ao(t,r,{configurable:!0,enumerable:!0,value:o,writable:!0}):t[r]=o}function Hs(t,r){for(var o=-1,u=r.length,g=D(u),b=t==null;++o<u;)g[o]=b?i:_a(t,r[o]);return g}function ur(t,r,o){return t===t&&(o!==i&&(t=t<=o?t:o),r!==i&&(t=t>=r?t:r)),t}function nn(t,r,o,u,g,b){var S,A=r&w,O=r&_,N=r&v;if(o&&(S=g?o(t,u,g,b):o(t)),S!==i)return S;if(!ct(t))return t;var U=Ie(t);if(U){if(S=Tg(t),!A)return Ft(t,S)}else{var Y=Et(t),ce=Y==ee||Y==ge;if(Yn(t))return Jc(t,A);if(Y==Ae||Y==Pe||ce&&!g){if(S=O||ce?{}:bu(t),!A)return O?bg(t,Bp(S,t)):yg(t,Tc(S,t))}else{if(!rt[Y])return g?t:{};S=Rg(t,Y,A)}}b||(b=new fn);var me=b.get(t);if(me)return me;b.set(t,S),Gu(t)?t.forEach(function(Ce){S.add(nn(Ce,r,o,Ce,t,b))}):Nu(t)&&t.forEach(function(Ce,Be){S.set(Be,nn(Ce,r,o,Be,t,b))});var _e=N?O?la:aa:O?zt:xt,ze=U?i:_e(t);return Jt(ze||t,function(Ce,Be){ze&&(Be=Ce,Ce=t[Be]),gi(S,Be,nn(Ce,r,o,Be,t,b))}),S}function Hp(t){var r=xt(t);return function(o){return Rc(o,t,r)}}function Rc(t,r,o){var u=o.length;if(t==null)return!u;for(t=tt(t);u--;){var g=o[u],b=r[g],S=t[g];if(S===i&&!(g in t)||!b(S))return!1}return!0}function Ic(t,r,o){if(typeof t!="function")throw new en(d);return _i(function(){t.apply(i,o)},r)}function mi(t,r,o,u){var g=-1,b=Yi,S=!0,A=t.length,O=[],N=r.length;if(!A)return O;o&&(r=at(r,Vt(o))),u?(b=As,S=!1):r.length>=a&&(b=ci,S=!1,r=new cr(r));e:for(;++g<A;){var U=t[g],Y=o==null?U:o(U);if(U=u||U!==0?U:0,S&&Y===Y){for(var ce=N;ce--;)if(r[ce]===Y)continue e;O.push(U)}else b(r,Y,u)||O.push(U)}return O}var Un=iu(xn),Mc=iu(Vs,!0);function Zp(t,r){var o=!0;return Un(t,function(u,g,b){return o=!!r(u,g,b),o}),o}function go(t,r,o){for(var u=-1,g=t.length;++u<g;){var b=t[u],S=r(b);if(S!=null&&(A===i?S===S&&!Ut(S):o(S,A)))var A=S,O=b}return O}function Vp(t,r,o,u){var g=t.length;for(o=Oe(o),o<0&&(o=-o>g?0:g+o),u=u===i||u>g?g:Oe(u),u<0&&(u+=g),u=o>u?0:Ku(u);o<u;)t[o++]=r;return t}function Fc(t,r){var o=[];return Un(t,function(u,g,b){r(u,g,b)&&o.push(u)}),o}function _t(t,r,o,u,g){var b=-1,S=t.length;for(o||(o=Mg),g||(g=[]);++b<S;){var A=t[b];r>0&&o(A)?r>1?_t(A,r-1,o,u,g):Zn(g,A):u||(g[g.length]=A)}return g}var Zs=ou(),Oc=ou(!0);function xn(t,r){return t&&Zs(t,r,xt)}function Vs(t,r){return t&&Oc(t,r,xt)}function mo(t,r){return Hn(r,function(o){return In(t[o])})}function dr(t,r){r=qn(r,t);for(var o=0,u=r.length;t!=null&&o<u;)t=t[wn(r[o++])];return o&&o==u?t:i}function zc(t,r,o){var u=r(t);return Ie(t)?u:Zn(u,o(t))}function Tt(t){return t==null?t===i?Ue:he:ar&&ar in tt(t)?kg(t):Pg(t)}function Ns(t,r){return t>r}function Np(t,r){return t!=null&&Xe.call(t,r)}function Up(t,r){return t!=null&&r in tt(t)}function Gp(t,r,o){return t>=St(r,o)&&t<yt(r,o)}function Us(t,r,o){for(var u=o?As:Yi,g=t[0].length,b=t.length,S=b,A=D(b),O=1/0,N=[];S--;){var U=t[S];S&&r&&(U=at(U,Vt(r))),O=St(U.length,O),A[S]=!o&&(r||g>=120&&U.length>=120)?new cr(S&&U):i}U=t[0];var Y=-1,ce=A[0];e:for(;++Y<g&&N.length<O;){var me=U[Y],_e=r?r(me):me;if(me=o||me!==0?me:0,!(ce?ci(ce,_e):u(N,_e,o))){for(S=b;--S;){var ze=A[S];if(!(ze?ci(ze,_e):u(t[S],_e,o)))continue e}ce&&ce.push(_e),N.push(me)}}return N}function qp(t,r,o,u){return xn(t,function(g,b,S){r(u,o(g),b,S)}),u}function yi(t,r,o){r=qn(r,t),t=_u(t,r);var u=t==null?t:t[wn(on(r))];return u==null?i:Zt(u,t,o)}function Lc(t){return ut(t)&&Tt(t)==Pe}function Kp(t){return ut(t)&&Tt(t)==Je}function Yp(t){return ut(t)&&Tt(t)==Te}function bi(t,r,o,u,g){return t===r?!0:t==null||r==null||!ut(t)&&!ut(r)?t!==t&&r!==r:Xp(t,r,o,u,bi,g)}function Xp(t,r,o,u,g,b){var S=Ie(t),A=Ie(r),O=S?Ee:Et(t),N=A?Ee:Et(r);O=O==Pe?Ae:O,N=N==Pe?Ae:N;var U=O==Ae,Y=N==Ae,ce=O==N;if(ce&&Yn(t)){if(!Yn(r))return!1;S=!0,U=!1}if(ce&&!U)return b||(b=new fn),S||Dr(t)?gu(t,r,o,u,g,b):Sg(t,r,O,o,u,g,b);if(!(o&C)){var me=U&&Xe.call(t,"__wrapped__"),_e=Y&&Xe.call(r,"__wrapped__");if(me||_e){var ze=me?t.value():t,Ce=_e?r.value():r;return b||(b=new fn),g(ze,Ce,o,u,b)}}return ce?(b||(b=new fn),Eg(t,r,o,u,g,b)):!1}function Qp(t){return ut(t)&&Et(t)==G}function Gs(t,r,o,u){var g=o.length,b=g,S=!u;if(t==null)return!b;for(t=tt(t);g--;){var A=o[g];if(S&&A[2]?A[1]!==t[A[0]]:!(A[0]in t))return!1}for(;++g<b;){A=o[g];var O=A[0],N=t[O],U=A[1];if(S&&A[2]){if(N===i&&!(O in t))return!1}else{var Y=new fn;if(u)var ce=u(N,U,O,t,r,Y);if(!(ce===i?bi(U,N,C|R,u,Y):ce))return!1}}return!0}function jc(t){if(!ct(t)||Og(t))return!1;var r=In(t)?Qh:H1;return r.test(hr(t))}function Jp(t){return ut(t)&&Tt(t)==De}function eg(t){return ut(t)&&Et(t)==nt}function tg(t){return ut(t)&&Fo(t.length)&&!!ot[Tt(t)]}function Dc(t){return typeof t=="function"?t:t==null?Lt:typeof t=="object"?Ie(t)?Bc(t[0],t[1]):Wc(t):sd(t)}function qs(t){if(!wi(t))return ip(t);var r=[];for(var o in tt(t))Xe.call(t,o)&&o!="constructor"&&r.push(o);return r}function ng(t){if(!ct(t))return Dg(t);var r=wi(t),o=[];for(var u in t)u=="constructor"&&(r||!Xe.call(t,u))||o.push(u);return o}function Ks(t,r){return t<r}function Pc(t,r){var o=-1,u=Ot(t)?D(t.length):[];return Un(t,function(g,b,S){u[++o]=r(g,b,S)}),u}function Wc(t){var r=ua(t);return r.length==1&&r[0][2]?vu(r[0][0],r[0][1]):function(o){return o===t||Gs(o,t,r)}}function Bc(t,r){return fa(t)&&xu(r)?vu(wn(t),r):function(o){var u=_a(o,t);return u===i&&u===r?Ca(o,t):bi(r,u,C|R)}}function yo(t,r,o,u,g){t!==r&&Zs(r,function(b,S){if(g||(g=new fn),ct(b))rg(t,r,S,o,yo,u,g);else{var A=u?u(pa(t,S),b,S+"",t,r,g):i;A===i&&(A=b),Bs(t,S,A)}},zt)}function rg(t,r,o,u,g,b,S){var A=pa(t,o),O=pa(r,o),N=S.get(O);if(N){Bs(t,o,N);return}var U=b?b(A,O,o+"",t,r,S):i,Y=U===i;if(Y){var ce=Ie(O),me=!ce&&Yn(O),_e=!ce&&!me&&Dr(O);U=O,ce||me||_e?Ie(A)?U=A:dt(A)?U=Ft(A):me?(Y=!1,U=Jc(O,!0)):_e?(Y=!1,U=eu(O,!0)):U=[]:Ci(O)||pr(O)?(U=A,pr(A)?U=Yu(A):(!ct(A)||In(A))&&(U=bu(O))):Y=!1}Y&&(S.set(O,U),g(U,O,u,b,S),S.delete(O)),Bs(t,o,U)}function Hc(t,r){var o=t.length;if(o)return r+=r<0?o:0,Rn(r,o)?t[r]:i}function Zc(t,r,o){r.length?r=at(r,function(b){return Ie(b)?function(S){return dr(S,b.length===1?b[0]:b)}:b}):r=[Lt];var u=-1;r=at(r,Vt(ve()));var g=Pc(t,function(b,S,A){var O=at(r,function(N){return N(b)});return{criteria:O,index:++u,value:b}});return Rh(g,function(b,S){return mg(b,S,o)})}function ig(t,r){return Vc(t,r,function(o,u){return Ca(t,u)})}function Vc(t,r,o){for(var u=-1,g=r.length,b={};++u<g;){var S=r[u],A=dr(t,S);o(A,S)&&xi(b,qn(S,t),A)}return b}function og(t){return function(r){return dr(r,t)}}function Ys(t,r,o,u){var g=u?Th:$r,b=-1,S=r.length,A=t;for(t===r&&(r=Ft(r)),o&&(A=at(t,Vt(o)));++b<S;)for(var O=0,N=r[b],U=o?o(N):N;(O=g(A,U,O,u))>-1;)A!==t&&so.call(A,O,1),so.call(t,O,1);return t}function Nc(t,r){for(var o=t?r.length:0,u=o-1;o--;){var g=r[o];if(o==u||g!==b){var b=g;Rn(g)?so.call(t,g,1):ea(t,g)}}return t}function Xs(t,r){return t+co(Ec()*(r-t+1))}function sg(t,r,o,u){for(var g=-1,b=yt(lo((r-t)/(o||1)),0),S=D(b);b--;)S[u?b:++g]=t,t+=o;return S}function Qs(t,r){var o="";if(!t||r<1||r>ie)return o;do r%2&&(o+=t),r=co(r/2),r&&(t+=t);while(r);return o}function je(t,r){return ga(wu(t,r,Lt),t+"")}function ag(t){return Ac(Pr(t))}function lg(t,r){var o=Pr(t);return $o(o,ur(r,0,o.length))}function xi(t,r,o,u){if(!ct(t))return t;r=qn(r,t);for(var g=-1,b=r.length,S=b-1,A=t;A!=null&&++g<b;){var O=wn(r[g]),N=o;if(O==="__proto__"||O==="constructor"||O==="prototype")return t;if(g!=S){var U=A[O];N=u?u(U,O,A):i,N===i&&(N=ct(U)?U:Rn(r[g+1])?[]:{})}gi(A,O,N),A=A[O]}return t}var Uc=uo?function(t,r){return uo.set(t,r),t}:Lt,cg=ao?function(t,r){return ao(t,"toString",{configurable:!0,enumerable:!1,value:Ea(r),writable:!0})}:Lt;function ug(t){return $o(Pr(t))}function rn(t,r,o){var u=-1,g=t.length;r<0&&(r=-r>g?0:g+r),o=o>g?g:o,o<0&&(o+=g),g=r>o?0:o-r>>>0,r>>>=0;for(var b=D(g);++u<g;)b[u]=t[u+r];return b}function dg(t,r){var o;return Un(t,function(u,g,b){return o=r(u,g,b),!o}),!!o}function bo(t,r,o){var u=0,g=t==null?u:t.length;if(typeof r=="number"&&r===r&&g<=de){for(;u<g;){var b=u+g>>>1,S=t[b];S!==null&&!Ut(S)&&(o?S<=r:S<r)?u=b+1:g=b}return g}return Js(t,r,Lt,o)}function Js(t,r,o,u){var g=0,b=t==null?0:t.length;if(b===0)return 0;r=o(r);for(var S=r!==r,A=r===null,O=Ut(r),N=r===i;g<b;){var U=co((g+b)/2),Y=o(t[U]),ce=Y!==i,me=Y===null,_e=Y===Y,ze=Ut(Y);if(S)var Ce=u||_e;else N?Ce=_e&&(u||ce):A?Ce=_e&&ce&&(u||!me):O?Ce=_e&&ce&&!me&&(u||!ze):me||ze?Ce=!1:Ce=u?Y<=r:Y<r;Ce?g=U+1:b=U}return St(b,$e)}function Gc(t,r){for(var o=-1,u=t.length,g=0,b=[];++o<u;){var S=t[o],A=r?r(S):S;if(!o||!hn(A,O)){var O=A;b[g++]=S===0?0:S}}return b}function qc(t){return typeof t=="number"?t:Ut(t)?pe:+t}function Nt(t){if(typeof t=="string")return t;if(Ie(t))return at(t,Nt)+"";if(Ut(t))return kc?kc.call(t):"";var r=t+"";return r=="0"&&1/t==-1/0?"-0":r}function Gn(t,r,o){var u=-1,g=Yi,b=t.length,S=!0,A=[],O=A;if(o)S=!1,g=As;else if(b>=a){var N=r?null:_g(t);if(N)return Qi(N);S=!1,g=ci,O=new cr}else O=r?[]:A;e:for(;++u<b;){var U=t[u],Y=r?r(U):U;if(U=o||U!==0?U:0,S&&Y===Y){for(var ce=O.length;ce--;)if(O[ce]===Y)continue e;r&&O.push(Y),A.push(U)}else g(O,Y,o)||(O!==A&&O.push(Y),A.push(U))}return A}function ea(t,r){return r=qn(r,t),t=_u(t,r),t==null||delete t[wn(on(r))]}function Kc(t,r,o,u){return xi(t,r,o(dr(t,r)),u)}function xo(t,r,o,u){for(var g=t.length,b=u?g:-1;(u?b--:++b<g)&&r(t[b],b,t););return o?rn(t,u?0:b,u?b+1:g):rn(t,u?b+1:0,u?g:b)}function Yc(t,r){var o=t;return o instanceof Ze&&(o=o.value()),Ts(r,function(u,g){return g.func.apply(g.thisArg,Zn([u],g.args))},o)}function ta(t,r,o){var u=t.length;if(u<2)return u?Gn(t[0]):[];for(var g=-1,b=D(u);++g<u;)for(var S=t[g],A=-1;++A<u;)A!=g&&(b[g]=mi(b[g]||S,t[A],r,o));return Gn(_t(b,1),r,o)}function Xc(t,r,o){for(var u=-1,g=t.length,b=r.length,S={};++u<g;){var A=u<b?r[u]:i;o(S,t[u],A)}return S}function na(t){return dt(t)?t:[]}function ra(t){return typeof t=="function"?t:Lt}function qn(t,r){return Ie(t)?t:fa(t,r)?[t]:ku(Ke(t))}var fg=je;function Kn(t,r,o){var u=t.length;return o=o===i?u:o,!r&&o>=u?t:rn(t,r,o)}var Qc=Jh||function(t){return wt.clearTimeout(t)};function Jc(t,r){if(r)return t.slice();var o=t.length,u=vc?vc(o):new t.constructor(o);return t.copy(u),u}function ia(t){var r=new t.constructor(t.byteLength);return new io(r).set(new io(t)),r}function hg(t,r){var o=r?ia(t.buffer):t.buffer;return new t.constructor(o,t.byteOffset,t.byteLength)}function pg(t){var r=new t.constructor(t.source,Ll.exec(t));return r.lastIndex=t.lastIndex,r}function gg(t){return pi?tt(pi.call(t)):{}}function eu(t,r){var o=r?ia(t.buffer):t.buffer;return new t.constructor(o,t.byteOffset,t.length)}function tu(t,r){if(t!==r){var o=t!==i,u=t===null,g=t===t,b=Ut(t),S=r!==i,A=r===null,O=r===r,N=Ut(r);if(!A&&!N&&!b&&t>r||b&&S&&O&&!A&&!N||u&&S&&O||!o&&O||!g)return 1;if(!u&&!b&&!N&&t<r||N&&o&&g&&!u&&!b||A&&o&&g||!S&&g||!O)return-1}return 0}function mg(t,r,o){for(var u=-1,g=t.criteria,b=r.criteria,S=g.length,A=o.length;++u<S;){var O=tu(g[u],b[u]);if(O){if(u>=A)return O;var N=o[u];return O*(N=="desc"?-1:1)}}return t.index-r.index}function nu(t,r,o,u){for(var g=-1,b=t.length,S=o.length,A=-1,O=r.length,N=yt(b-S,0),U=D(O+N),Y=!u;++A<O;)U[A]=r[A];for(;++g<S;)(Y||g<b)&&(U[o[g]]=t[g]);for(;N--;)U[A++]=t[g++];return U}function ru(t,r,o,u){for(var g=-1,b=t.length,S=-1,A=o.length,O=-1,N=r.length,U=yt(b-A,0),Y=D(U+N),ce=!u;++g<U;)Y[g]=t[g];for(var me=g;++O<N;)Y[me+O]=r[O];for(;++S<A;)(ce||g<b)&&(Y[me+o[S]]=t[g++]);return Y}function Ft(t,r){var o=-1,u=t.length;for(r||(r=D(u));++o<u;)r[o]=t[o];return r}function vn(t,r,o,u){var g=!o;o||(o={});for(var b=-1,S=r.length;++b<S;){var A=r[b],O=u?u(o[A],t[A],A,o,t):i;O===i&&(O=t[A]),g?$n(o,A,O):gi(o,A,O)}return o}function yg(t,r){return vn(t,da(t),r)}function bg(t,r){return vn(t,mu(t),r)}function vo(t,r){return function(o,u){var g=Ie(o)?Ch:Wp,b=r?r():{};return g(o,t,ve(u,2),b)}}function zr(t){return je(function(r,o){var u=-1,g=o.length,b=g>1?o[g-1]:i,S=g>2?o[2]:i;for(b=t.length>3&&typeof b=="function"?(g--,b):i,S&&Rt(o[0],o[1],S)&&(b=g<3?i:b,g=1),r=tt(r);++u<g;){var A=o[u];A&&t(r,A,u,b)}return r})}function iu(t,r){return function(o,u){if(o==null)return o;if(!Ot(o))return t(o,u);for(var g=o.length,b=r?g:-1,S=tt(o);(r?b--:++b<g)&&u(S[b],b,S)!==!1;);return o}}function ou(t){return function(r,o,u){for(var g=-1,b=tt(r),S=u(r),A=S.length;A--;){var O=S[t?A:++g];if(o(b[O],O,b)===!1)break}return r}}function xg(t,r,o){var u=r&k,g=vi(t);function b(){var S=this&&this!==wt&&this instanceof b?g:t;return S.apply(u?o:this,arguments)}return b}function su(t){return function(r){r=Ke(r);var o=Ar(r)?dn(r):i,u=o?o[0]:r.charAt(0),g=o?Kn(o,1).join(""):r.slice(1);return u[t]()+g}}function Lr(t){return function(r){return Ts(id(rd(r).replace(ch,"")),t,"")}}function vi(t){return function(){var r=arguments;switch(r.length){case 0:return new t;case 1:return new t(r[0]);case 2:return new t(r[0],r[1]);case 3:return new t(r[0],r[1],r[2]);case 4:return new t(r[0],r[1],r[2],r[3]);case 5:return new t(r[0],r[1],r[2],r[3],r[4]);case 6:return new t(r[0],r[1],r[2],r[3],r[4],r[5]);case 7:return new t(r[0],r[1],r[2],r[3],r[4],r[5],r[6])}var o=Or(t.prototype),u=t.apply(o,r);return ct(u)?u:o}}function vg(t,r,o){var u=vi(t);function g(){for(var b=arguments.length,S=D(b),A=b,O=jr(g);A--;)S[A]=arguments[A];var N=b<3&&S[0]!==O&&S[b-1]!==O?[]:Vn(S,O);if(b-=N.length,b<o)return du(t,r,wo,g.placeholder,i,S,N,i,i,o-b);var U=this&&this!==wt&&this instanceof g?u:t;return Zt(U,this,S)}return g}function au(t){return function(r,o,u){var g=tt(r);if(!Ot(r)){var b=ve(o,3);r=xt(r),o=function(A){return b(g[A],A,g)}}var S=t(r,o,u);return S>-1?g[b?r[S]:S]:i}}function lu(t){return Tn(function(r){var o=r.length,u=o,g=tn.prototype.thru;for(t&&r.reverse();u--;){var b=r[u];if(typeof b!="function")throw new en(d);if(g&&!S&&Eo(b)=="wrapper")var S=new tn([],!0)}for(u=S?u:o;++u<o;){b=r[u];var A=Eo(b),O=A=="wrapper"?ca(b):i;O&&ha(O[0])&&O[1]==(j|I|M|H)&&!O[4].length&&O[9]==1?S=S[Eo(O[0])].apply(S,O[3]):S=b.length==1&&ha(b)?S[A]():S.thru(b)}return function(){var N=arguments,U=N[0];if(S&&N.length==1&&Ie(U))return S.plant(U).value();for(var Y=0,ce=o?r[Y].apply(this,N):U;++Y<o;)ce=r[Y].call(this,ce);return ce}})}function wo(t,r,o,u,g,b,S,A,O,N){var U=r&j,Y=r&k,ce=r&T,me=r&(I|$),_e=r&se,ze=ce?i:vi(t);function Ce(){for(var Be=arguments.length,Ve=D(Be),Gt=Be;Gt--;)Ve[Gt]=arguments[Gt];if(me)var It=jr(Ce),qt=Mh(Ve,It);if(u&&(Ve=nu(Ve,u,g,me)),b&&(Ve=ru(Ve,b,S,me)),Be-=qt,me&&Be<N){var ft=Vn(Ve,It);return du(t,r,wo,Ce.placeholder,o,Ve,ft,A,O,N-Be)}var pn=Y?o:this,Fn=ce?pn[t]:t;return Be=Ve.length,A?Ve=Wg(Ve,A):_e&&Be>1&&Ve.reverse(),U&&O<Be&&(Ve.length=O),this&&this!==wt&&this instanceof Ce&&(Fn=ze||vi(Fn)),Fn.apply(pn,Ve)}return Ce}function cu(t,r){return function(o,u){return qp(o,t,r(u),{})}}function _o(t,r){return function(o,u){var g;if(o===i&&u===i)return r;if(o!==i&&(g=o),u!==i){if(g===i)return u;typeof o=="string"||typeof u=="string"?(o=Nt(o),u=Nt(u)):(o=qc(o),u=qc(u)),g=t(o,u)}return g}}function oa(t){return Tn(function(r){return r=at(r,Vt(ve())),je(function(o){var u=this;return t(r,function(g){return Zt(g,u,o)})})})}function Co(t,r){r=r===i?" ":Nt(r);var o=r.length;if(o<2)return o?Qs(r,t):r;var u=Qs(r,lo(t/Tr(r)));return Ar(r)?Kn(dn(u),0,t).join(""):u.slice(0,t)}function wg(t,r,o,u){var g=r&k,b=vi(t);function S(){for(var A=-1,O=arguments.length,N=-1,U=u.length,Y=D(U+O),ce=this&&this!==wt&&this instanceof S?b:t;++N<U;)Y[N]=u[N];for(;O--;)Y[N++]=arguments[++A];return Zt(ce,g?o:this,Y)}return S}function uu(t){return function(r,o,u){return u&&typeof u!="number"&&Rt(r,o,u)&&(o=u=i),r=Mn(r),o===i?(o=r,r=0):o=Mn(o),u=u===i?r<o?1:-1:Mn(u),sg(r,o,u,t)}}function So(t){return function(r,o){return typeof r=="string"&&typeof o=="string"||(r=sn(r),o=sn(o)),t(r,o)}}function du(t,r,o,u,g,b,S,A,O,N){var U=r&I,Y=U?S:i,ce=U?i:S,me=U?b:i,_e=U?i:b;r|=U?M:z,r&=~(U?z:M),r&E||(r&=-4);var ze=[t,r,g,me,Y,_e,ce,A,O,N],Ce=o.apply(i,ze);return ha(t)&&Cu(Ce,ze),Ce.placeholder=u,Su(Ce,t,r)}function sa(t){var r=mt[t];return function(o,u){if(o=sn(o),u=u==null?0:St(Oe(u),292),u&&Sc(o)){var g=(Ke(o)+"e").split("e"),b=r(g[0]+"e"+(+g[1]+u));return g=(Ke(b)+"e").split("e"),+(g[0]+"e"+(+g[1]-u))}return r(o)}}var _g=Mr&&1/Qi(new Mr([,-0]))[1]==ne?function(t){return new Mr(t)}:Aa;function fu(t){return function(r){var o=Et(r);return o==G?Ls(r):o==nt?Ph(r):Ih(r,t(r))}}function An(t,r,o,u,g,b,S,A){var O=r&T;if(!O&&typeof t!="function")throw new en(d);var N=u?u.length:0;if(N||(r&=-97,u=g=i),S=S===i?S:yt(Oe(S),0),A=A===i?A:Oe(A),N-=g?g.length:0,r&z){var U=u,Y=g;u=g=i}var ce=O?i:ca(t),me=[t,r,o,u,g,U,Y,b,S,A];if(ce&&jg(me,ce),t=me[0],r=me[1],o=me[2],u=me[3],g=me[4],A=me[9]=me[9]===i?O?0:t.length:yt(me[9]-N,0),!A&&r&(I|$)&&(r&=-25),!r||r==k)var _e=xg(t,r,o);else r==I||r==$?_e=vg(t,r,A):(r==M||r==(k|M))&&!g.length?_e=wg(t,r,o,u):_e=wo.apply(i,me);var ze=ce?Uc:Cu;return Su(ze(_e,me),t,r)}function hu(t,r,o,u){return t===i||hn(t,Ir[o])&&!Xe.call(u,o)?r:t}function pu(t,r,o,u,g,b){return ct(t)&&ct(r)&&(b.set(r,t),yo(t,r,i,pu,b),b.delete(r)),t}function Cg(t){return Ci(t)?i:t}function gu(t,r,o,u,g,b){var S=o&C,A=t.length,O=r.length;if(A!=O&&!(S&&O>A))return!1;var N=b.get(t),U=b.get(r);if(N&&U)return N==r&&U==t;var Y=-1,ce=!0,me=o&R?new cr:i;for(b.set(t,r),b.set(r,t);++Y<A;){var _e=t[Y],ze=r[Y];if(u)var Ce=S?u(ze,_e,Y,r,t,b):u(_e,ze,Y,t,r,b);if(Ce!==i){if(Ce)continue;ce=!1;break}if(me){if(!Rs(r,function(Be,Ve){if(!ci(me,Ve)&&(_e===Be||g(_e,Be,o,u,b)))return me.push(Ve)})){ce=!1;break}}else if(!(_e===ze||g(_e,ze,o,u,b))){ce=!1;break}}return b.delete(t),b.delete(r),ce}function Sg(t,r,o,u,g,b,S){switch(o){case bt:if(t.byteLength!=r.byteLength||t.byteOffset!=r.byteOffset)return!1;t=t.buffer,r=r.buffer;case Je:return!(t.byteLength!=r.byteLength||!b(new io(t),new io(r)));case ye:case Te:case oe:return hn(+t,+r);case ke:return t.name==r.name&&t.message==r.message;case De:case it:return t==r+"";case G:var A=Ls;case nt:var O=u&C;if(A||(A=Qi),t.size!=r.size&&!O)return!1;var N=S.get(t);if(N)return N==r;u|=R,S.set(t,r);var U=gu(A(t),A(r),u,g,b,S);return S.delete(t),U;case ae:if(pi)return pi.call(t)==pi.call(r)}return!1}function Eg(t,r,o,u,g,b){var S=o&C,A=aa(t),O=A.length,N=aa(r),U=N.length;if(O!=U&&!S)return!1;for(var Y=O;Y--;){var ce=A[Y];if(!(S?ce in r:Xe.call(r,ce)))return!1}var me=b.get(t),_e=b.get(r);if(me&&_e)return me==r&&_e==t;var ze=!0;b.set(t,r),b.set(r,t);for(var Ce=S;++Y<O;){ce=A[Y];var Be=t[ce],Ve=r[ce];if(u)var Gt=S?u(Ve,Be,ce,r,t,b):u(Be,Ve,ce,t,r,b);if(!(Gt===i?Be===Ve||g(Be,Ve,o,u,b):Gt)){ze=!1;break}Ce||(Ce=ce=="constructor")}if(ze&&!Ce){var It=t.constructor,qt=r.constructor;It!=qt&&"constructor"in t&&"constructor"in r&&!(typeof It=="function"&&It instanceof It&&typeof qt=="function"&&qt instanceof qt)&&(ze=!1)}return b.delete(t),b.delete(r),ze}function Tn(t){return ga(wu(t,i,Ru),t+"")}function aa(t){return zc(t,xt,da)}function la(t){return zc(t,zt,mu)}var ca=uo?function(t){return uo.get(t)}:Aa;function Eo(t){for(var r=t.name+"",o=Fr[r],u=Xe.call(Fr,r)?o.length:0;u--;){var g=o[u],b=g.func;if(b==null||b==t)return g.name}return r}function jr(t){var r=Xe.call(y,"placeholder")?y:t;return r.placeholder}function ve(){var t=y.iteratee||ka;return t=t===ka?Dc:t,arguments.length?t(arguments[0],arguments[1]):t}function ko(t,r){var o=t.__data__;return Fg(r)?o[typeof r=="string"?"string":"hash"]:o.map}function ua(t){for(var r=xt(t),o=r.length;o--;){var u=r[o],g=t[u];r[o]=[u,g,xu(g)]}return r}function fr(t,r){var o=Lh(t,r);return jc(o)?o:i}function kg(t){var r=Xe.call(t,ar),o=t[ar];try{t[ar]=i;var u=!0}catch{}var g=no.call(t);return u&&(r?t[ar]=o:delete t[ar]),g}var da=Ds?function(t){return t==null?[]:(t=tt(t),Hn(Ds(t),function(r){return _c.call(t,r)}))}:Ta,mu=Ds?function(t){for(var r=[];t;)Zn(r,da(t)),t=oo(t);return r}:Ta,Et=Tt;(Ps&&Et(new Ps(new ArrayBuffer(1)))!=bt||di&&Et(new di)!=G||Ws&&Et(Ws.resolve())!=He||Mr&&Et(new Mr)!=nt||fi&&Et(new fi)!=We)&&(Et=function(t){var r=Tt(t),o=r==Ae?t.constructor:i,u=o?hr(o):"";if(u)switch(u){case lp:return bt;case cp:return G;case up:return He;case dp:return nt;case fp:return We}return r});function $g(t,r,o){for(var u=-1,g=o.length;++u<g;){var b=o[u],S=b.size;switch(b.type){case"drop":t+=S;break;case"dropRight":r-=S;break;case"take":r=St(r,t+S);break;case"takeRight":t=yt(t,r-S);break}}return{start:t,end:r}}function Ag(t){var r=t.match(Ui);return r?r[1].split(z1):[]}function yu(t,r,o){r=qn(r,t);for(var u=-1,g=r.length,b=!1;++u<g;){var S=wn(r[u]);if(!(b=t!=null&&o(t,S)))break;t=t[S]}return b||++u!=g?b:(g=t==null?0:t.length,!!g&&Fo(g)&&Rn(S,g)&&(Ie(t)||pr(t)))}function Tg(t){var r=t.length,o=new t.constructor(r);return r&&typeof t[0]=="string"&&Xe.call(t,"index")&&(o.index=t.index,o.input=t.input),o}function bu(t){return typeof t.constructor=="function"&&!wi(t)?Or(oo(t)):{}}function Rg(t,r,o){var u=t.constructor;switch(r){case Je:return ia(t);case ye:case Te:return new u(+t);case bt:return hg(t,o);case $t:case rr:case un:case Xt:case Sr:case Wn:case ri:case Er:case ii:return eu(t,o);case G:return new u;case oe:case it:return new u(t);case De:return pg(t);case nt:return new u;case ae:return gg(t)}}function Ig(t,r){var o=r.length;if(!o)return t;var u=o-1;return r[u]=(o>1?"& ":"")+r[u],r=r.join(o>2?", ":" "),t.replace(bn,`{
|
|
9
9
|
/* [wrapped with `+r+`] */
|
|
10
|
-
`)}function Mg(t){return Ie(t)||pr(t)||!!(Cc&&t&&t[Cc])}function Rn(t,r){var o=typeof t;return r=r??ie,!!r&&(o=="number"||o!="symbol"&&V1.test(t))&&t>-1&&t%1==0&&t<r}function Rt(t,r,o){if(!ct(o))return!1;var u=typeof r;return(u=="number"?Ot(o)&&Rn(r,o.length):u=="string"&&r in o)?hn(o[r],t):!1}function fa(t,r){if(Ie(t))return!1;var o=typeof t;return o=="number"||o=="symbol"||o=="boolean"||t==null||Ut(t)?!0:ir.test(t)||!li.test(t)||r!=null&&t in tt(r)}function Fg(t){var r=typeof t;return r=="string"||r=="number"||r=="symbol"||r=="boolean"?t!=="__proto__":t===null}function ha(t){var r=Eo(t),o=y[r];if(typeof o!="function"||!(r in He.prototype))return!1;if(t===o)return!0;var u=ca(o);return!!u&&t===u[0]}function Og(t){return!!xc&&xc in t}var zg=eo?In:Ra;function wi(t){var r=t&&t.constructor,o=typeof r=="function"&&r.prototype||Ir;return t===o}function xu(t){return t===t&&!ct(t)}function vu(t,r){return function(o){return o==null?!1:o[t]===r&&(r!==i||t in tt(o))}}function Lg(t){var r=Io(t,function(u){return o.size===p&&o.clear(),u}),o=r.cache;return r}function jg(t,r){var o=t[1],u=r[1],g=o|u,b=g<(k|T|j),S=u==j&&o==I||u==j&&o==H&&t[7].length<=r[8]||u==(j|H)&&r[7].length<=r[8]&&o==I;if(!(b||S))return t;u&k&&(t[2]=r[2],g|=o&k?0:E);var A=r[3];if(A){var O=t[3];t[3]=O?nu(O,A,r[4]):A,t[4]=O?Vn(t[3],x):r[4]}return A=r[5],A&&(O=t[5],t[5]=O?ru(O,A,r[6]):A,t[6]=O?Vn(t[5],x):r[6]),A=r[7],A&&(t[7]=A),u&j&&(t[8]=t[8]==null?r[8]:St(t[8],r[8])),t[9]==null&&(t[9]=r[9]),t[0]=r[0],t[1]=g,t}function Dg(t){var r=[];if(t!=null)for(var o in tt(t))r.push(o);return r}function Pg(t){return no.call(t)}function wu(t,r,o){return r=yt(r===i?t.length-1:r,0),function(){for(var u=arguments,g=-1,b=yt(u.length-r,0),S=D(b);++g<b;)S[g]=u[r+g];g=-1;for(var A=D(r+1);++g<r;)A[g]=u[g];return A[r]=o(S),Zt(t,this,A)}}function _u(t,r){return r.length<2?t:dr(t,rn(r,0,-1))}function Wg(t,r){for(var o=t.length,u=St(r.length,o),g=Ft(t);u--;){var b=r[u];t[u]=Rn(b,o)?g[b]:i}return t}function pa(t,r){if(!(r==="constructor"&&typeof t[r]=="function")&&r!="__proto__")return t[r]}var Cu=Eu(Uc),_i=tp||function(t,r){return wt.setTimeout(t,r)},ga=Eu(cg);function Su(t,r,o){var u=r+"";return ga(t,Ig(u,Bg(Ag(u),o)))}function Eu(t){var r=0,o=0;return function(){var u=op(),g=W-(u-o);if(o=u,g>0){if(++r>=B)return arguments[0]}else r=0;return t.apply(i,arguments)}}function $o(t,r){var o=-1,u=t.length,g=u-1;for(r=r===i?u:r;++o<r;){var b=Xs(o,g),S=t[b];t[b]=t[o],t[o]=S}return t.length=r,t}var ku=Lg(function(t){var r=[];return t.charCodeAt(0)===46&&r.push(""),t.replace(Ni,function(o,u,g,b){r.push(g?b.replace(D1,"$1"):u||o)}),r});function wn(t){if(typeof t=="string"||Ut(t))return t;var r=t+"";return r=="0"&&1/t==-1/0?"-0":r}function hr(t){if(t!=null){try{return to.call(t)}catch{}try{return t+""}catch{}}return""}function Bg(t,r){return Jt(je,function(o){var u="_."+o[0];r&o[1]&&!Yi(t,u)&&t.push(u)}),t.sort()}function $u(t){if(t instanceof He)return t.clone();var r=new tn(t.__wrapped__,t.__chain__);return r.__actions__=Ft(t.__actions__),r.__index__=t.__index__,r.__values__=t.__values__,r}function Hg(t,r,o){(o?Rt(t,r,o):r===i)?r=1:r=yt(Oe(r),0);var u=t==null?0:t.length;if(!u||r<1)return[];for(var g=0,b=0,S=D(lo(u/r));g<u;)S[b++]=rn(t,g,g+=r);return S}function Zg(t){for(var r=-1,o=t==null?0:t.length,u=0,g=[];++r<o;){var b=t[r];b&&(g[u++]=b)}return g}function Vg(){var t=arguments.length;if(!t)return[];for(var r=D(t-1),o=arguments[0],u=t;u--;)r[u-1]=arguments[u];return Zn(Ie(o)?Ft(o):[o],_t(r,1))}var Ng=Le(function(t,r){return dt(t)?mi(t,_t(r,1,dt,!0)):[]}),Ug=Le(function(t,r){var o=on(r);return dt(o)&&(o=i),dt(t)?mi(t,_t(r,1,dt,!0),ve(o,2)):[]}),Gg=Le(function(t,r){var o=on(r);return dt(o)&&(o=i),dt(t)?mi(t,_t(r,1,dt,!0),i,o):[]});function qg(t,r,o){var u=t==null?0:t.length;return u?(r=o||r===i?1:Oe(r),rn(t,r<0?0:r,u)):[]}function Kg(t,r,o){var u=t==null?0:t.length;return u?(r=o||r===i?1:Oe(r),r=u-r,rn(t,0,r<0?0:r)):[]}function Yg(t,r){return t&&t.length?xo(t,ve(r,3),!0,!0):[]}function Xg(t,r){return t&&t.length?xo(t,ve(r,3),!0):[]}function Qg(t,r,o,u){var g=t==null?0:t.length;return g?(o&&typeof o!="number"&&Rt(t,r,o)&&(o=0,u=g),Vp(t,r,o,u)):[]}function Au(t,r,o){var u=t==null?0:t.length;if(!u)return-1;var g=o==null?0:Oe(o);return g<0&&(g=yt(u+g,0)),Xi(t,ve(r,3),g)}function Tu(t,r,o){var u=t==null?0:t.length;if(!u)return-1;var g=u-1;return o!==i&&(g=Oe(o),g=o<0?yt(u+g,0):St(g,u-1)),Xi(t,ve(r,3),g,!0)}function Ru(t){var r=t==null?0:t.length;return r?_t(t,1):[]}function Jg(t){var r=t==null?0:t.length;return r?_t(t,ne):[]}function em(t,r){var o=t==null?0:t.length;return o?(r=r===i?1:Oe(r),_t(t,r)):[]}function tm(t){for(var r=-1,o=t==null?0:t.length,u={};++r<o;){var g=t[r];u[g[0]]=g[1]}return u}function Iu(t){return t&&t.length?t[0]:i}function nm(t,r,o){var u=t==null?0:t.length;if(!u)return-1;var g=o==null?0:Oe(o);return g<0&&(g=yt(u+g,0)),$r(t,r,g)}function rm(t){var r=t==null?0:t.length;return r?rn(t,0,-1):[]}var im=Le(function(t){var r=at(t,na);return r.length&&r[0]===t[0]?Us(r):[]}),om=Le(function(t){var r=on(t),o=at(t,na);return r===on(o)?r=i:o.pop(),o.length&&o[0]===t[0]?Us(o,ve(r,2)):[]}),sm=Le(function(t){var r=on(t),o=at(t,na);return r=typeof r=="function"?r:i,r&&o.pop(),o.length&&o[0]===t[0]?Us(o,i,r):[]});function am(t,r){return t==null?"":rp.call(t,r)}function on(t){var r=t==null?0:t.length;return r?t[r-1]:i}function lm(t,r,o){var u=t==null?0:t.length;if(!u)return-1;var g=u;return o!==i&&(g=Oe(o),g=g<0?yt(u+g,0):St(g,u-1)),r===r?Bh(t,r,g):Xi(t,dc,g,!0)}function cm(t,r){return t&&t.length?Hc(t,Oe(r)):i}var um=Le(Mu);function Mu(t,r){return t&&t.length&&r&&r.length?Ys(t,r):t}function dm(t,r,o){return t&&t.length&&r&&r.length?Ys(t,r,ve(o,2)):t}function fm(t,r,o){return t&&t.length&&r&&r.length?Ys(t,r,i,o):t}var hm=Tn(function(t,r){var o=t==null?0:t.length,u=Hs(t,r);return Nc(t,at(r,function(g){return Rn(g,o)?+g:g}).sort(tu)),u});function pm(t,r){var o=[];if(!(t&&t.length))return o;var u=-1,g=[],b=t.length;for(r=ve(r,3);++u<b;){var S=t[u];r(S,u,t)&&(o.push(S),g.push(u))}return Nc(t,g),o}function ma(t){return t==null?t:ap.call(t)}function gm(t,r,o){var u=t==null?0:t.length;return u?(o&&typeof o!="number"&&Rt(t,r,o)?(r=0,o=u):(r=r==null?0:Oe(r),o=o===i?u:Oe(o)),rn(t,r,o)):[]}function mm(t,r){return bo(t,r)}function ym(t,r,o){return Js(t,r,ve(o,2))}function bm(t,r){var o=t==null?0:t.length;if(o){var u=bo(t,r);if(u<o&&hn(t[u],r))return u}return-1}function xm(t,r){return bo(t,r,!0)}function vm(t,r,o){return Js(t,r,ve(o,2),!0)}function wm(t,r){var o=t==null?0:t.length;if(o){var u=bo(t,r,!0)-1;if(hn(t[u],r))return u}return-1}function _m(t){return t&&t.length?Gc(t):[]}function Cm(t,r){return t&&t.length?Gc(t,ve(r,2)):[]}function Sm(t){var r=t==null?0:t.length;return r?rn(t,1,r):[]}function Em(t,r,o){return t&&t.length?(r=o||r===i?1:Oe(r),rn(t,0,r<0?0:r)):[]}function km(t,r,o){var u=t==null?0:t.length;return u?(r=o||r===i?1:Oe(r),r=u-r,rn(t,r<0?0:r,u)):[]}function $m(t,r){return t&&t.length?xo(t,ve(r,3),!1,!0):[]}function Am(t,r){return t&&t.length?xo(t,ve(r,3)):[]}var Tm=Le(function(t){return Gn(_t(t,1,dt,!0))}),Rm=Le(function(t){var r=on(t);return dt(r)&&(r=i),Gn(_t(t,1,dt,!0),ve(r,2))}),Im=Le(function(t){var r=on(t);return r=typeof r=="function"?r:i,Gn(_t(t,1,dt,!0),i,r)});function Mm(t){return t&&t.length?Gn(t):[]}function Fm(t,r){return t&&t.length?Gn(t,ve(r,2)):[]}function Om(t,r){return r=typeof r=="function"?r:i,t&&t.length?Gn(t,i,r):[]}function ya(t){if(!(t&&t.length))return[];var r=0;return t=Hn(t,function(o){if(dt(o))return r=yt(o.length,r),!0}),Os(r,function(o){return at(t,Is(o))})}function Fu(t,r){if(!(t&&t.length))return[];var o=ya(t);return r==null?o:at(o,function(u){return Zt(r,i,u)})}var zm=Le(function(t,r){return dt(t)?mi(t,r):[]}),Lm=Le(function(t){return ta(Hn(t,dt))}),jm=Le(function(t){var r=on(t);return dt(r)&&(r=i),ta(Hn(t,dt),ve(r,2))}),Dm=Le(function(t){var r=on(t);return r=typeof r=="function"?r:i,ta(Hn(t,dt),i,r)}),Pm=Le(ya);function Wm(t,r){return Xc(t||[],r||[],gi)}function Bm(t,r){return Xc(t||[],r||[],xi)}var Hm=Le(function(t){var r=t.length,o=r>1?t[r-1]:i;return o=typeof o=="function"?(t.pop(),o):i,Fu(t,o)});function Ou(t){var r=y(t);return r.__chain__=!0,r}function Zm(t,r){return r(t),t}function Ao(t,r){return r(t)}var Vm=Tn(function(t){var r=t.length,o=r?t[0]:0,u=this.__wrapped__,g=function(b){return Hs(b,t)};return r>1||this.__actions__.length||!(u instanceof He)||!Rn(o)?this.thru(g):(u=u.slice(o,+o+(r?1:0)),u.__actions__.push({func:Ao,args:[g],thisArg:i}),new tn(u,this.__chain__).thru(function(b){return r&&!b.length&&b.push(i),b}))});function Nm(){return Ou(this)}function Um(){return new tn(this.value(),this.__chain__)}function Gm(){this.__values__===i&&(this.__values__=qu(this.value()));var t=this.__index__>=this.__values__.length,r=t?i:this.__values__[this.__index__++];return{done:t,value:r}}function qm(){return this}function Km(t){for(var r,o=this;o instanceof ho;){var u=$u(o);u.__index__=0,u.__values__=i,r?g.__wrapped__=u:r=u;var g=u;o=o.__wrapped__}return g.__wrapped__=t,r}function Ym(){var t=this.__wrapped__;if(t instanceof He){var r=t;return this.__actions__.length&&(r=new He(this)),r=r.reverse(),r.__actions__.push({func:Ao,args:[ma],thisArg:i}),new tn(r,this.__chain__)}return this.thru(ma)}function Xm(){return Yc(this.__wrapped__,this.__actions__)}var Qm=vo(function(t,r,o){Xe.call(t,o)?++t[o]:$n(t,o,1)});function Jm(t,r,o){var u=Ie(t)?cc:Zp;return o&&Rt(t,r,o)&&(r=i),u(t,ve(r,3))}function e2(t,r){var o=Ie(t)?Hn:Fc;return o(t,ve(r,3))}var t2=au(Au),n2=au(Tu);function r2(t,r){return _t(To(t,r),1)}function i2(t,r){return _t(To(t,r),ne)}function o2(t,r,o){return o=o===i?1:Oe(o),_t(To(t,r),o)}function zu(t,r){var o=Ie(t)?Jt:Un;return o(t,ve(r,3))}function Lu(t,r){var o=Ie(t)?Sh:Mc;return o(t,ve(r,3))}var s2=vo(function(t,r,o){Xe.call(t,o)?t[o].push(r):$n(t,o,[r])});function a2(t,r,o,u){t=Ot(t)?t:Pr(t),o=o&&!u?Oe(o):0;var g=t.length;return o<0&&(o=yt(g+o,0)),Oo(t)?o<=g&&t.indexOf(r,o)>-1:!!g&&$r(t,r,o)>-1}var l2=Le(function(t,r,o){var u=-1,g=typeof r=="function",b=Ot(t)?D(t.length):[];return Un(t,function(S){b[++u]=g?Zt(r,S,o):yi(S,r,o)}),b}),c2=vo(function(t,r,o){$n(t,o,r)});function To(t,r){var o=Ie(t)?at:Pc;return o(t,ve(r,3))}function u2(t,r,o,u){return t==null?[]:(Ie(r)||(r=r==null?[]:[r]),o=u?i:o,Ie(o)||(o=o==null?[]:[o]),Zc(t,r,o))}var d2=vo(function(t,r,o){t[o?0:1].push(r)},function(){return[[],[]]});function f2(t,r,o){var u=Ie(t)?Ts:hc,g=arguments.length<3;return u(t,ve(r,4),o,g,Un)}function h2(t,r,o){var u=Ie(t)?Eh:hc,g=arguments.length<3;return u(t,ve(r,4),o,g,Mc)}function p2(t,r){var o=Ie(t)?Hn:Fc;return o(t,Mo(ve(r,3)))}function g2(t){var r=Ie(t)?Ac:ag;return r(t)}function m2(t,r,o){(o?Rt(t,r,o):r===i)?r=1:r=Oe(r);var u=Ie(t)?Dp:lg;return u(t,r)}function y2(t){var r=Ie(t)?Pp:ug;return r(t)}function b2(t){if(t==null)return 0;if(Ot(t))return Oo(t)?Tr(t):t.length;var r=Et(t);return r==G||r==nt?t.size:qs(t).length}function x2(t,r,o){var u=Ie(t)?Rs:dg;return o&&Rt(t,r,o)&&(r=i),u(t,ve(r,3))}var v2=Le(function(t,r){if(t==null)return[];var o=r.length;return o>1&&Rt(t,r[0],r[1])?r=[]:o>2&&Rt(r[0],r[1],r[2])&&(r=[r[0]]),Zc(t,_t(r,1),[])}),Ro=ep||function(){return wt.Date.now()};function w2(t,r){if(typeof r!="function")throw new en(d);return t=Oe(t),function(){if(--t<1)return r.apply(this,arguments)}}function ju(t,r,o){return r=o?i:r,r=t&&r==null?t.length:r,An(t,j,i,i,i,i,r)}function Du(t,r){var o;if(typeof r!="function")throw new en(d);return t=Oe(t),function(){return--t>0&&(o=r.apply(this,arguments)),t<=1&&(r=i),o}}var ba=Le(function(t,r,o){var u=k;if(o.length){var g=Vn(o,jr(ba));u|=M}return An(t,u,r,o,g)}),Pu=Le(function(t,r,o){var u=k|T;if(o.length){var g=Vn(o,jr(Pu));u|=M}return An(r,u,t,o,g)});function Wu(t,r,o){r=o?i:r;var u=An(t,I,i,i,i,i,i,r);return u.placeholder=Wu.placeholder,u}function Bu(t,r,o){r=o?i:r;var u=An(t,$,i,i,i,i,i,r);return u.placeholder=Bu.placeholder,u}function Hu(t,r,o){var u,g,b,S,A,O,N=0,U=!1,Y=!1,ce=!0;if(typeof t!="function")throw new en(d);r=sn(r)||0,ct(o)&&(U=!!o.leading,Y="maxWait"in o,b=Y?yt(sn(o.maxWait)||0,r):b,ce="trailing"in o?!!o.trailing:ce);function me(ft){var pn=u,Fn=g;return u=g=i,N=ft,S=t.apply(Fn,pn),S}function _e(ft){return N=ft,A=_i(We,r),U?me(ft):S}function ze(ft){var pn=ft-O,Fn=ft-N,ad=r-pn;return Y?St(ad,b-Fn):ad}function Ce(ft){var pn=ft-O,Fn=ft-N;return O===i||pn>=r||pn<0||Y&&Fn>=b}function We(){var ft=Ro();if(Ce(ft))return Ve(ft);A=_i(We,ze(ft))}function Ve(ft){return A=i,ce&&u?me(ft):(u=g=i,S)}function Gt(){A!==i&&Qc(A),N=0,u=O=g=A=i}function It(){return A===i?S:Ve(Ro())}function qt(){var ft=Ro(),pn=Ce(ft);if(u=arguments,g=this,O=ft,pn){if(A===i)return _e(O);if(Y)return Qc(A),A=_i(We,r),me(O)}return A===i&&(A=_i(We,r)),S}return qt.cancel=Gt,qt.flush=It,qt}var _2=Le(function(t,r){return Ic(t,1,r)}),C2=Le(function(t,r,o){return Ic(t,sn(r)||0,o)});function S2(t){return An(t,se)}function Io(t,r){if(typeof t!="function"||r!=null&&typeof r!="function")throw new en(d);var o=function(){var u=arguments,g=r?r.apply(this,u):u[0],b=o.cache;if(b.has(g))return b.get(g);var S=t.apply(this,u);return o.cache=b.set(g,S)||b,S};return o.cache=new(Io.Cache||kn),o}Io.Cache=kn;function Mo(t){if(typeof t!="function")throw new en(d);return function(){var r=arguments;switch(r.length){case 0:return!t.call(this);case 1:return!t.call(this,r[0]);case 2:return!t.call(this,r[0],r[1]);case 3:return!t.call(this,r[0],r[1],r[2])}return!t.apply(this,r)}}function E2(t){return Du(2,t)}var k2=fg(function(t,r){r=r.length==1&&Ie(r[0])?at(r[0],Vt(ve())):at(_t(r,1),Vt(ve()));var o=r.length;return Le(function(u){for(var g=-1,b=St(u.length,o);++g<b;)u[g]=r[g].call(this,u[g]);return Zt(t,this,u)})}),xa=Le(function(t,r){var o=Vn(r,jr(xa));return An(t,M,i,r,o)}),Zu=Le(function(t,r){var o=Vn(r,jr(Zu));return An(t,z,i,r,o)}),$2=Tn(function(t,r){return An(t,H,i,i,i,r)});function A2(t,r){if(typeof t!="function")throw new en(d);return r=r===i?r:Oe(r),Le(t,r)}function T2(t,r){if(typeof t!="function")throw new en(d);return r=r==null?0:yt(Oe(r),0),Le(function(o){var u=o[r],g=Kn(o,0,r);return u&&Zn(g,u),Zt(t,this,g)})}function R2(t,r,o){var u=!0,g=!0;if(typeof t!="function")throw new en(d);return ct(o)&&(u="leading"in o?!!o.leading:u,g="trailing"in o?!!o.trailing:g),Hu(t,r,{leading:u,maxWait:r,trailing:g})}function I2(t){return ju(t,1)}function M2(t,r){return xa(ra(r),t)}function F2(){if(!arguments.length)return[];var t=arguments[0];return Ie(t)?t:[t]}function O2(t){return nn(t,v)}function z2(t,r){return r=typeof r=="function"?r:i,nn(t,v,r)}function L2(t){return nn(t,w|v)}function j2(t,r){return r=typeof r=="function"?r:i,nn(t,w|v,r)}function D2(t,r){return r==null||Rc(t,r,xt(r))}function hn(t,r){return t===r||t!==t&&r!==r}var P2=So(Ns),W2=So(function(t,r){return t>=r}),pr=Lc(function(){return arguments}())?Lc:function(t){return ut(t)&&Xe.call(t,"callee")&&!_c.call(t,"callee")},Ie=D.isArray,B2=rc?Vt(rc):Kp;function Ot(t){return t!=null&&Fo(t.length)&&!In(t)}function dt(t){return ut(t)&&Ot(t)}function H2(t){return t===!0||t===!1||ut(t)&&Tt(t)==ye}var Yn=np||Ra,Z2=ic?Vt(ic):Yp;function V2(t){return ut(t)&&t.nodeType===1&&!Ci(t)}function N2(t){if(t==null)return!0;if(Ot(t)&&(Ie(t)||typeof t=="string"||typeof t.splice=="function"||Yn(t)||Dr(t)||pr(t)))return!t.length;var r=Et(t);if(r==G||r==nt)return!t.size;if(wi(t))return!qs(t).length;for(var o in t)if(Xe.call(t,o))return!1;return!0}function U2(t,r){return bi(t,r)}function G2(t,r,o){o=typeof o=="function"?o:i;var u=o?o(t,r):i;return u===i?bi(t,r,i,o):!!u}function va(t){if(!ut(t))return!1;var r=Tt(t);return r==ke||r==Fe||typeof t.message=="string"&&typeof t.name=="string"&&!Ci(t)}function q2(t){return typeof t=="number"&&Sc(t)}function In(t){if(!ct(t))return!1;var r=Tt(t);return r==ee||r==ge||r==st||r==Ye}function Vu(t){return typeof t=="number"&&t==Oe(t)}function Fo(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=ie}function ct(t){var r=typeof t;return t!=null&&(r=="object"||r=="function")}function ut(t){return t!=null&&typeof t=="object"}var Nu=oc?Vt(oc):Qp;function K2(t,r){return t===r||Gs(t,r,ua(r))}function Y2(t,r,o){return o=typeof o=="function"?o:i,Gs(t,r,ua(r),o)}function X2(t){return Uu(t)&&t!=+t}function Q2(t){if(zg(t))throw new Re(l);return jc(t)}function J2(t){return t===null}function e8(t){return t==null}function Uu(t){return typeof t=="number"||ut(t)&&Tt(t)==oe}function Ci(t){if(!ut(t)||Tt(t)!=Ae)return!1;var r=oo(t);if(r===null)return!0;var o=Xe.call(r,"constructor")&&r.constructor;return typeof o=="function"&&o instanceof o&&to.call(o)==Yh}var wa=sc?Vt(sc):Jp;function t8(t){return Vu(t)&&t>=-9007199254740991&&t<=ie}var Gu=ac?Vt(ac):eg;function Oo(t){return typeof t=="string"||!Ie(t)&&ut(t)&&Tt(t)==it}function Ut(t){return typeof t=="symbol"||ut(t)&&Tt(t)==ae}var Dr=lc?Vt(lc):tg;function n8(t){return t===i}function r8(t){return ut(t)&&Et(t)==Pe}function i8(t){return ut(t)&&Tt(t)==Ge}var o8=So(Ks),s8=So(function(t,r){return t<=r});function qu(t){if(!t)return[];if(Ot(t))return Oo(t)?dn(t):Ft(t);if(ui&&t[ui])return Dh(t[ui]());var r=Et(t),o=r==G?Ls:r==nt?Qi:Pr;return o(t)}function Mn(t){if(!t)return t===0?t:0;if(t=sn(t),t===ne||t===-1/0){var r=t<0?-1:1;return r*we}return t===t?t:0}function Oe(t){var r=Mn(t),o=r%1;return r===r?o?r-o:r:0}function Ku(t){return t?ur(Oe(t),0,Se):0}function sn(t){if(typeof t=="number")return t;if(Ut(t))return pe;if(ct(t)){var r=typeof t.valueOf=="function"?t.valueOf():t;t=ct(r)?r+"":r}if(typeof t!="string")return t===0?t:+t;t=pc(t);var o=B1.test(t);return o||Z1.test(t)?wh(t.slice(2),o?2:8):W1.test(t)?pe:+t}function Yu(t){return vn(t,zt(t))}function a8(t){return t?ur(Oe(t),-9007199254740991,ie):t===0?t:0}function Ke(t){return t==null?"":Nt(t)}var l8=zr(function(t,r){if(wi(r)||Ot(r)){vn(r,xt(r),t);return}for(var o in r)Xe.call(r,o)&&gi(t,o,r[o])}),Xu=zr(function(t,r){vn(r,zt(r),t)}),zo=zr(function(t,r,o,u){vn(r,zt(r),t,u)}),c8=zr(function(t,r,o,u){vn(r,xt(r),t,u)}),u8=Tn(Hs);function d8(t,r){var o=Or(t);return r==null?o:Tc(o,r)}var f8=Le(function(t,r){t=tt(t);var o=-1,u=r.length,g=u>2?r[2]:i;for(g&&Rt(r[0],r[1],g)&&(u=1);++o<u;)for(var b=r[o],S=zt(b),A=-1,O=S.length;++A<O;){var N=S[A],U=t[N];(U===i||hn(U,Ir[N])&&!Xe.call(t,N))&&(t[N]=b[N])}return t}),h8=Le(function(t){return t.push(i,pu),Zt(Qu,i,t)});function p8(t,r){return uc(t,ve(r,3),xn)}function g8(t,r){return uc(t,ve(r,3),Vs)}function m8(t,r){return t==null?t:Zs(t,ve(r,3),zt)}function y8(t,r){return t==null?t:Oc(t,ve(r,3),zt)}function b8(t,r){return t&&xn(t,ve(r,3))}function x8(t,r){return t&&Vs(t,ve(r,3))}function v8(t){return t==null?[]:mo(t,xt(t))}function w8(t){return t==null?[]:mo(t,zt(t))}function _a(t,r,o){var u=t==null?i:dr(t,r);return u===i?o:u}function _8(t,r){return t!=null&&yu(t,r,Np)}function Ca(t,r){return t!=null&&yu(t,r,Up)}var C8=cu(function(t,r,o){r!=null&&typeof r.toString!="function"&&(r=no.call(r)),t[r]=o},Ea(Lt)),S8=cu(function(t,r,o){r!=null&&typeof r.toString!="function"&&(r=no.call(r)),Xe.call(t,r)?t[r].push(o):t[r]=[o]},ve),E8=Le(yi);function xt(t){return Ot(t)?$c(t):qs(t)}function zt(t){return Ot(t)?$c(t,!0):ng(t)}function k8(t,r){var o={};return r=ve(r,3),xn(t,function(u,g,b){$n(o,r(u,g,b),u)}),o}function $8(t,r){var o={};return r=ve(r,3),xn(t,function(u,g,b){$n(o,g,r(u,g,b))}),o}var A8=zr(function(t,r,o){yo(t,r,o)}),Qu=zr(function(t,r,o,u){yo(t,r,o,u)}),T8=Tn(function(t,r){var o={};if(t==null)return o;var u=!1;r=at(r,function(b){return b=qn(b,t),u||(u=b.length>1),b}),vn(t,la(t),o),u&&(o=nn(o,w|_|v,Cg));for(var g=r.length;g--;)ea(o,r[g]);return o});function R8(t,r){return Ju(t,Mo(ve(r)))}var I8=Tn(function(t,r){return t==null?{}:ig(t,r)});function Ju(t,r){if(t==null)return{};var o=at(la(t),function(u){return[u]});return r=ve(r),Vc(t,o,function(u,g){return r(u,g[0])})}function M8(t,r,o){r=qn(r,t);var u=-1,g=r.length;for(g||(g=1,t=i);++u<g;){var b=t==null?i:t[wn(r[u])];b===i&&(u=g,b=o),t=In(b)?b.call(t):b}return t}function F8(t,r,o){return t==null?t:xi(t,r,o)}function O8(t,r,o,u){return u=typeof u=="function"?u:i,t==null?t:xi(t,r,o,u)}var ed=fu(xt),td=fu(zt);function z8(t,r,o){var u=Ie(t),g=u||Yn(t)||Dr(t);if(r=ve(r,4),o==null){var b=t&&t.constructor;g?o=u?new b:[]:ct(t)?o=In(b)?Or(oo(t)):{}:o={}}return(g?Jt:xn)(t,function(S,A,O){return r(o,S,A,O)}),o}function L8(t,r){return t==null?!0:ea(t,r)}function j8(t,r,o){return t==null?t:Kc(t,r,ra(o))}function D8(t,r,o,u){return u=typeof u=="function"?u:i,t==null?t:Kc(t,r,ra(o),u)}function Pr(t){return t==null?[]:zs(t,xt(t))}function P8(t){return t==null?[]:zs(t,zt(t))}function W8(t,r,o){return o===i&&(o=r,r=i),o!==i&&(o=sn(o),o=o===o?o:0),r!==i&&(r=sn(r),r=r===r?r:0),ur(sn(t),r,o)}function B8(t,r,o){return r=Mn(r),o===i?(o=r,r=0):o=Mn(o),t=sn(t),Gp(t,r,o)}function H8(t,r,o){if(o&&typeof o!="boolean"&&Rt(t,r,o)&&(r=o=i),o===i&&(typeof r=="boolean"?(o=r,r=i):typeof t=="boolean"&&(o=t,t=i)),t===i&&r===i?(t=0,r=1):(t=Mn(t),r===i?(r=t,t=0):r=Mn(r)),t>r){var u=t;t=r,r=u}if(o||t%1||r%1){var g=Ec();return St(t+g*(r-t+vh("1e-"+((g+"").length-1))),r)}return Xs(t,r)}var Z8=Lr(function(t,r,o){return r=r.toLowerCase(),t+(o?nd(r):r)});function nd(t){return Sa(Ke(t).toLowerCase())}function rd(t){return t=Ke(t),t&&t.replace(N1,Fh).replace(uh,"")}function V8(t,r,o){t=Ke(t),r=Nt(r);var u=t.length;o=o===i?u:ur(Oe(o),0,u);var g=o;return o-=r.length,o>=0&&t.slice(o,g)==r}function N8(t){return t=Ke(t),t&&vs.test(t)?t.replace(At,Oh):t}function U8(t){return t=Ke(t),t&&xe.test(t)?t.replace(or,"\\$&"):t}var G8=Lr(function(t,r,o){return t+(o?"-":"")+r.toLowerCase()}),q8=Lr(function(t,r,o){return t+(o?" ":"")+r.toLowerCase()}),K8=su("toLowerCase");function Y8(t,r,o){t=Ke(t),r=Oe(r);var u=r?Tr(t):0;if(!r||u>=r)return t;var g=(r-u)/2;return Co(co(g),o)+t+Co(lo(g),o)}function X8(t,r,o){t=Ke(t),r=Oe(r);var u=r?Tr(t):0;return r&&u<r?t+Co(r-u,o):t}function Q8(t,r,o){t=Ke(t),r=Oe(r);var u=r?Tr(t):0;return r&&u<r?Co(r-u,o)+t:t}function J8(t,r,o){return o||r==null?r=0:r&&(r=+r),sp(Ke(t).replace(gt,""),r||0)}function ey(t,r,o){return(o?Rt(t,r,o):r===i)?r=1:r=Oe(r),Qs(Ke(t),r)}function ty(){var t=arguments,r=Ke(t[0]);return t.length<3?r:r.replace(t[1],t[2])}var ny=Lr(function(t,r,o){return t+(o?"_":"")+r.toLowerCase()});function ry(t,r,o){return o&&typeof o!="number"&&Rt(t,r,o)&&(r=o=i),o=o===i?Se:o>>>0,o?(t=Ke(t),t&&(typeof r=="string"||r!=null&&!wa(r))&&(r=Nt(r),!r&&Ar(t))?Kn(dn(t),0,o):t.split(r,o)):[]}var iy=Lr(function(t,r,o){return t+(o?" ":"")+Sa(r)});function oy(t,r,o){return t=Ke(t),o=o==null?0:ur(Oe(o),0,t.length),r=Nt(r),t.slice(o,o+r.length)==r}function sy(t,r,o){var u=y.templateSettings;o&&Rt(t,r,o)&&(r=i),t=Ke(t),r=zo({},r,u,hu);var g=zo({},r.imports,u.imports,hu),b=xt(g),S=zs(g,b),A,O,N=0,U=r.interpolate||Gi,Y="__p += '",ce=js((r.escape||Gi).source+"|"+U.source+"|"+(U===Bn?P1:Gi).source+"|"+(r.evaluate||Gi).source+"|$","g"),me="//# sourceURL="+(Xe.call(r,"sourceURL")?(r.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++gh+"]")+`
|
|
11
|
-
`;t.replace(ce,function(Ce,
|
|
12
|
-
__e(`+
|
|
10
|
+
`)}function Mg(t){return Ie(t)||pr(t)||!!(Cc&&t&&t[Cc])}function Rn(t,r){var o=typeof t;return r=r??ie,!!r&&(o=="number"||o!="symbol"&&V1.test(t))&&t>-1&&t%1==0&&t<r}function Rt(t,r,o){if(!ct(o))return!1;var u=typeof r;return(u=="number"?Ot(o)&&Rn(r,o.length):u=="string"&&r in o)?hn(o[r],t):!1}function fa(t,r){if(Ie(t))return!1;var o=typeof t;return o=="number"||o=="symbol"||o=="boolean"||t==null||Ut(t)?!0:ir.test(t)||!li.test(t)||r!=null&&t in tt(r)}function Fg(t){var r=typeof t;return r=="string"||r=="number"||r=="symbol"||r=="boolean"?t!=="__proto__":t===null}function ha(t){var r=Eo(t),o=y[r];if(typeof o!="function"||!(r in Ze.prototype))return!1;if(t===o)return!0;var u=ca(o);return!!u&&t===u[0]}function Og(t){return!!xc&&xc in t}var zg=eo?In:Ra;function wi(t){var r=t&&t.constructor,o=typeof r=="function"&&r.prototype||Ir;return t===o}function xu(t){return t===t&&!ct(t)}function vu(t,r){return function(o){return o==null?!1:o[t]===r&&(r!==i||t in tt(o))}}function Lg(t){var r=Io(t,function(u){return o.size===p&&o.clear(),u}),o=r.cache;return r}function jg(t,r){var o=t[1],u=r[1],g=o|u,b=g<(k|T|j),S=u==j&&o==I||u==j&&o==H&&t[7].length<=r[8]||u==(j|H)&&r[7].length<=r[8]&&o==I;if(!(b||S))return t;u&k&&(t[2]=r[2],g|=o&k?0:E);var A=r[3];if(A){var O=t[3];t[3]=O?nu(O,A,r[4]):A,t[4]=O?Vn(t[3],x):r[4]}return A=r[5],A&&(O=t[5],t[5]=O?ru(O,A,r[6]):A,t[6]=O?Vn(t[5],x):r[6]),A=r[7],A&&(t[7]=A),u&j&&(t[8]=t[8]==null?r[8]:St(t[8],r[8])),t[9]==null&&(t[9]=r[9]),t[0]=r[0],t[1]=g,t}function Dg(t){var r=[];if(t!=null)for(var o in tt(t))r.push(o);return r}function Pg(t){return no.call(t)}function wu(t,r,o){return r=yt(r===i?t.length-1:r,0),function(){for(var u=arguments,g=-1,b=yt(u.length-r,0),S=D(b);++g<b;)S[g]=u[r+g];g=-1;for(var A=D(r+1);++g<r;)A[g]=u[g];return A[r]=o(S),Zt(t,this,A)}}function _u(t,r){return r.length<2?t:dr(t,rn(r,0,-1))}function Wg(t,r){for(var o=t.length,u=St(r.length,o),g=Ft(t);u--;){var b=r[u];t[u]=Rn(b,o)?g[b]:i}return t}function pa(t,r){if(!(r==="constructor"&&typeof t[r]=="function")&&r!="__proto__")return t[r]}var Cu=Eu(Uc),_i=tp||function(t,r){return wt.setTimeout(t,r)},ga=Eu(cg);function Su(t,r,o){var u=r+"";return ga(t,Ig(u,Bg(Ag(u),o)))}function Eu(t){var r=0,o=0;return function(){var u=op(),g=W-(u-o);if(o=u,g>0){if(++r>=B)return arguments[0]}else r=0;return t.apply(i,arguments)}}function $o(t,r){var o=-1,u=t.length,g=u-1;for(r=r===i?u:r;++o<r;){var b=Xs(o,g),S=t[b];t[b]=t[o],t[o]=S}return t.length=r,t}var ku=Lg(function(t){var r=[];return t.charCodeAt(0)===46&&r.push(""),t.replace(Ni,function(o,u,g,b){r.push(g?b.replace(D1,"$1"):u||o)}),r});function wn(t){if(typeof t=="string"||Ut(t))return t;var r=t+"";return r=="0"&&1/t==-1/0?"-0":r}function hr(t){if(t!=null){try{return to.call(t)}catch{}try{return t+""}catch{}}return""}function Bg(t,r){return Jt(Le,function(o){var u="_."+o[0];r&o[1]&&!Yi(t,u)&&t.push(u)}),t.sort()}function $u(t){if(t instanceof Ze)return t.clone();var r=new tn(t.__wrapped__,t.__chain__);return r.__actions__=Ft(t.__actions__),r.__index__=t.__index__,r.__values__=t.__values__,r}function Hg(t,r,o){(o?Rt(t,r,o):r===i)?r=1:r=yt(Oe(r),0);var u=t==null?0:t.length;if(!u||r<1)return[];for(var g=0,b=0,S=D(lo(u/r));g<u;)S[b++]=rn(t,g,g+=r);return S}function Zg(t){for(var r=-1,o=t==null?0:t.length,u=0,g=[];++r<o;){var b=t[r];b&&(g[u++]=b)}return g}function Vg(){var t=arguments.length;if(!t)return[];for(var r=D(t-1),o=arguments[0],u=t;u--;)r[u-1]=arguments[u];return Zn(Ie(o)?Ft(o):[o],_t(r,1))}var Ng=je(function(t,r){return dt(t)?mi(t,_t(r,1,dt,!0)):[]}),Ug=je(function(t,r){var o=on(r);return dt(o)&&(o=i),dt(t)?mi(t,_t(r,1,dt,!0),ve(o,2)):[]}),Gg=je(function(t,r){var o=on(r);return dt(o)&&(o=i),dt(t)?mi(t,_t(r,1,dt,!0),i,o):[]});function qg(t,r,o){var u=t==null?0:t.length;return u?(r=o||r===i?1:Oe(r),rn(t,r<0?0:r,u)):[]}function Kg(t,r,o){var u=t==null?0:t.length;return u?(r=o||r===i?1:Oe(r),r=u-r,rn(t,0,r<0?0:r)):[]}function Yg(t,r){return t&&t.length?xo(t,ve(r,3),!0,!0):[]}function Xg(t,r){return t&&t.length?xo(t,ve(r,3),!0):[]}function Qg(t,r,o,u){var g=t==null?0:t.length;return g?(o&&typeof o!="number"&&Rt(t,r,o)&&(o=0,u=g),Vp(t,r,o,u)):[]}function Au(t,r,o){var u=t==null?0:t.length;if(!u)return-1;var g=o==null?0:Oe(o);return g<0&&(g=yt(u+g,0)),Xi(t,ve(r,3),g)}function Tu(t,r,o){var u=t==null?0:t.length;if(!u)return-1;var g=u-1;return o!==i&&(g=Oe(o),g=o<0?yt(u+g,0):St(g,u-1)),Xi(t,ve(r,3),g,!0)}function Ru(t){var r=t==null?0:t.length;return r?_t(t,1):[]}function Jg(t){var r=t==null?0:t.length;return r?_t(t,ne):[]}function em(t,r){var o=t==null?0:t.length;return o?(r=r===i?1:Oe(r),_t(t,r)):[]}function tm(t){for(var r=-1,o=t==null?0:t.length,u={};++r<o;){var g=t[r];u[g[0]]=g[1]}return u}function Iu(t){return t&&t.length?t[0]:i}function nm(t,r,o){var u=t==null?0:t.length;if(!u)return-1;var g=o==null?0:Oe(o);return g<0&&(g=yt(u+g,0)),$r(t,r,g)}function rm(t){var r=t==null?0:t.length;return r?rn(t,0,-1):[]}var im=je(function(t){var r=at(t,na);return r.length&&r[0]===t[0]?Us(r):[]}),om=je(function(t){var r=on(t),o=at(t,na);return r===on(o)?r=i:o.pop(),o.length&&o[0]===t[0]?Us(o,ve(r,2)):[]}),sm=je(function(t){var r=on(t),o=at(t,na);return r=typeof r=="function"?r:i,r&&o.pop(),o.length&&o[0]===t[0]?Us(o,i,r):[]});function am(t,r){return t==null?"":rp.call(t,r)}function on(t){var r=t==null?0:t.length;return r?t[r-1]:i}function lm(t,r,o){var u=t==null?0:t.length;if(!u)return-1;var g=u;return o!==i&&(g=Oe(o),g=g<0?yt(u+g,0):St(g,u-1)),r===r?Bh(t,r,g):Xi(t,dc,g,!0)}function cm(t,r){return t&&t.length?Hc(t,Oe(r)):i}var um=je(Mu);function Mu(t,r){return t&&t.length&&r&&r.length?Ys(t,r):t}function dm(t,r,o){return t&&t.length&&r&&r.length?Ys(t,r,ve(o,2)):t}function fm(t,r,o){return t&&t.length&&r&&r.length?Ys(t,r,i,o):t}var hm=Tn(function(t,r){var o=t==null?0:t.length,u=Hs(t,r);return Nc(t,at(r,function(g){return Rn(g,o)?+g:g}).sort(tu)),u});function pm(t,r){var o=[];if(!(t&&t.length))return o;var u=-1,g=[],b=t.length;for(r=ve(r,3);++u<b;){var S=t[u];r(S,u,t)&&(o.push(S),g.push(u))}return Nc(t,g),o}function ma(t){return t==null?t:ap.call(t)}function gm(t,r,o){var u=t==null?0:t.length;return u?(o&&typeof o!="number"&&Rt(t,r,o)?(r=0,o=u):(r=r==null?0:Oe(r),o=o===i?u:Oe(o)),rn(t,r,o)):[]}function mm(t,r){return bo(t,r)}function ym(t,r,o){return Js(t,r,ve(o,2))}function bm(t,r){var o=t==null?0:t.length;if(o){var u=bo(t,r);if(u<o&&hn(t[u],r))return u}return-1}function xm(t,r){return bo(t,r,!0)}function vm(t,r,o){return Js(t,r,ve(o,2),!0)}function wm(t,r){var o=t==null?0:t.length;if(o){var u=bo(t,r,!0)-1;if(hn(t[u],r))return u}return-1}function _m(t){return t&&t.length?Gc(t):[]}function Cm(t,r){return t&&t.length?Gc(t,ve(r,2)):[]}function Sm(t){var r=t==null?0:t.length;return r?rn(t,1,r):[]}function Em(t,r,o){return t&&t.length?(r=o||r===i?1:Oe(r),rn(t,0,r<0?0:r)):[]}function km(t,r,o){var u=t==null?0:t.length;return u?(r=o||r===i?1:Oe(r),r=u-r,rn(t,r<0?0:r,u)):[]}function $m(t,r){return t&&t.length?xo(t,ve(r,3),!1,!0):[]}function Am(t,r){return t&&t.length?xo(t,ve(r,3)):[]}var Tm=je(function(t){return Gn(_t(t,1,dt,!0))}),Rm=je(function(t){var r=on(t);return dt(r)&&(r=i),Gn(_t(t,1,dt,!0),ve(r,2))}),Im=je(function(t){var r=on(t);return r=typeof r=="function"?r:i,Gn(_t(t,1,dt,!0),i,r)});function Mm(t){return t&&t.length?Gn(t):[]}function Fm(t,r){return t&&t.length?Gn(t,ve(r,2)):[]}function Om(t,r){return r=typeof r=="function"?r:i,t&&t.length?Gn(t,i,r):[]}function ya(t){if(!(t&&t.length))return[];var r=0;return t=Hn(t,function(o){if(dt(o))return r=yt(o.length,r),!0}),Os(r,function(o){return at(t,Is(o))})}function Fu(t,r){if(!(t&&t.length))return[];var o=ya(t);return r==null?o:at(o,function(u){return Zt(r,i,u)})}var zm=je(function(t,r){return dt(t)?mi(t,r):[]}),Lm=je(function(t){return ta(Hn(t,dt))}),jm=je(function(t){var r=on(t);return dt(r)&&(r=i),ta(Hn(t,dt),ve(r,2))}),Dm=je(function(t){var r=on(t);return r=typeof r=="function"?r:i,ta(Hn(t,dt),i,r)}),Pm=je(ya);function Wm(t,r){return Xc(t||[],r||[],gi)}function Bm(t,r){return Xc(t||[],r||[],xi)}var Hm=je(function(t){var r=t.length,o=r>1?t[r-1]:i;return o=typeof o=="function"?(t.pop(),o):i,Fu(t,o)});function Ou(t){var r=y(t);return r.__chain__=!0,r}function Zm(t,r){return r(t),t}function Ao(t,r){return r(t)}var Vm=Tn(function(t){var r=t.length,o=r?t[0]:0,u=this.__wrapped__,g=function(b){return Hs(b,t)};return r>1||this.__actions__.length||!(u instanceof Ze)||!Rn(o)?this.thru(g):(u=u.slice(o,+o+(r?1:0)),u.__actions__.push({func:Ao,args:[g],thisArg:i}),new tn(u,this.__chain__).thru(function(b){return r&&!b.length&&b.push(i),b}))});function Nm(){return Ou(this)}function Um(){return new tn(this.value(),this.__chain__)}function Gm(){this.__values__===i&&(this.__values__=qu(this.value()));var t=this.__index__>=this.__values__.length,r=t?i:this.__values__[this.__index__++];return{done:t,value:r}}function qm(){return this}function Km(t){for(var r,o=this;o instanceof ho;){var u=$u(o);u.__index__=0,u.__values__=i,r?g.__wrapped__=u:r=u;var g=u;o=o.__wrapped__}return g.__wrapped__=t,r}function Ym(){var t=this.__wrapped__;if(t instanceof Ze){var r=t;return this.__actions__.length&&(r=new Ze(this)),r=r.reverse(),r.__actions__.push({func:Ao,args:[ma],thisArg:i}),new tn(r,this.__chain__)}return this.thru(ma)}function Xm(){return Yc(this.__wrapped__,this.__actions__)}var Qm=vo(function(t,r,o){Xe.call(t,o)?++t[o]:$n(t,o,1)});function Jm(t,r,o){var u=Ie(t)?cc:Zp;return o&&Rt(t,r,o)&&(r=i),u(t,ve(r,3))}function e2(t,r){var o=Ie(t)?Hn:Fc;return o(t,ve(r,3))}var t2=au(Au),n2=au(Tu);function r2(t,r){return _t(To(t,r),1)}function i2(t,r){return _t(To(t,r),ne)}function o2(t,r,o){return o=o===i?1:Oe(o),_t(To(t,r),o)}function zu(t,r){var o=Ie(t)?Jt:Un;return o(t,ve(r,3))}function Lu(t,r){var o=Ie(t)?Sh:Mc;return o(t,ve(r,3))}var s2=vo(function(t,r,o){Xe.call(t,o)?t[o].push(r):$n(t,o,[r])});function a2(t,r,o,u){t=Ot(t)?t:Pr(t),o=o&&!u?Oe(o):0;var g=t.length;return o<0&&(o=yt(g+o,0)),Oo(t)?o<=g&&t.indexOf(r,o)>-1:!!g&&$r(t,r,o)>-1}var l2=je(function(t,r,o){var u=-1,g=typeof r=="function",b=Ot(t)?D(t.length):[];return Un(t,function(S){b[++u]=g?Zt(r,S,o):yi(S,r,o)}),b}),c2=vo(function(t,r,o){$n(t,o,r)});function To(t,r){var o=Ie(t)?at:Pc;return o(t,ve(r,3))}function u2(t,r,o,u){return t==null?[]:(Ie(r)||(r=r==null?[]:[r]),o=u?i:o,Ie(o)||(o=o==null?[]:[o]),Zc(t,r,o))}var d2=vo(function(t,r,o){t[o?0:1].push(r)},function(){return[[],[]]});function f2(t,r,o){var u=Ie(t)?Ts:hc,g=arguments.length<3;return u(t,ve(r,4),o,g,Un)}function h2(t,r,o){var u=Ie(t)?Eh:hc,g=arguments.length<3;return u(t,ve(r,4),o,g,Mc)}function p2(t,r){var o=Ie(t)?Hn:Fc;return o(t,Mo(ve(r,3)))}function g2(t){var r=Ie(t)?Ac:ag;return r(t)}function m2(t,r,o){(o?Rt(t,r,o):r===i)?r=1:r=Oe(r);var u=Ie(t)?Dp:lg;return u(t,r)}function y2(t){var r=Ie(t)?Pp:ug;return r(t)}function b2(t){if(t==null)return 0;if(Ot(t))return Oo(t)?Tr(t):t.length;var r=Et(t);return r==G||r==nt?t.size:qs(t).length}function x2(t,r,o){var u=Ie(t)?Rs:dg;return o&&Rt(t,r,o)&&(r=i),u(t,ve(r,3))}var v2=je(function(t,r){if(t==null)return[];var o=r.length;return o>1&&Rt(t,r[0],r[1])?r=[]:o>2&&Rt(r[0],r[1],r[2])&&(r=[r[0]]),Zc(t,_t(r,1),[])}),Ro=ep||function(){return wt.Date.now()};function w2(t,r){if(typeof r!="function")throw new en(d);return t=Oe(t),function(){if(--t<1)return r.apply(this,arguments)}}function ju(t,r,o){return r=o?i:r,r=t&&r==null?t.length:r,An(t,j,i,i,i,i,r)}function Du(t,r){var o;if(typeof r!="function")throw new en(d);return t=Oe(t),function(){return--t>0&&(o=r.apply(this,arguments)),t<=1&&(r=i),o}}var ba=je(function(t,r,o){var u=k;if(o.length){var g=Vn(o,jr(ba));u|=M}return An(t,u,r,o,g)}),Pu=je(function(t,r,o){var u=k|T;if(o.length){var g=Vn(o,jr(Pu));u|=M}return An(r,u,t,o,g)});function Wu(t,r,o){r=o?i:r;var u=An(t,I,i,i,i,i,i,r);return u.placeholder=Wu.placeholder,u}function Bu(t,r,o){r=o?i:r;var u=An(t,$,i,i,i,i,i,r);return u.placeholder=Bu.placeholder,u}function Hu(t,r,o){var u,g,b,S,A,O,N=0,U=!1,Y=!1,ce=!0;if(typeof t!="function")throw new en(d);r=sn(r)||0,ct(o)&&(U=!!o.leading,Y="maxWait"in o,b=Y?yt(sn(o.maxWait)||0,r):b,ce="trailing"in o?!!o.trailing:ce);function me(ft){var pn=u,Fn=g;return u=g=i,N=ft,S=t.apply(Fn,pn),S}function _e(ft){return N=ft,A=_i(Be,r),U?me(ft):S}function ze(ft){var pn=ft-O,Fn=ft-N,ad=r-pn;return Y?St(ad,b-Fn):ad}function Ce(ft){var pn=ft-O,Fn=ft-N;return O===i||pn>=r||pn<0||Y&&Fn>=b}function Be(){var ft=Ro();if(Ce(ft))return Ve(ft);A=_i(Be,ze(ft))}function Ve(ft){return A=i,ce&&u?me(ft):(u=g=i,S)}function Gt(){A!==i&&Qc(A),N=0,u=O=g=A=i}function It(){return A===i?S:Ve(Ro())}function qt(){var ft=Ro(),pn=Ce(ft);if(u=arguments,g=this,O=ft,pn){if(A===i)return _e(O);if(Y)return Qc(A),A=_i(Be,r),me(O)}return A===i&&(A=_i(Be,r)),S}return qt.cancel=Gt,qt.flush=It,qt}var _2=je(function(t,r){return Ic(t,1,r)}),C2=je(function(t,r,o){return Ic(t,sn(r)||0,o)});function S2(t){return An(t,se)}function Io(t,r){if(typeof t!="function"||r!=null&&typeof r!="function")throw new en(d);var o=function(){var u=arguments,g=r?r.apply(this,u):u[0],b=o.cache;if(b.has(g))return b.get(g);var S=t.apply(this,u);return o.cache=b.set(g,S)||b,S};return o.cache=new(Io.Cache||kn),o}Io.Cache=kn;function Mo(t){if(typeof t!="function")throw new en(d);return function(){var r=arguments;switch(r.length){case 0:return!t.call(this);case 1:return!t.call(this,r[0]);case 2:return!t.call(this,r[0],r[1]);case 3:return!t.call(this,r[0],r[1],r[2])}return!t.apply(this,r)}}function E2(t){return Du(2,t)}var k2=fg(function(t,r){r=r.length==1&&Ie(r[0])?at(r[0],Vt(ve())):at(_t(r,1),Vt(ve()));var o=r.length;return je(function(u){for(var g=-1,b=St(u.length,o);++g<b;)u[g]=r[g].call(this,u[g]);return Zt(t,this,u)})}),xa=je(function(t,r){var o=Vn(r,jr(xa));return An(t,M,i,r,o)}),Zu=je(function(t,r){var o=Vn(r,jr(Zu));return An(t,z,i,r,o)}),$2=Tn(function(t,r){return An(t,H,i,i,i,r)});function A2(t,r){if(typeof t!="function")throw new en(d);return r=r===i?r:Oe(r),je(t,r)}function T2(t,r){if(typeof t!="function")throw new en(d);return r=r==null?0:yt(Oe(r),0),je(function(o){var u=o[r],g=Kn(o,0,r);return u&&Zn(g,u),Zt(t,this,g)})}function R2(t,r,o){var u=!0,g=!0;if(typeof t!="function")throw new en(d);return ct(o)&&(u="leading"in o?!!o.leading:u,g="trailing"in o?!!o.trailing:g),Hu(t,r,{leading:u,maxWait:r,trailing:g})}function I2(t){return ju(t,1)}function M2(t,r){return xa(ra(r),t)}function F2(){if(!arguments.length)return[];var t=arguments[0];return Ie(t)?t:[t]}function O2(t){return nn(t,v)}function z2(t,r){return r=typeof r=="function"?r:i,nn(t,v,r)}function L2(t){return nn(t,w|v)}function j2(t,r){return r=typeof r=="function"?r:i,nn(t,w|v,r)}function D2(t,r){return r==null||Rc(t,r,xt(r))}function hn(t,r){return t===r||t!==t&&r!==r}var P2=So(Ns),W2=So(function(t,r){return t>=r}),pr=Lc(function(){return arguments}())?Lc:function(t){return ut(t)&&Xe.call(t,"callee")&&!_c.call(t,"callee")},Ie=D.isArray,B2=rc?Vt(rc):Kp;function Ot(t){return t!=null&&Fo(t.length)&&!In(t)}function dt(t){return ut(t)&&Ot(t)}function H2(t){return t===!0||t===!1||ut(t)&&Tt(t)==ye}var Yn=np||Ra,Z2=ic?Vt(ic):Yp;function V2(t){return ut(t)&&t.nodeType===1&&!Ci(t)}function N2(t){if(t==null)return!0;if(Ot(t)&&(Ie(t)||typeof t=="string"||typeof t.splice=="function"||Yn(t)||Dr(t)||pr(t)))return!t.length;var r=Et(t);if(r==G||r==nt)return!t.size;if(wi(t))return!qs(t).length;for(var o in t)if(Xe.call(t,o))return!1;return!0}function U2(t,r){return bi(t,r)}function G2(t,r,o){o=typeof o=="function"?o:i;var u=o?o(t,r):i;return u===i?bi(t,r,i,o):!!u}function va(t){if(!ut(t))return!1;var r=Tt(t);return r==ke||r==Fe||typeof t.message=="string"&&typeof t.name=="string"&&!Ci(t)}function q2(t){return typeof t=="number"&&Sc(t)}function In(t){if(!ct(t))return!1;var r=Tt(t);return r==ee||r==ge||r==st||r==Ye}function Vu(t){return typeof t=="number"&&t==Oe(t)}function Fo(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=ie}function ct(t){var r=typeof t;return t!=null&&(r=="object"||r=="function")}function ut(t){return t!=null&&typeof t=="object"}var Nu=oc?Vt(oc):Qp;function K2(t,r){return t===r||Gs(t,r,ua(r))}function Y2(t,r,o){return o=typeof o=="function"?o:i,Gs(t,r,ua(r),o)}function X2(t){return Uu(t)&&t!=+t}function Q2(t){if(zg(t))throw new Re(l);return jc(t)}function J2(t){return t===null}function e8(t){return t==null}function Uu(t){return typeof t=="number"||ut(t)&&Tt(t)==oe}function Ci(t){if(!ut(t)||Tt(t)!=Ae)return!1;var r=oo(t);if(r===null)return!0;var o=Xe.call(r,"constructor")&&r.constructor;return typeof o=="function"&&o instanceof o&&to.call(o)==Yh}var wa=sc?Vt(sc):Jp;function t8(t){return Vu(t)&&t>=-9007199254740991&&t<=ie}var Gu=ac?Vt(ac):eg;function Oo(t){return typeof t=="string"||!Ie(t)&&ut(t)&&Tt(t)==it}function Ut(t){return typeof t=="symbol"||ut(t)&&Tt(t)==ae}var Dr=lc?Vt(lc):tg;function n8(t){return t===i}function r8(t){return ut(t)&&Et(t)==We}function i8(t){return ut(t)&&Tt(t)==Ge}var o8=So(Ks),s8=So(function(t,r){return t<=r});function qu(t){if(!t)return[];if(Ot(t))return Oo(t)?dn(t):Ft(t);if(ui&&t[ui])return Dh(t[ui]());var r=Et(t),o=r==G?Ls:r==nt?Qi:Pr;return o(t)}function Mn(t){if(!t)return t===0?t:0;if(t=sn(t),t===ne||t===-1/0){var r=t<0?-1:1;return r*we}return t===t?t:0}function Oe(t){var r=Mn(t),o=r%1;return r===r?o?r-o:r:0}function Ku(t){return t?ur(Oe(t),0,Se):0}function sn(t){if(typeof t=="number")return t;if(Ut(t))return pe;if(ct(t)){var r=typeof t.valueOf=="function"?t.valueOf():t;t=ct(r)?r+"":r}if(typeof t!="string")return t===0?t:+t;t=pc(t);var o=B1.test(t);return o||Z1.test(t)?wh(t.slice(2),o?2:8):W1.test(t)?pe:+t}function Yu(t){return vn(t,zt(t))}function a8(t){return t?ur(Oe(t),-9007199254740991,ie):t===0?t:0}function Ke(t){return t==null?"":Nt(t)}var l8=zr(function(t,r){if(wi(r)||Ot(r)){vn(r,xt(r),t);return}for(var o in r)Xe.call(r,o)&&gi(t,o,r[o])}),Xu=zr(function(t,r){vn(r,zt(r),t)}),zo=zr(function(t,r,o,u){vn(r,zt(r),t,u)}),c8=zr(function(t,r,o,u){vn(r,xt(r),t,u)}),u8=Tn(Hs);function d8(t,r){var o=Or(t);return r==null?o:Tc(o,r)}var f8=je(function(t,r){t=tt(t);var o=-1,u=r.length,g=u>2?r[2]:i;for(g&&Rt(r[0],r[1],g)&&(u=1);++o<u;)for(var b=r[o],S=zt(b),A=-1,O=S.length;++A<O;){var N=S[A],U=t[N];(U===i||hn(U,Ir[N])&&!Xe.call(t,N))&&(t[N]=b[N])}return t}),h8=je(function(t){return t.push(i,pu),Zt(Qu,i,t)});function p8(t,r){return uc(t,ve(r,3),xn)}function g8(t,r){return uc(t,ve(r,3),Vs)}function m8(t,r){return t==null?t:Zs(t,ve(r,3),zt)}function y8(t,r){return t==null?t:Oc(t,ve(r,3),zt)}function b8(t,r){return t&&xn(t,ve(r,3))}function x8(t,r){return t&&Vs(t,ve(r,3))}function v8(t){return t==null?[]:mo(t,xt(t))}function w8(t){return t==null?[]:mo(t,zt(t))}function _a(t,r,o){var u=t==null?i:dr(t,r);return u===i?o:u}function _8(t,r){return t!=null&&yu(t,r,Np)}function Ca(t,r){return t!=null&&yu(t,r,Up)}var C8=cu(function(t,r,o){r!=null&&typeof r.toString!="function"&&(r=no.call(r)),t[r]=o},Ea(Lt)),S8=cu(function(t,r,o){r!=null&&typeof r.toString!="function"&&(r=no.call(r)),Xe.call(t,r)?t[r].push(o):t[r]=[o]},ve),E8=je(yi);function xt(t){return Ot(t)?$c(t):qs(t)}function zt(t){return Ot(t)?$c(t,!0):ng(t)}function k8(t,r){var o={};return r=ve(r,3),xn(t,function(u,g,b){$n(o,r(u,g,b),u)}),o}function $8(t,r){var o={};return r=ve(r,3),xn(t,function(u,g,b){$n(o,g,r(u,g,b))}),o}var A8=zr(function(t,r,o){yo(t,r,o)}),Qu=zr(function(t,r,o,u){yo(t,r,o,u)}),T8=Tn(function(t,r){var o={};if(t==null)return o;var u=!1;r=at(r,function(b){return b=qn(b,t),u||(u=b.length>1),b}),vn(t,la(t),o),u&&(o=nn(o,w|_|v,Cg));for(var g=r.length;g--;)ea(o,r[g]);return o});function R8(t,r){return Ju(t,Mo(ve(r)))}var I8=Tn(function(t,r){return t==null?{}:ig(t,r)});function Ju(t,r){if(t==null)return{};var o=at(la(t),function(u){return[u]});return r=ve(r),Vc(t,o,function(u,g){return r(u,g[0])})}function M8(t,r,o){r=qn(r,t);var u=-1,g=r.length;for(g||(g=1,t=i);++u<g;){var b=t==null?i:t[wn(r[u])];b===i&&(u=g,b=o),t=In(b)?b.call(t):b}return t}function F8(t,r,o){return t==null?t:xi(t,r,o)}function O8(t,r,o,u){return u=typeof u=="function"?u:i,t==null?t:xi(t,r,o,u)}var ed=fu(xt),td=fu(zt);function z8(t,r,o){var u=Ie(t),g=u||Yn(t)||Dr(t);if(r=ve(r,4),o==null){var b=t&&t.constructor;g?o=u?new b:[]:ct(t)?o=In(b)?Or(oo(t)):{}:o={}}return(g?Jt:xn)(t,function(S,A,O){return r(o,S,A,O)}),o}function L8(t,r){return t==null?!0:ea(t,r)}function j8(t,r,o){return t==null?t:Kc(t,r,ra(o))}function D8(t,r,o,u){return u=typeof u=="function"?u:i,t==null?t:Kc(t,r,ra(o),u)}function Pr(t){return t==null?[]:zs(t,xt(t))}function P8(t){return t==null?[]:zs(t,zt(t))}function W8(t,r,o){return o===i&&(o=r,r=i),o!==i&&(o=sn(o),o=o===o?o:0),r!==i&&(r=sn(r),r=r===r?r:0),ur(sn(t),r,o)}function B8(t,r,o){return r=Mn(r),o===i?(o=r,r=0):o=Mn(o),t=sn(t),Gp(t,r,o)}function H8(t,r,o){if(o&&typeof o!="boolean"&&Rt(t,r,o)&&(r=o=i),o===i&&(typeof r=="boolean"?(o=r,r=i):typeof t=="boolean"&&(o=t,t=i)),t===i&&r===i?(t=0,r=1):(t=Mn(t),r===i?(r=t,t=0):r=Mn(r)),t>r){var u=t;t=r,r=u}if(o||t%1||r%1){var g=Ec();return St(t+g*(r-t+vh("1e-"+((g+"").length-1))),r)}return Xs(t,r)}var Z8=Lr(function(t,r,o){return r=r.toLowerCase(),t+(o?nd(r):r)});function nd(t){return Sa(Ke(t).toLowerCase())}function rd(t){return t=Ke(t),t&&t.replace(N1,Fh).replace(uh,"")}function V8(t,r,o){t=Ke(t),r=Nt(r);var u=t.length;o=o===i?u:ur(Oe(o),0,u);var g=o;return o-=r.length,o>=0&&t.slice(o,g)==r}function N8(t){return t=Ke(t),t&&vs.test(t)?t.replace(At,Oh):t}function U8(t){return t=Ke(t),t&&xe.test(t)?t.replace(or,"\\$&"):t}var G8=Lr(function(t,r,o){return t+(o?"-":"")+r.toLowerCase()}),q8=Lr(function(t,r,o){return t+(o?" ":"")+r.toLowerCase()}),K8=su("toLowerCase");function Y8(t,r,o){t=Ke(t),r=Oe(r);var u=r?Tr(t):0;if(!r||u>=r)return t;var g=(r-u)/2;return Co(co(g),o)+t+Co(lo(g),o)}function X8(t,r,o){t=Ke(t),r=Oe(r);var u=r?Tr(t):0;return r&&u<r?t+Co(r-u,o):t}function Q8(t,r,o){t=Ke(t),r=Oe(r);var u=r?Tr(t):0;return r&&u<r?Co(r-u,o)+t:t}function J8(t,r,o){return o||r==null?r=0:r&&(r=+r),sp(Ke(t).replace(ht,""),r||0)}function ey(t,r,o){return(o?Rt(t,r,o):r===i)?r=1:r=Oe(r),Qs(Ke(t),r)}function ty(){var t=arguments,r=Ke(t[0]);return t.length<3?r:r.replace(t[1],t[2])}var ny=Lr(function(t,r,o){return t+(o?"_":"")+r.toLowerCase()});function ry(t,r,o){return o&&typeof o!="number"&&Rt(t,r,o)&&(r=o=i),o=o===i?Se:o>>>0,o?(t=Ke(t),t&&(typeof r=="string"||r!=null&&!wa(r))&&(r=Nt(r),!r&&Ar(t))?Kn(dn(t),0,o):t.split(r,o)):[]}var iy=Lr(function(t,r,o){return t+(o?" ":"")+Sa(r)});function oy(t,r,o){return t=Ke(t),o=o==null?0:ur(Oe(o),0,t.length),r=Nt(r),t.slice(o,o+r.length)==r}function sy(t,r,o){var u=y.templateSettings;o&&Rt(t,r,o)&&(r=i),t=Ke(t),r=zo({},r,u,hu);var g=zo({},r.imports,u.imports,hu),b=xt(g),S=zs(g,b),A,O,N=0,U=r.interpolate||Gi,Y="__p += '",ce=js((r.escape||Gi).source+"|"+U.source+"|"+(U===Bn?P1:Gi).source+"|"+(r.evaluate||Gi).source+"|$","g"),me="//# sourceURL="+(Xe.call(r,"sourceURL")?(r.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++gh+"]")+`
|
|
11
|
+
`;t.replace(ce,function(Ce,Be,Ve,Gt,It,qt){return Ve||(Ve=Gt),Y+=t.slice(N,qt).replace(U1,zh),Be&&(A=!0,Y+=`' +
|
|
12
|
+
__e(`+Be+`) +
|
|
13
13
|
'`),It&&(O=!0,Y+=`';
|
|
14
14
|
`+It+`;
|
|
15
15
|
__p += '`),Ve&&(Y+=`' +
|
|
@@ -24,7 +24,7 @@ __p += '`),Ve&&(Y+=`' +
|
|
|
24
24
|
function print() { __p += __j.call(arguments, '') }
|
|
25
25
|
`:`;
|
|
26
26
|
`)+Y+`return __p
|
|
27
|
-
}`;var ze=od(function(){return qe(b,me+"return "+Y).apply(i,S)});if(ze.source=Y,va(ze))throw ze;return ze}function ay(t){return Ke(t).toLowerCase()}function ly(t){return Ke(t).toUpperCase()}function cy(t,r,o){if(t=Ke(t),t&&(o||r===i))return pc(t);if(!t||!(r=Nt(r)))return t;var u=dn(t),g=dn(r),b=gc(u,g),S=mc(u,g)+1;return Kn(u,b,S).join("")}function uy(t,r,o){if(t=Ke(t),t&&(o||r===i))return t.slice(0,bc(t)+1);if(!t||!(r=Nt(r)))return t;var u=dn(t),g=mc(u,dn(r))+1;return Kn(u,0,g).join("")}function dy(t,r,o){if(t=Ke(t),t&&(o||r===i))return t.replace(gt,"");if(!t||!(r=Nt(r)))return t;var u=dn(t),g=gc(u,dn(r));return Kn(u,g).join("")}function fy(t,r){var o=te,u=re;if(ct(r)){var g="separator"in r?r.separator:g;o="length"in r?Oe(r.length):o,u="omission"in r?Nt(r.omission):u}t=Ke(t);var b=t.length;if(Ar(t)){var S=dn(t);b=S.length}if(o>=b)return t;var A=o-Tr(u);if(A<1)return u;var O=S?Kn(S,0,A).join(""):t.slice(0,A);if(g===i)return O+u;if(S&&(A+=O.length-A),wa(g)){if(t.slice(A).search(g)){var N,U=O;for(g.global||(g=js(g.source,Ke(Ll.exec(g))+"g")),g.lastIndex=0;N=g.exec(U);)var Y=N.index;O=O.slice(0,Y===i?A:Y)}}else if(t.indexOf(Nt(g),A)!=A){var ce=O.lastIndexOf(g);ce>-1&&(O=O.slice(0,ce))}return O+u}function hy(t){return t=Ke(t),t&&yn.test(t)?t.replace(oi,Hh):t}var py=Lr(function(t,r,o){return t+(o?" ":"")+r.toUpperCase()}),Sa=su("toUpperCase");function id(t,r,o){return t=Ke(t),r=o?i:r,r===i?jh(t)?Nh(t):Ah(t):t.match(r)||[]}var od=Le(function(t,r){try{return Zt(t,i,r)}catch(o){return va(o)?o:new Re(o)}}),gy=Tn(function(t,r){return Jt(r,function(o){o=wn(o),$n(t,o,ba(t[o],t))}),t});function my(t){var r=t==null?0:t.length,o=ve();return t=r?at(t,function(u){if(typeof u[1]!="function")throw new en(d);return[o(u[0]),u[1]]}):[],Le(function(u){for(var g=-1;++g<r;){var b=t[g];if(Zt(b[0],this,u))return Zt(b[1],this,u)}})}function yy(t){return Hp(nn(t,w))}function Ea(t){return function(){return t}}function by(t,r){return t==null||t!==t?r:t}var xy=lu(),vy=lu(!0);function Lt(t){return t}function ka(t){return Dc(typeof t=="function"?t:nn(t,w))}function wy(t){return Wc(nn(t,w))}function _y(t,r){return Bc(t,nn(r,w))}var Cy=Le(function(t,r){return function(o){return yi(o,t,r)}}),Sy=Le(function(t,r){return function(o){return yi(t,o,r)}});function $a(t,r,o){var u=xt(r),g=mo(r,u);o==null&&!(ct(r)&&(g.length||!u.length))&&(o=r,r=t,t=this,g=mo(r,xt(r)));var b=!(ct(o)&&"chain"in o)||!!o.chain,S=In(t);return Jt(g,function(A){var O=r[A];t[A]=O,S&&(t.prototype[A]=function(){var N=this.__chain__;if(b||N){var U=t(this.__wrapped__),Y=U.__actions__=Ft(this.__actions__);return Y.push({func:O,args:arguments,thisArg:t}),U.__chain__=N,U}return O.apply(t,Zn([this.value()],arguments))})}),t}function Ey(){return wt._===this&&(wt._=Xh),this}function Aa(){}function ky(t){return t=Oe(t),Le(function(r){return Hc(r,t)})}var $y=oa(at),Ay=oa(cc),Ty=oa(Rs);function sd(t){return fa(t)?Is(wn(t)):og(t)}function Ry(t){return function(r){return t==null?i:dr(t,r)}}var Iy=uu(),My=uu(!0);function Ta(){return[]}function Ra(){return!1}function Fy(){return{}}function Oy(){return""}function zy(){return!0}function Ly(t,r){if(t=Oe(t),t<1||t>ie)return[];var o=Se,u=St(t,Se);r=ve(r),t-=Se;for(var g=Os(u,r);++o<t;)r(o);return g}function jy(t){return Ie(t)?at(t,wn):Ut(t)?[t]:Ft(ku(Ke(t)))}function Dy(t){var r=++Kh;return Ke(t)+r}var Py=_o(function(t,r){return t+r},0),Wy=sa("ceil"),By=_o(function(t,r){return t/r},1),Hy=sa("floor");function Zy(t){return t&&t.length?go(t,Lt,Ns):i}function Vy(t,r){return t&&t.length?go(t,ve(r,2),Ns):i}function Ny(t){return fc(t,Lt)}function Uy(t,r){return fc(t,ve(r,2))}function Gy(t){return t&&t.length?go(t,Lt,Ks):i}function qy(t,r){return t&&t.length?go(t,ve(r,2),Ks):i}var Ky=_o(function(t,r){return t*r},1),Yy=sa("round"),Xy=_o(function(t,r){return t-r},0);function Qy(t){return t&&t.length?Fs(t,Lt):0}function Jy(t,r){return t&&t.length?Fs(t,ve(r,2)):0}return y.after=w2,y.ary=ju,y.assign=l8,y.assignIn=Xu,y.assignInWith=zo,y.assignWith=c8,y.at=u8,y.before=Du,y.bind=ba,y.bindAll=gy,y.bindKey=Pu,y.castArray=F2,y.chain=Ou,y.chunk=Hg,y.compact=Zg,y.concat=Vg,y.cond=my,y.conforms=yy,y.constant=Ea,y.countBy=Qm,y.create=d8,y.curry=Wu,y.curryRight=Bu,y.debounce=Hu,y.defaults=f8,y.defaultsDeep=h8,y.defer=_2,y.delay=C2,y.difference=Ng,y.differenceBy=Ug,y.differenceWith=Gg,y.drop=qg,y.dropRight=Kg,y.dropRightWhile=Yg,y.dropWhile=Xg,y.fill=Qg,y.filter=e2,y.flatMap=r2,y.flatMapDeep=i2,y.flatMapDepth=o2,y.flatten=Ru,y.flattenDeep=Jg,y.flattenDepth=em,y.flip=S2,y.flow=xy,y.flowRight=vy,y.fromPairs=tm,y.functions=v8,y.functionsIn=w8,y.groupBy=s2,y.initial=rm,y.intersection=im,y.intersectionBy=om,y.intersectionWith=sm,y.invert=C8,y.invertBy=S8,y.invokeMap=l2,y.iteratee=ka,y.keyBy=c2,y.keys=xt,y.keysIn=zt,y.map=To,y.mapKeys=k8,y.mapValues=$8,y.matches=wy,y.matchesProperty=_y,y.memoize=Io,y.merge=A8,y.mergeWith=Qu,y.method=Cy,y.methodOf=Sy,y.mixin=$a,y.negate=Mo,y.nthArg=ky,y.omit=T8,y.omitBy=R8,y.once=E2,y.orderBy=u2,y.over=$y,y.overArgs=k2,y.overEvery=Ay,y.overSome=Ty,y.partial=xa,y.partialRight=Zu,y.partition=d2,y.pick=I8,y.pickBy=Ju,y.property=sd,y.propertyOf=Ry,y.pull=um,y.pullAll=Mu,y.pullAllBy=dm,y.pullAllWith=fm,y.pullAt=hm,y.range=Iy,y.rangeRight=My,y.rearg=$2,y.reject=p2,y.remove=pm,y.rest=A2,y.reverse=ma,y.sampleSize=m2,y.set=F8,y.setWith=O8,y.shuffle=y2,y.slice=gm,y.sortBy=v2,y.sortedUniq=_m,y.sortedUniqBy=Cm,y.split=ry,y.spread=T2,y.tail=Sm,y.take=Em,y.takeRight=km,y.takeRightWhile=$m,y.takeWhile=Am,y.tap=Zm,y.throttle=R2,y.thru=Ao,y.toArray=qu,y.toPairs=ed,y.toPairsIn=td,y.toPath=jy,y.toPlainObject=Yu,y.transform=z8,y.unary=I2,y.union=Tm,y.unionBy=Rm,y.unionWith=Im,y.uniq=Mm,y.uniqBy=Fm,y.uniqWith=Om,y.unset=L8,y.unzip=ya,y.unzipWith=Fu,y.update=j8,y.updateWith=D8,y.values=Pr,y.valuesIn=P8,y.without=zm,y.words=id,y.wrap=M2,y.xor=Lm,y.xorBy=jm,y.xorWith=Dm,y.zip=Pm,y.zipObject=Wm,y.zipObjectDeep=Bm,y.zipWith=Hm,y.entries=ed,y.entriesIn=td,y.extend=Xu,y.extendWith=zo,$a(y,y),y.add=Py,y.attempt=od,y.camelCase=Z8,y.capitalize=nd,y.ceil=Wy,y.clamp=W8,y.clone=O2,y.cloneDeep=L2,y.cloneDeepWith=j2,y.cloneWith=z2,y.conformsTo=D2,y.deburr=rd,y.defaultTo=by,y.divide=By,y.endsWith=V8,y.eq=hn,y.escape=N8,y.escapeRegExp=U8,y.every=Jm,y.find=t2,y.findIndex=Au,y.findKey=p8,y.findLast=n2,y.findLastIndex=Tu,y.findLastKey=g8,y.floor=Hy,y.forEach=zu,y.forEachRight=Lu,y.forIn=m8,y.forInRight=y8,y.forOwn=b8,y.forOwnRight=x8,y.get=_a,y.gt=P2,y.gte=W2,y.has=_8,y.hasIn=Ca,y.head=Iu,y.identity=Lt,y.includes=a2,y.indexOf=nm,y.inRange=B8,y.invoke=E8,y.isArguments=pr,y.isArray=Ie,y.isArrayBuffer=B2,y.isArrayLike=Ot,y.isArrayLikeObject=dt,y.isBoolean=H2,y.isBuffer=Yn,y.isDate=Z2,y.isElement=V2,y.isEmpty=N2,y.isEqual=U2,y.isEqualWith=G2,y.isError=va,y.isFinite=q2,y.isFunction=In,y.isInteger=Vu,y.isLength=Fo,y.isMap=Nu,y.isMatch=K2,y.isMatchWith=Y2,y.isNaN=X2,y.isNative=Q2,y.isNil=e8,y.isNull=J2,y.isNumber=Uu,y.isObject=ct,y.isObjectLike=ut,y.isPlainObject=Ci,y.isRegExp=wa,y.isSafeInteger=t8,y.isSet=Gu,y.isString=Oo,y.isSymbol=Ut,y.isTypedArray=Dr,y.isUndefined=n8,y.isWeakMap=r8,y.isWeakSet=i8,y.join=am,y.kebabCase=G8,y.last=on,y.lastIndexOf=lm,y.lowerCase=q8,y.lowerFirst=K8,y.lt=o8,y.lte=s8,y.max=Zy,y.maxBy=Vy,y.mean=Ny,y.meanBy=Uy,y.min=Gy,y.minBy=qy,y.stubArray=Ta,y.stubFalse=Ra,y.stubObject=Fy,y.stubString=Oy,y.stubTrue=zy,y.multiply=Ky,y.nth=cm,y.noConflict=Ey,y.noop=Aa,y.now=Ro,y.pad=Y8,y.padEnd=X8,y.padStart=Q8,y.parseInt=J8,y.random=H8,y.reduce=f2,y.reduceRight=h2,y.repeat=ey,y.replace=ty,y.result=M8,y.round=Yy,y.runInContext=F,y.sample=g2,y.size=b2,y.snakeCase=ny,y.some=x2,y.sortedIndex=mm,y.sortedIndexBy=ym,y.sortedIndexOf=bm,y.sortedLastIndex=xm,y.sortedLastIndexBy=vm,y.sortedLastIndexOf=wm,y.startCase=iy,y.startsWith=oy,y.subtract=Xy,y.sum=Qy,y.sumBy=Jy,y.template=sy,y.times=Ly,y.toFinite=Mn,y.toInteger=Oe,y.toLength=Ku,y.toLower=ay,y.toNumber=sn,y.toSafeInteger=a8,y.toString=Ke,y.toUpper=ly,y.trim=cy,y.trimEnd=uy,y.trimStart=dy,y.truncate=fy,y.unescape=hy,y.uniqueId=Dy,y.upperCase=py,y.upperFirst=Sa,y.each=zu,y.eachRight=Lu,y.first=Iu,$a(y,function(){var t={};return xn(y,function(r,o){Xe.call(y.prototype,o)||(t[o]=r)}),t}(),{chain:!1}),y.VERSION=s,Jt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(t){y[t].placeholder=y}),Jt(["drop","take"],function(t,r){He.prototype[t]=function(o){o=o===i?1:yt(Oe(o),0);var u=this.__filtered__&&!r?new He(this):this.clone();return u.__filtered__?u.__takeCount__=St(o,u.__takeCount__):u.__views__.push({size:St(o,Se),type:t+(u.__dir__<0?"Right":"")}),u},He.prototype[t+"Right"]=function(o){return this.reverse()[t](o).reverse()}}),Jt(["filter","map","takeWhile"],function(t,r){var o=r+1,u=o==P||o==K;He.prototype[t]=function(g){var b=this.clone();return b.__iteratees__.push({iteratee:ve(g,3),type:o}),b.__filtered__=b.__filtered__||u,b}}),Jt(["head","last"],function(t,r){var o="take"+(r?"Right":"");He.prototype[t]=function(){return this[o](1).value()[0]}}),Jt(["initial","tail"],function(t,r){var o="drop"+(r?"":"Right");He.prototype[t]=function(){return this.__filtered__?new He(this):this[o](1)}}),He.prototype.compact=function(){return this.filter(Lt)},He.prototype.find=function(t){return this.filter(t).head()},He.prototype.findLast=function(t){return this.reverse().find(t)},He.prototype.invokeMap=Le(function(t,r){return typeof t=="function"?new He(this):this.map(function(o){return yi(o,t,r)})}),He.prototype.reject=function(t){return this.filter(Mo(ve(t)))},He.prototype.slice=function(t,r){t=Oe(t);var o=this;return o.__filtered__&&(t>0||r<0)?new He(o):(t<0?o=o.takeRight(-t):t&&(o=o.drop(t)),r!==i&&(r=Oe(r),o=r<0?o.dropRight(-r):o.take(r-t)),o)},He.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},He.prototype.toArray=function(){return this.take(Se)},xn(He.prototype,function(t,r){var o=/^(?:filter|find|map|reject)|While$/.test(r),u=/^(?:head|last)$/.test(r),g=y[u?"take"+(r=="last"?"Right":""):r],b=u||/^find/.test(r);g&&(y.prototype[r]=function(){var S=this.__wrapped__,A=u?[1]:arguments,O=S instanceof He,N=A[0],U=O||Ie(S),Y=function(We){var Ve=g.apply(y,Zn([We],A));return u&&ce?Ve[0]:Ve};U&&o&&typeof N=="function"&&N.length!=1&&(O=U=!1);var ce=this.__chain__,me=!!this.__actions__.length,_e=b&&!ce,ze=O&&!me;if(!b&&U){S=ze?S:new He(this);var Ce=t.apply(S,A);return Ce.__actions__.push({func:Ao,args:[Y],thisArg:i}),new tn(Ce,ce)}return _e&&ze?t.apply(this,A):(Ce=this.thru(Y),_e?u?Ce.value()[0]:Ce.value():Ce)})}),Jt(["pop","push","shift","sort","splice","unshift"],function(t){var r=Ji[t],o=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",u=/^(?:pop|shift)$/.test(t);y.prototype[t]=function(){var g=arguments;if(u&&!this.__chain__){var b=this.value();return r.apply(Ie(b)?b:[],g)}return this[o](function(S){return r.apply(Ie(S)?S:[],g)})}}),xn(He.prototype,function(t,r){var o=y[r];if(o){var u=o.name+"";Xe.call(Fr,u)||(Fr[u]=[]),Fr[u].push({name:r,func:o})}}),Fr[wo(i,T).name]=[{name:"wrapper",func:i}],He.prototype.clone=hp,He.prototype.reverse=pp,He.prototype.value=gp,y.prototype.at=Vm,y.prototype.chain=Nm,y.prototype.commit=Um,y.prototype.next=Gm,y.prototype.plant=Km,y.prototype.reverse=Ym,y.prototype.toJSON=y.prototype.valueOf=y.prototype.value=Xm,y.prototype.first=y.prototype.head,ui&&(y.prototype[ui]=qm),y},Rr=Uh();sr?((sr.exports=Rr)._=Rr,ks._=Rr):wt._=Rr}).call(nb)}(Mi,Mi.exports)),Mi.exports}var Ne=rb();const ul=e=>({none:0,hairline:e*.5,thin:e,thick:e*2,heavy:e*4}),dl=e=>({none:0,xs:e*.5,sm:e,md:e*2,lg:e*3,xl:e*4,full:9999}),ib=e=>["none","hairline","thin","thick","heavy"].includes(e),Pf=e=>["none","xs","sm","md","lg","xl","full"].includes(e),as={transparent:"#FFFFFF00",white:"#FFFFFF",black:"#000000",primary:"#6949FF",secondary:"#FFC107",success:"#12D18E",danger:"#F75555",warning:"#FACC15",info:"#6949FF",grey100:"#F5F5F5",grey200:"#EEEEEE",grey300:"#E0E0E0",grey400:"#BDBDBD",grey500:"#9E9E9E",grey600:"#757575",grey700:"#616161",grey800:"#424242",grey900:"#212121",primary100:"#F0EDFF",primary200:"#C3B6FF",primary300:"#A592FF",primary400:"#876DFF",primary500:"#6949FF",secondary100:"#FFF9E6",secondary200:"#FFE69C",secondary300:"#FFDA6A",secondary400:"#FFCD39",secondary500:"#FFC107",orange100:"#FFF3E0",orange200:"#FFE0B2",orange300:"#FFCC80",orange400:"#FFB74D",orange500:"#FF9800",orange600:"#FB8C00",orange700:"#F57C00",orange800:"#EF6C00",orange900:"#E65100",cyan100:"#E0F7FA",cyan200:"#B2EBF2",cyan300:"#80DEEA",cyan400:"#4DD0E1",cyan500:"#26C6DA",cyan600:"#00BCD4",cyan700:"#00ACC1",cyan800:"#0097A7",cyan900:"#006064",purple100:"#F3E5F5",purple200:"#E1BEE7",purple300:"#CE93D8",purple400:"#BA68C8",purple500:"#AB47BC",purple600:"#9C27B0",purple700:"#8E24AA",purple800:"#7B1FA2",purple900:"#6A1B9A",teal100:"#E0F2F1",teal200:"#B2DFDB",teal300:"#80CBC4",teal400:"#4DB6AC",teal500:"#26A69A",teal600:"#009688",teal700:"#00897B",teal800:"#00796B",teal900:"#004D40",lime100:"#F9FBE7",lime200:"#F0F4C3",lime300:"#E6EE9C",lime400:"#DCE775",lime500:"#CDDC39",lime600:"#C0CA33",lime700:"#AFB42B",lime800:"#9E9D24",lime900:"#827717",pink100:"#FCE4EC",pink200:"#F8BBD0",pink300:"#F48FB1",pink400:"#F06292",pink500:"#EC4899",pink600:"#E91E63",pink700:"#D81B60",pink800:"#C2185B",pink900:"#880E4F",backgroundPurple:"#F9F8FF",backgroundYellow:"#FFFCED",backgroundGreen:"#F1FDF5",backgroundBlue:"#F6F9FF",backgroundTeal:"#F2FFF8",backgroundRed:"#FFF7F8",backgroundOrange:"#FFF8ED"},Wf=e=>e in as,Bf={primary:["#543ACC","#6949FF"],secondary:["#E0A800","#FFC107"],success:["#0FB57A","#12D18E"],danger:["#E64545","#F75555"],warning:["#E1B70D","#FACC15"],info:["#543ACC","#6949FF"]},ob=e=>["primary","secondary","success","danger","warning","info"].includes(e),sb=1,ab=8,lb=8,cb="Inter",ub="Sora",db=10,fb=4,Pn={borderWidth:sb,space:ab,size:lb,font:{neutral:cb,heading:ub},fontSize:db,radius:fb},Hf=e=>({none:"none",sm:`0 1px 2px 0 ${e.grey400}40`,md:`0 4px 6px -1px ${e.grey500}40, 0 2px 4px -1px ${e.grey400}40`,lg:`0 10px 15px -3px ${e.grey600}40, 0 4px 6px -2px ${e.grey500}40`}),hb=e=>["none","sm","md","lg"].includes(e),fl=e=>({"2xs":e*.5,xs:e,sm:e*2,"sm-md":e*2.5,md:e*4,"md-lg":e*6,lg:e*8,xl:e*16,"2xl":e*32,"3xl":e*64,"4xl":e*128}),xr=e=>["2xs","xs","sm","sm-md","md","md-lg","lg","xl","2xl","3xl","4xl"].includes(e),hl=e=>({none:0,"2xs":e*.25,xs:e*.5,sm:e,"sm-md":e*1.5,md:e*2,"md-lg":e*2.5,lg:e*3,xl:e*4,"2xl":e*5,"3xl":e*6,"4xl":e*8,"5xl":e*10,"6xl":e*12,"7xl":e*14,"8xl":e*16,"9xl":e*18,"10xl":e*20,"-xxs":e*-.25,"-xs":e*-.5,"-sm":e*-1,"-sm-md":e*-1.5,"-md":e*-2,"-md-lg":e*-2.5,"-lg":e*-3,"-xl":e*-4,"-2xl":e*-5,"-3xl":e*-6,"-4xl":e*-8,"-5xl":e*-10,"-6xl":e*-12,"-7xl":e*-14,"-8xl":e*-16,"-9xl":e*-18,"-10xl":e*-20}),Zf=e=>["none","2xs","xs","sm","sm-md","md","md-lg","lg","xl","2xl","3xl","4xl","-xxs","-xs","-sm","-sm-md","-md","-md-lg","-lg","-xl","-2xl","-3xl","-4xl"].includes(e),pl=({neutral:e,heading:n})=>({neutral:`"${e}", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif`,heading:`"${n}", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif`}),ls=e=>({"2xs":e*.75,xs:e,small:e*1.25,medium:e*1.5,large:e*2,xl:e*2.5,"2xl":e*3,"3xl":e*3.5,"4xl":e*4,"5xl":e*5,"6xl":e*6}),gl=e=>{const n=ls(e),i=1.4;return{"2xs":n["2xs"]*i,xs:n.xs*i,small:n.small*i,medium:n.medium*i,large:n.large*i,xl:n.xl*i,"2xl":n["2xl"]*i,"3xl":n["3xl"]*i,"4xl":n["4xl"]*i,"5xl":n["5xl"]*i,"6xl":n["6xl"]*i}},ml=()=>({"extra-light":100,thin:200,light:300,regular:400,medium:500,semibold:600,bold:700,extrabold:800,black:900}),pb=e=>["2xs","xs","small","medium","large","xl","2xl","3xl","4xl","5xl","6xl"].includes(e),gb=e=>["extra-light","thin","light","regular","medium","semibold","bold","extrabold","black"].includes(e);class mb{constructor({baseZIndex:n=10,step:i=10}={}){Wr(this,"dependencies",new Map);Wr(this,"zIndexes",null);Wr(this,"nodes",new Set);Wr(this,"baseZIndex");Wr(this,"step");this.baseZIndex=n,this.step=i}register(n,i){this.nodes.add(n),this.nodes.add(i),this.dependencies.has(n)||this.dependencies.set(n,new Set),this.dependencies.get(n).add(i),this.zIndexes=null}deregister(n,i){const s=this.dependencies.get(n);s&&s.delete(i),this.zIndexes=null}getZIndex(n){return this.zIndexes||this._calculateZIndexes(),this.zIndexes.has(n)?this.zIndexes.get(n):(console.warn(`[ZIndexRegistry] ID '${n}' not found in the calculated z-index map. Returning a fallback value. Was it ever registered?`),this.baseZIndex)}_calculateZIndexes(){const n=new Map;for(const a of this.nodes)n.set(a,0);for(const a of this.dependencies.values())for(const l of a)n.set(l,(n.get(l)||0)+1);const i=[];for(const[a,l]of n.entries())l===0&&i.push(a);const s=[];for(;i.length>0;){const a=i.shift();s.push(a);const l=this.dependencies.get(a)||new Set;for(const d of l){const f=(n.get(d)||0)-1;n.set(d,f),f===0&&i.push(d)}}if(s.length!==this.nodes.size){if(process.env.NODE_ENV!=="production")throw new Error("[ZIndexRegistry] Detected a cycle in the z-index relationships. Cannot resolve the stacking order. Please check the register() function calls.");console.warn("[ZIndexRegistry] Detected a cycle in the z-index relationships. Cannot resolve the stacking order. Please check the register() function calls.")}this.zIndexes=new Map;for(let a=0;a<s.length;a++){const l=s[a];this.zIndexes.set(l,this.baseZIndex+a*this.step)}}}const Cr=new mb({baseZIndex:100,step:10}),mn={AIC_Kits_PageContent:"AIC_Kits_PageContent",AIC_Kits_Carousel:"AIC_Kits_Carousel",AIC_Kits_Dropdown:"AIC_Kits_Dropdown",AIC_Kits_Tooltip:"AIC_Kits_Tooltip",AIC_Kits_Modal:"AIC_Kits_Modal",AIC_Kits_Notification:"AIC_Kits_Notification"};Cr.register(mn.AIC_Kits_PageContent,mn.AIC_Kits_Carousel);Cr.register(mn.AIC_Kits_Carousel,mn.AIC_Kits_Dropdown);Cr.register(mn.AIC_Kits_Dropdown,mn.AIC_Kits_Tooltip);Cr.register(mn.AIC_Kits_Tooltip,mn.AIC_Kits_Modal);Cr.register(mn.AIC_Kits_Modal,mn.AIC_Kits_Notification);const yb=(e=Pn,n=as,i=Bf)=>{const s=pl(e.font),a=ls(e.fontSize),l=gl(e.fontSize),d=ml(),f=ul(e.borderWidth),h=hl(e.space),p=fl(e.size),x=dl(e.radius),w=Hf(n);return{colors:n,gradientColors:i,fonts:s,fontSizes:a,lineHeights:l,fontWeights:d,borderWidths:f,spaces:h,sizes:p,radii:x,shadows:w}},Vf=e=>({paddingVertical:"md",paddingHorizontal:"md",borderRadius:"lg",borderColor:"grey300",borderWidth:"thin",backgroundColor:"white",gap:"md",header:{gap:"sm-md",iconSize:"sm",iconColor:"grey600",disabledOpacity:.5},animation:{duration:300,easing:"ease"}}),Nf=e=>({defaultSize:"md",defaultIconSize:"md",defaultEmojiSize:"lg",defaultBrandSize:"md",defaultImageSize:"md",defaultSvgSize:"md"}),Uf=e=>({defaultSize:"md",defaultFallbackTextSize:"medium",fallbackBackgroundColor:"grey400",sizes:{sm:{fallbackTextSize:"small"},md:{fallbackTextSize:"medium"},lg:{fallbackTextSize:"xl"}}}),Gf=e=>({defaultSize:"md",defaultVariant:"default",sizes:{sm:{barSpacing:8,barRadius:2,axisColor:"grey600",gridColor:"grey200",labelColor:"grey600"},md:{barSpacing:12,barRadius:4,axisColor:"grey600",gridColor:"grey200",labelColor:"grey600"},lg:{barSpacing:16,barRadius:6,axisColor:"grey600",gridColor:"grey200",labelColor:"grey600"}},variants:{default:{defaultBarColor:"primary"},soft:{defaultBarColor:"secondary"},outlined:{defaultBarColor:"info"}}}),qf=e=>({defaultBackgroundColor:"white",defaultHeaderParams:{backgroundColor:"white"},desktopMediaQuery:"(min-width: 768px)",mobilePaddingX:"md",desktopPaddingX:"xl",desktopContentMaxWidth:"1200px"}),Kf=e=>({loadingConfig:{size:"md"},defaultColor:"primary",defaultTextColor:"white",iconSpacing:"xs",sizes:{sm:{paddingHorizontal:"sm",paddingVertical:"xs",fontSize:"xs",iconSize:"sm",borderWidth:"thin",fontWeight:"regular",iconWeight:"regular",squircleBorderRadii:{circle:"full",rounded:"md",square:"none"}},md:{paddingHorizontal:"md",paddingVertical:"sm",fontSize:"medium",iconSize:"sm-md",borderWidth:"thin",fontWeight:"regular",iconWeight:"regular",squircleBorderRadii:{circle:"full",rounded:"lg",square:"none"}},lg:{paddingHorizontal:"lg",paddingVertical:"md",fontSize:"large",iconSize:"md",borderWidth:"thick",fontWeight:"semibold",iconWeight:"bold",squircleBorderRadii:{circle:"full",rounded:"xl",square:"none"}}},variants:{solid:{},outlined:{bgColor:"transparent"},text:{bgColor:"transparent"}}}),Yf=e=>({pagination:{container:{marginTop:"md",padding:"xs",borderRadius:"full",backgroundColor:"grey100",gap:"xs"},dotSize:"2xs",inactiveColor:"grey300",activeColor:"primary",dotBorderRadius:"full"},navigation:{marginHorizontal:"md",buttonColor:"primary",buttonPadding:"sm",buttonBackgroundColor:"white",buttonBorderRadius:"full",iconSize:"sm-md"},autoScroll:{defaultSpeed:20},container:{defaultItemSpacing:"md"}}),Xf=e=>({defaultColor:"primary",defaultSize:"md",checkedBackgroundColor:"primary",uncheckedBorderColor:"grey400",disabledColor:"grey300",disabledTextColor:"grey500",focusBorderColor:"primary",iconColor:"white",textColor:"grey900",sizes:{sm:{labelFontSize:"small",labelPaddingLeft:"xs",iconSize:"xs",iconMargin:"2xs",borderRadius:"sm",borderWidth:"thin"},md:{labelFontSize:"medium",labelPaddingLeft:"sm",iconSize:"sm",iconMargin:"xs",borderRadius:"md",borderWidth:"thin"},lg:{labelFontSize:"large",labelPaddingLeft:"md",iconSize:"sm-md",iconMargin:"xs",borderRadius:"lg",borderWidth:"thin"}},animation:{duration:100,easing:"ease-out"}}),Qf=e=>{const n="primary",i="primary",s="white",a="grey300",l="grey100",d="grey400",f="primary",h="grey400",p="transparent";return{defaultSize:"md",defaultVariant:"outlined",defaultColor:n,borderRadii:{container:"lg",dateCell:"full",input:"md"},sizes:{sm:{containerPadding:"md",panelGap:"md",headerHeight:"xl",headerFontSize:"medium",headerFontWeight:"semibold",navButtonSize:"sm",navIconSize:"sm",weekdayFontSize:"2xs",dateCellSize:"xl",dateFontSize:"small",cellGap:"xs",timezoneFontSize:"2xs",borderWidth:"thin",viewHeight:258,viewWidth:280},md:{containerPadding:"lg",panelGap:"lg",headerHeight:"2xl",headerFontSize:"large",headerFontWeight:"semibold",navButtonSize:"sm-md",navIconSize:"sm-md",weekdayFontSize:"xs",dateCellSize:"2xl",dateFontSize:"medium",cellGap:"xs",timezoneFontSize:"xs",borderWidth:"thin",viewHeight:334,viewWidth:304},lg:{containerPadding:"xl",panelGap:"xl",headerHeight:"3xl",headerFontSize:"xl",headerFontWeight:"semibold",navButtonSize:"md",navIconSize:"md",weekdayFontSize:"small",dateCellSize:"3xl",dateFontSize:"large",cellGap:"xs",timezoneFontSize:"small",borderWidth:"thin",viewHeight:399,viewWidth:360}},variants:{outlined:{container:{backgroundColor:"white",borderColor:a},dateCells:{default:{backgroundColor:p,textColor:"grey900",borderColor:p},hover:{backgroundColor:l,textColor:"grey900",borderColor:p},today:{backgroundColor:p,textColor:f,borderColor:n},selected:{backgroundColor:i,textColor:s,borderColor:i},disabled:{backgroundColor:p,textColor:d,borderColor:p},outsideMonth:{backgroundColor:p,textColor:h,borderColor:p}}},filled:{container:{backgroundColor:"grey100",borderColor:p},dateCells:{default:{backgroundColor:p,textColor:"grey900",borderColor:p},hover:{backgroundColor:"grey200",textColor:"grey900",borderColor:p},today:{backgroundColor:p,textColor:f,borderColor:n},selected:{backgroundColor:i,textColor:s,borderColor:i},disabled:{backgroundColor:p,textColor:d,borderColor:p},outsideMonth:{backgroundColor:p,textColor:h,borderColor:p}}}},colors:{headerText:"grey900",weekdayText:"grey600",labelText:"grey700",helperText:"grey600",errorText:"danger",placeholderText:"grey500",selectedDateDisplay:"grey900",timezoneText:"grey700",timezoneIconColor:"grey600"},calendar:{weeksToShow:6,daysInWeek:7,panelMinWidth:280},popup:{offset:"sm",shadow:"lg",zIndex:110},animation:{duration:200,easing:"ease-out"},input:{iconColor:"grey600",borderColor:"grey300",focusBorderColor:n,errorBorderColor:"danger"}}},Jf=e=>({defaultColor:"grey300",defaultThickness:1}),e0=e=>{const n=`0 0 16px 4px ${e.colors.grey400}40`;return{backgroundColor:"grey100",padding:"xs",radius:"full",avatarSize:"md",loadingGap:"sm",navItem:{radius:"full",paddingX:"md",paddingY:"sm",gap:"xs",large:{gap:"sm",containerHeight:30,fontSize:"large",iconSize:28,loadingSize:"small"},medium:{gap:"xs",containerHeight:24,fontSize:"medium",iconSize:22,loadingSize:"small"},active:{fontWeight:"medium",color:"black",backgroundColor:"white",hoverBackgroundColor:"white",hoverBoxShadow:n},inactive:{fontWeight:"regular",color:"grey600",backgroundColor:"transparent",hoverBackgroundColor:"white",hoverBoxShadow:n},hover:{color:"primary"}},profileDropdown:{offset:{top:72,right:0},containerPaddingRight:"md",spacingTop:"sm",padding:"sm",gap:"sm",borderRadius:24,boxShadow:n,backgroundColor:"white",defaultMaxHeight:300,minWidth:50,animationDuration:300},navDropdown:{spacingTop:"sm",paddingX:"md-lg",paddingY:"md",gap:"sm-md",borderRadius:24,boxShadow:n,backgroundColor:"white",defaultMaxHeight:300,minWidth:50,animationDuration:300}}},t0=e=>{const n="grey300",i="danger",s="primary",a="grey100",l="grey300",d="grey500",f="white",h="grey900",p="thin",x=`inset 0 0 0 ${e.borderWidths.thin}px ${e.colors[s]}`,w=`inset 0 0 0 ${e.borderWidths.thin}px ${e.colors[i]}`;return{borderRadius:"md",borderWidth:p,padding:{vertical:"sm",horizontal:"md"},fontSize:"medium",placeholderColor:"grey500",iconSpacing:"sm",iconSize:"sm-md",iconColor:"grey600",textColor:h,disabledTextColor:d,disabledBorderColor:l,focusColor:s,errorColor:i,states:{default:{borderColor:n,backgroundColor:f,boxShadow:"none"},focused:{borderColor:s,backgroundColor:f,boxShadow:x},error:{borderColor:i,backgroundColor:f,boxShadow:w},disabled:{borderColor:l,backgroundColor:a,boxShadow:"none"}}}},n0=e=>({defaultSize:"md",defaultVariant:"default",sizes:{sm:{strokeWidth:1.5,dotRadius:3,axisColor:"grey600",gridColor:"grey200",labelColor:"grey600",labelFontSize:10,legendFontSize:12,legendSpacing:8},md:{strokeWidth:2,dotRadius:4,axisColor:"grey600",gridColor:"grey200",labelColor:"grey600",labelFontSize:12,legendFontSize:14,legendSpacing:12},lg:{strokeWidth:3,dotRadius:5,axisColor:"grey600",gridColor:"grey200",labelColor:"grey600",labelFontSize:14,legendFontSize:16,legendSpacing:16}},variants:{default:{defaultColors:["primary","secondary","success","warning","danger","info","purple500"]},soft:{defaultColors:["primary300","secondary300","teal300","lime400","pink400","purple400","cyan400"]},bold:{defaultColors:["primary500","secondary500","teal600","orange600","pink600","purple600","cyan600"]}}}),r0=e=>({defaultGap:"sm",defaultPadding:"none"}),i0=e=>({sizes:{small:"24px",medium:"36px",large:"48px"},strokeWidths:{small:"2px",medium:"3px",large:"4px"},arc:{minAngle:40,maxAngle:290},animation:{loopInterval:800,showingDuration:250,contentShowingDuration:300}}),o0=e=>({container:{sizes:{small:{gap:"xs"},medium:{gap:"sm"},large:{gap:"md"}}},item:{defaultColor:"grey900",text:{color:"black",disabledColor:"grey500"},shapes:{circular:{container:{borderRadius:"full"}},rounded:{container:{borderRadius:"md"}}},sizes:{small:{container:{size:"sm-md"},text:{fontSize:"small"},buttonSize:"sm",icon:{size:"xs",weight:"bold"}},medium:{container:{size:"md"},text:{fontSize:"medium"},buttonSize:"md",icon:{size:"sm",weight:"bold"}},large:{container:{size:"md-lg"},text:{fontSize:"large"},buttonSize:"lg",icon:{size:"sm-md",weight:"bold"}}}}}),s0=e=>({defaultSize:"md",defaultVariant:"default",sizes:{sm:{strokeWidth:1,strokeColor:"white",labelColor:"grey700",labelFontSize:10,legendFontSize:12,legendSpacing:8},md:{strokeWidth:2,strokeColor:"white",labelColor:"grey700",labelFontSize:12,legendFontSize:14,legendSpacing:12},lg:{strokeWidth:3,strokeColor:"white",labelColor:"grey700",labelFontSize:14,legendFontSize:16,legendSpacing:16}},variants:{default:{defaultColors:["primary","secondary","success","warning","danger","info","cyan500"]},soft:{defaultColors:["primary200","secondary200","lime300","orange300","pink300","purple300","cyan300"]},outlined:{defaultColors:["primary500","secondary500","teal700","orange700","pink700","purple700","cyan700"]}}}),a0=e=>({defaultVariant:"soft",defaultSize:"md",sizes:{sm:{height:"2xs",borderRadius:"xs"},md:{height:"xs",borderRadius:"sm"},lg:{height:"sm",borderRadius:"md"}},variants:{soft:{containerBackgroundColor:"grey100",defaultProgressColor:"primary"},outlined:{containerBackgroundColor:"white",containerBorderWidth:"thin",defaultProgressColor:"primary"},plain:{containerBackgroundColor:"white",defaultProgressColor:"primary"}}}),l0=e=>{const n="grey300",i="danger",s="grey300",a="grey100",l="grey400",d="grey100",f="grey200",h="white",p="transparent",x="thin",w="thick";return{defaultColor:"primary",defaultSize:"md",defaultVariant:"outlined",defaultCorner:"circle",squircleBorderRadii:{circle:"999px",rounded:"8px"},labelColor:"grey700",disabledLabelColor:l,valueColor:"grey900",placeholderColor:"grey500",helperTextColor:"grey600",errorColor:i,iconColor:"grey600",disabledContentColor:l,disabledOpacity:.6,sizes:{sm:{paddingVertical:"xs",paddingHorizontal:"sm",fontSize:"small",borderWidth:"thin",iconSize:"sm",gap:"xs",dropdownPaddingVertical:"xs",dropdownPaddingHorizontal:"sm"},md:{paddingVertical:"sm",paddingHorizontal:"md",fontSize:"medium",borderWidth:"thin",iconSize:"sm-md",gap:"sm",dropdownPaddingVertical:"sm",dropdownPaddingHorizontal:"md"},lg:{paddingVertical:"md",paddingHorizontal:"lg",fontSize:"large",borderWidth:"thin",iconSize:"md",gap:"md",dropdownPaddingVertical:"md",dropdownPaddingHorizontal:"lg"}},variants:{outlined:{default:{backgroundColor:p,borderColor:n,borderWidth:x},hover:{backgroundColor:"grey100",borderColor:n,borderWidth:x},focused:{backgroundColor:p,borderColor:"primary",borderWidth:w},disabled:{backgroundColor:p,borderColor:s,borderWidth:x},errored:{backgroundColor:p,borderColor:i,borderWidth:x}},filled:{default:{backgroundColor:d,borderColor:p,borderWidth:x},hover:{backgroundColor:f,borderColor:p,borderWidth:x},focused:{backgroundColor:h,borderColor:"primary",borderWidth:w},disabled:{backgroundColor:a,borderColor:p,borderWidth:x},errored:{backgroundColor:h,borderColor:i,borderWidth:x}}},animation:{duration:200,easing:"ease-out"},dropdown:{backgroundColor:h,borderColor:n,shadow:"md",offset:"sm",zIndex:1e3,maxHeight:200,borderRadiusForCircle:"xl",borderRadiusForRounded:"md",itemTextColor:"grey900",itemSelectedTextColor:"grey900",itemHoverBackgroundColor:"grey100",itemSelectedBackgroundColor:"white",emptyTextColor:"grey500"}}},c0=e=>({animation:{duration:1500,gradient:{start:"grey100",middle:"grey200",end:"grey100"},transition:{backgroundDuration:250,contentFadeDuration:200}},container:{rectangle:{borderRadius:"none",opacity:1},rounded:{borderRadius:"md",opacity:1},circle:{borderRadius:"full",opacity:1},transparent:{borderRadius:"none",opacity:0}}}),u0=e=>({defaultVariant:"solid",defaultColor:"primary",defaultRadius:"full",defaultSize:"md",sizes:{sm:{paddingVertical:"2xs",paddingHorizontal:"xs",fontSize:"xs",gap:"2xs",iconSize:"xs"},md:{paddingVertical:"xs",paddingHorizontal:"sm",fontSize:"small",gap:"xs",iconSize:"sm"},lg:{paddingVertical:"sm",paddingHorizontal:"md",fontSize:"medium",gap:"sm",iconSize:"sm-md"}}}),d0=e=>({defaultSize:"md",defaultFormat:"24h",borderRadii:{input:"md",popup:"lg"},sizes:{sm:{inputHeight:"xl",inputPaddingHorizontal:"sm",inputFontSize:"small",iconSize:"sm",popupPadding:"sm",wheelItemHeight:28,wheelWidth:48,wheelFontSize:"small"},md:{inputHeight:"2xl",inputPaddingHorizontal:"md",inputFontSize:"medium",iconSize:"sm-md",popupPadding:"md",wheelItemHeight:36,wheelWidth:56,wheelFontSize:"medium"},lg:{inputHeight:"3xl",inputPaddingHorizontal:"lg",inputFontSize:"large",iconSize:"md",popupPadding:"lg",wheelItemHeight:44,wheelWidth:64,wheelFontSize:"large"}},colors:{inputBorder:"grey300",inputFocusBorder:"primary",inputErrorBorder:"danger",inputBg:"white",inputText:"grey900",inputPlaceholder:"grey500",labelText:"grey700",helperText:"grey600",errorText:"danger",wheelBg:"white",wheelText:"grey600",wheelSelectedBg:"primary100",wheelSelectedText:"grey900",clearButtonColor:"grey500",clearButtonHoverColor:"grey700",separatorColor:"grey400"},popup:{offset:"sm",shadow:"lg",zIndex:110},wheel:{visibleItems:3}}),f0=e=>{const n="sm";return{defaultBackgroundColor:"grey800",defaultTextColor:"white",defaultPlacement:"bottom",container:{padding:"sm",borderRadius:"md",shadow:"md",zIndex:9999,maxWidth:"300px"},text:{fontSize:"small"},positioning:{spacing:n,placements:{top:{bottom:"100%",left:"50%",transform:"translateX(-50%)",mb:n},bottom:{top:"100%",left:"50%",transform:"translateX(-50%)",mt:n},left:{top:"50%",right:"100%",transform:"translateY(-50%)",mr:n},right:{top:"50%",left:"100%",transform:"translateY(-50%)",ml:n}}}}},h0=e=>({animation:{minScale:.92,maxScale:1,minOpacity:.7,maxOpacity:1,springConfig:{mass:.5}}}),p0=e=>({defaultAccentColor:"#00adef",aspectRatio:56.25,playerSettings:{autoplay:!1,muted:!1,loop:!1,title:!1,byline:!1,portrait:!1,controls:!0}}),g0=e=>({art:Nf(),base:qf(),button:Kf(),divider:Jf(),header:e0(e),input:t0(e),list:r0(),loading:i0(),pagination:o0(),skeleton:c0(),touchable:h0(),vimeo:p0(),carousel:Yf(),accordion:Vf(),tag:u0(),checkbox:Xf(),select:l0(),progress:a0(),avatar:Uf(),tooltip:f0(),barChart:Gf(),pieChart:s0(),lineChart:n0(),datepicker:Qf(),timepicker:d0()}),bb=hl(Pn.space),xb=fl(Pn.size),vb=ul(Pn.borderWidth),wb=dl(Pn.radius),_b=ls(Pn.fontSize),Cb=gl(Pn.fontSize),Sb=ml(),cd=pl(Pn.font),Eb={spaces:bb,sizes:xb,colors:as,radii:wb,borderWidths:vb,fonts:cd,zIndex:Cr,__hd__:{text:{fontSizes:_b,lineHeights:Cb,fontWeights:Sb,fonts:cd}}};function m0(){const e=Eb,n=g0(e);return{...e,__hd__:{...e.__hd__,...n}}}const qo=m0(),ue=tr.styled,Sn=tr.keyframes,lt=tr.css,y0=(e,n)=>!["theme","themeFontSize","themeFontWeight","themeTypeface","themePosition","color","bg","bgColor","backgroundColor","opacity","margin","m","marginTop","mt","marginRight","mr","marginBottom","mb","marginLeft","ml","marginX","mx","marginY","my","padding","p","paddingTop","pt","paddingRight","pr","paddingBottom","pb","paddingLeft","pl","paddingX","px","paddingY","py","gap","borderRadius","r","radius","borderBottomLeftRadius","bbl","borderBottomRightRadius","bbr","borderTopLeftRadius","btl","borderTopRightRadius","btr","borderWidth","b","borderBottomWidth","bb","borderTopWidth","bt","borderLeftWidth","bl","borderRightWidth","br","borderColor","bc","borderBottomColor","bb","borderTopColor","bt","borderLeftColor","bl","borderRightColor","br","fontSize","fontWeight","lineHeight","letterSpacing","textAlign","fontStyle","textTransform","textDecoration","themeColor","useRichText","width","height","minWidth","maxWidth","minHeight","maxHeight","display","alignItems","alignContent","justifyContent","flexWrap","flexDirection","flex","flexGrow","flexShrink","flexBasis","alignSelf","position","top","right","bottom","left","overflow","cursor","transition","transform","animation","willChange","pointerEvents","userSelect","resize","boxShadow","textShadow","filter","backdropFilter","mixBlendMode","isolation","zIndex","marginInline","marginBlock","paddingInline","paddingBlock","whiteSpace","textOverflow","overflowY","overflowX","fullWidth","fullHeight","fw","fh","absoluteFill"].includes(e),kb=e=>typeof e=="function"?e(qo):e?{...qo,...e}:qo,$b=({theme:e,children:n})=>{const i=kb(e);return m.jsx(tr.StyleSheetManager,{shouldForwardProp:y0,children:m.jsx(tr.ThemeProvider,{theme:i,children:n})})},be=tr.useTheme,Ct=()=>typeof document>"u",Hi={xs:0,sm:600,md:900,lg:1200,xl:1536},ji=Object.keys(Hi),cs=e=>Ne.isObject(e)&&("xs"in e||"sm"in e||"md"in e||"lg"in e||"xl"in e),Yt=(e,n)=>cs(e)?Object.fromEntries(Object.entries(e).map(([i,s])=>[i,n(s)])):n(e),Ja=e=>Ne.reduce(e,(n,i,s)=>(Ne.forEach(i,(a,l)=>{Ne.has(n,l)||Ne.set(n,l,{}),Ne.set(n,[l,s],a)}),n),{}),b0=(e,n)=>{const i=Object.fromEntries(Object.keys(e).map(f=>[f,yl(e[f])])),s=Ja(i),a=Object.fromEntries(ji.map(f=>[f,n(s[f])])),l=Ja(a);return Object.fromEntries(Object.entries(l).map(([f,h])=>[f,v0(h)]))},x0=(e,n)=>{if(!cs(e))return e;switch(n){case"xs":return e.xs??e.sm??e.md??e.lg??e.xl;case"sm":return e.sm??e.xs??e.md??e.lg??e.xl;case"md":return e.md??e.sm??e.xs??e.lg??e.xl;case"lg":return e.lg??e.md??e.sm??e.xs??e.xl;case"xl":return e.xl??e.lg??e.md??e.sm??e.xs}},yl=e=>Object.fromEntries(Object.keys(Hi).map(n=>[n,x0(e,n)])),v0=e=>{let n=e.xs;const i={xs:n};for(let s=1;s<ji.length;s++){const a=ji[s],l=e[a];Ne.isEqual(l,n)||(i[a]=l,n=l)}return Object.keys(i).length===1?i.xs:i},Jr=e=>{const[n,i]=Ne.partition(Object.entries(e),([l,d])=>cs(d)),s=Object.fromEntries(n.map(([l,d])=>[l,yl(d)])),a=Ne.compact(ji.map(l=>{const d=Object.fromEntries(Object.keys(s).map(h=>[h,s[h][l]]));if(l==="xs"){const h={...Object.fromEntries(i),...d};return Ne.isEmpty(h)?null:lt(h)}if(Ne.isEmpty(d))return null;const f=`(min-width: ${Hi[l]}px)`;return lt`
|
|
27
|
+
}`;var ze=od(function(){return qe(b,me+"return "+Y).apply(i,S)});if(ze.source=Y,va(ze))throw ze;return ze}function ay(t){return Ke(t).toLowerCase()}function ly(t){return Ke(t).toUpperCase()}function cy(t,r,o){if(t=Ke(t),t&&(o||r===i))return pc(t);if(!t||!(r=Nt(r)))return t;var u=dn(t),g=dn(r),b=gc(u,g),S=mc(u,g)+1;return Kn(u,b,S).join("")}function uy(t,r,o){if(t=Ke(t),t&&(o||r===i))return t.slice(0,bc(t)+1);if(!t||!(r=Nt(r)))return t;var u=dn(t),g=mc(u,dn(r))+1;return Kn(u,0,g).join("")}function dy(t,r,o){if(t=Ke(t),t&&(o||r===i))return t.replace(ht,"");if(!t||!(r=Nt(r)))return t;var u=dn(t),g=gc(u,dn(r));return Kn(u,g).join("")}function fy(t,r){var o=te,u=re;if(ct(r)){var g="separator"in r?r.separator:g;o="length"in r?Oe(r.length):o,u="omission"in r?Nt(r.omission):u}t=Ke(t);var b=t.length;if(Ar(t)){var S=dn(t);b=S.length}if(o>=b)return t;var A=o-Tr(u);if(A<1)return u;var O=S?Kn(S,0,A).join(""):t.slice(0,A);if(g===i)return O+u;if(S&&(A+=O.length-A),wa(g)){if(t.slice(A).search(g)){var N,U=O;for(g.global||(g=js(g.source,Ke(Ll.exec(g))+"g")),g.lastIndex=0;N=g.exec(U);)var Y=N.index;O=O.slice(0,Y===i?A:Y)}}else if(t.indexOf(Nt(g),A)!=A){var ce=O.lastIndexOf(g);ce>-1&&(O=O.slice(0,ce))}return O+u}function hy(t){return t=Ke(t),t&&yn.test(t)?t.replace(oi,Hh):t}var py=Lr(function(t,r,o){return t+(o?" ":"")+r.toUpperCase()}),Sa=su("toUpperCase");function id(t,r,o){return t=Ke(t),r=o?i:r,r===i?jh(t)?Nh(t):Ah(t):t.match(r)||[]}var od=je(function(t,r){try{return Zt(t,i,r)}catch(o){return va(o)?o:new Re(o)}}),gy=Tn(function(t,r){return Jt(r,function(o){o=wn(o),$n(t,o,ba(t[o],t))}),t});function my(t){var r=t==null?0:t.length,o=ve();return t=r?at(t,function(u){if(typeof u[1]!="function")throw new en(d);return[o(u[0]),u[1]]}):[],je(function(u){for(var g=-1;++g<r;){var b=t[g];if(Zt(b[0],this,u))return Zt(b[1],this,u)}})}function yy(t){return Hp(nn(t,w))}function Ea(t){return function(){return t}}function by(t,r){return t==null||t!==t?r:t}var xy=lu(),vy=lu(!0);function Lt(t){return t}function ka(t){return Dc(typeof t=="function"?t:nn(t,w))}function wy(t){return Wc(nn(t,w))}function _y(t,r){return Bc(t,nn(r,w))}var Cy=je(function(t,r){return function(o){return yi(o,t,r)}}),Sy=je(function(t,r){return function(o){return yi(t,o,r)}});function $a(t,r,o){var u=xt(r),g=mo(r,u);o==null&&!(ct(r)&&(g.length||!u.length))&&(o=r,r=t,t=this,g=mo(r,xt(r)));var b=!(ct(o)&&"chain"in o)||!!o.chain,S=In(t);return Jt(g,function(A){var O=r[A];t[A]=O,S&&(t.prototype[A]=function(){var N=this.__chain__;if(b||N){var U=t(this.__wrapped__),Y=U.__actions__=Ft(this.__actions__);return Y.push({func:O,args:arguments,thisArg:t}),U.__chain__=N,U}return O.apply(t,Zn([this.value()],arguments))})}),t}function Ey(){return wt._===this&&(wt._=Xh),this}function Aa(){}function ky(t){return t=Oe(t),je(function(r){return Hc(r,t)})}var $y=oa(at),Ay=oa(cc),Ty=oa(Rs);function sd(t){return fa(t)?Is(wn(t)):og(t)}function Ry(t){return function(r){return t==null?i:dr(t,r)}}var Iy=uu(),My=uu(!0);function Ta(){return[]}function Ra(){return!1}function Fy(){return{}}function Oy(){return""}function zy(){return!0}function Ly(t,r){if(t=Oe(t),t<1||t>ie)return[];var o=Se,u=St(t,Se);r=ve(r),t-=Se;for(var g=Os(u,r);++o<t;)r(o);return g}function jy(t){return Ie(t)?at(t,wn):Ut(t)?[t]:Ft(ku(Ke(t)))}function Dy(t){var r=++Kh;return Ke(t)+r}var Py=_o(function(t,r){return t+r},0),Wy=sa("ceil"),By=_o(function(t,r){return t/r},1),Hy=sa("floor");function Zy(t){return t&&t.length?go(t,Lt,Ns):i}function Vy(t,r){return t&&t.length?go(t,ve(r,2),Ns):i}function Ny(t){return fc(t,Lt)}function Uy(t,r){return fc(t,ve(r,2))}function Gy(t){return t&&t.length?go(t,Lt,Ks):i}function qy(t,r){return t&&t.length?go(t,ve(r,2),Ks):i}var Ky=_o(function(t,r){return t*r},1),Yy=sa("round"),Xy=_o(function(t,r){return t-r},0);function Qy(t){return t&&t.length?Fs(t,Lt):0}function Jy(t,r){return t&&t.length?Fs(t,ve(r,2)):0}return y.after=w2,y.ary=ju,y.assign=l8,y.assignIn=Xu,y.assignInWith=zo,y.assignWith=c8,y.at=u8,y.before=Du,y.bind=ba,y.bindAll=gy,y.bindKey=Pu,y.castArray=F2,y.chain=Ou,y.chunk=Hg,y.compact=Zg,y.concat=Vg,y.cond=my,y.conforms=yy,y.constant=Ea,y.countBy=Qm,y.create=d8,y.curry=Wu,y.curryRight=Bu,y.debounce=Hu,y.defaults=f8,y.defaultsDeep=h8,y.defer=_2,y.delay=C2,y.difference=Ng,y.differenceBy=Ug,y.differenceWith=Gg,y.drop=qg,y.dropRight=Kg,y.dropRightWhile=Yg,y.dropWhile=Xg,y.fill=Qg,y.filter=e2,y.flatMap=r2,y.flatMapDeep=i2,y.flatMapDepth=o2,y.flatten=Ru,y.flattenDeep=Jg,y.flattenDepth=em,y.flip=S2,y.flow=xy,y.flowRight=vy,y.fromPairs=tm,y.functions=v8,y.functionsIn=w8,y.groupBy=s2,y.initial=rm,y.intersection=im,y.intersectionBy=om,y.intersectionWith=sm,y.invert=C8,y.invertBy=S8,y.invokeMap=l2,y.iteratee=ka,y.keyBy=c2,y.keys=xt,y.keysIn=zt,y.map=To,y.mapKeys=k8,y.mapValues=$8,y.matches=wy,y.matchesProperty=_y,y.memoize=Io,y.merge=A8,y.mergeWith=Qu,y.method=Cy,y.methodOf=Sy,y.mixin=$a,y.negate=Mo,y.nthArg=ky,y.omit=T8,y.omitBy=R8,y.once=E2,y.orderBy=u2,y.over=$y,y.overArgs=k2,y.overEvery=Ay,y.overSome=Ty,y.partial=xa,y.partialRight=Zu,y.partition=d2,y.pick=I8,y.pickBy=Ju,y.property=sd,y.propertyOf=Ry,y.pull=um,y.pullAll=Mu,y.pullAllBy=dm,y.pullAllWith=fm,y.pullAt=hm,y.range=Iy,y.rangeRight=My,y.rearg=$2,y.reject=p2,y.remove=pm,y.rest=A2,y.reverse=ma,y.sampleSize=m2,y.set=F8,y.setWith=O8,y.shuffle=y2,y.slice=gm,y.sortBy=v2,y.sortedUniq=_m,y.sortedUniqBy=Cm,y.split=ry,y.spread=T2,y.tail=Sm,y.take=Em,y.takeRight=km,y.takeRightWhile=$m,y.takeWhile=Am,y.tap=Zm,y.throttle=R2,y.thru=Ao,y.toArray=qu,y.toPairs=ed,y.toPairsIn=td,y.toPath=jy,y.toPlainObject=Yu,y.transform=z8,y.unary=I2,y.union=Tm,y.unionBy=Rm,y.unionWith=Im,y.uniq=Mm,y.uniqBy=Fm,y.uniqWith=Om,y.unset=L8,y.unzip=ya,y.unzipWith=Fu,y.update=j8,y.updateWith=D8,y.values=Pr,y.valuesIn=P8,y.without=zm,y.words=id,y.wrap=M2,y.xor=Lm,y.xorBy=jm,y.xorWith=Dm,y.zip=Pm,y.zipObject=Wm,y.zipObjectDeep=Bm,y.zipWith=Hm,y.entries=ed,y.entriesIn=td,y.extend=Xu,y.extendWith=zo,$a(y,y),y.add=Py,y.attempt=od,y.camelCase=Z8,y.capitalize=nd,y.ceil=Wy,y.clamp=W8,y.clone=O2,y.cloneDeep=L2,y.cloneDeepWith=j2,y.cloneWith=z2,y.conformsTo=D2,y.deburr=rd,y.defaultTo=by,y.divide=By,y.endsWith=V8,y.eq=hn,y.escape=N8,y.escapeRegExp=U8,y.every=Jm,y.find=t2,y.findIndex=Au,y.findKey=p8,y.findLast=n2,y.findLastIndex=Tu,y.findLastKey=g8,y.floor=Hy,y.forEach=zu,y.forEachRight=Lu,y.forIn=m8,y.forInRight=y8,y.forOwn=b8,y.forOwnRight=x8,y.get=_a,y.gt=P2,y.gte=W2,y.has=_8,y.hasIn=Ca,y.head=Iu,y.identity=Lt,y.includes=a2,y.indexOf=nm,y.inRange=B8,y.invoke=E8,y.isArguments=pr,y.isArray=Ie,y.isArrayBuffer=B2,y.isArrayLike=Ot,y.isArrayLikeObject=dt,y.isBoolean=H2,y.isBuffer=Yn,y.isDate=Z2,y.isElement=V2,y.isEmpty=N2,y.isEqual=U2,y.isEqualWith=G2,y.isError=va,y.isFinite=q2,y.isFunction=In,y.isInteger=Vu,y.isLength=Fo,y.isMap=Nu,y.isMatch=K2,y.isMatchWith=Y2,y.isNaN=X2,y.isNative=Q2,y.isNil=e8,y.isNull=J2,y.isNumber=Uu,y.isObject=ct,y.isObjectLike=ut,y.isPlainObject=Ci,y.isRegExp=wa,y.isSafeInteger=t8,y.isSet=Gu,y.isString=Oo,y.isSymbol=Ut,y.isTypedArray=Dr,y.isUndefined=n8,y.isWeakMap=r8,y.isWeakSet=i8,y.join=am,y.kebabCase=G8,y.last=on,y.lastIndexOf=lm,y.lowerCase=q8,y.lowerFirst=K8,y.lt=o8,y.lte=s8,y.max=Zy,y.maxBy=Vy,y.mean=Ny,y.meanBy=Uy,y.min=Gy,y.minBy=qy,y.stubArray=Ta,y.stubFalse=Ra,y.stubObject=Fy,y.stubString=Oy,y.stubTrue=zy,y.multiply=Ky,y.nth=cm,y.noConflict=Ey,y.noop=Aa,y.now=Ro,y.pad=Y8,y.padEnd=X8,y.padStart=Q8,y.parseInt=J8,y.random=H8,y.reduce=f2,y.reduceRight=h2,y.repeat=ey,y.replace=ty,y.result=M8,y.round=Yy,y.runInContext=F,y.sample=g2,y.size=b2,y.snakeCase=ny,y.some=x2,y.sortedIndex=mm,y.sortedIndexBy=ym,y.sortedIndexOf=bm,y.sortedLastIndex=xm,y.sortedLastIndexBy=vm,y.sortedLastIndexOf=wm,y.startCase=iy,y.startsWith=oy,y.subtract=Xy,y.sum=Qy,y.sumBy=Jy,y.template=sy,y.times=Ly,y.toFinite=Mn,y.toInteger=Oe,y.toLength=Ku,y.toLower=ay,y.toNumber=sn,y.toSafeInteger=a8,y.toString=Ke,y.toUpper=ly,y.trim=cy,y.trimEnd=uy,y.trimStart=dy,y.truncate=fy,y.unescape=hy,y.uniqueId=Dy,y.upperCase=py,y.upperFirst=Sa,y.each=zu,y.eachRight=Lu,y.first=Iu,$a(y,function(){var t={};return xn(y,function(r,o){Xe.call(y.prototype,o)||(t[o]=r)}),t}(),{chain:!1}),y.VERSION=s,Jt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(t){y[t].placeholder=y}),Jt(["drop","take"],function(t,r){Ze.prototype[t]=function(o){o=o===i?1:yt(Oe(o),0);var u=this.__filtered__&&!r?new Ze(this):this.clone();return u.__filtered__?u.__takeCount__=St(o,u.__takeCount__):u.__views__.push({size:St(o,Se),type:t+(u.__dir__<0?"Right":"")}),u},Ze.prototype[t+"Right"]=function(o){return this.reverse()[t](o).reverse()}}),Jt(["filter","map","takeWhile"],function(t,r){var o=r+1,u=o==P||o==K;Ze.prototype[t]=function(g){var b=this.clone();return b.__iteratees__.push({iteratee:ve(g,3),type:o}),b.__filtered__=b.__filtered__||u,b}}),Jt(["head","last"],function(t,r){var o="take"+(r?"Right":"");Ze.prototype[t]=function(){return this[o](1).value()[0]}}),Jt(["initial","tail"],function(t,r){var o="drop"+(r?"":"Right");Ze.prototype[t]=function(){return this.__filtered__?new Ze(this):this[o](1)}}),Ze.prototype.compact=function(){return this.filter(Lt)},Ze.prototype.find=function(t){return this.filter(t).head()},Ze.prototype.findLast=function(t){return this.reverse().find(t)},Ze.prototype.invokeMap=je(function(t,r){return typeof t=="function"?new Ze(this):this.map(function(o){return yi(o,t,r)})}),Ze.prototype.reject=function(t){return this.filter(Mo(ve(t)))},Ze.prototype.slice=function(t,r){t=Oe(t);var o=this;return o.__filtered__&&(t>0||r<0)?new Ze(o):(t<0?o=o.takeRight(-t):t&&(o=o.drop(t)),r!==i&&(r=Oe(r),o=r<0?o.dropRight(-r):o.take(r-t)),o)},Ze.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},Ze.prototype.toArray=function(){return this.take(Se)},xn(Ze.prototype,function(t,r){var o=/^(?:filter|find|map|reject)|While$/.test(r),u=/^(?:head|last)$/.test(r),g=y[u?"take"+(r=="last"?"Right":""):r],b=u||/^find/.test(r);g&&(y.prototype[r]=function(){var S=this.__wrapped__,A=u?[1]:arguments,O=S instanceof Ze,N=A[0],U=O||Ie(S),Y=function(Be){var Ve=g.apply(y,Zn([Be],A));return u&&ce?Ve[0]:Ve};U&&o&&typeof N=="function"&&N.length!=1&&(O=U=!1);var ce=this.__chain__,me=!!this.__actions__.length,_e=b&&!ce,ze=O&&!me;if(!b&&U){S=ze?S:new Ze(this);var Ce=t.apply(S,A);return Ce.__actions__.push({func:Ao,args:[Y],thisArg:i}),new tn(Ce,ce)}return _e&&ze?t.apply(this,A):(Ce=this.thru(Y),_e?u?Ce.value()[0]:Ce.value():Ce)})}),Jt(["pop","push","shift","sort","splice","unshift"],function(t){var r=Ji[t],o=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",u=/^(?:pop|shift)$/.test(t);y.prototype[t]=function(){var g=arguments;if(u&&!this.__chain__){var b=this.value();return r.apply(Ie(b)?b:[],g)}return this[o](function(S){return r.apply(Ie(S)?S:[],g)})}}),xn(Ze.prototype,function(t,r){var o=y[r];if(o){var u=o.name+"";Xe.call(Fr,u)||(Fr[u]=[]),Fr[u].push({name:r,func:o})}}),Fr[wo(i,T).name]=[{name:"wrapper",func:i}],Ze.prototype.clone=hp,Ze.prototype.reverse=pp,Ze.prototype.value=gp,y.prototype.at=Vm,y.prototype.chain=Nm,y.prototype.commit=Um,y.prototype.next=Gm,y.prototype.plant=Km,y.prototype.reverse=Ym,y.prototype.toJSON=y.prototype.valueOf=y.prototype.value=Xm,y.prototype.first=y.prototype.head,ui&&(y.prototype[ui]=qm),y},Rr=Uh();sr?((sr.exports=Rr)._=Rr,ks._=Rr):wt._=Rr}).call(nb)}(Mi,Mi.exports)),Mi.exports}var Ne=rb();const ul=e=>({none:0,hairline:e*.5,thin:e,thick:e*2,heavy:e*4}),dl=e=>({none:0,xs:e*.5,sm:e,md:e*2,lg:e*3,xl:e*4,full:9999}),ib=e=>["none","hairline","thin","thick","heavy"].includes(e),Pf=e=>["none","xs","sm","md","lg","xl","full"].includes(e),as={transparent:"#FFFFFF00",white:"#FFFFFF",black:"#000000",primary:"#6949FF",secondary:"#FFC107",success:"#12D18E",danger:"#F75555",warning:"#FACC15",info:"#6949FF",grey100:"#F5F5F5",grey200:"#EEEEEE",grey300:"#E0E0E0",grey400:"#BDBDBD",grey500:"#9E9E9E",grey600:"#757575",grey700:"#616161",grey800:"#424242",grey900:"#212121",primary100:"#F0EDFF",primary200:"#C3B6FF",primary300:"#A592FF",primary400:"#876DFF",primary500:"#6949FF",secondary100:"#FFF9E6",secondary200:"#FFE69C",secondary300:"#FFDA6A",secondary400:"#FFCD39",secondary500:"#FFC107",orange100:"#FFF3E0",orange200:"#FFE0B2",orange300:"#FFCC80",orange400:"#FFB74D",orange500:"#FF9800",orange600:"#FB8C00",orange700:"#F57C00",orange800:"#EF6C00",orange900:"#E65100",cyan100:"#E0F7FA",cyan200:"#B2EBF2",cyan300:"#80DEEA",cyan400:"#4DD0E1",cyan500:"#26C6DA",cyan600:"#00BCD4",cyan700:"#00ACC1",cyan800:"#0097A7",cyan900:"#006064",purple100:"#F3E5F5",purple200:"#E1BEE7",purple300:"#CE93D8",purple400:"#BA68C8",purple500:"#AB47BC",purple600:"#9C27B0",purple700:"#8E24AA",purple800:"#7B1FA2",purple900:"#6A1B9A",teal100:"#E0F2F1",teal200:"#B2DFDB",teal300:"#80CBC4",teal400:"#4DB6AC",teal500:"#26A69A",teal600:"#009688",teal700:"#00897B",teal800:"#00796B",teal900:"#004D40",lime100:"#F9FBE7",lime200:"#F0F4C3",lime300:"#E6EE9C",lime400:"#DCE775",lime500:"#CDDC39",lime600:"#C0CA33",lime700:"#AFB42B",lime800:"#9E9D24",lime900:"#827717",pink100:"#FCE4EC",pink200:"#F8BBD0",pink300:"#F48FB1",pink400:"#F06292",pink500:"#EC4899",pink600:"#E91E63",pink700:"#D81B60",pink800:"#C2185B",pink900:"#880E4F",backgroundPurple:"#F9F8FF",backgroundYellow:"#FFFCED",backgroundGreen:"#F1FDF5",backgroundBlue:"#F6F9FF",backgroundTeal:"#F2FFF8",backgroundRed:"#FFF7F8",backgroundOrange:"#FFF8ED"},Wf=e=>e in as,Bf={primary:["#543ACC","#6949FF"],secondary:["#E0A800","#FFC107"],success:["#0FB57A","#12D18E"],danger:["#E64545","#F75555"],warning:["#E1B70D","#FACC15"],info:["#543ACC","#6949FF"]},ob=e=>["primary","secondary","success","danger","warning","info"].includes(e),sb=1,ab=8,lb=8,cb="Inter",ub="Sora",db=10,fb=4,Pn={borderWidth:sb,space:ab,size:lb,font:{neutral:cb,heading:ub},fontSize:db,radius:fb},Hf=e=>({none:"none",sm:`0 1px 2px 0 ${e.grey400}40`,md:`0 4px 6px -1px ${e.grey500}40, 0 2px 4px -1px ${e.grey400}40`,lg:`0 10px 15px -3px ${e.grey600}40, 0 4px 6px -2px ${e.grey500}40`}),hb=e=>["none","sm","md","lg"].includes(e),fl=e=>({"2xs":e*.5,xs:e,sm:e*2,"sm-md":e*2.5,md:e*4,"md-lg":e*6,lg:e*8,xl:e*16,"2xl":e*32,"3xl":e*64,"4xl":e*128}),xr=e=>["2xs","xs","sm","sm-md","md","md-lg","lg","xl","2xl","3xl","4xl"].includes(e),hl=e=>({none:0,"2xs":e*.25,xs:e*.5,sm:e,"sm-md":e*1.5,md:e*2,"md-lg":e*2.5,lg:e*3,xl:e*4,"2xl":e*5,"3xl":e*6,"4xl":e*8,"5xl":e*10,"6xl":e*12,"7xl":e*14,"8xl":e*16,"9xl":e*18,"10xl":e*20,"-xxs":e*-.25,"-xs":e*-.5,"-sm":e*-1,"-sm-md":e*-1.5,"-md":e*-2,"-md-lg":e*-2.5,"-lg":e*-3,"-xl":e*-4,"-2xl":e*-5,"-3xl":e*-6,"-4xl":e*-8,"-5xl":e*-10,"-6xl":e*-12,"-7xl":e*-14,"-8xl":e*-16,"-9xl":e*-18,"-10xl":e*-20}),Zf=e=>["none","2xs","xs","sm","sm-md","md","md-lg","lg","xl","2xl","3xl","4xl","-xxs","-xs","-sm","-sm-md","-md","-md-lg","-lg","-xl","-2xl","-3xl","-4xl"].includes(e),pl=({neutral:e,heading:n})=>({neutral:`"${e}", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif`,heading:`"${n}", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif`}),ls=e=>({"2xs":e*.75,xs:e,small:e*1.25,medium:e*1.5,large:e*2,xl:e*2.5,"2xl":e*3,"3xl":e*3.5,"4xl":e*4,"5xl":e*5,"6xl":e*6}),gl=e=>{const n=ls(e),i=1.4;return{"2xs":n["2xs"]*i,xs:n.xs*i,small:n.small*i,medium:n.medium*i,large:n.large*i,xl:n.xl*i,"2xl":n["2xl"]*i,"3xl":n["3xl"]*i,"4xl":n["4xl"]*i,"5xl":n["5xl"]*i,"6xl":n["6xl"]*i}},ml=()=>({"extra-light":100,thin:200,light:300,regular:400,medium:500,semibold:600,bold:700,extrabold:800,black:900}),pb=e=>["2xs","xs","small","medium","large","xl","2xl","3xl","4xl","5xl","6xl"].includes(e),gb=e=>["extra-light","thin","light","regular","medium","semibold","bold","extrabold","black"].includes(e);class mb{constructor({baseZIndex:n=10,step:i=10}={}){Wr(this,"dependencies",new Map);Wr(this,"zIndexes",null);Wr(this,"nodes",new Set);Wr(this,"baseZIndex");Wr(this,"step");this.baseZIndex=n,this.step=i}register(n,i){this.nodes.add(n),this.nodes.add(i),this.dependencies.has(n)||this.dependencies.set(n,new Set),this.dependencies.get(n).add(i),this.zIndexes=null}deregister(n,i){const s=this.dependencies.get(n);s&&s.delete(i),this.zIndexes=null}getZIndex(n){return this.zIndexes||this._calculateZIndexes(),this.zIndexes.has(n)?this.zIndexes.get(n):(console.warn(`[ZIndexRegistry] ID '${n}' not found in the calculated z-index map. Returning a fallback value. Was it ever registered?`),this.baseZIndex)}_calculateZIndexes(){const n=new Map;for(const a of this.nodes)n.set(a,0);for(const a of this.dependencies.values())for(const l of a)n.set(l,(n.get(l)||0)+1);const i=[];for(const[a,l]of n.entries())l===0&&i.push(a);const s=[];for(;i.length>0;){const a=i.shift();s.push(a);const l=this.dependencies.get(a)||new Set;for(const d of l){const f=(n.get(d)||0)-1;n.set(d,f),f===0&&i.push(d)}}if(s.length!==this.nodes.size){if(process.env.NODE_ENV!=="production")throw new Error("[ZIndexRegistry] Detected a cycle in the z-index relationships. Cannot resolve the stacking order. Please check the register() function calls.");console.warn("[ZIndexRegistry] Detected a cycle in the z-index relationships. Cannot resolve the stacking order. Please check the register() function calls.")}this.zIndexes=new Map;for(let a=0;a<s.length;a++){const l=s[a];this.zIndexes.set(l,this.baseZIndex+a*this.step)}}}const Cr=new mb({baseZIndex:100,step:10}),mn={AIC_Kits_PageContent:"AIC_Kits_PageContent",AIC_Kits_Carousel:"AIC_Kits_Carousel",AIC_Kits_Dropdown:"AIC_Kits_Dropdown",AIC_Kits_Tooltip:"AIC_Kits_Tooltip",AIC_Kits_Modal:"AIC_Kits_Modal",AIC_Kits_Notification:"AIC_Kits_Notification"};Cr.register(mn.AIC_Kits_PageContent,mn.AIC_Kits_Carousel);Cr.register(mn.AIC_Kits_Carousel,mn.AIC_Kits_Dropdown);Cr.register(mn.AIC_Kits_Dropdown,mn.AIC_Kits_Tooltip);Cr.register(mn.AIC_Kits_Tooltip,mn.AIC_Kits_Modal);Cr.register(mn.AIC_Kits_Modal,mn.AIC_Kits_Notification);const yb=(e=Pn,n=as,i=Bf)=>{const s=pl(e.font),a=ls(e.fontSize),l=gl(e.fontSize),d=ml(),f=ul(e.borderWidth),h=hl(e.space),p=fl(e.size),x=dl(e.radius),w=Hf(n);return{colors:n,gradientColors:i,fonts:s,fontSizes:a,lineHeights:l,fontWeights:d,borderWidths:f,spaces:h,sizes:p,radii:x,shadows:w}},Vf=e=>({paddingVertical:"md",paddingHorizontal:"md",borderRadius:"lg",borderColor:"grey300",borderWidth:"thin",backgroundColor:"white",gap:"md",header:{gap:"sm-md",iconSize:"sm",iconColor:"grey600",disabledOpacity:.5},animation:{duration:300,easing:"ease"}}),Nf=e=>({defaultSize:"md",defaultIconSize:"md",defaultEmojiSize:"lg",defaultBrandSize:"md",defaultImageSize:"md",defaultSvgSize:"md"}),Uf=e=>({defaultSize:"md",defaultFallbackTextSize:"medium",fallbackBackgroundColor:"grey400",sizes:{sm:{fallbackTextSize:"small"},md:{fallbackTextSize:"medium"},lg:{fallbackTextSize:"xl"}}}),Gf=e=>({defaultSize:"md",defaultVariant:"default",sizes:{sm:{barSpacing:8,barRadius:2,axisColor:"grey600",gridColor:"grey200",labelColor:"grey600"},md:{barSpacing:12,barRadius:4,axisColor:"grey600",gridColor:"grey200",labelColor:"grey600"},lg:{barSpacing:16,barRadius:6,axisColor:"grey600",gridColor:"grey200",labelColor:"grey600"}},variants:{default:{defaultBarColor:"primary"},soft:{defaultBarColor:"secondary"},outlined:{defaultBarColor:"info"}}}),qf=e=>({defaultBackgroundColor:"white",defaultHeaderParams:{backgroundColor:"white"},desktopMediaQuery:"(min-width: 768px)",mobilePaddingX:"md",desktopPaddingX:"xl",desktopContentMaxWidth:"1200px"}),Kf=e=>({loadingConfig:{size:"md"},defaultColor:"primary",defaultTextColor:"white",iconSpacing:"xs",sizes:{sm:{paddingHorizontal:"sm",paddingVertical:"xs",fontSize:"xs",iconSize:"sm",borderWidth:"thin",fontWeight:"regular",iconWeight:"regular",squircleBorderRadii:{circle:"full",rounded:"md",square:"none"}},md:{paddingHorizontal:"md",paddingVertical:"sm",fontSize:"medium",iconSize:"sm-md",borderWidth:"thin",fontWeight:"regular",iconWeight:"regular",squircleBorderRadii:{circle:"full",rounded:"lg",square:"none"}},lg:{paddingHorizontal:"lg",paddingVertical:"md",fontSize:"large",iconSize:"md",borderWidth:"thick",fontWeight:"semibold",iconWeight:"bold",squircleBorderRadii:{circle:"full",rounded:"xl",square:"none"}}},variants:{solid:{},outlined:{bgColor:"transparent"},text:{bgColor:"transparent"}}}),Yf=e=>({pagination:{container:{marginTop:"md",padding:"xs",borderRadius:"full",backgroundColor:"grey100",gap:"xs"},dotSize:"2xs",inactiveColor:"grey300",activeColor:"primary",dotBorderRadius:"full"},navigation:{marginHorizontal:"md",buttonColor:"primary",buttonPadding:"sm",buttonBackgroundColor:"white",buttonBorderRadius:"full",iconSize:"sm-md"},autoScroll:{defaultSpeed:20},container:{defaultItemSpacing:"md"}}),Xf=e=>({defaultColor:"primary",defaultSize:"md",checkedBackgroundColor:"primary",uncheckedBorderColor:"grey400",disabledColor:"grey300",disabledTextColor:"grey500",focusBorderColor:"primary",iconColor:"white",textColor:"grey900",sizes:{sm:{labelFontSize:"small",labelPaddingLeft:"xs",iconSize:"xs",iconMargin:"2xs",borderRadius:"sm",borderWidth:"thin"},md:{labelFontSize:"medium",labelPaddingLeft:"sm",iconSize:"sm",iconMargin:"xs",borderRadius:"md",borderWidth:"thin"},lg:{labelFontSize:"large",labelPaddingLeft:"md",iconSize:"sm-md",iconMargin:"xs",borderRadius:"lg",borderWidth:"thin"}},animation:{duration:100,easing:"ease-out"}}),Qf=e=>{const n="primary",i="primary",s="white",a="grey300",l="grey100",d="grey400",f="primary",h="grey400",p="transparent";return{defaultSize:"md",defaultVariant:"outlined",defaultColor:n,borderRadii:{container:"lg",dateCell:"full",input:"md"},sizes:{sm:{containerPadding:"md",panelGap:"md",headerHeight:"xl",headerFontSize:"medium",headerFontWeight:"semibold",navButtonSize:"sm",navIconSize:"sm",weekdayFontSize:"2xs",dateCellSize:"xl",dateFontSize:"small",cellGap:"xs",timezoneFontSize:"2xs",borderWidth:"thin",viewHeight:258,viewWidth:280},md:{containerPadding:"lg",panelGap:"lg",headerHeight:"2xl",headerFontSize:"large",headerFontWeight:"semibold",navButtonSize:"sm-md",navIconSize:"sm-md",weekdayFontSize:"xs",dateCellSize:"2xl",dateFontSize:"medium",cellGap:"xs",timezoneFontSize:"xs",borderWidth:"thin",viewHeight:334,viewWidth:304},lg:{containerPadding:"xl",panelGap:"xl",headerHeight:"3xl",headerFontSize:"xl",headerFontWeight:"semibold",navButtonSize:"md",navIconSize:"md",weekdayFontSize:"small",dateCellSize:"3xl",dateFontSize:"large",cellGap:"xs",timezoneFontSize:"small",borderWidth:"thin",viewHeight:399,viewWidth:360}},variants:{outlined:{container:{backgroundColor:"white",borderColor:a},dateCells:{default:{backgroundColor:p,textColor:"grey900",borderColor:p},hover:{backgroundColor:l,textColor:"grey900",borderColor:p},today:{backgroundColor:p,textColor:f,borderColor:n},selected:{backgroundColor:i,textColor:s,borderColor:i},disabled:{backgroundColor:p,textColor:d,borderColor:p},outsideMonth:{backgroundColor:p,textColor:h,borderColor:p}}},filled:{container:{backgroundColor:"grey100",borderColor:p},dateCells:{default:{backgroundColor:p,textColor:"grey900",borderColor:p},hover:{backgroundColor:"grey200",textColor:"grey900",borderColor:p},today:{backgroundColor:p,textColor:f,borderColor:n},selected:{backgroundColor:i,textColor:s,borderColor:i},disabled:{backgroundColor:p,textColor:d,borderColor:p},outsideMonth:{backgroundColor:p,textColor:h,borderColor:p}}}},colors:{headerText:"grey900",weekdayText:"grey600",labelText:"grey700",helperText:"grey600",errorText:"danger",placeholderText:"grey500",selectedDateDisplay:"grey900",timezoneText:"grey700",timezoneIconColor:"grey600"},calendar:{weeksToShow:6,daysInWeek:7,panelMinWidth:280},popup:{offset:"sm",shadow:"lg",zIndex:110},animation:{duration:200,easing:"ease-out"},input:{iconColor:"grey600",borderColor:"grey300",focusBorderColor:n,errorBorderColor:"danger"}}},Jf=e=>({defaultColor:"grey300",defaultThickness:1}),e0=e=>{const n=`0 0 16px 4px ${e.colors.grey400}40`;return{backgroundColor:"grey100",padding:"xs",radius:"full",avatarSize:"md",loadingGap:"sm",navItem:{radius:"full",paddingX:"md",paddingY:"sm",gap:"xs",large:{gap:"sm",containerHeight:30,fontSize:"large",iconSize:28,loadingSize:"small"},medium:{gap:"xs",containerHeight:24,fontSize:"medium",iconSize:22,loadingSize:"small"},active:{fontWeight:"medium",color:"black",backgroundColor:"white",hoverBackgroundColor:"white",hoverBoxShadow:n},inactive:{fontWeight:"regular",color:"grey600",backgroundColor:"transparent",hoverBackgroundColor:"white",hoverBoxShadow:n},hover:{color:"primary"}},profileDropdown:{offset:{top:72,right:0},containerPaddingRight:"md",spacingTop:"sm",padding:"sm",gap:"sm",borderRadius:24,boxShadow:n,backgroundColor:"white",defaultMaxHeight:300,minWidth:50,animationDuration:300},navDropdown:{spacingTop:"sm",paddingX:"md-lg",paddingY:"md",gap:"sm-md",borderRadius:24,boxShadow:n,backgroundColor:"white",defaultMaxHeight:300,minWidth:50,animationDuration:300}}},t0=e=>{const n="grey300",i="danger",s="primary",a="grey100",l="grey300",d="grey500",f="white",h="grey900",p="thin",x=`inset 0 0 0 ${e.borderWidths.thin}px ${e.colors[s]}`,w=`inset 0 0 0 ${e.borderWidths.thin}px ${e.colors[i]}`;return{borderRadius:"md",borderWidth:p,padding:{vertical:"sm",horizontal:"md"},fontSize:"medium",placeholderColor:"grey500",iconSpacing:"sm",iconSize:"sm-md",iconColor:"grey600",textColor:h,disabledTextColor:d,disabledBorderColor:l,focusColor:s,errorColor:i,states:{default:{borderColor:n,backgroundColor:f,boxShadow:"none"},focused:{borderColor:s,backgroundColor:f,boxShadow:x},error:{borderColor:i,backgroundColor:f,boxShadow:w},disabled:{borderColor:l,backgroundColor:a,boxShadow:"none"}}}},n0=e=>({defaultSize:"md",defaultVariant:"default",sizes:{sm:{strokeWidth:1.5,dotRadius:3,axisColor:"grey600",gridColor:"grey200",labelColor:"grey600",labelFontSize:10,legendFontSize:12,legendSpacing:8},md:{strokeWidth:2,dotRadius:4,axisColor:"grey600",gridColor:"grey200",labelColor:"grey600",labelFontSize:12,legendFontSize:14,legendSpacing:12},lg:{strokeWidth:3,dotRadius:5,axisColor:"grey600",gridColor:"grey200",labelColor:"grey600",labelFontSize:14,legendFontSize:16,legendSpacing:16}},variants:{default:{defaultColors:["primary","secondary","success","warning","danger","info","purple500"]},soft:{defaultColors:["primary300","secondary300","teal300","lime400","pink400","purple400","cyan400"]},bold:{defaultColors:["primary500","secondary500","teal600","orange600","pink600","purple600","cyan600"]}}}),r0=e=>({defaultGap:"sm",defaultPadding:"none"}),i0=e=>({sizes:{small:"24px",medium:"36px",large:"48px"},strokeWidths:{small:"2px",medium:"3px",large:"4px"},arc:{minAngle:40,maxAngle:290},animation:{loopInterval:800,showingDuration:250,contentShowingDuration:300}}),o0=e=>({container:{sizes:{small:{gap:"xs"},medium:{gap:"sm"},large:{gap:"md"}}},item:{defaultColor:"grey900",text:{color:"black",disabledColor:"grey500"},shapes:{circular:{container:{borderRadius:"full"}},rounded:{container:{borderRadius:"md"}}},sizes:{small:{container:{size:"sm-md"},text:{fontSize:"small"},buttonSize:"sm",icon:{size:"xs",weight:"bold"}},medium:{container:{size:"md"},text:{fontSize:"medium"},buttonSize:"md",icon:{size:"sm",weight:"bold"}},large:{container:{size:"md-lg"},text:{fontSize:"large"},buttonSize:"lg",icon:{size:"sm-md",weight:"bold"}}}}}),s0=e=>({defaultSize:"md",defaultVariant:"default",sizes:{sm:{strokeWidth:1,strokeColor:"white",labelColor:"grey700",labelFontSize:10,legendFontSize:12,legendSpacing:8},md:{strokeWidth:2,strokeColor:"white",labelColor:"grey700",labelFontSize:12,legendFontSize:14,legendSpacing:12},lg:{strokeWidth:3,strokeColor:"white",labelColor:"grey700",labelFontSize:14,legendFontSize:16,legendSpacing:16}},variants:{default:{defaultColors:["primary","secondary","success","warning","danger","info","cyan500"]},soft:{defaultColors:["primary200","secondary200","lime300","orange300","pink300","purple300","cyan300"]},outlined:{defaultColors:["primary500","secondary500","teal700","orange700","pink700","purple700","cyan700"]}}}),a0=e=>({defaultVariant:"soft",defaultSize:"md",sizes:{sm:{height:"2xs",borderRadius:"xs"},md:{height:"xs",borderRadius:"sm"},lg:{height:"sm",borderRadius:"md"}},variants:{soft:{containerBackgroundColor:"grey100",defaultProgressColor:"primary"},outlined:{containerBackgroundColor:"white",containerBorderWidth:"thin",defaultProgressColor:"primary"},plain:{containerBackgroundColor:"white",defaultProgressColor:"primary"}}}),l0=e=>{const n="grey300",i="danger",s="grey300",a="grey100",l="grey400",d="grey100",f="grey200",h="white",p="transparent",x="thin",w="thick";return{defaultColor:"primary",defaultSize:"md",defaultVariant:"outlined",defaultCorner:"circle",squircleBorderRadii:{circle:"999px",rounded:"8px"},labelColor:"grey700",disabledLabelColor:l,valueColor:"grey900",placeholderColor:"grey500",helperTextColor:"grey600",errorColor:i,iconColor:"grey600",disabledContentColor:l,disabledOpacity:.6,sizes:{sm:{paddingVertical:"xs",paddingHorizontal:"sm",fontSize:"small",borderWidth:"thin",iconSize:"sm",gap:"xs",dropdownPaddingVertical:"xs",dropdownPaddingHorizontal:"sm"},md:{paddingVertical:"sm",paddingHorizontal:"md",fontSize:"medium",borderWidth:"thin",iconSize:"sm-md",gap:"sm",dropdownPaddingVertical:"sm",dropdownPaddingHorizontal:"md"},lg:{paddingVertical:"md",paddingHorizontal:"lg",fontSize:"large",borderWidth:"thin",iconSize:"md",gap:"md",dropdownPaddingVertical:"md",dropdownPaddingHorizontal:"lg"}},variants:{outlined:{default:{backgroundColor:p,borderColor:n,borderWidth:x},hover:{backgroundColor:"grey100",borderColor:n,borderWidth:x},focused:{backgroundColor:p,borderColor:"primary",borderWidth:w},disabled:{backgroundColor:p,borderColor:s,borderWidth:x},errored:{backgroundColor:p,borderColor:i,borderWidth:x}},filled:{default:{backgroundColor:d,borderColor:p,borderWidth:x},hover:{backgroundColor:f,borderColor:p,borderWidth:x},focused:{backgroundColor:h,borderColor:"primary",borderWidth:w},disabled:{backgroundColor:a,borderColor:p,borderWidth:x},errored:{backgroundColor:h,borderColor:i,borderWidth:x}}},animation:{duration:200,easing:"ease-out"},dropdown:{backgroundColor:h,borderColor:n,shadow:"md",offset:"sm",zIndex:1e3,maxHeight:200,borderRadiusForCircle:"xl",borderRadiusForRounded:"md",itemTextColor:"grey900",itemSelectedTextColor:"grey900",itemHoverBackgroundColor:"grey100",itemSelectedBackgroundColor:"white",emptyTextColor:"grey500"}}},c0=e=>({animation:{duration:1500,gradient:{start:"grey100",middle:"grey200",end:"grey100"},transition:{backgroundDuration:250,contentFadeDuration:200}},container:{rectangle:{borderRadius:"none",opacity:1},rounded:{borderRadius:"md",opacity:1},circle:{borderRadius:"full",opacity:1},transparent:{borderRadius:"none",opacity:0}}}),u0=e=>({defaultVariant:"solid",defaultColor:"primary",defaultRadius:"full",defaultSize:"md",sizes:{sm:{paddingVertical:"2xs",paddingHorizontal:"xs",fontSize:"xs",gap:"2xs",iconSize:"xs"},md:{paddingVertical:"xs",paddingHorizontal:"sm",fontSize:"small",gap:"xs",iconSize:"sm"},lg:{paddingVertical:"sm",paddingHorizontal:"md",fontSize:"medium",gap:"sm",iconSize:"sm-md"}}}),d0=e=>({defaultSize:"md",defaultFormat:"24h",borderRadii:{input:"md",popup:"lg"},sizes:{sm:{inputHeight:"xl",inputPaddingHorizontal:"sm",inputFontSize:"small",iconSize:"sm",popupPadding:"sm",wheelItemHeight:28,wheelWidth:48,wheelFontSize:"small"},md:{inputHeight:"2xl",inputPaddingHorizontal:"md",inputFontSize:"medium",iconSize:"sm-md",popupPadding:"md",wheelItemHeight:36,wheelWidth:56,wheelFontSize:"medium"},lg:{inputHeight:"3xl",inputPaddingHorizontal:"lg",inputFontSize:"large",iconSize:"md",popupPadding:"lg",wheelItemHeight:44,wheelWidth:64,wheelFontSize:"large"}},colors:{inputBorder:"grey300",inputFocusBorder:"primary",inputErrorBorder:"danger",inputBg:"white",inputText:"grey900",inputPlaceholder:"grey500",labelText:"grey700",helperText:"grey600",errorText:"danger",wheelBg:"white",wheelText:"grey600",wheelSelectedBg:"primary100",wheelSelectedText:"grey900",clearButtonColor:"grey500",clearButtonHoverColor:"grey700",separatorColor:"grey400"},popup:{offset:"sm",shadow:"lg",zIndex:110},wheel:{visibleItems:3}}),f0=e=>{const n="sm";return{defaultBackgroundColor:"grey800",defaultTextColor:"white",defaultPlacement:"bottom",container:{padding:"sm",borderRadius:"md",shadow:"md",zIndex:9999,maxWidth:"300px"},text:{fontSize:"small"},positioning:{spacing:n,placements:{top:{bottom:"100%",left:"50%",transform:"translateX(-50%)",mb:n},bottom:{top:"100%",left:"50%",transform:"translateX(-50%)",mt:n},left:{top:"50%",right:"100%",transform:"translateY(-50%)",mr:n},right:{top:"50%",left:"100%",transform:"translateY(-50%)",ml:n}}}}},h0=e=>({animation:{minScale:.92,maxScale:1,minOpacity:.7,maxOpacity:1,springConfig:{mass:.5}}}),p0=e=>({defaultAccentColor:"#00adef",aspectRatio:56.25,playerSettings:{autoplay:!1,muted:!1,loop:!1,title:!1,byline:!1,portrait:!1,controls:!0}}),g0=e=>({art:Nf(),base:qf(),button:Kf(),divider:Jf(),header:e0(e),input:t0(e),list:r0(),loading:i0(),pagination:o0(),skeleton:c0(),touchable:h0(),vimeo:p0(),carousel:Yf(),accordion:Vf(),tag:u0(),checkbox:Xf(),select:l0(),progress:a0(),avatar:Uf(),tooltip:f0(),barChart:Gf(),pieChart:s0(),lineChart:n0(),datepicker:Qf(),timepicker:d0()}),bb=hl(Pn.space),xb=fl(Pn.size),vb=ul(Pn.borderWidth),wb=dl(Pn.radius),_b=ls(Pn.fontSize),Cb=gl(Pn.fontSize),Sb=ml(),cd=pl(Pn.font),Eb={spaces:bb,sizes:xb,colors:as,radii:wb,borderWidths:vb,fonts:cd,zIndex:Cr,__hd__:{text:{fontSizes:_b,lineHeights:Cb,fontWeights:Sb,fonts:cd}}};function m0(){const e=Eb,n=g0(e);return{...e,__hd__:{...e.__hd__,...n}}}const qo=m0(),ue=tr.styled,Sn=tr.keyframes,lt=tr.css,y0=(e,n)=>!["theme","themeFontSize","themeFontWeight","themeTypeface","themePosition","color","bg","bgColor","backgroundColor","opacity","margin","m","marginTop","mt","marginRight","mr","marginBottom","mb","marginLeft","ml","marginX","mx","marginY","my","padding","p","paddingTop","pt","paddingRight","pr","paddingBottom","pb","paddingLeft","pl","paddingX","px","paddingY","py","gap","borderRadius","r","radius","borderBottomLeftRadius","bbl","borderBottomRightRadius","bbr","borderTopLeftRadius","btl","borderTopRightRadius","btr","borderWidth","b","borderBottomWidth","bb","borderTopWidth","bt","borderLeftWidth","bl","borderRightWidth","br","borderColor","bc","borderBottomColor","bb","borderTopColor","bt","borderLeftColor","bl","borderRightColor","br","fontSize","fontWeight","lineHeight","letterSpacing","textAlign","fontStyle","textTransform","textDecoration","themeColor","useRichText","width","height","minWidth","maxWidth","minHeight","maxHeight","display","alignItems","alignContent","justifyContent","flexWrap","flexDirection","flex","flexGrow","flexShrink","flexBasis","alignSelf","position","top","right","bottom","left","overflow","cursor","transition","transform","animation","willChange","pointerEvents","userSelect","resize","boxShadow","textShadow","filter","backdropFilter","mixBlendMode","isolation","zIndex","marginInline","marginBlock","paddingInline","paddingBlock","whiteSpace","textOverflow","overflowY","overflowX","fullWidth","fullHeight","fw","fh","absoluteFill"].includes(e),kb=e=>typeof e=="function"?e(qo):e?{...qo,...e}:qo,$b=({theme:e,children:n})=>{const i=kb(e);return m.jsx(tr.StyleSheetManager,{shouldForwardProp:y0,children:m.jsx(tr.ThemeProvider,{theme:i,children:n})})},be=tr.useTheme,Ct=()=>typeof document>"u",Hi={xs:0,sm:600,md:900,lg:1200,xl:1536},ji=Object.keys(Hi),cs=e=>Ne.isObject(e)&&("xs"in e||"sm"in e||"md"in e||"lg"in e||"xl"in e),Yt=(e,n)=>cs(e)?Object.fromEntries(Object.entries(e).map(([i,s])=>[i,n(s)])):n(e),Ja=e=>Ne.reduce(e,(n,i,s)=>(Ne.forEach(i,(a,l)=>{Ne.has(n,l)||Ne.set(n,l,{}),Ne.set(n,[l,s],a)}),n),{}),b0=(e,n)=>{const i=Object.fromEntries(Object.keys(e).map(f=>[f,yl(e[f])])),s=Ja(i),a=Object.fromEntries(ji.map(f=>[f,n(s[f])])),l=Ja(a);return Object.fromEntries(Object.entries(l).map(([f,h])=>[f,v0(h)]))},x0=(e,n)=>{if(!cs(e))return e;switch(n){case"xs":return e.xs??e.sm??e.md??e.lg??e.xl;case"sm":return e.sm??e.xs??e.md??e.lg??e.xl;case"md":return e.md??e.sm??e.xs??e.lg??e.xl;case"lg":return e.lg??e.md??e.sm??e.xs??e.xl;case"xl":return e.xl??e.lg??e.md??e.sm??e.xs}},yl=e=>Object.fromEntries(Object.keys(Hi).map(n=>[n,x0(e,n)])),v0=e=>{let n=e.xs;const i={xs:n};for(let s=1;s<ji.length;s++){const a=ji[s],l=e[a];Ne.isEqual(l,n)||(i[a]=l,n=l)}return Object.keys(i).length===1?i.xs:i},Jr=e=>{const[n,i]=Ne.partition(Object.entries(e),([l,d])=>cs(d)),s=Object.fromEntries(n.map(([l,d])=>[l,yl(d)])),a=Ne.compact(ji.map(l=>{const d=Object.fromEntries(Object.keys(s).map(h=>[h,s[h][l]]));if(l==="xs"){const h={...Object.fromEntries(i),...d};return Ne.isEmpty(h)?null:lt(h)}if(Ne.isEmpty(d))return null;const f=`(min-width: ${Hi[l]}px)`;return lt`
|
|
28
28
|
@media ${f} {
|
|
29
29
|
${lt(d)}
|
|
30
30
|
}
|
|
@@ -59,7 +59,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
59
59
|
aspect-ratio: ${({$aspectRatio:e})=>e};
|
|
60
60
|
mix-blend-mode: ${({$mixBlendMode:e})=>e};
|
|
61
61
|
image-rendering: ${({$imageRendering:e})=>e};
|
|
62
|
-
`,U0=({art:e,width:n,height:i,style:s,"data-testid":a,alt:l,fallback:d,useSkeleton:f=!0,objectFit:h,objectPosition:p,aspectRatio:x,mixBlendMode:w,imageRendering:_,...v})=>{const C=be(),[R,k]=c.useState(!0),[T,E]=c.useState(!1),I=C.__hd__.art.defaultImageSize||C.__hd__.art.defaultSize,$=Yt(n,te=>vt(C,te??I)),M=Yt(i,te=>vt(C,te??I)),z=v.r||v.radius||v.borderRadius||"md",j=W6(e);c.useEffect(()=>{!Ne.isNil(j)&&j!==e&&(k(!0),E(!1))},[e,j]);const H=()=>{k(!1)},se=()=>{E(!0),k(!1)};return m.jsx(L,{display:"flex",alignItems:"center",justifyContent:"center",width:$,height:M,overflow:"hidden",style:s,"data-testid":a,...v,children:m.jsxs(Zi,{visible:R,width:$,height:M,r:z,children:[T&&m.jsxs(L,{width:$,height:M,r:z,display:"flex",alignItems:"center",justifyContent:"center",bgColor:"grey200",children:[!R&&d,!R&&!d&&!l&&m.jsx(Qe,{fontSize:"xs",color:"grey600",children:d||l}),!R&&!d&&!l&&K6()]}),!T&&(!Ct()||!f)&&m.jsx(Y6,{src:e,alt:Ne.isString(l)?l:"Image",onLoad:H,onError:se,"data-testid":a?`${a}-image`:void 0,$objectFit:h,$objectPosition:p,$aspectRatio:x,$mixBlendMode:w,$imageRendering:_}),!T&&Ct()&&f&&l]})})},G0=({art:e,width:n,height:i,style:s,"data-testid":a,...l})=>{const d=be(),f=d.__hd__.art.defaultSvgSize||d.__hd__.art.defaultSize,h=vt(d,n??f),p=vt(d,i??f);return m.jsx(L,{display:"flex",alignItems:"center",justifyContent:"center",width:h,height:p,overflow:"hidden",style:s,"data-testid":a,dangerouslySetInnerHTML:{__html:e},...l})},pt=e=>{const{art:n,type:i}=e;return i==="image"||Ne.isString(n)&&I0(n)?m.jsx(U0,{...e}):i==="svg"||Ne.isString(n)&&M0(n)?m.jsx(G0,{...e}):i==="emoji"||Ne.isString(n)&&T0(n)?m.jsx(O0,{...e}):i==="icon"||Ne.isString(n)&&R0(n)?m.jsx(xl,{...e}):i==="brand"?m.jsx(F0,{...e}):m.jsx(m.Fragment,{})},X6=e=>e==="sm"||e==="md"||e==="lg",q0=({src:e,name:n,size:i,...s})=>{var x;const a=be(),l=a.__hd__.avatar,d=i||l.defaultSize,f=vt(a,d);let h=l.defaultFallbackTextSize;typeof d=="string"&&X6(d)&&l.sizes[d]&&(h=l.sizes[d].fallbackTextSize);const p=l.fallbackBackgroundColor;return m.jsx(L,{width:f,height:f,r:"full",overflow:"hidden",display:"flex",alignItems:"center",justifyContent:"center",...s,children:e?m.jsx(pt,{type:"image",art:e,width:"100%",height:"100%",objectFit:"cover"}):m.jsx(L,{width:"100%",height:"100%",bgColor:p,display:"flex",justifyContent:"center",alignItems:"center",children:m.jsx(Qe,{color:"white",fontSize:h,fontWeight:"semibold",children:((x=n==null?void 0:n.charAt(0))==null?void 0:x.toUpperCase())||"U"})})})};function Q6(e){const[n,i]=c.useState(()=>(Ct(),!1));return c.useEffect(()=>{if(Ct())return;const s=window.matchMedia(e),a=l=>{i(l.matches)};return s.addEventListener?s.addEventListener("change",a):s.addListener(a),i(s.matches),()=>{s.removeEventListener?s.removeEventListener("change",a):s.removeListener(a)}},[e]),n}const ti=(e="xl")=>{const[n,i]=c.useState(()=>(typeof window>"u"||!window.matchMedia,e));return c.useEffect(()=>{if(Ct())return;const a=["xl","lg","md","sm"].map(f=>({key:f,mql:window.matchMedia(`(min-width: ${Hi[f]}px)`)})),l=()=>{for(const{key:f,mql:h}of a)if(h.matches)return f;return"xs"},d=()=>{i(l())};return d(),a.forEach(({mql:f})=>{f.addEventListener?f.addEventListener("change",d):f.addListener(d)}),()=>{a.forEach(({mql:f})=>{f.removeEventListener?f.removeEventListener("change",d):f.removeListener(d)})}},[]),n};function J6(){const{innerWidth:e,innerHeight:n}=window;return{width:e,height:n}}const K0=()=>{const[e,n]=c.useState(()=>Ct()?{width:void 0,height:void 0}:{width:void 0,height:void 0});return c.useEffect(()=>{if(Ct())return;function i(){n(J6())}return i(),window.addEventListener("resize",i),()=>window.removeEventListener("resize",i)},[]),e},vr=typeof window<"u"?c.useLayoutEffect:c.useEffect;function el(e,n,i,s){const a=c.useRef(n);vr(()=>{a.current=n},[n]),c.useEffect(()=>{const l=(i==null?void 0:i.current)??window;if(!(l&&l.addEventListener))return;const d=f=>{a.current(f)};return l.addEventListener(e,d,s),()=>{l.removeEventListener(e,d,s)}},[e,i,s])}function fs(e){const[n,i]=c.useState(!1),s=ti(),a=s==="xs"||s==="sm",l=()=>{a||i(!0)},d=()=>{a||i(!1)};return el("mouseenter",l,e),el("mouseleave",d,e),a?!1:n}const ev=()=>typeof window>"u"||!window.navigator?{isMouse:!0,isTouch:!1}:window.matchMedia("(any-pointer: fine)").matches?{isMouse:!0,isTouch:!1}:window.matchMedia("(any-pointer: coarse)").matches?{isMouse:!1,isTouch:!0}:{isMouse:!0,isTouch:!1};function Sl(){const[e,n]=c.useState(ev);return c.useEffect(()=>{const i=s=>{s.pointerType==="touch"?e.isTouch||n({isMouse:!1,isTouch:!0}):s.pointerType==="mouse"&&(e.isMouse||n({isMouse:!0,isTouch:!1}))};return window.addEventListener("pointerdown",i,{passive:!0}),()=>{window.removeEventListener("pointerdown",i)}},[e]),e}var tv="2.0.3",tl=500,Bd="user-agent",Kr="",Hd="?",ts="function",er="undefined",Yr="object",nl="string",Dt="browser",On="cpu",Cn="device",gn="engine",cn="os",Ur="result",Q="name",V="type",X="vendor",J="version",Pt="architecture",Di="major",q="model",Fi="console",Me="mobile",et="tablet",ht="smarttv",_n="wearable",Ia="xr",Oi="embedded",Si="inapp",El="brands",br="formFactors",kl="fullVersionList",Gr="platform",$l="platformVersion",hs="bitness",nr="sec-ch-ua",nv=nr+"-full-version-list",rv=nr+"-arch",iv=nr+"-"+hs,ov=nr+"-form-factors",sv=nr+"-"+Me,av=nr+"-"+q,Y0=nr+"-"+Gr,lv=Y0+"-version",X0=[El,kl,Me,q,Gr,$l,Pt,br,hs],jo="Amazon",Br="Apple",Zd="ASUS",Vd="BlackBerry",gr="Google",Nd="Huawei",Ud="Lenovo",Gd="Honor",Do="LG",Ma="Microsoft",Fa="Motorola",Oa="Nvidia",qd="OnePlus",za="OPPO",Ei="Samsung",Kd="Sharp",ki="Sony",La="Xiaomi",ja="Zebra",Yd="Chrome",Xd="Chromium",Xn="Chromecast",cv="Edge",$i="Firefox",Ai="Opera",Da="Facebook",Qd="Sogou",Hr="Mobile ",Ti=" Browser",rl="Windows",uv=typeof window!==er,Wt=uv&&window.navigator?window.navigator:void 0,Qn=Wt&&Wt.userAgentData?Wt.userAgentData:void 0,dv=function(e,n){var i={},s=n;if(!ns(n)){s={};for(var a in n)for(var l in n[a])s[l]=n[a][l].concat(s[l]?s[l]:[])}for(var d in e)i[d]=s[d]&&s[d].length%2===0?s[d].concat(e[d]):e[d];return i},ps=function(e){for(var n={},i=0;i<e.length;i++)n[e[i].toUpperCase()]=e[i];return n},il=function(e,n){if(typeof e===Yr&&e.length>0){for(var i in e)if(zn(e[i])==zn(n))return!0;return!1}return ni(e)?zn(n).indexOf(zn(e))!==-1:!1},ns=function(e,n){for(var i in e)return/^(browser|cpu|device|engine|os)$/.test(i)||(n?ns(e[i]):!1)},ni=function(e){return typeof e===nl},Pa=function(e){if(e){for(var n=[],i=Xr(/\\?\"/g,e).split(","),s=0;s<i.length;s++)if(i[s].indexOf(";")>-1){var a=Pi(i[s]).split(";v=");n[s]={brand:a[0],version:a[1]}}else n[s]=Pi(i[s]);return n}},zn=function(e){return ni(e)?e.toLowerCase():e},Wa=function(e){return ni(e)?Xr(/[^\d\.]/g,e).split(".")[0]:void 0},Ln=function(e){for(var n in e){var i=e[n];typeof i==Yr&&i.length==2?this[i[0]]=i[1]:this[i]=void 0}return this},Xr=function(e,n){return ni(n)?n.replace(e,Kr):n},Ri=function(e){return Xr(/\\?\"/g,e)},Pi=function(e,n){if(ni(e))return e=Xr(/^\s\s*/,e),typeof n===er?e:e.substring(0,tl)},Ba=function(e,n){if(!(!e||!n))for(var i=0,s,a,l,d,f,h;i<n.length&&!f;){var p=n[i],x=n[i+1];for(s=a=0;s<p.length&&!f&&p[s];)if(f=p[s++].exec(e),f)for(l=0;l<x.length;l++)h=f[++a],d=x[l],typeof d===Yr&&d.length>0?d.length===2?typeof d[1]==ts?this[d[0]]=d[1].call(this,h):this[d[0]]=d[1]:d.length===3?typeof d[1]===ts&&!(d[1].exec&&d[1].test)?this[d[0]]=h?d[1].call(this,h,d[2]):void 0:this[d[0]]=h?h.replace(d[1],d[2]):void 0:d.length===4&&(this[d[0]]=h?d[3].call(this,h.replace(d[1],d[2])):void 0):this[d]=h||void 0;i+=2}},Jn=function(e,n){for(var i in n)if(typeof n[i]===Yr&&n[i].length>0){for(var s=0;s<n[i].length;s++)if(il(n[i][s],e))return i===Hd?void 0:i}else if(il(n[i],e))return i===Hd?void 0:i;return n.hasOwnProperty("*")?n["*"]:e},Jd={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2","8.1":"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},ef={embedded:"Automotive",mobile:"Mobile",tablet:["Tablet","EInk"],smarttv:"TV",wearable:"Watch",xr:["VR","XR"],"?":["Desktop","Unknown"],"*":void 0},tf={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[J,[Q,Hr+"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[J,[Q,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[Q,J],[/opios[\/ ]+([\w\.]+)/i],[J,[Q,Ai+" Mini"]],[/\bop(?:rg)?x\/([\w\.]+)/i],[J,[Q,Ai+" GX"]],[/\bopr\/([\w\.]+)/i],[J,[Q,Ai]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[J,[Q,"Baidu"]],[/\b(?:mxbrowser|mxios|myie2)\/?([-\w\.]*)\b/i],[J,[Q,"Maxthon"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer|sleipnir)[\/ ]?([\w\.]*)/i,/(avant|iemobile|slim(?:browser|boat|jet))[\/ ]?([\d\.]*)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|duckduckgo|klar|helio|(?=comodo_)?dragon|otter|dooble|(?:lg |qute)browser)\/([-\w\.]+)/i,/(heytap|ovi|115|surf)browser\/([\d\.]+)/i,/(ecosia|weibo)(?:__| \w+@)([\d\.]+)/i],[Q,J],[/quark(?:pc)?\/([-\w\.]+)/i],[J,[Q,"Quark"]],[/\bddg\/([\w\.]+)/i],[J,[Q,"DuckDuckGo"]],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[J,[Q,"UCBrowser"]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[J,[Q,"WeChat"]],[/konqueror\/([\w\.]+)/i],[J,[Q,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[J,[Q,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[J,[Q,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[J,[Q,"Smart "+Ud+Ti]],[/(avast|avg)\/([\w\.]+)/i],[[Q,/(.+)/,"$1 Secure"+Ti],J],[/\bfocus\/([\w\.]+)/i],[J,[Q,$i+" Focus"]],[/\bopt\/([\w\.]+)/i],[J,[Q,Ai+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[J,[Q,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[J,[Q,"Dolphin"]],[/coast\/([\w\.]+)/i],[J,[Q,Ai+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[J,[Q,"MIUI"+Ti]],[/fxios\/([\w\.-]+)/i],[J,[Q,Hr+$i]],[/\bqihoobrowser\/?([\w\.]*)/i],[J,[Q,"360"]],[/\b(qq)\/([\w\.]+)/i],[[Q,/(.+)/,"$1Browser"],J],[/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i],[[Q,/(.+)/,"$1"+Ti],J],[/samsungbrowser\/([\w\.]+)/i],[J,[Q,Ei+" Internet"]],[/metasr[\/ ]?([\d\.]+)/i],[J,[Q,Qd+" Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[Q,Qd+" Mobile"],J],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345(?=browser|chrome|explorer))\w*[\/ ]?v?([\w\.]+)/i],[Q,J],[/(lbbrowser|rekonq)/i],[Q],[/ome\/([\w\.]+) \w* ?(iron) saf/i,/ome\/([\w\.]+).+qihu (360)[es]e/i],[J,Q],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[Q,Da],J,[V,Si]],[/(Klarna)\/([\w\.]+)/i,/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/(daum)apps[\/ ]([\w\.]+)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(alipay)client\/([\w\.]+)/i,/(twitter)(?:and| f.+e\/([\w\.]+))/i,/(instagram|snapchat)[\/ ]([-\w\.]+)/i],[Q,J,[V,Si]],[/\bgsa\/([\w\.]+) .*safari\//i],[J,[Q,"GSA"],[V,Si]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[J,[Q,"TikTok"],[V,Si]],[/\[(linkedin)app\]/i],[Q,[V,Si]],[/(chromium)[\/ ]([-\w\.]+)/i],[Q,J],[/headlesschrome(?:\/([\w\.]+)| )/i],[J,[Q,Yd+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[Q,Yd+" WebView"],J],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[J,[Q,"Android"+Ti]],[/chrome\/([\w\.]+) mobile/i],[J,[Q,Hr+"Chrome"]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[Q,J],[/version\/([\w\.\,]+) .*mobile(?:\/\w+ | ?)safari/i],[J,[Q,Hr+"Safari"]],[/iphone .*mobile(?:\/\w+ | ?)safari/i],[[Q,Hr+"Safari"]],[/version\/([\w\.\,]+) .*(safari)/i],[J,Q],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[Q,[J,"1"]],[/(webkit|khtml)\/([\w\.]+)/i],[Q,J],[/(?:mobile|tablet);.*(firefox)\/([\w\.-]+)/i],[[Q,Hr+$i],J],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[Q,"Netscape"],J],[/(wolvic|librewolf)\/([\w\.]+)/i],[Q,J],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[J,[Q,$i+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(amaya|dillo|doris|icab|ladybird|lynx|mosaic|netsurf|obigo|polaris|w3m|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/\b(links) \(([\w\.]+)/i],[Q,[J,/_/g,"."]],[/(cobalt)\/([\w\.]+)/i],[Q,[J,/[^\d\.]+./,Kr]]],cpu:[[/\b((amd|x|x86[-_]?|wow|win)64)\b/i],[[Pt,"amd64"]],[/(ia32(?=;))/i,/\b((i[346]|x)86)(pc)?\b/i],[[Pt,"ia32"]],[/\b(aarch64|arm(v?[89]e?l?|_?64))\b/i],[[Pt,"arm64"]],[/\b(arm(v[67])?ht?n?[fl]p?)\b/i],[[Pt,"armhf"]],[/( (ce|mobile); ppc;|\/[\w\.]+arm\b)/i],[[Pt,"arm"]],[/((ppc|powerpc)(64)?)( mac|;|\))/i],[[Pt,/ower/,Kr,zn]],[/ sun4\w[;\)]/i],[[Pt,"sparc"]],[/\b(avr32|ia64(?=;)|68k(?=\))|\barm(?=v([1-7]|[5-7]1)l?|;|eabi)|(irix|mips|sparc)(64)?\b|pa-risc)/i],[[Pt,zn]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[q,[X,Ei],[V,et]],[/\b((?:s[cgp]h|gt|sm)-(?![lr])\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]((?!sm-[lr])[-\w]+)/i,/sec-(sgh\w+)/i],[q,[X,Ei],[V,Me]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[q,[X,Br],[V,Me]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[q,[X,Br],[V,et]],[/(macintosh);/i],[q,[X,Br]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[q,[X,Kd],[V,Me]],[/\b((?:brt|eln|hey2?|gdi|jdn)-a?[lnw]09|(?:ag[rm]3?|jdn2|kob2)-a?[lw]0[09]hn)(?: bui|\)|;)/i],[q,[X,Gd],[V,et]],[/honor([-\w ]+)[;\)]/i],[q,[X,Gd],[V,Me]],[/\b((?:ag[rs][2356]?k?|bah[234]?|bg[2o]|bt[kv]|cmr|cpn|db[ry]2?|jdn2|got|kob2?k?|mon|pce|scm|sht?|[tw]gr|vrd)-[ad]?[lw][0125][09]b?|605hw|bg2-u03|(?:gem|fdr|m2|ple|t1)-[7a]0[1-4][lu]|t1-a2[13][lw]|mediapad[\w\. ]*(?= bui|\)))\b(?!.+d\/s)/i],[q,[X,Nd],[V,et]],[/(?:huawei)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[q,[X,Nd],[V,Me]],[/oid[^\)]+; (2[\dbc]{4}(182|283|rp\w{2})[cgl]|m2105k81a?c)(?: bui|\))/i,/\b((?:red)?mi[-_ ]?pad[\w- ]*)(?: bui|\))/i],[[q,/_/g," "],[X,La],[V,et]],[/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite|pro)?)(?: bui|\))/i,/ ([\w ]+) miui\/v?\d/i],[[q,/_/g," "],[X,La],[V,Me]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[q,[X,za],[V,Me]],[/\b(opd2(\d{3}a?))(?: bui|\))/i],[q,[X,Jn,{OnePlus:["304","403","203"],"*":za}],[V,et]],[/(vivo (5r?|6|8l?|go|one|s|x[il]?[2-4]?)[\w\+ ]*)(?: bui|\))/i],[q,[X,"BLU"],[V,Me]],[/; vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[q,[X,"Vivo"],[V,Me]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[q,[X,"Realme"],[V,Me]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto(?! 360)[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[q,[X,Fa],[V,Me]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[q,[X,Fa],[V,et]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[q,[X,Do],[V,et]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+(?!.*(?:browser|netcast|android tv|watch))(\w+)/i,/\blg-?([\d\w]+) bui/i],[q,[X,Do],[V,Me]],[/(ideatab[-\w ]+|602lv|d-42a|a101lv|a2109a|a3500-hv|s[56]000|pb-6505[my]|tb-?x?\d{3,4}(?:f[cu]|xu|[av])|yt\d?-[jx]?\d+[lfmx])( bui|;|\)|\/)/i,/lenovo ?(b[68]0[08]0-?[hf]?|tab(?:[\w- ]+?)|tb[\w-]{6,7})( bui|;|\)|\/)/i],[q,[X,Ud],[V,et]],[/(nokia) (t[12][01])/i],[X,q,[V,et]],[/(?:maemo|nokia).*(n900|lumia \d+|rm-\d+)/i,/nokia[-_ ]?(([-\w\. ]*))/i],[[q,/_/g," "],[V,Me],[X,"Nokia"]],[/(pixel (c|tablet))\b/i],[q,[X,gr],[V,et]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[q,[X,gr],[V,Me]],[/droid.+; (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[q,[X,ki],[V,Me]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[q,"Xperia Tablet"],[X,ki],[V,et]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[q,[X,qd],[V,Me]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[q,[X,jo],[V,et]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[q,/(.+)/g,"Fire Phone $1"],[X,jo],[V,Me]],[/(playbook);[-\w\),; ]+(rim)/i],[q,X,[V,et]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[q,[X,Vd],[V,Me]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[q,[X,Zd],[V,et]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[q,[X,Zd],[V,Me]],[/(nexus 9)/i],[q,[X,"HTC"],[V,et]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[X,[q,/_/g," "],[V,Me]],[/tcl (xess p17aa)/i,/droid [\w\.]+; ((?:8[14]9[16]|9(?:0(?:48|60|8[01])|1(?:3[27]|66)|2(?:6[69]|9[56])|466))[gqswx])(_\w(\w|\w\w))?(\)| bui)/i],[q,[X,"TCL"],[V,et]],[/droid [\w\.]+; (418(?:7d|8v)|5087z|5102l|61(?:02[dh]|25[adfh]|27[ai]|56[dh]|59k|65[ah])|a509dl|t(?:43(?:0w|1[adepqu])|50(?:6d|7[adju])|6(?:09dl|10k|12b|71[efho]|76[hjk])|7(?:66[ahju]|67[hw]|7[045][bh]|71[hk]|73o|76[ho]|79w|81[hks]?|82h|90[bhsy]|99b)|810[hs]))(_\w(\w|\w\w))?(\)| bui)/i],[q,[X,"TCL"],[V,Me]],[/(itel) ((\w+))/i],[[X,zn],q,[V,Jn,{tablet:["p10001l","w7001"],"*":"mobile"}]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[q,[X,"Acer"],[V,et]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[q,[X,"Meizu"],[V,Me]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[q,[X,"Ulefone"],[V,Me]],[/; (energy ?\w+)(?: bui|\))/i,/; energizer ([\w ]+)(?: bui|\))/i],[q,[X,"Energizer"],[V,Me]],[/; cat (b35);/i,/; (b15q?|s22 flip|s48c|s62 pro)(?: bui|\))/i],[q,[X,"Cat"],[V,Me]],[/((?:new )?andromax[\w- ]+)(?: bui|\))/i],[q,[X,"Smartfren"],[V,Me]],[/droid.+; (a(?:015|06[35]|142p?))/i],[q,[X,"Nothing"],[V,Me]],[/; (x67 5g|tikeasy \w+|ac[1789]\d\w+)( b|\))/i,/archos ?(5|gamepad2?|([\w ]*[t1789]|hello) ?\d+[\w ]*)( b|\))/i],[q,[X,"Archos"],[V,et]],[/archos ([\w ]+)( b|\))/i,/; (ac[3-6]\d\w{2,8})( b|\))/i],[q,[X,"Archos"],[V,Me]],[/(imo) (tab \w+)/i,/(infinix) (x1101b?)/i],[X,q,[V,et]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus(?! zenw)|dell|jolla|meizu|motorola|polytron|infinix|tecno|micromax|advan)[-_ ]?([-\w]*)/i,/; (blu|hmd|imo|tcl)[_ ]([\w\+ ]+?)(?: bui|\)|; r)/i,/(hp) ([\w ]+\w)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w ]+?)(?: bui|\)|\/)/i,/(oppo) ?([\w ]+) bui/i],[X,q,[V,Me]],[/(kobo)\s(ereader|touch)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i],[X,q,[V,et]],[/(surface duo)/i],[q,[X,Ma],[V,et]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[q,[X,"Fairphone"],[V,Me]],[/((?:tegranote|shield t(?!.+d tv))[\w- ]*?)(?: b|\))/i],[q,[X,Oa],[V,et]],[/(sprint) (\w+)/i],[X,q,[V,Me]],[/(kin\.[onetw]{3})/i],[[q,/\./g," "],[X,Ma],[V,Me]],[/droid.+; ([c6]+|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[q,[X,ja],[V,et]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[q,[X,ja],[V,Me]],[/smart-tv.+(samsung)/i],[X,[V,ht]],[/hbbtv.+maple;(\d+)/i],[[q,/^/,"SmartTV"],[X,Ei],[V,ht]],[/tcast.+(lg)e?. ([-\w]+)/i],[X,q,[V,ht]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[X,Do],[V,ht]],[/(apple) ?tv/i],[X,[q,Br+" TV"],[V,ht]],[/crkey.*devicetype\/chromecast/i],[[q,Xn+" Third Generation"],[X,gr],[V,ht]],[/crkey.*devicetype\/([^/]*)/i],[[q,/^/,"Chromecast "],[X,gr],[V,ht]],[/fuchsia.*crkey/i],[[q,Xn+" Nest Hub"],[X,gr],[V,ht]],[/crkey/i],[[q,Xn],[X,gr],[V,ht]],[/(portaltv)/i],[q,[X,Da],[V,ht]],[/droid.+aft(\w+)( bui|\))/i],[q,[X,jo],[V,ht]],[/(shield \w+ tv)/i],[q,[X,Oa],[V,ht]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[q,[X,Kd],[V,ht]],[/(bravia[\w ]+)( bui|\))/i],[q,[X,ki],[V,ht]],[/(mi(tv|box)-?\w+) bui/i],[q,[X,La],[V,ht]],[/Hbbtv.*(technisat) (.*);/i],[X,q,[V,ht]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[X,Pi],[q,Pi],[V,ht]],[/droid.+; ([\w- ]+) (?:android tv|smart[- ]?tv)/i],[q,[V,ht]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[V,ht]],[/(ouya)/i,/(nintendo) (\w+)/i],[X,q,[V,Fi]],[/droid.+; (shield)( bui|\))/i],[q,[X,Oa],[V,Fi]],[/(playstation \w+)/i],[q,[X,ki],[V,Fi]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[q,[X,Ma],[V,Fi]],[/\b(sm-[lr]\d\d[0156][fnuw]?s?|gear live)\b/i],[q,[X,Ei],[V,_n]],[/((pebble))app/i,/(asus|google|lg|oppo) ((pixel |zen)?watch[\w ]*)( bui|\))/i],[X,q,[V,_n]],[/(ow(?:19|20)?we?[1-3]{1,3})/i],[q,[X,za],[V,_n]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[q,[X,Br],[V,_n]],[/(opwwe\d{3})/i],[q,[X,qd],[V,_n]],[/(moto 360)/i],[q,[X,Fa],[V,_n]],[/(smartwatch 3)/i],[q,[X,ki],[V,_n]],[/(g watch r)/i],[q,[X,Do],[V,_n]],[/droid.+; (wt63?0{2,3})\)/i],[q,[X,ja],[V,_n]],[/droid.+; (glass) \d/i],[q,[X,gr],[V,Ia]],[/(pico) (4|neo3(?: link|pro)?)/i],[X,q,[V,Ia]],[/(quest( \d| pro)?s?).+vr/i],[q,[X,Da],[V,Ia]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[X,[V,Oi]],[/(aeobc)\b/i],[q,[X,jo],[V,Oi]],[/(homepod).+mac os/i],[q,[X,Br],[V,Oi]],[/windows iot/i],[[V,Oi]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+?(mobile|vr|\d) safari/i],[q,[V,Jn,{mobile:"Mobile",xr:"VR","*":et}]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[V,et]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[V,Me]],[/droid .+?; ([\w\. -]+)( bui|\))/i],[q,[X,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[J,[Q,cv+"HTML"]],[/(arkweb)\/([\w\.]+)/i],[Q,J],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[J,[Q,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna|servo)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[Q,J],[/ladybird\//i],[[Q,"LibWeb"]],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[J,Q]],os:[[/microsoft (windows) (vista|xp)/i],[Q,J],[/(windows (?:phone(?: os)?|mobile|iot))[\/ ]?([\d\.\w ]*)/i],[Q,[J,Jn,Jd]],[/windows nt 6\.2; (arm)/i,/windows[\/ ]([ntce\d\. ]+\w)(?!.+xbox)/i,/(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[J,Jn,Jd],[Q,rl]],[/[adehimnop]{4,7}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[J,/_/g,"."],[Q,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[Q,"macOS"],[J,/_/g,"."]],[/android ([\d\.]+).*crkey/i],[J,[Q,Xn+" Android"]],[/fuchsia.*crkey\/([\d\.]+)/i],[J,[Q,Xn+" Fuchsia"]],[/crkey\/([\d\.]+).*devicetype\/smartspeaker/i],[J,[Q,Xn+" SmartSpeaker"]],[/linux.*crkey\/([\d\.]+)/i],[J,[Q,Xn+" Linux"]],[/crkey\/([\d\.]+)/i],[J,[Q,Xn]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[J,Q],[/(ubuntu) ([\w\.]+) like android/i],[[Q,/(.+)/,"$1 Touch"],J],[/(android|bada|blackberry|kaios|maemo|meego|openharmony|qnx|rim tablet os|sailfish|series40|symbian|tizen|webos)\w*[-\/\.; ]?([\d\.]*)/i],[Q,J],[/\(bb(10);/i],[J,[Q,Vd]],[/(?:symbian ?os|symbos|s60(?=;)|series ?60)[-\/ ]?([\w\.]*)/i],[J,[Q,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[J,[Q,$i+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[J,[Q,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[J,[Q,"watchOS"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[Q,"Chrome OS"],J],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) (\w+)/i,/(xbox); +xbox ([^\);]+)/i,/(pico) .+os([\w\.]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux)(?: arm\w*| x86\w*| ?)([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[Q,J],[/(sunos) ?([\w\.\d]*)/i],[[Q,"Solaris"],J],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[Q,J]]},Po=function(){var e={init:{},isIgnore:{},isIgnoreRgx:{},toString:{}};return Ln.call(e.init,[[Dt,[Q,J,Di,V]],[On,[Pt]],[Cn,[V,q,X]],[gn,[Q,J]],[cn,[Q,J]]]),Ln.call(e.isIgnore,[[Dt,[J,Di]],[gn,[J]],[cn,[J]]]),Ln.call(e.isIgnoreRgx,[[Dt,/ ?browser$/i],[cn,/ ?os$/i]]),Ln.call(e.toString,[[Dt,[Q,J]],[On,[Pt]],[Cn,[X,q]],[gn,[Q,J]],[cn,[Q,J]]]),e}(),fv=function(e,n){var i=Po.init[n],s=Po.isIgnore[n]||0,a=Po.isIgnoreRgx[n]||0,l=Po.toString[n]||0;function d(){Ln.call(this,i)}return d.prototype.getItem=function(){return e},d.prototype.withClientHints=function(){return Qn?Qn.getHighEntropyValues(X0).then(function(f){return e.setCH(new Q0(f,!1)).parseCH().get()}):e.parseCH().get()},d.prototype.withFeatureCheck=function(){return e.detectFeature().get()},n!=Ur&&(d.prototype.is=function(f){var h=!1;for(var p in this)if(this.hasOwnProperty(p)&&!il(s,p)&&zn(a?Xr(a,this[p]):this[p])==zn(a?Xr(a,f):f)){if(h=!0,f!=er)break}else if(f==er&&h){h=!h;break}return h},d.prototype.toString=function(){var f=Kr;for(var h in l)typeof this[l[h]]!==er&&(f+=(f?" ":Kr)+this[l[h]]);return f||er}),Qn||(d.prototype.then=function(f){var h=this,p=function(){for(var w in h)h.hasOwnProperty(w)&&(this[w]=h[w])};p.prototype={is:d.prototype.is,toString:d.prototype.toString};var x=new p;return f(x),x}),new d};function Q0(e,n){if(e=e||{},Ln.call(this,X0),n)Ln.call(this,[[El,Pa(e[nr])],[kl,Pa(e[nv])],[Me,/\?1/.test(e[sv])],[q,Ri(e[av])],[Gr,Ri(e[Y0])],[$l,Ri(e[lv])],[Pt,Ri(e[rv])],[br,Pa(e[ov])],[hs,Ri(e[iv])]]);else for(var i in e)this.hasOwnProperty(i)&&typeof e[i]!==er&&(this[i]=e[i])}function nf(e,n,i,s){return this.get=function(a){return a?this.data.hasOwnProperty(a)?this.data[a]:void 0:this.data},this.set=function(a,l){return this.data[a]=l,this},this.setCH=function(a){return this.uaCH=a,this},this.detectFeature=function(){if(Wt&&Wt.userAgent==this.ua)switch(this.itemType){case Dt:Wt.brave&&typeof Wt.brave.isBrave==ts&&this.set(Q,"Brave");break;case Cn:!this.get(V)&&Qn&&Qn[Me]&&this.set(V,Me),this.get(q)=="Macintosh"&&Wt&&typeof Wt.standalone!==er&&Wt.maxTouchPoints&&Wt.maxTouchPoints>2&&this.set(q,"iPad").set(V,et);break;case cn:!this.get(Q)&&Qn&&Qn[Gr]&&this.set(Q,Qn[Gr]);break;case Ur:var a=this.data,l=function(d){return a[d].getItem().detectFeature().get()};this.set(Dt,l(Dt)).set(On,l(On)).set(Cn,l(Cn)).set(gn,l(gn)).set(cn,l(cn))}return this},this.parseUA=function(){return this.itemType!=Ur&&Ba.call(this.data,this.ua,this.rgxMap),this.itemType==Dt&&this.set(Di,Wa(this.get(J))),this},this.parseCH=function(){var a=this.uaCH,l=this.rgxMap;switch(this.itemType){case Dt:case gn:var d=a[kl]||a[El],f;if(d)for(var h in d){var p=d[h].brand||d[h],x=d[h].version;this.itemType==Dt&&!/not.a.brand/i.test(p)&&(!f||/chrom/i.test(f)&&p!=Xd)&&(p=Jn(p,{Chrome:"Google Chrome",Edge:"Microsoft Edge","Chrome WebView":"Android WebView","Chrome Headless":"HeadlessChrome","Huawei Browser":"HuaweiBrowser","MIUI Browser":"Miui Browser","Opera Mobi":"OperaMobile",Yandex:"YaBrowser"}),this.set(Q,p).set(J,x).set(Di,Wa(x)),f=p),this.itemType==gn&&p==Xd&&this.set(J,x)}break;case On:var w=a[Pt];w&&(w&&a[hs]=="64"&&(w+="64"),Ba.call(this.data,w+";",l));break;case Cn:if(a[Me]&&this.set(V,Me),a[q]&&(this.set(q,a[q]),!this.get(V)||!this.get(X))){var _={};Ba.call(_,"droid 9; "+a[q]+")",l),!this.get(V)&&_.type&&this.set(V,_.type),!this.get(X)&&_.vendor&&this.set(X,_.vendor)}if(a[br]){var v;if(typeof a[br]!="string")for(var C=0;!v&&C<a[br].length;)v=Jn(a[br][C++],ef);else v=Jn(a[br],ef);this.set(V,v)}break;case cn:var R=a[Gr];if(R){var k=a[$l];R==rl&&(k=parseInt(Wa(k),10)>=13?"11":"10"),this.set(Q,R).set(J,k)}this.get(Q)==rl&&a[q]=="Xbox"&&this.set(Q,"Xbox").set(J,void 0);break;case Ur:var T=this.data,E=function(I){return T[I].getItem().setCH(a).parseCH().get()};this.set(Dt,E(Dt)).set(On,E(On)).set(Cn,E(Cn)).set(gn,E(gn)).set(cn,E(cn))}return this},Ln.call(this,[["itemType",e],["ua",n],["uaCH",s],["rgxMap",i],["data",fv(this,e)]]),this}function Dn(e,n,i){if(typeof e===Yr?(ns(e,!0)?(typeof n===Yr&&(i=n),n=e):(i=e,n=void 0),e=void 0):typeof e===nl&&!ns(n,!0)&&(i=n,n=void 0),i&&typeof i.append===ts){var s={};i.forEach(function(h,p){s[p]=h}),i=s}if(!(this instanceof Dn))return new Dn(e,n,i).getResult();var a=typeof e===nl?e:i&&i[Bd]?i[Bd]:Wt&&Wt.userAgent?Wt.userAgent:Kr,l=new Q0(i,!0),d=n?dv(tf,n):tf,f=function(h){return h==Ur?function(){return new nf(h,a,d,l).set("ua",a).set(Dt,this.getBrowser()).set(On,this.getCPU()).set(Cn,this.getDevice()).set(gn,this.getEngine()).set(cn,this.getOS()).get()}:function(){return new nf(h,a,d[h],l).parseUA().get()}};return Ln.call(this,[["getBrowser",f(Dt)],["getCPU",f(On)],["getDevice",f(Cn)],["getEngine",f(gn)],["getOS",f(cn)],["getResult",f(Ur)],["getUA",function(){return a}],["setUA",function(h){return ni(h)&&(a=h.length>tl?Pi(h,tl):h),this}]]).setUA(a),this}Dn.VERSION=tv;Dn.BROWSER=ps([Q,J,Di,V]);Dn.CPU=ps([Pt]);Dn.DEVICE=ps([q,X,V,Fi,Me,ht,et,_n,Oi]);Dn.ENGINE=Dn.OS=ps([Q,J]);var J0=(e=>(e.Desktop="Desktop",e.Mobile="Mobile",e.Tablet="Tablet",e.SmartTV="Smart TV",e.Bot="Bot/Crawler",e.Unknown="Unknown",e))(J0||{}),e1=(e=>(e.Chrome="Chrome",e.Firefox="Firefox",e.Safari="Safari",e.Edge="Edge",e.IE="IE/Edge Legacy",e.Opera="Opera",e.Brave="Brave",e.Other="Other",e))(e1||{}),t1=(e=>(e.Windows="Windows",e.macOS="macOS",e.Linux="Linux",e.Android="Android",e.iOS="iOS",e.Other="Other",e))(t1||{});const ol=e=>{const i=new Dn(e).getResult(),a={deviceType:/bot|crawler|spider|crawling/i.test(e)?"Bot/Crawler":hv(i.device.type),browserName:pv(i.browser.name),osName:gv(i.os.name)},l=a.deviceType==="Mobile"||a.deviceType==="Tablet";return{...i,normalized:a,isMobile:l,isDesktop:!l}},hv=e=>{if(!e)return"Desktop";const n=e.toLowerCase();return n==="mobile"?"Mobile":n==="tablet"?"Tablet":n==="smarttv"?"Smart TV":"Unknown"},pv=e=>{if(!e)return"Other";const n=e.toLowerCase();return n.includes("brave")?"Brave":n.includes("edge")?"Edge":n.includes("opera")?"Opera":n.includes("ie")||n.includes("trident")?"IE/Edge Legacy":n.includes("chrome")?"Chrome":n.includes("firefox")?"Firefox":n.includes("safari")?"Safari":"Other"},gv=e=>{if(!e)return"Other";const n=e.toLowerCase();return n.includes("windows")?"Windows":n.includes("mac os")?"macOS":["ubuntu","debian","fedora","linux"].some(i=>n.includes(i))?"Linux":n.includes("android")?"Android":n.includes("ios")?"iOS":"Other"},mv=e=>{const[n,i]=c.useState(e?ol(e):void 0);return c.useEffect(()=>{n||i(ol(window.navigator.userAgent))},[n]),n};function Al({anchorRef:e,popupRef:n,offsetValue:i,isOpen:s,useFixedPosition:a=!1}){const l=c.useCallback(()=>{const d=e.current,f=n.current;if(!d||!f)return;const h=d.getBoundingClientRect(),p=f.getBoundingClientRect();if(a){let R=h.bottom+i,k=h.left;k+p.width>window.innerWidth-16&&(k=window.innerWidth-p.width-16),k<16&&(k=16);const T=window.innerHeight-h.bottom-i,E=h.top-i;T<p.height&&E>=p.height&&(R=h.top-p.height-i),f.style.position="fixed",f.style.inset=`${R}px auto auto ${k}px`;return}const x=d.offsetParent;if(!x)return;const w=x.getBoundingClientRect();let _=h.bottom-w.top+i,v=h.left-w.left;v+p.width>w.width-16&&(v=w.width-p.width-16),v<16&&(v=16);const C=h.top-w.top;_+p.height>w.height-16&&C>=p.height+i&&(_=h.top-w.top-p.height-i),f.style.inset=`${_}px auto auto ${v}px`},[e,n,i,a]);c.useLayoutEffect(()=>{s&&requestAnimationFrame(l)},[s,l]),c.useEffect(()=>{if(s)return window.addEventListener("resize",l),a&&window.addEventListener("scroll",l,!0),()=>{window.removeEventListener("resize",l),a&&window.removeEventListener("scroll",l,!0)}},[s,l,a])}const yv=ue(L)`
|
|
62
|
+
`,U0=({art:e,width:n,height:i,style:s,"data-testid":a,alt:l,fallback:d,useSkeleton:f=!0,objectFit:h,objectPosition:p,aspectRatio:x,mixBlendMode:w,imageRendering:_,...v})=>{const C=be(),[R,k]=c.useState(!0),[T,E]=c.useState(!1),I=C.__hd__.art.defaultImageSize||C.__hd__.art.defaultSize,$=Yt(n,te=>vt(C,te??I)),M=Yt(i,te=>vt(C,te??I)),z=v.r||v.radius||v.borderRadius||"md",j=W6(e);c.useEffect(()=>{!Ne.isNil(j)&&j!==e&&(k(!0),E(!1))},[e,j]);const H=()=>{k(!1)},se=()=>{E(!0),k(!1)};return m.jsx(L,{display:"flex",alignItems:"center",justifyContent:"center",width:$,height:M,overflow:"hidden",style:s,"data-testid":a,...v,children:m.jsxs(Zi,{visible:R,width:$,height:M,r:z,children:[T&&m.jsxs(L,{width:$,height:M,r:z,display:"flex",alignItems:"center",justifyContent:"center",bgColor:"grey200",children:[!R&&d,!R&&!d&&!l&&m.jsx(Qe,{fontSize:"xs",color:"grey600",children:d||l}),!R&&!d&&!l&&K6()]}),!T&&(!Ct()||!f)&&m.jsx(Y6,{src:e,alt:Ne.isString(l)?l:"Image",onLoad:H,onError:se,"data-testid":a?`${a}-image`:void 0,$objectFit:h,$objectPosition:p,$aspectRatio:x,$mixBlendMode:w,$imageRendering:_}),!T&&Ct()&&f&&l]})})},G0=({art:e,width:n,height:i,style:s,"data-testid":a,...l})=>{const d=be(),f=d.__hd__.art.defaultSvgSize||d.__hd__.art.defaultSize,h=vt(d,n??f),p=vt(d,i??f);return m.jsx(L,{display:"flex",alignItems:"center",justifyContent:"center",width:h,height:p,overflow:"hidden",style:s,"data-testid":a,dangerouslySetInnerHTML:{__html:e},...l})},gt=e=>{const{art:n,type:i}=e;return i==="image"||Ne.isString(n)&&I0(n)?m.jsx(U0,{...e}):i==="svg"||Ne.isString(n)&&M0(n)?m.jsx(G0,{...e}):i==="emoji"||Ne.isString(n)&&T0(n)?m.jsx(O0,{...e}):i==="icon"||Ne.isString(n)&&R0(n)?m.jsx(xl,{...e}):i==="brand"?m.jsx(F0,{...e}):m.jsx(m.Fragment,{})},X6=e=>e==="sm"||e==="md"||e==="lg",q0=({src:e,name:n,size:i,...s})=>{var x;const a=be(),l=a.__hd__.avatar,d=i||l.defaultSize,f=vt(a,d);let h=l.defaultFallbackTextSize;typeof d=="string"&&X6(d)&&l.sizes[d]&&(h=l.sizes[d].fallbackTextSize);const p=l.fallbackBackgroundColor;return m.jsx(L,{width:f,height:f,r:"full",overflow:"hidden",display:"flex",alignItems:"center",justifyContent:"center",...s,children:e?m.jsx(gt,{type:"image",art:e,width:"100%",height:"100%",objectFit:"cover"}):m.jsx(L,{width:"100%",height:"100%",bgColor:p,display:"flex",justifyContent:"center",alignItems:"center",children:m.jsx(Qe,{color:"white",fontSize:h,fontWeight:"semibold",children:((x=n==null?void 0:n.charAt(0))==null?void 0:x.toUpperCase())||"U"})})})};function Q6(e){const[n,i]=c.useState(()=>(Ct(),!1));return c.useEffect(()=>{if(Ct())return;const s=window.matchMedia(e),a=l=>{i(l.matches)};return s.addEventListener?s.addEventListener("change",a):s.addListener(a),i(s.matches),()=>{s.removeEventListener?s.removeEventListener("change",a):s.removeListener(a)}},[e]),n}const ti=(e="xl")=>{const[n,i]=c.useState(()=>(typeof window>"u"||!window.matchMedia,e));return c.useEffect(()=>{if(Ct())return;const a=["xl","lg","md","sm"].map(f=>({key:f,mql:window.matchMedia(`(min-width: ${Hi[f]}px)`)})),l=()=>{for(const{key:f,mql:h}of a)if(h.matches)return f;return"xs"},d=()=>{i(l())};return d(),a.forEach(({mql:f})=>{f.addEventListener?f.addEventListener("change",d):f.addListener(d)}),()=>{a.forEach(({mql:f})=>{f.removeEventListener?f.removeEventListener("change",d):f.removeListener(d)})}},[]),n};function J6(){const{innerWidth:e,innerHeight:n}=window;return{width:e,height:n}}const K0=()=>{const[e,n]=c.useState(()=>Ct()?{width:void 0,height:void 0}:{width:void 0,height:void 0});return c.useEffect(()=>{if(Ct())return;function i(){n(J6())}return i(),window.addEventListener("resize",i),()=>window.removeEventListener("resize",i)},[]),e},vr=typeof window<"u"?c.useLayoutEffect:c.useEffect;function el(e,n,i,s){const a=c.useRef(n);vr(()=>{a.current=n},[n]),c.useEffect(()=>{const l=(i==null?void 0:i.current)??window;if(!(l&&l.addEventListener))return;const d=f=>{a.current(f)};return l.addEventListener(e,d,s),()=>{l.removeEventListener(e,d,s)}},[e,i,s])}function fs(e){const[n,i]=c.useState(!1),s=ti(),a=s==="xs"||s==="sm",l=()=>{a||i(!0)},d=()=>{a||i(!1)};return el("mouseenter",l,e),el("mouseleave",d,e),a?!1:n}const ev=()=>typeof window>"u"||!window.navigator?{isMouse:!0,isTouch:!1}:window.matchMedia("(any-pointer: fine)").matches?{isMouse:!0,isTouch:!1}:window.matchMedia("(any-pointer: coarse)").matches?{isMouse:!1,isTouch:!0}:{isMouse:!0,isTouch:!1};function Sl(){const[e,n]=c.useState(ev);return c.useEffect(()=>{const i=s=>{s.pointerType==="touch"?e.isTouch||n({isMouse:!1,isTouch:!0}):s.pointerType==="mouse"&&(e.isMouse||n({isMouse:!0,isTouch:!1}))};return window.addEventListener("pointerdown",i,{passive:!0}),()=>{window.removeEventListener("pointerdown",i)}},[e]),e}var tv="2.0.3",tl=500,Bd="user-agent",Kr="",Hd="?",ts="function",er="undefined",Yr="object",nl="string",Dt="browser",On="cpu",Cn="device",gn="engine",cn="os",Ur="result",Q="name",V="type",X="vendor",J="version",Pt="architecture",Di="major",q="model",Fi="console",Me="mobile",et="tablet",pt="smarttv",_n="wearable",Ia="xr",Oi="embedded",Si="inapp",El="brands",br="formFactors",kl="fullVersionList",Gr="platform",$l="platformVersion",hs="bitness",nr="sec-ch-ua",nv=nr+"-full-version-list",rv=nr+"-arch",iv=nr+"-"+hs,ov=nr+"-form-factors",sv=nr+"-"+Me,av=nr+"-"+q,Y0=nr+"-"+Gr,lv=Y0+"-version",X0=[El,kl,Me,q,Gr,$l,Pt,br,hs],jo="Amazon",Br="Apple",Zd="ASUS",Vd="BlackBerry",gr="Google",Nd="Huawei",Ud="Lenovo",Gd="Honor",Do="LG",Ma="Microsoft",Fa="Motorola",Oa="Nvidia",qd="OnePlus",za="OPPO",Ei="Samsung",Kd="Sharp",ki="Sony",La="Xiaomi",ja="Zebra",Yd="Chrome",Xd="Chromium",Xn="Chromecast",cv="Edge",$i="Firefox",Ai="Opera",Da="Facebook",Qd="Sogou",Hr="Mobile ",Ti=" Browser",rl="Windows",uv=typeof window!==er,Wt=uv&&window.navigator?window.navigator:void 0,Qn=Wt&&Wt.userAgentData?Wt.userAgentData:void 0,dv=function(e,n){var i={},s=n;if(!ns(n)){s={};for(var a in n)for(var l in n[a])s[l]=n[a][l].concat(s[l]?s[l]:[])}for(var d in e)i[d]=s[d]&&s[d].length%2===0?s[d].concat(e[d]):e[d];return i},ps=function(e){for(var n={},i=0;i<e.length;i++)n[e[i].toUpperCase()]=e[i];return n},il=function(e,n){if(typeof e===Yr&&e.length>0){for(var i in e)if(zn(e[i])==zn(n))return!0;return!1}return ni(e)?zn(n).indexOf(zn(e))!==-1:!1},ns=function(e,n){for(var i in e)return/^(browser|cpu|device|engine|os)$/.test(i)||(n?ns(e[i]):!1)},ni=function(e){return typeof e===nl},Pa=function(e){if(e){for(var n=[],i=Xr(/\\?\"/g,e).split(","),s=0;s<i.length;s++)if(i[s].indexOf(";")>-1){var a=Pi(i[s]).split(";v=");n[s]={brand:a[0],version:a[1]}}else n[s]=Pi(i[s]);return n}},zn=function(e){return ni(e)?e.toLowerCase():e},Wa=function(e){return ni(e)?Xr(/[^\d\.]/g,e).split(".")[0]:void 0},Ln=function(e){for(var n in e){var i=e[n];typeof i==Yr&&i.length==2?this[i[0]]=i[1]:this[i]=void 0}return this},Xr=function(e,n){return ni(n)?n.replace(e,Kr):n},Ri=function(e){return Xr(/\\?\"/g,e)},Pi=function(e,n){if(ni(e))return e=Xr(/^\s\s*/,e),typeof n===er?e:e.substring(0,tl)},Ba=function(e,n){if(!(!e||!n))for(var i=0,s,a,l,d,f,h;i<n.length&&!f;){var p=n[i],x=n[i+1];for(s=a=0;s<p.length&&!f&&p[s];)if(f=p[s++].exec(e),f)for(l=0;l<x.length;l++)h=f[++a],d=x[l],typeof d===Yr&&d.length>0?d.length===2?typeof d[1]==ts?this[d[0]]=d[1].call(this,h):this[d[0]]=d[1]:d.length===3?typeof d[1]===ts&&!(d[1].exec&&d[1].test)?this[d[0]]=h?d[1].call(this,h,d[2]):void 0:this[d[0]]=h?h.replace(d[1],d[2]):void 0:d.length===4&&(this[d[0]]=h?d[3].call(this,h.replace(d[1],d[2])):void 0):this[d]=h||void 0;i+=2}},Jn=function(e,n){for(var i in n)if(typeof n[i]===Yr&&n[i].length>0){for(var s=0;s<n[i].length;s++)if(il(n[i][s],e))return i===Hd?void 0:i}else if(il(n[i],e))return i===Hd?void 0:i;return n.hasOwnProperty("*")?n["*"]:e},Jd={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2","8.1":"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},ef={embedded:"Automotive",mobile:"Mobile",tablet:["Tablet","EInk"],smarttv:"TV",wearable:"Watch",xr:["VR","XR"],"?":["Desktop","Unknown"],"*":void 0},tf={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[J,[Q,Hr+"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[J,[Q,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[Q,J],[/opios[\/ ]+([\w\.]+)/i],[J,[Q,Ai+" Mini"]],[/\bop(?:rg)?x\/([\w\.]+)/i],[J,[Q,Ai+" GX"]],[/\bopr\/([\w\.]+)/i],[J,[Q,Ai]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[J,[Q,"Baidu"]],[/\b(?:mxbrowser|mxios|myie2)\/?([-\w\.]*)\b/i],[J,[Q,"Maxthon"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer|sleipnir)[\/ ]?([\w\.]*)/i,/(avant|iemobile|slim(?:browser|boat|jet))[\/ ]?([\d\.]*)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|duckduckgo|klar|helio|(?=comodo_)?dragon|otter|dooble|(?:lg |qute)browser)\/([-\w\.]+)/i,/(heytap|ovi|115|surf)browser\/([\d\.]+)/i,/(ecosia|weibo)(?:__| \w+@)([\d\.]+)/i],[Q,J],[/quark(?:pc)?\/([-\w\.]+)/i],[J,[Q,"Quark"]],[/\bddg\/([\w\.]+)/i],[J,[Q,"DuckDuckGo"]],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[J,[Q,"UCBrowser"]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[J,[Q,"WeChat"]],[/konqueror\/([\w\.]+)/i],[J,[Q,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[J,[Q,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[J,[Q,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[J,[Q,"Smart "+Ud+Ti]],[/(avast|avg)\/([\w\.]+)/i],[[Q,/(.+)/,"$1 Secure"+Ti],J],[/\bfocus\/([\w\.]+)/i],[J,[Q,$i+" Focus"]],[/\bopt\/([\w\.]+)/i],[J,[Q,Ai+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[J,[Q,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[J,[Q,"Dolphin"]],[/coast\/([\w\.]+)/i],[J,[Q,Ai+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[J,[Q,"MIUI"+Ti]],[/fxios\/([\w\.-]+)/i],[J,[Q,Hr+$i]],[/\bqihoobrowser\/?([\w\.]*)/i],[J,[Q,"360"]],[/\b(qq)\/([\w\.]+)/i],[[Q,/(.+)/,"$1Browser"],J],[/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i],[[Q,/(.+)/,"$1"+Ti],J],[/samsungbrowser\/([\w\.]+)/i],[J,[Q,Ei+" Internet"]],[/metasr[\/ ]?([\d\.]+)/i],[J,[Q,Qd+" Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[Q,Qd+" Mobile"],J],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345(?=browser|chrome|explorer))\w*[\/ ]?v?([\w\.]+)/i],[Q,J],[/(lbbrowser|rekonq)/i],[Q],[/ome\/([\w\.]+) \w* ?(iron) saf/i,/ome\/([\w\.]+).+qihu (360)[es]e/i],[J,Q],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[Q,Da],J,[V,Si]],[/(Klarna)\/([\w\.]+)/i,/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/(daum)apps[\/ ]([\w\.]+)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(alipay)client\/([\w\.]+)/i,/(twitter)(?:and| f.+e\/([\w\.]+))/i,/(instagram|snapchat)[\/ ]([-\w\.]+)/i],[Q,J,[V,Si]],[/\bgsa\/([\w\.]+) .*safari\//i],[J,[Q,"GSA"],[V,Si]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[J,[Q,"TikTok"],[V,Si]],[/\[(linkedin)app\]/i],[Q,[V,Si]],[/(chromium)[\/ ]([-\w\.]+)/i],[Q,J],[/headlesschrome(?:\/([\w\.]+)| )/i],[J,[Q,Yd+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[Q,Yd+" WebView"],J],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[J,[Q,"Android"+Ti]],[/chrome\/([\w\.]+) mobile/i],[J,[Q,Hr+"Chrome"]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[Q,J],[/version\/([\w\.\,]+) .*mobile(?:\/\w+ | ?)safari/i],[J,[Q,Hr+"Safari"]],[/iphone .*mobile(?:\/\w+ | ?)safari/i],[[Q,Hr+"Safari"]],[/version\/([\w\.\,]+) .*(safari)/i],[J,Q],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[Q,[J,"1"]],[/(webkit|khtml)\/([\w\.]+)/i],[Q,J],[/(?:mobile|tablet);.*(firefox)\/([\w\.-]+)/i],[[Q,Hr+$i],J],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[Q,"Netscape"],J],[/(wolvic|librewolf)\/([\w\.]+)/i],[Q,J],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[J,[Q,$i+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(amaya|dillo|doris|icab|ladybird|lynx|mosaic|netsurf|obigo|polaris|w3m|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/\b(links) \(([\w\.]+)/i],[Q,[J,/_/g,"."]],[/(cobalt)\/([\w\.]+)/i],[Q,[J,/[^\d\.]+./,Kr]]],cpu:[[/\b((amd|x|x86[-_]?|wow|win)64)\b/i],[[Pt,"amd64"]],[/(ia32(?=;))/i,/\b((i[346]|x)86)(pc)?\b/i],[[Pt,"ia32"]],[/\b(aarch64|arm(v?[89]e?l?|_?64))\b/i],[[Pt,"arm64"]],[/\b(arm(v[67])?ht?n?[fl]p?)\b/i],[[Pt,"armhf"]],[/( (ce|mobile); ppc;|\/[\w\.]+arm\b)/i],[[Pt,"arm"]],[/((ppc|powerpc)(64)?)( mac|;|\))/i],[[Pt,/ower/,Kr,zn]],[/ sun4\w[;\)]/i],[[Pt,"sparc"]],[/\b(avr32|ia64(?=;)|68k(?=\))|\barm(?=v([1-7]|[5-7]1)l?|;|eabi)|(irix|mips|sparc)(64)?\b|pa-risc)/i],[[Pt,zn]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[q,[X,Ei],[V,et]],[/\b((?:s[cgp]h|gt|sm)-(?![lr])\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]((?!sm-[lr])[-\w]+)/i,/sec-(sgh\w+)/i],[q,[X,Ei],[V,Me]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[q,[X,Br],[V,Me]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[q,[X,Br],[V,et]],[/(macintosh);/i],[q,[X,Br]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[q,[X,Kd],[V,Me]],[/\b((?:brt|eln|hey2?|gdi|jdn)-a?[lnw]09|(?:ag[rm]3?|jdn2|kob2)-a?[lw]0[09]hn)(?: bui|\)|;)/i],[q,[X,Gd],[V,et]],[/honor([-\w ]+)[;\)]/i],[q,[X,Gd],[V,Me]],[/\b((?:ag[rs][2356]?k?|bah[234]?|bg[2o]|bt[kv]|cmr|cpn|db[ry]2?|jdn2|got|kob2?k?|mon|pce|scm|sht?|[tw]gr|vrd)-[ad]?[lw][0125][09]b?|605hw|bg2-u03|(?:gem|fdr|m2|ple|t1)-[7a]0[1-4][lu]|t1-a2[13][lw]|mediapad[\w\. ]*(?= bui|\)))\b(?!.+d\/s)/i],[q,[X,Nd],[V,et]],[/(?:huawei)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[q,[X,Nd],[V,Me]],[/oid[^\)]+; (2[\dbc]{4}(182|283|rp\w{2})[cgl]|m2105k81a?c)(?: bui|\))/i,/\b((?:red)?mi[-_ ]?pad[\w- ]*)(?: bui|\))/i],[[q,/_/g," "],[X,La],[V,et]],[/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite|pro)?)(?: bui|\))/i,/ ([\w ]+) miui\/v?\d/i],[[q,/_/g," "],[X,La],[V,Me]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[q,[X,za],[V,Me]],[/\b(opd2(\d{3}a?))(?: bui|\))/i],[q,[X,Jn,{OnePlus:["304","403","203"],"*":za}],[V,et]],[/(vivo (5r?|6|8l?|go|one|s|x[il]?[2-4]?)[\w\+ ]*)(?: bui|\))/i],[q,[X,"BLU"],[V,Me]],[/; vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[q,[X,"Vivo"],[V,Me]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[q,[X,"Realme"],[V,Me]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto(?! 360)[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[q,[X,Fa],[V,Me]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[q,[X,Fa],[V,et]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[q,[X,Do],[V,et]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+(?!.*(?:browser|netcast|android tv|watch))(\w+)/i,/\blg-?([\d\w]+) bui/i],[q,[X,Do],[V,Me]],[/(ideatab[-\w ]+|602lv|d-42a|a101lv|a2109a|a3500-hv|s[56]000|pb-6505[my]|tb-?x?\d{3,4}(?:f[cu]|xu|[av])|yt\d?-[jx]?\d+[lfmx])( bui|;|\)|\/)/i,/lenovo ?(b[68]0[08]0-?[hf]?|tab(?:[\w- ]+?)|tb[\w-]{6,7})( bui|;|\)|\/)/i],[q,[X,Ud],[V,et]],[/(nokia) (t[12][01])/i],[X,q,[V,et]],[/(?:maemo|nokia).*(n900|lumia \d+|rm-\d+)/i,/nokia[-_ ]?(([-\w\. ]*))/i],[[q,/_/g," "],[V,Me],[X,"Nokia"]],[/(pixel (c|tablet))\b/i],[q,[X,gr],[V,et]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[q,[X,gr],[V,Me]],[/droid.+; (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[q,[X,ki],[V,Me]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[q,"Xperia Tablet"],[X,ki],[V,et]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[q,[X,qd],[V,Me]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[q,[X,jo],[V,et]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[q,/(.+)/g,"Fire Phone $1"],[X,jo],[V,Me]],[/(playbook);[-\w\),; ]+(rim)/i],[q,X,[V,et]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[q,[X,Vd],[V,Me]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[q,[X,Zd],[V,et]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[q,[X,Zd],[V,Me]],[/(nexus 9)/i],[q,[X,"HTC"],[V,et]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[X,[q,/_/g," "],[V,Me]],[/tcl (xess p17aa)/i,/droid [\w\.]+; ((?:8[14]9[16]|9(?:0(?:48|60|8[01])|1(?:3[27]|66)|2(?:6[69]|9[56])|466))[gqswx])(_\w(\w|\w\w))?(\)| bui)/i],[q,[X,"TCL"],[V,et]],[/droid [\w\.]+; (418(?:7d|8v)|5087z|5102l|61(?:02[dh]|25[adfh]|27[ai]|56[dh]|59k|65[ah])|a509dl|t(?:43(?:0w|1[adepqu])|50(?:6d|7[adju])|6(?:09dl|10k|12b|71[efho]|76[hjk])|7(?:66[ahju]|67[hw]|7[045][bh]|71[hk]|73o|76[ho]|79w|81[hks]?|82h|90[bhsy]|99b)|810[hs]))(_\w(\w|\w\w))?(\)| bui)/i],[q,[X,"TCL"],[V,Me]],[/(itel) ((\w+))/i],[[X,zn],q,[V,Jn,{tablet:["p10001l","w7001"],"*":"mobile"}]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[q,[X,"Acer"],[V,et]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[q,[X,"Meizu"],[V,Me]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[q,[X,"Ulefone"],[V,Me]],[/; (energy ?\w+)(?: bui|\))/i,/; energizer ([\w ]+)(?: bui|\))/i],[q,[X,"Energizer"],[V,Me]],[/; cat (b35);/i,/; (b15q?|s22 flip|s48c|s62 pro)(?: bui|\))/i],[q,[X,"Cat"],[V,Me]],[/((?:new )?andromax[\w- ]+)(?: bui|\))/i],[q,[X,"Smartfren"],[V,Me]],[/droid.+; (a(?:015|06[35]|142p?))/i],[q,[X,"Nothing"],[V,Me]],[/; (x67 5g|tikeasy \w+|ac[1789]\d\w+)( b|\))/i,/archos ?(5|gamepad2?|([\w ]*[t1789]|hello) ?\d+[\w ]*)( b|\))/i],[q,[X,"Archos"],[V,et]],[/archos ([\w ]+)( b|\))/i,/; (ac[3-6]\d\w{2,8})( b|\))/i],[q,[X,"Archos"],[V,Me]],[/(imo) (tab \w+)/i,/(infinix) (x1101b?)/i],[X,q,[V,et]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus(?! zenw)|dell|jolla|meizu|motorola|polytron|infinix|tecno|micromax|advan)[-_ ]?([-\w]*)/i,/; (blu|hmd|imo|tcl)[_ ]([\w\+ ]+?)(?: bui|\)|; r)/i,/(hp) ([\w ]+\w)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w ]+?)(?: bui|\)|\/)/i,/(oppo) ?([\w ]+) bui/i],[X,q,[V,Me]],[/(kobo)\s(ereader|touch)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i],[X,q,[V,et]],[/(surface duo)/i],[q,[X,Ma],[V,et]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[q,[X,"Fairphone"],[V,Me]],[/((?:tegranote|shield t(?!.+d tv))[\w- ]*?)(?: b|\))/i],[q,[X,Oa],[V,et]],[/(sprint) (\w+)/i],[X,q,[V,Me]],[/(kin\.[onetw]{3})/i],[[q,/\./g," "],[X,Ma],[V,Me]],[/droid.+; ([c6]+|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[q,[X,ja],[V,et]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[q,[X,ja],[V,Me]],[/smart-tv.+(samsung)/i],[X,[V,pt]],[/hbbtv.+maple;(\d+)/i],[[q,/^/,"SmartTV"],[X,Ei],[V,pt]],[/tcast.+(lg)e?. ([-\w]+)/i],[X,q,[V,pt]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[X,Do],[V,pt]],[/(apple) ?tv/i],[X,[q,Br+" TV"],[V,pt]],[/crkey.*devicetype\/chromecast/i],[[q,Xn+" Third Generation"],[X,gr],[V,pt]],[/crkey.*devicetype\/([^/]*)/i],[[q,/^/,"Chromecast "],[X,gr],[V,pt]],[/fuchsia.*crkey/i],[[q,Xn+" Nest Hub"],[X,gr],[V,pt]],[/crkey/i],[[q,Xn],[X,gr],[V,pt]],[/(portaltv)/i],[q,[X,Da],[V,pt]],[/droid.+aft(\w+)( bui|\))/i],[q,[X,jo],[V,pt]],[/(shield \w+ tv)/i],[q,[X,Oa],[V,pt]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[q,[X,Kd],[V,pt]],[/(bravia[\w ]+)( bui|\))/i],[q,[X,ki],[V,pt]],[/(mi(tv|box)-?\w+) bui/i],[q,[X,La],[V,pt]],[/Hbbtv.*(technisat) (.*);/i],[X,q,[V,pt]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[X,Pi],[q,Pi],[V,pt]],[/droid.+; ([\w- ]+) (?:android tv|smart[- ]?tv)/i],[q,[V,pt]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[V,pt]],[/(ouya)/i,/(nintendo) (\w+)/i],[X,q,[V,Fi]],[/droid.+; (shield)( bui|\))/i],[q,[X,Oa],[V,Fi]],[/(playstation \w+)/i],[q,[X,ki],[V,Fi]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[q,[X,Ma],[V,Fi]],[/\b(sm-[lr]\d\d[0156][fnuw]?s?|gear live)\b/i],[q,[X,Ei],[V,_n]],[/((pebble))app/i,/(asus|google|lg|oppo) ((pixel |zen)?watch[\w ]*)( bui|\))/i],[X,q,[V,_n]],[/(ow(?:19|20)?we?[1-3]{1,3})/i],[q,[X,za],[V,_n]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[q,[X,Br],[V,_n]],[/(opwwe\d{3})/i],[q,[X,qd],[V,_n]],[/(moto 360)/i],[q,[X,Fa],[V,_n]],[/(smartwatch 3)/i],[q,[X,ki],[V,_n]],[/(g watch r)/i],[q,[X,Do],[V,_n]],[/droid.+; (wt63?0{2,3})\)/i],[q,[X,ja],[V,_n]],[/droid.+; (glass) \d/i],[q,[X,gr],[V,Ia]],[/(pico) (4|neo3(?: link|pro)?)/i],[X,q,[V,Ia]],[/(quest( \d| pro)?s?).+vr/i],[q,[X,Da],[V,Ia]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[X,[V,Oi]],[/(aeobc)\b/i],[q,[X,jo],[V,Oi]],[/(homepod).+mac os/i],[q,[X,Br],[V,Oi]],[/windows iot/i],[[V,Oi]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+?(mobile|vr|\d) safari/i],[q,[V,Jn,{mobile:"Mobile",xr:"VR","*":et}]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[V,et]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[V,Me]],[/droid .+?; ([\w\. -]+)( bui|\))/i],[q,[X,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[J,[Q,cv+"HTML"]],[/(arkweb)\/([\w\.]+)/i],[Q,J],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[J,[Q,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna|servo)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[Q,J],[/ladybird\//i],[[Q,"LibWeb"]],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[J,Q]],os:[[/microsoft (windows) (vista|xp)/i],[Q,J],[/(windows (?:phone(?: os)?|mobile|iot))[\/ ]?([\d\.\w ]*)/i],[Q,[J,Jn,Jd]],[/windows nt 6\.2; (arm)/i,/windows[\/ ]([ntce\d\. ]+\w)(?!.+xbox)/i,/(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[J,Jn,Jd],[Q,rl]],[/[adehimnop]{4,7}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[J,/_/g,"."],[Q,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[Q,"macOS"],[J,/_/g,"."]],[/android ([\d\.]+).*crkey/i],[J,[Q,Xn+" Android"]],[/fuchsia.*crkey\/([\d\.]+)/i],[J,[Q,Xn+" Fuchsia"]],[/crkey\/([\d\.]+).*devicetype\/smartspeaker/i],[J,[Q,Xn+" SmartSpeaker"]],[/linux.*crkey\/([\d\.]+)/i],[J,[Q,Xn+" Linux"]],[/crkey\/([\d\.]+)/i],[J,[Q,Xn]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[J,Q],[/(ubuntu) ([\w\.]+) like android/i],[[Q,/(.+)/,"$1 Touch"],J],[/(android|bada|blackberry|kaios|maemo|meego|openharmony|qnx|rim tablet os|sailfish|series40|symbian|tizen|webos)\w*[-\/\.; ]?([\d\.]*)/i],[Q,J],[/\(bb(10);/i],[J,[Q,Vd]],[/(?:symbian ?os|symbos|s60(?=;)|series ?60)[-\/ ]?([\w\.]*)/i],[J,[Q,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[J,[Q,$i+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[J,[Q,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[J,[Q,"watchOS"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[Q,"Chrome OS"],J],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) (\w+)/i,/(xbox); +xbox ([^\);]+)/i,/(pico) .+os([\w\.]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux)(?: arm\w*| x86\w*| ?)([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[Q,J],[/(sunos) ?([\w\.\d]*)/i],[[Q,"Solaris"],J],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[Q,J]]},Po=function(){var e={init:{},isIgnore:{},isIgnoreRgx:{},toString:{}};return Ln.call(e.init,[[Dt,[Q,J,Di,V]],[On,[Pt]],[Cn,[V,q,X]],[gn,[Q,J]],[cn,[Q,J]]]),Ln.call(e.isIgnore,[[Dt,[J,Di]],[gn,[J]],[cn,[J]]]),Ln.call(e.isIgnoreRgx,[[Dt,/ ?browser$/i],[cn,/ ?os$/i]]),Ln.call(e.toString,[[Dt,[Q,J]],[On,[Pt]],[Cn,[X,q]],[gn,[Q,J]],[cn,[Q,J]]]),e}(),fv=function(e,n){var i=Po.init[n],s=Po.isIgnore[n]||0,a=Po.isIgnoreRgx[n]||0,l=Po.toString[n]||0;function d(){Ln.call(this,i)}return d.prototype.getItem=function(){return e},d.prototype.withClientHints=function(){return Qn?Qn.getHighEntropyValues(X0).then(function(f){return e.setCH(new Q0(f,!1)).parseCH().get()}):e.parseCH().get()},d.prototype.withFeatureCheck=function(){return e.detectFeature().get()},n!=Ur&&(d.prototype.is=function(f){var h=!1;for(var p in this)if(this.hasOwnProperty(p)&&!il(s,p)&&zn(a?Xr(a,this[p]):this[p])==zn(a?Xr(a,f):f)){if(h=!0,f!=er)break}else if(f==er&&h){h=!h;break}return h},d.prototype.toString=function(){var f=Kr;for(var h in l)typeof this[l[h]]!==er&&(f+=(f?" ":Kr)+this[l[h]]);return f||er}),Qn||(d.prototype.then=function(f){var h=this,p=function(){for(var w in h)h.hasOwnProperty(w)&&(this[w]=h[w])};p.prototype={is:d.prototype.is,toString:d.prototype.toString};var x=new p;return f(x),x}),new d};function Q0(e,n){if(e=e||{},Ln.call(this,X0),n)Ln.call(this,[[El,Pa(e[nr])],[kl,Pa(e[nv])],[Me,/\?1/.test(e[sv])],[q,Ri(e[av])],[Gr,Ri(e[Y0])],[$l,Ri(e[lv])],[Pt,Ri(e[rv])],[br,Pa(e[ov])],[hs,Ri(e[iv])]]);else for(var i in e)this.hasOwnProperty(i)&&typeof e[i]!==er&&(this[i]=e[i])}function nf(e,n,i,s){return this.get=function(a){return a?this.data.hasOwnProperty(a)?this.data[a]:void 0:this.data},this.set=function(a,l){return this.data[a]=l,this},this.setCH=function(a){return this.uaCH=a,this},this.detectFeature=function(){if(Wt&&Wt.userAgent==this.ua)switch(this.itemType){case Dt:Wt.brave&&typeof Wt.brave.isBrave==ts&&this.set(Q,"Brave");break;case Cn:!this.get(V)&&Qn&&Qn[Me]&&this.set(V,Me),this.get(q)=="Macintosh"&&Wt&&typeof Wt.standalone!==er&&Wt.maxTouchPoints&&Wt.maxTouchPoints>2&&this.set(q,"iPad").set(V,et);break;case cn:!this.get(Q)&&Qn&&Qn[Gr]&&this.set(Q,Qn[Gr]);break;case Ur:var a=this.data,l=function(d){return a[d].getItem().detectFeature().get()};this.set(Dt,l(Dt)).set(On,l(On)).set(Cn,l(Cn)).set(gn,l(gn)).set(cn,l(cn))}return this},this.parseUA=function(){return this.itemType!=Ur&&Ba.call(this.data,this.ua,this.rgxMap),this.itemType==Dt&&this.set(Di,Wa(this.get(J))),this},this.parseCH=function(){var a=this.uaCH,l=this.rgxMap;switch(this.itemType){case Dt:case gn:var d=a[kl]||a[El],f;if(d)for(var h in d){var p=d[h].brand||d[h],x=d[h].version;this.itemType==Dt&&!/not.a.brand/i.test(p)&&(!f||/chrom/i.test(f)&&p!=Xd)&&(p=Jn(p,{Chrome:"Google Chrome",Edge:"Microsoft Edge","Chrome WebView":"Android WebView","Chrome Headless":"HeadlessChrome","Huawei Browser":"HuaweiBrowser","MIUI Browser":"Miui Browser","Opera Mobi":"OperaMobile",Yandex:"YaBrowser"}),this.set(Q,p).set(J,x).set(Di,Wa(x)),f=p),this.itemType==gn&&p==Xd&&this.set(J,x)}break;case On:var w=a[Pt];w&&(w&&a[hs]=="64"&&(w+="64"),Ba.call(this.data,w+";",l));break;case Cn:if(a[Me]&&this.set(V,Me),a[q]&&(this.set(q,a[q]),!this.get(V)||!this.get(X))){var _={};Ba.call(_,"droid 9; "+a[q]+")",l),!this.get(V)&&_.type&&this.set(V,_.type),!this.get(X)&&_.vendor&&this.set(X,_.vendor)}if(a[br]){var v;if(typeof a[br]!="string")for(var C=0;!v&&C<a[br].length;)v=Jn(a[br][C++],ef);else v=Jn(a[br],ef);this.set(V,v)}break;case cn:var R=a[Gr];if(R){var k=a[$l];R==rl&&(k=parseInt(Wa(k),10)>=13?"11":"10"),this.set(Q,R).set(J,k)}this.get(Q)==rl&&a[q]=="Xbox"&&this.set(Q,"Xbox").set(J,void 0);break;case Ur:var T=this.data,E=function(I){return T[I].getItem().setCH(a).parseCH().get()};this.set(Dt,E(Dt)).set(On,E(On)).set(Cn,E(Cn)).set(gn,E(gn)).set(cn,E(cn))}return this},Ln.call(this,[["itemType",e],["ua",n],["uaCH",s],["rgxMap",i],["data",fv(this,e)]]),this}function Dn(e,n,i){if(typeof e===Yr?(ns(e,!0)?(typeof n===Yr&&(i=n),n=e):(i=e,n=void 0),e=void 0):typeof e===nl&&!ns(n,!0)&&(i=n,n=void 0),i&&typeof i.append===ts){var s={};i.forEach(function(h,p){s[p]=h}),i=s}if(!(this instanceof Dn))return new Dn(e,n,i).getResult();var a=typeof e===nl?e:i&&i[Bd]?i[Bd]:Wt&&Wt.userAgent?Wt.userAgent:Kr,l=new Q0(i,!0),d=n?dv(tf,n):tf,f=function(h){return h==Ur?function(){return new nf(h,a,d,l).set("ua",a).set(Dt,this.getBrowser()).set(On,this.getCPU()).set(Cn,this.getDevice()).set(gn,this.getEngine()).set(cn,this.getOS()).get()}:function(){return new nf(h,a,d[h],l).parseUA().get()}};return Ln.call(this,[["getBrowser",f(Dt)],["getCPU",f(On)],["getDevice",f(Cn)],["getEngine",f(gn)],["getOS",f(cn)],["getResult",f(Ur)],["getUA",function(){return a}],["setUA",function(h){return ni(h)&&(a=h.length>tl?Pi(h,tl):h),this}]]).setUA(a),this}Dn.VERSION=tv;Dn.BROWSER=ps([Q,J,Di,V]);Dn.CPU=ps([Pt]);Dn.DEVICE=ps([q,X,V,Fi,Me,pt,et,_n,Oi]);Dn.ENGINE=Dn.OS=ps([Q,J]);var J0=(e=>(e.Desktop="Desktop",e.Mobile="Mobile",e.Tablet="Tablet",e.SmartTV="Smart TV",e.Bot="Bot/Crawler",e.Unknown="Unknown",e))(J0||{}),e1=(e=>(e.Chrome="Chrome",e.Firefox="Firefox",e.Safari="Safari",e.Edge="Edge",e.IE="IE/Edge Legacy",e.Opera="Opera",e.Brave="Brave",e.Other="Other",e))(e1||{}),t1=(e=>(e.Windows="Windows",e.macOS="macOS",e.Linux="Linux",e.Android="Android",e.iOS="iOS",e.Other="Other",e))(t1||{});const ol=e=>{const i=new Dn(e).getResult(),a={deviceType:/bot|crawler|spider|crawling/i.test(e)?"Bot/Crawler":hv(i.device.type),browserName:pv(i.browser.name),osName:gv(i.os.name)},l=a.deviceType==="Mobile"||a.deviceType==="Tablet";return{...i,normalized:a,isMobile:l,isDesktop:!l}},hv=e=>{if(!e)return"Desktop";const n=e.toLowerCase();return n==="mobile"?"Mobile":n==="tablet"?"Tablet":n==="smarttv"?"Smart TV":"Unknown"},pv=e=>{if(!e)return"Other";const n=e.toLowerCase();return n.includes("brave")?"Brave":n.includes("edge")?"Edge":n.includes("opera")?"Opera":n.includes("ie")||n.includes("trident")?"IE/Edge Legacy":n.includes("chrome")?"Chrome":n.includes("firefox")?"Firefox":n.includes("safari")?"Safari":"Other"},gv=e=>{if(!e)return"Other";const n=e.toLowerCase();return n.includes("windows")?"Windows":n.includes("mac os")?"macOS":["ubuntu","debian","fedora","linux"].some(i=>n.includes(i))?"Linux":n.includes("android")?"Android":n.includes("ios")?"iOS":"Other"},mv=e=>{const[n,i]=c.useState(e?ol(e):void 0);return c.useEffect(()=>{n||i(ol(window.navigator.userAgent))},[n]),n};function Al({anchorRef:e,popupRef:n,offsetValue:i,isOpen:s,useFixedPosition:a=!1}){const l=c.useCallback(()=>{const d=e.current,f=n.current;if(!d||!f)return;const h=d.getBoundingClientRect(),p=f.getBoundingClientRect();if(a){let R=h.bottom+i,k=h.left;k+p.width>window.innerWidth-16&&(k=window.innerWidth-p.width-16),k<16&&(k=16);const T=window.innerHeight-h.bottom-i,E=h.top-i;T<p.height&&E>=p.height&&(R=h.top-p.height-i),f.style.position="fixed",f.style.inset=`${R}px auto auto ${k}px`;return}const x=d.offsetParent;if(!x)return;const w=x.getBoundingClientRect();let _=h.bottom-w.top+i,v=h.left-w.left;v+p.width>w.width-16&&(v=w.width-p.width-16),v<16&&(v=16);const C=h.top-w.top;_+p.height>w.height-16&&C>=p.height+i&&(_=h.top-w.top-p.height-i),f.style.inset=`${_}px auto auto ${v}px`},[e,n,i,a]);c.useLayoutEffect(()=>{s&&requestAnimationFrame(l)},[s,l]),c.useEffect(()=>{if(s)return window.addEventListener("resize",l),a&&window.addEventListener("scroll",l,!0),()=>{window.removeEventListener("resize",l),a&&window.removeEventListener("scroll",l,!0)}},[s,l,a])}const yv=ue(L)`
|
|
63
63
|
position: absolute;
|
|
64
64
|
top: 0;
|
|
65
65
|
left: 0;
|
|
@@ -147,7 +147,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
147
147
|
align-items: center;
|
|
148
148
|
margin-left: ${({theme:e,$themePosition:n,$iconSpacing:i})=>n==="right"?`${e.spaces[i]}px`:0};
|
|
149
149
|
margin-right: ${({theme:e,$themePosition:n,$iconSpacing:i,$hasText:s})=>n==="left"&&s?`${e.spaces[i]}px`:0};
|
|
150
|
-
`,sf=ue(
|
|
150
|
+
`,sf=ue(gt)`
|
|
151
151
|
transition: color 0.2s ease-in-out;
|
|
152
152
|
color: ${({theme:e,$themeColor:n,$themeTextColor:i,$variant:s,$disabled:a})=>gs(e,n,i,s,a)};
|
|
153
153
|
width: ${({theme:e,$iconSize:n})=>e.sizes[n]}px;
|
|
@@ -211,7 +211,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
211
211
|
opacity: 0;
|
|
212
212
|
`}
|
|
213
213
|
white-space: nowrap;
|
|
214
|
-
`,ms=({label:e,icon:n,iconSize:i,isActive:s,isLoading:a,dropdownItems:l=[],onClick:d,size:f="large",isDropdownOpen:h=!1,isDropdownItem:p=!1,onMouseEnter:x,onToggleDropdown:w,paddingX:_,paddingY:v,isRound:C=!1})=>{const R=be(),{isTouch:k}=Sl(),T=l.length>0,E=()=>{if(k&&T){h?d==null||d():w==null||w();return}d==null||d()},I=R.__hd__.header,$=I.navItem,M=s?$.active:$.inactive,z=c.useMemo(()=>p?"transparent":h?M.hoverBackgroundColor:M.backgroundColor,[p,h,M.backgroundColor,M.hoverBackgroundColor]);return m.jsxs(r1,{onClick:E,onMouseEnter:x,$themeBackgroundColor:z,$themeBoxShadow:!p&&h?M.hoverBoxShadow:"none",$themeHoverBackgroundColor:p?"transparent":M.hoverBackgroundColor,$themeHoverBoxShadow:p?"none":M.hoverBoxShadow,$themeHoverColor:$.active.backgroundColor,$themeRadius:$.radius,$themePaddingX:_??$.paddingX,$themePaddingY:v??$.paddingY,$gap:I.loadingGap,$isRound:C,children:[m.jsx(L,{display:"flex",justifyContent:"start",alignItems:"center",flex:1,children:m.jsxs(af,{$themeFontWeight:M.fontWeight,$themeFontSize:$[f].fontSize,$themeColor:M.color,$themeHoverColor:$.hover.color,$themeGap:$[f].gap,$themeHeight:$[f].containerHeight,$themeMinWidth:$[f].containerHeight,$isLoading:a??!1,children:[n&&m.jsx(pt,{type:"icon",art:n,size:i??$[f].iconSize}),e]})}),(l.length>0||h)&&m.jsxs(af,{$themeFontWeight:M.fontWeight,$themeFontSize:$[f].fontSize,$themeColor:M.color,$themeHoverColor:$.hover.color,$themeGap:$[f].gap,$themeHeight:$[f].containerHeight,$isLoading:a??!1,$isDropdownOpen:h,$isDropdownItem:p,children:[l.length>0&&m.jsx(_l,{size:16,weight:"bold"}),p&&m.jsx(ei,{rotate:45,size:16,weight:"bold"})]}),m.jsx(L,{display:"flex",alignItems:"center",justifyContent:"center",absoluteFill:!0,opacity:a?1:0,transition:"opacity 0.2s ease-in-out",children:m.jsx(Tl,{size:$[f].loadingSize,color:M.color})})]})};function Cv({userProfile:e,dropdownItems:n,maxHeight:i},s){const a=be(),l=a.__hd__.header.profileDropdown,[d,f]=c.useState(!1),h=c.useRef(null),p=c.useRef(null),x=Ne.isString(l.minWidth)&&xr(l.minWidth)?a.sizes[l.minWidth]:l.minWidth,w=Ne.isString(i)&&xr(i)?a.sizes[i]:i||l.defaultMaxHeight,_=()=>{h.current&&clearTimeout(h.current),p.current&&clearTimeout(p.current)},v=(R=()=>{})=>{_(),f(!0),h.current=setTimeout(R,l.animationDuration)},C=(R=()=>{})=>{_(),f(!1),p.current=setTimeout(R,l.animationDuration)};return c.useImperativeHandle(s,()=>({showDropdown:v,hideDropdown:C})),m.jsx(L,{position:"absolute",top:l.offset.top,right:l.offset.right,minWidth:x,zIndex:d?a.zIndex.getZIndex("AIC_Kits_Dropdown"):-1,opacity:d?1:0,transition:`opacity ${l.animationDuration}ms ease-in-out, z-index ${l.animationDuration}ms ease-in-out`,onMouseEnter:()=>v(),onMouseLeave:()=>C(),children:m.jsxs(L,{overflow:"hidden",mt:l.spacingTop,mr:l.containerPaddingRight,padding:l.padding,backgroundColor:l.backgroundColor,boxShadow:l.boxShadow,maxHeight:d?w:0,transition:`max-height ${l.animationDuration}ms ease-in-out`,style:{borderRadius:l.borderRadius},display:"flex",flexDirection:"column",children:[e!=null&&e.name?m.jsx(L,{py:l.padding,mx:"md",children:m.jsx(Qe,{textAlign:"left",children:e.name})}):m.jsx(L,{py:l.padding,mx:"md",children:m.jsx(Qe,{textAlign:"left",children:e==null?void 0:e.email})}),m.jsx(L,{p:l.padding,children:m.jsx(n1,{})}),n==null?void 0:n.map(R=>m.jsx(ms,{label:R.label,onClick:R.onClick,isActive:R.isActive,size:"medium",isDropdownItem:!0},R.label))]})})}const Sv=c.forwardRef(Cv),i1=({isSignedIn:e=!1,isDropdownVisible:n,setIsDropdownVisible:i,userProfile:s,dropdownItems:a,profileDropdownMaxHeight:l,onProfileClick:d,onSignInClick:f,onRegisterClick:h})=>{const p=be(),[x,w]=c.useState(!1),[_,v]=c.useState(!0),C=c.useDeferredValue(x),R=ti(),k=!Ct()&&R==="xs";c.useEffect(()=>{Ct()||(w(!k),setTimeout(()=>{v(!1)},300))},[k]);const T=p.__hd__.header.avatarSize||"md",E=c.useRef(null),I=()=>{var M;i(!0),(M=E.current)==null||M.showDropdown()},$=()=>{var M;(M=E.current)==null||M.hideDropdown(()=>{i(!1)})};return c.useEffect(()=>{n?I():$()},[n]),m.jsx(Zi,{display:"flex",visible:_,maxWidth:C?"100%":"0px",maxHeight:C?"100%":"0px",opacity:C?1:0,variant:"transparent",transition:"max-width 0.3s ease-in-out, opacity 0.3s ease-in-out",r:"lg",children:m.jsxs(L,{display:"flex",flexDirection:"row",alignItems:"center",children:[e?m.jsx(kt,{onClick:d,children:m.jsxs(L,{display:"flex",flexDirection:"row",alignItems:"center",p:"sm",r:"full",bgColor:"grey100",onMouseEnter:I,onMouseLeave:$,children:[m.jsx(q0,{src:s==null?void 0:s.avatar,name:s==null?void 0:s.name,size:T}),(s==null?void 0:s.name)&&m.jsx(L,{ml:"sm",children:m.jsx(Qe,{fontWeight:"medium",children:s.name})})]})}):m.jsxs(m.Fragment,{children:[m.jsx(L,{mr:"md",children:m.jsx(Qr,{text:"Sign in",variant:"text",color:"black",onClick:f})}),m.jsx(Qr,{text:"Register",color:"primary",corner:"rounded",onClick:h})]}),e&&m.jsx(Sv,{ref:E,userProfile:s,dropdownItems:a,maxHeight:l})]})})},Ev="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='500'%20zoomAndPan='magnify'%20viewBox='0%200%20375%20374.999991'%20height='500'%20preserveAspectRatio='xMidYMid%20meet'%20version='1.0'%3e%3cdefs%3e%3cg%3e%3c/g%3e%3c/defs%3e%3cg%20fill='%230a1420'%20fill-opacity='1'%3e%3cg%20transform='translate(66.308093,%20231.512278)'%3e%3cg%3e%3cpath%20d='M%2095.3125%20-19.625%20L%2098.71875%20-19.625%20L%2098.71875%200%20C%2097.832031%200.375%2096.851562%200.71875%2095.78125%201.03125%20C%2094.71875%201.351562%2093.554688%201.515625%2092.296875%201.515625%20C%2087.265625%201.515625%2082.734375%200.351562%2078.703125%20-1.96875%20C%2074.679688%20-4.300781%2071.472656%20-7.421875%2069.078125%20-11.328125%20C%2066.054688%20-7.421875%2062.375%20-4.300781%2058.03125%20-1.96875%20C%2053.695312%200.351562%2048.757812%201.515625%2043.21875%201.515625%20C%2036.300781%201.515625%2030.007812%20-0.242188%2024.34375%20-3.765625%20C%2018.6875%20-7.296875%2014.1875%20-12.015625%2010.84375%20-17.921875%20C%207.507812%20-23.835938%205.84375%20-30.445312%205.84375%20-37.75%20C%205.84375%20-45.050781%207.507812%20-51.65625%2010.84375%20-57.5625%20C%2014.1875%20-63.476562%2018.6875%20-68.195312%2024.34375%20-71.71875%20C%2030.007812%20-75.25%2036.300781%20-77.015625%2043.21875%20-77.015625%20C%2047.625%20-77.015625%2051.617188%20-76.289062%2055.203125%20-74.84375%20C%2058.796875%20-73.394531%2061.972656%20-71.410156%2064.734375%20-68.890625%20L%2064.734375%20-75.5%20L%2088.71875%20-75.5%20L%2088.71875%20-26.984375%20C%2088.71875%20-23.835938%2089.40625%20-21.820312%2090.78125%20-20.9375%20C%2092.164062%20-20.0625%2093.675781%20-19.625%2095.3125%20-19.625%20Z%20M%2047.9375%20-19.8125%20C%2052.84375%20-19.8125%2057.054688%20-21.539062%2060.578125%20-25%20C%2064.109375%20-28.46875%2065.875%20-32.71875%2065.875%20-37.75%20C%2065.875%20-42.78125%2064.109375%20-47.023438%2060.578125%20-50.484375%20C%2057.054688%20-53.953125%2052.84375%20-55.6875%2047.9375%20-55.6875%20C%2042.90625%20-55.6875%2038.660156%20-53.953125%2035.203125%20-50.484375%20C%2031.742188%20-47.023438%2030.015625%20-42.78125%2030.015625%20-37.75%20C%2030.015625%20-32.71875%2031.742188%20-28.46875%2035.203125%20-25%20C%2038.660156%20-21.539062%2042.90625%20-19.8125%2047.9375%20-19.8125%20Z%20M%2047.9375%20-19.8125%20'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/g%3e%3cg%20fill='%230a1420'%20fill-opacity='1'%3e%3cg%20transform='translate(167.850545,%20231.512278)'%3e%3cg%3e%3cpath%20d='M%2023.59375%20-88.140625%20C%2020.070312%20-88.140625%2016.988281%20-89.460938%2014.34375%20-92.109375%20C%2011.695312%20-94.753906%2010.375%20-97.835938%2010.375%20-101.359375%20C%2010.375%20-105.003906%2011.695312%20-108.117188%2014.34375%20-110.703125%20C%2016.988281%20-113.285156%2020.070312%20-114.578125%2023.59375%20-114.578125%20C%2027.238281%20-114.578125%2030.351562%20-113.285156%2032.9375%20-110.703125%20C%2035.519531%20-108.117188%2036.8125%20-105.003906%2036.8125%20-101.359375%20C%2036.8125%20-97.835938%2035.519531%20-94.753906%2032.9375%20-92.109375%20C%2030.351562%20-89.460938%2027.238281%20-88.140625%2023.59375%20-88.140625%20Z%20M%2011.515625%200%20L%2011.515625%20-75.5%20L%2035.484375%20-75.5%20L%2035.484375%200%20Z%20M%2011.515625%200%20'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/g%3e%3cg%20fill='%230a1420'%20fill-opacity='1'%3e%3cg%20transform='translate(215.035693,%20231.512278)'%3e%3cg%3e%3cpath%20d='M%2047.9375%201.515625%20C%2039.507812%201.515625%2032.148438%20-0.179688%2025.859375%20-3.578125%20C%2019.566406%20-6.984375%2014.65625%20-11.640625%2011.125%20-17.546875%20C%207.601562%20-23.460938%205.84375%20-30.195312%205.84375%20-37.75%20C%205.84375%20-45.300781%207.601562%20-52.03125%2011.125%20-57.9375%20C%2014.65625%20-63.851562%2019.566406%20-68.507812%2025.859375%20-71.90625%20C%2032.148438%20-75.3125%2039.507812%20-77.015625%2047.9375%20-77.015625%20C%2059.269531%20-77.015625%2068.582031%20-74.023438%2075.875%20-68.046875%20C%2083.175781%20-62.066406%2087.644531%20-54.359375%2089.28125%20-44.921875%20L%2064.359375%20-44.921875%20C%2063.097656%20-48.191406%2061.019531%20-50.769531%2058.125%20-52.65625%20C%2055.238281%20-54.550781%2051.84375%20-55.5625%2047.9375%20-55.6875%20C%2042.78125%20-55.5625%2038.503906%20-53.828125%2035.109375%20-50.484375%20C%2031.710938%20-47.148438%2030.015625%20-42.90625%2030.015625%20-37.75%20C%2030.015625%20-32.71875%2031.710938%20-28.5%2035.109375%20-25.09375%20C%2038.503906%20-21.695312%2042.78125%20-19.9375%2047.9375%20-19.8125%20C%2051.84375%20-19.9375%2055.238281%20-20.972656%2058.125%20-22.921875%20C%2061.019531%20-24.878906%2063.097656%20-27.429688%2064.359375%20-30.578125%20L%2089.28125%20-30.578125%20C%2087.644531%20-21.140625%2083.175781%20-13.429688%2075.875%20-7.453125%20C%2068.582031%20-1.472656%2059.269531%201.515625%2047.9375%201.515625%20Z%20M%2047.9375%201.515625%20'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e",o1=({logo:e=Ev,onLogoClick:n})=>m.jsx(L,{children:m.jsx(kt,{onClick:n,children:m.jsx(pt,{art:e,type:"svg",width:"lg",height:"lg"})})}),kv=({dropdownMaxHeight:e,dropdownMinWidth:n,isDropdownOpen:i=!1,dropdownItems:s=[]})=>{const a=be(),l=a.__hd__.header.navDropdown,d=Ne.isString(e)&&xr(e)?a.sizes[e]:e||l.defaultMaxHeight,f=Ne.isString(n)&&xr(n)?a.sizes[n]:n||l.minWidth;return m.jsx(L,{position:"absolute",top:"100%",left:0,minWidth:f,zIndex:i?a.zIndex.getZIndex("AIC_Kits_Dropdown"):-1,opacity:i?1:0,transition:`z-index ${l.animationDuration}ms ease-in, opacity ${l.animationDuration}ms ease-in`,children:m.jsx(L,{overflow:"hidden",display:"flex",flexDirection:"column",mt:l.spacingTop,px:l.paddingX,py:l.paddingY,gap:l.gap,backgroundColor:l.backgroundColor,boxShadow:l.boxShadow,maxHeight:i?d:0,transition:`max-height ${l.animationDuration}ms ease-in`,style:{borderRadius:l.borderRadius},children:s.length>0&&s.map((h,p)=>m.jsx(ms,{isDropdownOpen:!0,isDropdownItem:!0,size:"medium",paddingX:"none",paddingY:"none",...h},`nav-dropdown-item-${p}`))})})},$v=ue.span`
|
|
214
|
+
`,ms=({label:e,icon:n,iconSize:i,isActive:s,isLoading:a,dropdownItems:l=[],onClick:d,size:f="large",isDropdownOpen:h=!1,isDropdownItem:p=!1,onMouseEnter:x,onToggleDropdown:w,paddingX:_,paddingY:v,isRound:C=!1})=>{const R=be(),{isTouch:k}=Sl(),T=l.length>0,E=()=>{if(k&&T){h?d==null||d():w==null||w();return}d==null||d()},I=R.__hd__.header,$=I.navItem,M=s?$.active:$.inactive,z=c.useMemo(()=>p?"transparent":h?M.hoverBackgroundColor:M.backgroundColor,[p,h,M.backgroundColor,M.hoverBackgroundColor]);return m.jsxs(r1,{onClick:E,onMouseEnter:x,$themeBackgroundColor:z,$themeBoxShadow:!p&&h?M.hoverBoxShadow:"none",$themeHoverBackgroundColor:p?"transparent":M.hoverBackgroundColor,$themeHoverBoxShadow:p?"none":M.hoverBoxShadow,$themeHoverColor:$.active.backgroundColor,$themeRadius:$.radius,$themePaddingX:_??$.paddingX,$themePaddingY:v??$.paddingY,$gap:I.loadingGap,$isRound:C,children:[m.jsx(L,{display:"flex",justifyContent:"start",alignItems:"center",flex:1,children:m.jsxs(af,{$themeFontWeight:M.fontWeight,$themeFontSize:$[f].fontSize,$themeColor:M.color,$themeHoverColor:$.hover.color,$themeGap:$[f].gap,$themeHeight:$[f].containerHeight,$themeMinWidth:$[f].containerHeight,$isLoading:a??!1,children:[n&&m.jsx(gt,{type:"icon",art:n,size:i??$[f].iconSize}),e]})}),(l.length>0||h)&&m.jsxs(af,{$themeFontWeight:M.fontWeight,$themeFontSize:$[f].fontSize,$themeColor:M.color,$themeHoverColor:$.hover.color,$themeGap:$[f].gap,$themeHeight:$[f].containerHeight,$isLoading:a??!1,$isDropdownOpen:h,$isDropdownItem:p,children:[l.length>0&&m.jsx(_l,{size:16,weight:"bold"}),p&&m.jsx(ei,{rotate:45,size:16,weight:"bold"})]}),m.jsx(L,{display:"flex",alignItems:"center",justifyContent:"center",absoluteFill:!0,opacity:a?1:0,transition:"opacity 0.2s ease-in-out",children:m.jsx(Tl,{size:$[f].loadingSize,color:M.color})})]})};function Cv({userProfile:e,dropdownItems:n,maxHeight:i},s){const a=be(),l=a.__hd__.header.profileDropdown,[d,f]=c.useState(!1),h=c.useRef(null),p=c.useRef(null),x=Ne.isString(l.minWidth)&&xr(l.minWidth)?a.sizes[l.minWidth]:l.minWidth,w=Ne.isString(i)&&xr(i)?a.sizes[i]:i||l.defaultMaxHeight,_=()=>{h.current&&clearTimeout(h.current),p.current&&clearTimeout(p.current)},v=(R=()=>{})=>{_(),f(!0),h.current=setTimeout(R,l.animationDuration)},C=(R=()=>{})=>{_(),f(!1),p.current=setTimeout(R,l.animationDuration)};return c.useImperativeHandle(s,()=>({showDropdown:v,hideDropdown:C})),m.jsx(L,{position:"absolute",top:l.offset.top,right:l.offset.right,minWidth:x,zIndex:d?a.zIndex.getZIndex("AIC_Kits_Dropdown"):-1,opacity:d?1:0,transition:`opacity ${l.animationDuration}ms ease-in-out, z-index ${l.animationDuration}ms ease-in-out`,onMouseEnter:()=>v(),onMouseLeave:()=>C(),children:m.jsxs(L,{overflow:"hidden",mt:l.spacingTop,mr:l.containerPaddingRight,padding:l.padding,backgroundColor:l.backgroundColor,boxShadow:l.boxShadow,maxHeight:d?w:0,transition:`max-height ${l.animationDuration}ms ease-in-out`,style:{borderRadius:l.borderRadius},display:"flex",flexDirection:"column",children:[e!=null&&e.name?m.jsx(L,{py:l.padding,mx:"md",children:m.jsx(Qe,{textAlign:"left",children:e.name})}):m.jsx(L,{py:l.padding,mx:"md",children:m.jsx(Qe,{textAlign:"left",children:e==null?void 0:e.email})}),m.jsx(L,{p:l.padding,children:m.jsx(n1,{})}),n==null?void 0:n.map(R=>m.jsx(ms,{label:R.label,onClick:R.onClick,isActive:R.isActive,size:"medium",isDropdownItem:!0},R.label))]})})}const Sv=c.forwardRef(Cv),i1=({isSignedIn:e=!1,isDropdownVisible:n,setIsDropdownVisible:i,userProfile:s,dropdownItems:a,profileDropdownMaxHeight:l,onProfileClick:d,onSignInClick:f,onRegisterClick:h})=>{const p=be(),[x,w]=c.useState(!1),[_,v]=c.useState(!0),C=c.useDeferredValue(x),R=ti(),k=!Ct()&&R==="xs";c.useEffect(()=>{Ct()||(w(!k),setTimeout(()=>{v(!1)},300))},[k]);const T=p.__hd__.header.avatarSize||"md",E=c.useRef(null),I=()=>{var M;i(!0),(M=E.current)==null||M.showDropdown()},$=()=>{var M;(M=E.current)==null||M.hideDropdown(()=>{i(!1)})};return c.useEffect(()=>{n?I():$()},[n]),m.jsx(Zi,{display:"flex",visible:_,maxWidth:C?"100%":"0px",maxHeight:C?"100%":"0px",opacity:C?1:0,variant:"transparent",transition:"max-width 0.3s ease-in-out, opacity 0.3s ease-in-out",r:"lg",children:m.jsxs(L,{display:"flex",flexDirection:"row",alignItems:"center",children:[e?m.jsx(kt,{onClick:d,children:m.jsxs(L,{display:"flex",flexDirection:"row",alignItems:"center",p:"sm",r:"full",bgColor:"grey100",onMouseEnter:I,onMouseLeave:$,children:[m.jsx(q0,{src:s==null?void 0:s.avatar,name:s==null?void 0:s.name,size:T}),(s==null?void 0:s.name)&&m.jsx(L,{ml:"sm",children:m.jsx(Qe,{fontWeight:"medium",children:s.name})})]})}):m.jsxs(m.Fragment,{children:[m.jsx(L,{mr:"md",children:m.jsx(Qr,{text:"Sign in",variant:"text",color:"black",onClick:f})}),m.jsx(Qr,{text:"Register",color:"primary",corner:"rounded",onClick:h})]}),e&&m.jsx(Sv,{ref:E,userProfile:s,dropdownItems:a,maxHeight:l})]})})},Ev="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='500'%20zoomAndPan='magnify'%20viewBox='0%200%20375%20374.999991'%20height='500'%20preserveAspectRatio='xMidYMid%20meet'%20version='1.0'%3e%3cdefs%3e%3cg%3e%3c/g%3e%3c/defs%3e%3cg%20fill='%230a1420'%20fill-opacity='1'%3e%3cg%20transform='translate(66.308093,%20231.512278)'%3e%3cg%3e%3cpath%20d='M%2095.3125%20-19.625%20L%2098.71875%20-19.625%20L%2098.71875%200%20C%2097.832031%200.375%2096.851562%200.71875%2095.78125%201.03125%20C%2094.71875%201.351562%2093.554688%201.515625%2092.296875%201.515625%20C%2087.265625%201.515625%2082.734375%200.351562%2078.703125%20-1.96875%20C%2074.679688%20-4.300781%2071.472656%20-7.421875%2069.078125%20-11.328125%20C%2066.054688%20-7.421875%2062.375%20-4.300781%2058.03125%20-1.96875%20C%2053.695312%200.351562%2048.757812%201.515625%2043.21875%201.515625%20C%2036.300781%201.515625%2030.007812%20-0.242188%2024.34375%20-3.765625%20C%2018.6875%20-7.296875%2014.1875%20-12.015625%2010.84375%20-17.921875%20C%207.507812%20-23.835938%205.84375%20-30.445312%205.84375%20-37.75%20C%205.84375%20-45.050781%207.507812%20-51.65625%2010.84375%20-57.5625%20C%2014.1875%20-63.476562%2018.6875%20-68.195312%2024.34375%20-71.71875%20C%2030.007812%20-75.25%2036.300781%20-77.015625%2043.21875%20-77.015625%20C%2047.625%20-77.015625%2051.617188%20-76.289062%2055.203125%20-74.84375%20C%2058.796875%20-73.394531%2061.972656%20-71.410156%2064.734375%20-68.890625%20L%2064.734375%20-75.5%20L%2088.71875%20-75.5%20L%2088.71875%20-26.984375%20C%2088.71875%20-23.835938%2089.40625%20-21.820312%2090.78125%20-20.9375%20C%2092.164062%20-20.0625%2093.675781%20-19.625%2095.3125%20-19.625%20Z%20M%2047.9375%20-19.8125%20C%2052.84375%20-19.8125%2057.054688%20-21.539062%2060.578125%20-25%20C%2064.109375%20-28.46875%2065.875%20-32.71875%2065.875%20-37.75%20C%2065.875%20-42.78125%2064.109375%20-47.023438%2060.578125%20-50.484375%20C%2057.054688%20-53.953125%2052.84375%20-55.6875%2047.9375%20-55.6875%20C%2042.90625%20-55.6875%2038.660156%20-53.953125%2035.203125%20-50.484375%20C%2031.742188%20-47.023438%2030.015625%20-42.78125%2030.015625%20-37.75%20C%2030.015625%20-32.71875%2031.742188%20-28.46875%2035.203125%20-25%20C%2038.660156%20-21.539062%2042.90625%20-19.8125%2047.9375%20-19.8125%20Z%20M%2047.9375%20-19.8125%20'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/g%3e%3cg%20fill='%230a1420'%20fill-opacity='1'%3e%3cg%20transform='translate(167.850545,%20231.512278)'%3e%3cg%3e%3cpath%20d='M%2023.59375%20-88.140625%20C%2020.070312%20-88.140625%2016.988281%20-89.460938%2014.34375%20-92.109375%20C%2011.695312%20-94.753906%2010.375%20-97.835938%2010.375%20-101.359375%20C%2010.375%20-105.003906%2011.695312%20-108.117188%2014.34375%20-110.703125%20C%2016.988281%20-113.285156%2020.070312%20-114.578125%2023.59375%20-114.578125%20C%2027.238281%20-114.578125%2030.351562%20-113.285156%2032.9375%20-110.703125%20C%2035.519531%20-108.117188%2036.8125%20-105.003906%2036.8125%20-101.359375%20C%2036.8125%20-97.835938%2035.519531%20-94.753906%2032.9375%20-92.109375%20C%2030.351562%20-89.460938%2027.238281%20-88.140625%2023.59375%20-88.140625%20Z%20M%2011.515625%200%20L%2011.515625%20-75.5%20L%2035.484375%20-75.5%20L%2035.484375%200%20Z%20M%2011.515625%200%20'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/g%3e%3cg%20fill='%230a1420'%20fill-opacity='1'%3e%3cg%20transform='translate(215.035693,%20231.512278)'%3e%3cg%3e%3cpath%20d='M%2047.9375%201.515625%20C%2039.507812%201.515625%2032.148438%20-0.179688%2025.859375%20-3.578125%20C%2019.566406%20-6.984375%2014.65625%20-11.640625%2011.125%20-17.546875%20C%207.601562%20-23.460938%205.84375%20-30.195312%205.84375%20-37.75%20C%205.84375%20-45.300781%207.601562%20-52.03125%2011.125%20-57.9375%20C%2014.65625%20-63.851562%2019.566406%20-68.507812%2025.859375%20-71.90625%20C%2032.148438%20-75.3125%2039.507812%20-77.015625%2047.9375%20-77.015625%20C%2059.269531%20-77.015625%2068.582031%20-74.023438%2075.875%20-68.046875%20C%2083.175781%20-62.066406%2087.644531%20-54.359375%2089.28125%20-44.921875%20L%2064.359375%20-44.921875%20C%2063.097656%20-48.191406%2061.019531%20-50.769531%2058.125%20-52.65625%20C%2055.238281%20-54.550781%2051.84375%20-55.5625%2047.9375%20-55.6875%20C%2042.78125%20-55.5625%2038.503906%20-53.828125%2035.109375%20-50.484375%20C%2031.710938%20-47.148438%2030.015625%20-42.90625%2030.015625%20-37.75%20C%2030.015625%20-32.71875%2031.710938%20-28.5%2035.109375%20-25.09375%20C%2038.503906%20-21.695312%2042.78125%20-19.9375%2047.9375%20-19.8125%20C%2051.84375%20-19.9375%2055.238281%20-20.972656%2058.125%20-22.921875%20C%2061.019531%20-24.878906%2063.097656%20-27.429688%2064.359375%20-30.578125%20L%2089.28125%20-30.578125%20C%2087.644531%20-21.140625%2083.175781%20-13.429688%2075.875%20-7.453125%20C%2068.582031%20-1.472656%2059.269531%201.515625%2047.9375%201.515625%20Z%20M%2047.9375%201.515625%20'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e",o1=({logo:e=Ev,onLogoClick:n})=>m.jsx(L,{children:m.jsx(kt,{onClick:n,children:m.jsx(gt,{art:e,type:"svg",width:"lg",height:"lg"})})}),kv=({dropdownMaxHeight:e,dropdownMinWidth:n,isDropdownOpen:i=!1,dropdownItems:s=[]})=>{const a=be(),l=a.__hd__.header.navDropdown,d=Ne.isString(e)&&xr(e)?a.sizes[e]:e||l.defaultMaxHeight,f=Ne.isString(n)&&xr(n)?a.sizes[n]:n||l.minWidth;return m.jsx(L,{position:"absolute",top:"100%",left:0,minWidth:f,zIndex:i?a.zIndex.getZIndex("AIC_Kits_Dropdown"):-1,opacity:i?1:0,transition:`z-index ${l.animationDuration}ms ease-in, opacity ${l.animationDuration}ms ease-in`,children:m.jsx(L,{overflow:"hidden",display:"flex",flexDirection:"column",mt:l.spacingTop,px:l.paddingX,py:l.paddingY,gap:l.gap,backgroundColor:l.backgroundColor,boxShadow:l.boxShadow,maxHeight:i?d:0,transition:`max-height ${l.animationDuration}ms ease-in`,style:{borderRadius:l.borderRadius},children:s.length>0&&s.map((h,p)=>m.jsx(ms,{isDropdownOpen:!0,isDropdownItem:!0,size:"medium",paddingX:"none",paddingY:"none",...h},`nav-dropdown-item-${p}`))})})},$v=ue.span`
|
|
215
215
|
position: relative;
|
|
216
216
|
`,Av=({item:e,index:n,openItemIndex:i,handleNavItemMouseEnter:s,handleNavItemMouseLeave:a,handleNavItemToggleDropdown:l})=>{var x,w;const[d,f]=c.useState(0),h=c.useRef(null),{isMouse:p}=Sl();return c.useLayoutEffect(()=>{h.current&&f(h.current.offsetWidth)},[e]),m.jsxs($v,{onMouseLeave:p?a:void 0,onMouseEnter:p?()=>s(e,n):void 0,children:[m.jsx(L,{ref:h,display:"inline-block",children:m.jsx(ms,{...e,isActive:i!==n&&(e.isActive||((x=e.dropdownItems)==null?void 0:x.some(_=>_.isActive)))||e.isActive,isLoading:i!==n&&(e.isLoading||((w=e.dropdownItems)==null?void 0:w.some(_=>_.isLoading)))||e.isLoading,isDropdownOpen:i===n,onToggleDropdown:()=>l(n)})}),e.dropdownItems&&e.dropdownItems.length>0&&m.jsx(kv,{dropdownItems:e.dropdownItems,isDropdownOpen:i===n,dropdownMinWidth:d})]})},s1=({navItems:e=[]})=>{const i=be().__hd__.header,s=c.useRef(null),[a,l]=c.useState(!1),[d,f]=c.useState(!0),h=ti(),p=!Ct()&&h==="xs",[x,w]=c.useState(null);c.useEffect(()=>{Ct()||(l(!p),setTimeout(()=>{f(!1)},300))},[p]),c.useEffect(()=>{const k=T=>{s.current&&!s.current.contains(T.target)&&w(null)};return x!==null&&document.addEventListener("mousedown",k),()=>{document.removeEventListener("mousedown",k)}},[x]);const _=c.useDeferredValue(a),v=(k,T)=>{k.dropdownItems&&k.dropdownItems.length>0&&w(T)},C=()=>{w(null)},R=k=>{w(T=>T===k?null:k)};return m.jsx(Zi,{display:"flex",visible:d,maxWidth:_?"100%":"0px",maxHeight:_?"100%":"0px",opacity:_?1:0,variant:"transparent",transition:"max-width 0.3s ease-in-out, opacity 0.3s ease-in-out",r:"lg",py:"sm",children:m.jsx(L,{ref:s,display:"flex",flexDirection:"row",justifyContent:"center",flex:1,gap:i.navItem.gap,p:i.padding,r:i.radius,bgColor:i.backgroundColor,children:e.map((k,T)=>m.jsx(Av,{item:k,index:T,openItemIndex:x,handleNavItemMouseEnter:v,handleNavItemMouseLeave:C,handleNavItemToggleDropdown:R},`nav-item-wrapper-${T}`))})})},a1=({onSearchClick:e,isSearchActive:n=!1,isSearchLoading:i=!1})=>{const a=be().__hd__.header,[l,d]=c.useState(!1),[f,h]=c.useState(!0),p=ti(),x=!Ct()&&p==="xs";c.useEffect(()=>{Ct()||(d(!x),setTimeout(()=>{h(!1)},300))},[x]);const w=c.useDeferredValue(l);return m.jsx(Zi,{display:"flex",visible:f,maxWidth:w?"100%":"0px",maxHeight:w?"100%":"0px",opacity:w?1:0,variant:"transparent",transition:"max-width 0.3s ease-in-out, opacity 0.3s ease-in-out",r:"lg",py:"sm",children:m.jsx(L,{display:"flex",flexDirection:"row",justifyContent:"center",alignItems:"center",p:a.padding,r:a.radius,bgColor:a.backgroundColor,children:m.jsx(ms,{icon:Z0,isActive:n,isLoading:i,onClick:e,isRound:!0})})})};function Tv({backgroundColor:e="white",logo:n,navItems:i=[],isSignedIn:s=!1,userProfile:a,profileDropdownItems:l,profileDropdownMaxHeight:d,onLogoClick:f,onNavItemClick:h,onSignInClick:p,onRegisterClick:x,onProfileClick:w,onSearchClick:_,isSearchActive:v,isSearchLoading:C,...R},k){const[T,E]=c.useState(!1);return c.useImperativeHandle(k,()=>({showDropdown:()=>E(!0),hideDropdown:()=>E(!1)})),m.jsxs(L,{display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center",width:"100%",p:"md",bgColor:e,...R,children:[m.jsx(o1,{logo:n,onLogoClick:f}),m.jsxs(L,{display:"flex",flexDirection:"row",alignItems:"center",gap:"sm-md",children:[m.jsx(s1,{navItems:i,onNavItemClick:h}),_&&m.jsx(a1,{onSearchClick:_,isSearchActive:v,isSearchLoading:C})]}),m.jsx(i1,{isSignedIn:s,isDropdownVisible:T,setIsDropdownVisible:E,userProfile:a,dropdownItems:l,profileDropdownMaxHeight:d,onSignInClick:p,onRegisterClick:x,onProfileClick:w})]})}const l1=c.forwardRef(Tv),Rv=(e,n,i)=>{let s={};return e?n==="padded"?(s.maxWidth=void 0,s.px=i.desktopPaddingX):(s.maxWidth=i.desktopContentMaxWidth,s.px=i.mobilePaddingX):(s.maxWidth=void 0,s.px=i.mobilePaddingX),s},Iv=(e,n)=>{const i={};return e&&n==="maxWidth"&&(i.marginLeft="auto",i.marginRight="auto"),i},Mv=({children:e,backgroundColor:n="white",header:i,contentLayoutMode:s="maxWidth",style:a,...l})=>{const f=be().__hd__.base,h=ti(),p=Ct()||h==="md"||h==="lg"||h==="xl",x=Rv(p,s,f),w=Iv(p,s);return m.jsxs(L,{display:"flex",flexDirection:"column",width:"100%",height:"100%",position:"relative",bgColor:n,style:a,...l,children:[i&&m.jsx(l1,{...i}),m.jsx(L,{flex:1,overflow:"visible",position:"relative",width:"100%",...x,style:w,children:e})]})},Fv=ue.div`
|
|
217
217
|
display: flex;
|
|
@@ -249,7 +249,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
249
249
|
&::-ms-reveal {
|
|
250
250
|
display: none;
|
|
251
251
|
}
|
|
252
|
-
`,Ov=(e,n)=>{const{value:i="",onChange:s,placeholder:a="",disabled:l=!1,error:d,label:f,helperText:h,leftIcon:p,rightIcon:x,onClear:w,borderColor:_,bgColor:v,multiline:C,...R}=e,k=be(),T=k.__hd__.input,[E,I]=c.useState(!1),$=c.useRef(null),[M,z]=c.useState(i),[j,H]=c.useState(!1),[se,te]=c.useState(null),re=!C&&R.type==="password";c.useEffect(()=>{z(i)},[i]),c.useEffect(()=>{if(re&&$.current&&se!==null){const pe=$.current,Se=se;requestAnimationFrame(()=>{pe&&(pe.focus(),pe.setSelectionRange(Se,Se))}),te(null)}},[j,re,se]),c.useImperativeHandle(n,()=>({focus:()=>{var pe;return(pe=$.current)==null?void 0:pe.focus()},blur:()=>{var pe;return(pe=$.current)==null?void 0:pe.blur()},get value(){return M}}));const B=pe=>{I(!0),e.onFocus&&e.onFocus(pe)},W=pe=>{I(!1),e.onBlur&&e.onBlur(pe)},P=pe=>{const Se=pe.target.value;z(Se),s==null||s(Se)},le=vt(k,T.iconSize),K=l?T.disabledTextColor:T.iconColor,ne=()=>{re&&$.current&&(te($.current.selectionStart),H(!j))},ie=()=>{$.current&&(z(""),s==null||s(""),w==null||w())},we={ref:$,value:M,onChange:P,onFocus:B,onBlur:W,placeholder:a,disabled:l};return m.jsxs(L,{fw:!0,children:[f&&m.jsx(L,{mb:"xs",children:m.jsx(Qe,{fontWeight:"medium",children:f})}),m.jsxs(Fv,{$isFocused:E,$isDisabled:l,$error:!!d,$borderColor:_,$bgColor:v,children:[p&&m.jsx(L,{mr:T.iconSpacing,children:m.jsx(pt,{type:"icon",art:p,size:le,color:K})}),C?m.jsx(lf,{as:"textarea",...we,...R}):m.jsx(lf,{...we,...R,type:j?"text":R.type}),re&&E?m.jsx(L,{ml:T.iconSpacing,onClick:ne,onMouseDown:pe=>pe.preventDefault(),cursor:"pointer","data-testid":"password-toggle-icon",children:m.jsx(pt,{type:"icon",art:j?B0:H0,size:le,color:K})}):w&&M&&!l?m.jsx(kt,{onClick:ie,children:m.jsx(L,{ml:T.iconSpacing,children:m.jsx(pt,{type:"icon",art:ds,size:le,color:K})})}):!re&&x&&m.jsx(L,{ml:T.iconSpacing,children:m.jsx(pt,{type:"icon",art:x,size:le,color:K})})]}),(d||h)&&m.jsx(L,{mt:"xs",children:m.jsx(Qe,{fontSize:"xs",color:d?"danger":"grey600",children:d||h})})]})},Il=c.forwardRef(Ov),zv=["p","padding","pt","pb","pl","pr","px","py","gap","display","flexDirection","alignItems","justifyContent","flexWrap","flexGrow","flexShrink","flexBasis","flex"];function Lv(e){const n={},i={},s={};for(const a in e)if(Object.prototype.hasOwnProperty.call(e,a)){const l=e[a];zv.includes(a)?n[a]=l:a!=="data"&&a!=="renderItem"&&a!=="keyExtractor"&&a!=="ListEmptyComponent"&&a!=="ListHeaderComponent"&&a!=="ListFooterComponent"&&a!=="ItemSeparatorComponent"&&a!=="itemGap"?i[a]=l:s[a]=l}return{listProps:s,contentProps:n,containerProps:i}}function jv(e,n){var I,$;const{listProps:i,contentProps:s,containerProps:a}=Lv(e),{data:l=[],renderItem:d,keyExtractor:f,ListEmptyComponent:h,ListHeaderComponent:p,ListFooterComponent:x,ItemSeparatorComponent:w,itemGap:_}=i,v=be(),C=((I=v.__hd__.list)==null?void 0:I.defaultGap)||"xs",R=_||C,k=(($=v.__hd__.list)==null?void 0:$.defaultPadding)||"0px",T=s.p??s.padding??k,E=()=>l.length===0&&h?h:l.map((M,z)=>{const j=f?f(M,z):String(z),H=d?d(M,z):null;return H?m.jsxs(c.Fragment,{children:[H,w&&z<l.length-1?w:null]},j):null});return m.jsx(L,{ref:n,overflow:"auto",width:"100%",...a,children:m.jsxs(L,{display:"flex",flexDirection:"column",gap:R,p:T,...s,children:[p,E(),x]})})}const Dv=c.forwardRef(jv);/*! @vimeo/player v2.27.1 | (c) 2025 Vimeo | MIT License | https://github.com/vimeo/player.js */function cf(e,n){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);n&&(s=s.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),i.push.apply(i,s)}return i}function uf(e){for(var n=1;n<arguments.length;n++){var i=arguments[n]!=null?arguments[n]:{};n%2?cf(Object(i),!0).forEach(function(s){Ko(e,s,i[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):cf(Object(i)).forEach(function(s){Object.defineProperty(e,s,Object.getOwnPropertyDescriptor(i,s))})}return e}function Mt(){Mt=function(){return e};var e={},n=Object.prototype,i=n.hasOwnProperty,s=Object.defineProperty||function(B,W,P){B[W]=P.value},a=typeof Symbol=="function"?Symbol:{},l=a.iterator||"@@iterator",d=a.asyncIterator||"@@asyncIterator",f=a.toStringTag||"@@toStringTag";function h(B,W,P){return Object.defineProperty(B,W,{value:P,enumerable:!0,configurable:!0,writable:!0}),B[W]}try{h({},"")}catch{h=function(W,P,le){return W[P]=le}}function p(B,W,P,le){var K=W&&W.prototype instanceof _?W:_,ne=Object.create(K.prototype),ie=new se(le||[]);return s(ne,"_invoke",{value:M(B,P,ie)}),ne}function x(B,W,P){try{return{type:"normal",arg:B.call(W,P)}}catch(le){return{type:"throw",arg:le}}}e.wrap=p;var w={};function _(){}function v(){}function C(){}var R={};h(R,l,function(){return this});var k=Object.getPrototypeOf,T=k&&k(k(te([])));T&&T!==n&&i.call(T,l)&&(R=T);var E=C.prototype=_.prototype=Object.create(R);function I(B){["next","throw","return"].forEach(function(W){h(B,W,function(P){return this._invoke(W,P)})})}function $(B,W){function P(K,ne,ie,we){var pe=x(B[K],B,ne);if(pe.type!=="throw"){var Se=pe.arg,$e=Se.value;return $e&&typeof $e=="object"&&i.call($e,"__await")?W.resolve($e.__await).then(function(de){P("next",de,ie,we)},function(de){P("throw",de,ie,we)}):W.resolve($e).then(function(de){Se.value=de,ie(Se)},function(de){return P("throw",de,ie,we)})}we(pe.arg)}var le;s(this,"_invoke",{value:function(K,ne){function ie(){return new W(function(we,pe){P(K,ne,we,pe)})}return le=le?le.then(ie,ie):ie()}})}function M(B,W,P){var le="suspendedStart";return function(K,ne){if(le==="executing")throw new Error("Generator is already running");if(le==="completed"){if(K==="throw")throw ne;return re()}for(P.method=K,P.arg=ne;;){var ie=P.delegate;if(ie){var we=z(ie,P);if(we){if(we===w)continue;return we}}if(P.method==="next")P.sent=P._sent=P.arg;else if(P.method==="throw"){if(le==="suspendedStart")throw le="completed",P.arg;P.dispatchException(P.arg)}else P.method==="return"&&P.abrupt("return",P.arg);le="executing";var pe=x(B,W,P);if(pe.type==="normal"){if(le=P.done?"completed":"suspendedYield",pe.arg===w)continue;return{value:pe.arg,done:P.done}}pe.type==="throw"&&(le="completed",P.method="throw",P.arg=pe.arg)}}}function z(B,W){var P=W.method,le=B.iterator[P];if(le===void 0)return W.delegate=null,P==="throw"&&B.iterator.return&&(W.method="return",W.arg=void 0,z(B,W),W.method==="throw")||P!=="return"&&(W.method="throw",W.arg=new TypeError("The iterator does not provide a '"+P+"' method")),w;var K=x(le,B.iterator,W.arg);if(K.type==="throw")return W.method="throw",W.arg=K.arg,W.delegate=null,w;var ne=K.arg;return ne?ne.done?(W[B.resultName]=ne.value,W.next=B.nextLoc,W.method!=="return"&&(W.method="next",W.arg=void 0),W.delegate=null,w):ne:(W.method="throw",W.arg=new TypeError("iterator result is not an object"),W.delegate=null,w)}function j(B){var W={tryLoc:B[0]};1 in B&&(W.catchLoc=B[1]),2 in B&&(W.finallyLoc=B[2],W.afterLoc=B[3]),this.tryEntries.push(W)}function H(B){var W=B.completion||{};W.type="normal",delete W.arg,B.completion=W}function se(B){this.tryEntries=[{tryLoc:"root"}],B.forEach(j,this),this.reset(!0)}function te(B){if(B){var W=B[l];if(W)return W.call(B);if(typeof B.next=="function")return B;if(!isNaN(B.length)){var P=-1,le=function K(){for(;++P<B.length;)if(i.call(B,P))return K.value=B[P],K.done=!1,K;return K.value=void 0,K.done=!0,K};return le.next=le}}return{next:re}}function re(){return{value:void 0,done:!0}}return v.prototype=C,s(E,"constructor",{value:C,configurable:!0}),s(C,"constructor",{value:v,configurable:!0}),v.displayName=h(C,f,"GeneratorFunction"),e.isGeneratorFunction=function(B){var W=typeof B=="function"&&B.constructor;return!!W&&(W===v||(W.displayName||W.name)==="GeneratorFunction")},e.mark=function(B){return Object.setPrototypeOf?Object.setPrototypeOf(B,C):(B.__proto__=C,h(B,f,"GeneratorFunction")),B.prototype=Object.create(E),B},e.awrap=function(B){return{__await:B}},I($.prototype),h($.prototype,d,function(){return this}),e.AsyncIterator=$,e.async=function(B,W,P,le,K){K===void 0&&(K=Promise);var ne=new $(p(B,W,P,le),K);return e.isGeneratorFunction(W)?ne:ne.next().then(function(ie){return ie.done?ie.value:ne.next()})},I(E),h(E,f,"Generator"),h(E,l,function(){return this}),h(E,"toString",function(){return"[object Generator]"}),e.keys=function(B){var W=Object(B),P=[];for(var le in W)P.push(le);return P.reverse(),function K(){for(;P.length;){var ne=P.pop();if(ne in W)return K.value=ne,K.done=!1,K}return K.done=!0,K}},e.values=te,se.prototype={constructor:se,reset:function(B){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(H),!B)for(var W in this)W.charAt(0)==="t"&&i.call(this,W)&&!isNaN(+W.slice(1))&&(this[W]=void 0)},stop:function(){this.done=!0;var B=this.tryEntries[0].completion;if(B.type==="throw")throw B.arg;return this.rval},dispatchException:function(B){if(this.done)throw B;var W=this;function P(pe,Se){return ne.type="throw",ne.arg=B,W.next=pe,Se&&(W.method="next",W.arg=void 0),!!Se}for(var le=this.tryEntries.length-1;le>=0;--le){var K=this.tryEntries[le],ne=K.completion;if(K.tryLoc==="root")return P("end");if(K.tryLoc<=this.prev){var ie=i.call(K,"catchLoc"),we=i.call(K,"finallyLoc");if(ie&&we){if(this.prev<K.catchLoc)return P(K.catchLoc,!0);if(this.prev<K.finallyLoc)return P(K.finallyLoc)}else if(ie){if(this.prev<K.catchLoc)return P(K.catchLoc,!0)}else{if(!we)throw new Error("try statement without catch or finally");if(this.prev<K.finallyLoc)return P(K.finallyLoc)}}}},abrupt:function(B,W){for(var P=this.tryEntries.length-1;P>=0;--P){var le=this.tryEntries[P];if(le.tryLoc<=this.prev&&i.call(le,"finallyLoc")&&this.prev<le.finallyLoc){var K=le;break}}K&&(B==="break"||B==="continue")&&K.tryLoc<=W&&W<=K.finallyLoc&&(K=null);var ne=K?K.completion:{};return ne.type=B,ne.arg=W,K?(this.method="next",this.next=K.finallyLoc,w):this.complete(ne)},complete:function(B,W){if(B.type==="throw")throw B.arg;return B.type==="break"||B.type==="continue"?this.next=B.arg:B.type==="return"?(this.rval=this.arg=B.arg,this.method="return",this.next="end"):B.type==="normal"&&W&&(this.next=W),w},finish:function(B){for(var W=this.tryEntries.length-1;W>=0;--W){var P=this.tryEntries[W];if(P.finallyLoc===B)return this.complete(P.completion,P.afterLoc),H(P),w}},catch:function(B){for(var W=this.tryEntries.length-1;W>=0;--W){var P=this.tryEntries[W];if(P.tryLoc===B){var le=P.completion;if(le.type==="throw"){var K=le.arg;H(P)}return K}}throw new Error("illegal catch attempt")},delegateYield:function(B,W,P){return this.delegate={iterator:te(B),resultName:W,nextLoc:P},this.method==="next"&&(this.arg=void 0),w}},e}function df(e,n,i,s,a,l,d){try{var f=e[l](d),h=f.value}catch(p){i(p);return}f.done?n(h):Promise.resolve(h).then(s,a)}function yr(e){return function(){var n=this,i=arguments;return new Promise(function(s,a){var l=e.apply(n,i);function d(h){df(l,s,a,d,f,"next",h)}function f(h){df(l,s,a,d,f,"throw",h)}d(void 0)})}}function c1(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function Pv(e,n){for(var i=0;i<n.length;i++){var s=n[i];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(e,f1(s.key),s)}}function u1(e,n,i){return n&&Pv(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ko(e,n,i){return n=f1(n),n in e?Object.defineProperty(e,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[n]=i,e}function Wv(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&Bi(e,n)}function Wi(e){return Wi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},Wi(e)}function Bi(e,n){return Bi=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(s,a){return s.__proto__=a,s},Bi(e,n)}function d1(){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 Yo(e,n,i){return d1()?Yo=Reflect.construct.bind():Yo=function(a,l,d){var f=[null];f.push.apply(f,l);var h=Function.bind.apply(a,f),p=new h;return d&&Bi(p,d.prototype),p},Yo.apply(null,arguments)}function Bv(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function sl(e){var n=typeof Map=="function"?new Map:void 0;return sl=function(s){if(s===null||!Bv(s))return s;if(typeof s!="function")throw new TypeError("Super expression must either be null or a function");if(typeof n<"u"){if(n.has(s))return n.get(s);n.set(s,a)}function a(){return Yo(s,arguments,Wi(this).constructor)}return a.prototype=Object.create(s.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),Bi(a,s)},sl(e)}function Xo(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Hv(e,n){if(n&&(typeof n=="object"||typeof n=="function"))return n;if(n!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Xo(e)}function Zv(e){var n=d1();return function(){var s=Wi(e),a;if(n){var l=Wi(this).constructor;a=Reflect.construct(s,arguments,l)}else a=s.apply(this,arguments);return Hv(this,a)}}function Vv(e,n){if(typeof e!="object"||e===null)return e;var i=e[Symbol.toPrimitive];if(i!==void 0){var s=i.call(e,n);if(typeof s!="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function f1(e){var n=Vv(e,"string");return typeof n=="symbol"?n:String(n)}var h1=typeof global<"u"&&{}.toString.call(global)==="[object global]";function ff(e,n){return e.indexOf(n.toLowerCase())===0?e:"".concat(n.toLowerCase()).concat(e.substr(0,1).toUpperCase()).concat(e.substr(1))}function Nv(e){return!!(e&&e.nodeType===1&&"nodeName"in e&&e.ownerDocument&&e.ownerDocument.defaultView)}function Uv(e){return!isNaN(parseFloat(e))&&isFinite(e)&&Math.floor(e)==e}function wr(e){return/^(https?:)?\/\/((((player|www)\.)?vimeo\.com)|((player\.)?[a-zA-Z0-9-]+\.(videoji\.(hk|cn)|vimeo\.work)))(?=$|\/)/.test(e)}function p1(e){var n=/^https:\/\/player\.((vimeo\.com)|([a-zA-Z0-9-]+\.(videoji\.(hk|cn)|vimeo\.work)))\/video\/\d+/;return n.test(e)}function Gv(e){for(var n=(e||"").match(/^(?:https?:)?(?:\/\/)?([^/?]+)/),i=(n&&n[1]||"").replace("player.",""),s=[".videoji.hk",".vimeo.work",".videoji.cn"],a=0,l=s;a<l.length;a++){var d=l[a];if(i.endsWith(d))return i}return"vimeo.com"}function g1(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=e.id,i=e.url,s=n||i;if(!s)throw new Error("An id or url must be passed, either in an options object or as a data-vimeo-id or data-vimeo-url attribute.");if(Uv(s))return"https://vimeo.com/".concat(s);if(wr(s))return s.replace("http:","https:");throw n?new TypeError("“".concat(n,"” is not a valid video id.")):new TypeError("“".concat(s,"” is not a vimeo.com url."))}var hf=function(n,i,s){var a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"addEventListener",l=arguments.length>4&&arguments[4]!==void 0?arguments[4]:"removeEventListener",d=typeof i=="string"?[i]:i;return d.forEach(function(f){n[a](f,s)}),{cancel:function(){return d.forEach(function(h){return n[l](h,s)})}}},qv=typeof Array.prototype.indexOf<"u",Kv=typeof window<"u"&&typeof window.postMessage<"u";if(!h1&&(!qv||!Kv))throw new Error("Sorry, the Vimeo Player API is not available in this browser.");var qr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Yv(e,n){return n={exports:{}},e(n,n.exports),n.exports}/*!
|
|
252
|
+
`,Ov=(e,n)=>{const{value:i="",onChange:s,placeholder:a="",disabled:l=!1,error:d,label:f,helperText:h,leftIcon:p,rightIcon:x,onClear:w,borderColor:_,bgColor:v,multiline:C,...R}=e,k=be(),T=k.__hd__.input,[E,I]=c.useState(!1),$=c.useRef(null),[M,z]=c.useState(i),[j,H]=c.useState(!1),[se,te]=c.useState(null),re=!C&&R.type==="password";c.useEffect(()=>{z(i)},[i]),c.useEffect(()=>{if(re&&$.current&&se!==null){const pe=$.current,Se=se;requestAnimationFrame(()=>{pe&&(pe.focus(),pe.setSelectionRange(Se,Se))}),te(null)}},[j,re,se]),c.useImperativeHandle(n,()=>({focus:()=>{var pe;return(pe=$.current)==null?void 0:pe.focus()},blur:()=>{var pe;return(pe=$.current)==null?void 0:pe.blur()},get value(){return M}}));const B=pe=>{I(!0),e.onFocus&&e.onFocus(pe)},W=pe=>{I(!1),e.onBlur&&e.onBlur(pe)},P=pe=>{const Se=pe.target.value;z(Se),s==null||s(Se)},le=vt(k,T.iconSize),K=l?T.disabledTextColor:T.iconColor,ne=()=>{re&&$.current&&(te($.current.selectionStart),H(!j))},ie=()=>{$.current&&(z(""),s==null||s(""),w==null||w())},we={ref:$,value:M,onChange:P,onFocus:B,onBlur:W,placeholder:a,disabled:l};return m.jsxs(L,{fw:!0,children:[f&&m.jsx(L,{mb:"xs",children:m.jsx(Qe,{fontWeight:"medium",children:f})}),m.jsxs(Fv,{$isFocused:E,$isDisabled:l,$error:!!d,$borderColor:_,$bgColor:v,children:[p&&m.jsx(L,{mr:T.iconSpacing,children:m.jsx(gt,{type:"icon",art:p,size:le,color:K})}),C?m.jsx(lf,{as:"textarea",...we,...R}):m.jsx(lf,{...we,...R,type:j?"text":R.type}),re&&E?m.jsx(L,{ml:T.iconSpacing,onClick:ne,onMouseDown:pe=>pe.preventDefault(),cursor:"pointer","data-testid":"password-toggle-icon",children:m.jsx(gt,{type:"icon",art:j?B0:H0,size:le,color:K})}):w&&M&&!l?m.jsx(kt,{onClick:ie,children:m.jsx(L,{ml:T.iconSpacing,children:m.jsx(gt,{type:"icon",art:ds,size:le,color:K})})}):!re&&x&&m.jsx(L,{ml:T.iconSpacing,children:m.jsx(gt,{type:"icon",art:x,size:le,color:K})})]}),(d||h)&&m.jsx(L,{mt:"xs",children:m.jsx(Qe,{fontSize:"xs",color:d?"danger":"grey600",children:d||h})})]})},Il=c.forwardRef(Ov),zv=["p","padding","pt","pb","pl","pr","px","py","gap","display","flexDirection","alignItems","justifyContent","flexWrap","flexGrow","flexShrink","flexBasis","flex"];function Lv(e){const n={},i={},s={};for(const a in e)if(Object.prototype.hasOwnProperty.call(e,a)){const l=e[a];zv.includes(a)?n[a]=l:a!=="data"&&a!=="renderItem"&&a!=="keyExtractor"&&a!=="ListEmptyComponent"&&a!=="ListHeaderComponent"&&a!=="ListFooterComponent"&&a!=="ItemSeparatorComponent"&&a!=="itemGap"?i[a]=l:s[a]=l}return{listProps:s,contentProps:n,containerProps:i}}function jv(e,n){var I,$;const{listProps:i,contentProps:s,containerProps:a}=Lv(e),{data:l=[],renderItem:d,keyExtractor:f,ListEmptyComponent:h,ListHeaderComponent:p,ListFooterComponent:x,ItemSeparatorComponent:w,itemGap:_}=i,v=be(),C=((I=v.__hd__.list)==null?void 0:I.defaultGap)||"xs",R=_||C,k=(($=v.__hd__.list)==null?void 0:$.defaultPadding)||"0px",T=s.p??s.padding??k,E=()=>l.length===0&&h?h:l.map((M,z)=>{const j=f?f(M,z):String(z),H=d?d(M,z):null;return H?m.jsxs(c.Fragment,{children:[H,w&&z<l.length-1?w:null]},j):null});return m.jsx(L,{ref:n,overflow:"auto",width:"100%",...a,children:m.jsxs(L,{display:"flex",flexDirection:"column",gap:R,p:T,...s,children:[p,E(),x]})})}const Dv=c.forwardRef(jv);/*! @vimeo/player v2.27.1 | (c) 2025 Vimeo | MIT License | https://github.com/vimeo/player.js */function cf(e,n){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);n&&(s=s.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),i.push.apply(i,s)}return i}function uf(e){for(var n=1;n<arguments.length;n++){var i=arguments[n]!=null?arguments[n]:{};n%2?cf(Object(i),!0).forEach(function(s){Ko(e,s,i[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):cf(Object(i)).forEach(function(s){Object.defineProperty(e,s,Object.getOwnPropertyDescriptor(i,s))})}return e}function Mt(){Mt=function(){return e};var e={},n=Object.prototype,i=n.hasOwnProperty,s=Object.defineProperty||function(B,W,P){B[W]=P.value},a=typeof Symbol=="function"?Symbol:{},l=a.iterator||"@@iterator",d=a.asyncIterator||"@@asyncIterator",f=a.toStringTag||"@@toStringTag";function h(B,W,P){return Object.defineProperty(B,W,{value:P,enumerable:!0,configurable:!0,writable:!0}),B[W]}try{h({},"")}catch{h=function(W,P,le){return W[P]=le}}function p(B,W,P,le){var K=W&&W.prototype instanceof _?W:_,ne=Object.create(K.prototype),ie=new se(le||[]);return s(ne,"_invoke",{value:M(B,P,ie)}),ne}function x(B,W,P){try{return{type:"normal",arg:B.call(W,P)}}catch(le){return{type:"throw",arg:le}}}e.wrap=p;var w={};function _(){}function v(){}function C(){}var R={};h(R,l,function(){return this});var k=Object.getPrototypeOf,T=k&&k(k(te([])));T&&T!==n&&i.call(T,l)&&(R=T);var E=C.prototype=_.prototype=Object.create(R);function I(B){["next","throw","return"].forEach(function(W){h(B,W,function(P){return this._invoke(W,P)})})}function $(B,W){function P(K,ne,ie,we){var pe=x(B[K],B,ne);if(pe.type!=="throw"){var Se=pe.arg,$e=Se.value;return $e&&typeof $e=="object"&&i.call($e,"__await")?W.resolve($e.__await).then(function(de){P("next",de,ie,we)},function(de){P("throw",de,ie,we)}):W.resolve($e).then(function(de){Se.value=de,ie(Se)},function(de){return P("throw",de,ie,we)})}we(pe.arg)}var le;s(this,"_invoke",{value:function(K,ne){function ie(){return new W(function(we,pe){P(K,ne,we,pe)})}return le=le?le.then(ie,ie):ie()}})}function M(B,W,P){var le="suspendedStart";return function(K,ne){if(le==="executing")throw new Error("Generator is already running");if(le==="completed"){if(K==="throw")throw ne;return re()}for(P.method=K,P.arg=ne;;){var ie=P.delegate;if(ie){var we=z(ie,P);if(we){if(we===w)continue;return we}}if(P.method==="next")P.sent=P._sent=P.arg;else if(P.method==="throw"){if(le==="suspendedStart")throw le="completed",P.arg;P.dispatchException(P.arg)}else P.method==="return"&&P.abrupt("return",P.arg);le="executing";var pe=x(B,W,P);if(pe.type==="normal"){if(le=P.done?"completed":"suspendedYield",pe.arg===w)continue;return{value:pe.arg,done:P.done}}pe.type==="throw"&&(le="completed",P.method="throw",P.arg=pe.arg)}}}function z(B,W){var P=W.method,le=B.iterator[P];if(le===void 0)return W.delegate=null,P==="throw"&&B.iterator.return&&(W.method="return",W.arg=void 0,z(B,W),W.method==="throw")||P!=="return"&&(W.method="throw",W.arg=new TypeError("The iterator does not provide a '"+P+"' method")),w;var K=x(le,B.iterator,W.arg);if(K.type==="throw")return W.method="throw",W.arg=K.arg,W.delegate=null,w;var ne=K.arg;return ne?ne.done?(W[B.resultName]=ne.value,W.next=B.nextLoc,W.method!=="return"&&(W.method="next",W.arg=void 0),W.delegate=null,w):ne:(W.method="throw",W.arg=new TypeError("iterator result is not an object"),W.delegate=null,w)}function j(B){var W={tryLoc:B[0]};1 in B&&(W.catchLoc=B[1]),2 in B&&(W.finallyLoc=B[2],W.afterLoc=B[3]),this.tryEntries.push(W)}function H(B){var W=B.completion||{};W.type="normal",delete W.arg,B.completion=W}function se(B){this.tryEntries=[{tryLoc:"root"}],B.forEach(j,this),this.reset(!0)}function te(B){if(B){var W=B[l];if(W)return W.call(B);if(typeof B.next=="function")return B;if(!isNaN(B.length)){var P=-1,le=function K(){for(;++P<B.length;)if(i.call(B,P))return K.value=B[P],K.done=!1,K;return K.value=void 0,K.done=!0,K};return le.next=le}}return{next:re}}function re(){return{value:void 0,done:!0}}return v.prototype=C,s(E,"constructor",{value:C,configurable:!0}),s(C,"constructor",{value:v,configurable:!0}),v.displayName=h(C,f,"GeneratorFunction"),e.isGeneratorFunction=function(B){var W=typeof B=="function"&&B.constructor;return!!W&&(W===v||(W.displayName||W.name)==="GeneratorFunction")},e.mark=function(B){return Object.setPrototypeOf?Object.setPrototypeOf(B,C):(B.__proto__=C,h(B,f,"GeneratorFunction")),B.prototype=Object.create(E),B},e.awrap=function(B){return{__await:B}},I($.prototype),h($.prototype,d,function(){return this}),e.AsyncIterator=$,e.async=function(B,W,P,le,K){K===void 0&&(K=Promise);var ne=new $(p(B,W,P,le),K);return e.isGeneratorFunction(W)?ne:ne.next().then(function(ie){return ie.done?ie.value:ne.next()})},I(E),h(E,f,"Generator"),h(E,l,function(){return this}),h(E,"toString",function(){return"[object Generator]"}),e.keys=function(B){var W=Object(B),P=[];for(var le in W)P.push(le);return P.reverse(),function K(){for(;P.length;){var ne=P.pop();if(ne in W)return K.value=ne,K.done=!1,K}return K.done=!0,K}},e.values=te,se.prototype={constructor:se,reset:function(B){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(H),!B)for(var W in this)W.charAt(0)==="t"&&i.call(this,W)&&!isNaN(+W.slice(1))&&(this[W]=void 0)},stop:function(){this.done=!0;var B=this.tryEntries[0].completion;if(B.type==="throw")throw B.arg;return this.rval},dispatchException:function(B){if(this.done)throw B;var W=this;function P(pe,Se){return ne.type="throw",ne.arg=B,W.next=pe,Se&&(W.method="next",W.arg=void 0),!!Se}for(var le=this.tryEntries.length-1;le>=0;--le){var K=this.tryEntries[le],ne=K.completion;if(K.tryLoc==="root")return P("end");if(K.tryLoc<=this.prev){var ie=i.call(K,"catchLoc"),we=i.call(K,"finallyLoc");if(ie&&we){if(this.prev<K.catchLoc)return P(K.catchLoc,!0);if(this.prev<K.finallyLoc)return P(K.finallyLoc)}else if(ie){if(this.prev<K.catchLoc)return P(K.catchLoc,!0)}else{if(!we)throw new Error("try statement without catch or finally");if(this.prev<K.finallyLoc)return P(K.finallyLoc)}}}},abrupt:function(B,W){for(var P=this.tryEntries.length-1;P>=0;--P){var le=this.tryEntries[P];if(le.tryLoc<=this.prev&&i.call(le,"finallyLoc")&&this.prev<le.finallyLoc){var K=le;break}}K&&(B==="break"||B==="continue")&&K.tryLoc<=W&&W<=K.finallyLoc&&(K=null);var ne=K?K.completion:{};return ne.type=B,ne.arg=W,K?(this.method="next",this.next=K.finallyLoc,w):this.complete(ne)},complete:function(B,W){if(B.type==="throw")throw B.arg;return B.type==="break"||B.type==="continue"?this.next=B.arg:B.type==="return"?(this.rval=this.arg=B.arg,this.method="return",this.next="end"):B.type==="normal"&&W&&(this.next=W),w},finish:function(B){for(var W=this.tryEntries.length-1;W>=0;--W){var P=this.tryEntries[W];if(P.finallyLoc===B)return this.complete(P.completion,P.afterLoc),H(P),w}},catch:function(B){for(var W=this.tryEntries.length-1;W>=0;--W){var P=this.tryEntries[W];if(P.tryLoc===B){var le=P.completion;if(le.type==="throw"){var K=le.arg;H(P)}return K}}throw new Error("illegal catch attempt")},delegateYield:function(B,W,P){return this.delegate={iterator:te(B),resultName:W,nextLoc:P},this.method==="next"&&(this.arg=void 0),w}},e}function df(e,n,i,s,a,l,d){try{var f=e[l](d),h=f.value}catch(p){i(p);return}f.done?n(h):Promise.resolve(h).then(s,a)}function yr(e){return function(){var n=this,i=arguments;return new Promise(function(s,a){var l=e.apply(n,i);function d(h){df(l,s,a,d,f,"next",h)}function f(h){df(l,s,a,d,f,"throw",h)}d(void 0)})}}function c1(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function Pv(e,n){for(var i=0;i<n.length;i++){var s=n[i];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(e,f1(s.key),s)}}function u1(e,n,i){return n&&Pv(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ko(e,n,i){return n=f1(n),n in e?Object.defineProperty(e,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[n]=i,e}function Wv(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&Bi(e,n)}function Wi(e){return Wi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},Wi(e)}function Bi(e,n){return Bi=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(s,a){return s.__proto__=a,s},Bi(e,n)}function d1(){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 Yo(e,n,i){return d1()?Yo=Reflect.construct.bind():Yo=function(a,l,d){var f=[null];f.push.apply(f,l);var h=Function.bind.apply(a,f),p=new h;return d&&Bi(p,d.prototype),p},Yo.apply(null,arguments)}function Bv(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function sl(e){var n=typeof Map=="function"?new Map:void 0;return sl=function(s){if(s===null||!Bv(s))return s;if(typeof s!="function")throw new TypeError("Super expression must either be null or a function");if(typeof n<"u"){if(n.has(s))return n.get(s);n.set(s,a)}function a(){return Yo(s,arguments,Wi(this).constructor)}return a.prototype=Object.create(s.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),Bi(a,s)},sl(e)}function Xo(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Hv(e,n){if(n&&(typeof n=="object"||typeof n=="function"))return n;if(n!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Xo(e)}function Zv(e){var n=d1();return function(){var s=Wi(e),a;if(n){var l=Wi(this).constructor;a=Reflect.construct(s,arguments,l)}else a=s.apply(this,arguments);return Hv(this,a)}}function Vv(e,n){if(typeof e!="object"||e===null)return e;var i=e[Symbol.toPrimitive];if(i!==void 0){var s=i.call(e,n);if(typeof s!="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function f1(e){var n=Vv(e,"string");return typeof n=="symbol"?n:String(n)}var h1=typeof global<"u"&&{}.toString.call(global)==="[object global]";function ff(e,n){return e.indexOf(n.toLowerCase())===0?e:"".concat(n.toLowerCase()).concat(e.substr(0,1).toUpperCase()).concat(e.substr(1))}function Nv(e){return!!(e&&e.nodeType===1&&"nodeName"in e&&e.ownerDocument&&e.ownerDocument.defaultView)}function Uv(e){return!isNaN(parseFloat(e))&&isFinite(e)&&Math.floor(e)==e}function wr(e){return/^(https?:)?\/\/((((player|www)\.)?vimeo\.com)|((player\.)?[a-zA-Z0-9-]+\.(videoji\.(hk|cn)|vimeo\.work)))(?=$|\/)/.test(e)}function p1(e){var n=/^https:\/\/player\.((vimeo\.com)|([a-zA-Z0-9-]+\.(videoji\.(hk|cn)|vimeo\.work)))\/video\/\d+/;return n.test(e)}function Gv(e){for(var n=(e||"").match(/^(?:https?:)?(?:\/\/)?([^/?]+)/),i=(n&&n[1]||"").replace("player.",""),s=[".videoji.hk",".vimeo.work",".videoji.cn"],a=0,l=s;a<l.length;a++){var d=l[a];if(i.endsWith(d))return i}return"vimeo.com"}function g1(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=e.id,i=e.url,s=n||i;if(!s)throw new Error("An id or url must be passed, either in an options object or as a data-vimeo-id or data-vimeo-url attribute.");if(Uv(s))return"https://vimeo.com/".concat(s);if(wr(s))return s.replace("http:","https:");throw n?new TypeError("“".concat(n,"” is not a valid video id.")):new TypeError("“".concat(s,"” is not a vimeo.com url."))}var hf=function(n,i,s){var a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"addEventListener",l=arguments.length>4&&arguments[4]!==void 0?arguments[4]:"removeEventListener",d=typeof i=="string"?[i]:i;return d.forEach(function(f){n[a](f,s)}),{cancel:function(){return d.forEach(function(h){return n[l](h,s)})}}},qv=typeof Array.prototype.indexOf<"u",Kv=typeof window<"u"&&typeof window.postMessage<"u";if(!h1&&(!qv||!Kv))throw new Error("Sorry, the Vimeo Player API is not available in this browser.");var qr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Yv(e,n){return n={exports:{}},e(n,n.exports),n.exports}/*!
|
|
253
253
|
* weakmap-polyfill v2.0.4 - ECMAScript6 WeakMap polyfill
|
|
254
254
|
* https://github.com/polygonplanet/weakmap-polyfill
|
|
255
255
|
* Copyright (c) 2015-2021 polygonplanet <polygon.planet.aqua@gmail.com>
|
|
@@ -291,7 +291,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
291
291
|
`,$w=ue(ei)`
|
|
292
292
|
transition: color 0.2s ease;
|
|
293
293
|
color: ${({$color:e,theme:n})=>n.colors[e]};
|
|
294
|
-
`;function gf({isLeft:e,onPrev:n,onNext:i}){const s=c.useRef(null),a=fs(s),l=be(),d=l.__hd__.carousel.navigation,f=l.spaces[d.buttonPadding]*2+l.sizes[d.iconSize],h=vt(l,d.iconSize),p=a?d.buttonBackgroundColor:d.buttonColor,x=typeof h=="string"?parseInt(h,10):h;return m.jsx(kt,{onClick:e?n:i,ml:e?{xs:"none",sm:d.marginHorizontal}:void 0,mr:e?void 0:{xs:"none",sm:d.marginHorizontal},ref:s,children:m.jsx(L,{display:"flex",justifyContent:"center",alignItems:"center",width:f,height:f,p:d.buttonPadding,r:d.buttonBorderRadius,bgColor:a?d.buttonColor:d.buttonBackgroundColor,transition:"background-color 0.2s ease",zIndex:l.zIndex.getZIndex("AIC_Kits_Carousel"),boxShadow:"0 0 16px 0 rgba(0, 0, 0, 0.1)",ref:s,children:e?m.jsx(kw,{size:x,weight:"bold",$color:p}):m.jsx($w,{size:x,weight:"bold",$color:p})})})}function Aw({itemsCount:e,activeIndex:n,onDotClick:i}){const s=be(),a=s.__hd__.carousel.pagination,l=a.container,d=vt(s,a.dotSize);return m.jsx(L,{display:"flex",justifyContent:"center",alignItems:"center",mt:l.marginTop,p:l.padding,r:l.borderRadius,bgColor:l.backgroundColor,gap:l.gap,children:Array.from({length:e}).map((f,h)=>m.jsx(L,{width:d,height:d,r:a.dotBorderRadius,bgColor:h===n?a.activeColor:a.inactiveColor,cursor:"pointer",transition:"background-color 0.3s ease",onClick:()=>i(h)},`dot-${h}`))})}function Tw({items:e,renderItem:n,showPagination:i=!0,showNavigation:s=!0,autoPlay:a=!1,autoScroll:l=!1,initialIndex:d=0,onIndexChange:f,keyExtractor:h,itemSpacing:p,itemsPerView:x=1,itemWidth:w,infiniteLoop:_=!1,...v},C){const R=be(),{width:k}=K0(),T=R.__hd__.carousel,E=c.useMemo(()=>{if(e.length<=x)return e;const ae=e.length%x;return ae===0?e:e.slice(0,e.length-ae)},[e,x]),[I,$]=c.useState(d),[M,z]=c.useState(d),j=c.useRef(null),H=c.useRef(null),se=c.useRef(null),te=c.useRef(!1),[re,B]=c.useState(!1),[W,P]=c.useState(null),[le,K]=c.useState(0),ne=!!l,ie=ne?1:Math.max(1,x),we=ne?void 0:_w(R,w),pe=R.spaces[p||T.container.defaultItemSpacing]||0,Se=ne?!1:i,$e=ne?!1:s,de=_&&!ne&&E.length>1,
|
|
294
|
+
`;function gf({isLeft:e,onPrev:n,onNext:i}){const s=c.useRef(null),a=fs(s),l=be(),d=l.__hd__.carousel.navigation,f=l.spaces[d.buttonPadding]*2+l.sizes[d.iconSize],h=vt(l,d.iconSize),p=a?d.buttonBackgroundColor:d.buttonColor,x=typeof h=="string"?parseInt(h,10):h;return m.jsx(kt,{onClick:e?n:i,ml:e?{xs:"none",sm:d.marginHorizontal}:void 0,mr:e?void 0:{xs:"none",sm:d.marginHorizontal},ref:s,children:m.jsx(L,{display:"flex",justifyContent:"center",alignItems:"center",width:f,height:f,p:d.buttonPadding,r:d.buttonBorderRadius,bgColor:a?d.buttonColor:d.buttonBackgroundColor,transition:"background-color 0.2s ease",zIndex:l.zIndex.getZIndex("AIC_Kits_Carousel"),boxShadow:"0 0 16px 0 rgba(0, 0, 0, 0.1)",ref:s,children:e?m.jsx(kw,{size:x,weight:"bold",$color:p}):m.jsx($w,{size:x,weight:"bold",$color:p})})})}function Aw({itemsCount:e,activeIndex:n,onDotClick:i}){const s=be(),a=s.__hd__.carousel.pagination,l=a.container,d=vt(s,a.dotSize);return m.jsx(L,{display:"flex",justifyContent:"center",alignItems:"center",mt:l.marginTop,p:l.padding,r:l.borderRadius,bgColor:l.backgroundColor,gap:l.gap,children:Array.from({length:e}).map((f,h)=>m.jsx(L,{width:d,height:d,r:a.dotBorderRadius,bgColor:h===n?a.activeColor:a.inactiveColor,cursor:"pointer",transition:"background-color 0.3s ease",onClick:()=>i(h)},`dot-${h}`))})}function Tw({items:e,renderItem:n,showPagination:i=!0,showNavigation:s=!0,autoPlay:a=!1,autoScroll:l=!1,initialIndex:d=0,onIndexChange:f,keyExtractor:h,itemSpacing:p,itemsPerView:x=1,itemWidth:w,infiniteLoop:_=!1,...v},C){const R=be(),{width:k}=K0(),T=R.__hd__.carousel,E=c.useMemo(()=>{if(e.length<=x)return e;const ae=e.length%x;return ae===0?e:e.slice(0,e.length-ae)},[e,x]),[I,$]=c.useState(d),[M,z]=c.useState(d),j=c.useRef(null),H=c.useRef(null),se=c.useRef(null),te=c.useRef(!1),[re,B]=c.useState(!1),[W,P]=c.useState(null),[le,K]=c.useState(0),ne=!!l,ie=ne?1:Math.max(1,x),we=ne?void 0:_w(R,w),pe=R.spaces[p||T.container.defaultItemSpacing]||0,Se=ne?!1:i,$e=ne?!1:s,de=_&&!ne&&E.length>1,Le=Math.max(0,E.length-ie),Pe=Math.ceil(E.length/ie),Ee=typeof a=="object"&&a.delay||3e3,st=c.useCallback(ae=>{if(E.length===0)return 0;for(;ae<0;)ae+=E.length;return ae%E.length},[E.length]),ye=c.useCallback(ae=>{if(!de)return{virtualIndex:ae,realIndex:ae,needsSnap:!1};let Ue=ae,We=ae,Ge=!1;return ae<0||ae>Le?(Ue=E.length+ae,We=st(ae),Ge=!0):(Ue=E.length+ae,We=ae,Ge=!1),{virtualIndex:Ue,realIndex:We,needsSnap:Ge}},[de,E.length,Le,st]),Te=c.useCallback(ae=>{if(!de||!j.current)return;const Ue=E.length+ae,We=Za(Ue,ie,pe,we);j.current.style.transition="none",j.current.style.transform=`translateX(${We})`,z(Ue),requestAnimationFrame(()=>{j.current&&(j.current.style.transition="")})},[de,E.length,ie,pe,we]),Fe=c.useCallback(()=>{if(j.current){const ae=window.getComputedStyle(j.current),Ue=new DOMMatrixReadOnly(ae.transform);K(Ue.e)}},[]),ke=c.useCallback(ae=>{const Ue=de?ae:Math.max(0,Math.min(ae,Le)),We=ye(Ue),Ge=Math.max(0,Math.min(Ue,Le));if((Ge!==I||re)&&($(Ge),f==null||f(Ge)),j.current&&!ne){const Je=We.virtualIndex;z(Je);const bt=Za(Je,ie,pe,we);j.current.style.transform=`translateX(${bt})`,j.current.style.transition="",queueMicrotask(()=>{Fe()}),We.needsSnap&&(se.current&&clearTimeout(se.current),se.current=setTimeout(()=>{Te(We.realIndex),$(We.realIndex),f==null||f(We.realIndex)},500))}},[de,Le,I,f,ne,ie,pe,we,Fe,re,ye,Te]),ee=c.useCallback(()=>{_&&E.length>0?ke(I+ie):ke(Math.min(I+ie,Le))},[_,I,ie,Le,E.length,ke]),ge=c.useCallback(()=>{_&&E.length>0?ke(I-ie):ke(Math.max(I-ie,0))},[_,I,ie,E.length,ke]);c.useImperativeHandle(C,()=>({goToIndex:ke,goToNext:ee,goToPrev:ge}));const G=c.useCallback(()=>{H.current&&clearTimeout(H.current)},[]),oe=()=>{te.current=!0,a&&!ne&&G(),ne&&j.current&&(j.current.style.animationPlayState="paused")},he=c.useCallback(()=>{if(te.current=!1,a&&!ne&&!re){G();const ae=(I+1)%E.length,Ue=Math.min(ae,Le);H.current=setTimeout(()=>ke(Ue),Ee)}ne&&j.current&&(j.current.style.animationPlayState="running")},[a,ne,re,G,I,E.length,Le,Ee,ke]),Ae=c.useCallback(ae=>{ne||e.length<=ie||(se.current&&(clearTimeout(se.current),se.current=null),Fe(),G(),B(!0),P(ae),j.current&&(j.current.style.transition="none"))},[ne,G,e.length,ie,Fe]),He=c.useCallback(ae=>{if(!re||W===null||ne||!j.current)return;const Ue=ae-W;j.current.style.transform=`translateX(${le+Ue}px)`},[re,W,ne,le]),Ye=c.useCallback(()=>{if(!re||W===null||ne)return;B(!1);let ae=we;!ae&&j.current&&j.current.firstChild&&(ae=j.current.firstChild.clientWidth),!ae&&j.current&&(ae=j.current.clientWidth/ie);const Ue=(ae||0)/3;if(j.current){const We=window.getComputedStyle(j.current),bt=new DOMMatrixReadOnly(We.transform).e-le;j.current.style.transition="",Math.abs(bt)>Ue?bt<0?ee():ge():ke(I)}P(null),a&&!te.current&&(H.current=setTimeout(()=>ee(),Ee))},[re,W,ne,we,ie,ee,ge,I,a,Ee,le,ke]),De=Math.floor(I/ie),nt=ae=>ke(ae*ie);c.useEffect(()=>{if(!a||ne||te.current||re){G();return}const ae=(I+1)%E.length,Ue=Math.min(ae,Le);return H.current=setTimeout(()=>ke(Ue),Ee),G},[I,a,Ee,ke,G,ne,E.length,Le,re]),c.useEffect(()=>{if(!Ct()){if(de){const ae=E.length+d;if(z(ae),j.current){const Ue=Za(ae,ie,pe,we);j.current.style.transform=`translateX(${Ue})`,j.current.style.transition="none",requestAnimationFrame(()=>{j.current&&(j.current.style.transition="")})}}ke(d)}},[k,d,de,E.length,ie,pe,we]),c.useEffect(()=>()=>{H.current&&clearTimeout(H.current),se.current&&clearTimeout(se.current)},[]);const it=()=>{re&&j.current&&Ye(),he()};return m.jsxs(L,{fw:!0,overflow:"hidden",onMouseEnter:oe,onMouseLeave:it,onTouchStart:ae=>Ae(ae.touches[0].clientX),onTouchMove:ae=>He(ae.touches[0].clientX),onTouchEnd:Ye,onMouseDown:ae=>{ae.button===0&&Ae(ae.clientX)},onMouseMove:ae=>{ae.buttons===1&&re&&He(ae.clientX)},onMouseUp:ae=>{ae.button===0&&re&&Ye()},display:"flex",flexDirection:"column",alignItems:"center",...v,children:[m.jsxs(L,{position:"relative",display:"flex",justifyContent:"center",alignItems:"center",fw:!0,children:[m.jsx(Ew,{itemsWrapperRef:j,itemSpacing:p,activeIndex:I,virtualActiveIndex:M,items:E,renderItem:n,keyExtractor:h,autoScroll:l,itemsPerView:ie,itemWidth:we,infiniteLoop:_}),$e&&e.length>ie&&m.jsx(L,{position:"absolute",left:0,top:"50%",transform:"translateY(-50%)",children:m.jsx(gf,{isLeft:!0,onPrev:ge,onNext:ee})}),$e&&e.length>ie&&m.jsx(L,{position:"absolute",right:0,top:"50%",transform:"translateY(-50%)",children:m.jsx(gf,{isLeft:!1,onPrev:ge,onNext:ee})})]}),Se&&Pe>1&&m.jsx(Aw,{itemsCount:Pe,activeIndex:De,onDotClick:nt})]})}const Rw=c.forwardRef(Tw);function Iw({renderContent:e,isExpanded:n}){const s=be().__hd__.accordion,a=s.animation,l=c.useRef(null),[d,f]=c.useState(0);return c.useEffect(()=>{n&&l.current&&f(l.current.scrollHeight)},[n,e]),m.jsx(L,{overflow:"hidden",transition:`height ${a.duration}ms ${a.easing},
|
|
295
295
|
opacity ${a.duration}ms ${a.easing}`,height:n?d:0,opacity:n?1:0,children:m.jsx(L,{ref:l,pt:s.gap,children:e()})})}const Mw=ue(ei)`
|
|
296
296
|
transition: transform ${({$duration:e,$easing:n})=>`${e}ms ${n}`};
|
|
297
297
|
transform: rotate(${({$isExpanded:e})=>e?"90deg":"0deg"});
|
|
@@ -317,7 +317,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
317
317
|
/* Use medium weight for tags by default, can be customized via theme if needed */
|
|
318
318
|
font-weight: ${({theme:e})=>e.__hd__.text.fontWeights.medium};
|
|
319
319
|
line-height: 1; /* Ensure tight line height for tags */
|
|
320
|
-
`,jw=({variant:e,color:n,textColor:i,size:s,radius:a,icon:l,rightIcon:d,children:f,style:h,"data-testid":p,...x})=>{const w=be(),_=w.__hd__.tag,v=e??_.defaultVariant,C=n??_.defaultColor,R=s??_.defaultSize,k=a??_.defaultRadius,T=b1(w,C,i,v),E=c.useMemo(()=>_.sizes[R],[_.sizes,R]);return m.jsxs(zw,{$variant:v,$color:C,$textColor:i,$size:R,$radius:k,$paddingVertical:E.paddingVertical,$paddingHorizontal:E.paddingHorizontal,$fontSize:E.fontSize,$gap:E.gap,$iconSize:E.iconSize,style:h,"data-testid":p,...x,children:[l&&m.jsx(
|
|
320
|
+
`,jw=({variant:e,color:n,textColor:i,size:s,radius:a,icon:l,rightIcon:d,children:f,style:h,"data-testid":p,...x})=>{const w=be(),_=w.__hd__.tag,v=e??_.defaultVariant,C=n??_.defaultColor,R=s??_.defaultSize,k=a??_.defaultRadius,T=b1(w,C,i,v),E=c.useMemo(()=>_.sizes[R],[_.sizes,R]);return m.jsxs(zw,{$variant:v,$color:C,$textColor:i,$size:R,$radius:k,$paddingVertical:E.paddingVertical,$paddingHorizontal:E.paddingHorizontal,$fontSize:E.fontSize,$gap:E.gap,$iconSize:E.iconSize,style:h,"data-testid":p,...x,children:[l&&m.jsx(gt,{type:"icon",art:l,size:E.iconSize,color:T,weight:"regular"}),m.jsx(Lw,{$color:C,$textColor:i,$variant:v,$fontSize:E.fontSize,as:"span",children:f}),d&&m.jsx(gt,{type:"icon",art:d,size:E.iconSize,color:T,weight:"regular"})]})},Dw=({label:e,checked:n,onChange:i,disabled:s=!1,color:a,size:l,style:d,"data-testid":f})=>{const h=be(),p=h.__hd__.checkbox,[x,w]=c.useState(n);c.useEffect(()=>{w(n)},[n]);const _=a??p.defaultColor,v=l??p.defaultSize,C=p.sizes[v],R=p.animation,k=vt(h,C.iconSize),T=x?_:"white",E=x?_:p.uncheckedBorderColor,I=s?p.disabledColor:T,$=s?p.disabledColor:E,M=()=>{if(s)return;const z=!x;w(z),i(z)};return m.jsxs(kt,{onClick:s?void 0:M,style:d,"data-testid":f,useScaleAnimation:!1,useOpacityAnimation:!1,display:"inline-flex",alignItems:"center",cursor:s?"not-allowed":"pointer",children:[m.jsx(L,{display:"flex",alignItems:"center",justifyContent:"center",borderRadius:C.borderRadius,borderWidth:C.borderWidth,borderColor:$,backgroundColor:I,filter:s?"opacity(0.5)":"none",transition:`background-color ${R.duration}ms ${R.easing}, border-color ${R.duration}ms ${R.easing}`,children:m.jsx(gt,{type:"icon",art:W0,size:k,color:h.colors[p.iconColor],weight:"bold",opacity:x?1:0,transition:`opacity ${R.duration}ms ${R.easing}`,margin:C.iconMargin})}),e&&m.jsx(L,{pl:C.labelPaddingLeft,children:m.jsx(Qe,{fontSize:C.labelFontSize,color:s?p.disabledTextColor:p.textColor,as:"span",children:e})})]})};function x1({value:e,onChange:n,disabled:i=!1}){const[s,a]=c.useState(!1),[l,d]=c.useState(!1),[f,h]=c.useState(e),p=c.useRef(null);c.useEffect(()=>{h(e)},[e]);const x=c.useCallback(()=>{i||a(v=>!v)},[i]),w=c.useCallback(v=>{v.disabled||(h(v.value),n==null||n(v.value),a(!1))},[n]),_=c.useCallback(()=>{a(!1)},[]);return{isOpen:s,setIsOpen:a,isHovering:l,setIsHovering:d,selectedValue:f,selectRef:p,handleToggle:x,handleSelect:w,handleClose:_}}function v1({option:e,isSelected:n,isDisabled:i,onSelect:s,sizeConfig:a,themeSelect:l,animation:d}){const f=c.useRef(null),h=fs(f),p=l.dropdown;let x=p.backgroundColor;n?x=p.itemSelectedBackgroundColor:h&&!i&&(x=p.itemHoverBackgroundColor);const w=i?l.disabledContentColor:n?p.itemSelectedTextColor:p.itemTextColor;return m.jsx(kt,{ref:f,onClick:()=>!i&&s(e),useScaleAnimation:!1,useOpacityAnimation:!1,cursor:i?"not-allowed":"pointer",fw:!0,children:m.jsx(L,{p:a.dropdownPaddingVertical,px:a.dropdownPaddingHorizontal,bgColor:x,transition:`background-color ${d.duration}ms ${d.easing}`,opacity:i?l.disabledOpacity:1,display:"block",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",children:m.jsx(Qe,{fontSize:a.fontSize,color:w,fontWeight:n?"semibold":"regular",as:"span",children:e.label})})},e.value)}function Pw({anchorRef:e,isOpen:n,options:i,onSelect:s,selectedValue:a,onClose:l,size:d,borderRadius:f}){const h=be(),p=h.__hd__.select,x=p.dropdown,w=c.useRef(null),_=p.sizes[d],v=p.animation,C=h.spaces[x.offset];return c.useEffect(()=>{const R=k=>{w.current&&!w.current.contains(k.target)&&e.current&&!e.current.contains(k.target)&&l()};return n&&document.addEventListener("mousedown",R),()=>{document.removeEventListener("mousedown",R)}},[n,l,e]),c.useEffect(()=>{if(!n)return;const R=k=>{k.key==="Escape"&&l()};return document.addEventListener("keydown",R),()=>document.removeEventListener("keydown",R)},[n,l]),Ct()||!n?null:m.jsx(L,{ref:w,bgColor:x.backgroundColor,b:x.borderColor!=="transparent"?_.borderWidth:"none",borderColor:x.borderColor,boxShadow:x.shadow,position:"absolute",top:`calc(100% + ${C}px)`,left:0,right:0,zIndex:h.zIndex.getZIndex("AIC_Kits_Dropdown"),maxHeight:x.maxHeight,overflowY:"auto",transition:`opacity ${v.duration}ms ${v.easing},max-height ${v.duration}ms ${v.easing}`,onClick:R=>R.stopPropagation(),onMouseDown:R=>R.stopPropagation(),style:{borderRadius:f},children:i.length>0?i.map(R=>{const k=R.value===a,T=!!R.disabled;return m.jsx(v1,{option:R,isSelected:k,isDisabled:T,onSelect:s,sizeConfig:_,themeSelect:p,animation:v},R.value)}):m.jsx(L,{p:_.dropdownPaddingVertical,px:_.dropdownPaddingHorizontal,children:m.jsx(Qe,{fontSize:_.fontSize,color:x.emptyTextColor,as:"span",children:"No options available"})})})}const Ww=({fontSize:e,color:n,...i})=>{const s=be(),a={border:"none",backgroundColor:"transparent",outline:"none",width:"100%",fontFamily:"inherit",padding:0,fontSize:s.__hd__.text.fontSizes[e],color:s.colors[n]};return m.jsx("input",{style:a,...i})},w1=({placeholder:e,selectedOptionLabel:n,isOpen:i,isDisabled:s,handleToggle:a,iconSizePx:l,inputBorderRadius:d,sizeConfig:f,animation:h,currentBgColor:p,currentBorderColor:x,baseBorderWidthKey:w,insetBoxShadow:_,textColor:v,iconColor:C,testId:R,setIsHovering:k,searchable:T,searchTerm:E,onSearchChange:I})=>{const $=i&&T;return m.jsx(kt,{onClick:a,cursor:s?"not-allowed":"pointer",useScaleAnimation:!1,useOpacityAnimation:!1,"data-testid":R,onMouseEnter:()=>k(!0),onMouseLeave:()=>k(!1),children:m.jsxs(L,{display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"space-between",p:f.paddingVertical,px:f.paddingHorizontal,b:w,borderColor:x,bgColor:p,opacity:1,transition:`background-color ${h.duration}ms ${h.easing}, border-color ${h.duration}ms ${h.easing}, box-shadow ${h.duration}ms ${h.easing}`,gap:f.gap,style:{borderRadius:d,boxShadow:_},children:[m.jsx(L,{flex:1,overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",children:$?m.jsx(Ww,{value:E,onChange:M=>I(M.target.value),placeholder:e,onClick:M=>M.stopPropagation(),autoFocus:!0,fontSize:f.fontSize,color:v}):m.jsx(Qe,{fontSize:f.fontSize,color:v,as:"span",children:n||e})}),m.jsx(gt,{type:"icon",art:_l,size:l,color:C,weight:"bold",transition:`transform ${h.duration}ms ${h.easing}`,transform:i?"rotate(180deg)":"rotate(0deg)"})]})})};function _1({theme:e,themeSelect:n,variant:i,isDisabled:s,isErrored:a,isOpen:l,isHovering:d,focusColor:f}){const h=n.variants[i],p="thin",x=e.borderWidths[p];let w;s?w=h.disabled:a?w=h.errored:l?w={...h.focused,borderColor:f}:d?w=h.hover:w=h.default;let _="none";if(!s&&!a&&l){const v=h.focused.borderWidth,C=e.borderWidths[v],R=Math.max(0,C-x);if(R>0){const k=e.colors[f];_=`inset 0 0 0 ${R}px ${k}`}}return{backgroundColor:w.backgroundColor,borderColor:w.borderColor,borderWidth:p,insetBoxShadow:_}}const Bw=({options:e,value:n,onChange:i,placeholder:s="Select an option",label:a,helperText:l,error:d,disabled:f=!1,variant:h="outlined",color:p,size:x,corner:w,style:_,"data-testid":v,searchable:C=!1})=>{var ke;const R=be(),k=R.__hd__.select,[T,E]=c.useState(""),{isOpen:I,isHovering:$,selectedValue:M,selectRef:z,handleToggle:j,handleSelect:H,handleClose:se,setIsHovering:te}=x1({value:n,onChange:i,disabled:f});c.useEffect(()=>{I&&E("")},[I]);const re=c.useMemo(()=>T?e.filter(ee=>ee.label.toLowerCase().includes(T.toLowerCase())):e,[e,T]),B=p??k.defaultColor,W=x??k.defaultSize,P=w??k.defaultCorner,le=k.sizes[W],K=k.animation,ne=k.squircleBorderRadii[P],ie=P==="circle"?k.dropdown.borderRadiusForCircle:k.dropdown.borderRadiusForRounded,we=R.radii[ie],pe=!!d,Se=f,{backgroundColor:$e,borderColor:de,borderWidth:Le,insetBoxShadow:Pe}=_1({theme:R,themeSelect:k,variant:h,isDisabled:Se,isErrored:pe,isOpen:I,isHovering:$,focusColor:B}),Ee=Se?k.disabledContentColor:k.iconColor,st=Se?k.disabledContentColor:M!=null?k.valueColor:k.placeholderColor,ye=Se?k.disabledLabelColor:k.labelColor,Te=(ke=e.find(ee=>ee.value===M))==null?void 0:ke.label,Fe=vt(R,le.iconSize);return m.jsxs(L,{fw:!0,style:_,position:"relative",ref:z,children:[a&&m.jsx(L,{mb:"xs",children:m.jsx(Qe,{fontWeight:"medium",color:ye,children:a})}),m.jsx(w1,{placeholder:s,selectedOptionLabel:Te,isOpen:I,isDisabled:Se,handleToggle:j,iconSizePx:Fe,inputBorderRadius:ne,sizeConfig:le,animation:K,currentBgColor:$e,currentBorderColor:de,baseBorderWidthKey:Le,insetBoxShadow:Pe,textColor:st,iconColor:Ee,testId:v,setIsHovering:te,searchable:C,searchTerm:T,onSearchChange:E}),(d||l)&&m.jsx(L,{children:m.jsx(Qe,{fontSize:"xs",color:d?k.errorColor:k.helperTextColor,as:"span",children:d||l})}),m.jsx(Pw,{anchorRef:z,isOpen:I,options:re,onSelect:H,selectedValue:M,onClose:se,size:W,borderRadius:`${we}px`})]})},mf=c.createContext({columns:12}),Bo={xs:0,sm:600,md:900,lg:1200,xl:1536},yf=(e,n)=>Ne.isNumber(n)?`${n}px`:Zf(n)?`${e.spaces[n]??0}px`:n,Nr=(e,n)=>{if(n!==void 0)if(Ne.isObject(n)){const i={};for(const s in n){const a=s,l=n[a];l!==void 0&&(i[a]=yf(e,l))}return i}else return yf(e,n)},Hw=(e,n)=>{if(e<1||e>n)return console.warn(`AIC-Kits Grid: Size prop should be between 1 and ${n}. Received ${e}.`),"auto";const i=e/n,s=1-i,a=(i*100).toFixed(6).replace(/\.0+$/,""),l=s.toFixed(6).replace(/\.0+$/,"");return`calc(${a}% - ${l} * var(--grid-column-gap, 0px))`},Zw=(e,n)=>{if(e<1||e>n-1)return console.warn(`AIC-Kits Grid: Offset prop should be between 1 and ${n-1}. Received ${e}.`),"0";const i=e/n,s=-i,a=(i*100).toFixed(6).replace(/\.0+$/,""),l=s.toFixed(6).replace(/\.0+$/,"");return`calc(${a}% - ${l} * var(--grid-column-gap, 0px))`},Vw=({sizeValue:e,offsetValue:n,currentTotalColumns:i})=>{let s="";if(e==="auto")s+=`
|
|
321
321
|
flex-basis: auto;
|
|
322
322
|
flex-grow: 0;
|
|
323
323
|
flex-shrink: 0; /* Prevent shrinking below content size */
|
|
@@ -395,7 +395,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
395
395
|
color: ${({theme:e,$selected:n})=>n?void 0:e.colors.white};
|
|
396
396
|
}
|
|
397
397
|
transition: color 0.2s ease-in-out, transform 0.2s ease-in-out, opacity 0.2s ease-in-out;
|
|
398
|
-
`,Gw=ue(
|
|
398
|
+
`,Gw=ue(gt)`
|
|
399
399
|
color: ${({theme:e,$color:n,$selected:i})=>i?e.colors.white:e.colors[n]};
|
|
400
400
|
${os}:hover & {
|
|
401
401
|
color: ${({theme:e,$color:n,$selected:i})=>i?e.colors[n]:e.colors.white};
|
|
@@ -518,7 +518,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
518
518
|
margin-bottom: 4px;
|
|
519
519
|
`,u3=ue.div`
|
|
520
520
|
font-weight: 400;
|
|
521
|
-
`,d3=({data:e,width:n=400,minWidth:i=200,maxWidth:s,height:a=300,chartMargin:l,color:d,size:f,variant:h,showGrid:p=!0,showXAxis:x=!0,showYAxis:w=!0,orientation:_="vertical",showTooltip:v=!0,testID:C="bar-chart",...R})=>{var ke,ee,ge;const k=be(),T=(ke=k.__hd__)==null?void 0:ke.barChart,E=c.useRef(null),[I,$]=c.useState(()=>{if(typeof n=="number")return n;if(typeof n=="string"){const G=n.match(/^(\d+(?:\.\d+)?)px$/);if(G)return parseFloat(G[1])}return 400}),[M,z]=c.useState(40),[j,H]=c.useState(null),[se,te]=c.useState(null),re=h||(T==null?void 0:T.defaultVariant)||"default",B=f||(T==null?void 0:T.defaultSize)||"md";c.useEffect(()=>{if(!w||_!=="vertical"||(l==null?void 0:l.left)!==void 0)return;const G=document.createElementNS("http://www.w3.org/2000/svg","svg");G.style.position="absolute",G.style.visibility="hidden",G.style.pointerEvents="none",document.body.appendChild(G);const oe=document.createElementNS("http://www.w3.org/2000/svg","text");oe.style.fontSize="12px",oe.style.fontFamily=k.fonts.neutral||"sans-serif",G.appendChild(oe);const he=e.map(De=>De.value),Ae=he.length>0?Math.max(...he):100,
|
|
521
|
+
`,d3=({data:e,width:n=400,minWidth:i=200,maxWidth:s,height:a=300,chartMargin:l,color:d,size:f,variant:h,showGrid:p=!0,showXAxis:x=!0,showYAxis:w=!0,orientation:_="vertical",showTooltip:v=!0,testID:C="bar-chart",...R})=>{var ke,ee,ge;const k=be(),T=(ke=k.__hd__)==null?void 0:ke.barChart,E=c.useRef(null),[I,$]=c.useState(()=>{if(typeof n=="number")return n;if(typeof n=="string"){const G=n.match(/^(\d+(?:\.\d+)?)px$/);if(G)return parseFloat(G[1])}return 400}),[M,z]=c.useState(40),[j,H]=c.useState(null),[se,te]=c.useState(null),re=h||(T==null?void 0:T.defaultVariant)||"default",B=f||(T==null?void 0:T.defaultSize)||"md";c.useEffect(()=>{if(!w||_!=="vertical"||(l==null?void 0:l.left)!==void 0)return;const G=document.createElementNS("http://www.w3.org/2000/svg","svg");G.style.position="absolute",G.style.visibility="hidden",G.style.pointerEvents="none",document.body.appendChild(G);const oe=document.createElementNS("http://www.w3.org/2000/svg","text");oe.style.fontSize="12px",oe.style.fontFamily=k.fonts.neutral||"sans-serif",G.appendChild(oe);const he=e.map(De=>De.value),Ae=he.length>0?Math.max(...he):100,He=5;let Ye=0;for(let De=0;De<He;De++){const nt=Ae/(He-1)*De;oe.textContent=Math.round(nt).toString();const it=oe.getBBox();Ye=Math.max(Ye,it.width)}document.body.removeChild(G),z(Math.ceil(Ye)+15)},[e,k.fonts.neutral,w,_,l==null?void 0:l.left]),c.useEffect(()=>{if(!w||_!=="horizontal"||(l==null?void 0:l.left)!==void 0)return;const G=document.createElementNS("http://www.w3.org/2000/svg","svg");G.style.position="absolute",G.style.visibility="hidden",G.style.pointerEvents="none",document.body.appendChild(G);const oe=document.createElementNS("http://www.w3.org/2000/svg","text");oe.style.fontSize="12px",oe.style.fontFamily=k.fonts.neutral||"sans-serif",G.appendChild(oe);let he=0;e.forEach(Ae=>{oe.textContent=Ae.label;const He=oe.getBBox();he=Math.max(he,He.width)}),document.body.removeChild(G),z(Math.ceil(he)+15)},[e,k.fonts.neutral,w,_,l==null?void 0:l.left]);const W={top:(l==null?void 0:l.top)??20,right:(l==null?void 0:l.right)??20,bottom:(l==null?void 0:l.bottom)??40,left:(l==null?void 0:l.left)??M};vr(()=>{const G=E.current;if(!G)return;const oe=()=>{if(typeof n=="number"){$(n);return}if(typeof n=="string"&&/^\d+(?:\.\d+)?px$/.test(n)){const He=n.match(/^(\d+(?:\.\d+)?)px$/);if(He){$(parseFloat(He[1]));return}}const Ae=G.clientWidth;Ae>0&&$(Ae)};oe();let he;return typeof ResizeObserver<"u"?(he=new ResizeObserver(oe),he.observe(G)):window.addEventListener("resize",oe),()=>{he?he.disconnect():window.removeEventListener("resize",oe)}},[n,i,s]);const P=(()=>{if(typeof a=="number")return a;if(typeof a=="string"){const G=a.match(/^(\d+(?:\.\d+)?)px$/);if(G)return parseFloat(G[1])}return 300})(),{barRadius:le=4,axisColor:K="grey600",gridColor:ne="grey200",labelColor:ie="grey600"}=((ee=T==null?void 0:T.sizes)==null?void 0:ee[B])||{},{defaultBarColor:we="primary"}=((ge=T==null?void 0:T.variants)==null?void 0:ge[re])||{},pe=d||we,Se=Math.max(0,I-W.left-W.right),$e=Math.max(0,P-W.top-W.bottom),de=e.map(G=>G.value),Le=de.length>0?Math.max(...de):100,Pe=.6,Ee=_==="vertical"?Se/Math.max(e.length,1):$e/Math.max(e.length,1),st=Math.max(Ee*Pe,1),ye=G=>{const oe=Le||100,he=G||0;return _==="vertical"?he/oe*$e:he/oe*Se},Te=c.useMemo(()=>Array.from({length:5},(oe,he)=>{const Ae=Le/4*he,He=Le||100,Ye=Ae||0,De=_==="vertical"?$e-Ye/He*$e:Ye/He*Se;return{value:Ae,position:De}}),[Le,$e,Se,_]),Fe=(G,oe)=>{const Ae=Math.floor(oe/7);if(G.length<=Ae)return G;const He=Math.max(1,Ae-3);return G.substring(0,He)+"..."};return m.jsxs(o3,{ref:E,"data-testid":`${C}-container`,$width:n,$minWidth:i,$maxWidth:s,...R,children:[m.jsxs(s3,{$width:I,$height:P,viewBox:`0 0 ${I} ${P}`,role:"img","aria-label":"Bar chart","data-testid":`${C}-svg`,children:[m.jsx("title",{children:"Bar chart"}),m.jsxs("g",{transform:`translate(${W.left}, ${W.top})`,children:[p&&Te.map((G,oe)=>m.jsx(a3,{$colorKey:ne,x1:_==="vertical"?0:G.position,y1:_==="vertical"?G.position:0,x2:_==="vertical"?Se:G.position,y2:_==="vertical"?G.position:$e,"data-testid":`${C}-grid-line-${oe}`},oe)),e.map((G,oe)=>{const he=ye(G.value);let Ae,He,Ye,De;if(_==="vertical")Ae=oe*Ee+(Ee-st)/2,He=$e-he,Ye=st,De=he;else{const Ge=oe*Ee;Ae=0,He=Ge+(Ee-st)/2,Ye=he,De=st}const nt=2,it=Math.max(Ye,nt),ae=Math.max(De,nt),Ue=G.color||pe,We=k.colors[Ue]||Ue||"#6949FF";return m.jsx("rect",{x:Ae,y:He,width:it,height:ae,fill:We,rx:Math.min(le,ae/2,it/2),ry:Math.min(le,ae/2,it/2),opacity:j===oe?1:.9,cursor:"pointer",onMouseEnter:Ge=>{var Je;if(H(oe),v){const bt=Ge.currentTarget.getBoundingClientRect(),$t=(Je=E.current)==null?void 0:Je.getBoundingClientRect();$t&&te({x:bt.left-$t.left+bt.width/2,y:bt.top-$t.top})}Ge.currentTarget.style.filter="brightness(1.1)"},onMouseLeave:Ge=>{H(null),te(null),Ge.currentTarget.style.filter="brightness(1)"},"data-testid":`${C}-bar-${oe}`},oe)}),x&&m.jsxs(m.Fragment,{children:[m.jsx(vf,{$colorKey:K,x1:0,y1:$e,x2:Se,y2:$e,"data-testid":`${C}-x-axis`}),_==="vertical"&&e.map((G,oe)=>{const he=oe*Ee+Ee/2,Ae=$e+20,He=Ee*.9,Ye=Fe(G.label,He);return m.jsxs(Zo,{x:he,y:Ae,$colorKey:ie,textAnchor:"middle","data-testid":`${C}-x-label-${oe}`,children:[G.label!==Ye&&m.jsx("title",{children:G.label}),Ye]},oe)}),_==="horizontal"&&Te.map((G,oe)=>m.jsxs("g",{children:[m.jsx("line",{x1:G.position,y1:$e,x2:G.position,y2:$e+5,stroke:k.colors[K]||K,strokeWidth:1}),m.jsx(Zo,{x:G.position,y:$e+20,$colorKey:ie,textAnchor:"middle","data-testid":`${C}-x-value-${oe}`,children:Math.round(G.value)})]},`x-tick-${oe}`))]}),w&&m.jsxs(m.Fragment,{children:[m.jsx(vf,{$colorKey:K,x1:0,y1:0,x2:0,y2:$e,"data-testid":`${C}-y-axis`}),_==="vertical"&&Te.map((G,oe)=>m.jsxs("g",{children:[m.jsx("line",{x1:-5,y1:G.position,x2:0,y2:G.position,stroke:k.colors[K]||K,strokeWidth:1}),m.jsx(Zo,{x:-10,y:G.position,$colorKey:ie,textAnchor:"end",dominantBaseline:"middle","data-testid":`${C}-y-value-${oe}`,children:Math.round(G.value)})]},`y-tick-${oe}`)),_==="horizontal"&&e.map((G,oe)=>{const he=oe*Ee+Ee/2;return m.jsx(Zo,{x:-10,y:he,$colorKey:ie,textAnchor:"end",dominantBaseline:"middle","data-testid":`${C}-y-label-${oe}`,children:G.label},`y-cat-${oe}`)})]})]})]}),v&&j!==null&&se&&m.jsxs(l3,{$left:se.x,$top:se.y-10,"data-testid":`${C}-tooltip`,children:[m.jsx(c3,{children:e[j].label}),m.jsxs(u3,{children:["Value: ",e[j].value]})]})]})},f3=Sn`
|
|
522
522
|
from {
|
|
523
523
|
opacity: 0;
|
|
524
524
|
transform: scale(0.8);
|
|
@@ -600,7 +600,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
600
600
|
L ${d} ${f}
|
|
601
601
|
A ${s} ${s} 0 ${x} 1 ${h} ${p}
|
|
602
602
|
Z
|
|
603
|
-
`},_3=({data:e,width:n=400,height:i=400,minWidth:s=200,maxWidth:a,minHeight:l=200,maxHeight:d,innerRadius:f=0,outerRadius:h,padAngle:p=0,size:x,variant:w,showLabels:_=!1,showLegend:v=!0,legendPosition:C="right",animationDuration:R=300,startAngle:k=-90,testID:T="pie-chart",...E})=>{var Ee,st;const $=be().__hd__.pieChart,M=c.useRef(null),[z,j]=c.useState(()=>{if(typeof n=="number")return n;if(typeof n=="string"){const ye=n.match(/^(\d+(?:\.\d+)?)px$/);if(ye)return parseFloat(ye[1])}return 400}),[H,se]=c.useState(()=>{if(typeof i=="number")return i;if(typeof i=="string"){const ye=i.match(/^(\d+(?:\.\d+)?)px$/);if(ye)return parseFloat(ye[1])}return 400}),te=w||($==null?void 0:$.defaultVariant)||"default",re=x||($==null?void 0:$.defaultSize)||"md";vr(()=>{const ye=M.current;if(!ye)return;const Te=()=>{if(typeof n=="number"){j(n);return}if(typeof n=="string"&&/^\d+(?:\.\d+)?px$/.test(n)){const ee=n.match(/^(\d+(?:\.\d+)?)px$/);if(ee){j(parseFloat(ee[1]));return}}const ke=ye.clientWidth;ke>0&&j(ke)};Te();let Fe;return typeof ResizeObserver<"u"?(Fe=new ResizeObserver(Te),Fe.observe(ye)):window.addEventListener("resize",Te),()=>{Fe?Fe.disconnect():window.removeEventListener("resize",Te)}},[n,s,a]),vr(()=>{const ye=M.current;if(!ye)return;const Te=()=>{if(typeof i=="number"){se(i);return}if(typeof i=="string"&&/^\d+(?:\.\d+)?px$/.test(i)){const ee=i.match(/^(\d+(?:\.\d+)?)px$/);if(ee){se(parseFloat(ee[1]));return}}const ke=ye.clientHeight;ke>0&&se(ke)};Te();let Fe;return typeof ResizeObserver<"u"?(Fe=new ResizeObserver(Te),Fe.observe(ye)):window.addEventListener("resize",Te),()=>{Fe?Fe.disconnect():window.removeEventListener("resize",Te)}},[i,l,d]);const{strokeWidth:B=1,strokeColor:W="white",labelColor:P="grey600",labelFontSize:le=12,legendFontSize:K=14,legendSpacing:ne=8}=((Ee=$==null?void 0:$.sizes)==null?void 0:Ee[re])||{},{defaultColors:ie=["primary","secondary","success","warning","danger"]}=((st=$==null?void 0:$.variants)==null?void 0:st[te])||{},we=Math.min(z,H),pe=we/2,Se=we/2,$e=h||we/2-20,de=f*$e,
|
|
603
|
+
`},_3=({data:e,width:n=400,height:i=400,minWidth:s=200,maxWidth:a,minHeight:l=200,maxHeight:d,innerRadius:f=0,outerRadius:h,padAngle:p=0,size:x,variant:w,showLabels:_=!1,showLegend:v=!0,legendPosition:C="right",animationDuration:R=300,startAngle:k=-90,testID:T="pie-chart",...E})=>{var Ee,st;const $=be().__hd__.pieChart,M=c.useRef(null),[z,j]=c.useState(()=>{if(typeof n=="number")return n;if(typeof n=="string"){const ye=n.match(/^(\d+(?:\.\d+)?)px$/);if(ye)return parseFloat(ye[1])}return 400}),[H,se]=c.useState(()=>{if(typeof i=="number")return i;if(typeof i=="string"){const ye=i.match(/^(\d+(?:\.\d+)?)px$/);if(ye)return parseFloat(ye[1])}return 400}),te=w||($==null?void 0:$.defaultVariant)||"default",re=x||($==null?void 0:$.defaultSize)||"md";vr(()=>{const ye=M.current;if(!ye)return;const Te=()=>{if(typeof n=="number"){j(n);return}if(typeof n=="string"&&/^\d+(?:\.\d+)?px$/.test(n)){const ee=n.match(/^(\d+(?:\.\d+)?)px$/);if(ee){j(parseFloat(ee[1]));return}}const ke=ye.clientWidth;ke>0&&j(ke)};Te();let Fe;return typeof ResizeObserver<"u"?(Fe=new ResizeObserver(Te),Fe.observe(ye)):window.addEventListener("resize",Te),()=>{Fe?Fe.disconnect():window.removeEventListener("resize",Te)}},[n,s,a]),vr(()=>{const ye=M.current;if(!ye)return;const Te=()=>{if(typeof i=="number"){se(i);return}if(typeof i=="string"&&/^\d+(?:\.\d+)?px$/.test(i)){const ee=i.match(/^(\d+(?:\.\d+)?)px$/);if(ee){se(parseFloat(ee[1]));return}}const ke=ye.clientHeight;ke>0&&se(ke)};Te();let Fe;return typeof ResizeObserver<"u"?(Fe=new ResizeObserver(Te),Fe.observe(ye)):window.addEventListener("resize",Te),()=>{Fe?Fe.disconnect():window.removeEventListener("resize",Te)}},[i,l,d]);const{strokeWidth:B=1,strokeColor:W="white",labelColor:P="grey600",labelFontSize:le=12,legendFontSize:K=14,legendSpacing:ne=8}=((Ee=$==null?void 0:$.sizes)==null?void 0:Ee[re])||{},{defaultColors:ie=["primary","secondary","success","warning","danger"]}=((st=$==null?void 0:$.variants)==null?void 0:st[te])||{},we=Math.min(z,H),pe=we/2,Se=we/2,$e=h||we/2-20,de=f*$e,Le=c.useMemo(()=>{const ye=e.reduce((Fe,ke)=>Fe+ke.value,0);let Te=k;return e.map((Fe,ke)=>{const ee=Fe.value/ye*100,ge=Fe.value/ye*360-p,G={...Fe,percentage:ee,startAngle:Te,endAngle:Te+ge,midAngle:Te+ge/2,color:Fe.color||ie[ke%ie.length]};return Te+=ge+p,G})},[e,k,p,ie]),Pe=(ye,Te)=>{const Fe=ye*Math.PI/180,ke=de>0?(de+$e)/2:Te*.7;return{x:Math.cos(Fe)*ke,y:Math.sin(Fe)*ke}};return m.jsxs(h3,{ref:M,$legendPosition:C,$showLegend:v,$width:n,$height:i,$minWidth:s,$maxWidth:a||n,$minHeight:l,$maxHeight:d||i,"data-testid":`${T}-container`,...E,children:[m.jsxs(p3,{$width:we,$height:we,viewBox:`0 0 ${we} ${we}`,role:"img","aria-label":"Pie chart","data-testid":`${T}-svg`,children:[m.jsx("title",{children:"Pie chart"}),m.jsx("g",{transform:`translate(${pe}, ${Se})`,children:Le.map((ye,Te)=>{const Fe=w3(ye.startAngle,ye.endAngle,de,$e),ke=Pe(ye.midAngle,$e);return m.jsxs("g",{children:[m.jsx(g3,{d:Fe,$colorKey:ye.color,$strokeWidth:B,$strokeColorKey:W,$animationDuration:R,$startAngle:ye.startAngle,$endAngle:ye.endAngle,"data-testid":`${T}-slice-${Te}`}),_&&m.jsxs(m3,{x:ke.x,y:ke.y,$colorKey:P,$fontSize:le,textAnchor:"middle",dominantBaseline:"middle","data-testid":`${T}-label-${Te}`,children:[ye.percentage.toFixed(1),"%"]})]},Te)})})]}),v&&m.jsx(y3,{$position:C,$spacing:ne,"data-testid":`${T}-legend`,children:Le.map((ye,Te)=>m.jsxs(b3,{$spacing:ne,"data-testid":`${T}-legend-item-${Te}`,children:[m.jsx(x3,{$colorKey:ye.color,$size:K}),m.jsxs(v3,{$fontSize:K,$colorKey:P,children:[ye.label," (",ye.percentage.toFixed(1),"%)"]})]},Te))})]})},C3=Sn`
|
|
604
604
|
from {
|
|
605
605
|
stroke-dashoffset: 1000;
|
|
606
606
|
}
|
|
@@ -729,7 +729,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
729
729
|
`;ue(L)`
|
|
730
730
|
font-size: 12px;
|
|
731
731
|
font-family: ${({theme:e})=>e.fonts.neutral};
|
|
732
|
-
`;const I3=(e,n)=>{if(e.length===0)return"";if(n==="linear")return e.map((i,s)=>`${s===0?"M":"L"} ${i.x} ${i.y}`).join(" ");if(n==="smooth"){let i=`M ${e[0].x} ${e[0].y}`;for(let s=1;s<e.length;s++){const a=e[Math.max(0,s-2)],l=e[s-1],d=e[s],f=e[Math.min(e.length-1,s+1)],h=l.x+(d.x-a.x)/6,p=l.y+(d.y-a.y)/6,x=d.x-(f.x-l.x)/6,w=d.y-(f.y-l.y)/6;i+=` C ${h} ${p}, ${x} ${w}, ${d.x} ${d.y}`}return i}if(n==="step"){let i=`M ${e[0].x} ${e[0].y}`;for(let s=1;s<e.length;s++){const a=(e[s-1].x+e[s].x)/2;i+=` L ${a} ${e[s-1].y} L ${a} ${e[s].y} L ${e[s].x} ${e[s].y}`}return i}return""},M3=({series:e,width:n=600,minWidth:i=300,maxWidth:s,height:a=400,minHeight:l=300,maxHeight:d,chartMargin:f,size:h,variant:p,showGrid:x=!0,showXAxis:w=!0,showYAxis:_=!0,showLegend:v=!0,legendPosition:C="top",curve:R="linear",animationDuration:k=500,xAxisLabels:T,yDomain:E,testID:I="line-chart",...$})=>{const M=be(),z=M.__hd__.lineChart,j=c.useRef(null),[H,se]=c.useState(()=>{if(typeof n=="number")return n;if(typeof n=="string"){const ee=n.match(/^(\d+(?:\.\d+)?)px$/);if(ee)return parseFloat(ee[1])}return 600}),[te,re]=c.useState(()=>{if(typeof a=="number")return a;if(typeof a=="string"){const ee=a.match(/^(\d+(?:\.\d+)?)px$/);if(ee)return parseFloat(ee[1])}return 400}),B=p||z.defaultVariant,W=h||z.defaultSize;vr(()=>{const ee=j.current;if(!ee)return;const ge=()=>{if(typeof n=="number")se(n);else if(typeof n=="string"&&/^\d+(?:\.\d+)?px$/.test(n)){const he=n.match(/^(\d+(?:\.\d+)?)px$/);he&&se(parseFloat(he[1]))}else{const he=ee.clientWidth;he>0&&se(he)}const oe=(()=>{if(typeof a=="number")return a;if(typeof a=="string"){const he=a.match(/^(\d+(?:\.\d+)?)px$/);if(he)return parseFloat(he[1])}return 400})();re(oe)};ge();let G;return typeof ResizeObserver<"u"?(G=new ResizeObserver(ge),G.observe(ee)):window.addEventListener("resize",ge),()=>{G?G.disconnect():window.removeEventListener("resize",ge)}},[n,a]),vr(()=>{const ee=j.current;if(!ee)return;const ge=()=>{if(typeof n=="number")se(n);else if(typeof n=="string"&&/^\d+(?:\.\d+)?px$/.test(n)){const he=n.match(/^(\d+(?:\.\d+)?)px$/);he&&se(parseFloat(he[1]))}else{const he=ee.clientWidth;he>0&&se(he)}const oe=(()=>{if(typeof a=="number")return a;if(typeof a=="string"){const he=a.match(/^(\d+(?:\.\d+)?)px$/);if(he)return parseFloat(he[1])}return 400})();re(oe)};ge();let G;return typeof ResizeObserver<"u"?(G=new ResizeObserver(ge),G.observe(ee)):window.addEventListener("resize",ge),()=>{G?G.disconnect():window.removeEventListener("resize",ge)}},[n,a]);const{strokeWidth:P,dotRadius:le,axisColor:K,gridColor:ne,labelColor:ie,labelFontSize:we,legendFontSize:pe,legendSpacing:Se}=z.sizes[W],{defaultColors:$e}=z.variants[B],[de,
|
|
732
|
+
`;const I3=(e,n)=>{if(e.length===0)return"";if(n==="linear")return e.map((i,s)=>`${s===0?"M":"L"} ${i.x} ${i.y}`).join(" ");if(n==="smooth"){let i=`M ${e[0].x} ${e[0].y}`;for(let s=1;s<e.length;s++){const a=e[Math.max(0,s-2)],l=e[s-1],d=e[s],f=e[Math.min(e.length-1,s+1)],h=l.x+(d.x-a.x)/6,p=l.y+(d.y-a.y)/6,x=d.x-(f.x-l.x)/6,w=d.y-(f.y-l.y)/6;i+=` C ${h} ${p}, ${x} ${w}, ${d.x} ${d.y}`}return i}if(n==="step"){let i=`M ${e[0].x} ${e[0].y}`;for(let s=1;s<e.length;s++){const a=(e[s-1].x+e[s].x)/2;i+=` L ${a} ${e[s-1].y} L ${a} ${e[s].y} L ${e[s].x} ${e[s].y}`}return i}return""},M3=({series:e,width:n=600,minWidth:i=300,maxWidth:s,height:a=400,minHeight:l=300,maxHeight:d,chartMargin:f,size:h,variant:p,showGrid:x=!0,showXAxis:w=!0,showYAxis:_=!0,showLegend:v=!0,legendPosition:C="top",curve:R="linear",animationDuration:k=500,xAxisLabels:T,yDomain:E,testID:I="line-chart",...$})=>{const M=be(),z=M.__hd__.lineChart,j=c.useRef(null),[H,se]=c.useState(()=>{if(typeof n=="number")return n;if(typeof n=="string"){const ee=n.match(/^(\d+(?:\.\d+)?)px$/);if(ee)return parseFloat(ee[1])}return 600}),[te,re]=c.useState(()=>{if(typeof a=="number")return a;if(typeof a=="string"){const ee=a.match(/^(\d+(?:\.\d+)?)px$/);if(ee)return parseFloat(ee[1])}return 400}),B=p||z.defaultVariant,W=h||z.defaultSize;vr(()=>{const ee=j.current;if(!ee)return;const ge=()=>{if(typeof n=="number")se(n);else if(typeof n=="string"&&/^\d+(?:\.\d+)?px$/.test(n)){const he=n.match(/^(\d+(?:\.\d+)?)px$/);he&&se(parseFloat(he[1]))}else{const he=ee.clientWidth;he>0&&se(he)}const oe=(()=>{if(typeof a=="number")return a;if(typeof a=="string"){const he=a.match(/^(\d+(?:\.\d+)?)px$/);if(he)return parseFloat(he[1])}return 400})();re(oe)};ge();let G;return typeof ResizeObserver<"u"?(G=new ResizeObserver(ge),G.observe(ee)):window.addEventListener("resize",ge),()=>{G?G.disconnect():window.removeEventListener("resize",ge)}},[n,a]),vr(()=>{const ee=j.current;if(!ee)return;const ge=()=>{if(typeof n=="number")se(n);else if(typeof n=="string"&&/^\d+(?:\.\d+)?px$/.test(n)){const he=n.match(/^(\d+(?:\.\d+)?)px$/);he&&se(parseFloat(he[1]))}else{const he=ee.clientWidth;he>0&&se(he)}const oe=(()=>{if(typeof a=="number")return a;if(typeof a=="string"){const he=a.match(/^(\d+(?:\.\d+)?)px$/);if(he)return parseFloat(he[1])}return 400})();re(oe)};ge();let G;return typeof ResizeObserver<"u"?(G=new ResizeObserver(ge),G.observe(ee)):window.addEventListener("resize",ge),()=>{G?G.disconnect():window.removeEventListener("resize",ge)}},[n,a]);const{strokeWidth:P,dotRadius:le,axisColor:K,gridColor:ne,labelColor:ie,labelFontSize:we,legendFontSize:pe,legendSpacing:Se}=z.sizes[W],{defaultColors:$e}=z.variants[B],[de,Le]=c.useMemo(()=>{if(E)return E;let ee=1/0,ge=-1/0;return e.forEach(G=>{G.data.forEach(oe=>{ee=Math.min(ee,oe.y),ge=Math.max(ge,oe.y)})}),ee===1/0||ge===-1/0?[0,1]:[Math.floor(ee-(ge-ee)*.1),Math.ceil(ge+(ge-ee)*.1)]},[e,E]),Pe=c.useMemo(()=>{const ge=Array.from({length:5},(it,ae)=>(de+(Le-de)*(ae/4)).toFixed(1)),G=M.fonts.neutral,oe=`${we}px ${G}`,he=we*.6;let Ae=null;typeof document<"u"&&(Ae=document.createElement("canvas").getContext("2d"),Ae&&(Ae.font=oe));const He=it=>Ae?Ae.measureText(it).width:it.length*he,Ye=ge.reduce((it,ae)=>Math.max(it,He(ae)),0),De=Math.ceil(Ye+12),nt=(f==null?void 0:f.left)??50;return Math.max(nt,De)},[de,Le,f==null?void 0:f.left,we,M.fonts.neutral]),Ee={top:(f==null?void 0:f.top)??20,right:(f==null?void 0:f.right)??20,bottom:(f==null?void 0:f.bottom)??40,left:Pe},st=Math.max(0,H-Ee.left-Ee.right),ye=Math.max(0,te-Ee.top-Ee.bottom),{processedSeries:Te,xLabels:Fe,yTicks:ke}=c.useMemo(()=>{const ee=new Set,ge=[];let G=1/0,oe=-1/0;e.forEach(We=>{We.data.forEach(Ge=>{const Je=String(Ge.x);ee.has(Je)||(ee.add(Je),ge.push(Je)),G=Math.min(G,Ge.y),oe=Math.max(oe,Ge.y)})});const[he,Ae]=E||[Math.floor(G-(oe-G)*.1),Math.ceil(oe+(oe-G)*.1)],He=T||ge,Ye=st/(He.length-1||1),De=new Map(He.map((We,Ge)=>[String(We),Ge*Ye])),nt=We=>{const Ge=(We-he)/(Ae-he||1);return ye-Ge*ye},it=e.map((We,Ge)=>({...We,color:We.color||$e[Ge%$e.length],points:We.data.map(Je=>({x:De.get(String(Je.x))||0,y:nt(Je.y),originalX:Je.x,originalY:Je.y}))})),ae=5,Ue=Array.from({length:ae},(We,Ge)=>{const Je=he+(Ae-he)*(Ge/(ae-1));return{value:Je,position:nt(Je),label:Je.toFixed(1)}});return{processedSeries:it,xLabels:He,yTicks:Ue.reverse()}},[e,st,ye,T,E,$e]);return m.jsxs(k3,{ref:j,"data-testid":`${I}-container`,$width:n,$minWidth:i,$maxWidth:s,$height:a,$minHeight:l,$maxHeight:d,...$,children:[v&&C==="top"&&m.jsx(Sf,{$position:C,$spacing:Se,"data-testid":`${I}-legend`,children:Te.map((ee,ge)=>m.jsxs(Ef,{$spacing:Se,"data-testid":`${I}-legend-item-${ge}`,children:[m.jsx(kf,{$colorKey:ee.color,$strokeWidth:ee.strokeWidth||P,$strokeDasharray:ee.strokeDasharray}),m.jsx($f,{$fontSize:pe,$colorKey:ie,children:ee.label})]},ee.id))}),m.jsxs($3,{$width:H,$height:te,viewBox:`0 0 ${H} ${te}`,role:"img","aria-label":"Line chart","data-testid":`${I}-svg`,children:[m.jsx("title",{children:"Line chart"}),m.jsxs("g",{transform:`translate(${Ee.left}, ${Ee.top})`,children:[x&&m.jsxs(m.Fragment,{children:[ke.map((ee,ge)=>m.jsx(Cf,{$colorKey:ne,x1:0,y1:ee.position,x2:st,y2:ee.position,"data-testid":`${I}-grid-h-${ge}`},`h-grid-${ge}`)),Fe.map((ee,ge)=>{const G=ge*st/(Fe.length-1||1);return m.jsx(Cf,{$colorKey:ne,x1:G,y1:0,x2:G,y2:ye,"data-testid":`${I}-grid-v-${ge}`},`v-grid-${ge}`)})]}),Te.map((ee,ge)=>{var he,Ae;const G=I3(ee.points,R),oe=ee.showArea?`${G} L ${((he=ee.points[ee.points.length-1])==null?void 0:he.x)||0} ${ye} L ${((Ae=ee.points[0])==null?void 0:Ae.x)||0} ${ye} Z`:"";return m.jsxs("g",{children:[ee.showArea&&m.jsx(T3,{d:oe,$colorKey:ee.color,$animationDuration:k,"data-testid":`${I}-area-${ge}`}),m.jsx(A3,{d:G,$colorKey:ee.color,$strokeWidth:ee.strokeWidth||P,$strokeDasharray:ee.strokeDasharray,$animationDuration:k,"data-testid":`${I}-line-${ge}`}),ee.showDots!==!1&&ee.points.map((He,Ye)=>m.jsx(R3,{cx:He.x,cy:He.y,r:le,$colorKey:ee.color,$animationDuration:k,"data-testid":`${I}-dot-${ge}-${Ye}`},Ye))]},ee.id)}),w&&m.jsxs(m.Fragment,{children:[m.jsx(wf,{$colorKey:K,x1:0,y1:ye,x2:st,y2:ye,"data-testid":`${I}-x-axis`}),Fe.map((ee,ge)=>{const G=ge*st/(Fe.length-1||1);return m.jsx(_f,{x:G,y:ye+20,$colorKey:ie,$fontSize:we,textAnchor:"middle","data-testid":`${I}-x-label-${ge}`,children:ee},ge)})]}),_&&m.jsxs(m.Fragment,{children:[m.jsx(wf,{$colorKey:K,x1:0,y1:0,x2:0,y2:ye,"data-testid":`${I}-y-axis`}),ke.map((ee,ge)=>m.jsx(_f,{x:-10,y:ee.position,$colorKey:ie,$fontSize:we,textAnchor:"end",dominantBaseline:"middle","data-testid":`${I}-y-label-${ge}`,children:ee.label},ge))]})]})]}),v&&C==="bottom"&&m.jsx(Sf,{$position:C,$spacing:Se,"data-testid":`${I}-legend`,children:Te.map((ee,ge)=>m.jsxs(Ef,{$spacing:Se,"data-testid":`${I}-legend-item-${ge}`,children:[m.jsx(kf,{$colorKey:ee.color,$strokeWidth:ee.strokeWidth||P,$strokeDasharray:ee.strokeDasharray}),m.jsx($f,{$fontSize:pe,$colorKey:ie,children:ee.label})]},ee.id))})]})},F3="md",O3="24h",z3=1,L3=Array.from({length:24},(e,n)=>n.toString().padStart(2,"0")),j3=Array.from({length:12},(e,n)=>(n+1).toString().padStart(2,"0")),D3=["AM","PM"],P3=ue.div`
|
|
733
733
|
display: flex;
|
|
734
734
|
align-items: center;
|
|
735
735
|
justify-content: center;
|
|
@@ -894,4 +894,4 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
894
894
|
`,v4=ue(L)`
|
|
895
895
|
${({$direction:e,$duration:n,$easing:i})=>e==="prev"?lt`animation: ${b4} ${n}ms ${i};`:e==="next"?lt`animation: ${x4} ${n}ms ${i};`:""}
|
|
896
896
|
will-change: transform, opacity;
|
|
897
|
-
`,w4=({currentMonth:e,onPrevMonth:n,onNextMonth:i,locale:s,size:a,disabled:l,dateConfig:d,viewMode:f,onMonthClick:h,onYearClick:p})=>{const x=be(),w=x.__hd__.datepicker,_=w.sizes[a],[v,C]=c.useState(null),[R,k]=c.useState(0),T=()=>{C("prev"),k(z=>z+1),n()},E=()=>{C("next"),k(z=>z+1),i()},I=l||(f==="days"?If(e,"prev",d):f==="months"?d!=null&&d.minDate?e.getFullYear()-1<d.minDate.getFullYear():!1:f==="years"&&d!=null&&d.minDate?Jo(e.getFullYear())[0]-12<d.minDate.getFullYear():!1),$=l||(f==="days"?If(e,"next",d):f==="months"?d!=null&&d.maxDate?e.getFullYear()+1>d.maxDate.getFullYear():!1:f==="years"&&d!=null&&d.maxDate?Jo(e.getFullYear())[11]+1>d.maxDate.getFullYear():!1),M=()=>{if(f==="days")return m.jsxs(L,{display:"flex",flexDirection:"row",alignItems:"center",gap:"xs",children:[m.jsx(Ga,{onClick:h,text:Mf(e,s),ariaLabel:`Select month, currently ${Mf(e,s)}`,fontSize:_.headerFontSize,fontWeight:_.headerFontWeight,color:"grey900"}),m.jsx(Ga,{onClick:p,text:No(e),ariaLabel:`Select year, currently ${No(e)}`,fontSize:_.headerFontSize,fontWeight:_.headerFontWeight,color:"grey900"})]});if(f==="months")return m.jsx(Ga,{onClick:p,text:No(e),ariaLabel:`Select year, currently ${No(e)}`,fontSize:_.headerFontSize,fontWeight:_.headerFontWeight,color:"grey900"});if(f==="years"){const z=Jo(e.getFullYear());return m.jsxs(Qe,{as:"span",fontSize:_.headerFontSize,fontWeight:_.headerFontWeight,color:w.colors.headerText,children:[z[0]," - ",z[11]]})}return null};return m.jsxs(L,{display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"space-between",height:x.spaces[_.headerHeight],children:[m.jsx(Qr,{onClick:I?void 0:T,variant:"text",size:a,color:"grey900",icon:us,disabled:I,"aria-label":f==="days"?"Previous month":f==="months"?"Previous year":"Previous decade"}),m.jsx(v4,{$direction:v,$duration:w.animation.duration,$easing:w.animation.easing,display:"flex",flexDirection:"row",alignItems:"center",gap:"xs",onAnimationEnd:()=>C(null),children:M()},R),m.jsx(Qr,{onClick:$?void 0:E,variant:"text",size:a,color:"grey900",icon:ei,disabled:$,"aria-label":f==="days"?"Next month":f==="months"?"Next year":"Next decade"})]})},_4=({currentYear:e,selectedMonth:n,selectedYear:i,onSelect:s,locale:a,size:l,dateConfig:d,disabled:f})=>{const h=X3(a),p=k=>{if(f)return!0;if(!d)return!1;const T=new Date(e,k,1),E=new Date(e,k+1,0);return!!(d.minDate&&E<d.minDate||d.maxDate&&T>d.maxDate)},x=k=>n===k&&i===e,w=k=>{const T=new Date;return e===T.getFullYear()&&k===T.getMonth()},_=be(),v=_.__hd__.datepicker,C=_.__hd__.text,R=v.sizes[l];return m.jsx(L,{display:"grid",gap:R.cellGap,width:R.viewWidth,minHeight:R.viewHeight,alignItems:"center",justifyContent:"center",style:{gridTemplateColumns:"repeat(4, 1fr)"},children:h.map((k,T)=>{const E=x(T),I=p(T),$=w(T)&&!E;return m.jsx(R1,{$isSelected:E,$isDisabled:I,$isCurrent:$,$height:_.spaces[R.dateCellSize],$fontSize:C.fontSizes[R.dateFontSize],onClick:I?void 0:()=>s(T),role:"option","aria-label":`Select ${k}`,"aria-selected":E,"aria-disabled":I,children:k},T)})})},C4=({currentYear:e,selectedYear:n,onSelect:i,size:s,dateConfig:a,disabled:l})=>{const d=be(),f=d.__hd__.datepicker,h=d.__hd__.text,p=f.sizes[s],x=Jo(e),w=new Date().getFullYear(),_=v=>{if(l)return!0;if(!a)return!1;const C=new Date(v,0,1),R=new Date(v,11,31);return!!(a.minDate&&R<a.minDate||a.maxDate&&C>a.maxDate)};return m.jsx(L,{display:"grid",gap:p.cellGap,width:p.viewWidth,minHeight:p.viewHeight,alignItems:"center",justifyContent:"center",style:{gridTemplateColumns:"repeat(4, 1fr)"},children:x.map(v=>{const C=n===v,R=_(v),k=v===w&&!C;return m.jsx(R1,{$isSelected:C,$isDisabled:R,$isCurrent:k,$height:d.spaces[p.dateCellSize],$fontSize:h.fontSizes[p.dateFontSize],onClick:R?void 0:()=>i(v),role:"option","aria-label":`Select ${v}`,"aria-selected":C,"aria-disabled":R,children:v},v)})})},jf=({currentMonth:e,selectedDate:n,onDateSelect:i,onMonthChange:s,dateConfig:a,weekStartDay:l,locale:d,size:f,disabled:h,rangeMarkerDate:p})=>{const[x,w]=c.useState("days"),_=c.useCallback(()=>{x==="days"?s(ss(e,-1)):x==="months"?s(Uo(e,-1)):x==="years"&&s(Uo(e,-12))},[e,s,x]),v=c.useCallback(()=>{x==="days"?s(ss(e,1)):x==="months"?s(Uo(e,1)):x==="years"&&s(Uo(e,12))},[e,s,x]),C=c.useCallback(()=>{w("months")},[]),R=c.useCallback(()=>{w("years")},[]),k=c.useCallback(H=>{const se=new Date(e.getFullYear(),H,1);s(se),w("days")},[e,s]),T=c.useCallback(H=>{const se=new Date(H,e.getMonth(),1);s(se),w("months")},[e,s]),E=c.useCallback(()=>{const H=new Date;s(H),i(H)},[s,i]),I=c.useMemo(()=>h||$1(new Date,a),[a,h]),$=()=>x==="months"?m.jsx(_4,{currentYear:e.getFullYear(),selectedMonth:(n==null?void 0:n.getMonth())??null,selectedYear:(n==null?void 0:n.getFullYear())??null,onSelect:k,locale:d,size:f,dateConfig:a,disabled:h}):x==="years"?m.jsx(C4,{currentYear:e.getFullYear(),selectedYear:(n==null?void 0:n.getFullYear())??null,onSelect:T,size:f,dateConfig:a,disabled:h}):m.jsxs(L,{width:j.viewWidth,minHeight:j.viewHeight,children:[m.jsx(m4,{currentMonth:e,selectedDate:n,onDateClick:i,dateConfig:a,weekStartDay:l,locale:d,size:f,disabled:h,rangeMarkerDate:p}),m.jsx(L,{display:"flex",justifyContent:"center",pt:"md",bt:"thin",borderTopColor:"grey200",children:m.jsx(Qr,{variant:"text",color:"primary",size:f,text:"Today",disabled:I,onClick:E})})]}),z=be().__hd__.datepicker,j=z.sizes[f];return m.jsxs(L,{display:"flex",flexDirection:"column",gap:"md",minWidth:z.calendar.panelMinWidth,children:[m.jsx(w4,{currentMonth:e,onPrevMonth:_,onNextMonth:v,locale:d,size:f,disabled:h,dateConfig:a,viewMode:x,onMonthClick:C,onYearClick:R}),$()]})},cl=c.forwardRef(({value:e,onChange:n,onFocus:i,onBlur:s,onEnterPress:a,onClear:l,placeholder:d="Select a date",label:f,helperText:h,error:p,disabled:x,hasValue:w},_)=>{const v=c.useRef(null);c.useEffect(()=>{typeof _=="function"?_(v.current):_&&(_.current=v.current)},[_]);const C=c.useCallback(E=>{var I;E.key==="Enter"&&(a==null||a(),(I=v.current)==null||I.blur())},[a]),R=c.useCallback(E=>{n(E)},[n]),k=c.useCallback(()=>{i()},[i]),T=c.useCallback(()=>{l==null||l()},[l]);return m.jsx(Il,{ref:v,value:e,onChange:R,onBlur:s,onKeyDown:C,onFocus:k,placeholder:d,disabled:x,label:f,helperText:h,error:p,rightIcon:w?void 0:wl,clearable:w,onClear:T})});cl.displayName="DatePickerInput";const qa=({isOpen:e,anchorRef:n,onClose:i,children:s,size:a,isFixedPosition:l=!1})=>{const d=be(),f=d.__hd__.datepicker,h=c.useRef(null),p=d.spaces[f.popup.offset];Al({anchorRef:n,popupRef:h,offsetValue:p,isOpen:e,useFixedPosition:l});const x=c.useCallback(v=>{v.target===v.currentTarget&&i()},[i]),w=c.useCallback(v=>{v.preventDefault()},[]);if(c.useEffect(()=>{if(!e)return;const v=C=>{(C.key==="Escape"||C.key==="Tab")&&i()};return document.addEventListener("keydown",v),()=>document.removeEventListener("keydown",v)},[e,i]),!e||typeof document>"u")return null;const _=m.jsxs(m.Fragment,{children:[m.jsx(L,{position:"fixed",top:0,left:0,right:0,bottom:0,zIndex:f.popup.zIndex-1,onClick:x}),m.jsx(L,{ref:h,position:"absolute",zIndex:f.popup.zIndex,role:"dialog","aria-modal":"true",onMouseDown:w,children:s})]});return l?Df.createPortal(_,document.body):_},I1=c.forwardRef(({startValue:e,endValue:n,onStartChange:i,onEndChange:s,onStartFocus:a,onEndFocus:l,onStartBlur:d,onEndBlur:f,onStartEnterPress:h,onEndEnterPress:p,onClear:x,hasValue:w,disabled:_,error:v,startPlaceholder:C="Start date",endPlaceholder:R="End date"},k)=>{const T=c.useRef(null),E=c.useRef(null),[I,$]=c.useState(!1),M=be(),z=M.__hd__.input,j=vt(M,z.iconSize),H=_?z.disabledTextColor:z.iconColor;c.useImperativeHandle(k,()=>({focusStart:()=>{var K;return(K=T.current)==null?void 0:K.focus()},focusEnd:()=>{var K;return(K=E.current)==null?void 0:K.focus()},blurStart:()=>{var K;return(K=T.current)==null?void 0:K.blur()},blurEnd:()=>{var K;return(K=E.current)==null?void 0:K.blur()}}));const se=c.useCallback(()=>{$(!0),a()},[a]),te=c.useCallback(()=>{$(!0),l()},[l]),re=c.useCallback(()=>{$(!1),d==null||d()},[d]),B=c.useCallback(()=>{$(!1),f==null||f()},[f]),W=c.useCallback(K=>{var ne;K.key==="Enter"&&(h==null||h(),(ne=T.current)==null||ne.blur())},[h]),P=c.useCallback(K=>{var ne;K.key==="Enter"&&(p==null||p(),(ne=E.current)==null||ne.blur())},[p]),le=c.useCallback(K=>{K.stopPropagation(),x==null||x()},[x]);return m.jsxs(p4,{$isFocused:I,$isDisabled:!!_,$error:!!v,children:[m.jsx(Lf,{ref:T,value:e,onChange:K=>i(K.target.value),onFocus:se,onBlur:re,onKeyDown:W,disabled:_,placeholder:C}),m.jsx(L,{display:"flex",alignItems:"center",justifyContent:"center",px:"xs",children:m.jsx(pt,{type:"icon",art:vl,size:16,color:"grey400"})}),m.jsx(Lf,{ref:E,value:n,onChange:K=>s(K.target.value),onFocus:te,onBlur:B,onKeyDown:P,disabled:_,placeholder:R}),m.jsx(L,{ml:"xs",pl:"xs",children:w?m.jsx(kt,{onClick:le,children:m.jsx(L,{ml:z.iconSpacing,children:m.jsx(pt,{type:"icon",art:ds,size:j,color:H})})}):m.jsx(L,{ml:z.iconSpacing,children:m.jsx(pt,{type:"icon",art:wl,size:j,color:H})})})]})});I1.displayName="DatePickerRangeInput";function Ka({value:e,onChange:n,onClose:i,open:s,onOpenChange:a,defaultMonth:l,defaultTimezone:d,disabled:f,showTime:h}){const[p,x]=c.useState(!1),w=s??p,[_,v]=c.useState((e==null?void 0:e.date)??null),[C,R]=c.useState((e==null?void 0:e.time)??null),[k,T]=c.useState((e==null?void 0:e.timezone)??d??null),[E,I]=c.useState((e==null?void 0:e.date)??l??new Date),$=c.useRef(null),M=c.useRef(null),z=c.useRef(!1),j=c.useRef(_),H=c.useRef(C),se=c.useRef(k);j.current=_,H.current=C,se.current=k,c.useEffect(()=>{if(z.current){z.current=!1;return}e&&(e.date!==void 0&&(v(e.date),e.date&&I(e.date)),e.time!==void 0&&R(e.time),e.timezone&&T(e.timezone))},[e]);const te=c.useCallback(()=>{if(!f){if(!_){const de=new Date;de.setHours(0,0,0,0),v(de),I(de)}if(h&&!C){const de=new Date;R({hours:de.getHours(),minutes:de.getMinutes()})}x(!0),a==null||a(!0)}},[f,a,_,C,h]),re=c.useCallback(()=>{x(!1),a==null||a(!1);const de=j.current,je=H.current,Ze=se.current;if(de){const Ee={date:de,time:h?je:void 0,timezone:Ze};n==null||n(Ee)}i==null||i()},[a,i,n,h]),B=c.useCallback(()=>{f||(w?re():te())},[f,w,re,te]),W=c.useCallback(de=>{z.current=!0,v(de),de&&I(de)},[]),P=c.useCallback(de=>{z.current=!0,R(de)},[]),le=c.useCallback(de=>{z.current=!0,v(de);const je={date:de,time:h?C:void 0,timezone:k};n==null||n(je)},[k,C,h,n]),K=c.useCallback(de=>{z.current=!0,R(de);const je={date:_,time:de,timezone:k};n==null||n(je)},[_,k,n]),ne=c.useCallback(de=>{T(de);const je={date:_,time:h?C:void 0,timezone:de};n==null||n(je)},[_,C,h,n]),ie=c.useCallback(de=>{I(de)},[]),we=c.useCallback(()=>{v((e==null?void 0:e.date)??null),R((e==null?void 0:e.time)??null),T((e==null?void 0:e.timezone)??d??null),I((e==null?void 0:e.date)??l??new Date)},[e,d,l]),pe=c.useCallback(()=>({date:_,time:h?C:void 0,timezone:k}),[_,C,k,h]),Se=c.useCallback(()=>{var de;(de=M.current)==null||de.focus()},[]),$e=c.useCallback(de=>{x(de),de||(a==null||a(!1),i==null||i())},[a,i]);return{isOpen:w,selectedDate:_,selectedTime:C,selectedTimezone:k,currentMonth:E,containerRef:$,inputRef:M,handleOpen:te,handleClose:re,setIsOpen:$e,handleToggle:B,handleDateSelect:le,setSelectedDatePreview:W,handleTimeSelect:K,setSelectedTimePreview:P,handleTimezoneChange:ne,handleMonthChange:ie,reset:we,getValue:pe,focus:Se}}const M1=c.forwardRef(({value:e,onChange:n,onClose:i,range:s=!1,startValue:a,endValue:l,onStartChange:d,onEndChange:f,mode:h="inline",showInlineInput:p=!1,open:x,onOpenChange:w,dateConfig:_,disablePastDates:v=!1,defaultMonth:C,weekStartDay:R=f4,locale:k=d4,showTime:T=!1,timeFormat:E="24h",minuteStep:I=1,timeSlots:$,slots:M,size:z,variant:j,label:H,helperText:se,error:te,disabled:re=!1,loading:B=!1,isFixedPosition:W=!1,...P},le)=>{const ne=be().__hd__.datepicker,ie=z??ne.defaultSize,we=j??ne.defaultVariant,pe=Intl.DateTimeFormat().resolvedOptions().timeZone,Se=Ka({value:e,onChange:n,onClose:i,open:x,onOpenChange:w,defaultMonth:C,defaultTimezone:pe,disabled:re,showTime:T}),$e=Ka({value:a,onChange:d,onClose:i,defaultMonth:C,defaultTimezone:pe,disabled:re,showTime:T}),de=Ka({value:l,onChange:f,onClose:i,defaultMonth:C,defaultTimezone:pe,disabled:re,showTime:T}),{isOpen:je,selectedDate:Ze,selectedTime:Ee,currentMonth:st,containerRef:ye,handleOpen:Te,handleClose:Fe,handleToggle:ke,handleDateSelect:ee,handleTimeSelect:ge,setSelectedDatePreview:G,setSelectedTimePreview:oe,handleMonthChange:he,reset:Ae,getValue:Be,focus:Ye}=Se,De=c.useMemo(()=>!M||M.length===0?M:s4(M,pe),[M,pe]),nt=c.useMemo(()=>{let xe=_;if(v){const gt=new Date;gt.setHours(0,0,0,0),xe={...xe,minDate:xe!=null&&xe.minDate&&xe.minDate>gt?xe.minDate:gt}}return De&&De.length>0&&(xe=T1(De,xe)),xe},[v,_,De]),it=c.useRef(null),ae=c.useRef(null),Ue=c.useRef(null),Pe=c.useRef(null),Ge=c.useRef(ee),Je=c.useRef(he),bt=c.useRef(oe),$t=c.useRef(null);Ue.current=Ze,Pe.current=Ee,Ge.current=ee,Je.current=he,bt.current=oe;const rr=c.useRef(!1),[un,Xt]=c.useState(()=>ln(Ze,k,Ee,T,E));c.useEffect(()=>{if(rr.current)return;if($t.current==="input"){$t.current=null;return}const xe=(e==null?void 0:e.date)??null,gt=(e==null?void 0:e.time)??null,Ht=ln(xe,k,gt,T,E);Xt(Ht),$t.current="calendar"},[e==null?void 0:e.date,e==null?void 0:e.time,k,T,E]),c.useEffect(()=>{if($t.current==="calendar"){$t.current=null;return}const xe=Ff(un);if(xe&&((!Ue.current||!_r(xe.date,Ue.current))&&(Ge.current(xe.date),Je.current(xe.date)),T&&xe.time)){const Ht=Pe.current;(!Ht||Ht.hours!==xe.time.hours||Ht.minutes!==xe.time.minutes)&&bt.current(xe.time)}},[un,k,T]);const Sr=c.useCallback(xe=>{rr.current=!0,$t.current="input",Xt(xe)},[]),Wn=c.useCallback(()=>{if(rr.current=!1,$t.current=null,je)return;if(!un.trim()){ee(null),Xt("");return}const xe=Ff(un);xe?(ee(xe.date),he(xe.date),xe.time&&T&&oe(xe.time),Xt(ln(xe.date,k,xe.time??Ee,T,E))):Xt(Ze?ln(Ze,k,Ee,T,E):"")},[un,k,Ze,Ee,je,T,E,ee,he,oe]),ri=c.useCallback(()=>{ke()},[ke]),Er=c.useCallback(()=>{G(null),Xt(""),n==null||n({date:null,timezone:pe})},[G,n,pe]),ii=c.useCallback(xe=>{let gt=Ee;if(xe&&De&&De.length>0){const Ht=ll(De,xe);Ht.length>0&&(Ee&&Ht.some(Ui=>Ui.hours===Ee.hours&&Ui.minutes===Ee.minutes)||(gt=Ht[0],oe(gt)))}h==="inline"?ee(xe):G(xe),Xt(xe?ln(xe,k,gt,T,E):"")},[G,oe,ee,h,k,Ee,T,E,De]);c.useImperativeHandle(le,()=>({open:Te,close:Fe,reset:Ae,getValue:Be,focus:Ye}),[Te,Fe,Ae,Be,Ye]);const Vi=c.useMemo(()=>De&&De.length>0?Ze?ll(De,Ze):void 0:$,[De,Ze,$]),bs=T&&(!De||De.length===0||Ze!==null),xs=c.useCallback(xe=>{h==="inline"?ge(xe):oe(xe),Ze&&Xt(ln(Ze,k,xe,T,E))},[oe,ge,h,Ze,k,T,E]),oi=()=>m.jsxs(L,{display:"flex",flexDirection:"row",alignItems:"center",gap:ne.sizes[ie].panelGap,children:[m.jsx(jf,{currentMonth:st,selectedDate:Ze,onDateSelect:ii,onMonthChange:he,dateConfig:nt,weekStartDay:R,locale:k,size:ie,disabled:re||B}),bs&&m.jsx(Li,{value:Ee,onChange:xs,format:E,minuteStep:I,size:ie,slots:Vi})]}),At=ne.sizes[ie],yn=ne.variants[we],vs=c.useRef(null),si=c.useRef(null),[ai,Bn]=c.useState(()=>ln((a==null?void 0:a.date)??null,k,(a==null?void 0:a.time)??null,T,E)),[li,ir]=c.useState(()=>ln((l==null?void 0:l.date)??null,k,(l==null?void 0:l.time)??null,T,E));c.useEffect(()=>{s&&Bn(ln((a==null?void 0:a.date)??null,k,(a==null?void 0:a.time)??null,T,E))},[s,a==null?void 0:a.date,a==null?void 0:a.time,k,T,E]),c.useEffect(()=>{s&&ir(ln((l==null?void 0:l.date)??null,k,(l==null?void 0:l.time)??null,T,E))},[s,l==null?void 0:l.date,l==null?void 0:l.time,k,T,E]);const Ni=(xe,gt,Ht)=>m.jsxs(L,{display:"flex",flexDirection:"row",alignItems:"center",gap:ne.sizes[ie].panelGap,children:[m.jsx(jf,{currentMonth:xe.currentMonth,selectedDate:xe.selectedDate,onDateSelect:bn=>{xe.setSelectedDatePreview(bn),gt(bn?ln(bn,k,xe.selectedTime,T,E):"")},onMonthChange:xe.handleMonthChange,dateConfig:nt,weekStartDay:R,locale:k,size:ie,disabled:re||B,rangeMarkerDate:Ht}),T&&xe.selectedDate&&m.jsx(Li,{value:xe.selectedTime,onChange:bn=>{xe.setSelectedTimePreview(bn),xe.selectedDate&>(ln(xe.selectedDate,k,bn,T,E))},format:E,minuteStep:I,size:ie,slots:Vi})]}),or=c.useRef(!1);return c.useEffect(()=>{if(!s||$e.isOpen||de.isOpen)return;if(or.current){or.current=!1;return}if(c4(a,l)===1){or.current=!0,d==null||d(l),f==null||f(a);const gt=ai;Bn(li),ir(gt)}},[s,a,l,$e.isOpen,de.isOpen,d,f,ai,li]),s?m.jsxs(L,{position:"relative",...P,children:[H&&m.jsx(L,{mb:"xs",children:m.jsx(Qe,{fontWeight:"medium",children:H})}),m.jsx(L,{ref:si,children:m.jsx(I1,{ref:vs,startValue:ai,endValue:li,onStartChange:Bn,onEndChange:ir,onStartFocus:()=>{$e.handleOpen(),de.setIsOpen(!1)},onEndFocus:()=>{de.handleOpen(),$e.setIsOpen(!1)},onStartBlur:()=>{},onEndBlur:()=>{},onClear:()=>{$e.reset(),de.reset(),Bn(""),ir("")},hasValue:!!(a!=null&&a.date)||!!(l!=null&&l.date),disabled:re||B,error:!!te})}),(te||se)&&m.jsx(L,{mt:"xs",children:m.jsx(Qe,{fontSize:"xs",color:te?"danger":"grey600",children:te||se})}),m.jsx(qa,{isOpen:$e.isOpen,anchorRef:si,onClose:$e.handleClose,size:ie,isFixedPosition:W,children:m.jsx(L,{display:"flex",flexDirection:"column",p:At.containerPadding,gap:At.panelGap,bgColor:yn.container.backgroundColor,b:At.borderWidth,borderColor:yn.container.borderColor,r:ne.borderRadii.container,children:Ni($e,Bn,l==null?void 0:l.date)})}),m.jsx(qa,{isOpen:de.isOpen,anchorRef:si,onClose:de.handleClose,size:ie,isFixedPosition:W,children:m.jsx(L,{display:"flex",flexDirection:"column",p:At.containerPadding,gap:At.panelGap,bgColor:yn.container.backgroundColor,b:At.borderWidth,borderColor:yn.container.borderColor,r:ne.borderRadii.container,children:Ni(de,ir,a==null?void 0:a.date)})})]}):h==="inline"?m.jsx(L,{ref:ye,position:"relative",...P,children:m.jsxs(L,{display:"flex",flexDirection:"column",p:At.containerPadding,gap:At.panelGap,bgColor:yn.container.backgroundColor,b:At.borderWidth,borderColor:yn.container.borderColor,r:ne.borderRadii.container,children:[p&&m.jsx(cl,{ref:it,value:un,onChange:Sr,onFocus:()=>{},onBlur:Wn,onEnterPress:Wn,disabled:re||B,hasValue:!!Ze,onClear:Er}),oi()]})}):m.jsxs(L,{ref:ye,position:"relative",...P,children:[m.jsx(L,{ref:ae,position:"relative",children:m.jsx(cl,{ref:it,value:un,onChange:Sr,onFocus:ri,onBlur:Wn,onEnterPress:Wn,onClear:Er,label:H,helperText:se,error:te,disabled:re||B,hasValue:!!Ze})}),m.jsx(qa,{isOpen:je,anchorRef:ae,onClose:Fe,size:ie,isFixedPosition:W,children:m.jsx(L,{display:"flex",flexDirection:"column",p:At.containerPadding,gap:At.panelGap,bgColor:yn.container.backgroundColor,b:At.borderWidth,borderColor:yn.container.borderColor,r:ne.borderRadii.container,children:oi()})})]})});M1.displayName="DatePicker";function Go(e,n){return{hours:e.hours,minutes:H3(e.minutes,n)}}function Ya(e,n){if(n.length===0)return null;const i=n.find(d=>Ol(d,e));if(i)return i;const s=e.hours*60+e.minutes;let a=n[0],l=Math.abs(n[0].hours*60+n[0].minutes-s);for(const d of n){const f=d.hours*60+d.minutes,h=Math.abs(f-s);h<l&&(l=h,a=d)}return a}function Xa({value:e,onChange:n,format:i,minuteStep:s=1,slots:a}){const[l,d]=c.useState(!1),[f,h]=c.useState(null),[p,x]=c.useState(()=>e?Kt(e,i):""),w=c.useRef(!1),_=c.useRef(!1);c.useEffect(()=>{w.current||x(e?Kt(e,i):"")},[e,i]),c.useEffect(()=>{const $=l&&!_.current;if(_.current=l,$){if(e)h(e);else{const M=new Date;let z={hours:M.getHours(),minutes:M.getMinutes()};a&&a.length>0?z=Ya(z,a)??a[0]:z=Go(z,s),h(z)}w.current=!0}else l||(w.current=!1)},[l,e,s,a]);const v=c.useCallback(()=>{d(!0)},[]),C=c.useCallback(()=>{d(!1),f?(n==null||n(f),x(Kt(f,i))):x(e?Kt(e,i):"")},[f,n,i,e]),R=c.useCallback(()=>{h(null),x(""),n==null||n(null)},[n]),k=c.useCallback($=>{x($);const M=Va($,i);if(M){let z=M;a&&a.length>0?z=a.find(H=>Ol(H,M))??null:z=Go(M,s),z&&h(z)}},[i,s,a]),T=c.useCallback($=>{h($),x(Kt($,i))},[i]),E=c.useCallback(()=>{if(!l){const $=Va(p,i);if($){let M=$;a&&a.length>0?M=Ya($,a):M=Go($,s),M?(n==null||n(M),x(Kt(M,i))):x(e?Kt(e,i):"")}else x(e?Kt(e,i):"")}},[l,p,i,n,e,s,a]),I=c.useCallback(()=>{const $=Va(p,i);if($){let M=$;a&&a.length>0?M=Ya($,a):M=Go($,s),M?(h(M),n==null||n(M),x(Kt(M,i))):x(e?Kt(e,i):"")}else x(e?Kt(e,i):"");d(!1)},[p,i,n,e,s,a]);return{isOpen:l,setIsOpen:d,inputValue:p,setInputValue:x,editingValue:f,setEditingValue:h,handleOpen:v,handleClose:C,handleClear:R,handleInputChange:k,handleWheelChange:T,handleInputBlur:E,handleEnterPress:I}}const F1=c.forwardRef(({value:e,onChange:n,onFocus:i,onBlur:s,onEnterPress:a,onClear:l,label:d,helperText:f,error:h,disabled:p,hasValue:x,placeholder:w="Select a time"},_)=>{const v=c.useRef(null);c.useEffect(()=>{typeof _=="function"?_(v.current):_&&(_.current=v.current)},[_]);const C=c.useCallback(E=>{var I;E.key==="Enter"&&(a==null||a(),(I=v.current)==null||I.blur())},[a]),R=c.useCallback(E=>{n(E)},[n]),k=c.useCallback(()=>{i()},[i]),T=c.useCallback(()=>{l==null||l()},[l]);return m.jsx(Il,{ref:v,value:e,onChange:R,onBlur:s,onKeyDown:C,onFocus:k,disabled:p,label:d,helperText:f,error:h,placeholder:w,rightIcon:x?void 0:Cl,clearable:x,onClear:T})});F1.displayName="TimePickerInput";const Qa=({isOpen:e,anchorRef:n,onClose:i,children:s,size:a,isFixedPosition:l=!1})=>{const d=be(),f=d.__hd__.timepicker,h=c.useRef(null),p=d.spaces[f.popup.offset];Al({anchorRef:n,popupRef:h,offsetValue:p,isOpen:e,useFixedPosition:l});const x=c.useCallback(_=>{_.target===_.currentTarget&&i()},[i]);if(c.useEffect(()=>{if(!e)return;const _=v=>{(v.key==="Escape"||v.key==="Tab")&&i()};return document.addEventListener("keydown",_),()=>document.removeEventListener("keydown",_)},[e,i]),!e||typeof document>"u")return null;const w=m.jsxs(m.Fragment,{children:[m.jsx(L,{position:"fixed",top:0,left:0,right:0,bottom:0,zIndex:f.popup.zIndex-1,onClick:x}),m.jsx(L,{ref:h,position:"absolute",display:"flex",flexDirection:"row",zIndex:f.popup.zIndex,p:f.sizes[a].popupPadding,bgColor:f.colors.wheelBg,r:f.borderRadii.popup,borderWidth:"thin",borderColor:"grey200",role:"dialog","aria-modal":"true",children:s})]});return l?Df.createPortal(w,document.body):w},O1=c.forwardRef(({startValue:e,endValue:n,onStartChange:i,onEndChange:s,onStartFocus:a,onEndFocus:l,onStartBlur:d,onEndBlur:f,onStartEnterPress:h,onEndEnterPress:p,onClear:x,hasValue:w,disabled:_,error:v},C)=>{const R=c.useRef(null),k=c.useRef(null),[T,E]=c.useState(!1),I=be(),$=I.__hd__.input,M=vt(I,$.iconSize),z=_?$.disabledTextColor:$.iconColor;c.useImperativeHandle(C,()=>({focusStart:()=>{var P;return(P=R.current)==null?void 0:P.focus()},focusEnd:()=>{var P;return(P=k.current)==null?void 0:P.focus()},blurStart:()=>{var P;return(P=R.current)==null?void 0:P.blur()},blurEnd:()=>{var P;return(P=k.current)==null?void 0:P.blur()}}));const j=c.useCallback(()=>{E(!0),a()},[a]),H=c.useCallback(()=>{E(!0),l()},[l]),se=c.useCallback(()=>{E(!1),d==null||d()},[d]),te=c.useCallback(()=>{E(!1),f==null||f()},[f]),re=c.useCallback(P=>{var le;P.key==="Enter"&&(h==null||h(),(le=R.current)==null||le.blur())},[h]),B=c.useCallback(P=>{var le;P.key==="Enter"&&(p==null||p(),(le=k.current)==null||le.blur())},[p]),W=c.useCallback(P=>{P.stopPropagation(),x==null||x()},[x]);return m.jsxs(W3,{$isFocused:T,$isDisabled:!!_,$error:!!v,children:[m.jsx(Af,{ref:R,value:e,onChange:P=>i(P.target.value),onFocus:j,onBlur:se,onKeyDown:re,disabled:_,placeholder:"--:--"}),m.jsx(L,{display:"flex",alignItems:"center",justifyContent:"center",px:"xs",children:m.jsx(pt,{type:"icon",art:vl,size:16,color:"grey400"})}),m.jsx(Af,{ref:k,value:n,onChange:P=>s(P.target.value),onFocus:H,onBlur:te,onKeyDown:B,disabled:_,placeholder:"--:--"}),m.jsx(L,{ml:"xs",pl:"xs",children:w?m.jsx(kt,{onClick:W,children:m.jsx(L,{ml:$.iconSpacing,children:m.jsx(pt,{type:"icon",art:ds,size:M,color:z})})}):m.jsx(L,{ml:$.iconSpacing,children:m.jsx(pt,{type:"icon",art:Cl,size:M,color:z})})})]})});O1.displayName="TimePickerRangeInput";const S4=({value:e,onChange:n,range:i=!1,startValue:s,endValue:a,onStartChange:l,onEndChange:d,format:f=O3,minuteStep:h=z3,slots:p,size:x=F3,disabled:w=!1,label:_,helperText:v,error:C,isFixedPosition:R=!1,...k},T)=>{const E=c.useRef(null),I=c.useRef(null),$=Xa({value:e??null,onChange:n,format:f,minuteStep:h,slots:p}),M=Xa({value:s??null,onChange:l,format:f,minuteStep:h,slots:p}),z=Xa({value:a??null,onChange:d,format:f,minuteStep:h,slots:p});c.useImperativeHandle(T,()=>({open:()=>{i?M.setIsOpen(!0):$.setIsOpen(!0)},close:()=>{i?(M.setIsOpen(!1),z.setIsOpen(!1)):$.setIsOpen(!1)},reset:()=>{i?(M.handleClear(),z.handleClear()):$.handleClear()},getValue:()=>i?s??null:e??null,focus:()=>{var re;(re=E.current)==null||re.focus()}}));const j=c.useCallback(re=>{$.handleWheelChange(re)},[$]),H=c.useCallback(re=>{M.handleWheelChange(re)},[M]),se=c.useCallback(re=>{z.handleWheelChange(re)},[z]),te=c.useRef(!1);return c.useEffect(()=>{if(!i||M.isOpen||z.isOpen)return;if(te.current){te.current=!1;return}Z3(s,a)===1&&(te.current=!0,l==null||l(a),d==null||d(s))},[i,s,a,M.isOpen,z.isOpen,l,d]),i?m.jsxs(L,{...k,position:"relative",children:[_&&m.jsx(L,{mb:"xs",children:m.jsx(Qe,{fontWeight:"medium",children:_})}),m.jsx(L,{ref:I,children:m.jsx(O1,{startValue:M.inputValue,endValue:z.inputValue,onStartChange:M.handleInputChange,onEndChange:z.handleInputChange,onStartFocus:M.handleOpen,onEndFocus:z.handleOpen,onStartBlur:M.handleInputBlur,onEndBlur:z.handleInputBlur,onStartEnterPress:M.handleEnterPress,onEndEnterPress:z.handleEnterPress,onClear:()=>{M.handleClear(),z.handleClear()},hasValue:M.inputValue!==""||z.inputValue!=="",disabled:w,error:!!C})}),(C||v)&&m.jsx(L,{mt:"xs",children:m.jsx(Qe,{fontSize:"xs",color:C?"danger":"grey600",children:C||v})}),m.jsx(Qa,{isOpen:M.isOpen,anchorRef:I,onClose:M.handleClose,size:x,isFixedPosition:R,children:m.jsx(Li,{value:M.editingValue,onChange:H,format:f,minuteStep:h,size:x,slots:p,markerValue:a,markerLabel:a?"End:":void 0})}),m.jsx(Qa,{isOpen:z.isOpen,anchorRef:I,onClose:z.handleClose,size:x,isFixedPosition:R,children:m.jsx(Li,{value:z.editingValue,onChange:se,format:f,minuteStep:h,size:x,slots:p,markerValue:s,markerLabel:s?"Start:":void 0})})]}):m.jsxs(L,{...k,position:"relative",children:[m.jsx(L,{ref:I,children:m.jsx(F1,{ref:E,value:$.inputValue,onChange:$.handleInputChange,onFocus:$.handleOpen,onBlur:$.handleInputBlur,onEnterPress:$.handleEnterPress,onClear:$.handleClear,label:_,helperText:v,error:C,disabled:w,hasValue:$.inputValue!==""})}),m.jsx(Qa,{isOpen:$.isOpen,anchorRef:I,onClose:$.handleClose,size:x,isFixedPosition:R,children:m.jsx(Li,{value:$.editingValue,onChange:j,format:f,minuteStep:h,size:x,slots:p})})]})},E4=c.forwardRef(S4);exports.AIC_Kits_StackingLayers=mn;exports.Accordion=Ow;exports.Art=pt;exports.Avatar=q0;exports.BarChart=d3;exports.Base=Mv;exports.Box=L;exports.Brand=F0;exports.Button=Qr;exports.Carousel=Rw;exports.Checkbox=Dw;exports.DEFAULT_VIMEO_CONFIG=bw;exports.DatePicker=M1;exports.Divider=n1;exports.Emoji=O0;exports.Grid=C1;exports.Header=l1;exports.HeaderAuth=i1;exports.HeaderLogo=o1;exports.HeaderNav=s1;exports.HeaderSearch=a1;exports.Icon=xl;exports.Image=U0;exports.Input=Il;exports.LineChart=M3;exports.List=Dv;exports.Loading=Tl;exports.Modal=n3;exports.NormalizedBrowserName=e1;exports.NormalizedDeviceType=J0;exports.NormalizedOSName=t1;exports.Pagination=Kw;exports.PaginationItem=S1;exports.PieChart=_3;exports.Progress=e3;exports.RESPONSIVE_BREAKPOINTS=Hi;exports.RESPONSIVE_BREAKPOINT_KEYS=ji;exports.SUPPORTED_RICH_TEXT_TAGS=N0;exports.Select=Bw;exports.SelectDropdownItem=v1;exports.SelectInputDisplay=w1;exports.Skeleton=Zi;exports.StyledBox=A0;exports.Svg=G0;exports.Tag=jw;exports.Text=Qe;exports.ThemeProvider=$b;exports.TimePicker=E4;exports.Tooltip=r3;exports.Touchable=kt;exports.VIMEO_HOST=xw;exports.Vimeo=vw;exports.accordionTheme=Vf;exports.artTheme=Nf;exports.avatarTheme=Uf;exports.barChartTheme=Gf;exports.baseTheme=qf;exports.buttonTheme=Kf;exports.carouselTheme=Yf;exports.checkboxTheme=Xf;exports.configKeys=k0;exports.createSlotsDateConfig=T1;exports.css=lt;exports.cssPropsKey=_0;exports.customBoxPropsConfig=C0;exports.customBoxPropsKey=bl;exports.dateHasSlots=A1;exports.datepickerTheme=Qf;exports.defaultColorPalette=as;exports.defaultGradientColorPalette=Bf;exports.defaultScale=Pn;exports.defaultTheme=qo;exports.dividerTheme=Jf;exports.formatDateTimeForInput=Q3;exports.genBoxStyle=$0;exports.generateResponsiveStyles=Jr;exports.getAllUniqueTimeSlots=l4;exports.getBorderWidths=ul;exports.getComponentsTheme=g0;exports.getDatesFromSlots=a4;exports.getFontSizes=ls;exports.getFontWeights=ml;exports.getFonts=pl;exports.getGlobalTheme=yb;exports.getLineHeights=gl;exports.getPaginationTheme=o0;exports.getRadii=dl;exports.getResponsiveValue=x0;exports.getSelectStyles=_1;exports.getShadows=Hf;exports.getSizeValue=vt;exports.getSizes=fl;exports.getSpaces=hl;exports.getTextColor=gs;exports.getTheme=m0;exports.getThemeValue=S0;exports.getTimeSlotsForDate=ll;exports.headerTheme=e0;exports.inferResponsiveValues=b0;exports.inputTheme=t0;exports.isBorderWidth=ib;exports.isColor=Wf;exports.isEmoji=T0;exports.isFontSize=pb;exports.isFontWeight=gb;exports.isGradientColor=ob;exports.isIcon=R0;exports.isImage=I0;exports.isRadius=Pf;exports.isResponsiveValue=cs;exports.isSSR=Ct;exports.isShadow=hb;exports.isSize=xr;exports.isSpace=Zf;exports.isSvg=M0;exports.keyframes=Sn;exports.lineChartTheme=n0;exports.listTheme=r0;exports.loadingTheme=i0;exports.mapStylePropToThemeValue=E0;exports.parseUserAgent=ol;exports.pieChartTheme=s0;exports.populateResponsiveValue=yl;exports.progressTheme=a0;exports.reduceResponsiveValue=v0;exports.selectTheme=l0;exports.shouldForwardProp=y0;exports.skeletonTheme=c0;exports.styled=ue;exports.tagTheme=u0;exports.timepickerTheme=d0;exports.tooltipTheme=f0;exports.touchableTheme=h0;exports.transformResponsiveValue=Yt;exports.transposeObject=Ja;exports.useEventListener=el;exports.useHover=fs;exports.useInteractionDetector=Sl;exports.useIsomorphicLayoutEffect=vr;exports.useMediaQuery=Q6;exports.usePopupPosition=Al;exports.useResponsiveBreakpoint=ti;exports.useSelectState=x1;exports.useTheme=be;exports.useUserAgent=mv;exports.useWindowDimensions=K0;exports.vimeoTheme=p0;exports.zIndexRegistry=Cr;
|
|
897
|
+
`,w4=({currentMonth:e,onPrevMonth:n,onNextMonth:i,locale:s,size:a,disabled:l,dateConfig:d,viewMode:f,onMonthClick:h,onYearClick:p})=>{const x=be(),w=x.__hd__.datepicker,_=w.sizes[a],[v,C]=c.useState(null),[R,k]=c.useState(0),T=()=>{C("prev"),k(z=>z+1),n()},E=()=>{C("next"),k(z=>z+1),i()},I=l||(f==="days"?If(e,"prev",d):f==="months"?d!=null&&d.minDate?e.getFullYear()-1<d.minDate.getFullYear():!1:f==="years"&&d!=null&&d.minDate?Jo(e.getFullYear())[0]-12<d.minDate.getFullYear():!1),$=l||(f==="days"?If(e,"next",d):f==="months"?d!=null&&d.maxDate?e.getFullYear()+1>d.maxDate.getFullYear():!1:f==="years"&&d!=null&&d.maxDate?Jo(e.getFullYear())[11]+1>d.maxDate.getFullYear():!1),M=()=>{if(f==="days")return m.jsxs(L,{display:"flex",flexDirection:"row",alignItems:"center",gap:"xs",children:[m.jsx(Ga,{onClick:h,text:Mf(e,s),ariaLabel:`Select month, currently ${Mf(e,s)}`,fontSize:_.headerFontSize,fontWeight:_.headerFontWeight,color:"grey900"}),m.jsx(Ga,{onClick:p,text:No(e),ariaLabel:`Select year, currently ${No(e)}`,fontSize:_.headerFontSize,fontWeight:_.headerFontWeight,color:"grey900"})]});if(f==="months")return m.jsx(Ga,{onClick:p,text:No(e),ariaLabel:`Select year, currently ${No(e)}`,fontSize:_.headerFontSize,fontWeight:_.headerFontWeight,color:"grey900"});if(f==="years"){const z=Jo(e.getFullYear());return m.jsxs(Qe,{as:"span",fontSize:_.headerFontSize,fontWeight:_.headerFontWeight,color:w.colors.headerText,children:[z[0]," - ",z[11]]})}return null};return m.jsxs(L,{display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"space-between",height:x.spaces[_.headerHeight],children:[m.jsx(Qr,{onClick:I?void 0:T,variant:"text",size:a,color:"grey900",icon:us,disabled:I,"aria-label":f==="days"?"Previous month":f==="months"?"Previous year":"Previous decade"}),m.jsx(v4,{$direction:v,$duration:w.animation.duration,$easing:w.animation.easing,display:"flex",flexDirection:"row",alignItems:"center",gap:"xs",onAnimationEnd:()=>C(null),children:M()},R),m.jsx(Qr,{onClick:$?void 0:E,variant:"text",size:a,color:"grey900",icon:ei,disabled:$,"aria-label":f==="days"?"Next month":f==="months"?"Next year":"Next decade"})]})},_4=({currentYear:e,selectedMonth:n,selectedYear:i,onSelect:s,locale:a,size:l,dateConfig:d,disabled:f})=>{const h=X3(a),p=k=>{if(f)return!0;if(!d)return!1;const T=new Date(e,k,1),E=new Date(e,k+1,0);return!!(d.minDate&&E<d.minDate||d.maxDate&&T>d.maxDate)},x=k=>n===k&&i===e,w=k=>{const T=new Date;return e===T.getFullYear()&&k===T.getMonth()},_=be(),v=_.__hd__.datepicker,C=_.__hd__.text,R=v.sizes[l];return m.jsx(L,{display:"grid",gap:R.cellGap,width:R.viewWidth,minHeight:R.viewHeight,alignItems:"center",justifyContent:"center",style:{gridTemplateColumns:"repeat(4, 1fr)"},children:h.map((k,T)=>{const E=x(T),I=p(T),$=w(T)&&!E;return m.jsx(R1,{$isSelected:E,$isDisabled:I,$isCurrent:$,$height:_.spaces[R.dateCellSize],$fontSize:C.fontSizes[R.dateFontSize],onClick:I?void 0:()=>s(T),role:"option","aria-label":`Select ${k}`,"aria-selected":E,"aria-disabled":I,children:k},T)})})},C4=({currentYear:e,selectedYear:n,onSelect:i,size:s,dateConfig:a,disabled:l})=>{const d=be(),f=d.__hd__.datepicker,h=d.__hd__.text,p=f.sizes[s],x=Jo(e),w=new Date().getFullYear(),_=v=>{if(l)return!0;if(!a)return!1;const C=new Date(v,0,1),R=new Date(v,11,31);return!!(a.minDate&&R<a.minDate||a.maxDate&&C>a.maxDate)};return m.jsx(L,{display:"grid",gap:p.cellGap,width:p.viewWidth,minHeight:p.viewHeight,alignItems:"center",justifyContent:"center",style:{gridTemplateColumns:"repeat(4, 1fr)"},children:x.map(v=>{const C=n===v,R=_(v),k=v===w&&!C;return m.jsx(R1,{$isSelected:C,$isDisabled:R,$isCurrent:k,$height:d.spaces[p.dateCellSize],$fontSize:h.fontSizes[p.dateFontSize],onClick:R?void 0:()=>i(v),role:"option","aria-label":`Select ${v}`,"aria-selected":C,"aria-disabled":R,children:v},v)})})},jf=({currentMonth:e,selectedDate:n,onDateSelect:i,onMonthChange:s,dateConfig:a,weekStartDay:l,locale:d,size:f,disabled:h,rangeMarkerDate:p})=>{const[x,w]=c.useState("days"),_=c.useCallback(()=>{x==="days"?s(ss(e,-1)):x==="months"?s(Uo(e,-1)):x==="years"&&s(Uo(e,-12))},[e,s,x]),v=c.useCallback(()=>{x==="days"?s(ss(e,1)):x==="months"?s(Uo(e,1)):x==="years"&&s(Uo(e,12))},[e,s,x]),C=c.useCallback(()=>{w("months")},[]),R=c.useCallback(()=>{w("years")},[]),k=c.useCallback(H=>{const se=new Date(e.getFullYear(),H,1);s(se),w("days")},[e,s]),T=c.useCallback(H=>{const se=new Date(H,e.getMonth(),1);s(se),w("months")},[e,s]),E=c.useCallback(()=>{const H=new Date;s(H),i(H)},[s,i]),I=c.useMemo(()=>h||$1(new Date,a),[a,h]),$=()=>x==="months"?m.jsx(_4,{currentYear:e.getFullYear(),selectedMonth:(n==null?void 0:n.getMonth())??null,selectedYear:(n==null?void 0:n.getFullYear())??null,onSelect:k,locale:d,size:f,dateConfig:a,disabled:h}):x==="years"?m.jsx(C4,{currentYear:e.getFullYear(),selectedYear:(n==null?void 0:n.getFullYear())??null,onSelect:T,size:f,dateConfig:a,disabled:h}):m.jsxs(L,{width:j.viewWidth,minHeight:j.viewHeight,children:[m.jsx(m4,{currentMonth:e,selectedDate:n,onDateClick:i,dateConfig:a,weekStartDay:l,locale:d,size:f,disabled:h,rangeMarkerDate:p}),m.jsx(L,{display:"flex",justifyContent:"center",pt:"md",bt:"thin",borderTopColor:"grey200",children:m.jsx(Qr,{variant:"text",color:"primary",size:f,text:"Today",disabled:I,onClick:E})})]}),z=be().__hd__.datepicker,j=z.sizes[f];return m.jsxs(L,{display:"flex",flexDirection:"column",gap:"md",minWidth:z.calendar.panelMinWidth,children:[m.jsx(w4,{currentMonth:e,onPrevMonth:_,onNextMonth:v,locale:d,size:f,disabled:h,dateConfig:a,viewMode:x,onMonthClick:C,onYearClick:R}),$()]})},cl=c.forwardRef(({value:e,onChange:n,onFocus:i,onBlur:s,onEnterPress:a,onClear:l,placeholder:d="Select a date",label:f,helperText:h,error:p,disabled:x,hasValue:w},_)=>{const v=c.useRef(null);c.useEffect(()=>{typeof _=="function"?_(v.current):_&&(_.current=v.current)},[_]);const C=c.useCallback(E=>{var I;E.key==="Enter"&&(a==null||a(),(I=v.current)==null||I.blur())},[a]),R=c.useCallback(E=>{n(E)},[n]),k=c.useCallback(()=>{i()},[i]),T=c.useCallback(()=>{l==null||l()},[l]);return m.jsx(Il,{ref:v,value:e,onChange:R,onBlur:s,onKeyDown:C,onFocus:k,placeholder:d,disabled:x,label:f,helperText:h,error:p,rightIcon:w?void 0:wl,clearable:w,onClear:T})});cl.displayName="DatePickerInput";const qa=({isOpen:e,anchorRef:n,onClose:i,children:s,size:a,isFixedPosition:l=!1})=>{const d=be(),f=d.__hd__.datepicker,h=c.useRef(null),p=d.spaces[f.popup.offset];Al({anchorRef:n,popupRef:h,offsetValue:p,isOpen:e,useFixedPosition:l});const x=c.useCallback(v=>{v.target===v.currentTarget&&i()},[i]),w=c.useCallback(v=>{v.preventDefault()},[]);if(c.useEffect(()=>{if(!e)return;const v=C=>{(C.key==="Escape"||C.key==="Tab")&&i()};return document.addEventListener("keydown",v),()=>document.removeEventListener("keydown",v)},[e,i]),!e||typeof document>"u")return null;const _=m.jsxs(m.Fragment,{children:[m.jsx(L,{position:"fixed",top:0,left:0,right:0,bottom:0,zIndex:f.popup.zIndex-1,onClick:x}),m.jsx(L,{ref:h,position:"absolute",zIndex:f.popup.zIndex,role:"dialog","aria-modal":"true",onMouseDown:w,children:s})]});return l?Df.createPortal(_,document.body):_},I1=c.forwardRef(({startValue:e,endValue:n,onStartChange:i,onEndChange:s,onStartFocus:a,onEndFocus:l,onStartBlur:d,onEndBlur:f,onStartEnterPress:h,onEndEnterPress:p,onClear:x,hasValue:w,disabled:_,error:v,startPlaceholder:C="Start date",endPlaceholder:R="End date"},k)=>{const T=c.useRef(null),E=c.useRef(null),[I,$]=c.useState(!1),M=be(),z=M.__hd__.input,j=vt(M,z.iconSize),H=_?z.disabledTextColor:z.iconColor;c.useImperativeHandle(k,()=>({focusStart:()=>{var K;return(K=T.current)==null?void 0:K.focus()},focusEnd:()=>{var K;return(K=E.current)==null?void 0:K.focus()},blurStart:()=>{var K;return(K=T.current)==null?void 0:K.blur()},blurEnd:()=>{var K;return(K=E.current)==null?void 0:K.blur()}}));const se=c.useCallback(()=>{$(!0),a()},[a]),te=c.useCallback(()=>{$(!0),l()},[l]),re=c.useCallback(()=>{$(!1),d==null||d()},[d]),B=c.useCallback(()=>{$(!1),f==null||f()},[f]),W=c.useCallback(K=>{var ne;K.key==="Enter"&&(h==null||h(),(ne=T.current)==null||ne.blur())},[h]),P=c.useCallback(K=>{var ne;K.key==="Enter"&&(p==null||p(),(ne=E.current)==null||ne.blur())},[p]),le=c.useCallback(K=>{K.stopPropagation(),x==null||x()},[x]);return m.jsxs(p4,{$isFocused:I,$isDisabled:!!_,$error:!!v,children:[m.jsx(Lf,{ref:T,value:e,onChange:K=>i(K.target.value),onFocus:se,onBlur:re,onKeyDown:W,disabled:_,placeholder:C}),m.jsx(L,{display:"flex",alignItems:"center",justifyContent:"center",px:"xs",children:m.jsx(gt,{type:"icon",art:vl,size:16,color:"grey400"})}),m.jsx(Lf,{ref:E,value:n,onChange:K=>s(K.target.value),onFocus:te,onBlur:B,onKeyDown:P,disabled:_,placeholder:R}),m.jsx(L,{ml:"xs",pl:"xs",children:w?m.jsx(kt,{onClick:le,children:m.jsx(L,{ml:z.iconSpacing,children:m.jsx(gt,{type:"icon",art:ds,size:j,color:H})})}):m.jsx(L,{ml:z.iconSpacing,children:m.jsx(gt,{type:"icon",art:wl,size:j,color:H})})})]})});I1.displayName="DatePickerRangeInput";function Ka({value:e,onChange:n,onClose:i,open:s,onOpenChange:a,defaultMonth:l,defaultTimezone:d,disabled:f,showTime:h}){const[p,x]=c.useState(!1),w=s??p,[_,v]=c.useState((e==null?void 0:e.date)??null),[C,R]=c.useState((e==null?void 0:e.time)??null),[k,T]=c.useState((e==null?void 0:e.timezone)??d??null),[E,I]=c.useState((e==null?void 0:e.date)??l??new Date),$=c.useRef(null),M=c.useRef(null),z=c.useRef(!1),j=c.useRef(_),H=c.useRef(C),se=c.useRef(k);j.current=_,H.current=C,se.current=k,c.useEffect(()=>{if(z.current){z.current=!1;return}e&&(e.date!==void 0&&(v(e.date),e.date&&I(e.date)),e.time!==void 0&&R(e.time),e.timezone&&T(e.timezone))},[e]);const te=c.useCallback(()=>{if(!f){if(!_){const de=new Date;de.setHours(0,0,0,0),v(de),I(de)}if(h&&!C){const de=new Date;R({hours:de.getHours(),minutes:de.getMinutes()})}x(!0),a==null||a(!0)}},[f,a,_,C,h]),re=c.useCallback(()=>{x(!1),a==null||a(!1);const de=j.current,Le=H.current,Pe=se.current;if(de){const Ee={date:de,time:h?Le:void 0,timezone:Pe};n==null||n(Ee)}i==null||i()},[a,i,n,h]),B=c.useCallback(()=>{f||(w?re():te())},[f,w,re,te]),W=c.useCallback(de=>{z.current=!0,v(de),de&&I(de)},[]),P=c.useCallback(de=>{z.current=!0,R(de)},[]),le=c.useCallback((de,Le)=>{z.current=!0,v(de);const Pe={date:de,time:h?Le||C:void 0,timezone:k};n==null||n(Pe)},[k,C,h,n]),K=c.useCallback(de=>{z.current=!0,R(de);const Le={date:_,time:de,timezone:k};n==null||n(Le)},[_,k,n]),ne=c.useCallback(de=>{T(de);const Le={date:_,time:h?C:void 0,timezone:de};n==null||n(Le)},[_,C,h,n]),ie=c.useCallback(de=>{I(de)},[]),we=c.useCallback(()=>{v((e==null?void 0:e.date)??null),R((e==null?void 0:e.time)??null),T((e==null?void 0:e.timezone)??d??null),I((e==null?void 0:e.date)??l??new Date)},[e,d,l]),pe=c.useCallback(()=>({date:_,time:h?C:void 0,timezone:k}),[_,C,k,h]),Se=c.useCallback(()=>{var de;(de=M.current)==null||de.focus()},[]),$e=c.useCallback(de=>{x(de),de||(a==null||a(!1),i==null||i())},[a,i]);return{isOpen:w,selectedDate:_,selectedTime:C,selectedTimezone:k,currentMonth:E,containerRef:$,inputRef:M,handleOpen:te,handleClose:re,setIsOpen:$e,handleToggle:B,handleDateSelect:le,setSelectedDatePreview:W,handleTimeSelect:K,setSelectedTimePreview:P,handleTimezoneChange:ne,handleMonthChange:ie,reset:we,getValue:pe,focus:Se}}const M1=c.forwardRef(({value:e,onChange:n,onClose:i,range:s=!1,startValue:a,endValue:l,onStartChange:d,onEndChange:f,mode:h="inline",showInlineInput:p=!1,open:x,onOpenChange:w,dateConfig:_,disablePastDates:v=!1,defaultMonth:C,weekStartDay:R=f4,locale:k=d4,showTime:T=!1,timeFormat:E="24h",minuteStep:I=1,timeSlots:$,slots:M,size:z,variant:j,label:H,helperText:se,error:te,disabled:re=!1,loading:B=!1,isFixedPosition:W=!1,...P},le)=>{const ne=be().__hd__.datepicker,ie=z??ne.defaultSize,we=j??ne.defaultVariant,pe=Intl.DateTimeFormat().resolvedOptions().timeZone,Se=Ka({value:e,onChange:n,onClose:i,open:x,onOpenChange:w,defaultMonth:C,defaultTimezone:pe,disabled:re,showTime:T}),$e=Ka({value:a,onChange:d,onClose:i,defaultMonth:C,defaultTimezone:pe,disabled:re,showTime:T}),de=Ka({value:l,onChange:f,onClose:i,defaultMonth:C,defaultTimezone:pe,disabled:re,showTime:T}),{isOpen:Le,selectedDate:Pe,selectedTime:Ee,currentMonth:st,containerRef:ye,handleOpen:Te,handleClose:Fe,handleToggle:ke,handleDateSelect:ee,handleTimeSelect:ge,setSelectedDatePreview:G,setSelectedTimePreview:oe,handleMonthChange:he,reset:Ae,getValue:He,focus:Ye}=Se,De=c.useMemo(()=>!M||M.length===0?M:s4(M,pe),[M,pe]),nt=c.useMemo(()=>{let xe=_;if(v){const ht=new Date;ht.setHours(0,0,0,0),xe={...xe,minDate:xe!=null&&xe.minDate&&xe.minDate>ht?xe.minDate:ht}}return De&&De.length>0&&(xe=T1(De,xe)),xe},[v,_,De]),it=c.useRef(null),ae=c.useRef(null),Ue=c.useRef(null),We=c.useRef(null),Ge=c.useRef(ee),Je=c.useRef(he),bt=c.useRef(oe),$t=c.useRef(null);Ue.current=Pe,We.current=Ee,Ge.current=ee,Je.current=he,bt.current=oe;const rr=c.useRef(!1),[un,Xt]=c.useState(()=>ln(Pe,k,Ee,T,E));c.useEffect(()=>{if(rr.current)return;if($t.current==="input"){$t.current=null;return}const xe=(e==null?void 0:e.date)??null,ht=(e==null?void 0:e.time)??null,Ht=ln(xe,k,ht,T,E);Xt(Ht),$t.current="calendar"},[e==null?void 0:e.date,e==null?void 0:e.time,k,T,E]),c.useEffect(()=>{if($t.current==="calendar"){$t.current=null;return}const xe=Ff(un);if(xe&&((!Ue.current||!_r(xe.date,Ue.current))&&(Ge.current(xe.date),Je.current(xe.date)),T&&xe.time)){const Ht=We.current;(!Ht||Ht.hours!==xe.time.hours||Ht.minutes!==xe.time.minutes)&&bt.current(xe.time)}},[un,k,T]);const Sr=c.useCallback(xe=>{rr.current=!0,$t.current="input",Xt(xe)},[]),Wn=c.useCallback(()=>{if(rr.current=!1,$t.current=null,Le)return;if(!un.trim()){ee(null),Xt("");return}const xe=Ff(un);xe?(ee(xe.date),he(xe.date),xe.time&&T&&oe(xe.time),Xt(ln(xe.date,k,xe.time??Ee,T,E))):Xt(Pe?ln(Pe,k,Ee,T,E):"")},[un,k,Pe,Ee,Le,T,E,ee,he,oe]),ri=c.useCallback(()=>{ke()},[ke]),Er=c.useCallback(()=>{G(null),Xt(""),n==null||n({date:null,timezone:pe})},[G,n,pe]),ii=c.useCallback(xe=>{let ht=Ee;if(xe&&De&&De.length>0){const Ht=ll(De,xe);Ht.length>0&&(Ee&&Ht.some(Ui=>Ui.hours===Ee.hours&&Ui.minutes===Ee.minutes)||(ht=Ht[0],oe(ht)))}h==="inline"?ee(xe,ht):G(xe),Xt(xe?ln(xe,k,ht,T,E):"")},[G,oe,ee,h,k,Ee,T,E,De]);c.useImperativeHandle(le,()=>({open:Te,close:Fe,reset:Ae,getValue:He,focus:Ye}),[Te,Fe,Ae,He,Ye]);const Vi=c.useMemo(()=>De&&De.length>0?Pe?ll(De,Pe):void 0:$,[De,Pe,$]),bs=T&&(!De||De.length===0||Pe!==null),xs=c.useCallback(xe=>{h==="inline"?ge(xe):oe(xe),Pe&&Xt(ln(Pe,k,xe,T,E))},[oe,ge,h,Pe,k,T,E]),oi=()=>m.jsxs(L,{display:"flex",flexDirection:"row",alignItems:"center",gap:ne.sizes[ie].panelGap,children:[m.jsx(jf,{currentMonth:st,selectedDate:Pe,onDateSelect:ii,onMonthChange:he,dateConfig:nt,weekStartDay:R,locale:k,size:ie,disabled:re||B}),bs&&m.jsx(Li,{value:Ee,onChange:xs,format:E,minuteStep:I,size:ie,slots:Vi})]}),At=ne.sizes[ie],yn=ne.variants[we],vs=c.useRef(null),si=c.useRef(null),[ai,Bn]=c.useState(()=>ln((a==null?void 0:a.date)??null,k,(a==null?void 0:a.time)??null,T,E)),[li,ir]=c.useState(()=>ln((l==null?void 0:l.date)??null,k,(l==null?void 0:l.time)??null,T,E));c.useEffect(()=>{s&&Bn(ln((a==null?void 0:a.date)??null,k,(a==null?void 0:a.time)??null,T,E))},[s,a==null?void 0:a.date,a==null?void 0:a.time,k,T,E]),c.useEffect(()=>{s&&ir(ln((l==null?void 0:l.date)??null,k,(l==null?void 0:l.time)??null,T,E))},[s,l==null?void 0:l.date,l==null?void 0:l.time,k,T,E]);const Ni=(xe,ht,Ht)=>m.jsxs(L,{display:"flex",flexDirection:"row",alignItems:"center",gap:ne.sizes[ie].panelGap,children:[m.jsx(jf,{currentMonth:xe.currentMonth,selectedDate:xe.selectedDate,onDateSelect:bn=>{xe.setSelectedDatePreview(bn),ht(bn?ln(bn,k,xe.selectedTime,T,E):"")},onMonthChange:xe.handleMonthChange,dateConfig:nt,weekStartDay:R,locale:k,size:ie,disabled:re||B,rangeMarkerDate:Ht}),T&&xe.selectedDate&&m.jsx(Li,{value:xe.selectedTime,onChange:bn=>{xe.setSelectedTimePreview(bn),xe.selectedDate&&ht(ln(xe.selectedDate,k,bn,T,E))},format:E,minuteStep:I,size:ie,slots:Vi})]}),or=c.useRef(!1);return c.useEffect(()=>{if(!s||$e.isOpen||de.isOpen)return;if(or.current){or.current=!1;return}if(c4(a,l)===1){or.current=!0,d==null||d(l),f==null||f(a);const ht=ai;Bn(li),ir(ht)}},[s,a,l,$e.isOpen,de.isOpen,d,f,ai,li]),s?m.jsxs(L,{position:"relative",...P,children:[H&&m.jsx(L,{mb:"xs",children:m.jsx(Qe,{fontWeight:"medium",children:H})}),m.jsx(L,{ref:si,children:m.jsx(I1,{ref:vs,startValue:ai,endValue:li,onStartChange:Bn,onEndChange:ir,onStartFocus:()=>{$e.handleOpen(),de.setIsOpen(!1)},onEndFocus:()=>{de.handleOpen(),$e.setIsOpen(!1)},onStartBlur:()=>{},onEndBlur:()=>{},onClear:()=>{$e.reset(),de.reset(),Bn(""),ir("")},hasValue:!!(a!=null&&a.date)||!!(l!=null&&l.date),disabled:re||B,error:!!te})}),(te||se)&&m.jsx(L,{mt:"xs",children:m.jsx(Qe,{fontSize:"xs",color:te?"danger":"grey600",children:te||se})}),m.jsx(qa,{isOpen:$e.isOpen,anchorRef:si,onClose:$e.handleClose,size:ie,isFixedPosition:W,children:m.jsx(L,{display:"flex",flexDirection:"column",p:At.containerPadding,gap:At.panelGap,bgColor:yn.container.backgroundColor,b:At.borderWidth,borderColor:yn.container.borderColor,r:ne.borderRadii.container,children:Ni($e,Bn,l==null?void 0:l.date)})}),m.jsx(qa,{isOpen:de.isOpen,anchorRef:si,onClose:de.handleClose,size:ie,isFixedPosition:W,children:m.jsx(L,{display:"flex",flexDirection:"column",p:At.containerPadding,gap:At.panelGap,bgColor:yn.container.backgroundColor,b:At.borderWidth,borderColor:yn.container.borderColor,r:ne.borderRadii.container,children:Ni(de,ir,a==null?void 0:a.date)})})]}):h==="inline"?m.jsx(L,{ref:ye,position:"relative",...P,children:m.jsxs(L,{display:"flex",flexDirection:"column",p:At.containerPadding,gap:At.panelGap,bgColor:yn.container.backgroundColor,b:At.borderWidth,borderColor:yn.container.borderColor,r:ne.borderRadii.container,children:[p&&m.jsx(cl,{ref:it,value:un,onChange:Sr,onFocus:()=>{},onBlur:Wn,onEnterPress:Wn,disabled:re||B,hasValue:!!Pe,onClear:Er}),oi()]})}):m.jsxs(L,{ref:ye,position:"relative",...P,children:[m.jsx(L,{ref:ae,position:"relative",children:m.jsx(cl,{ref:it,value:un,onChange:Sr,onFocus:ri,onBlur:Wn,onEnterPress:Wn,onClear:Er,label:H,helperText:se,error:te,disabled:re||B,hasValue:!!Pe})}),m.jsx(qa,{isOpen:Le,anchorRef:ae,onClose:Fe,size:ie,isFixedPosition:W,children:m.jsx(L,{display:"flex",flexDirection:"column",p:At.containerPadding,gap:At.panelGap,bgColor:yn.container.backgroundColor,b:At.borderWidth,borderColor:yn.container.borderColor,r:ne.borderRadii.container,children:oi()})})]})});M1.displayName="DatePicker";function Go(e,n){return{hours:e.hours,minutes:H3(e.minutes,n)}}function Ya(e,n){if(n.length===0)return null;const i=n.find(d=>Ol(d,e));if(i)return i;const s=e.hours*60+e.minutes;let a=n[0],l=Math.abs(n[0].hours*60+n[0].minutes-s);for(const d of n){const f=d.hours*60+d.minutes,h=Math.abs(f-s);h<l&&(l=h,a=d)}return a}function Xa({value:e,onChange:n,format:i,minuteStep:s=1,slots:a}){const[l,d]=c.useState(!1),[f,h]=c.useState(null),[p,x]=c.useState(()=>e?Kt(e,i):""),w=c.useRef(!1),_=c.useRef(!1);c.useEffect(()=>{w.current||x(e?Kt(e,i):"")},[e,i]),c.useEffect(()=>{const $=l&&!_.current;if(_.current=l,$){if(e)h(e);else{const M=new Date;let z={hours:M.getHours(),minutes:M.getMinutes()};a&&a.length>0?z=Ya(z,a)??a[0]:z=Go(z,s),h(z)}w.current=!0}else l||(w.current=!1)},[l,e,s,a]);const v=c.useCallback(()=>{d(!0)},[]),C=c.useCallback(()=>{d(!1),f?(n==null||n(f),x(Kt(f,i))):x(e?Kt(e,i):"")},[f,n,i,e]),R=c.useCallback(()=>{h(null),x(""),n==null||n(null)},[n]),k=c.useCallback($=>{x($);const M=Va($,i);if(M){let z=M;a&&a.length>0?z=a.find(H=>Ol(H,M))??null:z=Go(M,s),z&&h(z)}},[i,s,a]),T=c.useCallback($=>{h($),x(Kt($,i))},[i]),E=c.useCallback(()=>{if(!l){const $=Va(p,i);if($){let M=$;a&&a.length>0?M=Ya($,a):M=Go($,s),M?(n==null||n(M),x(Kt(M,i))):x(e?Kt(e,i):"")}else x(e?Kt(e,i):"")}},[l,p,i,n,e,s,a]),I=c.useCallback(()=>{const $=Va(p,i);if($){let M=$;a&&a.length>0?M=Ya($,a):M=Go($,s),M?(h(M),n==null||n(M),x(Kt(M,i))):x(e?Kt(e,i):"")}else x(e?Kt(e,i):"");d(!1)},[p,i,n,e,s,a]);return{isOpen:l,setIsOpen:d,inputValue:p,setInputValue:x,editingValue:f,setEditingValue:h,handleOpen:v,handleClose:C,handleClear:R,handleInputChange:k,handleWheelChange:T,handleInputBlur:E,handleEnterPress:I}}const F1=c.forwardRef(({value:e,onChange:n,onFocus:i,onBlur:s,onEnterPress:a,onClear:l,label:d,helperText:f,error:h,disabled:p,hasValue:x,placeholder:w="Select a time"},_)=>{const v=c.useRef(null);c.useEffect(()=>{typeof _=="function"?_(v.current):_&&(_.current=v.current)},[_]);const C=c.useCallback(E=>{var I;E.key==="Enter"&&(a==null||a(),(I=v.current)==null||I.blur())},[a]),R=c.useCallback(E=>{n(E)},[n]),k=c.useCallback(()=>{i()},[i]),T=c.useCallback(()=>{l==null||l()},[l]);return m.jsx(Il,{ref:v,value:e,onChange:R,onBlur:s,onKeyDown:C,onFocus:k,disabled:p,label:d,helperText:f,error:h,placeholder:w,rightIcon:x?void 0:Cl,clearable:x,onClear:T})});F1.displayName="TimePickerInput";const Qa=({isOpen:e,anchorRef:n,onClose:i,children:s,size:a,isFixedPosition:l=!1})=>{const d=be(),f=d.__hd__.timepicker,h=c.useRef(null),p=d.spaces[f.popup.offset];Al({anchorRef:n,popupRef:h,offsetValue:p,isOpen:e,useFixedPosition:l});const x=c.useCallback(_=>{_.target===_.currentTarget&&i()},[i]);if(c.useEffect(()=>{if(!e)return;const _=v=>{(v.key==="Escape"||v.key==="Tab")&&i()};return document.addEventListener("keydown",_),()=>document.removeEventListener("keydown",_)},[e,i]),!e||typeof document>"u")return null;const w=m.jsxs(m.Fragment,{children:[m.jsx(L,{position:"fixed",top:0,left:0,right:0,bottom:0,zIndex:f.popup.zIndex-1,onClick:x}),m.jsx(L,{ref:h,position:"absolute",display:"flex",flexDirection:"row",zIndex:f.popup.zIndex,p:f.sizes[a].popupPadding,bgColor:f.colors.wheelBg,r:f.borderRadii.popup,borderWidth:"thin",borderColor:"grey200",role:"dialog","aria-modal":"true",children:s})]});return l?Df.createPortal(w,document.body):w},O1=c.forwardRef(({startValue:e,endValue:n,onStartChange:i,onEndChange:s,onStartFocus:a,onEndFocus:l,onStartBlur:d,onEndBlur:f,onStartEnterPress:h,onEndEnterPress:p,onClear:x,hasValue:w,disabled:_,error:v},C)=>{const R=c.useRef(null),k=c.useRef(null),[T,E]=c.useState(!1),I=be(),$=I.__hd__.input,M=vt(I,$.iconSize),z=_?$.disabledTextColor:$.iconColor;c.useImperativeHandle(C,()=>({focusStart:()=>{var P;return(P=R.current)==null?void 0:P.focus()},focusEnd:()=>{var P;return(P=k.current)==null?void 0:P.focus()},blurStart:()=>{var P;return(P=R.current)==null?void 0:P.blur()},blurEnd:()=>{var P;return(P=k.current)==null?void 0:P.blur()}}));const j=c.useCallback(()=>{E(!0),a()},[a]),H=c.useCallback(()=>{E(!0),l()},[l]),se=c.useCallback(()=>{E(!1),d==null||d()},[d]),te=c.useCallback(()=>{E(!1),f==null||f()},[f]),re=c.useCallback(P=>{var le;P.key==="Enter"&&(h==null||h(),(le=R.current)==null||le.blur())},[h]),B=c.useCallback(P=>{var le;P.key==="Enter"&&(p==null||p(),(le=k.current)==null||le.blur())},[p]),W=c.useCallback(P=>{P.stopPropagation(),x==null||x()},[x]);return m.jsxs(W3,{$isFocused:T,$isDisabled:!!_,$error:!!v,children:[m.jsx(Af,{ref:R,value:e,onChange:P=>i(P.target.value),onFocus:j,onBlur:se,onKeyDown:re,disabled:_,placeholder:"--:--"}),m.jsx(L,{display:"flex",alignItems:"center",justifyContent:"center",px:"xs",children:m.jsx(gt,{type:"icon",art:vl,size:16,color:"grey400"})}),m.jsx(Af,{ref:k,value:n,onChange:P=>s(P.target.value),onFocus:H,onBlur:te,onKeyDown:B,disabled:_,placeholder:"--:--"}),m.jsx(L,{ml:"xs",pl:"xs",children:w?m.jsx(kt,{onClick:W,children:m.jsx(L,{ml:$.iconSpacing,children:m.jsx(gt,{type:"icon",art:ds,size:M,color:z})})}):m.jsx(L,{ml:$.iconSpacing,children:m.jsx(gt,{type:"icon",art:Cl,size:M,color:z})})})]})});O1.displayName="TimePickerRangeInput";const S4=({value:e,onChange:n,range:i=!1,startValue:s,endValue:a,onStartChange:l,onEndChange:d,format:f=O3,minuteStep:h=z3,slots:p,size:x=F3,disabled:w=!1,label:_,helperText:v,error:C,isFixedPosition:R=!1,...k},T)=>{const E=c.useRef(null),I=c.useRef(null),$=Xa({value:e??null,onChange:n,format:f,minuteStep:h,slots:p}),M=Xa({value:s??null,onChange:l,format:f,minuteStep:h,slots:p}),z=Xa({value:a??null,onChange:d,format:f,minuteStep:h,slots:p});c.useImperativeHandle(T,()=>({open:()=>{i?M.setIsOpen(!0):$.setIsOpen(!0)},close:()=>{i?(M.setIsOpen(!1),z.setIsOpen(!1)):$.setIsOpen(!1)},reset:()=>{i?(M.handleClear(),z.handleClear()):$.handleClear()},getValue:()=>i?s??null:e??null,focus:()=>{var re;(re=E.current)==null||re.focus()}}));const j=c.useCallback(re=>{$.handleWheelChange(re)},[$]),H=c.useCallback(re=>{M.handleWheelChange(re)},[M]),se=c.useCallback(re=>{z.handleWheelChange(re)},[z]),te=c.useRef(!1);return c.useEffect(()=>{if(!i||M.isOpen||z.isOpen)return;if(te.current){te.current=!1;return}Z3(s,a)===1&&(te.current=!0,l==null||l(a),d==null||d(s))},[i,s,a,M.isOpen,z.isOpen,l,d]),i?m.jsxs(L,{...k,position:"relative",children:[_&&m.jsx(L,{mb:"xs",children:m.jsx(Qe,{fontWeight:"medium",children:_})}),m.jsx(L,{ref:I,children:m.jsx(O1,{startValue:M.inputValue,endValue:z.inputValue,onStartChange:M.handleInputChange,onEndChange:z.handleInputChange,onStartFocus:M.handleOpen,onEndFocus:z.handleOpen,onStartBlur:M.handleInputBlur,onEndBlur:z.handleInputBlur,onStartEnterPress:M.handleEnterPress,onEndEnterPress:z.handleEnterPress,onClear:()=>{M.handleClear(),z.handleClear()},hasValue:M.inputValue!==""||z.inputValue!=="",disabled:w,error:!!C})}),(C||v)&&m.jsx(L,{mt:"xs",children:m.jsx(Qe,{fontSize:"xs",color:C?"danger":"grey600",children:C||v})}),m.jsx(Qa,{isOpen:M.isOpen,anchorRef:I,onClose:M.handleClose,size:x,isFixedPosition:R,children:m.jsx(Li,{value:M.editingValue,onChange:H,format:f,minuteStep:h,size:x,slots:p,markerValue:a,markerLabel:a?"End:":void 0})}),m.jsx(Qa,{isOpen:z.isOpen,anchorRef:I,onClose:z.handleClose,size:x,isFixedPosition:R,children:m.jsx(Li,{value:z.editingValue,onChange:se,format:f,minuteStep:h,size:x,slots:p,markerValue:s,markerLabel:s?"Start:":void 0})})]}):m.jsxs(L,{...k,position:"relative",children:[m.jsx(L,{ref:I,children:m.jsx(F1,{ref:E,value:$.inputValue,onChange:$.handleInputChange,onFocus:$.handleOpen,onBlur:$.handleInputBlur,onEnterPress:$.handleEnterPress,onClear:$.handleClear,label:_,helperText:v,error:C,disabled:w,hasValue:$.inputValue!==""})}),m.jsx(Qa,{isOpen:$.isOpen,anchorRef:I,onClose:$.handleClose,size:x,isFixedPosition:R,children:m.jsx(Li,{value:$.editingValue,onChange:j,format:f,minuteStep:h,size:x,slots:p})})]})},E4=c.forwardRef(S4);exports.AIC_Kits_StackingLayers=mn;exports.Accordion=Ow;exports.Art=gt;exports.Avatar=q0;exports.BarChart=d3;exports.Base=Mv;exports.Box=L;exports.Brand=F0;exports.Button=Qr;exports.Carousel=Rw;exports.Checkbox=Dw;exports.DEFAULT_VIMEO_CONFIG=bw;exports.DatePicker=M1;exports.Divider=n1;exports.Emoji=O0;exports.Grid=C1;exports.Header=l1;exports.HeaderAuth=i1;exports.HeaderLogo=o1;exports.HeaderNav=s1;exports.HeaderSearch=a1;exports.Icon=xl;exports.Image=U0;exports.Input=Il;exports.LineChart=M3;exports.List=Dv;exports.Loading=Tl;exports.Modal=n3;exports.NormalizedBrowserName=e1;exports.NormalizedDeviceType=J0;exports.NormalizedOSName=t1;exports.Pagination=Kw;exports.PaginationItem=S1;exports.PieChart=_3;exports.Progress=e3;exports.RESPONSIVE_BREAKPOINTS=Hi;exports.RESPONSIVE_BREAKPOINT_KEYS=ji;exports.SUPPORTED_RICH_TEXT_TAGS=N0;exports.Select=Bw;exports.SelectDropdownItem=v1;exports.SelectInputDisplay=w1;exports.Skeleton=Zi;exports.StyledBox=A0;exports.Svg=G0;exports.Tag=jw;exports.Text=Qe;exports.ThemeProvider=$b;exports.TimePicker=E4;exports.Tooltip=r3;exports.Touchable=kt;exports.VIMEO_HOST=xw;exports.Vimeo=vw;exports.accordionTheme=Vf;exports.artTheme=Nf;exports.avatarTheme=Uf;exports.barChartTheme=Gf;exports.baseTheme=qf;exports.buttonTheme=Kf;exports.carouselTheme=Yf;exports.checkboxTheme=Xf;exports.configKeys=k0;exports.createSlotsDateConfig=T1;exports.css=lt;exports.cssPropsKey=_0;exports.customBoxPropsConfig=C0;exports.customBoxPropsKey=bl;exports.dateHasSlots=A1;exports.datepickerTheme=Qf;exports.defaultColorPalette=as;exports.defaultGradientColorPalette=Bf;exports.defaultScale=Pn;exports.defaultTheme=qo;exports.dividerTheme=Jf;exports.formatDateTimeForInput=Q3;exports.genBoxStyle=$0;exports.generateResponsiveStyles=Jr;exports.getAllUniqueTimeSlots=l4;exports.getBorderWidths=ul;exports.getComponentsTheme=g0;exports.getDatesFromSlots=a4;exports.getFontSizes=ls;exports.getFontWeights=ml;exports.getFonts=pl;exports.getGlobalTheme=yb;exports.getLineHeights=gl;exports.getPaginationTheme=o0;exports.getRadii=dl;exports.getResponsiveValue=x0;exports.getSelectStyles=_1;exports.getShadows=Hf;exports.getSizeValue=vt;exports.getSizes=fl;exports.getSpaces=hl;exports.getTextColor=gs;exports.getTheme=m0;exports.getThemeValue=S0;exports.getTimeSlotsForDate=ll;exports.headerTheme=e0;exports.inferResponsiveValues=b0;exports.inputTheme=t0;exports.isBorderWidth=ib;exports.isColor=Wf;exports.isEmoji=T0;exports.isFontSize=pb;exports.isFontWeight=gb;exports.isGradientColor=ob;exports.isIcon=R0;exports.isImage=I0;exports.isRadius=Pf;exports.isResponsiveValue=cs;exports.isSSR=Ct;exports.isShadow=hb;exports.isSize=xr;exports.isSpace=Zf;exports.isSvg=M0;exports.keyframes=Sn;exports.lineChartTheme=n0;exports.listTheme=r0;exports.loadingTheme=i0;exports.mapStylePropToThemeValue=E0;exports.parseUserAgent=ol;exports.pieChartTheme=s0;exports.populateResponsiveValue=yl;exports.progressTheme=a0;exports.reduceResponsiveValue=v0;exports.selectTheme=l0;exports.shouldForwardProp=y0;exports.skeletonTheme=c0;exports.styled=ue;exports.tagTheme=u0;exports.timepickerTheme=d0;exports.tooltipTheme=f0;exports.touchableTheme=h0;exports.transformResponsiveValue=Yt;exports.transposeObject=Ja;exports.useEventListener=el;exports.useHover=fs;exports.useInteractionDetector=Sl;exports.useIsomorphicLayoutEffect=vr;exports.useMediaQuery=Q6;exports.usePopupPosition=Al;exports.useResponsiveBreakpoint=ti;exports.useSelectState=x1;exports.useTheme=be;exports.useUserAgent=mv;exports.useWindowDimensions=K0;exports.vimeoTheme=p0;exports.zIndexRegistry=Cr;
|