@ws-ui/settings-editor 1.13.0-rc1 → 1.13.1
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/Standalone/style.css +1396 -38
- package/dist/common.cjs.js.map +1 -1
- package/dist/common.es.js.map +1 -1
- package/dist/components/ThemeSelect/index.d.ts +7 -0
- package/dist/index.cjs.js +40 -30
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +8512 -7557
- package/dist/index.es.js.map +1 -1
- package/dist/settings-editor.css +1 -1
- package/package.json +6 -5
- package/dist/components/NumberField/index.d.ts +0 -11
package/dist/index.cjs.js
CHANGED
|
@@ -1,66 +1,66 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const w=require("react/jsx-runtime"),m=require("react"),st=require("@ws-ui/shared"),Dt=require("@ws-ui/store"),Un=require("react-dom"),py=require("./common.cjs.js");function hy(t){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const i=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(o,n,i.get?i:{enumerable:!0,get:()=>t[n]})}}return o.default=t,Object.freeze(o)}const ut=hy(m);function fy(t){const o=Dt.useAppDispatch(),n=Dt.useAppSelector(Dt.selectPreferences),i=Dt.useAppSelector(Dt.selectQodly),s=Dt.useAppSelector(Dt.selectExplorer),l=Dt.useAppSelector(Dt.selectWebForms);return{getTabPath:()=>t??null,getPreferences:()=>n,getQodly:()=>i,getFeatureFlag:c=>{var d;return c==="states"?!0:!!((d=n==null?void 0:n.session)!=null&&d[`features.experimental.${c}`])},getExplorer:()=>s,getWebForms:()=>l,findNodeByPath:c=>Dt.findNodeByPath(s,c),actions:{setSetting:c=>o(Dt.applySetting(c)),setSettingsAsText:c=>o(Dt.setSettingsAsText(c)),fetchFolderContentWithoutExpanding:c=>o(Dt.fetchFolderContentWithoutExpanding(c)).unwrap(),createNewFileAndOpen:c=>o(Dt.createNewFileAndOpen({fileName:c.fileName,path:c.path,type:c.type,parentNode:c.parentNode,qodly:c.qodly??!1})).unwrap(),openModal:async c=>await o(Dt.openModal(c)).unwrap()}}}const Qp=m.createContext(null),eh=({children:t,adapter:o})=>w.jsx(Qp.Provider,{value:o,children:t}),jo=()=>{const t=m.useContext(Qp);if(!t)throw new Error("useSettingsEditorStateAdapter must be used within an EditorStateAdapterProvider");return t};var ji=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function gy(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Oo={exports:{}};/**
|
|
2
2
|
* @license
|
|
3
3
|
* Lodash <https://lodash.com/>
|
|
4
4
|
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
|
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 Fx=wi.exports,md;function Hx(){return md||(md=1,(function(r,i){(function(){var n,o="4.18.1",s=200,l="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",c="Expected a function",d="Invalid `variable` option passed into `_.template`",h="Invalid `imports` option passed into `_.template`",v="__lodash_hash_undefined__",m=500,w="__lodash_placeholder__",S=1,D=2,B=4,z=1,k=2,A=1,_=2,E=4,O=8,N=16,V=32,ae=64,j=128,$=256,oe=512,ue=30,pe="...",q=800,Z=16,fe=1,he=2,Ee=3,ie=1/0,Se=9007199254740991,M=17976931348623157e292,T=NaN,K=4294967295,re=K-1,P=K>>>1,J=[["ary",j],["bind",A],["bindKey",_],["curry",O],["curryRight",N],["flip",oe],["partial",V],["partialRight",ae],["rearg",$]],G="[object Arguments]",U="[object Array]",le="[object AsyncFunction]",de="[object Boolean]",F="[object Date]",se="[object DOMException]",H="[object Error]",we="[object Function]",te="[object GeneratorFunction]",ke="[object Map]",De="[object Number]",qe="[object Null]",Ve="[object Object]",Ke="[object Promise]",Ze="[object Proxy]",lt="[object RegExp]",ct="[object Set]",rt="[object String]",bt="[object Symbol]",Ir="[object Undefined]",Ct="[object WeakMap]",ut="[object WeakSet]",wt="[object ArrayBuffer]",kt="[object DataView]",ft="[object Float32Array]",Zr="[object Float64Array]",Un="[object Int8Array]",fn="[object Int16Array]",gn="[object Int32Array]",Gn="[object Uint8Array]",vn="[object Uint8ClampedArray]",mn="[object Uint16Array]",bn="[object Uint32Array]",zi=/\b__p \+= '';/g,Yr=/\b(__p \+=) '' \+/g,Di=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Ai=/&(?:amp|lt|gt|quot|#39);/g,qn=/[&<>"']/g,Zn=RegExp(Ai.source),Yn=RegExp(qn.source),da=/<%-([\s\S]+?)%>/g,Ti=/<%([\s\S]+?)%>/g,Pi=/<%=([\s\S]+?)%>/g,Dr=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,pa=/^\w*$/,Xr=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ar=/[\\^$.*+?()[\]{}|]/g,Xn=RegExp(Ar.source),Qn=/^\s+/,Le=/\s/,dt=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,xt=/\{\n\/\* \[wrapped with (.+)\] \*/,yt=/,? & /,Pt=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Xt=/[()=,{}\[\]\/\s]/,fr=/\\(\\)?/g,gr=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,vr=/\w*$/,mr=/^[-+]0x[0-9a-f]+$/i,Qr=/^0b[01]+$/i,Jn=/^\[object .+?Constructor\]$/,Of=/^0o[0-7]+$/i,Nf=/^(?:0|[1-9]\d*)$/,Cf=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Li=/($^)/,Rf=/['\n\r\u2028\u2029\\]/g,ji="\\ud800-\\udfff",Mf="\\u0300-\\u036f",zf="\\ufe20-\\ufe2f",Df="\\u20d0-\\u20ff",Kl=Mf+zf+Df,Ul="\\u2700-\\u27bf",Gl="a-z\\xdf-\\xf6\\xf8-\\xff",Af="\\xac\\xb1\\xd7\\xf7",Tf="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Pf="\\u2000-\\u206f",Lf=" \\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",ql="A-Z\\xc0-\\xd6\\xd8-\\xde",Zl="\\ufe0e\\ufe0f",Yl=Af+Tf+Pf+Lf,ha="['’]",jf="["+ji+"]",Xl="["+Yl+"]",Bi="["+Kl+"]",Ql="\\d+",Bf="["+Ul+"]",Jl="["+Gl+"]",ec="[^"+ji+Yl+Ql+Ul+Gl+ql+"]",fa="\\ud83c[\\udffb-\\udfff]",Vf="(?:"+Bi+"|"+fa+")",tc="[^"+ji+"]",ga="(?:\\ud83c[\\udde6-\\uddff]){2}",va="[\\ud800-\\udbff][\\udc00-\\udfff]",wn="["+ql+"]",rc="\\u200d",nc="(?:"+Jl+"|"+ec+")",Ff="(?:"+wn+"|"+ec+")",ic="(?:"+ha+"(?:d|ll|m|re|s|t|ve))?",oc="(?:"+ha+"(?:D|LL|M|RE|S|T|VE))?",ac=Vf+"?",sc="["+Zl+"]?",Hf="(?:"+rc+"(?:"+[tc,ga,va].join("|")+")"+sc+ac+")*",Wf="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",$f="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",lc=sc+ac+Hf,Kf="(?:"+[Bf,ga,va].join("|")+")"+lc,Uf="(?:"+[tc+Bi+"?",Bi,ga,va,jf].join("|")+")",Gf=RegExp(ha,"g"),qf=RegExp(Bi,"g"),ma=RegExp(fa+"(?="+fa+")|"+Uf+lc,"g"),Zf=RegExp([wn+"?"+Jl+"+"+ic+"(?="+[Xl,wn,"$"].join("|")+")",Ff+"+"+oc+"(?="+[Xl,wn+nc,"$"].join("|")+")",wn+"?"+nc+"+"+ic,wn+"+"+oc,$f,Wf,Ql,Kf].join("|"),"g"),Yf=RegExp("["+rc+ji+Kl+Zl+"]"),Xf=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Qf=["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"],Jf=-1,Qe={};Qe[ft]=Qe[Zr]=Qe[Un]=Qe[fn]=Qe[gn]=Qe[Gn]=Qe[vn]=Qe[mn]=Qe[bn]=!0,Qe[G]=Qe[U]=Qe[wt]=Qe[de]=Qe[kt]=Qe[F]=Qe[H]=Qe[we]=Qe[ke]=Qe[De]=Qe[Ve]=Qe[lt]=Qe[ct]=Qe[rt]=Qe[Ct]=!1;var Xe={};Xe[G]=Xe[U]=Xe[wt]=Xe[kt]=Xe[de]=Xe[F]=Xe[ft]=Xe[Zr]=Xe[Un]=Xe[fn]=Xe[gn]=Xe[ke]=Xe[De]=Xe[Ve]=Xe[lt]=Xe[ct]=Xe[rt]=Xe[bt]=Xe[Gn]=Xe[vn]=Xe[mn]=Xe[bn]=!0,Xe[H]=Xe[we]=Xe[Ct]=!1;var eg={À:"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"},tg={"&":"&","<":"<",">":">",'"':""","'":"'"},rg={"&":"&","<":"<",">":">",""":'"',"'":"'"},ng={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},ig=parseFloat,og=parseInt,cc=typeof Eo=="object"&&Eo&&Eo.Object===Object&&Eo,ag=typeof self=="object"&&self&&self.Object===Object&&self,St=cc||ag||Function("return this")(),ba=i&&!i.nodeType&&i,Jr=ba&&!0&&r&&!r.nodeType&&r,uc=Jr&&Jr.exports===ba,wa=uc&&cc.process,Qt=(function(){try{var C=Jr&&Jr.require&&Jr.require("util").types;return C||wa&&wa.binding&&wa.binding("util")}catch{}})(),dc=Qt&&Qt.isArrayBuffer,pc=Qt&&Qt.isDate,hc=Qt&&Qt.isMap,fc=Qt&&Qt.isRegExp,gc=Qt&&Qt.isSet,vc=Qt&&Qt.isTypedArray;function Wt(C,W,L){switch(L.length){case 0:return C.call(W);case 1:return C.call(W,L[0]);case 2:return C.call(W,L[0],L[1]);case 3:return C.call(W,L[0],L[1],L[2])}return C.apply(W,L)}function sg(C,W,L,ge){for(var Oe=-1,je=C==null?0:C.length;++Oe<je;){var gt=C[Oe];W(ge,gt,L(gt),C)}return ge}function $t(C,W){for(var L=-1,ge=C==null?0:C.length;++L<ge&&W(C[L],L,C)!==!1;);return C}function lg(C,W){for(var L=C==null?0:C.length;L--&&W(C[L],L,C)!==!1;);return C}function mc(C,W){for(var L=-1,ge=C==null?0:C.length;++L<ge;)if(!W(C[L],L,C))return!1;return!0}function Tr(C,W){for(var L=-1,ge=C==null?0:C.length,Oe=0,je=[];++L<ge;){var gt=C[L];W(gt,L,C)&&(je[Oe++]=gt)}return je}function Vi(C,W){var L=C==null?0:C.length;return!!L&&xn(C,W,0)>-1}function xa(C,W,L){for(var ge=-1,Oe=C==null?0:C.length;++ge<Oe;)if(L(W,C[ge]))return!0;return!1}function Je(C,W){for(var L=-1,ge=C==null?0:C.length,Oe=Array(ge);++L<ge;)Oe[L]=W(C[L],L,C);return Oe}function Pr(C,W){for(var L=-1,ge=W.length,Oe=C.length;++L<ge;)C[Oe+L]=W[L];return C}function ya(C,W,L,ge){var Oe=-1,je=C==null?0:C.length;for(ge&&je&&(L=C[++Oe]);++Oe<je;)L=W(L,C[Oe],Oe,C);return L}function cg(C,W,L,ge){var Oe=C==null?0:C.length;for(ge&&Oe&&(L=C[--Oe]);Oe--;)L=W(L,C[Oe],Oe,C);return L}function _a(C,W){for(var L=-1,ge=C==null?0:C.length;++L<ge;)if(W(C[L],L,C))return!0;return!1}var ug=Ia("length");function dg(C){return C.split("")}function pg(C){return C.match(Pt)||[]}function bc(C,W,L){var ge;return L(C,function(Oe,je,gt){if(W(Oe,je,gt))return ge=je,!1}),ge}function Fi(C,W,L,ge){for(var Oe=C.length,je=L+(ge?1:-1);ge?je--:++je<Oe;)if(W(C[je],je,C))return je;return-1}function xn(C,W,L){return W===W?Sg(C,W,L):Fi(C,wc,L)}function hg(C,W,L,ge){for(var Oe=L-1,je=C.length;++Oe<je;)if(ge(C[Oe],W))return Oe;return-1}function wc(C){return C!==C}function xc(C,W){var L=C==null?0:C.length;return L?Ea(C,W)/L:T}function Ia(C){return function(W){return W==null?n:W[C]}}function Sa(C){return function(W){return C==null?n:C[W]}}function yc(C,W,L,ge,Oe){return Oe(C,function(je,gt,Ye){L=ge?(ge=!1,je):W(L,je,gt,Ye)}),L}function fg(C,W){var L=C.length;for(C.sort(W);L--;)C[L]=C[L].value;return C}function Ea(C,W){for(var L,ge=-1,Oe=C.length;++ge<Oe;){var je=W(C[ge]);je!==n&&(L=L===n?je:L+je)}return L}function ka(C,W){for(var L=-1,ge=Array(C);++L<C;)ge[L]=W(L);return ge}function gg(C,W){return Je(W,function(L){return[L,C[L]]})}function _c(C){return C&&C.slice(0,kc(C)+1).replace(Qn,"")}function Kt(C){return function(W){return C(W)}}function Oa(C,W){return Je(W,function(L){return C[L]})}function ei(C,W){return C.has(W)}function Ic(C,W){for(var L=-1,ge=C.length;++L<ge&&xn(W,C[L],0)>-1;);return L}function Sc(C,W){for(var L=C.length;L--&&xn(W,C[L],0)>-1;);return L}function vg(C,W){for(var L=C.length,ge=0;L--;)C[L]===W&&++ge;return ge}var mg=Sa(eg),bg=Sa(tg);function wg(C){return"\\"+ng[C]}function xg(C,W){return C==null?n:C[W]}function yn(C){return Yf.test(C)}function yg(C){return Xf.test(C)}function _g(C){for(var W,L=[];!(W=C.next()).done;)L.push(W.value);return L}function Na(C){var W=-1,L=Array(C.size);return C.forEach(function(ge,Oe){L[++W]=[Oe,ge]}),L}function Ec(C,W){return function(L){return C(W(L))}}function Lr(C,W){for(var L=-1,ge=C.length,Oe=0,je=[];++L<ge;){var gt=C[L];(gt===W||gt===w)&&(C[L]=w,je[Oe++]=L)}return je}function Hi(C){var W=-1,L=Array(C.size);return C.forEach(function(ge){L[++W]=ge}),L}function Ig(C){var W=-1,L=Array(C.size);return C.forEach(function(ge){L[++W]=[ge,ge]}),L}function Sg(C,W,L){for(var ge=L-1,Oe=C.length;++ge<Oe;)if(C[ge]===W)return ge;return-1}function Eg(C,W,L){for(var ge=L+1;ge--;)if(C[ge]===W)return ge;return ge}function _n(C){return yn(C)?Og(C):ug(C)}function sr(C){return yn(C)?Ng(C):dg(C)}function kc(C){for(var W=C.length;W--&&Le.test(C.charAt(W)););return W}var kg=Sa(rg);function Og(C){for(var W=ma.lastIndex=0;ma.test(C);)++W;return W}function Ng(C){return C.match(ma)||[]}function Cg(C){return C.match(Zf)||[]}var Rg=(function C(W){W=W==null?St:In.defaults(St.Object(),W,In.pick(St,Qf));var L=W.Array,ge=W.Date,Oe=W.Error,je=W.Function,gt=W.Math,Ye=W.Object,Ca=W.RegExp,Mg=W.String,Jt=W.TypeError,Wi=L.prototype,zg=je.prototype,Sn=Ye.prototype,$i=W["__core-js_shared__"],Ki=zg.toString,Fe=Sn.hasOwnProperty,Dg=0,Oc=(function(){var e=/[^.]+$/.exec($i&&$i.keys&&$i.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""})(),Ui=Sn.toString,Ag=Ki.call(Ye),Tg=St._,Pg=Ca("^"+Ki.call(Fe).replace(Ar,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Gi=uc?W.Buffer:n,jr=W.Symbol,qi=W.Uint8Array,Nc=Gi?Gi.allocUnsafe:n,Zi=Ec(Ye.getPrototypeOf,Ye),Cc=Ye.create,Rc=Sn.propertyIsEnumerable,Yi=Wi.splice,Mc=jr?jr.isConcatSpreadable:n,ti=jr?jr.iterator:n,en=jr?jr.toStringTag:n,Xi=(function(){try{var e=an(Ye,"defineProperty");return e({},"",{}),e}catch{}})(),Lg=W.clearTimeout!==St.clearTimeout&&W.clearTimeout,jg=ge&&ge.now!==St.Date.now&&ge.now,Bg=W.setTimeout!==St.setTimeout&&W.setTimeout,Qi=gt.ceil,Ji=gt.floor,Ra=Ye.getOwnPropertySymbols,Vg=Gi?Gi.isBuffer:n,zc=W.isFinite,Fg=Wi.join,Hg=Ec(Ye.keys,Ye),vt=gt.max,Ot=gt.min,Wg=ge.now,$g=W.parseInt,Dc=gt.random,Kg=Wi.reverse,Ma=an(W,"DataView"),ri=an(W,"Map"),za=an(W,"Promise"),En=an(W,"Set"),ni=an(W,"WeakMap"),ii=an(Ye,"create"),eo=ni&&new ni,kn={},Ug=sn(Ma),Gg=sn(ri),qg=sn(za),Zg=sn(En),Yg=sn(ni),to=jr?jr.prototype:n,oi=to?to.valueOf:n,Ac=to?to.toString:n;function f(e){if(nt(e)&&!Ne(e)&&!(e instanceof Te)){if(e instanceof er)return e;if(Fe.call(e,"__wrapped__"))return Tu(e)}return new er(e)}var On=(function(){function e(){}return function(t){if(!tt(t))return{};if(Cc)return Cc(t);e.prototype=t;var a=new e;return e.prototype=n,a}})();function ro(){}function er(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=n}f.templateSettings={escape:da,evaluate:Ti,interpolate:Pi,variable:"",imports:{_:f}},f.prototype=ro.prototype,f.prototype.constructor=f,er.prototype=On(ro.prototype),er.prototype.constructor=er;function Te(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=K,this.__views__=[]}function Xg(){var e=new Te(this.__wrapped__);return e.__actions__=Lt(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Lt(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Lt(this.__views__),e}function Qg(){if(this.__filtered__){var e=new Te(this);e.__dir__=-1,e.__filtered__=!0}else e=this.clone(),e.__dir__*=-1;return e}function Jg(){var e=this.__wrapped__.value(),t=this.__dir__,a=Ne(e),u=t<0,p=a?e.length:0,g=dm(0,p,this.__views__),x=g.start,I=g.end,R=I-x,Y=u?I:x-1,X=this.__iteratees__,ee=X.length,ce=0,be=Ot(R,this.__takeCount__);if(!a||!u&&p==R&&be==R)return iu(e,this.__actions__);var Ie=[];e:for(;R--&&ce<be;){Y+=t;for(var Re=-1,xe=e[Y];++Re<ee;){var Ae=X[Re],Pe=Ae.iteratee,qt=Ae.type,zt=Pe(xe);if(qt==he)xe=zt;else if(!zt){if(qt==fe)continue e;break e}}Ie[ce++]=xe}return Ie}Te.prototype=On(ro.prototype),Te.prototype.constructor=Te;function tn(e){var t=-1,a=e==null?0:e.length;for(this.clear();++t<a;){var u=e[t];this.set(u[0],u[1])}}function ev(){this.__data__=ii?ii(null):{},this.size=0}function tv(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}function rv(e){var t=this.__data__;if(ii){var a=t[e];return a===v?n:a}return Fe.call(t,e)?t[e]:n}function nv(e){var t=this.__data__;return ii?t[e]!==n:Fe.call(t,e)}function iv(e,t){var a=this.__data__;return this.size+=this.has(e)?0:1,a[e]=ii&&t===n?v:t,this}tn.prototype.clear=ev,tn.prototype.delete=tv,tn.prototype.get=rv,tn.prototype.has=nv,tn.prototype.set=iv;function Sr(e){var t=-1,a=e==null?0:e.length;for(this.clear();++t<a;){var u=e[t];this.set(u[0],u[1])}}function ov(){this.__data__=[],this.size=0}function av(e){var t=this.__data__,a=no(t,e);if(a<0)return!1;var u=t.length-1;return a==u?t.pop():Yi.call(t,a,1),--this.size,!0}function sv(e){var t=this.__data__,a=no(t,e);return a<0?n:t[a][1]}function lv(e){return no(this.__data__,e)>-1}function cv(e,t){var a=this.__data__,u=no(a,e);return u<0?(++this.size,a.push([e,t])):a[u][1]=t,this}Sr.prototype.clear=ov,Sr.prototype.delete=av,Sr.prototype.get=sv,Sr.prototype.has=lv,Sr.prototype.set=cv;function Er(e){var t=-1,a=e==null?0:e.length;for(this.clear();++t<a;){var u=e[t];this.set(u[0],u[1])}}function uv(){this.size=0,this.__data__={hash:new tn,map:new(ri||Sr),string:new tn}}function dv(e){var t=vo(this,e).delete(e);return this.size-=t?1:0,t}function pv(e){return vo(this,e).get(e)}function hv(e){return vo(this,e).has(e)}function fv(e,t){var a=vo(this,e),u=a.size;return a.set(e,t),this.size+=a.size==u?0:1,this}Er.prototype.clear=uv,Er.prototype.delete=dv,Er.prototype.get=pv,Er.prototype.has=hv,Er.prototype.set=fv;function rn(e){var t=-1,a=e==null?0:e.length;for(this.__data__=new Er;++t<a;)this.add(e[t])}function gv(e){return this.__data__.set(e,v),this}function vv(e){return this.__data__.has(e)}rn.prototype.add=rn.prototype.push=gv,rn.prototype.has=vv;function lr(e){var t=this.__data__=new Sr(e);this.size=t.size}function mv(){this.__data__=new Sr,this.size=0}function bv(e){var t=this.__data__,a=t.delete(e);return this.size=t.size,a}function wv(e){return this.__data__.get(e)}function xv(e){return this.__data__.has(e)}function yv(e,t){var a=this.__data__;if(a instanceof Sr){var u=a.__data__;if(!ri||u.length<s-1)return u.push([e,t]),this.size=++a.size,this;a=this.__data__=new Er(u)}return a.set(e,t),this.size=a.size,this}lr.prototype.clear=mv,lr.prototype.delete=bv,lr.prototype.get=wv,lr.prototype.has=xv,lr.prototype.set=yv;function Tc(e,t){var a=Ne(e),u=!a&&ln(e),p=!a&&!u&&Wr(e),g=!a&&!u&&!p&&Mn(e),x=a||u||p||g,I=x?ka(e.length,Mg):[],R=I.length;for(var Y in e)(t||Fe.call(e,Y))&&!(x&&(Y=="length"||p&&(Y=="offset"||Y=="parent")||g&&(Y=="buffer"||Y=="byteLength"||Y=="byteOffset")||Nr(Y,R)))&&I.push(Y);return I}function Pc(e){var t=e.length;return t?e[Wa(0,t-1)]:n}function _v(e,t){return mo(Lt(e),nn(t,0,e.length))}function Iv(e){return mo(Lt(e))}function Da(e,t,a){(a!==n&&!ur(e[t],a)||a===n&&!(t in e))&&br(e,t,a)}function ai(e,t,a){var u=e[t];(!(Fe.call(e,t)&&ur(u,a))||a===n&&!(t in e))&&br(e,t,a)}function no(e,t){for(var a=e.length;a--;)if(ur(e[a][0],t))return a;return-1}function Sv(e,t,a,u){return Br(e,function(p,g,x){t(u,p,a(p),x)}),u}function Lc(e,t){return e&&xr(t,_t(t),e)}function Ev(e,t){return e&&xr(t,Bt(t),e)}function br(e,t,a){t=="__proto__"&&Xi?Xi(e,t,{configurable:!0,enumerable:!0,value:a,writable:!0}):e[t]=a}function Aa(e,t){for(var a=-1,u=t.length,p=L(u),g=e==null;++a<u;)p[a]=g?n:gs(e,t[a]);return p}function nn(e,t,a){return e===e&&(a!==n&&(e=e<=a?e:a),t!==n&&(e=e>=t?e:t)),e}function tr(e,t,a,u,p,g){var x,I=t&S,R=t&D,Y=t&B;if(a&&(x=p?a(e,u,p,g):a(e)),x!==n)return x;if(!tt(e))return e;var X=Ne(e);if(X){if(x=hm(e),!I)return Lt(e,x)}else{var ee=Nt(e),ce=ee==we||ee==te;if(Wr(e))return su(e,I);if(ee==Ve||ee==G||ce&&!p){if(x=R||ce?{}:ku(e),!I)return R?rm(e,Ev(x,e)):tm(e,Lc(x,e))}else{if(!Xe[ee])return p?e:{};x=fm(e,ee,I)}}g||(g=new lr);var be=g.get(e);if(be)return be;g.set(e,x),td(e)?e.forEach(function(xe){x.add(tr(xe,t,a,xe,e,g))}):Ju(e)&&e.forEach(function(xe,Ae){x.set(Ae,tr(xe,t,a,Ae,e,g))});var Ie=Y?R?es:Ja:R?Bt:_t,Re=X?n:Ie(e);return $t(Re||e,function(xe,Ae){Re&&(Ae=xe,xe=e[Ae]),ai(x,Ae,tr(xe,t,a,Ae,e,g))}),x}function kv(e){var t=_t(e);return function(a){return jc(a,e,t)}}function jc(e,t,a){var u=a.length;if(e==null)return!u;for(e=Ye(e);u--;){var p=a[u],g=t[p],x=e[p];if(x===n&&!(p in e)||!g(x))return!1}return!0}function Bc(e,t,a){if(typeof e!="function")throw new Jt(c);return hi(function(){e.apply(n,a)},t)}function si(e,t,a,u){var p=-1,g=Vi,x=!0,I=e.length,R=[],Y=t.length;if(!I)return R;a&&(t=Je(t,Kt(a))),u?(g=xa,x=!1):t.length>=s&&(g=ei,x=!1,t=new rn(t));e:for(;++p<I;){var X=e[p],ee=a==null?X:a(X);if(X=u||X!==0?X:0,x&&ee===ee){for(var ce=Y;ce--;)if(t[ce]===ee)continue e;R.push(X)}else g(t,ee,u)||R.push(X)}return R}var Br=pu(wr),Vc=pu(Pa,!0);function Ov(e,t){var a=!0;return Br(e,function(u,p,g){return a=!!t(u,p,g),a}),a}function io(e,t,a){for(var u=-1,p=e.length;++u<p;){var g=e[u],x=t(g);if(x!=null&&(I===n?x===x&&!Gt(x):a(x,I)))var I=x,R=g}return R}function Nv(e,t,a,u){var p=e.length;for(a=Ce(a),a<0&&(a=-a>p?0:p+a),u=u===n||u>p?p:Ce(u),u<0&&(u+=p),u=a>u?0:nd(u);a<u;)e[a++]=t;return e}function Fc(e,t){var a=[];return Br(e,function(u,p,g){t(u,p,g)&&a.push(u)}),a}function Et(e,t,a,u,p){var g=-1,x=e.length;for(a||(a=vm),p||(p=[]);++g<x;){var I=e[g];t>0&&a(I)?t>1?Et(I,t-1,a,u,p):Pr(p,I):u||(p[p.length]=I)}return p}var Ta=hu(),Hc=hu(!0);function wr(e,t){return e&&Ta(e,t,_t)}function Pa(e,t){return e&&Hc(e,t,_t)}function oo(e,t){return Tr(t,function(a){return Cr(e[a])})}function on(e,t){t=Fr(t,e);for(var a=0,u=t.length;e!=null&&a<u;)e=e[cr(t[a++])];return a&&a==u?e:n}function Wc(e,t,a){var u=t(e);return Ne(e)?u:Pr(u,a(e))}function Rt(e){return e==null?e===n?Ir:qe:en&&en in Ye(e)?um(e):Im(e)}function La(e,t){return e>t}function Cv(e,t){return e!=null&&Fe.call(e,t)}function Rv(e,t){return e!=null&&t in Ye(e)}function Mv(e,t,a){return e>=Ot(t,a)&&e<vt(t,a)}function ja(e,t,a){for(var u=a?xa:Vi,p=e[0].length,g=e.length,x=g,I=L(g),R=1/0,Y=[];x--;){var X=e[x];x&&t&&(X=Je(X,Kt(t))),R=Ot(X.length,R),I[x]=!a&&(t||p>=120&&X.length>=120)?new rn(x&&X):n}X=e[0];var ee=-1,ce=I[0];e:for(;++ee<p&&Y.length<R;){var be=X[ee],Ie=t?t(be):be;if(be=a||be!==0?be:0,!(ce?ei(ce,Ie):u(Y,Ie,a))){for(x=g;--x;){var Re=I[x];if(!(Re?ei(Re,Ie):u(e[x],Ie,a)))continue e}ce&&ce.push(Ie),Y.push(be)}}return Y}function zv(e,t,a,u){return wr(e,function(p,g,x){t(u,a(p),g,x)}),u}function li(e,t,a){t=Fr(t,e),e=Ru(e,t);var u=e==null?e:e[cr(nr(t))];return u==null?n:Wt(u,e,a)}function $c(e){return nt(e)&&Rt(e)==G}function Dv(e){return nt(e)&&Rt(e)==wt}function Av(e){return nt(e)&&Rt(e)==F}function ci(e,t,a,u,p){return e===t?!0:e==null||t==null||!nt(e)&&!nt(t)?e!==e&&t!==t:Tv(e,t,a,u,ci,p)}function Tv(e,t,a,u,p,g){var x=Ne(e),I=Ne(t),R=x?U:Nt(e),Y=I?U:Nt(t);R=R==G?Ve:R,Y=Y==G?Ve:Y;var X=R==Ve,ee=Y==Ve,ce=R==Y;if(ce&&Wr(e)){if(!Wr(t))return!1;x=!0,X=!1}if(ce&&!X)return g||(g=new lr),x||Mn(e)?Iu(e,t,a,u,p,g):lm(e,t,R,a,u,p,g);if(!(a&z)){var be=X&&Fe.call(e,"__wrapped__"),Ie=ee&&Fe.call(t,"__wrapped__");if(be||Ie){var Re=be?e.value():e,xe=Ie?t.value():t;return g||(g=new lr),p(Re,xe,a,u,g)}}return ce?(g||(g=new lr),cm(e,t,a,u,p,g)):!1}function Pv(e){return nt(e)&&Nt(e)==ke}function Ba(e,t,a,u){var p=a.length,g=p,x=!u;if(e==null)return!g;for(e=Ye(e);p--;){var I=a[p];if(x&&I[2]?I[1]!==e[I[0]]:!(I[0]in e))return!1}for(;++p<g;){I=a[p];var R=I[0],Y=e[R],X=I[1];if(x&&I[2]){if(Y===n&&!(R in e))return!1}else{var ee=new lr;if(u)var ce=u(Y,X,R,e,t,ee);if(!(ce===n?ci(X,Y,z|k,u,ee):ce))return!1}}return!0}function Kc(e){if(!tt(e)||bm(e))return!1;var t=Cr(e)?Pg:Jn;return t.test(sn(e))}function Lv(e){return nt(e)&&Rt(e)==lt}function jv(e){return nt(e)&&Nt(e)==ct}function Bv(e){return nt(e)&&Io(e.length)&&!!Qe[Rt(e)]}function Uc(e){return typeof e=="function"?e:e==null?Vt:typeof e=="object"?Ne(e)?Zc(e[0],e[1]):qc(e):gd(e)}function Va(e){if(!pi(e))return Hg(e);var t=[];for(var a in Ye(e))Fe.call(e,a)&&a!="constructor"&&t.push(a);return t}function Vv(e){if(!tt(e))return _m(e);var t=pi(e),a=[];for(var u in e)u=="constructor"&&(t||!Fe.call(e,u))||a.push(u);return a}function Fa(e,t){return e<t}function Gc(e,t){var a=-1,u=jt(e)?L(e.length):[];return Br(e,function(p,g,x){u[++a]=t(p,g,x)}),u}function qc(e){var t=rs(e);return t.length==1&&t[0][2]?Nu(t[0][0],t[0][1]):function(a){return a===e||Ba(a,e,t)}}function Zc(e,t){return is(e)&&Ou(t)?Nu(cr(e),t):function(a){var u=gs(a,e);return u===n&&u===t?vs(a,e):ci(t,u,z|k)}}function ao(e,t,a,u,p){e!==t&&Ta(t,function(g,x){if(p||(p=new lr),tt(g))Fv(e,t,x,a,ao,u,p);else{var I=u?u(as(e,x),g,x+"",e,t,p):n;I===n&&(I=g),Da(e,x,I)}},Bt)}function Fv(e,t,a,u,p,g,x){var I=as(e,a),R=as(t,a),Y=x.get(R);if(Y){Da(e,a,Y);return}var X=g?g(I,R,a+"",e,t,x):n,ee=X===n;if(ee){var ce=Ne(R),be=!ce&&Wr(R),Ie=!ce&&!be&&Mn(R);X=R,ce||be||Ie?Ne(I)?X=I:ot(I)?X=Lt(I):be?(ee=!1,X=su(R,!0)):Ie?(ee=!1,X=lu(R,!0)):X=[]:fi(R)||ln(R)?(X=I,ln(I)?X=id(I):(!tt(I)||Cr(I))&&(X=ku(R))):ee=!1}ee&&(x.set(R,X),p(X,R,u,g,x),x.delete(R)),Da(e,a,X)}function Yc(e,t){var a=e.length;if(a)return t+=t<0?a:0,Nr(t,a)?e[t]:n}function Xc(e,t,a){t.length?t=Je(t,function(g){return Ne(g)?function(x){return on(x,g.length===1?g[0]:g)}:g}):t=[Vt];var u=-1;t=Je(t,Kt(ye()));var p=Gc(e,function(g,x,I){var R=Je(t,function(Y){return Y(g)});return{criteria:R,index:++u,value:g}});return fg(p,function(g,x){return em(g,x,a)})}function Hv(e,t){return Qc(e,t,function(a,u){return vs(e,u)})}function Qc(e,t,a){for(var u=-1,p=t.length,g={};++u<p;){var x=t[u],I=on(e,x);a(I,x)&&ui(g,Fr(x,e),I)}return g}function Wv(e){return function(t){return on(t,e)}}function Ha(e,t,a,u){var p=u?hg:xn,g=-1,x=t.length,I=e;for(e===t&&(t=Lt(t)),a&&(I=Je(e,Kt(a)));++g<x;)for(var R=0,Y=t[g],X=a?a(Y):Y;(R=p(I,X,R,u))>-1;)I!==e&&Yi.call(I,R,1),Yi.call(e,R,1);return e}function Jc(e,t){for(var a=e?t.length:0,u=a-1;a--;){var p=t[a];if(a==u||p!==g){var g=p;Nr(p)?Yi.call(e,p,1):Ua(e,p)}}return e}function Wa(e,t){return e+Ji(Dc()*(t-e+1))}function $v(e,t,a,u){for(var p=-1,g=vt(Qi((t-e)/(a||1)),0),x=L(g);g--;)x[u?g:++p]=e,e+=a;return x}function $a(e,t){var a="";if(!e||t<1||t>Se)return a;do t%2&&(a+=e),t=Ji(t/2),t&&(e+=e);while(t);return a}function Me(e,t){return ss(Cu(e,t,Vt),e+"")}function Kv(e){return Pc(zn(e))}function Uv(e,t){var a=zn(e);return mo(a,nn(t,0,a.length))}function ui(e,t,a,u){if(!tt(e))return e;t=Fr(t,e);for(var p=-1,g=t.length,x=g-1,I=e;I!=null&&++p<g;){var R=cr(t[p]),Y=a;if(R==="__proto__"||R==="constructor"||R==="prototype")return e;if(p!=x){var X=I[R];Y=u?u(X,R,I):n,Y===n&&(Y=tt(X)?X:Nr(t[p+1])?[]:{})}ai(I,R,Y),I=I[R]}return e}var eu=eo?function(e,t){return eo.set(e,t),e}:Vt,Gv=Xi?function(e,t){return Xi(e,"toString",{configurable:!0,enumerable:!1,value:bs(t),writable:!0})}:Vt;function qv(e){return mo(zn(e))}function rr(e,t,a){var u=-1,p=e.length;t<0&&(t=-t>p?0:p+t),a=a>p?p:a,a<0&&(a+=p),p=t>a?0:a-t>>>0,t>>>=0;for(var g=L(p);++u<p;)g[u]=e[u+t];return g}function Zv(e,t){var a;return Br(e,function(u,p,g){return a=t(u,p,g),!a}),!!a}function so(e,t,a){var u=0,p=e==null?u:e.length;if(typeof t=="number"&&t===t&&p<=P){for(;u<p;){var g=u+p>>>1,x=e[g];x!==null&&!Gt(x)&&(a?x<=t:x<t)?u=g+1:p=g}return p}return Ka(e,t,Vt,a)}function Ka(e,t,a,u){var p=0,g=e==null?0:e.length;if(g===0)return 0;t=a(t);for(var x=t!==t,I=t===null,R=Gt(t),Y=t===n;p<g;){var X=Ji((p+g)/2),ee=a(e[X]),ce=ee!==n,be=ee===null,Ie=ee===ee,Re=Gt(ee);if(x)var xe=u||Ie;else Y?xe=Ie&&(u||ce):I?xe=Ie&&ce&&(u||!be):R?xe=Ie&&ce&&!be&&(u||!Re):be||Re?xe=!1:xe=u?ee<=t:ee<t;xe?p=X+1:g=X}return Ot(g,re)}function tu(e,t){for(var a=-1,u=e.length,p=0,g=[];++a<u;){var x=e[a],I=t?t(x):x;if(!a||!ur(I,R)){var R=I;g[p++]=x===0?0:x}}return g}function ru(e){return typeof e=="number"?e:Gt(e)?T:+e}function Ut(e){if(typeof e=="string")return e;if(Ne(e))return Je(e,Ut)+"";if(Gt(e))return Ac?Ac.call(e):"";var t=e+"";return t=="0"&&1/e==-ie?"-0":t}function Vr(e,t,a){var u=-1,p=Vi,g=e.length,x=!0,I=[],R=I;if(a)x=!1,p=xa;else if(g>=s){var Y=t?null:am(e);if(Y)return Hi(Y);x=!1,p=ei,R=new rn}else R=t?[]:I;e:for(;++u<g;){var X=e[u],ee=t?t(X):X;if(X=a||X!==0?X:0,x&&ee===ee){for(var ce=R.length;ce--;)if(R[ce]===ee)continue e;t&&R.push(ee),I.push(X)}else p(R,ee,a)||(R!==I&&R.push(ee),I.push(X))}return I}function Ua(e,t){t=Fr(t,e);var a=-1,u=t.length;if(!u)return!0;for(;++a<u;){var p=cr(t[a]);if(p==="__proto__"&&!Fe.call(e,"__proto__")||(p==="constructor"||p==="prototype")&&a<u-1)return!1}var g=Ru(e,t);return g==null||delete g[cr(nr(t))]}function nu(e,t,a,u){return ui(e,t,a(on(e,t)),u)}function lo(e,t,a,u){for(var p=e.length,g=u?p:-1;(u?g--:++g<p)&&t(e[g],g,e););return a?rr(e,u?0:g,u?g+1:p):rr(e,u?g+1:0,u?p:g)}function iu(e,t){var a=e;return a instanceof Te&&(a=a.value()),ya(t,function(u,p){return p.func.apply(p.thisArg,Pr([u],p.args))},a)}function Ga(e,t,a){var u=e.length;if(u<2)return u?Vr(e[0]):[];for(var p=-1,g=L(u);++p<u;)for(var x=e[p],I=-1;++I<u;)I!=p&&(g[p]=si(g[p]||x,e[I],t,a));return Vr(Et(g,1),t,a)}function ou(e,t,a){for(var u=-1,p=e.length,g=t.length,x={};++u<p;){var I=u<g?t[u]:n;a(x,e[u],I)}return x}function qa(e){return ot(e)?e:[]}function Za(e){return typeof e=="function"?e:Vt}function Fr(e,t){return Ne(e)?e:is(e,t)?[e]:Au(He(e))}var Yv=Me;function Hr(e,t,a){var u=e.length;return a=a===n?u:a,!t&&a>=u?e:rr(e,t,a)}var au=Lg||function(e){return St.clearTimeout(e)};function su(e,t){if(t)return e.slice();var a=e.length,u=Nc?Nc(a):new e.constructor(a);return e.copy(u),u}function Ya(e){var t=new e.constructor(e.byteLength);return new qi(t).set(new qi(e)),t}function Xv(e,t){var a=t?Ya(e.buffer):e.buffer;return new e.constructor(a,e.byteOffset,e.byteLength)}function Qv(e){var t=new e.constructor(e.source,vr.exec(e));return t.lastIndex=e.lastIndex,t}function Jv(e){return oi?Ye(oi.call(e)):{}}function lu(e,t){var a=t?Ya(e.buffer):e.buffer;return new e.constructor(a,e.byteOffset,e.length)}function cu(e,t){if(e!==t){var a=e!==n,u=e===null,p=e===e,g=Gt(e),x=t!==n,I=t===null,R=t===t,Y=Gt(t);if(!I&&!Y&&!g&&e>t||g&&x&&R&&!I&&!Y||u&&x&&R||!a&&R||!p)return 1;if(!u&&!g&&!Y&&e<t||Y&&a&&p&&!u&&!g||I&&a&&p||!x&&p||!R)return-1}return 0}function em(e,t,a){for(var u=-1,p=e.criteria,g=t.criteria,x=p.length,I=a.length;++u<x;){var R=cu(p[u],g[u]);if(R){if(u>=I)return R;var Y=a[u];return R*(Y=="desc"?-1:1)}}return e.index-t.index}function uu(e,t,a,u){for(var p=-1,g=e.length,x=a.length,I=-1,R=t.length,Y=vt(g-x,0),X=L(R+Y),ee=!u;++I<R;)X[I]=t[I];for(;++p<x;)(ee||p<g)&&(X[a[p]]=e[p]);for(;Y--;)X[I++]=e[p++];return X}function du(e,t,a,u){for(var p=-1,g=e.length,x=-1,I=a.length,R=-1,Y=t.length,X=vt(g-I,0),ee=L(X+Y),ce=!u;++p<X;)ee[p]=e[p];for(var be=p;++R<Y;)ee[be+R]=t[R];for(;++x<I;)(ce||p<g)&&(ee[be+a[x]]=e[p++]);return ee}function Lt(e,t){var a=-1,u=e.length;for(t||(t=L(u));++a<u;)t[a]=e[a];return t}function xr(e,t,a,u){var p=!a;a||(a={});for(var g=-1,x=t.length;++g<x;){var I=t[g],R=u?u(a[I],e[I],I,a,e):n;R===n&&(R=e[I]),p?br(a,I,R):ai(a,I,R)}return a}function tm(e,t){return xr(e,ns(e),t)}function rm(e,t){return xr(e,Su(e),t)}function co(e,t){return function(a,u){var p=Ne(a)?sg:Sv,g=t?t():{};return p(a,e,ye(u,2),g)}}function Nn(e){return Me(function(t,a){var u=-1,p=a.length,g=p>1?a[p-1]:n,x=p>2?a[2]:n;for(g=e.length>3&&typeof g=="function"?(p--,g):n,x&&Mt(a[0],a[1],x)&&(g=p<3?n:g,p=1),t=Ye(t);++u<p;){var I=a[u];I&&e(t,I,u,g)}return t})}function pu(e,t){return function(a,u){if(a==null)return a;if(!jt(a))return e(a,u);for(var p=a.length,g=t?p:-1,x=Ye(a);(t?g--:++g<p)&&u(x[g],g,x)!==!1;);return a}}function hu(e){return function(t,a,u){for(var p=-1,g=Ye(t),x=u(t),I=x.length;I--;){var R=x[e?I:++p];if(a(g[R],R,g)===!1)break}return t}}function nm(e,t,a){var u=t&A,p=di(e);function g(){var x=this&&this!==St&&this instanceof g?p:e;return x.apply(u?a:this,arguments)}return g}function fu(e){return function(t){t=He(t);var a=yn(t)?sr(t):n,u=a?a[0]:t.charAt(0),p=a?Hr(a,1).join(""):t.slice(1);return u[e]()+p}}function Cn(e){return function(t){return ya(hd(pd(t).replace(Gf,"")),e,"")}}function di(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var a=On(e.prototype),u=e.apply(a,t);return tt(u)?u:a}}function im(e,t,a){var u=di(e);function p(){for(var g=arguments.length,x=L(g),I=g,R=Rn(p);I--;)x[I]=arguments[I];var Y=g<3&&x[0]!==R&&x[g-1]!==R?[]:Lr(x,R);if(g-=Y.length,g<a)return wu(e,t,uo,p.placeholder,n,x,Y,n,n,a-g);var X=this&&this!==St&&this instanceof p?u:e;return Wt(X,this,x)}return p}function gu(e){return function(t,a,u){var p=Ye(t);if(!jt(t)){var g=ye(a,3);t=_t(t),a=function(I){return g(p[I],I,p)}}var x=e(t,a,u);return x>-1?p[g?t[x]:x]:n}}function vu(e){return Or(function(t){var a=t.length,u=a,p=er.prototype.thru;for(e&&t.reverse();u--;){var g=t[u];if(typeof g!="function")throw new Jt(c);if(p&&!x&&go(g)=="wrapper")var x=new er([],!0)}for(u=x?u:a;++u<a;){g=t[u];var I=go(g),R=I=="wrapper"?ts(g):n;R&&os(R[0])&&R[1]==(j|O|V|$)&&!R[4].length&&R[9]==1?x=x[go(R[0])].apply(x,R[3]):x=g.length==1&&os(g)?x[I]():x.thru(g)}return function(){var Y=arguments,X=Y[0];if(x&&Y.length==1&&Ne(X))return x.plant(X).value();for(var ee=0,ce=a?t[ee].apply(this,Y):X;++ee<a;)ce=t[ee].call(this,ce);return ce}})}function uo(e,t,a,u,p,g,x,I,R,Y){var X=t&j,ee=t&A,ce=t&_,be=t&(O|N),Ie=t&oe,Re=ce?n:di(e);function xe(){for(var Ae=arguments.length,Pe=L(Ae),qt=Ae;qt--;)Pe[qt]=arguments[qt];if(be)var zt=Rn(xe),Zt=vg(Pe,zt);if(u&&(Pe=uu(Pe,u,p,be)),g&&(Pe=du(Pe,g,x,be)),Ae-=Zt,be&&Ae<Y){var at=Lr(Pe,zt);return wu(e,t,uo,xe.placeholder,a,Pe,at,I,R,Y-Ae)}var dr=ee?a:this,Mr=ce?dr[e]:e;return Ae=Pe.length,I?Pe=Sm(Pe,I):Ie&&Ae>1&&Pe.reverse(),X&&R<Ae&&(Pe.length=R),this&&this!==St&&this instanceof xe&&(Mr=Re||di(Mr)),Mr.apply(dr,Pe)}return xe}function mu(e,t){return function(a,u){return zv(a,e,t(u),{})}}function po(e,t){return function(a,u){var p;if(a===n&&u===n)return t;if(a!==n&&(p=a),u!==n){if(p===n)return u;typeof a=="string"||typeof u=="string"?(a=Ut(a),u=Ut(u)):(a=ru(a),u=ru(u)),p=e(a,u)}return p}}function Xa(e){return Or(function(t){return t=Je(t,Kt(ye())),Me(function(a){var u=this;return e(t,function(p){return Wt(p,u,a)})})})}function ho(e,t){t=t===n?" ":Ut(t);var a=t.length;if(a<2)return a?$a(t,e):t;var u=$a(t,Qi(e/_n(t)));return yn(t)?Hr(sr(u),0,e).join(""):u.slice(0,e)}function om(e,t,a,u){var p=t&A,g=di(e);function x(){for(var I=-1,R=arguments.length,Y=-1,X=u.length,ee=L(X+R),ce=this&&this!==St&&this instanceof x?g:e;++Y<X;)ee[Y]=u[Y];for(;R--;)ee[Y++]=arguments[++I];return Wt(ce,p?a:this,ee)}return x}function bu(e){return function(t,a,u){return u&&typeof u!="number"&&Mt(t,a,u)&&(a=u=n),t=Rr(t),a===n?(a=t,t=0):a=Rr(a),u=u===n?t<a?1:-1:Rr(u),$v(t,a,u,e)}}function fo(e){return function(t,a){return typeof t=="string"&&typeof a=="string"||(t=ir(t),a=ir(a)),e(t,a)}}function wu(e,t,a,u,p,g,x,I,R,Y){var X=t&O,ee=X?x:n,ce=X?n:x,be=X?g:n,Ie=X?n:g;t|=X?V:ae,t&=~(X?ae:V),t&E||(t&=-4);var Re=[e,t,p,be,ee,Ie,ce,I,R,Y],xe=a.apply(n,Re);return os(e)&&Mu(xe,Re),xe.placeholder=u,zu(xe,e,t)}function Qa(e){var t=gt[e];return function(a,u){if(a=ir(a),u=u==null?0:Ot(Ce(u),292),u&&zc(a)){var p=(He(a)+"e").split("e"),g=t(p[0]+"e"+(+p[1]+u));return p=(He(g)+"e").split("e"),+(p[0]+"e"+(+p[1]-u))}return t(a)}}var am=En&&1/Hi(new En([,-0]))[1]==ie?function(e){return new En(e)}:ys;function xu(e){return function(t){var a=Nt(t);return a==ke?Na(t):a==ct?Ig(t):gg(t,e(t))}}function kr(e,t,a,u,p,g,x,I){var R=t&_;if(!R&&typeof e!="function")throw new Jt(c);var Y=u?u.length:0;if(Y||(t&=-97,u=p=n),x=x===n?x:vt(Ce(x),0),I=I===n?I:Ce(I),Y-=p?p.length:0,t&ae){var X=u,ee=p;u=p=n}var ce=R?n:ts(e),be=[e,t,a,u,p,X,ee,g,x,I];if(ce&&ym(be,ce),e=be[0],t=be[1],a=be[2],u=be[3],p=be[4],I=be[9]=be[9]===n?R?0:e.length:vt(be[9]-Y,0),!I&&t&(O|N)&&(t&=-25),!t||t==A)var Ie=nm(e,t,a);else t==O||t==N?Ie=im(e,t,I):(t==V||t==(A|V))&&!p.length?Ie=om(e,t,a,u):Ie=uo.apply(n,be);var Re=ce?eu:Mu;return zu(Re(Ie,be),e,t)}function yu(e,t,a,u){return e===n||ur(e,Sn[a])&&!Fe.call(u,a)?t:e}function _u(e,t,a,u,p,g){return tt(e)&&tt(t)&&(g.set(t,e),ao(e,t,n,_u,g),g.delete(t)),e}function sm(e){return fi(e)?n:e}function Iu(e,t,a,u,p,g){var x=a&z,I=e.length,R=t.length;if(I!=R&&!(x&&R>I))return!1;var Y=g.get(e),X=g.get(t);if(Y&&X)return Y==t&&X==e;var ee=-1,ce=!0,be=a&k?new rn:n;for(g.set(e,t),g.set(t,e);++ee<I;){var Ie=e[ee],Re=t[ee];if(u)var xe=x?u(Re,Ie,ee,t,e,g):u(Ie,Re,ee,e,t,g);if(xe!==n){if(xe)continue;ce=!1;break}if(be){if(!_a(t,function(Ae,Pe){if(!ei(be,Pe)&&(Ie===Ae||p(Ie,Ae,a,u,g)))return be.push(Pe)})){ce=!1;break}}else if(!(Ie===Re||p(Ie,Re,a,u,g))){ce=!1;break}}return g.delete(e),g.delete(t),ce}function lm(e,t,a,u,p,g,x){switch(a){case kt:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case wt:return!(e.byteLength!=t.byteLength||!g(new qi(e),new qi(t)));case de:case F:case De:return ur(+e,+t);case H:return e.name==t.name&&e.message==t.message;case lt:case rt:return e==t+"";case ke:var I=Na;case ct:var R=u&z;if(I||(I=Hi),e.size!=t.size&&!R)return!1;var Y=x.get(e);if(Y)return Y==t;u|=k,x.set(e,t);var X=Iu(I(e),I(t),u,p,g,x);return x.delete(e),X;case bt:if(oi)return oi.call(e)==oi.call(t)}return!1}function cm(e,t,a,u,p,g){var x=a&z,I=Ja(e),R=I.length,Y=Ja(t),X=Y.length;if(R!=X&&!x)return!1;for(var ee=R;ee--;){var ce=I[ee];if(!(x?ce in t:Fe.call(t,ce)))return!1}var be=g.get(e),Ie=g.get(t);if(be&&Ie)return be==t&&Ie==e;var Re=!0;g.set(e,t),g.set(t,e);for(var xe=x;++ee<R;){ce=I[ee];var Ae=e[ce],Pe=t[ce];if(u)var qt=x?u(Pe,Ae,ce,t,e,g):u(Ae,Pe,ce,e,t,g);if(!(qt===n?Ae===Pe||p(Ae,Pe,a,u,g):qt)){Re=!1;break}xe||(xe=ce=="constructor")}if(Re&&!xe){var zt=e.constructor,Zt=t.constructor;zt!=Zt&&"constructor"in e&&"constructor"in t&&!(typeof zt=="function"&&zt instanceof zt&&typeof Zt=="function"&&Zt instanceof Zt)&&(Re=!1)}return g.delete(e),g.delete(t),Re}function Or(e){return ss(Cu(e,n,ju),e+"")}function Ja(e){return Wc(e,_t,ns)}function es(e){return Wc(e,Bt,Su)}var ts=eo?function(e){return eo.get(e)}:ys;function go(e){for(var t=e.name+"",a=kn[t],u=Fe.call(kn,t)?a.length:0;u--;){var p=a[u],g=p.func;if(g==null||g==e)return p.name}return t}function Rn(e){var t=Fe.call(f,"placeholder")?f:e;return t.placeholder}function ye(){var e=f.iteratee||ws;return e=e===ws?Uc:e,arguments.length?e(arguments[0],arguments[1]):e}function vo(e,t){var a=e.__data__;return mm(t)?a[typeof t=="string"?"string":"hash"]:a.map}function rs(e){for(var t=_t(e),a=t.length;a--;){var u=t[a],p=e[u];t[a]=[u,p,Ou(p)]}return t}function an(e,t){var a=xg(e,t);return Kc(a)?a:n}function um(e){var t=Fe.call(e,en),a=e[en];try{e[en]=n;var u=!0}catch{}var p=Ui.call(e);return u&&(t?e[en]=a:delete e[en]),p}var ns=Ra?function(e){return e==null?[]:(e=Ye(e),Tr(Ra(e),function(t){return Rc.call(e,t)}))}:_s,Su=Ra?function(e){for(var t=[];e;)Pr(t,ns(e)),e=Zi(e);return t}:_s,Nt=Rt;(Ma&&Nt(new Ma(new ArrayBuffer(1)))!=kt||ri&&Nt(new ri)!=ke||za&&Nt(za.resolve())!=Ke||En&&Nt(new En)!=ct||ni&&Nt(new ni)!=Ct)&&(Nt=function(e){var t=Rt(e),a=t==Ve?e.constructor:n,u=a?sn(a):"";if(u)switch(u){case Ug:return kt;case Gg:return ke;case qg:return Ke;case Zg:return ct;case Yg:return Ct}return t});function dm(e,t,a){for(var u=-1,p=a.length;++u<p;){var g=a[u],x=g.size;switch(g.type){case"drop":e+=x;break;case"dropRight":t-=x;break;case"take":t=Ot(t,e+x);break;case"takeRight":e=vt(e,t-x);break}}return{start:e,end:t}}function pm(e){var t=e.match(xt);return t?t[1].split(yt):[]}function Eu(e,t,a){t=Fr(t,e);for(var u=-1,p=t.length,g=!1;++u<p;){var x=cr(t[u]);if(!(g=e!=null&&a(e,x)))break;e=e[x]}return g||++u!=p?g:(p=e==null?0:e.length,!!p&&Io(p)&&Nr(x,p)&&(Ne(e)||ln(e)))}function hm(e){var t=e.length,a=new e.constructor(t);return t&&typeof e[0]=="string"&&Fe.call(e,"index")&&(a.index=e.index,a.input=e.input),a}function ku(e){return typeof e.constructor=="function"&&!pi(e)?On(Zi(e)):{}}function fm(e,t,a){var u=e.constructor;switch(t){case wt:return Ya(e);case de:case F:return new u(+e);case kt:return Xv(e,a);case ft:case Zr:case Un:case fn:case gn:case Gn:case vn:case mn:case bn:return lu(e,a);case ke:return new u;case De:case rt:return new u(e);case lt:return Qv(e);case ct:return new u;case bt:return Jv(e)}}function gm(e,t){var a=t.length;if(!a)return e;var u=a-1;return t[u]=(a>1?"& ":"")+t[u],t=t.join(a>2?", ":" "),e.replace(dt,`{
|
|
9
|
-
/* [wrapped with `+
|
|
10
|
-
`)}function vm(e){return Ne(e)||ln(e)||!!(Mc&&e&&e[Mc])}function Nr(e,t){var a=typeof e;return t=t??Se,!!t&&(a=="number"||a!="symbol"&&Nf.test(e))&&e>-1&&e%1==0&&e<t}function Mt(e,t,a){if(!tt(a))return!1;var u=typeof t;return(u=="number"?jt(a)&&Nr(t,a.length):u=="string"&&t in a)?ur(a[t],e):!1}function is(e,t){if(Ne(e))return!1;var a=typeof e;return a=="number"||a=="symbol"||a=="boolean"||e==null||Gt(e)?!0:pa.test(e)||!Dr.test(e)||t!=null&&e in Ye(t)}function mm(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function os(e){var t=go(e),a=f[t];if(typeof a!="function"||!(t in Te.prototype))return!1;if(e===a)return!0;var u=ts(a);return!!u&&e===u[0]}function bm(e){return!!Oc&&Oc in e}var wm=$i?Cr:Is;function pi(e){var t=e&&e.constructor,a=typeof t=="function"&&t.prototype||Sn;return e===a}function Ou(e){return e===e&&!tt(e)}function Nu(e,t){return function(a){return a==null?!1:a[e]===t&&(t!==n||e in Ye(a))}}function xm(e){var t=yo(e,function(u){return a.size===m&&a.clear(),u}),a=t.cache;return t}function ym(e,t){var a=e[1],u=t[1],p=a|u,g=p<(A|_|j),x=u==j&&a==O||u==j&&a==$&&e[7].length<=t[8]||u==(j|$)&&t[7].length<=t[8]&&a==O;if(!(g||x))return e;u&A&&(e[2]=t[2],p|=a&A?0:E);var I=t[3];if(I){var R=e[3];e[3]=R?uu(R,I,t[4]):I,e[4]=R?Lr(e[3],w):t[4]}return I=t[5],I&&(R=e[5],e[5]=R?du(R,I,t[6]):I,e[6]=R?Lr(e[5],w):t[6]),I=t[7],I&&(e[7]=I),u&j&&(e[8]=e[8]==null?t[8]:Ot(e[8],t[8])),e[9]==null&&(e[9]=t[9]),e[0]=t[0],e[1]=p,e}function _m(e){var t=[];if(e!=null)for(var a in Ye(e))t.push(a);return t}function Im(e){return Ui.call(e)}function Cu(e,t,a){return t=vt(t===n?e.length-1:t,0),function(){for(var u=arguments,p=-1,g=vt(u.length-t,0),x=L(g);++p<g;)x[p]=u[t+p];p=-1;for(var I=L(t+1);++p<t;)I[p]=u[p];return I[t]=a(x),Wt(e,this,I)}}function Ru(e,t){return t.length<2?e:on(e,rr(t,0,-1))}function Sm(e,t){for(var a=e.length,u=Ot(t.length,a),p=Lt(e);u--;){var g=t[u];e[u]=Nr(g,a)?p[g]:n}return e}function as(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var Mu=Du(eu),hi=Bg||function(e,t){return St.setTimeout(e,t)},ss=Du(Gv);function zu(e,t,a){var u=t+"";return ss(e,gm(u,Em(pm(u),a)))}function Du(e){var t=0,a=0;return function(){var u=Wg(),p=Z-(u-a);if(a=u,p>0){if(++t>=q)return arguments[0]}else t=0;return e.apply(n,arguments)}}function mo(e,t){var a=-1,u=e.length,p=u-1;for(t=t===n?u:t;++a<t;){var g=Wa(a,p),x=e[g];e[g]=e[a],e[a]=x}return e.length=t,e}var Au=xm(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(Xr,function(a,u,p,g){t.push(p?g.replace(fr,"$1"):u||a)}),t});function cr(e){if(typeof e=="string"||Gt(e))return e;var t=e+"";return t=="0"&&1/e==-ie?"-0":t}function sn(e){if(e!=null){try{return Ki.call(e)}catch{}try{return e+""}catch{}}return""}function Em(e,t){return $t(J,function(a){var u="_."+a[0];t&a[1]&&!Vi(e,u)&&e.push(u)}),e.sort()}function Tu(e){if(e instanceof Te)return e.clone();var t=new er(e.__wrapped__,e.__chain__);return t.__actions__=Lt(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}function km(e,t,a){(a?Mt(e,t,a):t===n)?t=1:t=vt(Ce(t),0);var u=e==null?0:e.length;if(!u||t<1)return[];for(var p=0,g=0,x=L(Qi(u/t));p<u;)x[g++]=rr(e,p,p+=t);return x}function Om(e){for(var t=-1,a=e==null?0:e.length,u=0,p=[];++t<a;){var g=e[t];g&&(p[u++]=g)}return p}function Nm(){var e=arguments.length;if(!e)return[];for(var t=L(e-1),a=arguments[0],u=e;u--;)t[u-1]=arguments[u];return Pr(Ne(a)?Lt(a):[a],Et(t,1))}var Cm=Me(function(e,t){return ot(e)?si(e,Et(t,1,ot,!0)):[]}),Rm=Me(function(e,t){var a=nr(t);return ot(a)&&(a=n),ot(e)?si(e,Et(t,1,ot,!0),ye(a,2)):[]}),Mm=Me(function(e,t){var a=nr(t);return ot(a)&&(a=n),ot(e)?si(e,Et(t,1,ot,!0),n,a):[]});function zm(e,t,a){var u=e==null?0:e.length;return u?(t=a||t===n?1:Ce(t),rr(e,t<0?0:t,u)):[]}function Dm(e,t,a){var u=e==null?0:e.length;return u?(t=a||t===n?1:Ce(t),t=u-t,rr(e,0,t<0?0:t)):[]}function Am(e,t){return e&&e.length?lo(e,ye(t,3),!0,!0):[]}function Tm(e,t){return e&&e.length?lo(e,ye(t,3),!0):[]}function Pm(e,t,a,u){var p=e==null?0:e.length;return p?(a&&typeof a!="number"&&Mt(e,t,a)&&(a=0,u=p),Nv(e,t,a,u)):[]}function Pu(e,t,a){var u=e==null?0:e.length;if(!u)return-1;var p=a==null?0:Ce(a);return p<0&&(p=vt(u+p,0)),Fi(e,ye(t,3),p)}function Lu(e,t,a){var u=e==null?0:e.length;if(!u)return-1;var p=u-1;return a!==n&&(p=Ce(a),p=a<0?vt(u+p,0):Ot(p,u-1)),Fi(e,ye(t,3),p,!0)}function ju(e){var t=e==null?0:e.length;return t?Et(e,1):[]}function Lm(e){var t=e==null?0:e.length;return t?Et(e,ie):[]}function jm(e,t){var a=e==null?0:e.length;return a?(t=t===n?1:Ce(t),Et(e,t)):[]}function Bm(e){for(var t=-1,a=e==null?0:e.length,u={};++t<a;){var p=e[t];br(u,p[0],p[1])}return u}function Bu(e){return e&&e.length?e[0]:n}function Vm(e,t,a){var u=e==null?0:e.length;if(!u)return-1;var p=a==null?0:Ce(a);return p<0&&(p=vt(u+p,0)),xn(e,t,p)}function Fm(e){var t=e==null?0:e.length;return t?rr(e,0,-1):[]}var Hm=Me(function(e){var t=Je(e,qa);return t.length&&t[0]===e[0]?ja(t):[]}),Wm=Me(function(e){var t=nr(e),a=Je(e,qa);return t===nr(a)?t=n:a.pop(),a.length&&a[0]===e[0]?ja(a,ye(t,2)):[]}),$m=Me(function(e){var t=nr(e),a=Je(e,qa);return t=typeof t=="function"?t:n,t&&a.pop(),a.length&&a[0]===e[0]?ja(a,n,t):[]});function Km(e,t){return e==null?"":Fg.call(e,t)}function nr(e){var t=e==null?0:e.length;return t?e[t-1]:n}function Um(e,t,a){var u=e==null?0:e.length;if(!u)return-1;var p=u;return a!==n&&(p=Ce(a),p=p<0?vt(u+p,0):Ot(p,u-1)),t===t?Eg(e,t,p):Fi(e,wc,p,!0)}function Gm(e,t){return e&&e.length?Yc(e,Ce(t)):n}var qm=Me(Vu);function Vu(e,t){return e&&e.length&&t&&t.length?Ha(e,t):e}function Zm(e,t,a){return e&&e.length&&t&&t.length?Ha(e,t,ye(a,2)):e}function Ym(e,t,a){return e&&e.length&&t&&t.length?Ha(e,t,n,a):e}var Xm=Or(function(e,t){var a=e==null?0:e.length,u=Aa(e,t);return Jc(e,Je(t,function(p){return Nr(p,a)?+p:p}).sort(cu)),u});function Qm(e,t){var a=[];if(!(e&&e.length))return a;var u=-1,p=[],g=e.length;for(t=ye(t,3);++u<g;){var x=e[u];t(x,u,e)&&(a.push(x),p.push(u))}return Jc(e,p),a}function ls(e){return e==null?e:Kg.call(e)}function Jm(e,t,a){var u=e==null?0:e.length;return u?(a&&typeof a!="number"&&Mt(e,t,a)?(t=0,a=u):(t=t==null?0:Ce(t),a=a===n?u:Ce(a)),rr(e,t,a)):[]}function eb(e,t){return so(e,t)}function tb(e,t,a){return Ka(e,t,ye(a,2))}function rb(e,t){var a=e==null?0:e.length;if(a){var u=so(e,t);if(u<a&&ur(e[u],t))return u}return-1}function nb(e,t){return so(e,t,!0)}function ib(e,t,a){return Ka(e,t,ye(a,2),!0)}function ob(e,t){var a=e==null?0:e.length;if(a){var u=so(e,t,!0)-1;if(ur(e[u],t))return u}return-1}function ab(e){return e&&e.length?tu(e):[]}function sb(e,t){return e&&e.length?tu(e,ye(t,2)):[]}function lb(e){var t=e==null?0:e.length;return t?rr(e,1,t):[]}function cb(e,t,a){return e&&e.length?(t=a||t===n?1:Ce(t),rr(e,0,t<0?0:t)):[]}function ub(e,t,a){var u=e==null?0:e.length;return u?(t=a||t===n?1:Ce(t),t=u-t,rr(e,t<0?0:t,u)):[]}function db(e,t){return e&&e.length?lo(e,ye(t,3),!1,!0):[]}function pb(e,t){return e&&e.length?lo(e,ye(t,3)):[]}var hb=Me(function(e){return Vr(Et(e,1,ot,!0))}),fb=Me(function(e){var t=nr(e);return ot(t)&&(t=n),Vr(Et(e,1,ot,!0),ye(t,2))}),gb=Me(function(e){var t=nr(e);return t=typeof t=="function"?t:n,Vr(Et(e,1,ot,!0),n,t)});function vb(e){return e&&e.length?Vr(e):[]}function mb(e,t){return e&&e.length?Vr(e,ye(t,2)):[]}function bb(e,t){return t=typeof t=="function"?t:n,e&&e.length?Vr(e,n,t):[]}function cs(e){if(!(e&&e.length))return[];var t=0;return e=Tr(e,function(a){if(ot(a))return t=vt(a.length,t),!0}),ka(t,function(a){return Je(e,Ia(a))})}function Fu(e,t){if(!(e&&e.length))return[];var a=cs(e);return t==null?a:Je(a,function(u){return Wt(t,n,u)})}var wb=Me(function(e,t){return ot(e)?si(e,t):[]}),xb=Me(function(e){return Ga(Tr(e,ot))}),yb=Me(function(e){var t=nr(e);return ot(t)&&(t=n),Ga(Tr(e,ot),ye(t,2))}),_b=Me(function(e){var t=nr(e);return t=typeof t=="function"?t:n,Ga(Tr(e,ot),n,t)}),Ib=Me(cs);function Sb(e,t){return ou(e||[],t||[],ai)}function Eb(e,t){return ou(e||[],t||[],ui)}var kb=Me(function(e){var t=e.length,a=t>1?e[t-1]:n;return a=typeof a=="function"?(e.pop(),a):n,Fu(e,a)});function Hu(e){var t=f(e);return t.__chain__=!0,t}function Ob(e,t){return t(e),e}function bo(e,t){return t(e)}var Nb=Or(function(e){var t=e.length,a=t?e[0]:0,u=this.__wrapped__,p=function(g){return Aa(g,e)};return t>1||this.__actions__.length||!(u instanceof Te)||!Nr(a)?this.thru(p):(u=u.slice(a,+a+(t?1:0)),u.__actions__.push({func:bo,args:[p],thisArg:n}),new er(u,this.__chain__).thru(function(g){return t&&!g.length&&g.push(n),g}))});function Cb(){return Hu(this)}function Rb(){return new er(this.value(),this.__chain__)}function Mb(){this.__values__===n&&(this.__values__=rd(this.value()));var e=this.__index__>=this.__values__.length,t=e?n:this.__values__[this.__index__++];return{done:e,value:t}}function zb(){return this}function Db(e){for(var t,a=this;a instanceof ro;){var u=Tu(a);u.__index__=0,u.__values__=n,t?p.__wrapped__=u:t=u;var p=u;a=a.__wrapped__}return p.__wrapped__=e,t}function Ab(){var e=this.__wrapped__;if(e instanceof Te){var t=e;return this.__actions__.length&&(t=new Te(this)),t=t.reverse(),t.__actions__.push({func:bo,args:[ls],thisArg:n}),new er(t,this.__chain__)}return this.thru(ls)}function Tb(){return iu(this.__wrapped__,this.__actions__)}var Pb=co(function(e,t,a){Fe.call(e,a)?++e[a]:br(e,a,1)});function Lb(e,t,a){var u=Ne(e)?mc:Ov;return a&&Mt(e,t,a)&&(t=n),u(e,ye(t,3))}function jb(e,t){var a=Ne(e)?Tr:Fc;return a(e,ye(t,3))}var Bb=gu(Pu),Vb=gu(Lu);function Fb(e,t){return Et(wo(e,t),1)}function Hb(e,t){return Et(wo(e,t),ie)}function Wb(e,t,a){return a=a===n?1:Ce(a),Et(wo(e,t),a)}function Wu(e,t){var a=Ne(e)?$t:Br;return a(e,ye(t,3))}function $u(e,t){var a=Ne(e)?lg:Vc;return a(e,ye(t,3))}var $b=co(function(e,t,a){Fe.call(e,a)?e[a].push(t):br(e,a,[t])});function Kb(e,t,a,u){e=jt(e)?e:zn(e),a=a&&!u?Ce(a):0;var p=e.length;return a<0&&(a=vt(p+a,0)),So(e)?a<=p&&e.indexOf(t,a)>-1:!!p&&xn(e,t,a)>-1}var Ub=Me(function(e,t,a){var u=-1,p=typeof t=="function",g=jt(e)?L(e.length):[];return Br(e,function(x){g[++u]=p?Wt(t,x,a):li(x,t,a)}),g}),Gb=co(function(e,t,a){br(e,a,t)});function wo(e,t){var a=Ne(e)?Je:Gc;return a(e,ye(t,3))}function qb(e,t,a,u){return e==null?[]:(Ne(t)||(t=t==null?[]:[t]),a=u?n:a,Ne(a)||(a=a==null?[]:[a]),Xc(e,t,a))}var Zb=co(function(e,t,a){e[a?0:1].push(t)},function(){return[[],[]]});function Yb(e,t,a){var u=Ne(e)?ya:yc,p=arguments.length<3;return u(e,ye(t,4),a,p,Br)}function Xb(e,t,a){var u=Ne(e)?cg:yc,p=arguments.length<3;return u(e,ye(t,4),a,p,Vc)}function Qb(e,t){var a=Ne(e)?Tr:Fc;return a(e,_o(ye(t,3)))}function Jb(e){var t=Ne(e)?Pc:Kv;return t(e)}function e0(e,t,a){(a?Mt(e,t,a):t===n)?t=1:t=Ce(t);var u=Ne(e)?_v:Uv;return u(e,t)}function t0(e){var t=Ne(e)?Iv:qv;return t(e)}function r0(e){if(e==null)return 0;if(jt(e))return So(e)?_n(e):e.length;var t=Nt(e);return t==ke||t==ct?e.size:Va(e).length}function n0(e,t,a){var u=Ne(e)?_a:Zv;return a&&Mt(e,t,a)&&(t=n),u(e,ye(t,3))}var i0=Me(function(e,t){if(e==null)return[];var a=t.length;return a>1&&Mt(e,t[0],t[1])?t=[]:a>2&&Mt(t[0],t[1],t[2])&&(t=[t[0]]),Xc(e,Et(t,1),[])}),xo=jg||function(){return St.Date.now()};function o0(e,t){if(typeof t!="function")throw new Jt(c);return e=Ce(e),function(){if(--e<1)return t.apply(this,arguments)}}function Ku(e,t,a){return t=a?n:t,t=e&&t==null?e.length:t,kr(e,j,n,n,n,n,t)}function Uu(e,t){var a;if(typeof t!="function")throw new Jt(c);return e=Ce(e),function(){return--e>0&&(a=t.apply(this,arguments)),e<=1&&(t=n),a}}var us=Me(function(e,t,a){var u=A;if(a.length){var p=Lr(a,Rn(us));u|=V}return kr(e,u,t,a,p)}),Gu=Me(function(e,t,a){var u=A|_;if(a.length){var p=Lr(a,Rn(Gu));u|=V}return kr(t,u,e,a,p)});function qu(e,t,a){t=a?n:t;var u=kr(e,O,n,n,n,n,n,t);return u.placeholder=qu.placeholder,u}function Zu(e,t,a){t=a?n:t;var u=kr(e,N,n,n,n,n,n,t);return u.placeholder=Zu.placeholder,u}function Yu(e,t,a){var u,p,g,x,I,R,Y=0,X=!1,ee=!1,ce=!0;if(typeof e!="function")throw new Jt(c);t=ir(t)||0,tt(a)&&(X=!!a.leading,ee="maxWait"in a,g=ee?vt(ir(a.maxWait)||0,t):g,ce="trailing"in a?!!a.trailing:ce);function be(at){var dr=u,Mr=p;return u=p=n,Y=at,x=e.apply(Mr,dr),x}function Ie(at){return Y=at,I=hi(Ae,t),X?be(at):x}function Re(at){var dr=at-R,Mr=at-Y,vd=t-dr;return ee?Ot(vd,g-Mr):vd}function xe(at){var dr=at-R,Mr=at-Y;return R===n||dr>=t||dr<0||ee&&Mr>=g}function Ae(){var at=xo();if(xe(at))return Pe(at);I=hi(Ae,Re(at))}function Pe(at){return I=n,ce&&u?be(at):(u=p=n,x)}function qt(){I!==n&&au(I),Y=0,u=R=p=I=n}function zt(){return I===n?x:Pe(xo())}function Zt(){var at=xo(),dr=xe(at);if(u=arguments,p=this,R=at,dr){if(I===n)return Ie(R);if(ee)return au(I),I=hi(Ae,t),be(R)}return I===n&&(I=hi(Ae,t)),x}return Zt.cancel=qt,Zt.flush=zt,Zt}var a0=Me(function(e,t){return Bc(e,1,t)}),s0=Me(function(e,t,a){return Bc(e,ir(t)||0,a)});function l0(e){return kr(e,oe)}function yo(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new Jt(c);var a=function(){var u=arguments,p=t?t.apply(this,u):u[0],g=a.cache;if(g.has(p))return g.get(p);var x=e.apply(this,u);return a.cache=g.set(p,x)||g,x};return a.cache=new(yo.Cache||Er),a}yo.Cache=Er;function _o(e){if(typeof e!="function")throw new Jt(c);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}function c0(e){return Uu(2,e)}var u0=Yv(function(e,t){t=t.length==1&&Ne(t[0])?Je(t[0],Kt(ye())):Je(Et(t,1),Kt(ye()));var a=t.length;return Me(function(u){for(var p=-1,g=Ot(u.length,a);++p<g;)u[p]=t[p].call(this,u[p]);return Wt(e,this,u)})}),ds=Me(function(e,t){var a=Lr(t,Rn(ds));return kr(e,V,n,t,a)}),Xu=Me(function(e,t){var a=Lr(t,Rn(Xu));return kr(e,ae,n,t,a)}),d0=Or(function(e,t){return kr(e,$,n,n,n,t)});function p0(e,t){if(typeof e!="function")throw new Jt(c);return t=t===n?t:Ce(t),Me(e,t)}function h0(e,t){if(typeof e!="function")throw new Jt(c);return t=t==null?0:vt(Ce(t),0),Me(function(a){var u=a[t],p=Hr(a,0,t);return u&&Pr(p,u),Wt(e,this,p)})}function f0(e,t,a){var u=!0,p=!0;if(typeof e!="function")throw new Jt(c);return tt(a)&&(u="leading"in a?!!a.leading:u,p="trailing"in a?!!a.trailing:p),Yu(e,t,{leading:u,maxWait:t,trailing:p})}function g0(e){return Ku(e,1)}function v0(e,t){return ds(Za(t),e)}function m0(){if(!arguments.length)return[];var e=arguments[0];return Ne(e)?e:[e]}function b0(e){return tr(e,B)}function w0(e,t){return t=typeof t=="function"?t:n,tr(e,B,t)}function x0(e){return tr(e,S|B)}function y0(e,t){return t=typeof t=="function"?t:n,tr(e,S|B,t)}function _0(e,t){return t==null||jc(e,t,_t(t))}function ur(e,t){return e===t||e!==e&&t!==t}var I0=fo(La),S0=fo(function(e,t){return e>=t}),ln=$c((function(){return arguments})())?$c:function(e){return nt(e)&&Fe.call(e,"callee")&&!Rc.call(e,"callee")},Ne=L.isArray,E0=dc?Kt(dc):Dv;function jt(e){return e!=null&&Io(e.length)&&!Cr(e)}function ot(e){return nt(e)&&jt(e)}function k0(e){return e===!0||e===!1||nt(e)&&Rt(e)==de}var Wr=Vg||Is,O0=pc?Kt(pc):Av;function N0(e){return nt(e)&&e.nodeType===1&&!fi(e)}function C0(e){if(e==null)return!0;if(jt(e)&&(Ne(e)||typeof e=="string"||typeof e.splice=="function"||Wr(e)||Mn(e)||ln(e)))return!e.length;var t=Nt(e);if(t==ke||t==ct)return!e.size;if(pi(e))return!Va(e).length;for(var a in e)if(Fe.call(e,a))return!1;return!0}function R0(e,t){return ci(e,t)}function M0(e,t,a){a=typeof a=="function"?a:n;var u=a?a(e,t):n;return u===n?ci(e,t,n,a):!!u}function ps(e){if(!nt(e))return!1;var t=Rt(e);return t==H||t==se||typeof e.message=="string"&&typeof e.name=="string"&&!fi(e)}function z0(e){return typeof e=="number"&&zc(e)}function Cr(e){if(!tt(e))return!1;var t=Rt(e);return t==we||t==te||t==le||t==Ze}function Qu(e){return typeof e=="number"&&e==Ce(e)}function Io(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Se}function tt(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function nt(e){return e!=null&&typeof e=="object"}var Ju=hc?Kt(hc):Pv;function D0(e,t){return e===t||Ba(e,t,rs(t))}function A0(e,t,a){return a=typeof a=="function"?a:n,Ba(e,t,rs(t),a)}function T0(e){return ed(e)&&e!=+e}function P0(e){if(wm(e))throw new Oe(l);return Kc(e)}function L0(e){return e===null}function j0(e){return e==null}function ed(e){return typeof e=="number"||nt(e)&&Rt(e)==De}function fi(e){if(!nt(e)||Rt(e)!=Ve)return!1;var t=Zi(e);if(t===null)return!0;var a=Fe.call(t,"constructor")&&t.constructor;return typeof a=="function"&&a instanceof a&&Ki.call(a)==Ag}var hs=fc?Kt(fc):Lv;function B0(e){return Qu(e)&&e>=-Se&&e<=Se}var td=gc?Kt(gc):jv;function So(e){return typeof e=="string"||!Ne(e)&&nt(e)&&Rt(e)==rt}function Gt(e){return typeof e=="symbol"||nt(e)&&Rt(e)==bt}var Mn=vc?Kt(vc):Bv;function V0(e){return e===n}function F0(e){return nt(e)&&Nt(e)==Ct}function H0(e){return nt(e)&&Rt(e)==ut}var W0=fo(Fa),$0=fo(function(e,t){return e<=t});function rd(e){if(!e)return[];if(jt(e))return So(e)?sr(e):Lt(e);if(ti&&e[ti])return _g(e[ti]());var t=Nt(e),a=t==ke?Na:t==ct?Hi:zn;return a(e)}function Rr(e){if(!e)return e===0?e:0;if(e=ir(e),e===ie||e===-ie){var t=e<0?-1:1;return t*M}return e===e?e:0}function Ce(e){var t=Rr(e),a=t%1;return t===t?a?t-a:t:0}function nd(e){return e?nn(Ce(e),0,K):0}function ir(e){if(typeof e=="number")return e;if(Gt(e))return T;if(tt(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=tt(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=_c(e);var a=Qr.test(e);return a||Of.test(e)?og(e.slice(2),a?2:8):mr.test(e)?T:+e}function id(e){return xr(e,Bt(e))}function K0(e){return e?nn(Ce(e),-Se,Se):e===0?e:0}function He(e){return e==null?"":Ut(e)}var U0=Nn(function(e,t){if(pi(t)||jt(t)){xr(t,_t(t),e);return}for(var a in t)Fe.call(t,a)&&ai(e,a,t[a])}),od=Nn(function(e,t){xr(t,Bt(t),e)}),ad=Nn(function(e,t,a,u){xr(t,Bt(t),e,u)}),fs=Nn(function(e,t,a,u){xr(t,_t(t),e,u)}),G0=Or(Aa);function q0(e,t){var a=On(e);return t==null?a:Lc(a,t)}var Z0=Me(function(e,t){e=Ye(e);var a=-1,u=t.length,p=u>2?t[2]:n;for(p&&Mt(t[0],t[1],p)&&(u=1);++a<u;)for(var g=t[a],x=Bt(g),I=-1,R=x.length;++I<R;){var Y=x[I],X=e[Y];(X===n||ur(X,Sn[Y])&&!Fe.call(e,Y))&&(e[Y]=g[Y])}return e}),Y0=Me(function(e){return e.push(n,_u),Wt(sd,n,e)});function X0(e,t){return bc(e,ye(t,3),wr)}function Q0(e,t){return bc(e,ye(t,3),Pa)}function J0(e,t){return e==null?e:Ta(e,ye(t,3),Bt)}function ew(e,t){return e==null?e:Hc(e,ye(t,3),Bt)}function tw(e,t){return e&&wr(e,ye(t,3))}function rw(e,t){return e&&Pa(e,ye(t,3))}function nw(e){return e==null?[]:oo(e,_t(e))}function iw(e){return e==null?[]:oo(e,Bt(e))}function gs(e,t,a){var u=e==null?n:on(e,t);return u===n?a:u}function ow(e,t){return e!=null&&Eu(e,t,Cv)}function vs(e,t){return e!=null&&Eu(e,t,Rv)}var aw=mu(function(e,t,a){t!=null&&typeof t.toString!="function"&&(t=Ui.call(t)),e[t]=a},bs(Vt)),sw=mu(function(e,t,a){t!=null&&typeof t.toString!="function"&&(t=Ui.call(t)),Fe.call(e,t)?e[t].push(a):e[t]=[a]},ye),lw=Me(li);function _t(e){return jt(e)?Tc(e):Va(e)}function Bt(e){return jt(e)?Tc(e,!0):Vv(e)}function cw(e,t){var a={};return t=ye(t,3),wr(e,function(u,p,g){br(a,t(u,p,g),u)}),a}function uw(e,t){var a={};return t=ye(t,3),wr(e,function(u,p,g){br(a,p,t(u,p,g))}),a}var dw=Nn(function(e,t,a){ao(e,t,a)}),sd=Nn(function(e,t,a,u){ao(e,t,a,u)}),pw=Or(function(e,t){var a={};if(e==null)return a;var u=!1;t=Je(t,function(g){return g=Fr(g,e),u||(u=g.length>1),g}),xr(e,es(e),a),u&&(a=tr(a,S|D|B,sm));for(var p=t.length;p--;)Ua(a,t[p]);return a});function hw(e,t){return ld(e,_o(ye(t)))}var fw=Or(function(e,t){return e==null?{}:Hv(e,t)});function ld(e,t){if(e==null)return{};var a=Je(es(e),function(u){return[u]});return t=ye(t),Qc(e,a,function(u,p){return t(u,p[0])})}function gw(e,t,a){t=Fr(t,e);var u=-1,p=t.length;for(p||(p=1,e=n);++u<p;){var g=e==null?n:e[cr(t[u])];g===n&&(u=p,g=a),e=Cr(g)?g.call(e):g}return e}function vw(e,t,a){return e==null?e:ui(e,t,a)}function mw(e,t,a,u){return u=typeof u=="function"?u:n,e==null?e:ui(e,t,a,u)}var cd=xu(_t),ud=xu(Bt);function bw(e,t,a){var u=Ne(e),p=u||Wr(e)||Mn(e);if(t=ye(t,4),a==null){var g=e&&e.constructor;p?a=u?new g:[]:tt(e)?a=Cr(g)?On(Zi(e)):{}:a={}}return(p?$t:wr)(e,function(x,I,R){return t(a,x,I,R)}),a}function ww(e,t){return e==null?!0:Ua(e,t)}function xw(e,t,a){return e==null?e:nu(e,t,Za(a))}function yw(e,t,a,u){return u=typeof u=="function"?u:n,e==null?e:nu(e,t,Za(a),u)}function zn(e){return e==null?[]:Oa(e,_t(e))}function _w(e){return e==null?[]:Oa(e,Bt(e))}function Iw(e,t,a){return a===n&&(a=t,t=n),a!==n&&(a=ir(a),a=a===a?a:0),t!==n&&(t=ir(t),t=t===t?t:0),nn(ir(e),t,a)}function Sw(e,t,a){return t=Rr(t),a===n?(a=t,t=0):a=Rr(a),e=ir(e),Mv(e,t,a)}function Ew(e,t,a){if(a&&typeof a!="boolean"&&Mt(e,t,a)&&(t=a=n),a===n&&(typeof t=="boolean"?(a=t,t=n):typeof e=="boolean"&&(a=e,e=n)),e===n&&t===n?(e=0,t=1):(e=Rr(e),t===n?(t=e,e=0):t=Rr(t)),e>t){var u=e;e=t,t=u}if(a||e%1||t%1){var p=Dc();return Ot(e+p*(t-e+ig("1e-"+((p+"").length-1))),t)}return Wa(e,t)}var kw=Cn(function(e,t,a){return t=t.toLowerCase(),e+(a?dd(t):t)});function dd(e){return ms(He(e).toLowerCase())}function pd(e){return e=He(e),e&&e.replace(Cf,mg).replace(qf,"")}function Ow(e,t,a){e=He(e),t=Ut(t);var u=e.length;a=a===n?u:nn(Ce(a),0,u);var p=a;return a-=t.length,a>=0&&e.slice(a,p)==t}function Nw(e){return e=He(e),e&&Yn.test(e)?e.replace(qn,bg):e}function Cw(e){return e=He(e),e&&Xn.test(e)?e.replace(Ar,"\\$&"):e}var Rw=Cn(function(e,t,a){return e+(a?"-":"")+t.toLowerCase()}),Mw=Cn(function(e,t,a){return e+(a?" ":"")+t.toLowerCase()}),zw=fu("toLowerCase");function Dw(e,t,a){e=He(e),t=Ce(t);var u=t?_n(e):0;if(!t||u>=t)return e;var p=(t-u)/2;return ho(Ji(p),a)+e+ho(Qi(p),a)}function Aw(e,t,a){e=He(e),t=Ce(t);var u=t?_n(e):0;return t&&u<t?e+ho(t-u,a):e}function Tw(e,t,a){e=He(e),t=Ce(t);var u=t?_n(e):0;return t&&u<t?ho(t-u,a)+e:e}function Pw(e,t,a){return a||t==null?t=0:t&&(t=+t),$g(He(e).replace(Qn,""),t||0)}function Lw(e,t,a){return(a?Mt(e,t,a):t===n)?t=1:t=Ce(t),$a(He(e),t)}function jw(){var e=arguments,t=He(e[0]);return e.length<3?t:t.replace(e[1],e[2])}var Bw=Cn(function(e,t,a){return e+(a?"_":"")+t.toLowerCase()});function Vw(e,t,a){return a&&typeof a!="number"&&Mt(e,t,a)&&(t=a=n),a=a===n?K:a>>>0,a?(e=He(e),e&&(typeof t=="string"||t!=null&&!hs(t))&&(t=Ut(t),!t&&yn(e))?Hr(sr(e),0,a):e.split(t,a)):[]}var Fw=Cn(function(e,t,a){return e+(a?" ":"")+ms(t)});function Hw(e,t,a){return e=He(e),a=a==null?0:nn(Ce(a),0,e.length),t=Ut(t),e.slice(a,a+t.length)==t}function Ww(e,t,a){var u=f.templateSettings;a&&Mt(e,t,a)&&(t=n),e=He(e),t=fs({},t,u,yu);var p=fs({},t.imports,u.imports,yu),g=_t(p),x=Oa(p,g);$t(g,function(xe){if(Xt.test(xe))throw new Oe(h)});var I,R,Y=0,X=t.interpolate||Li,ee="__p += '",ce=Ca((t.escape||Li).source+"|"+X.source+"|"+(X===Pi?gr:Li).source+"|"+(t.evaluate||Li).source+"|$","g"),be="//# sourceURL="+(Fe.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Jf+"]")+`
|
|
11
|
-
`;e.replace(
|
|
12
|
-
__e(`+
|
|
13
|
-
'`),zt&&(
|
|
8
|
+
*/var vy=Oo.exports,Vd;function my(){return Vd||(Vd=1,(function(t,o){(function(){var n,i="4.18.1",s=200,l="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",c="Expected a function",d="Invalid `variable` option passed into `_.template`",p="Invalid `imports` option passed into `_.template`",g="__lodash_hash_undefined__",b=500,x="__lodash_placeholder__",I=1,A=2,F=4,R=1,k=2,L=1,y=2,N=4,C=8,S=16,P=32,W=64,V=128,q=256,G=512,te=30,pe="...",ye=800,ce=16,ie=1,ae=2,xe=3,ne=1/0,Ie=9007199254740991,E=17976931348623157e292,M=NaN,T=4294967295,K=T-1,j=T>>>1,X=[["ary",V],["bind",L],["bindKey",y],["curry",C],["curryRight",S],["flip",G],["partial",P],["partialRight",W],["rearg",q]],$="[object Arguments]",H="[object Array]",re="[object AsyncFunction]",he="[object Boolean]",ue="[object Date]",_e="[object DOMException]",Q="[object Error]",be="[object Function]",le="[object GeneratorFunction]",Me="[object Map]",Ve="[object Number]",lt="[object Null]",ee="[object Object]",me="[object Promise]",Se="[object Proxy]",Te="[object RegExp]",Be="[object Set]",$e="[object String]",ft="[object Symbol]",_t="[object Undefined]",Qe="[object WeakMap]",rt="[object WeakSet]",gt="[object ArrayBuffer]",mt="[object DataView]",Pt="[object Float32Array]",xr="[object Float64Array]",$t="[object Int8Array]",Yn="[object Int16Array]",Xn="[object Int32Array]",jt="[object Uint8Array]",tn="[object Uint8ClampedArray]",Jn="[object Uint16Array]",bn="[object Uint32Array]",$o=/\b__p \+= '';/g,Oa=/\b(__p \+=) '' \+/g,qo=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Qn=/&(?:amp|lt|gt|quot|#39);/g,eo=/[&<>"']/g,Uo=RegExp(Qn.source),rn=RegExp(eo.source),to=/<%-([\s\S]+?)%>/g,Ca=/<%([\s\S]+?)%>/g,ro=/<%=([\s\S]+?)%>/g,no=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,oo=/^\w*$/,Ko=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,wn=/[\\^$.*+?()[\]{}|]/g,Go=RegExp(wn.source),io=/^\s+/,Na=/\s/,Zo=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Ma=/\{\n\/\* \[wrapped with (.+)\] \*/,Lr=/,? & /,Ra=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Vr=/[()=,{}\[\]\/\s]/,xn=/\\(\\)?/g,Yo=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Xo=/\w*$/,Ee=/^[-+]0x[0-9a-f]+$/i,De=/^0b[01]+$/i,qt=/^\[object .+?Constructor\]$/,It=/^0o[0-7]+$/i,Ut=/^(?:0|[1-9]\d*)$/,Kt=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Nt=/($^)/,yr=/['\n\r\u2028\u2029\\]/g,pr="\\ud800-\\udfff",nn="\\u0300-\\u036f",ao="\\ufe20-\\ufe2f",za="\\u20d0-\\u20ff",hc=nn+ao+za,fc="\\u2700-\\u27bf",gc="a-z\\xdf-\\xf6\\xf8-\\xff",cg="\\xac\\xb1\\xd7\\xf7",ug="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",dg="\\u2000-\\u206f",pg=" \\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",vc="A-Z\\xc0-\\xd6\\xd8-\\xde",mc="\\ufe0e\\ufe0f",bc=cg+ug+dg+pg,Da="['’]",hg="["+pr+"]",wc="["+bc+"]",Jo="["+hc+"]",xc="\\d+",fg="["+fc+"]",yc="["+gc+"]",_c="[^"+pr+bc+xc+fc+gc+vc+"]",Aa="\\ud83c[\\udffb-\\udfff]",gg="(?:"+Jo+"|"+Aa+")",Ic="[^"+pr+"]",Ta="(?:\\ud83c[\\udde6-\\uddff]){2}",Pa="[\\ud800-\\udbff][\\udc00-\\udfff]",yn="["+vc+"]",Sc="\\u200d",Ec="(?:"+yc+"|"+_c+")",vg="(?:"+yn+"|"+_c+")",kc="(?:"+Da+"(?:d|ll|m|re|s|t|ve))?",Oc="(?:"+Da+"(?:D|LL|M|RE|S|T|VE))?",Cc=gg+"?",Nc="["+mc+"]?",mg="(?:"+Sc+"(?:"+[Ic,Ta,Pa].join("|")+")"+Nc+Cc+")*",bg="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",wg="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Mc=Nc+Cc+mg,xg="(?:"+[fg,Ta,Pa].join("|")+")"+Mc,yg="(?:"+[Ic+Jo+"?",Jo,Ta,Pa,hg].join("|")+")",_g=RegExp(Da,"g"),Ig=RegExp(Jo,"g"),ja=RegExp(Aa+"(?="+Aa+")|"+yg+Mc,"g"),Sg=RegExp([yn+"?"+yc+"+"+kc+"(?="+[wc,yn,"$"].join("|")+")",vg+"+"+Oc+"(?="+[wc,yn+Ec,"$"].join("|")+")",yn+"?"+Ec+"+"+kc,yn+"+"+Oc,wg,bg,xc,xg].join("|"),"g"),Eg=RegExp("["+Sc+pr+hc+mc+"]"),kg=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Og=["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"],Cg=-1,nt={};nt[Pt]=nt[xr]=nt[$t]=nt[Yn]=nt[Xn]=nt[jt]=nt[tn]=nt[Jn]=nt[bn]=!0,nt[$]=nt[H]=nt[gt]=nt[he]=nt[mt]=nt[ue]=nt[Q]=nt[be]=nt[Me]=nt[Ve]=nt[ee]=nt[Te]=nt[Be]=nt[$e]=nt[Qe]=!1;var tt={};tt[$]=tt[H]=tt[gt]=tt[mt]=tt[he]=tt[ue]=tt[Pt]=tt[xr]=tt[$t]=tt[Yn]=tt[Xn]=tt[Me]=tt[Ve]=tt[ee]=tt[Te]=tt[Be]=tt[$e]=tt[ft]=tt[jt]=tt[tn]=tt[Jn]=tt[bn]=!0,tt[Q]=tt[be]=tt[Qe]=!1;var Ng={À:"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"},Mg={"&":"&","<":"<",">":">",'"':""","'":"'"},Rg={"&":"&","<":"<",">":">",""":'"',"'":"'"},zg={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Dg=parseFloat,Ag=parseInt,Rc=typeof ji=="object"&&ji&&ji.Object===Object&&ji,Tg=typeof self=="object"&&self&&self.Object===Object&&self,Et=Rc||Tg||Function("return this")(),La=o&&!o.nodeType&&o,on=La&&!0&&t&&!t.nodeType&&t,zc=on&&on.exports===La,Va=zc&&Rc.process,nr=(function(){try{var z=on&&on.require&&on.require("util").types;return z||Va&&Va.binding&&Va.binding("util")}catch{}})(),Dc=nr&&nr.isArrayBuffer,Ac=nr&&nr.isDate,Tc=nr&&nr.isMap,Pc=nr&&nr.isRegExp,jc=nr&&nr.isSet,Lc=nr&&nr.isTypedArray;function Gt(z,U,B){switch(B.length){case 0:return z.call(U);case 1:return z.call(U,B[0]);case 2:return z.call(U,B[0],B[1]);case 3:return z.call(U,B[0],B[1],B[2])}return z.apply(U,B)}function Pg(z,U,B,fe){for(var Re=-1,qe=z==null?0:z.length;++Re<qe;){var bt=z[Re];U(fe,bt,B(bt),z)}return fe}function Zt(z,U){for(var B=-1,fe=z==null?0:z.length;++B<fe&&U(z[B],B,z)!==!1;);return z}function jg(z,U){for(var B=z==null?0:z.length;B--&&U(z[B],B,z)!==!1;);return z}function Vc(z,U){for(var B=-1,fe=z==null?0:z.length;++B<fe;)if(!U(z[B],B,z))return!1;return!0}function Br(z,U){for(var B=-1,fe=z==null?0:z.length,Re=0,qe=[];++B<fe;){var bt=z[B];U(bt,B,z)&&(qe[Re++]=bt)}return qe}function Qo(z,U){var B=z==null?0:z.length;return!!B&&_n(z,U,0)>-1}function Ba(z,U,B){for(var fe=-1,Re=z==null?0:z.length;++fe<Re;)if(B(U,z[fe]))return!0;return!1}function ot(z,U){for(var B=-1,fe=z==null?0:z.length,Re=Array(fe);++B<fe;)Re[B]=U(z[B],B,z);return Re}function Fr(z,U){for(var B=-1,fe=U.length,Re=z.length;++B<fe;)z[Re+B]=U[B];return z}function Fa(z,U,B,fe){var Re=-1,qe=z==null?0:z.length;for(fe&&qe&&(B=z[++Re]);++Re<qe;)B=U(B,z[Re],Re,z);return B}function Lg(z,U,B,fe){var Re=z==null?0:z.length;for(fe&&Re&&(B=z[--Re]);Re--;)B=U(B,z[Re],Re,z);return B}function Ha(z,U){for(var B=-1,fe=z==null?0:z.length;++B<fe;)if(U(z[B],B,z))return!0;return!1}var Vg=Wa("length");function Bg(z){return z.split("")}function Fg(z){return z.match(Ra)||[]}function Bc(z,U,B){var fe;return B(z,function(Re,qe,bt){if(U(Re,qe,bt))return fe=qe,!1}),fe}function ei(z,U,B,fe){for(var Re=z.length,qe=B+(fe?1:-1);fe?qe--:++qe<Re;)if(U(z[qe],qe,z))return qe;return-1}function _n(z,U,B){return U===U?Qg(z,U,B):ei(z,Fc,B)}function Hg(z,U,B,fe){for(var Re=B-1,qe=z.length;++Re<qe;)if(fe(z[Re],U))return Re;return-1}function Fc(z){return z!==z}function Hc(z,U){var B=z==null?0:z.length;return B?qa(z,U)/B:M}function Wa(z){return function(U){return U==null?n:U[z]}}function $a(z){return function(U){return z==null?n:z[U]}}function Wc(z,U,B,fe,Re){return Re(z,function(qe,bt,et){B=fe?(fe=!1,qe):U(B,qe,bt,et)}),B}function Wg(z,U){var B=z.length;for(z.sort(U);B--;)z[B]=z[B].value;return z}function qa(z,U){for(var B,fe=-1,Re=z.length;++fe<Re;){var qe=U(z[fe]);qe!==n&&(B=B===n?qe:B+qe)}return B}function Ua(z,U){for(var B=-1,fe=Array(z);++B<z;)fe[B]=U(B);return fe}function $g(z,U){return ot(U,function(B){return[B,z[B]]})}function $c(z){return z&&z.slice(0,Gc(z)+1).replace(io,"")}function Yt(z){return function(U){return z(U)}}function Ka(z,U){return ot(U,function(B){return z[B]})}function so(z,U){return z.has(U)}function qc(z,U){for(var B=-1,fe=z.length;++B<fe&&_n(U,z[B],0)>-1;);return B}function Uc(z,U){for(var B=z.length;B--&&_n(U,z[B],0)>-1;);return B}function qg(z,U){for(var B=z.length,fe=0;B--;)z[B]===U&&++fe;return fe}var Ug=$a(Ng),Kg=$a(Mg);function Gg(z){return"\\"+zg[z]}function Zg(z,U){return z==null?n:z[U]}function In(z){return Eg.test(z)}function Yg(z){return kg.test(z)}function Xg(z){for(var U,B=[];!(U=z.next()).done;)B.push(U.value);return B}function Ga(z){var U=-1,B=Array(z.size);return z.forEach(function(fe,Re){B[++U]=[Re,fe]}),B}function Kc(z,U){return function(B){return z(U(B))}}function Hr(z,U){for(var B=-1,fe=z.length,Re=0,qe=[];++B<fe;){var bt=z[B];(bt===U||bt===x)&&(z[B]=x,qe[Re++]=B)}return qe}function ti(z){var U=-1,B=Array(z.size);return z.forEach(function(fe){B[++U]=fe}),B}function Jg(z){var U=-1,B=Array(z.size);return z.forEach(function(fe){B[++U]=[fe,fe]}),B}function Qg(z,U,B){for(var fe=B-1,Re=z.length;++fe<Re;)if(z[fe]===U)return fe;return-1}function ev(z,U,B){for(var fe=B+1;fe--;)if(z[fe]===U)return fe;return fe}function Sn(z){return In(z)?rv(z):Vg(z)}function hr(z){return In(z)?nv(z):Bg(z)}function Gc(z){for(var U=z.length;U--&&Na.test(z.charAt(U)););return U}var tv=$a(Rg);function rv(z){for(var U=ja.lastIndex=0;ja.test(z);)++U;return U}function nv(z){return z.match(ja)||[]}function ov(z){return z.match(Sg)||[]}var iv=(function z(U){U=U==null?Et:En.defaults(Et.Object(),U,En.pick(Et,Og));var B=U.Array,fe=U.Date,Re=U.Error,qe=U.Function,bt=U.Math,et=U.Object,Za=U.RegExp,av=U.String,or=U.TypeError,ri=B.prototype,sv=qe.prototype,kn=et.prototype,ni=U["__core-js_shared__"],oi=sv.toString,Ke=kn.hasOwnProperty,lv=0,Zc=(function(){var e=/[^.]+$/.exec(ni&&ni.keys&&ni.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""})(),ii=kn.toString,cv=oi.call(et),uv=Et._,dv=Za("^"+oi.call(Ke).replace(wn,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ai=zc?U.Buffer:n,Wr=U.Symbol,si=U.Uint8Array,Yc=ai?ai.allocUnsafe:n,li=Kc(et.getPrototypeOf,et),Xc=et.create,Jc=kn.propertyIsEnumerable,ci=ri.splice,Qc=Wr?Wr.isConcatSpreadable:n,lo=Wr?Wr.iterator:n,an=Wr?Wr.toStringTag:n,ui=(function(){try{var e=dn(et,"defineProperty");return e({},"",{}),e}catch{}})(),pv=U.clearTimeout!==Et.clearTimeout&&U.clearTimeout,hv=fe&&fe.now!==Et.Date.now&&fe.now,fv=U.setTimeout!==Et.setTimeout&&U.setTimeout,di=bt.ceil,pi=bt.floor,Ya=et.getOwnPropertySymbols,gv=ai?ai.isBuffer:n,eu=U.isFinite,vv=ri.join,mv=Kc(et.keys,et),wt=bt.max,Ot=bt.min,bv=fe.now,wv=U.parseInt,tu=bt.random,xv=ri.reverse,Xa=dn(U,"DataView"),co=dn(U,"Map"),Ja=dn(U,"Promise"),On=dn(U,"Set"),uo=dn(U,"WeakMap"),po=dn(et,"create"),hi=uo&&new uo,Cn={},yv=pn(Xa),_v=pn(co),Iv=pn(Ja),Sv=pn(On),Ev=pn(uo),fi=Wr?Wr.prototype:n,ho=fi?fi.valueOf:n,ru=fi?fi.toString:n;function f(e){if(ct(e)&&!ze(e)&&!(e instanceof He)){if(e instanceof ir)return e;if(Ke.call(e,"__wrapped__"))return nd(e)}return new ir(e)}var Nn=(function(){function e(){}return function(r){if(!at(r))return{};if(Xc)return Xc(r);e.prototype=r;var a=new e;return e.prototype=n,a}})();function gi(){}function ir(e,r){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!r,this.__index__=0,this.__values__=n}f.templateSettings={escape:to,evaluate:Ca,interpolate:ro,variable:"",imports:{_:f}},f.prototype=gi.prototype,f.prototype.constructor=f,ir.prototype=Nn(gi.prototype),ir.prototype.constructor=ir;function He(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=T,this.__views__=[]}function kv(){var e=new He(this.__wrapped__);return e.__actions__=Lt(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Lt(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Lt(this.__views__),e}function Ov(){if(this.__filtered__){var e=new He(this);e.__dir__=-1,e.__filtered__=!0}else e=this.clone(),e.__dir__*=-1;return e}function Cv(){var e=this.__wrapped__.value(),r=this.__dir__,a=ze(e),u=r<0,h=a?e.length:0,v=Bm(0,h,this.__views__),_=v.start,O=v.end,D=O-_,Z=u?O:_-1,Y=this.__iteratees__,oe=Y.length,de=0,we=Ot(D,this.__takeCount__);if(!a||!u&&h==D&&we==D)return ku(e,this.__actions__);var Ne=[];e:for(;D--&&de<we;){Z+=r;for(var Pe=-1,ke=e[Z];++Pe<oe;){var Fe=Y[Pe],We=Fe.iteratee,Qt=Fe.type,zt=We(ke);if(Qt==ae)ke=zt;else if(!zt){if(Qt==ie)continue e;break e}}Ne[de++]=ke}return Ne}He.prototype=Nn(gi.prototype),He.prototype.constructor=He;function sn(e){var r=-1,a=e==null?0:e.length;for(this.clear();++r<a;){var u=e[r];this.set(u[0],u[1])}}function Nv(){this.__data__=po?po(null):{},this.size=0}function Mv(e){var r=this.has(e)&&delete this.__data__[e];return this.size-=r?1:0,r}function Rv(e){var r=this.__data__;if(po){var a=r[e];return a===g?n:a}return Ke.call(r,e)?r[e]:n}function zv(e){var r=this.__data__;return po?r[e]!==n:Ke.call(r,e)}function Dv(e,r){var a=this.__data__;return this.size+=this.has(e)?0:1,a[e]=po&&r===n?g:r,this}sn.prototype.clear=Nv,sn.prototype.delete=Mv,sn.prototype.get=Rv,sn.prototype.has=zv,sn.prototype.set=Dv;function Or(e){var r=-1,a=e==null?0:e.length;for(this.clear();++r<a;){var u=e[r];this.set(u[0],u[1])}}function Av(){this.__data__=[],this.size=0}function Tv(e){var r=this.__data__,a=vi(r,e);if(a<0)return!1;var u=r.length-1;return a==u?r.pop():ci.call(r,a,1),--this.size,!0}function Pv(e){var r=this.__data__,a=vi(r,e);return a<0?n:r[a][1]}function jv(e){return vi(this.__data__,e)>-1}function Lv(e,r){var a=this.__data__,u=vi(a,e);return u<0?(++this.size,a.push([e,r])):a[u][1]=r,this}Or.prototype.clear=Av,Or.prototype.delete=Tv,Or.prototype.get=Pv,Or.prototype.has=jv,Or.prototype.set=Lv;function Cr(e){var r=-1,a=e==null?0:e.length;for(this.clear();++r<a;){var u=e[r];this.set(u[0],u[1])}}function Vv(){this.size=0,this.__data__={hash:new sn,map:new(co||Or),string:new sn}}function Bv(e){var r=Ci(this,e).delete(e);return this.size-=r?1:0,r}function Fv(e){return Ci(this,e).get(e)}function Hv(e){return Ci(this,e).has(e)}function Wv(e,r){var a=Ci(this,e),u=a.size;return a.set(e,r),this.size+=a.size==u?0:1,this}Cr.prototype.clear=Vv,Cr.prototype.delete=Bv,Cr.prototype.get=Fv,Cr.prototype.has=Hv,Cr.prototype.set=Wv;function ln(e){var r=-1,a=e==null?0:e.length;for(this.__data__=new Cr;++r<a;)this.add(e[r])}function $v(e){return this.__data__.set(e,g),this}function qv(e){return this.__data__.has(e)}ln.prototype.add=ln.prototype.push=$v,ln.prototype.has=qv;function fr(e){var r=this.__data__=new Or(e);this.size=r.size}function Uv(){this.__data__=new Or,this.size=0}function Kv(e){var r=this.__data__,a=r.delete(e);return this.size=r.size,a}function Gv(e){return this.__data__.get(e)}function Zv(e){return this.__data__.has(e)}function Yv(e,r){var a=this.__data__;if(a instanceof Or){var u=a.__data__;if(!co||u.length<s-1)return u.push([e,r]),this.size=++a.size,this;a=this.__data__=new Cr(u)}return a.set(e,r),this.size=a.size,this}fr.prototype.clear=Uv,fr.prototype.delete=Kv,fr.prototype.get=Gv,fr.prototype.has=Zv,fr.prototype.set=Yv;function nu(e,r){var a=ze(e),u=!a&&hn(e),h=!a&&!u&&Gr(e),v=!a&&!u&&!h&&Dn(e),_=a||u||h||v,O=_?Ua(e.length,av):[],D=O.length;for(var Z in e)(r||Ke.call(e,Z))&&!(_&&(Z=="length"||h&&(Z=="offset"||Z=="parent")||v&&(Z=="buffer"||Z=="byteLength"||Z=="byteOffset")||Rr(Z,D)))&&O.push(Z);return O}function ou(e){var r=e.length;return r?e[cs(0,r-1)]:n}function Xv(e,r){return Ni(Lt(e),cn(r,0,e.length))}function Jv(e){return Ni(Lt(e))}function Qa(e,r,a){(a!==n&&!vr(e[r],a)||a===n&&!(r in e))&&_r(e,r,a)}function fo(e,r,a){var u=e[r];(!(Ke.call(e,r)&&vr(u,a))||a===n&&!(r in e))&&_r(e,r,a)}function vi(e,r){for(var a=e.length;a--;)if(vr(e[a][0],r))return a;return-1}function Qv(e,r,a,u){return $r(e,function(h,v,_){r(u,h,a(h),_)}),u}function iu(e,r){return e&&Sr(r,St(r),e)}function em(e,r){return e&&Sr(r,Bt(r),e)}function _r(e,r,a){r=="__proto__"&&ui?ui(e,r,{configurable:!0,enumerable:!0,value:a,writable:!0}):e[r]=a}function es(e,r){for(var a=-1,u=r.length,h=B(u),v=e==null;++a<u;)h[a]=v?n:Ts(e,r[a]);return h}function cn(e,r,a){return e===e&&(a!==n&&(e=e<=a?e:a),r!==n&&(e=e>=r?e:r)),e}function ar(e,r,a,u,h,v){var _,O=r&I,D=r&A,Z=r&F;if(a&&(_=h?a(e,u,h,v):a(e)),_!==n)return _;if(!at(e))return e;var Y=ze(e);if(Y){if(_=Hm(e),!O)return Lt(e,_)}else{var oe=Ct(e),de=oe==be||oe==le;if(Gr(e))return Nu(e,O);if(oe==ee||oe==$||de&&!h){if(_=D||de?{}:Gu(e),!O)return D?Rm(e,em(_,e)):Mm(e,iu(_,e))}else{if(!tt[oe])return h?e:{};_=Wm(e,oe,O)}}v||(v=new fr);var we=v.get(e);if(we)return we;v.set(e,_),Id(e)?e.forEach(function(ke){_.add(ar(ke,r,a,ke,e,v))}):yd(e)&&e.forEach(function(ke,Fe){_.set(Fe,ar(ke,r,a,Fe,e,v))});var Ne=Z?D?xs:ws:D?Bt:St,Pe=Y?n:Ne(e);return Zt(Pe||e,function(ke,Fe){Pe&&(Fe=ke,ke=e[Fe]),fo(_,Fe,ar(ke,r,a,Fe,e,v))}),_}function tm(e){var r=St(e);return function(a){return au(a,e,r)}}function au(e,r,a){var u=a.length;if(e==null)return!u;for(e=et(e);u--;){var h=a[u],v=r[h],_=e[h];if(_===n&&!(h in e)||!v(_))return!1}return!0}function su(e,r,a){if(typeof e!="function")throw new or(c);return yo(function(){e.apply(n,a)},r)}function go(e,r,a,u){var h=-1,v=Qo,_=!0,O=e.length,D=[],Z=r.length;if(!O)return D;a&&(r=ot(r,Yt(a))),u?(v=Ba,_=!1):r.length>=s&&(v=so,_=!1,r=new ln(r));e:for(;++h<O;){var Y=e[h],oe=a==null?Y:a(Y);if(Y=u||Y!==0?Y:0,_&&oe===oe){for(var de=Z;de--;)if(r[de]===oe)continue e;D.push(Y)}else v(r,oe,u)||D.push(Y)}return D}var $r=Au(Ir),lu=Au(rs,!0);function rm(e,r){var a=!0;return $r(e,function(u,h,v){return a=!!r(u,h,v),a}),a}function mi(e,r,a){for(var u=-1,h=e.length;++u<h;){var v=e[u],_=r(v);if(_!=null&&(O===n?_===_&&!Jt(_):a(_,O)))var O=_,D=v}return D}function nm(e,r,a,u){var h=e.length;for(a=Ae(a),a<0&&(a=-a>h?0:h+a),u=u===n||u>h?h:Ae(u),u<0&&(u+=h),u=a>u?0:Ed(u);a<u;)e[a++]=r;return e}function cu(e,r){var a=[];return $r(e,function(u,h,v){r(u,h,v)&&a.push(u)}),a}function kt(e,r,a,u,h){var v=-1,_=e.length;for(a||(a=qm),h||(h=[]);++v<_;){var O=e[v];r>0&&a(O)?r>1?kt(O,r-1,a,u,h):Fr(h,O):u||(h[h.length]=O)}return h}var ts=Tu(),uu=Tu(!0);function Ir(e,r){return e&&ts(e,r,St)}function rs(e,r){return e&&uu(e,r,St)}function bi(e,r){return Br(r,function(a){return zr(e[a])})}function un(e,r){r=Ur(r,e);for(var a=0,u=r.length;e!=null&&a<u;)e=e[gr(r[a++])];return a&&a==u?e:n}function du(e,r,a){var u=r(e);return ze(e)?u:Fr(u,a(e))}function Mt(e){return e==null?e===n?_t:lt:an&&an in et(e)?Vm(e):Jm(e)}function ns(e,r){return e>r}function om(e,r){return e!=null&&Ke.call(e,r)}function im(e,r){return e!=null&&r in et(e)}function am(e,r,a){return e>=Ot(r,a)&&e<wt(r,a)}function os(e,r,a){for(var u=a?Ba:Qo,h=e[0].length,v=e.length,_=v,O=B(v),D=1/0,Z=[];_--;){var Y=e[_];_&&r&&(Y=ot(Y,Yt(r))),D=Ot(Y.length,D),O[_]=!a&&(r||h>=120&&Y.length>=120)?new ln(_&&Y):n}Y=e[0];var oe=-1,de=O[0];e:for(;++oe<h&&Z.length<D;){var we=Y[oe],Ne=r?r(we):we;if(we=a||we!==0?we:0,!(de?so(de,Ne):u(Z,Ne,a))){for(_=v;--_;){var Pe=O[_];if(!(Pe?so(Pe,Ne):u(e[_],Ne,a)))continue e}de&&de.push(Ne),Z.push(we)}}return Z}function sm(e,r,a,u){return Ir(e,function(h,v,_){r(u,a(h),v,_)}),u}function vo(e,r,a){r=Ur(r,e),e=Ju(e,r);var u=e==null?e:e[gr(lr(r))];return u==null?n:Gt(u,e,a)}function pu(e){return ct(e)&&Mt(e)==$}function lm(e){return ct(e)&&Mt(e)==gt}function cm(e){return ct(e)&&Mt(e)==ue}function mo(e,r,a,u,h){return e===r?!0:e==null||r==null||!ct(e)&&!ct(r)?e!==e&&r!==r:um(e,r,a,u,mo,h)}function um(e,r,a,u,h,v){var _=ze(e),O=ze(r),D=_?H:Ct(e),Z=O?H:Ct(r);D=D==$?ee:D,Z=Z==$?ee:Z;var Y=D==ee,oe=Z==ee,de=D==Z;if(de&&Gr(e)){if(!Gr(r))return!1;_=!0,Y=!1}if(de&&!Y)return v||(v=new fr),_||Dn(e)?qu(e,r,a,u,h,v):jm(e,r,D,a,u,h,v);if(!(a&R)){var we=Y&&Ke.call(e,"__wrapped__"),Ne=oe&&Ke.call(r,"__wrapped__");if(we||Ne){var Pe=we?e.value():e,ke=Ne?r.value():r;return v||(v=new fr),h(Pe,ke,a,u,v)}}return de?(v||(v=new fr),Lm(e,r,a,u,h,v)):!1}function dm(e){return ct(e)&&Ct(e)==Me}function is(e,r,a,u){var h=a.length,v=h,_=!u;if(e==null)return!v;for(e=et(e);h--;){var O=a[h];if(_&&O[2]?O[1]!==e[O[0]]:!(O[0]in e))return!1}for(;++h<v;){O=a[h];var D=O[0],Z=e[D],Y=O[1];if(_&&O[2]){if(Z===n&&!(D in e))return!1}else{var oe=new fr;if(u)var de=u(Z,Y,D,e,r,oe);if(!(de===n?mo(Y,Z,R|k,u,oe):de))return!1}}return!0}function hu(e){if(!at(e)||Km(e))return!1;var r=zr(e)?dv:qt;return r.test(pn(e))}function pm(e){return ct(e)&&Mt(e)==Te}function hm(e){return ct(e)&&Ct(e)==Be}function fm(e){return ct(e)&&Ti(e.length)&&!!nt[Mt(e)]}function fu(e){return typeof e=="function"?e:e==null?Ft:typeof e=="object"?ze(e)?mu(e[0],e[1]):vu(e):jd(e)}function as(e){if(!xo(e))return mv(e);var r=[];for(var a in et(e))Ke.call(e,a)&&a!="constructor"&&r.push(a);return r}function gm(e){if(!at(e))return Xm(e);var r=xo(e),a=[];for(var u in e)u=="constructor"&&(r||!Ke.call(e,u))||a.push(u);return a}function ss(e,r){return e<r}function gu(e,r){var a=-1,u=Vt(e)?B(e.length):[];return $r(e,function(h,v,_){u[++a]=r(h,v,_)}),u}function vu(e){var r=_s(e);return r.length==1&&r[0][2]?Yu(r[0][0],r[0][1]):function(a){return a===e||is(a,e,r)}}function mu(e,r){return Ss(e)&&Zu(r)?Yu(gr(e),r):function(a){var u=Ts(a,e);return u===n&&u===r?Ps(a,e):mo(r,u,R|k)}}function wi(e,r,a,u,h){e!==r&&ts(r,function(v,_){if(h||(h=new fr),at(v))vm(e,r,_,a,wi,u,h);else{var O=u?u(ks(e,_),v,_+"",e,r,h):n;O===n&&(O=v),Qa(e,_,O)}},Bt)}function vm(e,r,a,u,h,v,_){var O=ks(e,a),D=ks(r,a),Z=_.get(D);if(Z){Qa(e,a,Z);return}var Y=v?v(O,D,a+"",e,r,_):n,oe=Y===n;if(oe){var de=ze(D),we=!de&&Gr(D),Ne=!de&&!we&&Dn(D);Y=D,de||we||Ne?ze(O)?Y=O:dt(O)?Y=Lt(O):we?(oe=!1,Y=Nu(D,!0)):Ne?(oe=!1,Y=Mu(D,!0)):Y=[]:_o(D)||hn(D)?(Y=O,hn(O)?Y=kd(O):(!at(O)||zr(O))&&(Y=Gu(D))):oe=!1}oe&&(_.set(D,Y),h(Y,D,u,v,_),_.delete(D)),Qa(e,a,Y)}function bu(e,r){var a=e.length;if(a)return r+=r<0?a:0,Rr(r,a)?e[r]:n}function wu(e,r,a){r.length?r=ot(r,function(v){return ze(v)?function(_){return un(_,v.length===1?v[0]:v)}:v}):r=[Ft];var u=-1;r=ot(r,Yt(Oe()));var h=gu(e,function(v,_,O){var D=ot(r,function(Z){return Z(v)});return{criteria:D,index:++u,value:v}});return Wg(h,function(v,_){return Nm(v,_,a)})}function mm(e,r){return xu(e,r,function(a,u){return Ps(e,u)})}function xu(e,r,a){for(var u=-1,h=r.length,v={};++u<h;){var _=r[u],O=un(e,_);a(O,_)&&bo(v,Ur(_,e),O)}return v}function bm(e){return function(r){return un(r,e)}}function ls(e,r,a,u){var h=u?Hg:_n,v=-1,_=r.length,O=e;for(e===r&&(r=Lt(r)),a&&(O=ot(e,Yt(a)));++v<_;)for(var D=0,Z=r[v],Y=a?a(Z):Z;(D=h(O,Y,D,u))>-1;)O!==e&&ci.call(O,D,1),ci.call(e,D,1);return e}function yu(e,r){for(var a=e?r.length:0,u=a-1;a--;){var h=r[a];if(a==u||h!==v){var v=h;Rr(h)?ci.call(e,h,1):ps(e,h)}}return e}function cs(e,r){return e+pi(tu()*(r-e+1))}function wm(e,r,a,u){for(var h=-1,v=wt(di((r-e)/(a||1)),0),_=B(v);v--;)_[u?v:++h]=e,e+=a;return _}function us(e,r){var a="";if(!e||r<1||r>Ie)return a;do r%2&&(a+=e),r=pi(r/2),r&&(e+=e);while(r);return a}function je(e,r){return Os(Xu(e,r,Ft),e+"")}function xm(e){return ou(An(e))}function ym(e,r){var a=An(e);return Ni(a,cn(r,0,a.length))}function bo(e,r,a,u){if(!at(e))return e;r=Ur(r,e);for(var h=-1,v=r.length,_=v-1,O=e;O!=null&&++h<v;){var D=gr(r[h]),Z=a;if(D==="__proto__"||D==="constructor"||D==="prototype")return e;if(h!=_){var Y=O[D];Z=u?u(Y,D,O):n,Z===n&&(Z=at(Y)?Y:Rr(r[h+1])?[]:{})}fo(O,D,Z),O=O[D]}return e}var _u=hi?function(e,r){return hi.set(e,r),e}:Ft,_m=ui?function(e,r){return ui(e,"toString",{configurable:!0,enumerable:!1,value:Ls(r),writable:!0})}:Ft;function Im(e){return Ni(An(e))}function sr(e,r,a){var u=-1,h=e.length;r<0&&(r=-r>h?0:h+r),a=a>h?h:a,a<0&&(a+=h),h=r>a?0:a-r>>>0,r>>>=0;for(var v=B(h);++u<h;)v[u]=e[u+r];return v}function Sm(e,r){var a;return $r(e,function(u,h,v){return a=r(u,h,v),!a}),!!a}function xi(e,r,a){var u=0,h=e==null?u:e.length;if(typeof r=="number"&&r===r&&h<=j){for(;u<h;){var v=u+h>>>1,_=e[v];_!==null&&!Jt(_)&&(a?_<=r:_<r)?u=v+1:h=v}return h}return ds(e,r,Ft,a)}function ds(e,r,a,u){var h=0,v=e==null?0:e.length;if(v===0)return 0;r=a(r);for(var _=r!==r,O=r===null,D=Jt(r),Z=r===n;h<v;){var Y=pi((h+v)/2),oe=a(e[Y]),de=oe!==n,we=oe===null,Ne=oe===oe,Pe=Jt(oe);if(_)var ke=u||Ne;else Z?ke=Ne&&(u||de):O?ke=Ne&&de&&(u||!we):D?ke=Ne&&de&&!we&&(u||!Pe):we||Pe?ke=!1:ke=u?oe<=r:oe<r;ke?h=Y+1:v=Y}return Ot(v,K)}function Iu(e,r){for(var a=-1,u=e.length,h=0,v=[];++a<u;){var _=e[a],O=r?r(_):_;if(!a||!vr(O,D)){var D=O;v[h++]=_===0?0:_}}return v}function Su(e){return typeof e=="number"?e:Jt(e)?M:+e}function Xt(e){if(typeof e=="string")return e;if(ze(e))return ot(e,Xt)+"";if(Jt(e))return ru?ru.call(e):"";var r=e+"";return r=="0"&&1/e==-ne?"-0":r}function qr(e,r,a){var u=-1,h=Qo,v=e.length,_=!0,O=[],D=O;if(a)_=!1,h=Ba;else if(v>=s){var Z=r?null:Tm(e);if(Z)return ti(Z);_=!1,h=so,D=new ln}else D=r?[]:O;e:for(;++u<v;){var Y=e[u],oe=r?r(Y):Y;if(Y=a||Y!==0?Y:0,_&&oe===oe){for(var de=D.length;de--;)if(D[de]===oe)continue e;r&&D.push(oe),O.push(Y)}else h(D,oe,a)||(D!==O&&D.push(oe),O.push(Y))}return O}function ps(e,r){r=Ur(r,e);var a=-1,u=r.length;if(!u)return!0;for(;++a<u;){var h=gr(r[a]);if(h==="__proto__"&&!Ke.call(e,"__proto__")||(h==="constructor"||h==="prototype")&&a<u-1)return!1}var v=Ju(e,r);return v==null||delete v[gr(lr(r))]}function Eu(e,r,a,u){return bo(e,r,a(un(e,r)),u)}function yi(e,r,a,u){for(var h=e.length,v=u?h:-1;(u?v--:++v<h)&&r(e[v],v,e););return a?sr(e,u?0:v,u?v+1:h):sr(e,u?v+1:0,u?h:v)}function ku(e,r){var a=e;return a instanceof He&&(a=a.value()),Fa(r,function(u,h){return h.func.apply(h.thisArg,Fr([u],h.args))},a)}function hs(e,r,a){var u=e.length;if(u<2)return u?qr(e[0]):[];for(var h=-1,v=B(u);++h<u;)for(var _=e[h],O=-1;++O<u;)O!=h&&(v[h]=go(v[h]||_,e[O],r,a));return qr(kt(v,1),r,a)}function Ou(e,r,a){for(var u=-1,h=e.length,v=r.length,_={};++u<h;){var O=u<v?r[u]:n;a(_,e[u],O)}return _}function fs(e){return dt(e)?e:[]}function gs(e){return typeof e=="function"?e:Ft}function Ur(e,r){return ze(e)?e:Ss(e,r)?[e]:rd(Ge(e))}var Em=je;function Kr(e,r,a){var u=e.length;return a=a===n?u:a,!r&&a>=u?e:sr(e,r,a)}var Cu=pv||function(e){return Et.clearTimeout(e)};function Nu(e,r){if(r)return e.slice();var a=e.length,u=Yc?Yc(a):new e.constructor(a);return e.copy(u),u}function vs(e){var r=new e.constructor(e.byteLength);return new si(r).set(new si(e)),r}function km(e,r){var a=r?vs(e.buffer):e.buffer;return new e.constructor(a,e.byteOffset,e.byteLength)}function Om(e){var r=new e.constructor(e.source,Xo.exec(e));return r.lastIndex=e.lastIndex,r}function Cm(e){return ho?et(ho.call(e)):{}}function Mu(e,r){var a=r?vs(e.buffer):e.buffer;return new e.constructor(a,e.byteOffset,e.length)}function Ru(e,r){if(e!==r){var a=e!==n,u=e===null,h=e===e,v=Jt(e),_=r!==n,O=r===null,D=r===r,Z=Jt(r);if(!O&&!Z&&!v&&e>r||v&&_&&D&&!O&&!Z||u&&_&&D||!a&&D||!h)return 1;if(!u&&!v&&!Z&&e<r||Z&&a&&h&&!u&&!v||O&&a&&h||!_&&h||!D)return-1}return 0}function Nm(e,r,a){for(var u=-1,h=e.criteria,v=r.criteria,_=h.length,O=a.length;++u<_;){var D=Ru(h[u],v[u]);if(D){if(u>=O)return D;var Z=a[u];return D*(Z=="desc"?-1:1)}}return e.index-r.index}function zu(e,r,a,u){for(var h=-1,v=e.length,_=a.length,O=-1,D=r.length,Z=wt(v-_,0),Y=B(D+Z),oe=!u;++O<D;)Y[O]=r[O];for(;++h<_;)(oe||h<v)&&(Y[a[h]]=e[h]);for(;Z--;)Y[O++]=e[h++];return Y}function Du(e,r,a,u){for(var h=-1,v=e.length,_=-1,O=a.length,D=-1,Z=r.length,Y=wt(v-O,0),oe=B(Y+Z),de=!u;++h<Y;)oe[h]=e[h];for(var we=h;++D<Z;)oe[we+D]=r[D];for(;++_<O;)(de||h<v)&&(oe[we+a[_]]=e[h++]);return oe}function Lt(e,r){var a=-1,u=e.length;for(r||(r=B(u));++a<u;)r[a]=e[a];return r}function Sr(e,r,a,u){var h=!a;a||(a={});for(var v=-1,_=r.length;++v<_;){var O=r[v],D=u?u(a[O],e[O],O,a,e):n;D===n&&(D=e[O]),h?_r(a,O,D):fo(a,O,D)}return a}function Mm(e,r){return Sr(e,Is(e),r)}function Rm(e,r){return Sr(e,Uu(e),r)}function _i(e,r){return function(a,u){var h=ze(a)?Pg:Qv,v=r?r():{};return h(a,e,Oe(u,2),v)}}function Mn(e){return je(function(r,a){var u=-1,h=a.length,v=h>1?a[h-1]:n,_=h>2?a[2]:n;for(v=e.length>3&&typeof v=="function"?(h--,v):n,_&&Rt(a[0],a[1],_)&&(v=h<3?n:v,h=1),r=et(r);++u<h;){var O=a[u];O&&e(r,O,u,v)}return r})}function Au(e,r){return function(a,u){if(a==null)return a;if(!Vt(a))return e(a,u);for(var h=a.length,v=r?h:-1,_=et(a);(r?v--:++v<h)&&u(_[v],v,_)!==!1;);return a}}function Tu(e){return function(r,a,u){for(var h=-1,v=et(r),_=u(r),O=_.length;O--;){var D=_[e?O:++h];if(a(v[D],D,v)===!1)break}return r}}function zm(e,r,a){var u=r&L,h=wo(e);function v(){var _=this&&this!==Et&&this instanceof v?h:e;return _.apply(u?a:this,arguments)}return v}function Pu(e){return function(r){r=Ge(r);var a=In(r)?hr(r):n,u=a?a[0]:r.charAt(0),h=a?Kr(a,1).join(""):r.slice(1);return u[e]()+h}}function Rn(e){return function(r){return Fa(Td(Ad(r).replace(_g,"")),e,"")}}function wo(e){return function(){var r=arguments;switch(r.length){case 0:return new e;case 1:return new e(r[0]);case 2:return new e(r[0],r[1]);case 3:return new e(r[0],r[1],r[2]);case 4:return new e(r[0],r[1],r[2],r[3]);case 5:return new e(r[0],r[1],r[2],r[3],r[4]);case 6:return new e(r[0],r[1],r[2],r[3],r[4],r[5]);case 7:return new e(r[0],r[1],r[2],r[3],r[4],r[5],r[6])}var a=Nn(e.prototype),u=e.apply(a,r);return at(u)?u:a}}function Dm(e,r,a){var u=wo(e);function h(){for(var v=arguments.length,_=B(v),O=v,D=zn(h);O--;)_[O]=arguments[O];var Z=v<3&&_[0]!==D&&_[v-1]!==D?[]:Hr(_,D);if(v-=Z.length,v<a)return Fu(e,r,Ii,h.placeholder,n,_,Z,n,n,a-v);var Y=this&&this!==Et&&this instanceof h?u:e;return Gt(Y,this,_)}return h}function ju(e){return function(r,a,u){var h=et(r);if(!Vt(r)){var v=Oe(a,3);r=St(r),a=function(O){return v(h[O],O,h)}}var _=e(r,a,u);return _>-1?h[v?r[_]:_]:n}}function Lu(e){return Mr(function(r){var a=r.length,u=a,h=ir.prototype.thru;for(e&&r.reverse();u--;){var v=r[u];if(typeof v!="function")throw new or(c);if(h&&!_&&Oi(v)=="wrapper")var _=new ir([],!0)}for(u=_?u:a;++u<a;){v=r[u];var O=Oi(v),D=O=="wrapper"?ys(v):n;D&&Es(D[0])&&D[1]==(V|C|P|q)&&!D[4].length&&D[9]==1?_=_[Oi(D[0])].apply(_,D[3]):_=v.length==1&&Es(v)?_[O]():_.thru(v)}return function(){var Z=arguments,Y=Z[0];if(_&&Z.length==1&&ze(Y))return _.plant(Y).value();for(var oe=0,de=a?r[oe].apply(this,Z):Y;++oe<a;)de=r[oe].call(this,de);return de}})}function Ii(e,r,a,u,h,v,_,O,D,Z){var Y=r&V,oe=r&L,de=r&y,we=r&(C|S),Ne=r&G,Pe=de?n:wo(e);function ke(){for(var Fe=arguments.length,We=B(Fe),Qt=Fe;Qt--;)We[Qt]=arguments[Qt];if(we)var zt=zn(ke),er=qg(We,zt);if(u&&(We=zu(We,u,h,we)),v&&(We=Du(We,v,_,we)),Fe-=er,we&&Fe<Z){var pt=Hr(We,zt);return Fu(e,r,Ii,ke.placeholder,a,We,pt,O,D,Z-Fe)}var mr=oe?a:this,Ar=de?mr[e]:e;return Fe=We.length,O?We=Qm(We,O):Ne&&Fe>1&&We.reverse(),Y&&D<Fe&&(We.length=D),this&&this!==Et&&this instanceof ke&&(Ar=Pe||wo(Ar)),Ar.apply(mr,We)}return ke}function Vu(e,r){return function(a,u){return sm(a,e,r(u),{})}}function Si(e,r){return function(a,u){var h;if(a===n&&u===n)return r;if(a!==n&&(h=a),u!==n){if(h===n)return u;typeof a=="string"||typeof u=="string"?(a=Xt(a),u=Xt(u)):(a=Su(a),u=Su(u)),h=e(a,u)}return h}}function ms(e){return Mr(function(r){return r=ot(r,Yt(Oe())),je(function(a){var u=this;return e(r,function(h){return Gt(h,u,a)})})})}function Ei(e,r){r=r===n?" ":Xt(r);var a=r.length;if(a<2)return a?us(r,e):r;var u=us(r,di(e/Sn(r)));return In(r)?Kr(hr(u),0,e).join(""):u.slice(0,e)}function Am(e,r,a,u){var h=r&L,v=wo(e);function _(){for(var O=-1,D=arguments.length,Z=-1,Y=u.length,oe=B(Y+D),de=this&&this!==Et&&this instanceof _?v:e;++Z<Y;)oe[Z]=u[Z];for(;D--;)oe[Z++]=arguments[++O];return Gt(de,h?a:this,oe)}return _}function Bu(e){return function(r,a,u){return u&&typeof u!="number"&&Rt(r,a,u)&&(a=u=n),r=Dr(r),a===n?(a=r,r=0):a=Dr(a),u=u===n?r<a?1:-1:Dr(u),wm(r,a,u,e)}}function ki(e){return function(r,a){return typeof r=="string"&&typeof a=="string"||(r=cr(r),a=cr(a)),e(r,a)}}function Fu(e,r,a,u,h,v,_,O,D,Z){var Y=r&C,oe=Y?_:n,de=Y?n:_,we=Y?v:n,Ne=Y?n:v;r|=Y?P:W,r&=~(Y?W:P),r&N||(r&=-4);var Pe=[e,r,h,we,oe,Ne,de,O,D,Z],ke=a.apply(n,Pe);return Es(e)&&Qu(ke,Pe),ke.placeholder=u,ed(ke,e,r)}function bs(e){var r=bt[e];return function(a,u){if(a=cr(a),u=u==null?0:Ot(Ae(u),292),u&&eu(a)){var h=(Ge(a)+"e").split("e"),v=r(h[0]+"e"+(+h[1]+u));return h=(Ge(v)+"e").split("e"),+(h[0]+"e"+(+h[1]-u))}return r(a)}}var Tm=On&&1/ti(new On([,-0]))[1]==ne?function(e){return new On(e)}:Fs;function Hu(e){return function(r){var a=Ct(r);return a==Me?Ga(r):a==Be?Jg(r):$g(r,e(r))}}function Nr(e,r,a,u,h,v,_,O){var D=r&y;if(!D&&typeof e!="function")throw new or(c);var Z=u?u.length:0;if(Z||(r&=-97,u=h=n),_=_===n?_:wt(Ae(_),0),O=O===n?O:Ae(O),Z-=h?h.length:0,r&W){var Y=u,oe=h;u=h=n}var de=D?n:ys(e),we=[e,r,a,u,h,Y,oe,v,_,O];if(de&&Ym(we,de),e=we[0],r=we[1],a=we[2],u=we[3],h=we[4],O=we[9]=we[9]===n?D?0:e.length:wt(we[9]-Z,0),!O&&r&(C|S)&&(r&=-25),!r||r==L)var Ne=zm(e,r,a);else r==C||r==S?Ne=Dm(e,r,O):(r==P||r==(L|P))&&!h.length?Ne=Am(e,r,a,u):Ne=Ii.apply(n,we);var Pe=de?_u:Qu;return ed(Pe(Ne,we),e,r)}function Wu(e,r,a,u){return e===n||vr(e,kn[a])&&!Ke.call(u,a)?r:e}function $u(e,r,a,u,h,v){return at(e)&&at(r)&&(v.set(r,e),wi(e,r,n,$u,v),v.delete(r)),e}function Pm(e){return _o(e)?n:e}function qu(e,r,a,u,h,v){var _=a&R,O=e.length,D=r.length;if(O!=D&&!(_&&D>O))return!1;var Z=v.get(e),Y=v.get(r);if(Z&&Y)return Z==r&&Y==e;var oe=-1,de=!0,we=a&k?new ln:n;for(v.set(e,r),v.set(r,e);++oe<O;){var Ne=e[oe],Pe=r[oe];if(u)var ke=_?u(Pe,Ne,oe,r,e,v):u(Ne,Pe,oe,e,r,v);if(ke!==n){if(ke)continue;de=!1;break}if(we){if(!Ha(r,function(Fe,We){if(!so(we,We)&&(Ne===Fe||h(Ne,Fe,a,u,v)))return we.push(We)})){de=!1;break}}else if(!(Ne===Pe||h(Ne,Pe,a,u,v))){de=!1;break}}return v.delete(e),v.delete(r),de}function jm(e,r,a,u,h,v,_){switch(a){case mt:if(e.byteLength!=r.byteLength||e.byteOffset!=r.byteOffset)return!1;e=e.buffer,r=r.buffer;case gt:return!(e.byteLength!=r.byteLength||!v(new si(e),new si(r)));case he:case ue:case Ve:return vr(+e,+r);case Q:return e.name==r.name&&e.message==r.message;case Te:case $e:return e==r+"";case Me:var O=Ga;case Be:var D=u&R;if(O||(O=ti),e.size!=r.size&&!D)return!1;var Z=_.get(e);if(Z)return Z==r;u|=k,_.set(e,r);var Y=qu(O(e),O(r),u,h,v,_);return _.delete(e),Y;case ft:if(ho)return ho.call(e)==ho.call(r)}return!1}function Lm(e,r,a,u,h,v){var _=a&R,O=ws(e),D=O.length,Z=ws(r),Y=Z.length;if(D!=Y&&!_)return!1;for(var oe=D;oe--;){var de=O[oe];if(!(_?de in r:Ke.call(r,de)))return!1}var we=v.get(e),Ne=v.get(r);if(we&&Ne)return we==r&&Ne==e;var Pe=!0;v.set(e,r),v.set(r,e);for(var ke=_;++oe<D;){de=O[oe];var Fe=e[de],We=r[de];if(u)var Qt=_?u(We,Fe,de,r,e,v):u(Fe,We,de,e,r,v);if(!(Qt===n?Fe===We||h(Fe,We,a,u,v):Qt)){Pe=!1;break}ke||(ke=de=="constructor")}if(Pe&&!ke){var zt=e.constructor,er=r.constructor;zt!=er&&"constructor"in e&&"constructor"in r&&!(typeof zt=="function"&&zt instanceof zt&&typeof er=="function"&&er instanceof er)&&(Pe=!1)}return v.delete(e),v.delete(r),Pe}function Mr(e){return Os(Xu(e,n,ad),e+"")}function ws(e){return du(e,St,Is)}function xs(e){return du(e,Bt,Uu)}var ys=hi?function(e){return hi.get(e)}:Fs;function Oi(e){for(var r=e.name+"",a=Cn[r],u=Ke.call(Cn,r)?a.length:0;u--;){var h=a[u],v=h.func;if(v==null||v==e)return h.name}return r}function zn(e){var r=Ke.call(f,"placeholder")?f:e;return r.placeholder}function Oe(){var e=f.iteratee||Vs;return e=e===Vs?fu:e,arguments.length?e(arguments[0],arguments[1]):e}function Ci(e,r){var a=e.__data__;return Um(r)?a[typeof r=="string"?"string":"hash"]:a.map}function _s(e){for(var r=St(e),a=r.length;a--;){var u=r[a],h=e[u];r[a]=[u,h,Zu(h)]}return r}function dn(e,r){var a=Zg(e,r);return hu(a)?a:n}function Vm(e){var r=Ke.call(e,an),a=e[an];try{e[an]=n;var u=!0}catch{}var h=ii.call(e);return u&&(r?e[an]=a:delete e[an]),h}var Is=Ya?function(e){return e==null?[]:(e=et(e),Br(Ya(e),function(r){return Jc.call(e,r)}))}:Hs,Uu=Ya?function(e){for(var r=[];e;)Fr(r,Is(e)),e=li(e);return r}:Hs,Ct=Mt;(Xa&&Ct(new Xa(new ArrayBuffer(1)))!=mt||co&&Ct(new co)!=Me||Ja&&Ct(Ja.resolve())!=me||On&&Ct(new On)!=Be||uo&&Ct(new uo)!=Qe)&&(Ct=function(e){var r=Mt(e),a=r==ee?e.constructor:n,u=a?pn(a):"";if(u)switch(u){case yv:return mt;case _v:return Me;case Iv:return me;case Sv:return Be;case Ev:return Qe}return r});function Bm(e,r,a){for(var u=-1,h=a.length;++u<h;){var v=a[u],_=v.size;switch(v.type){case"drop":e+=_;break;case"dropRight":r-=_;break;case"take":r=Ot(r,e+_);break;case"takeRight":e=wt(e,r-_);break}}return{start:e,end:r}}function Fm(e){var r=e.match(Ma);return r?r[1].split(Lr):[]}function Ku(e,r,a){r=Ur(r,e);for(var u=-1,h=r.length,v=!1;++u<h;){var _=gr(r[u]);if(!(v=e!=null&&a(e,_)))break;e=e[_]}return v||++u!=h?v:(h=e==null?0:e.length,!!h&&Ti(h)&&Rr(_,h)&&(ze(e)||hn(e)))}function Hm(e){var r=e.length,a=new e.constructor(r);return r&&typeof e[0]=="string"&&Ke.call(e,"index")&&(a.index=e.index,a.input=e.input),a}function Gu(e){return typeof e.constructor=="function"&&!xo(e)?Nn(li(e)):{}}function Wm(e,r,a){var u=e.constructor;switch(r){case gt:return vs(e);case he:case ue:return new u(+e);case mt:return km(e,a);case Pt:case xr:case $t:case Yn:case Xn:case jt:case tn:case Jn:case bn:return Mu(e,a);case Me:return new u;case Ve:case $e:return new u(e);case Te:return Om(e);case Be:return new u;case ft:return Cm(e)}}function $m(e,r){var a=r.length;if(!a)return e;var u=a-1;return r[u]=(a>1?"& ":"")+r[u],r=r.join(a>2?", ":" "),e.replace(Zo,`{
|
|
9
|
+
/* [wrapped with `+r+`] */
|
|
10
|
+
`)}function qm(e){return ze(e)||hn(e)||!!(Qc&&e&&e[Qc])}function Rr(e,r){var a=typeof e;return r=r??Ie,!!r&&(a=="number"||a!="symbol"&&Ut.test(e))&&e>-1&&e%1==0&&e<r}function Rt(e,r,a){if(!at(a))return!1;var u=typeof r;return(u=="number"?Vt(a)&&Rr(r,a.length):u=="string"&&r in a)?vr(a[r],e):!1}function Ss(e,r){if(ze(e))return!1;var a=typeof e;return a=="number"||a=="symbol"||a=="boolean"||e==null||Jt(e)?!0:oo.test(e)||!no.test(e)||r!=null&&e in et(r)}function Um(e){var r=typeof e;return r=="string"||r=="number"||r=="symbol"||r=="boolean"?e!=="__proto__":e===null}function Es(e){var r=Oi(e),a=f[r];if(typeof a!="function"||!(r in He.prototype))return!1;if(e===a)return!0;var u=ys(a);return!!u&&e===u[0]}function Km(e){return!!Zc&&Zc in e}var Gm=ni?zr:Ws;function xo(e){var r=e&&e.constructor,a=typeof r=="function"&&r.prototype||kn;return e===a}function Zu(e){return e===e&&!at(e)}function Yu(e,r){return function(a){return a==null?!1:a[e]===r&&(r!==n||e in et(a))}}function Zm(e){var r=Di(e,function(u){return a.size===b&&a.clear(),u}),a=r.cache;return r}function Ym(e,r){var a=e[1],u=r[1],h=a|u,v=h<(L|y|V),_=u==V&&a==C||u==V&&a==q&&e[7].length<=r[8]||u==(V|q)&&r[7].length<=r[8]&&a==C;if(!(v||_))return e;u&L&&(e[2]=r[2],h|=a&L?0:N);var O=r[3];if(O){var D=e[3];e[3]=D?zu(D,O,r[4]):O,e[4]=D?Hr(e[3],x):r[4]}return O=r[5],O&&(D=e[5],e[5]=D?Du(D,O,r[6]):O,e[6]=D?Hr(e[5],x):r[6]),O=r[7],O&&(e[7]=O),u&V&&(e[8]=e[8]==null?r[8]:Ot(e[8],r[8])),e[9]==null&&(e[9]=r[9]),e[0]=r[0],e[1]=h,e}function Xm(e){var r=[];if(e!=null)for(var a in et(e))r.push(a);return r}function Jm(e){return ii.call(e)}function Xu(e,r,a){return r=wt(r===n?e.length-1:r,0),function(){for(var u=arguments,h=-1,v=wt(u.length-r,0),_=B(v);++h<v;)_[h]=u[r+h];h=-1;for(var O=B(r+1);++h<r;)O[h]=u[h];return O[r]=a(_),Gt(e,this,O)}}function Ju(e,r){return r.length<2?e:un(e,sr(r,0,-1))}function Qm(e,r){for(var a=e.length,u=Ot(r.length,a),h=Lt(e);u--;){var v=r[u];e[u]=Rr(v,a)?h[v]:n}return e}function ks(e,r){if(!(r==="constructor"&&typeof e[r]=="function")&&r!="__proto__")return e[r]}var Qu=td(_u),yo=fv||function(e,r){return Et.setTimeout(e,r)},Os=td(_m);function ed(e,r,a){var u=r+"";return Os(e,$m(u,eb(Fm(u),a)))}function td(e){var r=0,a=0;return function(){var u=bv(),h=ce-(u-a);if(a=u,h>0){if(++r>=ye)return arguments[0]}else r=0;return e.apply(n,arguments)}}function Ni(e,r){var a=-1,u=e.length,h=u-1;for(r=r===n?u:r;++a<r;){var v=cs(a,h),_=e[v];e[v]=e[a],e[a]=_}return e.length=r,e}var rd=Zm(function(e){var r=[];return e.charCodeAt(0)===46&&r.push(""),e.replace(Ko,function(a,u,h,v){r.push(h?v.replace(xn,"$1"):u||a)}),r});function gr(e){if(typeof e=="string"||Jt(e))return e;var r=e+"";return r=="0"&&1/e==-ne?"-0":r}function pn(e){if(e!=null){try{return oi.call(e)}catch{}try{return e+""}catch{}}return""}function eb(e,r){return Zt(X,function(a){var u="_."+a[0];r&a[1]&&!Qo(e,u)&&e.push(u)}),e.sort()}function nd(e){if(e instanceof He)return e.clone();var r=new ir(e.__wrapped__,e.__chain__);return r.__actions__=Lt(e.__actions__),r.__index__=e.__index__,r.__values__=e.__values__,r}function tb(e,r,a){(a?Rt(e,r,a):r===n)?r=1:r=wt(Ae(r),0);var u=e==null?0:e.length;if(!u||r<1)return[];for(var h=0,v=0,_=B(di(u/r));h<u;)_[v++]=sr(e,h,h+=r);return _}function rb(e){for(var r=-1,a=e==null?0:e.length,u=0,h=[];++r<a;){var v=e[r];v&&(h[u++]=v)}return h}function nb(){var e=arguments.length;if(!e)return[];for(var r=B(e-1),a=arguments[0],u=e;u--;)r[u-1]=arguments[u];return Fr(ze(a)?Lt(a):[a],kt(r,1))}var ob=je(function(e,r){return dt(e)?go(e,kt(r,1,dt,!0)):[]}),ib=je(function(e,r){var a=lr(r);return dt(a)&&(a=n),dt(e)?go(e,kt(r,1,dt,!0),Oe(a,2)):[]}),ab=je(function(e,r){var a=lr(r);return dt(a)&&(a=n),dt(e)?go(e,kt(r,1,dt,!0),n,a):[]});function sb(e,r,a){var u=e==null?0:e.length;return u?(r=a||r===n?1:Ae(r),sr(e,r<0?0:r,u)):[]}function lb(e,r,a){var u=e==null?0:e.length;return u?(r=a||r===n?1:Ae(r),r=u-r,sr(e,0,r<0?0:r)):[]}function cb(e,r){return e&&e.length?yi(e,Oe(r,3),!0,!0):[]}function ub(e,r){return e&&e.length?yi(e,Oe(r,3),!0):[]}function db(e,r,a,u){var h=e==null?0:e.length;return h?(a&&typeof a!="number"&&Rt(e,r,a)&&(a=0,u=h),nm(e,r,a,u)):[]}function od(e,r,a){var u=e==null?0:e.length;if(!u)return-1;var h=a==null?0:Ae(a);return h<0&&(h=wt(u+h,0)),ei(e,Oe(r,3),h)}function id(e,r,a){var u=e==null?0:e.length;if(!u)return-1;var h=u-1;return a!==n&&(h=Ae(a),h=a<0?wt(u+h,0):Ot(h,u-1)),ei(e,Oe(r,3),h,!0)}function ad(e){var r=e==null?0:e.length;return r?kt(e,1):[]}function pb(e){var r=e==null?0:e.length;return r?kt(e,ne):[]}function hb(e,r){var a=e==null?0:e.length;return a?(r=r===n?1:Ae(r),kt(e,r)):[]}function fb(e){for(var r=-1,a=e==null?0:e.length,u={};++r<a;){var h=e[r];_r(u,h[0],h[1])}return u}function sd(e){return e&&e.length?e[0]:n}function gb(e,r,a){var u=e==null?0:e.length;if(!u)return-1;var h=a==null?0:Ae(a);return h<0&&(h=wt(u+h,0)),_n(e,r,h)}function vb(e){var r=e==null?0:e.length;return r?sr(e,0,-1):[]}var mb=je(function(e){var r=ot(e,fs);return r.length&&r[0]===e[0]?os(r):[]}),bb=je(function(e){var r=lr(e),a=ot(e,fs);return r===lr(a)?r=n:a.pop(),a.length&&a[0]===e[0]?os(a,Oe(r,2)):[]}),wb=je(function(e){var r=lr(e),a=ot(e,fs);return r=typeof r=="function"?r:n,r&&a.pop(),a.length&&a[0]===e[0]?os(a,n,r):[]});function xb(e,r){return e==null?"":vv.call(e,r)}function lr(e){var r=e==null?0:e.length;return r?e[r-1]:n}function yb(e,r,a){var u=e==null?0:e.length;if(!u)return-1;var h=u;return a!==n&&(h=Ae(a),h=h<0?wt(u+h,0):Ot(h,u-1)),r===r?ev(e,r,h):ei(e,Fc,h,!0)}function _b(e,r){return e&&e.length?bu(e,Ae(r)):n}var Ib=je(ld);function ld(e,r){return e&&e.length&&r&&r.length?ls(e,r):e}function Sb(e,r,a){return e&&e.length&&r&&r.length?ls(e,r,Oe(a,2)):e}function Eb(e,r,a){return e&&e.length&&r&&r.length?ls(e,r,n,a):e}var kb=Mr(function(e,r){var a=e==null?0:e.length,u=es(e,r);return yu(e,ot(r,function(h){return Rr(h,a)?+h:h}).sort(Ru)),u});function Ob(e,r){var a=[];if(!(e&&e.length))return a;var u=-1,h=[],v=e.length;for(r=Oe(r,3);++u<v;){var _=e[u];r(_,u,e)&&(a.push(_),h.push(u))}return yu(e,h),a}function Cs(e){return e==null?e:xv.call(e)}function Cb(e,r,a){var u=e==null?0:e.length;return u?(a&&typeof a!="number"&&Rt(e,r,a)?(r=0,a=u):(r=r==null?0:Ae(r),a=a===n?u:Ae(a)),sr(e,r,a)):[]}function Nb(e,r){return xi(e,r)}function Mb(e,r,a){return ds(e,r,Oe(a,2))}function Rb(e,r){var a=e==null?0:e.length;if(a){var u=xi(e,r);if(u<a&&vr(e[u],r))return u}return-1}function zb(e,r){return xi(e,r,!0)}function Db(e,r,a){return ds(e,r,Oe(a,2),!0)}function Ab(e,r){var a=e==null?0:e.length;if(a){var u=xi(e,r,!0)-1;if(vr(e[u],r))return u}return-1}function Tb(e){return e&&e.length?Iu(e):[]}function Pb(e,r){return e&&e.length?Iu(e,Oe(r,2)):[]}function jb(e){var r=e==null?0:e.length;return r?sr(e,1,r):[]}function Lb(e,r,a){return e&&e.length?(r=a||r===n?1:Ae(r),sr(e,0,r<0?0:r)):[]}function Vb(e,r,a){var u=e==null?0:e.length;return u?(r=a||r===n?1:Ae(r),r=u-r,sr(e,r<0?0:r,u)):[]}function Bb(e,r){return e&&e.length?yi(e,Oe(r,3),!1,!0):[]}function Fb(e,r){return e&&e.length?yi(e,Oe(r,3)):[]}var Hb=je(function(e){return qr(kt(e,1,dt,!0))}),Wb=je(function(e){var r=lr(e);return dt(r)&&(r=n),qr(kt(e,1,dt,!0),Oe(r,2))}),$b=je(function(e){var r=lr(e);return r=typeof r=="function"?r:n,qr(kt(e,1,dt,!0),n,r)});function qb(e){return e&&e.length?qr(e):[]}function Ub(e,r){return e&&e.length?qr(e,Oe(r,2)):[]}function Kb(e,r){return r=typeof r=="function"?r:n,e&&e.length?qr(e,n,r):[]}function Ns(e){if(!(e&&e.length))return[];var r=0;return e=Br(e,function(a){if(dt(a))return r=wt(a.length,r),!0}),Ua(r,function(a){return ot(e,Wa(a))})}function cd(e,r){if(!(e&&e.length))return[];var a=Ns(e);return r==null?a:ot(a,function(u){return Gt(r,n,u)})}var Gb=je(function(e,r){return dt(e)?go(e,r):[]}),Zb=je(function(e){return hs(Br(e,dt))}),Yb=je(function(e){var r=lr(e);return dt(r)&&(r=n),hs(Br(e,dt),Oe(r,2))}),Xb=je(function(e){var r=lr(e);return r=typeof r=="function"?r:n,hs(Br(e,dt),n,r)}),Jb=je(Ns);function Qb(e,r){return Ou(e||[],r||[],fo)}function e0(e,r){return Ou(e||[],r||[],bo)}var t0=je(function(e){var r=e.length,a=r>1?e[r-1]:n;return a=typeof a=="function"?(e.pop(),a):n,cd(e,a)});function ud(e){var r=f(e);return r.__chain__=!0,r}function r0(e,r){return r(e),e}function Mi(e,r){return r(e)}var n0=Mr(function(e){var r=e.length,a=r?e[0]:0,u=this.__wrapped__,h=function(v){return es(v,e)};return r>1||this.__actions__.length||!(u instanceof He)||!Rr(a)?this.thru(h):(u=u.slice(a,+a+(r?1:0)),u.__actions__.push({func:Mi,args:[h],thisArg:n}),new ir(u,this.__chain__).thru(function(v){return r&&!v.length&&v.push(n),v}))});function o0(){return ud(this)}function i0(){return new ir(this.value(),this.__chain__)}function a0(){this.__values__===n&&(this.__values__=Sd(this.value()));var e=this.__index__>=this.__values__.length,r=e?n:this.__values__[this.__index__++];return{done:e,value:r}}function s0(){return this}function l0(e){for(var r,a=this;a instanceof gi;){var u=nd(a);u.__index__=0,u.__values__=n,r?h.__wrapped__=u:r=u;var h=u;a=a.__wrapped__}return h.__wrapped__=e,r}function c0(){var e=this.__wrapped__;if(e instanceof He){var r=e;return this.__actions__.length&&(r=new He(this)),r=r.reverse(),r.__actions__.push({func:Mi,args:[Cs],thisArg:n}),new ir(r,this.__chain__)}return this.thru(Cs)}function u0(){return ku(this.__wrapped__,this.__actions__)}var d0=_i(function(e,r,a){Ke.call(e,a)?++e[a]:_r(e,a,1)});function p0(e,r,a){var u=ze(e)?Vc:rm;return a&&Rt(e,r,a)&&(r=n),u(e,Oe(r,3))}function h0(e,r){var a=ze(e)?Br:cu;return a(e,Oe(r,3))}var f0=ju(od),g0=ju(id);function v0(e,r){return kt(Ri(e,r),1)}function m0(e,r){return kt(Ri(e,r),ne)}function b0(e,r,a){return a=a===n?1:Ae(a),kt(Ri(e,r),a)}function dd(e,r){var a=ze(e)?Zt:$r;return a(e,Oe(r,3))}function pd(e,r){var a=ze(e)?jg:lu;return a(e,Oe(r,3))}var w0=_i(function(e,r,a){Ke.call(e,a)?e[a].push(r):_r(e,a,[r])});function x0(e,r,a,u){e=Vt(e)?e:An(e),a=a&&!u?Ae(a):0;var h=e.length;return a<0&&(a=wt(h+a,0)),Pi(e)?a<=h&&e.indexOf(r,a)>-1:!!h&&_n(e,r,a)>-1}var y0=je(function(e,r,a){var u=-1,h=typeof r=="function",v=Vt(e)?B(e.length):[];return $r(e,function(_){v[++u]=h?Gt(r,_,a):vo(_,r,a)}),v}),_0=_i(function(e,r,a){_r(e,a,r)});function Ri(e,r){var a=ze(e)?ot:gu;return a(e,Oe(r,3))}function I0(e,r,a,u){return e==null?[]:(ze(r)||(r=r==null?[]:[r]),a=u?n:a,ze(a)||(a=a==null?[]:[a]),wu(e,r,a))}var S0=_i(function(e,r,a){e[a?0:1].push(r)},function(){return[[],[]]});function E0(e,r,a){var u=ze(e)?Fa:Wc,h=arguments.length<3;return u(e,Oe(r,4),a,h,$r)}function k0(e,r,a){var u=ze(e)?Lg:Wc,h=arguments.length<3;return u(e,Oe(r,4),a,h,lu)}function O0(e,r){var a=ze(e)?Br:cu;return a(e,Ai(Oe(r,3)))}function C0(e){var r=ze(e)?ou:xm;return r(e)}function N0(e,r,a){(a?Rt(e,r,a):r===n)?r=1:r=Ae(r);var u=ze(e)?Xv:ym;return u(e,r)}function M0(e){var r=ze(e)?Jv:Im;return r(e)}function R0(e){if(e==null)return 0;if(Vt(e))return Pi(e)?Sn(e):e.length;var r=Ct(e);return r==Me||r==Be?e.size:as(e).length}function z0(e,r,a){var u=ze(e)?Ha:Sm;return a&&Rt(e,r,a)&&(r=n),u(e,Oe(r,3))}var D0=je(function(e,r){if(e==null)return[];var a=r.length;return a>1&&Rt(e,r[0],r[1])?r=[]:a>2&&Rt(r[0],r[1],r[2])&&(r=[r[0]]),wu(e,kt(r,1),[])}),zi=hv||function(){return Et.Date.now()};function A0(e,r){if(typeof r!="function")throw new or(c);return e=Ae(e),function(){if(--e<1)return r.apply(this,arguments)}}function hd(e,r,a){return r=a?n:r,r=e&&r==null?e.length:r,Nr(e,V,n,n,n,n,r)}function fd(e,r){var a;if(typeof r!="function")throw new or(c);return e=Ae(e),function(){return--e>0&&(a=r.apply(this,arguments)),e<=1&&(r=n),a}}var Ms=je(function(e,r,a){var u=L;if(a.length){var h=Hr(a,zn(Ms));u|=P}return Nr(e,u,r,a,h)}),gd=je(function(e,r,a){var u=L|y;if(a.length){var h=Hr(a,zn(gd));u|=P}return Nr(r,u,e,a,h)});function vd(e,r,a){r=a?n:r;var u=Nr(e,C,n,n,n,n,n,r);return u.placeholder=vd.placeholder,u}function md(e,r,a){r=a?n:r;var u=Nr(e,S,n,n,n,n,n,r);return u.placeholder=md.placeholder,u}function bd(e,r,a){var u,h,v,_,O,D,Z=0,Y=!1,oe=!1,de=!0;if(typeof e!="function")throw new or(c);r=cr(r)||0,at(a)&&(Y=!!a.leading,oe="maxWait"in a,v=oe?wt(cr(a.maxWait)||0,r):v,de="trailing"in a?!!a.trailing:de);function we(pt){var mr=u,Ar=h;return u=h=n,Z=pt,_=e.apply(Ar,mr),_}function Ne(pt){return Z=pt,O=yo(Fe,r),Y?we(pt):_}function Pe(pt){var mr=pt-D,Ar=pt-Z,Ld=r-mr;return oe?Ot(Ld,v-Ar):Ld}function ke(pt){var mr=pt-D,Ar=pt-Z;return D===n||mr>=r||mr<0||oe&&Ar>=v}function Fe(){var pt=zi();if(ke(pt))return We(pt);O=yo(Fe,Pe(pt))}function We(pt){return O=n,de&&u?we(pt):(u=h=n,_)}function Qt(){O!==n&&Cu(O),Z=0,u=D=h=O=n}function zt(){return O===n?_:We(zi())}function er(){var pt=zi(),mr=ke(pt);if(u=arguments,h=this,D=pt,mr){if(O===n)return Ne(D);if(oe)return Cu(O),O=yo(Fe,r),we(D)}return O===n&&(O=yo(Fe,r)),_}return er.cancel=Qt,er.flush=zt,er}var T0=je(function(e,r){return su(e,1,r)}),P0=je(function(e,r,a){return su(e,cr(r)||0,a)});function j0(e){return Nr(e,G)}function Di(e,r){if(typeof e!="function"||r!=null&&typeof r!="function")throw new or(c);var a=function(){var u=arguments,h=r?r.apply(this,u):u[0],v=a.cache;if(v.has(h))return v.get(h);var _=e.apply(this,u);return a.cache=v.set(h,_)||v,_};return a.cache=new(Di.Cache||Cr),a}Di.Cache=Cr;function Ai(e){if(typeof e!="function")throw new or(c);return function(){var r=arguments;switch(r.length){case 0:return!e.call(this);case 1:return!e.call(this,r[0]);case 2:return!e.call(this,r[0],r[1]);case 3:return!e.call(this,r[0],r[1],r[2])}return!e.apply(this,r)}}function L0(e){return fd(2,e)}var V0=Em(function(e,r){r=r.length==1&&ze(r[0])?ot(r[0],Yt(Oe())):ot(kt(r,1),Yt(Oe()));var a=r.length;return je(function(u){for(var h=-1,v=Ot(u.length,a);++h<v;)u[h]=r[h].call(this,u[h]);return Gt(e,this,u)})}),Rs=je(function(e,r){var a=Hr(r,zn(Rs));return Nr(e,P,n,r,a)}),wd=je(function(e,r){var a=Hr(r,zn(wd));return Nr(e,W,n,r,a)}),B0=Mr(function(e,r){return Nr(e,q,n,n,n,r)});function F0(e,r){if(typeof e!="function")throw new or(c);return r=r===n?r:Ae(r),je(e,r)}function H0(e,r){if(typeof e!="function")throw new or(c);return r=r==null?0:wt(Ae(r),0),je(function(a){var u=a[r],h=Kr(a,0,r);return u&&Fr(h,u),Gt(e,this,h)})}function W0(e,r,a){var u=!0,h=!0;if(typeof e!="function")throw new or(c);return at(a)&&(u="leading"in a?!!a.leading:u,h="trailing"in a?!!a.trailing:h),bd(e,r,{leading:u,maxWait:r,trailing:h})}function $0(e){return hd(e,1)}function q0(e,r){return Rs(gs(r),e)}function U0(){if(!arguments.length)return[];var e=arguments[0];return ze(e)?e:[e]}function K0(e){return ar(e,F)}function G0(e,r){return r=typeof r=="function"?r:n,ar(e,F,r)}function Z0(e){return ar(e,I|F)}function Y0(e,r){return r=typeof r=="function"?r:n,ar(e,I|F,r)}function X0(e,r){return r==null||au(e,r,St(r))}function vr(e,r){return e===r||e!==e&&r!==r}var J0=ki(ns),Q0=ki(function(e,r){return e>=r}),hn=pu((function(){return arguments})())?pu:function(e){return ct(e)&&Ke.call(e,"callee")&&!Jc.call(e,"callee")},ze=B.isArray,ew=Dc?Yt(Dc):lm;function Vt(e){return e!=null&&Ti(e.length)&&!zr(e)}function dt(e){return ct(e)&&Vt(e)}function tw(e){return e===!0||e===!1||ct(e)&&Mt(e)==he}var Gr=gv||Ws,rw=Ac?Yt(Ac):cm;function nw(e){return ct(e)&&e.nodeType===1&&!_o(e)}function ow(e){if(e==null)return!0;if(Vt(e)&&(ze(e)||typeof e=="string"||typeof e.splice=="function"||Gr(e)||Dn(e)||hn(e)))return!e.length;var r=Ct(e);if(r==Me||r==Be)return!e.size;if(xo(e))return!as(e).length;for(var a in e)if(Ke.call(e,a))return!1;return!0}function iw(e,r){return mo(e,r)}function aw(e,r,a){a=typeof a=="function"?a:n;var u=a?a(e,r):n;return u===n?mo(e,r,n,a):!!u}function zs(e){if(!ct(e))return!1;var r=Mt(e);return r==Q||r==_e||typeof e.message=="string"&&typeof e.name=="string"&&!_o(e)}function sw(e){return typeof e=="number"&&eu(e)}function zr(e){if(!at(e))return!1;var r=Mt(e);return r==be||r==le||r==re||r==Se}function xd(e){return typeof e=="number"&&e==Ae(e)}function Ti(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Ie}function at(e){var r=typeof e;return e!=null&&(r=="object"||r=="function")}function ct(e){return e!=null&&typeof e=="object"}var yd=Tc?Yt(Tc):dm;function lw(e,r){return e===r||is(e,r,_s(r))}function cw(e,r,a){return a=typeof a=="function"?a:n,is(e,r,_s(r),a)}function uw(e){return _d(e)&&e!=+e}function dw(e){if(Gm(e))throw new Re(l);return hu(e)}function pw(e){return e===null}function hw(e){return e==null}function _d(e){return typeof e=="number"||ct(e)&&Mt(e)==Ve}function _o(e){if(!ct(e)||Mt(e)!=ee)return!1;var r=li(e);if(r===null)return!0;var a=Ke.call(r,"constructor")&&r.constructor;return typeof a=="function"&&a instanceof a&&oi.call(a)==cv}var Ds=Pc?Yt(Pc):pm;function fw(e){return xd(e)&&e>=-Ie&&e<=Ie}var Id=jc?Yt(jc):hm;function Pi(e){return typeof e=="string"||!ze(e)&&ct(e)&&Mt(e)==$e}function Jt(e){return typeof e=="symbol"||ct(e)&&Mt(e)==ft}var Dn=Lc?Yt(Lc):fm;function gw(e){return e===n}function vw(e){return ct(e)&&Ct(e)==Qe}function mw(e){return ct(e)&&Mt(e)==rt}var bw=ki(ss),ww=ki(function(e,r){return e<=r});function Sd(e){if(!e)return[];if(Vt(e))return Pi(e)?hr(e):Lt(e);if(lo&&e[lo])return Xg(e[lo]());var r=Ct(e),a=r==Me?Ga:r==Be?ti:An;return a(e)}function Dr(e){if(!e)return e===0?e:0;if(e=cr(e),e===ne||e===-ne){var r=e<0?-1:1;return r*E}return e===e?e:0}function Ae(e){var r=Dr(e),a=r%1;return r===r?a?r-a:r:0}function Ed(e){return e?cn(Ae(e),0,T):0}function cr(e){if(typeof e=="number")return e;if(Jt(e))return M;if(at(e)){var r=typeof e.valueOf=="function"?e.valueOf():e;e=at(r)?r+"":r}if(typeof e!="string")return e===0?e:+e;e=$c(e);var a=De.test(e);return a||It.test(e)?Ag(e.slice(2),a?2:8):Ee.test(e)?M:+e}function kd(e){return Sr(e,Bt(e))}function xw(e){return e?cn(Ae(e),-Ie,Ie):e===0?e:0}function Ge(e){return e==null?"":Xt(e)}var yw=Mn(function(e,r){if(xo(r)||Vt(r)){Sr(r,St(r),e);return}for(var a in r)Ke.call(r,a)&&fo(e,a,r[a])}),Od=Mn(function(e,r){Sr(r,Bt(r),e)}),Cd=Mn(function(e,r,a,u){Sr(r,Bt(r),e,u)}),As=Mn(function(e,r,a,u){Sr(r,St(r),e,u)}),_w=Mr(es);function Iw(e,r){var a=Nn(e);return r==null?a:iu(a,r)}var Sw=je(function(e,r){e=et(e);var a=-1,u=r.length,h=u>2?r[2]:n;for(h&&Rt(r[0],r[1],h)&&(u=1);++a<u;)for(var v=r[a],_=Bt(v),O=-1,D=_.length;++O<D;){var Z=_[O],Y=e[Z];(Y===n||vr(Y,kn[Z])&&!Ke.call(e,Z))&&(e[Z]=v[Z])}return e}),Ew=je(function(e){return e.push(n,$u),Gt(Nd,n,e)});function kw(e,r){return Bc(e,Oe(r,3),Ir)}function Ow(e,r){return Bc(e,Oe(r,3),rs)}function Cw(e,r){return e==null?e:ts(e,Oe(r,3),Bt)}function Nw(e,r){return e==null?e:uu(e,Oe(r,3),Bt)}function Mw(e,r){return e&&Ir(e,Oe(r,3))}function Rw(e,r){return e&&rs(e,Oe(r,3))}function zw(e){return e==null?[]:bi(e,St(e))}function Dw(e){return e==null?[]:bi(e,Bt(e))}function Ts(e,r,a){var u=e==null?n:un(e,r);return u===n?a:u}function Aw(e,r){return e!=null&&Ku(e,r,om)}function Ps(e,r){return e!=null&&Ku(e,r,im)}var Tw=Vu(function(e,r,a){r!=null&&typeof r.toString!="function"&&(r=ii.call(r)),e[r]=a},Ls(Ft)),Pw=Vu(function(e,r,a){r!=null&&typeof r.toString!="function"&&(r=ii.call(r)),Ke.call(e,r)?e[r].push(a):e[r]=[a]},Oe),jw=je(vo);function St(e){return Vt(e)?nu(e):as(e)}function Bt(e){return Vt(e)?nu(e,!0):gm(e)}function Lw(e,r){var a={};return r=Oe(r,3),Ir(e,function(u,h,v){_r(a,r(u,h,v),u)}),a}function Vw(e,r){var a={};return r=Oe(r,3),Ir(e,function(u,h,v){_r(a,h,r(u,h,v))}),a}var Bw=Mn(function(e,r,a){wi(e,r,a)}),Nd=Mn(function(e,r,a,u){wi(e,r,a,u)}),Fw=Mr(function(e,r){var a={};if(e==null)return a;var u=!1;r=ot(r,function(v){return v=Ur(v,e),u||(u=v.length>1),v}),Sr(e,xs(e),a),u&&(a=ar(a,I|A|F,Pm));for(var h=r.length;h--;)ps(a,r[h]);return a});function Hw(e,r){return Md(e,Ai(Oe(r)))}var Ww=Mr(function(e,r){return e==null?{}:mm(e,r)});function Md(e,r){if(e==null)return{};var a=ot(xs(e),function(u){return[u]});return r=Oe(r),xu(e,a,function(u,h){return r(u,h[0])})}function $w(e,r,a){r=Ur(r,e);var u=-1,h=r.length;for(h||(h=1,e=n);++u<h;){var v=e==null?n:e[gr(r[u])];v===n&&(u=h,v=a),e=zr(v)?v.call(e):v}return e}function qw(e,r,a){return e==null?e:bo(e,r,a)}function Uw(e,r,a,u){return u=typeof u=="function"?u:n,e==null?e:bo(e,r,a,u)}var Rd=Hu(St),zd=Hu(Bt);function Kw(e,r,a){var u=ze(e),h=u||Gr(e)||Dn(e);if(r=Oe(r,4),a==null){var v=e&&e.constructor;h?a=u?new v:[]:at(e)?a=zr(v)?Nn(li(e)):{}:a={}}return(h?Zt:Ir)(e,function(_,O,D){return r(a,_,O,D)}),a}function Gw(e,r){return e==null?!0:ps(e,r)}function Zw(e,r,a){return e==null?e:Eu(e,r,gs(a))}function Yw(e,r,a,u){return u=typeof u=="function"?u:n,e==null?e:Eu(e,r,gs(a),u)}function An(e){return e==null?[]:Ka(e,St(e))}function Xw(e){return e==null?[]:Ka(e,Bt(e))}function Jw(e,r,a){return a===n&&(a=r,r=n),a!==n&&(a=cr(a),a=a===a?a:0),r!==n&&(r=cr(r),r=r===r?r:0),cn(cr(e),r,a)}function Qw(e,r,a){return r=Dr(r),a===n?(a=r,r=0):a=Dr(a),e=cr(e),am(e,r,a)}function ex(e,r,a){if(a&&typeof a!="boolean"&&Rt(e,r,a)&&(r=a=n),a===n&&(typeof r=="boolean"?(a=r,r=n):typeof e=="boolean"&&(a=e,e=n)),e===n&&r===n?(e=0,r=1):(e=Dr(e),r===n?(r=e,e=0):r=Dr(r)),e>r){var u=e;e=r,r=u}if(a||e%1||r%1){var h=tu();return Ot(e+h*(r-e+Dg("1e-"+((h+"").length-1))),r)}return cs(e,r)}var tx=Rn(function(e,r,a){return r=r.toLowerCase(),e+(a?Dd(r):r)});function Dd(e){return js(Ge(e).toLowerCase())}function Ad(e){return e=Ge(e),e&&e.replace(Kt,Ug).replace(Ig,"")}function rx(e,r,a){e=Ge(e),r=Xt(r);var u=e.length;a=a===n?u:cn(Ae(a),0,u);var h=a;return a-=r.length,a>=0&&e.slice(a,h)==r}function nx(e){return e=Ge(e),e&&rn.test(e)?e.replace(eo,Kg):e}function ox(e){return e=Ge(e),e&&Go.test(e)?e.replace(wn,"\\$&"):e}var ix=Rn(function(e,r,a){return e+(a?"-":"")+r.toLowerCase()}),ax=Rn(function(e,r,a){return e+(a?" ":"")+r.toLowerCase()}),sx=Pu("toLowerCase");function lx(e,r,a){e=Ge(e),r=Ae(r);var u=r?Sn(e):0;if(!r||u>=r)return e;var h=(r-u)/2;return Ei(pi(h),a)+e+Ei(di(h),a)}function cx(e,r,a){e=Ge(e),r=Ae(r);var u=r?Sn(e):0;return r&&u<r?e+Ei(r-u,a):e}function ux(e,r,a){e=Ge(e),r=Ae(r);var u=r?Sn(e):0;return r&&u<r?Ei(r-u,a)+e:e}function dx(e,r,a){return a||r==null?r=0:r&&(r=+r),wv(Ge(e).replace(io,""),r||0)}function px(e,r,a){return(a?Rt(e,r,a):r===n)?r=1:r=Ae(r),us(Ge(e),r)}function hx(){var e=arguments,r=Ge(e[0]);return e.length<3?r:r.replace(e[1],e[2])}var fx=Rn(function(e,r,a){return e+(a?"_":"")+r.toLowerCase()});function gx(e,r,a){return a&&typeof a!="number"&&Rt(e,r,a)&&(r=a=n),a=a===n?T:a>>>0,a?(e=Ge(e),e&&(typeof r=="string"||r!=null&&!Ds(r))&&(r=Xt(r),!r&&In(e))?Kr(hr(e),0,a):e.split(r,a)):[]}var vx=Rn(function(e,r,a){return e+(a?" ":"")+js(r)});function mx(e,r,a){return e=Ge(e),a=a==null?0:cn(Ae(a),0,e.length),r=Xt(r),e.slice(a,a+r.length)==r}function bx(e,r,a){var u=f.templateSettings;a&&Rt(e,r,a)&&(r=n),e=Ge(e),r=As({},r,u,Wu);var h=As({},r.imports,u.imports,Wu),v=St(h),_=Ka(h,v);Zt(v,function(ke){if(Vr.test(ke))throw new Re(p)});var O,D,Z=0,Y=r.interpolate||Nt,oe="__p += '",de=Za((r.escape||Nt).source+"|"+Y.source+"|"+(Y===ro?Yo:Nt).source+"|"+(r.evaluate||Nt).source+"|$","g"),we="//# sourceURL="+(Ke.call(r,"sourceURL")?(r.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Cg+"]")+`
|
|
11
|
+
`;e.replace(de,function(ke,Fe,We,Qt,zt,er){return We||(We=Qt),oe+=e.slice(Z,er).replace(yr,Gg),Fe&&(O=!0,oe+=`' +
|
|
12
|
+
__e(`+Fe+`) +
|
|
13
|
+
'`),zt&&(D=!0,oe+=`';
|
|
14
14
|
`+zt+`;
|
|
15
|
-
__p += '`),
|
|
16
|
-
((__t = (`+
|
|
17
|
-
'`),
|
|
18
|
-
`;var
|
|
19
|
-
`+
|
|
15
|
+
__p += '`),We&&(oe+=`' +
|
|
16
|
+
((__t = (`+We+`)) == null ? '' : __t) +
|
|
17
|
+
'`),Z=er+ke.length,ke}),oe+=`';
|
|
18
|
+
`;var Ne=Ke.call(r,"variable")&&r.variable;if(!Ne)oe=`with (obj) {
|
|
19
|
+
`+oe+`
|
|
20
20
|
}
|
|
21
|
-
`;else if(
|
|
22
|
-
`+(
|
|
23
|
-
`)+"var __t, __p = ''"+(
|
|
21
|
+
`;else if(Vr.test(Ne))throw new Re(d);oe=(D?oe.replace($o,""):oe).replace(Oa,"$1").replace(qo,"$1;"),oe="function("+(Ne||"obj")+`) {
|
|
22
|
+
`+(Ne?"":`obj || (obj = {});
|
|
23
|
+
`)+"var __t, __p = ''"+(O?", __e = _.escape":"")+(D?`, __j = Array.prototype.join;
|
|
24
24
|
function print() { __p += __j.call(arguments, '') }
|
|
25
25
|
`:`;
|
|
26
|
-
`)+
|
|
27
|
-
}`;var Re=fd(function(){return je(g,be+"return "+ee).apply(n,x)});if(Re.source=ee,ps(Re))throw Re;return Re}function $w(e){return He(e).toLowerCase()}function Kw(e){return He(e).toUpperCase()}function Uw(e,t,a){if(e=He(e),e&&(a||t===n))return _c(e);if(!e||!(t=Ut(t)))return e;var u=sr(e),p=sr(t),g=Ic(u,p),x=Sc(u,p)+1;return Hr(u,g,x).join("")}function Gw(e,t,a){if(e=He(e),e&&(a||t===n))return e.slice(0,kc(e)+1);if(!e||!(t=Ut(t)))return e;var u=sr(e),p=Sc(u,sr(t))+1;return Hr(u,0,p).join("")}function qw(e,t,a){if(e=He(e),e&&(a||t===n))return e.replace(Qn,"");if(!e||!(t=Ut(t)))return e;var u=sr(e),p=Ic(u,sr(t));return Hr(u,p).join("")}function Zw(e,t){var a=ue,u=pe;if(tt(t)){var p="separator"in t?t.separator:p;a="length"in t?Ce(t.length):a,u="omission"in t?Ut(t.omission):u}e=He(e);var g=e.length;if(yn(e)){var x=sr(e);g=x.length}if(a>=g)return e;var I=a-_n(u);if(I<1)return u;var R=x?Hr(x,0,I).join(""):e.slice(0,I);if(p===n)return R+u;if(x&&(I+=R.length-I),hs(p)){if(e.slice(I).search(p)){var Y,X=R;for(p.global||(p=Ca(p.source,He(vr.exec(p))+"g")),p.lastIndex=0;Y=p.exec(X);)var ee=Y.index;R=R.slice(0,ee===n?I:ee)}}else if(e.indexOf(Ut(p),I)!=I){var ce=R.lastIndexOf(p);ce>-1&&(R=R.slice(0,ce))}return R+u}function Yw(e){return e=He(e),e&&Zn.test(e)?e.replace(Ai,kg):e}var Xw=Cn(function(e,t,a){return e+(a?" ":"")+t.toUpperCase()}),ms=fu("toUpperCase");function hd(e,t,a){return e=He(e),t=a?n:t,t===n?yg(e)?Cg(e):pg(e):e.match(t)||[]}var fd=Me(function(e,t){try{return Wt(e,n,t)}catch(a){return ps(a)?a:new Oe(a)}}),Qw=Or(function(e,t){return $t(t,function(a){a=cr(a),br(e,a,us(e[a],e))}),e});function Jw(e){var t=e==null?0:e.length,a=ye();return e=t?Je(e,function(u){if(typeof u[1]!="function")throw new Jt(c);return[a(u[0]),u[1]]}):[],Me(function(u){for(var p=-1;++p<t;){var g=e[p];if(Wt(g[0],this,u))return Wt(g[1],this,u)}})}function ex(e){return kv(tr(e,S))}function bs(e){return function(){return e}}function tx(e,t){return e==null||e!==e?t:e}var rx=vu(),nx=vu(!0);function Vt(e){return e}function ws(e){return Uc(typeof e=="function"?e:tr(e,S))}function ix(e){return qc(tr(e,S))}function ox(e,t){return Zc(e,tr(t,S))}var ax=Me(function(e,t){return function(a){return li(a,e,t)}}),sx=Me(function(e,t){return function(a){return li(e,a,t)}});function xs(e,t,a){var u=_t(t),p=oo(t,u);a==null&&!(tt(t)&&(p.length||!u.length))&&(a=t,t=e,e=this,p=oo(t,_t(t)));var g=!(tt(a)&&"chain"in a)||!!a.chain,x=Cr(e);return $t(p,function(I){var R=t[I];e[I]=R,x&&(e.prototype[I]=function(){var Y=this.__chain__;if(g||Y){var X=e(this.__wrapped__),ee=X.__actions__=Lt(this.__actions__);return ee.push({func:R,args:arguments,thisArg:e}),X.__chain__=Y,X}return R.apply(e,Pr([this.value()],arguments))})}),e}function lx(){return St._===this&&(St._=Tg),this}function ys(){}function cx(e){return e=Ce(e),Me(function(t){return Yc(t,e)})}var ux=Xa(Je),dx=Xa(mc),px=Xa(_a);function gd(e){return is(e)?Ia(cr(e)):Wv(e)}function hx(e){return function(t){return e==null?n:on(e,t)}}var fx=bu(),gx=bu(!0);function _s(){return[]}function Is(){return!1}function vx(){return{}}function mx(){return""}function bx(){return!0}function wx(e,t){if(e=Ce(e),e<1||e>Se)return[];var a=K,u=Ot(e,K);t=ye(t),e-=K;for(var p=ka(u,t);++a<e;)t(a);return p}function xx(e){return Ne(e)?Je(e,cr):Gt(e)?[e]:Lt(Au(He(e)))}function yx(e){var t=++Dg;return He(e)+t}var _x=po(function(e,t){return e+t},0),Ix=Qa("ceil"),Sx=po(function(e,t){return e/t},1),Ex=Qa("floor");function kx(e){return e&&e.length?io(e,Vt,La):n}function Ox(e,t){return e&&e.length?io(e,ye(t,2),La):n}function Nx(e){return xc(e,Vt)}function Cx(e,t){return xc(e,ye(t,2))}function Rx(e){return e&&e.length?io(e,Vt,Fa):n}function Mx(e,t){return e&&e.length?io(e,ye(t,2),Fa):n}var zx=po(function(e,t){return e*t},1),Dx=Qa("round"),Ax=po(function(e,t){return e-t},0);function Tx(e){return e&&e.length?Ea(e,Vt):0}function Px(e,t){return e&&e.length?Ea(e,ye(t,2)):0}return f.after=o0,f.ary=Ku,f.assign=U0,f.assignIn=od,f.assignInWith=ad,f.assignWith=fs,f.at=G0,f.before=Uu,f.bind=us,f.bindAll=Qw,f.bindKey=Gu,f.castArray=m0,f.chain=Hu,f.chunk=km,f.compact=Om,f.concat=Nm,f.cond=Jw,f.conforms=ex,f.constant=bs,f.countBy=Pb,f.create=q0,f.curry=qu,f.curryRight=Zu,f.debounce=Yu,f.defaults=Z0,f.defaultsDeep=Y0,f.defer=a0,f.delay=s0,f.difference=Cm,f.differenceBy=Rm,f.differenceWith=Mm,f.drop=zm,f.dropRight=Dm,f.dropRightWhile=Am,f.dropWhile=Tm,f.fill=Pm,f.filter=jb,f.flatMap=Fb,f.flatMapDeep=Hb,f.flatMapDepth=Wb,f.flatten=ju,f.flattenDeep=Lm,f.flattenDepth=jm,f.flip=l0,f.flow=rx,f.flowRight=nx,f.fromPairs=Bm,f.functions=nw,f.functionsIn=iw,f.groupBy=$b,f.initial=Fm,f.intersection=Hm,f.intersectionBy=Wm,f.intersectionWith=$m,f.invert=aw,f.invertBy=sw,f.invokeMap=Ub,f.iteratee=ws,f.keyBy=Gb,f.keys=_t,f.keysIn=Bt,f.map=wo,f.mapKeys=cw,f.mapValues=uw,f.matches=ix,f.matchesProperty=ox,f.memoize=yo,f.merge=dw,f.mergeWith=sd,f.method=ax,f.methodOf=sx,f.mixin=xs,f.negate=_o,f.nthArg=cx,f.omit=pw,f.omitBy=hw,f.once=c0,f.orderBy=qb,f.over=ux,f.overArgs=u0,f.overEvery=dx,f.overSome=px,f.partial=ds,f.partialRight=Xu,f.partition=Zb,f.pick=fw,f.pickBy=ld,f.property=gd,f.propertyOf=hx,f.pull=qm,f.pullAll=Vu,f.pullAllBy=Zm,f.pullAllWith=Ym,f.pullAt=Xm,f.range=fx,f.rangeRight=gx,f.rearg=d0,f.reject=Qb,f.remove=Qm,f.rest=p0,f.reverse=ls,f.sampleSize=e0,f.set=vw,f.setWith=mw,f.shuffle=t0,f.slice=Jm,f.sortBy=i0,f.sortedUniq=ab,f.sortedUniqBy=sb,f.split=Vw,f.spread=h0,f.tail=lb,f.take=cb,f.takeRight=ub,f.takeRightWhile=db,f.takeWhile=pb,f.tap=Ob,f.throttle=f0,f.thru=bo,f.toArray=rd,f.toPairs=cd,f.toPairsIn=ud,f.toPath=xx,f.toPlainObject=id,f.transform=bw,f.unary=g0,f.union=hb,f.unionBy=fb,f.unionWith=gb,f.uniq=vb,f.uniqBy=mb,f.uniqWith=bb,f.unset=ww,f.unzip=cs,f.unzipWith=Fu,f.update=xw,f.updateWith=yw,f.values=zn,f.valuesIn=_w,f.without=wb,f.words=hd,f.wrap=v0,f.xor=xb,f.xorBy=yb,f.xorWith=_b,f.zip=Ib,f.zipObject=Sb,f.zipObjectDeep=Eb,f.zipWith=kb,f.entries=cd,f.entriesIn=ud,f.extend=od,f.extendWith=ad,xs(f,f),f.add=_x,f.attempt=fd,f.camelCase=kw,f.capitalize=dd,f.ceil=Ix,f.clamp=Iw,f.clone=b0,f.cloneDeep=x0,f.cloneDeepWith=y0,f.cloneWith=w0,f.conformsTo=_0,f.deburr=pd,f.defaultTo=tx,f.divide=Sx,f.endsWith=Ow,f.eq=ur,f.escape=Nw,f.escapeRegExp=Cw,f.every=Lb,f.find=Bb,f.findIndex=Pu,f.findKey=X0,f.findLast=Vb,f.findLastIndex=Lu,f.findLastKey=Q0,f.floor=Ex,f.forEach=Wu,f.forEachRight=$u,f.forIn=J0,f.forInRight=ew,f.forOwn=tw,f.forOwnRight=rw,f.get=gs,f.gt=I0,f.gte=S0,f.has=ow,f.hasIn=vs,f.head=Bu,f.identity=Vt,f.includes=Kb,f.indexOf=Vm,f.inRange=Sw,f.invoke=lw,f.isArguments=ln,f.isArray=Ne,f.isArrayBuffer=E0,f.isArrayLike=jt,f.isArrayLikeObject=ot,f.isBoolean=k0,f.isBuffer=Wr,f.isDate=O0,f.isElement=N0,f.isEmpty=C0,f.isEqual=R0,f.isEqualWith=M0,f.isError=ps,f.isFinite=z0,f.isFunction=Cr,f.isInteger=Qu,f.isLength=Io,f.isMap=Ju,f.isMatch=D0,f.isMatchWith=A0,f.isNaN=T0,f.isNative=P0,f.isNil=j0,f.isNull=L0,f.isNumber=ed,f.isObject=tt,f.isObjectLike=nt,f.isPlainObject=fi,f.isRegExp=hs,f.isSafeInteger=B0,f.isSet=td,f.isString=So,f.isSymbol=Gt,f.isTypedArray=Mn,f.isUndefined=V0,f.isWeakMap=F0,f.isWeakSet=H0,f.join=Km,f.kebabCase=Rw,f.last=nr,f.lastIndexOf=Um,f.lowerCase=Mw,f.lowerFirst=zw,f.lt=W0,f.lte=$0,f.max=kx,f.maxBy=Ox,f.mean=Nx,f.meanBy=Cx,f.min=Rx,f.minBy=Mx,f.stubArray=_s,f.stubFalse=Is,f.stubObject=vx,f.stubString=mx,f.stubTrue=bx,f.multiply=zx,f.nth=Gm,f.noConflict=lx,f.noop=ys,f.now=xo,f.pad=Dw,f.padEnd=Aw,f.padStart=Tw,f.parseInt=Pw,f.random=Ew,f.reduce=Yb,f.reduceRight=Xb,f.repeat=Lw,f.replace=jw,f.result=gw,f.round=Dx,f.runInContext=C,f.sample=Jb,f.size=r0,f.snakeCase=Bw,f.some=n0,f.sortedIndex=eb,f.sortedIndexBy=tb,f.sortedIndexOf=rb,f.sortedLastIndex=nb,f.sortedLastIndexBy=ib,f.sortedLastIndexOf=ob,f.startCase=Fw,f.startsWith=Hw,f.subtract=Ax,f.sum=Tx,f.sumBy=Px,f.template=Ww,f.times=wx,f.toFinite=Rr,f.toInteger=Ce,f.toLength=nd,f.toLower=$w,f.toNumber=ir,f.toSafeInteger=K0,f.toString=He,f.toUpper=Kw,f.trim=Uw,f.trimEnd=Gw,f.trimStart=qw,f.truncate=Zw,f.unescape=Yw,f.uniqueId=yx,f.upperCase=Xw,f.upperFirst=ms,f.each=Wu,f.eachRight=$u,f.first=Bu,xs(f,(function(){var e={};return wr(f,function(t,a){Fe.call(f.prototype,a)||(e[a]=t)}),e})(),{chain:!1}),f.VERSION=o,$t(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){f[e].placeholder=f}),$t(["drop","take"],function(e,t){Te.prototype[e]=function(a){a=a===n?1:vt(Ce(a),0);var u=this.__filtered__&&!t?new Te(this):this.clone();return u.__filtered__?u.__takeCount__=Ot(a,u.__takeCount__):u.__views__.push({size:Ot(a,K),type:e+(u.__dir__<0?"Right":"")}),u},Te.prototype[e+"Right"]=function(a){return this.reverse()[e](a).reverse()}}),$t(["filter","map","takeWhile"],function(e,t){var a=t+1,u=a==fe||a==Ee;Te.prototype[e]=function(p){var g=this.clone();return g.__iteratees__.push({iteratee:ye(p,3),type:a}),g.__filtered__=g.__filtered__||u,g}}),$t(["head","last"],function(e,t){var a="take"+(t?"Right":"");Te.prototype[e]=function(){return this[a](1).value()[0]}}),$t(["initial","tail"],function(e,t){var a="drop"+(t?"":"Right");Te.prototype[e]=function(){return this.__filtered__?new Te(this):this[a](1)}}),Te.prototype.compact=function(){return this.filter(Vt)},Te.prototype.find=function(e){return this.filter(e).head()},Te.prototype.findLast=function(e){return this.reverse().find(e)},Te.prototype.invokeMap=Me(function(e,t){return typeof e=="function"?new Te(this):this.map(function(a){return li(a,e,t)})}),Te.prototype.reject=function(e){return this.filter(_o(ye(e)))},Te.prototype.slice=function(e,t){e=Ce(e);var a=this;return a.__filtered__&&(e>0||t<0)?new Te(a):(e<0?a=a.takeRight(-e):e&&(a=a.drop(e)),t!==n&&(t=Ce(t),a=t<0?a.dropRight(-t):a.take(t-e)),a)},Te.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Te.prototype.toArray=function(){return this.take(K)},wr(Te.prototype,function(e,t){var a=/^(?:filter|find|map|reject)|While$/.test(t),u=/^(?:head|last)$/.test(t),p=f[u?"take"+(t=="last"?"Right":""):t],g=u||/^find/.test(t);p&&(f.prototype[t]=function(){var x=this.__wrapped__,I=u?[1]:arguments,R=x instanceof Te,Y=I[0],X=R||Ne(x),ee=function(Ae){var Pe=p.apply(f,Pr([Ae],I));return u&&ce?Pe[0]:Pe};X&&a&&typeof Y=="function"&&Y.length!=1&&(R=X=!1);var ce=this.__chain__,be=!!this.__actions__.length,Ie=g&&!ce,Re=R&&!be;if(!g&&X){x=Re?x:new Te(this);var xe=e.apply(x,I);return xe.__actions__.push({func:bo,args:[ee],thisArg:n}),new er(xe,ce)}return Ie&&Re?e.apply(this,I):(xe=this.thru(ee),Ie?u?xe.value()[0]:xe.value():xe)})}),$t(["pop","push","shift","sort","splice","unshift"],function(e){var t=Wi[e],a=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",u=/^(?:pop|shift)$/.test(e);f.prototype[e]=function(){var p=arguments;if(u&&!this.__chain__){var g=this.value();return t.apply(Ne(g)?g:[],p)}return this[a](function(x){return t.apply(Ne(x)?x:[],p)})}}),wr(Te.prototype,function(e,t){var a=f[t];if(a){var u=a.name+"";Fe.call(kn,u)||(kn[u]=[]),kn[u].push({name:t,func:a})}}),kn[uo(n,_).name]=[{name:"wrapper",func:n}],Te.prototype.clone=Xg,Te.prototype.reverse=Qg,Te.prototype.value=Jg,f.prototype.at=Nb,f.prototype.chain=Cb,f.prototype.commit=Rb,f.prototype.next=Mb,f.prototype.plant=Db,f.prototype.reverse=Ab,f.prototype.toJSON=f.prototype.valueOf=f.prototype.value=Tb,f.prototype.first=f.prototype.head,ti&&(f.prototype[ti]=zb),f}),In=Rg();Jr?((Jr.exports=In)._=In,ba._=In):St._=In}).call(Fx)})(wi,wi.exports)),wi.exports}var Bo=Hx();const qo={session:{"webforms.renderer.showPopOver":!0,"webforms.renderer.showUnsavedPopOver":!0,"webforms.tooltip.behavior":ht.ETooltipBehavior.SHOW_AFTER_TIMEOUT,"webforms.tooltip.timeout":3e3,"studio.tips":!0,"welcometour.active":!0,"studio.enablePreview":!1},project:{"webforms.renderer.indexPage":"","webforms.display-mode":"neutral"}},Wx=r=>[{name:At.FolderRootPath.WEBFORMS,path:At.FolderRootPath.WEBFORMS,type:At.FileFolderType.FOLDER,error:null,flags:{expanded:!1,loading:!1,cached:!1},config:{},isRoot:!0,children:r.map(i=>({name:i.name,path:`${At.FolderRootPath.WEBFORMS}/${i.name}`,type:At.FileFolderType.WEBFORM,ext:"WebForm",error:null,flags:{},config:{}}))}],$x=({tabPath:r=null,preferences:i={},qodly:n=!0,explorer:o,webforms:s=[]})=>{var d,h,v;const l=s.length?s:((v=(h=(d=o==null?void 0:o.find(m=>m.path===At.FolderRootPath.WEBFORMS))==null?void 0:d.children)==null?void 0:h.filter(m=>(m==null?void 0:m.ext)==="WebForm"))==null?void 0:v.map(m=>({name:m.name})))??[],c={session:{...qo.session,...i.session??{}},project:{...qo.project,...i.project??{}}};return{tabPath:r,preferences:c,qodly:n,explorer:o??Wx(l),webforms:l}};function Op(r,i){return r.reduce((n,o)=>n||(o.path===i?o:o.children?Op(o.children,i):null),null)}function Kx(r,i){switch(i.type){case"SET_TAB_PATH":return{...r,tabPath:i.payload};case"SET_PREFERENCES":return{...r,preferences:i.payload};case"SET_QODLY":return{...r,qodly:i.payload};case"SET_EXPLORER":return{...r,explorer:i.payload};case"SET_WEBFORMS":return{...r,webforms:i.payload};case"SET_SETTING":{const{path:n,settingsKey:o,value:s}=i.payload;return{...r,preferences:{...r.preferences,[n]:{...r.preferences[n]??{},[o]:s}}}}case"SET_SETTINGS_AS_TEXT":{const{path:n,settings:o}=i.payload;return{...r,preferences:{...r.preferences,[n]:o}}}default:return r}}const Np=y.createContext(null),Cp=({children:r,tabPath:i,preferences:n,qodly:o,explorer:s,webforms:l,onFetchFolderContentWithoutExpanding:c,onCreateNewFileAndOpen:d,onOpenModal:h,onChange:v})=>{const[m,w]=y.useReducer(Kx,$x({tabPath:i,preferences:n,qodly:o,explorer:s,webforms:l}));At.useDidMountEffect(()=>{v==null||v(m.preferences)},[m.preferences,v]),y.useEffect(()=>{i!==void 0&&m.tabPath!==i&&w({type:"SET_TAB_PATH",payload:i})},[i,m.tabPath]),y.useEffect(()=>{n!==void 0&&!Bo.isEqual(m.preferences,n)&&w({type:"SET_PREFERENCES",payload:{session:{...qo.session,...n.session??{}},project:{...qo.project,...n.project??{}}}})},[n]),y.useEffect(()=>{o!==void 0&&m.qodly!==o&&w({type:"SET_QODLY",payload:o})},[o,m.qodly]),y.useEffect(()=>{s&&(Bo.isEqual(m.explorer,s)||w({type:"SET_EXPLORER",payload:s}))},[s,m.explorer]),y.useEffect(()=>{l!==void 0&&!Bo.isEqual(m.webforms,l)&&w({type:"SET_WEBFORMS",payload:l})},[l,m.webforms]);const S=y.useMemo(()=>({onFetchFolderContentWithoutExpanding:c,onCreateNewFileAndOpen:d,onOpenModal:h}),[c,d,h]);return b.jsx(Np.Provider,{value:{state:m,dispatch:w,externalActions:S},children:r})};function Rp(r){const i=y.useContext(Np);if(!i)throw new Error("useReducerAdapter must be used within a ReducerAdapterProvider");const{state:n,dispatch:o,externalActions:s}=i;return{getTabPath:y.useCallback(()=>r??n.tabPath,[r,n.tabPath]),getPreferences:y.useCallback(()=>n.preferences,[n.preferences]),getQodly:y.useCallback(()=>n.qodly,[n.qodly]),getFeatureFlag:y.useCallback(l=>l==="states"?!0:!!n.preferences.session[`features.experimental.${l}`],[n.preferences.session]),getExplorer:y.useCallback(()=>n.explorer,[n.explorer]),getWebForms:y.useCallback(()=>n.webforms,[n.webforms]),findNodeByPath:y.useCallback(l=>Op(n.explorer,l),[n.explorer]),actions:{setSetting:y.useCallback(l=>{o({type:"SET_SETTING",payload:l})},[]),setSettingsAsText:y.useCallback(l=>{o({type:"SET_SETTINGS_AS_TEXT",payload:l})},[]),fetchFolderContentWithoutExpanding:y.useCallback(async l=>s.onFetchFolderContentWithoutExpanding?s.onFetchFolderContentWithoutExpanding(l):Promise.reject(new Error("ReducerAdapterProvider must receive onFetchFolderContentWithoutExpanding when using features that load folder content (e.g. WebformSelector).")),[s]),createNewFileAndOpen:y.useCallback(async l=>s.onCreateNewFileAndOpen?s.onCreateNewFileAndOpen(l):Promise.reject(new Error("ReducerAdapterProvider must receive onCreateNewFileAndOpen when using features that create new files (e.g. WebformSelector).")),[s]),openModal:y.useCallback(async l=>s.onOpenModal?s.onOpenModal(l):typeof window<"u"&&l.type===At.ModalType.CONFIRM?{confirmed:window.confirm(l.message)}:{confirmed:!0},[s])}}}const Ux=({name:r,value:i,defaultValue:n,options:o,onChange:s,setTouched:l})=>{const[c,d]=y.useState(n),h=i??c;return b.jsx("div",{role:"radiogroup","aria-label":r,className:"flex items-center gap-1",children:o.map(v=>{const m=h===v.value;return b.jsx("button",{type:"button",role:"radio",name:r,"aria-checked":m,title:v.tooltip,onClick:()=>{var w;l==null||l(!0),d(v.value),s==null||s(v.value),(w=v.onClick)==null||w.call(v,v.value)},className:`inline-flex h-7 w-7 items-center justify-center rounded transition-colors ${m?"text-grey-50":"text-grey-300 hover:text-grey-100"}`,children:y.createElement(v.icon,{className:"h-4 w-4"})},v.value)})})},Gx=({icon:r,label:i,path:n,settingsKey:o,options:s})=>{var d;const l=ki(),c=(d=l.getPreferences()[n])==null?void 0:d[o];return b.jsx("div",{className:"select-none space-y-4 rounded-md p-4 hover:bg-primary-hover",children:b.jsxs("div",{className:"flex items-center",children:[b.jsx("span",{className:"mr-3 flex h-6 w-6 items-center justify-center",children:y.createElement(r,{className:"w-full h-full"})}),b.jsx("div",{className:"text-sm",children:i}),b.jsx("span",{className:"ml-auto",children:b.jsx(Ux,{name:"tooltip-behavior",value:c,onChange:h=>{l.actions.setSetting({path:n,settingsKey:o,value:h})},options:s})})]})})};(function(){try{const r=document.createElement("style");r.setAttribute("data-vite-dev-id","ui-components.css"),r.textContent=`/*! tailwindcss v4.1.18 | MIT License | https://tailwindcss.com */@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-space-y-reverse:0;--tw-space-x-reverse:0;--tw-border-style:solid;--tw-gradient-position:initial;--tw-gradient-from:#0000;--tw-gradient-via:#0000;--tw-gradient-to:#0000;--tw-gradient-stops:initial;--tw-gradient-via-stops:initial;--tw-gradient-from-position:0%;--tw-gradient-via-position:50%;--tw-gradient-to-position:100%;--tw-leading:initial;--tw-font-weight:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-outline-style:solid;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-duration:initial;--tw-ease:initial}}:root:not(#\\#),:host:not(#\\#){--color-green-500:oklch(72.3% .219 149.579);--color-blue-500:oklch(62.3% .214 259.815);--color-pink-500:oklch(65.6% .241 354.308);--color-gray-50:oklch(98.5% .002 247.839);--color-gray-100:oklch(96.7% .003 264.542);--color-gray-400:oklch(70.7% .022 261.325);--color-gray-500:oklch(55.1% .027 264.364);--color-gray-800:oklch(27.8% .033 256.848);--color-white:#fff;--spacing:.25rem;--container-md:28rem;--text-xs:.65rem;--text-xs--line-height:calc(1/.75);--text-sm:.875rem;--text-sm--line-height:calc(1.25/.875);--text-base:1rem;--text-base--line-height: 1.5 ;--text-lg:1.125rem;--text-lg--line-height:calc(1.75/1.125);--text-xl:1.25rem;--text-xl--line-height:calc(1.75/1.25);--text-2xl:1.5rem;--text-2xl--line-height:calc(2/1.5);--text-3xl:1.875rem;--text-3xl--line-height: 1.2 ;--text-4xl:2.25rem;--text-4xl--line-height:calc(2.5/2.25);--text-5xl:3rem;--text-5xl--line-height:1;--text-6xl:3.75rem;--text-6xl--line-height:1;--text-7xl:4.5rem;--text-7xl--line-height:1;--text-8xl:6rem;--text-8xl--line-height:1;--text-9xl:8rem;--text-9xl--line-height:1;--font-weight-thin:100;--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--radius-xs:.125rem;--radius-md:.375rem;--radius-lg:.5rem;--ease-out:cubic-bezier(0,0,.2,1);--ease-in-out:cubic-bezier(.4,0,.2,1);--animate-bounce:bounce 1s infinite;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4,0,.2,1);--color-grey-50:var(--ws-grey-50);--color-grey-100:var(--ws-grey-100);--color-grey-200:var(--ws-grey-200);--color-grey-300:var(--ws-grey-300);--color-grey-400:var(--ws-grey-400);--color-grey-500:var(--ws-grey-500);--color-grey-600:var(--ws-grey-600);--color-grey-700:var(--ws-grey-700);--color-grey-800:var(--ws-grey-800);--color-primary-500:var(--ws-primary-500);--color-primary-600:var(--ws-primary-600);--color-primary-700:var(--ws-primary-700);--color-positive-200:var(--ws-positive-200);--color-positive-400:var(--ws-positive-400);--color-positive-500:var(--ws-positive-500);--color-positive-600:var(--ws-positive-600);--color-warning-500:var(--ws-warning-500);--color-negative-400:var(--ws-negative-400);--color-negative-500:var(--ws-negative-500);--text-xxs:.55rem;--text-s:.75rem;--min-height-6:1.5rem;--color-canvas-default:var(--ws-bg-default);--color-canvas-subtle:var(--ws-grey-100);--color-panel:var(--ws-grey-300);--color-panel-subtle:var(--ws-grey-200);--color-card:var(--ws-card-bg);--color-card-border:var(--ws-card-border);--color-body:var(--ws-bg-foreground);--color-body-bg:var(--ws-bg-default);--color-body-light:var(--ws-grey-100);--color-muted:var(--ws-text-muted);--color-neutral:var(--ws-grey-200);--color-button-text:var(--ws-button-fg);--color-primary:var(--ws-primary-default);--color-primary-hover:var(--ws-primary-hover);--color-primary-light:var(--ws-primary-light);--color-primary-dark:var(--ws-primary-dark);--color-positive:var(--ws-positive-500);--color-positive-hover:var(--ws-positive-hover);--color-positive-text:var(--ws-positive-text);--color-positive-bg:var(--ws-positive-bg);--color-positive-light:var(--ws-positive-light);--color-positive-dark:var(--ws-positive-dark);--color-negative:var(--ws-negative-500);--color-negative-hover:var(--ws-negative-hover);--color-negative-text:var(--ws-negative-text);--color-negative-bg:var(--ws-negative-bg);--color-negative-light:var(--ws-negative-light);--color-negative-dark:var(--ws-negative-dark);--color-warning:var(--ws-warning-500);--color-warning-hover:var(--ws-warning-hover);--color-warning-text:var(--ws-warning-text);--color-warning-bg:var(--ws-warning-bg);--color-warning-light:var(--ws-warning-light);--color-warning-dark:var(--ws-warning-dark);--color-input-bg:var(--ws-input-bg);--color-input-border:var(--ws-input-border);--color-input-text:var(--ws-input-text);--color-input-placeholder:var(--ws-input-placeholder);--color-input-focus-border:var(--ws-input-focus-border);--color-select-border:var(--ws-select-border);--color-select-text:var(--ws-select-text);--color-select-list-bg:var(--ws-select-list-bg);--color-input-option-hover-bg:var(--ws-input-option-hover-bg);--color-input-option-active-bg:var(--ws-input-option-active-bg);--color-input-option-active-text:var(--ws-input-option-active-text);--color-input-error-border:var(--ws-input-error-border);--color-input-error-bg:var(--ws-input-error-bg);--color-input-warning-border:var(--ws-input-warning-border);--color-input-warning-bg:var(--ws-input-warning-bg);--color-input-message-bg:var(--ws-input-message-bg);--color-input-message-text:var(--ws-input-message-text);--color-input-disable:var(--ws-disable-input);--color-inactive-text:var(--ws-inactive-text);--color-panel-0:var(--ws-panel-0);--color-panel-1:var(--ws-panel-1);--color-panel-2:var(--ws-panel-2);--color-panel-3:var(--ws-panel-3);--color-panel-4:var(--ws-panel-4);--color-panel-5:var(--ws-panel-5);--color-panel-border-subtle:var(--ws-panel-border-subtle);--color-tab-bg-default:var(--ws-tab-bg-default);--color-tab-border:var(--ws-tab-border);--color-tab-active-bg:var(--ws-tab-active-bg);--color-tab-active-fg:var(--ws-tab-active-fg);--color-tab-inactive-bg:var(--ws-tab-inactive-bg);--color-tab-inactive-fg:var(--ws-tab-inactive-fg);--color-panel-border:var(--ws-panel-border)}.pointer-events-auto:not(#\\#){pointer-events:auto}.pointer-events-none:not(#\\#){pointer-events:none}.collapse:not(#\\#){visibility:collapse}.visible:not(#\\#){visibility:visible}.sr-only:not(#\\#){clip-path:inset(50%);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.absolute:not(#\\#){position:absolute}.fixed:not(#\\#){position:fixed}.relative:not(#\\#){position:relative}.static:not(#\\#){position:static}.inset-0:not(#\\#){inset:calc(var(--spacing)*0)}.-top-1\\/5:not(#\\#){top:-20%}.top-0:not(#\\#){top:calc(var(--spacing)*0)}.top-1:not(#\\#){top:calc(var(--spacing)*1)}.top-full:not(#\\#){top:100%}.-right-12:not(#\\#){right:calc(var(--spacing)*-12)}.-right-px:not(#\\#){right:-1px}.right-0:not(#\\#){right:calc(var(--spacing)*0)}.right-1:not(#\\#){right:calc(var(--spacing)*1)}.bottom-0:not(#\\#){bottom:calc(var(--spacing)*0)}.bottom-full:not(#\\#){bottom:100%}.-left-px:not(#\\#){left:-1px}.left-0:not(#\\#){left:calc(var(--spacing)*0)}.left-0\\.5:not(#\\#){left:calc(var(--spacing)*.5)}.left-1\\/2:not(#\\#){left:50%}.left-3\\.5:not(#\\#){left:calc(var(--spacing)*3.5)}.left-4:not(#\\#){left:calc(var(--spacing)*4)}.left-4\\.5:not(#\\#){left:calc(var(--spacing)*4.5)}.left-5\\.5:not(#\\#){left:calc(var(--spacing)*5.5)}.left-full:not(#\\#){left:100%}.z-1:not(#\\#){z-index:1}.z-2:not(#\\#){z-index:2}.z-10:not(#\\#){z-index:10}.z-40:not(#\\#){z-index:40}.z-50:not(#\\#){z-index:50}.z-60:not(#\\#){z-index:60}.z-9999:not(#\\#){z-index:9999}.container:not(#\\#){width:100%}@media(min-width:40rem){.container:not(#\\#){max-width:40rem}}@media(min-width:48rem){.container:not(#\\#){max-width:48rem}}@media(min-width:64rem){.container:not(#\\#){max-width:64rem}}@media(min-width:80rem){.container:not(#\\#){max-width:80rem}}@media(min-width:96rem){.container:not(#\\#){max-width:96rem}}.m-0:not(#\\#){margin:calc(var(--spacing)*0)}.m-0\\.5:not(#\\#){margin:calc(var(--spacing)*.5)}.m-px:not(#\\#){margin:1px}.mx-1:not(#\\#){margin-inline:calc(var(--spacing)*1)}.-my-1:not(#\\#){margin-block:calc(var(--spacing)*-1)}.mt-1:not(#\\#){margin-top:calc(var(--spacing)*1)}.mt-2:not(#\\#){margin-top:calc(var(--spacing)*2)}.mt-4:not(#\\#){margin-top:calc(var(--spacing)*4)}.mt-8:not(#\\#){margin-top:calc(var(--spacing)*8)}.mr-1:not(#\\#){margin-right:calc(var(--spacing)*1)}.mr-2:not(#\\#){margin-right:calc(var(--spacing)*2)}.mb-1:not(#\\#){margin-bottom:calc(var(--spacing)*1)}.mb-2:not(#\\#){margin-bottom:calc(var(--spacing)*2)}.mb-4:not(#\\#){margin-bottom:calc(var(--spacing)*4)}.ml-1:not(#\\#){margin-left:calc(var(--spacing)*1)}.ml-1\\.5:not(#\\#){margin-left:calc(var(--spacing)*1.5)}.ml-2:not(#\\#){margin-left:calc(var(--spacing)*2)}.box-border:not(#\\#){box-sizing:border-box}.block:not(#\\#){display:block}.flex:not(#\\#){display:flex}.grid:not(#\\#){display:grid}.hidden:not(#\\#){display:none}.inline:not(#\\#){display:inline}.inline-block:not(#\\#){display:inline-block}.inline-flex:not(#\\#){display:inline-flex}.table:not(#\\#){display:table}.size-1\\.5:not(#\\#){width:calc(var(--spacing)*1.5);height:calc(var(--spacing)*1.5)}.size-1\\.75:not(#\\#){width:calc(var(--spacing)*1.75);height:calc(var(--spacing)*1.75)}.size-2:not(#\\#){width:calc(var(--spacing)*2);height:calc(var(--spacing)*2)}.size-2\\.5:not(#\\#){width:calc(var(--spacing)*2.5);height:calc(var(--spacing)*2.5)}.size-3:not(#\\#){width:calc(var(--spacing)*3);height:calc(var(--spacing)*3)}.size-3\\.5:not(#\\#){width:calc(var(--spacing)*3.5);height:calc(var(--spacing)*3.5)}.size-3\\.25:not(#\\#){width:calc(var(--spacing)*3.25);height:calc(var(--spacing)*3.25)}.size-4:not(#\\#){width:calc(var(--spacing)*4);height:calc(var(--spacing)*4)}.size-5:not(#\\#){width:calc(var(--spacing)*5);height:calc(var(--spacing)*5)}.size-6:not(#\\#){width:calc(var(--spacing)*6);height:calc(var(--spacing)*6)}.size-fit:not(#\\#){width:fit-content;height:fit-content}.h-2:not(#\\#){height:calc(var(--spacing)*2)}.h-3:not(#\\#){height:calc(var(--spacing)*3)}.h-3\\.5:not(#\\#){height:calc(var(--spacing)*3.5)}.h-4:not(#\\#){height:calc(var(--spacing)*4)}.h-4\\.5:not(#\\#){height:calc(var(--spacing)*4.5)}.h-5:not(#\\#){height:calc(var(--spacing)*5)}.h-5\\.5:not(#\\#){height:calc(var(--spacing)*5.5)}.h-6:not(#\\#){height:calc(var(--spacing)*6)}.h-7:not(#\\#){height:calc(var(--spacing)*7)}.h-7\\.5:not(#\\#){height:calc(var(--spacing)*7.5)}.h-8:not(#\\#){height:calc(var(--spacing)*8)}.h-10:not(#\\#){height:calc(var(--spacing)*10)}.h-14:not(#\\#){height:calc(var(--spacing)*14)}.h-20:not(#\\#){height:calc(var(--spacing)*20)}.h-100:not(#\\#){height:calc(var(--spacing)*100)}.h-\\[120px\\]:not(#\\#){height:120px}.h-fit:not(#\\#){height:fit-content}.h-full:not(#\\#){height:100%}.max-h-\\[400px\\]:not(#\\#){max-height:400px}.max-h-full:not(#\\#){max-height:100%}.min-h-5:not(#\\#){min-height:calc(var(--spacing)*5)}.min-h-6:not(#\\#){min-height:var(--min-height-6)}.min-h-7:not(#\\#){min-height:calc(var(--spacing)*7)}.min-h-\\[100px\\]:not(#\\#){min-height:100px}.min-h-fit:not(#\\#){min-height:fit-content}.min-h-screen:not(#\\#){min-height:100vh}.w-0\\.5:not(#\\#){width:calc(var(--spacing)*.5)}.w-1\\/2:not(#\\#){width:50%}.w-3:not(#\\#){width:calc(var(--spacing)*3)}.w-3\\.5:not(#\\#){width:calc(var(--spacing)*3.5)}.w-4:not(#\\#){width:calc(var(--spacing)*4)}.w-5:not(#\\#){width:calc(var(--spacing)*5)}.w-6:not(#\\#){width:calc(var(--spacing)*6)}.w-7:not(#\\#){width:calc(var(--spacing)*7)}.w-8:not(#\\#){width:calc(var(--spacing)*8)}.w-9:not(#\\#){width:calc(var(--spacing)*9)}.w-11:not(#\\#){width:calc(var(--spacing)*11)}.w-16:not(#\\#){width:calc(var(--spacing)*16)}.w-20:not(#\\#){width:calc(var(--spacing)*20)}.w-32:not(#\\#){width:calc(var(--spacing)*32)}.w-48:not(#\\#){width:calc(var(--spacing)*48)}.w-52:not(#\\#){width:calc(var(--spacing)*52)}.w-60:not(#\\#){width:calc(var(--spacing)*60)}.w-64:not(#\\#){width:calc(var(--spacing)*64)}.w-80:not(#\\#){width:calc(var(--spacing)*80)}.w-96:not(#\\#){width:calc(var(--spacing)*96)}.w-fit:not(#\\#){width:fit-content}.w-full:not(#\\#){width:100%}.w-px:not(#\\#){width:1px}.max-w-100:not(#\\#){max-width:calc(var(--spacing)*100)}.max-w-\\[300px\\]:not(#\\#){max-width:300px}.max-w-md:not(#\\#){max-width:var(--container-md)}.min-w-0:not(#\\#){min-width:calc(var(--spacing)*0)}.min-w-3\\.5:not(#\\#){min-width:calc(var(--spacing)*3.5)}.min-w-4\\.5:not(#\\#){min-width:calc(var(--spacing)*4.5)}.min-w-5:not(#\\#){min-width:calc(var(--spacing)*5)}.min-w-7\\.5:not(#\\#){min-width:calc(var(--spacing)*7.5)}.min-w-50:not(#\\#){min-width:calc(var(--spacing)*50)}.min-w-\\[150px\\]:not(#\\#){min-width:150px}.min-w-fit:not(#\\#){min-width:fit-content}.min-w-full:not(#\\#){min-width:100%}.flex-1:not(#\\#){flex:1}.flex-3:not(#\\#){flex:3}.flex-none:not(#\\#){flex:none}.shrink-0:not(#\\#){flex-shrink:0}.origin-top-right:not(#\\#){transform-origin:100% 0}.-translate-x-1\\/2:not(#\\#){--tw-translate-x: -50% ;translate:var(--tw-translate-x)var(--tw-translate-y)}.-translate-x-full:not(#\\#){--tw-translate-x:-100%;translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-x-0:not(#\\#){--tw-translate-x:calc(var(--spacing)*0);translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-x-full:not(#\\#){--tw-translate-x:100%;translate:var(--tw-translate-x)var(--tw-translate-y)}.-translate-y-full:not(#\\#){--tw-translate-y:-100%;translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-y-0:not(#\\#){--tw-translate-y:calc(var(--spacing)*0);translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-y-1\\/2:not(#\\#){--tw-translate-y: 50% ;translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-y-full:not(#\\#){--tw-translate-y:100%;translate:var(--tw-translate-x)var(--tw-translate-y)}.scale-0:not(#\\#){--tw-scale-x:0%;--tw-scale-y:0%;--tw-scale-z:0%;scale:var(--tw-scale-x)var(--tw-scale-y)}.scale-95:not(#\\#){--tw-scale-x:95%;--tw-scale-y:95%;--tw-scale-z:95%;scale:var(--tw-scale-x)var(--tw-scale-y)}.scale-100:not(#\\#){--tw-scale-x:100%;--tw-scale-y:100%;--tw-scale-z:100%;scale:var(--tw-scale-x)var(--tw-scale-y)}.scale-110:not(#\\#){--tw-scale-x:110%;--tw-scale-y:110%;--tw-scale-z:110%;scale:var(--tw-scale-x)var(--tw-scale-y)}.-rotate-45:not(#\\#){rotate:-45deg}.rotate-45:not(#\\#){rotate:45deg}.rotate-90:not(#\\#){rotate:90deg}.rotate-180:not(#\\#){rotate:180deg}.transform:not(#\\#){transform:var(--tw-rotate-x,)var(--tw-rotate-y,)var(--tw-rotate-z,)var(--tw-skew-x,)var(--tw-skew-y,)}.animate-bounce:not(#\\#){animation:var(--animate-bounce)}.cursor-auto:not(#\\#){cursor:auto}.cursor-not-allowed:not(#\\#){cursor:not-allowed}.cursor-pointer:not(#\\#){cursor:pointer}.cursor-se-resize:not(#\\#){cursor:se-resize}.resize:not(#\\#){resize:both}.resize-none:not(#\\#){resize:none}.list-disc:not(#\\#){list-style-type:disc}.appearance-none:not(#\\#){-webkit-appearance:none;-moz-appearance:none;appearance:none}.grid-cols-2:not(#\\#){grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-3:not(#\\#){grid-template-columns:repeat(3,minmax(0,1fr))}.flex-col:not(#\\#){flex-direction:column}.flex-row:not(#\\#){flex-direction:row}.flex-wrap:not(#\\#){flex-wrap:wrap}.place-content-center:not(#\\#){place-content:center}.place-items-center:not(#\\#){place-items:center}.items-center:not(#\\#){align-items:center}.items-end:not(#\\#){align-items:flex-end}.items-start:not(#\\#){align-items:flex-start}.justify-around:not(#\\#){justify-content:space-around}.justify-between:not(#\\#){justify-content:space-between}.justify-center:not(#\\#){justify-content:center}.gap-0\\.5:not(#\\#){gap:calc(var(--spacing)*.5)}.gap-1:not(#\\#){gap:calc(var(--spacing)*1)}.gap-1\\.5:not(#\\#){gap:calc(var(--spacing)*1.5)}.gap-2:not(#\\#){gap:calc(var(--spacing)*2)}.gap-2\\.5:not(#\\#){gap:calc(var(--spacing)*2.5)}.gap-3:not(#\\#){gap:calc(var(--spacing)*3)}.gap-4:not(#\\#){gap:calc(var(--spacing)*4)}.gap-6:not(#\\#){gap:calc(var(--spacing)*6)}.gap-8:not(#\\#){gap:calc(var(--spacing)*8)}.gap-10:not(#\\#){gap:calc(var(--spacing)*10)}.gap-14:not(#\\#){gap:calc(var(--spacing)*14)}:where(.space-y-1>:not(:last-child)):not(#\\#){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*1)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*1)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-2>:not(:last-child)):not(#\\#){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*2)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*2)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-3>:not(:last-child)):not(#\\#){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*3)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*3)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-4>:not(:last-child)):not(#\\#){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*4)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*4)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-5>:not(:last-child)):not(#\\#){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*5)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*5)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-6>:not(:last-child)):not(#\\#){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*6)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*6)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-8>:not(:last-child)):not(#\\#){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*8)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*8)*calc(1 - var(--tw-space-y-reverse)))}.gap-x-1:not(#\\#){column-gap:calc(var(--spacing)*1)}.gap-x-2:not(#\\#){column-gap:calc(var(--spacing)*2)}.gap-x-3:not(#\\#){column-gap:calc(var(--spacing)*3)}.gap-x-4:not(#\\#){column-gap:calc(var(--spacing)*4)}.gap-x-20:not(#\\#){column-gap:calc(var(--spacing)*20)}:where(.space-x-4>:not(:last-child)):not(#\\#){--tw-space-x-reverse:0;margin-inline-start:calc(calc(var(--spacing)*4)*var(--tw-space-x-reverse));margin-inline-end:calc(calc(var(--spacing)*4)*calc(1 - var(--tw-space-x-reverse)))}.truncate:not(#\\#){text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-hidden:not(#\\#){overflow:hidden}.overflow-y-auto:not(#\\#){overflow-y:auto}.rounded:not(#\\#){border-radius:.25rem}.rounded-full:not(#\\#){border-radius:3.40282e38px}.rounded-lg:not(#\\#){border-radius:var(--radius-lg)}.rounded-md:not(#\\#){border-radius:var(--radius-md)}.rounded-xs:not(#\\#){border-radius:var(--radius-xs)}.rounded-t:not(#\\#){border-top-left-radius:.25rem;border-top-right-radius:.25rem}.rounded-b:not(#\\#){border-bottom-right-radius:.25rem;border-bottom-left-radius:.25rem}.rounded-b-none:not(#\\#){border-bottom-right-radius:0;border-bottom-left-radius:0}.border:not(#\\#){border-style:var(--tw-border-style);border-width:1px}.border-0:not(#\\#){border-style:var(--tw-border-style);border-width:0}.border-2:not(#\\#){border-style:var(--tw-border-style);border-width:2px}.border-px:not(#\\#){border-width:1px}.divide:not(#\\#){border-width:.5px}.border-t:not(#\\#){border-top-style:var(--tw-border-style);border-top-width:1px}.border-t-0:not(#\\#){border-top-style:var(--tw-border-style);border-top-width:0}.border-r:not(#\\#){border-right-style:var(--tw-border-style);border-right-width:1px}.border-b:not(#\\#){border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-b-0:not(#\\#){border-bottom-style:var(--tw-border-style);border-bottom-width:0}.border-dashed:not(#\\#){--tw-border-style:dashed;border-style:dashed}.border-body:not(#\\#){border-color:var(--color-body)}.border-body-light:not(#\\#){border-color:var(--color-body-light)}.border-canvas-default:not(#\\#){border-color:var(--color-canvas-default)}.border-card-border:not(#\\#){border-color:var(--color-card-border)}.border-grey-100:not(#\\#){border-color:var(--color-grey-100)}.border-grey-200:not(#\\#){border-color:var(--color-grey-200)}.border-input-border:not(#\\#){border-color:var(--color-input-border)}.border-input-disable:not(#\\#){border-color:var(--color-input-disable)}.border-input-error-border:not(#\\#){border-color:var(--color-input-error-border)}.border-input-focus-border:not(#\\#){border-color:var(--color-input-focus-border)}.border-input-warning-border:not(#\\#){border-color:var(--color-input-warning-border)}.border-negative:not(#\\#){border-color:var(--color-negative)}.border-negative-500:not(#\\#){border-color:var(--color-negative-500)}.border-neutral:not(#\\#){border-color:var(--color-neutral)}.border-panel:not(#\\#){border-color:var(--color-panel)}.border-panel-border:not(#\\#){border-color:var(--color-panel-border)}.border-panel-border-subtle:not(#\\#){border-color:var(--color-panel-border-subtle)}.border-panel-subtle:not(#\\#){border-color:var(--color-panel-subtle)}.border-positive:not(#\\#){border-color:var(--color-positive)}.border-positive-text:not(#\\#){border-color:var(--color-positive-text)}.border-primary:not(#\\#){border-color:var(--color-primary)}.border-primary-700:not(#\\#){border-color:var(--color-primary-700)}.border-primary-hover:not(#\\#){border-color:var(--color-primary-hover)}.border-select-border:not(#\\#){border-color:var(--color-select-border)}.border-tab-border:not(#\\#){border-color:var(--color-tab-border)}.border-transparent:not(#\\#){border-color:#0000}.border-warning:not(#\\#){border-color:var(--color-warning)}.border-warning-bg:not(#\\#){border-color:var(--color-warning-bg)}.border-white:not(#\\#){border-color:var(--color-white)}.bg-blue-500:not(#\\#){background-color:var(--color-blue-500)}.bg-body:not(#\\#){background-color:var(--color-body)}.bg-body-bg:not(#\\#){background-color:var(--color-body-bg)}.bg-canvas-default:not(#\\#){background-color:var(--color-canvas-default)}.bg-canvas-subtle:not(#\\#){background-color:var(--color-canvas-subtle)}.bg-card:not(#\\#){background-color:var(--color-card)}.bg-gray-100:not(#\\#){background-color:var(--color-gray-100)}.bg-grey-50:not(#\\#){background-color:var(--color-grey-50)}.bg-grey-200:not(#\\#){background-color:var(--color-grey-200)}.bg-grey-300:not(#\\#){background-color:var(--color-grey-300)}.bg-grey-400:not(#\\#){background-color:var(--color-grey-400)}.bg-grey-500:not(#\\#){background-color:var(--color-grey-500)}.bg-grey-600:not(#\\#){background-color:var(--color-grey-600)}.bg-grey-700:not(#\\#){background-color:var(--color-grey-700)}.bg-grey-800:not(#\\#){background-color:var(--color-grey-800)}.bg-input-bg:not(#\\#){background-color:var(--color-input-bg)}.bg-input-border:not(#\\#){background-color:var(--color-input-border)}.bg-input-disable:not(#\\#){background-color:var(--color-input-disable)}.bg-input-error-bg:not(#\\#){background-color:var(--color-input-error-bg)}.bg-input-message-bg:not(#\\#){background-color:var(--color-input-message-bg)}.bg-input-option-active-bg:not(#\\#){background-color:var(--color-input-option-active-bg)}.bg-input-option-hover-bg:not(#\\#){background-color:var(--color-input-option-hover-bg)}.bg-input-text:not(#\\#){background-color:var(--color-input-text)}.bg-input-warning-bg:not(#\\#){background-color:var(--color-input-warning-bg)}.bg-negative:not(#\\#){background-color:var(--color-negative)}.bg-negative-400:not(#\\#){background-color:var(--color-negative-400)}.bg-negative-500:not(#\\#){background-color:var(--color-negative-500)}.bg-negative-bg:not(#\\#){background-color:var(--color-negative-bg)}.bg-negative-hover:not(#\\#){background-color:var(--color-negative-hover)}.bg-negative-light:not(#\\#){background-color:var(--color-negative-light)}.bg-panel:not(#\\#){background-color:var(--color-panel)}.bg-panel-0:not(#\\#){background-color:var(--color-panel-0)}.bg-panel-1:not(#\\#){background-color:var(--color-panel-1)}.bg-panel-2:not(#\\#){background-color:var(--color-panel-2)}.bg-panel-3:not(#\\#){background-color:var(--color-panel-3)}.bg-panel-4:not(#\\#){background-color:var(--color-panel-4)}.bg-panel-5:not(#\\#){background-color:var(--color-panel-5)}.bg-panel-subtle:not(#\\#){background-color:var(--color-panel-subtle)}.bg-positive:not(#\\#){background-color:var(--color-positive)}.bg-positive-200:not(#\\#){background-color:var(--color-positive-200)}.bg-positive-500:not(#\\#){background-color:var(--color-positive-500)}.bg-positive-bg:not(#\\#){background-color:var(--color-positive-bg)}.bg-positive-hover:not(#\\#){background-color:var(--color-positive-hover)}.bg-positive-light:not(#\\#){background-color:var(--color-positive-light)}.bg-primary:not(#\\#){background-color:var(--color-primary)}.bg-primary-500:not(#\\#){background-color:var(--color-primary-500)}.bg-primary-600:not(#\\#){background-color:var(--color-primary-600)}.bg-primary-hover:not(#\\#){background-color:var(--color-primary-hover)}.bg-primary-light:not(#\\#){background-color:var(--color-primary-light)}.bg-primary\\/30:not(#\\#){background-color:var(--color-primary)}@supports (color:color-mix(in lab,red,red)){.bg-primary\\/30:not(#\\#){background-color:color-mix(in oklab,var(--color-primary)30%,transparent)}}.bg-select-list-bg:not(#\\#){background-color:var(--color-select-list-bg)}.bg-tab-active-bg:not(#\\#){background-color:var(--color-tab-active-bg)}.bg-tab-bg-default:not(#\\#){background-color:var(--color-tab-bg-default)}.bg-tab-inactive-bg:not(#\\#){background-color:var(--color-tab-inactive-bg)}.bg-transparent:not(#\\#){background-color:#0000}.bg-warning:not(#\\#){background-color:var(--color-warning)}.bg-warning-500:not(#\\#){background-color:var(--color-warning-500)}.bg-warning-bg:not(#\\#){background-color:var(--color-warning-bg)}.bg-warning-hover:not(#\\#){background-color:var(--color-warning-hover)}.bg-warning-light:not(#\\#){background-color:var(--color-warning-light)}.bg-white:not(#\\#){background-color:var(--color-white)}.bg-linear-to-r:not(#\\#){--tw-gradient-position:to right}@supports (background-image:linear-gradient(in lab,red,red)){.bg-linear-to-r:not(#\\#){--tw-gradient-position:to right in oklab}}.bg-linear-to-r:not(#\\#){background-image:linear-gradient(var(--tw-gradient-stops))}.from-green-500:not(#\\#){--tw-gradient-from:var(--color-green-500);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.from-primary:not(#\\#){--tw-gradient-from:var(--color-primary);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.to-blue-500:not(#\\#){--tw-gradient-to:var(--color-blue-500);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.to-pink-500:not(#\\#){--tw-gradient-to:var(--color-pink-500);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.stroke-current:not(#\\#){stroke:currentColor}.p-0:not(#\\#){padding:calc(var(--spacing)*0)}.p-0\\.5:not(#\\#){padding:calc(var(--spacing)*.5)}.p-1:not(#\\#){padding:calc(var(--spacing)*1)}.p-1\\!{padding:calc(var(--spacing)*1)!important}.p-1\\.5:not(#\\#){padding:calc(var(--spacing)*1.5)}.p-2:not(#\\#){padding:calc(var(--spacing)*2)}.p-2\\.5:not(#\\#){padding:calc(var(--spacing)*2.5)}.p-3:not(#\\#){padding:calc(var(--spacing)*3)}.p-4:not(#\\#){padding:calc(var(--spacing)*4)}.p-6:not(#\\#){padding:calc(var(--spacing)*6)}.p-8:not(#\\#){padding:calc(var(--spacing)*8)}.p-10:not(#\\#){padding:calc(var(--spacing)*10)}.p-50:not(#\\#){padding:calc(var(--spacing)*50)}.p-px:not(#\\#){padding:1px}.px-0\\.5:not(#\\#){padding-inline:calc(var(--spacing)*.5)}.px-1:not(#\\#){padding-inline:calc(var(--spacing)*1)}.px-1\\.5:not(#\\#){padding-inline:calc(var(--spacing)*1.5)}.px-2:not(#\\#){padding-inline:calc(var(--spacing)*2)}.px-3:not(#\\#){padding-inline:calc(var(--spacing)*3)}.px-4:not(#\\#){padding-inline:calc(var(--spacing)*4)}.px-6:not(#\\#){padding-inline:calc(var(--spacing)*6)}.px-7:not(#\\#){padding-inline:calc(var(--spacing)*7)}.px-8:not(#\\#){padding-inline:calc(var(--spacing)*8)}.py-0\\.5:not(#\\#){padding-block:calc(var(--spacing)*.5)}.py-1:not(#\\#){padding-block:calc(var(--spacing)*1)}.py-1\\.5:not(#\\#){padding-block:calc(var(--spacing)*1.5)}.py-2:not(#\\#){padding-block:calc(var(--spacing)*2)}.py-3:not(#\\#){padding-block:calc(var(--spacing)*3)}.pt-0\\.5:not(#\\#){padding-top:calc(var(--spacing)*.5)}.pt-1:not(#\\#){padding-top:calc(var(--spacing)*1)}.pt-1\\.5:not(#\\#){padding-top:calc(var(--spacing)*1.5)}.pt-2:not(#\\#){padding-top:calc(var(--spacing)*2)}.pl-1:not(#\\#){padding-left:calc(var(--spacing)*1)}.pl-4:not(#\\#){padding-left:calc(var(--spacing)*4)}.text-center:not(#\\#){text-align:center}.text-left:not(#\\#){text-align:left}.text-2xl:not(#\\#){font-size:var(--text-2xl);line-height:var(--tw-leading,var(--text-2xl--line-height))}.text-3xl:not(#\\#){font-size:var(--text-3xl);line-height:var(--tw-leading,var(--text-3xl--line-height))}.text-4xl:not(#\\#){font-size:var(--text-4xl);line-height:var(--tw-leading,var(--text-4xl--line-height))}.text-5xl:not(#\\#){font-size:var(--text-5xl);line-height:var(--tw-leading,var(--text-5xl--line-height))}.text-6xl:not(#\\#){font-size:var(--text-6xl);line-height:var(--tw-leading,var(--text-6xl--line-height))}.text-7xl:not(#\\#){font-size:var(--text-7xl);line-height:var(--tw-leading,var(--text-7xl--line-height))}.text-8xl:not(#\\#){font-size:var(--text-8xl);line-height:var(--tw-leading,var(--text-8xl--line-height))}.text-9xl:not(#\\#){font-size:var(--text-9xl);line-height:var(--tw-leading,var(--text-9xl--line-height))}.text-base:not(#\\#){font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.text-lg:not(#\\#){font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm:not(#\\#){font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xl:not(#\\#){font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}.text-xs:not(#\\#){font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.text-s:not(#\\#){font-size:var(--text-s)}.text-xxs:not(#\\#){font-size:var(--text-xxs)}.leading-3:not(#\\#){--tw-leading:calc(var(--spacing)*3);line-height:calc(var(--spacing)*3)}.leading-4:not(#\\#){--tw-leading:calc(var(--spacing)*4);line-height:calc(var(--spacing)*4)}.leading-5:not(#\\#){--tw-leading:calc(var(--spacing)*5);line-height:calc(var(--spacing)*5)}.leading-none:not(#\\#){--tw-leading:1;line-height:1}.font-bold:not(#\\#){--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-medium:not(#\\#){--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-semibold:not(#\\#){--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.font-thin:not(#\\#){--tw-font-weight:var(--font-weight-thin);font-weight:var(--font-weight-thin)}.whitespace-nowrap:not(#\\#){white-space:nowrap}.text-body:not(#\\#){color:var(--color-body)}.text-button-text:not(#\\#){color:var(--color-button-text)}.text-gray-50:not(#\\#){color:var(--color-gray-50)}.text-gray-400:not(#\\#){color:var(--color-gray-400)}.text-gray-500:not(#\\#){color:var(--color-gray-500)}.text-gray-800:not(#\\#){color:var(--color-gray-800)}.text-grey-100:not(#\\#){color:var(--color-grey-100)}.text-grey-200:not(#\\#){color:var(--color-grey-200)}.text-grey-300:not(#\\#){color:var(--color-grey-300)}.text-grey-700:not(#\\#){color:var(--color-grey-700)}.text-inactive-text:not(#\\#){color:var(--color-inactive-text)}.text-inherit:not(#\\#){color:inherit}.text-input-disable:not(#\\#){color:var(--color-input-disable)}.text-input-message-text:not(#\\#){color:var(--color-input-message-text)}.text-input-option-active-text:not(#\\#){color:var(--color-input-option-active-text)}.text-input-placeholder:not(#\\#){color:var(--color-input-placeholder)}.text-input-text:not(#\\#){color:var(--color-input-text)}.text-muted:not(#\\#){color:var(--color-muted)}.text-negative:not(#\\#){color:var(--color-negative)}.text-negative-500:not(#\\#){color:var(--color-negative-500)}.text-negative-dark:not(#\\#){color:var(--color-negative-dark)}.text-negative-text:not(#\\#){color:var(--color-negative-text)}.text-panel-subtle:not(#\\#){color:var(--color-panel-subtle)}.text-positive:not(#\\#){color:var(--color-positive)}.text-positive-500:not(#\\#){color:var(--color-positive-500)}.text-positive-600:not(#\\#){color:var(--color-positive-600)}.text-positive-dark:not(#\\#){color:var(--color-positive-dark)}.text-positive-text:not(#\\#),.text-positive-text\\/70:not(#\\#){color:var(--color-positive-text)}@supports (color:color-mix(in lab,red,red)){.text-positive-text\\/70:not(#\\#){color:color-mix(in oklab,var(--color-positive-text)70%,transparent)}}.text-primary:not(#\\#){color:var(--color-primary)}.text-primary-dark:not(#\\#){color:var(--color-primary-dark)}.text-primary-hover:not(#\\#){color:var(--color-primary-hover)}.text-select-text:not(#\\#){color:var(--color-select-text)}.text-tab-active-fg:not(#\\#){color:var(--color-tab-active-fg)}.text-tab-inactive-fg:not(#\\#){color:var(--color-tab-inactive-fg)}.text-warning:not(#\\#){color:var(--color-warning)}.text-warning-dark:not(#\\#){color:var(--color-warning-dark)}.text-warning-text:not(#\\#){color:var(--color-warning-text)}.capitalize:not(#\\#){text-transform:capitalize}.lowercase:not(#\\#){text-transform:lowercase}.uppercase:not(#\\#){text-transform:uppercase}.italic:not(#\\#){font-style:italic}.underline:not(#\\#){text-decoration-line:underline}.decoration-transparent:not(#\\#){text-decoration-color:#0000}.opacity-0:not(#\\#){opacity:0}.opacity-50:not(#\\#){opacity:.5}.opacity-60:not(#\\#){opacity:.6}.opacity-80:not(#\\#){opacity:.8}.opacity-100:not(#\\#){opacity:1}.shadow:not(#\\#){--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-inner:not(#\\#){--tw-shadow:inset 0 2px 4px 0 var(--tw-shadow-color,#0000000d);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-lg:not(#\\#){--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a),0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-md:not(#\\#){--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,#0000001a),0 2px 4px -2px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-xs:not(#\\#){--tw-shadow:0 1px 2px 0 var(--tw-shadow-color,#0000000d);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring-0:not(#\\#){--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(0px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring-1:not(#\\#){--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(1px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring-input-error-border:not(#\\#){--tw-ring-color:var(--color-input-error-border)}.ring-input-focus-border:not(#\\#){--tw-ring-color:var(--color-input-focus-border)}.ring-input-warning-border:not(#\\#){--tw-ring-color:var(--color-input-warning-border)}.ring-positive:not(#\\#){--tw-ring-color:var(--color-positive)}.outline-hidden:not(#\\#){--tw-outline-style:none;outline-style:none}@media(forced-colors:active){.outline-hidden:not(#\\#){outline-offset:2px;outline:2px solid #0000}}.outline:not(#\\#),.outline-1:not(#\\#){outline-style:var(--tw-outline-style);outline-width:1px}.outline-s:not(#\\#){outline-width:.5px}.outline-xs:not(#\\#){outline-width:.3px}.outline-xxs:not(#\\#){outline-width:.1px}.outline-canvas-default:not(#\\#){outline-color:var(--color-canvas-default)}.outline-primary:not(#\\#){outline-color:var(--color-primary)}.blur:not(#\\#){--tw-blur:blur(8px);filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}.filter:not(#\\#){filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}.transition:not(#\\#){transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-all:not(#\\#){transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors:not(#\\#){transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-opacity:not(#\\#){transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-transform:not(#\\#){transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-150:not(#\\#){--tw-duration:.15s;transition-duration:.15s}.duration-200:not(#\\#){--tw-duration:.2s;transition-duration:.2s}.duration-300:not(#\\#){--tw-duration:.3s;transition-duration:.3s}.ease-in-out:not(#\\#){--tw-ease:var(--ease-in-out);transition-timing-function:var(--ease-in-out)}.ease-out:not(#\\#){--tw-ease:var(--ease-out);transition-timing-function:var(--ease-out)}.outline-solid:not(#\\#){--tw-outline-style:solid;outline-style:solid}.select-none:not(#\\#){-webkit-user-select:none;user-select:none}@media(hover:hover){.group-hover\\:flex:is(:where(.group):hover *):not(#\\#){display:flex}.group-hover\\:grid:is(:where(.group):hover *):not(#\\#){display:grid}.group-hover\\:border-body:is(:where(.group):hover *):not(#\\#){border-color:var(--color-body)}.group-hover\\:border-negative-text:is(:where(.group):hover *):not(#\\#){border-color:var(--color-negative-text)}.group-hover\\:border-positive-text:is(:where(.group):hover *):not(#\\#){border-color:var(--color-positive-text)}.group-hover\\:border-warning-text:is(:where(.group):hover *):not(#\\#){border-color:var(--color-warning-text)}.group-hover\\:bg-grey-400:is(:where(.group):hover *):not(#\\#){background-color:var(--color-grey-400)}.group-hover\\:bg-negative-hover:is(:where(.group):hover *):not(#\\#){background-color:var(--color-negative-hover)}.group-hover\\:bg-negative-light:is(:where(.group):hover *):not(#\\#){background-color:var(--color-negative-light)}.group-hover\\:bg-positive-hover:is(:where(.group):hover *):not(#\\#){background-color:var(--color-positive-hover)}.group-hover\\:bg-positive-light:is(:where(.group):hover *):not(#\\#){background-color:var(--color-positive-light)}.group-hover\\:bg-primary-hover:is(:where(.group):hover *):not(#\\#){background-color:var(--color-primary-hover)}.group-hover\\:bg-primary-light:is(:where(.group):hover *):not(#\\#){background-color:var(--color-primary-light)}.group-hover\\:bg-warning-hover:is(:where(.group):hover *):not(#\\#){background-color:var(--color-warning-hover)}.group-hover\\:bg-warning-light:is(:where(.group):hover *):not(#\\#){background-color:var(--color-warning-light)}.group-hover\\:opacity-100:is(:where(.group):hover *):not(#\\#){opacity:1}}.placeholder\\:text-sm:not(#\\#)::placeholder{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.placeholder\\:text-xs:not(#\\#)::placeholder{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.placeholder\\:text-s:not(#\\#)::placeholder{font-size:var(--text-s)}.placeholder\\:text-input-placeholder:not(#\\#)::placeholder{color:var(--color-input-placeholder)}.placeholder\\:opacity-60:not(#\\#)::placeholder{opacity:.6}.first\\:bottom-full:first-child:not(#\\#){bottom:100%}.first\\:-ml-1\\.5:first-child:not(#\\#){margin-left:calc(var(--spacing)*-1.5)}.first\\:rounded-t:first-child:not(#\\#){border-top-left-radius:.25rem;border-top-right-radius:.25rem}.first\\:rounded-l:first-child:not(#\\#){border-top-left-radius:.25rem;border-bottom-left-radius:.25rem}.last\\:top-full:last-child:not(#\\#){top:100%}.last\\:-mr-1\\.5:last-child:not(#\\#){margin-right:calc(var(--spacing)*-1.5)}.last\\:rounded-r:last-child:not(#\\#){border-top-right-radius:.25rem;border-bottom-right-radius:.25rem}.last\\:rounded-b:last-child:not(#\\#){border-bottom-right-radius:.25rem;border-bottom-left-radius:.25rem}.only\\:top-full:only-child:not(#\\#){top:100%}.only\\:-mx-0\\.5:only-child:not(#\\#){margin-inline:calc(var(--spacing)*-.5)}.only\\:rounded:only-child:not(#\\#){border-radius:.25rem}.only\\:ring-1:only-child:not(#\\#){--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(1px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus-within\\:border-input-error-border:focus-within:not(#\\#){border-color:var(--color-input-error-border)}.focus-within\\:border-input-focus-border:focus-within:not(#\\#){border-color:var(--color-input-focus-border)}.focus-within\\:border-input-warning-border:focus-within:not(#\\#){border-color:var(--color-input-warning-border)}.focus-within\\:border-positive:focus-within:not(#\\#){border-color:var(--color-positive)}@media(hover:hover){.hover\\:border-canvas-default:hover:not(#\\#){border-color:var(--color-canvas-default)}.hover\\:border-canvas-subtle:hover:not(#\\#){border-color:var(--color-canvas-subtle)}.hover\\:border-negative-hover:hover:not(#\\#){border-color:var(--color-negative-hover)}.hover\\:border-positive-hover:hover:not(#\\#){border-color:var(--color-positive-hover)}.hover\\:border-primary-hover:hover:not(#\\#){border-color:var(--color-primary-hover)}.hover\\:border-warning-hover:hover:not(#\\#){border-color:var(--color-warning-hover)}.hover\\:bg-canvas-default:hover:not(#\\#){background-color:var(--color-canvas-default)}.hover\\:bg-canvas-subtle:hover:not(#\\#){background-color:var(--color-canvas-subtle)}.hover\\:bg-grey-500:hover:not(#\\#){background-color:var(--color-grey-500)}.hover\\:bg-grey-700:hover:not(#\\#){background-color:var(--color-grey-700)}.hover\\:bg-input-option-hover-bg:hover:not(#\\#){background-color:var(--color-input-option-hover-bg)}.hover\\:bg-negative:hover:not(#\\#){background-color:var(--color-negative)}.hover\\:bg-negative-hover:hover:not(#\\#){background-color:var(--color-negative-hover)}.hover\\:bg-positive:hover:not(#\\#){background-color:var(--color-positive)}.hover\\:bg-positive-hover:hover:not(#\\#){background-color:var(--color-positive-hover)}.hover\\:bg-primary:hover:not(#\\#){background-color:var(--color-primary)}.hover\\:bg-primary-600:hover:not(#\\#){background-color:var(--color-primary-600)}.hover\\:bg-primary-hover:hover:not(#\\#){background-color:var(--color-primary-hover)}.hover\\:bg-primary\\/20:hover:not(#\\#){background-color:var(--color-primary)}@supports (color:color-mix(in lab,red,red)){.hover\\:bg-primary\\/20:hover:not(#\\#){background-color:color-mix(in oklab,var(--color-primary)20%,transparent)}}.hover\\:bg-transparent:hover:not(#\\#){background-color:#0000}.hover\\:bg-warning:hover:not(#\\#){background-color:var(--color-warning)}.hover\\:bg-warning-hover:hover:not(#\\#){background-color:var(--color-warning-hover)}.hover\\:text-body:hover:not(#\\#){color:var(--color-body)}.hover\\:text-button-text:hover:not(#\\#){color:var(--color-button-text)}.hover\\:text-grey-200:hover:not(#\\#){color:var(--color-grey-200)}.hover\\:text-negative-400:hover:not(#\\#){color:var(--color-negative-400)}.hover\\:text-positive-400:hover:not(#\\#){color:var(--color-positive-400)}.hover\\:text-positive-text:hover:not(#\\#){color:var(--color-positive-text)}.hover\\:text-primary:hover:not(#\\#){color:var(--color-primary)}.hover\\:text-primary-hover:hover:not(#\\#){color:var(--color-primary-hover)}.hover\\:text-tab-active-fg:hover:not(#\\#){color:var(--color-tab-active-fg)}.hover\\:decoration-current:hover:not(#\\#){text-decoration-color:currentColor}}.focus\\:bg-transparent:focus:not(#\\#){background-color:#0000}.focus\\:ring-2:focus:not(#\\#){--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(2px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus\\:ring-negative:focus:not(#\\#){--tw-ring-color:var(--color-negative)}.focus\\:ring-positive:focus:not(#\\#){--tw-ring-color:var(--color-positive)}.focus\\:ring-primary:focus:not(#\\#){--tw-ring-color:var(--color-primary)}.focus\\:ring-warning:focus:not(#\\#){--tw-ring-color:var(--color-warning)}.focus\\:ring-offset-0:focus:not(#\\#){--tw-ring-offset-width:0px;--tw-ring-offset-shadow:var(--tw-ring-inset,)0 0 0 var(--tw-ring-offset-width)var(--tw-ring-offset-color)}.focus\\:ring-offset-2:focus:not(#\\#){--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset,)0 0 0 var(--tw-ring-offset-width)var(--tw-ring-offset-color)}.focus\\:outline-hidden:focus:not(#\\#){--tw-outline-style:none;outline-style:none}@media(forced-colors:active){.focus\\:outline-hidden:focus:not(#\\#){outline-offset:2px;outline:2px solid #0000}}.focus-visible\\:ring-2:focus-visible:not(#\\#){--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(2px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus-visible\\:ring-primary:focus-visible:not(#\\#){--tw-ring-color:var(--color-primary)}.focus-visible\\:ring-offset-2:focus-visible:not(#\\#){--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset,)0 0 0 var(--tw-ring-offset-width)var(--tw-ring-offset-color)}:root:not(#\\#){--ws-primary-50:#f2ddff;--ws-primary-100:#edd0ff;--ws-primary-300:#d0acef;--ws-primary-400:#c190ea;--ws-primary-600:#935ebf;--ws-primary-800:#563374;--ws-primary-900:#381e4f;--ws-primary-950:#29133c;--ws-positive-50:#ecf9f2;--ws-positive-100:#d9f2e6;--ws-positive-300:#8ed9b3;--ws-positive-400:#68cd99;--ws-positive-700:#28734d;--ws-positive-800:#28734d;--ws-positive-900:#0d261a;--ws-positive-950:#07130d;--ws-warning-50:#fff7e6;--ws-warning-100:#ffefcc;--ws-warning-300:#fed066;--ws-warning-400:#fdc133;--ws-warning-700:#986a00;--ws-warning-800:#654700;--ws-warning-900:#332300;--ws-warning-950:#191200;--ws-negative-50:#feeeee;--ws-negative-100:#fcdcdc;--ws-negative-300:#f69797;--ws-negative-400:#f37575;--ws-negative-700:#9a3232;--ws-negative-800:#6e2222;--ws-negative-900:#431212;--ws-negative-950:#2e0a0a;--ws-grey-300:#535353;--ws-grey-400:#484848;--ws-grey-600:#3f3f3f;--ws-palette-primary-200:#e0c7f5;--ws-palette-primary-500:#b174e5;--ws-palette-primary-700:#75499a;--ws-button-bg:var(--vscode-button-background,var(--theia-button-background,var(--ws-palette-primary-500)));--ws-button-fg:var(--vscode-button-foreground,var(--theia-button-foreground,var(--ws-palette-white)));--ws-primary-default:var(--ws-button-bg);--ws-button-text:var(--ws-button-fg);--ws-primary-hover:var(--vscode-button-hoverBackground,var(--theia-button-hoverBackground,var(--ws-palette-primary-700)));--ws-primary-light:var(--vscode-editorInfo-foreground,var(--theia-button-secondaryForeground,var(--ws-palette-primary-200)));--ws-primary-dark:var(--vscode-editor-lineHighlightBackground,var(--theia-button-secondaryBackground,var(--ws-palette-primary-700)));--ws-primary-200:var(--ws-primary-light);--ws-primary-500:var(--ws-primary-default);--ws-primary-700:var(--ws-primary-hover);--ws-palette-positive-200:#b3e6cc;--ws-palette-positive-500:#42c080;--ws-palette-positive-600:#359a66;--ws-positive-dark:var(--vscode-gitDecoration-addedResourceForeground,var(--ws-palette-positive-600));--ws-positive-hover:var(--ws-positive-dark);--ws-positive-bg:var(--ws-palette-positive-100);--ws-positive-light:var(--ws-palette-positive-200);--ws-positive-border:var(--ws-positive-500);--ws-positive-text:var(--ws-positive-500);--ws-positive-500:var(--vscode-testing-iconPassed,var(--ws-palette-positive-500));--ws-positive-200:var(--ws-positive-light);--ws-positive-600:var(--ws-positive-dark);--ws-palette-warning-200:#fee099;--ws-palette-warning-500:#fdb100;--ws-palette-warning-600:#ca8e00;--ws-warning-hover:var(--ws-warning-600);--ws-warning-text:var(--ws-warning-500);--ws-warning-border:var(--ws-warning-500);--ws-warning-500:var(--vscode-list-warningForeground,var(--ws-palette-warning-500));--ws-warning-bg:var(--vscode-inputValidation-warningBackground,var(--ws-palette-warning-500));--ws-warning-light:var(--vscode-inputValidation-warningBackground,var(--ws-palette-warning-200));--ws-warning-dark:var(--vscode-inputValidation-warningBackground,var(--ws-palette-warning-600));--ws-warning-200:var(--ws-warning-light);--ws-warning-600:var(--ws-warning-dark);--ws-palette-negative-200:#f9baba;--ws-palette-negative-500:#f05252;--ws-palette-negative-600:#c54242;--ws-negative-hover:var(--ws-negative-600);--ws-negative-text:var(--ws-negative-500);--ws-negative-500:var(--vscode-errorForeground,var(--ws-palette-negative-500));--ws-negative-light:var(--ws-palette-negative-200);--ws-negative-dark:var(--ws-palette-negative-600);--ws-negative-200:var(--ws-negative-light);--ws-negative-600:var(--ws-negative-dark);--ws-palette-white:#fff;--ws-palette-grey-50:#f1f5f9;--ws-palette-grey-100:#ccc;--ws-palette-grey-200:#888;--ws-palette-grey-300:#535353;--ws-palette-grey-400:#484848;--ws-palette-grey-500:#444;--ws-palette-grey-600:#3f3f3f;--ws-palette-grey-700:#393939;--ws-palette-grey-800:#383838;--ws-palette-grey-900:#262626;--ws-palette-grey-950:#151515;--ws-bg-default:var(--vscode-editor-background,var(--theia-editor-background,var(--ws-palette-white)));--ws-bg-foreground:var(--vscode-editor-foreground,var(--theia-editor-foreground,var(--ws-palette-grey-50)));--ws-grey-50:var(--ws-bg-foreground);--ws-grey-100:var(--vscode-panel-background,var(--theia-panel-background,var(--ws-palette-grey-100)));--ws-grey-200:var(--vscode-editor-background,var(--theia-editor-background,var(--ws-palette-grey-200)));--ws-grey-950:var(--vscode-panel-border,var(--theia-border-color,var(--ws-palette-grey-950)));--ws-grey-500:var(--vscode-descriptionForeground,var(--ws-palette-grey-500));--ws-grey-800:var(--vscode-descriptionForeground,var(--ws-palette-grey-800));--ws-card-bg:var(--vscode-editorGroupHeader-tabsBackground,var(--theia-editorGroupHeader-tabsBackground,var(--ws-palette-grey-900)));--ws-card-border:var(--vscode-editorGroupHeader-tabsBorder,var(--theia-editorGroupHeader-tabsBorder,var(--ws-palette-grey-50)));--ws-palette-input-bg:var(--ws-palette-grey-300);--ws-palette-input-border:var(--ws-palette-grey-300);--ws-palette-input-text:var(--ws-palette-grey-50);--ws-palette-input-placeholder:var(--ws-palette-grey-200);--ws-palette-input-focus-border:var(--ws-palette-grey-50);--ws-input-bg:var(--vscode-input-background,var(--vscode-editorWidget-background,var(--theia-input-background,var(--ws-palette-input-bg))));--ws-input-border:var(--vscode-input-border,var(--vscode-panel-border,var(--theia-input-border,var(--ws-palette-input-border))));--ws-input-text:var(--vscode-input-foreground,var(--vscode-editor-foreground,var(--theia-input-foreground,var(--ws-palette-input-text))));--ws-input-placeholder:var(--vscode-input-placeholderForeground,var(--vscode-editor-foreground,var(--theia-input-placeholderForeground,var(--ws-palette-input-placeholder))));--ws-input-focus-border:var(--vscode-focusBorder,var(--vscode-button-background,var(--theia-focusBorder,var(--ws-palette-primary-500))));--ws-select-bg:var(--vscode-dropdown-background,var(--vscode-editorWidget-background,var(--theia-dropdown-background,var(--ws-input-bg))));--ws-select-border:var(--vscode-dropdown-border,var(--vscode-panel-border,var(--theia-dropdown-border,var(--ws-input-border))));--ws-select-text:var(--vscode-dropdown-foreground,var(--vscode-editor-foreground,var(--theia-dropdown-foreground,var(--ws-input-text))));--ws-select-list-bg:var(--vscode-dropdown-listBackground,var(--vscode-editorWidget-background,var(--theia-editorWidget-background,var(--ws-palette-grey-900))));--ws-input-option-hover-bg:var(--vscode-list-hoverBackground,var(--vscode-button-hoverBackground,var(--theia-list-hoverBackground,var(--ws-palette-primary-700))));--ws-input-option-active-bg:var(--vscode-list-activeSelectionBackground,var(--theia-list-activeSelectionBackground,var(--ws-palette-primary-500)));--ws-input-option-active-text:var(--vscode-list-activeSelectionForeground,var(--theia-list-activeSelectionForeground,var(--ws-palette-white)));--ws-input-error-border:var(--vscode-inputValidation-errorBorder,var(--theia-inputValidation-errorBorder,var(--ws-palette-negative-500)));--ws-input-error-bg:var(--vscode-inputValidation-errorBackground,var(--theia-inputValidation-errorBackground,var(--ws-palette-negative-200)));--ws-input-warning-border:var(--vscode-inputValidation-warningBorder,var(--theia-inputValidation-warningBorder,var(--ws-palette-warning-500)));--ws-input-warning-bg:var(--vscode-inputValidation-warningBackground,var(--theia-inputValidation-warningBackground,var(--ws-palette-warning-200)));--ws-input-info-bg:var(--vscode-panel-background,var(--theia-inputValidation-infoBackground,var(--ws-palette-primary-200)));--ws-input-message-bg:var(--vscode-editor-lineHighlightBackground,var(--vscode-editorWidget-background,var(--theia-inputValidation-infoBackground,var(--ws-palette-primary-200))));--ws-input-message-text:var(--vscode-editorInfo-foreground,var(--vscode-editor-foreground,var(--theia-inputValidation-infoForeground,var(--ws-palette-primary-500))));--ws-inactive-text:var(--vscode-disabledForeground,var(--theia-disabled-foreground,var(--ws-palette-grey-200)));--ws-text-muted:var(--vscode-descriptionForeground,var(--vscode-editor-foreground,var(--theia-descriptionForeground,var(--ws-palette-grey-100))));--ws-disable-bg:var(--vscode-button-disabledBackground,var(--theia-button-disabledBackground,var(--ws-palette-grey-300)));--ws-disable-input:var(--vscode-button-disabledBackground,var(--theia-button-disabledBackground,var(--ws-palette-grey-200)));--ws-panel-0:var(--vscode-editor-background,var(--theia-editor-background,var(--ws-palette-grey-900)));--ws-panel-1:var(--vscode-sideBar-background,var(--vscode-panel-background,var(--theia-sideBar-background,var(--ws-palette-grey-700))));--ws-panel-2:var(--vscode-panel-background,var(--vscode-editor-background,var(--theia-panel-background,var(--ws-palette-grey-900))));--ws-panel-3:var(--vscode-editorGroupHeader-tabsBackground,var(--vscode-editorWidget-background,var(--theia-editorGroupHeader-tabsBackground,var(--ws-palette-grey-900))));--ws-panel-4:var(--vscode-editorWidget-background,var(--theia-editorWidget-background,var(--ws-palette-grey-300)));--ws-panel-5:var(--vscode-editorWidget-background,var(--theia-editorWidget-background,var(--ws-palette-grey-950)));--ws-panel-border-subtle:var(--vscode-panel-border,var(--vscode-tab-border,var(--theia-border-color,var(--ws-palette-grey-100))));--ws-panel-border-strong:var(--vscode-contrastBorder,var(--vscode-focusBorder,var(--theia-contrastBorder,var(--ws-palette-grey-300))));--ws-tab-bg-default:var(--vscode-editorGroupHeader-tabsBackground,var(--vscode-editorWidget-background,var(--ws-palette-grey-900)));--ws-tab-border:var(--vscode-tab-border,var(--vscode-editorGroupHeader-tabsBorder,var(--ws-palette-grey-950)));--ws-tab-active-bg:var(--vscode-tab-activeBackground,var(--ws-palette-grey-800));--ws-tab-active-fg:var(--vscode-tab-activeForeground,var(--vscode-editor-foreground,var(--ws-bg-foreground)));--ws-tab-inactive-bg:var(--vscode-tab-inactiveBackground,var(--ws-palette-grey-900));--ws-tab-inactive-fg:var(--vscode-tab-inactiveForeground,var(--vscode-descriptionForeground,var(--ws-palette-grey-200)));--ws-tab-hover-bg:var(--vscode-tab-hoverBackground,var(--vscode-toolbar-hoverBackground,var(--ws-palette-grey-700)));--ws-panel-header-bg:var(--vscode-sideBarSectionHeader-background,var(--vscode-editorGroupHeader-tabsBackground,var(--ws-palette-grey-800)));--ws-panel-header-fg:var(--vscode-sideBarSectionHeader-foreground,var(--vscode-editor-foreground,var(--ws-bg-foreground)));--ws-panel-bg:var(--vscode-panel-background,var(--vscode-editor-background,var(--ws-bg-default)));--ws-panel-border:var(--vscode-panel-border,var(--vscode-tab-border,var(--ws-palette-grey-950)));--ws-panel-title-active-border:var(--vscode-panelTitle-activeBorder,var(--vscode-focusBorder,var(--ws-palette-primary-500)));--ws-panel-title-active-fg:var(--vscode-panelTitle-activeForeground,var(--vscode-editor-foreground,var(--ws-bg-foreground)));--ws-panel-title-inactive-fg:var(--vscode-panelTitle-inactiveForeground,var(--vscode-descriptionForeground,var(--ws-palette-grey-100)))}.center-absolute:not(#\\#){--tw-translate-x: -50% ;--tw-translate-y: -50% ;translate:var(--tw-translate-x)var(--tw-translate-y);transform:var(--tw-rotate-x,)var(--tw-rotate-y,)var(--tw-rotate-z,)var(--tw-skew-x,)var(--tw-skew-y,);position:absolute;top:50%;left:50%}.ws-group:hover .ws-checkbox-hover-target{opacity:1!important}.simplebar-scrollbar:not(#\\#):before{background-color:#ccc}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-scale-x{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-y{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-z{syntax:"*";inherits:false;initial-value:1}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-space-x-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-gradient-position{syntax:"*";inherits:false}@property --tw-gradient-from{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-via{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-to{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-stops{syntax:"*";inherits:false}@property --tw-gradient-via-stops{syntax:"*";inherits:false}@property --tw-gradient-from-position{syntax:"<length-percentage>";inherits:false;initial-value:0%}@property --tw-gradient-via-position{syntax:"<length-percentage>";inherits:false;initial-value:50%}@property --tw-gradient-to-position{syntax:"<length-percentage>";inherits:false;initial-value:100%}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}@keyframes bounce{0%,to{animation-timing-function:cubic-bezier(.8,0,1,1);transform:translateY(-25%)}50%{animation-timing-function:cubic-bezier(0,0,.2,1);transform:none}}[data-simplebar]{position:relative;flex-direction:column;flex-wrap:wrap;justify-content:flex-start;align-content:flex-start;align-items:flex-start}.simplebar-wrapper{overflow:hidden;width:inherit;height:inherit;max-width:inherit;max-height:inherit}.simplebar-mask{direction:inherit;position:absolute;overflow:hidden;padding:0;margin:0;left:0;top:0;bottom:0;right:0;width:auto!important;height:auto!important;z-index:0}.simplebar-offset{direction:inherit!important;box-sizing:inherit!important;resize:none!important;position:absolute;top:0;left:0;bottom:0;right:0;padding:0;margin:0;-webkit-overflow-scrolling:touch}.simplebar-content-wrapper{direction:inherit;box-sizing:border-box!important;position:relative;display:block;height:100%;width:auto;max-width:100%;max-height:100%;overflow:auto;scrollbar-width:none;-ms-overflow-style:none}.simplebar-content-wrapper::-webkit-scrollbar,.simplebar-hide-scrollbar::-webkit-scrollbar{display:none;width:0;height:0}.simplebar-content:after,.simplebar-content:before{content:" ";display:table}.simplebar-placeholder{max-height:100%;max-width:100%;width:100%;pointer-events:none}.simplebar-height-auto-observer-wrapper{box-sizing:inherit!important;height:100%;width:100%;max-width:1px;position:relative;float:left;max-height:1px;overflow:hidden;z-index:-1;padding:0;margin:0;pointer-events:none;flex-grow:inherit;flex-shrink:0;flex-basis:0}.simplebar-height-auto-observer{box-sizing:inherit;display:block;opacity:0;position:absolute;top:0;left:0;height:1000%;width:1000%;min-height:1px;min-width:1px;overflow:hidden;pointer-events:none;z-index:-1}.simplebar-track{z-index:1;position:absolute;right:0;bottom:0;pointer-events:none;overflow:hidden}[data-simplebar].simplebar-dragging,[data-simplebar].simplebar-dragging .simplebar-content{pointer-events:none;-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}[data-simplebar].simplebar-dragging .simplebar-track{pointer-events:all}.simplebar-scrollbar{position:absolute;left:0;right:0;min-height:10px}.simplebar-scrollbar:before{position:absolute;content:"";background:#000;border-radius:7px;left:2px;right:2px;opacity:0;transition:opacity .2s .5s linear}.simplebar-scrollbar.simplebar-visible:before{opacity:.5;transition-delay:0s;transition-duration:0s}.simplebar-track.simplebar-vertical{top:0;width:11px}.simplebar-scrollbar:before{top:2px;bottom:2px;left:2px;right:2px}.simplebar-track.simplebar-horizontal{left:0;height:11px}.simplebar-track.simplebar-horizontal .simplebar-scrollbar{right:auto;left:0;top:0;bottom:0;min-height:0;min-width:10px;width:auto}[data-simplebar-direction=rtl] .simplebar-track.simplebar-vertical{right:auto;left:0}.simplebar-dummy-scrollbar-size{direction:rtl;position:fixed;opacity:0;visibility:hidden;height:500px;width:500px;overflow-y:hidden;overflow-x:scroll;-ms-overflow-style:scrollbar!important}.simplebar-dummy-scrollbar-size>div{width:200%;height:200%;margin:10px 0}.simplebar-hide-scrollbar{position:fixed;left:0;visibility:hidden;overflow-y:scroll;scrollbar-width:none;-ms-overflow-style:none}
|
|
28
|
-
`,document.head.prepend(r)}catch(r){console.error("vite-plugin-inject-css: failed to inject css",r)}})();const Bs=r=>b.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...r,children:b.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.075 4C2.481 4 2 4.48 2 5.072v13.856C2 19.52 2.481 20 3.075 20h17.85c.594 0 1.075-.48 1.075-1.072V5.072C22 4.48 21.519 4 20.925 4H3.075ZM20 9H4v9h16V9Z",fill:"currentColor"})}),qx=r=>b.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...r,children:[b.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2 3.667C2 2.747 2.746 2 3.667 2h1.389v1.667h-1.39v1.389H2v-1.39Zm8.611 0H7.833V2h2.778v1.667Zm5.556 0h-2.778V2h2.778v1.667Zm4.166 0h-1.389V2h1.39C21.253 2 22 2.746 22 3.667v1.389h-1.667v-1.39Zm0 6.944V7.833H22v2.778h-1.667ZM3.667 7.833v2.778H2V7.833h1.667Zm16.666 8.334v-2.778H22v2.778h-1.667ZM3.667 13.389v2.778H2v-2.778h1.667Zm16.666 6.944v-1.389H22v1.39c0 .92-.746 1.666-1.667 1.666h-1.389v-1.667h1.39ZM3.667 18.944v1.39h1.389V22h-1.39C2.747 22 2 21.254 2 20.333v-1.389h1.667Zm4.166 1.39h2.778V22H7.833v-1.667Zm5.556 0h2.778V22h-2.778v-1.667Z",fill:"currentColor"}),b.jsx("path",{d:"M5.333 5.333h5v5h-5v-5ZM5.333 13.667h5v5h-5v-5ZM13.667 5.333h5v5h-5v-5ZM13.667 13.667h5v5h-5v-5Z",fill:"currentColor"})]}),Zx=r=>b.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...r,children:b.jsx("path",{d:"M21.66 6.28a.5.5 0 0 0 0-.697l-.967-.993a.5.5 0 0 0-.716 0L8.499 16.373 4.023 11.78a.5.5 0 0 0-.716 0l-.967.993a.5.5 0 0 0 0 .697l5.889 6.046.014-.014a.377.377 0 0 0 .54 0L21.66 6.28Z",fill:"currentColor"})}),Yx=r=>b.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...r,children:b.jsx("path",{d:"M10.84 2.714c0-.394.346-.714.773-.714h.774c.427 0 .773.32.773.714V9.5h5.025c.427 0 .773.32.773.714v3.572H5.042v-3.572c0-.394.346-.714.773-.714h5.025V2.714ZM5.042 14.5h13.916l1.034 6.685c.067.43-.295.815-.765.815h-2.1l-.681-5.929L15.764 22h-3.236l-.721-2.143L11.086 22h-2.85l-.682-3.929L6.872 22H4.773c-.47 0-.832-.385-.765-.815L5.042 14.5Z",fill:"currentColor"})}),Oi=r=>b.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...r,children:b.jsx("path",{d:"M4.497 5.361a.5.5 0 0 0 0 .707L10.429 12l-5.932 5.932a.5.5 0 0 0 0 .707l.864.864a.5.5 0 0 0 .707 0L12 13.571l5.932 5.932a.5.5 0 0 0 .707 0l.864-.864a.5.5 0 0 0 0-.707L13.571 12l5.932-5.932a.5.5 0 0 0 0-.707l-.864-.864a.5.5 0 0 0-.707 0L12 10.429 6.068 4.497a.5.5 0 0 0-.707 0l-.864.864Z",fill:"currentColor"})}),Xx=r=>b.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...r,children:[b.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2 3.667C2 2.747 2.709 2 3.583 2h1.32v1.667h-1.32v1.389H2v-1.39Zm8.18 0H7.543V2h2.639v1.667Zm5.278 0H12.82V2h2.64v1.667Zm3.959 0h-1.32V2h1.32C20.29 2 21 2.746 21 3.667v1.389h-1.583v-1.39Zm0 6.944V7.833H21v2.778h-1.583ZM3.583 7.833v2.778H2V7.833h1.583Zm15.834 8.334v-2.778H21v2.778h-1.583ZM3.583 13.389v2.778H2v-2.778h1.583Zm15.834 6.944v-1.389H21v1.39c0 .92-.709 1.666-1.583 1.666h-1.32v-1.667h1.32ZM3.583 18.944v1.39h1.32V22h-1.32C2.71 22 2 21.254 2 20.333v-1.389h1.583Zm3.959 1.39h2.639V22H7.54v-1.667Zm5.277 0h2.64V22h-2.64v-1.667Z",fill:"currentColor"}),b.jsx("path",{d:"M5.167 5.333h5.541v5.834H5.167V5.333ZM5.167 12.833h5.541v5.834H5.167v-5.834ZM12.292 5.333h5.541v5.834h-5.541V5.333ZM12.292 12.833h5.541v5.834h-5.541v-5.834Z",fill:"currentColor"})]}),Qx=r=>b.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...r,children:b.jsx("path",{d:"M12 18c-4.437 0-8.26-.716-10-1.748V19c0 1.657 4.477 3 10 3s10-1.343 10-3v-2.748C20.26 17.284 16.437 18 12 18ZM2 8.252C3.74 9.284 7.563 10 12 10s8.26-.716 10-1.748V5c0-1.657-4.477-3-10-3S2 3.343 2 5v3.252ZM2 10.252v4C3.74 15.284 7.563 16 12 16s8.26-.716 10-1.748v-4C20.26 11.284 16.437 12 12 12s-8.26-.716-10-1.748Z",fill:"currentColor"})}),Mp=r=>b.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...r,children:b.jsx("path",{d:"M11.701 18.797c.206.195.52.195.726 0l2.487-2.349-.008-.007 6.973-6.585a.58.58 0 0 0 0-.835l-2.045-1.932a.524.524 0 0 0-.726 0l-7.052 6.66-7.051-6.66a.524.524 0 0 0-.726 0L2.234 9.021a.58.58 0 0 0 0 .835l9.467 8.941Z",fill:"currentColor"})}),Jx=r=>b.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...r,children:b.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.101 12.212a.472.472 0 0 1 0-.422C3.808 8.376 7.598 6.001 12 6.001c4.402 0 8.192 2.375 9.898 5.79a.472.472 0 0 1 0 .421c-1.706 3.414-5.496 5.79-9.898 5.79-4.401 0-8.192-2.376-9.898-5.79Zm13.902-.211c0 2.224-1.792 4.027-4.002 4.027S8 14.225 8 12.001 9.79 7.974 12 7.974c2.21 0 4.002 1.803 4.002 4.027Zm-4.04 2.054a2.09 2.09 0 0 0 2.082-2.096 2.09 2.09 0 0 0-2.083-2.096A2.09 2.09 0 0 0 9.88 11.96a2.09 2.09 0 0 0 2.082 2.096Z",fill:"currentColor"})}),ey=r=>b.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...r,children:[b.jsx("path",{d:"M15.022 11.999c0 1.688-1.353 3.057-3.022 3.057-1.67 0-3.023-1.369-3.023-3.057 0-1.689 1.354-3.058 3.023-3.058s3.022 1.37 3.022 3.058Z",fill:"currentColor"}),b.jsx("path",{d:"M5.213 3.316a.513.513 0 0 1 .162-.701l.856-.538a.5.5 0 0 1 .694.164l11.327 18.443a.513.513 0 0 1-.162.701l-.856.538a.5.5 0 0 1-.693-.164L5.213 3.316ZM6.612 7.308c-1.87 1.047-3.444 2.617-4.546 4.529a.492.492 0 0 0 .004.498c2.079 3.474 5.727 5.778 9.88 5.778.4 0 .796-.021 1.186-.063l-1.2-1.975c-3.065-.005-5.833-1.547-7.622-4.008a9.94 9.94 0 0 1 3.354-3.02l-1.056-1.74ZM16.079 15.084a9.905 9.905 0 0 0 3.607-3.154c-1.792-2.464-4.566-4.008-7.637-4.008-.105 0-.21.002-.316.006l-1.18-1.943c.49-.067.99-.101 1.496-.101 4.154 0 7.803 2.304 9.881 5.779a.491.491 0 0 1 .004.497c-1.151 1.997-2.816 3.621-4.797 4.666l-1.058-1.742Z",fill:"currentColor"})]}),bd=r=>b.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...r,children:b.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11 21c5.523 0 10-4.477 10-10S16.523 1 11 1 1 5.477 1 11s4.477 10 10 10Zm0-14a1 1 0 1 0 0-2 1 1 0 0 0 0 2Zm1 1.5a.5.5 0 0 0-.5-.5h-2a.5.5 0 0 0-.5.5v1a.5.5 0 0 0 .5.5h.5v4h-.5a.5.5 0 0 0-.5.5v1a.5.5 0 0 0 .5.5h3a.5.5 0 0 0 .5-.5v-1a.5.5 0 0 0-.5-.5H12V8.5Z",fill:"currentColor"})}),wd=r=>b.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...r,children:[b.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18.983 2.724a.5.5 0 0 0-.707 0L2.854 18.146a.5.5 0 0 0 0 .708L5.71 21.71a.5.5 0 0 0 .707 0L21.84 6.288a.5.5 0 0 0 0-.707l-2.857-2.857Zm1.785 3.21-2.139-2.138-4.065 4.066L16.703 10l4.065-4.065Z",fill:"currentColor"}),b.jsx("path",{d:"m17.5 14 .516 1.393a1 1 0 0 0 .59.591L20 16.5l-1.393.516a1 1 0 0 0-.591.59L17.5 19l-.516-1.393a1 1 0 0 0-.59-.591L15 16.5l1.394-.516a1 1 0 0 0 .59-.59L17.5 14ZM7.5 8l.325.88a.5.5 0 0 0 .296.295L9 9.5l-.88.325a.5.5 0 0 0-.296.296L7.5 11l-.325-.88a.5.5 0 0 0-.296-.295L6 9.5l.88-.325a.5.5 0 0 0 .295-.296L7.5 8ZM13 4l.11.299a1 1 0 0 0 .591.59l.3.111-.3.11a1 1 0 0 0-.59.591L13 6l-.111-.299a1 1 0 0 0-.591-.59L12 5l.299-.11a1 1 0 0 0 .59-.591L13 4Z",fill:"currentColor"})]}),ty=r=>b.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...r,children:b.jsx("path",{d:"M19.758 11.558a.524.524 0 0 1 0 .884L4.787 21.92A.514.514 0 0 1 4 21.478V2.522c0-.41.444-.659.787-.442l14.971 9.478Z",fill:"currentColor"})}),ry=r=>b.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...r,children:b.jsx("path",{d:"M20.673 5.133c.136.24.053.55-.185.69l-16.25 9.623a.487.487 0 0 1-.676-.18l-.497-.884a.513.513 0 0 1 .185-.69L19.5 4.069c.238-.141.54-.06.676.18l.497.884ZM20.938 9.657c.136.24.053.55-.185.69L7.925 17.944a.487.487 0 0 1-.676-.181l-.497-.884a.513.513 0 0 1 .185-.69l12.829-7.597c.237-.14.54-.06.675.181l.497.884ZM20.16 15.376c.237-.14.32-.45.184-.69l-.497-.884a.487.487 0 0 0-.676-.18l-7.695 4.556a.513.513 0 0 0-.185.69l.498.884c.135.24.437.322.675.181l7.695-4.557Z",fill:"currentColor"})}),ny=r=>b.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...r,children:b.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2 4.5a.5.5 0 0 1 .5-.5h8a.5.5 0 0 1 .5.5V7h10a1 1 0 0 1 1 1v11a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V4.5ZM4 5h5v1H4V5Z",fill:"currentColor"})}),iy=r=>b.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...r,children:b.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 22c5.523 0 10-4.477 10-10S17.523 2 12 2 2 6.477 2 12s4.477 10 10 10ZM11 4.5a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5V12h3.5a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5h-5a.5.5 0 0 1-.5-.5v-9Z",fill:"currentColor"})}),oy=r=>b.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...r,children:b.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3 4a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h13.833l1.667 2 1.667-2H21a1 1 0 0 0 1-1V5a1 1 0 0 0-1-1H3Zm17 2H4v2h16V6ZM4 10h16v2H4v-2Zm11 4H4v2h11v-2Z",fill:"currentColor"})}),ay=r=>b.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...r,children:b.jsx("path",{d:"M12.299 5.203a.524.524 0 0 0-.726 0L9.086 7.552l.008.007-6.973 6.585a.58.58 0 0 0 0 .835l2.045 1.932c.206.194.52.194.726 0l7.051-6.66 7.053 6.66c.205.194.519.194.725 0l2.045-1.932a.58.58 0 0 0 0-.835l-9.467-8.941Z",fill:"currentColor"})}),sy=r=>b.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...r,children:b.jsx("path",{d:"M12 11.333c-2.684 0-4.86-2.089-4.86-4.666C7.14 4.089 9.316 2 12 2s4.86 2.09 4.86 4.667-2.176 4.666-4.86 4.666ZM12 14c4.752 0 8.645 3.525 9 8H3c.355-4.475 4.249-8 9-8Z",fill:"currentColor"})}),ly=(r,i)=>{const n=new Array(r.length+i.length);for(let o=0;o<r.length;o++)n[o]=r[o];for(let o=0;o<i.length;o++)n[r.length+o]=i[o];return n},cy=(r,i)=>({classGroupId:r,validator:i}),zp=(r=new Map,i=null,n)=>({nextPart:r,validators:i,classGroupId:n}),Zo="-",xd=[],uy="arbitrary..",dy=r=>{const i=hy(r),{conflictingClassGroups:n,conflictingClassGroupModifiers:o}=r;return{getClassGroupId:s=>{if(s.startsWith("[")&&s.endsWith("]"))return py(s);const l=s.split(Zo),c=l[0]===""&&l.length>1?1:0;return Dp(l,c,i)},getConflictingClassGroupIds:(s,l)=>{if(l){const c=o[s],d=n[s];return c?d?ly(d,c):c:d||xd}return n[s]||xd}}},Dp=(r,i,n)=>{if(r.length-i===0)return n.classGroupId;const o=r[i],s=n.nextPart.get(o);if(s){const h=Dp(r,i+1,s);if(h)return h}const l=n.validators;if(l===null)return;const c=i===0?r.join(Zo):r.slice(i).join(Zo),d=l.length;for(let h=0;h<d;h++){const v=l[h];if(v.validator(c))return v.classGroupId}},py=r=>r.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const i=r.slice(1,-1),n=i.indexOf(":"),o=i.slice(0,n);return o?uy+o:void 0})(),hy=r=>{const{theme:i,classGroups:n}=r;return fy(n,i)},fy=(r,i)=>{const n=zp();for(const o in r){const s=r[o];qs(s,n,o,i)}return n},qs=(r,i,n,o)=>{const s=r.length;for(let l=0;l<s;l++){const c=r[l];gy(c,i,n,o)}},gy=(r,i,n,o)=>{if(typeof r=="string"){vy(r,i,n);return}if(typeof r=="function"){my(r,i,n,o);return}by(r,i,n,o)},vy=(r,i,n)=>{const o=r===""?i:Ap(i,r);o.classGroupId=n},my=(r,i,n,o)=>{if(wy(r)){qs(r(o),i,n,o);return}i.validators===null&&(i.validators=[]),i.validators.push(cy(n,r))},by=(r,i,n,o)=>{const s=Object.entries(r),l=s.length;for(let c=0;c<l;c++){const[d,h]=s[c];qs(h,Ap(i,d),n,o)}},Ap=(r,i)=>{let n=r;const o=i.split(Zo),s=o.length;for(let l=0;l<s;l++){const c=o[l];let d=n.nextPart.get(c);d||(d=zp(),n.nextPart.set(c,d)),n=d}return n},wy=r=>"isThemeGetter"in r&&r.isThemeGetter===!0,xy=r=>{if(r<1)return{get:()=>{},set:()=>{}};let i=0,n=Object.create(null),o=Object.create(null);const s=(l,c)=>{n[l]=c,i++,i>r&&(i=0,o=n,n=Object.create(null))};return{get(l){let c=n[l];if(c!==void 0)return c;if((c=o[l])!==void 0)return s(l,c),c},set(l,c){l in n?n[l]=c:s(l,c)}}},Vs="!",yd=":",yy=[],_d=(r,i,n,o,s)=>({modifiers:r,hasImportantModifier:i,baseClassName:n,maybePostfixModifierPosition:o,isExternal:s}),_y=r=>{const{prefix:i,experimentalParseClassName:n}=r;let o=s=>{const l=[];let c=0,d=0,h=0,v;const m=s.length;for(let z=0;z<m;z++){const k=s[z];if(c===0&&d===0){if(k===yd){l.push(s.slice(h,z)),h=z+1;continue}if(k==="/"){v=z;continue}}k==="["?c++:k==="]"?c--:k==="("?d++:k===")"&&d--}const w=l.length===0?s:s.slice(h);let S=w,D=!1;w.endsWith(Vs)?(S=w.slice(0,-1),D=!0):w.startsWith(Vs)&&(S=w.slice(1),D=!0);const B=v&&v>h?v-h:void 0;return _d(l,D,S,B)};if(i){const s=i+yd,l=o;o=c=>c.startsWith(s)?l(c.slice(s.length)):_d(yy,!1,c,void 0,!0)}if(n){const s=o;o=l=>n({className:l,parseClassName:s})}return o},Iy=r=>{const i=new Map;return r.orderSensitiveModifiers.forEach((n,o)=>{i.set(n,1e6+o)}),n=>{const o=[];let s=[];for(let l=0;l<n.length;l++){const c=n[l],d=c[0]==="[",h=i.has(c);d||h?(s.length>0&&(s.sort(),o.push(...s),s=[]),o.push(c)):s.push(c)}return s.length>0&&(s.sort(),o.push(...s)),o}},Sy=r=>({cache:xy(r.cacheSize),parseClassName:_y(r),sortModifiers:Iy(r),...dy(r)}),Ey=/\s+/,ky=(r,i)=>{const{parseClassName:n,getClassGroupId:o,getConflictingClassGroupIds:s,sortModifiers:l}=i,c=[],d=r.trim().split(Ey);let h="";for(let v=d.length-1;v>=0;v-=1){const m=d[v],{isExternal:w,modifiers:S,hasImportantModifier:D,baseClassName:B,maybePostfixModifierPosition:z}=n(m);if(w){h=m+(h.length>0?" "+h:h);continue}let k=!!z,A=o(k?B.substring(0,z):B);if(!A){if(!k){h=m+(h.length>0?" "+h:h);continue}if(A=o(B),!A){h=m+(h.length>0?" "+h:h);continue}k=!1}const _=S.length===0?"":S.length===1?S[0]:l(S).join(":"),E=D?_+Vs:_,O=E+A;if(c.indexOf(O)>-1)continue;c.push(O);const N=s(A,k);for(let V=0;V<N.length;++V){const ae=N[V];c.push(E+ae)}h=m+(h.length>0?" "+h:h)}return h},Oy=(...r)=>{let i=0,n,o,s="";for(;i<r.length;)(n=r[i++])&&(o=Tp(n))&&(s&&(s+=" "),s+=o);return s},Tp=r=>{if(typeof r=="string")return r;let i,n="";for(let o=0;o<r.length;o++)r[o]&&(i=Tp(r[o]))&&(n&&(n+=" "),n+=i);return n},Id=(r,...i)=>{let n,o,s,l;const c=h=>{const v=i.reduce((m,w)=>w(m),r());return n=Sy(v),o=n.cache.get,s=n.cache.set,l=d,d(h)},d=h=>{const v=o(h);if(v)return v;const m=ky(h,n);return s(h,m),m};return l=c,(...h)=>l(Oy(...h))},Ny=[],mt=r=>{const i=n=>n[r]||Ny;return i.isThemeGetter=!0,i},Pp=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Lp=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Cy=/^\d+\/\d+$/,Ry=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,My=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,zy=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Dy=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Ay=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Dn=r=>Cy.test(r),ze=r=>!!r&&!Number.isNaN(Number(r)),$r=r=>!!r&&Number.isInteger(Number(r)),Ss=r=>r.endsWith("%")&&ze(r.slice(0,-1)),zr=r=>Ry.test(r),Ty=()=>!0,Py=r=>My.test(r)&&!zy.test(r),jp=()=>!1,Ly=r=>Dy.test(r),jy=r=>Ay.test(r),By=r=>!ve(r)&&!me(r),Vy=r=>Wn(r,Fp,jp),ve=r=>Pp.test(r),cn=r=>Wn(r,Hp,Py),Es=r=>Wn(r,Ky,ze),Sd=r=>Wn(r,Bp,jp),Fy=r=>Wn(r,Vp,jy),ko=r=>Wn(r,Wp,Ly),me=r=>Lp.test(r),gi=r=>$n(r,Hp),Hy=r=>$n(r,Uy),Ed=r=>$n(r,Bp),Wy=r=>$n(r,Fp),$y=r=>$n(r,Vp),Oo=r=>$n(r,Wp,!0),Wn=(r,i,n)=>{const o=Pp.exec(r);return o?o[1]?i(o[1]):n(o[2]):!1},$n=(r,i,n=!1)=>{const o=Lp.exec(r);return o?o[1]?i(o[1]):n:!1},Bp=r=>r==="position"||r==="percentage",Vp=r=>r==="image"||r==="url",Fp=r=>r==="length"||r==="size"||r==="bg-size",Hp=r=>r==="length",Ky=r=>r==="number",Uy=r=>r==="family-name",Wp=r=>r==="shadow",kd=()=>{const r=mt("color"),i=mt("font"),n=mt("text"),o=mt("font-weight"),s=mt("tracking"),l=mt("leading"),c=mt("breakpoint"),d=mt("container"),h=mt("spacing"),v=mt("radius"),m=mt("shadow"),w=mt("inset-shadow"),S=mt("text-shadow"),D=mt("drop-shadow"),B=mt("blur"),z=mt("perspective"),k=mt("aspect"),A=mt("ease"),_=mt("animate"),E=()=>["auto","avoid","all","avoid-page","page","left","right","column"],O=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],N=()=>[...O(),me,ve],V=()=>["auto","hidden","clip","visible","scroll"],ae=()=>["auto","contain","none"],j=()=>[me,ve,h],$=()=>[Dn,"full","auto",...j()],oe=()=>[$r,"none","subgrid",me,ve],ue=()=>["auto",{span:["full",$r,me,ve]},$r,me,ve],pe=()=>[$r,"auto",me,ve],q=()=>["auto","min","max","fr",me,ve],Z=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],fe=()=>["start","end","center","stretch","center-safe","end-safe"],he=()=>["auto",...j()],Ee=()=>[Dn,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...j()],ie=()=>[r,me,ve],Se=()=>[...O(),Ed,Sd,{position:[me,ve]}],M=()=>["no-repeat",{repeat:["","x","y","space","round"]}],T=()=>["auto","cover","contain",Wy,Vy,{size:[me,ve]}],K=()=>[Ss,gi,cn],re=()=>["","none","full",v,me,ve],P=()=>["",ze,gi,cn],J=()=>["solid","dashed","dotted","double"],G=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],U=()=>[ze,Ss,Ed,Sd],le=()=>["","none",B,me,ve],de=()=>["none",ze,me,ve],F=()=>["none",ze,me,ve],se=()=>[ze,me,ve],H=()=>[Dn,"full",...j()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[zr],breakpoint:[zr],color:[Ty],container:[zr],"drop-shadow":[zr],ease:["in","out","in-out"],font:[By],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[zr],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[zr],shadow:[zr],spacing:["px",ze],text:[zr],"text-shadow":[zr],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Dn,ve,me,k]}],container:["container"],columns:[{columns:[ze,ve,me,d]}],"break-after":[{"break-after":E()}],"break-before":[{"break-before":E()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:N()}],overflow:[{overflow:V()}],"overflow-x":[{"overflow-x":V()}],"overflow-y":[{"overflow-y":V()}],overscroll:[{overscroll:ae()}],"overscroll-x":[{"overscroll-x":ae()}],"overscroll-y":[{"overscroll-y":ae()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:$()}],"inset-x":[{"inset-x":$()}],"inset-y":[{"inset-y":$()}],start:[{start:$()}],end:[{end:$()}],top:[{top:$()}],right:[{right:$()}],bottom:[{bottom:$()}],left:[{left:$()}],visibility:["visible","invisible","collapse"],z:[{z:[$r,"auto",me,ve]}],basis:[{basis:[Dn,"full","auto",d,...j()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[ze,Dn,"auto","initial","none",ve]}],grow:[{grow:["",ze,me,ve]}],shrink:[{shrink:["",ze,me,ve]}],order:[{order:[$r,"first","last","none",me,ve]}],"grid-cols":[{"grid-cols":oe()}],"col-start-end":[{col:ue()}],"col-start":[{"col-start":pe()}],"col-end":[{"col-end":pe()}],"grid-rows":[{"grid-rows":oe()}],"row-start-end":[{row:ue()}],"row-start":[{"row-start":pe()}],"row-end":[{"row-end":pe()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":q()}],"auto-rows":[{"auto-rows":q()}],gap:[{gap:j()}],"gap-x":[{"gap-x":j()}],"gap-y":[{"gap-y":j()}],"justify-content":[{justify:[...Z(),"normal"]}],"justify-items":[{"justify-items":[...fe(),"normal"]}],"justify-self":[{"justify-self":["auto",...fe()]}],"align-content":[{content:["normal",...Z()]}],"align-items":[{items:[...fe(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...fe(),{baseline:["","last"]}]}],"place-content":[{"place-content":Z()}],"place-items":[{"place-items":[...fe(),"baseline"]}],"place-self":[{"place-self":["auto",...fe()]}],p:[{p:j()}],px:[{px:j()}],py:[{py:j()}],ps:[{ps:j()}],pe:[{pe:j()}],pt:[{pt:j()}],pr:[{pr:j()}],pb:[{pb:j()}],pl:[{pl:j()}],m:[{m:he()}],mx:[{mx:he()}],my:[{my:he()}],ms:[{ms:he()}],me:[{me:he()}],mt:[{mt:he()}],mr:[{mr:he()}],mb:[{mb:he()}],ml:[{ml:he()}],"space-x":[{"space-x":j()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":j()}],"space-y-reverse":["space-y-reverse"],size:[{size:Ee()}],w:[{w:[d,"screen",...Ee()]}],"min-w":[{"min-w":[d,"screen","none",...Ee()]}],"max-w":[{"max-w":[d,"screen","none","prose",{screen:[c]},...Ee()]}],h:[{h:["screen","lh",...Ee()]}],"min-h":[{"min-h":["screen","lh","none",...Ee()]}],"max-h":[{"max-h":["screen","lh",...Ee()]}],"font-size":[{text:["base",n,gi,cn]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[o,me,Es]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Ss,ve]}],"font-family":[{font:[Hy,ve,i]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[s,me,ve]}],"line-clamp":[{"line-clamp":[ze,"none",me,Es]}],leading:[{leading:[l,...j()]}],"list-image":[{"list-image":["none",me,ve]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",me,ve]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:ie()}],"text-color":[{text:ie()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...J(),"wavy"]}],"text-decoration-thickness":[{decoration:[ze,"from-font","auto",me,cn]}],"text-decoration-color":[{decoration:ie()}],"underline-offset":[{"underline-offset":[ze,"auto",me,ve]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:j()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",me,ve]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",me,ve]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:Se()}],"bg-repeat":[{bg:M()}],"bg-size":[{bg:T()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},$r,me,ve],radial:["",me,ve],conic:[$r,me,ve]},$y,Fy]}],"bg-color":[{bg:ie()}],"gradient-from-pos":[{from:K()}],"gradient-via-pos":[{via:K()}],"gradient-to-pos":[{to:K()}],"gradient-from":[{from:ie()}],"gradient-via":[{via:ie()}],"gradient-to":[{to:ie()}],rounded:[{rounded:re()}],"rounded-s":[{"rounded-s":re()}],"rounded-e":[{"rounded-e":re()}],"rounded-t":[{"rounded-t":re()}],"rounded-r":[{"rounded-r":re()}],"rounded-b":[{"rounded-b":re()}],"rounded-l":[{"rounded-l":re()}],"rounded-ss":[{"rounded-ss":re()}],"rounded-se":[{"rounded-se":re()}],"rounded-ee":[{"rounded-ee":re()}],"rounded-es":[{"rounded-es":re()}],"rounded-tl":[{"rounded-tl":re()}],"rounded-tr":[{"rounded-tr":re()}],"rounded-br":[{"rounded-br":re()}],"rounded-bl":[{"rounded-bl":re()}],"border-w":[{border:P()}],"border-w-x":[{"border-x":P()}],"border-w-y":[{"border-y":P()}],"border-w-s":[{"border-s":P()}],"border-w-e":[{"border-e":P()}],"border-w-t":[{"border-t":P()}],"border-w-r":[{"border-r":P()}],"border-w-b":[{"border-b":P()}],"border-w-l":[{"border-l":P()}],"divide-x":[{"divide-x":P()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":P()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...J(),"hidden","none"]}],"divide-style":[{divide:[...J(),"hidden","none"]}],"border-color":[{border:ie()}],"border-color-x":[{"border-x":ie()}],"border-color-y":[{"border-y":ie()}],"border-color-s":[{"border-s":ie()}],"border-color-e":[{"border-e":ie()}],"border-color-t":[{"border-t":ie()}],"border-color-r":[{"border-r":ie()}],"border-color-b":[{"border-b":ie()}],"border-color-l":[{"border-l":ie()}],"divide-color":[{divide:ie()}],"outline-style":[{outline:[...J(),"none","hidden"]}],"outline-offset":[{"outline-offset":[ze,me,ve]}],"outline-w":[{outline:["",ze,gi,cn]}],"outline-color":[{outline:ie()}],shadow:[{shadow:["","none",m,Oo,ko]}],"shadow-color":[{shadow:ie()}],"inset-shadow":[{"inset-shadow":["none",w,Oo,ko]}],"inset-shadow-color":[{"inset-shadow":ie()}],"ring-w":[{ring:P()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:ie()}],"ring-offset-w":[{"ring-offset":[ze,cn]}],"ring-offset-color":[{"ring-offset":ie()}],"inset-ring-w":[{"inset-ring":P()}],"inset-ring-color":[{"inset-ring":ie()}],"text-shadow":[{"text-shadow":["none",S,Oo,ko]}],"text-shadow-color":[{"text-shadow":ie()}],opacity:[{opacity:[ze,me,ve]}],"mix-blend":[{"mix-blend":[...G(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":G()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[ze]}],"mask-image-linear-from-pos":[{"mask-linear-from":U()}],"mask-image-linear-to-pos":[{"mask-linear-to":U()}],"mask-image-linear-from-color":[{"mask-linear-from":ie()}],"mask-image-linear-to-color":[{"mask-linear-to":ie()}],"mask-image-t-from-pos":[{"mask-t-from":U()}],"mask-image-t-to-pos":[{"mask-t-to":U()}],"mask-image-t-from-color":[{"mask-t-from":ie()}],"mask-image-t-to-color":[{"mask-t-to":ie()}],"mask-image-r-from-pos":[{"mask-r-from":U()}],"mask-image-r-to-pos":[{"mask-r-to":U()}],"mask-image-r-from-color":[{"mask-r-from":ie()}],"mask-image-r-to-color":[{"mask-r-to":ie()}],"mask-image-b-from-pos":[{"mask-b-from":U()}],"mask-image-b-to-pos":[{"mask-b-to":U()}],"mask-image-b-from-color":[{"mask-b-from":ie()}],"mask-image-b-to-color":[{"mask-b-to":ie()}],"mask-image-l-from-pos":[{"mask-l-from":U()}],"mask-image-l-to-pos":[{"mask-l-to":U()}],"mask-image-l-from-color":[{"mask-l-from":ie()}],"mask-image-l-to-color":[{"mask-l-to":ie()}],"mask-image-x-from-pos":[{"mask-x-from":U()}],"mask-image-x-to-pos":[{"mask-x-to":U()}],"mask-image-x-from-color":[{"mask-x-from":ie()}],"mask-image-x-to-color":[{"mask-x-to":ie()}],"mask-image-y-from-pos":[{"mask-y-from":U()}],"mask-image-y-to-pos":[{"mask-y-to":U()}],"mask-image-y-from-color":[{"mask-y-from":ie()}],"mask-image-y-to-color":[{"mask-y-to":ie()}],"mask-image-radial":[{"mask-radial":[me,ve]}],"mask-image-radial-from-pos":[{"mask-radial-from":U()}],"mask-image-radial-to-pos":[{"mask-radial-to":U()}],"mask-image-radial-from-color":[{"mask-radial-from":ie()}],"mask-image-radial-to-color":[{"mask-radial-to":ie()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":O()}],"mask-image-conic-pos":[{"mask-conic":[ze]}],"mask-image-conic-from-pos":[{"mask-conic-from":U()}],"mask-image-conic-to-pos":[{"mask-conic-to":U()}],"mask-image-conic-from-color":[{"mask-conic-from":ie()}],"mask-image-conic-to-color":[{"mask-conic-to":ie()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:Se()}],"mask-repeat":[{mask:M()}],"mask-size":[{mask:T()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",me,ve]}],filter:[{filter:["","none",me,ve]}],blur:[{blur:le()}],brightness:[{brightness:[ze,me,ve]}],contrast:[{contrast:[ze,me,ve]}],"drop-shadow":[{"drop-shadow":["","none",D,Oo,ko]}],"drop-shadow-color":[{"drop-shadow":ie()}],grayscale:[{grayscale:["",ze,me,ve]}],"hue-rotate":[{"hue-rotate":[ze,me,ve]}],invert:[{invert:["",ze,me,ve]}],saturate:[{saturate:[ze,me,ve]}],sepia:[{sepia:["",ze,me,ve]}],"backdrop-filter":[{"backdrop-filter":["","none",me,ve]}],"backdrop-blur":[{"backdrop-blur":le()}],"backdrop-brightness":[{"backdrop-brightness":[ze,me,ve]}],"backdrop-contrast":[{"backdrop-contrast":[ze,me,ve]}],"backdrop-grayscale":[{"backdrop-grayscale":["",ze,me,ve]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[ze,me,ve]}],"backdrop-invert":[{"backdrop-invert":["",ze,me,ve]}],"backdrop-opacity":[{"backdrop-opacity":[ze,me,ve]}],"backdrop-saturate":[{"backdrop-saturate":[ze,me,ve]}],"backdrop-sepia":[{"backdrop-sepia":["",ze,me,ve]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":j()}],"border-spacing-x":[{"border-spacing-x":j()}],"border-spacing-y":[{"border-spacing-y":j()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",me,ve]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[ze,"initial",me,ve]}],ease:[{ease:["linear","initial",A,me,ve]}],delay:[{delay:[ze,me,ve]}],animate:[{animate:["none",_,me,ve]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[z,me,ve]}],"perspective-origin":[{"perspective-origin":N()}],rotate:[{rotate:de()}],"rotate-x":[{"rotate-x":de()}],"rotate-y":[{"rotate-y":de()}],"rotate-z":[{"rotate-z":de()}],scale:[{scale:F()}],"scale-x":[{"scale-x":F()}],"scale-y":[{"scale-y":F()}],"scale-z":[{"scale-z":F()}],"scale-3d":["scale-3d"],skew:[{skew:se()}],"skew-x":[{"skew-x":se()}],"skew-y":[{"skew-y":se()}],transform:[{transform:[me,ve,"","none","gpu","cpu"]}],"transform-origin":[{origin:N()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:H()}],"translate-x":[{"translate-x":H()}],"translate-y":[{"translate-y":H()}],"translate-z":[{"translate-z":H()}],"translate-none":["translate-none"],accent:[{accent:ie()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:ie()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",me,ve]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":j()}],"scroll-mx":[{"scroll-mx":j()}],"scroll-my":[{"scroll-my":j()}],"scroll-ms":[{"scroll-ms":j()}],"scroll-me":[{"scroll-me":j()}],"scroll-mt":[{"scroll-mt":j()}],"scroll-mr":[{"scroll-mr":j()}],"scroll-mb":[{"scroll-mb":j()}],"scroll-ml":[{"scroll-ml":j()}],"scroll-p":[{"scroll-p":j()}],"scroll-px":[{"scroll-px":j()}],"scroll-py":[{"scroll-py":j()}],"scroll-ps":[{"scroll-ps":j()}],"scroll-pe":[{"scroll-pe":j()}],"scroll-pt":[{"scroll-pt":j()}],"scroll-pr":[{"scroll-pr":j()}],"scroll-pb":[{"scroll-pb":j()}],"scroll-pl":[{"scroll-pl":j()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",me,ve]}],fill:[{fill:["none",...ie()]}],"stroke-w":[{stroke:[ze,gi,cn,Es]}],stroke:[{stroke:["none",...ie()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},Gy=(r,{cacheSize:i,prefix:n,experimentalParseClassName:o,extend:s={},override:l={}})=>(xi(r,"cacheSize",i),xi(r,"prefix",n),xi(r,"experimentalParseClassName",o),No(r.theme,l.theme),No(r.classGroups,l.classGroups),No(r.conflictingClassGroups,l.conflictingClassGroups),No(r.conflictingClassGroupModifiers,l.conflictingClassGroupModifiers),xi(r,"orderSensitiveModifiers",l.orderSensitiveModifiers),Co(r.theme,s.theme),Co(r.classGroups,s.classGroups),Co(r.conflictingClassGroups,s.conflictingClassGroups),Co(r.conflictingClassGroupModifiers,s.conflictingClassGroupModifiers),$p(r,s,"orderSensitiveModifiers"),r),xi=(r,i,n)=>{n!==void 0&&(r[i]=n)},No=(r,i)=>{if(i)for(const n in i)xi(r,n,i[n])},Co=(r,i)=>{if(i)for(const n in i)$p(r,i,n)},$p=(r,i,n)=>{const o=i[n];o!==void 0&&(r[n]=r[n]?r[n].concat(o):o)},qy=(r,...i)=>typeof r=="function"?Id(kd,r,...i):Id(()=>Gy(kd(),r),...i);function Kp(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var Od={exports:{}};/*!
|
|
26
|
+
`)+oe+`return __p
|
|
27
|
+
}`;var Pe=Pd(function(){return qe(v,we+"return "+oe).apply(n,_)});if(Pe.source=oe,zs(Pe))throw Pe;return Pe}function wx(e){return Ge(e).toLowerCase()}function xx(e){return Ge(e).toUpperCase()}function yx(e,r,a){if(e=Ge(e),e&&(a||r===n))return $c(e);if(!e||!(r=Xt(r)))return e;var u=hr(e),h=hr(r),v=qc(u,h),_=Uc(u,h)+1;return Kr(u,v,_).join("")}function _x(e,r,a){if(e=Ge(e),e&&(a||r===n))return e.slice(0,Gc(e)+1);if(!e||!(r=Xt(r)))return e;var u=hr(e),h=Uc(u,hr(r))+1;return Kr(u,0,h).join("")}function Ix(e,r,a){if(e=Ge(e),e&&(a||r===n))return e.replace(io,"");if(!e||!(r=Xt(r)))return e;var u=hr(e),h=qc(u,hr(r));return Kr(u,h).join("")}function Sx(e,r){var a=te,u=pe;if(at(r)){var h="separator"in r?r.separator:h;a="length"in r?Ae(r.length):a,u="omission"in r?Xt(r.omission):u}e=Ge(e);var v=e.length;if(In(e)){var _=hr(e);v=_.length}if(a>=v)return e;var O=a-Sn(u);if(O<1)return u;var D=_?Kr(_,0,O).join(""):e.slice(0,O);if(h===n)return D+u;if(_&&(O+=D.length-O),Ds(h)){if(e.slice(O).search(h)){var Z,Y=D;for(h.global||(h=Za(h.source,Ge(Xo.exec(h))+"g")),h.lastIndex=0;Z=h.exec(Y);)var oe=Z.index;D=D.slice(0,oe===n?O:oe)}}else if(e.indexOf(Xt(h),O)!=O){var de=D.lastIndexOf(h);de>-1&&(D=D.slice(0,de))}return D+u}function Ex(e){return e=Ge(e),e&&Uo.test(e)?e.replace(Qn,tv):e}var kx=Rn(function(e,r,a){return e+(a?" ":"")+r.toUpperCase()}),js=Pu("toUpperCase");function Td(e,r,a){return e=Ge(e),r=a?n:r,r===n?Yg(e)?ov(e):Fg(e):e.match(r)||[]}var Pd=je(function(e,r){try{return Gt(e,n,r)}catch(a){return zs(a)?a:new Re(a)}}),Ox=Mr(function(e,r){return Zt(r,function(a){a=gr(a),_r(e,a,Ms(e[a],e))}),e});function Cx(e){var r=e==null?0:e.length,a=Oe();return e=r?ot(e,function(u){if(typeof u[1]!="function")throw new or(c);return[a(u[0]),u[1]]}):[],je(function(u){for(var h=-1;++h<r;){var v=e[h];if(Gt(v[0],this,u))return Gt(v[1],this,u)}})}function Nx(e){return tm(ar(e,I))}function Ls(e){return function(){return e}}function Mx(e,r){return e==null||e!==e?r:e}var Rx=Lu(),zx=Lu(!0);function Ft(e){return e}function Vs(e){return fu(typeof e=="function"?e:ar(e,I))}function Dx(e){return vu(ar(e,I))}function Ax(e,r){return mu(e,ar(r,I))}var Tx=je(function(e,r){return function(a){return vo(a,e,r)}}),Px=je(function(e,r){return function(a){return vo(e,a,r)}});function Bs(e,r,a){var u=St(r),h=bi(r,u);a==null&&!(at(r)&&(h.length||!u.length))&&(a=r,r=e,e=this,h=bi(r,St(r)));var v=!(at(a)&&"chain"in a)||!!a.chain,_=zr(e);return Zt(h,function(O){var D=r[O];e[O]=D,_&&(e.prototype[O]=function(){var Z=this.__chain__;if(v||Z){var Y=e(this.__wrapped__),oe=Y.__actions__=Lt(this.__actions__);return oe.push({func:D,args:arguments,thisArg:e}),Y.__chain__=Z,Y}return D.apply(e,Fr([this.value()],arguments))})}),e}function jx(){return Et._===this&&(Et._=uv),this}function Fs(){}function Lx(e){return e=Ae(e),je(function(r){return bu(r,e)})}var Vx=ms(ot),Bx=ms(Vc),Fx=ms(Ha);function jd(e){return Ss(e)?Wa(gr(e)):bm(e)}function Hx(e){return function(r){return e==null?n:un(e,r)}}var Wx=Bu(),$x=Bu(!0);function Hs(){return[]}function Ws(){return!1}function qx(){return{}}function Ux(){return""}function Kx(){return!0}function Gx(e,r){if(e=Ae(e),e<1||e>Ie)return[];var a=T,u=Ot(e,T);r=Oe(r),e-=T;for(var h=Ua(u,r);++a<e;)r(a);return h}function Zx(e){return ze(e)?ot(e,gr):Jt(e)?[e]:Lt(rd(Ge(e)))}function Yx(e){var r=++lv;return Ge(e)+r}var Xx=Si(function(e,r){return e+r},0),Jx=bs("ceil"),Qx=Si(function(e,r){return e/r},1),ey=bs("floor");function ty(e){return e&&e.length?mi(e,Ft,ns):n}function ry(e,r){return e&&e.length?mi(e,Oe(r,2),ns):n}function ny(e){return Hc(e,Ft)}function oy(e,r){return Hc(e,Oe(r,2))}function iy(e){return e&&e.length?mi(e,Ft,ss):n}function ay(e,r){return e&&e.length?mi(e,Oe(r,2),ss):n}var sy=Si(function(e,r){return e*r},1),ly=bs("round"),cy=Si(function(e,r){return e-r},0);function uy(e){return e&&e.length?qa(e,Ft):0}function dy(e,r){return e&&e.length?qa(e,Oe(r,2)):0}return f.after=A0,f.ary=hd,f.assign=yw,f.assignIn=Od,f.assignInWith=Cd,f.assignWith=As,f.at=_w,f.before=fd,f.bind=Ms,f.bindAll=Ox,f.bindKey=gd,f.castArray=U0,f.chain=ud,f.chunk=tb,f.compact=rb,f.concat=nb,f.cond=Cx,f.conforms=Nx,f.constant=Ls,f.countBy=d0,f.create=Iw,f.curry=vd,f.curryRight=md,f.debounce=bd,f.defaults=Sw,f.defaultsDeep=Ew,f.defer=T0,f.delay=P0,f.difference=ob,f.differenceBy=ib,f.differenceWith=ab,f.drop=sb,f.dropRight=lb,f.dropRightWhile=cb,f.dropWhile=ub,f.fill=db,f.filter=h0,f.flatMap=v0,f.flatMapDeep=m0,f.flatMapDepth=b0,f.flatten=ad,f.flattenDeep=pb,f.flattenDepth=hb,f.flip=j0,f.flow=Rx,f.flowRight=zx,f.fromPairs=fb,f.functions=zw,f.functionsIn=Dw,f.groupBy=w0,f.initial=vb,f.intersection=mb,f.intersectionBy=bb,f.intersectionWith=wb,f.invert=Tw,f.invertBy=Pw,f.invokeMap=y0,f.iteratee=Vs,f.keyBy=_0,f.keys=St,f.keysIn=Bt,f.map=Ri,f.mapKeys=Lw,f.mapValues=Vw,f.matches=Dx,f.matchesProperty=Ax,f.memoize=Di,f.merge=Bw,f.mergeWith=Nd,f.method=Tx,f.methodOf=Px,f.mixin=Bs,f.negate=Ai,f.nthArg=Lx,f.omit=Fw,f.omitBy=Hw,f.once=L0,f.orderBy=I0,f.over=Vx,f.overArgs=V0,f.overEvery=Bx,f.overSome=Fx,f.partial=Rs,f.partialRight=wd,f.partition=S0,f.pick=Ww,f.pickBy=Md,f.property=jd,f.propertyOf=Hx,f.pull=Ib,f.pullAll=ld,f.pullAllBy=Sb,f.pullAllWith=Eb,f.pullAt=kb,f.range=Wx,f.rangeRight=$x,f.rearg=B0,f.reject=O0,f.remove=Ob,f.rest=F0,f.reverse=Cs,f.sampleSize=N0,f.set=qw,f.setWith=Uw,f.shuffle=M0,f.slice=Cb,f.sortBy=D0,f.sortedUniq=Tb,f.sortedUniqBy=Pb,f.split=gx,f.spread=H0,f.tail=jb,f.take=Lb,f.takeRight=Vb,f.takeRightWhile=Bb,f.takeWhile=Fb,f.tap=r0,f.throttle=W0,f.thru=Mi,f.toArray=Sd,f.toPairs=Rd,f.toPairsIn=zd,f.toPath=Zx,f.toPlainObject=kd,f.transform=Kw,f.unary=$0,f.union=Hb,f.unionBy=Wb,f.unionWith=$b,f.uniq=qb,f.uniqBy=Ub,f.uniqWith=Kb,f.unset=Gw,f.unzip=Ns,f.unzipWith=cd,f.update=Zw,f.updateWith=Yw,f.values=An,f.valuesIn=Xw,f.without=Gb,f.words=Td,f.wrap=q0,f.xor=Zb,f.xorBy=Yb,f.xorWith=Xb,f.zip=Jb,f.zipObject=Qb,f.zipObjectDeep=e0,f.zipWith=t0,f.entries=Rd,f.entriesIn=zd,f.extend=Od,f.extendWith=Cd,Bs(f,f),f.add=Xx,f.attempt=Pd,f.camelCase=tx,f.capitalize=Dd,f.ceil=Jx,f.clamp=Jw,f.clone=K0,f.cloneDeep=Z0,f.cloneDeepWith=Y0,f.cloneWith=G0,f.conformsTo=X0,f.deburr=Ad,f.defaultTo=Mx,f.divide=Qx,f.endsWith=rx,f.eq=vr,f.escape=nx,f.escapeRegExp=ox,f.every=p0,f.find=f0,f.findIndex=od,f.findKey=kw,f.findLast=g0,f.findLastIndex=id,f.findLastKey=Ow,f.floor=ey,f.forEach=dd,f.forEachRight=pd,f.forIn=Cw,f.forInRight=Nw,f.forOwn=Mw,f.forOwnRight=Rw,f.get=Ts,f.gt=J0,f.gte=Q0,f.has=Aw,f.hasIn=Ps,f.head=sd,f.identity=Ft,f.includes=x0,f.indexOf=gb,f.inRange=Qw,f.invoke=jw,f.isArguments=hn,f.isArray=ze,f.isArrayBuffer=ew,f.isArrayLike=Vt,f.isArrayLikeObject=dt,f.isBoolean=tw,f.isBuffer=Gr,f.isDate=rw,f.isElement=nw,f.isEmpty=ow,f.isEqual=iw,f.isEqualWith=aw,f.isError=zs,f.isFinite=sw,f.isFunction=zr,f.isInteger=xd,f.isLength=Ti,f.isMap=yd,f.isMatch=lw,f.isMatchWith=cw,f.isNaN=uw,f.isNative=dw,f.isNil=hw,f.isNull=pw,f.isNumber=_d,f.isObject=at,f.isObjectLike=ct,f.isPlainObject=_o,f.isRegExp=Ds,f.isSafeInteger=fw,f.isSet=Id,f.isString=Pi,f.isSymbol=Jt,f.isTypedArray=Dn,f.isUndefined=gw,f.isWeakMap=vw,f.isWeakSet=mw,f.join=xb,f.kebabCase=ix,f.last=lr,f.lastIndexOf=yb,f.lowerCase=ax,f.lowerFirst=sx,f.lt=bw,f.lte=ww,f.max=ty,f.maxBy=ry,f.mean=ny,f.meanBy=oy,f.min=iy,f.minBy=ay,f.stubArray=Hs,f.stubFalse=Ws,f.stubObject=qx,f.stubString=Ux,f.stubTrue=Kx,f.multiply=sy,f.nth=_b,f.noConflict=jx,f.noop=Fs,f.now=zi,f.pad=lx,f.padEnd=cx,f.padStart=ux,f.parseInt=dx,f.random=ex,f.reduce=E0,f.reduceRight=k0,f.repeat=px,f.replace=hx,f.result=$w,f.round=ly,f.runInContext=z,f.sample=C0,f.size=R0,f.snakeCase=fx,f.some=z0,f.sortedIndex=Nb,f.sortedIndexBy=Mb,f.sortedIndexOf=Rb,f.sortedLastIndex=zb,f.sortedLastIndexBy=Db,f.sortedLastIndexOf=Ab,f.startCase=vx,f.startsWith=mx,f.subtract=cy,f.sum=uy,f.sumBy=dy,f.template=bx,f.times=Gx,f.toFinite=Dr,f.toInteger=Ae,f.toLength=Ed,f.toLower=wx,f.toNumber=cr,f.toSafeInteger=xw,f.toString=Ge,f.toUpper=xx,f.trim=yx,f.trimEnd=_x,f.trimStart=Ix,f.truncate=Sx,f.unescape=Ex,f.uniqueId=Yx,f.upperCase=kx,f.upperFirst=js,f.each=dd,f.eachRight=pd,f.first=sd,Bs(f,(function(){var e={};return Ir(f,function(r,a){Ke.call(f.prototype,a)||(e[a]=r)}),e})(),{chain:!1}),f.VERSION=i,Zt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){f[e].placeholder=f}),Zt(["drop","take"],function(e,r){He.prototype[e]=function(a){a=a===n?1:wt(Ae(a),0);var u=this.__filtered__&&!r?new He(this):this.clone();return u.__filtered__?u.__takeCount__=Ot(a,u.__takeCount__):u.__views__.push({size:Ot(a,T),type:e+(u.__dir__<0?"Right":"")}),u},He.prototype[e+"Right"]=function(a){return this.reverse()[e](a).reverse()}}),Zt(["filter","map","takeWhile"],function(e,r){var a=r+1,u=a==ie||a==xe;He.prototype[e]=function(h){var v=this.clone();return v.__iteratees__.push({iteratee:Oe(h,3),type:a}),v.__filtered__=v.__filtered__||u,v}}),Zt(["head","last"],function(e,r){var a="take"+(r?"Right":"");He.prototype[e]=function(){return this[a](1).value()[0]}}),Zt(["initial","tail"],function(e,r){var a="drop"+(r?"":"Right");He.prototype[e]=function(){return this.__filtered__?new He(this):this[a](1)}}),He.prototype.compact=function(){return this.filter(Ft)},He.prototype.find=function(e){return this.filter(e).head()},He.prototype.findLast=function(e){return this.reverse().find(e)},He.prototype.invokeMap=je(function(e,r){return typeof e=="function"?new He(this):this.map(function(a){return vo(a,e,r)})}),He.prototype.reject=function(e){return this.filter(Ai(Oe(e)))},He.prototype.slice=function(e,r){e=Ae(e);var a=this;return a.__filtered__&&(e>0||r<0)?new He(a):(e<0?a=a.takeRight(-e):e&&(a=a.drop(e)),r!==n&&(r=Ae(r),a=r<0?a.dropRight(-r):a.take(r-e)),a)},He.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},He.prototype.toArray=function(){return this.take(T)},Ir(He.prototype,function(e,r){var a=/^(?:filter|find|map|reject)|While$/.test(r),u=/^(?:head|last)$/.test(r),h=f[u?"take"+(r=="last"?"Right":""):r],v=u||/^find/.test(r);h&&(f.prototype[r]=function(){var _=this.__wrapped__,O=u?[1]:arguments,D=_ instanceof He,Z=O[0],Y=D||ze(_),oe=function(Fe){var We=h.apply(f,Fr([Fe],O));return u&&de?We[0]:We};Y&&a&&typeof Z=="function"&&Z.length!=1&&(D=Y=!1);var de=this.__chain__,we=!!this.__actions__.length,Ne=v&&!de,Pe=D&&!we;if(!v&&Y){_=Pe?_:new He(this);var ke=e.apply(_,O);return ke.__actions__.push({func:Mi,args:[oe],thisArg:n}),new ir(ke,de)}return Ne&&Pe?e.apply(this,O):(ke=this.thru(oe),Ne?u?ke.value()[0]:ke.value():ke)})}),Zt(["pop","push","shift","sort","splice","unshift"],function(e){var r=ri[e],a=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",u=/^(?:pop|shift)$/.test(e);f.prototype[e]=function(){var h=arguments;if(u&&!this.__chain__){var v=this.value();return r.apply(ze(v)?v:[],h)}return this[a](function(_){return r.apply(ze(_)?_:[],h)})}}),Ir(He.prototype,function(e,r){var a=f[r];if(a){var u=a.name+"";Ke.call(Cn,u)||(Cn[u]=[]),Cn[u].push({name:r,func:a})}}),Cn[Ii(n,y).name]=[{name:"wrapper",func:n}],He.prototype.clone=kv,He.prototype.reverse=Ov,He.prototype.value=Cv,f.prototype.at=n0,f.prototype.chain=o0,f.prototype.commit=i0,f.prototype.next=a0,f.prototype.plant=l0,f.prototype.reverse=c0,f.prototype.toJSON=f.prototype.valueOf=f.prototype.value=u0,f.prototype.first=f.prototype.head,lo&&(f.prototype[lo]=s0),f}),En=iv();on?((on.exports=En)._=En,La._=En):Et._=En}).call(vy)})(Oo,Oo.exports)),Oo.exports}var Qi=my();const la={session:{"webforms.renderer.showPopOver":!0,"webforms.renderer.showUnsavedPopOver":!0,"webforms.tooltip.behavior":st.ETooltipBehavior.SHOW_AFTER_TIMEOUT,"webforms.tooltip.timeout":3e3,"studio.tips":!0,"welcometour.active":!0,"studio.enablePreview":!1},project:{"webforms.renderer.indexPage":"","webforms.display-mode":"neutral"}},by=t=>[{name:st.FolderRootPath.WEBFORMS,path:st.FolderRootPath.WEBFORMS,type:st.FileFolderType.FOLDER,error:null,flags:{expanded:!1,loading:!1,cached:!1},config:{},isRoot:!0,children:t.map(o=>({name:o.name,path:`${st.FolderRootPath.WEBFORMS}/${o.name}`,type:st.FileFolderType.WEBFORM,ext:"WebForm",error:null,flags:{},config:{}}))}],wy=({tabPath:t=null,preferences:o={},qodly:n=!0,explorer:i,webforms:s=[]})=>{var d,p,g;const l=s.length?s:((g=(p=(d=i==null?void 0:i.find(b=>b.path===st.FolderRootPath.WEBFORMS))==null?void 0:d.children)==null?void 0:p.filter(b=>(b==null?void 0:b.ext)==="WebForm"))==null?void 0:g.map(b=>({name:b.name})))??[],c={session:{...la.session,...o.session??{}},project:{...la.project,...o.project??{}}};return{tabPath:t,preferences:c,qodly:n,explorer:i??by(l),webforms:l}};function th(t,o){return t.reduce((n,i)=>n||(i.path===o?i:i.children?th(i.children,o):null),null)}function xy(t,o){switch(o.type){case"SET_TAB_PATH":return{...t,tabPath:o.payload};case"SET_PREFERENCES":return{...t,preferences:o.payload};case"SET_QODLY":return{...t,qodly:o.payload};case"SET_EXPLORER":return{...t,explorer:o.payload};case"SET_WEBFORMS":return{...t,webforms:o.payload};case"SET_SETTING":{const{path:n,settingsKey:i,value:s}=o.payload;return{...t,preferences:{...t.preferences,[n]:{...t.preferences[n]??{},[i]:s}}}}case"SET_SETTINGS_AS_TEXT":{const{path:n,settings:i}=o.payload;return{...t,preferences:{...t.preferences,[n]:i}}}default:return t}}const rh=m.createContext(null),nh=({children:t,tabPath:o,preferences:n,qodly:i,explorer:s,webforms:l,onFetchFolderContentWithoutExpanding:c,onCreateNewFileAndOpen:d,onOpenModal:p,onChange:g})=>{const[b,x]=m.useReducer(xy,wy({tabPath:o,preferences:n,qodly:i,explorer:s,webforms:l}));st.useDidMountEffect(()=>{g==null||g(b.preferences)},[b.preferences,g]),m.useEffect(()=>{o!==void 0&&b.tabPath!==o&&x({type:"SET_TAB_PATH",payload:o})},[o,b.tabPath]),m.useEffect(()=>{n!==void 0&&!Qi.isEqual(b.preferences,n)&&x({type:"SET_PREFERENCES",payload:{session:{...la.session,...n.session??{}},project:{...la.project,...n.project??{}}}})},[n]),m.useEffect(()=>{i!==void 0&&b.qodly!==i&&x({type:"SET_QODLY",payload:i})},[i,b.qodly]),m.useEffect(()=>{s&&(Qi.isEqual(b.explorer,s)||x({type:"SET_EXPLORER",payload:s}))},[s,b.explorer]),m.useEffect(()=>{l!==void 0&&!Qi.isEqual(b.webforms,l)&&x({type:"SET_WEBFORMS",payload:l})},[l,b.webforms]);const I=m.useMemo(()=>({onFetchFolderContentWithoutExpanding:c,onCreateNewFileAndOpen:d,onOpenModal:p}),[c,d,p]);return w.jsx(rh.Provider,{value:{state:b,dispatch:x,externalActions:I},children:t})};function oh(t){const o=m.useContext(rh);if(!o)throw new Error("useReducerAdapter must be used within a ReducerAdapterProvider");const{state:n,dispatch:i,externalActions:s}=o;return{getTabPath:m.useCallback(()=>t??n.tabPath,[t,n.tabPath]),getPreferences:m.useCallback(()=>n.preferences,[n.preferences]),getQodly:m.useCallback(()=>n.qodly,[n.qodly]),getFeatureFlag:m.useCallback(l=>l==="states"?!0:!!n.preferences.session[`features.experimental.${l}`],[n.preferences.session]),getExplorer:m.useCallback(()=>n.explorer,[n.explorer]),getWebForms:m.useCallback(()=>n.webforms,[n.webforms]),findNodeByPath:m.useCallback(l=>th(n.explorer,l),[n.explorer]),actions:{setSetting:m.useCallback(l=>{i({type:"SET_SETTING",payload:l})},[]),setSettingsAsText:m.useCallback(l=>{i({type:"SET_SETTINGS_AS_TEXT",payload:l})},[]),fetchFolderContentWithoutExpanding:m.useCallback(async l=>s.onFetchFolderContentWithoutExpanding?s.onFetchFolderContentWithoutExpanding(l):Promise.reject(new Error("ReducerAdapterProvider must receive onFetchFolderContentWithoutExpanding when using features that load folder content (e.g. WebformSelector).")),[s]),createNewFileAndOpen:m.useCallback(async l=>s.onCreateNewFileAndOpen?s.onCreateNewFileAndOpen(l):Promise.reject(new Error("ReducerAdapterProvider must receive onCreateNewFileAndOpen when using features that create new files (e.g. WebformSelector).")),[s]),openModal:m.useCallback(async l=>s.onOpenModal?s.onOpenModal(l):typeof window<"u"&&l.type===st.ModalType.CONFIRM?{confirmed:window.confirm(l.message)}:{confirmed:!0},[s])}}}const yy=({name:t,value:o,defaultValue:n,options:i,onChange:s,setTouched:l})=>{const[c,d]=m.useState(n),p=o??c;return w.jsx("div",{role:"radiogroup","aria-label":t,className:"flex items-center gap-1",children:i.map(g=>{const b=p===g.value;return w.jsx("button",{type:"button",role:"radio",name:t,"aria-checked":b,title:g.tooltip,onClick:()=>{var x;l==null||l(!0),d(g.value),s==null||s(g.value),(x=g.onClick)==null||x.call(g,g.value)},className:`inline-flex h-7 w-7 items-center justify-center rounded transition-colors ${b?"text-body":"text-inactive-text hover:text-body"}`,children:m.createElement(g.icon,{className:"h-4 w-4"})},g.value)})})},_y=({icon:t,label:o,path:n,settingsKey:i,options:s})=>{var d;const l=jo(),c=(d=l.getPreferences()[n])==null?void 0:d[i];return w.jsx("div",{className:"select-none space-y-4 rounded-md p-4 hover:bg-primary-hover",children:w.jsxs("div",{className:"flex items-center",children:[w.jsx("span",{className:"mr-3 flex h-6 w-6 items-center justify-center",children:m.createElement(t,{className:"w-full h-full"})}),w.jsx("div",{className:"text-sm",children:o}),w.jsx("span",{className:"ml-auto",children:w.jsx(yy,{name:"tooltip-behavior",value:c,onChange:p=>{l.actions.setSetting({path:n,settingsKey:i,value:p})},options:s})})]})})};(function(){try{const t=document.createElement("style");t.setAttribute("data-vite-dev-id","ui-components.css"),t.textContent=`/*! tailwindcss v4.1.18 | MIT License | https://tailwindcss.com */@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-space-y-reverse:0;--tw-space-x-reverse:0;--tw-border-style:solid;--tw-gradient-position:initial;--tw-gradient-from:#0000;--tw-gradient-via:#0000;--tw-gradient-to:#0000;--tw-gradient-stops:initial;--tw-gradient-via-stops:initial;--tw-gradient-from-position:0%;--tw-gradient-via-position:50%;--tw-gradient-to-position:100%;--tw-leading:initial;--tw-font-weight:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-outline-style:solid;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-duration:initial;--tw-ease:initial}}:root:not(#\\#),:host:not(#\\#){--color-green-500:oklch(72.3% .219 149.579);--color-blue-500:oklch(62.3% .214 259.815);--color-pink-500:oklch(65.6% .241 354.308);--color-gray-50:oklch(98.5% .002 247.839);--color-gray-100:oklch(96.7% .003 264.542);--color-gray-400:oklch(70.7% .022 261.325);--color-gray-500:oklch(55.1% .027 264.364);--color-gray-800:oklch(27.8% .033 256.848);--color-white:#fff;--spacing:.25rem;--container-md:28rem;--text-xs:.65rem;--text-xs--line-height:calc(1/.75);--text-sm:.875rem;--text-sm--line-height:calc(1.25/.875);--text-base:1rem;--text-base--line-height: 1.5 ;--text-lg:1.125rem;--text-lg--line-height:calc(1.75/1.125);--text-xl:1.25rem;--text-xl--line-height:calc(1.75/1.25);--text-2xl:1.5rem;--text-2xl--line-height:calc(2/1.5);--text-3xl:1.875rem;--text-3xl--line-height: 1.2 ;--text-4xl:2.25rem;--text-4xl--line-height:calc(2.5/2.25);--text-5xl:3rem;--text-5xl--line-height:1;--text-6xl:3.75rem;--text-6xl--line-height:1;--text-7xl:4.5rem;--text-7xl--line-height:1;--text-8xl:6rem;--text-8xl--line-height:1;--text-9xl:8rem;--text-9xl--line-height:1;--font-weight-thin:100;--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--radius-xs:.125rem;--radius-md:.375rem;--radius-lg:.5rem;--ease-out:cubic-bezier(0,0,.2,1);--ease-in-out:cubic-bezier(.4,0,.2,1);--animate-bounce:bounce 1s infinite;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4,0,.2,1);--color-grey-50:var(--ws-grey-50);--color-grey-100:var(--ws-grey-100);--color-grey-200:var(--ws-grey-200);--color-grey-300:var(--ws-grey-300);--color-grey-400:var(--ws-grey-400);--color-grey-500:var(--ws-grey-500);--color-grey-600:var(--ws-grey-600);--color-grey-700:var(--ws-grey-700);--color-grey-800:var(--ws-grey-800);--color-primary-500:var(--ws-primary-500);--color-primary-600:var(--ws-primary-600);--color-primary-700:var(--ws-primary-700);--color-positive-200:var(--ws-positive-200);--color-positive-400:var(--ws-positive-400);--color-positive-500:var(--ws-positive-500);--color-positive-600:var(--ws-positive-600);--color-warning-500:var(--ws-warning-500);--color-negative-400:var(--ws-negative-400);--color-negative-500:var(--ws-negative-500);--text-xxs:.55rem;--text-s:.75rem;--min-height-6:1.5rem;--color-canvas-default:var(--ws-bg-default);--color-canvas-subtle:var(--ws-grey-100);--color-panel:var(--ws-grey-300);--color-panel-subtle:var(--ws-grey-200);--color-card:var(--ws-card-bg);--color-card-border:var(--ws-card-border);--color-body:var(--ws-bg-foreground);--color-body-bg:var(--ws-bg-default);--color-body-light:var(--ws-grey-100);--color-muted:var(--ws-text-muted);--color-neutral:var(--ws-grey-200);--color-button-text:var(--ws-button-fg);--color-primary:var(--ws-primary-default);--color-primary-hover:var(--ws-primary-hover);--color-primary-light:var(--ws-primary-light);--color-primary-dark:var(--ws-primary-dark);--color-positive:var(--ws-positive-500);--color-positive-hover:var(--ws-positive-hover);--color-positive-text:var(--ws-positive-text);--color-positive-bg:var(--ws-positive-bg);--color-positive-light:var(--ws-positive-light);--color-positive-dark:var(--ws-positive-dark);--color-negative:var(--ws-negative-500);--color-negative-hover:var(--ws-negative-hover);--color-negative-text:var(--ws-negative-text);--color-negative-bg:var(--ws-negative-bg);--color-negative-light:var(--ws-negative-light);--color-negative-dark:var(--ws-negative-dark);--color-warning:var(--ws-warning-500);--color-warning-hover:var(--ws-warning-hover);--color-warning-text:var(--ws-warning-text);--color-warning-bg:var(--ws-warning-bg);--color-warning-light:var(--ws-warning-light);--color-warning-dark:var(--ws-warning-dark);--color-input-bg:var(--ws-input-bg);--color-input-border:var(--ws-input-border);--color-input-text:var(--ws-input-text);--color-input-placeholder:var(--ws-input-placeholder);--color-input-focus-border:var(--ws-input-focus-border);--color-select-border:var(--ws-select-border);--color-select-text:var(--ws-select-text);--color-select-list-bg:var(--ws-select-list-bg);--color-input-option-hover-bg:var(--ws-input-option-hover-bg);--color-input-option-active-bg:var(--ws-input-option-active-bg);--color-input-option-active-text:var(--ws-input-option-active-text);--color-input-error-border:var(--ws-input-error-border);--color-input-error-bg:var(--ws-input-error-bg);--color-input-warning-border:var(--ws-input-warning-border);--color-input-warning-bg:var(--ws-input-warning-bg);--color-input-message-bg:var(--ws-input-message-bg);--color-input-message-text:var(--ws-input-message-text);--color-input-disable:var(--ws-disable-input);--color-inactive-text:var(--ws-inactive-text);--color-panel-0:var(--ws-panel-0);--color-panel-1:var(--ws-panel-1);--color-panel-2:var(--ws-panel-2);--color-panel-3:var(--ws-panel-3);--color-panel-4:var(--ws-panel-4);--color-panel-5:var(--ws-panel-5);--color-panel-border-subtle:var(--ws-panel-border-subtle);--color-tab-bg-default:var(--ws-tab-bg-default);--color-tab-border:var(--ws-tab-border);--color-tab-active-bg:var(--ws-tab-active-bg);--color-tab-active-fg:var(--ws-tab-active-fg);--color-tab-inactive-bg:var(--ws-tab-inactive-bg);--color-tab-inactive-fg:var(--ws-tab-inactive-fg);--color-panel-border:var(--ws-panel-border)}.pointer-events-auto:not(#\\#){pointer-events:auto}.pointer-events-none:not(#\\#){pointer-events:none}.collapse:not(#\\#){visibility:collapse}.visible:not(#\\#){visibility:visible}.sr-only:not(#\\#){clip-path:inset(50%);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.absolute:not(#\\#){position:absolute}.fixed:not(#\\#){position:fixed}.relative:not(#\\#){position:relative}.static:not(#\\#){position:static}.inset-0:not(#\\#){inset:calc(var(--spacing)*0)}.-top-1\\/5:not(#\\#){top:-20%}.top-0:not(#\\#){top:calc(var(--spacing)*0)}.top-1:not(#\\#){top:calc(var(--spacing)*1)}.top-full:not(#\\#){top:100%}.-right-12:not(#\\#){right:calc(var(--spacing)*-12)}.-right-px:not(#\\#){right:-1px}.right-0:not(#\\#){right:calc(var(--spacing)*0)}.right-1:not(#\\#){right:calc(var(--spacing)*1)}.bottom-0:not(#\\#){bottom:calc(var(--spacing)*0)}.bottom-full:not(#\\#){bottom:100%}.-left-px:not(#\\#){left:-1px}.left-0:not(#\\#){left:calc(var(--spacing)*0)}.left-0\\.5:not(#\\#){left:calc(var(--spacing)*.5)}.left-1\\/2:not(#\\#){left:50%}.left-3\\.5:not(#\\#){left:calc(var(--spacing)*3.5)}.left-4:not(#\\#){left:calc(var(--spacing)*4)}.left-4\\.5:not(#\\#){left:calc(var(--spacing)*4.5)}.left-5\\.5:not(#\\#){left:calc(var(--spacing)*5.5)}.left-full:not(#\\#){left:100%}.z-1:not(#\\#){z-index:1}.z-2:not(#\\#){z-index:2}.z-10:not(#\\#){z-index:10}.z-40:not(#\\#){z-index:40}.z-50:not(#\\#){z-index:50}.z-60:not(#\\#){z-index:60}.z-9999:not(#\\#){z-index:9999}.container:not(#\\#){width:100%}@media(min-width:40rem){.container:not(#\\#){max-width:40rem}}@media(min-width:48rem){.container:not(#\\#){max-width:48rem}}@media(min-width:64rem){.container:not(#\\#){max-width:64rem}}@media(min-width:80rem){.container:not(#\\#){max-width:80rem}}@media(min-width:96rem){.container:not(#\\#){max-width:96rem}}.m-0:not(#\\#){margin:calc(var(--spacing)*0)}.m-0\\.5:not(#\\#){margin:calc(var(--spacing)*.5)}.m-px:not(#\\#){margin:1px}.mx-1:not(#\\#){margin-inline:calc(var(--spacing)*1)}.-my-1:not(#\\#){margin-block:calc(var(--spacing)*-1)}.mt-1:not(#\\#){margin-top:calc(var(--spacing)*1)}.mt-2:not(#\\#){margin-top:calc(var(--spacing)*2)}.mt-4:not(#\\#){margin-top:calc(var(--spacing)*4)}.mt-8:not(#\\#){margin-top:calc(var(--spacing)*8)}.mr-1:not(#\\#){margin-right:calc(var(--spacing)*1)}.mr-2:not(#\\#){margin-right:calc(var(--spacing)*2)}.mb-1:not(#\\#){margin-bottom:calc(var(--spacing)*1)}.mb-2:not(#\\#){margin-bottom:calc(var(--spacing)*2)}.mb-4:not(#\\#){margin-bottom:calc(var(--spacing)*4)}.ml-1:not(#\\#){margin-left:calc(var(--spacing)*1)}.ml-1\\.5:not(#\\#){margin-left:calc(var(--spacing)*1.5)}.ml-2:not(#\\#){margin-left:calc(var(--spacing)*2)}.box-border:not(#\\#){box-sizing:border-box}.block:not(#\\#){display:block}.flex:not(#\\#){display:flex}.grid:not(#\\#){display:grid}.hidden:not(#\\#){display:none}.inline:not(#\\#){display:inline}.inline-block:not(#\\#){display:inline-block}.inline-flex:not(#\\#){display:inline-flex}.table:not(#\\#){display:table}.size-1\\.5:not(#\\#){width:calc(var(--spacing)*1.5);height:calc(var(--spacing)*1.5)}.size-1\\.75:not(#\\#){width:calc(var(--spacing)*1.75);height:calc(var(--spacing)*1.75)}.size-2:not(#\\#){width:calc(var(--spacing)*2);height:calc(var(--spacing)*2)}.size-2\\.5:not(#\\#){width:calc(var(--spacing)*2.5);height:calc(var(--spacing)*2.5)}.size-3:not(#\\#){width:calc(var(--spacing)*3);height:calc(var(--spacing)*3)}.size-3\\.5:not(#\\#){width:calc(var(--spacing)*3.5);height:calc(var(--spacing)*3.5)}.size-3\\.25:not(#\\#){width:calc(var(--spacing)*3.25);height:calc(var(--spacing)*3.25)}.size-4:not(#\\#){width:calc(var(--spacing)*4);height:calc(var(--spacing)*4)}.size-5:not(#\\#){width:calc(var(--spacing)*5);height:calc(var(--spacing)*5)}.size-6:not(#\\#){width:calc(var(--spacing)*6);height:calc(var(--spacing)*6)}.size-fit:not(#\\#){width:fit-content;height:fit-content}.h-2:not(#\\#){height:calc(var(--spacing)*2)}.h-3:not(#\\#){height:calc(var(--spacing)*3)}.h-3\\.5:not(#\\#){height:calc(var(--spacing)*3.5)}.h-4:not(#\\#){height:calc(var(--spacing)*4)}.h-4\\.5:not(#\\#){height:calc(var(--spacing)*4.5)}.h-5:not(#\\#){height:calc(var(--spacing)*5)}.h-5\\.5:not(#\\#){height:calc(var(--spacing)*5.5)}.h-6:not(#\\#){height:calc(var(--spacing)*6)}.h-7:not(#\\#){height:calc(var(--spacing)*7)}.h-7\\.5:not(#\\#){height:calc(var(--spacing)*7.5)}.h-8:not(#\\#){height:calc(var(--spacing)*8)}.h-10:not(#\\#){height:calc(var(--spacing)*10)}.h-14:not(#\\#){height:calc(var(--spacing)*14)}.h-20:not(#\\#){height:calc(var(--spacing)*20)}.h-30:not(#\\#){height:calc(var(--spacing)*30)}.h-100:not(#\\#){height:calc(var(--spacing)*100)}.h-fit:not(#\\#){height:fit-content}.h-full:not(#\\#){height:100%}.h-screen:not(#\\#){height:100vh}.max-h-\\[400px\\]:not(#\\#){max-height:400px}.max-h-full:not(#\\#){max-height:100%}.min-h-5:not(#\\#){min-height:calc(var(--spacing)*5)}.min-h-6:not(#\\#){min-height:var(--min-height-6)}.min-h-7:not(#\\#){min-height:calc(var(--spacing)*7)}.min-h-\\[100px\\]:not(#\\#){min-height:100px}.min-h-fit:not(#\\#){min-height:fit-content}.min-h-screen:not(#\\#){min-height:100vh}.w-0\\.5:not(#\\#){width:calc(var(--spacing)*.5)}.w-1\\/2:not(#\\#){width:50%}.w-3:not(#\\#){width:calc(var(--spacing)*3)}.w-3\\.5:not(#\\#){width:calc(var(--spacing)*3.5)}.w-4:not(#\\#){width:calc(var(--spacing)*4)}.w-5:not(#\\#){width:calc(var(--spacing)*5)}.w-6:not(#\\#){width:calc(var(--spacing)*6)}.w-7:not(#\\#){width:calc(var(--spacing)*7)}.w-8:not(#\\#){width:calc(var(--spacing)*8)}.w-9:not(#\\#){width:calc(var(--spacing)*9)}.w-11:not(#\\#){width:calc(var(--spacing)*11)}.w-16:not(#\\#){width:calc(var(--spacing)*16)}.w-20:not(#\\#){width:calc(var(--spacing)*20)}.w-32:not(#\\#){width:calc(var(--spacing)*32)}.w-48:not(#\\#){width:calc(var(--spacing)*48)}.w-52:not(#\\#){width:calc(var(--spacing)*52)}.w-60:not(#\\#){width:calc(var(--spacing)*60)}.w-64:not(#\\#){width:calc(var(--spacing)*64)}.w-72:not(#\\#){width:calc(var(--spacing)*72)}.w-80:not(#\\#){width:calc(var(--spacing)*80)}.w-96:not(#\\#){width:calc(var(--spacing)*96)}.w-fit:not(#\\#){width:fit-content}.w-full:not(#\\#){width:100%}.w-px:not(#\\#){width:1px}.max-w-100:not(#\\#){max-width:calc(var(--spacing)*100)}.max-w-\\[300px\\]:not(#\\#){max-width:300px}.max-w-md:not(#\\#){max-width:var(--container-md)}.min-w-0:not(#\\#){min-width:calc(var(--spacing)*0)}.min-w-3\\.5:not(#\\#){min-width:calc(var(--spacing)*3.5)}.min-w-4\\.5:not(#\\#){min-width:calc(var(--spacing)*4.5)}.min-w-5:not(#\\#){min-width:calc(var(--spacing)*5)}.min-w-7\\.5:not(#\\#){min-width:calc(var(--spacing)*7.5)}.min-w-50:not(#\\#){min-width:calc(var(--spacing)*50)}.min-w-\\[150px\\]:not(#\\#){min-width:150px}.min-w-fit:not(#\\#){min-width:fit-content}.min-w-full:not(#\\#){min-width:100%}.flex-1:not(#\\#){flex:1}.flex-3:not(#\\#){flex:3}.flex-none:not(#\\#){flex:none}.shrink-0:not(#\\#){flex-shrink:0}.grow:not(#\\#){flex-grow:1}.origin-top-right:not(#\\#){transform-origin:100% 0}.-translate-x-1\\/2:not(#\\#){--tw-translate-x: -50% ;translate:var(--tw-translate-x)var(--tw-translate-y)}.-translate-x-full:not(#\\#){--tw-translate-x:-100%;translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-x-0:not(#\\#){--tw-translate-x:calc(var(--spacing)*0);translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-x-full:not(#\\#){--tw-translate-x:100%;translate:var(--tw-translate-x)var(--tw-translate-y)}.-translate-y-full:not(#\\#){--tw-translate-y:-100%;translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-y-0:not(#\\#){--tw-translate-y:calc(var(--spacing)*0);translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-y-1\\/2:not(#\\#){--tw-translate-y: 50% ;translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-y-full:not(#\\#){--tw-translate-y:100%;translate:var(--tw-translate-x)var(--tw-translate-y)}.scale-0:not(#\\#){--tw-scale-x:0%;--tw-scale-y:0%;--tw-scale-z:0%;scale:var(--tw-scale-x)var(--tw-scale-y)}.scale-95:not(#\\#){--tw-scale-x:95%;--tw-scale-y:95%;--tw-scale-z:95%;scale:var(--tw-scale-x)var(--tw-scale-y)}.scale-100:not(#\\#){--tw-scale-x:100%;--tw-scale-y:100%;--tw-scale-z:100%;scale:var(--tw-scale-x)var(--tw-scale-y)}.scale-110:not(#\\#){--tw-scale-x:110%;--tw-scale-y:110%;--tw-scale-z:110%;scale:var(--tw-scale-x)var(--tw-scale-y)}.-rotate-45:not(#\\#){rotate:-45deg}.rotate-45:not(#\\#){rotate:45deg}.rotate-90:not(#\\#){rotate:90deg}.rotate-180:not(#\\#){rotate:180deg}.transform:not(#\\#){transform:var(--tw-rotate-x,)var(--tw-rotate-y,)var(--tw-rotate-z,)var(--tw-skew-x,)var(--tw-skew-y,)}.animate-bounce:not(#\\#){animation:var(--animate-bounce)}.cursor-auto:not(#\\#){cursor:auto}.cursor-not-allowed:not(#\\#){cursor:not-allowed}.cursor-pointer:not(#\\#){cursor:pointer}.cursor-se-resize:not(#\\#){cursor:se-resize}.resize:not(#\\#){resize:both}.resize-none:not(#\\#){resize:none}.list-disc:not(#\\#){list-style-type:disc}.appearance-none:not(#\\#){-webkit-appearance:none;-moz-appearance:none;appearance:none}.grid-cols-2:not(#\\#){grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-3:not(#\\#){grid-template-columns:repeat(3,minmax(0,1fr))}.flex-col:not(#\\#){flex-direction:column}.flex-row:not(#\\#){flex-direction:row}.flex-wrap:not(#\\#){flex-wrap:wrap}.place-content-center:not(#\\#){place-content:center}.place-items-center:not(#\\#){place-items:center}.items-center:not(#\\#){align-items:center}.items-end:not(#\\#){align-items:flex-end}.items-start:not(#\\#){align-items:flex-start}.justify-around:not(#\\#){justify-content:space-around}.justify-between:not(#\\#){justify-content:space-between}.justify-center:not(#\\#){justify-content:center}.gap-0\\.5:not(#\\#){gap:calc(var(--spacing)*.5)}.gap-1:not(#\\#){gap:calc(var(--spacing)*1)}.gap-1\\.5:not(#\\#){gap:calc(var(--spacing)*1.5)}.gap-2:not(#\\#){gap:calc(var(--spacing)*2)}.gap-2\\.5:not(#\\#){gap:calc(var(--spacing)*2.5)}.gap-3:not(#\\#){gap:calc(var(--spacing)*3)}.gap-4:not(#\\#){gap:calc(var(--spacing)*4)}.gap-6:not(#\\#){gap:calc(var(--spacing)*6)}.gap-8:not(#\\#){gap:calc(var(--spacing)*8)}.gap-10:not(#\\#){gap:calc(var(--spacing)*10)}.gap-14:not(#\\#){gap:calc(var(--spacing)*14)}:where(.space-y-1>:not(:last-child)):not(#\\#){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*1)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*1)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-2>:not(:last-child)):not(#\\#){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*2)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*2)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-3>:not(:last-child)):not(#\\#){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*3)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*3)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-4>:not(:last-child)):not(#\\#){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*4)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*4)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-5>:not(:last-child)):not(#\\#){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*5)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*5)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-6>:not(:last-child)):not(#\\#){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*6)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*6)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-8>:not(:last-child)):not(#\\#){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*8)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*8)*calc(1 - var(--tw-space-y-reverse)))}.gap-x-1:not(#\\#){column-gap:calc(var(--spacing)*1)}.gap-x-2:not(#\\#){column-gap:calc(var(--spacing)*2)}.gap-x-3:not(#\\#){column-gap:calc(var(--spacing)*3)}.gap-x-4:not(#\\#){column-gap:calc(var(--spacing)*4)}.gap-x-12:not(#\\#){column-gap:calc(var(--spacing)*12)}.gap-x-20:not(#\\#){column-gap:calc(var(--spacing)*20)}:where(.space-x-4>:not(:last-child)):not(#\\#){--tw-space-x-reverse:0;margin-inline-start:calc(calc(var(--spacing)*4)*var(--tw-space-x-reverse));margin-inline-end:calc(calc(var(--spacing)*4)*calc(1 - var(--tw-space-x-reverse)))}.truncate:not(#\\#){text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-hidden:not(#\\#){overflow:hidden}.overflow-y-auto:not(#\\#){overflow-y:auto}.scroll-auto:not(#\\#){scroll-behavior:auto}.rounded:not(#\\#){border-radius:.25rem}.rounded-full:not(#\\#){border-radius:3.40282e38px}.rounded-lg:not(#\\#){border-radius:var(--radius-lg)}.rounded-md:not(#\\#){border-radius:var(--radius-md)}.rounded-xs:not(#\\#){border-radius:var(--radius-xs)}.rounded-t:not(#\\#){border-top-left-radius:.25rem;border-top-right-radius:.25rem}.rounded-b:not(#\\#){border-bottom-right-radius:.25rem;border-bottom-left-radius:.25rem}.rounded-b-none:not(#\\#){border-bottom-right-radius:0;border-bottom-left-radius:0}.border:not(#\\#){border-style:var(--tw-border-style);border-width:1px}.border-0:not(#\\#){border-style:var(--tw-border-style);border-width:0}.border-2:not(#\\#){border-style:var(--tw-border-style);border-width:2px}.border-px:not(#\\#){border-width:1px}.divide:not(#\\#){border-width:.5px}.border-t:not(#\\#){border-top-style:var(--tw-border-style);border-top-width:1px}.border-t-0:not(#\\#){border-top-style:var(--tw-border-style);border-top-width:0}.border-r:not(#\\#){border-right-style:var(--tw-border-style);border-right-width:1px}.border-b:not(#\\#){border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-b-0:not(#\\#){border-bottom-style:var(--tw-border-style);border-bottom-width:0}.border-dashed:not(#\\#){--tw-border-style:dashed;border-style:dashed}.border-body:not(#\\#){border-color:var(--color-body)}.border-body-light:not(#\\#){border-color:var(--color-body-light)}.border-canvas-default:not(#\\#){border-color:var(--color-canvas-default)}.border-card-border:not(#\\#){border-color:var(--color-card-border)}.border-grey-100:not(#\\#){border-color:var(--color-grey-100)}.border-grey-200:not(#\\#){border-color:var(--color-grey-200)}.border-input-border:not(#\\#){border-color:var(--color-input-border)}.border-input-disable:not(#\\#){border-color:var(--color-input-disable)}.border-input-error-border:not(#\\#){border-color:var(--color-input-error-border)}.border-input-focus-border:not(#\\#){border-color:var(--color-input-focus-border)}.border-input-warning-border:not(#\\#){border-color:var(--color-input-warning-border)}.border-negative:not(#\\#){border-color:var(--color-negative)}.border-negative-500:not(#\\#){border-color:var(--color-negative-500)}.border-neutral:not(#\\#){border-color:var(--color-neutral)}.border-panel:not(#\\#){border-color:var(--color-panel)}.border-panel-border:not(#\\#){border-color:var(--color-panel-border)}.border-panel-border-subtle:not(#\\#){border-color:var(--color-panel-border-subtle)}.border-panel-subtle:not(#\\#){border-color:var(--color-panel-subtle)}.border-positive:not(#\\#){border-color:var(--color-positive)}.border-positive-text:not(#\\#){border-color:var(--color-positive-text)}.border-primary:not(#\\#){border-color:var(--color-primary)}.border-primary-700:not(#\\#){border-color:var(--color-primary-700)}.border-primary-hover:not(#\\#){border-color:var(--color-primary-hover)}.border-select-border:not(#\\#){border-color:var(--color-select-border)}.border-tab-border:not(#\\#){border-color:var(--color-tab-border)}.border-transparent:not(#\\#){border-color:#0000}.border-warning:not(#\\#){border-color:var(--color-warning)}.border-warning-bg:not(#\\#){border-color:var(--color-warning-bg)}.border-white:not(#\\#){border-color:var(--color-white)}.bg-blue-500:not(#\\#){background-color:var(--color-blue-500)}.bg-body:not(#\\#){background-color:var(--color-body)}.bg-body-bg:not(#\\#){background-color:var(--color-body-bg)}.bg-canvas-default:not(#\\#){background-color:var(--color-canvas-default)}.bg-canvas-subtle:not(#\\#){background-color:var(--color-canvas-subtle)}.bg-card:not(#\\#){background-color:var(--color-card)}.bg-gray-100:not(#\\#){background-color:var(--color-gray-100)}.bg-grey-50:not(#\\#){background-color:var(--color-grey-50)}.bg-grey-200:not(#\\#){background-color:var(--color-grey-200)}.bg-grey-300:not(#\\#){background-color:var(--color-grey-300)}.bg-grey-400:not(#\\#){background-color:var(--color-grey-400)}.bg-grey-500:not(#\\#){background-color:var(--color-grey-500)}.bg-grey-600:not(#\\#){background-color:var(--color-grey-600)}.bg-grey-700:not(#\\#){background-color:var(--color-grey-700)}.bg-grey-800:not(#\\#){background-color:var(--color-grey-800)}.bg-input-bg:not(#\\#){background-color:var(--color-input-bg)}.bg-input-border:not(#\\#){background-color:var(--color-input-border)}.bg-input-disable:not(#\\#){background-color:var(--color-input-disable)}.bg-input-error-bg:not(#\\#){background-color:var(--color-input-error-bg)}.bg-input-message-bg:not(#\\#){background-color:var(--color-input-message-bg)}.bg-input-option-active-bg:not(#\\#){background-color:var(--color-input-option-active-bg)}.bg-input-option-hover-bg:not(#\\#){background-color:var(--color-input-option-hover-bg)}.bg-input-text:not(#\\#){background-color:var(--color-input-text)}.bg-input-warning-bg:not(#\\#){background-color:var(--color-input-warning-bg)}.bg-negative:not(#\\#){background-color:var(--color-negative)}.bg-negative-400:not(#\\#){background-color:var(--color-negative-400)}.bg-negative-500:not(#\\#){background-color:var(--color-negative-500)}.bg-negative-bg:not(#\\#){background-color:var(--color-negative-bg)}.bg-negative-hover:not(#\\#){background-color:var(--color-negative-hover)}.bg-negative-light:not(#\\#){background-color:var(--color-negative-light)}.bg-panel:not(#\\#){background-color:var(--color-panel)}.bg-panel-0:not(#\\#){background-color:var(--color-panel-0)}.bg-panel-1:not(#\\#){background-color:var(--color-panel-1)}.bg-panel-2:not(#\\#){background-color:var(--color-panel-2)}.bg-panel-3:not(#\\#){background-color:var(--color-panel-3)}.bg-panel-4:not(#\\#){background-color:var(--color-panel-4)}.bg-panel-5:not(#\\#){background-color:var(--color-panel-5)}.bg-panel-subtle:not(#\\#){background-color:var(--color-panel-subtle)}.bg-positive:not(#\\#){background-color:var(--color-positive)}.bg-positive-200:not(#\\#){background-color:var(--color-positive-200)}.bg-positive-500:not(#\\#){background-color:var(--color-positive-500)}.bg-positive-bg:not(#\\#){background-color:var(--color-positive-bg)}.bg-positive-hover:not(#\\#){background-color:var(--color-positive-hover)}.bg-positive-light:not(#\\#){background-color:var(--color-positive-light)}.bg-primary:not(#\\#){background-color:var(--color-primary)}.bg-primary-500:not(#\\#){background-color:var(--color-primary-500)}.bg-primary-600:not(#\\#){background-color:var(--color-primary-600)}.bg-primary-hover:not(#\\#){background-color:var(--color-primary-hover)}.bg-primary-light:not(#\\#){background-color:var(--color-primary-light)}.bg-primary\\/30:not(#\\#){background-color:var(--color-primary)}@supports (color:color-mix(in lab,red,red)){.bg-primary\\/30:not(#\\#){background-color:color-mix(in oklab,var(--color-primary)30%,transparent)}}.bg-select-list-bg:not(#\\#){background-color:var(--color-select-list-bg)}.bg-tab-active-bg:not(#\\#){background-color:var(--color-tab-active-bg)}.bg-tab-bg-default:not(#\\#){background-color:var(--color-tab-bg-default)}.bg-tab-inactive-bg:not(#\\#){background-color:var(--color-tab-inactive-bg)}.bg-transparent:not(#\\#){background-color:#0000}.bg-warning:not(#\\#){background-color:var(--color-warning)}.bg-warning-500:not(#\\#){background-color:var(--color-warning-500)}.bg-warning-bg:not(#\\#){background-color:var(--color-warning-bg)}.bg-warning-hover:not(#\\#){background-color:var(--color-warning-hover)}.bg-warning-light:not(#\\#){background-color:var(--color-warning-light)}.bg-white:not(#\\#){background-color:var(--color-white)}.bg-linear-to-r:not(#\\#){--tw-gradient-position:to right}@supports (background-image:linear-gradient(in lab,red,red)){.bg-linear-to-r:not(#\\#){--tw-gradient-position:to right in oklab}}.bg-linear-to-r:not(#\\#){background-image:linear-gradient(var(--tw-gradient-stops))}.from-green-500:not(#\\#){--tw-gradient-from:var(--color-green-500);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.from-primary:not(#\\#){--tw-gradient-from:var(--color-primary);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.to-blue-500:not(#\\#){--tw-gradient-to:var(--color-blue-500);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.to-pink-500:not(#\\#){--tw-gradient-to:var(--color-pink-500);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.stroke-current:not(#\\#){stroke:currentColor}.p-0:not(#\\#){padding:calc(var(--spacing)*0)}.p-0\\.5:not(#\\#){padding:calc(var(--spacing)*.5)}.p-1:not(#\\#){padding:calc(var(--spacing)*1)}.p-1\\!{padding:calc(var(--spacing)*1)!important}.p-1\\.5:not(#\\#){padding:calc(var(--spacing)*1.5)}.p-2:not(#\\#){padding:calc(var(--spacing)*2)}.p-2\\.5:not(#\\#){padding:calc(var(--spacing)*2.5)}.p-3:not(#\\#){padding:calc(var(--spacing)*3)}.p-4:not(#\\#){padding:calc(var(--spacing)*4)}.p-6:not(#\\#){padding:calc(var(--spacing)*6)}.p-8:not(#\\#){padding:calc(var(--spacing)*8)}.p-10:not(#\\#){padding:calc(var(--spacing)*10)}.p-50:not(#\\#){padding:calc(var(--spacing)*50)}.p-px:not(#\\#){padding:1px}.px-0\\.5:not(#\\#){padding-inline:calc(var(--spacing)*.5)}.px-1:not(#\\#){padding-inline:calc(var(--spacing)*1)}.px-1\\.5:not(#\\#){padding-inline:calc(var(--spacing)*1.5)}.px-2:not(#\\#){padding-inline:calc(var(--spacing)*2)}.px-3:not(#\\#){padding-inline:calc(var(--spacing)*3)}.px-4:not(#\\#){padding-inline:calc(var(--spacing)*4)}.px-6:not(#\\#){padding-inline:calc(var(--spacing)*6)}.px-7:not(#\\#){padding-inline:calc(var(--spacing)*7)}.px-8:not(#\\#){padding-inline:calc(var(--spacing)*8)}.py-0\\.5:not(#\\#){padding-block:calc(var(--spacing)*.5)}.py-1:not(#\\#){padding-block:calc(var(--spacing)*1)}.py-1\\.5:not(#\\#){padding-block:calc(var(--spacing)*1.5)}.py-2:not(#\\#){padding-block:calc(var(--spacing)*2)}.py-3:not(#\\#){padding-block:calc(var(--spacing)*3)}.pt-0\\.5:not(#\\#){padding-top:calc(var(--spacing)*.5)}.pt-1:not(#\\#){padding-top:calc(var(--spacing)*1)}.pt-1\\.5:not(#\\#){padding-top:calc(var(--spacing)*1.5)}.pt-2:not(#\\#){padding-top:calc(var(--spacing)*2)}.pl-1:not(#\\#){padding-left:calc(var(--spacing)*1)}.pl-4:not(#\\#){padding-left:calc(var(--spacing)*4)}.text-center:not(#\\#){text-align:center}.text-left:not(#\\#){text-align:left}.text-2xl:not(#\\#){font-size:var(--text-2xl);line-height:var(--tw-leading,var(--text-2xl--line-height))}.text-3xl:not(#\\#){font-size:var(--text-3xl);line-height:var(--tw-leading,var(--text-3xl--line-height))}.text-4xl:not(#\\#){font-size:var(--text-4xl);line-height:var(--tw-leading,var(--text-4xl--line-height))}.text-5xl:not(#\\#){font-size:var(--text-5xl);line-height:var(--tw-leading,var(--text-5xl--line-height))}.text-6xl:not(#\\#){font-size:var(--text-6xl);line-height:var(--tw-leading,var(--text-6xl--line-height))}.text-7xl:not(#\\#){font-size:var(--text-7xl);line-height:var(--tw-leading,var(--text-7xl--line-height))}.text-8xl:not(#\\#){font-size:var(--text-8xl);line-height:var(--tw-leading,var(--text-8xl--line-height))}.text-9xl:not(#\\#){font-size:var(--text-9xl);line-height:var(--tw-leading,var(--text-9xl--line-height))}.text-base:not(#\\#){font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.text-lg:not(#\\#){font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm:not(#\\#){font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xl:not(#\\#){font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}.text-xs:not(#\\#){font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.text-s:not(#\\#){font-size:var(--text-s)}.text-xxs:not(#\\#){font-size:var(--text-xxs)}.leading-3:not(#\\#){--tw-leading:calc(var(--spacing)*3);line-height:calc(var(--spacing)*3)}.leading-4:not(#\\#){--tw-leading:calc(var(--spacing)*4);line-height:calc(var(--spacing)*4)}.leading-5:not(#\\#){--tw-leading:calc(var(--spacing)*5);line-height:calc(var(--spacing)*5)}.leading-none:not(#\\#){--tw-leading:1;line-height:1}.font-bold:not(#\\#){--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-medium:not(#\\#){--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-semibold:not(#\\#){--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.font-thin:not(#\\#){--tw-font-weight:var(--font-weight-thin);font-weight:var(--font-weight-thin)}.whitespace-nowrap:not(#\\#){white-space:nowrap}.text-body:not(#\\#){color:var(--color-body)}.text-button-text:not(#\\#){color:var(--color-button-text)}.text-gray-50:not(#\\#){color:var(--color-gray-50)}.text-gray-400:not(#\\#){color:var(--color-gray-400)}.text-gray-500:not(#\\#){color:var(--color-gray-500)}.text-gray-800:not(#\\#){color:var(--color-gray-800)}.text-grey-100:not(#\\#){color:var(--color-grey-100)}.text-grey-200:not(#\\#){color:var(--color-grey-200)}.text-grey-300:not(#\\#){color:var(--color-grey-300)}.text-grey-700:not(#\\#){color:var(--color-grey-700)}.text-inactive-text:not(#\\#){color:var(--color-inactive-text)}.text-inherit:not(#\\#){color:inherit}.text-input-disable:not(#\\#){color:var(--color-input-disable)}.text-input-message-text:not(#\\#){color:var(--color-input-message-text)}.text-input-option-active-text:not(#\\#){color:var(--color-input-option-active-text)}.text-input-placeholder:not(#\\#){color:var(--color-input-placeholder)}.text-input-text:not(#\\#){color:var(--color-input-text)}.text-muted:not(#\\#){color:var(--color-muted)}.text-negative:not(#\\#){color:var(--color-negative)}.text-negative-500:not(#\\#){color:var(--color-negative-500)}.text-negative-dark:not(#\\#){color:var(--color-negative-dark)}.text-negative-text:not(#\\#){color:var(--color-negative-text)}.text-panel-subtle:not(#\\#){color:var(--color-panel-subtle)}.text-positive:not(#\\#){color:var(--color-positive)}.text-positive-500:not(#\\#){color:var(--color-positive-500)}.text-positive-600:not(#\\#){color:var(--color-positive-600)}.text-positive-dark:not(#\\#){color:var(--color-positive-dark)}.text-positive-text:not(#\\#),.text-positive-text\\/70:not(#\\#){color:var(--color-positive-text)}@supports (color:color-mix(in lab,red,red)){.text-positive-text\\/70:not(#\\#){color:color-mix(in oklab,var(--color-positive-text)70%,transparent)}}.text-primary:not(#\\#){color:var(--color-primary)}.text-primary-dark:not(#\\#){color:var(--color-primary-dark)}.text-primary-hover:not(#\\#){color:var(--color-primary-hover)}.text-select-text:not(#\\#){color:var(--color-select-text)}.text-tab-active-fg:not(#\\#){color:var(--color-tab-active-fg)}.text-tab-inactive-fg:not(#\\#){color:var(--color-tab-inactive-fg)}.text-warning:not(#\\#){color:var(--color-warning)}.text-warning-dark:not(#\\#){color:var(--color-warning-dark)}.text-warning-text:not(#\\#){color:var(--color-warning-text)}.capitalize:not(#\\#){text-transform:capitalize}.lowercase:not(#\\#){text-transform:lowercase}.uppercase:not(#\\#){text-transform:uppercase}.italic:not(#\\#){font-style:italic}.underline:not(#\\#){text-decoration-line:underline}.decoration-transparent:not(#\\#){text-decoration-color:#0000}.opacity-0:not(#\\#){opacity:0}.opacity-50:not(#\\#){opacity:.5}.opacity-60:not(#\\#){opacity:.6}.opacity-80:not(#\\#){opacity:.8}.opacity-100:not(#\\#){opacity:1}.shadow:not(#\\#){--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-inner:not(#\\#){--tw-shadow:inset 0 2px 4px 0 var(--tw-shadow-color,#0000000d);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-lg:not(#\\#){--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a),0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-md:not(#\\#){--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,#0000001a),0 2px 4px -2px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-xs:not(#\\#){--tw-shadow:0 1px 2px 0 var(--tw-shadow-color,#0000000d);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring-0:not(#\\#){--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(0px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring-1:not(#\\#){--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(1px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring-input-error-border:not(#\\#){--tw-ring-color:var(--color-input-error-border)}.ring-input-focus-border:not(#\\#){--tw-ring-color:var(--color-input-focus-border)}.ring-input-warning-border:not(#\\#){--tw-ring-color:var(--color-input-warning-border)}.ring-positive:not(#\\#){--tw-ring-color:var(--color-positive)}.outline-hidden:not(#\\#){--tw-outline-style:none;outline-style:none}@media(forced-colors:active){.outline-hidden:not(#\\#){outline-offset:2px;outline:2px solid #0000}}.outline:not(#\\#),.outline-1:not(#\\#){outline-style:var(--tw-outline-style);outline-width:1px}.outline-s:not(#\\#){outline-width:.5px}.outline-xs:not(#\\#){outline-width:.3px}.outline-xxs:not(#\\#){outline-width:.1px}.outline-canvas-default:not(#\\#){outline-color:var(--color-canvas-default)}.outline-primary:not(#\\#){outline-color:var(--color-primary)}.blur:not(#\\#){--tw-blur:blur(8px);filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}.filter:not(#\\#){filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}.transition:not(#\\#){transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-all:not(#\\#){transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors:not(#\\#){transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-opacity:not(#\\#){transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-transform:not(#\\#){transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-150:not(#\\#){--tw-duration:.15s;transition-duration:.15s}.duration-200:not(#\\#){--tw-duration:.2s;transition-duration:.2s}.duration-300:not(#\\#){--tw-duration:.3s;transition-duration:.3s}.ease-in-out:not(#\\#){--tw-ease:var(--ease-in-out);transition-timing-function:var(--ease-in-out)}.ease-out:not(#\\#){--tw-ease:var(--ease-out);transition-timing-function:var(--ease-out)}.outline-solid:not(#\\#){--tw-outline-style:solid;outline-style:solid}.select-none:not(#\\#){-webkit-user-select:none;user-select:none}@media(hover:hover){.group-hover\\:flex:is(:where(.group):hover *):not(#\\#){display:flex}.group-hover\\:grid:is(:where(.group):hover *):not(#\\#){display:grid}.group-hover\\:border-body:is(:where(.group):hover *):not(#\\#){border-color:var(--color-body)}.group-hover\\:border-negative-text:is(:where(.group):hover *):not(#\\#){border-color:var(--color-negative-text)}.group-hover\\:border-positive-text:is(:where(.group):hover *):not(#\\#){border-color:var(--color-positive-text)}.group-hover\\:border-warning-text:is(:where(.group):hover *):not(#\\#){border-color:var(--color-warning-text)}.group-hover\\:bg-grey-400:is(:where(.group):hover *):not(#\\#){background-color:var(--color-grey-400)}.group-hover\\:bg-negative-hover:is(:where(.group):hover *):not(#\\#){background-color:var(--color-negative-hover)}.group-hover\\:bg-negative-light:is(:where(.group):hover *):not(#\\#){background-color:var(--color-negative-light)}.group-hover\\:bg-positive-hover:is(:where(.group):hover *):not(#\\#){background-color:var(--color-positive-hover)}.group-hover\\:bg-positive-light:is(:where(.group):hover *):not(#\\#){background-color:var(--color-positive-light)}.group-hover\\:bg-primary-hover:is(:where(.group):hover *):not(#\\#){background-color:var(--color-primary-hover)}.group-hover\\:bg-primary-light:is(:where(.group):hover *):not(#\\#){background-color:var(--color-primary-light)}.group-hover\\:bg-warning-hover:is(:where(.group):hover *):not(#\\#){background-color:var(--color-warning-hover)}.group-hover\\:bg-warning-light:is(:where(.group):hover *):not(#\\#){background-color:var(--color-warning-light)}.group-hover\\:opacity-100:is(:where(.group):hover *):not(#\\#){opacity:1}}.placeholder\\:text-sm:not(#\\#)::placeholder{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.placeholder\\:text-xs:not(#\\#)::placeholder{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.placeholder\\:text-s:not(#\\#)::placeholder{font-size:var(--text-s)}.placeholder\\:text-input-placeholder:not(#\\#)::placeholder{color:var(--color-input-placeholder)}.placeholder\\:opacity-60:not(#\\#)::placeholder{opacity:.6}.first\\:bottom-full:first-child:not(#\\#){bottom:100%}.first\\:-ml-1\\.5:first-child:not(#\\#){margin-left:calc(var(--spacing)*-1.5)}.first\\:rounded-t:first-child:not(#\\#){border-top-left-radius:.25rem;border-top-right-radius:.25rem}.first\\:rounded-l:first-child:not(#\\#){border-top-left-radius:.25rem;border-bottom-left-radius:.25rem}.last\\:top-full:last-child:not(#\\#){top:100%}.last\\:-mr-1\\.5:last-child:not(#\\#){margin-right:calc(var(--spacing)*-1.5)}.last\\:rounded-r:last-child:not(#\\#){border-top-right-radius:.25rem;border-bottom-right-radius:.25rem}.last\\:rounded-b:last-child:not(#\\#){border-bottom-right-radius:.25rem;border-bottom-left-radius:.25rem}.only\\:top-full:only-child:not(#\\#){top:100%}.only\\:-mx-0\\.5:only-child:not(#\\#){margin-inline:calc(var(--spacing)*-.5)}.only\\:rounded:only-child:not(#\\#){border-radius:.25rem}.only\\:ring-1:only-child:not(#\\#){--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(1px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus-within\\:border-input-error-border:focus-within:not(#\\#){border-color:var(--color-input-error-border)}.focus-within\\:border-input-focus-border:focus-within:not(#\\#){border-color:var(--color-input-focus-border)}.focus-within\\:border-input-warning-border:focus-within:not(#\\#){border-color:var(--color-input-warning-border)}.focus-within\\:border-positive:focus-within:not(#\\#){border-color:var(--color-positive)}@media(hover:hover){.hover\\:border-canvas-default:hover:not(#\\#){border-color:var(--color-canvas-default)}.hover\\:border-canvas-subtle:hover:not(#\\#){border-color:var(--color-canvas-subtle)}.hover\\:border-negative-hover:hover:not(#\\#){border-color:var(--color-negative-hover)}.hover\\:border-positive-hover:hover:not(#\\#){border-color:var(--color-positive-hover)}.hover\\:border-primary-hover:hover:not(#\\#){border-color:var(--color-primary-hover)}.hover\\:border-warning-hover:hover:not(#\\#){border-color:var(--color-warning-hover)}.hover\\:bg-canvas-default:hover:not(#\\#){background-color:var(--color-canvas-default)}.hover\\:bg-canvas-subtle:hover:not(#\\#){background-color:var(--color-canvas-subtle)}.hover\\:bg-grey-500:hover:not(#\\#){background-color:var(--color-grey-500)}.hover\\:bg-grey-700:hover:not(#\\#){background-color:var(--color-grey-700)}.hover\\:bg-input-option-hover-bg:hover:not(#\\#){background-color:var(--color-input-option-hover-bg)}.hover\\:bg-negative:hover:not(#\\#){background-color:var(--color-negative)}.hover\\:bg-negative-hover:hover:not(#\\#){background-color:var(--color-negative-hover)}.hover\\:bg-positive:hover:not(#\\#){background-color:var(--color-positive)}.hover\\:bg-positive-hover:hover:not(#\\#){background-color:var(--color-positive-hover)}.hover\\:bg-primary:hover:not(#\\#){background-color:var(--color-primary)}.hover\\:bg-primary-600:hover:not(#\\#){background-color:var(--color-primary-600)}.hover\\:bg-primary-hover:hover:not(#\\#){background-color:var(--color-primary-hover)}.hover\\:bg-primary\\/20:hover:not(#\\#){background-color:var(--color-primary)}@supports (color:color-mix(in lab,red,red)){.hover\\:bg-primary\\/20:hover:not(#\\#){background-color:color-mix(in oklab,var(--color-primary)20%,transparent)}}.hover\\:bg-transparent:hover:not(#\\#){background-color:#0000}.hover\\:bg-warning:hover:not(#\\#){background-color:var(--color-warning)}.hover\\:bg-warning-hover:hover:not(#\\#){background-color:var(--color-warning-hover)}.hover\\:text-body:hover:not(#\\#){color:var(--color-body)}.hover\\:text-button-text:hover:not(#\\#){color:var(--color-button-text)}.hover\\:text-grey-200:hover:not(#\\#){color:var(--color-grey-200)}.hover\\:text-negative-400:hover:not(#\\#){color:var(--color-negative-400)}.hover\\:text-positive-400:hover:not(#\\#){color:var(--color-positive-400)}.hover\\:text-positive-text:hover:not(#\\#){color:var(--color-positive-text)}.hover\\:text-primary:hover:not(#\\#){color:var(--color-primary)}.hover\\:text-primary-hover:hover:not(#\\#){color:var(--color-primary-hover)}.hover\\:text-tab-active-fg:hover:not(#\\#){color:var(--color-tab-active-fg)}.hover\\:decoration-current:hover:not(#\\#){text-decoration-color:currentColor}}.focus\\:bg-transparent:focus:not(#\\#){background-color:#0000}.focus\\:ring-2:focus:not(#\\#){--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(2px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus\\:ring-negative:focus:not(#\\#){--tw-ring-color:var(--color-negative)}.focus\\:ring-positive:focus:not(#\\#){--tw-ring-color:var(--color-positive)}.focus\\:ring-primary:focus:not(#\\#){--tw-ring-color:var(--color-primary)}.focus\\:ring-warning:focus:not(#\\#){--tw-ring-color:var(--color-warning)}.focus\\:ring-offset-0:focus:not(#\\#){--tw-ring-offset-width:0px;--tw-ring-offset-shadow:var(--tw-ring-inset,)0 0 0 var(--tw-ring-offset-width)var(--tw-ring-offset-color)}.focus\\:ring-offset-2:focus:not(#\\#){--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset,)0 0 0 var(--tw-ring-offset-width)var(--tw-ring-offset-color)}.focus\\:outline-hidden:focus:not(#\\#){--tw-outline-style:none;outline-style:none}@media(forced-colors:active){.focus\\:outline-hidden:focus:not(#\\#){outline-offset:2px;outline:2px solid #0000}}.focus-visible\\:ring-2:focus-visible:not(#\\#){--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(2px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus-visible\\:ring-primary:focus-visible:not(#\\#){--tw-ring-color:var(--color-primary)}.focus-visible\\:ring-offset-2:focus-visible:not(#\\#){--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset,)0 0 0 var(--tw-ring-offset-width)var(--tw-ring-offset-color)}:root:not(#\\#){--ws-primary-50:#f2ddff;--ws-primary-100:#edd0ff;--ws-primary-300:#d0acef;--ws-primary-400:#c190ea;--ws-primary-600:#935ebf;--ws-primary-800:#563374;--ws-primary-900:#381e4f;--ws-primary-950:#29133c;--ws-positive-50:#ecf9f2;--ws-positive-100:#d9f2e6;--ws-positive-300:#8ed9b3;--ws-positive-400:#68cd99;--ws-positive-700:#28734d;--ws-positive-800:#28734d;--ws-positive-900:#0d261a;--ws-positive-950:#07130d;--ws-warning-50:#fff7e6;--ws-warning-100:#ffefcc;--ws-warning-300:#fed066;--ws-warning-400:#fdc133;--ws-warning-700:#986a00;--ws-warning-800:#654700;--ws-warning-900:#332300;--ws-warning-950:#191200;--ws-negative-50:#feeeee;--ws-negative-100:#fcdcdc;--ws-negative-300:#f69797;--ws-negative-400:#f37575;--ws-negative-700:#9a3232;--ws-negative-800:#6e2222;--ws-negative-900:#431212;--ws-negative-950:#2e0a0a;--ws-grey-300:#535353;--ws-grey-400:#484848;--ws-grey-600:#3f3f3f;--ws-palette-primary-200:#e0c7f5;--ws-palette-primary-500:#b174e5;--ws-palette-primary-700:#75499a;--ws-button-bg:var(--vscode-button-background,var(--theia-button-background,var(--ws-palette-primary-500)));--ws-button-fg:var(--vscode-button-foreground,var(--theia-button-foreground,var(--ws-palette-white)));--ws-primary-default:var(--ws-button-bg);--ws-button-text:var(--ws-button-fg);--ws-primary-hover:var(--vscode-button-hoverBackground,var(--theia-button-hoverBackground,var(--ws-palette-primary-700)));--ws-primary-light:var(--vscode-editorInfo-foreground,var(--vscode-button-background,var(--theia-button-secondaryForeground,var(--theia-button-background,var(--ws-palette-primary-200)))));--ws-primary-dark:var(--vscode-editor-lineHighlightBackground,var(--vscode-button-foreground,var(--theia-button-secondaryBackground,var(--theia-button-foreground,var(--ws-palette-primary-700)))));--ws-primary-200:var(--ws-primary-light);--ws-primary-500:var(--ws-primary-default);--ws-primary-700:var(--ws-primary-hover);--ws-palette-positive-200:#b3e6cc;--ws-palette-positive-500:#42c080;--ws-palette-positive-600:#359a66;--ws-positive-dark:var(--vscode-gitDecoration-addedResourceForeground,var(--ws-palette-positive-600));--ws-positive-hover:var(--ws-positive-dark);--ws-positive-bg:var(--ws-palette-positive-100);--ws-positive-light:var(--ws-palette-positive-200);--ws-positive-border:var(--ws-positive-500);--ws-positive-text:var(--ws-positive-500);--ws-positive-500:var(--vscode-testing-iconPassed,var(--ws-palette-positive-500));--ws-positive-200:var(--ws-positive-light);--ws-positive-600:var(--ws-positive-dark);--ws-palette-warning-200:#fee099;--ws-palette-warning-500:#fdb100;--ws-palette-warning-600:#ca8e00;--ws-warning-hover:var(--ws-warning-600);--ws-warning-text:var(--ws-warning-500);--ws-warning-border:var(--ws-warning-500);--ws-warning-500:var(--vscode-list-warningForeground,var(--ws-palette-warning-500));--ws-warning-bg:var(--vscode-inputValidation-warningBackground,var(--ws-palette-warning-500));--ws-warning-light:var(--vscode-inputValidation-warningBackground,var(--ws-palette-warning-200));--ws-warning-dark:var(--vscode-inputValidation-warningBackground,var(--ws-palette-warning-600));--ws-warning-200:var(--ws-warning-light);--ws-warning-600:var(--ws-warning-dark);--ws-palette-negative-200:#f9baba;--ws-palette-negative-500:#f05252;--ws-palette-negative-600:#c54242;--ws-negative-hover:var(--ws-negative-600);--ws-negative-text:var(--ws-negative-500);--ws-negative-500:var(--vscode-errorForeground,var(--ws-palette-negative-500));--ws-negative-light:var(--ws-palette-negative-200);--ws-negative-dark:var(--ws-palette-negative-600);--ws-negative-200:var(--ws-negative-light);--ws-negative-600:var(--ws-negative-dark);--ws-palette-white:#fff;--ws-palette-grey-50:#f1f5f9;--ws-palette-grey-100:#ccc;--ws-palette-grey-200:#888;--ws-palette-grey-300:#535353;--ws-palette-grey-400:#484848;--ws-palette-grey-500:#444;--ws-palette-grey-600:#3f3f3f;--ws-palette-grey-700:#393939;--ws-palette-grey-800:#383838;--ws-palette-grey-900:#262626;--ws-palette-grey-950:#151515;--ws-bg-default:var(--vscode-editor-background,var(--theia-editor-background,var(--ws-palette-white)));--ws-bg-foreground:var(--vscode-editor-foreground,var(--theia-editor-foreground,var(--ws-palette-grey-50)));--ws-grey-50:var(--ws-bg-foreground);--ws-grey-100:var(--vscode-panel-background,var(--theia-panel-background,var(--ws-palette-grey-100)));--ws-grey-200:var(--vscode-editor-background,var(--theia-editor-background,var(--ws-palette-grey-200)));--ws-grey-950:var(--vscode-panel-border,var(--theia-border-color,var(--ws-palette-grey-950)));--ws-grey-500:var(--vscode-descriptionForeground,var(--ws-palette-grey-500));--ws-grey-800:var(--vscode-descriptionForeground,var(--ws-palette-grey-800));--ws-card-bg:var(--vscode-editorGroupHeader-tabsBackground,var(--theia-editorGroupHeader-tabsBackground,var(--ws-palette-grey-900)));--ws-card-border:var(--vscode-editorGroupHeader-tabsBorder,var(--theia-editorGroupHeader-tabsBorder,var(--ws-palette-grey-50)));--ws-palette-input-bg:var(--ws-palette-grey-300);--ws-palette-input-border:var(--ws-palette-grey-300);--ws-palette-input-text:var(--ws-palette-grey-50);--ws-palette-input-placeholder:var(--ws-palette-grey-200);--ws-palette-input-focus-border:var(--ws-palette-grey-50);--ws-input-bg:var(--vscode-input-background,var(--vscode-editorWidget-background,var(--theia-input-background,var(--ws-palette-input-bg))));--ws-input-border:var(--vscode-input-border,var(--vscode-panel-border,var(--theia-input-border,var(--ws-palette-input-border))));--ws-input-text:var(--vscode-input-foreground,var(--vscode-editor-foreground,var(--theia-input-foreground,var(--ws-palette-input-text))));--ws-input-placeholder:var(--vscode-input-placeholderForeground,var(--vscode-editor-foreground,var(--theia-input-placeholderForeground,var(--ws-palette-input-placeholder))));--ws-input-focus-border:var(--vscode-focusBorder,var(--vscode-button-background,var(--theia-focusBorder,var(--ws-palette-primary-500))));--ws-select-bg:var(--vscode-dropdown-background,var(--vscode-editorWidget-background,var(--theia-dropdown-background,var(--ws-input-bg))));--ws-select-border:var(--vscode-dropdown-border,var(--vscode-panel-border,var(--theia-dropdown-border,var(--ws-input-border))));--ws-select-text:var(--vscode-dropdown-foreground,var(--vscode-editor-foreground,var(--theia-dropdown-foreground,var(--ws-input-text))));--ws-select-list-bg:var(--vscode-dropdown-listBackground,var(--vscode-editorWidget-background,var(--theia-editorWidget-background,var(--ws-palette-grey-900))));--ws-input-option-hover-bg:var(--vscode-list-hoverBackground,var(--vscode-button-hoverBackground,var(--theia-list-hoverBackground,var(--ws-palette-primary-700))));--ws-input-option-active-bg:var(--vscode-list-activeSelectionBackground,var(--theia-list-activeSelectionBackground,var(--ws-palette-primary-500)));--ws-input-option-active-text:var(--vscode-list-activeSelectionForeground,var(--theia-list-activeSelectionForeground,var(--ws-palette-white)));--ws-input-error-border:var(--vscode-inputValidation-errorBorder,var(--theia-inputValidation-errorBorder,var(--ws-palette-negative-500)));--ws-input-error-bg:var(--vscode-inputValidation-errorBackground,var(--theia-inputValidation-errorBackground,var(--ws-palette-negative-200)));--ws-input-warning-border:var(--vscode-inputValidation-warningBorder,var(--theia-inputValidation-warningBorder,var(--ws-palette-warning-500)));--ws-input-warning-bg:var(--vscode-inputValidation-warningBackground,var(--theia-inputValidation-warningBackground,var(--ws-palette-warning-200)));--ws-input-info-bg:var(--vscode-panel-background,var(--theia-inputValidation-infoBackground,var(--ws-palette-primary-200)));--ws-input-message-bg:var(--vscode-editor-lineHighlightBackground,var(--vscode-editorWidget-background,var(--theia-inputValidation-infoBackground,var(--ws-palette-primary-200))));--ws-input-message-text:var(--vscode-editorInfo-foreground,var(--vscode-editor-foreground,var(--theia-inputValidation-infoForeground,var(--ws-palette-primary-500))));--ws-inactive-text:var(--vscode-disabledForeground,var(--theia-disabled-foreground,var(--ws-palette-grey-200)));--ws-text-muted:var(--vscode-descriptionForeground,var(--vscode-editor-foreground,var(--theia-descriptionForeground,var(--ws-palette-grey-100))));--ws-disable-bg:var(--vscode-button-disabledBackground,var(--theia-button-disabledBackground,var(--ws-palette-grey-300)));--ws-disable-input:var(--vscode-button-disabledBackground,var(--theia-button-disabledBackground,var(--ws-palette-grey-200)));--ws-panel-base-ide:var(--vscode-editor-background,var(--theia-editor-background));--ws-panel-shift-ide:var(--vscode-editor-foreground,var(--theia-panel-foreground));--ws-panel-0-mix:var(--ws-panel-base-ide);--ws-panel-1-mix:var(--ws-panel-base-ide)}@supports (color:color-mix(in lab,red,red)){:root:not(#\\#){--ws-panel-1-mix:color-mix(in srgb,var(--ws-panel-base-ide)96%,var(--ws-panel-shift-ide))}}:root:not(#\\#){--ws-panel-2-mix:var(--ws-panel-base-ide)}@supports (color:color-mix(in lab,red,red)){:root:not(#\\#){--ws-panel-2-mix:color-mix(in srgb,var(--ws-panel-base-ide)92%,var(--ws-panel-shift-ide))}}:root:not(#\\#){--ws-panel-3-mix:var(--ws-panel-base-ide)}@supports (color:color-mix(in lab,red,red)){:root:not(#\\#){--ws-panel-3-mix:color-mix(in srgb,var(--ws-panel-base-ide)88%,var(--ws-panel-shift-ide))}}:root:not(#\\#){--ws-panel-4-mix:var(--ws-panel-base-ide)}@supports (color:color-mix(in lab,red,red)){:root:not(#\\#){--ws-panel-4-mix:color-mix(in srgb,var(--ws-panel-base-ide)84%,var(--ws-panel-shift-ide))}}:root:not(#\\#){--ws-panel-5-mix:var(--ws-panel-base-ide)}@supports (color:color-mix(in lab,red,red)){:root:not(#\\#){--ws-panel-5-mix:color-mix(in srgb,var(--ws-panel-base-ide)80%,var(--ws-panel-shift-ide))}}:root:not(#\\#){--ws-panel-light-mix:var(--ws-panel-base-ide)}@supports (color:color-mix(in lab,red,red)){:root:not(#\\#){--ws-panel-light-mix:color-mix(in srgb,var(--ws-panel-base-ide)70%,var(--ws-panel-shift-ide))}}:root:not(#\\#){--ws-panel-0:var(--ws-panel-0-mix,var(--ws-palette-grey-900));--ws-panel-1:var(--ws-panel-1-mix,var(--ws-palette-grey-700));--ws-panel-2:var(--ws-panel-2-mix,var(--ws-palette-grey-900));--ws-panel-3:var(--ws-panel-3-mix,var(--ws-palette-grey-900));--ws-panel-4:var(--ws-panel-4-mix,var(--ws-palette-grey-300));--ws-panel-5:var(--ws-panel-5-mix,var(--ws-palette-grey-950));--ws-panel-light:var(--ws-panel-light-mix,var(--ws-palette-grey-200));--ws-panel-border-subtle:var(--vscode-panel-border,var(--vscode-tab-border,var(--theia-border-color,var(--ws-palette-grey-100))));--ws-panel-border-strong:var(--vscode-contrastBorder,var(--vscode-focusBorder,var(--theia-contrastBorder,var(--ws-palette-grey-300))));--ws-tab-bg-default:var(--vscode-editorGroupHeader-tabsBackground,var(--vscode-editorWidget-background,var(--ws-palette-grey-900)));--ws-tab-border:var(--vscode-tab-border,var(--vscode-editorGroupHeader-tabsBorder,var(--ws-palette-grey-950)));--ws-tab-active-bg:var(--vscode-tab-activeBackground,var(--ws-palette-grey-800));--ws-tab-active-fg:var(--vscode-tab-activeForeground,var(--vscode-editor-foreground,var(--ws-bg-foreground)));--ws-tab-inactive-bg:var(--vscode-tab-inactiveBackground,var(--ws-palette-grey-900));--ws-tab-inactive-fg:var(--vscode-tab-inactiveForeground,var(--vscode-descriptionForeground,var(--ws-palette-grey-200)));--ws-tab-hover-bg:var(--vscode-tab-hoverBackground,var(--vscode-toolbar-hoverBackground,var(--ws-palette-grey-700)));--ws-panel-header-bg:var(--vscode-sideBarSectionHeader-background,var(--vscode-editorGroupHeader-tabsBackground,var(--ws-palette-grey-800)));--ws-panel-header-fg:var(--vscode-sideBarSectionHeader-foreground,var(--vscode-editor-foreground,var(--ws-bg-foreground)));--ws-panel-bg:var(--vscode-panel-background,var(--vscode-editor-background,var(--ws-bg-default)));--ws-panel-border:var(--vscode-panel-border,var(--vscode-tab-border,var(--ws-palette-grey-950)));--ws-panel-title-active-border:var(--vscode-panelTitle-activeBorder,var(--vscode-focusBorder,var(--ws-palette-primary-500)));--ws-panel-title-active-fg:var(--vscode-panelTitle-activeForeground,var(--vscode-editor-foreground,var(--ws-bg-foreground)));--ws-panel-title-inactive-fg:var(--vscode-panelTitle-inactiveForeground,var(--vscode-descriptionForeground,var(--ws-palette-grey-100)))}.center-absolute:not(#\\#){--tw-translate-x: -50% ;--tw-translate-y: -50% ;translate:var(--tw-translate-x)var(--tw-translate-y);transform:var(--tw-rotate-x,)var(--tw-rotate-y,)var(--tw-rotate-z,)var(--tw-skew-x,)var(--tw-skew-y,);position:absolute;top:50%;left:50%}.ws-group:hover .ws-checkbox-hover-target{opacity:1!important}.simplebar-scrollbar:not(#\\#):before{background-color:#ccc}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-scale-x{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-y{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-z{syntax:"*";inherits:false;initial-value:1}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-space-x-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-gradient-position{syntax:"*";inherits:false}@property --tw-gradient-from{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-via{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-to{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-stops{syntax:"*";inherits:false}@property --tw-gradient-via-stops{syntax:"*";inherits:false}@property --tw-gradient-from-position{syntax:"<length-percentage>";inherits:false;initial-value:0%}@property --tw-gradient-via-position{syntax:"<length-percentage>";inherits:false;initial-value:50%}@property --tw-gradient-to-position{syntax:"<length-percentage>";inherits:false;initial-value:100%}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}@keyframes bounce{0%,to{animation-timing-function:cubic-bezier(.8,0,1,1);transform:translateY(-25%)}50%{animation-timing-function:cubic-bezier(0,0,.2,1);transform:none}}[data-simplebar]{position:relative;flex-direction:column;flex-wrap:wrap;justify-content:flex-start;align-content:flex-start;align-items:flex-start}.simplebar-wrapper{overflow:hidden;width:inherit;height:inherit;max-width:inherit;max-height:inherit}.simplebar-mask{direction:inherit;position:absolute;overflow:hidden;padding:0;margin:0;left:0;top:0;bottom:0;right:0;width:auto!important;height:auto!important;z-index:0}.simplebar-offset{direction:inherit!important;box-sizing:inherit!important;resize:none!important;position:absolute;top:0;left:0;bottom:0;right:0;padding:0;margin:0;-webkit-overflow-scrolling:touch}.simplebar-content-wrapper{direction:inherit;box-sizing:border-box!important;position:relative;display:block;height:100%;width:auto;max-width:100%;max-height:100%;overflow:auto;scrollbar-width:none;-ms-overflow-style:none}.simplebar-content-wrapper::-webkit-scrollbar,.simplebar-hide-scrollbar::-webkit-scrollbar{display:none;width:0;height:0}.simplebar-content:after,.simplebar-content:before{content:" ";display:table}.simplebar-placeholder{max-height:100%;max-width:100%;width:100%;pointer-events:none}.simplebar-height-auto-observer-wrapper{box-sizing:inherit!important;height:100%;width:100%;max-width:1px;position:relative;float:left;max-height:1px;overflow:hidden;z-index:-1;padding:0;margin:0;pointer-events:none;flex-grow:inherit;flex-shrink:0;flex-basis:0}.simplebar-height-auto-observer{box-sizing:inherit;display:block;opacity:0;position:absolute;top:0;left:0;height:1000%;width:1000%;min-height:1px;min-width:1px;overflow:hidden;pointer-events:none;z-index:-1}.simplebar-track{z-index:1;position:absolute;right:0;bottom:0;pointer-events:none;overflow:hidden}[data-simplebar].simplebar-dragging,[data-simplebar].simplebar-dragging .simplebar-content{pointer-events:none;-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}[data-simplebar].simplebar-dragging .simplebar-track{pointer-events:all}.simplebar-scrollbar{position:absolute;left:0;right:0;min-height:10px}.simplebar-scrollbar:before{position:absolute;content:"";background:#000;border-radius:7px;left:2px;right:2px;opacity:0;transition:opacity .2s .5s linear}.simplebar-scrollbar.simplebar-visible:before{opacity:.5;transition-delay:0s;transition-duration:0s}.simplebar-track.simplebar-vertical{top:0;width:11px}.simplebar-scrollbar:before{top:2px;bottom:2px;left:2px;right:2px}.simplebar-track.simplebar-horizontal{left:0;height:11px}.simplebar-track.simplebar-horizontal .simplebar-scrollbar{right:auto;left:0;top:0;bottom:0;min-height:0;min-width:10px;width:auto}[data-simplebar-direction=rtl] .simplebar-track.simplebar-vertical{right:auto;left:0}.simplebar-dummy-scrollbar-size{direction:rtl;position:fixed;opacity:0;visibility:hidden;height:500px;width:500px;overflow-y:hidden;overflow-x:scroll;-ms-overflow-style:scrollbar!important}.simplebar-dummy-scrollbar-size>div{width:200%;height:200%;margin:10px 0}.simplebar-hide-scrollbar{position:fixed;left:0;visibility:hidden;overflow-y:scroll;scrollbar-width:none;-ms-overflow-style:none}
|
|
28
|
+
`,document.head.prepend(t)}catch(t){console.error("vite-plugin-inject-css: failed to inject css",t)}})();const ih=t=>w.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...t,children:w.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.075 4C2.481 4 2 4.48 2 5.072v13.856C2 19.52 2.481 20 3.075 20h17.85c.594 0 1.075-.48 1.075-1.072V5.072C22 4.48 21.519 4 20.925 4H3.075ZM20 9H4v9h16V9Z",fill:"currentColor"})}),Iy=t=>w.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...t,children:[w.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2 3.667C2 2.747 2.746 2 3.667 2h1.389v1.667h-1.39v1.389H2v-1.39Zm8.611 0H7.833V2h2.778v1.667Zm5.556 0h-2.778V2h2.778v1.667Zm4.166 0h-1.389V2h1.39C21.253 2 22 2.746 22 3.667v1.389h-1.667v-1.39Zm0 6.944V7.833H22v2.778h-1.667ZM3.667 7.833v2.778H2V7.833h1.667Zm16.666 8.334v-2.778H22v2.778h-1.667ZM3.667 13.389v2.778H2v-2.778h1.667Zm16.666 6.944v-1.389H22v1.39c0 .92-.746 1.666-1.667 1.666h-1.389v-1.667h1.39ZM3.667 18.944v1.39h1.389V22h-1.39C2.747 22 2 21.254 2 20.333v-1.389h1.667Zm4.166 1.39h2.778V22H7.833v-1.667Zm5.556 0h2.778V22h-2.778v-1.667Z",fill:"currentColor"}),w.jsx("path",{d:"M5.333 5.333h5v5h-5v-5ZM5.333 13.667h5v5h-5v-5ZM13.667 5.333h5v5h-5v-5ZM13.667 13.667h5v5h-5v-5Z",fill:"currentColor"})]}),Sy=t=>w.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...t,children:w.jsx("path",{d:"M21.66 6.28a.5.5 0 0 0 0-.697l-.967-.993a.5.5 0 0 0-.716 0L8.499 16.373 4.023 11.78a.5.5 0 0 0-.716 0l-.967.993a.5.5 0 0 0 0 .697l5.889 6.046.014-.014a.377.377 0 0 0 .54 0L21.66 6.28Z",fill:"currentColor"})}),Ey=t=>w.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...t,children:w.jsx("path",{d:"M10.84 2.714c0-.394.346-.714.773-.714h.774c.427 0 .773.32.773.714V9.5h5.025c.427 0 .773.32.773.714v3.572H5.042v-3.572c0-.394.346-.714.773-.714h5.025V2.714ZM5.042 14.5h13.916l1.034 6.685c.067.43-.295.815-.765.815h-2.1l-.681-5.929L15.764 22h-3.236l-.721-2.143L11.086 22h-2.85l-.682-3.929L6.872 22H4.773c-.47 0-.832-.385-.765-.815L5.042 14.5Z",fill:"currentColor"})}),Lo=t=>w.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...t,children:w.jsx("path",{d:"M4.497 5.361a.5.5 0 0 0 0 .707L10.429 12l-5.932 5.932a.5.5 0 0 0 0 .707l.864.864a.5.5 0 0 0 .707 0L12 13.571l5.932 5.932a.5.5 0 0 0 .707 0l.864-.864a.5.5 0 0 0 0-.707L13.571 12l5.932-5.932a.5.5 0 0 0 0-.707l-.864-.864a.5.5 0 0 0-.707 0L12 10.429 6.068 4.497a.5.5 0 0 0-.707 0l-.864.864Z",fill:"currentColor"})}),ky=t=>w.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...t,children:[w.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2 3.667C2 2.747 2.709 2 3.583 2h1.32v1.667h-1.32v1.389H2v-1.39Zm8.18 0H7.543V2h2.639v1.667Zm5.278 0H12.82V2h2.64v1.667Zm3.959 0h-1.32V2h1.32C20.29 2 21 2.746 21 3.667v1.389h-1.583v-1.39Zm0 6.944V7.833H21v2.778h-1.583ZM3.583 7.833v2.778H2V7.833h1.583Zm15.834 8.334v-2.778H21v2.778h-1.583ZM3.583 13.389v2.778H2v-2.778h1.583Zm15.834 6.944v-1.389H21v1.39c0 .92-.709 1.666-1.583 1.666h-1.32v-1.667h1.32ZM3.583 18.944v1.39h1.32V22h-1.32C2.71 22 2 21.254 2 20.333v-1.389h1.583Zm3.959 1.39h2.639V22H7.54v-1.667Zm5.277 0h2.64V22h-2.64v-1.667Z",fill:"currentColor"}),w.jsx("path",{d:"M5.167 5.333h5.541v5.834H5.167V5.333ZM5.167 12.833h5.541v5.834H5.167v-5.834ZM12.292 5.333h5.541v5.834h-5.541V5.333ZM12.292 12.833h5.541v5.834h-5.541v-5.834Z",fill:"currentColor"})]}),Oy=t=>w.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...t,children:w.jsx("path",{d:"m9.883 21 9.098-3.004L22 3H4.958L4.31 6.346h13.657l-.425 2.136H3.864l-.669 3.347h13.658l-.75 3.83-5.511 1.793-4.762-1.793.325-1.674H2.79L2 17.997 9.883 21Z",fill:"currentColor"})}),Cy=t=>w.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...t,children:w.jsx("path",{d:"M12 18c-4.437 0-8.26-.716-10-1.748V19c0 1.657 4.477 3 10 3s10-1.343 10-3v-2.748C20.26 17.284 16.437 18 12 18ZM2 8.252C3.74 9.284 7.563 10 12 10s8.26-.716 10-1.748V5c0-1.657-4.477-3-10-3S2 3.343 2 5v3.252ZM2 10.252v4C3.74 15.284 7.563 16 12 16s8.26-.716 10-1.748v-4C20.26 11.284 16.437 12 12 12s-8.26-.716-10-1.748Z",fill:"currentColor"})}),ah=t=>w.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...t,children:w.jsx("path",{d:"M11.701 18.797c.206.195.52.195.726 0l2.487-2.349-.008-.007 6.973-6.585a.58.58 0 0 0 0-.835l-2.045-1.932a.524.524 0 0 0-.726 0l-7.052 6.66-7.051-6.66a.524.524 0 0 0-.726 0L2.234 9.021a.58.58 0 0 0 0 .835l9.467 8.941Z",fill:"currentColor"})}),Ny=t=>w.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...t,children:w.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.101 12.212a.472.472 0 0 1 0-.422C3.808 8.376 7.598 6.001 12 6.001c4.402 0 8.192 2.375 9.898 5.79a.472.472 0 0 1 0 .421c-1.706 3.414-5.496 5.79-9.898 5.79-4.401 0-8.192-2.376-9.898-5.79Zm13.902-.211c0 2.224-1.792 4.027-4.002 4.027S8 14.225 8 12.001 9.79 7.974 12 7.974c2.21 0 4.002 1.803 4.002 4.027Zm-4.04 2.054a2.09 2.09 0 0 0 2.082-2.096 2.09 2.09 0 0 0-2.083-2.096A2.09 2.09 0 0 0 9.88 11.96a2.09 2.09 0 0 0 2.082 2.096Z",fill:"currentColor"})}),My=t=>w.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...t,children:[w.jsx("path",{d:"M15.022 11.999c0 1.688-1.353 3.057-3.022 3.057-1.67 0-3.023-1.369-3.023-3.057 0-1.689 1.354-3.058 3.023-3.058s3.022 1.37 3.022 3.058Z",fill:"currentColor"}),w.jsx("path",{d:"M5.213 3.316a.513.513 0 0 1 .162-.701l.856-.538a.5.5 0 0 1 .694.164l11.327 18.443a.513.513 0 0 1-.162.701l-.856.538a.5.5 0 0 1-.693-.164L5.213 3.316ZM6.612 7.308c-1.87 1.047-3.444 2.617-4.546 4.529a.492.492 0 0 0 .004.498c2.079 3.474 5.727 5.778 9.88 5.778.4 0 .796-.021 1.186-.063l-1.2-1.975c-3.065-.005-5.833-1.547-7.622-4.008a9.94 9.94 0 0 1 3.354-3.02l-1.056-1.74ZM16.079 15.084a9.905 9.905 0 0 0 3.607-3.154c-1.792-2.464-4.566-4.008-7.637-4.008-.105 0-.21.002-.316.006l-1.18-1.943c.49-.067.99-.101 1.496-.101 4.154 0 7.803 2.304 9.881 5.779a.491.491 0 0 1 .004.497c-1.151 1.997-2.816 3.621-4.797 4.666l-1.058-1.742Z",fill:"currentColor"})]}),Bd=t=>w.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...t,children:w.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11 21c5.523 0 10-4.477 10-10S16.523 1 11 1 1 5.477 1 11s4.477 10 10 10Zm0-14a1 1 0 1 0 0-2 1 1 0 0 0 0 2Zm1 1.5a.5.5 0 0 0-.5-.5h-2a.5.5 0 0 0-.5.5v1a.5.5 0 0 0 .5.5h.5v4h-.5a.5.5 0 0 0-.5.5v1a.5.5 0 0 0 .5.5h3a.5.5 0 0 0 .5-.5v-1a.5.5 0 0 0-.5-.5H12V8.5Z",fill:"currentColor"})}),Fd=t=>w.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...t,children:[w.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18.983 2.724a.5.5 0 0 0-.707 0L2.854 18.146a.5.5 0 0 0 0 .708L5.71 21.71a.5.5 0 0 0 .707 0L21.84 6.288a.5.5 0 0 0 0-.707l-2.857-2.857Zm1.785 3.21-2.139-2.138-4.065 4.066L16.703 10l4.065-4.065Z",fill:"currentColor"}),w.jsx("path",{d:"m17.5 14 .516 1.393a1 1 0 0 0 .59.591L20 16.5l-1.393.516a1 1 0 0 0-.591.59L17.5 19l-.516-1.393a1 1 0 0 0-.59-.591L15 16.5l1.394-.516a1 1 0 0 0 .59-.59L17.5 14ZM7.5 8l.325.88a.5.5 0 0 0 .296.295L9 9.5l-.88.325a.5.5 0 0 0-.296.296L7.5 11l-.325-.88a.5.5 0 0 0-.296-.295L6 9.5l.88-.325a.5.5 0 0 0 .295-.296L7.5 8ZM13 4l.11.299a1 1 0 0 0 .591.59l.3.111-.3.11a1 1 0 0 0-.59.591L13 6l-.111-.299a1 1 0 0 0-.591-.59L12 5l.299-.11a1 1 0 0 0 .59-.591L13 4Z",fill:"currentColor"})]}),Ry=t=>w.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...t,children:w.jsx("path",{d:"M19.758 11.558a.524.524 0 0 1 0 .884L4.787 21.92A.514.514 0 0 1 4 21.478V2.522c0-.41.444-.659.787-.442l14.971 9.478Z",fill:"currentColor"})}),zy=t=>w.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...t,children:w.jsx("path",{d:"M11.83 20c4.492 0 8.134-3.582 8.134-8s-3.642-8-8.134-8a8.177 8.177 0 0 0-5.704 2.297l1.332.766a.494.494 0 0 1-.013.863L2.76 10.505a.5.5 0 0 1-.746-.429L2 4.796a.506.506 0 0 1 .758-.434l1.562.897A10.217 10.217 0 0 1 11.83 2c5.615 0 10.167 4.477 10.167 10S17.445 22 11.83 22A10.205 10.205 0 0 1 3.5 17.733c-.225-.315.012-.733.398-.733h1.346c.15 0 .292.068.39.182A8.172 8.172 0 0 0 11.83 20Z",fill:"currentColor"})}),Dy=t=>w.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...t,children:w.jsx("path",{d:"M20.673 5.133c.136.24.053.55-.185.69l-16.25 9.623a.487.487 0 0 1-.676-.18l-.497-.884a.513.513 0 0 1 .185-.69L19.5 4.069c.238-.141.54-.06.676.18l.497.884ZM20.938 9.657c.136.24.053.55-.185.69L7.925 17.944a.487.487 0 0 1-.676-.181l-.497-.884a.513.513 0 0 1 .185-.69l12.829-7.597c.237-.14.54-.06.675.181l.497.884ZM20.16 15.376c.237-.14.32-.45.184-.69l-.497-.884a.487.487 0 0 0-.676-.18l-7.695 4.556a.513.513 0 0 0-.185.69l.498.884c.135.24.437.322.675.181l7.695-4.557Z",fill:"currentColor"})}),Ay=t=>w.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...t,children:w.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2 4.5a.5.5 0 0 1 .5-.5h8a.5.5 0 0 1 .5.5V7h10a1 1 0 0 1 1 1v11a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V4.5ZM4 5h5v1H4V5Z",fill:"currentColor"})}),Ty=t=>w.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...t,children:w.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 22c5.523 0 10-4.477 10-10S17.523 2 12 2 2 6.477 2 12s4.477 10 10 10ZM11 4.5a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5V12h3.5a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5h-5a.5.5 0 0 1-.5-.5v-9Z",fill:"currentColor"})}),Py=t=>w.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...t,children:w.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3 4a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h13.833l1.667 2 1.667-2H21a1 1 0 0 0 1-1V5a1 1 0 0 0-1-1H3Zm17 2H4v2h16V6ZM4 10h16v2H4v-2Zm11 4H4v2h11v-2Z",fill:"currentColor"})}),jy=t=>w.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...t,children:w.jsx("path",{d:"M12.299 5.203a.524.524 0 0 0-.726 0L9.086 7.552l.008.007-6.973 6.585a.58.58 0 0 0 0 .835l2.045 1.932c.206.194.52.194.726 0l7.051-6.66 7.053 6.66c.205.194.519.194.725 0l2.045-1.932a.58.58 0 0 0 0-.835l-9.467-8.941Z",fill:"currentColor"})}),Ly=t=>w.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...t,children:w.jsx("path",{d:"M12 11.333c-2.684 0-4.86-2.089-4.86-4.666C7.14 4.089 9.316 2 12 2s4.86 2.09 4.86 4.667-2.176 4.666-4.86 4.666ZM12 14c4.752 0 8.645 3.525 9 8H3c.355-4.475 4.249-8 9-8Z",fill:"currentColor"})}),Vy=(t,o)=>{const n=new Array(t.length+o.length);for(let i=0;i<t.length;i++)n[i]=t[i];for(let i=0;i<o.length;i++)n[t.length+i]=o[i];return n},By=(t,o)=>({classGroupId:t,validator:o}),sh=(t=new Map,o=null,n)=>({nextPart:t,validators:o,classGroupId:n}),ca="-",Hd=[],Fy="arbitrary..",Hy=t=>{const o=$y(t),{conflictingClassGroups:n,conflictingClassGroupModifiers:i}=t;return{getClassGroupId:s=>{if(s.startsWith("[")&&s.endsWith("]"))return Wy(s);const l=s.split(ca),c=l[0]===""&&l.length>1?1:0;return lh(l,c,o)},getConflictingClassGroupIds:(s,l)=>{if(l){const c=i[s],d=n[s];return c?d?Vy(d,c):c:d||Hd}return n[s]||Hd}}},lh=(t,o,n)=>{if(t.length-o===0)return n.classGroupId;const i=t[o],s=n.nextPart.get(i);if(s){const p=lh(t,o+1,s);if(p)return p}const l=n.validators;if(l===null)return;const c=o===0?t.join(ca):t.slice(o).join(ca),d=l.length;for(let p=0;p<d;p++){const g=l[p];if(g.validator(c))return g.classGroupId}},Wy=t=>t.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const o=t.slice(1,-1),n=o.indexOf(":"),i=o.slice(0,n);return i?Fy+i:void 0})(),$y=t=>{const{theme:o,classGroups:n}=t;return qy(n,o)},qy=(t,o)=>{const n=sh();for(const i in t){const s=t[i];gl(s,n,i,o)}return n},gl=(t,o,n,i)=>{const s=t.length;for(let l=0;l<s;l++){const c=t[l];Uy(c,o,n,i)}},Uy=(t,o,n,i)=>{if(typeof t=="string"){Ky(t,o,n);return}if(typeof t=="function"){Gy(t,o,n,i);return}Zy(t,o,n,i)},Ky=(t,o,n)=>{const i=t===""?o:ch(o,t);i.classGroupId=n},Gy=(t,o,n,i)=>{if(Yy(t)){gl(t(i),o,n,i);return}o.validators===null&&(o.validators=[]),o.validators.push(By(n,t))},Zy=(t,o,n,i)=>{const s=Object.entries(t),l=s.length;for(let c=0;c<l;c++){const[d,p]=s[c];gl(p,ch(o,d),n,i)}},ch=(t,o)=>{let n=t;const i=o.split(ca),s=i.length;for(let l=0;l<s;l++){const c=i[l];let d=n.nextPart.get(c);d||(d=sh(),n.nextPart.set(c,d)),n=d}return n},Yy=t=>"isThemeGetter"in t&&t.isThemeGetter===!0,Xy=t=>{if(t<1)return{get:()=>{},set:()=>{}};let o=0,n=Object.create(null),i=Object.create(null);const s=(l,c)=>{n[l]=c,o++,o>t&&(o=0,i=n,n=Object.create(null))};return{get(l){let c=n[l];if(c!==void 0)return c;if((c=i[l])!==void 0)return s(l,c),c},set(l,c){l in n?n[l]=c:s(l,c)}}},sl="!",Wd=":",Jy=[],$d=(t,o,n,i,s)=>({modifiers:t,hasImportantModifier:o,baseClassName:n,maybePostfixModifierPosition:i,isExternal:s}),Qy=t=>{const{prefix:o,experimentalParseClassName:n}=t;let i=s=>{const l=[];let c=0,d=0,p=0,g;const b=s.length;for(let R=0;R<b;R++){const k=s[R];if(c===0&&d===0){if(k===Wd){l.push(s.slice(p,R)),p=R+1;continue}if(k==="/"){g=R;continue}}k==="["?c++:k==="]"?c--:k==="("?d++:k===")"&&d--}const x=l.length===0?s:s.slice(p);let I=x,A=!1;x.endsWith(sl)?(I=x.slice(0,-1),A=!0):x.startsWith(sl)&&(I=x.slice(1),A=!0);const F=g&&g>p?g-p:void 0;return $d(l,A,I,F)};if(o){const s=o+Wd,l=i;i=c=>c.startsWith(s)?l(c.slice(s.length)):$d(Jy,!1,c,void 0,!0)}if(n){const s=i;i=l=>n({className:l,parseClassName:s})}return i},e1=t=>{const o=new Map;return t.orderSensitiveModifiers.forEach((n,i)=>{o.set(n,1e6+i)}),n=>{const i=[];let s=[];for(let l=0;l<n.length;l++){const c=n[l],d=c[0]==="[",p=o.has(c);d||p?(s.length>0&&(s.sort(),i.push(...s),s=[]),i.push(c)):s.push(c)}return s.length>0&&(s.sort(),i.push(...s)),i}},t1=t=>({cache:Xy(t.cacheSize),parseClassName:Qy(t),sortModifiers:e1(t),...Hy(t)}),r1=/\s+/,n1=(t,o)=>{const{parseClassName:n,getClassGroupId:i,getConflictingClassGroupIds:s,sortModifiers:l}=o,c=[],d=t.trim().split(r1);let p="";for(let g=d.length-1;g>=0;g-=1){const b=d[g],{isExternal:x,modifiers:I,hasImportantModifier:A,baseClassName:F,maybePostfixModifierPosition:R}=n(b);if(x){p=b+(p.length>0?" "+p:p);continue}let k=!!R,L=i(k?F.substring(0,R):F);if(!L){if(!k){p=b+(p.length>0?" "+p:p);continue}if(L=i(F),!L){p=b+(p.length>0?" "+p:p);continue}k=!1}const y=I.length===0?"":I.length===1?I[0]:l(I).join(":"),N=A?y+sl:y,C=N+L;if(c.indexOf(C)>-1)continue;c.push(C);const S=s(L,k);for(let P=0;P<S.length;++P){const W=S[P];c.push(N+W)}p=b+(p.length>0?" "+p:p)}return p},o1=(...t)=>{let o=0,n,i,s="";for(;o<t.length;)(n=t[o++])&&(i=uh(n))&&(s&&(s+=" "),s+=i);return s},uh=t=>{if(typeof t=="string")return t;let o,n="";for(let i=0;i<t.length;i++)t[i]&&(o=uh(t[i]))&&(n&&(n+=" "),n+=o);return n},qd=(t,...o)=>{let n,i,s,l;const c=p=>{const g=o.reduce((b,x)=>x(b),t());return n=t1(g),i=n.cache.get,s=n.cache.set,l=d,d(p)},d=p=>{const g=i(p);if(g)return g;const b=n1(p,n);return s(p,b),b};return l=c,(...p)=>l(o1(...p))},i1=[],xt=t=>{const o=n=>n[t]||i1;return o.isThemeGetter=!0,o},dh=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,ph=/^\((?:(\w[\w-]*):)?(.+)\)$/i,a1=/^\d+\/\d+$/,s1=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,l1=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,c1=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,u1=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,d1=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Tn=t=>a1.test(t),Le=t=>!!t&&!Number.isNaN(Number(t)),Zr=t=>!!t&&Number.isInteger(Number(t)),$s=t=>t.endsWith("%")&&Le(t.slice(0,-1)),Tr=t=>s1.test(t),p1=()=>!0,h1=t=>l1.test(t)&&!c1.test(t),hh=()=>!1,f1=t=>u1.test(t),g1=t=>d1.test(t),v1=t=>!ge(t)&&!ve(t),m1=t=>Kn(t,vh,hh),ge=t=>dh.test(t),fn=t=>Kn(t,mh,h1),qs=t=>Kn(t,_1,Le),Ud=t=>Kn(t,fh,hh),b1=t=>Kn(t,gh,g1),Li=t=>Kn(t,bh,f1),ve=t=>ph.test(t),Io=t=>Gn(t,mh),w1=t=>Gn(t,I1),Kd=t=>Gn(t,fh),x1=t=>Gn(t,vh),y1=t=>Gn(t,gh),Vi=t=>Gn(t,bh,!0),Kn=(t,o,n)=>{const i=dh.exec(t);return i?i[1]?o(i[1]):n(i[2]):!1},Gn=(t,o,n=!1)=>{const i=ph.exec(t);return i?i[1]?o(i[1]):n:!1},fh=t=>t==="position"||t==="percentage",gh=t=>t==="image"||t==="url",vh=t=>t==="length"||t==="size"||t==="bg-size",mh=t=>t==="length",_1=t=>t==="number",I1=t=>t==="family-name",bh=t=>t==="shadow",Gd=()=>{const t=xt("color"),o=xt("font"),n=xt("text"),i=xt("font-weight"),s=xt("tracking"),l=xt("leading"),c=xt("breakpoint"),d=xt("container"),p=xt("spacing"),g=xt("radius"),b=xt("shadow"),x=xt("inset-shadow"),I=xt("text-shadow"),A=xt("drop-shadow"),F=xt("blur"),R=xt("perspective"),k=xt("aspect"),L=xt("ease"),y=xt("animate"),N=()=>["auto","avoid","all","avoid-page","page","left","right","column"],C=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],S=()=>[...C(),ve,ge],P=()=>["auto","hidden","clip","visible","scroll"],W=()=>["auto","contain","none"],V=()=>[ve,ge,p],q=()=>[Tn,"full","auto",...V()],G=()=>[Zr,"none","subgrid",ve,ge],te=()=>["auto",{span:["full",Zr,ve,ge]},Zr,ve,ge],pe=()=>[Zr,"auto",ve,ge],ye=()=>["auto","min","max","fr",ve,ge],ce=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],ie=()=>["start","end","center","stretch","center-safe","end-safe"],ae=()=>["auto",...V()],xe=()=>[Tn,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...V()],ne=()=>[t,ve,ge],Ie=()=>[...C(),Kd,Ud,{position:[ve,ge]}],E=()=>["no-repeat",{repeat:["","x","y","space","round"]}],M=()=>["auto","cover","contain",x1,m1,{size:[ve,ge]}],T=()=>[$s,Io,fn],K=()=>["","none","full",g,ve,ge],j=()=>["",Le,Io,fn],X=()=>["solid","dashed","dotted","double"],$=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],H=()=>[Le,$s,Kd,Ud],re=()=>["","none",F,ve,ge],he=()=>["none",Le,ve,ge],ue=()=>["none",Le,ve,ge],_e=()=>[Le,ve,ge],Q=()=>[Tn,"full",...V()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Tr],breakpoint:[Tr],color:[p1],container:[Tr],"drop-shadow":[Tr],ease:["in","out","in-out"],font:[v1],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Tr],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Tr],shadow:[Tr],spacing:["px",Le],text:[Tr],"text-shadow":[Tr],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Tn,ge,ve,k]}],container:["container"],columns:[{columns:[Le,ge,ve,d]}],"break-after":[{"break-after":N()}],"break-before":[{"break-before":N()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:S()}],overflow:[{overflow:P()}],"overflow-x":[{"overflow-x":P()}],"overflow-y":[{"overflow-y":P()}],overscroll:[{overscroll:W()}],"overscroll-x":[{"overscroll-x":W()}],"overscroll-y":[{"overscroll-y":W()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:q()}],"inset-x":[{"inset-x":q()}],"inset-y":[{"inset-y":q()}],start:[{start:q()}],end:[{end:q()}],top:[{top:q()}],right:[{right:q()}],bottom:[{bottom:q()}],left:[{left:q()}],visibility:["visible","invisible","collapse"],z:[{z:[Zr,"auto",ve,ge]}],basis:[{basis:[Tn,"full","auto",d,...V()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Le,Tn,"auto","initial","none",ge]}],grow:[{grow:["",Le,ve,ge]}],shrink:[{shrink:["",Le,ve,ge]}],order:[{order:[Zr,"first","last","none",ve,ge]}],"grid-cols":[{"grid-cols":G()}],"col-start-end":[{col:te()}],"col-start":[{"col-start":pe()}],"col-end":[{"col-end":pe()}],"grid-rows":[{"grid-rows":G()}],"row-start-end":[{row:te()}],"row-start":[{"row-start":pe()}],"row-end":[{"row-end":pe()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":ye()}],"auto-rows":[{"auto-rows":ye()}],gap:[{gap:V()}],"gap-x":[{"gap-x":V()}],"gap-y":[{"gap-y":V()}],"justify-content":[{justify:[...ce(),"normal"]}],"justify-items":[{"justify-items":[...ie(),"normal"]}],"justify-self":[{"justify-self":["auto",...ie()]}],"align-content":[{content:["normal",...ce()]}],"align-items":[{items:[...ie(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...ie(),{baseline:["","last"]}]}],"place-content":[{"place-content":ce()}],"place-items":[{"place-items":[...ie(),"baseline"]}],"place-self":[{"place-self":["auto",...ie()]}],p:[{p:V()}],px:[{px:V()}],py:[{py:V()}],ps:[{ps:V()}],pe:[{pe:V()}],pt:[{pt:V()}],pr:[{pr:V()}],pb:[{pb:V()}],pl:[{pl:V()}],m:[{m:ae()}],mx:[{mx:ae()}],my:[{my:ae()}],ms:[{ms:ae()}],me:[{me:ae()}],mt:[{mt:ae()}],mr:[{mr:ae()}],mb:[{mb:ae()}],ml:[{ml:ae()}],"space-x":[{"space-x":V()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":V()}],"space-y-reverse":["space-y-reverse"],size:[{size:xe()}],w:[{w:[d,"screen",...xe()]}],"min-w":[{"min-w":[d,"screen","none",...xe()]}],"max-w":[{"max-w":[d,"screen","none","prose",{screen:[c]},...xe()]}],h:[{h:["screen","lh",...xe()]}],"min-h":[{"min-h":["screen","lh","none",...xe()]}],"max-h":[{"max-h":["screen","lh",...xe()]}],"font-size":[{text:["base",n,Io,fn]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[i,ve,qs]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",$s,ge]}],"font-family":[{font:[w1,ge,o]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[s,ve,ge]}],"line-clamp":[{"line-clamp":[Le,"none",ve,qs]}],leading:[{leading:[l,...V()]}],"list-image":[{"list-image":["none",ve,ge]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",ve,ge]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:ne()}],"text-color":[{text:ne()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...X(),"wavy"]}],"text-decoration-thickness":[{decoration:[Le,"from-font","auto",ve,fn]}],"text-decoration-color":[{decoration:ne()}],"underline-offset":[{"underline-offset":[Le,"auto",ve,ge]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:V()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ve,ge]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",ve,ge]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:Ie()}],"bg-repeat":[{bg:E()}],"bg-size":[{bg:M()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Zr,ve,ge],radial:["",ve,ge],conic:[Zr,ve,ge]},y1,b1]}],"bg-color":[{bg:ne()}],"gradient-from-pos":[{from:T()}],"gradient-via-pos":[{via:T()}],"gradient-to-pos":[{to:T()}],"gradient-from":[{from:ne()}],"gradient-via":[{via:ne()}],"gradient-to":[{to:ne()}],rounded:[{rounded:K()}],"rounded-s":[{"rounded-s":K()}],"rounded-e":[{"rounded-e":K()}],"rounded-t":[{"rounded-t":K()}],"rounded-r":[{"rounded-r":K()}],"rounded-b":[{"rounded-b":K()}],"rounded-l":[{"rounded-l":K()}],"rounded-ss":[{"rounded-ss":K()}],"rounded-se":[{"rounded-se":K()}],"rounded-ee":[{"rounded-ee":K()}],"rounded-es":[{"rounded-es":K()}],"rounded-tl":[{"rounded-tl":K()}],"rounded-tr":[{"rounded-tr":K()}],"rounded-br":[{"rounded-br":K()}],"rounded-bl":[{"rounded-bl":K()}],"border-w":[{border:j()}],"border-w-x":[{"border-x":j()}],"border-w-y":[{"border-y":j()}],"border-w-s":[{"border-s":j()}],"border-w-e":[{"border-e":j()}],"border-w-t":[{"border-t":j()}],"border-w-r":[{"border-r":j()}],"border-w-b":[{"border-b":j()}],"border-w-l":[{"border-l":j()}],"divide-x":[{"divide-x":j()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":j()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...X(),"hidden","none"]}],"divide-style":[{divide:[...X(),"hidden","none"]}],"border-color":[{border:ne()}],"border-color-x":[{"border-x":ne()}],"border-color-y":[{"border-y":ne()}],"border-color-s":[{"border-s":ne()}],"border-color-e":[{"border-e":ne()}],"border-color-t":[{"border-t":ne()}],"border-color-r":[{"border-r":ne()}],"border-color-b":[{"border-b":ne()}],"border-color-l":[{"border-l":ne()}],"divide-color":[{divide:ne()}],"outline-style":[{outline:[...X(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Le,ve,ge]}],"outline-w":[{outline:["",Le,Io,fn]}],"outline-color":[{outline:ne()}],shadow:[{shadow:["","none",b,Vi,Li]}],"shadow-color":[{shadow:ne()}],"inset-shadow":[{"inset-shadow":["none",x,Vi,Li]}],"inset-shadow-color":[{"inset-shadow":ne()}],"ring-w":[{ring:j()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:ne()}],"ring-offset-w":[{"ring-offset":[Le,fn]}],"ring-offset-color":[{"ring-offset":ne()}],"inset-ring-w":[{"inset-ring":j()}],"inset-ring-color":[{"inset-ring":ne()}],"text-shadow":[{"text-shadow":["none",I,Vi,Li]}],"text-shadow-color":[{"text-shadow":ne()}],opacity:[{opacity:[Le,ve,ge]}],"mix-blend":[{"mix-blend":[...$(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":$()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[Le]}],"mask-image-linear-from-pos":[{"mask-linear-from":H()}],"mask-image-linear-to-pos":[{"mask-linear-to":H()}],"mask-image-linear-from-color":[{"mask-linear-from":ne()}],"mask-image-linear-to-color":[{"mask-linear-to":ne()}],"mask-image-t-from-pos":[{"mask-t-from":H()}],"mask-image-t-to-pos":[{"mask-t-to":H()}],"mask-image-t-from-color":[{"mask-t-from":ne()}],"mask-image-t-to-color":[{"mask-t-to":ne()}],"mask-image-r-from-pos":[{"mask-r-from":H()}],"mask-image-r-to-pos":[{"mask-r-to":H()}],"mask-image-r-from-color":[{"mask-r-from":ne()}],"mask-image-r-to-color":[{"mask-r-to":ne()}],"mask-image-b-from-pos":[{"mask-b-from":H()}],"mask-image-b-to-pos":[{"mask-b-to":H()}],"mask-image-b-from-color":[{"mask-b-from":ne()}],"mask-image-b-to-color":[{"mask-b-to":ne()}],"mask-image-l-from-pos":[{"mask-l-from":H()}],"mask-image-l-to-pos":[{"mask-l-to":H()}],"mask-image-l-from-color":[{"mask-l-from":ne()}],"mask-image-l-to-color":[{"mask-l-to":ne()}],"mask-image-x-from-pos":[{"mask-x-from":H()}],"mask-image-x-to-pos":[{"mask-x-to":H()}],"mask-image-x-from-color":[{"mask-x-from":ne()}],"mask-image-x-to-color":[{"mask-x-to":ne()}],"mask-image-y-from-pos":[{"mask-y-from":H()}],"mask-image-y-to-pos":[{"mask-y-to":H()}],"mask-image-y-from-color":[{"mask-y-from":ne()}],"mask-image-y-to-color":[{"mask-y-to":ne()}],"mask-image-radial":[{"mask-radial":[ve,ge]}],"mask-image-radial-from-pos":[{"mask-radial-from":H()}],"mask-image-radial-to-pos":[{"mask-radial-to":H()}],"mask-image-radial-from-color":[{"mask-radial-from":ne()}],"mask-image-radial-to-color":[{"mask-radial-to":ne()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":C()}],"mask-image-conic-pos":[{"mask-conic":[Le]}],"mask-image-conic-from-pos":[{"mask-conic-from":H()}],"mask-image-conic-to-pos":[{"mask-conic-to":H()}],"mask-image-conic-from-color":[{"mask-conic-from":ne()}],"mask-image-conic-to-color":[{"mask-conic-to":ne()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:Ie()}],"mask-repeat":[{mask:E()}],"mask-size":[{mask:M()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",ve,ge]}],filter:[{filter:["","none",ve,ge]}],blur:[{blur:re()}],brightness:[{brightness:[Le,ve,ge]}],contrast:[{contrast:[Le,ve,ge]}],"drop-shadow":[{"drop-shadow":["","none",A,Vi,Li]}],"drop-shadow-color":[{"drop-shadow":ne()}],grayscale:[{grayscale:["",Le,ve,ge]}],"hue-rotate":[{"hue-rotate":[Le,ve,ge]}],invert:[{invert:["",Le,ve,ge]}],saturate:[{saturate:[Le,ve,ge]}],sepia:[{sepia:["",Le,ve,ge]}],"backdrop-filter":[{"backdrop-filter":["","none",ve,ge]}],"backdrop-blur":[{"backdrop-blur":re()}],"backdrop-brightness":[{"backdrop-brightness":[Le,ve,ge]}],"backdrop-contrast":[{"backdrop-contrast":[Le,ve,ge]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Le,ve,ge]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Le,ve,ge]}],"backdrop-invert":[{"backdrop-invert":["",Le,ve,ge]}],"backdrop-opacity":[{"backdrop-opacity":[Le,ve,ge]}],"backdrop-saturate":[{"backdrop-saturate":[Le,ve,ge]}],"backdrop-sepia":[{"backdrop-sepia":["",Le,ve,ge]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":V()}],"border-spacing-x":[{"border-spacing-x":V()}],"border-spacing-y":[{"border-spacing-y":V()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",ve,ge]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Le,"initial",ve,ge]}],ease:[{ease:["linear","initial",L,ve,ge]}],delay:[{delay:[Le,ve,ge]}],animate:[{animate:["none",y,ve,ge]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[R,ve,ge]}],"perspective-origin":[{"perspective-origin":S()}],rotate:[{rotate:he()}],"rotate-x":[{"rotate-x":he()}],"rotate-y":[{"rotate-y":he()}],"rotate-z":[{"rotate-z":he()}],scale:[{scale:ue()}],"scale-x":[{"scale-x":ue()}],"scale-y":[{"scale-y":ue()}],"scale-z":[{"scale-z":ue()}],"scale-3d":["scale-3d"],skew:[{skew:_e()}],"skew-x":[{"skew-x":_e()}],"skew-y":[{"skew-y":_e()}],transform:[{transform:[ve,ge,"","none","gpu","cpu"]}],"transform-origin":[{origin:S()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Q()}],"translate-x":[{"translate-x":Q()}],"translate-y":[{"translate-y":Q()}],"translate-z":[{"translate-z":Q()}],"translate-none":["translate-none"],accent:[{accent:ne()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:ne()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",ve,ge]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":V()}],"scroll-mx":[{"scroll-mx":V()}],"scroll-my":[{"scroll-my":V()}],"scroll-ms":[{"scroll-ms":V()}],"scroll-me":[{"scroll-me":V()}],"scroll-mt":[{"scroll-mt":V()}],"scroll-mr":[{"scroll-mr":V()}],"scroll-mb":[{"scroll-mb":V()}],"scroll-ml":[{"scroll-ml":V()}],"scroll-p":[{"scroll-p":V()}],"scroll-px":[{"scroll-px":V()}],"scroll-py":[{"scroll-py":V()}],"scroll-ps":[{"scroll-ps":V()}],"scroll-pe":[{"scroll-pe":V()}],"scroll-pt":[{"scroll-pt":V()}],"scroll-pr":[{"scroll-pr":V()}],"scroll-pb":[{"scroll-pb":V()}],"scroll-pl":[{"scroll-pl":V()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",ve,ge]}],fill:[{fill:["none",...ne()]}],"stroke-w":[{stroke:[Le,Io,fn,qs]}],stroke:[{stroke:["none",...ne()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},S1=(t,{cacheSize:o,prefix:n,experimentalParseClassName:i,extend:s={},override:l={}})=>(Co(t,"cacheSize",o),Co(t,"prefix",n),Co(t,"experimentalParseClassName",i),Bi(t.theme,l.theme),Bi(t.classGroups,l.classGroups),Bi(t.conflictingClassGroups,l.conflictingClassGroups),Bi(t.conflictingClassGroupModifiers,l.conflictingClassGroupModifiers),Co(t,"orderSensitiveModifiers",l.orderSensitiveModifiers),Fi(t.theme,s.theme),Fi(t.classGroups,s.classGroups),Fi(t.conflictingClassGroups,s.conflictingClassGroups),Fi(t.conflictingClassGroupModifiers,s.conflictingClassGroupModifiers),wh(t,s,"orderSensitiveModifiers"),t),Co=(t,o,n)=>{n!==void 0&&(t[o]=n)},Bi=(t,o)=>{if(o)for(const n in o)Co(t,n,o[n])},Fi=(t,o)=>{if(o)for(const n in o)wh(t,o,n)},wh=(t,o,n)=>{const i=o[n];i!==void 0&&(t[n]=t[n]?t[n].concat(i):i)},E1=(t,...o)=>typeof t=="function"?qd(Gd,t,...o):qd(()=>S1(Gd(),t),...o);function xh(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Zd={exports:{}};/*!
|
|
29
29
|
Copyright (c) 2018 Jed Watson.
|
|
30
30
|
Licensed under the MIT License (MIT), see
|
|
31
31
|
http://jedwatson.github.io/classnames
|
|
32
|
-
*/var
|
|
32
|
+
*/var Yd;function k1(){return Yd||(Yd=1,(function(t){(function(){var o={}.hasOwnProperty;function n(){for(var l="",c=0;c<arguments.length;c++){var d=arguments[c];d&&(l=s(l,i(d)))}return l}function i(l){if(typeof l=="string"||typeof l=="number")return l;if(typeof l!="object")return"";if(Array.isArray(l))return n.apply(null,l);if(l.toString!==Object.prototype.toString&&!l.toString.toString().includes("[native code]"))return l.toString();var c="";for(var d in l)o.call(l,d)&&l[d]&&(c=s(c,d));return c}function s(l,c){return c?l?l+" "+c:l+c:l}t.exports?(n.default=n,t.exports=n):window.classNames=n})()})(Zd)),Zd.exports}var O1=k1();const C1=xh(O1),N1=E1({extend:{classGroups:{"font-size":["text-xxs","text-xs","text-s","text-sm","text-base","text-lg","text-xl","text-2xl","text-3xl","text-4xl","text-5xl","text-6xl","text-7xl","text-8xl","text-9xl"],"text-color":["text-body","text-muted","text-inactive-text","text-button-text","text-positive-text","text-negative-text","text-negative","text-warning-text","text-input-text","text-select-text","text-input-message-text","text-placeholder"]}}});function J(...t){return N1(C1(t))}const Vo={sm:{checkbox:"size-4",hoverSquare:"size-2.5",text:"text-xs",spacing:"gap-1",icon:"size-3.25"},md:{checkbox:"size-5",hoverSquare:"size-3.5",text:"text-sm",spacing:"gap-1.5",icon:"size-4"},lg:{checkbox:"size-6",hoverSquare:"size-4",text:"text-base",spacing:"gap-2",icon:"size-5"}},ur={primary:{checked:"bg-primary border-primary",unchecked:"border border-body bg-transparent",checkedHover:"hover:bg-primary-hover hover:border-primary-hover",hoverSquare:"bg-primary-hover",focus:"focus:ring-primary",label:"text-body"},positive:{checked:"bg-positive border-positive",unchecked:"border border-positive bg-transparent",checkedHover:"hover:bg-positive-hover hover:border-positive-hover",hoverSquare:"bg-positive-hover",focus:"focus:ring-positive",label:"text-positive"},warning:{checked:"bg-warning border-warning",unchecked:"border border-warning bg-transparent",checkedHover:"hover:bg-warning-hover hover:border-warning-hover",hoverSquare:"bg-warning-hover",focus:"focus:ring-warning",label:"text-warning"},negative:{checked:"bg-negative border-negative",unchecked:"border border-negative bg-transparent",checkedHover:"hover:bg-negative-hover hover:border-negative-hover",hoverSquare:"bg-negative-hover",focus:"focus:ring-negative",label:"text-negative"}},M1=`
|
|
33
33
|
appearance-none border rounded transition-all duration-200
|
|
34
34
|
focus:ring-2 focus:ring-offset-2 focus:outline-hidden
|
|
35
35
|
relative
|
|
36
|
-
`,
|
|
36
|
+
`,R1=(t,o,n)=>{const{isChecked:i,isIndeterminate:s,isDisabled:l,isInvalid:c}=n,d=i||s;return J(M1,Vo[t].checkbox,{"cursor-pointer":!l},c?{[ur.negative.checked]:d,[ur.negative.unchecked]:!d,[ur.negative.checkedHover]:!l&&d,[ur.negative.focus]:!l,"border-input-disable":l}:{[ur[o].checked]:d&&!l,[ur[o].unchecked]:!d&&!l,[ur[o].checkedHover]:!l&&d,[ur[o].focus]:!l,"border-input-disable":l,"bg-input-disable":l&&d})},z1=(t,o,n)=>{const{isDisabled:i,isInvalid:s}=n;return J(Vo[t].text,s?{[ur.negative.label]:s}:{"text-input-disable":i,[ur[o].label]:!i,"cursor-pointer":!i})},D1=t=>J("inline-flex items-center ws-group",Vo[t].spacing),A1=(t,o,n)=>J("center-absolute rounded-xs transition-all duration-200 opacity-0 ws-checkbox-hover-target",Vo[t].hoverSquare,{[ur.negative.hoverSquare]:n,[ur[o].hoverSquare]:!n}),T1=t=>`${Vo[t].icon}`,P1=t=>w.jsx("svg",{className:`absolute inset-0 ${t.className}`,fill:"none",viewBox:"0 0 24 24","aria-hidden":"true",focusable:"false",xmlns:"http://www.w3.org/2000/svg",...t,children:w.jsx("circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"2",fill:"none"})}),j1=m.forwardRef(({label:t,isDisabled:o=!1,isInvalid:n=!1,isRequired:i=!1,size:s="md",color:l="primary",onChange:c,onFocus:d,onBlur:p,value:g,defaultValue:b,name:x,id:I,...A},F)=>{const[R,k]=m.useState(b),L=g===!0||R===!0,y=g===null,N=L||y,C={isChecked:L,isIndeterminate:y,isDisabled:o,isInvalid:n},S=R1(s,l,C),P=z1(s,l,C),W=D1(s),V=A1(s,l,n),q=T1(s);return w.jsxs("label",{"data-qui":"Checkbox",className:W,children:[w.jsxs("div",{className:S,children:[w.jsx("input",{ref:F,type:"checkbox",className:"sr-only",checked:L,disabled:o,required:i,onChange:G=>{g===void 0&&k(G.target.checked),c==null||c(G)},onFocus:d,onBlur:p,name:x,id:I,...A}),N&&w.jsx("div",{className:"center-absolute",children:y?w.jsx(P1,{className:q}):w.jsx(Sy,{className:q})}),!N&&!o&&w.jsx("div",{className:V})]}),t&&w.jsxs("span",{className:P,children:[t,i&&w.jsx("span",{className:"text-negative ml-1",children:"*"})]})]})});j1.displayName="Checkbox";const Bo={sm:{container:"gap-2",radio:"size-3",label:"text-xs",dot:"size-2",hoverDot:"size-1.5"},md:{container:"gap-2.5",radio:"size-4",label:"text-sm",dot:"size-2.5",hoverDot:"size-2"},lg:{container:"gap-3",radio:"size-6",label:"text-base",dot:"size-4",hoverDot:"size-3"}},zo={primary:{radio:"border-body-light group-hover:border-body",radioInvalid:"border-negative",dot:"bg-primary group-hover:bg-primary-hover",hoverDot:"bg-primary-hover",label:"text-body"},positive:{radio:"border-positive group-hover:border-positive-text",radioInvalid:"border-negative",dot:"bg-positive group-hover:bg-positive-hover",hoverDot:"bg-positive-bg",label:"text-positive-text"},warning:{radio:"border-warning group-hover:border-warning-text",radioInvalid:"border-negative",dot:"bg-warning group-hover:bg-warning-hover",hoverDot:"bg-warning-bg",label:"text-warning-text"},negative:{radio:"border-negative group-hover:border-negative-text",radioInvalid:"border-negative",dot:"bg-negative group-hover:bg-negative-hover",hoverDot:"bg-negative-bg",label:"text-negative"}},L1=`
|
|
37
37
|
relative rounded-full border transition-all duration-200 ease-in-out bg-transparent
|
|
38
38
|
focus:outline-hidden focus:ring-2 focus:ring-offset-0
|
|
39
39
|
cursor-pointer peer
|
|
40
|
-
`,l1=(r,i,n)=>{const{isDisabled:o,isInvalid:s}=n;return Q(s1,Ci[r].radio,s?_i[i].radioInvalid:{[_i[i].radio]:!o,"cursor-not-allowed opacity-60":o})},c1=(r,i,n)=>{const{checked:o,isDisabled:s,isInvalid:l}=n;return Q("center-absolute rounded-full transition-all duration-200 ease-in-out",Ci[r].dot,l?"bg-negative":{[_i[i].dot]:!s,"border-neutral":s,"opacity-0 scale-0":!o,"opacity-100 scale-100":o&&!s})},u1=(r,i,n)=>Q("center-absolute rounded-full transition-all duration-200 opacity-0 group-hover:opacity-100",Ci[r].hoverDot,{[_i[i].hoverDot]:!n,"bg-negative-bg":n}),d1=r=>Q("cursor-pointer select-none transition-colors duration-200",Ci[r].label),p1=(r,i,n,o)=>{const{isDisabled:s,isInvalid:l}=n;return Q("inline-flex items-center group",Ci[r].container,l?{"text-negative":l}:{[_i[i].label]:!s,"text-muted":s},o)},h1=y.createContext(null),f1=()=>{const r=y.useContext(h1);if(!r)throw new Error("Radio.Item must be used within Radio.Group");return r},g1=y.forwardRef(({value:r,label:i,size:n,color:o,isDisabled:s,isInvalid:l,isRequired:c,className:d,...h},v)=>{const m=f1(),w=n??m.size,S=o??m.color,D=s??m.isDisabled,B=l??m.isInvalid,z=c??m.isRequired,k=m.value===r,A={checked:k,isDisabled:D,isInvalid:B},_=l1(w,S,A),E=c1(w,S,A),O=u1(w,S,B),N=d1(w),V=p1(w,S,A,d),ae=()=>{D||m.onChange(r)};return b.jsxs("label",{"data-qui":"RadioItem",className:V,children:[b.jsxs("div",{className:Q("relative",{hidden:m.hideIndicator}),children:[b.jsx("input",{ref:v,type:"radio",value:r,checked:k,disabled:D,required:z,"aria-invalid":B,"aria-label":i?void 0:h["aria-label"],name:m.name,onChange:ae,className:"sr-only",...h}),b.jsxs("div",{className:_,children:[b.jsx("div",{className:E}),!k&&!D&&b.jsx("div",{className:O})]})]}),i&&b.jsxs("span",{className:N,children:[i,z&&b.jsx("span",{className:"text-negative ml-1",children:"*"})]})]})});g1.displayName="RadioItem";const Up={sm:{container:"h-4.5 p-1 rounded",text:"text-xxs"},md:{container:"h-6 p-1 rounded",text:"text-s"},lg:{container:"h-7 p-1 rounded",text:"text-sm"},xl:{container:"h-7.5 p-1 rounded",text:"text-lg"}},v1={primary:{bg:{solid:"bg-primary",outline:"bg-transparent",ghost:"bg-transparent"},text:{solid:"text-button-text",outline:"text-primary",ghost:"text-primary"},border:{solid:"border-primary",outline:"border-primary",ghost:"border-transparent"},hover:{solid:"hover:bg-primary-hover hover:border-primary-hover",outline:"hover:border-primary-hover hover:bg-primary hover:text-body",ghost:"hover:bg-primary-hover hover:text-body"}},white:{bg:{solid:"bg-white",outline:"bg-transparent",ghost:"bg-transparent"},text:{solid:"text-primary",outline:"text-body",ghost:"text-body"},border:{solid:"border-white",outline:"border-white",ghost:"border-transparent"},hover:{solid:"hover:bg-canvas-subtle hover:border-canvas-subtle",outline:"hover:border-canvas-default hover:bg-canvas-default hover:text-primary",ghost:"hover:bg-primary-hover hover:text-body"}},positive:{bg:{solid:"bg-positive",outline:"bg-transparent",ghost:"bg-transparent"},text:{solid:"text-button-text",outline:"text-positive-text",ghost:"text-positive-text"},border:{solid:"border-positive",outline:"border-positive",ghost:"border-transparent"},hover:{solid:"hover:bg-positive-hover hover:border-positive-hover",outline:"hover:border-positive-hover hover:bg-positive-hover hover:text-body",ghost:"hover:bg-positive-hover hover:text-body"}},warning:{bg:{solid:"bg-warning",outline:"bg-transparent",ghost:"bg-transparent"},text:{solid:"text-button-text",outline:"text-warning-text",ghost:"text-warning-text"},border:{solid:"border-warning",outline:"border-warning",ghost:"border-transparent"},hover:{solid:"hover:bg-warning-hover hover:border-warning-hover",outline:"hover:border-warning-hover hover:bg-warning-hover hover:text-body",ghost:"hover:bg-warning-hover hover:text-body"}},negative:{bg:{solid:"bg-negative",outline:"bg-transparent",ghost:"bg-transparent"},text:{solid:"text-button-text",outline:"text-negative",ghost:"text-negative"},border:{solid:"border-negative",outline:"border-negative",ghost:"border-transparent"},hover:{solid:"hover:bg-negative-hover hover:border-negative-hover",outline:"hover:border-negative-hover hover:bg-negative-hover hover:text-body",ghost:"hover:bg-negative-hover hover:text-body"}}},m1=(r,i,n,o)=>{const s=Up[r],l=v1[n],c=Q("inline-flex items-center justify-center font-medium transition-colors duration-200 focus:outline-hidden border",{"cursor-pointer":!o},s.container);return o?Q(c,"text-inactive-text",{"border-panel":i!=="ghost"&&i==="solid","border-panel-subtle":i==="outline","bg-panel":i==="solid","bg-transparent ":i==="outline"||i==="ghost","border-transparent":i==="ghost"}):Q(c,l.bg[i],l.text[i],l.hover[i],l.border[i])},b1=r=>Q("flex items-center justify-center gap-1",Up[r].text),w1=y.forwardRef(({size:r="md",variant:i="solid",color:n="primary",className:o,children:s,disabled:l,...c},d)=>b.jsx("button",{"data-qui":"Button",ref:d,type:"button",className:Q(m1(r,i,n,l),b1(r),o),disabled:l,...c,children:s}));w1.displayName="Button";const Gp=y.createContext(null),Ri=()=>{const r=y.useContext(Gp);if(!r)throw new Error("Input components must be used within Input.Root");return r},Kn={sm:{group:"h-5 min-h-fit",input:"text-xxs",message:"text-xxs p-1.5",icon:"text-sm"},md:{group:"h-6 min-h-fit",input:"text-xs",message:"text-xs p-2",icon:"text-base"},lg:{group:"h-7 min-h-fit",input:"text-s",message:"text-s p-2.5",icon:"text-lg"}},dn={primary:{border:"border border-input-border focus-within:border-input-focus-border",borderInvalid:"ring-input-error-border",borderMessage:"ring-input-focus-border",text:"text-input-text",placeholder:"placeholder:text-input-placeholder",messageText:"text-input-message-text",messageBackground:"bg-input-message-bg",icon:"text-input-text",action:"text-input-text",actionHover:"hover:text-body hover:bg-primary-hover"},positive:{border:"border border-input-border focus-within:border-positive",borderInvalid:"ring-input-error-border",borderMessage:"ring-positive",text:"text-input-text",placeholder:"placeholder:text-input-placeholder",messageText:"text-positive-dark",messageBackground:"bg-positive-light",icon:"text-positive-text",action:"text-input-text",actionHover:"hover:text-body hover:bg-primary-hover"},warning:{border:"border border-input-border focus-within:border-input-warning-border",borderInvalid:"ring-input-error-border",borderMessage:"ring-input-warning-border",text:"text-input-text",placeholder:"placeholder:text-input-placeholder",messageText:"text-warning-dark",messageBackground:"bg-input-warning-bg",icon:"text-warning-text",action:"text-input-text",actionHover:"hover:text-body hover:bg-primary-hover"},negative:{border:"border border-input-border focus-within:border-input-error-border",borderInvalid:"ring-input-error-border",borderMessage:"ring-input-error-border",text:"text-negative",placeholder:"placeholder:text-input-placeholder",messageText:"text-negative-dark",messageBackground:"bg-input-error-bg",icon:"text-negative",action:"text-input-text",actionHover:"hover:text-body hover:bg-primary-hover"}},x1=()=>Q("flex flex-col relative"),y1=({size:r,color:i,isDisabled:n,isReadOnly:o,hasMessage:s,hasArea:l,isInvalid:c})=>{const d=dn[c?"negative":i];return Q("bg-input-bg flex gap-1 relative px-1 transition-all duration-200 ease-in-out only:rounded first:rounded-t last:rounded-b",d.text,s?d.borderMessage:!o&&d.border,Kn[r].group,{"ring-1":s,"opacity-60":n,"items-center":!l})},_1=({size:r,color:i})=>Q("bg-transparent ring-0 w-full","focus:outline-hidden",[Kn[r].input],dn[i].placeholder),Cd=({size:r,color:i})=>Q("bg-transparent ring-0 w-full h-fit resize-none py-0.5","focus:outline-hidden",Kn[r].input,dn[i].placeholder),I1=({size:r,color:i,isDisabled:n,isAction:o})=>{const s=dn[i];return Q("transition-colors duration-200 rounded max-h-full h-fit",Kn[r].icon,r==="sm"?"m-px":"m-0.5",n?"text-muted opacity-60 pointer-events-none":o?s.action:s.icon,{"cursor-pointer p-0.5":o&&!n,[s.actionHover]:o&&!n,"pointer-events-none":!o})},S1=({size:r,color:i,isDisabled:n})=>Q("absolute left-0 right-0 z-10","flex items-start gap-x-2 ring-1","first:bottom-full first:rounded-t first:ring-b-0","last:top-full last:rounded-b last:ring-t-0","only:top-full only:rounded only:ring-1",n?"text-muted":dn[i].messageText,dn[i].borderMessage,dn[i].messageBackground,Kn[r].message,{"opacity-60":n}),E1=({size:r})=>Q(Kn[r].icon);function Yo(r){var i=typeof r;return r!=null&&(i=="object"||i=="function")}var k1=typeof global=="object"&&global&&global.Object===Object&&global,O1=typeof self=="object"&&self&&self.Object===Object&&self,qp=k1||O1||Function("return this")(),ks=function(){return qp.Date.now()},N1=/\s/;function C1(r){for(var i=r.length;i--&&N1.test(r.charAt(i)););return i}var R1=/^\s+/;function M1(r){return r&&r.slice(0,C1(r)+1).replace(R1,"")}var Xo=qp.Symbol,Zp=Object.prototype,z1=Zp.hasOwnProperty,D1=Zp.toString,vi=Xo?Xo.toStringTag:void 0;function A1(r){var i=z1.call(r,vi),n=r[vi];try{r[vi]=void 0;var o=!0}catch{}var s=D1.call(r);return o&&(i?r[vi]=n:delete r[vi]),s}var T1=Object.prototype,P1=T1.toString;function L1(r){return P1.call(r)}var j1="[object Null]",B1="[object Undefined]",Rd=Xo?Xo.toStringTag:void 0;function V1(r){return r==null?r===void 0?B1:j1:Rd&&Rd in Object(r)?A1(r):L1(r)}function F1(r){return r!=null&&typeof r=="object"}var H1="[object Symbol]";function W1(r){return typeof r=="symbol"||F1(r)&&V1(r)==H1}var Md=NaN,$1=/^[-+]0x[0-9a-f]+$/i,K1=/^0b[01]+$/i,U1=/^0o[0-7]+$/i,G1=parseInt;function zd(r){if(typeof r=="number")return r;if(W1(r))return Md;if(Yo(r)){var i=typeof r.valueOf=="function"?r.valueOf():r;r=Yo(i)?i+"":i}if(typeof r!="string")return r===0?r:+r;r=M1(r);var n=K1.test(r);return n||U1.test(r)?G1(r.slice(2),n?2:8):$1.test(r)?Md:+r}var q1="Expected a function",Z1=Math.max,Y1=Math.min;function Vo(r,i,n){var o,s,l,c,d,h,v=0,m=!1,w=!1,S=!0;if(typeof r!="function")throw new TypeError(q1);i=zd(i)||0,Yo(n)&&(m=!!n.leading,w="maxWait"in n,l=w?Z1(zd(n.maxWait)||0,i):l,S="trailing"in n?!!n.trailing:S);function D(V){var ae=o,j=s;return o=s=void 0,v=V,c=r.apply(j,ae),c}function B(V){return v=V,d=setTimeout(A,i),m?D(V):c}function z(V){var ae=V-h,j=V-v,$=i-ae;return w?Y1($,l-j):$}function k(V){var ae=V-h,j=V-v;return h===void 0||ae>=i||ae<0||w&&j>=l}function A(){var V=ks();if(k(V))return _(V);d=setTimeout(A,z(V))}function _(V){return d=void 0,S&&o?D(V):(o=s=void 0,c)}function E(){d!==void 0&&clearTimeout(d),v=0,o=h=s=d=void 0}function O(){return d===void 0?c:_(ks())}function N(){var V=ks(),ae=k(V);if(o=arguments,s=this,h=V,ae){if(d===void 0)return B(h);if(w)return clearTimeout(d),d=setTimeout(A,i),D(h)}return d===void 0&&(d=setTimeout(A,i)),c}return N.cancel=E,N.flush=O,N}var X1="Expected a function";function Q1(r,i,n){var o=!0,s=!0;if(typeof r!="function")throw new TypeError(X1);return Yo(n)&&(o="leading"in n?!!n.leading:o,s="trailing"in n?!!n.trailing:s),Vo(r,i,{leading:o,maxWait:i,trailing:s})}var Bn=function(){return Bn=Object.assign||function(r){for(var i,n=1,o=arguments.length;n<o;n++){i=arguments[n];for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(r[s]=i[s])}return r},Bn.apply(this,arguments)};function Yp(r){return!r||!r.ownerDocument||!r.ownerDocument.defaultView?window:r.ownerDocument.defaultView}function Xp(r){return!r||!r.ownerDocument?document:r.ownerDocument}var Qp=function(r){var i={},n=Array.prototype.reduce.call(r,function(o,s){var l=s.name.match(/data-simplebar-(.+)/);if(l){var c=l[1].replace(/\W+(.)/g,function(d,h){return h.toUpperCase()});switch(s.value){case"true":o[c]=!0;break;case"false":o[c]=!1;break;case void 0:o[c]=!0;break;default:o[c]=s.value}}return o},i);return n};function Jp(r,i){var n;r&&(n=r.classList).add.apply(n,i.split(" "))}function eh(r,i){r&&i.split(" ").forEach(function(n){r.classList.remove(n)})}function th(r){return".".concat(r.split(" ").join("."))}var Zs=!!(typeof window<"u"&&window.document&&window.document.createElement),J1=Object.freeze({__proto__:null,addClasses:Jp,canUseDOM:Zs,classNamesToQuery:th,getElementDocument:Xp,getElementWindow:Yp,getOptions:Qp,removeClasses:eh}),jn=null,Dd=null;Zs&&window.addEventListener("resize",function(){Dd!==window.devicePixelRatio&&(Dd=window.devicePixelRatio,jn=null)});function Ad(){if(jn===null){if(typeof document>"u")return jn=0,jn;var r=document.body,i=document.createElement("div");i.classList.add("simplebar-hide-scrollbar"),r.appendChild(i);var n=i.getBoundingClientRect().right;r.removeChild(i),jn=n}return jn}var Kr=Yp,Os=Xp,e_=Qp,Ur=Jp,Gr=eh,Ft=th,mi=(function(){function r(i,n){n===void 0&&(n={});var o=this;if(this.removePreventClickId=null,this.minScrollbarWidth=20,this.stopScrollDelay=175,this.isScrolling=!1,this.isMouseEntering=!1,this.isDragging=!1,this.scrollXTicking=!1,this.scrollYTicking=!1,this.wrapperEl=null,this.contentWrapperEl=null,this.contentEl=null,this.offsetEl=null,this.maskEl=null,this.placeholderEl=null,this.heightAutoObserverWrapperEl=null,this.heightAutoObserverEl=null,this.rtlHelpers=null,this.scrollbarWidth=0,this.resizeObserver=null,this.mutationObserver=null,this.elStyles=null,this.isRtl=null,this.mouseX=0,this.mouseY=0,this.onMouseMove=function(){},this.onWindowResize=function(){},this.onStopScrolling=function(){},this.onMouseEntered=function(){},this.onScroll=function(){var s=Kr(o.el);o.scrollXTicking||(s.requestAnimationFrame(o.scrollX),o.scrollXTicking=!0),o.scrollYTicking||(s.requestAnimationFrame(o.scrollY),o.scrollYTicking=!0),o.isScrolling||(o.isScrolling=!0,Ur(o.el,o.classNames.scrolling)),o.showScrollbar("x"),o.showScrollbar("y"),o.onStopScrolling()},this.scrollX=function(){o.axis.x.isOverflowing&&o.positionScrollbar("x"),o.scrollXTicking=!1},this.scrollY=function(){o.axis.y.isOverflowing&&o.positionScrollbar("y"),o.scrollYTicking=!1},this._onStopScrolling=function(){Gr(o.el,o.classNames.scrolling),o.options.autoHide&&(o.hideScrollbar("x"),o.hideScrollbar("y")),o.isScrolling=!1},this.onMouseEnter=function(){o.isMouseEntering||(Ur(o.el,o.classNames.mouseEntered),o.showScrollbar("x"),o.showScrollbar("y"),o.isMouseEntering=!0),o.onMouseEntered()},this._onMouseEntered=function(){Gr(o.el,o.classNames.mouseEntered),o.options.autoHide&&(o.hideScrollbar("x"),o.hideScrollbar("y")),o.isMouseEntering=!1},this._onMouseMove=function(s){o.mouseX=s.clientX,o.mouseY=s.clientY,(o.axis.x.isOverflowing||o.axis.x.forceVisible)&&o.onMouseMoveForAxis("x"),(o.axis.y.isOverflowing||o.axis.y.forceVisible)&&o.onMouseMoveForAxis("y")},this.onMouseLeave=function(){o.onMouseMove.cancel(),(o.axis.x.isOverflowing||o.axis.x.forceVisible)&&o.onMouseLeaveForAxis("x"),(o.axis.y.isOverflowing||o.axis.y.forceVisible)&&o.onMouseLeaveForAxis("y"),o.mouseX=-1,o.mouseY=-1},this._onWindowResize=function(){o.scrollbarWidth=o.getScrollbarWidth(),o.hideNativeScrollbar()},this.onPointerEvent=function(s){if(!(!o.axis.x.track.el||!o.axis.y.track.el||!o.axis.x.scrollbar.el||!o.axis.y.scrollbar.el)){var l,c;o.axis.x.track.rect=o.axis.x.track.el.getBoundingClientRect(),o.axis.y.track.rect=o.axis.y.track.el.getBoundingClientRect(),(o.axis.x.isOverflowing||o.axis.x.forceVisible)&&(l=o.isWithinBounds(o.axis.x.track.rect)),(o.axis.y.isOverflowing||o.axis.y.forceVisible)&&(c=o.isWithinBounds(o.axis.y.track.rect)),(l||c)&&(s.stopPropagation(),s.type==="pointerdown"&&s.pointerType!=="touch"&&(l&&(o.axis.x.scrollbar.rect=o.axis.x.scrollbar.el.getBoundingClientRect(),o.isWithinBounds(o.axis.x.scrollbar.rect)?o.onDragStart(s,"x"):o.onTrackClick(s,"x")),c&&(o.axis.y.scrollbar.rect=o.axis.y.scrollbar.el.getBoundingClientRect(),o.isWithinBounds(o.axis.y.scrollbar.rect)?o.onDragStart(s,"y"):o.onTrackClick(s,"y"))))}},this.drag=function(s){var l,c,d,h,v,m,w,S,D,B,z;if(!(!o.draggedAxis||!o.contentWrapperEl)){var k,A=o.axis[o.draggedAxis].track,_=(c=(l=A.rect)===null||l===void 0?void 0:l[o.axis[o.draggedAxis].sizeAttr])!==null&&c!==void 0?c:0,E=o.axis[o.draggedAxis].scrollbar,O=(h=(d=o.contentWrapperEl)===null||d===void 0?void 0:d[o.axis[o.draggedAxis].scrollSizeAttr])!==null&&h!==void 0?h:0,N=parseInt((m=(v=o.elStyles)===null||v===void 0?void 0:v[o.axis[o.draggedAxis].sizeAttr])!==null&&m!==void 0?m:"0px",10);s.preventDefault(),s.stopPropagation(),o.draggedAxis==="y"?k=s.pageY:k=s.pageX;var V=k-((S=(w=A.rect)===null||w===void 0?void 0:w[o.axis[o.draggedAxis].offsetAttr])!==null&&S!==void 0?S:0)-o.axis[o.draggedAxis].dragOffset;V=o.draggedAxis==="x"&&o.isRtl?((B=(D=A.rect)===null||D===void 0?void 0:D[o.axis[o.draggedAxis].sizeAttr])!==null&&B!==void 0?B:0)-E.size-V:V;var ae=V/(_-E.size),j=ae*(O-N);o.draggedAxis==="x"&&o.isRtl&&(j=!((z=r.getRtlHelpers())===null||z===void 0)&&z.isScrollingToNegative?-j:j),o.contentWrapperEl[o.axis[o.draggedAxis].scrollOffsetAttr]=j}},this.onEndDrag=function(s){o.isDragging=!1;var l=Os(o.el),c=Kr(o.el);s.preventDefault(),s.stopPropagation(),Gr(o.el,o.classNames.dragging),o.onStopScrolling(),l.removeEventListener("mousemove",o.drag,!0),l.removeEventListener("mouseup",o.onEndDrag,!0),o.removePreventClickId=c.setTimeout(function(){l.removeEventListener("click",o.preventClick,!0),l.removeEventListener("dblclick",o.preventClick,!0),o.removePreventClickId=null})},this.preventClick=function(s){s.preventDefault(),s.stopPropagation()},this.el=i,this.options=Bn(Bn({},r.defaultOptions),n),this.classNames=Bn(Bn({},r.defaultOptions.classNames),n.classNames),this.axis={x:{scrollOffsetAttr:"scrollLeft",sizeAttr:"width",scrollSizeAttr:"scrollWidth",offsetSizeAttr:"offsetWidth",offsetAttr:"left",overflowAttr:"overflowX",dragOffset:0,isOverflowing:!0,forceVisible:!1,track:{size:null,el:null,rect:null,isVisible:!1},scrollbar:{size:null,el:null,rect:null,isVisible:!1}},y:{scrollOffsetAttr:"scrollTop",sizeAttr:"height",scrollSizeAttr:"scrollHeight",offsetSizeAttr:"offsetHeight",offsetAttr:"top",overflowAttr:"overflowY",dragOffset:0,isOverflowing:!0,forceVisible:!1,track:{size:null,el:null,rect:null,isVisible:!1},scrollbar:{size:null,el:null,rect:null,isVisible:!1}}},typeof this.el!="object"||!this.el.nodeName)throw new Error("Argument passed to SimpleBar must be an HTML element instead of ".concat(this.el));this.onMouseMove=Q1(this._onMouseMove,64),this.onWindowResize=Vo(this._onWindowResize,64,{leading:!0}),this.onStopScrolling=Vo(this._onStopScrolling,this.stopScrollDelay),this.onMouseEntered=Vo(this._onMouseEntered,this.stopScrollDelay),this.init()}return r.getRtlHelpers=function(){if(r.rtlHelpers)return r.rtlHelpers;var i=document.createElement("div");i.innerHTML='<div class="simplebar-dummy-scrollbar-size"><div></div></div>';var n=i.firstElementChild,o=n==null?void 0:n.firstElementChild;if(!o)return null;document.body.appendChild(n),n.scrollLeft=0;var s=r.getOffset(n),l=r.getOffset(o);n.scrollLeft=-999;var c=r.getOffset(o);return document.body.removeChild(n),r.rtlHelpers={isScrollOriginAtZero:s.left!==l.left,isScrollingToNegative:l.left!==c.left},r.rtlHelpers},r.prototype.getScrollbarWidth=function(){try{return this.contentWrapperEl&&getComputedStyle(this.contentWrapperEl,"::-webkit-scrollbar").display==="none"||"scrollbarWidth"in document.documentElement.style||"-ms-overflow-style"in document.documentElement.style?0:Ad()}catch{return Ad()}},r.getOffset=function(i){var n=i.getBoundingClientRect(),o=Os(i),s=Kr(i);return{top:n.top+(s.pageYOffset||o.documentElement.scrollTop),left:n.left+(s.pageXOffset||o.documentElement.scrollLeft)}},r.prototype.init=function(){Zs&&(this.initDOM(),this.rtlHelpers=r.getRtlHelpers(),this.scrollbarWidth=this.getScrollbarWidth(),this.recalculate(),this.initListeners())},r.prototype.initDOM=function(){var i,n;this.wrapperEl=this.el.querySelector(Ft(this.classNames.wrapper)),this.contentWrapperEl=this.options.scrollableNode||this.el.querySelector(Ft(this.classNames.contentWrapper)),this.contentEl=this.options.contentNode||this.el.querySelector(Ft(this.classNames.contentEl)),this.offsetEl=this.el.querySelector(Ft(this.classNames.offset)),this.maskEl=this.el.querySelector(Ft(this.classNames.mask)),this.placeholderEl=this.findChild(this.wrapperEl,Ft(this.classNames.placeholder)),this.heightAutoObserverWrapperEl=this.el.querySelector(Ft(this.classNames.heightAutoObserverWrapperEl)),this.heightAutoObserverEl=this.el.querySelector(Ft(this.classNames.heightAutoObserverEl)),this.axis.x.track.el=this.findChild(this.el,"".concat(Ft(this.classNames.track)).concat(Ft(this.classNames.horizontal))),this.axis.y.track.el=this.findChild(this.el,"".concat(Ft(this.classNames.track)).concat(Ft(this.classNames.vertical))),this.axis.x.scrollbar.el=((i=this.axis.x.track.el)===null||i===void 0?void 0:i.querySelector(Ft(this.classNames.scrollbar)))||null,this.axis.y.scrollbar.el=((n=this.axis.y.track.el)===null||n===void 0?void 0:n.querySelector(Ft(this.classNames.scrollbar)))||null,this.options.autoHide||(Ur(this.axis.x.scrollbar.el,this.classNames.visible),Ur(this.axis.y.scrollbar.el,this.classNames.visible))},r.prototype.initListeners=function(){var i=this,n,o=Kr(this.el);if(this.el.addEventListener("mouseenter",this.onMouseEnter),this.el.addEventListener("pointerdown",this.onPointerEvent,!0),this.el.addEventListener("mousemove",this.onMouseMove),this.el.addEventListener("mouseleave",this.onMouseLeave),(n=this.contentWrapperEl)===null||n===void 0||n.addEventListener("scroll",this.onScroll),o.addEventListener("resize",this.onWindowResize),!!this.contentEl){if(window.ResizeObserver){var s=!1,l=o.ResizeObserver||ResizeObserver;this.resizeObserver=new l(function(){s&&o.requestAnimationFrame(function(){i.recalculate()})}),this.resizeObserver.observe(this.el),this.resizeObserver.observe(this.contentEl),o.requestAnimationFrame(function(){s=!0})}this.mutationObserver=new o.MutationObserver(function(){o.requestAnimationFrame(function(){i.recalculate()})}),this.mutationObserver.observe(this.contentEl,{childList:!0,subtree:!0,characterData:!0})}},r.prototype.recalculate=function(){if(!(!this.heightAutoObserverEl||!this.contentEl||!this.contentWrapperEl||!this.wrapperEl||!this.placeholderEl)){var i=Kr(this.el);this.elStyles=i.getComputedStyle(this.el),this.isRtl=this.elStyles.direction==="rtl";var n=this.contentEl.offsetWidth,o=this.heightAutoObserverEl.offsetHeight<=1,s=this.heightAutoObserverEl.offsetWidth<=1||n>0,l=this.contentWrapperEl.offsetWidth,c=this.elStyles.overflowX,d=this.elStyles.overflowY;this.contentEl.style.padding="".concat(this.elStyles.paddingTop," ").concat(this.elStyles.paddingRight," ").concat(this.elStyles.paddingBottom," ").concat(this.elStyles.paddingLeft),this.wrapperEl.style.margin="-".concat(this.elStyles.paddingTop," -").concat(this.elStyles.paddingRight," -").concat(this.elStyles.paddingBottom," -").concat(this.elStyles.paddingLeft);var h=this.contentEl.scrollHeight,v=this.contentEl.scrollWidth;this.contentWrapperEl.style.height=o?"auto":"100%",this.placeholderEl.style.width=s?"".concat(n||v,"px"):"auto",this.placeholderEl.style.height="".concat(h,"px");var m=this.contentWrapperEl.offsetHeight;this.axis.x.isOverflowing=n!==0&&v>n,this.axis.y.isOverflowing=h>m,this.axis.x.isOverflowing=c==="hidden"?!1:this.axis.x.isOverflowing,this.axis.y.isOverflowing=d==="hidden"?!1:this.axis.y.isOverflowing,this.axis.x.forceVisible=this.options.forceVisible==="x"||this.options.forceVisible===!0,this.axis.y.forceVisible=this.options.forceVisible==="y"||this.options.forceVisible===!0,this.hideNativeScrollbar();var w=this.axis.x.isOverflowing?this.scrollbarWidth:0,S=this.axis.y.isOverflowing?this.scrollbarWidth:0;this.axis.x.isOverflowing=this.axis.x.isOverflowing&&v>l-S,this.axis.y.isOverflowing=this.axis.y.isOverflowing&&h>m-w,this.axis.x.scrollbar.size=this.getScrollbarSize("x"),this.axis.y.scrollbar.size=this.getScrollbarSize("y"),this.axis.x.scrollbar.el&&(this.axis.x.scrollbar.el.style.width="".concat(this.axis.x.scrollbar.size,"px")),this.axis.y.scrollbar.el&&(this.axis.y.scrollbar.el.style.height="".concat(this.axis.y.scrollbar.size,"px")),this.positionScrollbar("x"),this.positionScrollbar("y"),this.toggleTrackVisibility("x"),this.toggleTrackVisibility("y")}},r.prototype.getScrollbarSize=function(i){var n,o;if(i===void 0&&(i="y"),!this.axis[i].isOverflowing||!this.contentEl)return 0;var s=this.contentEl[this.axis[i].scrollSizeAttr],l=(o=(n=this.axis[i].track.el)===null||n===void 0?void 0:n[this.axis[i].offsetSizeAttr])!==null&&o!==void 0?o:0,c=l/s,d;return d=Math.max(~~(c*l),this.options.scrollbarMinSize),this.options.scrollbarMaxSize&&(d=Math.min(d,this.options.scrollbarMaxSize)),d},r.prototype.positionScrollbar=function(i){var n,o,s;i===void 0&&(i="y");var l=this.axis[i].scrollbar;if(!(!this.axis[i].isOverflowing||!this.contentWrapperEl||!l.el||!this.elStyles)){var c=this.contentWrapperEl[this.axis[i].scrollSizeAttr],d=((n=this.axis[i].track.el)===null||n===void 0?void 0:n[this.axis[i].offsetSizeAttr])||0,h=parseInt(this.elStyles[this.axis[i].sizeAttr],10),v=this.contentWrapperEl[this.axis[i].scrollOffsetAttr];v=i==="x"&&this.isRtl&&!((o=r.getRtlHelpers())===null||o===void 0)&&o.isScrollOriginAtZero?-v:v,i==="x"&&this.isRtl&&(v=!((s=r.getRtlHelpers())===null||s===void 0)&&s.isScrollingToNegative?v:-v);var m=v/(c-h),w=~~((d-l.size)*m);w=i==="x"&&this.isRtl?-w+(d-l.size):w,l.el.style.transform=i==="x"?"translate3d(".concat(w,"px, 0, 0)"):"translate3d(0, ".concat(w,"px, 0)")}},r.prototype.toggleTrackVisibility=function(i){i===void 0&&(i="y");var n=this.axis[i].track.el,o=this.axis[i].scrollbar.el;!n||!o||!this.contentWrapperEl||(this.axis[i].isOverflowing||this.axis[i].forceVisible?(n.style.visibility="visible",this.contentWrapperEl.style[this.axis[i].overflowAttr]="scroll",this.el.classList.add("".concat(this.classNames.scrollable,"-").concat(i))):(n.style.visibility="hidden",this.contentWrapperEl.style[this.axis[i].overflowAttr]="hidden",this.el.classList.remove("".concat(this.classNames.scrollable,"-").concat(i))),this.axis[i].isOverflowing?o.style.display="block":o.style.display="none")},r.prototype.showScrollbar=function(i){i===void 0&&(i="y"),this.axis[i].isOverflowing&&!this.axis[i].scrollbar.isVisible&&(Ur(this.axis[i].scrollbar.el,this.classNames.visible),this.axis[i].scrollbar.isVisible=!0)},r.prototype.hideScrollbar=function(i){i===void 0&&(i="y"),!this.isDragging&&this.axis[i].isOverflowing&&this.axis[i].scrollbar.isVisible&&(Gr(this.axis[i].scrollbar.el,this.classNames.visible),this.axis[i].scrollbar.isVisible=!1)},r.prototype.hideNativeScrollbar=function(){this.offsetEl&&(this.offsetEl.style[this.isRtl?"left":"right"]=this.axis.y.isOverflowing||this.axis.y.forceVisible?"-".concat(this.scrollbarWidth,"px"):"0px",this.offsetEl.style.bottom=this.axis.x.isOverflowing||this.axis.x.forceVisible?"-".concat(this.scrollbarWidth,"px"):"0px")},r.prototype.onMouseMoveForAxis=function(i){i===void 0&&(i="y");var n=this.axis[i];!n.track.el||!n.scrollbar.el||(n.track.rect=n.track.el.getBoundingClientRect(),n.scrollbar.rect=n.scrollbar.el.getBoundingClientRect(),this.isWithinBounds(n.track.rect)?(this.showScrollbar(i),Ur(n.track.el,this.classNames.hover),this.isWithinBounds(n.scrollbar.rect)?Ur(n.scrollbar.el,this.classNames.hover):Gr(n.scrollbar.el,this.classNames.hover)):(Gr(n.track.el,this.classNames.hover),this.options.autoHide&&this.hideScrollbar(i)))},r.prototype.onMouseLeaveForAxis=function(i){i===void 0&&(i="y"),Gr(this.axis[i].track.el,this.classNames.hover),Gr(this.axis[i].scrollbar.el,this.classNames.hover),this.options.autoHide&&this.hideScrollbar(i)},r.prototype.onDragStart=function(i,n){var o;n===void 0&&(n="y"),this.isDragging=!0;var s=Os(this.el),l=Kr(this.el),c=this.axis[n].scrollbar,d=n==="y"?i.pageY:i.pageX;this.axis[n].dragOffset=d-(((o=c.rect)===null||o===void 0?void 0:o[this.axis[n].offsetAttr])||0),this.draggedAxis=n,Ur(this.el,this.classNames.dragging),s.addEventListener("mousemove",this.drag,!0),s.addEventListener("mouseup",this.onEndDrag,!0),this.removePreventClickId===null?(s.addEventListener("click",this.preventClick,!0),s.addEventListener("dblclick",this.preventClick,!0)):(l.clearTimeout(this.removePreventClickId),this.removePreventClickId=null)},r.prototype.onTrackClick=function(i,n){var o=this,s,l,c,d;n===void 0&&(n="y");var h=this.axis[n];if(!(!this.options.clickOnTrack||!h.scrollbar.el||!this.contentWrapperEl)){i.preventDefault();var v=Kr(this.el);this.axis[n].scrollbar.rect=h.scrollbar.el.getBoundingClientRect();var m=this.axis[n].scrollbar,w=(l=(s=m.rect)===null||s===void 0?void 0:s[this.axis[n].offsetAttr])!==null&&l!==void 0?l:0,S=parseInt((d=(c=this.elStyles)===null||c===void 0?void 0:c[this.axis[n].sizeAttr])!==null&&d!==void 0?d:"0px",10),D=this.contentWrapperEl[this.axis[n].scrollOffsetAttr],B=n==="y"?this.mouseY-w:this.mouseX-w,z=B<0?-1:1,k=z===-1?D-S:D+S,A=40,_=function(){o.contentWrapperEl&&(z===-1?D>k&&(D-=A,o.contentWrapperEl[o.axis[n].scrollOffsetAttr]=D,v.requestAnimationFrame(_)):D<k&&(D+=A,o.contentWrapperEl[o.axis[n].scrollOffsetAttr]=D,v.requestAnimationFrame(_)))};_()}},r.prototype.getContentElement=function(){return this.contentEl},r.prototype.getScrollElement=function(){return this.contentWrapperEl},r.prototype.removeListeners=function(){var i=Kr(this.el);this.el.removeEventListener("mouseenter",this.onMouseEnter),this.el.removeEventListener("pointerdown",this.onPointerEvent,!0),this.el.removeEventListener("mousemove",this.onMouseMove),this.el.removeEventListener("mouseleave",this.onMouseLeave),this.contentWrapperEl&&this.contentWrapperEl.removeEventListener("scroll",this.onScroll),i.removeEventListener("resize",this.onWindowResize),this.mutationObserver&&this.mutationObserver.disconnect(),this.resizeObserver&&this.resizeObserver.disconnect(),this.onMouseMove.cancel(),this.onWindowResize.cancel(),this.onStopScrolling.cancel(),this.onMouseEntered.cancel()},r.prototype.unMount=function(){this.removeListeners()},r.prototype.isWithinBounds=function(i){return this.mouseX>=i.left&&this.mouseX<=i.left+i.width&&this.mouseY>=i.top&&this.mouseY<=i.top+i.height},r.prototype.findChild=function(i,n){var o=i.matches||i.webkitMatchesSelector||i.mozMatchesSelector||i.msMatchesSelector;return Array.prototype.filter.call(i.children,function(s){return o.call(s,n)})[0]},r.rtlHelpers=null,r.defaultOptions={forceVisible:!1,clickOnTrack:!0,scrollbarMinSize:25,scrollbarMaxSize:0,ariaLabel:"scrollable content",tabIndex:0,classNames:{contentEl:"simplebar-content",contentWrapper:"simplebar-content-wrapper",offset:"simplebar-offset",mask:"simplebar-mask",wrapper:"simplebar-wrapper",placeholder:"simplebar-placeholder",scrollbar:"simplebar-scrollbar",track:"simplebar-track",heightAutoObserverWrapperEl:"simplebar-height-auto-observer-wrapper",heightAutoObserverEl:"simplebar-height-auto-observer",visible:"simplebar-visible",horizontal:"simplebar-horizontal",vertical:"simplebar-vertical",hover:"simplebar-hover",dragging:"simplebar-dragging",scrolling:"simplebar-scrolling",scrollable:"simplebar-scrollable",mouseEntered:"simplebar-mouse-entered"},scrollableNode:null,contentNode:null,autoHide:!0},r.getOptions=e_,r.helpers=J1,r})(),Yt=function(){return Yt=Object.assign||function(r){for(var i,n=1,o=arguments.length;n<o;n++){i=arguments[n];for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(r[s]=i[s])}return r},Yt.apply(this,arguments)};function t_(r,i){var n={};for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&i.indexOf(o)<0&&(n[o]=r[o]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,o=Object.getOwnPropertySymbols(r);s<o.length;s++)i.indexOf(o[s])<0&&Object.prototype.propertyIsEnumerable.call(r,o[s])&&(n[o[s]]=r[o[s]]);return n}var Ys=it.forwardRef(function(r,i){var n=r.children,o=r.scrollableNodeProps,s=o===void 0?{}:o,l=t_(r,["children","scrollableNodeProps"]),c=it.useRef(),d=it.useRef(),h=it.useRef(),v={},m={};Object.keys(l).forEach(function(D){Object.prototype.hasOwnProperty.call(mi.defaultOptions,D)?v[D]=l[D]:m[D]=l[D]});var w=Yt(Yt({},mi.defaultOptions.classNames),v.classNames),S=Yt(Yt({},s),{className:"".concat(w.contentWrapper).concat(s.className?" ".concat(s.className):""),tabIndex:v.tabIndex||mi.defaultOptions.tabIndex,role:"region","aria-label":v.ariaLabel||mi.defaultOptions.ariaLabel});return it.useEffect(function(){var D;return d.current=S.ref?S.ref.current:d.current,c.current&&(D=new mi(c.current,Yt(Yt(Yt({},v),d.current&&{scrollableNode:d.current}),h.current&&{contentNode:h.current})),typeof i=="function"?i(D):i&&(i.current=D)),function(){D==null||D.unMount(),D=null,typeof i=="function"&&i(null)}},[]),it.createElement("div",Yt({"data-simplebar":"init",ref:c},m),it.createElement("div",{className:w.wrapper},it.createElement("div",{className:w.heightAutoObserverWrapperEl},it.createElement("div",{className:w.heightAutoObserverEl})),it.createElement("div",{className:w.mask},it.createElement("div",{className:w.offset},typeof n=="function"?n({scrollableNodeRef:d,scrollableNodeProps:Yt(Yt({},S),{ref:d}),contentNodeRef:h,contentNodeProps:{className:w.contentEl,ref:h}}):it.createElement("div",Yt({},S),it.createElement("div",{className:w.contentEl},n)))),it.createElement("div",{className:w.placeholder})),it.createElement("div",{className:"".concat(w.track," ").concat(w.horizontal)},it.createElement("div",{className:w.scrollbar})),it.createElement("div",{className:"".concat(w.track," ").concat(w.vertical)},it.createElement("div",{className:w.scrollbar})))});Ys.displayName="SimpleBar";const rh=y.forwardRef(({size:r="md",color:i="primary",isInvalid:n=!1,isDisabled:o=!1,isReadOnly:s=!1,className:l,children:c,...d},h)=>{const[v,m]=y.useState(!1),[w,S]=y.useState(!1),D={size:r,color:n?"negative":i,isInvalid:n,isDisabled:o,isReadOnly:s,hasMessage:v,setHasMessage:m,hasArea:w,setHasArea:S};return b.jsx(Gp.Provider,{value:D,children:b.jsx("div",{ref:h,"data-qui":"Input",className:Q(x1(),l),...d,children:c})})}),nh=y.forwardRef(({className:r,children:i,...n},o)=>{const{size:s,color:l,isDisabled:c,isReadOnly:d,hasMessage:h,hasArea:v,isInvalid:m}=Ri();return b.jsx("div",{ref:o,"data-qui":"InputGroup",className:Q(y1({size:s,color:l,isDisabled:c,isReadOnly:d,hasMessage:h,hasArea:v,isInvalid:m}),r),...n,children:i})}),ih=y.forwardRef(({className:r,...i},n)=>{const{size:o,color:s,isInvalid:l,isDisabled:c,isReadOnly:d}=Ri(),{isDisabled:h,isReadOnly:v,...m}=i;return b.jsx("input",{ref:n,disabled:c||h,readOnly:v||d||!1,"aria-invalid":l,className:Q(_1({size:o,color:s}),r),...m})}),r_=y.forwardRef(({className:r,wrapperClassName:i,autoHeight:n,...o},s)=>{const{size:l,color:c,isInvalid:d,isDisabled:h,setHasArea:v}=Ri(),m=y.useRef(null),w=s||m,S=y.useRef(null);y.useEffect(()=>(v(!0),()=>{v(!1)}),[v]);const D=y.useCallback(()=>{if(m.current){const E=m.current;E.style.height="auto",E.style.height=`${E.scrollHeight}px`}},[]),B=E=>{var O;D(),(O=o.onInput)==null||O.call(o,E)};y.useEffect(()=>{D()},[D,o.value]),y.useEffect(()=>{n&&S.current&&S.current.style.removeProperty("height")},[n]);const z=E=>{E.preventDefault();const O=S.current;if(!O)return;const N=E.clientY,V=O.offsetHeight,ae=$=>{const oe=V+($.clientY-N);oe>30&&(O.style.height=oe+"px")},j=()=>{document.removeEventListener("mousemove",ae),document.removeEventListener("mouseup",j)};document.addEventListener("mousemove",ae),document.addEventListener("mouseup",j)},{isDisabled:k,isReadOnly:A,..._}=o;return b.jsxs("div",{ref:S,className:Q("w-full relative",!n&&!o.rows&&"h-[120px]",i),children:[n?b.jsx("textarea",{ref:w,rows:1,className:Q(Cd({size:l,color:c}),r),disabled:h||k,onInput:B,readOnly:A||!1,"aria-invalid":d,style:{overflow:"hidden"},..._}):b.jsx(Ys,{style:{height:"100%"},children:b.jsx("textarea",{ref:w,rows:1,className:Q(Cd({size:l,color:c}),r),disabled:h||k,onInput:B,readOnly:A||!1,"aria-invalid":d,style:{height:"auto",overflow:"hidden",width:"100%"},..._})}),!n&&b.jsx("div",{className:"absolute right-0 bottom-0 -translate-x-full -translate-y-full size-1.75 text-sm cursor-se-resize z-10",onMouseDown:z,children:b.jsx(ry,{})})]})}),oh=y.forwardRef(({isAction:r=!1,className:i,isDisabled:n=!1,style:o,children:s,...l},c)=>{const{size:d,color:h,isDisabled:v}=Ri(),m=n||v,w=I1({size:d,color:h,isDisabled:m,isAction:r});return b.jsx("div",{ref:c,"data-qui":"InputIcon",className:Q(w,i),style:o,role:r||l.onClick?"button":void 0,tabIndex:(r||l.onClick)&&!m?0:void 0,"aria-disabled":m,...l,children:s})}),n_=y.forwardRef(({icon:r,className:i,children:n,...o},s)=>{const{size:l,color:c,setHasMessage:d,isDisabled:h}=Ri();return y.useEffect(()=>(d(!0),()=>{d(!1)}),[d]),b.jsxs("div",{ref:s,"data-qui":"InputMessage",role:"alert",className:Q(S1({size:l,color:c,isDisabled:h}),i),...o,children:[r!==void 0&&b.jsx("div",{className:Q(E1({size:l}),i),children:r}),b.jsx("p",{children:n})]})});rh.displayName="InputRoot";nh.displayName="InputGroup";ih.displayName="InputField";r_.displayName="InputArea";oh.displayName="InputIcon";n_.displayName="InputMessage";const bi={Root:rh,Group:nh,Field:ih,Icon:oh},Ii={primary:{container:"bg-primary-light",text:"text-primary-dark",icon:"text-primary-dark",button:"hover:bg-primary-hover hover:text-body"},positive:{container:"bg-positive-light",text:"text-positive-dark",icon:"text-positive-dark",button:"hover:bg-positive hover:text-body"},negative:{container:"bg-negative-light",text:"text-negative-dark",icon:"text-negative-dark",button:"hover:bg-negative hover:text-body"},warning:{container:"bg-warning-light",text:"text-warning-dark",icon:"text-warning-dark",button:"hover:bg-warning hover:text-body"}},i_=({color:r})=>Q("min-h-6 absolute py-0.5 px-1 rounded whitespace-nowrap flex items-center gap-1",Ii[r].container,Ii[r].icon),o_=({color:r})=>Q("text-xs font-medium leading-3",Ii[r].text),a_=({color:r})=>Q("p-0.5 rounded cursor-pointer",Ii[r].button,Ii[r].icon),s_=({label:r,color:i="primary",position:n="up",showCloseButton:o=!1,icon:s,children:l,delay:c=0,trigger:d="hover",className:h,container:v,isHidden:m=!1})=>{const[w,S]=y.useState(!1),[D,B]=y.useState(!1),[z,k]=y.useState({position:n,transform:""}),A=y.useRef(null),_=y.useRef(null),E=y.useRef(null),O=w&&!m;y.useEffect(()=>{O||B(!1)},[O]);const N=y.useCallback(()=>{if(!A.current||!_.current)return;const q=A.current.getBoundingClientRect(),Z=_.current.getBoundingClientRect(),fe=window.innerWidth,he=window.innerHeight,Ee=window.scrollX,ie=window.scrollY,Se=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth,fe),M=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight,he),T=4;let K=n,re={position:K,transform:""};const P=le=>{const{top:de,left:F,width:se,height:H}=q,we=de+ie,te=F+Ee;switch(le){case"up":return{top:`${we-Z.height-T}px`,left:`${te+se/2}px`,transform:"translateX(-50%)"};case"up-start":return{top:`${we-Z.height-T}px`,left:`${te}px`,transform:"translateX(0)"};case"up-end":return{top:`${we-Z.height-T}px`,left:`${te+se-Z.width}px`,transform:"translateX(0)"};case"down":return{top:`${we+H+T}px`,left:`${te+se/2}px`,transform:"translateX(-50%)"};case"down-start":return{top:`${we+H+T}px`,left:`${te}px`,transform:"translateX(0)"};case"down-end":return{top:`${we+H+T}px`,left:`${te+se-Z.width}px`,transform:"translateX(0)"};case"left":return{top:`${we+H/2}px`,left:`${te-Z.width-T}px`,transform:"translateY(-50%)"};case"left-start":return{top:`${we}px`,left:`${te-Z.width-T}px`,transform:"translateY(0)"};case"left-end":return{top:`${we+H-Z.height}px`,left:`${te-Z.width-T}px`,transform:"translateY(0)"};case"right":return{top:`${we+H/2}px`,left:`${te+se+T}px`,transform:"translateY(-50%)"};case"right-start":return{top:`${we}px`,left:`${te+se+T}px`,transform:"translateY(0)"};case"right-end":return{top:`${we+H-Z.height}px`,left:`${te+se+T}px`,transform:"translateY(0)"};default:return{}}},J={up:{fits:q.top-Z.height-T>=0},"up-start":{fits:q.top-Z.height-T>=0&&q.left+Z.width<=fe},"up-end":{fits:q.top-Z.height-T>=0&&q.right-Z.width>=0},down:{fits:q.bottom+Z.height+T<=he&&q.bottom+Z.height+T<=M},"down-start":{fits:q.bottom+Z.height+T<=he&&q.bottom+Z.height+T<=M&&q.left+Z.width<=fe},"down-end":{fits:q.bottom+Z.height+T<=he&&q.bottom+Z.height+T<=M&&q.right-Z.width>=0},left:{fits:q.left-Z.width-T>=0},"left-start":{fits:q.left-Z.width-T>=0&&q.top+Z.height<=he},"left-end":{fits:q.left-Z.width-T>=0&&q.bottom-Z.height>=0},right:{fits:q.right+Z.width+T<=fe&&q.right+Z.width+T<=Se},"right-start":{fits:q.right+Z.width+T<=fe&&q.right+Z.width+T<=Se&&q.top+Z.height<=he},"right-end":{fits:q.right+Z.width+T<=fe&&q.right+Z.width+T<=Se&&q.bottom-Z.height>=0}},G=q.left+q.width/2-Z.width/2,U=q.left+q.width/2+Z.width/2;if((n==="up"||n==="down")&&(G<0||U>fe)&&(J[n].fits=!1),J[n].fits){const le=P(n);re={position:n,...le,transform:le.transform||""}}else{const le=["up","up-start","up-end","down","down-start","down-end","right","right-start","right-end","left","left-start","left-end"].find(de=>J[de].fits);if(le){K=le;const de=P(le);re={position:K,...de,transform:de.transform||""}}else{const de={up:q.top,"up-start":q.top,"up-end":q.top,down:Math.min(he-q.bottom,M-q.bottom),"down-start":Math.min(he-q.bottom,M-q.bottom),"down-end":Math.min(he-q.bottom,M-q.bottom),left:q.left,"left-start":q.left,"left-end":q.left,right:Math.min(fe-q.right,Se-q.right),"right-start":Math.min(fe-q.right,Se-q.right),"right-end":Math.min(fe-q.right,Se-q.right)},F=Object.entries(de).reduce((H,[we,te])=>te>H.space?{position:we,space:te}:H,{position:"up",space:0}).position;K=F;const se=P(F);re={position:K,...se,transform:se.transform||""}}}k(re)},[n]),V=()=>{d==="click"&&(S(!0),E.current&&clearTimeout(E.current),E.current=setTimeout(()=>{D||S(!1)},c))},ae=q=>{q.stopPropagation(),S(!1),E.current&&clearTimeout(E.current)},j=()=>{B(!0),E.current&&clearTimeout(E.current)},$=()=>{B(!1),w&&(E.current=setTimeout(()=>{S(!1)},c))},oe=()=>{d==="hover"&&(S(!0),E.current&&clearTimeout(E.current))},ue=()=>{d==="hover"&&(E.current=setTimeout(()=>{S(!1)},c))};y.useEffect(()=>{if(w){const q=requestAnimationFrame(()=>{N()});return()=>cancelAnimationFrame(q)}},[w,r,N]),y.useEffect(()=>{if(w){const q=setTimeout(()=>N(),0);return()=>clearTimeout(q)}},[w,N]),y.useEffect(()=>{const q=()=>{w&&N()},Z=()=>{w&&N()};return window.addEventListener("resize",q),window.addEventListener("scroll",Z,!0),()=>{window.removeEventListener("resize",q),window.removeEventListener("scroll",Z,!0),E.current&&clearTimeout(E.current)}},[w,N]);const pe=v||(typeof document<"u"?document.body:null);return pe?b.jsxs(b.Fragment,{children:[b.jsx("div",{"data-qui":"Tooltip",ref:A,onClick:V,onMouseEnter:oe,onMouseLeave:ue,className:Q("relative inline-flex items-center",h),children:l}),w&&!m&&!!r&&oa.createPortal(b.jsxs("div",{ref:_,role:"tooltip",className:i_({color:i}),style:{position:"absolute",left:z.left??0,top:z.top??0,transform:z.transform,zIndex:1e3,visibility:z.left?"visible":"hidden",pointerEvents:o?"auto":"none"},onMouseEnter:o?j:void 0,onMouseLeave:o?$:void 0,children:[s&&b.jsx("span",{"data-testid":"tooltip-icon",children:s}),b.jsx("div",{className:o_({color:i}),children:r}),o&&b.jsx("div",{onClick:ae,className:a_({color:i}),role:"button",children:b.jsx(Oi,{})})]}),pe)]}):null};var Td;(function(r){r.DragStart="dragStart",r.DragMove="dragMove",r.DragEnd="dragEnd",r.DragCancel="dragCancel",r.DragOver="dragOver",r.RegisterDroppable="registerDroppable",r.SetDroppableDisabled="setDroppableDisabled",r.UnregisterDroppable="unregisterDroppable"})(Td||(Td={}));const l_=Object.freeze({x:0,y:0});var Vn;(function(r){r[r.Forward=1]="Forward",r[r.Backward=-1]="Backward"})(Vn||(Vn={}));var Pd;(function(r){r.Click="click",r.DragStart="dragstart",r.Keydown="keydown",r.ContextMenu="contextmenu",r.Resize="resize",r.SelectionChange="selectionchange",r.VisibilityChange="visibilitychange"})(Pd||(Pd={}));var ar;(function(r){r.Space="Space",r.Down="ArrowDown",r.Right="ArrowRight",r.Left="ArrowLeft",r.Up="ArrowUp",r.Esc="Escape",r.Enter="Enter",r.Tab="Tab"})(ar||(ar={}));ar.Space,ar.Enter,ar.Esc,ar.Space,ar.Enter,ar.Tab;var Ld;(function(r){r[r.RightClick=2]="RightClick"})(Ld||(Ld={}));var jd;(function(r){r[r.Pointer=0]="Pointer",r[r.DraggableRect=1]="DraggableRect"})(jd||(jd={}));var Bd;(function(r){r[r.TreeOrder=0]="TreeOrder",r[r.ReversedTreeOrder=1]="ReversedTreeOrder"})(Bd||(Bd={}));Vn.Backward+"",Vn.Forward+"",Vn.Backward+"",Vn.Forward+"";var Fs;(function(r){r[r.Always=0]="Always",r[r.BeforeDragging=1]="BeforeDragging",r[r.WhileDragging=2]="WhileDragging"})(Fs||(Fs={}));var Hs;(function(r){r.Optimized="optimized"})(Hs||(Hs={}));Fs.WhileDragging,Hs.Optimized;({...l_});var Vd;(function(r){r[r.Uninitialized=0]="Uninitialized",r[r.Initializing=1]="Initializing",r[r.Initialized=2]="Initialized"})(Vd||(Vd={}));ar.Down,ar.Right,ar.Up,ar.Left;const ah={sm:{padding:"px-4 py-0.5",text:"text-xxs",icon:"w-3 h-3",gap:"gap-0.5",badge:"min-w-3.5 h-3.5 text-2"},md:{padding:"px-6 py-1",text:"text-s",icon:"w-4 h-4",gap:"gap-1",badge:"min-w-4.5 h-4.5 text-xxs"},lg:{padding:"px-8 py-1.5",text:"text-base",icon:"w-5 h-5",gap:"gap-1.5",badge:"min-w-5 h-5 text-xs"}},c_={primary:{active:{bg:"bg-primary",text:"text-button-text",border:"border-primary"},inactive:{bg:"bg-input-bg",text:"text-inactive-text",border:"border-transparent"},hover:{bg:"hover:bg-primary-hover",text:"hover:text-button-text"}},positive:{active:{bg:"bg-positive",text:"text-button-text",border:"border-positive"},inactive:{bg:"bg-input-bg",text:"text-inactive-text",border:"border-transparent"},hover:{bg:"hover:bg-positive-hover",text:"hover:text-body"}},warning:{active:{bg:"bg-warning",text:"text-warning-text",border:"border-warning"},inactive:{bg:"bg-input-bg",text:"text-inactive-text",border:"border-transparent"},hover:{bg:"hover:bg-warning-hover",text:"hover:text-body"}},negative:{active:{bg:"bg-negative",text:"text-button-text",border:"border-negative"},inactive:{bg:"bg-input-bg",text:"text-inactive-text",border:"border-transparent"},hover:{bg:"hover:bg-negative-hover",text:"hover:text-body"}}},u_=(r,i,n,o)=>{const s=c_[r],l=ah[i],c="relative inline-flex items-center font-medium cursor-pointer transition-all duration-200";return o?Q(c,l.padding,l.text,l.gap,"pointer-events-none cursor-not-allowed opacity-50","bg-card","text-inactive-text"):n?Q(c,l.padding,l.text,l.gap,s.active.bg,s.active.text,"shadow-xs"):Q(c,l.padding,l.text,l.gap,s.inactive.bg,s.inactive.text,s.hover.bg,s.hover.text)},d_=(r,i)=>Q("flex items-center justify-center",ah[r].icon,{"opacity-50":i}),p_=()=>Q("whitespace-nowrap"),sh=(r,i)=>{const n=Q("group flex items-center justify-between space-x-4","rounded-t px-2 text-xs","focus:outline-hidden");return r&&!i?Q(n,"z-2 border border-b-0 border-tab-border","bg-tab-active-bg font-semibold text-tab-active-fg"):i&&!r?Q(n,"border border-transparent bg-tab-inactive-bg text-inactive-text"):Q(n,"border border-transparent bg-tab-inactive-bg text-tab-inactive-fg","hover:text-tab-active-fg")},h_=y.createContext(void 0),f_=y.forwardRef(({value:r,label:i,icon:n,disabled:o,children:s,className:l,onClick:c,active:d,content:h,...v},m)=>{const w=y.useContext(h_);if(!w)return null;const{activeTab:S,onTabChange:D,variant:B,color:z,size:k,showIcons:A,disabled:_}=w,E=d!==void 0?d:S===r,O=o||_,N=V=>{O||(D(r),c==null||c(V))};return B==="file"?b.jsx("div",{"data-qui":"FileTabItem",className:Q(sh(E,!1),"cursor-pointer",l),onClick:V=>!O&&N(V),children:s||b.jsx(b.Fragment,{children:b.jsxs("span",{className:"flex items-center gap-2",children:[n,b.jsx("span",{children:i})]})})}):b.jsxs("button",{ref:m,"data-qui":"TabItem",type:"button",role:"tab","aria-selected":E,"aria-disabled":O,className:Q(u_(z,k,E,O||!1),l),onClick:N,disabled:O,...v,children:[A&&n&&b.jsx("span",{className:d_(k,O||!1),children:n}),b.jsx("span",{className:p_(),children:s||i})]})});f_.displayName="TabItem";const g_=y.forwardRef(({isActive:r=!1,isDesactive:i=!1,children:n,...o},s)=>b.jsx("div",{"data-qui":"TabNavContainer",className:sh(r,i),ref:s,...o,children:n}));g_.displayName="TabNavContainer";var pt=function(){return pt=Object.assign||function(r){for(var i,n=1,o=arguments.length;n<o;n++){i=arguments[n];for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(r[s]=i[s])}return r},pt.apply(this,arguments)},Fd={width:"100%",height:"10px",top:"0px",left:"0px",cursor:"row-resize"},Hd={width:"10px",height:"100%",top:"0px",left:"0px",cursor:"col-resize"},Ro={width:"20px",height:"20px",position:"absolute",zIndex:1},v_={top:pt(pt({},Fd),{top:"-5px"}),right:pt(pt({},Hd),{left:void 0,right:"-5px"}),bottom:pt(pt({},Fd),{top:void 0,bottom:"-5px"}),left:pt(pt({},Hd),{left:"-5px"}),topRight:pt(pt({},Ro),{right:"-10px",top:"-10px",cursor:"ne-resize"}),bottomRight:pt(pt({},Ro),{right:"-10px",bottom:"-10px",cursor:"se-resize"}),bottomLeft:pt(pt({},Ro),{left:"-10px",bottom:"-10px",cursor:"sw-resize"}),topLeft:pt(pt({},Ro),{left:"-10px",top:"-10px",cursor:"nw-resize"})},m_=y.memo(function(r){var i=r.onResizeStart,n=r.direction,o=r.children,s=r.replaceStyles,l=r.className,c=y.useCallback(function(v){i(v,n)},[i,n]),d=y.useCallback(function(v){i(v,n)},[i,n]),h=y.useMemo(function(){return pt(pt({position:"absolute",userSelect:"none"},v_[n]),s??{})},[s,n]);return b.jsx("div",{className:l||void 0,style:h,onMouseDown:c,onTouchStart:d,children:o})}),b_=(function(){var r=function(i,n){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,s){o.__proto__=s}||function(o,s){for(var l in s)Object.prototype.hasOwnProperty.call(s,l)&&(o[l]=s[l])},r(i,n)};return function(i,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");r(i,n);function o(){this.constructor=i}i.prototype=n===null?Object.create(n):(o.prototype=n.prototype,new o)}})(),yr=function(){return yr=Object.assign||function(r){for(var i,n=1,o=arguments.length;n<o;n++){i=arguments[n];for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(r[s]=i[s])}return r},yr.apply(this,arguments)},w_={width:"auto",height:"auto"},Mo=function(r,i,n){return Math.max(Math.min(r,n),i)},Wd=function(r,i,n){var o=Math.round(r/i);return o*i+n*(o-1)},An=function(r,i){return new RegExp(r,"i").test(i)},zo=function(r){return!!(r.touches&&r.touches.length)},x_=function(r){return!!((r.clientX||r.clientX===0)&&(r.clientY||r.clientY===0))},$d=function(r,i,n){n===void 0&&(n=0);var o=i.reduce(function(l,c,d){return Math.abs(c-r)<Math.abs(i[l]-r)?d:l},0),s=Math.abs(i[o]-r);return n===0||s<n?i[o]:r},Ns=function(r){return r=r.toString(),r==="auto"||r.endsWith("px")||r.endsWith("%")||r.endsWith("vh")||r.endsWith("vw")||r.endsWith("vmax")||r.endsWith("vmin")?r:"".concat(r,"px")},Do=function(r,i,n,o){if(r&&typeof r=="string"){if(r.endsWith("px"))return Number(r.replace("px",""));if(r.endsWith("%")){var s=Number(r.replace("%",""))/100;return i*s}if(r.endsWith("vw")){var s=Number(r.replace("vw",""))/100;return n*s}if(r.endsWith("vh")){var s=Number(r.replace("vh",""))/100;return o*s}}return r},y_=function(r,i,n,o,s,l,c){return o=Do(o,r.width,i,n),s=Do(s,r.height,i,n),l=Do(l,r.width,i,n),c=Do(c,r.height,i,n),{maxWidth:typeof o>"u"?void 0:Number(o),maxHeight:typeof s>"u"?void 0:Number(s),minWidth:typeof l>"u"?void 0:Number(l),minHeight:typeof c>"u"?void 0:Number(c)}},__=function(r){return Array.isArray(r)?r:[r,r]},I_=["as","ref","style","className","grid","gridGap","snap","bounds","boundsByDirection","size","defaultSize","minWidth","minHeight","maxWidth","maxHeight","lockAspectRatio","lockAspectRatioExtraWidth","lockAspectRatioExtraHeight","enable","handleStyles","handleClasses","handleWrapperStyle","handleWrapperClass","children","onResizeStart","onResize","onResizeStop","handleComponent","scale","resizeRatio","snapGap"],Kd="__resizable_base__",S_=(function(r){b_(i,r);function i(n){var o,s,l,c,d=r.call(this,n)||this;return d.ratio=1,d.resizable=null,d.parentLeft=0,d.parentTop=0,d.resizableLeft=0,d.resizableRight=0,d.resizableTop=0,d.resizableBottom=0,d.targetLeft=0,d.targetTop=0,d.delta={width:0,height:0},d.appendBase=function(){if(!d.resizable||!d.window)return null;var h=d.parentNode;if(!h)return null;var v=d.window.document.createElement("div");return v.style.width="100%",v.style.height="100%",v.style.position="absolute",v.style.transform="scale(0, 0)",v.style.left="0",v.style.flex="0 0 100%",v.classList?v.classList.add(Kd):v.className+=Kd,h.appendChild(v),v},d.removeBase=function(h){var v=d.parentNode;v&&v.removeChild(h)},d.state={isResizing:!1,width:(s=(o=d.propsSize)===null||o===void 0?void 0:o.width)!==null&&s!==void 0?s:"auto",height:(c=(l=d.propsSize)===null||l===void 0?void 0:l.height)!==null&&c!==void 0?c:"auto",direction:"right",original:{x:0,y:0,width:0,height:0},backgroundStyle:{height:"100%",width:"100%",backgroundColor:"rgba(0,0,0,0)",cursor:"auto",opacity:0,position:"fixed",zIndex:9999,top:"0",left:"0",bottom:"0",right:"0"},flexBasis:void 0},d.onResizeStart=d.onResizeStart.bind(d),d.onMouseMove=d.onMouseMove.bind(d),d.onMouseUp=d.onMouseUp.bind(d),d}return Object.defineProperty(i.prototype,"parentNode",{get:function(){return this.resizable?this.resizable.parentNode:null},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"window",{get:function(){return!this.resizable||!this.resizable.ownerDocument?null:this.resizable.ownerDocument.defaultView},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"propsSize",{get:function(){return this.props.size||this.props.defaultSize||w_},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"size",{get:function(){var n=0,o=0;if(this.resizable&&this.window){var s=this.resizable.offsetWidth,l=this.resizable.offsetHeight,c=this.resizable.style.position;c!=="relative"&&(this.resizable.style.position="relative"),n=this.resizable.style.width!=="auto"?this.resizable.offsetWidth:s,o=this.resizable.style.height!=="auto"?this.resizable.offsetHeight:l,this.resizable.style.position=c}return{width:n,height:o}},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"sizeStyle",{get:function(){var n=this,o=this.props.size,s=function(d){var h;if(typeof n.state[d]>"u"||n.state[d]==="auto")return"auto";if(n.propsSize&&n.propsSize[d]&&!((h=n.propsSize[d])===null||h===void 0)&&h.toString().endsWith("%")){if(n.state[d].toString().endsWith("%"))return n.state[d].toString();var v=n.getParentSize(),m=Number(n.state[d].toString().replace("px","")),w=m/v[d]*100;return"".concat(w,"%")}return Ns(n.state[d])},l=o&&typeof o.width<"u"&&!this.state.isResizing?Ns(o.width):s("width"),c=o&&typeof o.height<"u"&&!this.state.isResizing?Ns(o.height):s("height");return{width:l,height:c}},enumerable:!1,configurable:!0}),i.prototype.getParentSize=function(){if(!this.parentNode)return this.window?{width:this.window.innerWidth,height:this.window.innerHeight}:{width:0,height:0};var n=this.appendBase();if(!n)return{width:0,height:0};var o=!1,s=this.parentNode.style.flexWrap;s!=="wrap"&&(o=!0,this.parentNode.style.flexWrap="wrap"),n.style.position="relative",n.style.minWidth="100%",n.style.minHeight="100%";var l={width:n.offsetWidth,height:n.offsetHeight};return o&&(this.parentNode.style.flexWrap=s),this.removeBase(n),l},i.prototype.bindEvents=function(){this.window&&(this.window.addEventListener("mouseup",this.onMouseUp),this.window.addEventListener("mousemove",this.onMouseMove),this.window.addEventListener("mouseleave",this.onMouseUp),this.window.addEventListener("touchmove",this.onMouseMove,{capture:!0,passive:!1}),this.window.addEventListener("touchend",this.onMouseUp))},i.prototype.unbindEvents=function(){this.window&&(this.window.removeEventListener("mouseup",this.onMouseUp),this.window.removeEventListener("mousemove",this.onMouseMove),this.window.removeEventListener("mouseleave",this.onMouseUp),this.window.removeEventListener("touchmove",this.onMouseMove,!0),this.window.removeEventListener("touchend",this.onMouseUp))},i.prototype.componentDidMount=function(){if(!(!this.resizable||!this.window)){var n=this.window.getComputedStyle(this.resizable);this.setState({width:this.state.width||this.size.width,height:this.state.height||this.size.height,flexBasis:n.flexBasis!=="auto"?n.flexBasis:void 0})}},i.prototype.componentWillUnmount=function(){this.window&&this.unbindEvents()},i.prototype.createSizeForCssProperty=function(n,o){var s=this.propsSize&&this.propsSize[o];return this.state[o]==="auto"&&this.state.original[o]===n&&(typeof s>"u"||s==="auto")?"auto":n},i.prototype.calculateNewMaxFromBoundary=function(n,o){var s=this.props.boundsByDirection,l=this.state.direction,c=s&&An("left",l),d=s&&An("top",l),h,v;if(this.props.bounds==="parent"){var m=this.parentNode;m&&(h=c?this.resizableRight-this.parentLeft:m.offsetWidth+(this.parentLeft-this.resizableLeft),v=d?this.resizableBottom-this.parentTop:m.offsetHeight+(this.parentTop-this.resizableTop))}else this.props.bounds==="window"?this.window&&(h=c?this.resizableRight:this.window.innerWidth-this.resizableLeft,v=d?this.resizableBottom:this.window.innerHeight-this.resizableTop):this.props.bounds&&(h=c?this.resizableRight-this.targetLeft:this.props.bounds.offsetWidth+(this.targetLeft-this.resizableLeft),v=d?this.resizableBottom-this.targetTop:this.props.bounds.offsetHeight+(this.targetTop-this.resizableTop));return h&&Number.isFinite(h)&&(n=n&&n<h?n:h),v&&Number.isFinite(v)&&(o=o&&o<v?o:v),{maxWidth:n,maxHeight:o}},i.prototype.calculateNewSizeFromDirection=function(n,o){var s=this.props.scale||1,l=__(this.props.resizeRatio||1),c=l[0],d=l[1],h=this.state,v=h.direction,m=h.original,w=this.props,S=w.lockAspectRatio,D=w.lockAspectRatioExtraHeight,B=w.lockAspectRatioExtraWidth,z=m.width,k=m.height,A=D||0,_=B||0;return An("right",v)&&(z=m.width+(n-m.x)*c/s,S&&(k=(z-_)/this.ratio+A)),An("left",v)&&(z=m.width-(n-m.x)*c/s,S&&(k=(z-_)/this.ratio+A)),An("bottom",v)&&(k=m.height+(o-m.y)*d/s,S&&(z=(k-A)*this.ratio+_)),An("top",v)&&(k=m.height-(o-m.y)*d/s,S&&(z=(k-A)*this.ratio+_)),{newWidth:z,newHeight:k}},i.prototype.calculateNewSizeFromAspectRatio=function(n,o,s,l){var c=this.props,d=c.lockAspectRatio,h=c.lockAspectRatioExtraHeight,v=c.lockAspectRatioExtraWidth,m=typeof l.width>"u"?10:l.width,w=typeof s.width>"u"||s.width<0?n:s.width,S=typeof l.height>"u"?10:l.height,D=typeof s.height>"u"||s.height<0?o:s.height,B=h||0,z=v||0;if(d){var k=(S-B)*this.ratio+z,A=(D-B)*this.ratio+z,_=(m-z)/this.ratio+B,E=(w-z)/this.ratio+B,O=Math.max(m,k),N=Math.min(w,A),V=Math.max(S,_),ae=Math.min(D,E);n=Mo(n,O,N),o=Mo(o,V,ae)}else n=Mo(n,m,w),o=Mo(o,S,D);return{newWidth:n,newHeight:o}},i.prototype.setBoundingClientRect=function(){var n=1/(this.props.scale||1);if(this.props.bounds==="parent"){var o=this.parentNode;if(o){var s=o.getBoundingClientRect();this.parentLeft=s.left*n,this.parentTop=s.top*n}}if(this.props.bounds&&typeof this.props.bounds!="string"){var l=this.props.bounds.getBoundingClientRect();this.targetLeft=l.left*n,this.targetTop=l.top*n}if(this.resizable){var c=this.resizable.getBoundingClientRect(),d=c.left,h=c.top,v=c.right,m=c.bottom;this.resizableLeft=d*n,this.resizableRight=v*n,this.resizableTop=h*n,this.resizableBottom=m*n}},i.prototype.onResizeStart=function(n,o){if(!(!this.resizable||!this.window)){var s=0,l=0;if(n.nativeEvent&&x_(n.nativeEvent)?(s=n.nativeEvent.clientX,l=n.nativeEvent.clientY):n.nativeEvent&&zo(n.nativeEvent)&&(s=n.nativeEvent.touches[0].clientX,l=n.nativeEvent.touches[0].clientY),this.props.onResizeStart&&this.resizable){var c=this.props.onResizeStart(n,o,this.resizable);if(c===!1)return}this.props.size&&(typeof this.props.size.height<"u"&&this.props.size.height!==this.state.height&&this.setState({height:this.props.size.height}),typeof this.props.size.width<"u"&&this.props.size.width!==this.state.width&&this.setState({width:this.props.size.width})),this.ratio=typeof this.props.lockAspectRatio=="number"?this.props.lockAspectRatio:this.size.width/this.size.height;var d,h=this.window.getComputedStyle(this.resizable);if(h.flexBasis!=="auto"){var v=this.parentNode;if(v){var m=this.window.getComputedStyle(v).flexDirection;this.flexDir=m.startsWith("row")?"row":"column",d=h.flexBasis}}this.setBoundingClientRect(),this.bindEvents();var w={original:{x:s,y:l,width:this.size.width,height:this.size.height},isResizing:!0,backgroundStyle:yr(yr({},this.state.backgroundStyle),{cursor:this.window.getComputedStyle(n.target).cursor||"auto"}),direction:o,flexBasis:d};this.setState(w)}},i.prototype.onMouseMove=function(n){var o=this;if(!(!this.state.isResizing||!this.resizable||!this.window)){if(this.window.TouchEvent&&zo(n))try{n.preventDefault(),n.stopPropagation()}catch{}var s=this.props,l=s.maxWidth,c=s.maxHeight,d=s.minWidth,h=s.minHeight,v=zo(n)?n.touches[0].clientX:n.clientX,m=zo(n)?n.touches[0].clientY:n.clientY,w=this.state,S=w.direction,D=w.original,B=w.width,z=w.height,k=this.getParentSize(),A=y_(k,this.window.innerWidth,this.window.innerHeight,l,c,d,h);l=A.maxWidth,c=A.maxHeight,d=A.minWidth,h=A.minHeight;var _=this.calculateNewSizeFromDirection(v,m),E=_.newHeight,O=_.newWidth,N=this.calculateNewMaxFromBoundary(l,c);this.props.snap&&this.props.snap.x&&(O=$d(O,this.props.snap.x,this.props.snapGap)),this.props.snap&&this.props.snap.y&&(E=$d(E,this.props.snap.y,this.props.snapGap));var V=this.calculateNewSizeFromAspectRatio(O,E,{width:N.maxWidth,height:N.maxHeight},{width:d,height:h});if(O=V.newWidth,E=V.newHeight,this.props.grid){var ae=Wd(O,this.props.grid[0],this.props.gridGap?this.props.gridGap[0]:0),j=Wd(E,this.props.grid[1],this.props.gridGap?this.props.gridGap[1]:0),$=this.props.snapGap||0,oe=$===0||Math.abs(ae-O)<=$?ae:O,ue=$===0||Math.abs(j-E)<=$?j:E;O=oe,E=ue}var pe={width:O-D.width,height:E-D.height};if(this.delta=pe,B&&typeof B=="string"){if(B.endsWith("%")){var q=O/k.width*100;O="".concat(q,"%")}else if(B.endsWith("vw")){var Z=O/this.window.innerWidth*100;O="".concat(Z,"vw")}else if(B.endsWith("vh")){var fe=O/this.window.innerHeight*100;O="".concat(fe,"vh")}}if(z&&typeof z=="string"){if(z.endsWith("%")){var q=E/k.height*100;E="".concat(q,"%")}else if(z.endsWith("vw")){var Z=E/this.window.innerWidth*100;E="".concat(Z,"vw")}else if(z.endsWith("vh")){var fe=E/this.window.innerHeight*100;E="".concat(fe,"vh")}}var he={width:this.createSizeForCssProperty(O,"width"),height:this.createSizeForCssProperty(E,"height")};this.flexDir==="row"?he.flexBasis=he.width:this.flexDir==="column"&&(he.flexBasis=he.height);var Ee=this.state.width!==he.width,ie=this.state.height!==he.height,Se=this.state.flexBasis!==he.flexBasis,M=Ee||ie||Se;M&&oa.flushSync(function(){o.setState(he)}),this.props.onResize&&M&&this.props.onResize(n,S,this.resizable,pe)}},i.prototype.onMouseUp=function(n){var o,s,l=this.state,c=l.isResizing,d=l.direction;l.original,!(!c||!this.resizable)&&(this.props.onResizeStop&&this.props.onResizeStop(n,d,this.resizable,this.delta),this.props.size&&this.setState({width:(o=this.props.size.width)!==null&&o!==void 0?o:"auto",height:(s=this.props.size.height)!==null&&s!==void 0?s:"auto"}),this.unbindEvents(),this.setState({isResizing:!1,backgroundStyle:yr(yr({},this.state.backgroundStyle),{cursor:"auto"})}))},i.prototype.updateSize=function(n){var o,s;this.setState({width:(o=n.width)!==null&&o!==void 0?o:"auto",height:(s=n.height)!==null&&s!==void 0?s:"auto"})},i.prototype.renderResizer=function(){var n=this,o=this.props,s=o.enable,l=o.handleStyles,c=o.handleClasses,d=o.handleWrapperStyle,h=o.handleWrapperClass,v=o.handleComponent;if(!s)return null;var m=Object.keys(s).map(function(w){return s[w]!==!1?b.jsx(m_,{direction:w,onResizeStart:n.onResizeStart,replaceStyles:l&&l[w],className:c&&c[w],children:v&&v[w]?v[w]:null},w):null});return b.jsx("div",{className:h,style:d,children:m})},i.prototype.render=function(){var n=this,o=Object.keys(this.props).reduce(function(c,d){return I_.indexOf(d)!==-1||(c[d]=n.props[d]),c},{}),s=yr(yr(yr({position:"relative",userSelect:this.state.isResizing?"none":"auto"},this.props.style),this.sizeStyle),{maxWidth:this.props.maxWidth,maxHeight:this.props.maxHeight,minWidth:this.props.minWidth,minHeight:this.props.minHeight,boxSizing:"border-box",flexShrink:0});this.state.flexBasis&&(s.flexBasis=this.state.flexBasis);var l=this.props.as||"div";return b.jsxs(l,yr({style:s,className:this.props.className},o,{ref:function(c){c&&(n.resizable=c)},children:[this.state.isResizing&&b.jsx("div",{style:this.state.backgroundStyle}),this.props.children,this.renderResizer()]}))},i.defaultProps={as:"div",onResizeStart:function(){},onResize:function(){},onResizeStop:function(){},enable:{top:!0,right:!0,bottom:!0,left:!0,topRight:!0,bottomRight:!0,bottomLeft:!0,topLeft:!0},style:{},grid:[1,1],gridGap:[0,0],lockAspectRatio:!1,lockAspectRatioExtraWidth:0,lockAspectRatioExtraHeight:0,scale:1,resizeRatio:1,snapGap:0},i})(y.PureComponent);const E_={0:"bg-panel-0",1:"bg-panel-1",2:"bg-panel-2",3:"bg-panel-3",4:"bg-panel-4",5:"bg-panel-5"},k_={tabs:"border-tab-border",primary:"border-primary",negative:"border-input-error-border",positive:"border-positive",light:"border-panel-border-subtle",default:"border-panel-border"},lh=({depth:r=0,className:i,borderType:n,disabled:o})=>Q("transition-colors duration-200",{"text-body":!o,"text-inactive-text":o},n?k_[n]:"border-panel-border",E_[r],i),O_=r=>{if(!r)return{};const i={},n=r.match(/min-w-\[(\d+)px\]/);n&&(i.minWidth=parseInt(n[1],10));const o=r.match(/max-w-\[(\d+)px\]/);o&&(i.maxWidth=parseInt(o[1],10));const s=r.match(/min-h-\[(\d+)px\]/);s&&(i.minHeight=parseInt(s[1],10));const l=r.match(/max-h-\[(\d+)px\]/);return l&&(i.maxHeight=parseInt(l[1],10)),i},N_=y.forwardRef(({children:r,width:i,height:n,minWidth:o=10,minHeight:s=10,maxWidth:l,maxHeight:c,defaultWidth:d,defaultHeight:h,defaultSize:v,size:m,grid:w,snap:S,lockAspectRatio:D=!1,enable:B,handleStyles:z={},handleClasses:k={},handleComponent:A={},style:_={},className:E,onResizeStart:O,onResize:N,onResizeStop:V,scale:ae=1,bounds:j,snapGap:$,as:oe="div",depth:ue,disabled:pe},q)=>{const Z=lh({depth:ue,className:E,disabled:pe}),fe=O_(E),he=m?{size:m}:i!==void 0||n!==void 0?{size:{width:i??"auto",height:n??"auto"}}:{},Ee=v?{defaultSize:v}:d!==void 0||h!==void 0?{defaultSize:{width:d??"auto",height:h??"auto"}}:{},ie=y.useRef(null);return y.useImperativeHandle(q,()=>{var Se;return(Se=ie.current)==null?void 0:Se.resizable}),b.jsx(S_,{"data-qui":"Resizable",ref:ie,...he,...Ee,minWidth:o??fe.minWidth,minHeight:s??fe.minHeight,maxWidth:l??fe.maxWidth,maxHeight:c??fe.maxHeight,grid:w,snap:S,lockAspectRatio:D,enable:B,handleStyles:z,handleClasses:k,handleComponent:A,style:_,className:Q("relative box-border",Z),onResizeStart:O,onResize:N,onResizeStop:V,scale:ae,bounds:j,snapGap:$,as:oe,children:r})});N_.displayName="Resizable";const Tn={sm:{track:"h-4 w-7",thumb:"size-3",thumbUnchecked:"left-0.5",thumbChecked:"left-3.5",label:"text-xs",gap:"gap-2"},md:{track:"h-5 w-9",thumb:"size-4",thumbUnchecked:"left-0.5",thumbChecked:"left-4.5",label:"text-sm",gap:"gap-2.5"},lg:{track:"h-6 w-11",thumb:"size-5",thumbUnchecked:"left-0.5",thumbChecked:"left-5.5",label:"text-base",gap:"gap-3"}},Ao={primary:{bg:"bg-primary",thumb:"group-hover:bg-primary-light",icon:"text-primary"},positive:{bg:"bg-positive",thumb:"group-hover:bg-positive-light",icon:"text-positive"},warning:{bg:"bg-warning",thumb:"group-hover:bg-warning-light",icon:"text-warning"},negative:{bg:"bg-negative",thumb:"group-hover:bg-negative-light",icon:"text-negative"}},C_=(r,i,n,o,s,l)=>({container:Q("inline-flex items-center",Tn[r].gap,l),track:Q("relative inline-flex items-center shrink-0 group","transition-colors duration-200 ease-in-out","focus:outline-hidden focus-visible:ring-2 focus-visible:ring-primary focus-visible:ring-offset-2","border border-input-border rounded-full justify-between px-0.5",Tn[r].track,{[Ao[i].bg]:n&&!o&&!s,"bg-input-bg":!n&&!o||s,"bg-panel cursor-not-allowed":o,"cursor-pointer":!o}),thumb:Q("bg-input-text pointer-events-none inline-flex items-center justify-center shadow-xs","transition-all duration-200 ease-in-out","rounded-full absolute",Tn[r].thumb,n?Tn[r].thumbChecked:Tn[r].thumbUnchecked,{[Ao[i].thumb]:!o,"bg-canvas-subtle":o}),iconLeft:Q("flex items-center justify-center z-10 w-1/2 p-0.5",{[Ao[i].icon]:!n&&!o,"text-panel-subtle":o||n}),iconRight:Q("flex items-center justify-center z-10 w-1/2 p-0.5",{[Ao[i].icon]:n&&!o,"text-panel-subtle":o||!n}),label:Q("font-medium text-body",Tn[r].label,{"cursor-pointer":!o,"cursor-not-allowed text-muted":o})}),ch=y.forwardRef(({label:r,checked:i,defaultChecked:n=!1,disabled:o=!1,size:s="md",color:l="primary",icons:c,onChange:d,className:h,id:v,name:m,...w},S)=>{const[D,B]=y.useState(n),z=i!==void 0,k=z?i:D,A=()=>{const E=!k;z||B(E),d==null||d(E)},_=C_(s,l,k,o,!!c,h);return b.jsxs("div",{"data-qui":"Toggle",className:_.container,children:[r&&b.jsx("label",{htmlFor:v,className:_.label,children:r}),b.jsxs("button",{ref:S,...w,type:"button",role:"switch","aria-checked":k,"aria-label":r,disabled:o,onClick:A,name:m,id:v,className:_.track,children:[c&&b.jsx("span",{className:_.iconLeft,children:c.unchecked}),b.jsx("span",{className:_.thumb,"aria-hidden":"true"}),c&&b.jsx("span",{className:_.iconRight,children:c.checked})]})]})});ch.displayName="Toggle";y.createContext(null);const Ws=y.forwardRef(({depth:r=0,className:i,children:n,borderType:o,disabled:s,...l},c)=>{const d=lh({depth:r,className:i,borderType:o,disabled:s});return b.jsx("div",{"data-qui":"Panel",ref:c,className:d,"aria-disabled":s,...l,children:n})});Ws.displayName="Panel";const Si={sm:{container:"h-5 px-0.5 gap-1 rounded",text:"text-xxs leading-3",icon:"text-s",iconButton:"text-s p-0.5 cursor-pointer"},md:{container:"h-5.5 px-1 gap-1 rounded",text:"text-xs leading-4",icon:"text-sm",iconButton:" text-sm p-0.5 cursor-pointer"},lg:{container:"h-6 px-1.5 gap-1.5 rounded",text:"text-s leading-none",icon:"text-base",iconButton:"text-base p-0.5 cursor-pointer"}},Fo={primary:{bg:"bg-primary",text:"text-button-text",border:"border-primary",buttonHover:"hover:bg-primary-hover"},white:{bg:"bg-canvas-default",text:"text-primary",border:"border-canvas-default",buttonHover:"hover:bg-primary-hover hover:text-button-text"},positive:{bg:"bg-positive",text:"text-button-text",border:"border-positive",buttonHover:"hover:bg-positive-hover"},warning:{bg:"bg-warning",text:"text-button-text",border:"border-warning",buttonHover:"hover:bg-warning-hover"},negative:{bg:"bg-negative",text:"text-button-text",border:"border-negative",buttonHover:"hover:bg-negative-hover"},dark:{bg:"bg-input-bg",text:"text-input-text",border:"border-input-border",buttonHover:"hover:bg-primary-hover hover:text-button-text"}},R_=(r,i,n,o)=>Q("inline-flex items-center justify-center font-medium border",Si[r].container,Fo[i].bg,Fo[i].text,Fo[i].border,Si[r].text,{"opacity-60 pointer-events-none":n,"cursor-pointer hover:bg-opacity-90 transition-opacity":o&&!n}),M_=(r,i,n)=>Q({[Si[r].icon]:!n,"bg-canvas-default outline-canvas-default text-primary":n&&i!=="white"||n,"bg-primary outline-primary text-button-text":n&&i==="white"&&!n,"outline-solid outline-1 h-full py-0.5 grid place-items-center -my-1 only:-mx-0.5 first:-ml-1.5 last:-mr-1.5 only:rounded first:rounded-l last:rounded-r":n||n}),z_=r=>Q(Si[r].text),uh=(r,i,n)=>Q("inline-flex items-center justify-center rounded transition-colors duration-200 focus:outline-hidden ",Si[r].iconButton,Fo[i].buttonHover,{"pointer-events-none":n}),dh=y.createContext(null),aa=()=>{const r=y.useContext(dh);if(!r)throw new Error("Pill components must be used within a Pill.Root");return r},Xs=y.forwardRef(({size:r="md",color:i="primary",className:n,children:o,disabled:s=!1,onClick:l,...c},d)=>{const h={size:r,color:i,disabled:s},v=!!l;return b.jsx(dh.Provider,{value:h,children:b.jsx("div",{"data-qui":"Pill",ref:d,onClick:l,className:Q(R_(r,i,s,v),n),...c,children:o})})});Xs.displayName="Pill.Root";const Qs=y.forwardRef(({className:r,children:i,...n},o)=>{const{size:s}=aa();return b.jsx("span",{ref:o,className:Q(z_(s),r),...n,children:i})});Qs.displayName="Pill.Text";const Js=y.forwardRef(({className:r,children:i,label:n,position:o,...s},l)=>{const{size:c,color:d,disabled:h}=aa(),v=!!n,m=b.jsx("span",{ref:l,className:Q(M_(c,d,v),r,{"opacity-60":h}),...s,children:i});return v&&!h?b.jsx(s_,{label:n||"",position:o||"up",children:m}):m});Js.displayName="Pill.Icon";const ph=y.forwardRef(({className:r,children:i,...n},o)=>{const{size:s,color:l,disabled:c}=aa();return b.jsx("button",{ref:o,type:"button",disabled:c,className:Q(uh(s,l,c),r),...n,children:i})});ph.displayName="Pill.Button";const el=y.forwardRef(({className:r,onClose:i,"aria-label":n="Remove pill",children:o,...s},l)=>{const{size:c,color:d,disabled:h}=aa();return b.jsx("button",{ref:l,type:"button",disabled:h,className:Q(uh(c,d,h),r),onClick:i,"aria-label":n,...s,children:o||b.jsx(Oi,{})})});el.displayName="Pill.Close";const hh=y.forwardRef(({size:r="md",color:i="primary",label:n,icon:o,onClose:s,closable:l=!1,className:c,children:d,disabled:h=!1,...v},m)=>b.jsxs(Xs,{ref:m,size:r,color:i,className:c,disabled:h,...v,children:[o&&b.jsx(Js,{children:o}),d||n&&b.jsx(Qs,{children:n}),l&&b.jsx(el,{onClose:s})]}));hh.displayName="Pill";Object.assign(hh,{Root:Xs,Text:Qs,Icon:Js,Button:ph,Close:el});function Pn(r,i,n){let o=n.initialDeps??[],s,l=!0;function c(){var d,h,v;let m;n.key&&(d=n.debug)!=null&&d.call(n)&&(m=Date.now());const w=r();if(!(w.length!==o.length||w.some((D,B)=>o[B]!==D)))return s;o=w;let S;if(n.key&&(h=n.debug)!=null&&h.call(n)&&(S=Date.now()),s=i(...w),n.key&&(v=n.debug)!=null&&v.call(n)){const D=Math.round((Date.now()-m)*100)/100,B=Math.round((Date.now()-S)*100)/100,z=B/16,k=(A,_)=>{for(A=String(A);A.length<_;)A=" "+A;return A};console.info(`%c⏱ ${k(B,5)} /${k(D,5)} ms`,`
|
|
40
|
+
`,V1=(t,o,n)=>{const{isDisabled:i,isInvalid:s}=n;return J(L1,Bo[t].radio,s?zo[o].radioInvalid:{[zo[o].radio]:!i,"cursor-not-allowed opacity-60":i})},B1=(t,o,n)=>{const{checked:i,isDisabled:s,isInvalid:l}=n;return J("center-absolute rounded-full transition-all duration-200 ease-in-out",Bo[t].dot,l?"bg-negative":{[zo[o].dot]:!s,"border-neutral":s,"opacity-0 scale-0":!i,"opacity-100 scale-100":i&&!s})},F1=(t,o,n)=>J("center-absolute rounded-full transition-all duration-200 opacity-0 group-hover:opacity-100",Bo[t].hoverDot,{[zo[o].hoverDot]:!n,"bg-negative-bg":n}),H1=t=>J("cursor-pointer select-none transition-colors duration-200",Bo[t].label),W1=(t,o,n,i)=>{const{isDisabled:s,isInvalid:l}=n;return J("inline-flex items-center group",Bo[t].container,l?{"text-negative":l}:{[zo[o].label]:!s,"text-muted":s},i)},$1=m.createContext(null),q1=()=>{const t=m.useContext($1);if(!t)throw new Error("Radio.Item must be used within Radio.Group");return t},U1=m.forwardRef(({value:t,label:o,size:n,color:i,isDisabled:s,isInvalid:l,isRequired:c,className:d,...p},g)=>{const b=q1(),x=n??b.size,I=i??b.color,A=s??b.isDisabled,F=l??b.isInvalid,R=c??b.isRequired,k=b.value===t,L={checked:k,isDisabled:A,isInvalid:F},y=V1(x,I,L),N=B1(x,I,L),C=F1(x,I,F),S=H1(x),P=W1(x,I,L,d),W=()=>{A||b.onChange(t)};return w.jsxs("label",{"data-qui":"RadioItem",className:P,children:[w.jsxs("div",{className:J("relative",{hidden:b.hideIndicator}),children:[w.jsx("input",{ref:g,type:"radio",value:t,checked:k,disabled:A,required:R,"aria-invalid":F,"aria-label":o?void 0:p["aria-label"],name:b.name,onChange:W,className:"sr-only",...p}),w.jsxs("div",{className:y,children:[w.jsx("div",{className:N}),!k&&!A&&w.jsx("div",{className:C})]})]}),o&&w.jsxs("span",{className:S,children:[o,R&&w.jsx("span",{className:"text-negative ml-1",children:"*"})]})]})});U1.displayName="RadioItem";const yh={sm:{container:"h-4.5 p-1 rounded",text:"text-xxs"},md:{container:"h-6 p-1 rounded",text:"text-s"},lg:{container:"h-7 p-1 rounded",text:"text-sm"},xl:{container:"h-7.5 p-1 rounded",text:"text-lg"}},K1={primary:{bg:{solid:"bg-primary",outline:"bg-transparent",ghost:"bg-transparent"},text:{solid:"text-button-text",outline:"text-primary",ghost:"text-primary"},border:{solid:"border-primary",outline:"border-primary",ghost:"border-transparent"},hover:{solid:"hover:bg-primary-hover hover:border-primary-hover",outline:"hover:border-primary-hover hover:bg-primary hover:text-body",ghost:"hover:bg-primary-hover hover:text-body"}},white:{bg:{solid:"bg-body",outline:"bg-transparent",ghost:"bg-transparent"},text:{solid:"text-primary",outline:"text-body",ghost:"text-body"},border:{solid:"border-body",outline:"border-body",ghost:"border-transparent"},hover:{solid:"hover:bg-canvas-subtle hover:border-canvas-subtle",outline:"hover:border-canvas-default hover:bg-canvas-default hover:text-primary",ghost:"hover:bg-primary-hover hover:text-body"}},positive:{bg:{solid:"bg-positive",outline:"bg-transparent",ghost:"bg-transparent"},text:{solid:"text-button-text",outline:"text-positive-text",ghost:"text-positive-text"},border:{solid:"border-positive",outline:"border-positive",ghost:"border-transparent"},hover:{solid:"hover:bg-positive-hover hover:border-positive-hover",outline:"hover:border-positive-hover hover:bg-positive-hover hover:text-body",ghost:"hover:bg-positive-hover hover:text-body"}},warning:{bg:{solid:"bg-warning",outline:"bg-transparent",ghost:"bg-transparent"},text:{solid:"text-button-text",outline:"text-warning-text",ghost:"text-warning-text"},border:{solid:"border-warning",outline:"border-warning",ghost:"border-transparent"},hover:{solid:"hover:bg-warning-hover hover:border-warning-hover",outline:"hover:border-warning-hover hover:bg-warning-hover hover:text-body",ghost:"hover:bg-warning-hover hover:text-body"}},negative:{bg:{solid:"bg-negative",outline:"bg-transparent",ghost:"bg-transparent"},text:{solid:"text-button-text",outline:"text-negative",ghost:"text-negative"},border:{solid:"border-negative",outline:"border-negative",ghost:"border-transparent"},hover:{solid:"hover:bg-negative-hover hover:border-negative-hover",outline:"hover:border-negative-hover hover:bg-negative-hover hover:text-body",ghost:"hover:bg-negative-hover hover:text-body"}}},G1=(t,o,n,i)=>{const s=yh[t],l=K1[n],c=J("inline-flex items-center justify-center font-medium transition-colors duration-200 focus:outline-hidden border",{"cursor-pointer":!i},s.container);return i?J(c,"text-inactive-text pointer-events-none",{"border-panel":o!=="ghost"&&o==="solid","border-panel-subtle":o==="outline","bg-panel":o==="solid","bg-transparent ":o==="outline"||o==="ghost","border-transparent":o==="ghost"}):J(c,l.bg[o],l.text[o],l.hover[o],l.border[o])},Z1=t=>J("flex items-center justify-center gap-1",yh[t].text),Y1=m.forwardRef(({size:t="md",variant:o="solid",color:n="primary",className:i,children:s,disabled:l,...c},d)=>w.jsx("button",{"data-qui":"Button",ref:d,type:"button",className:J(G1(t,o,n,l),Z1(t),i),disabled:l,...c,children:s}));Y1.displayName="Button";const _h=m.createContext(null),Fo=()=>{const t=m.useContext(_h);if(!t)throw new Error("Input components must be used within Input.Root");return t},Zn={sm:{group:"h-5 min-h-fit",input:"text-xxs",message:"text-xxs p-1.5",icon:"text-sm"},md:{group:"h-6 min-h-fit",input:"text-xs",message:"text-xs p-2",icon:"text-base"},lg:{group:"h-7 min-h-fit",input:"text-s",message:"text-s p-2.5",icon:"text-lg"}},gn={primary:{border:"border border-input-border focus-within:border-input-focus-border",borderInvalid:"ring-input-error-border",borderMessage:"ring-input-focus-border",text:"text-input-text",placeholder:"placeholder:text-input-placeholder",messageText:"text-input-message-text",messageBackground:"bg-input-message-bg",icon:"text-input-text",action:"text-input-text",actionHover:"hover:text-body hover:bg-primary-hover"},positive:{border:"border border-input-border focus-within:border-positive",borderInvalid:"ring-input-error-border",borderMessage:"ring-positive",text:"text-input-text",placeholder:"placeholder:text-input-placeholder",messageText:"text-positive-dark",messageBackground:"bg-positive-light",icon:"text-positive-text",action:"text-input-text",actionHover:"hover:text-body hover:bg-primary-hover"},warning:{border:"border border-input-border focus-within:border-input-warning-border",borderInvalid:"ring-input-error-border",borderMessage:"ring-input-warning-border",text:"text-input-text",placeholder:"placeholder:text-input-placeholder",messageText:"text-warning-dark",messageBackground:"bg-input-warning-bg",icon:"text-warning-text",action:"text-input-text",actionHover:"hover:text-body hover:bg-primary-hover"},negative:{border:"border border-input-border focus-within:border-input-error-border",borderInvalid:"ring-input-error-border",borderMessage:"ring-input-error-border",text:"text-negative",placeholder:"placeholder:text-input-placeholder",messageText:"text-negative-dark",messageBackground:"bg-input-error-bg",icon:"text-negative",action:"text-input-text",actionHover:"hover:text-body hover:bg-primary-hover"}},X1=()=>J("flex flex-col relative"),J1=({size:t,color:o,isDisabled:n,isReadOnly:i,hasMessage:s,hasArea:l,isInvalid:c})=>{const d=gn[c?"negative":o];return J("bg-input-bg flex gap-1 relative px-1 transition-all duration-200 ease-in-out only:rounded first:rounded-t last:rounded-b",d.text,s?d.borderMessage:!i&&d.border,Zn[t].group,{"ring-1":s,"opacity-60":n,"items-center":!l})},Q1=({size:t,color:o})=>J("bg-transparent ring-0 w-full","focus:outline-hidden",[Zn[t].input],gn[o].placeholder),Xd=({size:t,color:o})=>J("bg-transparent ring-0 w-full h-fit resize-none py-0.5","focus:outline-hidden",Zn[t].input,gn[o].placeholder),e_=({size:t,color:o,isDisabled:n,isAction:i})=>{const s=gn[o];return J("transition-colors duration-200 rounded max-h-full h-fit",Zn[t].icon,t==="sm"?"m-px":"m-0.5",n?"text-muted opacity-60 pointer-events-none":i?s.action:s.icon,{"cursor-pointer p-0.5":i&&!n,[s.actionHover]:i&&!n,"pointer-events-none":!i})},t_=({size:t,color:o,isDisabled:n,usePortal:i=!1,portalPlacement:s="bottom"})=>J("flex items-start gap-x-2 ring-1",i?s==="top"?"rounded-t ring-b-0":"rounded-b ring-t-0":["absolute left-0 right-0 z-10","first:bottom-full first:rounded-t first:ring-b-0","last:top-full last:rounded-b last:ring-t-0","only:top-full only:rounded only:ring-1"],n?"text-muted":gn[o].messageText,gn[o].borderMessage,gn[o].messageBackground,Zn[t].message,{"opacity-60":n}),r_=({size:t})=>J(Zn[t].icon);function ua(t){var o=typeof t;return t!=null&&(o=="object"||o=="function")}var n_=typeof global=="object"&&global&&global.Object===Object&&global,o_=typeof self=="object"&&self&&self.Object===Object&&self,Ih=n_||o_||Function("return this")(),Us=function(){return Ih.Date.now()},i_=/\s/;function a_(t){for(var o=t.length;o--&&i_.test(t.charAt(o)););return o}var s_=/^\s+/;function l_(t){return t&&t.slice(0,a_(t)+1).replace(s_,"")}var da=Ih.Symbol,Sh=Object.prototype,c_=Sh.hasOwnProperty,u_=Sh.toString,So=da?da.toStringTag:void 0;function d_(t){var o=c_.call(t,So),n=t[So];try{t[So]=void 0;var i=!0}catch{}var s=u_.call(t);return i&&(o?t[So]=n:delete t[So]),s}var p_=Object.prototype,h_=p_.toString;function f_(t){return h_.call(t)}var g_="[object Null]",v_="[object Undefined]",Jd=da?da.toStringTag:void 0;function m_(t){return t==null?t===void 0?v_:g_:Jd&&Jd in Object(t)?d_(t):f_(t)}function b_(t){return t!=null&&typeof t=="object"}var w_="[object Symbol]";function x_(t){return typeof t=="symbol"||b_(t)&&m_(t)==w_}var Qd=NaN,y_=/^[-+]0x[0-9a-f]+$/i,__=/^0b[01]+$/i,I_=/^0o[0-7]+$/i,S_=parseInt;function ep(t){if(typeof t=="number")return t;if(x_(t))return Qd;if(ua(t)){var o=typeof t.valueOf=="function"?t.valueOf():t;t=ua(o)?o+"":o}if(typeof t!="string")return t===0?t:+t;t=l_(t);var n=__.test(t);return n||I_.test(t)?S_(t.slice(2),n?2:8):y_.test(t)?Qd:+t}var E_="Expected a function",k_=Math.max,O_=Math.min;function ea(t,o,n){var i,s,l,c,d,p,g=0,b=!1,x=!1,I=!0;if(typeof t!="function")throw new TypeError(E_);o=ep(o)||0,ua(n)&&(b=!!n.leading,x="maxWait"in n,l=x?k_(ep(n.maxWait)||0,o):l,I="trailing"in n?!!n.trailing:I);function A(P){var W=i,V=s;return i=s=void 0,g=P,c=t.apply(V,W),c}function F(P){return g=P,d=setTimeout(L,o),b?A(P):c}function R(P){var W=P-p,V=P-g,q=o-W;return x?O_(q,l-V):q}function k(P){var W=P-p,V=P-g;return p===void 0||W>=o||W<0||x&&V>=l}function L(){var P=Us();if(k(P))return y(P);d=setTimeout(L,R(P))}function y(P){return d=void 0,I&&i?A(P):(i=s=void 0,c)}function N(){d!==void 0&&clearTimeout(d),g=0,i=p=s=d=void 0}function C(){return d===void 0?c:y(Us())}function S(){var P=Us(),W=k(P);if(i=arguments,s=this,p=P,W){if(d===void 0)return F(p);if(x)return clearTimeout(d),d=setTimeout(L,o),A(p)}return d===void 0&&(d=setTimeout(L,o)),c}return S.cancel=N,S.flush=C,S}var C_="Expected a function";function N_(t,o,n){var i=!0,s=!0;if(typeof t!="function")throw new TypeError(C_);return ua(n)&&(i="leading"in n?!!n.leading:i,s="trailing"in n?!!n.trailing:s),ea(t,o,{leading:i,maxWait:o,trailing:s})}var Fn=function(){return Fn=Object.assign||function(t){for(var o,n=1,i=arguments.length;n<i;n++){o=arguments[n];for(var s in o)Object.prototype.hasOwnProperty.call(o,s)&&(t[s]=o[s])}return t},Fn.apply(this,arguments)};function Eh(t){return!t||!t.ownerDocument||!t.ownerDocument.defaultView?window:t.ownerDocument.defaultView}function kh(t){return!t||!t.ownerDocument?document:t.ownerDocument}var Oh=function(t){var o={},n=Array.prototype.reduce.call(t,function(i,s){var l=s.name.match(/data-simplebar-(.+)/);if(l){var c=l[1].replace(/\W+(.)/g,function(d,p){return p.toUpperCase()});switch(s.value){case"true":i[c]=!0;break;case"false":i[c]=!1;break;case void 0:i[c]=!0;break;default:i[c]=s.value}}return i},o);return n};function Ch(t,o){var n;t&&(n=t.classList).add.apply(n,o.split(" "))}function Nh(t,o){t&&o.split(" ").forEach(function(n){t.classList.remove(n)})}function Mh(t){return".".concat(t.split(" ").join("."))}var vl=!!(typeof window<"u"&&window.document&&window.document.createElement),M_=Object.freeze({__proto__:null,addClasses:Ch,canUseDOM:vl,classNamesToQuery:Mh,getElementDocument:kh,getElementWindow:Eh,getOptions:Oh,removeClasses:Nh}),Vn=null,tp=null;vl&&window.addEventListener("resize",function(){tp!==window.devicePixelRatio&&(tp=window.devicePixelRatio,Vn=null)});function rp(){if(Vn===null){if(typeof document>"u")return Vn=0,Vn;var t=document.body,o=document.createElement("div");o.classList.add("simplebar-hide-scrollbar"),t.appendChild(o);var n=o.getBoundingClientRect().right;t.removeChild(o),Vn=n}return Vn}var Yr=Eh,Ks=kh,R_=Oh,Xr=Ch,Jr=Nh,Ht=Mh,Eo=(function(){function t(o,n){n===void 0&&(n={});var i=this;if(this.removePreventClickId=null,this.minScrollbarWidth=20,this.stopScrollDelay=175,this.isScrolling=!1,this.isMouseEntering=!1,this.isDragging=!1,this.scrollXTicking=!1,this.scrollYTicking=!1,this.wrapperEl=null,this.contentWrapperEl=null,this.contentEl=null,this.offsetEl=null,this.maskEl=null,this.placeholderEl=null,this.heightAutoObserverWrapperEl=null,this.heightAutoObserverEl=null,this.rtlHelpers=null,this.scrollbarWidth=0,this.resizeObserver=null,this.mutationObserver=null,this.elStyles=null,this.isRtl=null,this.mouseX=0,this.mouseY=0,this.onMouseMove=function(){},this.onWindowResize=function(){},this.onStopScrolling=function(){},this.onMouseEntered=function(){},this.onScroll=function(){var s=Yr(i.el);i.scrollXTicking||(s.requestAnimationFrame(i.scrollX),i.scrollXTicking=!0),i.scrollYTicking||(s.requestAnimationFrame(i.scrollY),i.scrollYTicking=!0),i.isScrolling||(i.isScrolling=!0,Xr(i.el,i.classNames.scrolling)),i.showScrollbar("x"),i.showScrollbar("y"),i.onStopScrolling()},this.scrollX=function(){i.axis.x.isOverflowing&&i.positionScrollbar("x"),i.scrollXTicking=!1},this.scrollY=function(){i.axis.y.isOverflowing&&i.positionScrollbar("y"),i.scrollYTicking=!1},this._onStopScrolling=function(){Jr(i.el,i.classNames.scrolling),i.options.autoHide&&(i.hideScrollbar("x"),i.hideScrollbar("y")),i.isScrolling=!1},this.onMouseEnter=function(){i.isMouseEntering||(Xr(i.el,i.classNames.mouseEntered),i.showScrollbar("x"),i.showScrollbar("y"),i.isMouseEntering=!0),i.onMouseEntered()},this._onMouseEntered=function(){Jr(i.el,i.classNames.mouseEntered),i.options.autoHide&&(i.hideScrollbar("x"),i.hideScrollbar("y")),i.isMouseEntering=!1},this._onMouseMove=function(s){i.mouseX=s.clientX,i.mouseY=s.clientY,(i.axis.x.isOverflowing||i.axis.x.forceVisible)&&i.onMouseMoveForAxis("x"),(i.axis.y.isOverflowing||i.axis.y.forceVisible)&&i.onMouseMoveForAxis("y")},this.onMouseLeave=function(){i.onMouseMove.cancel(),(i.axis.x.isOverflowing||i.axis.x.forceVisible)&&i.onMouseLeaveForAxis("x"),(i.axis.y.isOverflowing||i.axis.y.forceVisible)&&i.onMouseLeaveForAxis("y"),i.mouseX=-1,i.mouseY=-1},this._onWindowResize=function(){i.scrollbarWidth=i.getScrollbarWidth(),i.hideNativeScrollbar()},this.onPointerEvent=function(s){if(!(!i.axis.x.track.el||!i.axis.y.track.el||!i.axis.x.scrollbar.el||!i.axis.y.scrollbar.el)){var l,c;i.axis.x.track.rect=i.axis.x.track.el.getBoundingClientRect(),i.axis.y.track.rect=i.axis.y.track.el.getBoundingClientRect(),(i.axis.x.isOverflowing||i.axis.x.forceVisible)&&(l=i.isWithinBounds(i.axis.x.track.rect)),(i.axis.y.isOverflowing||i.axis.y.forceVisible)&&(c=i.isWithinBounds(i.axis.y.track.rect)),(l||c)&&(s.stopPropagation(),s.type==="pointerdown"&&s.pointerType!=="touch"&&(l&&(i.axis.x.scrollbar.rect=i.axis.x.scrollbar.el.getBoundingClientRect(),i.isWithinBounds(i.axis.x.scrollbar.rect)?i.onDragStart(s,"x"):i.onTrackClick(s,"x")),c&&(i.axis.y.scrollbar.rect=i.axis.y.scrollbar.el.getBoundingClientRect(),i.isWithinBounds(i.axis.y.scrollbar.rect)?i.onDragStart(s,"y"):i.onTrackClick(s,"y"))))}},this.drag=function(s){var l,c,d,p,g,b,x,I,A,F,R;if(!(!i.draggedAxis||!i.contentWrapperEl)){var k,L=i.axis[i.draggedAxis].track,y=(c=(l=L.rect)===null||l===void 0?void 0:l[i.axis[i.draggedAxis].sizeAttr])!==null&&c!==void 0?c:0,N=i.axis[i.draggedAxis].scrollbar,C=(p=(d=i.contentWrapperEl)===null||d===void 0?void 0:d[i.axis[i.draggedAxis].scrollSizeAttr])!==null&&p!==void 0?p:0,S=parseInt((b=(g=i.elStyles)===null||g===void 0?void 0:g[i.axis[i.draggedAxis].sizeAttr])!==null&&b!==void 0?b:"0px",10);s.preventDefault(),s.stopPropagation(),i.draggedAxis==="y"?k=s.pageY:k=s.pageX;var P=k-((I=(x=L.rect)===null||x===void 0?void 0:x[i.axis[i.draggedAxis].offsetAttr])!==null&&I!==void 0?I:0)-i.axis[i.draggedAxis].dragOffset;P=i.draggedAxis==="x"&&i.isRtl?((F=(A=L.rect)===null||A===void 0?void 0:A[i.axis[i.draggedAxis].sizeAttr])!==null&&F!==void 0?F:0)-N.size-P:P;var W=P/(y-N.size),V=W*(C-S);i.draggedAxis==="x"&&i.isRtl&&(V=!((R=t.getRtlHelpers())===null||R===void 0)&&R.isScrollingToNegative?-V:V),i.contentWrapperEl[i.axis[i.draggedAxis].scrollOffsetAttr]=V}},this.onEndDrag=function(s){i.isDragging=!1;var l=Ks(i.el),c=Yr(i.el);s.preventDefault(),s.stopPropagation(),Jr(i.el,i.classNames.dragging),i.onStopScrolling(),l.removeEventListener("mousemove",i.drag,!0),l.removeEventListener("mouseup",i.onEndDrag,!0),i.removePreventClickId=c.setTimeout(function(){l.removeEventListener("click",i.preventClick,!0),l.removeEventListener("dblclick",i.preventClick,!0),i.removePreventClickId=null})},this.preventClick=function(s){s.preventDefault(),s.stopPropagation()},this.el=o,this.options=Fn(Fn({},t.defaultOptions),n),this.classNames=Fn(Fn({},t.defaultOptions.classNames),n.classNames),this.axis={x:{scrollOffsetAttr:"scrollLeft",sizeAttr:"width",scrollSizeAttr:"scrollWidth",offsetSizeAttr:"offsetWidth",offsetAttr:"left",overflowAttr:"overflowX",dragOffset:0,isOverflowing:!0,forceVisible:!1,track:{size:null,el:null,rect:null,isVisible:!1},scrollbar:{size:null,el:null,rect:null,isVisible:!1}},y:{scrollOffsetAttr:"scrollTop",sizeAttr:"height",scrollSizeAttr:"scrollHeight",offsetSizeAttr:"offsetHeight",offsetAttr:"top",overflowAttr:"overflowY",dragOffset:0,isOverflowing:!0,forceVisible:!1,track:{size:null,el:null,rect:null,isVisible:!1},scrollbar:{size:null,el:null,rect:null,isVisible:!1}}},typeof this.el!="object"||!this.el.nodeName)throw new Error("Argument passed to SimpleBar must be an HTML element instead of ".concat(this.el));this.onMouseMove=N_(this._onMouseMove,64),this.onWindowResize=ea(this._onWindowResize,64,{leading:!0}),this.onStopScrolling=ea(this._onStopScrolling,this.stopScrollDelay),this.onMouseEntered=ea(this._onMouseEntered,this.stopScrollDelay),this.init()}return t.getRtlHelpers=function(){if(t.rtlHelpers)return t.rtlHelpers;var o=document.createElement("div");o.innerHTML='<div class="simplebar-dummy-scrollbar-size"><div></div></div>';var n=o.firstElementChild,i=n==null?void 0:n.firstElementChild;if(!i)return null;document.body.appendChild(n),n.scrollLeft=0;var s=t.getOffset(n),l=t.getOffset(i);n.scrollLeft=-999;var c=t.getOffset(i);return document.body.removeChild(n),t.rtlHelpers={isScrollOriginAtZero:s.left!==l.left,isScrollingToNegative:l.left!==c.left},t.rtlHelpers},t.prototype.getScrollbarWidth=function(){try{return this.contentWrapperEl&&getComputedStyle(this.contentWrapperEl,"::-webkit-scrollbar").display==="none"||"scrollbarWidth"in document.documentElement.style||"-ms-overflow-style"in document.documentElement.style?0:rp()}catch{return rp()}},t.getOffset=function(o){var n=o.getBoundingClientRect(),i=Ks(o),s=Yr(o);return{top:n.top+(s.pageYOffset||i.documentElement.scrollTop),left:n.left+(s.pageXOffset||i.documentElement.scrollLeft)}},t.prototype.init=function(){vl&&(this.initDOM(),this.rtlHelpers=t.getRtlHelpers(),this.scrollbarWidth=this.getScrollbarWidth(),this.recalculate(),this.initListeners())},t.prototype.initDOM=function(){var o,n;this.wrapperEl=this.el.querySelector(Ht(this.classNames.wrapper)),this.contentWrapperEl=this.options.scrollableNode||this.el.querySelector(Ht(this.classNames.contentWrapper)),this.contentEl=this.options.contentNode||this.el.querySelector(Ht(this.classNames.contentEl)),this.offsetEl=this.el.querySelector(Ht(this.classNames.offset)),this.maskEl=this.el.querySelector(Ht(this.classNames.mask)),this.placeholderEl=this.findChild(this.wrapperEl,Ht(this.classNames.placeholder)),this.heightAutoObserverWrapperEl=this.el.querySelector(Ht(this.classNames.heightAutoObserverWrapperEl)),this.heightAutoObserverEl=this.el.querySelector(Ht(this.classNames.heightAutoObserverEl)),this.axis.x.track.el=this.findChild(this.el,"".concat(Ht(this.classNames.track)).concat(Ht(this.classNames.horizontal))),this.axis.y.track.el=this.findChild(this.el,"".concat(Ht(this.classNames.track)).concat(Ht(this.classNames.vertical))),this.axis.x.scrollbar.el=((o=this.axis.x.track.el)===null||o===void 0?void 0:o.querySelector(Ht(this.classNames.scrollbar)))||null,this.axis.y.scrollbar.el=((n=this.axis.y.track.el)===null||n===void 0?void 0:n.querySelector(Ht(this.classNames.scrollbar)))||null,this.options.autoHide||(Xr(this.axis.x.scrollbar.el,this.classNames.visible),Xr(this.axis.y.scrollbar.el,this.classNames.visible))},t.prototype.initListeners=function(){var o=this,n,i=Yr(this.el);if(this.el.addEventListener("mouseenter",this.onMouseEnter),this.el.addEventListener("pointerdown",this.onPointerEvent,!0),this.el.addEventListener("mousemove",this.onMouseMove),this.el.addEventListener("mouseleave",this.onMouseLeave),(n=this.contentWrapperEl)===null||n===void 0||n.addEventListener("scroll",this.onScroll),i.addEventListener("resize",this.onWindowResize),!!this.contentEl){if(window.ResizeObserver){var s=!1,l=i.ResizeObserver||ResizeObserver;this.resizeObserver=new l(function(){s&&i.requestAnimationFrame(function(){o.recalculate()})}),this.resizeObserver.observe(this.el),this.resizeObserver.observe(this.contentEl),i.requestAnimationFrame(function(){s=!0})}this.mutationObserver=new i.MutationObserver(function(){i.requestAnimationFrame(function(){o.recalculate()})}),this.mutationObserver.observe(this.contentEl,{childList:!0,subtree:!0,characterData:!0})}},t.prototype.recalculate=function(){if(!(!this.heightAutoObserverEl||!this.contentEl||!this.contentWrapperEl||!this.wrapperEl||!this.placeholderEl)){var o=Yr(this.el);this.elStyles=o.getComputedStyle(this.el),this.isRtl=this.elStyles.direction==="rtl";var n=this.contentEl.offsetWidth,i=this.heightAutoObserverEl.offsetHeight<=1,s=this.heightAutoObserverEl.offsetWidth<=1||n>0,l=this.contentWrapperEl.offsetWidth,c=this.elStyles.overflowX,d=this.elStyles.overflowY;this.contentEl.style.padding="".concat(this.elStyles.paddingTop," ").concat(this.elStyles.paddingRight," ").concat(this.elStyles.paddingBottom," ").concat(this.elStyles.paddingLeft),this.wrapperEl.style.margin="-".concat(this.elStyles.paddingTop," -").concat(this.elStyles.paddingRight," -").concat(this.elStyles.paddingBottom," -").concat(this.elStyles.paddingLeft);var p=this.contentEl.scrollHeight,g=this.contentEl.scrollWidth;this.contentWrapperEl.style.height=i?"auto":"100%",this.placeholderEl.style.width=s?"".concat(n||g,"px"):"auto",this.placeholderEl.style.height="".concat(p,"px");var b=this.contentWrapperEl.offsetHeight;this.axis.x.isOverflowing=n!==0&&g>n,this.axis.y.isOverflowing=p>b,this.axis.x.isOverflowing=c==="hidden"?!1:this.axis.x.isOverflowing,this.axis.y.isOverflowing=d==="hidden"?!1:this.axis.y.isOverflowing,this.axis.x.forceVisible=this.options.forceVisible==="x"||this.options.forceVisible===!0,this.axis.y.forceVisible=this.options.forceVisible==="y"||this.options.forceVisible===!0,this.hideNativeScrollbar();var x=this.axis.x.isOverflowing?this.scrollbarWidth:0,I=this.axis.y.isOverflowing?this.scrollbarWidth:0;this.axis.x.isOverflowing=this.axis.x.isOverflowing&&g>l-I,this.axis.y.isOverflowing=this.axis.y.isOverflowing&&p>b-x,this.axis.x.scrollbar.size=this.getScrollbarSize("x"),this.axis.y.scrollbar.size=this.getScrollbarSize("y"),this.axis.x.scrollbar.el&&(this.axis.x.scrollbar.el.style.width="".concat(this.axis.x.scrollbar.size,"px")),this.axis.y.scrollbar.el&&(this.axis.y.scrollbar.el.style.height="".concat(this.axis.y.scrollbar.size,"px")),this.positionScrollbar("x"),this.positionScrollbar("y"),this.toggleTrackVisibility("x"),this.toggleTrackVisibility("y")}},t.prototype.getScrollbarSize=function(o){var n,i;if(o===void 0&&(o="y"),!this.axis[o].isOverflowing||!this.contentEl)return 0;var s=this.contentEl[this.axis[o].scrollSizeAttr],l=(i=(n=this.axis[o].track.el)===null||n===void 0?void 0:n[this.axis[o].offsetSizeAttr])!==null&&i!==void 0?i:0,c=l/s,d;return d=Math.max(~~(c*l),this.options.scrollbarMinSize),this.options.scrollbarMaxSize&&(d=Math.min(d,this.options.scrollbarMaxSize)),d},t.prototype.positionScrollbar=function(o){var n,i,s;o===void 0&&(o="y");var l=this.axis[o].scrollbar;if(!(!this.axis[o].isOverflowing||!this.contentWrapperEl||!l.el||!this.elStyles)){var c=this.contentWrapperEl[this.axis[o].scrollSizeAttr],d=((n=this.axis[o].track.el)===null||n===void 0?void 0:n[this.axis[o].offsetSizeAttr])||0,p=parseInt(this.elStyles[this.axis[o].sizeAttr],10),g=this.contentWrapperEl[this.axis[o].scrollOffsetAttr];g=o==="x"&&this.isRtl&&!((i=t.getRtlHelpers())===null||i===void 0)&&i.isScrollOriginAtZero?-g:g,o==="x"&&this.isRtl&&(g=!((s=t.getRtlHelpers())===null||s===void 0)&&s.isScrollingToNegative?g:-g);var b=g/(c-p),x=~~((d-l.size)*b);x=o==="x"&&this.isRtl?-x+(d-l.size):x,l.el.style.transform=o==="x"?"translate3d(".concat(x,"px, 0, 0)"):"translate3d(0, ".concat(x,"px, 0)")}},t.prototype.toggleTrackVisibility=function(o){o===void 0&&(o="y");var n=this.axis[o].track.el,i=this.axis[o].scrollbar.el;!n||!i||!this.contentWrapperEl||(this.axis[o].isOverflowing||this.axis[o].forceVisible?(n.style.visibility="visible",this.contentWrapperEl.style[this.axis[o].overflowAttr]="scroll",this.el.classList.add("".concat(this.classNames.scrollable,"-").concat(o))):(n.style.visibility="hidden",this.contentWrapperEl.style[this.axis[o].overflowAttr]="hidden",this.el.classList.remove("".concat(this.classNames.scrollable,"-").concat(o))),this.axis[o].isOverflowing?i.style.display="block":i.style.display="none")},t.prototype.showScrollbar=function(o){o===void 0&&(o="y"),this.axis[o].isOverflowing&&!this.axis[o].scrollbar.isVisible&&(Xr(this.axis[o].scrollbar.el,this.classNames.visible),this.axis[o].scrollbar.isVisible=!0)},t.prototype.hideScrollbar=function(o){o===void 0&&(o="y"),!this.isDragging&&this.axis[o].isOverflowing&&this.axis[o].scrollbar.isVisible&&(Jr(this.axis[o].scrollbar.el,this.classNames.visible),this.axis[o].scrollbar.isVisible=!1)},t.prototype.hideNativeScrollbar=function(){this.offsetEl&&(this.offsetEl.style[this.isRtl?"left":"right"]=this.axis.y.isOverflowing||this.axis.y.forceVisible?"-".concat(this.scrollbarWidth,"px"):"0px",this.offsetEl.style.bottom=this.axis.x.isOverflowing||this.axis.x.forceVisible?"-".concat(this.scrollbarWidth,"px"):"0px")},t.prototype.onMouseMoveForAxis=function(o){o===void 0&&(o="y");var n=this.axis[o];!n.track.el||!n.scrollbar.el||(n.track.rect=n.track.el.getBoundingClientRect(),n.scrollbar.rect=n.scrollbar.el.getBoundingClientRect(),this.isWithinBounds(n.track.rect)?(this.showScrollbar(o),Xr(n.track.el,this.classNames.hover),this.isWithinBounds(n.scrollbar.rect)?Xr(n.scrollbar.el,this.classNames.hover):Jr(n.scrollbar.el,this.classNames.hover)):(Jr(n.track.el,this.classNames.hover),this.options.autoHide&&this.hideScrollbar(o)))},t.prototype.onMouseLeaveForAxis=function(o){o===void 0&&(o="y"),Jr(this.axis[o].track.el,this.classNames.hover),Jr(this.axis[o].scrollbar.el,this.classNames.hover),this.options.autoHide&&this.hideScrollbar(o)},t.prototype.onDragStart=function(o,n){var i;n===void 0&&(n="y"),this.isDragging=!0;var s=Ks(this.el),l=Yr(this.el),c=this.axis[n].scrollbar,d=n==="y"?o.pageY:o.pageX;this.axis[n].dragOffset=d-(((i=c.rect)===null||i===void 0?void 0:i[this.axis[n].offsetAttr])||0),this.draggedAxis=n,Xr(this.el,this.classNames.dragging),s.addEventListener("mousemove",this.drag,!0),s.addEventListener("mouseup",this.onEndDrag,!0),this.removePreventClickId===null?(s.addEventListener("click",this.preventClick,!0),s.addEventListener("dblclick",this.preventClick,!0)):(l.clearTimeout(this.removePreventClickId),this.removePreventClickId=null)},t.prototype.onTrackClick=function(o,n){var i=this,s,l,c,d;n===void 0&&(n="y");var p=this.axis[n];if(!(!this.options.clickOnTrack||!p.scrollbar.el||!this.contentWrapperEl)){o.preventDefault();var g=Yr(this.el);this.axis[n].scrollbar.rect=p.scrollbar.el.getBoundingClientRect();var b=this.axis[n].scrollbar,x=(l=(s=b.rect)===null||s===void 0?void 0:s[this.axis[n].offsetAttr])!==null&&l!==void 0?l:0,I=parseInt((d=(c=this.elStyles)===null||c===void 0?void 0:c[this.axis[n].sizeAttr])!==null&&d!==void 0?d:"0px",10),A=this.contentWrapperEl[this.axis[n].scrollOffsetAttr],F=n==="y"?this.mouseY-x:this.mouseX-x,R=F<0?-1:1,k=R===-1?A-I:A+I,L=40,y=function(){i.contentWrapperEl&&(R===-1?A>k&&(A-=L,i.contentWrapperEl[i.axis[n].scrollOffsetAttr]=A,g.requestAnimationFrame(y)):A<k&&(A+=L,i.contentWrapperEl[i.axis[n].scrollOffsetAttr]=A,g.requestAnimationFrame(y)))};y()}},t.prototype.getContentElement=function(){return this.contentEl},t.prototype.getScrollElement=function(){return this.contentWrapperEl},t.prototype.removeListeners=function(){var o=Yr(this.el);this.el.removeEventListener("mouseenter",this.onMouseEnter),this.el.removeEventListener("pointerdown",this.onPointerEvent,!0),this.el.removeEventListener("mousemove",this.onMouseMove),this.el.removeEventListener("mouseleave",this.onMouseLeave),this.contentWrapperEl&&this.contentWrapperEl.removeEventListener("scroll",this.onScroll),o.removeEventListener("resize",this.onWindowResize),this.mutationObserver&&this.mutationObserver.disconnect(),this.resizeObserver&&this.resizeObserver.disconnect(),this.onMouseMove.cancel(),this.onWindowResize.cancel(),this.onStopScrolling.cancel(),this.onMouseEntered.cancel()},t.prototype.unMount=function(){this.removeListeners()},t.prototype.isWithinBounds=function(o){return this.mouseX>=o.left&&this.mouseX<=o.left+o.width&&this.mouseY>=o.top&&this.mouseY<=o.top+o.height},t.prototype.findChild=function(o,n){var i=o.matches||o.webkitMatchesSelector||o.mozMatchesSelector||o.msMatchesSelector;return Array.prototype.filter.call(o.children,function(s){return i.call(s,n)})[0]},t.rtlHelpers=null,t.defaultOptions={forceVisible:!1,clickOnTrack:!0,scrollbarMinSize:25,scrollbarMaxSize:0,ariaLabel:"scrollable content",tabIndex:0,classNames:{contentEl:"simplebar-content",contentWrapper:"simplebar-content-wrapper",offset:"simplebar-offset",mask:"simplebar-mask",wrapper:"simplebar-wrapper",placeholder:"simplebar-placeholder",scrollbar:"simplebar-scrollbar",track:"simplebar-track",heightAutoObserverWrapperEl:"simplebar-height-auto-observer-wrapper",heightAutoObserverEl:"simplebar-height-auto-observer",visible:"simplebar-visible",horizontal:"simplebar-horizontal",vertical:"simplebar-vertical",hover:"simplebar-hover",dragging:"simplebar-dragging",scrolling:"simplebar-scrolling",scrollable:"simplebar-scrollable",mouseEntered:"simplebar-mouse-entered"},scrollableNode:null,contentNode:null,autoHide:!0},t.getOptions=R_,t.helpers=M_,t})(),tr=function(){return tr=Object.assign||function(t){for(var o,n=1,i=arguments.length;n<i;n++){o=arguments[n];for(var s in o)Object.prototype.hasOwnProperty.call(o,s)&&(t[s]=o[s])}return t},tr.apply(this,arguments)};function z_(t,o){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&o.indexOf(i)<0&&(n[i]=t[i]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,i=Object.getOwnPropertySymbols(t);s<i.length;s++)o.indexOf(i[s])<0&&Object.prototype.propertyIsEnumerable.call(t,i[s])&&(n[i[s]]=t[i[s]]);return n}var ml=ut.forwardRef(function(t,o){var n=t.children,i=t.scrollableNodeProps,s=i===void 0?{}:i,l=z_(t,["children","scrollableNodeProps"]),c=ut.useRef(),d=ut.useRef(),p=ut.useRef(),g={},b={};Object.keys(l).forEach(function(A){Object.prototype.hasOwnProperty.call(Eo.defaultOptions,A)?g[A]=l[A]:b[A]=l[A]});var x=tr(tr({},Eo.defaultOptions.classNames),g.classNames),I=tr(tr({},s),{className:"".concat(x.contentWrapper).concat(s.className?" ".concat(s.className):""),tabIndex:g.tabIndex||Eo.defaultOptions.tabIndex,role:"region","aria-label":g.ariaLabel||Eo.defaultOptions.ariaLabel});return ut.useEffect(function(){var A;return d.current=I.ref?I.ref.current:d.current,c.current&&(A=new Eo(c.current,tr(tr(tr({},g),d.current&&{scrollableNode:d.current}),p.current&&{contentNode:p.current})),typeof o=="function"?o(A):o&&(o.current=A)),function(){A==null||A.unMount(),A=null,typeof o=="function"&&o(null)}},[]),ut.createElement("div",tr({"data-simplebar":"init",ref:c},b),ut.createElement("div",{className:x.wrapper},ut.createElement("div",{className:x.heightAutoObserverWrapperEl},ut.createElement("div",{className:x.heightAutoObserverEl})),ut.createElement("div",{className:x.mask},ut.createElement("div",{className:x.offset},typeof n=="function"?n({scrollableNodeRef:d,scrollableNodeProps:tr(tr({},I),{ref:d}),contentNodeRef:p,contentNodeProps:{className:x.contentEl,ref:p}}):ut.createElement("div",tr({},I),ut.createElement("div",{className:x.contentEl},n)))),ut.createElement("div",{className:x.placeholder})),ut.createElement("div",{className:"".concat(x.track," ").concat(x.horizontal)},ut.createElement("div",{className:x.scrollbar})),ut.createElement("div",{className:"".concat(x.track," ").concat(x.vertical)},ut.createElement("div",{className:x.scrollbar})))});ml.displayName="SimpleBar";const Rh=m.forwardRef(({size:t="md",color:o="primary",isInvalid:n=!1,isDisabled:i=!1,isReadOnly:s=!1,className:l,children:c,...d},p)=>{const[g,b]=m.useState(!1),[x,I]=m.useState(!1),A={size:t,color:n?"negative":o,isInvalid:n,isDisabled:i,isReadOnly:s,hasMessage:g,setHasMessage:b,hasArea:x,setHasArea:I};return w.jsx(_h.Provider,{value:A,children:w.jsx("div",{ref:p,"data-qui":"Input",className:J(X1(),l),...d,children:c})})}),zh=m.forwardRef(({className:t,children:o,...n},i)=>{const{size:s,color:l,isDisabled:c,isReadOnly:d,hasMessage:p,hasArea:g,isInvalid:b}=Fo();return w.jsx("div",{ref:i,"data-qui":"InputGroup",className:J(J1({size:s,color:l,isDisabled:c,isReadOnly:d,hasMessage:p,hasArea:g,isInvalid:b}),t),...n,children:o})}),Dh=m.forwardRef(({className:t,...o},n)=>{const{size:i,color:s,isInvalid:l,isDisabled:c,isReadOnly:d}=Fo(),{isDisabled:p,isReadOnly:g,...b}=o;return w.jsx("input",{...b,ref:n,disabled:c||p,readOnly:g||d||!1,"aria-invalid":l,className:J(Q1({size:i,color:s}),t)})}),D_=m.forwardRef(({className:t,wrapperClassName:o,autoHeight:n,...i},s)=>{const{size:l,color:c,isInvalid:d,isDisabled:p,isReadOnly:g,setHasArea:b}=Fo(),x=m.useRef(null),I=s||x,A=m.useRef(null);m.useEffect(()=>(b(!0),()=>{b(!1)}),[b]);const F=m.useCallback(()=>{if(x.current){const S=x.current;S.style.height="auto",S.style.height=`${S.scrollHeight}px`}},[]),{isDisabled:R,isReadOnly:k,onInput:L,...y}=i,N=S=>{F(),L==null||L(S)};m.useEffect(()=>{F()},[F,i.value]),m.useEffect(()=>{n&&A.current&&A.current.style.removeProperty("height")},[n]);const C=S=>{S.preventDefault();const P=A.current;if(!P)return;const W=S.clientY,V=P.offsetHeight,q=te=>{const pe=V+(te.clientY-W);pe>30&&(P.style.height=pe+"px")},G=()=>{document.removeEventListener("mousemove",q),document.removeEventListener("mouseup",G)};document.addEventListener("mousemove",q),document.addEventListener("mouseup",G)};return w.jsxs("div",{ref:A,className:J("w-full relative",!n&&!i.rows&&"h-30",o),children:[n?w.jsx("textarea",{...y,ref:I,rows:1,className:J(Xd({size:l,color:c}),t),disabled:p||R,onInput:N,readOnly:k||g||!1,"aria-invalid":d,style:{overflow:"hidden"}}):w.jsx(ml,{style:{height:"100%"},children:w.jsx("textarea",{...y,ref:I,rows:1,className:J(Xd({size:l,color:c}),t),disabled:p||R,onInput:N,readOnly:k||g||!1,"aria-invalid":d,style:{height:"auto",overflow:"hidden",width:"100%"}})}),!n&&w.jsx("div",{className:"absolute right-0 bottom-0 -translate-x-full -translate-y-full size-1.75 text-sm cursor-se-resize z-10",onMouseDown:C,children:w.jsx(Dy,{})})]})}),Ah=m.forwardRef(({isAction:t=!1,className:o,isDisabled:n=!1,style:i,children:s,...l},c)=>{const{size:d,color:p,isDisabled:g}=Fo(),b=n||g,x=e_({size:d,color:p,isDisabled:b,isAction:t});return w.jsx("div",{ref:c,"data-qui":"InputIcon",className:J(x,o),style:i,role:t||l.onClick?"button":void 0,tabIndex:(t||l.onClick)&&!b?0:void 0,"aria-disabled":b,...l,children:s})}),A_=m.forwardRef(({icon:t,usePortal:o=!1,className:n,children:i,...s},l)=>{const{size:c,color:d,setHasMessage:p,isDisabled:g}=Fo(),b=m.useRef(null),x=m.useRef("bottom"),[I,A]=m.useState(null);m.useEffect(()=>(p(!0),()=>p(!1)),[p]),m.useEffect(()=>{if(!o||!b.current)return;const k=b.current,L=k.closest('[data-qui="Input"]'),y=L==null?void 0:L.querySelector('[data-qui="InputGroup"]'),N=y||L;if(!N)return;const C=!!(y&&k.compareDocumentPosition(y)&Node.DOCUMENT_POSITION_FOLLOWING);x.current=C?"top":"bottom";const S=()=>{const W=N.getBoundingClientRect();A({top:C?W.top:W.bottom,left:W.left,width:W.width})};S();const P=new ResizeObserver(S);return P.observe(N),window.addEventListener("resize",S),window.addEventListener("scroll",S,!0),()=>{P.disconnect(),window.removeEventListener("resize",S),window.removeEventListener("scroll",S,!0)}},[o]);const F=x.current,R=w.jsxs("div",{ref:l,"data-qui":"InputMessage",role:"alert",className:J(t_({size:c,color:d,isDisabled:g,usePortal:o,portalPlacement:F}),n),...s,children:[t!==void 0&&w.jsx("div",{className:J(r_({size:c})),children:t}),w.jsx("p",{children:i})]});return o?w.jsxs(w.Fragment,{children:[w.jsx("span",{ref:b,style:{display:"none"}}),I&&Un.createPortal(w.jsx("div",{"data-qui":"InputMessagePortal",style:{position:"fixed",top:F==="top"?void 0:I.top,bottom:F==="top"?`calc(100vh - ${I.top}px)`:void 0,left:I.left,width:I.width,zIndex:50},children:R}),document.body)]}):R});Rh.displayName="InputRoot";zh.displayName="InputGroup";Dh.displayName="InputField";D_.displayName="InputArea";Ah.displayName="InputIcon";A_.displayName="InputMessage";const ko={Root:Rh,Group:zh,Field:Dh,Icon:Ah},Do={primary:{container:"bg-primary-light",text:"text-primary-dark",icon:"text-primary-dark",button:"hover:bg-primary-hover hover:text-body"},positive:{container:"bg-positive-light",text:"text-positive-dark",icon:"text-positive-dark",button:"hover:bg-positive hover:text-body"},negative:{container:"bg-negative-light",text:"text-negative-dark",icon:"text-negative-dark",button:"hover:bg-negative hover:text-body"},warning:{container:"bg-warning-light",text:"text-warning-dark",icon:"text-warning-dark",button:"hover:bg-warning hover:text-body"}},T_=({color:t})=>J("min-h-6 absolute py-0.5 px-1 rounded whitespace-nowrap flex items-center gap-1",Do[t].container,Do[t].icon),P_=({color:t})=>J("text-xs font-medium leading-3",Do[t].text),j_=({color:t})=>J("p-0.5 rounded cursor-pointer",Do[t].button,Do[t].icon),L_=({label:t,color:o="primary",position:n="up",showCloseButton:i=!1,icon:s,children:l,delay:c=0,trigger:d="hover",className:p,container:g,isHidden:b=!1,usePortal:x=!1})=>{const[I,A]=m.useState(!1),[F,R]=m.useState(!1),[k,L]=m.useState({position:n,transform:""}),y=m.useRef(null),N=m.useRef(null),C=m.useRef(null),S=x||g!=null,P=I&&!b;m.useEffect(()=>{P||R(!1)},[P]);const W=m.useCallback(()=>{if(!y.current||!N.current)return;const E=y.current.getBoundingClientRect(),M=N.current.getBoundingClientRect(),T=window.innerWidth,K=window.innerHeight,j=window.scrollX,X=window.scrollY,$=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth,T),H=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight,K),re=4;let he=n,ue={position:he,transform:""};const _e=Me=>{const{top:Ve,left:lt,width:ee,height:me}=E,Se=S?Ve+X:0,Te=S?lt+j:0;switch(Me){case"up":return{top:`${Se-M.height-re}px`,left:`${Te+ee/2}px`,transform:"translateX(-50%)"};case"up-start":return{top:`${Se-M.height-re}px`,left:`${Te}px`,transform:"translateX(0)"};case"up-end":return{top:`${Se-M.height-re}px`,left:`${Te+ee-M.width}px`,transform:"translateX(0)"};case"down":return{top:`${Se+me+re}px`,left:`${Te+ee/2}px`,transform:"translateX(-50%)"};case"down-start":return{top:`${Se+me+re}px`,left:`${Te}px`,transform:"translateX(0)"};case"down-end":return{top:`${Se+me+re}px`,left:`${Te+ee-M.width}px`,transform:"translateX(0)"};case"left":return{top:`${Se+me/2}px`,left:`${Te-M.width-re}px`,transform:"translateY(-50%)"};case"left-start":return{top:`${Se}px`,left:`${Te-M.width-re}px`,transform:"translateY(0)"};case"left-end":return{top:`${Se+me-M.height}px`,left:`${Te-M.width-re}px`,transform:"translateY(0)"};case"right":return{top:`${Se+me/2}px`,left:`${Te+ee+re}px`,transform:"translateY(-50%)"};case"right-start":return{top:`${Se}px`,left:`${Te+ee+re}px`,transform:"translateY(0)"};case"right-end":return{top:`${Se+me-M.height}px`,left:`${Te+ee+re}px`,transform:"translateY(0)"};default:return{}}},Q={up:{fits:E.top-M.height-re>=0},"up-start":{fits:E.top-M.height-re>=0&&E.left+M.width<=T},"up-end":{fits:E.top-M.height-re>=0&&E.right-M.width>=0},down:{fits:E.bottom+M.height+re<=K&&E.bottom+M.height+re<=H},"down-start":{fits:E.bottom+M.height+re<=K&&E.bottom+M.height+re<=H&&E.left+M.width<=T},"down-end":{fits:E.bottom+M.height+re<=K&&E.bottom+M.height+re<=H&&E.right-M.width>=0},left:{fits:E.left-M.width-re>=0},"left-start":{fits:E.left-M.width-re>=0&&E.top+M.height<=K},"left-end":{fits:E.left-M.width-re>=0&&E.bottom-M.height>=0},right:{fits:E.right+M.width+re<=T&&E.right+M.width+re<=$},"right-start":{fits:E.right+M.width+re<=T&&E.right+M.width+re<=$&&E.top+M.height<=K},"right-end":{fits:E.right+M.width+re<=T&&E.right+M.width+re<=$&&E.bottom-M.height>=0}},be=E.left+E.width/2-M.width/2,le=E.left+E.width/2+M.width/2;if((n==="up"||n==="down")&&(be<0||le>T)&&(Q[n].fits=!1),Q[n].fits){const Me=_e(n);ue={position:n,...Me,transform:Me.transform||""}}else{const Me=["up","up-start","up-end","down","down-start","down-end","right","right-start","right-end","left","left-start","left-end"].find(Ve=>Q[Ve].fits);if(Me){he=Me;const Ve=_e(Me);ue={position:he,...Ve,transform:Ve.transform||""}}else{const Ve={up:E.top,"up-start":E.top,"up-end":E.top,down:Math.min(K-E.bottom,H-E.bottom),"down-start":Math.min(K-E.bottom,H-E.bottom),"down-end":Math.min(K-E.bottom,H-E.bottom),left:E.left,"left-start":E.left,"left-end":E.left,right:Math.min(T-E.right,$-E.right),"right-start":Math.min(T-E.right,$-E.right),"right-end":Math.min(T-E.right,$-E.right)},lt=Object.entries(Ve).reduce((me,[Se,Te])=>Te>me.space?{position:Se,space:Te}:me,{position:"up",space:0}).position;he=lt;const ee=_e(lt);ue={position:he,...ee,transform:ee.transform||""}}}L(ue)},[n,S]),V=()=>{C.current&&(clearTimeout(C.current),C.current=null)},q=()=>{V(),A(!1)},G=()=>{V(),c===0?A(!1):C.current=setTimeout(()=>A(!1),c)},te=()=>{d==="click"&&(A(!0),V(),C.current=setTimeout(()=>{F||A(!1)},c))},pe=E=>{E.stopPropagation(),q()},ye=()=>{R(!0),V()},ce=()=>{R(!1),I&&G()},ie=()=>{d==="hover"&&(V(),A(!0))},ae=()=>{d==="hover"&&G()};m.useEffect(()=>{if(!I||b||!y.current)return;const E=y.current;let M=!1,T=!1;const K=new IntersectionObserver(([j])=>{if(!M){T=j.isIntersecting,M=!0;return}T&&!j.isIntersecting&&q(),T=j.isIntersecting},{threshold:0});return K.observe(E),()=>K.disconnect()},[I,b]),m.useEffect(()=>{if(I){const E=requestAnimationFrame(()=>W());return()=>cancelAnimationFrame(E)}},[I,t,W]),m.useEffect(()=>{if(I){const E=setTimeout(()=>W(),0);return()=>clearTimeout(E)}},[I,W]),m.useEffect(()=>{const E=()=>{I&&W()},M=()=>{I&&W()};return window.addEventListener("resize",E),window.addEventListener("scroll",M,!0),()=>{window.removeEventListener("resize",E),window.removeEventListener("scroll",M,!0),V()}},[I,W]);const xe=g||(typeof document<"u"?document.body:null),ne=I&&!b&&!!t,Ie=w.jsxs("div",{ref:N,role:"tooltip",className:T_({color:o}),style:{position:"absolute",left:k.left??0,top:k.top??0,transform:k.transform,zIndex:1e3,opacity:k.left?1:0,pointerEvents:i?"auto":"none"},onMouseEnter:i?ye:void 0,onMouseLeave:i?ce:void 0,children:[s&&w.jsx("span",{"data-testid":"tooltip-icon",children:s}),w.jsx("div",{className:P_({color:o}),children:t}),i&&w.jsx("div",{onClick:pe,className:j_({color:o}),role:"button",children:w.jsx(Lo,{})})]});return w.jsxs(w.Fragment,{children:[w.jsxs("div",{"data-qui":"Tooltip",ref:y,onClick:te,onMouseEnter:ie,onMouseLeave:ae,className:J("relative inline-flex items-center",p),children:[l,ne&&!S&&Ie]}),ne&&S&&xe&&Un.createPortal(Ie,xe)]})};var np;(function(t){t.DragStart="dragStart",t.DragMove="dragMove",t.DragEnd="dragEnd",t.DragCancel="dragCancel",t.DragOver="dragOver",t.RegisterDroppable="registerDroppable",t.SetDroppableDisabled="setDroppableDisabled",t.UnregisterDroppable="unregisterDroppable"})(np||(np={}));const V_=Object.freeze({x:0,y:0});var Hn;(function(t){t[t.Forward=1]="Forward",t[t.Backward=-1]="Backward"})(Hn||(Hn={}));var op;(function(t){t.Click="click",t.DragStart="dragstart",t.Keydown="keydown",t.ContextMenu="contextmenu",t.Resize="resize",t.SelectionChange="selectionchange",t.VisibilityChange="visibilitychange"})(op||(op={}));var dr;(function(t){t.Space="Space",t.Down="ArrowDown",t.Right="ArrowRight",t.Left="ArrowLeft",t.Up="ArrowUp",t.Esc="Escape",t.Enter="Enter",t.Tab="Tab"})(dr||(dr={}));dr.Space,dr.Enter,dr.Esc,dr.Space,dr.Enter,dr.Tab;var ip;(function(t){t[t.RightClick=2]="RightClick"})(ip||(ip={}));var ap;(function(t){t[t.Pointer=0]="Pointer",t[t.DraggableRect=1]="DraggableRect"})(ap||(ap={}));var sp;(function(t){t[t.TreeOrder=0]="TreeOrder",t[t.ReversedTreeOrder=1]="ReversedTreeOrder"})(sp||(sp={}));Hn.Backward+"",Hn.Forward+"",Hn.Backward+"",Hn.Forward+"";var ll;(function(t){t[t.Always=0]="Always",t[t.BeforeDragging=1]="BeforeDragging",t[t.WhileDragging=2]="WhileDragging"})(ll||(ll={}));var cl;(function(t){t.Optimized="optimized"})(cl||(cl={}));ll.WhileDragging,cl.Optimized;({...V_});var lp;(function(t){t[t.Uninitialized=0]="Uninitialized",t[t.Initializing=1]="Initializing",t[t.Initialized=2]="Initialized"})(lp||(lp={}));dr.Down,dr.Right,dr.Up,dr.Left;const Th={sm:{padding:"px-4 py-0.5",text:"text-xxs",icon:"w-3 h-3",gap:"gap-0.5",badge:"min-w-3.5 h-3.5 text-2"},md:{padding:"px-6 py-1",text:"text-s",icon:"w-4 h-4",gap:"gap-1",badge:"min-w-4.5 h-4.5 text-xxs"},lg:{padding:"px-8 py-1.5",text:"text-base",icon:"w-5 h-5",gap:"gap-1.5",badge:"min-w-5 h-5 text-xs"}},B_={primary:{active:{bg:"bg-primary",text:"text-button-text",border:"border-primary"},inactive:{bg:"bg-input-bg",text:"text-inactive-text",border:"border-transparent"},hover:{bg:"hover:bg-primary-hover",text:"hover:text-button-text"}},positive:{active:{bg:"bg-positive",text:"text-button-text",border:"border-positive"},inactive:{bg:"bg-input-bg",text:"text-inactive-text",border:"border-transparent"},hover:{bg:"hover:bg-positive-hover",text:"hover:text-body"}},warning:{active:{bg:"bg-warning",text:"text-warning-text",border:"border-warning"},inactive:{bg:"bg-input-bg",text:"text-inactive-text",border:"border-transparent"},hover:{bg:"hover:bg-warning-hover",text:"hover:text-body"}},negative:{active:{bg:"bg-negative",text:"text-button-text",border:"border-negative"},inactive:{bg:"bg-input-bg",text:"text-inactive-text",border:"border-transparent"},hover:{bg:"hover:bg-negative-hover",text:"hover:text-body"}}},F_=(t,o,n,i)=>{const s=B_[t],l=Th[o],c="relative inline-flex items-center font-medium cursor-pointer transition-all duration-200";return i?J(c,l.padding,l.text,l.gap,"pointer-events-none cursor-not-allowed opacity-50","bg-card","text-inactive-text"):n?J(c,l.padding,l.text,l.gap,s.active.bg,s.active.text,"shadow-xs"):J(c,l.padding,l.text,l.gap,s.inactive.bg,s.inactive.text,s.hover.bg,s.hover.text)},H_=(t,o)=>J("flex items-center justify-center",Th[t].icon,{"opacity-50":o}),W_=()=>J("whitespace-nowrap"),Ph=(t,o)=>{const n=J("group flex items-center justify-between space-x-4","rounded-t px-2 text-xs","focus:outline-hidden");return t&&!o?J(n,"z-2 border border-b-0 border-tab-border","bg-tab-active-bg font-semibold text-tab-active-fg"):o&&!t?J(n,"border border-transparent bg-tab-inactive-bg text-inactive-text"):J(n,"border border-transparent bg-tab-inactive-bg text-tab-inactive-fg","hover:text-tab-active-fg")},$_=m.createContext(void 0),q_=m.forwardRef(({value:t,label:o,icon:n,disabled:i,children:s,className:l,onClick:c,active:d,onClose:p,closable:g,touched:b,content:x,renderTab:I,...A},F)=>{const R=m.useContext($_);if(!R)return null;const{activeTab:k,onTabChange:L,variant:y,color:N,size:C,showIcons:S,disabled:P}=R,W=d!==void 0?d:k===t,V=i||P,q=G=>{V||(L(t),c==null||c(G))};return y==="file"?w.jsx("div",{"data-qui":"FileTabItem",className:J(Ph(W,!1),"cursor-pointer",l),onClick:G=>!V&&q(G),children:s||w.jsx(w.Fragment,{children:w.jsxs("span",{className:"flex items-center gap-2",children:[n,w.jsx("span",{children:o})]})})}):w.jsxs("button",{ref:F,"data-qui":"TabItem",type:"button",role:"tab","aria-selected":W,"aria-disabled":V,className:J(F_(N,C,W,V||!1),l),onClick:q,disabled:V,...A,children:[S&&n&&w.jsx("span",{className:H_(C,V||!1),children:n}),w.jsx("span",{className:W_(),children:s||o})]})});q_.displayName="TabItem";const U_=m.forwardRef(({isActive:t=!1,isDesactive:o=!1,children:n,...i},s)=>w.jsx("div",{"data-qui":"TabNavContainer",className:Ph(t,o),ref:s,...i,children:n}));U_.displayName="TabNavContainer";var vt=function(){return vt=Object.assign||function(t){for(var o,n=1,i=arguments.length;n<i;n++){o=arguments[n];for(var s in o)Object.prototype.hasOwnProperty.call(o,s)&&(t[s]=o[s])}return t},vt.apply(this,arguments)},cp={width:"100%",height:"10px",top:"0px",left:"0px",cursor:"row-resize"},up={width:"10px",height:"100%",top:"0px",left:"0px",cursor:"col-resize"},Hi={width:"20px",height:"20px",position:"absolute",zIndex:1},K_={top:vt(vt({},cp),{top:"-5px"}),right:vt(vt({},up),{left:void 0,right:"-5px"}),bottom:vt(vt({},cp),{top:void 0,bottom:"-5px"}),left:vt(vt({},up),{left:"-5px"}),topRight:vt(vt({},Hi),{right:"-10px",top:"-10px",cursor:"ne-resize"}),bottomRight:vt(vt({},Hi),{right:"-10px",bottom:"-10px",cursor:"se-resize"}),bottomLeft:vt(vt({},Hi),{left:"-10px",bottom:"-10px",cursor:"sw-resize"}),topLeft:vt(vt({},Hi),{left:"-10px",top:"-10px",cursor:"nw-resize"})},G_=m.memo(function(t){var o=t.onResizeStart,n=t.direction,i=t.children,s=t.replaceStyles,l=t.className,c=m.useCallback(function(g){o(g,n)},[o,n]),d=m.useCallback(function(g){o(g,n)},[o,n]),p=m.useMemo(function(){return vt(vt({position:"absolute",userSelect:"none"},K_[n]),s??{})},[s,n]);return w.jsx("div",{className:l||void 0,style:p,onMouseDown:c,onTouchStart:d,children:i})}),Z_=(function(){var t=function(o,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,s){i.__proto__=s}||function(i,s){for(var l in s)Object.prototype.hasOwnProperty.call(s,l)&&(i[l]=s[l])},t(o,n)};return function(o,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(o,n);function i(){this.constructor=o}o.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}})(),Er=function(){return Er=Object.assign||function(t){for(var o,n=1,i=arguments.length;n<i;n++){o=arguments[n];for(var s in o)Object.prototype.hasOwnProperty.call(o,s)&&(t[s]=o[s])}return t},Er.apply(this,arguments)},Y_={width:"auto",height:"auto"},Wi=function(t,o,n){return Math.max(Math.min(t,n),o)},dp=function(t,o,n){var i=Math.round(t/o);return i*o+n*(i-1)},Pn=function(t,o){return new RegExp(t,"i").test(o)},$i=function(t){return!!(t.touches&&t.touches.length)},X_=function(t){return!!((t.clientX||t.clientX===0)&&(t.clientY||t.clientY===0))},pp=function(t,o,n){n===void 0&&(n=0);var i=o.reduce(function(l,c,d){return Math.abs(c-t)<Math.abs(o[l]-t)?d:l},0),s=Math.abs(o[i]-t);return n===0||s<n?o[i]:t},Gs=function(t){return t=t.toString(),t==="auto"||t.endsWith("px")||t.endsWith("%")||t.endsWith("vh")||t.endsWith("vw")||t.endsWith("vmax")||t.endsWith("vmin")?t:"".concat(t,"px")},qi=function(t,o,n,i){if(t&&typeof t=="string"){if(t.endsWith("px"))return Number(t.replace("px",""));if(t.endsWith("%")){var s=Number(t.replace("%",""))/100;return o*s}if(t.endsWith("vw")){var s=Number(t.replace("vw",""))/100;return n*s}if(t.endsWith("vh")){var s=Number(t.replace("vh",""))/100;return i*s}}return t},J_=function(t,o,n,i,s,l,c){return i=qi(i,t.width,o,n),s=qi(s,t.height,o,n),l=qi(l,t.width,o,n),c=qi(c,t.height,o,n),{maxWidth:typeof i>"u"?void 0:Number(i),maxHeight:typeof s>"u"?void 0:Number(s),minWidth:typeof l>"u"?void 0:Number(l),minHeight:typeof c>"u"?void 0:Number(c)}},Q_=function(t){return Array.isArray(t)?t:[t,t]},eI=["as","ref","style","className","grid","gridGap","snap","bounds","boundsByDirection","size","defaultSize","minWidth","minHeight","maxWidth","maxHeight","lockAspectRatio","lockAspectRatioExtraWidth","lockAspectRatioExtraHeight","enable","handleStyles","handleClasses","handleWrapperStyle","handleWrapperClass","children","onResizeStart","onResize","onResizeStop","handleComponent","scale","resizeRatio","snapGap"],hp="__resizable_base__",tI=(function(t){Z_(o,t);function o(n){var i,s,l,c,d=t.call(this,n)||this;return d.ratio=1,d.resizable=null,d.parentLeft=0,d.parentTop=0,d.resizableLeft=0,d.resizableRight=0,d.resizableTop=0,d.resizableBottom=0,d.targetLeft=0,d.targetTop=0,d.delta={width:0,height:0},d.appendBase=function(){if(!d.resizable||!d.window)return null;var p=d.parentNode;if(!p)return null;var g=d.window.document.createElement("div");return g.style.width="100%",g.style.height="100%",g.style.position="absolute",g.style.transform="scale(0, 0)",g.style.left="0",g.style.flex="0 0 100%",g.classList?g.classList.add(hp):g.className+=hp,p.appendChild(g),g},d.removeBase=function(p){var g=d.parentNode;g&&g.removeChild(p)},d.state={isResizing:!1,width:(s=(i=d.propsSize)===null||i===void 0?void 0:i.width)!==null&&s!==void 0?s:"auto",height:(c=(l=d.propsSize)===null||l===void 0?void 0:l.height)!==null&&c!==void 0?c:"auto",direction:"right",original:{x:0,y:0,width:0,height:0},backgroundStyle:{height:"100%",width:"100%",backgroundColor:"rgba(0,0,0,0)",cursor:"auto",opacity:0,position:"fixed",zIndex:9999,top:"0",left:"0",bottom:"0",right:"0"},flexBasis:void 0},d.onResizeStart=d.onResizeStart.bind(d),d.onMouseMove=d.onMouseMove.bind(d),d.onMouseUp=d.onMouseUp.bind(d),d}return Object.defineProperty(o.prototype,"parentNode",{get:function(){return this.resizable?this.resizable.parentNode:null},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"window",{get:function(){return!this.resizable||!this.resizable.ownerDocument?null:this.resizable.ownerDocument.defaultView},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"propsSize",{get:function(){return this.props.size||this.props.defaultSize||Y_},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"size",{get:function(){var n=0,i=0;if(this.resizable&&this.window){var s=this.resizable.offsetWidth,l=this.resizable.offsetHeight,c=this.resizable.style.position;c!=="relative"&&(this.resizable.style.position="relative"),n=this.resizable.style.width!=="auto"?this.resizable.offsetWidth:s,i=this.resizable.style.height!=="auto"?this.resizable.offsetHeight:l,this.resizable.style.position=c}return{width:n,height:i}},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"sizeStyle",{get:function(){var n=this,i=this.props.size,s=function(d){var p;if(typeof n.state[d]>"u"||n.state[d]==="auto")return"auto";if(n.propsSize&&n.propsSize[d]&&!((p=n.propsSize[d])===null||p===void 0)&&p.toString().endsWith("%")){if(n.state[d].toString().endsWith("%"))return n.state[d].toString();var g=n.getParentSize(),b=Number(n.state[d].toString().replace("px","")),x=b/g[d]*100;return"".concat(x,"%")}return Gs(n.state[d])},l=i&&typeof i.width<"u"&&!this.state.isResizing?Gs(i.width):s("width"),c=i&&typeof i.height<"u"&&!this.state.isResizing?Gs(i.height):s("height");return{width:l,height:c}},enumerable:!1,configurable:!0}),o.prototype.getParentSize=function(){if(!this.parentNode)return this.window?{width:this.window.innerWidth,height:this.window.innerHeight}:{width:0,height:0};var n=this.appendBase();if(!n)return{width:0,height:0};var i=!1,s=this.parentNode.style.flexWrap;s!=="wrap"&&(i=!0,this.parentNode.style.flexWrap="wrap"),n.style.position="relative",n.style.minWidth="100%",n.style.minHeight="100%";var l={width:n.offsetWidth,height:n.offsetHeight};return i&&(this.parentNode.style.flexWrap=s),this.removeBase(n),l},o.prototype.bindEvents=function(){this.window&&(this.window.addEventListener("mouseup",this.onMouseUp),this.window.addEventListener("mousemove",this.onMouseMove),this.window.addEventListener("mouseleave",this.onMouseUp),this.window.addEventListener("touchmove",this.onMouseMove,{capture:!0,passive:!1}),this.window.addEventListener("touchend",this.onMouseUp))},o.prototype.unbindEvents=function(){this.window&&(this.window.removeEventListener("mouseup",this.onMouseUp),this.window.removeEventListener("mousemove",this.onMouseMove),this.window.removeEventListener("mouseleave",this.onMouseUp),this.window.removeEventListener("touchmove",this.onMouseMove,!0),this.window.removeEventListener("touchend",this.onMouseUp))},o.prototype.componentDidMount=function(){if(!(!this.resizable||!this.window)){var n=this.window.getComputedStyle(this.resizable);this.setState({width:this.state.width||this.size.width,height:this.state.height||this.size.height,flexBasis:n.flexBasis!=="auto"?n.flexBasis:void 0})}},o.prototype.componentWillUnmount=function(){this.window&&this.unbindEvents()},o.prototype.createSizeForCssProperty=function(n,i){var s=this.propsSize&&this.propsSize[i];return this.state[i]==="auto"&&this.state.original[i]===n&&(typeof s>"u"||s==="auto")?"auto":n},o.prototype.calculateNewMaxFromBoundary=function(n,i){var s=this.props.boundsByDirection,l=this.state.direction,c=s&&Pn("left",l),d=s&&Pn("top",l),p,g;if(this.props.bounds==="parent"){var b=this.parentNode;b&&(p=c?this.resizableRight-this.parentLeft:b.offsetWidth+(this.parentLeft-this.resizableLeft),g=d?this.resizableBottom-this.parentTop:b.offsetHeight+(this.parentTop-this.resizableTop))}else this.props.bounds==="window"?this.window&&(p=c?this.resizableRight:this.window.innerWidth-this.resizableLeft,g=d?this.resizableBottom:this.window.innerHeight-this.resizableTop):this.props.bounds&&(p=c?this.resizableRight-this.targetLeft:this.props.bounds.offsetWidth+(this.targetLeft-this.resizableLeft),g=d?this.resizableBottom-this.targetTop:this.props.bounds.offsetHeight+(this.targetTop-this.resizableTop));return p&&Number.isFinite(p)&&(n=n&&n<p?n:p),g&&Number.isFinite(g)&&(i=i&&i<g?i:g),{maxWidth:n,maxHeight:i}},o.prototype.calculateNewSizeFromDirection=function(n,i){var s=this.props.scale||1,l=Q_(this.props.resizeRatio||1),c=l[0],d=l[1],p=this.state,g=p.direction,b=p.original,x=this.props,I=x.lockAspectRatio,A=x.lockAspectRatioExtraHeight,F=x.lockAspectRatioExtraWidth,R=b.width,k=b.height,L=A||0,y=F||0;return Pn("right",g)&&(R=b.width+(n-b.x)*c/s,I&&(k=(R-y)/this.ratio+L)),Pn("left",g)&&(R=b.width-(n-b.x)*c/s,I&&(k=(R-y)/this.ratio+L)),Pn("bottom",g)&&(k=b.height+(i-b.y)*d/s,I&&(R=(k-L)*this.ratio+y)),Pn("top",g)&&(k=b.height-(i-b.y)*d/s,I&&(R=(k-L)*this.ratio+y)),{newWidth:R,newHeight:k}},o.prototype.calculateNewSizeFromAspectRatio=function(n,i,s,l){var c=this.props,d=c.lockAspectRatio,p=c.lockAspectRatioExtraHeight,g=c.lockAspectRatioExtraWidth,b=typeof l.width>"u"?10:l.width,x=typeof s.width>"u"||s.width<0?n:s.width,I=typeof l.height>"u"?10:l.height,A=typeof s.height>"u"||s.height<0?i:s.height,F=p||0,R=g||0;if(d){var k=(I-F)*this.ratio+R,L=(A-F)*this.ratio+R,y=(b-R)/this.ratio+F,N=(x-R)/this.ratio+F,C=Math.max(b,k),S=Math.min(x,L),P=Math.max(I,y),W=Math.min(A,N);n=Wi(n,C,S),i=Wi(i,P,W)}else n=Wi(n,b,x),i=Wi(i,I,A);return{newWidth:n,newHeight:i}},o.prototype.setBoundingClientRect=function(){var n=1/(this.props.scale||1);if(this.props.bounds==="parent"){var i=this.parentNode;if(i){var s=i.getBoundingClientRect();this.parentLeft=s.left*n,this.parentTop=s.top*n}}if(this.props.bounds&&typeof this.props.bounds!="string"){var l=this.props.bounds.getBoundingClientRect();this.targetLeft=l.left*n,this.targetTop=l.top*n}if(this.resizable){var c=this.resizable.getBoundingClientRect(),d=c.left,p=c.top,g=c.right,b=c.bottom;this.resizableLeft=d*n,this.resizableRight=g*n,this.resizableTop=p*n,this.resizableBottom=b*n}},o.prototype.onResizeStart=function(n,i){if(!(!this.resizable||!this.window)){var s=0,l=0;if(n.nativeEvent&&X_(n.nativeEvent)?(s=n.nativeEvent.clientX,l=n.nativeEvent.clientY):n.nativeEvent&&$i(n.nativeEvent)&&(s=n.nativeEvent.touches[0].clientX,l=n.nativeEvent.touches[0].clientY),this.props.onResizeStart&&this.resizable){var c=this.props.onResizeStart(n,i,this.resizable);if(c===!1)return}this.props.size&&(typeof this.props.size.height<"u"&&this.props.size.height!==this.state.height&&this.setState({height:this.props.size.height}),typeof this.props.size.width<"u"&&this.props.size.width!==this.state.width&&this.setState({width:this.props.size.width})),this.ratio=typeof this.props.lockAspectRatio=="number"?this.props.lockAspectRatio:this.size.width/this.size.height;var d,p=this.window.getComputedStyle(this.resizable);if(p.flexBasis!=="auto"){var g=this.parentNode;if(g){var b=this.window.getComputedStyle(g).flexDirection;this.flexDir=b.startsWith("row")?"row":"column",d=p.flexBasis}}this.setBoundingClientRect(),this.bindEvents();var x={original:{x:s,y:l,width:this.size.width,height:this.size.height},isResizing:!0,backgroundStyle:Er(Er({},this.state.backgroundStyle),{cursor:this.window.getComputedStyle(n.target).cursor||"auto"}),direction:i,flexBasis:d};this.setState(x)}},o.prototype.onMouseMove=function(n){var i=this;if(!(!this.state.isResizing||!this.resizable||!this.window)){if(this.window.TouchEvent&&$i(n))try{n.preventDefault(),n.stopPropagation()}catch{}var s=this.props,l=s.maxWidth,c=s.maxHeight,d=s.minWidth,p=s.minHeight,g=$i(n)?n.touches[0].clientX:n.clientX,b=$i(n)?n.touches[0].clientY:n.clientY,x=this.state,I=x.direction,A=x.original,F=x.width,R=x.height,k=this.getParentSize(),L=J_(k,this.window.innerWidth,this.window.innerHeight,l,c,d,p);l=L.maxWidth,c=L.maxHeight,d=L.minWidth,p=L.minHeight;var y=this.calculateNewSizeFromDirection(g,b),N=y.newHeight,C=y.newWidth,S=this.calculateNewMaxFromBoundary(l,c);this.props.snap&&this.props.snap.x&&(C=pp(C,this.props.snap.x,this.props.snapGap)),this.props.snap&&this.props.snap.y&&(N=pp(N,this.props.snap.y,this.props.snapGap));var P=this.calculateNewSizeFromAspectRatio(C,N,{width:S.maxWidth,height:S.maxHeight},{width:d,height:p});if(C=P.newWidth,N=P.newHeight,this.props.grid){var W=dp(C,this.props.grid[0],this.props.gridGap?this.props.gridGap[0]:0),V=dp(N,this.props.grid[1],this.props.gridGap?this.props.gridGap[1]:0),q=this.props.snapGap||0,G=q===0||Math.abs(W-C)<=q?W:C,te=q===0||Math.abs(V-N)<=q?V:N;C=G,N=te}var pe={width:C-A.width,height:N-A.height};if(this.delta=pe,F&&typeof F=="string"){if(F.endsWith("%")){var ye=C/k.width*100;C="".concat(ye,"%")}else if(F.endsWith("vw")){var ce=C/this.window.innerWidth*100;C="".concat(ce,"vw")}else if(F.endsWith("vh")){var ie=C/this.window.innerHeight*100;C="".concat(ie,"vh")}}if(R&&typeof R=="string"){if(R.endsWith("%")){var ye=N/k.height*100;N="".concat(ye,"%")}else if(R.endsWith("vw")){var ce=N/this.window.innerWidth*100;N="".concat(ce,"vw")}else if(R.endsWith("vh")){var ie=N/this.window.innerHeight*100;N="".concat(ie,"vh")}}var ae={width:this.createSizeForCssProperty(C,"width"),height:this.createSizeForCssProperty(N,"height")};this.flexDir==="row"?ae.flexBasis=ae.width:this.flexDir==="column"&&(ae.flexBasis=ae.height);var xe=this.state.width!==ae.width,ne=this.state.height!==ae.height,Ie=this.state.flexBasis!==ae.flexBasis,E=xe||ne||Ie;E&&Un.flushSync(function(){i.setState(ae)}),this.props.onResize&&E&&this.props.onResize(n,I,this.resizable,pe)}},o.prototype.onMouseUp=function(n){var i,s,l=this.state,c=l.isResizing,d=l.direction;l.original,!(!c||!this.resizable)&&(this.props.onResizeStop&&this.props.onResizeStop(n,d,this.resizable,this.delta),this.props.size&&this.setState({width:(i=this.props.size.width)!==null&&i!==void 0?i:"auto",height:(s=this.props.size.height)!==null&&s!==void 0?s:"auto"}),this.unbindEvents(),this.setState({isResizing:!1,backgroundStyle:Er(Er({},this.state.backgroundStyle),{cursor:"auto"})}))},o.prototype.updateSize=function(n){var i,s;this.setState({width:(i=n.width)!==null&&i!==void 0?i:"auto",height:(s=n.height)!==null&&s!==void 0?s:"auto"})},o.prototype.renderResizer=function(){var n=this,i=this.props,s=i.enable,l=i.handleStyles,c=i.handleClasses,d=i.handleWrapperStyle,p=i.handleWrapperClass,g=i.handleComponent;if(!s)return null;var b=Object.keys(s).map(function(x){return s[x]!==!1?w.jsx(G_,{direction:x,onResizeStart:n.onResizeStart,replaceStyles:l&&l[x],className:c&&c[x],children:g&&g[x]?g[x]:null},x):null});return w.jsx("div",{className:p,style:d,children:b})},o.prototype.render=function(){var n=this,i=Object.keys(this.props).reduce(function(c,d){return eI.indexOf(d)!==-1||(c[d]=n.props[d]),c},{}),s=Er(Er(Er({position:"relative",userSelect:this.state.isResizing?"none":"auto"},this.props.style),this.sizeStyle),{maxWidth:this.props.maxWidth,maxHeight:this.props.maxHeight,minWidth:this.props.minWidth,minHeight:this.props.minHeight,boxSizing:"border-box",flexShrink:0});this.state.flexBasis&&(s.flexBasis=this.state.flexBasis);var l=this.props.as||"div";return w.jsxs(l,Er({style:s,className:this.props.className},i,{ref:function(c){c&&(n.resizable=c)},children:[this.state.isResizing&&w.jsx("div",{style:this.state.backgroundStyle}),this.props.children,this.renderResizer()]}))},o.defaultProps={as:"div",onResizeStart:function(){},onResize:function(){},onResizeStop:function(){},enable:{top:!0,right:!0,bottom:!0,left:!0,topRight:!0,bottomRight:!0,bottomLeft:!0,topLeft:!0},style:{},grid:[1,1],gridGap:[0,0],lockAspectRatio:!1,lockAspectRatioExtraWidth:0,lockAspectRatioExtraHeight:0,scale:1,resizeRatio:1,snapGap:0},o})(m.PureComponent);const rI={0:"bg-panel-0",1:"bg-panel-1",2:"bg-panel-2",3:"bg-panel-3",4:"bg-panel-4",5:"bg-panel-5"},nI={tabs:"border-tab-border",primary:"border-primary",negative:"border-input-error-border",positive:"border-positive",light:"border-panel-border-subtle",default:"border-panel-border"},jh=({depth:t=0,className:o,borderType:n,disabled:i})=>J("transition-colors duration-200",{"text-body":!i,"text-inactive-text":i},n?nI[n]:"border-panel-border",rI[t],o),oI=t=>{if(!t)return{};const o={},n=t.match(/min-w-\[(\d+)px\]/);n&&(o.minWidth=parseInt(n[1],10));const i=t.match(/max-w-\[(\d+)px\]/);i&&(o.maxWidth=parseInt(i[1],10));const s=t.match(/min-h-\[(\d+)px\]/);s&&(o.minHeight=parseInt(s[1],10));const l=t.match(/max-h-\[(\d+)px\]/);return l&&(o.maxHeight=parseInt(l[1],10)),o},iI=m.forwardRef(({children:t,width:o,height:n,minWidth:i=10,minHeight:s=10,maxWidth:l,maxHeight:c,defaultWidth:d,defaultHeight:p,defaultSize:g,size:b,grid:x,snap:I,lockAspectRatio:A=!1,enable:F,handleStyles:R={},handleClasses:k={},handleComponent:L={},style:y={},className:N,onResizeStart:C,onResize:S,onResizeStop:P,scale:W=1,bounds:V,snapGap:q,as:G="div",depth:te,disabled:pe},ye)=>{const ce=jh({depth:te,className:N,disabled:pe}),ie=oI(N),ae=b?{size:b}:o!==void 0||n!==void 0?{size:{width:o??"auto",height:n??"auto"}}:{},xe=g?{defaultSize:g}:d!==void 0||p!==void 0?{defaultSize:{width:d??"auto",height:p??"auto"}}:{},ne=m.useRef(null);return m.useImperativeHandle(ye,()=>{var Ie;return(Ie=ne.current)==null?void 0:Ie.resizable}),w.jsx(tI,{"data-qui":"Resizable",ref:ne,...ae,...xe,minWidth:i??ie.minWidth,minHeight:s??ie.minHeight,maxWidth:l??ie.maxWidth,maxHeight:c??ie.maxHeight,grid:x,snap:I,lockAspectRatio:A,enable:F,handleStyles:R,handleClasses:k,handleComponent:L,style:y,className:J("relative box-border",ce),onResizeStart:C,onResize:S,onResizeStop:P,scale:W,bounds:V,snapGap:q,as:G,children:t})});iI.displayName="Resizable";const jn={sm:{track:"h-4 w-7",thumb:"size-3",thumbUnchecked:"left-0.5",thumbChecked:"left-3.5",label:"text-xs",gap:"gap-2"},md:{track:"h-5 w-9",thumb:"size-4",thumbUnchecked:"left-0.5",thumbChecked:"left-4.5",label:"text-sm",gap:"gap-2.5"},lg:{track:"h-6 w-11",thumb:"size-5",thumbUnchecked:"left-0.5",thumbChecked:"left-5.5",label:"text-base",gap:"gap-3"}},Ui={primary:{bg:"bg-primary",thumb:"group-hover:bg-primary-light",icon:"text-primary"},positive:{bg:"bg-positive",thumb:"group-hover:bg-positive-light",icon:"text-positive"},warning:{bg:"bg-warning",thumb:"group-hover:bg-warning-light",icon:"text-warning"},negative:{bg:"bg-negative",thumb:"group-hover:bg-negative-light",icon:"text-negative"}},aI=(t,o,n,i,s,l)=>({container:J("inline-flex items-center",jn[t].gap,l),track:J("relative inline-flex items-center shrink-0 group","transition-colors duration-200 ease-in-out","focus:outline-hidden focus-visible:ring-2 focus-visible:ring-primary focus-visible:ring-offset-2","border border-input-border rounded-full justify-between",jn[t].track,{[Ui[o].bg]:n&&!i&&!s,"bg-input-bg":!n&&!i||s,"bg-panel cursor-not-allowed":i,"cursor-pointer":!i}),thumb:J("bg-input-text pointer-events-none inline-flex items-center justify-center shadow-xs","transition-all duration-200 ease-in-out","rounded-full absolute",jn[t].thumb,n?jn[t].thumbChecked:jn[t].thumbUnchecked,{[Ui[o].thumb]:!i,"bg-canvas-subtle":i}),iconLeft:J("flex items-center justify-center z-10 w-1/2 p-0.5",{[Ui[o].icon]:!n&&!i,"text-panel-subtle":i||n}),iconRight:J("flex items-center justify-center z-10 w-1/2 p-0.5",{[Ui[o].icon]:n&&!i,"text-panel-subtle":i||!n}),label:J("font-medium text-body",jn[t].label,{"cursor-pointer":!i,"cursor-not-allowed text-muted":i})}),Lh=m.forwardRef(({label:t,checked:o,defaultChecked:n=!1,disabled:i=!1,size:s="md",color:l="primary",icons:c,onChange:d,className:p,id:g,name:b,...x},I)=>{const[A,F]=m.useState(n),R=o!==void 0,k=R?o:A,L=()=>{const N=!k;R||F(N),d==null||d(N)},y=aI(s,l,k,i,!!c,p);return w.jsxs("div",{"data-qui":"Toggle",className:y.container,children:[t&&w.jsx("label",{htmlFor:g,className:y.label,children:t}),w.jsxs("button",{ref:I,...x,type:"button",role:"switch","aria-checked":k,"aria-label":t,disabled:i,onClick:L,name:b,id:g,className:y.track,children:[c&&w.jsx("span",{className:y.iconLeft,children:c.unchecked}),w.jsx("span",{className:y.thumb,"aria-hidden":"true"}),c&&w.jsx("span",{className:y.iconRight,children:c.checked})]})]})});Lh.displayName="Toggle";m.createContext(null);const ul=m.forwardRef(({depth:t=0,className:o,children:n,borderType:i,disabled:s,...l},c)=>{const d=jh({depth:t,className:o,borderType:i,disabled:s});return w.jsx("div",{"data-qui":"Panel",ref:c,className:d,"aria-disabled":s,...l,children:n})});ul.displayName="Panel";const Ao={sm:{container:"h-5 px-0.5 gap-1 rounded",text:"text-xxs leading-3",icon:"text-s",iconButton:"text-s p-0.5 cursor-pointer"},md:{container:"h-5.5 px-1 gap-1 rounded",text:"text-xs leading-4",icon:"text-sm",iconButton:" text-sm p-0.5 cursor-pointer"},lg:{container:"h-6 px-1.5 gap-1.5 rounded",text:"text-s leading-none",icon:"text-base",iconButton:"text-base p-0.5 cursor-pointer"}},ta={primary:{bg:"bg-primary",text:"text-button-text",border:"border-primary",buttonHover:"hover:bg-primary-hover"},white:{bg:"bg-canvas-default",text:"text-primary",border:"border-canvas-default",buttonHover:"hover:bg-primary-hover hover:text-button-text"},positive:{bg:"bg-positive",text:"text-button-text",border:"border-positive",buttonHover:"hover:bg-positive-hover"},warning:{bg:"bg-warning",text:"text-button-text",border:"border-warning",buttonHover:"hover:bg-warning-hover"},negative:{bg:"bg-negative",text:"text-button-text",border:"border-negative",buttonHover:"hover:bg-negative-hover"},grey:{bg:"bg-input-bg",text:"text-input-text",border:"border-input-border",buttonHover:"hover:bg-input-hover"},dark:{bg:"bg-tab-inactive-bg",text:"text-input-text",border:"border-input-border",buttonHover:"hover:bg-primary-hover hover:text-button-text"}},sI=(t,o,n,i)=>J("inline-flex items-center justify-center font-medium border",Ao[t].container,ta[o].bg,ta[o].text,ta[o].border,Ao[t].text,{"opacity-60 pointer-events-none":n,"cursor-pointer hover:bg-opacity-90 transition-opacity":i&&!n}),lI=(t,o,n)=>J({[Ao[t].icon]:!n,"bg-canvas-default outline-canvas-default text-primary":n&&o!=="white"||n,"bg-primary outline-primary text-button-text":n&&o==="white"&&!n,"outline-solid outline-1 h-full py-0.5 grid place-items-center -my-1 only:-mx-0.5 first:-ml-1.5 last:-mr-1.5 only:rounded first:rounded-l last:rounded-r":n||n}),cI=t=>J(Ao[t].text),Vh=(t,o,n)=>J("inline-flex items-center justify-center rounded transition-colors duration-200 focus:outline-hidden ",Ao[t].iconButton,ta[o].buttonHover,{"pointer-events-none":n}),Bh=m.createContext(null),ya=()=>{const t=m.useContext(Bh);if(!t)throw new Error("Pill components must be used within a Pill.Root");return t},bl=m.forwardRef(({size:t="md",color:o="primary",className:n,children:i,disabled:s=!1,onClick:l,...c},d)=>{const p={size:t,color:o,disabled:s},g=!!l;return w.jsx(Bh.Provider,{value:p,children:w.jsx("div",{"data-qui":"Pill",ref:d,onClick:l,className:J(sI(t,o,s,g),n),...c,children:i})})});bl.displayName="Pill.Root";const wl=m.forwardRef(({className:t,children:o,...n},i)=>{const{size:s}=ya();return w.jsx("span",{ref:i,className:J(cI(s),t),...n,children:o})});wl.displayName="Pill.Text";const xl=m.forwardRef(({className:t,children:o,label:n,position:i,...s},l)=>{const{size:c,color:d,disabled:p}=ya(),g=!!n,b=w.jsx("span",{ref:l,className:J(lI(c,d,g),t,{"opacity-60":p}),...s,children:o});return g&&!p?w.jsx(L_,{label:n||"",position:i||"up",children:b}):b});xl.displayName="Pill.Icon";const Fh=m.forwardRef(({className:t,children:o,...n},i)=>{const{size:s,color:l,disabled:c}=ya();return w.jsx("button",{ref:i,type:"button",disabled:c,className:J(Vh(s,l,c),t),...n,children:o})});Fh.displayName="Pill.Button";const yl=m.forwardRef(({className:t,onClose:o,"aria-label":n="Remove pill",children:i,...s},l)=>{const{size:c,color:d,disabled:p}=ya();return w.jsx("button",{ref:l,type:"button",disabled:p,className:J(Vh(c,d,p),t),onClick:o,"aria-label":n,...s,children:i||w.jsx(Lo,{})})});yl.displayName="Pill.Close";const Hh=m.forwardRef(({size:t="md",color:o="primary",label:n,icon:i,onClose:s,closable:l=!1,className:c,children:d,disabled:p=!1,...g},b)=>w.jsxs(bl,{ref:b,size:t,color:o,className:c,disabled:p,...g,children:[i&&w.jsx(xl,{children:i}),d||n&&w.jsx(wl,{children:n}),l&&w.jsx(yl,{onClose:s})]}));Hh.displayName="Pill";Object.assign(Hh,{Root:bl,Text:wl,Icon:xl,Button:Fh,Close:yl});function Ln(t,o,n){let i=n.initialDeps??[],s,l=!0;function c(){var d,p,g;let b;n.key&&(d=n.debug)!=null&&d.call(n)&&(b=Date.now());const x=t();if(!(x.length!==i.length||x.some((A,F)=>i[F]!==A)))return s;i=x;let I;if(n.key&&(p=n.debug)!=null&&p.call(n)&&(I=Date.now()),s=o(...x),n.key&&(g=n.debug)!=null&&g.call(n)){const A=Math.round((Date.now()-b)*100)/100,F=Math.round((Date.now()-I)*100)/100,R=F/16,k=(L,y)=>{for(L=String(L);L.length<y;)L=" "+L;return L};console.info(`%c⏱ ${k(F,5)} /${k(A,5)} ms`,`
|
|
41
41
|
font-size: .6rem;
|
|
42
42
|
font-weight: bold;
|
|
43
|
-
color: hsl(${Math.max(0,Math.min(120-120*z,120))}deg 100% 31%);`,n==null?void 0:n.key)}return n!=null&&n.onChange&&!(l&&n.skipInitialOnChange)&&n.onChange(s),l=!1,s}return c.updateDeps=d=>{o=d},c}function Ud(r,i){if(r===void 0)throw new Error("Unexpected undefined");return r}const D_=(r,i)=>Math.abs(r-i)<1.01,A_=(r,i,n)=>{let o;return function(...s){r.clearTimeout(o),o=r.setTimeout(()=>i.apply(this,s),n)}},Gd=r=>{const{offsetWidth:i,offsetHeight:n}=r;return{width:i,height:n}},T_=r=>r,P_=r=>{const i=Math.max(r.startIndex-r.overscan,0),n=Math.min(r.endIndex+r.overscan,r.count-1),o=[];for(let s=i;s<=n;s++)o.push(s);return o},L_=(r,i)=>{const n=r.scrollElement;if(!n)return;const o=r.targetWindow;if(!o)return;const s=c=>{const{width:d,height:h}=c;i({width:Math.round(d),height:Math.round(h)})};if(s(Gd(n)),!o.ResizeObserver)return()=>{};const l=new o.ResizeObserver(c=>{const d=()=>{const h=c[0];if(h!=null&&h.borderBoxSize){const v=h.borderBoxSize[0];if(v){s({width:v.inlineSize,height:v.blockSize});return}}s(Gd(n))};r.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(d):d()});return l.observe(n,{box:"border-box"}),()=>{l.unobserve(n)}},qd={passive:!0},Zd=typeof window>"u"?!0:"onscrollend"in window,j_=(r,i)=>{const n=r.scrollElement;if(!n)return;const o=r.targetWindow;if(!o)return;let s=0;const l=r.options.useScrollendEvent&&Zd?()=>{}:A_(o,()=>{i(s,!1)},r.options.isScrollingResetDelay),c=m=>()=>{const{horizontal:w,isRtl:S}=r.options;s=w?n.scrollLeft*(S&&-1||1):n.scrollTop,l(),i(s,m)},d=c(!0),h=c(!1);n.addEventListener("scroll",d,qd);const v=r.options.useScrollendEvent&&Zd;return v&&n.addEventListener("scrollend",h,qd),()=>{n.removeEventListener("scroll",d),v&&n.removeEventListener("scrollend",h)}},B_=(r,i,n)=>{if(i!=null&&i.borderBoxSize){const o=i.borderBoxSize[0];if(o)return Math.round(o[n.options.horizontal?"inlineSize":"blockSize"])}return r[n.options.horizontal?"offsetWidth":"offsetHeight"]},V_=(r,{adjustments:i=0,behavior:n},o)=>{var s,l;const c=r+i;(l=(s=o.scrollElement)==null?void 0:s.scrollTo)==null||l.call(s,{[o.options.horizontal?"left":"top"]:c,behavior:n})};class F_{constructor(i){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.scrollState=null,this.measurementsCache=[],this.itemSizeCache=new Map,this.laneAssignments=new Map,this.pendingMeasuredCacheIndexes=[],this.prevLanes=void 0,this.lanesChangedFlag=!1,this.lanesSettling=!1,this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this.elementsCache=new Map,this.now=()=>{var n,o,s;return((s=(o=(n=this.targetWindow)==null?void 0:n.performance)==null?void 0:o.now)==null?void 0:s.call(o))??Date.now()},this.observer=(()=>{let n=null;const o=()=>n||(!this.targetWindow||!this.targetWindow.ResizeObserver?null:n=new this.targetWindow.ResizeObserver(s=>{s.forEach(l=>{const c=()=>{const d=l.target,h=this.indexFromElement(d);if(!d.isConnected){this.observer.unobserve(d);return}this.shouldMeasureDuringScroll(h)&&this.resizeItem(h,this.options.measureElement(d,l,this))};this.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(c):c()})}));return{disconnect:()=>{var s;(s=o())==null||s.disconnect(),n=null},observe:s=>{var l;return(l=o())==null?void 0:l.observe(s,{box:"border-box"})},unobserve:s=>{var l;return(l=o())==null?void 0:l.unobserve(s)}}})(),this.range=null,this.setOptions=n=>{Object.entries(n).forEach(([o,s])=>{typeof s>"u"&&delete n[o]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:T_,rangeExtractor:P_,onChange:()=>{},measureElement:B_,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!1,useAnimationFrameWithResizeObserver:!1,...n}},this.notify=n=>{var o,s;(s=(o=this.options).onChange)==null||s.call(o,this,n)},this.maybeNotify=Pn(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),n=>{this.notify(n)},{key:process.env.NODE_ENV!=="production"&&"maybeNotify",debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(n=>n()),this.unsubs=[],this.observer.disconnect(),this.rafId!=null&&this.targetWindow&&(this.targetWindow.cancelAnimationFrame(this.rafId),this.rafId=null),this.scrollState=null,this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var n;const o=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==o){if(this.cleanup(),!o){this.maybeNotify();return}this.scrollElement=o,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=((n=this.scrollElement)==null?void 0:n.window)??null,this.elementsCache.forEach(s=>{this.observer.observe(s)}),this.unsubs.push(this.options.observeElementRect(this,s=>{this.scrollRect=s,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(s,l)=>{this.scrollAdjustments=0,this.scrollDirection=l?this.getScrollOffset()<s?"forward":"backward":null,this.scrollOffset=s,this.isScrolling=l,this.scrollState&&this.scheduleScrollReconcile(),this.maybeNotify()})),this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0})}},this.rafId=null,this.getSize=()=>this.options.enabled?(this.scrollRect=this.scrollRect??this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0),this.getScrollOffset=()=>this.options.enabled?(this.scrollOffset=this.scrollOffset??(typeof this.options.initialOffset=="function"?this.options.initialOffset():this.options.initialOffset),this.scrollOffset):(this.scrollOffset=null,0),this.getFurthestMeasurement=(n,o)=>{const s=new Map,l=new Map;for(let c=o-1;c>=0;c--){const d=n[c];if(s.has(d.lane))continue;const h=l.get(d.lane);if(h==null||d.end>h.end?l.set(d.lane,d):d.end<h.end&&s.set(d.lane,!0),s.size===this.options.lanes)break}return l.size===this.options.lanes?Array.from(l.values()).sort((c,d)=>c.end===d.end?c.index-d.index:c.end-d.end)[0]:void 0},this.getMeasurementOptions=Pn(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled,this.options.lanes],(n,o,s,l,c,d)=>(this.prevLanes!==void 0&&this.prevLanes!==d&&(this.lanesChangedFlag=!0),this.prevLanes=d,this.pendingMeasuredCacheIndexes=[],{count:n,paddingStart:o,scrollMargin:s,getItemKey:l,enabled:c,lanes:d}),{key:!1}),this.getMeasurements=Pn(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:n,paddingStart:o,scrollMargin:s,getItemKey:l,enabled:c,lanes:d},h)=>{if(!c)return this.measurementsCache=[],this.itemSizeCache.clear(),this.laneAssignments.clear(),[];if(this.laneAssignments.size>n)for(const S of this.laneAssignments.keys())S>=n&&this.laneAssignments.delete(S);this.lanesChangedFlag&&(this.lanesChangedFlag=!1,this.lanesSettling=!0,this.measurementsCache=[],this.itemSizeCache.clear(),this.laneAssignments.clear(),this.pendingMeasuredCacheIndexes=[]),this.measurementsCache.length===0&&!this.lanesSettling&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(S=>{this.itemSizeCache.set(S.key,S.size)}));const v=this.lanesSettling?0:this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[],this.lanesSettling&&this.measurementsCache.length===n&&(this.lanesSettling=!1);const m=this.measurementsCache.slice(0,v),w=new Array(d).fill(void 0);for(let S=0;S<v;S++){const D=m[S];D&&(w[D.lane]=S)}for(let S=v;S<n;S++){const D=l(S),B=this.laneAssignments.get(S);let z,k;if(B!==void 0&&this.options.lanes>1){z=B;const O=w[z],N=O!==void 0?m[O]:void 0;k=N?N.end+this.options.gap:o+s}else{const O=this.options.lanes===1?m[S-1]:this.getFurthestMeasurement(m,S);k=O?O.end+this.options.gap:o+s,z=O?O.lane:S%this.options.lanes,this.options.lanes>1&&this.laneAssignments.set(S,z)}const A=h.get(D),_=typeof A=="number"?A:this.options.estimateSize(S),E=k+_;m[S]={index:S,start:k,size:_,end:E,key:D,lane:z},w[z]=S}return this.measurementsCache=m,m},{key:process.env.NODE_ENV!=="production"&&"getMeasurements",debug:()=>this.options.debug}),this.calculateRange=Pn(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset(),this.options.lanes],(n,o,s,l)=>this.range=n.length>0&&o>0?H_({measurements:n,outerSize:o,scrollOffset:s,lanes:l}):null,{key:process.env.NODE_ENV!=="production"&&"calculateRange",debug:()=>this.options.debug}),this.getVirtualIndexes=Pn(()=>{let n=null,o=null;const s=this.calculateRange();return s&&(n=s.startIndex,o=s.endIndex),this.maybeNotify.updateDeps([this.isScrolling,n,o]),[this.options.rangeExtractor,this.options.overscan,this.options.count,n,o]},(n,o,s,l,c)=>l===null||c===null?[]:n({startIndex:l,endIndex:c,overscan:o,count:s}),{key:process.env.NODE_ENV!=="production"&&"getVirtualIndexes",debug:()=>this.options.debug}),this.indexFromElement=n=>{const o=this.options.indexAttribute,s=n.getAttribute(o);return s?parseInt(s,10):(console.warn(`Missing attribute name '${o}={index}' on measured element.`),-1)},this.shouldMeasureDuringScroll=n=>{var o;if(!this.scrollState||this.scrollState.behavior!=="smooth")return!0;const s=this.scrollState.index??((o=this.getVirtualItemForOffset(this.scrollState.lastTargetOffset))==null?void 0:o.index);if(s!==void 0&&this.range){const l=Math.max(this.options.overscan,Math.ceil((this.range.endIndex-this.range.startIndex)/2)),c=Math.max(0,s-l),d=Math.min(this.options.count-1,s+l);return n>=c&&n<=d}return!0},this.measureElement=n=>{if(!n){this.elementsCache.forEach((c,d)=>{c.isConnected||(this.observer.unobserve(c),this.elementsCache.delete(d))});return}const o=this.indexFromElement(n),s=this.options.getItemKey(o),l=this.elementsCache.get(s);l!==n&&(l&&this.observer.unobserve(l),this.observer.observe(n),this.elementsCache.set(s,n)),(!this.isScrolling||this.scrollState)&&this.shouldMeasureDuringScroll(o)&&this.resizeItem(o,this.options.measureElement(n,void 0,this))},this.resizeItem=(n,o)=>{var s;const l=this.measurementsCache[n];if(!l)return;const c=this.itemSizeCache.get(l.key)??l.size,d=o-c;d!==0&&(((s=this.scrollState)==null?void 0:s.behavior)!=="smooth"&&(this.shouldAdjustScrollPositionOnItemSizeChange!==void 0?this.shouldAdjustScrollPositionOnItemSizeChange(l,d,this):l.start<this.getScrollOffset()+this.scrollAdjustments)&&(process.env.NODE_ENV!=="production"&&this.options.debug&&console.info("correction",d),this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=d,behavior:void 0})),this.pendingMeasuredCacheIndexes.push(l.index),this.itemSizeCache=new Map(this.itemSizeCache.set(l.key,o)),this.notify(!1))},this.getVirtualItems=Pn(()=>[this.getVirtualIndexes(),this.getMeasurements()],(n,o)=>{const s=[];for(let l=0,c=n.length;l<c;l++){const d=n[l],h=o[d];s.push(h)}return s},{key:process.env.NODE_ENV!=="production"&&"getVirtualItems",debug:()=>this.options.debug}),this.getVirtualItemForOffset=n=>{const o=this.getMeasurements();if(o.length!==0)return Ud(o[fh(0,o.length-1,s=>Ud(o[s]).start,n)])},this.getMaxScrollOffset=()=>{if(!this.scrollElement)return 0;if("scrollHeight"in this.scrollElement)return this.options.horizontal?this.scrollElement.scrollWidth-this.scrollElement.clientWidth:this.scrollElement.scrollHeight-this.scrollElement.clientHeight;{const n=this.scrollElement.document.documentElement;return this.options.horizontal?n.scrollWidth-this.scrollElement.innerWidth:n.scrollHeight-this.scrollElement.innerHeight}},this.getOffsetForAlignment=(n,o,s=0)=>{if(!this.scrollElement)return 0;const l=this.getSize(),c=this.getScrollOffset();o==="auto"&&(o=n>=c+l?"end":"start"),o==="center"?n+=(s-l)/2:o==="end"&&(n-=l);const d=this.getMaxScrollOffset();return Math.max(Math.min(d,n),0)},this.getOffsetForIndex=(n,o="auto")=>{n=Math.max(0,Math.min(n,this.options.count-1));const s=this.getSize(),l=this.getScrollOffset(),c=this.measurementsCache[n];if(!c)return;if(o==="auto")if(c.end>=l+s-this.options.scrollPaddingEnd)o="end";else if(c.start<=l+this.options.scrollPaddingStart)o="start";else return[l,o];if(o==="end"&&n===this.options.count-1)return[this.getMaxScrollOffset(),o];const d=o==="end"?c.end+this.options.scrollPaddingEnd:c.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(d,o,c.size),o]},this.scrollToOffset=(n,{align:o="start",behavior:s="auto"}={})=>{const l=this.getOffsetForAlignment(n,o),c=this.now();this.scrollState={index:null,align:o,behavior:s,startedAt:c,lastTargetOffset:l,stableFrames:0},this._scrollToOffset(l,{adjustments:void 0,behavior:s}),this.scheduleScrollReconcile()},this.scrollToIndex=(n,{align:o="auto",behavior:s="auto"}={})=>{n=Math.max(0,Math.min(n,this.options.count-1));const l=this.getOffsetForIndex(n,o);if(!l)return;const[c,d]=l,h=this.now();this.scrollState={index:n,align:d,behavior:s,startedAt:h,lastTargetOffset:c,stableFrames:0},this._scrollToOffset(c,{adjustments:void 0,behavior:s}),this.scheduleScrollReconcile()},this.scrollBy=(n,{behavior:o="auto"}={})=>{const s=this.getScrollOffset()+n,l=this.now();this.scrollState={index:null,align:"start",behavior:o,startedAt:l,lastTargetOffset:s,stableFrames:0},this._scrollToOffset(s,{adjustments:void 0,behavior:o}),this.scheduleScrollReconcile()},this.getTotalSize=()=>{var n;const o=this.getMeasurements();let s;if(o.length===0)s=this.options.paddingStart;else if(this.options.lanes===1)s=((n=o[o.length-1])==null?void 0:n.end)??0;else{const l=Array(this.options.lanes).fill(null);let c=o.length-1;for(;c>=0&&l.some(d=>d===null);){const d=o[c];l[d.lane]===null&&(l[d.lane]=d.end),c--}s=Math.max(...l.filter(d=>d!==null))}return Math.max(s-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(n,{adjustments:o,behavior:s})=>{this.options.scrollToFn(n,{behavior:s,adjustments:o},this)},this.measure=()=>{this.itemSizeCache=new Map,this.laneAssignments=new Map,this.notify(!1)},this.setOptions(i)}scheduleScrollReconcile(){if(!this.targetWindow){this.scrollState=null;return}this.rafId==null&&(this.rafId=this.targetWindow.requestAnimationFrame(()=>{this.rafId=null,this.reconcileScroll()}))}reconcileScroll(){if(!this.scrollState||!this.scrollElement)return;if(this.now()-this.scrollState.startedAt>5e3){this.scrollState=null;return}const i=this.scrollState.index!=null?this.getOffsetForIndex(this.scrollState.index,this.scrollState.align):void 0,n=i?i[0]:this.scrollState.lastTargetOffset,o=1,s=n!==this.scrollState.lastTargetOffset;if(!s&&D_(n,this.getScrollOffset())){if(this.scrollState.stableFrames++,this.scrollState.stableFrames>=o){this.scrollState=null;return}}else this.scrollState.stableFrames=0,s&&(this.scrollState.lastTargetOffset=n,this.scrollState.behavior="auto",this._scrollToOffset(n,{adjustments:void 0,behavior:"auto"}));this.scheduleScrollReconcile()}}const fh=(r,i,n,o)=>{for(;r<=i;){const s=(r+i)/2|0,l=n(s);if(l<o)r=s+1;else if(l>o)i=s-1;else return s}return r>0?r-1:0};function H_({measurements:r,outerSize:i,scrollOffset:n,lanes:o}){const s=r.length-1,l=h=>r[h].start;if(r.length<=o)return{startIndex:0,endIndex:s};let c=fh(0,s,l,n),d=c;if(o===1)for(;d<s&&r[d].end<n+i;)d++;else if(o>1){const h=Array(o).fill(0);for(;d<s&&h.some(m=>m<n+i);){const m=r[d];h[m.lane]=m.end,d++}const v=Array(o).fill(n+i);for(;c>=0&&v.some(m=>m>=n);){const m=r[c];v[m.lane]=m.start,c--}c=Math.max(0,c-c%o),d=Math.min(s,d+(o-1-d%o))}return{startIndex:c,endIndex:d}}const Yd=typeof document<"u"?it.useLayoutEffect:it.useEffect;function W_({useFlushSync:r=!0,...i}){const n=it.useReducer(()=>({}),{})[1],o={...i,onChange:(l,c)=>{var d;r&&c?oa.flushSync(n):n(),(d=i.onChange)==null||d.call(i,l,c)}},[s]=it.useState(()=>new F_(o));return s.setOptions(o),Yd(()=>s._didMount(),[]),Yd(()=>s._willUpdate()),s}function $_(r){return W_({observeElementRect:L_,observeElementOffset:j_,scrollToFn:V_,...r})}const gh=y.createContext(null),It=()=>{const r=y.useContext(gh);if(!r)throw new Error("Select compound components must be used within Select.Root");return r},st={sm:{trigger:"h-5 min-h-fit",control:"min-h-5 p-0.5 gap-1",input:"text-xs h-3.5",placeholder:"placeholder:text-xs text-xs",singleValue:"text-xs",multiValue:"h-3.5 px-0.5 gap-1 text-xxs",multiValueLabel:"text-xxs",multiValueRemove:"w-3 h-3",indicatorsContainer:"gap-1",clearIndicator:"p-0.5 size-3",dropdownIndicator:"p-0.5 size-3",indicatorSeparator:"h-3",loadingIndicator:"w-3 h-3",menu:"m-0",menuList:"py-1",option:"px-1 py-0.5 text-xs",group:"pt-1",groupHeading:"px-2 py-0.5 text-xxs",noOptionsMessage:"px-2 py-1 text-xxs",loadingMessage:"px-2 py-1 text-xxs",message:"text-xxs p-1.5",icon:"text-sm"},md:{trigger:"h-6 min-h-fit",control:"min-h-6 p-1 gap-1.5",input:"text-s h-4",placeholder:"placeholder:text-s text-s",singleValue:"text-s",multiValue:"h-4 p-1 gap-1 text-xs",multiValueLabel:"text-xs",multiValueRemove:"w-3.5 h-3.5",indicatorsContainer:"gap-1",clearIndicator:"p-0.5 size-4",dropdownIndicator:"p-0.5 size-4",indicatorSeparator:"h-4",loadingIndicator:"w-4 h-4",menu:"m-0",menuList:"py-1",option:"px-2 py-1 text-s",group:"pt-1.5",groupHeading:"px-3 py-1 text-xs",noOptionsMessage:"px-2 py-1.5 text-xs",loadingMessage:"px-3 py-1.5 text-xs",message:"text-xs p-2",icon:"text-base"},lg:{trigger:"h-7 min-h-fit",control:"min-h-7 p-1.5 gap-2",input:"text-sm h-5",placeholder:"placeholder:text-sm text-sm",singleValue:"text-sm",multiValue:"h-5 px-1.5 gap-1.5 text-s",multiValueLabel:"text-xs",multiValueRemove:"w-4 h-4",indicatorsContainer:"gap-1.5",clearIndicator:"p-0.5 size-5",dropdownIndicator:"p-1 size-5",indicatorSeparator:"h-5",loadingIndicator:"w-5 h-5",menu:"m-0",menuList:"py-1.5",option:"px-3 py-2 text-sm",group:"pt-2",groupHeading:"px-4 py-1.5 text-s",noOptionsMessage:"px-4 py-2 text-s",loadingMessage:"px-4 py-2 text-s",message:"text-s p-2.5",icon:"text-lg"}},et={primary:{control:"cursor-pointer bg-input-bg text-select-text",controlFocused:"border-input-focus-border",controlDisabled:"opacity-60",controlInvalid:"bg-input-bg border-input-error-border text-select-text",placeholder:"placeholder:text-input-placeholder text-input-text placeholder:opacity-60",singleValue:"text-select-text",singleValueDisabled:"text-input-placeholder",multiValue:"bg-input-option-active-bg text-input-option-active-text",multiValueLabel:"text-input-option-active-text",multiValueRemove:"text-input-option-active-text hover:bg-input-option-hover-bg hover:text-body rounded-xs p-px",multiValueRemoveHover:"hover:bg-input-option-hover-bg",multiValueDisabled:"bg-canvas-subtle text-muted",clearIndicator:"text-input-text hover:text-body cursor-pointer",clearIndicatorHover:"hover:text-body hover:bg-input-option-hover-bg",dropdownIndicator:"text-input-text",dropdownIndicatorHover:"hover:text-body hover:bg-input-option-hover-bg",indicatorSeparator:"bg-input-border",loadingIndicator:"text-primary",menu:"bg-select-list-bg border-input-focus-border shadow-lg",menuList:"scrollbar-thin scrollbar-thumb-input-border scrollbar-track-transparent",option:"text-select-text cursor-pointer",optionFocused:"bg-input-option-hover-bg text-body",optionSelected:"bg-input-option-active-bg text-input-option-active-text",optionDisabled:"text-input-placeholder cursor-not-allowed",group:"",groupHeading:"text-input-placeholder font-semibold",noOptionsMessage:"text-input-placeholder",loadingMessage:"text-input-placeholder",message:"text-primary-dark",messageBackground:"bg-input-message-bg",messageBorder:"ring-input-info-border",icon:"text-input-text",iconAction:"text-input-text hover:text-body",iconActionHover:"hover:text-body hover:bg-input-option-hover-bg"},positive:{control:"cursor-pointer bg-input-bg text-select-text",controlFocused:"border-positive",controlDisabled:"opacity-60",controlInvalid:"bg-input-bg border-input-error-border text-select-text",placeholder:"placeholder:text-input-placeholder text-input-text placeholder:opacity-60",singleValue:"text-select-text",singleValueDisabled:"text-input-placeholder",multiValue:"bg-input-option-active-bg text-input-option-active-text",multiValueLabel:"text-input-option-active-text",multiValueRemove:"text-input-option-active-text hover:bg-input-option-hover-bg hover:text-body rounded-xs p-px",multiValueRemoveHover:"hover:bg-input-option-hover-bg",multiValueDisabled:"bg-canvas-subtle text-muted",clearIndicator:"text-input-text hover:text-body cursor-pointer",clearIndicatorHover:"hover:text-body hover:bg-input-option-hover-bg",dropdownIndicator:"text-input-text",dropdownIndicatorHover:"hover:text-body hover:bg-input-option-hover-bg",indicatorSeparator:"bg-input-border",loadingIndicator:"text-positive",menu:"bg-select-list-bg border-positive shadow-lg",menuList:"scrollbar-thin scrollbar-thumb-input-border scrollbar-track-transparent",option:"text-select-text cursor-pointer",optionFocused:"bg-input-option-hover-bg text-body",optionSelected:"bg-input-option-active-bg text-input-option-active-text",optionDisabled:"text-input-placeholder cursor-not-allowed",group:"",groupHeading:"text-input-placeholder font-semibold",noOptionsMessage:"text-input-placeholder",loadingMessage:"text-input-placeholder",message:"text-positive-dark",messageBackground:"bg-positive-light",messageBorder:"ring-positive",icon:"text-input-text",iconAction:"text-input-text hover:text-body",iconActionHover:"hover:text-body hover:bg-input-option-hover-bg"},warning:{control:"cursor-pointer bg-input-bg text-select-text",controlFocused:"border-input-warning-border",controlDisabled:"opacity-60",controlInvalid:"bg-input-bg border-input-error-border text-select-text",placeholder:"placeholder:text-input-placeholder text-input-text placeholder:opacity-60",singleValue:"text-select-text",singleValueDisabled:"text-input-placeholder",multiValue:"bg-input-option-active-bg text-input-option-active-text",multiValueLabel:"text-input-option-active-text",multiValueRemove:"text-input-option-active-text hover:bg-input-option-hover-bg hover:text-body rounded-xs p-px",multiValueRemoveHover:"hover:bg-input-option-hover-bg",multiValueDisabled:"bg-canvas-subtle text-muted",clearIndicator:"text-input-text hover:text-body cursor-pointer",clearIndicatorHover:"hover:text-body hover:bg-input-option-hover-bg",dropdownIndicator:"text-input-text",dropdownIndicatorHover:"hover:text-body hover:bg-input-option-hover-bg",indicatorSeparator:"bg-input-border",loadingIndicator:"text-warning",menu:"bg-select-list-bg border-input-warning-border shadow-lg",menuList:"scrollbar-thin scrollbar-thumb-input-border scrollbar-track-transparent",option:"text-select-text cursor-pointer",optionFocused:"bg-input-option-hover-bg text-body",optionSelected:"bg-input-option-active-bg text-input-option-active-text",optionDisabled:"text-input-placeholder cursor-not-allowed",group:"",groupHeading:"text-input-placeholder font-semibold",noOptionsMessage:"text-input-placeholder",loadingMessage:"text-input-placeholder",message:"text-warning-dark",messageBackground:"bg-input-warning-bg",messageBorder:"ring-input-warning-border",icon:"text-input-text",iconAction:"text-input-text hover:text-body",iconActionHover:"hover:text-body hover:bg-input-option-hover-bg"},negative:{control:"cursor-pointer bg-input-bg text-negative",controlFocused:"border-input-error-border",controlDisabled:"opacity-60",controlInvalid:"bg-input-bg border-input-error-border text-negative",placeholder:"placeholder:text-input-placeholder text-input-text placeholder:opacity-60",singleValue:"text-negative",singleValueDisabled:"text-input-placeholder",multiValue:"bg-input-option-active-bg text-input-option-active-text",multiValueLabel:"text-input-option-active-text",multiValueRemove:"text-input-option-active-text hover:bg-input-option-hover-bg hover:text-body rounded-xs p-px",multiValueRemoveHover:"hover:bg-input-option-hover-bg",multiValueDisabled:"bg-canvas-subtle text-muted",clearIndicator:"text-input-text hover:text-body cursor-pointer",clearIndicatorHover:"hover:text-body hover:bg-input-option-hover-bg",dropdownIndicator:"text-input-text",dropdownIndicatorHover:"hover:text-body hover:bg-input-option-hover-bg",indicatorSeparator:"bg-input-border",loadingIndicator:"text-negative",menu:"bg-select-list-bg border-input-error-border shadow-lg",menuList:"scrollbar-thin scrollbar-thumb-input-border scrollbar-track-transparent",option:"text-select-text cursor-pointer",optionFocused:"bg-input-option-hover-bg text-body",optionSelected:"bg-input-option-active-bg text-input-option-active-text",optionDisabled:"text-input-placeholder cursor-not-allowed",group:"",groupHeading:"text-input-placeholder font-semibold",noOptionsMessage:"text-input-placeholder",loadingMessage:"text-input-placeholder",message:"text-negative-dark",messageBackground:"bg-input-error-bg",messageBorder:"ring-input-error-border",icon:"text-input-text",iconAction:"text-input-text hover:text-body",iconActionHover:"hover:text-body hover:bg-input-option-hover-bg"}},K_=()=>Q("flex flex-col relative"),U_=({size:r,color:i,isDisabled:n,hasMessage:o,isInvalid:s,isFocused:l,menuPlacement:c})=>{const d=et[s?"negative":i];return Q("bg-input-bg flex relative transition-all duration-200 ease-in-out items-center",l&&c?c==="top"?"rounded-b":"rounded-t":"only:rounded first:rounded-t last:rounded-b",d.control,o?["ring-1",d.messageBorder]:["border",n?"border-input-border":l?d.controlFocused:`border-select-border focus-within:${d.controlFocused}`],st[r].trigger,{"ring-1":o,[d.controlDisabled]:n})},G_=({size:r,color:i,isDisabled:n,isAction:o})=>{const s=et[i];return Q("transition-colors duration-200 rounded max-h-full h-fit px-0.5",st[r].icon,r==="sm"?"m-px":"m-0.5",n?"text-muted opacity-60 pointer-events-none":o?s.iconAction:s.icon,{"cursor-pointer p-0.5":o&&!n,[s.iconActionHover]:o&&!n,"pointer-events-none":!o})},q_=({size:r,color:i,isDisabled:n,isFocused:o,isInvalid:s,hasMessage:l,hasGroup:c,menuPlacement:d})=>{const h=et[s?"negative":i];return c?Q("flex items-center justify-between flex-1 min-w-0",st[r].control,"bg-transparent border-0",{[h.controlDisabled]:n}):Q("flex items-center justify-between",o&&d?d==="top"?"rounded-b":"rounded-t":"rounded",st[r].control,h.control,l?["ring-1",h.messageBorder]:["border",n?"border-input-border":o?h.controlFocused:`border-select-border
|
|
44
|
-
focus-within:${
|
|
43
|
+
color: hsl(${Math.max(0,Math.min(120-120*R,120))}deg 100% 31%);`,n==null?void 0:n.key)}return n!=null&&n.onChange&&!(l&&n.skipInitialOnChange)&&n.onChange(s),l=!1,s}return c.updateDeps=d=>{i=d},c}function fp(t,o){if(t===void 0)throw new Error("Unexpected undefined");return t}const uI=(t,o)=>Math.abs(t-o)<1.01,dI=(t,o,n)=>{let i;return function(...s){t.clearTimeout(i),i=t.setTimeout(()=>o.apply(this,s),n)}},gp=t=>{const{offsetWidth:o,offsetHeight:n}=t;return{width:o,height:n}},pI=t=>t,hI=t=>{const o=Math.max(t.startIndex-t.overscan,0),n=Math.min(t.endIndex+t.overscan,t.count-1),i=[];for(let s=o;s<=n;s++)i.push(s);return i},fI=(t,o)=>{const n=t.scrollElement;if(!n)return;const i=t.targetWindow;if(!i)return;const s=c=>{const{width:d,height:p}=c;o({width:Math.round(d),height:Math.round(p)})};if(s(gp(n)),!i.ResizeObserver)return()=>{};const l=new i.ResizeObserver(c=>{const d=()=>{const p=c[0];if(p!=null&&p.borderBoxSize){const g=p.borderBoxSize[0];if(g){s({width:g.inlineSize,height:g.blockSize});return}}s(gp(n))};t.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(d):d()});return l.observe(n,{box:"border-box"}),()=>{l.unobserve(n)}},vp={passive:!0},mp=typeof window>"u"?!0:"onscrollend"in window,gI=(t,o)=>{const n=t.scrollElement;if(!n)return;const i=t.targetWindow;if(!i)return;let s=0;const l=t.options.useScrollendEvent&&mp?()=>{}:dI(i,()=>{o(s,!1)},t.options.isScrollingResetDelay),c=b=>()=>{const{horizontal:x,isRtl:I}=t.options;s=x?n.scrollLeft*(I&&-1||1):n.scrollTop,l(),o(s,b)},d=c(!0),p=c(!1);n.addEventListener("scroll",d,vp);const g=t.options.useScrollendEvent&∓return g&&n.addEventListener("scrollend",p,vp),()=>{n.removeEventListener("scroll",d),g&&n.removeEventListener("scrollend",p)}},vI=(t,o,n)=>{if(o!=null&&o.borderBoxSize){const i=o.borderBoxSize[0];if(i)return Math.round(i[n.options.horizontal?"inlineSize":"blockSize"])}return t[n.options.horizontal?"offsetWidth":"offsetHeight"]},mI=(t,{adjustments:o=0,behavior:n},i)=>{var s,l;const c=t+o;(l=(s=i.scrollElement)==null?void 0:s.scrollTo)==null||l.call(s,{[i.options.horizontal?"left":"top"]:c,behavior:n})};class bI{constructor(o){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.scrollState=null,this.measurementsCache=[],this.itemSizeCache=new Map,this.laneAssignments=new Map,this.pendingMeasuredCacheIndexes=[],this.prevLanes=void 0,this.lanesChangedFlag=!1,this.lanesSettling=!1,this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this.elementsCache=new Map,this.now=()=>{var n,i,s;return((s=(i=(n=this.targetWindow)==null?void 0:n.performance)==null?void 0:i.now)==null?void 0:s.call(i))??Date.now()},this.observer=(()=>{let n=null;const i=()=>n||(!this.targetWindow||!this.targetWindow.ResizeObserver?null:n=new this.targetWindow.ResizeObserver(s=>{s.forEach(l=>{const c=()=>{const d=l.target,p=this.indexFromElement(d);if(!d.isConnected){this.observer.unobserve(d);return}this.shouldMeasureDuringScroll(p)&&this.resizeItem(p,this.options.measureElement(d,l,this))};this.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(c):c()})}));return{disconnect:()=>{var s;(s=i())==null||s.disconnect(),n=null},observe:s=>{var l;return(l=i())==null?void 0:l.observe(s,{box:"border-box"})},unobserve:s=>{var l;return(l=i())==null?void 0:l.unobserve(s)}}})(),this.range=null,this.setOptions=n=>{Object.entries(n).forEach(([i,s])=>{typeof s>"u"&&delete n[i]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:pI,rangeExtractor:hI,onChange:()=>{},measureElement:vI,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!1,useAnimationFrameWithResizeObserver:!1,...n}},this.notify=n=>{var i,s;(s=(i=this.options).onChange)==null||s.call(i,this,n)},this.maybeNotify=Ln(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),n=>{this.notify(n)},{key:process.env.NODE_ENV!=="production"&&"maybeNotify",debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(n=>n()),this.unsubs=[],this.observer.disconnect(),this.rafId!=null&&this.targetWindow&&(this.targetWindow.cancelAnimationFrame(this.rafId),this.rafId=null),this.scrollState=null,this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var n;const i=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==i){if(this.cleanup(),!i){this.maybeNotify();return}this.scrollElement=i,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=((n=this.scrollElement)==null?void 0:n.window)??null,this.elementsCache.forEach(s=>{this.observer.observe(s)}),this.unsubs.push(this.options.observeElementRect(this,s=>{this.scrollRect=s,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(s,l)=>{this.scrollAdjustments=0,this.scrollDirection=l?this.getScrollOffset()<s?"forward":"backward":null,this.scrollOffset=s,this.isScrolling=l,this.scrollState&&this.scheduleScrollReconcile(),this.maybeNotify()})),this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0})}},this.rafId=null,this.getSize=()=>this.options.enabled?(this.scrollRect=this.scrollRect??this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0),this.getScrollOffset=()=>this.options.enabled?(this.scrollOffset=this.scrollOffset??(typeof this.options.initialOffset=="function"?this.options.initialOffset():this.options.initialOffset),this.scrollOffset):(this.scrollOffset=null,0),this.getFurthestMeasurement=(n,i)=>{const s=new Map,l=new Map;for(let c=i-1;c>=0;c--){const d=n[c];if(s.has(d.lane))continue;const p=l.get(d.lane);if(p==null||d.end>p.end?l.set(d.lane,d):d.end<p.end&&s.set(d.lane,!0),s.size===this.options.lanes)break}return l.size===this.options.lanes?Array.from(l.values()).sort((c,d)=>c.end===d.end?c.index-d.index:c.end-d.end)[0]:void 0},this.getMeasurementOptions=Ln(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled,this.options.lanes],(n,i,s,l,c,d)=>(this.prevLanes!==void 0&&this.prevLanes!==d&&(this.lanesChangedFlag=!0),this.prevLanes=d,this.pendingMeasuredCacheIndexes=[],{count:n,paddingStart:i,scrollMargin:s,getItemKey:l,enabled:c,lanes:d}),{key:!1}),this.getMeasurements=Ln(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:n,paddingStart:i,scrollMargin:s,getItemKey:l,enabled:c,lanes:d},p)=>{if(!c)return this.measurementsCache=[],this.itemSizeCache.clear(),this.laneAssignments.clear(),[];if(this.laneAssignments.size>n)for(const I of this.laneAssignments.keys())I>=n&&this.laneAssignments.delete(I);this.lanesChangedFlag&&(this.lanesChangedFlag=!1,this.lanesSettling=!0,this.measurementsCache=[],this.itemSizeCache.clear(),this.laneAssignments.clear(),this.pendingMeasuredCacheIndexes=[]),this.measurementsCache.length===0&&!this.lanesSettling&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(I=>{this.itemSizeCache.set(I.key,I.size)}));const g=this.lanesSettling?0:this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[],this.lanesSettling&&this.measurementsCache.length===n&&(this.lanesSettling=!1);const b=this.measurementsCache.slice(0,g),x=new Array(d).fill(void 0);for(let I=0;I<g;I++){const A=b[I];A&&(x[A.lane]=I)}for(let I=g;I<n;I++){const A=l(I),F=this.laneAssignments.get(I);let R,k;if(F!==void 0&&this.options.lanes>1){R=F;const C=x[R],S=C!==void 0?b[C]:void 0;k=S?S.end+this.options.gap:i+s}else{const C=this.options.lanes===1?b[I-1]:this.getFurthestMeasurement(b,I);k=C?C.end+this.options.gap:i+s,R=C?C.lane:I%this.options.lanes,this.options.lanes>1&&this.laneAssignments.set(I,R)}const L=p.get(A),y=typeof L=="number"?L:this.options.estimateSize(I),N=k+y;b[I]={index:I,start:k,size:y,end:N,key:A,lane:R},x[R]=I}return this.measurementsCache=b,b},{key:process.env.NODE_ENV!=="production"&&"getMeasurements",debug:()=>this.options.debug}),this.calculateRange=Ln(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset(),this.options.lanes],(n,i,s,l)=>this.range=n.length>0&&i>0?wI({measurements:n,outerSize:i,scrollOffset:s,lanes:l}):null,{key:process.env.NODE_ENV!=="production"&&"calculateRange",debug:()=>this.options.debug}),this.getVirtualIndexes=Ln(()=>{let n=null,i=null;const s=this.calculateRange();return s&&(n=s.startIndex,i=s.endIndex),this.maybeNotify.updateDeps([this.isScrolling,n,i]),[this.options.rangeExtractor,this.options.overscan,this.options.count,n,i]},(n,i,s,l,c)=>l===null||c===null?[]:n({startIndex:l,endIndex:c,overscan:i,count:s}),{key:process.env.NODE_ENV!=="production"&&"getVirtualIndexes",debug:()=>this.options.debug}),this.indexFromElement=n=>{const i=this.options.indexAttribute,s=n.getAttribute(i);return s?parseInt(s,10):(console.warn(`Missing attribute name '${i}={index}' on measured element.`),-1)},this.shouldMeasureDuringScroll=n=>{var i;if(!this.scrollState||this.scrollState.behavior!=="smooth")return!0;const s=this.scrollState.index??((i=this.getVirtualItemForOffset(this.scrollState.lastTargetOffset))==null?void 0:i.index);if(s!==void 0&&this.range){const l=Math.max(this.options.overscan,Math.ceil((this.range.endIndex-this.range.startIndex)/2)),c=Math.max(0,s-l),d=Math.min(this.options.count-1,s+l);return n>=c&&n<=d}return!0},this.measureElement=n=>{if(!n){this.elementsCache.forEach((c,d)=>{c.isConnected||(this.observer.unobserve(c),this.elementsCache.delete(d))});return}const i=this.indexFromElement(n),s=this.options.getItemKey(i),l=this.elementsCache.get(s);l!==n&&(l&&this.observer.unobserve(l),this.observer.observe(n),this.elementsCache.set(s,n)),(!this.isScrolling||this.scrollState)&&this.shouldMeasureDuringScroll(i)&&this.resizeItem(i,this.options.measureElement(n,void 0,this))},this.resizeItem=(n,i)=>{var s;const l=this.measurementsCache[n];if(!l)return;const c=this.itemSizeCache.get(l.key)??l.size,d=i-c;d!==0&&(((s=this.scrollState)==null?void 0:s.behavior)!=="smooth"&&(this.shouldAdjustScrollPositionOnItemSizeChange!==void 0?this.shouldAdjustScrollPositionOnItemSizeChange(l,d,this):l.start<this.getScrollOffset()+this.scrollAdjustments)&&(process.env.NODE_ENV!=="production"&&this.options.debug&&console.info("correction",d),this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=d,behavior:void 0})),this.pendingMeasuredCacheIndexes.push(l.index),this.itemSizeCache=new Map(this.itemSizeCache.set(l.key,i)),this.notify(!1))},this.getVirtualItems=Ln(()=>[this.getVirtualIndexes(),this.getMeasurements()],(n,i)=>{const s=[];for(let l=0,c=n.length;l<c;l++){const d=n[l],p=i[d];s.push(p)}return s},{key:process.env.NODE_ENV!=="production"&&"getVirtualItems",debug:()=>this.options.debug}),this.getVirtualItemForOffset=n=>{const i=this.getMeasurements();if(i.length!==0)return fp(i[Wh(0,i.length-1,s=>fp(i[s]).start,n)])},this.getMaxScrollOffset=()=>{if(!this.scrollElement)return 0;if("scrollHeight"in this.scrollElement)return this.options.horizontal?this.scrollElement.scrollWidth-this.scrollElement.clientWidth:this.scrollElement.scrollHeight-this.scrollElement.clientHeight;{const n=this.scrollElement.document.documentElement;return this.options.horizontal?n.scrollWidth-this.scrollElement.innerWidth:n.scrollHeight-this.scrollElement.innerHeight}},this.getOffsetForAlignment=(n,i,s=0)=>{if(!this.scrollElement)return 0;const l=this.getSize(),c=this.getScrollOffset();i==="auto"&&(i=n>=c+l?"end":"start"),i==="center"?n+=(s-l)/2:i==="end"&&(n-=l);const d=this.getMaxScrollOffset();return Math.max(Math.min(d,n),0)},this.getOffsetForIndex=(n,i="auto")=>{n=Math.max(0,Math.min(n,this.options.count-1));const s=this.getSize(),l=this.getScrollOffset(),c=this.measurementsCache[n];if(!c)return;if(i==="auto")if(c.end>=l+s-this.options.scrollPaddingEnd)i="end";else if(c.start<=l+this.options.scrollPaddingStart)i="start";else return[l,i];if(i==="end"&&n===this.options.count-1)return[this.getMaxScrollOffset(),i];const d=i==="end"?c.end+this.options.scrollPaddingEnd:c.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(d,i,c.size),i]},this.scrollToOffset=(n,{align:i="start",behavior:s="auto"}={})=>{const l=this.getOffsetForAlignment(n,i),c=this.now();this.scrollState={index:null,align:i,behavior:s,startedAt:c,lastTargetOffset:l,stableFrames:0},this._scrollToOffset(l,{adjustments:void 0,behavior:s}),this.scheduleScrollReconcile()},this.scrollToIndex=(n,{align:i="auto",behavior:s="auto"}={})=>{n=Math.max(0,Math.min(n,this.options.count-1));const l=this.getOffsetForIndex(n,i);if(!l)return;const[c,d]=l,p=this.now();this.scrollState={index:n,align:d,behavior:s,startedAt:p,lastTargetOffset:c,stableFrames:0},this._scrollToOffset(c,{adjustments:void 0,behavior:s}),this.scheduleScrollReconcile()},this.scrollBy=(n,{behavior:i="auto"}={})=>{const s=this.getScrollOffset()+n,l=this.now();this.scrollState={index:null,align:"start",behavior:i,startedAt:l,lastTargetOffset:s,stableFrames:0},this._scrollToOffset(s,{adjustments:void 0,behavior:i}),this.scheduleScrollReconcile()},this.getTotalSize=()=>{var n;const i=this.getMeasurements();let s;if(i.length===0)s=this.options.paddingStart;else if(this.options.lanes===1)s=((n=i[i.length-1])==null?void 0:n.end)??0;else{const l=Array(this.options.lanes).fill(null);let c=i.length-1;for(;c>=0&&l.some(d=>d===null);){const d=i[c];l[d.lane]===null&&(l[d.lane]=d.end),c--}s=Math.max(...l.filter(d=>d!==null))}return Math.max(s-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(n,{adjustments:i,behavior:s})=>{this.options.scrollToFn(n,{behavior:s,adjustments:i},this)},this.measure=()=>{this.itemSizeCache=new Map,this.laneAssignments=new Map,this.notify(!1)},this.setOptions(o)}scheduleScrollReconcile(){if(!this.targetWindow){this.scrollState=null;return}this.rafId==null&&(this.rafId=this.targetWindow.requestAnimationFrame(()=>{this.rafId=null,this.reconcileScroll()}))}reconcileScroll(){if(!this.scrollState||!this.scrollElement)return;if(this.now()-this.scrollState.startedAt>5e3){this.scrollState=null;return}const o=this.scrollState.index!=null?this.getOffsetForIndex(this.scrollState.index,this.scrollState.align):void 0,n=o?o[0]:this.scrollState.lastTargetOffset,i=1,s=n!==this.scrollState.lastTargetOffset;if(!s&&uI(n,this.getScrollOffset())){if(this.scrollState.stableFrames++,this.scrollState.stableFrames>=i){this.scrollState=null;return}}else this.scrollState.stableFrames=0,s&&(this.scrollState.lastTargetOffset=n,this.scrollState.behavior="auto",this._scrollToOffset(n,{adjustments:void 0,behavior:"auto"}));this.scheduleScrollReconcile()}}const Wh=(t,o,n,i)=>{for(;t<=o;){const s=(t+o)/2|0,l=n(s);if(l<i)t=s+1;else if(l>i)o=s-1;else return s}return t>0?t-1:0};function wI({measurements:t,outerSize:o,scrollOffset:n,lanes:i}){const s=t.length-1,l=p=>t[p].start;if(t.length<=i)return{startIndex:0,endIndex:s};let c=Wh(0,s,l,n),d=c;if(i===1)for(;d<s&&t[d].end<n+o;)d++;else if(i>1){const p=Array(i).fill(0);for(;d<s&&p.some(b=>b<n+o);){const b=t[d];p[b.lane]=b.end,d++}const g=Array(i).fill(n+o);for(;c>=0&&g.some(b=>b>=n);){const b=t[c];g[b.lane]=b.start,c--}c=Math.max(0,c-c%i),d=Math.min(s,d+(i-1-d%i))}return{startIndex:c,endIndex:d}}const bp=typeof document<"u"?ut.useLayoutEffect:ut.useEffect;function xI({useFlushSync:t=!0,...o}){const n=ut.useReducer(()=>({}),{})[1],i={...o,onChange:(l,c)=>{var d;t&&c?Un.flushSync(n):n(),(d=o.onChange)==null||d.call(o,l,c)}},[s]=ut.useState(()=>new bI(i));return s.setOptions(i),bp(()=>s._didMount(),[]),bp(()=>s._willUpdate()),s}function yI(t){return xI({observeElementRect:fI,observeElementOffset:gI,scrollToFn:mI,...t})}const $h=m.createContext(null),yt=()=>{const t=m.useContext($h);if(!t)throw new Error("Select compound components must be used within Select.Root");return t},ht={sm:{trigger:"h-5 min-h-fit",control:"min-h-5 p-0.5 gap-1",input:"text-xs h-3.5",placeholder:"placeholder:text-xs text-xs",singleValue:"text-xs",multiValue:"h-3.5 px-0.5 gap-1 text-xxs",multiValueLabel:"text-xxs",multiValueRemove:"w-3 h-3",indicatorsContainer:"gap-1",clearIndicator:"p-0.5 size-3",dropdownIndicator:"p-0.5 size-3",indicatorSeparator:"h-3",loadingIndicator:"w-3 h-3",menu:"m-0",menuList:"py-1",option:"px-1 py-0.5 text-xs",group:"pt-1",groupHeading:"px-2 py-0.5 text-xxs",noOptionsMessage:"px-2 py-1 text-xxs",loadingMessage:"px-2 py-1 text-xxs",message:"text-xxs p-1.5",icon:"text-sm"},md:{trigger:"h-6 min-h-fit",control:"min-h-6 p-1 gap-1.5",input:"text-s h-4",placeholder:"placeholder:text-s text-s",singleValue:"text-s",multiValue:"h-4 p-1 gap-1 text-xs",multiValueLabel:"text-xs",multiValueRemove:"w-3.5 h-3.5",indicatorsContainer:"gap-1",clearIndicator:"p-0.5 size-4",dropdownIndicator:"p-0.5 size-4",indicatorSeparator:"h-4",loadingIndicator:"w-4 h-4",menu:"m-0",menuList:"py-1",option:"px-2 py-1 text-s",group:"pt-1.5",groupHeading:"px-3 py-1 text-xs",noOptionsMessage:"px-2 py-1.5 text-xs",loadingMessage:"px-3 py-1.5 text-xs",message:"text-xs p-2",icon:"text-base"},lg:{trigger:"h-7 min-h-fit",control:"min-h-7 p-1.5 gap-2",input:"text-sm h-5",placeholder:"placeholder:text-sm text-sm",singleValue:"text-sm",multiValue:"h-5 px-1.5 gap-1.5 text-s",multiValueLabel:"text-xs",multiValueRemove:"w-4 h-4",indicatorsContainer:"gap-1.5",clearIndicator:"p-0.5 size-5",dropdownIndicator:"p-1 size-5",indicatorSeparator:"h-5",loadingIndicator:"w-5 h-5",menu:"m-0",menuList:"py-1.5",option:"px-3 py-2 text-sm",group:"pt-2",groupHeading:"px-4 py-1.5 text-s",noOptionsMessage:"px-4 py-2 text-s",loadingMessage:"px-4 py-2 text-s",message:"text-s p-2.5",icon:"text-lg"}},it={primary:{control:"cursor-pointer bg-input-bg text-select-text",controlFocused:"border-input-focus-border",controlDisabled:"opacity-60",controlInvalid:"bg-input-bg border-input-error-border text-select-text",placeholder:"placeholder:text-input-placeholder text-input-text placeholder:opacity-60",singleValue:"text-select-text",singleValueDisabled:"text-input-placeholder",multiValue:"bg-input-option-active-bg text-input-option-active-text",multiValueLabel:"text-input-option-active-text",multiValueRemove:"text-input-option-active-text hover:bg-input-option-hover-bg hover:text-body rounded-xs p-px",multiValueRemoveHover:"hover:bg-input-option-hover-bg",multiValueDisabled:"bg-canvas-subtle text-muted",clearIndicator:"text-input-text hover:text-body cursor-pointer",clearIndicatorHover:"hover:text-body hover:bg-input-option-hover-bg",dropdownIndicator:"text-input-text",dropdownIndicatorHover:"hover:text-body hover:bg-input-option-hover-bg",indicatorSeparator:"bg-input-border",loadingIndicator:"text-primary",menu:"bg-select-list-bg border-input-focus-border shadow-lg",menuList:"scrollbar-thin scrollbar-thumb-input-border scrollbar-track-transparent",option:"text-select-text cursor-pointer",optionFocused:"bg-input-option-hover-bg text-body",optionSelected:"bg-input-option-active-bg text-input-option-active-text",optionDisabled:"text-input-placeholder cursor-not-allowed",group:"",groupHeading:"text-input-placeholder font-semibold",noOptionsMessage:"text-input-placeholder",loadingMessage:"text-input-placeholder",message:"text-primary-dark",messageBackground:"bg-input-message-bg",messageBorder:"ring-input-info-border",icon:"text-input-text",iconAction:"text-input-text hover:text-body",iconActionHover:"hover:text-body hover:bg-input-option-hover-bg"},positive:{control:"cursor-pointer bg-input-bg text-select-text",controlFocused:"border-positive",controlDisabled:"opacity-60",controlInvalid:"bg-input-bg border-input-error-border text-select-text",placeholder:"placeholder:text-input-placeholder text-input-text placeholder:opacity-60",singleValue:"text-select-text",singleValueDisabled:"text-input-placeholder",multiValue:"bg-input-option-active-bg text-input-option-active-text",multiValueLabel:"text-input-option-active-text",multiValueRemove:"text-input-option-active-text hover:bg-input-option-hover-bg hover:text-body rounded-xs p-px",multiValueRemoveHover:"hover:bg-input-option-hover-bg",multiValueDisabled:"bg-canvas-subtle text-muted",clearIndicator:"text-input-text hover:text-body cursor-pointer",clearIndicatorHover:"hover:text-body hover:bg-input-option-hover-bg",dropdownIndicator:"text-input-text",dropdownIndicatorHover:"hover:text-body hover:bg-input-option-hover-bg",indicatorSeparator:"bg-input-border",loadingIndicator:"text-positive",menu:"bg-select-list-bg border-positive shadow-lg",menuList:"scrollbar-thin scrollbar-thumb-input-border scrollbar-track-transparent",option:"text-select-text cursor-pointer",optionFocused:"bg-input-option-hover-bg text-body",optionSelected:"bg-input-option-active-bg text-input-option-active-text",optionDisabled:"text-input-placeholder cursor-not-allowed",group:"",groupHeading:"text-input-placeholder font-semibold",noOptionsMessage:"text-input-placeholder",loadingMessage:"text-input-placeholder",message:"text-positive-dark",messageBackground:"bg-positive-light",messageBorder:"ring-positive",icon:"text-input-text",iconAction:"text-input-text hover:text-body",iconActionHover:"hover:text-body hover:bg-input-option-hover-bg"},warning:{control:"cursor-pointer bg-input-bg text-select-text",controlFocused:"border-input-warning-border",controlDisabled:"opacity-60",controlInvalid:"bg-input-bg border-input-error-border text-select-text",placeholder:"placeholder:text-input-placeholder text-input-text placeholder:opacity-60",singleValue:"text-select-text",singleValueDisabled:"text-input-placeholder",multiValue:"bg-input-option-active-bg text-input-option-active-text",multiValueLabel:"text-input-option-active-text",multiValueRemove:"text-input-option-active-text hover:bg-input-option-hover-bg hover:text-body rounded-xs p-px",multiValueRemoveHover:"hover:bg-input-option-hover-bg",multiValueDisabled:"bg-canvas-subtle text-muted",clearIndicator:"text-input-text hover:text-body cursor-pointer",clearIndicatorHover:"hover:text-body hover:bg-input-option-hover-bg",dropdownIndicator:"text-input-text",dropdownIndicatorHover:"hover:text-body hover:bg-input-option-hover-bg",indicatorSeparator:"bg-input-border",loadingIndicator:"text-warning",menu:"bg-select-list-bg border-input-warning-border shadow-lg",menuList:"scrollbar-thin scrollbar-thumb-input-border scrollbar-track-transparent",option:"text-select-text cursor-pointer",optionFocused:"bg-input-option-hover-bg text-body",optionSelected:"bg-input-option-active-bg text-input-option-active-text",optionDisabled:"text-input-placeholder cursor-not-allowed",group:"",groupHeading:"text-input-placeholder font-semibold",noOptionsMessage:"text-input-placeholder",loadingMessage:"text-input-placeholder",message:"text-warning-dark",messageBackground:"bg-input-warning-bg",messageBorder:"ring-input-warning-border",icon:"text-input-text",iconAction:"text-input-text hover:text-body",iconActionHover:"hover:text-body hover:bg-input-option-hover-bg"},negative:{control:"cursor-pointer bg-input-bg text-negative",controlFocused:"border-input-error-border",controlDisabled:"opacity-60",controlInvalid:"bg-input-bg border-input-error-border text-negative",placeholder:"placeholder:text-input-placeholder text-input-text placeholder:opacity-60",singleValue:"text-negative",singleValueDisabled:"text-input-placeholder",multiValue:"bg-input-option-active-bg text-input-option-active-text",multiValueLabel:"text-input-option-active-text",multiValueRemove:"text-input-option-active-text hover:bg-input-option-hover-bg hover:text-body rounded-xs p-px",multiValueRemoveHover:"hover:bg-input-option-hover-bg",multiValueDisabled:"bg-canvas-subtle text-muted",clearIndicator:"text-input-text hover:text-body cursor-pointer",clearIndicatorHover:"hover:text-body hover:bg-input-option-hover-bg",dropdownIndicator:"text-input-text",dropdownIndicatorHover:"hover:text-body hover:bg-input-option-hover-bg",indicatorSeparator:"bg-input-border",loadingIndicator:"text-negative",menu:"bg-select-list-bg border-input-error-border shadow-lg",menuList:"scrollbar-thin scrollbar-thumb-input-border scrollbar-track-transparent",option:"text-select-text cursor-pointer",optionFocused:"bg-input-option-hover-bg text-body",optionSelected:"bg-input-option-active-bg text-input-option-active-text",optionDisabled:"text-input-placeholder cursor-not-allowed",group:"",groupHeading:"text-input-placeholder font-semibold",noOptionsMessage:"text-input-placeholder",loadingMessage:"text-input-placeholder",message:"text-negative-dark",messageBackground:"bg-input-error-bg",messageBorder:"ring-input-error-border",icon:"text-input-text",iconAction:"text-input-text hover:text-body",iconActionHover:"hover:text-body hover:bg-input-option-hover-bg"}},qh=({menuOpen:t,menuPlacement:o,hasMessage:n,fallback:i})=>{if(!t)return i;const s=o==="top";return n?s?"last:rounded-b":"first:rounded-t":s?"rounded-b":"rounded-t"},_I=()=>J("flex flex-col relative"),II=({size:t,color:o,isDisabled:n,hasMessage:i,isInvalid:s,isFocused:l,menuPlacement:c})=>{const d=it[s?"negative":o],p=qh({menuOpen:!!(l&&c),menuPlacement:c,hasMessage:i,fallback:"only:rounded first:rounded-t last:rounded-b"});return J("bg-input-bg flex relative transition-all duration-200 ease-in-out items-center",p,d.control,i?["ring-1",d.messageBorder]:["border",n?"border-input-border":l?d.controlFocused:`border-select-border focus-within:${d.controlFocused}`],ht[t].trigger,{"ring-1":i,[d.controlDisabled]:n})},SI=({size:t,color:o,isDisabled:n,isAction:i})=>{const s=it[o];return J("transition-colors duration-200 rounded max-h-full h-fit px-0.5",ht[t].icon,t==="sm"?"m-px":"m-0.5",n?"text-muted opacity-60 pointer-events-none":i?s.iconAction:s.icon,{"cursor-pointer p-0.5":i&&!n,[s.iconActionHover]:i&&!n,"pointer-events-none":!i})},EI=({size:t,color:o,isDisabled:n,isFocused:i,isInvalid:s,hasMessage:l,hasGroup:c,menuPlacement:d})=>{const p=it[s?"negative":o],g=qh({menuOpen:!!(i&&d),menuPlacement:d,hasMessage:l,fallback:"rounded"});return c?J("flex items-center justify-between flex-1 min-w-0",ht[t].control,"bg-transparent border-0",{[p.controlDisabled]:n}):J("flex items-center justify-between",g,ht[t].control,p.control,l?["ring-1",p.messageBorder]:["border",n?"border-input-border":i?p.controlFocused:`border-select-border
|
|
44
|
+
focus-within:${p.controlFocused}`],{[p.controlDisabled]:n})},kI=({isMulti:t})=>J("flex items-center gap-1 flex-1 min-w-0 overflow-hidden",{"flex-wrap":t,"px-0.5":!t}),OI=({size:t,color:o})=>J("bg-transparent border-0 outline-hidden flex-1 min-w-7.5 text-input-text",ht[t].input,it[o].placeholder),CI=({size:t,color:o})=>J("select-none truncate",ht[t].placeholder,it[o].placeholder),NI=({size:t,color:o,isDisabled:n})=>J("truncate",ht[t].singleValue,n?it[o].singleValueDisabled:it[o].singleValue),MI=({size:t,color:o,isDisabled:n,isFocused:i})=>J("inline-flex items-center rounded-xs",ht[t].multiValue,n?it[o].multiValueDisabled:it[o].multiValue,{"border border-white":i&&!n}),RI=({size:t})=>J("truncate",ht[t].multiValueLabel),zI=({size:t,color:o,isDisabled:n})=>J("flex items-center justify-center cursor-pointer transition-colors",ht[t].multiValueRemove,it[o].multiValueRemove),Uh=({size:t,color:o,isDisabled:n})=>J("flex items-center justify-center transition-colors rounded",ht[t].clearIndicator,n?"hidden":[it[o].clearIndicator,it[o].clearIndicatorHover]),DI=({size:t,color:o,isDisabled:n})=>J("flex items-center justify-center transition-colors rounded",ht[t].dropdownIndicator,n?"text-grey-200":[it[o].dropdownIndicator,it[o].dropdownIndicatorHover]),AI=({size:t,placement:o,hasMessage:n,color:i,hasGroup:s})=>{const l=o==="top";return J("absolute z-50 overflow-hidden border",s?"-left-px -right-px":"w-full",it[i].menu,{[it[i].messageBorder]:n},l?"bottom-full rounded-t rounded-b-none border-b-0":"top-full rounded-b border-t-0",ht[t].menu)},TI=({size:t})=>J("overflow-y-auto",ht[t].menuList,it.primary.menuList),PI=({size:t,color:o,isDisabled:n,isFocused:i,isSelected:s})=>J("transition-colors duration-150 cursor-pointer mx-1 rounded flex items-center gap-2 min-w-fit",ht[t].option,{[it[o].optionDisabled]:n,[it[o].optionSelected]:s&&!n,[it[o].optionFocused]:i&&!s&&!n,[it[o].option]:!s&&!i&&!n}),jI=({size:t})=>J(ht[t].group),LI=({size:t,color:o})=>J(ht[t].groupHeading,it[o].groupHeading),VI=({size:t})=>J("text-grey-100",ht[t].loadingMessage),BI=({size:t})=>J(ht[t].noOptionsMessage,it.primary.noOptionsMessage),FI=({size:t,color:o,isInvalid:n,isDisabled:i,usePortal:s=!1,portalPlacement:l="bottom"})=>{const c=it[n?"negative":o];return J("flex items-start gap-x-2 ring-1",s?l==="top"?"rounded-t ring-b-0":"rounded-b ring-t-0":["absolute left-0 right-0 z-10","first:bottom-full first:rounded-t first:ring-b-0","last:top-full last:rounded-b last:ring-t-0","only:top-full only:rounded only:ring-1"],i?"text-muted":c.message,c.messageBackground,c.messageBorder,ht[t].message,{"opacity-60":i})},HI=({size:t})=>J(ht[t].icon),dl=t=>{const o=t[0];return t.length>0&&typeof o=="object"&&o!==null&&"options"in o&&Array.isArray(o.options)},WI=t=>dl(t)?t.reduce((o,n)=>[...o,...n.options],[]):t;function Tt(t,o){if(t==null)return{};var n={};for(var i in t)if({}.hasOwnProperty.call(t,i)){if(o.indexOf(i)!==-1)continue;n[i]=t[i]}return n}function Ce(){return Ce=Object.assign?Object.assign.bind():function(t){for(var o=1;o<arguments.length;o++){var n=arguments[o];for(var i in n)({}).hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},Ce.apply(null,arguments)}function pl(t,o){return pl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},pl(t,o)}function $I(t,o){t.prototype=Object.create(o.prototype),t.prototype.constructor=t,pl(t,o)}var Ki={exports:{}},Zs={exports:{}},Ze={};/** @license React v16.13.1
|
|
45
45
|
* react-is.production.min.js
|
|
46
46
|
*
|
|
47
47
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
48
48
|
*
|
|
49
49
|
* This source code is licensed under the MIT license found in the
|
|
50
50
|
* LICENSE file in the root directory of this source tree.
|
|
51
|
-
*/var
|
|
51
|
+
*/var wp;function qI(){if(wp)return Ze;wp=1;var t=typeof Symbol=="function"&&Symbol.for,o=t?Symbol.for("react.element"):60103,n=t?Symbol.for("react.portal"):60106,i=t?Symbol.for("react.fragment"):60107,s=t?Symbol.for("react.strict_mode"):60108,l=t?Symbol.for("react.profiler"):60114,c=t?Symbol.for("react.provider"):60109,d=t?Symbol.for("react.context"):60110,p=t?Symbol.for("react.async_mode"):60111,g=t?Symbol.for("react.concurrent_mode"):60111,b=t?Symbol.for("react.forward_ref"):60112,x=t?Symbol.for("react.suspense"):60113,I=t?Symbol.for("react.suspense_list"):60120,A=t?Symbol.for("react.memo"):60115,F=t?Symbol.for("react.lazy"):60116,R=t?Symbol.for("react.block"):60121,k=t?Symbol.for("react.fundamental"):60117,L=t?Symbol.for("react.responder"):60118,y=t?Symbol.for("react.scope"):60119;function N(S){if(typeof S=="object"&&S!==null){var P=S.$$typeof;switch(P){case o:switch(S=S.type,S){case p:case g:case i:case l:case s:case x:return S;default:switch(S=S&&S.$$typeof,S){case d:case b:case F:case A:case c:return S;default:return P}}case n:return P}}}function C(S){return N(S)===g}return Ze.AsyncMode=p,Ze.ConcurrentMode=g,Ze.ContextConsumer=d,Ze.ContextProvider=c,Ze.Element=o,Ze.ForwardRef=b,Ze.Fragment=i,Ze.Lazy=F,Ze.Memo=A,Ze.Portal=n,Ze.Profiler=l,Ze.StrictMode=s,Ze.Suspense=x,Ze.isAsyncMode=function(S){return C(S)||N(S)===p},Ze.isConcurrentMode=C,Ze.isContextConsumer=function(S){return N(S)===d},Ze.isContextProvider=function(S){return N(S)===c},Ze.isElement=function(S){return typeof S=="object"&&S!==null&&S.$$typeof===o},Ze.isForwardRef=function(S){return N(S)===b},Ze.isFragment=function(S){return N(S)===i},Ze.isLazy=function(S){return N(S)===F},Ze.isMemo=function(S){return N(S)===A},Ze.isPortal=function(S){return N(S)===n},Ze.isProfiler=function(S){return N(S)===l},Ze.isStrictMode=function(S){return N(S)===s},Ze.isSuspense=function(S){return N(S)===x},Ze.isValidElementType=function(S){return typeof S=="string"||typeof S=="function"||S===i||S===g||S===l||S===s||S===x||S===I||typeof S=="object"&&S!==null&&(S.$$typeof===F||S.$$typeof===A||S.$$typeof===c||S.$$typeof===d||S.$$typeof===b||S.$$typeof===k||S.$$typeof===L||S.$$typeof===y||S.$$typeof===R)},Ze.typeOf=N,Ze}var Xe={};/** @license React v16.13.1
|
|
52
52
|
* react-is.development.js
|
|
53
53
|
*
|
|
54
54
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
55
55
|
*
|
|
56
56
|
* This source code is licensed under the MIT license found in the
|
|
57
57
|
* LICENSE file in the root directory of this source tree.
|
|
58
|
-
*/var
|
|
58
|
+
*/var xp;function UI(){return xp||(xp=1,process.env.NODE_ENV!=="production"&&(function(){var t=typeof Symbol=="function"&&Symbol.for,o=t?Symbol.for("react.element"):60103,n=t?Symbol.for("react.portal"):60106,i=t?Symbol.for("react.fragment"):60107,s=t?Symbol.for("react.strict_mode"):60108,l=t?Symbol.for("react.profiler"):60114,c=t?Symbol.for("react.provider"):60109,d=t?Symbol.for("react.context"):60110,p=t?Symbol.for("react.async_mode"):60111,g=t?Symbol.for("react.concurrent_mode"):60111,b=t?Symbol.for("react.forward_ref"):60112,x=t?Symbol.for("react.suspense"):60113,I=t?Symbol.for("react.suspense_list"):60120,A=t?Symbol.for("react.memo"):60115,F=t?Symbol.for("react.lazy"):60116,R=t?Symbol.for("react.block"):60121,k=t?Symbol.for("react.fundamental"):60117,L=t?Symbol.for("react.responder"):60118,y=t?Symbol.for("react.scope"):60119;function N(Q){return typeof Q=="string"||typeof Q=="function"||Q===i||Q===g||Q===l||Q===s||Q===x||Q===I||typeof Q=="object"&&Q!==null&&(Q.$$typeof===F||Q.$$typeof===A||Q.$$typeof===c||Q.$$typeof===d||Q.$$typeof===b||Q.$$typeof===k||Q.$$typeof===L||Q.$$typeof===y||Q.$$typeof===R)}function C(Q){if(typeof Q=="object"&&Q!==null){var be=Q.$$typeof;switch(be){case o:var le=Q.type;switch(le){case p:case g:case i:case l:case s:case x:return le;default:var Me=le&&le.$$typeof;switch(Me){case d:case b:case F:case A:case c:return Me;default:return be}}case n:return be}}}var S=p,P=g,W=d,V=c,q=o,G=b,te=i,pe=F,ye=A,ce=n,ie=l,ae=s,xe=x,ne=!1;function Ie(Q){return ne||(ne=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),E(Q)||C(Q)===p}function E(Q){return C(Q)===g}function M(Q){return C(Q)===d}function T(Q){return C(Q)===c}function K(Q){return typeof Q=="object"&&Q!==null&&Q.$$typeof===o}function j(Q){return C(Q)===b}function X(Q){return C(Q)===i}function $(Q){return C(Q)===F}function H(Q){return C(Q)===A}function re(Q){return C(Q)===n}function he(Q){return C(Q)===l}function ue(Q){return C(Q)===s}function _e(Q){return C(Q)===x}Xe.AsyncMode=S,Xe.ConcurrentMode=P,Xe.ContextConsumer=W,Xe.ContextProvider=V,Xe.Element=q,Xe.ForwardRef=G,Xe.Fragment=te,Xe.Lazy=pe,Xe.Memo=ye,Xe.Portal=ce,Xe.Profiler=ie,Xe.StrictMode=ae,Xe.Suspense=xe,Xe.isAsyncMode=Ie,Xe.isConcurrentMode=E,Xe.isContextConsumer=M,Xe.isContextProvider=T,Xe.isElement=K,Xe.isForwardRef=j,Xe.isFragment=X,Xe.isLazy=$,Xe.isMemo=H,Xe.isPortal=re,Xe.isProfiler=he,Xe.isStrictMode=ue,Xe.isSuspense=_e,Xe.isValidElementType=N,Xe.typeOf=C})()),Xe}var yp;function Kh(){return yp||(yp=1,process.env.NODE_ENV==="production"?Zs.exports=qI():Zs.exports=UI()),Zs.exports}/*
|
|
59
59
|
object-assign
|
|
60
60
|
(c) Sindre Sorhus
|
|
61
61
|
@license MIT
|
|
62
|
-
*/var
|
|
63
|
-
Valid keys: `+JSON.stringify(Object.keys(
|
|
62
|
+
*/var Ys,_p;function KI(){if(_p)return Ys;_p=1;var t=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function i(l){if(l==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(l)}function s(){try{if(!Object.assign)return!1;var l=new String("abc");if(l[5]="de",Object.getOwnPropertyNames(l)[0]==="5")return!1;for(var c={},d=0;d<10;d++)c["_"+String.fromCharCode(d)]=d;var p=Object.getOwnPropertyNames(c).map(function(b){return c[b]});if(p.join("")!=="0123456789")return!1;var g={};return"abcdefghijklmnopqrst".split("").forEach(function(b){g[b]=b}),Object.keys(Object.assign({},g)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Ys=s()?Object.assign:function(l,c){for(var d,p=i(l),g,b=1;b<arguments.length;b++){d=Object(arguments[b]);for(var x in d)o.call(d,x)&&(p[x]=d[x]);if(t){g=t(d);for(var I=0;I<g.length;I++)n.call(d,g[I])&&(p[g[I]]=d[g[I]])}}return p},Ys}var Xs,Ip;function _l(){if(Ip)return Xs;Ip=1;var t="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Xs=t,Xs}var Sp,Ep;function Gh(){return Ep||(Ep=1,Sp=Function.call.bind(Object.prototype.hasOwnProperty)),Sp}var Js,kp;function GI(){if(kp)return Js;kp=1;var t=function(){};if(process.env.NODE_ENV!=="production"){var o=_l(),n={},i=Gh();t=function(l){var c="Warning: "+l;typeof console<"u"&&console.error(c);try{throw new Error(c)}catch{}}}function s(l,c,d,p,g){if(process.env.NODE_ENV!=="production"){for(var b in l)if(i(l,b)){var x;try{if(typeof l[b]!="function"){var I=Error((p||"React class")+": "+d+" type `"+b+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof l[b]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw I.name="Invariant Violation",I}x=l[b](c,b,p,d,null,o)}catch(F){x=F}if(x&&!(x instanceof Error)&&t((p||"React class")+": type specification of "+d+" `"+b+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof x+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),x instanceof Error&&!(x.message in n)){n[x.message]=!0;var A=g?g():"";t("Failed "+d+" type: "+x.message+(A??""))}}}}return s.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},Js=s,Js}var Qs,Op;function ZI(){if(Op)return Qs;Op=1;var t=Kh(),o=KI(),n=_l(),i=Gh(),s=GI(),l=function(){};process.env.NODE_ENV!=="production"&&(l=function(d){var p="Warning: "+d;typeof console<"u"&&console.error(p);try{throw new Error(p)}catch{}});function c(){return null}return Qs=function(d,p){var g=typeof Symbol=="function"&&Symbol.iterator,b="@@iterator";function x(E){var M=E&&(g&&E[g]||E[b]);if(typeof M=="function")return M}var I="<<anonymous>>",A={array:L("array"),bigint:L("bigint"),bool:L("boolean"),func:L("function"),number:L("number"),object:L("object"),string:L("string"),symbol:L("symbol"),any:y(),arrayOf:N,element:C(),elementType:S(),instanceOf:P,node:G(),objectOf:V,oneOf:W,oneOfType:q,shape:pe,exact:ye};function F(E,M){return E===M?E!==0||1/E===1/M:E!==E&&M!==M}function R(E,M){this.message=E,this.data=M&&typeof M=="object"?M:{},this.stack=""}R.prototype=Error.prototype;function k(E){if(process.env.NODE_ENV!=="production")var M={},T=0;function K(X,$,H,re,he,ue,_e){if(re=re||I,ue=ue||H,_e!==n){if(p){var Q=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw Q.name="Invariant Violation",Q}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var be=re+":"+H;!M[be]&&T<3&&(l("You are manually calling a React.PropTypes validation function for the `"+ue+"` prop on `"+re+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),M[be]=!0,T++)}}return $[H]==null?X?$[H]===null?new R("The "+he+" `"+ue+"` is marked as required "+("in `"+re+"`, but its value is `null`.")):new R("The "+he+" `"+ue+"` is marked as required in "+("`"+re+"`, but its value is `undefined`.")):null:E($,H,re,he,ue)}var j=K.bind(null,!1);return j.isRequired=K.bind(null,!0),j}function L(E){function M(T,K,j,X,$,H){var re=T[K],he=ae(re);if(he!==E){var ue=xe(re);return new R("Invalid "+X+" `"+$+"` of type "+("`"+ue+"` supplied to `"+j+"`, expected ")+("`"+E+"`."),{expectedType:E})}return null}return k(M)}function y(){return k(c)}function N(E){function M(T,K,j,X,$){if(typeof E!="function")return new R("Property `"+$+"` of component `"+j+"` has invalid PropType notation inside arrayOf.");var H=T[K];if(!Array.isArray(H)){var re=ae(H);return new R("Invalid "+X+" `"+$+"` of type "+("`"+re+"` supplied to `"+j+"`, expected an array."))}for(var he=0;he<H.length;he++){var ue=E(H,he,j,X,$+"["+he+"]",n);if(ue instanceof Error)return ue}return null}return k(M)}function C(){function E(M,T,K,j,X){var $=M[T];if(!d($)){var H=ae($);return new R("Invalid "+j+" `"+X+"` of type "+("`"+H+"` supplied to `"+K+"`, expected a single ReactElement."))}return null}return k(E)}function S(){function E(M,T,K,j,X){var $=M[T];if(!t.isValidElementType($)){var H=ae($);return new R("Invalid "+j+" `"+X+"` of type "+("`"+H+"` supplied to `"+K+"`, expected a single ReactElement type."))}return null}return k(E)}function P(E){function M(T,K,j,X,$){if(!(T[K]instanceof E)){var H=E.name||I,re=Ie(T[K]);return new R("Invalid "+X+" `"+$+"` of type "+("`"+re+"` supplied to `"+j+"`, expected ")+("instance of `"+H+"`."))}return null}return k(M)}function W(E){if(!Array.isArray(E))return process.env.NODE_ENV!=="production"&&(arguments.length>1?l("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):l("Invalid argument supplied to oneOf, expected an array.")),c;function M(T,K,j,X,$){for(var H=T[K],re=0;re<E.length;re++)if(F(H,E[re]))return null;var he=JSON.stringify(E,function(ue,_e){var Q=xe(_e);return Q==="symbol"?String(_e):_e});return new R("Invalid "+X+" `"+$+"` of value `"+String(H)+"` "+("supplied to `"+j+"`, expected one of "+he+"."))}return k(M)}function V(E){function M(T,K,j,X,$){if(typeof E!="function")return new R("Property `"+$+"` of component `"+j+"` has invalid PropType notation inside objectOf.");var H=T[K],re=ae(H);if(re!=="object")return new R("Invalid "+X+" `"+$+"` of type "+("`"+re+"` supplied to `"+j+"`, expected an object."));for(var he in H)if(i(H,he)){var ue=E(H,he,j,X,$+"."+he,n);if(ue instanceof Error)return ue}return null}return k(M)}function q(E){if(!Array.isArray(E))return process.env.NODE_ENV!=="production"&&l("Invalid argument supplied to oneOfType, expected an instance of array."),c;for(var M=0;M<E.length;M++){var T=E[M];if(typeof T!="function")return l("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+ne(T)+" at index "+M+"."),c}function K(j,X,$,H,re){for(var he=[],ue=0;ue<E.length;ue++){var _e=E[ue],Q=_e(j,X,$,H,re,n);if(Q==null)return null;Q.data&&i(Q.data,"expectedType")&&he.push(Q.data.expectedType)}var be=he.length>0?", expected one of type ["+he.join(", ")+"]":"";return new R("Invalid "+H+" `"+re+"` supplied to "+("`"+$+"`"+be+"."))}return k(K)}function G(){function E(M,T,K,j,X){return ce(M[T])?null:new R("Invalid "+j+" `"+X+"` supplied to "+("`"+K+"`, expected a ReactNode."))}return k(E)}function te(E,M,T,K,j){return new R((E||"React class")+": "+M+" type `"+T+"."+K+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+j+"`.")}function pe(E){function M(T,K,j,X,$){var H=T[K],re=ae(H);if(re!=="object")return new R("Invalid "+X+" `"+$+"` of type `"+re+"` "+("supplied to `"+j+"`, expected `object`."));for(var he in E){var ue=E[he];if(typeof ue!="function")return te(j,X,$,he,xe(ue));var _e=ue(H,he,j,X,$+"."+he,n);if(_e)return _e}return null}return k(M)}function ye(E){function M(T,K,j,X,$){var H=T[K],re=ae(H);if(re!=="object")return new R("Invalid "+X+" `"+$+"` of type `"+re+"` "+("supplied to `"+j+"`, expected `object`."));var he=o({},T[K],E);for(var ue in he){var _e=E[ue];if(i(E,ue)&&typeof _e!="function")return te(j,X,$,ue,xe(_e));if(!_e)return new R("Invalid "+X+" `"+$+"` key `"+ue+"` supplied to `"+j+"`.\nBad object: "+JSON.stringify(T[K],null," ")+`
|
|
63
|
+
Valid keys: `+JSON.stringify(Object.keys(E),null," "));var Q=_e(H,ue,j,X,$+"."+ue,n);if(Q)return Q}return null}return k(M)}function ce(E){switch(typeof E){case"number":case"string":case"undefined":return!0;case"boolean":return!E;case"object":if(Array.isArray(E))return E.every(ce);if(E===null||d(E))return!0;var M=x(E);if(M){var T=M.call(E),K;if(M!==E.entries){for(;!(K=T.next()).done;)if(!ce(K.value))return!1}else for(;!(K=T.next()).done;){var j=K.value;if(j&&!ce(j[1]))return!1}}else return!1;return!0;default:return!1}}function ie(E,M){return E==="symbol"?!0:M?M["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&M instanceof Symbol:!1}function ae(E){var M=typeof E;return Array.isArray(E)?"array":E instanceof RegExp?"object":ie(M,E)?"symbol":M}function xe(E){if(typeof E>"u"||E===null)return""+E;var M=ae(E);if(M==="object"){if(E instanceof Date)return"date";if(E instanceof RegExp)return"regexp"}return M}function ne(E){var M=xe(E);switch(M){case"array":case"object":return"an "+M;case"boolean":case"date":case"regexp":return"a "+M;default:return M}}function Ie(E){return!E.constructor||!E.constructor.name?I:E.constructor.name}return A.checkPropTypes=s,A.resetWarningCache=s.resetWarningCache,A.PropTypes=A,A},Qs}var el,Cp;function YI(){if(Cp)return el;Cp=1;var t=_l();function o(){}function n(){}return n.resetWarningCache=o,el=function(){function i(c,d,p,g,b,x){if(x!==t){var I=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw I.name="Invariant Violation",I}}i.isRequired=i;function s(){return i}var l={array:i,bigint:i,bool:i,func:i,number:i,object:i,string:i,symbol:i,any:i,arrayOf:s,element:i,elementType:i,instanceOf:s,node:i,objectOf:s,oneOf:s,oneOfType:s,shape:s,exact:s,checkPropTypes:n,resetWarningCache:o};return l.PropTypes=l,l},el}var Np;function XI(){if(Np)return Ki.exports;if(Np=1,process.env.NODE_ENV!=="production"){var t=Kh(),o=!0;Ki.exports=ZI()(t.isElement,o)}else Ki.exports=YI()();return Ki.exports}var JI=XI();const se=xh(JI);var tl={exports:{}},Ye={};/**
|
|
64
64
|
* @license React
|
|
65
65
|
* react-is.production.min.js
|
|
66
66
|
*
|
|
@@ -68,7 +68,7 @@ Valid keys: `+JSON.stringify(Object.keys(M),null," "));var H=se(U,F,P,J,G+"."+F
|
|
|
68
68
|
*
|
|
69
69
|
* This source code is licensed under the MIT license found in the
|
|
70
70
|
* LICENSE file in the root directory of this source tree.
|
|
71
|
-
*/var
|
|
71
|
+
*/var Mp;function QI(){if(Mp)return Ye;Mp=1;var t=Symbol.for("react.element"),o=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),c=Symbol.for("react.context"),d=Symbol.for("react.server_context"),p=Symbol.for("react.forward_ref"),g=Symbol.for("react.suspense"),b=Symbol.for("react.suspense_list"),x=Symbol.for("react.memo"),I=Symbol.for("react.lazy"),A=Symbol.for("react.offscreen"),F;F=Symbol.for("react.module.reference");function R(k){if(typeof k=="object"&&k!==null){var L=k.$$typeof;switch(L){case t:switch(k=k.type,k){case n:case s:case i:case g:case b:return k;default:switch(k=k&&k.$$typeof,k){case d:case c:case p:case I:case x:case l:return k;default:return L}}case o:return L}}}return Ye.ContextConsumer=c,Ye.ContextProvider=l,Ye.Element=t,Ye.ForwardRef=p,Ye.Fragment=n,Ye.Lazy=I,Ye.Memo=x,Ye.Portal=o,Ye.Profiler=s,Ye.StrictMode=i,Ye.Suspense=g,Ye.SuspenseList=b,Ye.isAsyncMode=function(){return!1},Ye.isConcurrentMode=function(){return!1},Ye.isContextConsumer=function(k){return R(k)===c},Ye.isContextProvider=function(k){return R(k)===l},Ye.isElement=function(k){return typeof k=="object"&&k!==null&&k.$$typeof===t},Ye.isForwardRef=function(k){return R(k)===p},Ye.isFragment=function(k){return R(k)===n},Ye.isLazy=function(k){return R(k)===I},Ye.isMemo=function(k){return R(k)===x},Ye.isPortal=function(k){return R(k)===o},Ye.isProfiler=function(k){return R(k)===s},Ye.isStrictMode=function(k){return R(k)===i},Ye.isSuspense=function(k){return R(k)===g},Ye.isSuspenseList=function(k){return R(k)===b},Ye.isValidElementType=function(k){return typeof k=="string"||typeof k=="function"||k===n||k===s||k===i||k===g||k===b||k===A||typeof k=="object"&&k!==null&&(k.$$typeof===I||k.$$typeof===x||k.$$typeof===l||k.$$typeof===c||k.$$typeof===p||k.$$typeof===F||k.getModuleId!==void 0)},Ye.typeOf=R,Ye}var Je={};/**
|
|
72
72
|
* @license React
|
|
73
73
|
* react-is.development.js
|
|
74
74
|
*
|
|
@@ -76,9 +76,19 @@ Valid keys: `+JSON.stringify(Object.keys(M),null," "));var H=se(U,F,P,J,G+"."+F
|
|
|
76
76
|
*
|
|
77
77
|
* This source code is licensed under the MIT license found in the
|
|
78
78
|
* LICENSE file in the root directory of this source tree.
|
|
79
|
-
*/var cp;function II(){return cp||(cp=1,process.env.NODE_ENV!=="production"&&(function(){var r=Symbol.for("react.element"),i=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),c=Symbol.for("react.context"),d=Symbol.for("react.server_context"),h=Symbol.for("react.forward_ref"),v=Symbol.for("react.suspense"),m=Symbol.for("react.suspense_list"),w=Symbol.for("react.memo"),S=Symbol.for("react.lazy"),D=Symbol.for("react.offscreen"),B=!1,z=!1,k=!1,A=!1,_=!1,E;E=Symbol.for("react.module.reference");function O(te){return!!(typeof te=="string"||typeof te=="function"||te===n||te===s||_||te===o||te===v||te===m||A||te===D||B||z||k||typeof te=="object"&&te!==null&&(te.$$typeof===S||te.$$typeof===w||te.$$typeof===l||te.$$typeof===c||te.$$typeof===h||te.$$typeof===E||te.getModuleId!==void 0))}function N(te){if(typeof te=="object"&&te!==null){var ke=te.$$typeof;switch(ke){case r:var De=te.type;switch(De){case n:case s:case o:case v:case m:return De;default:var qe=De&&De.$$typeof;switch(qe){case d:case c:case h:case S:case w:case l:return qe;default:return ke}}case i:return ke}}}var V=c,ae=l,j=r,$=h,oe=n,ue=S,pe=w,q=i,Z=s,fe=o,he=v,Ee=m,ie=!1,Se=!1;function M(te){return ie||(ie=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function T(te){return Se||(Se=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function K(te){return N(te)===c}function re(te){return N(te)===l}function P(te){return typeof te=="object"&&te!==null&&te.$$typeof===r}function J(te){return N(te)===h}function G(te){return N(te)===n}function U(te){return N(te)===S}function le(te){return N(te)===w}function de(te){return N(te)===i}function F(te){return N(te)===s}function se(te){return N(te)===o}function H(te){return N(te)===v}function we(te){return N(te)===m}Ge.ContextConsumer=V,Ge.ContextProvider=ae,Ge.Element=j,Ge.ForwardRef=$,Ge.Fragment=oe,Ge.Lazy=ue,Ge.Memo=pe,Ge.Portal=q,Ge.Profiler=Z,Ge.StrictMode=fe,Ge.Suspense=he,Ge.SuspenseList=Ee,Ge.isAsyncMode=M,Ge.isConcurrentMode=T,Ge.isContextConsumer=K,Ge.isContextProvider=re,Ge.isElement=P,Ge.isForwardRef=J,Ge.isFragment=G,Ge.isLazy=U,Ge.isMemo=le,Ge.isPortal=de,Ge.isProfiler=F,Ge.isStrictMode=se,Ge.isSuspense=H,Ge.isSuspenseList=we,Ge.isValidElementType=O,Ge.typeOf=N})()),Ge}var up;function SI(){return up||(up=1,process.env.NODE_ENV==="production"?Ts.exports=_I():Ts.exports=II()),Ts.exports}var dp=SI();const pp=r=>typeof r=="object"&&r!=null&&r.nodeType===1,hp=(r,i)=>(!i||r!=="hidden")&&r!=="visible"&&r!=="clip",Po=(r,i)=>{if(r.clientHeight<r.scrollHeight||r.clientWidth<r.scrollWidth){const n=getComputedStyle(r,null);return hp(n.overflowY,i)||hp(n.overflowX,i)||(o=>{const s=(l=>{if(!l.ownerDocument||!l.ownerDocument.defaultView)return null;try{return l.ownerDocument.defaultView.frameElement}catch{return null}})(o);return!!s&&(s.clientHeight<o.scrollHeight||s.clientWidth<o.scrollWidth)})(r)}return!1},Lo=(r,i,n,o,s,l,c,d)=>l<r&&c>i||l>r&&c<i?0:l<=r&&d<=n||c>=i&&d>=n?l-r-o:c>i&&d<n||l<r&&d>n?c-i+s:0,EI=r=>r.parentElement??(r.getRootNode().host||null),kI=(r,i)=>{var n,o,s,l;if(typeof document>"u")return[];const{inline:c,boundary:d,skipOverflowHiddenElements:h}=i,v=typeof d=="function"?d:q=>q!==d;if(!pp(r))throw new TypeError("Invalid target");const m=document.scrollingElement||document.documentElement,w=[];let S=r;for(;pp(S)&&v(S);){if(S=EI(S),S===m){w.push(S);break}S!=null&&S===document.body&&Po(S)&&!Po(document.documentElement)||S!=null&&Po(S,h)&&w.push(S)}const D=(o=(n=window.visualViewport)==null?void 0:n.width)!=null?o:innerWidth,B=(l=(s=window.visualViewport)==null?void 0:s.height)!=null?l:innerHeight,{scrollX:z,scrollY:k}=window,{height:A,width:_,top:E,right:O,bottom:N,left:V}=r.getBoundingClientRect(),{top:ae,right:j,left:$}=(q=>{const Z=window.getComputedStyle(q);return{top:parseFloat(Z.scrollMarginTop)||0,right:parseFloat(Z.scrollMarginRight)||0,bottom:parseFloat(Z.scrollMarginBottom)||0,left:parseFloat(Z.scrollMarginLeft)||0}})(r);let oe=E-ae,ue=c==="center"?V+_/2-$+j:c==="end"?O+j:V-$;const pe=[];for(let q=0;q<w.length;q++){const Z=w[q],{height:fe,width:he,top:Ee,right:ie,bottom:Se,left:M}=Z.getBoundingClientRect();if(E>=0&&V>=0&&N<=B&&O<=D&&(Z===m&&!Po(Z)||E>=Ee&&N<=Se&&V>=M&&O<=ie))return pe;const T=getComputedStyle(Z),K=parseInt(T.borderLeftWidth,10),re=parseInt(T.borderTopWidth,10),P=parseInt(T.borderRightWidth,10),J=parseInt(T.borderBottomWidth,10);let G=0,U=0;const le="offsetWidth"in Z?Z.offsetWidth-Z.clientWidth-K-P:0,de="offsetHeight"in Z?Z.offsetHeight-Z.clientHeight-re-J:0,F="offsetWidth"in Z?Z.offsetWidth===0?0:he/Z.offsetWidth:0,se="offsetHeight"in Z?Z.offsetHeight===0?0:fe/Z.offsetHeight:0;if(m===Z)G=Lo(k,k+B,B,re,J,k+oe,k+oe+A,A),U=c==="start"?ue:c==="center"?ue-D/2:c==="end"?ue-D:Lo(z,z+D,D,K,P,z+ue,z+ue+_,_),G=Math.max(0,G+k),U=Math.max(0,U+z);else{G=Lo(Ee,Se,fe,re,J+de,oe,oe+A,A),U=c==="start"?ue-M-K:c==="center"?ue-(M+he/2)+le/2:c==="end"?ue-ie+P+le:Lo(M,ie,he,K,P+le,ue,ue+_,_);const{scrollLeft:H,scrollTop:we}=Z;G=se===0?0:Math.max(0,Math.min(we+G/se,Z.scrollHeight-fe/se+de)),U=F===0?0:Math.max(0,Math.min(H+U/F,Z.scrollWidth-he/F+le)),oe+=we-G,ue+=H-U}pe.push({el:Z,top:G,left:U})}return pe};var Fn=function(){return Fn=Object.assign||function(r){for(var i,n=1,o=arguments.length;n<o;n++){i=arguments[n];for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(r[s]=i[s])}return r},Fn.apply(this,arguments)},OI=0;function fp(r){return typeof r=="function"?r:Dt}function Dt(){}function wh(r,i){if(r){var n=kI(r,{boundary:i});n.forEach(function(o){var s=o.el,l=o.top,c=o.left;s.scrollTop=l,s.scrollLeft=c})}}function gp(r,i,n){var o=r===i||i instanceof n.Node&&r.contains&&r.contains(i);return o}function sa(r,i){var n;function o(){n&&clearTimeout(n)}function s(){for(var l=arguments.length,c=new Array(l),d=0;d<l;d++)c[d]=arguments[d];o(),n=setTimeout(function(){n=null,r.apply(void 0,c)},i)}return s.cancel=o,s}function Be(){for(var r=arguments.length,i=new Array(r),n=0;n<r;n++)i[n]=arguments[n];return function(o){for(var s=arguments.length,l=new Array(s>1?s-1:0),c=1;c<s;c++)l[c-1]=arguments[c];return i.some(function(d){return d&&d.apply(void 0,[o].concat(l)),o.preventDownshiftDefault||o.hasOwnProperty("nativeEvent")&&o.nativeEvent.preventDownshiftDefault})}}function pr(){for(var r=arguments.length,i=new Array(r),n=0;n<r;n++)i[n]=arguments[n];return function(o){i.forEach(function(s){typeof s=="function"?s(o):s&&(s.current=o)})}}function xh(){return String(OI++)}function NI(r){var i=r.isOpen,n=r.resultCount,o=r.previousResultCount;return i?n?n!==o?n+" result"+(n===1?" is":"s are")+" available, use up and down arrow keys to navigate. Press Enter key to select.":"":"No results are available.":""}function vp(r,i){return r=Array.isArray(r)?r[0]:r,!r&&i?i:r}function yh(r){return typeof r.type=="string"}function _h(r){return r.props}function CI(r,i){console.error('The property "'+i+'" is required in "'+r+'"')}var RI=["highlightedIndex","inputValue","isOpen","selectedItem","type"];function jo(r){r===void 0&&(r={});var i={};return RI.forEach(function(n){r.hasOwnProperty(n)&&(i[n]=r[n])}),i}function Ei(r,i){return!r||!i?r:Object.keys(r).reduce(function(n,o){return n[o]=Qo(i,o)?i[o]:r[o],n},{})}function Qo(r,i){return r[i]!==void 0}function Hn(r){var i=r.key,n=r.keyCode;return n>=37&&n<=40&&i.indexOf("Arrow")!==0?"Arrow"+i:i}function MI(r){return Object.prototype.toString.call(r)==="[object Object]"}function hr(r,i,n,o,s){s===void 0&&(s=!1);var l=n.length;if(l===0)return-1;var c=l-1;(typeof r!="number"||r<0||r>c)&&(r=i>0?-1:c+1);var d=r+i;d<0?d=s?c:0:d>c&&(d=s?0:c);var h=qr(d,i<0,n,o,s);return h===-1?r>=l?-1:r:h}function qr(r,i,n,o,s){s===void 0&&(s=!1);var l=n.length;if(i){for(var c=r;c>=0;c--)if(!o(n[c],c))return c}else for(var d=r;d<l;d++)if(!o(n[d],d))return d;return s?qr(i?l-1:0,i,n,o):-1}function Jo(r,i,n,o){return o===void 0&&(o=!0),n&&i.some(function(s){return s&&(gp(s,r,n)||o&&gp(s,n.document.activeElement,n))})}var rl=Dt;process.env.NODE_ENV!=="production"&&(rl=function(r,i,n){var o="This prop should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled Downshift element for the lifetime of the component. More info: https://github.com/downshift-js/downshift#control-props";Object.keys(r).forEach(function(s){i[s]!==void 0&&n[s]===void 0?console.error('downshift: A component has changed the controlled prop "'+s+'" to be uncontrolled. '+o):i[s]===void 0&&n[s]!==void 0&&console.error('downshift: A component has changed the uncontrolled prop "'+s+'" to be controlled. '+o)})});var zI=sa(function(r){Ih(r).textContent=""},500);function Ih(r){var i=r.getElementById("a11y-status-message");return i||(i=r.createElement("div"),i.setAttribute("id","a11y-status-message"),i.setAttribute("role","status"),i.setAttribute("aria-live","polite"),i.setAttribute("aria-relevant","additions text"),Object.assign(i.style,{border:"0",clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:"0",position:"absolute",width:"1px"}),r.body.appendChild(i),i)}function Sh(r,i){if(!(!r||!i)){var n=Ih(i);n.textContent=r,zI(i)}}function DI(r){var i=r==null?void 0:r.getElementById("a11y-status-message");i&&i.remove()}var Eh=process.env.NODE_ENV!=="production"?"__autocomplete_unknown__":0,kh=process.env.NODE_ENV!=="production"?"__autocomplete_mouseup__":1,Oh=process.env.NODE_ENV!=="production"?"__autocomplete_item_mouseenter__":2,Ho=process.env.NODE_ENV!=="production"?"__autocomplete_keydown_arrow_up__":3,Wo=process.env.NODE_ENV!=="production"?"__autocomplete_keydown_arrow_down__":4,Nh=process.env.NODE_ENV!=="production"?"__autocomplete_keydown_escape__":5,Ch=process.env.NODE_ENV!=="production"?"__autocomplete_keydown_enter__":6,Rh=process.env.NODE_ENV!=="production"?"__autocomplete_keydown_home__":7,Mh=process.env.NODE_ENV!=="production"?"__autocomplete_keydown_end__":8,zh=process.env.NODE_ENV!=="production"?"__autocomplete_click_item__":9,Dh=process.env.NODE_ENV!=="production"?"__autocomplete_blur_input__":10,Ah=process.env.NODE_ENV!=="production"?"__autocomplete_change_input__":11,Th=process.env.NODE_ENV!=="production"?"__autocomplete_keydown_space_button__":12,Us=process.env.NODE_ENV!=="production"?"__autocomplete_click_button__":13,Ph=process.env.NODE_ENV!=="production"?"__autocomplete_blur_button__":14,Lh=process.env.NODE_ENV!=="production"?"__autocomplete_controlled_prop_updated_selected_item__":15,jh=process.env.NODE_ENV!=="production"?"__autocomplete_touchend__":16,AI=Object.freeze({__proto__:null,blurButton:Ph,blurInput:Dh,changeInput:Ah,clickButton:Us,clickItem:zh,controlledPropUpdatedSelectedItem:Lh,itemMouseEnter:Oh,keyDownArrowDown:Wo,keyDownArrowUp:Ho,keyDownEnd:Mh,keyDownEnter:Ch,keyDownEscape:Nh,keyDownHome:Rh,keyDownSpaceButton:Th,mouseUp:kh,touchEnd:jh,unknown:Eh}),TI=["refKey","ref"],PI=["onClick","onPress","onKeyDown","onKeyUp","onBlur"],LI=["onKeyDown","onBlur","onChange","onInput","onChangeText"],jI=["refKey","ref"],BI=["onMouseMove","onMouseDown","onClick","onPress","index","item"],VI=(function(){var r=(function(i){function n(s){var l;l=i.call(this,s)||this,l.id=l.props.id||"downshift-"+xh(),l.menuId=l.props.menuId||l.id+"-menu",l.labelId=l.props.labelId||l.id+"-label",l.inputId=l.props.inputId||l.id+"-input",l.getItemId=l.props.getItemId||function(_){return l.id+"-item-"+_},l.items=[],l.itemCount=null,l.previousResultCount=0,l.timeoutIds=[],l.internalSetTimeout=function(_,E){var O=setTimeout(function(){l.timeoutIds=l.timeoutIds.filter(function(N){return N!==O}),_()},E);l.timeoutIds.push(O)},l.setItemCount=function(_){l.itemCount=_},l.unsetItemCount=function(){l.itemCount=null},l.isItemDisabled=function(_,E){var O=l.getItemNodeFromIndex(E);return O&&O.hasAttribute("disabled")},l.setHighlightedIndex=function(_,E){_===void 0&&(_=l.props.defaultHighlightedIndex),E===void 0&&(E={}),E=jo(E),l.internalSetState(_e({highlightedIndex:_},E))},l.clearSelection=function(_){l.internalSetState({selectedItem:null,inputValue:"",highlightedIndex:l.props.defaultHighlightedIndex,isOpen:l.props.defaultIsOpen},_)},l.selectItem=function(_,E,O){E=jo(E),l.internalSetState(_e({isOpen:l.props.defaultIsOpen,highlightedIndex:l.props.defaultHighlightedIndex,selectedItem:_,inputValue:l.props.itemToString(_)},E),O)},l.selectItemAtIndex=function(_,E,O){var N=l.items[_];N!=null&&l.selectItem(N,E,O)},l.selectHighlightedItem=function(_,E){return l.selectItemAtIndex(l.getState().highlightedIndex,_,E)},l.internalSetState=function(_,E){var O,N,V={},ae=typeof _=="function";return!ae&&_.hasOwnProperty("inputValue")&&l.props.onInputValueChange(_.inputValue,_e({},l.getStateAndHelpers(),_)),l.setState(function(j){var $;j=l.getState(j);var oe=ae?_(j):_;oe=l.props.stateReducer(j,oe),O=oe.hasOwnProperty("selectedItem");var ue={};return O&&oe.selectedItem!==j.selectedItem&&(N=oe.selectedItem),($=oe).type||($.type=Eh),Object.keys(oe).forEach(function(pe){j[pe]!==oe[pe]&&(V[pe]=oe[pe]),pe!=="type"&&(oe[pe],Qo(l.props,pe)||(ue[pe]=oe[pe]))}),ae&&oe.hasOwnProperty("inputValue")&&l.props.onInputValueChange(oe.inputValue,_e({},l.getStateAndHelpers(),oe)),ue},function(){fp(E)();var j=Object.keys(V).length>1;j&&l.props.onStateChange(V,l.getStateAndHelpers()),O&&l.props.onSelect(_.selectedItem,l.getStateAndHelpers()),N!==void 0&&l.props.onChange(N,l.getStateAndHelpers()),l.props.onUserAction(V,l.getStateAndHelpers())})},l.rootRef=function(_){return l._rootNode=_},l.getRootProps=function(_,E){var O,N=_===void 0?{}:_,V=N.refKey,ae=V===void 0?"ref":V,j=N.ref,$=Tt(N,TI),oe=E===void 0?{}:E,ue=oe.suppressRefError,pe=ue===void 0?!1:ue;l.getRootProps.called=!0,l.getRootProps.refKey=ae,l.getRootProps.suppressRefError=pe;var q=l.getState(),Z=q.isOpen;return _e((O={},O[ae]=pr(j,l.rootRef),O.role="combobox",O["aria-expanded"]=Z,O["aria-haspopup"]="listbox",O["aria-owns"]=Z?l.menuId:void 0,O["aria-labelledby"]=l.labelId,O),$)},l.keyDownHandlers={ArrowDown:function(_){var E=this;if(_.preventDefault(),this.getState().isOpen){var O=_.shiftKey?5:1;this.moveHighlightedIndex(O,{type:Wo})}else this.internalSetState({isOpen:!0,type:Wo},function(){var N=E.getItemCount();if(N>0){var V=E.getState(),ae=V.highlightedIndex,j=hr(ae,1,{length:N},E.isItemDisabled,!0);E.setHighlightedIndex(j,{type:Wo})}})},ArrowUp:function(_){var E=this;if(_.preventDefault(),this.getState().isOpen){var O=_.shiftKey?-5:-1;this.moveHighlightedIndex(O,{type:Ho})}else this.internalSetState({isOpen:!0,type:Ho},function(){var N=E.getItemCount();if(N>0){var V=E.getState(),ae=V.highlightedIndex,j=hr(ae,-1,{length:N},E.isItemDisabled,!0);E.setHighlightedIndex(j,{type:Ho})}})},Enter:function(_){if(_.which!==229){var E=this.getState(),O=E.isOpen,N=E.highlightedIndex;if(O&&N!=null){_.preventDefault();var V=this.items[N],ae=this.getItemNodeFromIndex(N);if(V==null||ae&&ae.hasAttribute("disabled"))return;this.selectHighlightedItem({type:Ch})}}},Escape:function(_){_.preventDefault(),this.reset(_e({type:Nh},!this.state.isOpen&&{selectedItem:null,inputValue:""}))}},l.buttonKeyDownHandlers=_e({},l.keyDownHandlers,{" ":function(_){_.preventDefault(),this.toggleMenu({type:Th})}}),l.inputKeyDownHandlers=_e({},l.keyDownHandlers,{Home:function(_){var E=this.getState(),O=E.isOpen;if(O){_.preventDefault();var N=this.getItemCount();if(!(N<=0||!O)){var V=qr(0,!1,{length:N},this.isItemDisabled);this.setHighlightedIndex(V,{type:Rh})}}},End:function(_){var E=this.getState(),O=E.isOpen;if(O){_.preventDefault();var N=this.getItemCount();if(!(N<=0||!O)){var V=qr(N-1,!0,{length:N},this.isItemDisabled);this.setHighlightedIndex(V,{type:Mh})}}}}),l.getToggleButtonProps=function(_){var E=_===void 0?{}:_,O=E.onClick;E.onPress;var N=E.onKeyDown,V=E.onKeyUp,ae=E.onBlur,j=Tt(E,PI),$=l.getState(),oe=$.isOpen,ue={onClick:Be(O,l.buttonHandleClick),onKeyDown:Be(N,l.buttonHandleKeyDown),onKeyUp:Be(V,l.buttonHandleKeyUp),onBlur:Be(ae,l.buttonHandleBlur)},pe=j.disabled?{}:ue;return _e({type:"button",role:"button","aria-label":oe?"close menu":"open menu","aria-haspopup":!0,"data-toggle":!0},pe,j)},l.buttonHandleKeyUp=function(_){_.preventDefault()},l.buttonHandleKeyDown=function(_){var E=Hn(_);l.buttonKeyDownHandlers[E]&&l.buttonKeyDownHandlers[E].call(l,_)},l.buttonHandleClick=function(_){if(_.preventDefault(),l.props.environment){var E=l.props.environment.document,O=E.body,N=E.activeElement;O&&O===N&&_.target.focus()}process.env.NODE_ENV==="test"?l.toggleMenu({type:Us}):l.internalSetTimeout(function(){return l.toggleMenu({type:Us})})},l.buttonHandleBlur=function(_){var E=_.target;l.internalSetTimeout(function(){if(!(l.isMouseDown||!l.props.environment)){var O=l.props.environment.document.activeElement;(O==null||O.id!==l.inputId)&&O!==E&&l.reset({type:Ph})}})},l.getLabelProps=function(_){return _e({htmlFor:l.inputId,id:l.labelId},_)},l.getInputProps=function(_){var E=_===void 0?{}:_,O=E.onKeyDown,N=E.onBlur,V=E.onChange,ae=E.onInput;E.onChangeText;var j=Tt(E,LI),$,oe={};$="onChange";var ue=l.getState(),pe=ue.inputValue,q=ue.isOpen,Z=ue.highlightedIndex;if(!j.disabled){var fe;oe=(fe={},fe[$]=Be(V,ae,l.inputHandleChange),fe.onKeyDown=Be(O,l.inputHandleKeyDown),fe.onBlur=Be(N,l.inputHandleBlur),fe)}return _e({"aria-autocomplete":"list","aria-activedescendant":q&&typeof Z=="number"&&Z>=0?l.getItemId(Z):void 0,"aria-controls":q?l.menuId:void 0,"aria-labelledby":j&&j["aria-label"]?void 0:l.labelId,autoComplete:"off",value:pe,id:l.inputId},oe,j)},l.inputHandleKeyDown=function(_){var E=Hn(_);E&&l.inputKeyDownHandlers[E]&&l.inputKeyDownHandlers[E].call(l,_)},l.inputHandleChange=function(_){l.internalSetState({type:Ah,isOpen:!0,inputValue:_.target.value,highlightedIndex:l.props.defaultHighlightedIndex})},l.inputHandleBlur=function(){l.internalSetTimeout(function(){var _;if(!(l.isMouseDown||!l.props.environment)){var E=l.props.environment.document.activeElement,O=(E==null||(_=E.dataset)==null?void 0:_.toggle)&&l._rootNode&&l._rootNode.contains(E);O||l.reset({type:Dh})}})},l.menuRef=function(_){l._menuNode=_},l.getMenuProps=function(_,E){var O,N=_===void 0?{}:_,V=N.refKey,ae=V===void 0?"ref":V,j=N.ref,$=Tt(N,jI),oe=E===void 0?{}:E,ue=oe.suppressRefError,pe=ue===void 0?!1:ue;return l.getMenuProps.called=!0,l.getMenuProps.refKey=ae,l.getMenuProps.suppressRefError=pe,_e((O={},O[ae]=pr(j,l.menuRef),O.role="listbox",O["aria-labelledby"]=$&&$["aria-label"]?void 0:l.labelId,O.id=l.menuId,O),$)},l.getItemProps=function(_){var E,O=_===void 0?{}:_,N=O.onMouseMove,V=O.onMouseDown,ae=O.onClick;O.onPress;var j=O.index,$=O.item,oe=$===void 0?process.env.NODE_ENV==="production"?void 0:CI("getItemProps","item"):$,ue=Tt(O,BI);j===void 0?(l.items.push(oe),j=l.items.indexOf(oe)):l.items[j]=oe;var pe="onClick",q=ae,Z=(E={onMouseMove:Be(N,function(){j!==l.getState().highlightedIndex&&(l.setHighlightedIndex(j,{type:Oh}),l.avoidScrolling=!0,l.internalSetTimeout(function(){return l.avoidScrolling=!1},250))}),onMouseDown:Be(V,function(he){he.preventDefault()})},E[pe]=Be(q,function(){l.selectItemAtIndex(j,{type:zh})}),E),fe=ue.disabled?{onMouseDown:Z.onMouseDown}:Z;return _e({id:l.getItemId(j),role:"option","aria-selected":l.getState().highlightedIndex===j},fe,ue)},l.clearItems=function(){l.items=[]},l.reset=function(_,E){_===void 0&&(_={}),_=jo(_),l.internalSetState(function(O){var N=O.selectedItem;return _e({isOpen:l.props.defaultIsOpen,highlightedIndex:l.props.defaultHighlightedIndex,inputValue:l.props.itemToString(N)},_)},E)},l.toggleMenu=function(_,E){_===void 0&&(_={}),_=jo(_),l.internalSetState(function(O){var N=O.isOpen;return _e({isOpen:!N},N&&{highlightedIndex:l.props.defaultHighlightedIndex},_)},function(){var O=l.getState(),N=O.isOpen,V=O.highlightedIndex;N&&l.getItemCount()>0&&typeof V=="number"&&l.setHighlightedIndex(V,_),fp(E)()})},l.openMenu=function(_){l.internalSetState({isOpen:!0},_)},l.closeMenu=function(_){l.internalSetState({isOpen:!1},_)},l.updateStatus=sa(function(){var _;if((_=l.props)!=null&&(_=_.environment)!=null&&_.document){var E=l.getState(),O=l.items[E.highlightedIndex],N=l.getItemCount(),V=l.props.getA11yStatusMessage(_e({itemToString:l.props.itemToString,previousResultCount:l.previousResultCount,resultCount:N,highlightedItem:O},E));l.previousResultCount=N,Sh(V,l.props.environment.document)}},200);var c=l.props,d=c.defaultHighlightedIndex,h=c.initialHighlightedIndex,v=h===void 0?d:h,m=c.defaultIsOpen,w=c.initialIsOpen,S=w===void 0?m:w,D=c.initialInputValue,B=D===void 0?"":D,z=c.initialSelectedItem,k=z===void 0?null:z,A=l.getState({highlightedIndex:v,isOpen:S,inputValue:B,selectedItem:k});return A.selectedItem!=null&&l.props.initialInputValue===void 0&&(A.inputValue=l.props.itemToString(A.selectedItem)),l.state=A,l}hI(n,i);var o=n.prototype;return o.internalClearTimeouts=function(){this.timeoutIds.forEach(function(s){clearTimeout(s)}),this.timeoutIds=[]},o.getState=function(s){return s===void 0&&(s=this.state),Ei(s,this.props)},o.getItemCount=function(){var s=this.items.length;return this.itemCount!=null?s=this.itemCount:this.props.itemCount!==void 0&&(s=this.props.itemCount),s},o.getItemNodeFromIndex=function(s){return this.props.environment?this.props.environment.document.getElementById(this.getItemId(s)):null},o.scrollHighlightedItemIntoView=function(){{var s=this.getItemNodeFromIndex(this.getState().highlightedIndex);this.props.scrollIntoView(s,this._menuNode)}},o.moveHighlightedIndex=function(s,l){var c=this.getItemCount(),d=this.getState(),h=d.highlightedIndex;if(c>0){var v=hr(h,s,{length:c},this.isItemDisabled,!0);this.setHighlightedIndex(v,l)}},o.getStateAndHelpers=function(){var s=this.getState(),l=s.highlightedIndex,c=s.inputValue,d=s.selectedItem,h=s.isOpen,v=this.props.itemToString,m=this.id,w=this.getRootProps,S=this.getToggleButtonProps,D=this.getLabelProps,B=this.getMenuProps,z=this.getInputProps,k=this.getItemProps,A=this.openMenu,_=this.closeMenu,E=this.toggleMenu,O=this.selectItem,N=this.selectItemAtIndex,V=this.selectHighlightedItem,ae=this.setHighlightedIndex,j=this.clearSelection,$=this.clearItems,oe=this.reset,ue=this.setItemCount,pe=this.unsetItemCount,q=this.internalSetState;return{getRootProps:w,getToggleButtonProps:S,getLabelProps:D,getMenuProps:B,getInputProps:z,getItemProps:k,reset:oe,openMenu:A,closeMenu:_,toggleMenu:E,selectItem:O,selectItemAtIndex:N,selectHighlightedItem:V,setHighlightedIndex:ae,clearSelection:j,clearItems:$,setItemCount:ue,unsetItemCount:pe,setState:q,itemToString:v,id:m,highlightedIndex:l,inputValue:c,isOpen:h,selectedItem:d}},o.componentDidMount=function(){var s=this;if(process.env.NODE_ENV!=="production"&&this.getMenuProps.called&&!this.getMenuProps.suppressRefError&&mp(this._menuNode,this.getMenuProps),!this.props.environment)this.cleanup=function(){s.internalClearTimeouts()};else{var l=function(){s.isMouseDown=!0},c=function(w){s.isMouseDown=!1;var S=Jo(w.target,[s._rootNode,s._menuNode],s.props.environment);!S&&s.getState().isOpen&&s.reset({type:kh},function(){return s.props.onOuterClick(s.getStateAndHelpers())})},d=function(){s.isTouchMove=!1},h=function(){s.isTouchMove=!0},v=function(w){var S=Jo(w.target,[s._rootNode,s._menuNode],s.props.environment,!1);!s.isTouchMove&&!S&&s.getState().isOpen&&s.reset({type:jh},function(){return s.props.onOuterClick(s.getStateAndHelpers())})},m=this.props.environment;m.addEventListener("mousedown",l),m.addEventListener("mouseup",c),m.addEventListener("touchstart",d),m.addEventListener("touchmove",h),m.addEventListener("touchend",v),this.cleanup=function(){s.internalClearTimeouts(),s.updateStatus.cancel(),m.removeEventListener("mousedown",l),m.removeEventListener("mouseup",c),m.removeEventListener("touchstart",d),m.removeEventListener("touchmove",h),m.removeEventListener("touchend",v)}}},o.shouldScroll=function(s,l){var c=this.props.highlightedIndex===void 0?this.getState():this.props,d=c.highlightedIndex,h=l.highlightedIndex===void 0?s:l,v=h.highlightedIndex,m=d&&this.getState().isOpen&&!s.isOpen,w=d!==v;return m||w},o.componentDidUpdate=function(s,l){process.env.NODE_ENV!=="production"&&(rl(this.state,s,this.props),this.getMenuProps.called&&!this.getMenuProps.suppressRefError&&mp(this._menuNode,this.getMenuProps)),Qo(this.props,"selectedItem")&&this.props.selectedItemChanged(s.selectedItem,this.props.selectedItem)&&this.internalSetState({type:Lh,inputValue:this.props.itemToString(this.props.selectedItem)}),!this.avoidScrolling&&this.shouldScroll(l,s)&&this.scrollHighlightedItemIntoView(),this.updateStatus()},o.componentWillUnmount=function(){this.cleanup()},o.render=function(){var s=vp(this.props.children,Dt);this.clearItems(),this.getRootProps.called=!1,this.getRootProps.refKey=void 0,this.getRootProps.suppressRefError=void 0,this.getMenuProps.called=!1,this.getMenuProps.refKey=void 0,this.getMenuProps.suppressRefError=void 0,this.getLabelProps.called=!1,this.getInputProps.called=!1;var l=vp(s(this.getStateAndHelpers()));if(!l)return null;if(this.getRootProps.called||this.props.suppressRefError)return process.env.NODE_ENV!=="production"&&!this.getRootProps.suppressRefError&&!this.props.suppressRefError&&FI(l,this.getRootProps),l;if(yh(l))return y.cloneElement(l,this.getRootProps(_h(l)));if(process.env.NODE_ENV!=="production")throw new Error("downshift: If you return a non-DOM element, you must apply the getRootProps function")},n})(y.Component);return r.defaultProps={defaultHighlightedIndex:null,defaultIsOpen:!1,getA11yStatusMessage:NI,itemToString:function(i){return i==null?"":(process.env.NODE_ENV!=="production"&&MI(i)&&!i.hasOwnProperty("toString")&&console.warn("downshift: An object was passed to the default implementation of `itemToString`. You should probably provide your own `itemToString` implementation. Please refer to the `itemToString` API documentation.","The object that was passed:",i),String(i))},onStateChange:Dt,onInputValueChange:Dt,onUserAction:Dt,onChange:Dt,onSelect:Dt,onOuterClick:Dt,selectedItemChanged:function(i,n){return i!==n},environment:typeof window>"u"?void 0:window,stateReducer:function(i,n){return n},suppressRefError:!1,scrollIntoView:wh},r.stateChangeTypes=AI,r})();process.env.NODE_ENV!=="production"&&(VI.propTypes={children:ne.func,defaultHighlightedIndex:ne.number,defaultIsOpen:ne.bool,initialHighlightedIndex:ne.number,initialSelectedItem:ne.any,initialInputValue:ne.string,initialIsOpen:ne.bool,getA11yStatusMessage:ne.func,itemToString:ne.func,onChange:ne.func,onSelect:ne.func,onStateChange:ne.func,onInputValueChange:ne.func,onUserAction:ne.func,onOuterClick:ne.func,selectedItemChanged:ne.func,stateReducer:ne.func,itemCount:ne.number,id:ne.string,environment:ne.shape({addEventListener:ne.func.isRequired,removeEventListener:ne.func.isRequired,document:ne.shape({createElement:ne.func.isRequired,getElementById:ne.func.isRequired,activeElement:ne.any.isRequired,body:ne.any.isRequired}).isRequired,Node:ne.func.isRequired}),suppressRefError:ne.bool,scrollIntoView:ne.func,selectedItem:ne.any,isOpen:ne.bool,inputValue:ne.string,highlightedIndex:ne.number,labelId:ne.string,inputId:ne.string,menuId:ne.string,getItemId:ne.func});function mp(r,i){var n=i.refKey;r||console.error('downshift: The ref prop "'+n+'" from getMenuProps was not applied correctly on your menu element.')}function FI(r,i){var n=i.refKey,o=n!=="ref",s=!yh(r);s&&!o&&!dp.isForwardRef(r)?console.error("downshift: You returned a non-DOM element. You must specify a refKey in getRootProps"):!s&&o&&console.error('downshift: You returned a DOM element. You should not specify a refKey in getRootProps. You specified "'+n+'"'),!dp.isForwardRef(r)&&!_h(r)[n]&&console.error('downshift: You must apply the ref prop "'+n+'" from getRootProps onto your root element.')}var Bh={highlightedIndex:-1,isOpen:!1,selectedItem:null,inputValue:""};function HI(r,i,n){var o=r.props,s=r.type,l={};Object.keys(i).forEach(function(c){WI(c,r,i,n),n[c]!==i[c]&&(l[c]=n[c])}),o.onStateChange&&Object.keys(l).length&&o.onStateChange(_e({type:s},l))}function WI(r,i,n,o){var s=i.props,l=i.type,c="on"+il(r)+"Change";s[c]&&o[r]!==void 0&&o[r]!==n[r]&&s[c](_e({type:l},o))}function $I(r,i){return i.changes}var bp=sa(function(r,i){Sh(r,i)},200),KI=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?y.useLayoutEffect:y.useEffect,Vh="useId"in y?function(r){var i=r.id,n=r.labelId,o=r.menuId,s=r.getItemId,l=r.toggleButtonId,c=r.inputId,d="downshift-"+y.useId();i||(i=d);var h=y.useMemo(function(){return{labelId:n||i+"-label",menuId:o||i+"-menu",getItemId:s||function(v){return i+"-item-"+v},toggleButtonId:l||i+"-toggle-button",inputId:c||i+"-input"}},[s,i,c,n,o,l]);return h}:function(r){var i=r.id,n=i===void 0?"downshift-"+xh():i,o=r.labelId,s=r.menuId,l=r.getItemId,c=r.toggleButtonId,d=r.inputId,h=y.useMemo(function(){return{labelId:o||n+"-label",menuId:s||n+"-menu",getItemId:l||function(v){return n+"-item-"+v},toggleButtonId:c||n+"-toggle-button",inputId:d||n+"-input"}},[l,n,d,o,s,c]);return h};function nl(r,i,n,o){var s,l;if(r===void 0){if(i===void 0)throw new Error(o);s=n[i],l=i}else l=i===void 0?n.indexOf(r):i,s=r;return[s,l]}function UI(r){return/^\S{1}$/.test(r)}function il(r){return""+r.slice(0,1).toUpperCase()+r.slice(1)}function la(r){var i=y.useRef(r);return i.current=r,i}function Fh(r,i,n,o){var s=y.useRef(),l=y.useRef(),c=y.useCallback(function(D,B){l.current=B,D=Ei(D,B.props);var z=r(D,B),k=B.props.stateReducer(D,_e({},B,{changes:z}));return k},[r]),d=y.useReducer(c,i,n),h=d[0],v=d[1],m=la(i),w=y.useCallback(function(D){return v(_e({props:m.current},D))},[m]),S=l.current;return y.useEffect(function(){var D=Ei(s.current,S==null?void 0:S.props),B=S&&s.current&&!o(D,h);B&&HI(S,D,h),s.current=h},[h,S,o]),[h,w]}function Hh(r,i,n,o){var s=Fh(r,i,n,o),l=s[0],c=s[1];return[Ei(l,i),c]}var yi={itemToString:function(r){return r?String(r):""},itemToKey:function(r){return r},stateReducer:$I,scrollIntoView:wh,environment:typeof window>"u"?void 0:window};function _r(r,i,n){n===void 0&&(n=Bh);var o=r["default"+il(i)];return o!==void 0?o:n[i]}function pn(r,i,n){n===void 0&&(n=Bh);var o=r[i];if(o!==void 0)return o;var s=r["initial"+il(i)];return s!==void 0?s:_r(r,i,n)}function Wh(r){var i=pn(r,"selectedItem"),n=pn(r,"isOpen"),o=GI(r),s=pn(r,"inputValue");return{highlightedIndex:o<0&&i&&n?r.items.findIndex(function(l){return r.itemToKey(l)===r.itemToKey(i)}):o,isOpen:n,selectedItem:i,inputValue:s}}function hn(r,i,n){var o=r.items,s=r.initialHighlightedIndex,l=r.defaultHighlightedIndex,c=r.isItemDisabled,d=r.itemToKey,h=i.selectedItem,v=i.highlightedIndex;return o.length===0?-1:s!==void 0&&v===s&&!c(o[s],s)?s:l!==void 0&&!c(o[l],l)?l:h?o.findIndex(function(m){return d(h)===d(m)}):n<0&&!c(o[o.length-1],o.length-1)?o.length-1:n>0&&!c(o[0],0)?0:-1}function $h(r,i,n){var o=y.useRef({isMouseDown:!1,isTouchMove:!1,isTouchEnd:!1}),s=y.useCallback(function(){return n.map(function(l){return l.current})},[n]);return y.useEffect(function(){if(!r)return Dt;function l(){o.current.isTouchEnd=!1,o.current.isMouseDown=!0}function c(m){o.current.isMouseDown=!1,Jo(m.target,s(),r)||i()}function d(){o.current.isTouchEnd=!1,o.current.isTouchMove=!1}function h(){o.current.isTouchMove=!0}function v(m){o.current.isTouchEnd=!0,!o.current.isTouchMove&&!Jo(m.target,s(),r,!1)&&i()}return r.addEventListener("mousedown",l),r.addEventListener("mouseup",c),r.addEventListener("touchstart",d),r.addEventListener("touchmove",h),r.addEventListener("touchend",v),function(){r.removeEventListener("mousedown",l),r.removeEventListener("mouseup",c),r.removeEventListener("touchstart",d),r.removeEventListener("touchmove",h),r.removeEventListener("touchend",v)}},[r,s,i]),o.current}var ca=function(){return Dt};process.env.NODE_ENV!=="production"&&(ca=function(){for(var r=arguments.length,i=new Array(r),n=0;n<r;n++)i[n]=arguments[n];var o=y.useRef(i.reduce(function(l,c){return l[c]={},l},{}));y.useEffect(function(){Object.keys(o.current).forEach(function(l){var c=o.current[l];if(!Object.keys(c).length){console.error("downshift: You forgot to call the "+l+" getter function on your component / element.");return}var d=c.suppressRefError,h=c.refKey,v=c.elementRef;d||v!=null&&v.current||console.error('downshift: The ref prop "'+h+'" from '+l+" was not applied correctly on your element.")})},[]);var s=y.useCallback(function(l,c,d,h){o.current[l]={suppressRefError:c,refKey:d,elementRef:h}},[]);return s});function ol(r,i,n,o){o===void 0&&(o={});var s=o.document,l=Mi();y.useEffect(function(){if(!(!r||l||!s)){var c=r(i);bp(c,s)}},n),y.useEffect(function(){return function(){bp.cancel(),DI(s)}},[s])}function Kh(r){var i=r.highlightedIndex,n=r.isOpen,o=r.itemRefs,s=r.getItemNodeFromIndex,l=r.menuElement,c=r.scrollIntoView,d=y.useRef(!0);return KI(function(){i<0||!n||!Object.keys(o.current).length||(d.current===!1?d.current=!0:c(s(i),l))},[i]),d}var ua=Dt;process.env.NODE_ENV!=="production"&&(ua=function(r){var i=r.props,n=r.state,o=y.useRef(i),s=Mi();y.useEffect(function(){s||(rl(n,o.current,i),o.current=i)},[n,i,s])});function ea(r,i,n){var o;n===void 0&&(n=!0);var s=((o=r.items)==null?void 0:o.length)&&i>=0;return _e({isOpen:!1,highlightedIndex:-1},s&&_e({selectedItem:r.items[i],isOpen:_r(r,"isOpen"),highlightedIndex:_r(r,"highlightedIndex")},n&&{inputValue:r.itemToString(r.items[i])}))}function Uh(r,i){return r.isOpen===i.isOpen&&r.inputValue===i.inputValue&&r.highlightedIndex===i.highlightedIndex&&r.selectedItem===i.selectedItem}function Mi(){var r=y.useRef(!0);return y.useEffect(function(){return r.current=!1,function(){r.current=!0}},[]),r.current}function ta(r){var i=_r(r,"highlightedIndex");return i>-1&&r.isItemDisabled(r.items[i],i)?-1:i}function GI(r){var i=pn(r,"highlightedIndex");return i>-1&&r.isItemDisabled(r.items[i],i)?-1:i}var $o={environment:ne.shape({addEventListener:ne.func.isRequired,removeEventListener:ne.func.isRequired,document:ne.shape({createElement:ne.func.isRequired,getElementById:ne.func.isRequired,activeElement:ne.any.isRequired,body:ne.any.isRequired}).isRequired,Node:ne.func.isRequired}),itemToString:ne.func,itemToKey:ne.func,stateReducer:ne.func},Gh=_e({},$o,{getA11yStatusMessage:ne.func,highlightedIndex:ne.number,defaultHighlightedIndex:ne.number,initialHighlightedIndex:ne.number,isOpen:ne.bool,defaultIsOpen:ne.bool,initialIsOpen:ne.bool,selectedItem:ne.any,initialSelectedItem:ne.any,defaultSelectedItem:ne.any,id:ne.string,labelId:ne.string,menuId:ne.string,getItemId:ne.func,toggleButtonId:ne.string,onSelectedItemChange:ne.func,onHighlightedIndexChange:ne.func,onStateChange:ne.func,onIsOpenChange:ne.func,scrollIntoView:ne.func});function qh(r,i,n){var o=i.type,s=i.props,l;switch(o){case n.ItemMouseMove:l={highlightedIndex:i.disabled?-1:i.index};break;case n.MenuMouseLeave:l={highlightedIndex:-1};break;case n.ToggleButtonClick:case n.FunctionToggleMenu:l={isOpen:!r.isOpen,highlightedIndex:r.isOpen?-1:hn(s,r,0)};break;case n.FunctionOpenMenu:l={isOpen:!0,highlightedIndex:hn(s,r,0)};break;case n.FunctionCloseMenu:l={isOpen:!1};break;case n.FunctionSetHighlightedIndex:l={highlightedIndex:s.isItemDisabled(s.items[i.highlightedIndex],i.highlightedIndex)?-1:i.highlightedIndex};break;case n.FunctionSetInputValue:l={inputValue:i.inputValue};break;case n.FunctionReset:l={highlightedIndex:ta(s),isOpen:_r(s,"isOpen"),selectedItem:_r(s,"selectedItem"),inputValue:_r(s,"inputValue")};break;default:throw new Error("Reducer called without proper action type.")}return _e({},r,l)}function qI(r){for(var i=r.keysSoFar,n=r.highlightedIndex,o=r.items,s=r.itemToString,l=r.isItemDisabled,c=i.toLowerCase(),d=0;d<o.length;d++){var h=(d+n+(i.length<2?1:0))%o.length,v=o[h];if(v!==void 0&&s(v).toLowerCase().startsWith(c)&&!l(v,h))return h}return n}var ZI=Fn(Fn({},Gh),{items:ne.array.isRequired,isItemDisabled:ne.func}),YI=Fn(Fn({},yi),{isItemDisabled:function(){return!1}}),Zh=Dt;process.env.NODE_ENV!=="production"&&(Zh=function(r,i){ne.checkPropTypes(ZI,r,"prop",i.name)});var Ko=process.env.NODE_ENV!=="production"?"__togglebutton_click__":0,al=process.env.NODE_ENV!=="production"?"__togglebutton_keydown_arrow_down__":1,sl=process.env.NODE_ENV!=="production"?"__togglebutton_keydown_arrow_up__":2,ra=process.env.NODE_ENV!=="production"?"__togglebutton_keydown_character__":3,ll=process.env.NODE_ENV!=="production"?"__togglebutton_keydown_escape__":4,cl=process.env.NODE_ENV!=="production"?"__togglebutton_keydown_home__":5,ul=process.env.NODE_ENV!=="production"?"__togglebutton_keydown_end__":6,dl=process.env.NODE_ENV!=="production"?"__togglebutton_keydown_enter__":7,pl=process.env.NODE_ENV!=="production"?"__togglebutton_keydown_space_button__":8,hl=process.env.NODE_ENV!=="production"?"__togglebutton_keydown_page_up__":9,fl=process.env.NODE_ENV!=="production"?"__togglebutton_keydown_page_down__":10,na=process.env.NODE_ENV!=="production"?"__togglebutton_blur__":11,Yh=process.env.NODE_ENV!=="production"?"__menu_mouse_leave__":12,Xh=process.env.NODE_ENV!=="production"?"__item_mouse_move__":13,gl=process.env.NODE_ENV!=="production"?"__item_click__":14,Qh=process.env.NODE_ENV!=="production"?"__function_toggle_menu__":15,Jh=process.env.NODE_ENV!=="production"?"__function_open_menu__":16,ef=process.env.NODE_ENV!=="production"?"__function_close_menu__":17,tf=process.env.NODE_ENV!=="production"?"__function_set_highlighted_index__":18,vl=process.env.NODE_ENV!=="production"?"__function_select_item__":19,Gs=process.env.NODE_ENV!=="production"?"__function_set_input_value__":20,rf=process.env.NODE_ENV!=="production"?"__function_reset__":21,nf=Object.freeze({__proto__:null,FunctionCloseMenu:ef,FunctionOpenMenu:Jh,FunctionReset:rf,FunctionSelectItem:vl,FunctionSetHighlightedIndex:tf,FunctionSetInputValue:Gs,FunctionToggleMenu:Qh,ItemClick:gl,ItemMouseMove:Xh,MenuMouseLeave:Yh,ToggleButtonBlur:na,ToggleButtonClick:Ko,ToggleButtonKeyDownArrowDown:al,ToggleButtonKeyDownArrowUp:sl,ToggleButtonKeyDownCharacter:ra,ToggleButtonKeyDownEnd:ul,ToggleButtonKeyDownEnter:dl,ToggleButtonKeyDownEscape:ll,ToggleButtonKeyDownHome:cl,ToggleButtonKeyDownPageDown:fl,ToggleButtonKeyDownPageUp:hl,ToggleButtonKeyDownSpaceButton:pl});function XI(r,i){var n,o=i.type,s=i.props,l=i.altKey,c;switch(o){case gl:c={isOpen:_r(s,"isOpen"),highlightedIndex:ta(s),selectedItem:s.items[i.index]};break;case ra:{var d=i.key,h=""+r.inputValue+d,v=!r.isOpen&&r.selectedItem?s.items.findIndex(function(D){return s.itemToKey(D)===s.itemToKey(r.selectedItem)}):r.highlightedIndex,m=qI({keysSoFar:h,highlightedIndex:v,items:s.items,itemToString:s.itemToString,isItemDisabled:s.isItemDisabled});c={inputValue:h,highlightedIndex:m,isOpen:!0}}break;case al:{var w=r.isOpen?hr(r.highlightedIndex,1,s.items,s.isItemDisabled):l&&r.selectedItem==null?-1:hn(s,r,1);c={highlightedIndex:w,isOpen:!0}}break;case sl:if(r.isOpen&&l)c=ea(s,r.highlightedIndex,!1);else{var S=r.isOpen?hr(r.highlightedIndex,-1,s.items,s.isItemDisabled):hn(s,r,-1);c={highlightedIndex:S,isOpen:!0}}break;case dl:case pl:c=ea(s,r.highlightedIndex,!1);break;case cl:c={highlightedIndex:qr(0,!1,s.items,s.isItemDisabled),isOpen:!0};break;case ul:c={highlightedIndex:qr(s.items.length-1,!0,s.items,s.isItemDisabled),isOpen:!0};break;case hl:c={highlightedIndex:hr(r.highlightedIndex,-10,s.items,s.isItemDisabled)};break;case fl:c={highlightedIndex:hr(r.highlightedIndex,10,s.items,s.isItemDisabled)};break;case ll:c={isOpen:!1,highlightedIndex:-1};break;case na:c=_e({isOpen:!1,highlightedIndex:-1},r.highlightedIndex>=0&&((n=s.items)==null?void 0:n.length)&&{selectedItem:s.items[r.highlightedIndex]});break;case vl:c={selectedItem:i.selectedItem};break;default:return qh(r,i,nf)}return _e({},r,c)}var QI=["onClick"],JI=["onMouseLeave","refKey","ref"],e5=["onBlur","onClick","onPress","onKeyDown","refKey","ref"],t5=["item","index","onMouseMove","onClick","onMouseDown","onPress","refKey","disabled","ref"];un.stateChangeTypes=nf;function un(r){r===void 0&&(r={}),Zh(r,un);var i=_e({},YI,r),n=i.scrollIntoView,o=i.environment,s=i.getA11yStatusMessage,l=Hh(XI,i,Wh,Uh),c=l[0],d=l[1],h=c.isOpen,v=c.highlightedIndex,m=c.selectedItem,w=c.inputValue,S=y.useRef(null),D=y.useRef(null),B=y.useRef({}),z=y.useRef(null),k=Vh(i),A=la({state:c,props:i}),_=y.useCallback(function(M){return B.current[k.getItemId(M)]},[k]);ol(s,c,[h,v,m,w],o);var E=Kh({menuElement:D.current,highlightedIndex:v,isOpen:h,itemRefs:B,scrollIntoView:n,getItemNodeFromIndex:_});y.useEffect(function(){return z.current=sa(function(M){M({type:Gs,inputValue:""})},500),function(){z.current.cancel()}},[]),y.useEffect(function(){w&&z.current(d)},[d,w]),ua({props:i,state:c}),y.useEffect(function(){var M=pn(i,"isOpen");M&&S.current&&S.current.focus()},[]);var O=y.useCallback(function(){A.current.state.isOpen&&d({type:na})},[d,A]),N=y.useMemo(function(){return[D,S]},[]),V=$h(o,O,N),ae=ca("getMenuProps","getToggleButtonProps");y.useEffect(function(){h||(B.current={})},[h]);var j=y.useMemo(function(){return{ArrowDown:function(M){M.preventDefault(),d({type:al,altKey:M.altKey})},ArrowUp:function(M){M.preventDefault(),d({type:sl,altKey:M.altKey})},Home:function(M){M.preventDefault(),d({type:cl})},End:function(M){M.preventDefault(),d({type:ul})},Escape:function(){A.current.state.isOpen&&d({type:ll})},Enter:function(M){M.preventDefault(),d({type:A.current.state.isOpen?dl:Ko})},PageUp:function(M){A.current.state.isOpen&&(M.preventDefault(),d({type:hl}))},PageDown:function(M){A.current.state.isOpen&&(M.preventDefault(),d({type:fl}))}," ":function(M){M.preventDefault();var T=A.current.state;if(!T.isOpen){d({type:Ko});return}T.inputValue?d({type:ra,key:" "}):d({type:pl})}}},[d,A]),$=y.useCallback(function(){d({type:Qh})},[d]),oe=y.useCallback(function(){d({type:ef})},[d]),ue=y.useCallback(function(){d({type:Jh})},[d]),pe=y.useCallback(function(M){d({type:tf,highlightedIndex:M})},[d]),q=y.useCallback(function(M){d({type:vl,selectedItem:M})},[d]),Z=y.useCallback(function(){d({type:rf})},[d]),fe=y.useCallback(function(M){d({type:Gs,inputValue:M})},[d]),he=y.useCallback(function(M){var T=M===void 0?{}:M,K=T.onClick,re=Tt(T,QI),P=function(){var J;(J=S.current)==null||J.focus()};return _e({id:k.labelId,htmlFor:k.toggleButtonId,onClick:Be(K,P)},re)},[k]),Ee=y.useCallback(function(M,T){var K,re=M===void 0?{}:M,P=re.onMouseLeave,J=re.refKey,G=J===void 0?"ref":J,U=re.ref,le=Tt(re,JI),de=T===void 0?{}:T,F=de.suppressRefError,se=F===void 0?!1:F,H=function(){d({type:Yh})};return ae("getMenuProps",se,G,D),_e((K={},K[G]=pr(U,function(we){D.current=we}),K.id=k.menuId,K.role="listbox",K["aria-labelledby"]=le&&le["aria-label"]?void 0:""+k.labelId,K.onMouseLeave=Be(P,H),K),le)},[d,ae,k]),ie=y.useCallback(function(M,T){var K,re=M===void 0?{}:M,P=re.onBlur,J=re.onClick;re.onPress;var G=re.onKeyDown,U=re.refKey,le=U===void 0?"ref":U,de=re.ref,F=Tt(re,e5),se=T===void 0?{}:T,H=se.suppressRefError,we=H===void 0?!1:H,te=A.current.state,ke=function(){d({type:Ko})},De=function(){te.isOpen&&!V.isMouseDown&&d({type:na})},qe=function(Ke){var Ze=Hn(Ke);Ze&&j[Ze]?j[Ze](Ke):UI(Ze)&&d({type:ra,key:Ze})},Ve=_e((K={},K[le]=pr(de,function(Ke){S.current=Ke}),K["aria-activedescendant"]=te.isOpen&&te.highlightedIndex>-1?k.getItemId(te.highlightedIndex):"",K["aria-controls"]=k.menuId,K["aria-expanded"]=A.current.state.isOpen,K["aria-haspopup"]="listbox",K["aria-labelledby"]=F&&F["aria-label"]?void 0:""+k.labelId,K.id=k.toggleButtonId,K.role="combobox",K.tabIndex=0,K.onBlur=Be(P,De),K),F);return F.disabled||(Ve.onClick=Be(J,ke),Ve.onKeyDown=Be(G,qe)),ae("getToggleButtonProps",we,le,S),Ve},[d,k,A,V,ae,j]),Se=y.useCallback(function(M){var T,K=M===void 0?{}:M,re=K.item,P=K.index,J=K.onMouseMove,G=K.onClick,U=K.onMouseDown;K.onPress;var le=K.refKey,de=le===void 0?"ref":le,F=K.disabled,se=K.ref,H=Tt(K,t5);F!==void 0&&console.warn('Passing "disabled" as an argument to getItemProps is not supported anymore. Please use the isItemDisabled prop from useSelect.');var we=A.current,te=we.state,ke=we.props,De=nl(re,P,ke.items,"Pass either item or index to getItemProps!"),qe=De[0],Ve=De[1],Ke=ke.isItemDisabled(qe,Ve),Ze=function(){V.isTouchEnd||Ve===te.highlightedIndex||(E.current=!1,d({type:Xh,index:Ve,disabled:Ke}))},lt=function(){d({type:gl,index:Ve})},ct=function(bt){return bt.preventDefault()},rt=_e((T={},T[de]=pr(se,function(bt){bt&&(B.current[k.getItemId(Ve)]=bt)}),T["aria-disabled"]=Ke,T["aria-selected"]=qe===te.selectedItem,T.id=k.getItemId(Ve),T.role="option",T),H);return Ke||(rt.onClick=Be(G,lt)),rt.onMouseMove=Be(J,Ze),rt.onMouseDown=Be(U,ct),rt},[A,k,V,E,d]);return{getToggleButtonProps:ie,getLabelProps:he,getMenuProps:Ee,getItemProps:Se,toggleMenu:$,openMenu:ue,closeMenu:oe,setHighlightedIndex:pe,selectItem:q,reset:Z,setInputValue:fe,highlightedIndex:v,isOpen:h,selectedItem:m,inputValue:w}}var ml=process.env.NODE_ENV!=="production"?"__input_keydown_arrow_down__":0,bl=process.env.NODE_ENV!=="production"?"__input_keydown_arrow_up__":1,wl=process.env.NODE_ENV!=="production"?"__input_keydown_escape__":2,xl=process.env.NODE_ENV!=="production"?"__input_keydown_home__":3,yl=process.env.NODE_ENV!=="production"?"__input_keydown_end__":4,_l=process.env.NODE_ENV!=="production"?"__input_keydown_page_up__":5,Il=process.env.NODE_ENV!=="production"?"__input_keydown_page_down__":6,Sl=process.env.NODE_ENV!=="production"?"__input_keydown_enter__":7,El=process.env.NODE_ENV!=="production"?"__input_change__":8,ia=process.env.NODE_ENV!=="production"?"__input_blur__":9,kl=process.env.NODE_ENV!=="production"?"__input_click__":10,of=process.env.NODE_ENV!=="production"?"__menu_mouse_leave__":11,af=process.env.NODE_ENV!=="production"?"__item_mouse_move__":12,Ol=process.env.NODE_ENV!=="production"?"__item_click__":13,sf=process.env.NODE_ENV!=="production"?"__togglebutton_click__":14,lf=process.env.NODE_ENV!=="production"?"__function_toggle_menu__":15,cf=process.env.NODE_ENV!=="production"?"__function_open_menu__":16,uf=process.env.NODE_ENV!=="production"?"__function_close_menu__":17,df=process.env.NODE_ENV!=="production"?"__function_set_highlighted_index__":18,Nl=process.env.NODE_ENV!=="production"?"__function_select_item__":19,pf=process.env.NODE_ENV!=="production"?"__function_set_input_value__":20,hf=process.env.NODE_ENV!=="production"?"__function_reset__":21,Cl=process.env.NODE_ENV!=="production"?"__controlled_prop_updated_selected_item__":22,ff=Object.freeze({__proto__:null,ControlledPropUpdatedSelectedItem:Cl,FunctionCloseMenu:uf,FunctionOpenMenu:cf,FunctionReset:hf,FunctionSelectItem:Nl,FunctionSetHighlightedIndex:df,FunctionSetInputValue:pf,FunctionToggleMenu:lf,InputBlur:ia,InputChange:El,InputClick:kl,InputKeyDownArrowDown:ml,InputKeyDownArrowUp:bl,InputKeyDownEnd:yl,InputKeyDownEnter:Sl,InputKeyDownEscape:wl,InputKeyDownHome:xl,InputKeyDownPageDown:Il,InputKeyDownPageUp:_l,ItemClick:Ol,ItemMouseMove:af,MenuMouseLeave:of,ToggleButtonClick:sf});function r5(r){var i=Wh(r),n=i.selectedItem,o=i.inputValue;return o===""&&n&&r.defaultInputValue===void 0&&r.initialInputValue===void 0&&r.inputValue===void 0&&(o=r.itemToString(n)),_e({},i,{inputValue:o})}var n5=_e({},Gh,{items:ne.array.isRequired,isItemDisabled:ne.func,inputValue:ne.string,defaultInputValue:ne.string,initialInputValue:ne.string,inputId:ne.string,onInputValueChange:ne.func});function i5(r,i,n,o){var s=y.useRef(),l=Fh(r,i,n,o),c=l[0],d=l[1],h=Mi();return y.useEffect(function(){if(Qo(i,"selectedItem")){if(!h){var v=i.itemToKey(i.selectedItem)!==i.itemToKey(s.current);v&&d({type:Cl,inputValue:i.itemToString(i.selectedItem)})}s.current=c.selectedItem===s.current?i.selectedItem:c.selectedItem}},[c.selectedItem,i.selectedItem]),[Ei(c,i),d]}var gf=Dt;process.env.NODE_ENV!=="production"&&(gf=function(r,i){ne.checkPropTypes(n5,r,"prop",i.name)});var o5=_e({},yi,{isItemDisabled:function(){return!1}});function a5(r,i){var n,o=i.type,s=i.props,l=i.altKey,c;switch(o){case Ol:c={isOpen:_r(s,"isOpen"),highlightedIndex:ta(s),selectedItem:s.items[i.index],inputValue:s.itemToString(s.items[i.index])};break;case ml:r.isOpen?c={highlightedIndex:hr(r.highlightedIndex,1,s.items,s.isItemDisabled,!0)}:c={highlightedIndex:l&&r.selectedItem==null?-1:hn(s,r,1),isOpen:s.items.length>=0};break;case bl:r.isOpen?l?c=ea(s,r.highlightedIndex):c={highlightedIndex:hr(r.highlightedIndex,-1,s.items,s.isItemDisabled,!0)}:c={highlightedIndex:hn(s,r,-1),isOpen:s.items.length>=0};break;case Sl:c=ea(s,r.highlightedIndex);break;case wl:c=_e({isOpen:!1,highlightedIndex:-1},!r.isOpen&&{selectedItem:null,inputValue:""});break;case _l:c={highlightedIndex:hr(r.highlightedIndex,-10,s.items,s.isItemDisabled,!0)};break;case Il:c={highlightedIndex:hr(r.highlightedIndex,10,s.items,s.isItemDisabled,!0)};break;case xl:c={highlightedIndex:qr(0,!1,s.items,s.isItemDisabled)};break;case yl:c={highlightedIndex:qr(s.items.length-1,!0,s.items,s.isItemDisabled)};break;case ia:c=_e({isOpen:!1,highlightedIndex:-1},r.highlightedIndex>=0&&((n=s.items)==null?void 0:n.length)&&i.selectItem&&{selectedItem:s.items[r.highlightedIndex],inputValue:s.itemToString(s.items[r.highlightedIndex])});break;case El:c={isOpen:!0,highlightedIndex:ta(s),inputValue:i.inputValue};break;case kl:c={isOpen:!r.isOpen,highlightedIndex:r.isOpen?-1:hn(s,r,0)};break;case Nl:c={selectedItem:i.selectedItem,inputValue:s.itemToString(i.selectedItem)};break;case Cl:c={inputValue:i.inputValue};break;default:return qh(r,i,ff)}return _e({},r,c)}var s5=["onMouseLeave","refKey","ref"],l5=["item","index","refKey","ref","onMouseMove","onMouseDown","onClick","onPress","disabled"],c5=["onClick","onPress","refKey","ref"],u5=["onKeyDown","onChange","onInput","onBlur","onChangeText","onClick","refKey","ref"];Ht.stateChangeTypes=ff;function Ht(r){r===void 0&&(r={}),gf(r,Ht);var i=_e({},o5,r),n=i.items,o=i.scrollIntoView,s=i.environment,l=i.getA11yStatusMessage,c=i5(a5,i,r5,Uh),d=c[0],h=c[1],v=d.isOpen,m=d.highlightedIndex,w=d.selectedItem,S=d.inputValue,D=y.useRef(null),B=y.useRef({}),z=y.useRef(null),k=y.useRef(null),A=Mi(),_=Vh(i),E=y.useRef(),O=la({state:d,props:i}),N=y.useCallback(function(P){return B.current[_.getItemId(P)]},[_]);ol(l,d,[v,m,w,S],s);var V=Kh({menuElement:D.current,highlightedIndex:m,isOpen:v,itemRefs:B,scrollIntoView:o,getItemNodeFromIndex:N});ua({props:i,state:d}),y.useEffect(function(){var P=pn(i,"isOpen");P&&z.current&&z.current.focus()},[]),y.useEffect(function(){A||(E.current=n.length)});var ae=y.useCallback(function(){O.current.state.isOpen&&h({type:ia})},[h,O]),j=y.useMemo(function(){return[D,k,z]},[]),$=$h(s,ae,j),oe=ca("getInputProps","getMenuProps");y.useEffect(function(){v||(B.current={})},[v]),y.useEffect(function(){var P;!v||!(s!=null&&s.document)||!(z!=null&&(P=z.current)!=null&&P.focus)||s.document.activeElement!==z.current&&z.current.focus()},[v,s]);var ue=y.useMemo(function(){return{ArrowDown:function(P){P.preventDefault(),h({type:ml,altKey:P.altKey})},ArrowUp:function(P){P.preventDefault(),h({type:bl,altKey:P.altKey})},Home:function(P){O.current.state.isOpen&&(P.preventDefault(),h({type:xl}))},End:function(P){O.current.state.isOpen&&(P.preventDefault(),h({type:yl}))},Escape:function(P){var J=O.current.state;(J.isOpen||J.inputValue||J.selectedItem||J.highlightedIndex>-1)&&(P.preventDefault(),h({type:wl}))},Enter:function(P){var J=O.current.state;!J.isOpen||P.which===229||(P.preventDefault(),h({type:Sl}))},PageUp:function(P){O.current.state.isOpen&&(P.preventDefault(),h({type:_l}))},PageDown:function(P){O.current.state.isOpen&&(P.preventDefault(),h({type:Il}))}}},[h,O]),pe=y.useCallback(function(P){return _e({id:_.labelId,htmlFor:_.inputId},P)},[_]),q=y.useCallback(function(P,J){var G,U=P===void 0?{}:P,le=U.onMouseLeave,de=U.refKey,F=de===void 0?"ref":de,se=U.ref,H=Tt(U,s5),we=J===void 0?{}:J,te=we.suppressRefError,ke=te===void 0?!1:te;return oe("getMenuProps",ke,F,D),_e((G={},G[F]=pr(se,function(De){D.current=De}),G.id=_.menuId,G.role="listbox",G["aria-labelledby"]=H&&H["aria-label"]?void 0:""+_.labelId,G.onMouseLeave=Be(le,function(){h({type:of})}),G),H)},[h,oe,_]),Z=y.useCallback(function(P){var J,G,U=P===void 0?{}:P,le=U.item,de=U.index,F=U.refKey,se=F===void 0?"ref":F,H=U.ref,we=U.onMouseMove,te=U.onMouseDown,ke=U.onClick;U.onPress;var De=U.disabled,qe=Tt(U,l5);De!==void 0&&console.warn('Passing "disabled" as an argument to getItemProps is not supported anymore. Please use the isItemDisabled prop from useCombobox.');var Ve=O.current,Ke=Ve.props,Ze=Ve.state,lt=nl(le,de,Ke.items,"Pass either item or index to getItemProps!"),ct=lt[0],rt=lt[1],bt=Ke.isItemDisabled(ct,rt),Ir="onClick",Ct=ke,ut=function(){$.isTouchEnd||rt===Ze.highlightedIndex||(V.current=!1,h({type:af,index:rt,disabled:bt}))},wt=function(){h({type:Ol,index:rt})},kt=function(ft){return ft.preventDefault()};return _e((J={},J[se]=pr(H,function(ft){ft&&(B.current[_.getItemId(rt)]=ft)}),J["aria-disabled"]=bt,J["aria-selected"]=rt===Ze.highlightedIndex,J.id=_.getItemId(rt),J.role="option",J),!bt&&(G={},G[Ir]=Be(Ct,wt),G),{onMouseMove:Be(we,ut),onMouseDown:Be(te,kt)},qe)},[h,_,O,$,V]),fe=y.useCallback(function(P){var J,G=P===void 0?{}:P,U=G.onClick;G.onPress;var le=G.refKey,de=le===void 0?"ref":le,F=G.ref,se=Tt(G,c5),H=O.current.state,we=function(){h({type:sf})};return _e((J={},J[de]=pr(F,function(te){k.current=te}),J["aria-controls"]=_.menuId,J["aria-expanded"]=H.isOpen,J.id=_.toggleButtonId,J.tabIndex=-1,J),!se.disabled&&_e({},{onClick:Be(U,we)}),se)},[h,O,_]),he=y.useCallback(function(P,J){var G,U=P===void 0?{}:P,le=U.onKeyDown,de=U.onChange,F=U.onInput,se=U.onBlur;U.onChangeText;var H=U.onClick,we=U.refKey,te=we===void 0?"ref":we,ke=U.ref,De=Tt(U,u5),qe=J===void 0?{}:J,Ve=qe.suppressRefError,Ke=Ve===void 0?!1:Ve;oe("getInputProps",Ke,te,z);var Ze=O.current.state,lt=function(wt){var kt=Hn(wt);kt&&ue[kt]&&ue[kt](wt)},ct=function(wt){h({type:El,inputValue:wt.target.value})},rt=function(wt){if(s!=null&&s.document&&Ze.isOpen&&!$.isMouseDown){var kt=wt.relatedTarget===null&&s.document.activeElement!==s.document.body;h({type:ia,selectItem:!kt})}},bt=function(){h({type:kl})},Ir="onChange",Ct={};if(!De.disabled){var ut;Ct=(ut={},ut[Ir]=Be(de,F,ct),ut.onKeyDown=Be(le,lt),ut.onBlur=Be(se,rt),ut.onClick=Be(H,bt),ut)}return _e((G={},G[te]=pr(ke,function(wt){z.current=wt}),G["aria-activedescendant"]=Ze.isOpen&&Ze.highlightedIndex>-1?_.getItemId(Ze.highlightedIndex):"",G["aria-autocomplete"]="list",G["aria-controls"]=_.menuId,G["aria-expanded"]=Ze.isOpen,G["aria-labelledby"]=De&&De["aria-label"]?void 0:_.labelId,G.autoComplete="off",G.id=_.inputId,G.role="combobox",G.value=Ze.inputValue,G),Ct,De)},[h,_,s,ue,O,$,oe]),Ee=y.useCallback(function(){h({type:lf})},[h]),ie=y.useCallback(function(){h({type:uf})},[h]),Se=y.useCallback(function(){h({type:cf})},[h]),M=y.useCallback(function(P){h({type:df,highlightedIndex:P})},[h]),T=y.useCallback(function(P){h({type:Nl,selectedItem:P})},[h]),K=y.useCallback(function(P){h({type:pf,inputValue:P})},[h]),re=y.useCallback(function(){h({type:hf})},[h]);return{getItemProps:Z,getLabelProps:pe,getMenuProps:q,getInputProps:he,getToggleButtonProps:fe,toggleMenu:Ee,openMenu:Se,closeMenu:ie,setHighlightedIndex:M,setInputValue:K,selectItem:T,reset:re,highlightedIndex:m,isOpen:v,selectedItem:w,inputValue:S}}var vf={activeIndex:-1,selectedItems:[]};function wp(r,i){return pn(r,i,vf)}function xp(r,i){return _r(r,i,vf)}function d5(r){var i=wp(r,"activeIndex"),n=wp(r,"selectedItems");return{activeIndex:i,selectedItems:n}}function yp(r){if(r.shiftKey||r.metaKey||r.ctrlKey||r.altKey)return!1;var i=r.target;return!(i instanceof HTMLInputElement&&i.value!==""&&(i.selectionStart!==0||i.selectionEnd!==0))}function p5(r,i){return r.selectedItems===i.selectedItems&&r.activeIndex===i.activeIndex}var h5={stateReducer:$o.stateReducer,itemToKey:$o.itemToKey,environment:$o.environment,selectedItems:ne.array,initialSelectedItems:ne.array,defaultSelectedItems:ne.array,getA11yStatusMessage:ne.func,activeIndex:ne.number,initialActiveIndex:ne.number,defaultActiveIndex:ne.number,onActiveIndexChange:ne.func,onSelectedItemsChange:ne.func,keyNavigationNext:ne.string,keyNavigationPrevious:ne.string},f5={itemToKey:yi.itemToKey,stateReducer:yi.stateReducer,environment:yi.environment,keyNavigationNext:"ArrowRight",keyNavigationPrevious:"ArrowLeft"},mf=Dt;process.env.NODE_ENV!=="production"&&(mf=function(r,i){ne.checkPropTypes(h5,r,"prop",i.name)});var Rl=process.env.NODE_ENV!=="production"?"__selected_item_click__":0,Ml=process.env.NODE_ENV!=="production"?"__selected_item_keydown_delete__":1,zl=process.env.NODE_ENV!=="production"?"__selected_item_keydown_backspace__":2,Dl=process.env.NODE_ENV!=="production"?"__selected_item_keydown_navigation_next__":3,Al=process.env.NODE_ENV!=="production"?"__selected_item_keydown_navigation_previous__":4,Tl=process.env.NODE_ENV!=="production"?"__dropdown_keydown_navigation_previous__":5,Pl=process.env.NODE_ENV!=="production"?"__dropdown_keydown_backspace__":6,Ll=process.env.NODE_ENV!=="production"?"__dropdown_click__":7,jl=process.env.NODE_ENV!=="production"?"__function_add_selected_item__":8,Bl=process.env.NODE_ENV!=="production"?"__function_remove_selected_item__":9,Vl=process.env.NODE_ENV!=="production"?"__function_set_selected_items__":10,Fl=process.env.NODE_ENV!=="production"?"__function_set_active_index__":11,Hl=process.env.NODE_ENV!=="production"?"__function_reset__":12,g5=Object.freeze({__proto__:null,DropdownClick:Ll,DropdownKeyDownBackspace:Pl,DropdownKeyDownNavigationPrevious:Tl,FunctionAddSelectedItem:jl,FunctionRemoveSelectedItem:Bl,FunctionReset:Hl,FunctionSetActiveIndex:Fl,FunctionSetSelectedItems:Vl,SelectedItemClick:Rl,SelectedItemKeyDownBackspace:zl,SelectedItemKeyDownDelete:Ml,SelectedItemKeyDownNavigationNext:Dl,SelectedItemKeyDownNavigationPrevious:Al});function v5(r,i){var n=i.type,o=i.index,s=i.props,l=i.selectedItem,c=r.activeIndex,d=r.selectedItems,h;switch(n){case Rl:h={activeIndex:o};break;case Al:h={activeIndex:c-1<0?0:c-1};break;case Dl:h={activeIndex:c+1>=d.length?-1:c+1};break;case zl:case Ml:{if(c<0)break;var v=c;d.length===1?v=-1:c===d.length-1&&(v=d.length-2),h=_e({selectedItems:[].concat(d.slice(0,c),d.slice(c+1))},{activeIndex:v});break}case Tl:h={activeIndex:d.length-1};break;case Pl:h={selectedItems:d.slice(0,d.length-1)};break;case jl:h={selectedItems:[].concat(d,[l])};break;case Ll:h={activeIndex:-1};break;case Bl:{var m=c,w=d.findIndex(function(B){return s.itemToKey(B)===s.itemToKey(l)});if(w<0)break;d.length===1?m=-1:w===d.length-1&&(m=d.length-2),h={selectedItems:[].concat(d.slice(0,w),d.slice(w+1)),activeIndex:m};break}case Vl:{var S=i.selectedItems;h={selectedItems:S};break}case Fl:{var D=i.activeIndex;h={activeIndex:D};break}case Hl:h={activeIndex:xp(s,"activeIndex"),selectedItems:xp(s,"selectedItems")};break;default:throw new Error("Reducer called without proper action type.")}return _e({},r,h)}var m5=["refKey","ref","onClick","onKeyDown","selectedItem","index"],b5=["refKey","ref","onKeyDown","onClick","preventKeyAction"];Wl.stateChangeTypes=g5;function Wl(r){r===void 0&&(r={}),mf(r,Wl);var i=_e({},f5,r),n=i.getA11yStatusMessage,o=i.environment,s=i.keyNavigationNext,l=i.keyNavigationPrevious,c=Hh(v5,i,d5,p5),d=c[0],h=c[1],v=d.activeIndex,m=d.selectedItems,w=Mi(),S=y.useRef(null),D=y.useRef();D.current=[];var B=la({state:d,props:i});ol(n,d,[v,m],o),y.useEffect(function(){w||(v===-1&&S.current?S.current.focus():D.current[v]&&D.current[v].focus())},[v]),ua({props:i,state:d});var z=ca("getDropdownProps"),k=y.useMemo(function(){var $;return $={},$[l]=function(){h({type:Al})},$[s]=function(){h({type:Dl})},$.Delete=function(){h({type:Ml})},$.Backspace=function(){h({type:zl})},$},[h,s,l]),A=y.useMemo(function(){var $;return $={},$[l]=function(oe){yp(oe)&&h({type:Tl})},$.Backspace=function(oe){yp(oe)&&h({type:Pl})},$},[h,l]),_=y.useCallback(function($){var oe,ue=$===void 0?{}:$,pe=ue.refKey,q=pe===void 0?"ref":pe,Z=ue.ref,fe=ue.onClick,he=ue.onKeyDown,Ee=ue.selectedItem,ie=ue.index,Se=Tt(ue,m5),M=B.current.state,T=nl(Ee,ie,M.selectedItems,"Pass either item or index to getSelectedItemProps!"),K=T[1],re=K>-1&&K===M.activeIndex,P=function(){h({type:Rl,index:K})},J=function(G){var U=Hn(G);U&&k[U]&&k[U](G)};return _e((oe={},oe[q]=pr(Z,function(G){G&&D.current.push(G)}),oe.tabIndex=re?0:-1,oe.onClick=Be(fe,P),oe.onKeyDown=Be(he,J),oe),Se)},[h,B,k]),E=y.useCallback(function($,oe){var ue,pe=$===void 0?{}:$,q=pe.refKey,Z=q===void 0?"ref":q,fe=pe.ref,he=pe.onKeyDown,Ee=pe.onClick,ie=pe.preventKeyAction,Se=ie===void 0?!1:ie,M=Tt(pe,b5),T=oe===void 0?{}:oe,K=T.suppressRefError,re=K===void 0?!1:K;z("getDropdownProps",re,Z,S);var P=function(G){var U=Hn(G);U&&A[U]&&A[U](G)},J=function(){h({type:Ll})};return _e((ue={},ue[Z]=pr(fe,function(G){G&&(S.current=G)}),ue),!Se&&{onKeyDown:Be(he,P),onClick:Be(Ee,J)},M)},[h,A,z]),O=y.useCallback(function($){h({type:jl,selectedItem:$})},[h]),N=y.useCallback(function($){h({type:Bl,selectedItem:$})},[h]),V=y.useCallback(function($){h({type:Vl,selectedItems:$})},[h]),ae=y.useCallback(function($){h({type:Fl,activeIndex:$})},[h]),j=y.useCallback(function(){h({type:Hl})},[h]);return{getSelectedItemProps:_,getDropdownProps:E,addSelectedItem:O,removeSelectedItem:N,setSelectedItems:V,setActiveIndex:ae,reset:j,selectedItems:m,activeIndex:v}}const w5=r=>{const{items:i=[],isMulti:n=!1,isSearchable:o=!1,value:s,defaultValue:l,inputValue:c,onChange:d,onInputChange:h,getOptionLabel:v=F=>(F==null?void 0:F.label)||"",getOptionValue:m=F=>(F==null?void 0:F.value)||"",isOpen:w,onOpenChange:S,customOptionGenerator:D,disableInternalFiltering:B=!1,stateReducer:z,isDisabled:k=!1,clearSearchOnSelect:A=!1,closeMenuOnSelect:_=!0}=r,E=y.useCallback(F=>{const se=v(F);if(typeof se=="string")return se;if(typeof se=="number")return String(se);const H=F;if(typeof H=="object"&&H!==null){if(typeof H.label=="string")return H.label;if(typeof H.name=="string")return H.name}return String(m(F))},[v,m]),O=F=>F?Array.isArray(F)?F:[F]:[],N=l!==void 0?l:s!==void 0?s:null,[V,ae]=y.useState(()=>O(N)),[j,$]=y.useState(c||""),[oe,ue]=y.useState(()=>w!==void 0?w:!1),pe=s!==void 0?O(s):V,q=c!==void 0?c:j,Z=w!==void 0?w:oe,fe=y.useCallback(F=>{w===void 0&&ue(F),S==null||S(F)},[w,S]),he=y.useCallback(F=>{s===void 0&&ae(F);const se=n?F:F[0]||null;d==null||d(se)},[s,n,d]),Ee=y.useCallback(F=>{c===void 0&&$(F),h==null||h(F)},[c,h]),[ie,Se]=y.useState(q);y.useEffect(()=>{const F=setTimeout(()=>Se(q),120);return()=>clearTimeout(F)},[q]);const M=y.useMemo(()=>D?D(q,i):B||!o||!ie?i:i.filter(F=>E(F).toLowerCase().includes(ie.toLowerCase())),[i,q,ie,D,B,o,E]),T=Wl({selectedItems:pe,onSelectedItemsChange:F=>{const se=F.selectedItems||[];he(se)}}),K={items:M,itemToString:F=>F?E(F):"",isOpen:Z,onIsOpenChange:({isOpen:F})=>{F!==void 0&&fe(F)},selectedItem:n?null:pe[0]||null,onSelectedItemChange:F=>{!n&&F.selectedItem&&he([F.selectedItem])}},re=F=>{const se=new Map;for(const[H,we]of Object.entries(F.stateChangeTypes))se.set(we,H);return(H,we)=>{const te=(()=>{const{changes:ke,type:De}=we;if((De===Ht.stateChangeTypes.InputBlur||De===un.stateChangeTypes.ToggleButtonBlur)&&typeof document<"u"){const Ke=document.activeElement;if(Ke!=null&&Ke.closest('[data-qui="SelectMenu"]'))return{...ke,isOpen:!0}}const qe=F===Ht?[Ht.stateChangeTypes.InputKeyDownEnter,Ht.stateChangeTypes.ItemClick]:[un.stateChangeTypes.ToggleButtonKeyDownEnter,un.stateChangeTypes.ItemClick],Ve=_??!n;if(n&&ke.selectedItem&&qe.includes(De)&&(!pe.some(Ke=>m(Ke)===m(ke.selectedItem))&&ke.selectedItem&&T.addSelectedItem(ke.selectedItem),!Ve))return{...ke,isOpen:!0,highlightedIndex:H.highlightedIndex,...o&&{inputValue:""}};if(!n&&ke.selectedItem&&qe.includes(De)){const Ke={...ke};return A&&(Ke.inputValue=""),_===!1&&(Ke.isOpen=!0,Ke.highlightedIndex=H.highlightedIndex),Ke}return De===Ht.stateChangeTypes.InputBlur&&!n&&pe.length>0?{...ke,inputValue:E(pe[0])}:o&&!qe.includes(De)&&De!==Ht.stateChangeTypes.InputChange&&(De===Ht.stateChangeTypes.ControlledPropUpdatedSelectedItem||De===Ht.stateChangeTypes.FunctionSetInputValue||De===Ht.stateChangeTypes.InputBlur&&!ke.isOpen)?{...ke,inputValue:q}:ke})();if(z){const ke=se.get(we.type)||we.type;return z(H,{...we,type:ke,changes:te})}return te}},P=o?Ht({...K,inputValue:q,onInputValueChange:({inputValue:F,type:se})=>{!F&&se===Ht.stateChangeTypes.InputChange&&he([]),Ee(F||"")},stateReducer:re(Ht),initialIsOpen:w!==void 0?w:!1,defaultIsOpen:!1}):un({...K,stateReducer:re(un),initialIsOpen:w!==void 0?w:!1,defaultIsOpen:!1}),J=()=>{k||(fe(!Z),"toggleMenu"in P&&P.toggleMenu())},G=y.useCallback(()=>{k||(fe(!0),"openMenu"in P&&P.openMenu())},[fe,P,k]),U=y.useCallback(()=>{fe(!1),"closeMenu"in P&&P.closeMenu()},[fe,P]),le=y.useCallback(()=>{he([]),Ee(""),n&&T.reset()},[he,Ee,n,T]),de=y.useCallback(F=>{n&&T.removeSelectedItem(F)},[n,T]);return{isOpen:P.isOpen,selectedItem:P.selectedItem,highlightedIndex:P.highlightedIndex,inputValue:q,getToggleButtonProps:P.getToggleButtonProps,getMenuProps:P.getMenuProps,getItemProps:P.getItemProps,getInputProps:o?(F,se)=>({..."getInputProps"in P?P.getInputProps(F,se):{},value:q}):void 0,selectedItems:pe,filteredItems:M,setInputValue:Ee,setIsOpen:fe,toggleMenu:J,openMenu:G,closeMenu:U,clearSelection:le,removeItem:de,multipleSelection:T,isMulti:n,isSearchable:o}},bf=({size:r="md",color:i="primary",isInvalid:n=!1,isDisabled:o=!1,className:s,children:l,options:c=[],value:d,defaultValue:h,onChange:v,isMulti:m,inputValue:w,onInputChange:S,isSearchable:D,isOpen:B,onOpenChange:z,customOptionGenerator:k,disableInternalFiltering:A,getOptionLabel:_=$=>typeof $=="string"||typeof $=="number"?String($):($==null?void 0:$.label)||($==null?void 0:$.name)||String($),getOptionValue:E=$=>typeof $=="string"||typeof $=="number"?String($):($==null?void 0:$.value)||($==null?void 0:$.id)||($==null?void 0:$.name)||String($),isOptionDisabled:O=$=>($==null?void 0:$.isDisabled)||!1,stateReducer:N,clearSearchOnSelect:V,closeMenuOnSelect:ae,...j})=>{const[$,oe]=y.useState(!1),[ue,pe]=y.useState(!1),[q,Z]=y.useState(!1),[fe,he]=y.useState("bottom"),Ee=y.useMemo(()=>pI(c),[c]),ie=w5({items:Ee,value:d,defaultValue:h,onChange:v,isMulti:m,inputValue:w,onInputChange:S,isSearchable:D,isOpen:B,onOpenChange:z,getOptionLabel:_,getOptionValue:E,customOptionGenerator:k,disableInternalFiltering:A,stateReducer:N,isDisabled:o,clearSearchOnSelect:V,closeMenuOnSelect:ae}),Se={size:r,color:n?"negative":i,isInvalid:n,isDisabled:o,hasMessage:$,setHasMessage:oe,hasGroup:ue,setHasGroup:pe,menuVisible:q,setMenuVisible:Z,menuPlacement:fe,setMenuPlacement:he,downshift:ie,options:c,getOptionLabel:_,getOptionValue:E,isOptionDisabled:O};return b.jsx(gh.Provider,{value:Se,children:b.jsx("div",{"data-qui":"Select",className:Q(K_(),s),...j,children:l})})},x5=y.forwardRef(({className:r,children:i,isFocused:n,isDisabled:o,...s},l)=>{const{size:c,color:d,isDisabled:h,hasMessage:v,hasGroup:m,downshift:w,isInvalid:S,menuPlacement:D}=It(),B=o??h,z=n??w.isOpen;return b.jsx("div",{ref:l,className:Q(q_({size:c,color:d,isDisabled:B,isFocused:!!z,isInvalid:S&&!w.isOpen,hasMessage:v,hasGroup:m,menuPlacement:w.isOpen?D:void 0}),r),"aria-disabled":B,"aria-invalid":S,role:"combobox",tabIndex:B?-1:0,...s,children:i})}),y5=({className:r,children:i,isMulti:n})=>b.jsx("div",{className:Q(Z_({isMulti:n}),r),children:i}),Uo=y.forwardRef(({isHidden:r,inputClassName:i,className:n,...o},s)=>{const{size:l,color:c}=It();return r?b.jsx("input",{ref:s,type:"text",className:n,style:{position:"absolute",top:0,left:0,opacity:0,width:"100%",height:"100%",pointerEvents:"none"},tabIndex:-1,...o}):b.jsx("input",{ref:s,type:"text",className:Q(Y_({size:l,color:c}),i,n),...o})}),_5=({className:r,children:i})=>{const{size:n,color:o}=It();return b.jsx("div",{className:Q(X_({size:n,color:o}),r),children:i})},I5=({className:r,children:i,data:n,isDisabled:o})=>{const{size:s,color:l,getOptionLabel:c}=It();return b.jsx("div",{className:Q(Q_({size:s,color:l,isDisabled:o}),r),children:i||c(n)})},wf=({className:r,children:i,data:n,isDisabled:o,isFocused:s,onRemove:l})=>{const{size:c,color:d,downshift:h,getOptionLabel:v}=It(),m=()=>{l?l(n):h.removeItem(n)};return b.jsxs("div",{className:Q(J_({size:c,color:d,isDisabled:o,isFocused:s}),r),children:[b.jsx("div",{className:eI({size:c}),children:i||v(n)}),!o&&b.jsx("div",{className:tI({size:c,color:d,isDisabled:!1}),onClick:m,children:b.jsx(Oi,{className:"w-3 h-3"})})]})},xf=({color:r,className:i,children:n,onClick:o,isDisabled:s,...l})=>{const{size:c,color:d,isDisabled:h,downshift:v}=It(),m=s??h,w=v.selectedItems.length>0;if(m||!w)return null;const S=D=>{D.stopPropagation(),o?o(D):v.clearSelection()};return b.jsx("div",{className:Q(vh({size:c,color:r||d,isDisabled:m}),i),onClick:S,role:"button",tabIndex:0,"aria-label":"Clear selection",...l,children:n||b.jsx(Yx,{})})},S5=({className:r,children:i,onClick:n,isDisabled:o,...s})=>{const{size:l,color:c,isDisabled:d,downshift:h}=It(),v=o??d,m=h.inputValue.length>0&&h.isSearchable;if(v||!m)return null;const w=S=>{S.stopPropagation(),n?n(S):h.setInputValue("")};return b.jsx("div",{className:Q(vh({size:l,color:c,isDisabled:v}),r),onClick:w,role:"button",tabIndex:0,"aria-label":"Clear selection",...s,children:i||b.jsx(Oi,{})})},$l=y.forwardRef(({color:r,className:i,children:n,onClick:o,isDisabled:s,...l},c)=>{const{size:d,color:h,isDisabled:v,downshift:m}=It(),w=s??v,S=m.isOpen,D=B=>{B.stopPropagation(),w||(o?o(B):m.toggleMenu())};return b.jsx("div",{ref:c,className:Q(rI({size:d,color:r||h,isDisabled:w}),"cursor-pointer",i),onClick:D,role:"button",tabIndex:w?-1:0,"aria-label":S?"Close menu":"Open menu","aria-expanded":S,"aria-disabled":w,onMouseDown:B=>{B.preventDefault()},...l,children:n||b.jsx(Mp,{className:Q("transition-transform duration-200",{"rotate-180":S})})})}),E5=y.forwardRef(({className:r,children:i,placement:n,...o},s)=>{const{size:l,hasMessage:c,color:d,hasGroup:h}=It();return b.jsx("div",{"data-qui":"SelectMenu",ref:s,className:Q(nI({size:l,placement:n,hasMessage:c,color:d,hasGroup:h}),r),...o,children:i})}),k5=y.forwardRef(({className:r,children:i,maxHeight:n=300,totalHeight:o,...s},l)=>{const{size:c}=It();return b.jsx(Ys,{scrollableNodeProps:{ref:l},className:Q(iI({size:c}),r),style:{maxHeight:n},...s,children:o!==void 0?b.jsx("div",{style:{height:o,position:"relative",width:"100%"},children:i}):i})}),Go=({className:r,children:i,data:n,isDisabled:o,isFocused:s,isSelected:l,innerProps:c,optionClassName:d,...h})=>{const{size:v,color:m,getOptionLabel:w}=It();return b.jsx("div",{"data-qui":"SelectOption",className:Q(oI({size:v,color:m,isDisabled:o,isFocused:s,isSelected:l}),d,r),...c,...h,children:i??w(n)})},yf=({className:r,children:i,data:n,label:o,renderGroupHeading:s})=>{const{size:l}=It();return b.jsxs("div",{"data-qui":"SelectOptionGroup",className:Q(aI({size:l}),r),children:[b.jsx(O5,{children:s?s(n):o||n.label}),i]})},O5=({className:r,children:i})=>{const{size:n,color:o}=It();return b.jsx("div",{className:Q(sI({size:n,color:o}),r),children:i})},Ps=({className:r,children:i,inputValue:n})=>{const{size:o}=It();return b.jsx("div",{className:Q(cI({size:o}),r),children:i||`No options found${n?` for "${n}"`:""}`})},_f=y.forwardRef(({className:r,children:i,...n},o)=>{const{size:s,color:l,isDisabled:c,hasMessage:d,isInvalid:h,setHasGroup:v,menuVisible:m,menuPlacement:w}=It();return y.useEffect(()=>(v(!0),()=>{v(!1)}),[v]),b.jsx("div",{ref:o,"data-qui":"SelectGroup",className:Q(U_({size:s,color:l,isDisabled:c,hasMessage:d,isInvalid:h,isFocused:m,menuPlacement:m?w:void 0}),r),...n,children:i})}),If=y.forwardRef(({isAction:r=!1,className:i,isDisabled:n=!1,style:o,children:s,...l},c)=>{const{size:d,color:h,isDisabled:v}=It(),m=n||v,w=G_({size:d,color:h,isDisabled:m,isAction:r});return b.jsx("div",{ref:c,"data-qui":"SelectIcon",className:Q(w,i),style:o,role:r||l.onClick?"button":void 0,tabIndex:(r||l.onClick)&&!m?0:void 0,"aria-disabled":m,...l,children:s})}),Sf=({icon:r,className:i,children:n,...o})=>{const{size:s,color:l,setHasMessage:c,isInvalid:d,isDisabled:h}=It();return y.useEffect(()=>(c(!0),()=>c(!1)),[c]),b.jsxs("div",{role:"alert",className:Q(uI({size:s,color:l,isInvalid:d,isDisabled:h}),i),...o,children:[r!==void 0&&b.jsx("div",{className:Q(dI({size:s}),i),children:r}),b.jsx("p",{children:n})]})},N5=({isOpen:r,usePortal:i,controlRef:n,children:o})=>{const[s,l]=y.useState(null);return y.useLayoutEffect(()=>{if(i&&r&&n.current){const c=()=>{var d;const h=(d=n.current)==null?void 0:d.getBoundingClientRect();h&&l({top:h.top+window.scrollY,left:h.left+window.scrollX,width:h.width,height:h.height})};return c(),window.addEventListener("resize",c),window.addEventListener("scroll",c,!0),()=>{window.removeEventListener("resize",c),window.removeEventListener("scroll",c,!0)}}},[r,i,n]),r?i&&s?oa.createPortal(b.jsx("div",{className:"absolute z-50",style:{top:s.top,left:s.left,width:s.width,height:s.height,pointerEvents:"none"},children:b.jsx("div",{className:"relative w-full h-full",children:b.jsx("div",{style:{pointerEvents:"auto"},children:o})})}),document.body):b.jsx(b.Fragment,{children:o}):null},Ls=r=>i=>{r.forEach(n=>{typeof n=="function"?n(i):n!=null&&"current"in n&&(n.current=i)})},Ef=y.forwardRef(({placeholder:r,noOptionsMessage:i="",hideNoOptions:n=!1,loadingMessage:o="Loading...",isClearable:s=!1,isSearchClearable:l=!1,clearSearchOnSelect:c=!1,isLoading:d=!1,isRequired:h=!1,hideIndicators:v=!1,hideDropdownIndicator:m=!1,searchPlacement:w="trigger",hideSelectedOptions:S=!1,onFocus:D,onBlur:B,renderMenuHeader:z,formatOptionLabel:k,renderOption:A,optionClassName:_,renderValue:E,renderGroupHeading:O,inputRef:N,controlShouldRenderValue:V=!0,name:ae,id:j,onSelectionComplete:$,"aria-label":oe,"aria-labelledby":ue,"aria-describedby":pe,children:q,usePortal:Z=!1,virtualizeThreshold:fe=100,...he},Ee)=>{const{size:ie,isInvalid:Se,isDisabled:M,hasGroup:T,downshift:K,options:re=[],getOptionLabel:P,getOptionValue:J,isOptionDisabled:G,menuPlacement:U,setMenuPlacement:le,menuVisible:de,setMenuVisible:F}=It(),se=y.useMemo(()=>{if(A)return A;if(k)return({data:Le})=>k(Le)},[A,k]),H=y.useRef(null),we=N||H,te=y.useRef(null),ke=y.useRef(null),De=y.useRef(null),{isOpen:qe,openMenu:Ve,selectedItem:Ke,inputValue:Ze,highlightedIndex:lt,getToggleButtonProps:ct,getMenuProps:rt,getInputProps:bt,getItemProps:Ir,isMulti:Ct,isSearchable:ut,multipleSelection:wt}=K,{getDropdownProps:kt}=wt;y.useLayoutEffect(()=>{if(!qe||!te.current)return;const Le=te.current.getBoundingClientRect(),dt=window.innerHeight-Le.bottom;le(dt<300?"top":"bottom")},[qe,le]),y.useLayoutEffect(()=>{const Le=qe&&!(n&&K.filteredItems.length===0);return F(Le),()=>F(!1)},[qe,n,K.filteredItems.length,F]);const ft=Ct?K.selectedItems??[]:Ke?[Ke]:[],Zr=ft.length>0,Un=l&&!M&&!v,fn=s&&Zr&&!M&&!v,gn=!m&&!v,Gn=!Zr&&(!ut||!Ze)||!V,vn={},mn={};Object.entries(he).forEach(([Le,dt])=>{Le.startsWith("data-")||Le.startsWith("aria-")||Le==="role"?vn[Le]=dt:mn[Le]=dt});const bn=y.useMemo(()=>Ls([te,Ee]),[Ee]),zi=rt({},{suppressRefError:!0}),Yr=kt({preventKeyAction:qe}),Di={ref:we,disabled:M,required:h,name:ae,id:j,"aria-label":oe,"aria-labelledby":ue,"aria-describedby":pe,"aria-invalid":Se,onFocus:D,onBlur:B,...mn},Ai=(bt==null?void 0:bt({...Di,...Yr}))??Di,{ref:qn,...Zn}=Ai,Yn=y.useMemo(()=>Ls([qn,Yr.ref]),[qn,Yr.ref]),da=Le=>ft.some(dt=>J(dt)===J(Le)),Ti=Le=>S?Le.filter(dt=>!da(dt)):Le,Pi=Le=>S?Le.map(dt=>({...dt,options:Ti(dt.options)})).filter(dt=>dt.options.length>0):Le,Dr=$s(re)?[]:Ti(K.filteredItems),pa={sm:22,md:28,lg:36}[ie]??28,Xr=Dr.length>=fe,Ar=$_({count:Xr?Dr.length:0,getScrollElement:()=>De.current,estimateSize:()=>pa,overscan:5});y.useEffect(()=>{Xr&&qe&<>=0&<<Dr.length&&Ar.scrollToIndex(lt,{align:"auto"})},[lt,Xr,qe]);const Xn=Le=>{$==null||$(J(Le),Le)},Qn=ut?{}:ct({disabled:M,...Yr,ref:Ls([bn,Yr.ref])});return b.jsxs("div",{className:Q({relative:!T,"flex-1 min-w-0":T}),children:[b.jsxs(x5,{...ut?{ref:bn}:Qn,...vn,isFocused:de,isDisabled:M,onClick:Le=>{Le.stopPropagation(),ut?Ve():ut||K.toggleMenu()},children:[q||b.jsxs(y5,{isMulti:Ct,children:[Ct&&V&&ft.map((Le,dt)=>b.jsx(wf,{data:Le,index:dt,isDisabled:M,children:E?E(Le):void 0},J(Le))),!Ct&&Zr&&V&&!ut&&b.jsx("div",{className:"flex items-center gap-2",children:b.jsx(I5,{data:ft[0],isDisabled:M,children:E?E(ft[0]):P(ft[0])})}),ut&&w==="trigger"?b.jsx(Uo,{ref:Yn,...Zn,placeholder:r}):b.jsxs(b.Fragment,{children:[b.jsx(Uo,{ref:Yn,...Zn,isHidden:!0,readOnly:!0,value:ft.map(Le=>J(Le)).join(",")}),Gn&&b.jsx(_5,{children:r})]})]}),b.jsxs("div",{className:Q("flex items-center size-fit gap-1",{hidden:!fn&&!gn}),children:[Un&&b.jsx(S5,{}),fn&&b.jsx(xf,{}),gn&&b.jsx($l,{...ut?ct({disabled:M,"aria-label":qe?"Close menu":"Open menu"}):{}})]})]}),b.jsx("div",{ref:zi.ref,style:{display:"none"},"aria-hidden":"true"}),b.jsx(N5,{isOpen:qe,usePortal:Z,controlRef:te,children:(()=>{const{ref:Le,...dt}=zi;return n&&K.filteredItems.length===0?b.jsx("div",{...dt,style:{display:"none"},"aria-hidden":"true"}):b.jsxs(E5,{ref:ke,...dt,placement:U,children:[z&&z(K),ut&&w==="menu"&&b.jsx("div",{className:"p-2",children:b.jsx(Uo,{ref:Yn,...Zn,autoFocus:!0,placeholder:r,onClick:xt=>xt.stopPropagation()})}),b.jsx(k5,{ref:De,totalHeight:Xr?Ar.getTotalSize():void 0,children:d?b.jsx("div",{className:lI({size:ie}),children:o}):K.filteredItems.length===0?b.jsx(Ps,{inputValue:Ze,children:typeof i=="function"?i(Ze):i}):$s(re)?(()=>{const xt=Pi(re);return xt.length===0?b.jsx(Ps,{inputValue:Ze,children:typeof i=="function"?i(Ze):i}):xt.map(yt=>b.jsx(yf,{data:yt,label:yt.label,options:yt.options,renderGroupHeading:O,children:yt.options.map(Pt=>{const Xt=J(Pt),fr=ft.some(Jn=>J(Jn)===Xt),gr=K.filteredItems.findIndex(Jn=>J(Jn)===Xt),vr=lt===gr,mr=G(Pt),Qr=Ir({item:Pt,index:gr,onClick:()=>Xn(Pt)});return b.jsx(Go,{...Qr,data:Pt,isDisabled:mr,isFocused:vr,isSelected:fr,optionClassName:_,children:se?se({data:Pt,isFocused:vr,isSelected:fr,isDisabled:mr}):void 0},Xt)})},yt.label))})():Dr.length===0?b.jsx(Ps,{inputValue:Ze,children:typeof i=="function"?i(Ze):i}):Xr?Ar.getVirtualItems().map(xt=>{const yt=Dr[xt.index],Pt=J(yt),Xt=ft.some(Qr=>J(Qr)===Pt),fr=K.filteredItems.findIndex(Qr=>J(Qr)===Pt),gr=lt===fr,vr=G(yt),mr=Ir({item:yt,index:fr,onClick:()=>Xn(yt)});return b.jsx("div",{"data-index":xt.index,ref:Ar.measureElement,style:{position:"absolute",top:0,left:0,width:"100%",transform:`translateY(${xt.start}px)`},children:b.jsx(Go,{...mr,data:yt,isDisabled:vr,isFocused:gr,isSelected:Xt,optionClassName:_,children:se?se({data:yt,isFocused:gr,isSelected:Xt,isDisabled:vr}):void 0})},xt.key)}):Dr.map(xt=>{const yt=J(xt),Pt=ft.some(mr=>J(mr)===yt),Xt=K.filteredItems.findIndex(mr=>J(mr)===yt),fr=lt===Xt,gr=G(xt),vr=Ir({item:xt,index:Xt,onClick:()=>Xn(xt)});return b.jsx(Go,{...vr,data:xt,isDisabled:gr,isFocused:fr,isSelected:Pt,optionClassName:_,children:se?se({data:xt,isFocused:fr,isSelected:Pt,isDisabled:gr}):void 0},yt)})})]})})()})]})});bf.displayName="Select.Root";_f.displayName="Select.Group";If.displayName="Select.Icon";Uo.displayName="Select.Input";wf.displayName="Select.MultiValue";xf.displayName="Select.ClearIndicator";$l.displayName="Select.DropdownIndicator";Go.displayName="Select.Option";yf.displayName="Select.OptionGroup";Sf.displayName="Select.Message";const C5=Ef;C5.displayName="Select.Field";const Ln={Root:bf,Group:_f,Icon:If,DropdownIndicator:$l,Message:Sf,Field:Ef};y.createContext(void 0);const R5=({active:r,disabled:i,error:n,isOpen:o,className:s})=>Q("flex w-full items-center justify-between text-left leading-5 transition-colors duration-200",{"cursor-pointer":!i,"text-inactive-text":i,"bg-primary hover:bg-primary-hover":r&&!i,"text-negative":n&&!r&&!i,"bg-primary-hover text-body":o&&!r&&!i,"text-body":!r&&!i&&!n,"hover:bg-primary-hover hover:text-tab-active-fg":!i&&!r},s),M5=y.forwardRef(({active:r,disabled:i,error:n,isOpen:o,className:s,children:l,as:c="div",...d},h)=>{const v=R5({active:r,disabled:i,error:n,isOpen:o,className:s});return b.jsx(c,{"data-qui":"ListItem",ref:h,className:v,"aria-disabled":i,"aria-selected":r,"aria-invalid":n,"aria-expanded":o,role:d.onClick?"button":"listitem",...d,children:l})});M5.displayName="ListItem";const z5=({icon:r,label:i,path:n,settingsKey:o})=>{var c;const s=ki(),l=(c=s.getPreferences()[n])==null?void 0:c[o];return b.jsx("div",{className:"select-none space-y-4 rounded-md p-4 hover:bg-primary-hover",children:b.jsxs("div",{className:"flex items-center",children:[b.jsx("span",{className:"mr-3 flex h-6 w-6 items-center justify-center",children:y.createElement(r,{className:"w-full h-full"})}),b.jsx("div",{className:"text-sm",children:i}),b.jsx("span",{className:"ml-auto",children:b.jsx(ch,{checked:l,onChange:d=>{s.actions.setSetting({path:n,settingsKey:o,value:d})}})})]})})};var js={exports:{}};/*!
|
|
79
|
+
*/var Rp;function eS(){return Rp||(Rp=1,process.env.NODE_ENV!=="production"&&(function(){var t=Symbol.for("react.element"),o=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),c=Symbol.for("react.context"),d=Symbol.for("react.server_context"),p=Symbol.for("react.forward_ref"),g=Symbol.for("react.suspense"),b=Symbol.for("react.suspense_list"),x=Symbol.for("react.memo"),I=Symbol.for("react.lazy"),A=Symbol.for("react.offscreen"),F=!1,R=!1,k=!1,L=!1,y=!1,N;N=Symbol.for("react.module.reference");function C(le){return!!(typeof le=="string"||typeof le=="function"||le===n||le===s||y||le===i||le===g||le===b||L||le===A||F||R||k||typeof le=="object"&&le!==null&&(le.$$typeof===I||le.$$typeof===x||le.$$typeof===l||le.$$typeof===c||le.$$typeof===p||le.$$typeof===N||le.getModuleId!==void 0))}function S(le){if(typeof le=="object"&&le!==null){var Me=le.$$typeof;switch(Me){case t:var Ve=le.type;switch(Ve){case n:case s:case i:case g:case b:return Ve;default:var lt=Ve&&Ve.$$typeof;switch(lt){case d:case c:case p:case I:case x:case l:return lt;default:return Me}}case o:return Me}}}var P=c,W=l,V=t,q=p,G=n,te=I,pe=x,ye=o,ce=s,ie=i,ae=g,xe=b,ne=!1,Ie=!1;function E(le){return ne||(ne=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function M(le){return Ie||(Ie=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function T(le){return S(le)===c}function K(le){return S(le)===l}function j(le){return typeof le=="object"&&le!==null&&le.$$typeof===t}function X(le){return S(le)===p}function $(le){return S(le)===n}function H(le){return S(le)===I}function re(le){return S(le)===x}function he(le){return S(le)===o}function ue(le){return S(le)===s}function _e(le){return S(le)===i}function Q(le){return S(le)===g}function be(le){return S(le)===b}Je.ContextConsumer=P,Je.ContextProvider=W,Je.Element=V,Je.ForwardRef=q,Je.Fragment=G,Je.Lazy=te,Je.Memo=pe,Je.Portal=ye,Je.Profiler=ce,Je.StrictMode=ie,Je.Suspense=ae,Je.SuspenseList=xe,Je.isAsyncMode=E,Je.isConcurrentMode=M,Je.isContextConsumer=T,Je.isContextProvider=K,Je.isElement=j,Je.isForwardRef=X,Je.isFragment=$,Je.isLazy=H,Je.isMemo=re,Je.isPortal=he,Je.isProfiler=ue,Je.isStrictMode=_e,Je.isSuspense=Q,Je.isSuspenseList=be,Je.isValidElementType=C,Je.typeOf=S})()),Je}var zp;function tS(){return zp||(zp=1,process.env.NODE_ENV==="production"?tl.exports=QI():tl.exports=eS()),tl.exports}var Dp=tS();const Ap=t=>typeof t=="object"&&t!=null&&t.nodeType===1,Tp=(t,o)=>(!o||t!=="hidden")&&t!=="visible"&&t!=="clip",Gi=(t,o)=>{if(t.clientHeight<t.scrollHeight||t.clientWidth<t.scrollWidth){const n=getComputedStyle(t,null);return Tp(n.overflowY,o)||Tp(n.overflowX,o)||(i=>{const s=(l=>{if(!l.ownerDocument||!l.ownerDocument.defaultView)return null;try{return l.ownerDocument.defaultView.frameElement}catch{return null}})(i);return!!s&&(s.clientHeight<i.scrollHeight||s.clientWidth<i.scrollWidth)})(t)}return!1},Zi=(t,o,n,i,s,l,c,d)=>l<t&&c>o||l>t&&c<o?0:l<=t&&d<=n||c>=o&&d>=n?l-t-i:c>o&&d<n||l<t&&d>n?c-o+s:0,rS=t=>t.parentElement??(t.getRootNode().host||null),nS=(t,o)=>{var n,i,s,l;if(typeof document>"u")return[];const{inline:c,boundary:d,skipOverflowHiddenElements:p}=o,g=typeof d=="function"?d:ye=>ye!==d;if(!Ap(t))throw new TypeError("Invalid target");const b=document.scrollingElement||document.documentElement,x=[];let I=t;for(;Ap(I)&&g(I);){if(I=rS(I),I===b){x.push(I);break}I!=null&&I===document.body&&Gi(I)&&!Gi(document.documentElement)||I!=null&&Gi(I,p)&&x.push(I)}const A=(i=(n=window.visualViewport)==null?void 0:n.width)!=null?i:innerWidth,F=(l=(s=window.visualViewport)==null?void 0:s.height)!=null?l:innerHeight,{scrollX:R,scrollY:k}=window,{height:L,width:y,top:N,right:C,bottom:S,left:P}=t.getBoundingClientRect(),{top:W,right:V,left:q}=(ye=>{const ce=window.getComputedStyle(ye);return{top:parseFloat(ce.scrollMarginTop)||0,right:parseFloat(ce.scrollMarginRight)||0,bottom:parseFloat(ce.scrollMarginBottom)||0,left:parseFloat(ce.scrollMarginLeft)||0}})(t);let G=N-W,te=c==="center"?P+y/2-q+V:c==="end"?C+V:P-q;const pe=[];for(let ye=0;ye<x.length;ye++){const ce=x[ye],{height:ie,width:ae,top:xe,right:ne,bottom:Ie,left:E}=ce.getBoundingClientRect();if(N>=0&&P>=0&&S<=F&&C<=A&&(ce===b&&!Gi(ce)||N>=xe&&S<=Ie&&P>=E&&C<=ne))return pe;const M=getComputedStyle(ce),T=parseInt(M.borderLeftWidth,10),K=parseInt(M.borderTopWidth,10),j=parseInt(M.borderRightWidth,10),X=parseInt(M.borderBottomWidth,10);let $=0,H=0;const re="offsetWidth"in ce?ce.offsetWidth-ce.clientWidth-T-j:0,he="offsetHeight"in ce?ce.offsetHeight-ce.clientHeight-K-X:0,ue="offsetWidth"in ce?ce.offsetWidth===0?0:ae/ce.offsetWidth:0,_e="offsetHeight"in ce?ce.offsetHeight===0?0:ie/ce.offsetHeight:0;if(b===ce)$=Zi(k,k+F,F,K,X,k+G,k+G+L,L),H=c==="start"?te:c==="center"?te-A/2:c==="end"?te-A:Zi(R,R+A,A,T,j,R+te,R+te+y,y),$=Math.max(0,$+k),H=Math.max(0,H+R);else{$=Zi(xe,Ie,ie,K,X+he,G,G+L,L),H=c==="start"?te-E-T:c==="center"?te-(E+ae/2)+re/2:c==="end"?te-ne+j+re:Zi(E,ne,ae,T,j+re,te,te+y,y);const{scrollLeft:Q,scrollTop:be}=ce;$=_e===0?0:Math.max(0,Math.min(be+$/_e,ce.scrollHeight-ie/_e+he)),H=ue===0?0:Math.max(0,Math.min(Q+H/ue,ce.scrollWidth-ae/ue+re)),G+=be-$,te+=Q-H}pe.push({el:ce,top:$,left:H})}return pe};var $n=function(){return $n=Object.assign||function(t){for(var o,n=1,i=arguments.length;n<i;n++){o=arguments[n];for(var s in o)Object.prototype.hasOwnProperty.call(o,s)&&(t[s]=o[s])}return t},$n.apply(this,arguments)},oS=0;function Pp(t){return typeof t=="function"?t:At}function At(){}function Zh(t,o){if(t){var n=nS(t,{boundary:o});n.forEach(function(i){var s=i.el,l=i.top,c=i.left;s.scrollTop=l,s.scrollLeft=c})}}function jp(t,o,n){var i=t===o||o instanceof n.Node&&t.contains&&t.contains(o);return i}function _a(t,o){var n;function i(){n&&clearTimeout(n)}function s(){for(var l=arguments.length,c=new Array(l),d=0;d<l;d++)c[d]=arguments[d];i(),n=setTimeout(function(){n=null,t.apply(void 0,c)},o)}return s.cancel=i,s}function Ue(){for(var t=arguments.length,o=new Array(t),n=0;n<t;n++)o[n]=arguments[n];return function(i){for(var s=arguments.length,l=new Array(s>1?s-1:0),c=1;c<s;c++)l[c-1]=arguments[c];return o.some(function(d){return d&&d.apply(void 0,[i].concat(l)),i.preventDownshiftDefault||i.hasOwnProperty("nativeEvent")&&i.nativeEvent.preventDownshiftDefault})}}function br(){for(var t=arguments.length,o=new Array(t),n=0;n<t;n++)o[n]=arguments[n];return function(i){o.forEach(function(s){typeof s=="function"?s(i):s&&(s.current=i)})}}function Yh(){return String(oS++)}function iS(t){var o=t.isOpen,n=t.resultCount,i=t.previousResultCount;return o?n?n!==i?n+" result"+(n===1?" is":"s are")+" available, use up and down arrow keys to navigate. Press Enter key to select.":"":"No results are available.":""}function Lp(t,o){return t=Array.isArray(t)?t[0]:t,!t&&o?o:t}function Xh(t){return typeof t.type=="string"}function Jh(t){return t.props}function aS(t,o){console.error('The property "'+o+'" is required in "'+t+'"')}var sS=["highlightedIndex","inputValue","isOpen","selectedItem","type"];function Yi(t){t===void 0&&(t={});var o={};return sS.forEach(function(n){t.hasOwnProperty(n)&&(o[n]=t[n])}),o}function To(t,o){return!t||!o?t:Object.keys(t).reduce(function(n,i){return n[i]=pa(o,i)?o[i]:t[i],n},{})}function pa(t,o){return t[o]!==void 0}function qn(t){var o=t.key,n=t.keyCode;return n>=37&&n<=40&&o.indexOf("Arrow")!==0?"Arrow"+o:o}function lS(t){return Object.prototype.toString.call(t)==="[object Object]"}function wr(t,o,n,i,s){s===void 0&&(s=!1);var l=n.length;if(l===0)return-1;var c=l-1;(typeof t!="number"||t<0||t>c)&&(t=o>0?-1:c+1);var d=t+o;d<0?d=s?c:0:d>c&&(d=s?0:c);var p=en(d,o<0,n,i,s);return p===-1?t>=l?-1:t:p}function en(t,o,n,i,s){s===void 0&&(s=!1);var l=n.length;if(o){for(var c=t;c>=0;c--)if(!i(n[c],c))return c}else for(var d=t;d<l;d++)if(!i(n[d],d))return d;return s?en(o?l-1:0,o,n,i):-1}function ha(t,o,n,i){return i===void 0&&(i=!0),n&&o.some(function(s){return s&&(jp(s,t,n)||i&&jp(s,n.document.activeElement,n))})}var Il=At;process.env.NODE_ENV!=="production"&&(Il=function(t,o,n){var i="This prop should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled Downshift element for the lifetime of the component. More info: https://github.com/downshift-js/downshift#control-props";Object.keys(t).forEach(function(s){o[s]!==void 0&&n[s]===void 0?console.error('downshift: A component has changed the controlled prop "'+s+'" to be uncontrolled. '+i):o[s]===void 0&&n[s]!==void 0&&console.error('downshift: A component has changed the uncontrolled prop "'+s+'" to be controlled. '+i)})});var cS=_a(function(t){Qh(t).textContent=""},500);function Qh(t){var o=t.getElementById("a11y-status-message");return o||(o=t.createElement("div"),o.setAttribute("id","a11y-status-message"),o.setAttribute("role","status"),o.setAttribute("aria-live","polite"),o.setAttribute("aria-relevant","additions text"),Object.assign(o.style,{border:"0",clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:"0",position:"absolute",width:"1px"}),t.body.appendChild(o),o)}function ef(t,o){if(!(!t||!o)){var n=Qh(o);n.textContent=t,cS(o)}}function uS(t){var o=t==null?void 0:t.getElementById("a11y-status-message");o&&o.remove()}var tf=process.env.NODE_ENV!=="production"?"__autocomplete_unknown__":0,rf=process.env.NODE_ENV!=="production"?"__autocomplete_mouseup__":1,nf=process.env.NODE_ENV!=="production"?"__autocomplete_item_mouseenter__":2,ra=process.env.NODE_ENV!=="production"?"__autocomplete_keydown_arrow_up__":3,na=process.env.NODE_ENV!=="production"?"__autocomplete_keydown_arrow_down__":4,of=process.env.NODE_ENV!=="production"?"__autocomplete_keydown_escape__":5,af=process.env.NODE_ENV!=="production"?"__autocomplete_keydown_enter__":6,sf=process.env.NODE_ENV!=="production"?"__autocomplete_keydown_home__":7,lf=process.env.NODE_ENV!=="production"?"__autocomplete_keydown_end__":8,cf=process.env.NODE_ENV!=="production"?"__autocomplete_click_item__":9,uf=process.env.NODE_ENV!=="production"?"__autocomplete_blur_input__":10,df=process.env.NODE_ENV!=="production"?"__autocomplete_change_input__":11,pf=process.env.NODE_ENV!=="production"?"__autocomplete_keydown_space_button__":12,hl=process.env.NODE_ENV!=="production"?"__autocomplete_click_button__":13,hf=process.env.NODE_ENV!=="production"?"__autocomplete_blur_button__":14,ff=process.env.NODE_ENV!=="production"?"__autocomplete_controlled_prop_updated_selected_item__":15,gf=process.env.NODE_ENV!=="production"?"__autocomplete_touchend__":16,dS=Object.freeze({__proto__:null,blurButton:hf,blurInput:uf,changeInput:df,clickButton:hl,clickItem:cf,controlledPropUpdatedSelectedItem:ff,itemMouseEnter:nf,keyDownArrowDown:na,keyDownArrowUp:ra,keyDownEnd:lf,keyDownEnter:af,keyDownEscape:of,keyDownHome:sf,keyDownSpaceButton:pf,mouseUp:rf,touchEnd:gf,unknown:tf}),pS=["refKey","ref"],hS=["onClick","onPress","onKeyDown","onKeyUp","onBlur"],fS=["onKeyDown","onBlur","onChange","onInput","onChangeText"],gS=["refKey","ref"],vS=["onMouseMove","onMouseDown","onClick","onPress","index","item"],mS=(function(){var t=(function(o){function n(s){var l;l=o.call(this,s)||this,l.id=l.props.id||"downshift-"+Yh(),l.menuId=l.props.menuId||l.id+"-menu",l.labelId=l.props.labelId||l.id+"-label",l.inputId=l.props.inputId||l.id+"-input",l.getItemId=l.props.getItemId||function(y){return l.id+"-item-"+y},l.items=[],l.itemCount=null,l.previousResultCount=0,l.timeoutIds=[],l.internalSetTimeout=function(y,N){var C=setTimeout(function(){l.timeoutIds=l.timeoutIds.filter(function(S){return S!==C}),y()},N);l.timeoutIds.push(C)},l.setItemCount=function(y){l.itemCount=y},l.unsetItemCount=function(){l.itemCount=null},l.isItemDisabled=function(y,N){var C=l.getItemNodeFromIndex(N);return C&&C.hasAttribute("disabled")},l.setHighlightedIndex=function(y,N){y===void 0&&(y=l.props.defaultHighlightedIndex),N===void 0&&(N={}),N=Yi(N),l.internalSetState(Ce({highlightedIndex:y},N))},l.clearSelection=function(y){l.internalSetState({selectedItem:null,inputValue:"",highlightedIndex:l.props.defaultHighlightedIndex,isOpen:l.props.defaultIsOpen},y)},l.selectItem=function(y,N,C){N=Yi(N),l.internalSetState(Ce({isOpen:l.props.defaultIsOpen,highlightedIndex:l.props.defaultHighlightedIndex,selectedItem:y,inputValue:l.props.itemToString(y)},N),C)},l.selectItemAtIndex=function(y,N,C){var S=l.items[y];S!=null&&l.selectItem(S,N,C)},l.selectHighlightedItem=function(y,N){return l.selectItemAtIndex(l.getState().highlightedIndex,y,N)},l.internalSetState=function(y,N){var C,S,P={},W=typeof y=="function";return!W&&y.hasOwnProperty("inputValue")&&l.props.onInputValueChange(y.inputValue,Ce({},l.getStateAndHelpers(),y)),l.setState(function(V){var q;V=l.getState(V);var G=W?y(V):y;G=l.props.stateReducer(V,G),C=G.hasOwnProperty("selectedItem");var te={};return C&&G.selectedItem!==V.selectedItem&&(S=G.selectedItem),(q=G).type||(q.type=tf),Object.keys(G).forEach(function(pe){V[pe]!==G[pe]&&(P[pe]=G[pe]),pe!=="type"&&(G[pe],pa(l.props,pe)||(te[pe]=G[pe]))}),W&&G.hasOwnProperty("inputValue")&&l.props.onInputValueChange(G.inputValue,Ce({},l.getStateAndHelpers(),G)),te},function(){Pp(N)();var V=Object.keys(P).length>1;V&&l.props.onStateChange(P,l.getStateAndHelpers()),C&&l.props.onSelect(y.selectedItem,l.getStateAndHelpers()),S!==void 0&&l.props.onChange(S,l.getStateAndHelpers()),l.props.onUserAction(P,l.getStateAndHelpers())})},l.rootRef=function(y){return l._rootNode=y},l.getRootProps=function(y,N){var C,S=y===void 0?{}:y,P=S.refKey,W=P===void 0?"ref":P,V=S.ref,q=Tt(S,pS),G=N===void 0?{}:N,te=G.suppressRefError,pe=te===void 0?!1:te;l.getRootProps.called=!0,l.getRootProps.refKey=W,l.getRootProps.suppressRefError=pe;var ye=l.getState(),ce=ye.isOpen;return Ce((C={},C[W]=br(V,l.rootRef),C.role="combobox",C["aria-expanded"]=ce,C["aria-haspopup"]="listbox",C["aria-owns"]=ce?l.menuId:void 0,C["aria-labelledby"]=l.labelId,C),q)},l.keyDownHandlers={ArrowDown:function(y){var N=this;if(y.preventDefault(),this.getState().isOpen){var C=y.shiftKey?5:1;this.moveHighlightedIndex(C,{type:na})}else this.internalSetState({isOpen:!0,type:na},function(){var S=N.getItemCount();if(S>0){var P=N.getState(),W=P.highlightedIndex,V=wr(W,1,{length:S},N.isItemDisabled,!0);N.setHighlightedIndex(V,{type:na})}})},ArrowUp:function(y){var N=this;if(y.preventDefault(),this.getState().isOpen){var C=y.shiftKey?-5:-1;this.moveHighlightedIndex(C,{type:ra})}else this.internalSetState({isOpen:!0,type:ra},function(){var S=N.getItemCount();if(S>0){var P=N.getState(),W=P.highlightedIndex,V=wr(W,-1,{length:S},N.isItemDisabled,!0);N.setHighlightedIndex(V,{type:ra})}})},Enter:function(y){if(y.which!==229){var N=this.getState(),C=N.isOpen,S=N.highlightedIndex;if(C&&S!=null){y.preventDefault();var P=this.items[S],W=this.getItemNodeFromIndex(S);if(P==null||W&&W.hasAttribute("disabled"))return;this.selectHighlightedItem({type:af})}}},Escape:function(y){y.preventDefault(),this.reset(Ce({type:of},!this.state.isOpen&&{selectedItem:null,inputValue:""}))}},l.buttonKeyDownHandlers=Ce({},l.keyDownHandlers,{" ":function(y){y.preventDefault(),this.toggleMenu({type:pf})}}),l.inputKeyDownHandlers=Ce({},l.keyDownHandlers,{Home:function(y){var N=this.getState(),C=N.isOpen;if(C){y.preventDefault();var S=this.getItemCount();if(!(S<=0||!C)){var P=en(0,!1,{length:S},this.isItemDisabled);this.setHighlightedIndex(P,{type:sf})}}},End:function(y){var N=this.getState(),C=N.isOpen;if(C){y.preventDefault();var S=this.getItemCount();if(!(S<=0||!C)){var P=en(S-1,!0,{length:S},this.isItemDisabled);this.setHighlightedIndex(P,{type:lf})}}}}),l.getToggleButtonProps=function(y){var N=y===void 0?{}:y,C=N.onClick;N.onPress;var S=N.onKeyDown,P=N.onKeyUp,W=N.onBlur,V=Tt(N,hS),q=l.getState(),G=q.isOpen,te={onClick:Ue(C,l.buttonHandleClick),onKeyDown:Ue(S,l.buttonHandleKeyDown),onKeyUp:Ue(P,l.buttonHandleKeyUp),onBlur:Ue(W,l.buttonHandleBlur)},pe=V.disabled?{}:te;return Ce({type:"button",role:"button","aria-label":G?"close menu":"open menu","aria-haspopup":!0,"data-toggle":!0},pe,V)},l.buttonHandleKeyUp=function(y){y.preventDefault()},l.buttonHandleKeyDown=function(y){var N=qn(y);l.buttonKeyDownHandlers[N]&&l.buttonKeyDownHandlers[N].call(l,y)},l.buttonHandleClick=function(y){if(y.preventDefault(),l.props.environment){var N=l.props.environment.document,C=N.body,S=N.activeElement;C&&C===S&&y.target.focus()}process.env.NODE_ENV==="test"?l.toggleMenu({type:hl}):l.internalSetTimeout(function(){return l.toggleMenu({type:hl})})},l.buttonHandleBlur=function(y){var N=y.target;l.internalSetTimeout(function(){if(!(l.isMouseDown||!l.props.environment)){var C=l.props.environment.document.activeElement;(C==null||C.id!==l.inputId)&&C!==N&&l.reset({type:hf})}})},l.getLabelProps=function(y){return Ce({htmlFor:l.inputId,id:l.labelId},y)},l.getInputProps=function(y){var N=y===void 0?{}:y,C=N.onKeyDown,S=N.onBlur,P=N.onChange,W=N.onInput;N.onChangeText;var V=Tt(N,fS),q,G={};q="onChange";var te=l.getState(),pe=te.inputValue,ye=te.isOpen,ce=te.highlightedIndex;if(!V.disabled){var ie;G=(ie={},ie[q]=Ue(P,W,l.inputHandleChange),ie.onKeyDown=Ue(C,l.inputHandleKeyDown),ie.onBlur=Ue(S,l.inputHandleBlur),ie)}return Ce({"aria-autocomplete":"list","aria-activedescendant":ye&&typeof ce=="number"&&ce>=0?l.getItemId(ce):void 0,"aria-controls":ye?l.menuId:void 0,"aria-labelledby":V&&V["aria-label"]?void 0:l.labelId,autoComplete:"off",value:pe,id:l.inputId},G,V)},l.inputHandleKeyDown=function(y){var N=qn(y);N&&l.inputKeyDownHandlers[N]&&l.inputKeyDownHandlers[N].call(l,y)},l.inputHandleChange=function(y){l.internalSetState({type:df,isOpen:!0,inputValue:y.target.value,highlightedIndex:l.props.defaultHighlightedIndex})},l.inputHandleBlur=function(){l.internalSetTimeout(function(){var y;if(!(l.isMouseDown||!l.props.environment)){var N=l.props.environment.document.activeElement,C=(N==null||(y=N.dataset)==null?void 0:y.toggle)&&l._rootNode&&l._rootNode.contains(N);C||l.reset({type:uf})}})},l.menuRef=function(y){l._menuNode=y},l.getMenuProps=function(y,N){var C,S=y===void 0?{}:y,P=S.refKey,W=P===void 0?"ref":P,V=S.ref,q=Tt(S,gS),G=N===void 0?{}:N,te=G.suppressRefError,pe=te===void 0?!1:te;return l.getMenuProps.called=!0,l.getMenuProps.refKey=W,l.getMenuProps.suppressRefError=pe,Ce((C={},C[W]=br(V,l.menuRef),C.role="listbox",C["aria-labelledby"]=q&&q["aria-label"]?void 0:l.labelId,C.id=l.menuId,C),q)},l.getItemProps=function(y){var N,C=y===void 0?{}:y,S=C.onMouseMove,P=C.onMouseDown,W=C.onClick;C.onPress;var V=C.index,q=C.item,G=q===void 0?process.env.NODE_ENV==="production"?void 0:aS("getItemProps","item"):q,te=Tt(C,vS);V===void 0?(l.items.push(G),V=l.items.indexOf(G)):l.items[V]=G;var pe="onClick",ye=W,ce=(N={onMouseMove:Ue(S,function(){V!==l.getState().highlightedIndex&&(l.setHighlightedIndex(V,{type:nf}),l.avoidScrolling=!0,l.internalSetTimeout(function(){return l.avoidScrolling=!1},250))}),onMouseDown:Ue(P,function(ae){ae.preventDefault()})},N[pe]=Ue(ye,function(){l.selectItemAtIndex(V,{type:cf})}),N),ie=te.disabled?{onMouseDown:ce.onMouseDown}:ce;return Ce({id:l.getItemId(V),role:"option","aria-selected":l.getState().highlightedIndex===V},ie,te)},l.clearItems=function(){l.items=[]},l.reset=function(y,N){y===void 0&&(y={}),y=Yi(y),l.internalSetState(function(C){var S=C.selectedItem;return Ce({isOpen:l.props.defaultIsOpen,highlightedIndex:l.props.defaultHighlightedIndex,inputValue:l.props.itemToString(S)},y)},N)},l.toggleMenu=function(y,N){y===void 0&&(y={}),y=Yi(y),l.internalSetState(function(C){var S=C.isOpen;return Ce({isOpen:!S},S&&{highlightedIndex:l.props.defaultHighlightedIndex},y)},function(){var C=l.getState(),S=C.isOpen,P=C.highlightedIndex;S&&l.getItemCount()>0&&typeof P=="number"&&l.setHighlightedIndex(P,y),Pp(N)()})},l.openMenu=function(y){l.internalSetState({isOpen:!0},y)},l.closeMenu=function(y){l.internalSetState({isOpen:!1},y)},l.updateStatus=_a(function(){var y;if((y=l.props)!=null&&(y=y.environment)!=null&&y.document){var N=l.getState(),C=l.items[N.highlightedIndex],S=l.getItemCount(),P=l.props.getA11yStatusMessage(Ce({itemToString:l.props.itemToString,previousResultCount:l.previousResultCount,resultCount:S,highlightedItem:C},N));l.previousResultCount=S,ef(P,l.props.environment.document)}},200);var c=l.props,d=c.defaultHighlightedIndex,p=c.initialHighlightedIndex,g=p===void 0?d:p,b=c.defaultIsOpen,x=c.initialIsOpen,I=x===void 0?b:x,A=c.initialInputValue,F=A===void 0?"":A,R=c.initialSelectedItem,k=R===void 0?null:R,L=l.getState({highlightedIndex:g,isOpen:I,inputValue:F,selectedItem:k});return L.selectedItem!=null&&l.props.initialInputValue===void 0&&(L.inputValue=l.props.itemToString(L.selectedItem)),l.state=L,l}$I(n,o);var i=n.prototype;return i.internalClearTimeouts=function(){this.timeoutIds.forEach(function(s){clearTimeout(s)}),this.timeoutIds=[]},i.getState=function(s){return s===void 0&&(s=this.state),To(s,this.props)},i.getItemCount=function(){var s=this.items.length;return this.itemCount!=null?s=this.itemCount:this.props.itemCount!==void 0&&(s=this.props.itemCount),s},i.getItemNodeFromIndex=function(s){return this.props.environment?this.props.environment.document.getElementById(this.getItemId(s)):null},i.scrollHighlightedItemIntoView=function(){{var s=this.getItemNodeFromIndex(this.getState().highlightedIndex);this.props.scrollIntoView(s,this._menuNode)}},i.moveHighlightedIndex=function(s,l){var c=this.getItemCount(),d=this.getState(),p=d.highlightedIndex;if(c>0){var g=wr(p,s,{length:c},this.isItemDisabled,!0);this.setHighlightedIndex(g,l)}},i.getStateAndHelpers=function(){var s=this.getState(),l=s.highlightedIndex,c=s.inputValue,d=s.selectedItem,p=s.isOpen,g=this.props.itemToString,b=this.id,x=this.getRootProps,I=this.getToggleButtonProps,A=this.getLabelProps,F=this.getMenuProps,R=this.getInputProps,k=this.getItemProps,L=this.openMenu,y=this.closeMenu,N=this.toggleMenu,C=this.selectItem,S=this.selectItemAtIndex,P=this.selectHighlightedItem,W=this.setHighlightedIndex,V=this.clearSelection,q=this.clearItems,G=this.reset,te=this.setItemCount,pe=this.unsetItemCount,ye=this.internalSetState;return{getRootProps:x,getToggleButtonProps:I,getLabelProps:A,getMenuProps:F,getInputProps:R,getItemProps:k,reset:G,openMenu:L,closeMenu:y,toggleMenu:N,selectItem:C,selectItemAtIndex:S,selectHighlightedItem:P,setHighlightedIndex:W,clearSelection:V,clearItems:q,setItemCount:te,unsetItemCount:pe,setState:ye,itemToString:g,id:b,highlightedIndex:l,inputValue:c,isOpen:p,selectedItem:d}},i.componentDidMount=function(){var s=this;if(process.env.NODE_ENV!=="production"&&this.getMenuProps.called&&!this.getMenuProps.suppressRefError&&Vp(this._menuNode,this.getMenuProps),!this.props.environment)this.cleanup=function(){s.internalClearTimeouts()};else{var l=function(){s.isMouseDown=!0},c=function(x){s.isMouseDown=!1;var I=ha(x.target,[s._rootNode,s._menuNode],s.props.environment);!I&&s.getState().isOpen&&s.reset({type:rf},function(){return s.props.onOuterClick(s.getStateAndHelpers())})},d=function(){s.isTouchMove=!1},p=function(){s.isTouchMove=!0},g=function(x){var I=ha(x.target,[s._rootNode,s._menuNode],s.props.environment,!1);!s.isTouchMove&&!I&&s.getState().isOpen&&s.reset({type:gf},function(){return s.props.onOuterClick(s.getStateAndHelpers())})},b=this.props.environment;b.addEventListener("mousedown",l),b.addEventListener("mouseup",c),b.addEventListener("touchstart",d),b.addEventListener("touchmove",p),b.addEventListener("touchend",g),this.cleanup=function(){s.internalClearTimeouts(),s.updateStatus.cancel(),b.removeEventListener("mousedown",l),b.removeEventListener("mouseup",c),b.removeEventListener("touchstart",d),b.removeEventListener("touchmove",p),b.removeEventListener("touchend",g)}}},i.shouldScroll=function(s,l){var c=this.props.highlightedIndex===void 0?this.getState():this.props,d=c.highlightedIndex,p=l.highlightedIndex===void 0?s:l,g=p.highlightedIndex,b=d&&this.getState().isOpen&&!s.isOpen,x=d!==g;return b||x},i.componentDidUpdate=function(s,l){process.env.NODE_ENV!=="production"&&(Il(this.state,s,this.props),this.getMenuProps.called&&!this.getMenuProps.suppressRefError&&Vp(this._menuNode,this.getMenuProps)),pa(this.props,"selectedItem")&&this.props.selectedItemChanged(s.selectedItem,this.props.selectedItem)&&this.internalSetState({type:ff,inputValue:this.props.itemToString(this.props.selectedItem)}),!this.avoidScrolling&&this.shouldScroll(l,s)&&this.scrollHighlightedItemIntoView(),this.updateStatus()},i.componentWillUnmount=function(){this.cleanup()},i.render=function(){var s=Lp(this.props.children,At);this.clearItems(),this.getRootProps.called=!1,this.getRootProps.refKey=void 0,this.getRootProps.suppressRefError=void 0,this.getMenuProps.called=!1,this.getMenuProps.refKey=void 0,this.getMenuProps.suppressRefError=void 0,this.getLabelProps.called=!1,this.getInputProps.called=!1;var l=Lp(s(this.getStateAndHelpers()));if(!l)return null;if(this.getRootProps.called||this.props.suppressRefError)return process.env.NODE_ENV!=="production"&&!this.getRootProps.suppressRefError&&!this.props.suppressRefError&&bS(l,this.getRootProps),l;if(Xh(l))return m.cloneElement(l,this.getRootProps(Jh(l)));if(process.env.NODE_ENV!=="production")throw new Error("downshift: If you return a non-DOM element, you must apply the getRootProps function")},n})(m.Component);return t.defaultProps={defaultHighlightedIndex:null,defaultIsOpen:!1,getA11yStatusMessage:iS,itemToString:function(o){return o==null?"":(process.env.NODE_ENV!=="production"&&lS(o)&&!o.hasOwnProperty("toString")&&console.warn("downshift: An object was passed to the default implementation of `itemToString`. You should probably provide your own `itemToString` implementation. Please refer to the `itemToString` API documentation.","The object that was passed:",o),String(o))},onStateChange:At,onInputValueChange:At,onUserAction:At,onChange:At,onSelect:At,onOuterClick:At,selectedItemChanged:function(o,n){return o!==n},environment:typeof window>"u"?void 0:window,stateReducer:function(o,n){return n},suppressRefError:!1,scrollIntoView:Zh},t.stateChangeTypes=dS,t})();process.env.NODE_ENV!=="production"&&(mS.propTypes={children:se.func,defaultHighlightedIndex:se.number,defaultIsOpen:se.bool,initialHighlightedIndex:se.number,initialSelectedItem:se.any,initialInputValue:se.string,initialIsOpen:se.bool,getA11yStatusMessage:se.func,itemToString:se.func,onChange:se.func,onSelect:se.func,onStateChange:se.func,onInputValueChange:se.func,onUserAction:se.func,onOuterClick:se.func,selectedItemChanged:se.func,stateReducer:se.func,itemCount:se.number,id:se.string,environment:se.shape({addEventListener:se.func.isRequired,removeEventListener:se.func.isRequired,document:se.shape({createElement:se.func.isRequired,getElementById:se.func.isRequired,activeElement:se.any.isRequired,body:se.any.isRequired}).isRequired,Node:se.func.isRequired}),suppressRefError:se.bool,scrollIntoView:se.func,selectedItem:se.any,isOpen:se.bool,inputValue:se.string,highlightedIndex:se.number,labelId:se.string,inputId:se.string,menuId:se.string,getItemId:se.func});function Vp(t,o){var n=o.refKey;t||console.error('downshift: The ref prop "'+n+'" from getMenuProps was not applied correctly on your menu element.')}function bS(t,o){var n=o.refKey,i=n!=="ref",s=!Xh(t);s&&!i&&!Dp.isForwardRef(t)?console.error("downshift: You returned a non-DOM element. You must specify a refKey in getRootProps"):!s&&i&&console.error('downshift: You returned a DOM element. You should not specify a refKey in getRootProps. You specified "'+n+'"'),!Dp.isForwardRef(t)&&!Jh(t)[n]&&console.error('downshift: You must apply the ref prop "'+n+'" from getRootProps onto your root element.')}var vf={highlightedIndex:-1,isOpen:!1,selectedItem:null,inputValue:""};function wS(t,o,n){var i=t.props,s=t.type,l={};Object.keys(o).forEach(function(c){xS(c,t,o,n),n[c]!==o[c]&&(l[c]=n[c])}),i.onStateChange&&Object.keys(l).length&&i.onStateChange(Ce({type:s},l))}function xS(t,o,n,i){var s=o.props,l=o.type,c="on"+El(t)+"Change";s[c]&&i[t]!==void 0&&i[t]!==n[t]&&s[c](Ce({type:l},i))}function yS(t,o){return o.changes}var Bp=_a(function(t,o){ef(t,o)},200),_S=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?m.useLayoutEffect:m.useEffect,mf="useId"in m?function(t){var o=t.id,n=t.labelId,i=t.menuId,s=t.getItemId,l=t.toggleButtonId,c=t.inputId,d="downshift-"+m.useId();o||(o=d);var p=m.useMemo(function(){return{labelId:n||o+"-label",menuId:i||o+"-menu",getItemId:s||function(g){return o+"-item-"+g},toggleButtonId:l||o+"-toggle-button",inputId:c||o+"-input"}},[s,o,c,n,i,l]);return p}:function(t){var o=t.id,n=o===void 0?"downshift-"+Yh():o,i=t.labelId,s=t.menuId,l=t.getItemId,c=t.toggleButtonId,d=t.inputId,p=m.useMemo(function(){return{labelId:i||n+"-label",menuId:s||n+"-menu",getItemId:l||function(g){return n+"-item-"+g},toggleButtonId:c||n+"-toggle-button",inputId:d||n+"-input"}},[l,n,d,i,s,c]);return p};function Sl(t,o,n,i){var s,l;if(t===void 0){if(o===void 0)throw new Error(i);s=n[o],l=o}else l=o===void 0?n.indexOf(t):o,s=t;return[s,l]}function IS(t){return/^\S{1}$/.test(t)}function El(t){return""+t.slice(0,1).toUpperCase()+t.slice(1)}function Ia(t){var o=m.useRef(t);return o.current=t,o}function bf(t,o,n,i){var s=m.useRef(),l=m.useRef(),c=m.useCallback(function(A,F){l.current=F,A=To(A,F.props);var R=t(A,F),k=F.props.stateReducer(A,Ce({},F,{changes:R}));return k},[t]),d=m.useReducer(c,o,n),p=d[0],g=d[1],b=Ia(o),x=m.useCallback(function(A){return g(Ce({props:b.current},A))},[b]),I=l.current;return m.useEffect(function(){var A=To(s.current,I==null?void 0:I.props),F=I&&s.current&&!i(A,p);F&&wS(I,A,p),s.current=p},[p,I,i]),[p,x]}function wf(t,o,n,i){var s=bf(t,o,n,i),l=s[0],c=s[1];return[To(l,o),c]}var Mo={itemToString:function(t){return t?String(t):""},itemToKey:function(t){return t},stateReducer:yS,scrollIntoView:Zh,environment:typeof window>"u"?void 0:window};function kr(t,o,n){n===void 0&&(n=vf);var i=t["default"+El(o)];return i!==void 0?i:n[o]}function vn(t,o,n){n===void 0&&(n=vf);var i=t[o];if(i!==void 0)return i;var s=t["initial"+El(o)];return s!==void 0?s:kr(t,o,n)}function xf(t){var o=vn(t,"selectedItem"),n=vn(t,"isOpen"),i=SS(t),s=vn(t,"inputValue");return{highlightedIndex:i<0&&o&&n?t.items.findIndex(function(l){return t.itemToKey(l)===t.itemToKey(o)}):i,isOpen:n,selectedItem:o,inputValue:s}}function mn(t,o,n){var i=t.items,s=t.initialHighlightedIndex,l=t.defaultHighlightedIndex,c=t.isItemDisabled,d=t.itemToKey,p=o.selectedItem,g=o.highlightedIndex;return i.length===0?-1:s!==void 0&&g===s&&!c(i[s],s)?s:l!==void 0&&!c(i[l],l)?l:p?i.findIndex(function(b){return d(p)===d(b)}):n<0&&!c(i[i.length-1],i.length-1)?i.length-1:n>0&&!c(i[0],0)?0:-1}function yf(t,o,n){var i=m.useRef({isMouseDown:!1,isTouchMove:!1,isTouchEnd:!1}),s=m.useCallback(function(){return n.map(function(l){return l.current})},[n]);return m.useEffect(function(){if(!t)return At;function l(){i.current.isTouchEnd=!1,i.current.isMouseDown=!0}function c(b){i.current.isMouseDown=!1,ha(b.target,s(),t)||o()}function d(){i.current.isTouchEnd=!1,i.current.isTouchMove=!1}function p(){i.current.isTouchMove=!0}function g(b){i.current.isTouchEnd=!0,!i.current.isTouchMove&&!ha(b.target,s(),t,!1)&&o()}return t.addEventListener("mousedown",l),t.addEventListener("mouseup",c),t.addEventListener("touchstart",d),t.addEventListener("touchmove",p),t.addEventListener("touchend",g),function(){t.removeEventListener("mousedown",l),t.removeEventListener("mouseup",c),t.removeEventListener("touchstart",d),t.removeEventListener("touchmove",p),t.removeEventListener("touchend",g)}},[t,s,o]),i.current}var Sa=function(){return At};process.env.NODE_ENV!=="production"&&(Sa=function(){for(var t=arguments.length,o=new Array(t),n=0;n<t;n++)o[n]=arguments[n];var i=m.useRef(o.reduce(function(l,c){return l[c]={},l},{}));m.useEffect(function(){Object.keys(i.current).forEach(function(l){var c=i.current[l];if(!Object.keys(c).length){console.error("downshift: You forgot to call the "+l+" getter function on your component / element.");return}var d=c.suppressRefError,p=c.refKey,g=c.elementRef;d||g!=null&&g.current||console.error('downshift: The ref prop "'+p+'" from '+l+" was not applied correctly on your element.")})},[]);var s=m.useCallback(function(l,c,d,p){i.current[l]={suppressRefError:c,refKey:d,elementRef:p}},[]);return s});function kl(t,o,n,i){i===void 0&&(i={});var s=i.document,l=Ho();m.useEffect(function(){if(!(!t||l||!s)){var c=t(o);Bp(c,s)}},n),m.useEffect(function(){return function(){Bp.cancel(),uS(s)}},[s])}function _f(t){var o=t.highlightedIndex,n=t.isOpen,i=t.itemRefs,s=t.getItemNodeFromIndex,l=t.menuElement,c=t.scrollIntoView,d=m.useRef(!0);return _S(function(){o<0||!n||!Object.keys(i.current).length||(d.current===!1?d.current=!0:c(s(o),l))},[o]),d}var Ea=At;process.env.NODE_ENV!=="production"&&(Ea=function(t){var o=t.props,n=t.state,i=m.useRef(o),s=Ho();m.useEffect(function(){s||(Il(n,i.current,o),i.current=o)},[n,o,s])});function fa(t,o,n){var i;n===void 0&&(n=!0);var s=((i=t.items)==null?void 0:i.length)&&o>=0;return Ce({isOpen:!1,highlightedIndex:-1},s&&Ce({selectedItem:t.items[o],isOpen:kr(t,"isOpen"),highlightedIndex:kr(t,"highlightedIndex")},n&&{inputValue:t.itemToString(t.items[o])}))}function If(t,o){return t.isOpen===o.isOpen&&t.inputValue===o.inputValue&&t.highlightedIndex===o.highlightedIndex&&t.selectedItem===o.selectedItem}function Ho(){var t=m.useRef(!0);return m.useEffect(function(){return t.current=!1,function(){t.current=!0}},[]),t.current}function ga(t){var o=kr(t,"highlightedIndex");return o>-1&&t.isItemDisabled(t.items[o],o)?-1:o}function SS(t){var o=vn(t,"highlightedIndex");return o>-1&&t.isItemDisabled(t.items[o],o)?-1:o}var oa={environment:se.shape({addEventListener:se.func.isRequired,removeEventListener:se.func.isRequired,document:se.shape({createElement:se.func.isRequired,getElementById:se.func.isRequired,activeElement:se.any.isRequired,body:se.any.isRequired}).isRequired,Node:se.func.isRequired}),itemToString:se.func,itemToKey:se.func,stateReducer:se.func},Sf=Ce({},oa,{getA11yStatusMessage:se.func,highlightedIndex:se.number,defaultHighlightedIndex:se.number,initialHighlightedIndex:se.number,isOpen:se.bool,defaultIsOpen:se.bool,initialIsOpen:se.bool,selectedItem:se.any,initialSelectedItem:se.any,defaultSelectedItem:se.any,id:se.string,labelId:se.string,menuId:se.string,getItemId:se.func,toggleButtonId:se.string,onSelectedItemChange:se.func,onHighlightedIndexChange:se.func,onStateChange:se.func,onIsOpenChange:se.func,scrollIntoView:se.func});function Ef(t,o,n){var i=o.type,s=o.props,l;switch(i){case n.ItemMouseMove:l={highlightedIndex:o.disabled?-1:o.index};break;case n.MenuMouseLeave:l={highlightedIndex:-1};break;case n.ToggleButtonClick:case n.FunctionToggleMenu:l={isOpen:!t.isOpen,highlightedIndex:t.isOpen?-1:mn(s,t,0)};break;case n.FunctionOpenMenu:l={isOpen:!0,highlightedIndex:mn(s,t,0)};break;case n.FunctionCloseMenu:l={isOpen:!1};break;case n.FunctionSetHighlightedIndex:l={highlightedIndex:s.isItemDisabled(s.items[o.highlightedIndex],o.highlightedIndex)?-1:o.highlightedIndex};break;case n.FunctionSetInputValue:l={inputValue:o.inputValue};break;case n.FunctionReset:l={highlightedIndex:ga(s),isOpen:kr(s,"isOpen"),selectedItem:kr(s,"selectedItem"),inputValue:kr(s,"inputValue")};break;default:throw new Error("Reducer called without proper action type.")}return Ce({},t,l)}function ES(t){for(var o=t.keysSoFar,n=t.highlightedIndex,i=t.items,s=t.itemToString,l=t.isItemDisabled,c=o.toLowerCase(),d=0;d<i.length;d++){var p=(d+n+(o.length<2?1:0))%i.length,g=i[p];if(g!==void 0&&s(g).toLowerCase().startsWith(c)&&!l(g,p))return p}return n}var kS=$n($n({},Sf),{items:se.array.isRequired,isItemDisabled:se.func}),OS=$n($n({},Mo),{isItemDisabled:function(){return!1}}),kf=At;process.env.NODE_ENV!=="production"&&(kf=function(t,o){se.checkPropTypes(kS,t,"prop",o.name)});var ia=process.env.NODE_ENV!=="production"?"__togglebutton_click__":0,Ol=process.env.NODE_ENV!=="production"?"__togglebutton_keydown_arrow_down__":1,Cl=process.env.NODE_ENV!=="production"?"__togglebutton_keydown_arrow_up__":2,va=process.env.NODE_ENV!=="production"?"__togglebutton_keydown_character__":3,Nl=process.env.NODE_ENV!=="production"?"__togglebutton_keydown_escape__":4,Ml=process.env.NODE_ENV!=="production"?"__togglebutton_keydown_home__":5,Rl=process.env.NODE_ENV!=="production"?"__togglebutton_keydown_end__":6,zl=process.env.NODE_ENV!=="production"?"__togglebutton_keydown_enter__":7,Dl=process.env.NODE_ENV!=="production"?"__togglebutton_keydown_space_button__":8,Al=process.env.NODE_ENV!=="production"?"__togglebutton_keydown_page_up__":9,Tl=process.env.NODE_ENV!=="production"?"__togglebutton_keydown_page_down__":10,ma=process.env.NODE_ENV!=="production"?"__togglebutton_blur__":11,Of=process.env.NODE_ENV!=="production"?"__menu_mouse_leave__":12,Cf=process.env.NODE_ENV!=="production"?"__item_mouse_move__":13,Pl=process.env.NODE_ENV!=="production"?"__item_click__":14,Nf=process.env.NODE_ENV!=="production"?"__function_toggle_menu__":15,Mf=process.env.NODE_ENV!=="production"?"__function_open_menu__":16,Rf=process.env.NODE_ENV!=="production"?"__function_close_menu__":17,zf=process.env.NODE_ENV!=="production"?"__function_set_highlighted_index__":18,jl=process.env.NODE_ENV!=="production"?"__function_select_item__":19,fl=process.env.NODE_ENV!=="production"?"__function_set_input_value__":20,Df=process.env.NODE_ENV!=="production"?"__function_reset__":21,Af=Object.freeze({__proto__:null,FunctionCloseMenu:Rf,FunctionOpenMenu:Mf,FunctionReset:Df,FunctionSelectItem:jl,FunctionSetHighlightedIndex:zf,FunctionSetInputValue:fl,FunctionToggleMenu:Nf,ItemClick:Pl,ItemMouseMove:Cf,MenuMouseLeave:Of,ToggleButtonBlur:ma,ToggleButtonClick:ia,ToggleButtonKeyDownArrowDown:Ol,ToggleButtonKeyDownArrowUp:Cl,ToggleButtonKeyDownCharacter:va,ToggleButtonKeyDownEnd:Rl,ToggleButtonKeyDownEnter:zl,ToggleButtonKeyDownEscape:Nl,ToggleButtonKeyDownHome:Ml,ToggleButtonKeyDownPageDown:Tl,ToggleButtonKeyDownPageUp:Al,ToggleButtonKeyDownSpaceButton:Dl});function CS(t,o){var n,i=o.type,s=o.props,l=o.altKey,c;switch(i){case Pl:c={isOpen:kr(s,"isOpen"),highlightedIndex:ga(s),selectedItem:s.items[o.index]};break;case va:{var d=o.key,p=""+t.inputValue+d,g=!t.isOpen&&t.selectedItem?s.items.findIndex(function(A){return s.itemToKey(A)===s.itemToKey(t.selectedItem)}):t.highlightedIndex,b=ES({keysSoFar:p,highlightedIndex:g,items:s.items,itemToString:s.itemToString,isItemDisabled:s.isItemDisabled});c={inputValue:p,highlightedIndex:b,isOpen:!0}}break;case Ol:{var x=t.isOpen?wr(t.highlightedIndex,1,s.items,s.isItemDisabled):l&&t.selectedItem==null?-1:mn(s,t,1);c={highlightedIndex:x,isOpen:!0}}break;case Cl:if(t.isOpen&&l)c=fa(s,t.highlightedIndex,!1);else{var I=t.isOpen?wr(t.highlightedIndex,-1,s.items,s.isItemDisabled):mn(s,t,-1);c={highlightedIndex:I,isOpen:!0}}break;case zl:case Dl:c=fa(s,t.highlightedIndex,!1);break;case Ml:c={highlightedIndex:en(0,!1,s.items,s.isItemDisabled),isOpen:!0};break;case Rl:c={highlightedIndex:en(s.items.length-1,!0,s.items,s.isItemDisabled),isOpen:!0};break;case Al:c={highlightedIndex:wr(t.highlightedIndex,-10,s.items,s.isItemDisabled)};break;case Tl:c={highlightedIndex:wr(t.highlightedIndex,10,s.items,s.isItemDisabled)};break;case Nl:c={isOpen:!1,highlightedIndex:-1};break;case ma:c=Ce({isOpen:!1,highlightedIndex:-1},t.highlightedIndex>=0&&((n=s.items)==null?void 0:n.length)&&{selectedItem:s.items[t.highlightedIndex]});break;case jl:c={selectedItem:o.selectedItem};break;default:return Ef(t,o,Af)}return Ce({},t,c)}var NS=["onClick"],MS=["onMouseLeave","refKey","ref"],RS=["onBlur","onClick","onPress","onKeyDown","refKey","ref"],zS=["item","index","onMouseMove","onClick","onMouseDown","onPress","refKey","disabled","ref"];Pr.stateChangeTypes=Af;function Pr(t){t===void 0&&(t={}),kf(t,Pr);var o=Ce({},OS,t),n=o.scrollIntoView,i=o.environment,s=o.getA11yStatusMessage,l=wf(CS,o,xf,If),c=l[0],d=l[1],p=c.isOpen,g=c.highlightedIndex,b=c.selectedItem,x=c.inputValue,I=m.useRef(null),A=m.useRef(null),F=m.useRef({}),R=m.useRef(null),k=mf(o),L=Ia({state:c,props:o}),y=m.useCallback(function(E){return F.current[k.getItemId(E)]},[k]);kl(s,c,[p,g,b,x],i);var N=_f({menuElement:A.current,highlightedIndex:g,isOpen:p,itemRefs:F,scrollIntoView:n,getItemNodeFromIndex:y});m.useEffect(function(){return R.current=_a(function(E){E({type:fl,inputValue:""})},500),function(){R.current.cancel()}},[]),m.useEffect(function(){x&&R.current(d)},[d,x]),Ea({props:o,state:c}),m.useEffect(function(){var E=vn(o,"isOpen");E&&I.current&&I.current.focus()},[]);var C=m.useCallback(function(){L.current.state.isOpen&&d({type:ma})},[d,L]),S=m.useMemo(function(){return[A,I]},[]),P=yf(i,C,S),W=Sa("getMenuProps","getToggleButtonProps");m.useEffect(function(){p||(F.current={})},[p]);var V=m.useMemo(function(){return{ArrowDown:function(E){E.preventDefault(),d({type:Ol,altKey:E.altKey})},ArrowUp:function(E){E.preventDefault(),d({type:Cl,altKey:E.altKey})},Home:function(E){E.preventDefault(),d({type:Ml})},End:function(E){E.preventDefault(),d({type:Rl})},Escape:function(){L.current.state.isOpen&&d({type:Nl})},Enter:function(E){E.preventDefault(),d({type:L.current.state.isOpen?zl:ia})},PageUp:function(E){L.current.state.isOpen&&(E.preventDefault(),d({type:Al}))},PageDown:function(E){L.current.state.isOpen&&(E.preventDefault(),d({type:Tl}))}," ":function(E){E.preventDefault();var M=L.current.state;if(!M.isOpen){d({type:ia});return}M.inputValue?d({type:va,key:" "}):d({type:Dl})}}},[d,L]),q=m.useCallback(function(){d({type:Nf})},[d]),G=m.useCallback(function(){d({type:Rf})},[d]),te=m.useCallback(function(){d({type:Mf})},[d]),pe=m.useCallback(function(E){d({type:zf,highlightedIndex:E})},[d]),ye=m.useCallback(function(E){d({type:jl,selectedItem:E})},[d]),ce=m.useCallback(function(){d({type:Df})},[d]),ie=m.useCallback(function(E){d({type:fl,inputValue:E})},[d]),ae=m.useCallback(function(E){var M=E===void 0?{}:E,T=M.onClick,K=Tt(M,NS),j=function(){var X;(X=I.current)==null||X.focus()};return Ce({id:k.labelId,htmlFor:k.toggleButtonId,onClick:Ue(T,j)},K)},[k]),xe=m.useCallback(function(E,M){var T,K=E===void 0?{}:E,j=K.onMouseLeave,X=K.refKey,$=X===void 0?"ref":X,H=K.ref,re=Tt(K,MS),he=M===void 0?{}:M,ue=he.suppressRefError,_e=ue===void 0?!1:ue,Q=function(){d({type:Of})};return W("getMenuProps",_e,$,A),Ce((T={},T[$]=br(H,function(be){A.current=be}),T.id=k.menuId,T.role="listbox",T["aria-labelledby"]=re&&re["aria-label"]?void 0:""+k.labelId,T.onMouseLeave=Ue(j,Q),T),re)},[d,W,k]),ne=m.useCallback(function(E,M){var T,K=E===void 0?{}:E,j=K.onBlur,X=K.onClick;K.onPress;var $=K.onKeyDown,H=K.refKey,re=H===void 0?"ref":H,he=K.ref,ue=Tt(K,RS),_e=M===void 0?{}:M,Q=_e.suppressRefError,be=Q===void 0?!1:Q,le=L.current.state,Me=function(){d({type:ia})},Ve=function(){le.isOpen&&!P.isMouseDown&&d({type:ma})},lt=function(me){var Se=qn(me);Se&&V[Se]?V[Se](me):IS(Se)&&d({type:va,key:Se})},ee=Ce((T={},T[re]=br(he,function(me){I.current=me}),T["aria-activedescendant"]=le.isOpen&&le.highlightedIndex>-1?k.getItemId(le.highlightedIndex):"",T["aria-controls"]=k.menuId,T["aria-expanded"]=L.current.state.isOpen,T["aria-haspopup"]="listbox",T["aria-labelledby"]=ue&&ue["aria-label"]?void 0:""+k.labelId,T.id=k.toggleButtonId,T.role="combobox",T.tabIndex=0,T.onBlur=Ue(j,Ve),T),ue);return ue.disabled||(ee.onClick=Ue(X,Me),ee.onKeyDown=Ue($,lt)),W("getToggleButtonProps",be,re,I),ee},[d,k,L,P,W,V]),Ie=m.useCallback(function(E){var M,T=E===void 0?{}:E,K=T.item,j=T.index,X=T.onMouseMove,$=T.onClick,H=T.onMouseDown;T.onPress;var re=T.refKey,he=re===void 0?"ref":re,ue=T.disabled,_e=T.ref,Q=Tt(T,zS);ue!==void 0&&console.warn('Passing "disabled" as an argument to getItemProps is not supported anymore. Please use the isItemDisabled prop from useSelect.');var be=L.current,le=be.state,Me=be.props,Ve=Sl(K,j,Me.items,"Pass either item or index to getItemProps!"),lt=Ve[0],ee=Ve[1],me=Me.isItemDisabled(lt,ee),Se=function(){P.isTouchEnd||ee===le.highlightedIndex||(N.current=!1,d({type:Cf,index:ee,disabled:me}))},Te=function(){d({type:Pl,index:ee})},Be=function(ft){return ft.preventDefault()},$e=Ce((M={},M[he]=br(_e,function(ft){ft&&(F.current[k.getItemId(ee)]=ft)}),M["aria-disabled"]=me,M["aria-selected"]=lt===le.selectedItem,M.id=k.getItemId(ee),M.role="option",M),Q);return me||($e.onClick=Ue($,Te)),$e.onMouseMove=Ue(X,Se),$e.onMouseDown=Ue(H,Be),$e},[L,k,P,N,d]);return{getToggleButtonProps:ne,getLabelProps:ae,getMenuProps:xe,getItemProps:Ie,toggleMenu:q,openMenu:te,closeMenu:G,setHighlightedIndex:pe,selectItem:ye,reset:ce,setInputValue:ie,highlightedIndex:g,isOpen:p,selectedItem:b,inputValue:x}}var Ll=process.env.NODE_ENV!=="production"?"__input_keydown_arrow_down__":0,Vl=process.env.NODE_ENV!=="production"?"__input_keydown_arrow_up__":1,Bl=process.env.NODE_ENV!=="production"?"__input_keydown_escape__":2,Fl=process.env.NODE_ENV!=="production"?"__input_keydown_home__":3,Hl=process.env.NODE_ENV!=="production"?"__input_keydown_end__":4,Wl=process.env.NODE_ENV!=="production"?"__input_keydown_page_up__":5,$l=process.env.NODE_ENV!=="production"?"__input_keydown_page_down__":6,ql=process.env.NODE_ENV!=="production"?"__input_keydown_enter__":7,Ul=process.env.NODE_ENV!=="production"?"__input_change__":8,ba=process.env.NODE_ENV!=="production"?"__input_blur__":9,Kl=process.env.NODE_ENV!=="production"?"__input_click__":10,Tf=process.env.NODE_ENV!=="production"?"__menu_mouse_leave__":11,Pf=process.env.NODE_ENV!=="production"?"__item_mouse_move__":12,Gl=process.env.NODE_ENV!=="production"?"__item_click__":13,jf=process.env.NODE_ENV!=="production"?"__togglebutton_click__":14,Lf=process.env.NODE_ENV!=="production"?"__function_toggle_menu__":15,Vf=process.env.NODE_ENV!=="production"?"__function_open_menu__":16,Bf=process.env.NODE_ENV!=="production"?"__function_close_menu__":17,Ff=process.env.NODE_ENV!=="production"?"__function_set_highlighted_index__":18,Zl=process.env.NODE_ENV!=="production"?"__function_select_item__":19,Hf=process.env.NODE_ENV!=="production"?"__function_set_input_value__":20,Wf=process.env.NODE_ENV!=="production"?"__function_reset__":21,Yl=process.env.NODE_ENV!=="production"?"__controlled_prop_updated_selected_item__":22,$f=Object.freeze({__proto__:null,ControlledPropUpdatedSelectedItem:Yl,FunctionCloseMenu:Bf,FunctionOpenMenu:Vf,FunctionReset:Wf,FunctionSelectItem:Zl,FunctionSetHighlightedIndex:Ff,FunctionSetInputValue:Hf,FunctionToggleMenu:Lf,InputBlur:ba,InputChange:Ul,InputClick:Kl,InputKeyDownArrowDown:Ll,InputKeyDownArrowUp:Vl,InputKeyDownEnd:Hl,InputKeyDownEnter:ql,InputKeyDownEscape:Bl,InputKeyDownHome:Fl,InputKeyDownPageDown:$l,InputKeyDownPageUp:Wl,ItemClick:Gl,ItemMouseMove:Pf,MenuMouseLeave:Tf,ToggleButtonClick:jf});function DS(t){var o=xf(t),n=o.selectedItem,i=o.inputValue;return i===""&&n&&t.defaultInputValue===void 0&&t.initialInputValue===void 0&&t.inputValue===void 0&&(i=t.itemToString(n)),Ce({},o,{inputValue:i})}var AS=Ce({},Sf,{items:se.array.isRequired,isItemDisabled:se.func,inputValue:se.string,defaultInputValue:se.string,initialInputValue:se.string,inputId:se.string,onInputValueChange:se.func});function TS(t,o,n,i){var s=m.useRef(),l=bf(t,o,n,i),c=l[0],d=l[1],p=Ho();return m.useEffect(function(){if(pa(o,"selectedItem")){if(!p){var g=o.itemToKey(o.selectedItem)!==o.itemToKey(s.current);g&&d({type:Yl,inputValue:o.itemToString(o.selectedItem)})}s.current=c.selectedItem===s.current?o.selectedItem:c.selectedItem}},[c.selectedItem,o.selectedItem]),[To(c,o),d]}var qf=At;process.env.NODE_ENV!=="production"&&(qf=function(t,o){se.checkPropTypes(AS,t,"prop",o.name)});var PS=Ce({},Mo,{isItemDisabled:function(){return!1}});function jS(t,o){var n,i=o.type,s=o.props,l=o.altKey,c;switch(i){case Gl:c={isOpen:kr(s,"isOpen"),highlightedIndex:ga(s),selectedItem:s.items[o.index],inputValue:s.itemToString(s.items[o.index])};break;case Ll:t.isOpen?c={highlightedIndex:wr(t.highlightedIndex,1,s.items,s.isItemDisabled,!0)}:c={highlightedIndex:l&&t.selectedItem==null?-1:mn(s,t,1),isOpen:s.items.length>=0};break;case Vl:t.isOpen?l?c=fa(s,t.highlightedIndex):c={highlightedIndex:wr(t.highlightedIndex,-1,s.items,s.isItemDisabled,!0)}:c={highlightedIndex:mn(s,t,-1),isOpen:s.items.length>=0};break;case ql:c=fa(s,t.highlightedIndex);break;case Bl:c=Ce({isOpen:!1,highlightedIndex:-1},!t.isOpen&&{selectedItem:null,inputValue:""});break;case Wl:c={highlightedIndex:wr(t.highlightedIndex,-10,s.items,s.isItemDisabled,!0)};break;case $l:c={highlightedIndex:wr(t.highlightedIndex,10,s.items,s.isItemDisabled,!0)};break;case Fl:c={highlightedIndex:en(0,!1,s.items,s.isItemDisabled)};break;case Hl:c={highlightedIndex:en(s.items.length-1,!0,s.items,s.isItemDisabled)};break;case ba:c=Ce({isOpen:!1,highlightedIndex:-1},t.highlightedIndex>=0&&((n=s.items)==null?void 0:n.length)&&o.selectItem&&{selectedItem:s.items[t.highlightedIndex],inputValue:s.itemToString(s.items[t.highlightedIndex])});break;case Ul:c={isOpen:!0,highlightedIndex:ga(s),inputValue:o.inputValue};break;case Kl:c={isOpen:!t.isOpen,highlightedIndex:t.isOpen?-1:mn(s,t,0)};break;case Zl:c={selectedItem:o.selectedItem,inputValue:s.itemToString(o.selectedItem)};break;case Yl:c={inputValue:o.inputValue};break;default:return Ef(t,o,$f)}return Ce({},t,c)}var LS=["onMouseLeave","refKey","ref"],VS=["item","index","refKey","ref","onMouseMove","onMouseDown","onClick","onPress","disabled"],BS=["onClick","onPress","refKey","ref"],FS=["onKeyDown","onChange","onInput","onBlur","onChangeText","onClick","refKey","ref"];Wt.stateChangeTypes=$f;function Wt(t){t===void 0&&(t={}),qf(t,Wt);var o=Ce({},PS,t),n=o.items,i=o.scrollIntoView,s=o.environment,l=o.getA11yStatusMessage,c=TS(jS,o,DS,If),d=c[0],p=c[1],g=d.isOpen,b=d.highlightedIndex,x=d.selectedItem,I=d.inputValue,A=m.useRef(null),F=m.useRef({}),R=m.useRef(null),k=m.useRef(null),L=Ho(),y=mf(o),N=m.useRef(),C=Ia({state:d,props:o}),S=m.useCallback(function(j){return F.current[y.getItemId(j)]},[y]);kl(l,d,[g,b,x,I],s);var P=_f({menuElement:A.current,highlightedIndex:b,isOpen:g,itemRefs:F,scrollIntoView:i,getItemNodeFromIndex:S});Ea({props:o,state:d}),m.useEffect(function(){var j=vn(o,"isOpen");j&&R.current&&R.current.focus()},[]),m.useEffect(function(){L||(N.current=n.length)});var W=m.useCallback(function(){C.current.state.isOpen&&p({type:ba})},[p,C]),V=m.useMemo(function(){return[A,k,R]},[]),q=yf(s,W,V),G=Sa("getInputProps","getMenuProps");m.useEffect(function(){g||(F.current={})},[g]),m.useEffect(function(){var j;!g||!(s!=null&&s.document)||!(R!=null&&(j=R.current)!=null&&j.focus)||s.document.activeElement!==R.current&&R.current.focus()},[g,s]);var te=m.useMemo(function(){return{ArrowDown:function(j){j.preventDefault(),p({type:Ll,altKey:j.altKey})},ArrowUp:function(j){j.preventDefault(),p({type:Vl,altKey:j.altKey})},Home:function(j){C.current.state.isOpen&&(j.preventDefault(),p({type:Fl}))},End:function(j){C.current.state.isOpen&&(j.preventDefault(),p({type:Hl}))},Escape:function(j){var X=C.current.state;(X.isOpen||X.inputValue||X.selectedItem||X.highlightedIndex>-1)&&(j.preventDefault(),p({type:Bl}))},Enter:function(j){var X=C.current.state;!X.isOpen||j.which===229||(j.preventDefault(),p({type:ql}))},PageUp:function(j){C.current.state.isOpen&&(j.preventDefault(),p({type:Wl}))},PageDown:function(j){C.current.state.isOpen&&(j.preventDefault(),p({type:$l}))}}},[p,C]),pe=m.useCallback(function(j){return Ce({id:y.labelId,htmlFor:y.inputId},j)},[y]),ye=m.useCallback(function(j,X){var $,H=j===void 0?{}:j,re=H.onMouseLeave,he=H.refKey,ue=he===void 0?"ref":he,_e=H.ref,Q=Tt(H,LS),be=X===void 0?{}:X,le=be.suppressRefError,Me=le===void 0?!1:le;return G("getMenuProps",Me,ue,A),Ce(($={},$[ue]=br(_e,function(Ve){A.current=Ve}),$.id=y.menuId,$.role="listbox",$["aria-labelledby"]=Q&&Q["aria-label"]?void 0:""+y.labelId,$.onMouseLeave=Ue(re,function(){p({type:Tf})}),$),Q)},[p,G,y]),ce=m.useCallback(function(j){var X,$,H=j===void 0?{}:j,re=H.item,he=H.index,ue=H.refKey,_e=ue===void 0?"ref":ue,Q=H.ref,be=H.onMouseMove,le=H.onMouseDown,Me=H.onClick;H.onPress;var Ve=H.disabled,lt=Tt(H,VS);Ve!==void 0&&console.warn('Passing "disabled" as an argument to getItemProps is not supported anymore. Please use the isItemDisabled prop from useCombobox.');var ee=C.current,me=ee.props,Se=ee.state,Te=Sl(re,he,me.items,"Pass either item or index to getItemProps!"),Be=Te[0],$e=Te[1],ft=me.isItemDisabled(Be,$e),_t="onClick",Qe=Me,rt=function(){q.isTouchEnd||$e===Se.highlightedIndex||(P.current=!1,p({type:Pf,index:$e,disabled:ft}))},gt=function(){p({type:Gl,index:$e})},mt=function(Pt){return Pt.preventDefault()};return Ce((X={},X[_e]=br(Q,function(Pt){Pt&&(F.current[y.getItemId($e)]=Pt)}),X["aria-disabled"]=ft,X["aria-selected"]=$e===Se.highlightedIndex,X.id=y.getItemId($e),X.role="option",X),!ft&&($={},$[_t]=Ue(Qe,gt),$),{onMouseMove:Ue(be,rt),onMouseDown:Ue(le,mt)},lt)},[p,y,C,q,P]),ie=m.useCallback(function(j){var X,$=j===void 0?{}:j,H=$.onClick;$.onPress;var re=$.refKey,he=re===void 0?"ref":re,ue=$.ref,_e=Tt($,BS),Q=C.current.state,be=function(){p({type:jf})};return Ce((X={},X[he]=br(ue,function(le){k.current=le}),X["aria-controls"]=y.menuId,X["aria-expanded"]=Q.isOpen,X.id=y.toggleButtonId,X.tabIndex=-1,X),!_e.disabled&&Ce({},{onClick:Ue(H,be)}),_e)},[p,C,y]),ae=m.useCallback(function(j,X){var $,H=j===void 0?{}:j,re=H.onKeyDown,he=H.onChange,ue=H.onInput,_e=H.onBlur;H.onChangeText;var Q=H.onClick,be=H.refKey,le=be===void 0?"ref":be,Me=H.ref,Ve=Tt(H,FS),lt=X===void 0?{}:X,ee=lt.suppressRefError,me=ee===void 0?!1:ee;G("getInputProps",me,le,R);var Se=C.current.state,Te=function(gt){var mt=qn(gt);mt&&te[mt]&&te[mt](gt)},Be=function(gt){p({type:Ul,inputValue:gt.target.value})},$e=function(gt){if(s!=null&&s.document&&Se.isOpen&&!q.isMouseDown){var mt=gt.relatedTarget===null&&s.document.activeElement!==s.document.body;p({type:ba,selectItem:!mt})}},ft=function(){p({type:Kl})},_t="onChange",Qe={};if(!Ve.disabled){var rt;Qe=(rt={},rt[_t]=Ue(he,ue,Be),rt.onKeyDown=Ue(re,Te),rt.onBlur=Ue(_e,$e),rt.onClick=Ue(Q,ft),rt)}return Ce(($={},$[le]=br(Me,function(gt){R.current=gt}),$["aria-activedescendant"]=Se.isOpen&&Se.highlightedIndex>-1?y.getItemId(Se.highlightedIndex):"",$["aria-autocomplete"]="list",$["aria-controls"]=y.menuId,$["aria-expanded"]=Se.isOpen,$["aria-labelledby"]=Ve&&Ve["aria-label"]?void 0:y.labelId,$.autoComplete="off",$.id=y.inputId,$.role="combobox",$.value=Se.inputValue,$),Qe,Ve)},[p,y,s,te,C,q,G]),xe=m.useCallback(function(){p({type:Lf})},[p]),ne=m.useCallback(function(){p({type:Bf})},[p]),Ie=m.useCallback(function(){p({type:Vf})},[p]),E=m.useCallback(function(j){p({type:Ff,highlightedIndex:j})},[p]),M=m.useCallback(function(j){p({type:Zl,selectedItem:j})},[p]),T=m.useCallback(function(j){p({type:Hf,inputValue:j})},[p]),K=m.useCallback(function(){p({type:Wf})},[p]);return{getItemProps:ce,getLabelProps:pe,getMenuProps:ye,getInputProps:ae,getToggleButtonProps:ie,toggleMenu:xe,openMenu:Ie,closeMenu:ne,setHighlightedIndex:E,setInputValue:T,selectItem:M,reset:K,highlightedIndex:b,isOpen:g,selectedItem:x,inputValue:I}}var Uf={activeIndex:-1,selectedItems:[]};function Fp(t,o){return vn(t,o,Uf)}function Hp(t,o){return kr(t,o,Uf)}function HS(t){var o=Fp(t,"activeIndex"),n=Fp(t,"selectedItems");return{activeIndex:o,selectedItems:n}}function Wp(t){if(t.shiftKey||t.metaKey||t.ctrlKey||t.altKey)return!1;var o=t.target;return!(o instanceof HTMLInputElement&&o.value!==""&&(o.selectionStart!==0||o.selectionEnd!==0))}function WS(t,o){return t.selectedItems===o.selectedItems&&t.activeIndex===o.activeIndex}var $S={stateReducer:oa.stateReducer,itemToKey:oa.itemToKey,environment:oa.environment,selectedItems:se.array,initialSelectedItems:se.array,defaultSelectedItems:se.array,getA11yStatusMessage:se.func,activeIndex:se.number,initialActiveIndex:se.number,defaultActiveIndex:se.number,onActiveIndexChange:se.func,onSelectedItemsChange:se.func,keyNavigationNext:se.string,keyNavigationPrevious:se.string},qS={itemToKey:Mo.itemToKey,stateReducer:Mo.stateReducer,environment:Mo.environment,keyNavigationNext:"ArrowRight",keyNavigationPrevious:"ArrowLeft"},Kf=At;process.env.NODE_ENV!=="production"&&(Kf=function(t,o){se.checkPropTypes($S,t,"prop",o.name)});var Xl=process.env.NODE_ENV!=="production"?"__selected_item_click__":0,Jl=process.env.NODE_ENV!=="production"?"__selected_item_keydown_delete__":1,Ql=process.env.NODE_ENV!=="production"?"__selected_item_keydown_backspace__":2,ec=process.env.NODE_ENV!=="production"?"__selected_item_keydown_navigation_next__":3,tc=process.env.NODE_ENV!=="production"?"__selected_item_keydown_navigation_previous__":4,rc=process.env.NODE_ENV!=="production"?"__dropdown_keydown_navigation_previous__":5,nc=process.env.NODE_ENV!=="production"?"__dropdown_keydown_backspace__":6,oc=process.env.NODE_ENV!=="production"?"__dropdown_click__":7,ic=process.env.NODE_ENV!=="production"?"__function_add_selected_item__":8,ac=process.env.NODE_ENV!=="production"?"__function_remove_selected_item__":9,sc=process.env.NODE_ENV!=="production"?"__function_set_selected_items__":10,lc=process.env.NODE_ENV!=="production"?"__function_set_active_index__":11,cc=process.env.NODE_ENV!=="production"?"__function_reset__":12,US=Object.freeze({__proto__:null,DropdownClick:oc,DropdownKeyDownBackspace:nc,DropdownKeyDownNavigationPrevious:rc,FunctionAddSelectedItem:ic,FunctionRemoveSelectedItem:ac,FunctionReset:cc,FunctionSetActiveIndex:lc,FunctionSetSelectedItems:sc,SelectedItemClick:Xl,SelectedItemKeyDownBackspace:Ql,SelectedItemKeyDownDelete:Jl,SelectedItemKeyDownNavigationNext:ec,SelectedItemKeyDownNavigationPrevious:tc});function KS(t,o){var n=o.type,i=o.index,s=o.props,l=o.selectedItem,c=t.activeIndex,d=t.selectedItems,p;switch(n){case Xl:p={activeIndex:i};break;case tc:p={activeIndex:c-1<0?0:c-1};break;case ec:p={activeIndex:c+1>=d.length?-1:c+1};break;case Ql:case Jl:{if(c<0)break;var g=c;d.length===1?g=-1:c===d.length-1&&(g=d.length-2),p=Ce({selectedItems:[].concat(d.slice(0,c),d.slice(c+1))},{activeIndex:g});break}case rc:p={activeIndex:d.length-1};break;case nc:p={selectedItems:d.slice(0,d.length-1)};break;case ic:p={selectedItems:[].concat(d,[l])};break;case oc:p={activeIndex:-1};break;case ac:{var b=c,x=d.findIndex(function(F){return s.itemToKey(F)===s.itemToKey(l)});if(x<0)break;d.length===1?b=-1:x===d.length-1&&(b=d.length-2),p={selectedItems:[].concat(d.slice(0,x),d.slice(x+1)),activeIndex:b};break}case sc:{var I=o.selectedItems;p={selectedItems:I};break}case lc:{var A=o.activeIndex;p={activeIndex:A};break}case cc:p={activeIndex:Hp(s,"activeIndex"),selectedItems:Hp(s,"selectedItems")};break;default:throw new Error("Reducer called without proper action type.")}return Ce({},t,p)}var GS=["refKey","ref","onClick","onKeyDown","selectedItem","index"],ZS=["refKey","ref","onKeyDown","onClick","preventKeyAction"];uc.stateChangeTypes=US;function uc(t){t===void 0&&(t={}),Kf(t,uc);var o=Ce({},qS,t),n=o.getA11yStatusMessage,i=o.environment,s=o.keyNavigationNext,l=o.keyNavigationPrevious,c=wf(KS,o,HS,WS),d=c[0],p=c[1],g=d.activeIndex,b=d.selectedItems,x=Ho(),I=m.useRef(null),A=m.useRef();A.current=[];var F=Ia({state:d,props:o});kl(n,d,[g,b],i),m.useEffect(function(){x||(g===-1&&I.current?I.current.focus():A.current[g]&&A.current[g].focus())},[g]),Ea({props:o,state:d});var R=Sa("getDropdownProps"),k=m.useMemo(function(){var q;return q={},q[l]=function(){p({type:tc})},q[s]=function(){p({type:ec})},q.Delete=function(){p({type:Jl})},q.Backspace=function(){p({type:Ql})},q},[p,s,l]),L=m.useMemo(function(){var q;return q={},q[l]=function(G){Wp(G)&&p({type:rc})},q.Backspace=function(G){Wp(G)&&p({type:nc})},q},[p,l]),y=m.useCallback(function(q){var G,te=q===void 0?{}:q,pe=te.refKey,ye=pe===void 0?"ref":pe,ce=te.ref,ie=te.onClick,ae=te.onKeyDown,xe=te.selectedItem,ne=te.index,Ie=Tt(te,GS),E=F.current.state,M=Sl(xe,ne,E.selectedItems,"Pass either item or index to getSelectedItemProps!"),T=M[1],K=T>-1&&T===E.activeIndex,j=function(){p({type:Xl,index:T})},X=function($){var H=qn($);H&&k[H]&&k[H]($)};return Ce((G={},G[ye]=br(ce,function($){$&&A.current.push($)}),G.tabIndex=K?0:-1,G.onClick=Ue(ie,j),G.onKeyDown=Ue(ae,X),G),Ie)},[p,F,k]),N=m.useCallback(function(q,G){var te,pe=q===void 0?{}:q,ye=pe.refKey,ce=ye===void 0?"ref":ye,ie=pe.ref,ae=pe.onKeyDown,xe=pe.onClick,ne=pe.preventKeyAction,Ie=ne===void 0?!1:ne,E=Tt(pe,ZS),M=G===void 0?{}:G,T=M.suppressRefError,K=T===void 0?!1:T;R("getDropdownProps",K,ce,I);var j=function($){var H=qn($);H&&L[H]&&L[H]($)},X=function(){p({type:oc})};return Ce((te={},te[ce]=br(ie,function($){$&&(I.current=$)}),te),!Ie&&{onKeyDown:Ue(ae,j),onClick:Ue(xe,X)},E)},[p,L,R]),C=m.useCallback(function(q){p({type:ic,selectedItem:q})},[p]),S=m.useCallback(function(q){p({type:ac,selectedItem:q})},[p]),P=m.useCallback(function(q){p({type:sc,selectedItems:q})},[p]),W=m.useCallback(function(q){p({type:lc,activeIndex:q})},[p]),V=m.useCallback(function(){p({type:cc})},[p]);return{getSelectedItemProps:y,getDropdownProps:N,addSelectedItem:C,removeSelectedItem:S,setSelectedItems:P,setActiveIndex:W,reset:V,selectedItems:b,activeIndex:g}}let YS=0;const XS=()=>{const t=m.useRef(null);return t.current===null&&(t.current=`select-${++YS}`),t.current},JS=t=>{const{items:o=[],isMulti:n=!1,isSearchable:i=!1,value:s,defaultValue:l,inputValue:c,onChange:d,onInputChange:p,getOptionLabel:g=ee=>(ee==null?void 0:ee.label)||"",getOptionValue:b=ee=>(ee==null?void 0:ee.value)||"",isOpen:x,onOpenChange:I,customOptionGenerator:A,disableInternalFiltering:F=!1,stateReducer:R,isDisabled:k=!1,clearSearchOnSelect:L=!1,closeMenuOnSelect:y,onSelectionComplete:N,id:C}=t,S=XS(),P=C||S,W=m.useCallback(ee=>{const me=g(ee);if(typeof me=="string")return me;if(typeof me=="number")return String(me);const Se=ee;if(typeof Se=="object"&&Se!==null){if(typeof Se.label=="string")return Se.label;if(typeof Se.name=="string")return Se.name}return String(b(ee))},[g,b]),V=ee=>ee?Array.isArray(ee)?ee:[ee]:[],q=l!==void 0?l:s!==void 0?s:null,[G,te]=m.useState(()=>V(q)),[pe,ye]=m.useState(()=>{if(c!==void 0)return c;if(i&&!n){const ee=V(q)[0];if(ee!==void 0)return W(ee)}return""}),[ce,ie]=m.useState(()=>x!==void 0?x:!1),ae=s!==void 0?V(s):G,xe=c!==void 0?c:pe,ne=x!==void 0?x:ce,Ie=m.useRef(null),E=m.useRef(null),M=m.useRef(!1);m.useEffect(()=>{const ee=me=>{const Se=me.target,Te=document.querySelectorAll(`[data-select-id="${P}"]`);M.current=Array.from(Te).some(Be=>Be.contains(Se))};return document.addEventListener("mousedown",ee,!0),()=>document.removeEventListener("mousedown",ee,!0)},[P]);const T=m.useCallback(ee=>{x===void 0&&ie(ee),I==null||I(ee)},[x,I]),K=m.useCallback(ee=>{s===void 0&&te(ee);const me=n?ee:ee[0]||null;d==null||d(me)},[s,n,d]),j=m.useCallback(ee=>{c===void 0&&ye(ee),p==null||p(ee)},[c,p]),X=uc({selectedItems:ae,onSelectedItemsChange:ee=>{const me=ee.selectedItems||[];K(me)}}),$=m.useCallback(ee=>{n&&X.removeSelectedItem(ee)},[n,X]),H=m.useCallback(ee=>{if(ee){if(n)ae.some(me=>b(me)===b(ee))?$(ee):X.addSelectedItem(ee);else{const me=ae[0];(!me||b(me)!==b(ee))&&K([ee])}N==null||N(b(ee),ee)}},[n,ae,b,$,X,K,N]);m.useEffect(()=>{if(E.current){const ee=E.current;E.current=null,H(ee)}}),m.useLayoutEffect(()=>{if(i&&ne){const ee=requestAnimationFrame(()=>{var me;(me=Ie.current)==null||me.focus()});return()=>cancelAnimationFrame(ee)}},[i,ne]),m.useEffect(()=>{if(i&&!n&&c===void 0&&!ne){const ee=ae[0],me=ee!==void 0?W(ee):"";me!==pe&&ye(me)}},[ae,ne,i,n]);const[re,he]=m.useState(xe);m.useEffect(()=>{const ee=setTimeout(()=>he(xe),120);return()=>clearTimeout(ee)},[xe]);const ue=m.useMemo(()=>A?A(xe,o):F||!i||!re?o:o.filter(ee=>W(ee).toLowerCase().includes(re.toLowerCase())),[o,xe,re,A,F,i,W]),_e={items:ue,itemToString:ee=>ee?W(ee):"",isOpen:ne,onIsOpenChange:({isOpen:ee})=>{ee!==void 0&&T(ee)},selectedItem:n?null:ae[0]||null},Q=ee=>{const me=new Map;for(const[Se,Te]of Object.entries(ee.stateChangeTypes))me.set(Te,Se);return(Se,Te)=>{const{changes:Be,type:$e}=Te,ft=y??!n,_t=[Wt.stateChangeTypes.ItemClick,Wt.stateChangeTypes.InputKeyDownEnter,Wt.stateChangeTypes.FunctionSelectItem,Pr.stateChangeTypes.ItemClick,Pr.stateChangeTypes.ToggleButtonKeyDownEnter,Pr.stateChangeTypes.ToggleButtonKeyDownSpaceButton,Pr.stateChangeTypes.FunctionSelectItem].includes($e);if(($e===Wt.stateChangeTypes.InputBlur||$e===Pr.stateChangeTypes.ToggleButtonBlur)&&typeof document<"u"){const Qe=document.activeElement,rt=document.querySelectorAll(`[data-select-id="${P}"]`),gt=!!Qe&&Array.from(rt).some(xr=>xr.contains(Qe)),mt=Qe===document.body,Pt=n&&mt&&M.current;if(gt||Pt)return{...Be,isOpen:!0}}if(_t){const Qe=Be.selectedItem||null;Qe&&(E.current=Qe);const rt={...Be};return n?(rt.selectedItem=null,rt.isOpen=!ft,rt.highlightedIndex=Se.highlightedIndex,rt.inputValue=""):Qe&&(L?rt.inputValue="":i&&(rt.inputValue=W(Qe)),y===!1&&(rt.isOpen=!0,rt.highlightedIndex=Se.highlightedIndex)),rt}return i&&!_t&&$e!==Wt.stateChangeTypes.InputChange&&($e===Wt.stateChangeTypes.ControlledPropUpdatedSelectedItem||$e===Wt.stateChangeTypes.FunctionSetInputValue||$e===Wt.stateChangeTypes.InputBlur||$e===Wt.stateChangeTypes.FunctionReset)?{...Be,inputValue:Se.inputValue}:R?R(Se,{...Te,type:me.get(Te.type)||Te.type,changes:Be}):Be}},be=i?Wt({..._e,inputValue:xe,onInputValueChange:({inputValue:ee,type:me})=>{!n&&!ee&&me===Wt.stateChangeTypes.InputChange&&K([]),j(ee||"")},stateReducer:Q(Wt),id:P}):Pr({..._e,stateReducer:Q(Pr),id:P}),le=m.useCallback(()=>{k||("toggleMenu"in be&&typeof be.toggleMenu=="function"?be.toggleMenu():T(!ne))},[be,k,T,ne]),Me=m.useCallback(()=>{k||("openMenu"in be&&typeof be.openMenu=="function"?be.openMenu():T(!0))},[be,k,T]),Ve=m.useCallback(()=>{"closeMenu"in be&&typeof be.closeMenu=="function"?be.closeMenu():T(!1)},[be,T]),lt=m.useCallback(()=>{K([]),j(""),n&&X.reset()},[K,j,n,X]);return{isOpen:be.isOpen,selectedItem:be.selectedItem,highlightedIndex:be.highlightedIndex,inputValue:xe,getToggleButtonProps:be.getToggleButtonProps,getMenuProps:be.getMenuProps,getItemProps:be.getItemProps,getInputProps:i?(ee,me)=>({..."getInputProps"in be?be.getInputProps(ee,me):{},ref:Ie,value:xe}):void 0,selectedItems:ae,filteredItems:ue,setInputValue:j,setIsOpen:T,toggleMenu:le,openMenu:Me,closeMenu:Ve,clearSelection:lt,selectItem:"selectItem"in be?be.selectItem:void 0,removeItem:$,multipleSelection:X,isMulti:n,isSearchable:i,inputRef:Ie,selectId:P}},Gf=({size:t="md",color:o="primary",isInvalid:n=!1,isDisabled:i=!1,className:s,children:l,options:c=[],value:d,defaultValue:p,onChange:g,isMulti:b,inputValue:x,onInputChange:I,isSearchable:A,isOpen:F,onOpenChange:R,customOptionGenerator:k,disableInternalFiltering:L,getOptionLabel:y=te=>typeof te=="string"||typeof te=="number"?String(te):(te==null?void 0:te.label)||(te==null?void 0:te.name)||String(te),getOptionValue:N=te=>typeof te=="string"||typeof te=="number"?String(te):(te==null?void 0:te.value)||(te==null?void 0:te.id)||(te==null?void 0:te.name)||String(te),isOptionDisabled:C=te=>(te==null?void 0:te.isDisabled)||!1,stateReducer:S,clearSearchOnSelect:P,closeMenuOnSelect:W,inputClassName:V,onSelectionComplete:q,...G})=>{const[te,pe]=m.useState(!1),[ye,ce]=m.useState(!1),ie=m.useRef(null),[ae,xe]=m.useState(!1),[ne,Ie]=m.useState("bottom"),E=m.useRef(new Set),M=m.useCallback($=>(E.current.add($),()=>E.current.delete($)),[]),T=m.useCallback(($,H)=>{q==null||q($,H),E.current.forEach(re=>re($,H))},[q]),K=m.useMemo(()=>WI(c),[c]),j=JS({items:K,value:d,defaultValue:p,onChange:g,isMulti:b,inputValue:x,onInputChange:I,isSearchable:A,isOpen:F,onOpenChange:R,getOptionLabel:y,getOptionValue:N,customOptionGenerator:k,disableInternalFiltering:L,stateReducer:S,isDisabled:i,clearSearchOnSelect:P,closeMenuOnSelect:W,onSelectionComplete:T}),X={size:t,color:n?"negative":o,isInvalid:n,isDisabled:i,hasMessage:te,setHasMessage:pe,hasGroup:ye,setHasGroup:ce,groupRef:ie,menuVisible:ae,setMenuVisible:xe,menuPlacement:ne,setMenuPlacement:Ie,downshift:j,options:c,getOptionLabel:y,getOptionValue:N,isOptionDisabled:C,inputClassName:V,registerOnSelectionComplete:M};return w.jsx($h.Provider,{value:X,children:w.jsx("div",{"data-qui":"Select","data-select-id":j.selectId,className:J(_I(),s),...G,children:l})})},QS=m.forwardRef(({className:t,children:o,isFocused:n,isDisabled:i,...s},l)=>{const{size:c,color:d,isDisabled:p,hasMessage:g,hasGroup:b,downshift:x,isInvalid:I,menuPlacement:A}=yt(),F=i??p,R=n??x.isOpen;return w.jsx("div",{ref:l,className:J(EI({size:c,color:d,isDisabled:F,isFocused:!!R,isInvalid:I&&!x.isOpen,hasMessage:g,hasGroup:b,menuPlacement:x.isOpen?A:void 0}),t),"aria-disabled":F,"aria-invalid":I,role:"combobox",tabIndex:F?-1:0,...s,children:o})}),eE=({className:t,children:o,isMulti:n})=>w.jsx("div",{className:J(kI({isMulti:n}),t),children:o}),aa=m.forwardRef(({isHidden:t,inputClassName:o,className:n,...i},s)=>{const{size:l,color:c}=yt();return t?w.jsx("input",{ref:s,type:"text",className:n,style:{position:"absolute",top:0,left:0,opacity:0,width:"100%",height:"100%",pointerEvents:"none"},tabIndex:-1,...i}):w.jsx("input",{ref:s,type:"text","data-qui":"SelectSearchInput",className:J(OI({size:l,color:c}),o,t?"":n),...i})}),tE=({className:t,children:o})=>{const{size:n,color:i}=yt();return w.jsx("div",{className:J(CI({size:n,color:i}),t),children:o})},rE=({className:t,children:o,data:n,isDisabled:i})=>{const{size:s,color:l,getOptionLabel:c}=yt();return w.jsx("div",{className:J(NI({size:s,color:l,isDisabled:i}),t),children:o||c(n)})},Zf=({className:t,children:o,data:n,isDisabled:i,isFocused:s,onRemove:l})=>{const{size:c,color:d,downshift:p,getOptionLabel:g}=yt(),b=()=>{l?l(n):p.removeItem(n)};return w.jsxs("div",{className:J(MI({size:c,color:d,isDisabled:i,isFocused:s}),t),children:[w.jsx("div",{className:RI({size:c}),children:o||g(n)}),!i&&w.jsx("div",{className:zI({size:c,color:d,isDisabled:!1}),onClick:b,children:w.jsx(Lo,{className:"w-3 h-3"})})]})},Yf=({color:t,className:o,children:n,onClick:i,isDisabled:s,...l})=>{const{size:c,color:d,isDisabled:p,downshift:g}=yt(),b=s??p,x=g.selectedItems.length>0;if(b||!x)return null;const I=A=>{A.stopPropagation(),i?i(A):g.clearSelection()};return w.jsx("div",{className:J(Uh({size:c,color:t||d,isDisabled:b}),o),onClick:I,role:"button",tabIndex:0,"aria-label":"Clear selection",...l,children:n||w.jsx(Ey,{})})},nE=({className:t,children:o,onClick:n,isDisabled:i,...s})=>{const{size:l,color:c,isDisabled:d,downshift:p}=yt(),g=i??d,b=p.inputValue.length>0&&p.isSearchable;if(g||!b)return null;const x=I=>{g||(I.preventDefault(),I.stopPropagation(),n?n(I):(p.setInputValue(""),p.clearSelection()))};return w.jsx("div",{"data-qui":"SelectIndicator",className:J(Uh({size:l,color:c,isDisabled:g}),"cursor-pointer",t),onClick:x,onMouseDown:I=>{I.preventDefault(),I.stopPropagation()},role:"button",tabIndex:-1,"aria-label":"Clear selection",...s,children:o||w.jsx(Lo,{})})},dc=m.forwardRef(({color:t,className:o,children:n,onClick:i,isDisabled:s,...l},c)=>{const{size:d,color:p,isDisabled:g,downshift:b}=yt(),x=s??g,I=b.isOpen,A=R=>{x||(R.preventDefault(),R.stopPropagation(),i?i(R):b.toggleMenu())},F=R=>{R.preventDefault(),R.stopPropagation()};return w.jsx("div",{ref:c,"data-qui":"SelectIndicator",className:J(DI({size:d,color:t||p,isDisabled:x}),"cursor-pointer",o),onClick:F,onMouseDown:A,role:"button",tabIndex:-1,"aria-label":I?"Close menu":"Open menu","aria-expanded":I,"aria-disabled":x,...l,children:n||w.jsx(ah,{className:J("transition-transform duration-200",{"rotate-180":I})})})}),oE=m.forwardRef(({className:t,children:o,placement:n,...i},s)=>{const{size:l,hasMessage:c,color:d,hasGroup:p}=yt();return w.jsx("div",{"data-qui":"SelectMenu",ref:s,className:J(AI({size:l,placement:n,hasMessage:c,color:d,hasGroup:p}),t),...i,children:o})}),iE=m.forwardRef(({className:t,children:o,maxHeight:n=300,totalHeight:i,...s},l)=>{const{size:c}=yt();return w.jsx(ml,{scrollableNodeProps:{ref:l},className:J(TI({size:c}),t),style:{maxHeight:n},...s,children:i!==void 0?w.jsx("div",{style:{height:i,position:"relative",width:"100%"},children:o}):o})}),sa=({className:t,children:o,data:n,isDisabled:i,isFocused:s,isSelected:l,innerProps:c,optionClassName:d,...p})=>{const{size:g,color:b,getOptionLabel:x}=yt();return w.jsx("div",{"data-qui":"SelectOption",className:J(PI({size:g,color:b,isDisabled:i,isFocused:s,isSelected:l}),d,t),...c,...p,children:o??x(n)})},Xf=({className:t,children:o,data:n,label:i,renderGroupHeading:s})=>{const{size:l}=yt();return w.jsxs("div",{"data-qui":"SelectOptionGroup",className:J(jI({size:l}),t),children:[w.jsx(aE,{children:s?s(n):i||n.label}),o]})},aE=({className:t,children:o})=>{const{size:n,color:i}=yt();return w.jsx("div",{className:J(LI({size:n,color:i}),t),children:o})},rl=({className:t,children:o,inputValue:n})=>{const{size:i}=yt();return w.jsx("div",{className:J(BI({size:i}),t),children:o||`No options found${n?` for "${n}"`:""}`})},Jf=m.forwardRef(({className:t,children:o,...n},i)=>{const{size:s,color:l,isDisabled:c,hasMessage:d,isInvalid:p,setHasGroup:g,groupRef:b,menuVisible:x,menuPlacement:I}=yt();return m.useEffect(()=>(g(!0),()=>{g(!1)}),[g]),w.jsx("div",{ref:Bn([i,b]),"data-qui":"SelectGroup",className:J(II({size:s,color:l,isDisabled:c,hasMessage:d,isInvalid:p,isFocused:x,menuPlacement:x?I:void 0}),t),...n,children:o})}),Qf=m.forwardRef(({isAction:t=!1,className:o,isDisabled:n=!1,style:i,children:s,...l},c)=>{const{size:d,color:p,isDisabled:g}=yt(),b=n||g,x=SI({size:d,color:p,isDisabled:b,isAction:t});return w.jsx("div",{ref:c,"data-qui":"SelectIcon",className:J(x,o),style:i,role:t||l.onClick?"button":void 0,tabIndex:(t||l.onClick)&&!b?0:void 0,"aria-disabled":b,...l,children:s})}),eg=({icon:t,usePortal:o=!1,className:n,children:i,...s})=>{const{size:l,color:c,setHasMessage:d,isInvalid:p,isDisabled:g}=yt(),b=m.useRef(null),x=m.useRef("bottom"),[I,A]=m.useState(null);m.useEffect(()=>(d(!0),()=>d(!1)),[d]),m.useEffect(()=>{if(!o||!b.current)return;const k=b.current,L=k.closest('[data-qui="Select"]'),y=L==null?void 0:L.querySelector('[data-qui="SelectGroup"]'),N=y||L;if(!N)return;const C=!!(y&&k.compareDocumentPosition(y)&Node.DOCUMENT_POSITION_FOLLOWING);x.current=C?"top":"bottom";const S=()=>{const W=N.getBoundingClientRect();A({top:C?W.top:W.bottom,left:W.left,width:W.width})};S();const P=new ResizeObserver(S);return P.observe(N),window.addEventListener("resize",S),window.addEventListener("scroll",S,!0),()=>{P.disconnect(),window.removeEventListener("resize",S),window.removeEventListener("scroll",S,!0)}},[o]);const F=x.current,R=w.jsxs("div",{role:"alert",className:J(FI({size:l,color:c,isInvalid:p,isDisabled:g,usePortal:o,portalPlacement:F}),n),...s,children:[t!==void 0&&w.jsx("div",{className:J(HI({size:l})),children:t}),w.jsx("p",{children:i})]});return o?w.jsxs(w.Fragment,{children:[w.jsx("span",{ref:b,style:{display:"none"}}),I&&Un.createPortal(w.jsx("div",{"data-qui":"SelectMessagePortal",style:{position:"fixed",top:F==="top"?void 0:I.top,bottom:F==="top"?`calc(100vh - ${I.top}px)`:void 0,left:I.left,width:I.width,zIndex:50},children:R}),document.body)]}):R},sE=({isOpen:t,usePortal:o,controlRef:n,selectId:i,children:s})=>{const[l,c]=m.useState(null);return m.useLayoutEffect(()=>{if(o&&t&&n.current){const d=()=>{var p;const g=(p=n.current)==null?void 0:p.closest('[data-qui="SelectGroup"]'),b=g||n.current;if(!b)return;const x=b.getBoundingClientRect();c(g?{top:x.top+window.scrollY+g.clientTop,left:x.left+window.scrollX+g.clientLeft,width:g.clientWidth,height:g.clientHeight}:{top:x.top+window.scrollY,left:x.left+window.scrollX,width:x.width,height:x.height})};return d(),window.addEventListener("resize",d),window.addEventListener("scroll",d,!0),()=>{window.removeEventListener("resize",d),window.removeEventListener("scroll",d,!0)}}},[t,o,n]),t?o&&l?Un.createPortal(w.jsx("div",{"data-qui":"SelectPortal","data-select-id":i,style:{position:"absolute",top:l.top,left:l.left,width:l.width,height:l.height,zIndex:50,pointerEvents:"none"},children:w.jsx("div",{style:{pointerEvents:"auto"},children:s})}),document.body):w.jsx(w.Fragment,{children:s}):null},Bn=t=>o=>{t.forEach(n=>{typeof n=="function"?n(o):n!=null&&"current"in n&&(n.current=o)})},lE=t=>{let o=0,n=window.innerHeight,i=t.parentElement;for(;i&&i!==document.body&&i!==document.documentElement;){const{overflowY:s}=window.getComputedStyle(i);if(s!=="visible"){const l=i.getBoundingClientRect();o=Math.max(o,l.top),n=Math.min(n,l.bottom)}i=i.parentElement}return{top:o,bottom:n}},tg=m.forwardRef(({placeholder:t,noOptionsMessage:o,hideNoOptions:n=!1,loadingMessage:i="Loading...",isClearable:s=!1,isSearchClearable:l=!1,isLoading:c=!1,isRequired:d=!1,hideIndicators:p=!1,hideDropdownIndicator:g=!1,searchPlacement:b="trigger",menuPlacement:x="bottom",hideSelectedOptions:I=!1,onFocus:A,onBlur:F,renderMenuHeader:R,formatOptionLabel:k,renderOption:L,optionClassName:y,renderValue:N,renderGroupHeading:C,inputRef:S,controlShouldRenderValue:P=!0,name:W,id:V,onSelectionComplete:q,"aria-label":G,"aria-labelledby":te,"aria-describedby":pe,children:ye,usePortal:ce=!1,virtualizeThreshold:ie=100,className:ae,inputClassName:xe,...ne},Ie)=>{const{size:E,isInvalid:M,isDisabled:T,hasGroup:K,downshift:j,options:X=[],getOptionLabel:$,getOptionValue:H,isOptionDisabled:re,menuPlacement:he,setMenuPlacement:ue,menuVisible:_e,setMenuVisible:Q,inputClassName:be}=yt(),le=xe||be,Me=m.useMemo(()=>{if(L)return L;if(k)return({data:Ee})=>k(Ee)},[L,k]),Ve=m.useRef(null),lt=S||Ve,ee=m.useRef(null),[me,Se]=m.useState(null),Te=m.useRef(null),{isOpen:Be,openMenu:$e,selectedItem:ft,inputValue:_t,highlightedIndex:Qe,getToggleButtonProps:rt,getMenuProps:gt,getInputProps:mt,getItemProps:Pt,isMulti:xr,isSearchable:$t,multipleSelection:Yn}=j,{getDropdownProps:Xn}=Yn;m.useLayoutEffect(()=>{if(!Be)return;if(x==="top"||x==="bottom"){ue(x);return}const Ee=ee.current;if(!Ee)return;const De=()=>{const It=Ee.getBoundingClientRect(),Ut=ce?{top:0,bottom:window.innerHeight}:lE(Ee),Kt=Ut.bottom-It.bottom,Nt=It.top-Ut.top,yr=E==="sm"?22:E==="lg"?36:28,pr=Math.min((j.filteredItems.length||1)*yr+16,300),nn=me==null?void 0:me.getBoundingClientRect().height,ao=nn&&nn>0?nn:pr,za=Kt>=ao;ue(!za&&Nt>Kt?"top":"bottom")};De(),window.addEventListener("resize",De),window.addEventListener("scroll",De,!0);const qt=me&&typeof ResizeObserver<"u"?new ResizeObserver(()=>De()):void 0;return me&&(qt==null||qt.observe(me)),()=>{window.removeEventListener("resize",De),window.removeEventListener("scroll",De,!0),qt==null||qt.disconnect()}},[Be,ue,E,j.filteredItems.length,x,ce,me]),m.useLayoutEffect(()=>{const Ee=Be&&!(n&&j.filteredItems.length===0);return Q(Ee),()=>Q(!1)},[Be,n,j.filteredItems.length,Q]);const jt=xr?j.selectedItems??[]:ft?[ft]:[],tn=jt.length>0,Jn=l&&!!_t&&!T&&!p,bn=s&&(tn||!!_t)&&!T&&!p,$o=!g&&!p,Oa=!tn&&(!$t||!_t)||!P,qo={},Qn={};Object.entries(ne).forEach(([Ee,De])=>{Ee.startsWith("data-")||Ee.startsWith("aria-")||Ee==="role"?qo[Ee]=De:Qn[Ee]=De});const eo=m.useMemo(()=>Bn([ee,Ie]),[Ie]),Uo=gt({},{suppressRefError:!0}),rn=Xn({preventKeyAction:Be}),to={ref:lt,disabled:T,required:d,name:W,id:V,"aria-label":G,"aria-labelledby":te,"aria-describedby":pe,"aria-invalid":M,onFocus:A,onBlur:F,...Qn},Ca=$t?(mt==null?void 0:mt({...to,...rn}))??to:{...to,...rn},{ref:ro,...no}=Ca,oo=m.useMemo(()=>Bn([ro]),[ro]),{ref:Ko,...wn}=Uo,Go=m.useRef(Ko);Go.current=Ko;const io=m.useCallback(Ee=>{Se(De=>De===Ee?De:Ee),Bn([Go.current])(Ee)},[]),Na=Ee=>jt.some(De=>H(De)===H(Ee)),Zo=Ee=>I?Ee.filter(De=>!Na(De)):Ee,Ma=Ee=>I?Ee.map(De=>({...De,options:Zo(De.options)})).filter(De=>De.options.length>0):Ee,Lr=dl(X)?[]:Zo(j.filteredItems),Ra={sm:22,md:28,lg:36}[E]??28,Vr=Lr.length>=ie,xn=yI({count:Vr?Lr.length:0,getScrollElement:()=>Te.current,estimateSize:()=>Ra,overscan:5});m.useEffect(()=>{Vr&&Be&&Qe>=0&&Qe<Lr.length&&xn.scrollToIndex(Qe,{align:"auto"})},[Qe,Vr,Be]);const{registerOnSelectionComplete:Yo}=yt();m.useEffect(()=>{if(q)return Yo(q)},[q,Yo]);const Xo=$t?{}:rt({disabled:T,...rn,ref:Bn([eo,rn.ref])});return w.jsxs("div",{className:J({relative:!K,"flex-1 min-w-0":K}),children:[w.jsxs(QS,{"data-qui":"SelectControl",className:ae,...$t?{ref:Bn([eo,rn.ref])}:Xo,...qo,isFocused:_e,isDisabled:T,onClick:Ee=>{Ee.defaultPrevented||($t?$e():j.toggleMenu())},children:[ye||w.jsxs(eE,{isMulti:xr,children:[xr&&P&&jt.map((Ee,De)=>w.jsx(Zf,{data:Ee,index:De,isDisabled:T,children:N?N(Ee):void 0},H(Ee))),!xr&&tn&&P&&!$t&&w.jsx("div",{className:"flex items-center gap-2",children:w.jsx(rE,{data:jt[0],isDisabled:T,children:N?N(jt[0]):$(jt[0])})}),$t&&b==="trigger"?w.jsx(aa,{ref:oo,...no,className:ae,inputClassName:le,placeholder:t}):w.jsxs(w.Fragment,{children:[w.jsx(aa,{ref:oo,...no,className:ae,inputClassName:le,isHidden:!0,readOnly:!0,value:jt.map(Ee=>H(Ee)).join(",")}),Oa&&w.jsx(tE,{children:t})]})]}),w.jsxs("div",{className:J("flex items-center size-fit gap-1",{hidden:!bn&&!$o}),children:[Jn&&w.jsx(nE,{}),bn&&w.jsx(Yf,{}),$o&&w.jsx(dc,{...$t?rt({disabled:T,"aria-label":Be?"Close menu":"Open menu"}):{}})]})]}),!Be&&w.jsx("div",{ref:Uo.ref,style:{display:"none"},"aria-hidden":"true"}),w.jsx(sE,{isOpen:Be,usePortal:ce,controlRef:ee,selectId:j.selectId,children:n&&j.filteredItems.length===0?w.jsx("div",{...wn,style:{display:"none"},"aria-hidden":"true"}):w.jsxs(oE,{ref:io,...wn,placement:he,children:[R&&R(j),$t&&b==="menu"&&w.jsx("div",{className:"p-2",children:w.jsx(aa,{ref:oo,...no,className:ae,inputClassName:le,autoFocus:!0,placeholder:t,onClick:Ee=>Ee.stopPropagation()})}),w.jsx(iE,{ref:Te,totalHeight:Vr?xn.getTotalSize():void 0,children:c?w.jsx("div",{className:VI({size:E}),children:i}):j.filteredItems.length===0?w.jsx(rl,{inputValue:_t,children:typeof o=="function"?o(_t):o}):dl(X)?(()=>{const Ee=Ma(X);return Ee.length===0?w.jsx(rl,{inputValue:_t,children:typeof o=="function"?o(_t):o}):Ee.map((De,qt)=>w.jsx(Xf,{data:De,label:De.label,options:De.options,renderGroupHeading:C,children:De.options.map(It=>{const Ut=H(It),Kt=jt.some(ao=>H(ao)===Ut),Nt=j.filteredItems.indexOf(It),yr=Qe===Nt,pr=re(It),nn=Pt({item:It,index:Nt});return w.jsx(sa,{...nn,data:It,isDisabled:pr,isFocused:yr,isSelected:Kt,optionClassName:y,children:Me?Me({data:It,isFocused:yr,isSelected:Kt,isDisabled:pr}):void 0},`${Ut}-${Nt}`)})},`${De.label}-${qt}`))})():Lr.length===0?w.jsx(rl,{inputValue:_t,children:typeof o=="function"?o(_t):o}):Vr?xn.getVirtualItems().map(Ee=>{const De=Lr[Ee.index],qt=H(De),It=jt.some(pr=>H(pr)===qt),Ut=j.filteredItems.indexOf(De),Kt=Qe===Ut,Nt=re(De),yr=Pt({item:De,index:Ut});return w.jsx("div",{"data-index":Ee.index,ref:xn.measureElement,style:{position:"absolute",top:0,left:0,width:"100%",transform:`translateY(${Ee.start}px)`},children:w.jsx(sa,{...yr,data:De,isDisabled:Nt,isFocused:Kt,isSelected:It,optionClassName:y,children:Me?Me({data:De,isFocused:Kt,isSelected:It,isDisabled:Nt}):void 0})},Ee.key)}):Lr.map(Ee=>{const De=H(Ee),qt=jt.some(yr=>H(yr)===De),It=j.filteredItems.indexOf(Ee),Ut=Qe===It,Kt=re(Ee),Nt=Pt({item:Ee,index:It});return w.jsx(sa,{...Nt,data:Ee,isDisabled:Kt,isFocused:Ut,isSelected:qt,optionClassName:y,children:Me?Me({data:Ee,isFocused:Ut,isSelected:qt,isDisabled:Kt}):void 0},`${De}-${It}`)})})]})})]})});Gf.displayName="Select.Root";Jf.displayName="Select.Group";Qf.displayName="Select.Icon";aa.displayName="Select.Input";Zf.displayName="Select.MultiValue";Yf.displayName="Select.ClearIndicator";dc.displayName="Select.DropdownIndicator";sa.displayName="Select.Option";Xf.displayName="Select.OptionGroup";eg.displayName="Select.Message";const cE=tg;cE.displayName="Select.Field";const jr={Root:Gf,Group:Jf,Icon:Qf,DropdownIndicator:dc,Message:eg,Field:tg};m.createContext(void 0);const uE=({active:t,disabled:o,error:n,isOpen:i,className:s})=>J("flex w-full items-center justify-between text-left leading-5 transition-colors duration-200",{"cursor-pointer":!o,"text-inactive-text":o,"bg-primary hover:bg-primary-hover":t&&!o,"text-negative":n&&!t&&!o,"bg-primary-hover text-body":i&&!t&&!o,"text-body":!t&&!o&&!n,"hover:bg-primary-hover hover:text-tab-active-fg":!o&&!t},s),dE=m.forwardRef(({active:t,disabled:o,error:n,isOpen:i,className:s,children:l,as:c="div",...d},p)=>{const g=uE({active:t,disabled:o,error:n,isOpen:i,className:s});return w.jsx(c,{"data-qui":"ListItem",ref:p,className:g,"aria-disabled":o,"aria-selected":t,"aria-invalid":n,"aria-expanded":i,role:d.onClick?"button":"listitem",...d,children:l})});dE.displayName="ListItem";const pE=({icon:t,label:o,path:n,settingsKey:i})=>{var c;const s=jo(),l=(c=s.getPreferences()[n])==null?void 0:c[i];return w.jsx("div",{className:"select-none space-y-4 rounded-md p-4 hover:bg-primary-hover",children:w.jsxs("div",{className:"flex items-center",children:[w.jsx("span",{className:"mr-3 flex h-6 w-6 items-center justify-center",children:m.createElement(t,{className:"w-full h-full"})}),w.jsx("div",{className:"text-sm",children:o}),w.jsx("span",{className:"ml-auto",children:w.jsx(Lh,{checked:l,onChange:d=>{s.actions.setSetting({path:n,settingsKey:i,value:d})}})})]})})};function hE(t,o,n){return o in t?Object.defineProperty(t,o,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[o]=n,t}function $p(t,o){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);o&&(i=i.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),n.push.apply(n,i)}return n}function qp(t){for(var o=1;o<arguments.length;o++){var n=arguments[o]!=null?arguments[o]:{};o%2?$p(Object(n),!0).forEach(function(i){hE(t,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):$p(Object(n)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(n,i))})}return t}function fE(t,o){if(t==null)return{};var n={},i=Object.keys(t),s,l;for(l=0;l<i.length;l++)s=i[l],!(o.indexOf(s)>=0)&&(n[s]=t[s]);return n}function gE(t,o){if(t==null)return{};var n=fE(t,o),i,s;if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(t);for(s=0;s<l.length;s++)i=l[s],!(o.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(t,i)&&(n[i]=t[i])}return n}function vE(t,o){return mE(t)||bE(t,o)||wE(t,o)||xE()}function mE(t){if(Array.isArray(t))return t}function bE(t,o){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(t)))){var n=[],i=!0,s=!1,l=void 0;try{for(var c=t[Symbol.iterator](),d;!(i=(d=c.next()).done)&&(n.push(d.value),!(o&&n.length===o));i=!0);}catch(p){s=!0,l=p}finally{try{!i&&c.return!=null&&c.return()}finally{if(s)throw l}}return n}}function wE(t,o){if(t){if(typeof t=="string")return Up(t,o);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Up(t,o)}}function Up(t,o){(o==null||o>t.length)&&(o=t.length);for(var n=0,i=new Array(o);n<o;n++)i[n]=t[n];return i}function xE(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
80
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function yE(t,o,n){return o in t?Object.defineProperty(t,o,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[o]=n,t}function Kp(t,o){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);o&&(i=i.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),n.push.apply(n,i)}return n}function Gp(t){for(var o=1;o<arguments.length;o++){var n=arguments[o]!=null?arguments[o]:{};o%2?Kp(Object(n),!0).forEach(function(i){yE(t,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Kp(Object(n)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(n,i))})}return t}function _E(){for(var t=arguments.length,o=new Array(t),n=0;n<t;n++)o[n]=arguments[n];return function(i){return o.reduceRight(function(s,l){return l(s)},i)}}function No(t){return function o(){for(var n=this,i=arguments.length,s=new Array(i),l=0;l<i;l++)s[l]=arguments[l];return s.length>=t.length?t.apply(this,s):function(){for(var c=arguments.length,d=new Array(c),p=0;p<c;p++)d[p]=arguments[p];return o.apply(n,[].concat(s,d))}}}function wa(t){return{}.toString.call(t).includes("Object")}function IE(t){return!Object.keys(t).length}function Po(t){return typeof t=="function"}function SE(t,o){return Object.prototype.hasOwnProperty.call(t,o)}function EE(t,o){return wa(o)||Qr("changeType"),Object.keys(o).some(function(n){return!SE(t,n)})&&Qr("changeField"),o}function kE(t){Po(t)||Qr("selectorType")}function OE(t){Po(t)||wa(t)||Qr("handlerType"),wa(t)&&Object.values(t).some(function(o){return!Po(o)})&&Qr("handlersType")}function CE(t){t||Qr("initialIsRequired"),wa(t)||Qr("initialType"),IE(t)&&Qr("initialContent")}function NE(t,o){throw new Error(t[o]||t.default)}var ME={initialIsRequired:"initial state is required",initialType:"initial state should be an object",initialContent:"initial state shouldn't be an empty object",handlerType:"handler should be an object or a function",handlersType:"all handlers should be a functions",selectorType:"selector should be a function",changeType:"provided value of changes should be an object",changeField:'it seams you want to change a field in the state which is not specified in the "initial" state',default:"an unknown error accured in `state-local` package"},Qr=No(NE)(ME),Xi={changes:EE,selector:kE,handler:OE,initial:CE};function RE(t){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Xi.initial(t),Xi.handler(o);var n={current:t},i=No(AE)(n,o),s=No(DE)(n),l=No(Xi.changes)(t),c=No(zE)(n);function d(){var g=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(b){return b};return Xi.selector(g),g(n.current)}function p(g){_E(i,s,l,c)(g)}return[d,p]}function zE(t,o){return Po(o)?o(t.current):o}function DE(t,o){return t.current=Gp(Gp({},t.current),o),o}function AE(t,o,n){return Po(o)?o(t.current):Object.keys(n).forEach(function(i){var s;return(s=o[i])===null||s===void 0?void 0:s.call(o,t.current[i])}),n}var TE={create:RE},PE={paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.52.2/min/vs"}};function jE(t){return function o(){for(var n=this,i=arguments.length,s=new Array(i),l=0;l<i;l++)s[l]=arguments[l];return s.length>=t.length?t.apply(this,s):function(){for(var c=arguments.length,d=new Array(c),p=0;p<c;p++)d[p]=arguments[p];return o.apply(n,[].concat(s,d))}}}function LE(t){return{}.toString.call(t).includes("Object")}function VE(t){return t||Zp("configIsRequired"),LE(t)||Zp("configType"),t.urls?(BE(),{paths:{vs:t.urls.monacoBase}}):t}function BE(){console.warn(rg.deprecation)}function FE(t,o){throw new Error(t[o]||t.default)}var rg={configIsRequired:"the configuration object is required",configType:"the configuration object should be an object",default:"an unknown error accured in `@monaco-editor/loader` package",deprecation:`Deprecation warning!
|
|
81
|
+
You are using deprecated way of configuration.
|
|
82
|
+
|
|
83
|
+
Instead of using
|
|
84
|
+
monaco.config({ urls: { monacoBase: '...' } })
|
|
85
|
+
use
|
|
86
|
+
monaco.config({ paths: { vs: '...' } })
|
|
87
|
+
|
|
88
|
+
For more please check the link https://github.com/suren-atoyan/monaco-loader#config
|
|
89
|
+
`},Zp=jE(FE)(rg),HE={config:VE},WE=function(){for(var o=arguments.length,n=new Array(o),i=0;i<o;i++)n[i]=arguments[i];return function(s){return n.reduceRight(function(l,c){return c(l)},s)}};function ng(t,o){return Object.keys(o).forEach(function(n){o[n]instanceof Object&&t[n]&&Object.assign(o[n],ng(t[n],o[n]))}),qp(qp({},t),o)}var $E={type:"cancelation",msg:"operation is manually canceled"};function nl(t){var o=!1,n=new Promise(function(i,s){t.then(function(l){return o?s($E):i(l)}),t.catch(s)});return n.cancel=function(){return o=!0},n}var qE=TE.create({config:PE,isInitialized:!1,resolve:null,reject:null,monaco:null}),og=vE(qE,2),Wo=og[0],ka=og[1];function UE(t){var o=HE.config(t),n=o.monaco,i=gE(o,["monaco"]);ka(function(s){return{config:ng(s.config,i),monaco:n}})}function KE(){var t=Wo(function(o){var n=o.monaco,i=o.isInitialized,s=o.resolve;return{monaco:n,isInitialized:i,resolve:s}});if(!t.isInitialized){if(ka({isInitialized:!0}),t.monaco)return t.resolve(t.monaco),nl(ol);if(window.monaco&&window.monaco.editor)return ig(window.monaco),t.resolve(window.monaco),nl(ol);WE(GE,YE)(XE)}return nl(ol)}function GE(t){return document.body.appendChild(t)}function ZE(t){var o=document.createElement("script");return t&&(o.src=t),o}function YE(t){var o=Wo(function(i){var s=i.config,l=i.reject;return{config:s,reject:l}}),n=ZE("".concat(o.config.paths.vs,"/loader.js"));return n.onload=function(){return t()},n.onerror=o.reject,n}function XE(){var t=Wo(function(n){var i=n.config,s=n.resolve,l=n.reject;return{config:i,resolve:s,reject:l}}),o=window.require;o.config(t.config),o(["vs/editor/editor.main"],function(n){ig(n),t.resolve(n)},function(n){t.reject(n)})}function ig(t){Wo().monaco||ka({monaco:t})}function JE(){return Wo(function(t){var o=t.monaco;return o})}var ol=new Promise(function(t,o){return ka({resolve:t,reject:o})}),xa={config:UE,init:KE,__getMonacoInstance:JE},QE={wrapper:{display:"flex",position:"relative",textAlign:"initial"},fullWidth:{width:"100%"},hide:{display:"none"}},il=QE,e2={container:{display:"flex",height:"100%",width:"100%",justifyContent:"center",alignItems:"center"}},t2=e2;function r2({children:t}){return m.createElement("div",{style:t2.container},t)}var n2=r2,o2=n2;function i2({width:t,height:o,isEditorReady:n,loading:i,_ref:s,className:l,wrapperProps:c}){return m.createElement("section",{style:{...il.wrapper,width:t,height:o},...c},!n&&m.createElement(o2,null,i),m.createElement("div",{ref:s,style:{...il.fullWidth,...!n&&il.hide},className:l}))}var a2=i2,ag=m.memo(a2);function s2(t){m.useEffect(t,[])}var pc=s2;function l2(t,o,n=!0){let i=m.useRef(!0);m.useEffect(i.current||!n?()=>{i.current=!1}:t,o)}var rr=l2;function Ro(){}function Wn(t,o,n,i){return c2(t,i)||u2(t,o,n,i)}function c2(t,o){return t.editor.getModel(sg(t,o))}function u2(t,o,n,i){return t.editor.createModel(o,n,i?sg(t,i):void 0)}function sg(t,o){return t.Uri.parse(o)}function d2({original:t,modified:o,language:n,originalLanguage:i,modifiedLanguage:s,originalModelPath:l,modifiedModelPath:c,keepCurrentOriginalModel:d=!1,keepCurrentModifiedModel:p=!1,theme:g="light",loading:b="Loading...",options:x={},height:I="100%",width:A="100%",className:F,wrapperProps:R={},beforeMount:k=Ro,onMount:L=Ro}){let[y,N]=m.useState(!1),[C,S]=m.useState(!0),P=m.useRef(null),W=m.useRef(null),V=m.useRef(null),q=m.useRef(L),G=m.useRef(k),te=m.useRef(!1);pc(()=>{let ie=xa.init();return ie.then(ae=>(W.current=ae)&&S(!1)).catch(ae=>(ae==null?void 0:ae.type)!=="cancelation"&&console.error("Monaco initialization: error:",ae)),()=>P.current?ce():ie.cancel()}),rr(()=>{if(P.current&&W.current){let ie=P.current.getOriginalEditor(),ae=Wn(W.current,t||"",i||n||"text",l||"");ae!==ie.getModel()&&ie.setModel(ae)}},[l],y),rr(()=>{if(P.current&&W.current){let ie=P.current.getModifiedEditor(),ae=Wn(W.current,o||"",s||n||"text",c||"");ae!==ie.getModel()&&ie.setModel(ae)}},[c],y),rr(()=>{let ie=P.current.getModifiedEditor();ie.getOption(W.current.editor.EditorOption.readOnly)?ie.setValue(o||""):o!==ie.getValue()&&(ie.executeEdits("",[{range:ie.getModel().getFullModelRange(),text:o||"",forceMoveMarkers:!0}]),ie.pushUndoStop())},[o],y),rr(()=>{var ie,ae;(ae=(ie=P.current)==null?void 0:ie.getModel())==null||ae.original.setValue(t||"")},[t],y),rr(()=>{let{original:ie,modified:ae}=P.current.getModel();W.current.editor.setModelLanguage(ie,i||n||"text"),W.current.editor.setModelLanguage(ae,s||n||"text")},[n,i,s],y),rr(()=>{var ie;(ie=W.current)==null||ie.editor.setTheme(g)},[g],y),rr(()=>{var ie;(ie=P.current)==null||ie.updateOptions(x)},[x],y);let pe=m.useCallback(()=>{var xe;if(!W.current)return;G.current(W.current);let ie=Wn(W.current,t||"",i||n||"text",l||""),ae=Wn(W.current,o||"",s||n||"text",c||"");(xe=P.current)==null||xe.setModel({original:ie,modified:ae})},[n,o,s,t,i,l,c]),ye=m.useCallback(()=>{var ie;!te.current&&V.current&&(P.current=W.current.editor.createDiffEditor(V.current,{automaticLayout:!0,...x}),pe(),(ie=W.current)==null||ie.editor.setTheme(g),N(!0),te.current=!0)},[x,g,pe]);m.useEffect(()=>{y&&q.current(P.current,W.current)},[y]),m.useEffect(()=>{!C&&!y&&ye()},[C,y,ye]);function ce(){var ae,xe,ne,Ie;let ie=(ae=P.current)==null?void 0:ae.getModel();d||((xe=ie==null?void 0:ie.original)==null||xe.dispose()),p||((ne=ie==null?void 0:ie.modified)==null||ne.dispose()),(Ie=P.current)==null||Ie.dispose()}return m.createElement(ag,{width:A,height:I,isEditorReady:y,loading:b,_ref:V,className:F,wrapperProps:R})}var p2=d2;m.memo(p2);function h2(){let[t,o]=m.useState(xa.__getMonacoInstance());return pc(()=>{let n;return t||(n=xa.init(),n.then(i=>{o(i)})),()=>n==null?void 0:n.cancel()}),t}var f2=h2;function g2(t){let o=m.useRef();return m.useEffect(()=>{o.current=t},[t]),o.current}var v2=g2,Ji=new Map;function m2({defaultValue:t,defaultLanguage:o,defaultPath:n,value:i,language:s,path:l,theme:c="light",line:d,loading:p="Loading...",options:g={},overrideServices:b={},saveViewState:x=!0,keepCurrentModel:I=!1,width:A="100%",height:F="100%",className:R,wrapperProps:k={},beforeMount:L=Ro,onMount:y=Ro,onChange:N,onValidate:C=Ro}){let[S,P]=m.useState(!1),[W,V]=m.useState(!0),q=m.useRef(null),G=m.useRef(null),te=m.useRef(null),pe=m.useRef(y),ye=m.useRef(L),ce=m.useRef(),ie=m.useRef(i),ae=v2(l),xe=m.useRef(!1),ne=m.useRef(!1);pc(()=>{let M=xa.init();return M.then(T=>(q.current=T)&&V(!1)).catch(T=>(T==null?void 0:T.type)!=="cancelation"&&console.error("Monaco initialization: error:",T)),()=>G.current?E():M.cancel()}),rr(()=>{var T,K,j,X;let M=Wn(q.current,t||i||"",o||s||"",l||n||"");M!==((T=G.current)==null?void 0:T.getModel())&&(x&&Ji.set(ae,(K=G.current)==null?void 0:K.saveViewState()),(j=G.current)==null||j.setModel(M),x&&((X=G.current)==null||X.restoreViewState(Ji.get(l))))},[l],S),rr(()=>{var M;(M=G.current)==null||M.updateOptions(g)},[g],S),rr(()=>{!G.current||i===void 0||(G.current.getOption(q.current.editor.EditorOption.readOnly)?G.current.setValue(i):i!==G.current.getValue()&&(ne.current=!0,G.current.executeEdits("",[{range:G.current.getModel().getFullModelRange(),text:i,forceMoveMarkers:!0}]),G.current.pushUndoStop(),ne.current=!1))},[i],S),rr(()=>{var T,K;let M=(T=G.current)==null?void 0:T.getModel();M&&s&&((K=q.current)==null||K.editor.setModelLanguage(M,s))},[s],S),rr(()=>{var M;d!==void 0&&((M=G.current)==null||M.revealLine(d))},[d],S),rr(()=>{var M;(M=q.current)==null||M.editor.setTheme(c)},[c],S);let Ie=m.useCallback(()=>{var M;if(!(!te.current||!q.current)&&!xe.current){ye.current(q.current);let T=l||n,K=Wn(q.current,i||t||"",o||s||"",T||"");G.current=(M=q.current)==null?void 0:M.editor.create(te.current,{model:K,automaticLayout:!0,...g},b),x&&G.current.restoreViewState(Ji.get(T)),q.current.editor.setTheme(c),d!==void 0&&G.current.revealLine(d),P(!0),xe.current=!0}},[t,o,n,i,s,l,g,b,x,c,d]);m.useEffect(()=>{S&&pe.current(G.current,q.current)},[S]),m.useEffect(()=>{!W&&!S&&Ie()},[W,S,Ie]),ie.current=i,m.useEffect(()=>{var M,T;S&&N&&((M=ce.current)==null||M.dispose(),ce.current=(T=G.current)==null?void 0:T.onDidChangeModelContent(K=>{ne.current||N(G.current.getValue(),K)}))},[S,N]),m.useEffect(()=>{if(S){let M=q.current.editor.onDidChangeMarkers(T=>{var j;let K=(j=G.current.getModel())==null?void 0:j.uri;if(K&&T.find(X=>X.path===K.path)){let X=q.current.editor.getModelMarkers({resource:K});C==null||C(X)}});return()=>{M==null||M.dispose()}}return()=>{}},[S,C]);function E(){var M,T;(M=ce.current)==null||M.dispose(),I?x&&Ji.set(l,G.current.saveViewState()):(T=G.current.getModel())==null||T.dispose(),G.current.dispose()}return m.createElement(ag,{width:A,height:F,isEditorReady:S,loading:p,_ref:te,className:R,wrapperProps:k})}var b2=m2;m.memo(b2);const w2=({icon:t,label:o})=>{const[n,i]=m.useState(()=>{const c=st.getStoredVSCodeTheme();return{label:c,value:c}}),s=f2(),l=c=>{if(!s)return;const d=st.resolveMonacoTheme(c);s.editor.setTheme(d)};return w.jsx("div",{className:"select-none space-y-4 rounded-md p-4 hover:bg-primary-hover",children:w.jsxs("div",{className:"flex items-center",children:[w.jsx("span",{className:"mr-3 flex h-6 w-6 items-center justify-center",children:m.createElement(t,{className:"w-full h-full"})}),w.jsx("div",{className:"text-sm",children:o}),w.jsx("span",{className:"ml-auto",children:w.jsx(jr.Root,{onChange:c=>{c&&(st.setVSCodeTheme(c.value),l(c.value),i(c))},options:st.themeKeys.map(c=>({label:c,value:c})),value:n,className:"min-w-40",children:w.jsx(jr.Group,{children:w.jsx(jr.Field,{placeholder:"Select a Theme...",usePortal:!0})})})})]})})};var al={exports:{}};/*!
|
|
80
90
|
Copyright (c) 2018 Jed Watson.
|
|
81
91
|
Licensed under the MIT License (MIT), see
|
|
82
92
|
http://jedwatson.github.io/classnames
|
|
83
|
-
*/var
|
|
93
|
+
*/var Yp;function x2(){return Yp||(Yp=1,(function(t){(function(){var o={}.hasOwnProperty;function n(){for(var l="",c=0;c<arguments.length;c++){var d=arguments[c];d&&(l=s(l,i(d)))}return l}function i(l){if(typeof l=="string"||typeof l=="number")return l;if(typeof l!="object")return"";if(Array.isArray(l))return n.apply(null,l);if(l.toString!==Object.prototype.toString&&!l.toString.toString().includes("[native code]"))return l.toString();var c="";for(var d in l)o.call(l,d)&&l[d]&&(c=s(c,d));return c}function s(l,c){return c?l?l+" "+c:l+c:l}t.exports?(n.default=n,t.exports=n):window.classNames=n})()})(al)),al.exports}var y2=x2();const Xp=gy(y2),_2=({icon:t,label:o,path:n,settingsKey:i})=>{var F;const[s,l]=m.useState(null),[c,d]=m.useState(""),p=jo(),g=p.getQodly(),b=p.getWebForms(),x=(F=p.getPreferences()[n])==null?void 0:F[i];m.useEffect(()=>{b.length||p.actions.fetchFolderContentWithoutExpanding(st.FolderRootPath.WEBFORMS)},[b.length]);const I=m.useMemo(()=>{const R=b.filter(L=>L.name.toLowerCase().includes(c.toLowerCase())).map(({name:L})=>({label:L,value:L})),k=Qi.sortBy(R,[L=>L.label.toLowerCase()]);return c&&!b.find(L=>L.name.toLowerCase()===c.toLowerCase())&&k.push({label:c,value:c,__isNew__:!0}),k},[b,c]),A=async R=>{l(null);const k=(R==null?void 0:R.value)||"";if(R!=null&&R.__isNew__){const L=p.findNodeByPath(st.FolderRootPath.WEBFORMS),y=k.trim();try{st.validateName(y)}catch(N){l({message:N.message});return}p.actions.createNewFileAndOpen({fileName:k,path:st.FolderRootPath.WEBFORMS,type:st.FileFolderType.WEBFORMS,parentNode:L,qodly:g})}p.actions.setSetting({path:n,settingsKey:i,value:k})};return w.jsx("div",{"data-cy":"settings-tooltip-behavior-cy",className:"select-none space-y-4 rounded-md p-4 hover:bg-primary-hover",children:w.jsxs("div",{className:"flex items-center",children:[w.jsx("span",{className:"mr-3 flex h-6 w-6 items-center justify-center",children:m.createElement(t,{className:"w-full h-full"})}),w.jsx("div",{className:"text-sm",children:o}),w.jsxs(jr.Root,{color:s?"negative":"primary",className:Xp("w-52 ml-auto"),options:I,value:x?{label:x,value:x}:null,onChange:A,inputValue:c,onInputChange:d,isSearchable:!0,getOptionLabel:R=>R.label,children:[s&&w.jsx(jr.Message,{children:s.message}),w.jsxs(jr.Group,{children:[w.jsx(jr.Field,{placeholder:x||"Page",renderOption:({data:R})=>w.jsxs("div",{className:"flex items-center",children:[w.jsx(ih,{className:"mr-2 h-4 w-4"}),R.__isNew__?`Create "${R.label}"`:R.label]}),hideNoOptions:!0,onBlur:()=>{l(null)},className:Xp({"placeholder:opacity-100 placeholder:text-input-text":x}),hideDropdownIndicator:!0}),w.jsx(jr.Icon,{isAction:!0,onClick:()=>{A(null),d("")},children:w.jsx(Lo,{className:"h-3 w-3"})}),w.jsx(jr.DropdownIndicator,{className:"mr-1"})]})]})]})})},I2=({icon:t,label:o,path:n,settingsKey:i})=>{var p;const s=jo(),c=(((p=s.getPreferences()[n])==null?void 0:p[i])||0)/1e3,d=g=>{const b=Math.max(1,Math.min(60,g));s.actions.setSetting({path:n,settingsKey:i,value:b*1e3})};return w.jsx("div",{className:"select-none space-y-4 rounded p-4 hover:bg-primary-hover",children:w.jsxs("div",{className:"flex items-center",children:[w.jsx("span",{className:"mr-3 flex h-6 w-6 items-center justify-center",children:m.createElement(t,{className:"w-full h-full"})}),w.jsx("div",{className:"text-sm",children:o}),w.jsx("span",{className:"relative ml-auto",children:w.jsx(ko.Root,{color:"primary",className:"w-12",children:w.jsxs(ko.Group,{children:[w.jsx(ko.Field,{value:c,onChange:g=>{const b=parseInt(g.target.value);isNaN(b)||d(b)}}),w.jsxs("div",{className:"flex flex-col",children:[w.jsx(ko.Icon,{isAction:!0,onClick:()=>d(c+1),className:"grid place-content-center m-0 p-[1px]",children:w.jsx(jy,{className:"size-2"})}),w.jsx(ko.Icon,{isAction:!0,onClick:()=>d(c-1),className:"grid place-content-center m-0 p-[1px]",children:w.jsx(ah,{className:"size-2"})})]})]})})})]})})},S2={switch:pE,"icon-select":_y,number:I2,"weform-selector":_2,"theme-select":w2},Jp=(t,o="session")=>Object.entries(t[o]).map(([n,i],s)=>{const l=S2[i.field];return m.createElement(l,{...i,key:s,settingsKey:n,path:o})}),E2=({currentTab:t})=>{const n=jo().getQodly(),i={session:{"webforms.renderer.showPopOver":{label:"Show Renderer Pop Over",icon:Bd,field:"switch"},"webforms.renderer.showUnsavedPopOver":{label:"Show Unsaved Files Pop Over",icon:Bd,field:"switch"},"webforms.tooltip.behavior":{label:"Tooltip Behavior",icon:Py,field:"icon-select",options:[{icon:Ny,value:st.ETooltipBehavior.SHOW_AFTER_TIMEOUT,tooltip:"Show after timeout"},{icon:My,value:st.ETooltipBehavior.HIDE_AFTER_TIMEOUT,tooltip:"Hide after timeout"}]},"webforms.tooltip.timeout":{label:"Tooltip timeout (in seconds)",icon:Ty,field:"number"},"studio.tips":{label:"Enable Helper Tips",icon:Fd,field:"switch"},"studio.autoReload":{label:"Enable Auto Reload",icon:zy,field:"switch"},"studio.theme":{label:"Theme",icon:Oy,field:"theme-select"},...n?{"welcometour.active":{label:"Activate Welcome Tour",icon:Fd,field:"switch"}}:{},"studio.enablePreview":{label:"Activate tabs preview mode",icon:Ay,field:"switch"}},project:{"webforms.renderer.indexPage":{label:"Start page",icon:Ry,field:"weform-selector"},"webforms.display-mode":{label:"Default Display Mode",icon:ih,field:"icon-select",options:[{icon:ky,value:st.EDisplayMode.COMPACT,tooltip:"Neutral"},{icon:Iy,value:st.EDisplayMode.AIRY,tooltip:"Airy"}]}}};return w.jsx("div",{className:"mx-auto mt-12 max-w-2xl flex-1",children:t==="session"?Jp(i,"session"):Jp(i,"project")})},lg=({defaultActiveTab:t="session"})=>{const o=t,[n,i]=m.useState(o);return w.jsx(ul,{depth:1,className:"h-full",children:w.jsxs("div",{className:"flex h-full",children:[w.jsx(ul,{depth:1,className:"w-56 border-r py-4",children:w.jsxs("ul",{className:"space-y-1 text-sm",children:[w.jsxs("li",{"data-cy":"settings-user-li-cy",onClick:()=>i("session"),className:`w-full flex cursor-pointer items-center p-2 ${n!=="session"?"text-inactive-text hover:bg-primary-hover hover:text-body":"bg-primary text-body"}`,children:[w.jsx(Ly,{className:"mr-2 h-5 w-5"})," User"]}),w.jsxs("li",{"data-cy":"settings-application-li-cy",onClick:()=>i("project"),className:`w-full flex cursor-pointer items-center p-2 ${n!=="project"?"text-inactive-text hover:bg-primary-hover hover:text-body":"bg-primary text-body"}`,children:[w.jsx(Cy,{className:"mr-2 h-5 w-5"})," Application"]})]})}),w.jsx("div",{className:"h-full w-full",children:w.jsx(E2,{currentTab:n})})]})})},k2=({defaultActiveTab:t})=>w.jsx("div",{className:"relative h-screen bg-panel-1 z-10 overflow-hidden text-body",children:w.jsx(lg,{defaultActiveTab:t})}),O2=({path:t,defaultActiveTab:o})=>{const n=oh(t);return w.jsx(eh,{adapter:n,children:w.jsx(k2,{defaultActiveTab:o})})},C2=({path:t=st.SETTINGS_TAB_PATH,initialValue:o,defaultActiveTab:n="session",webforms:i,onChange:s,onFetchFolderContentWithoutExpanding:l,onCreateNewFileAndOpen:c})=>w.jsx(nh,{tabPath:t,webforms:i,preferences:o,onChange:s,onFetchFolderContentWithoutExpanding:l,onCreateNewFileAndOpen:c,children:w.jsx(O2,{path:t,defaultActiveTab:n})});exports.SETTINGS_EDITOR_SCOPE_CLASS=py.SETTINGS_EDITOR_SCOPE_CLASS;exports.EditorStateAdapterProvider=eh;exports.ReducerAdapterProvider=nh;exports.SettingsEditor=lg;exports.Standalone=C2;exports.useReducerAdapter=oh;exports.useReduxAdapter=fy;
|
|
84
94
|
//# sourceMappingURL=index.cjs.js.map
|