intlayer-editor 5.3.2 → 5.3.4

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.
@@ -0,0 +1,327 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/angular-html-LfdN0zeE.js","assets/html-C2L_23MC.js","assets/javascript-ySlJ1b_l.js","assets/css-BPhBrDlE.js","assets/angular-ts-CKsD7JZE.js","assets/scss-C31hgJw-.js","assets/apl-BBq3IX1j.js","assets/xml-e3z08dGr.js","assets/java-xI-RfyKK.js","assets/json-BQoSv7ci.js","assets/astro-CqkE3fuf.js","assets/typescript-Dj6nwHGl.js","assets/postcss-B3ZDOciz.js","assets/blade-a8OxSdnT.js","assets/sql-COK4E0Yg.js","assets/bsl-Dgyn0ogV.js","assets/sdbl-BLhTXw86.js","assets/cairo--RitsXJZ.js","assets/python-DhUJRlN_.js","assets/cobol-PTqiYgYu.js","assets/coffee-dyiR41kL.js","assets/cpp-BksuvNSY.js","assets/regexp-DWJ3fJO_.js","assets/glsl-DBO2IWDn.js","assets/c-C3t2pwGQ.js","assets/crystal-DtDmRg-F.js","assets/shellscript-atvbtKCR.js","assets/edge-D5gP-w-T.js","assets/html-derivative-CSfWNPLT.js","assets/elixir-CLiX3zqd.js","assets/elm-CmHSxxaM.js","assets/erb-BYTLMnw6.js","assets/ruby-DeZ3UC14.js","assets/haml-B2EZWmdv.js","assets/graphql-cDcHW_If.js","assets/jsx-BAng5TT0.js","assets/tsx-B6W0miNI.js","assets/lua-CvWAzNxB.js","assets/yaml-CVw76BM1.js","assets/fortran-fixed-form-TqA4NnZg.js","assets/fortran-free-form-DKXYxT9g.js","assets/fsharp-XplgxFYe.js","assets/markdown-UIAJJxZW.js","assets/gdresource-BHYsBjWJ.js","assets/gdshader-SKMF96pI.js","assets/gdscript-DfxzS6Rs.js","assets/git-commit-i4q6IMui.js","assets/diff-BgYniUM_.js","assets/git-rebase-B-v9cOL2.js","assets/glimmer-js-D-cwc0-E.js","assets/glimmer-ts-pgjy16dm.js","assets/hack-D1yCygmZ.js","assets/handlebars-BQGss363.js","assets/http-FRrOvY1W.js","assets/hxml-TIA70rKU.js","assets/haxe-C5wWYbrZ.js","assets/imba-bv_oIlVt.js","assets/jinja-DGy0s7-h.js","assets/jison-BqZprYcd.js","assets/julia-BBuGR-5E.js","assets/r-CwjWoCRV.js","assets/latex-C-cWTeAZ.js","assets/tex-rYs2v40G.js","assets/liquid-D3W5UaiH.js","assets/marko-z0MBrx5-.js","assets/less-BfCpw3nA.js","assets/mdc-DB_EDNY_.js","assets/nginx-D_VnBJ67.js","assets/nim-ZlGxZxc3.js","assets/perl-CHQXSrWU.js","assets/php-B5ebYQev.js","assets/pug-CM9l7STV.js","assets/qml-D8XfuvdV.js","assets/razor-CNLDkMZG.js","assets/csharp-D9R-vmeu.js","assets/rst-4NLicBqY.js","assets/cmake-DbXoA79R.js","assets/sas-BmTFh92c.js","assets/shaderlab-B7qAK45m.js","assets/hlsl-ifBTmRxC.js","assets/shellsession-C_rIy8kc.js","assets/soy-C-lX7w71.js","assets/sparql-bYkjHRlG.js","assets/turtle-BMR_PYu6.js","assets/stata-DorPZHa4.js","assets/svelte-MSaWC3Je.js","assets/templ-dwX3ZSMB.js","assets/go-B1SYOhNW.js","assets/ts-tags-CipyTH0X.js","assets/twig-NC5TFiHP.js","assets/vue-BuYVFjOK.js","assets/vue-html-xdeiXROB.js","assets/xsl-Dd0NUgwM.js"])))=>i.map(i=>d[i]);
2
+ var zL=Object.defineProperty;var KL=(e,t,n)=>t in e?zL(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var oe=(e,t,n)=>KL(e,typeof t!="symbol"?t+"":t,n);function $L(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const u in r)if(u!=="default"&&!(u in e)){const o=Object.getOwnPropertyDescriptor(r,u);o&&Object.defineProperty(e,u,o.get?o:{enumerable:!0,get:()=>r[u]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const u of document.querySelectorAll('link[rel="modulepreload"]'))r(u);new MutationObserver(u=>{for(const o of u)if(o.type==="childList")for(const l of o.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&r(l)}).observe(document,{childList:!0,subtree:!0});function n(u){const o={};return u.integrity&&(o.integrity=u.integrity),u.referrerPolicy&&(o.referrerPolicy=u.referrerPolicy),u.crossOrigin==="use-credentials"?o.credentials="include":u.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(u){if(u.ep)return;u.ep=!0;const o=n(u);fetch(u.href,o)}})();function lh(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var op={exports:{}},bl={};/**
3
+ * @license React
4
+ * react-jsx-runtime.production.js
5
+ *
6
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
7
+ *
8
+ * This source code is licensed under the MIT license found in the
9
+ * LICENSE file in the root directory of this source tree.
10
+ */var Ly;function YL(){if(Ly)return bl;Ly=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,u,o){var l=null;if(o!==void 0&&(l=""+o),u.key!==void 0&&(l=""+u.key),"key"in u){o={};for(var c in u)c!=="key"&&(o[c]=u[c])}else o=u;return u=o.ref,{$$typeof:e,type:r,key:l,ref:u!==void 0?u:null,props:o}}return bl.Fragment=t,bl.jsx=n,bl.jsxs=n,bl}var wy;function ZL(){return wy||(wy=1,op.exports=YL()),op.exports}var N=ZL(),lp={exports:{}},Xe={};/**
11
+ * @license React
12
+ * react.production.js
13
+ *
14
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
15
+ *
16
+ * This source code is licensed under the MIT license found in the
17
+ * LICENSE file in the root directory of this source tree.
18
+ */var My;function WL(){if(My)return Xe;My=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),o=Symbol.for("react.consumer"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),h=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),E=Symbol.iterator;function g(P){return P===null||typeof P!="object"?null:(P=E&&P[E]||P["@@iterator"],typeof P=="function"?P:null)}var _={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},S=Object.assign,C={};function v(P,W,j){this.props=P,this.context=W,this.refs=C,this.updater=j||_}v.prototype.isReactComponent={},v.prototype.setState=function(P,W){if(typeof P!="object"&&typeof P!="function"&&P!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,P,W,"setState")},v.prototype.forceUpdate=function(P){this.updater.enqueueForceUpdate(this,P,"forceUpdate")};function R(){}R.prototype=v.prototype;function D(P,W,j){this.props=P,this.context=W,this.refs=C,this.updater=j||_}var b=D.prototype=new R;b.constructor=D,S(b,v.prototype),b.isPureReactComponent=!0;var L=Array.isArray,x={H:null,A:null,T:null,S:null},B=Object.prototype.hasOwnProperty;function O(P,W,j,re,ne,de){return j=de.ref,{$$typeof:e,type:P,key:W,ref:j!==void 0?j:null,props:de}}function H(P,W){return O(P.type,W,void 0,void 0,void 0,P.props)}function U(P){return typeof P=="object"&&P!==null&&P.$$typeof===e}function G(P){var W={"=":"=0",":":"=2"};return"$"+P.replace(/[=:]/g,function(j){return W[j]})}var fe=/\/+/g;function ae(P,W){return typeof P=="object"&&P!==null&&P.key!=null?G(""+P.key):W.toString(36)}function ce(){}function Z(P){switch(P.status){case"fulfilled":return P.value;case"rejected":throw P.reason;default:switch(typeof P.status=="string"?P.then(ce,ce):(P.status="pending",P.then(function(W){P.status==="pending"&&(P.status="fulfilled",P.value=W)},function(W){P.status==="pending"&&(P.status="rejected",P.reason=W)})),P.status){case"fulfilled":return P.value;case"rejected":throw P.reason}}throw P}function te(P,W,j,re,ne){var de=typeof P;(de==="undefined"||de==="boolean")&&(P=null);var Ee=!1;if(P===null)Ee=!0;else switch(de){case"bigint":case"string":case"number":Ee=!0;break;case"object":switch(P.$$typeof){case e:case t:Ee=!0;break;case m:return Ee=P._init,te(Ee(P._payload),W,j,re,ne)}}if(Ee)return ne=ne(P),Ee=re===""?"."+ae(P,0):re,L(ne)?(j="",Ee!=null&&(j=Ee.replace(fe,"$&/")+"/"),te(ne,W,j,"",function(Ve){return Ve})):ne!=null&&(U(ne)&&(ne=H(ne,j+(ne.key==null||P&&P.key===ne.key?"":(""+ne.key).replace(fe,"$&/")+"/")+Ee)),W.push(ne)),1;Ee=0;var pe=re===""?".":re+":";if(L(P))for(var ve=0;ve<P.length;ve++)re=P[ve],de=pe+ae(re,ve),Ee+=te(re,W,j,de,ne);else if(ve=g(P),typeof ve=="function")for(P=ve.call(P),ve=0;!(re=P.next()).done;)re=re.value,de=pe+ae(re,ve++),Ee+=te(re,W,j,de,ne);else if(de==="object"){if(typeof P.then=="function")return te(Z(P),W,j,re,ne);throw W=String(P),Error("Objects are not valid as a React child (found: "+(W==="[object Object]"?"object with keys {"+Object.keys(P).join(", ")+"}":W)+"). If you meant to render a collection of children, use an array instead.")}return Ee}function V(P,W,j){if(P==null)return P;var re=[],ne=0;return te(P,re,"","",function(de){return W.call(j,de,ne++)}),re}function ee(P){if(P._status===-1){var W=P._result;W=W(),W.then(function(j){(P._status===0||P._status===-1)&&(P._status=1,P._result=j)},function(j){(P._status===0||P._status===-1)&&(P._status=2,P._result=j)}),P._status===-1&&(P._status=0,P._result=W)}if(P._status===1)return P._result.default;throw P._result}var Q=typeof reportError=="function"?reportError:function(P){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var W=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof P=="object"&&P!==null&&typeof P.message=="string"?String(P.message):String(P),error:P});if(!window.dispatchEvent(W))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",P);return}console.error(P)};function Ae(){}return Xe.Children={map:V,forEach:function(P,W,j){V(P,function(){W.apply(this,arguments)},j)},count:function(P){var W=0;return V(P,function(){W++}),W},toArray:function(P){return V(P,function(W){return W})||[]},only:function(P){if(!U(P))throw Error("React.Children.only expected to receive a single React element child.");return P}},Xe.Component=v,Xe.Fragment=n,Xe.Profiler=u,Xe.PureComponent=D,Xe.StrictMode=r,Xe.Suspense=f,Xe.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=x,Xe.act=function(){throw Error("act(...) is not supported in production builds of React.")},Xe.cache=function(P){return function(){return P.apply(null,arguments)}},Xe.cloneElement=function(P,W,j){if(P==null)throw Error("The argument must be a React element, but you passed "+P+".");var re=S({},P.props),ne=P.key,de=void 0;if(W!=null)for(Ee in W.ref!==void 0&&(de=void 0),W.key!==void 0&&(ne=""+W.key),W)!B.call(W,Ee)||Ee==="key"||Ee==="__self"||Ee==="__source"||Ee==="ref"&&W.ref===void 0||(re[Ee]=W[Ee]);var Ee=arguments.length-2;if(Ee===1)re.children=j;else if(1<Ee){for(var pe=Array(Ee),ve=0;ve<Ee;ve++)pe[ve]=arguments[ve+2];re.children=pe}return O(P.type,ne,void 0,void 0,de,re)},Xe.createContext=function(P){return P={$$typeof:l,_currentValue:P,_currentValue2:P,_threadCount:0,Provider:null,Consumer:null},P.Provider=P,P.Consumer={$$typeof:o,_context:P},P},Xe.createElement=function(P,W,j){var re,ne={},de=null;if(W!=null)for(re in W.key!==void 0&&(de=""+W.key),W)B.call(W,re)&&re!=="key"&&re!=="__self"&&re!=="__source"&&(ne[re]=W[re]);var Ee=arguments.length-2;if(Ee===1)ne.children=j;else if(1<Ee){for(var pe=Array(Ee),ve=0;ve<Ee;ve++)pe[ve]=arguments[ve+2];ne.children=pe}if(P&&P.defaultProps)for(re in Ee=P.defaultProps,Ee)ne[re]===void 0&&(ne[re]=Ee[re]);return O(P,de,void 0,void 0,null,ne)},Xe.createRef=function(){return{current:null}},Xe.forwardRef=function(P){return{$$typeof:c,render:P}},Xe.isValidElement=U,Xe.lazy=function(P){return{$$typeof:m,_payload:{_status:-1,_result:P},_init:ee}},Xe.memo=function(P,W){return{$$typeof:h,type:P,compare:W===void 0?null:W}},Xe.startTransition=function(P){var W=x.T,j={};x.T=j;try{var re=P(),ne=x.S;ne!==null&&ne(j,re),typeof re=="object"&&re!==null&&typeof re.then=="function"&&re.then(Ae,Q)}catch(de){Q(de)}finally{x.T=W}},Xe.unstable_useCacheRefresh=function(){return x.H.useCacheRefresh()},Xe.use=function(P){return x.H.use(P)},Xe.useActionState=function(P,W,j){return x.H.useActionState(P,W,j)},Xe.useCallback=function(P,W){return x.H.useCallback(P,W)},Xe.useContext=function(P){return x.H.useContext(P)},Xe.useDebugValue=function(){},Xe.useDeferredValue=function(P,W){return x.H.useDeferredValue(P,W)},Xe.useEffect=function(P,W){return x.H.useEffect(P,W)},Xe.useId=function(){return x.H.useId()},Xe.useImperativeHandle=function(P,W,j){return x.H.useImperativeHandle(P,W,j)},Xe.useInsertionEffect=function(P,W){return x.H.useInsertionEffect(P,W)},Xe.useLayoutEffect=function(P,W){return x.H.useLayoutEffect(P,W)},Xe.useMemo=function(P,W){return x.H.useMemo(P,W)},Xe.useOptimistic=function(P,W){return x.H.useOptimistic(P,W)},Xe.useReducer=function(P,W,j){return x.H.useReducer(P,W,j)},Xe.useRef=function(P){return x.H.useRef(P)},Xe.useState=function(P){return x.H.useState(P)},Xe.useSyncExternalStore=function(P,W,j){return x.H.useSyncExternalStore(P,W,j)},Xe.useTransition=function(){return x.H.useTransition()},Xe.version="19.0.0",Xe}var Py;function kc(){return Py||(Py=1,lp.exports=WL()),lp.exports}var y=kc();const $e=lh(y),qL=$L({__proto__:null,default:$e},[y]);var cp={exports:{}},xl={},dp={exports:{}},fp={};/**
19
+ * @license React
20
+ * scheduler.production.js
21
+ *
22
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
23
+ *
24
+ * This source code is licensed under the MIT license found in the
25
+ * LICENSE file in the root directory of this source tree.
26
+ */var Hy;function XL(){return Hy||(Hy=1,function(e){function t(V,ee){var Q=V.length;V.push(ee);e:for(;0<Q;){var Ae=Q-1>>>1,P=V[Ae];if(0<u(P,ee))V[Ae]=ee,V[Q]=P,Q=Ae;else break e}}function n(V){return V.length===0?null:V[0]}function r(V){if(V.length===0)return null;var ee=V[0],Q=V.pop();if(Q!==ee){V[0]=Q;e:for(var Ae=0,P=V.length,W=P>>>1;Ae<W;){var j=2*(Ae+1)-1,re=V[j],ne=j+1,de=V[ne];if(0>u(re,Q))ne<P&&0>u(de,re)?(V[Ae]=de,V[ne]=Q,Ae=ne):(V[Ae]=re,V[j]=Q,Ae=j);else if(ne<P&&0>u(de,Q))V[Ae]=de,V[ne]=Q,Ae=ne;else break e}}return ee}function u(V,ee){var Q=V.sortIndex-ee.sortIndex;return Q!==0?Q:V.id-ee.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var l=Date,c=l.now();e.unstable_now=function(){return l.now()-c}}var f=[],h=[],m=1,E=null,g=3,_=!1,S=!1,C=!1,v=typeof setTimeout=="function"?setTimeout:null,R=typeof clearTimeout=="function"?clearTimeout:null,D=typeof setImmediate<"u"?setImmediate:null;function b(V){for(var ee=n(h);ee!==null;){if(ee.callback===null)r(h);else if(ee.startTime<=V)r(h),ee.sortIndex=ee.expirationTime,t(f,ee);else break;ee=n(h)}}function L(V){if(C=!1,b(V),!S)if(n(f)!==null)S=!0,Z();else{var ee=n(h);ee!==null&&te(L,ee.startTime-V)}}var x=!1,B=-1,O=5,H=-1;function U(){return!(e.unstable_now()-H<O)}function G(){if(x){var V=e.unstable_now();H=V;var ee=!0;try{e:{S=!1,C&&(C=!1,R(B),B=-1),_=!0;var Q=g;try{t:{for(b(V),E=n(f);E!==null&&!(E.expirationTime>V&&U());){var Ae=E.callback;if(typeof Ae=="function"){E.callback=null,g=E.priorityLevel;var P=Ae(E.expirationTime<=V);if(V=e.unstable_now(),typeof P=="function"){E.callback=P,b(V),ee=!0;break t}E===n(f)&&r(f),b(V)}else r(f);E=n(f)}if(E!==null)ee=!0;else{var W=n(h);W!==null&&te(L,W.startTime-V),ee=!1}}break e}finally{E=null,g=Q,_=!1}ee=void 0}}finally{ee?fe():x=!1}}}var fe;if(typeof D=="function")fe=function(){D(G)};else if(typeof MessageChannel<"u"){var ae=new MessageChannel,ce=ae.port2;ae.port1.onmessage=G,fe=function(){ce.postMessage(null)}}else fe=function(){v(G,0)};function Z(){x||(x=!0,fe())}function te(V,ee){B=v(function(){V(e.unstable_now())},ee)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(V){V.callback=null},e.unstable_continueExecution=function(){S||_||(S=!0,Z())},e.unstable_forceFrameRate=function(V){0>V||125<V?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):O=0<V?Math.floor(1e3/V):5},e.unstable_getCurrentPriorityLevel=function(){return g},e.unstable_getFirstCallbackNode=function(){return n(f)},e.unstable_next=function(V){switch(g){case 1:case 2:case 3:var ee=3;break;default:ee=g}var Q=g;g=ee;try{return V()}finally{g=Q}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(V,ee){switch(V){case 1:case 2:case 3:case 4:case 5:break;default:V=3}var Q=g;g=V;try{return ee()}finally{g=Q}},e.unstable_scheduleCallback=function(V,ee,Q){var Ae=e.unstable_now();switch(typeof Q=="object"&&Q!==null?(Q=Q.delay,Q=typeof Q=="number"&&0<Q?Ae+Q:Ae):Q=Ae,V){case 1:var P=-1;break;case 2:P=250;break;case 5:P=1073741823;break;case 4:P=1e4;break;default:P=5e3}return P=Q+P,V={id:m++,callback:ee,priorityLevel:V,startTime:Q,expirationTime:P,sortIndex:-1},Q>Ae?(V.sortIndex=Q,t(h,V),n(f)===null&&V===n(h)&&(C?(R(B),B=-1):C=!0,te(L,Q-Ae))):(V.sortIndex=P,t(f,V),S||_||(S=!0,Z())),V},e.unstable_shouldYield=U,e.unstable_wrapCallback=function(V){var ee=g;return function(){var Q=g;g=ee;try{return V.apply(this,arguments)}finally{g=Q}}}}(fp)),fp}var Uy;function QL(){return Uy||(Uy=1,dp.exports=XL()),dp.exports}var hp={exports:{}},gn={};/**
27
+ * @license React
28
+ * react-dom.production.js
29
+ *
30
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
31
+ *
32
+ * This source code is licensed under the MIT license found in the
33
+ * LICENSE file in the root directory of this source tree.
34
+ */var ky;function JL(){if(ky)return gn;ky=1;var e=kc();function t(f){var h="https://react.dev/errors/"+f;if(1<arguments.length){h+="?args[]="+encodeURIComponent(arguments[1]);for(var m=2;m<arguments.length;m++)h+="&args[]="+encodeURIComponent(arguments[m])}return"Minified React error #"+f+"; visit "+h+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function n(){}var r={d:{f:n,r:function(){throw Error(t(522))},D:n,C:n,L:n,m:n,X:n,S:n,M:n},p:0,findDOMNode:null},u=Symbol.for("react.portal");function o(f,h,m){var E=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:u,key:E==null?null:""+E,children:f,containerInfo:h,implementation:m}}var l=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function c(f,h){if(f==="font")return"";if(typeof h=="string")return h==="use-credentials"?h:""}return gn.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,gn.createPortal=function(f,h){var m=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!h||h.nodeType!==1&&h.nodeType!==9&&h.nodeType!==11)throw Error(t(299));return o(f,h,null,m)},gn.flushSync=function(f){var h=l.T,m=r.p;try{if(l.T=null,r.p=2,f)return f()}finally{l.T=h,r.p=m,r.d.f()}},gn.preconnect=function(f,h){typeof f=="string"&&(h?(h=h.crossOrigin,h=typeof h=="string"?h==="use-credentials"?h:"":void 0):h=null,r.d.C(f,h))},gn.prefetchDNS=function(f){typeof f=="string"&&r.d.D(f)},gn.preinit=function(f,h){if(typeof f=="string"&&h&&typeof h.as=="string"){var m=h.as,E=c(m,h.crossOrigin),g=typeof h.integrity=="string"?h.integrity:void 0,_=typeof h.fetchPriority=="string"?h.fetchPriority:void 0;m==="style"?r.d.S(f,typeof h.precedence=="string"?h.precedence:void 0,{crossOrigin:E,integrity:g,fetchPriority:_}):m==="script"&&r.d.X(f,{crossOrigin:E,integrity:g,fetchPriority:_,nonce:typeof h.nonce=="string"?h.nonce:void 0})}},gn.preinitModule=function(f,h){if(typeof f=="string")if(typeof h=="object"&&h!==null){if(h.as==null||h.as==="script"){var m=c(h.as,h.crossOrigin);r.d.M(f,{crossOrigin:m,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0})}}else h==null&&r.d.M(f)},gn.preload=function(f,h){if(typeof f=="string"&&typeof h=="object"&&h!==null&&typeof h.as=="string"){var m=h.as,E=c(m,h.crossOrigin);r.d.L(f,m,{crossOrigin:E,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0,type:typeof h.type=="string"?h.type:void 0,fetchPriority:typeof h.fetchPriority=="string"?h.fetchPriority:void 0,referrerPolicy:typeof h.referrerPolicy=="string"?h.referrerPolicy:void 0,imageSrcSet:typeof h.imageSrcSet=="string"?h.imageSrcSet:void 0,imageSizes:typeof h.imageSizes=="string"?h.imageSizes:void 0,media:typeof h.media=="string"?h.media:void 0})}},gn.preloadModule=function(f,h){if(typeof f=="string")if(h){var m=c(h.as,h.crossOrigin);r.d.m(f,{as:typeof h.as=="string"&&h.as!=="script"?h.as:void 0,crossOrigin:m,integrity:typeof h.integrity=="string"?h.integrity:void 0})}else r.d.m(f)},gn.requestFormReset=function(f){r.d.r(f)},gn.unstable_batchedUpdates=function(f,h){return f(h)},gn.useFormState=function(f,h,m){return l.H.useFormState(f,h,m)},gn.useFormStatus=function(){return l.H.useHostTransitionStatus()},gn.version="19.0.0",gn}var Gy;function kR(){if(Gy)return hp.exports;Gy=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),hp.exports=JL(),hp.exports}/**
35
+ * @license React
36
+ * react-dom-client.production.js
37
+ *
38
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
39
+ *
40
+ * This source code is licensed under the MIT license found in the
41
+ * LICENSE file in the root directory of this source tree.
42
+ */var Vy;function ew(){if(Vy)return xl;Vy=1;var e=QL(),t=kc(),n=kR();function r(a){var s="https://react.dev/errors/"+a;if(1<arguments.length){s+="?args[]="+encodeURIComponent(arguments[1]);for(var d=2;d<arguments.length;d++)s+="&args[]="+encodeURIComponent(arguments[d])}return"Minified React error #"+a+"; visit "+s+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function u(a){return!(!a||a.nodeType!==1&&a.nodeType!==9&&a.nodeType!==11)}var o=Symbol.for("react.element"),l=Symbol.for("react.transitional.element"),c=Symbol.for("react.portal"),f=Symbol.for("react.fragment"),h=Symbol.for("react.strict_mode"),m=Symbol.for("react.profiler"),E=Symbol.for("react.provider"),g=Symbol.for("react.consumer"),_=Symbol.for("react.context"),S=Symbol.for("react.forward_ref"),C=Symbol.for("react.suspense"),v=Symbol.for("react.suspense_list"),R=Symbol.for("react.memo"),D=Symbol.for("react.lazy"),b=Symbol.for("react.offscreen"),L=Symbol.for("react.memo_cache_sentinel"),x=Symbol.iterator;function B(a){return a===null||typeof a!="object"?null:(a=x&&a[x]||a["@@iterator"],typeof a=="function"?a:null)}var O=Symbol.for("react.client.reference");function H(a){if(a==null)return null;if(typeof a=="function")return a.$$typeof===O?null:a.displayName||a.name||null;if(typeof a=="string")return a;switch(a){case f:return"Fragment";case c:return"Portal";case m:return"Profiler";case h:return"StrictMode";case C:return"Suspense";case v:return"SuspenseList"}if(typeof a=="object")switch(a.$$typeof){case _:return(a.displayName||"Context")+".Provider";case g:return(a._context.displayName||"Context")+".Consumer";case S:var s=a.render;return a=a.displayName,a||(a=s.displayName||s.name||"",a=a!==""?"ForwardRef("+a+")":"ForwardRef"),a;case R:return s=a.displayName||null,s!==null?s:H(a.type)||"Memo";case D:s=a._payload,a=a._init;try{return H(a(s))}catch{}}return null}var U=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,G=Object.assign,fe,ae;function ce(a){if(fe===void 0)try{throw Error()}catch(d){var s=d.stack.trim().match(/\n( *(at )?)/);fe=s&&s[1]||"",ae=-1<d.stack.indexOf(`
43
+ at`)?" (<anonymous>)":-1<d.stack.indexOf("@")?"@unknown:0:0":""}return`
44
+ `+fe+a+ae}var Z=!1;function te(a,s){if(!a||Z)return"";Z=!0;var d=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var A={DetermineComponentFrameRoot:function(){try{if(s){var he=function(){throw Error()};if(Object.defineProperty(he.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(he,[])}catch(ue){var J=ue}Reflect.construct(a,[],he)}else{try{he.call()}catch(ue){J=ue}a.call(he.prototype)}}else{try{throw Error()}catch(ue){J=ue}(he=a())&&typeof he.catch=="function"&&he.catch(function(){})}}catch(ue){if(ue&&J&&typeof ue.stack=="string")return[ue.stack,J.stack]}return[null,null]}};A.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var p=Object.getOwnPropertyDescriptor(A.DetermineComponentFrameRoot,"name");p&&p.configurable&&Object.defineProperty(A.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var I=A.DetermineComponentFrameRoot(),T=I[0],F=I[1];if(T&&F){var M=T.split(`
45
+ `),K=F.split(`
46
+ `);for(p=A=0;A<M.length&&!M[A].includes("DetermineComponentFrameRoot");)A++;for(;p<K.length&&!K[p].includes("DetermineComponentFrameRoot");)p++;if(A===M.length||p===K.length)for(A=M.length-1,p=K.length-1;1<=A&&0<=p&&M[A]!==K[p];)p--;for(;1<=A&&0<=p;A--,p--)if(M[A]!==K[p]){if(A!==1||p!==1)do if(A--,p--,0>p||M[A]!==K[p]){var se=`
47
+ `+M[A].replace(" at new "," at ");return a.displayName&&se.includes("<anonymous>")&&(se=se.replace("<anonymous>",a.displayName)),se}while(1<=A&&0<=p);break}}}finally{Z=!1,Error.prepareStackTrace=d}return(d=a?a.displayName||a.name:"")?ce(d):""}function V(a){switch(a.tag){case 26:case 27:case 5:return ce(a.type);case 16:return ce("Lazy");case 13:return ce("Suspense");case 19:return ce("SuspenseList");case 0:case 15:return a=te(a.type,!1),a;case 11:return a=te(a.type.render,!1),a;case 1:return a=te(a.type,!0),a;default:return""}}function ee(a){try{var s="";do s+=V(a),a=a.return;while(a);return s}catch(d){return`
48
+ Error generating stack: `+d.message+`
49
+ `+d.stack}}function Q(a){var s=a,d=a;if(a.alternate)for(;s.return;)s=s.return;else{a=s;do s=a,(s.flags&4098)!==0&&(d=s.return),a=s.return;while(a)}return s.tag===3?d:null}function Ae(a){if(a.tag===13){var s=a.memoizedState;if(s===null&&(a=a.alternate,a!==null&&(s=a.memoizedState)),s!==null)return s.dehydrated}return null}function P(a){if(Q(a)!==a)throw Error(r(188))}function W(a){var s=a.alternate;if(!s){if(s=Q(a),s===null)throw Error(r(188));return s!==a?null:a}for(var d=a,A=s;;){var p=d.return;if(p===null)break;var I=p.alternate;if(I===null){if(A=p.return,A!==null){d=A;continue}break}if(p.child===I.child){for(I=p.child;I;){if(I===d)return P(p),a;if(I===A)return P(p),s;I=I.sibling}throw Error(r(188))}if(d.return!==A.return)d=p,A=I;else{for(var T=!1,F=p.child;F;){if(F===d){T=!0,d=p,A=I;break}if(F===A){T=!0,A=p,d=I;break}F=F.sibling}if(!T){for(F=I.child;F;){if(F===d){T=!0,d=I,A=p;break}if(F===A){T=!0,A=I,d=p;break}F=F.sibling}if(!T)throw Error(r(189))}}if(d.alternate!==A)throw Error(r(190))}if(d.tag!==3)throw Error(r(188));return d.stateNode.current===d?a:s}function j(a){var s=a.tag;if(s===5||s===26||s===27||s===6)return a;for(a=a.child;a!==null;){if(s=j(a),s!==null)return s;a=a.sibling}return null}var re=Array.isArray,ne=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,de={pending:!1,data:null,method:null,action:null},Ee=[],pe=-1;function ve(a){return{current:a}}function Ve(a){0>pe||(a.current=Ee[pe],Ee[pe]=null,pe--)}function we(a,s){pe++,Ee[pe]=a.current,a.current=s}var Ze=ve(null),at=ve(null),It=ve(null),Jt=ve(null);function yr(a,s){switch(we(It,s),we(at,a),we(Ze,null),a=s.nodeType,a){case 9:case 11:s=(s=s.documentElement)&&(s=s.namespaceURI)?ly(s):0;break;default:if(a=a===8?s.parentNode:s,s=a.tagName,a=a.namespaceURI)a=ly(a),s=cy(a,s);else switch(s){case"svg":s=1;break;case"math":s=2;break;default:s=0}}Ve(Ze),we(Ze,s)}function kn(){Ve(Ze),Ve(at),Ve(It)}function Hr(a){a.memoizedState!==null&&we(Jt,a);var s=Ze.current,d=cy(s,a.type);s!==d&&(we(at,a),we(Ze,d))}function k(a){at.current===a&&(Ve(Ze),Ve(at)),Jt.current===a&&(Ve(Jt),Cl._currentValue=de)}var X=Object.prototype.hasOwnProperty,ie=e.unstable_scheduleCallback,Ce=e.unstable_cancelCallback,Ie=e.unstable_shouldYield,Se=e.unstable_requestPaint,Be=e.unstable_now,Je=e.unstable_getCurrentPriorityLevel,Mt=e.unstable_ImmediatePriority,Pt=e.unstable_UserBlockingPriority,Gn=e.unstable_NormalPriority,tA=e.unstable_LowPriority,Ya=e.unstable_IdlePriority,Oo=e.log,nA=e.unstable_setDisableYieldValue,ji=null,Rn=null;function hd(a){if(Rn&&typeof Rn.onCommitFiberRoot=="function")try{Rn.onCommitFiberRoot(ji,a,void 0,(a.current.flags&128)===128)}catch{}}function zi(a){if(typeof Oo=="function"&&nA(a),Rn&&typeof Rn.setStrictMode=="function")try{Rn.setStrictMode(ji,a)}catch{}}var Vn=Math.clz32?Math.clz32:BF,bF=Math.log,xF=Math.LN2;function BF(a){return a>>>=0,a===0?32:31-(bF(a)/xF|0)|0}var Ad=128,md=4194304;function ju(a){var s=a&42;if(s!==0)return s;switch(a&-a){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return a&4194176;case 4194304:case 8388608:case 16777216:case 33554432:return a&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return a}}function pd(a,s){var d=a.pendingLanes;if(d===0)return 0;var A=0,p=a.suspendedLanes,I=a.pingedLanes,T=a.warmLanes;a=a.finishedLanes!==0;var F=d&134217727;return F!==0?(d=F&~p,d!==0?A=ju(d):(I&=F,I!==0?A=ju(I):a||(T=F&~T,T!==0&&(A=ju(T))))):(F=d&~p,F!==0?A=ju(F):I!==0?A=ju(I):a||(T=d&~T,T!==0&&(A=ju(T)))),A===0?0:s!==0&&s!==A&&(s&p)===0&&(p=A&-A,T=s&-s,p>=T||p===32&&(T&4194176)!==0)?s:A}function Lo(a,s){return(a.pendingLanes&~(a.suspendedLanes&~a.pingedLanes)&s)===0}function FF(a,s){switch(a){case 1:case 2:case 4:case 8:return s+250;case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return s+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function tS(){var a=Ad;return Ad<<=1,(Ad&4194176)===0&&(Ad=128),a}function nS(){var a=md;return md<<=1,(md&62914560)===0&&(md=4194304),a}function rA(a){for(var s=[],d=0;31>d;d++)s.push(a);return s}function wo(a,s){a.pendingLanes|=s,s!==268435456&&(a.suspendedLanes=0,a.pingedLanes=0,a.warmLanes=0)}function OF(a,s,d,A,p,I){var T=a.pendingLanes;a.pendingLanes=d,a.suspendedLanes=0,a.pingedLanes=0,a.warmLanes=0,a.expiredLanes&=d,a.entangledLanes&=d,a.errorRecoveryDisabledLanes&=d,a.shellSuspendCounter=0;var F=a.entanglements,M=a.expirationTimes,K=a.hiddenUpdates;for(d=T&~d;0<d;){var se=31-Vn(d),he=1<<se;F[se]=0,M[se]=-1;var J=K[se];if(J!==null)for(K[se]=null,se=0;se<J.length;se++){var ue=J[se];ue!==null&&(ue.lane&=-536870913)}d&=~he}A!==0&&rS(a,A,0),I!==0&&p===0&&a.tag!==0&&(a.suspendedLanes|=I&~(T&~s))}function rS(a,s,d){a.pendingLanes|=s,a.suspendedLanes&=~s;var A=31-Vn(s);a.entangledLanes|=s,a.entanglements[A]=a.entanglements[A]|1073741824|d&4194218}function iS(a,s){var d=a.entangledLanes|=s;for(a=a.entanglements;d;){var A=31-Vn(d),p=1<<A;p&s|a[A]&s&&(a[A]|=s),d&=~p}}function uS(a){return a&=-a,2<a?8<a?(a&134217727)!==0?32:268435456:8:2}function aS(){var a=ne.p;return a!==0?a:(a=window.event,a===void 0?32:Ty(a.type))}function LF(a,s){var d=ne.p;try{return ne.p=a,s()}finally{ne.p=d}}var Ki=Math.random().toString(36).slice(2),pn="__reactFiber$"+Ki,On="__reactProps$"+Ki,Za="__reactContainer$"+Ki,iA="__reactEvents$"+Ki,wF="__reactListeners$"+Ki,MF="__reactHandles$"+Ki,sS="__reactResources$"+Ki,Mo="__reactMarker$"+Ki;function uA(a){delete a[pn],delete a[On],delete a[iA],delete a[wF],delete a[MF]}function zu(a){var s=a[pn];if(s)return s;for(var d=a.parentNode;d;){if(s=d[Za]||d[pn]){if(d=s.alternate,s.child!==null||d!==null&&d.child!==null)for(a=hy(a);a!==null;){if(d=a[pn])return d;a=hy(a)}return s}a=d,d=a.parentNode}return null}function Wa(a){if(a=a[pn]||a[Za]){var s=a.tag;if(s===5||s===6||s===13||s===26||s===27||s===3)return a}return null}function Po(a){var s=a.tag;if(s===5||s===26||s===27||s===6)return a.stateNode;throw Error(r(33))}function qa(a){var s=a[sS];return s||(s=a[sS]={hoistableStyles:new Map,hoistableScripts:new Map}),s}function en(a){a[Mo]=!0}var oS=new Set,lS={};function Ku(a,s){Xa(a,s),Xa(a+"Capture",s)}function Xa(a,s){for(lS[a]=s,a=0;a<s.length;a++)oS.add(s[a])}var oi=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),PF=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),cS={},dS={};function HF(a){return X.call(dS,a)?!0:X.call(cS,a)?!1:PF.test(a)?dS[a]=!0:(cS[a]=!0,!1)}function Ed(a,s,d){if(HF(s))if(d===null)a.removeAttribute(s);else{switch(typeof d){case"undefined":case"function":case"symbol":a.removeAttribute(s);return;case"boolean":var A=s.toLowerCase().slice(0,5);if(A!=="data-"&&A!=="aria-"){a.removeAttribute(s);return}}a.setAttribute(s,""+d)}}function gd(a,s,d){if(d===null)a.removeAttribute(s);else{switch(typeof d){case"undefined":case"function":case"symbol":case"boolean":a.removeAttribute(s);return}a.setAttribute(s,""+d)}}function li(a,s,d,A){if(A===null)a.removeAttribute(d);else{switch(typeof A){case"undefined":case"function":case"symbol":case"boolean":a.removeAttribute(d);return}a.setAttributeNS(s,d,""+A)}}function nr(a){switch(typeof a){case"bigint":case"boolean":case"number":case"string":case"undefined":return a;case"object":return a;default:return""}}function fS(a){var s=a.type;return(a=a.nodeName)&&a.toLowerCase()==="input"&&(s==="checkbox"||s==="radio")}function UF(a){var s=fS(a)?"checked":"value",d=Object.getOwnPropertyDescriptor(a.constructor.prototype,s),A=""+a[s];if(!a.hasOwnProperty(s)&&typeof d<"u"&&typeof d.get=="function"&&typeof d.set=="function"){var p=d.get,I=d.set;return Object.defineProperty(a,s,{configurable:!0,get:function(){return p.call(this)},set:function(T){A=""+T,I.call(this,T)}}),Object.defineProperty(a,s,{enumerable:d.enumerable}),{getValue:function(){return A},setValue:function(T){A=""+T},stopTracking:function(){a._valueTracker=null,delete a[s]}}}}function _d(a){a._valueTracker||(a._valueTracker=UF(a))}function hS(a){if(!a)return!1;var s=a._valueTracker;if(!s)return!0;var d=s.getValue(),A="";return a&&(A=fS(a)?a.checked?"true":"false":a.value),a=A,a!==d?(s.setValue(a),!0):!1}function Sd(a){if(a=a||(typeof document<"u"?document:void 0),typeof a>"u")return null;try{return a.activeElement||a.body}catch{return a.body}}var kF=/[\n"\\]/g;function rr(a){return a.replace(kF,function(s){return"\\"+s.charCodeAt(0).toString(16)+" "})}function aA(a,s,d,A,p,I,T,F){a.name="",T!=null&&typeof T!="function"&&typeof T!="symbol"&&typeof T!="boolean"?a.type=T:a.removeAttribute("type"),s!=null?T==="number"?(s===0&&a.value===""||a.value!=s)&&(a.value=""+nr(s)):a.value!==""+nr(s)&&(a.value=""+nr(s)):T!=="submit"&&T!=="reset"||a.removeAttribute("value"),s!=null?sA(a,T,nr(s)):d!=null?sA(a,T,nr(d)):A!=null&&a.removeAttribute("value"),p==null&&I!=null&&(a.defaultChecked=!!I),p!=null&&(a.checked=p&&typeof p!="function"&&typeof p!="symbol"),F!=null&&typeof F!="function"&&typeof F!="symbol"&&typeof F!="boolean"?a.name=""+nr(F):a.removeAttribute("name")}function AS(a,s,d,A,p,I,T,F){if(I!=null&&typeof I!="function"&&typeof I!="symbol"&&typeof I!="boolean"&&(a.type=I),s!=null||d!=null){if(!(I!=="submit"&&I!=="reset"||s!=null))return;d=d!=null?""+nr(d):"",s=s!=null?""+nr(s):d,F||s===a.value||(a.value=s),a.defaultValue=s}A=A??p,A=typeof A!="function"&&typeof A!="symbol"&&!!A,a.checked=F?a.checked:!!A,a.defaultChecked=!!A,T!=null&&typeof T!="function"&&typeof T!="symbol"&&typeof T!="boolean"&&(a.name=T)}function sA(a,s,d){s==="number"&&Sd(a.ownerDocument)===a||a.defaultValue===""+d||(a.defaultValue=""+d)}function Qa(a,s,d,A){if(a=a.options,s){s={};for(var p=0;p<d.length;p++)s["$"+d[p]]=!0;for(d=0;d<a.length;d++)p=s.hasOwnProperty("$"+a[d].value),a[d].selected!==p&&(a[d].selected=p),p&&A&&(a[d].defaultSelected=!0)}else{for(d=""+nr(d),s=null,p=0;p<a.length;p++){if(a[p].value===d){a[p].selected=!0,A&&(a[p].defaultSelected=!0);return}s!==null||a[p].disabled||(s=a[p])}s!==null&&(s.selected=!0)}}function mS(a,s,d){if(s!=null&&(s=""+nr(s),s!==a.value&&(a.value=s),d==null)){a.defaultValue!==s&&(a.defaultValue=s);return}a.defaultValue=d!=null?""+nr(d):""}function pS(a,s,d,A){if(s==null){if(A!=null){if(d!=null)throw Error(r(92));if(re(A)){if(1<A.length)throw Error(r(93));A=A[0]}d=A}d==null&&(d=""),s=d}d=nr(s),a.defaultValue=d,A=a.textContent,A===d&&A!==""&&A!==null&&(a.value=A)}function Ja(a,s){if(s){var d=a.firstChild;if(d&&d===a.lastChild&&d.nodeType===3){d.nodeValue=s;return}}a.textContent=s}var GF=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function ES(a,s,d){var A=s.indexOf("--")===0;d==null||typeof d=="boolean"||d===""?A?a.setProperty(s,""):s==="float"?a.cssFloat="":a[s]="":A?a.setProperty(s,d):typeof d!="number"||d===0||GF.has(s)?s==="float"?a.cssFloat=d:a[s]=(""+d).trim():a[s]=d+"px"}function gS(a,s,d){if(s!=null&&typeof s!="object")throw Error(r(62));if(a=a.style,d!=null){for(var A in d)!d.hasOwnProperty(A)||s!=null&&s.hasOwnProperty(A)||(A.indexOf("--")===0?a.setProperty(A,""):A==="float"?a.cssFloat="":a[A]="");for(var p in s)A=s[p],s.hasOwnProperty(p)&&d[p]!==A&&ES(a,p,A)}else for(var I in s)s.hasOwnProperty(I)&&ES(a,I,s[I])}function oA(a){if(a.indexOf("-")===-1)return!1;switch(a){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var VF=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),jF=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Nd(a){return jF.test(""+a)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":a}var lA=null;function cA(a){return a=a.target||a.srcElement||window,a.correspondingUseElement&&(a=a.correspondingUseElement),a.nodeType===3?a.parentNode:a}var es=null,ts=null;function _S(a){var s=Wa(a);if(s&&(a=s.stateNode)){var d=a[On]||null;e:switch(a=s.stateNode,s.type){case"input":if(aA(a,d.value,d.defaultValue,d.defaultValue,d.checked,d.defaultChecked,d.type,d.name),s=d.name,d.type==="radio"&&s!=null){for(d=a;d.parentNode;)d=d.parentNode;for(d=d.querySelectorAll('input[name="'+rr(""+s)+'"][type="radio"]'),s=0;s<d.length;s++){var A=d[s];if(A!==a&&A.form===a.form){var p=A[On]||null;if(!p)throw Error(r(90));aA(A,p.value,p.defaultValue,p.defaultValue,p.checked,p.defaultChecked,p.type,p.name)}}for(s=0;s<d.length;s++)A=d[s],A.form===a.form&&hS(A)}break e;case"textarea":mS(a,d.value,d.defaultValue);break e;case"select":s=d.value,s!=null&&Qa(a,!!d.multiple,s,!1)}}}var dA=!1;function SS(a,s,d){if(dA)return a(s,d);dA=!0;try{var A=a(s);return A}finally{if(dA=!1,(es!==null||ts!==null)&&(i0(),es&&(s=es,a=ts,ts=es=null,_S(s),a)))for(s=0;s<a.length;s++)_S(a[s])}}function Ho(a,s){var d=a.stateNode;if(d===null)return null;var A=d[On]||null;if(A===null)return null;d=A[s];e:switch(s){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(A=!A.disabled)||(a=a.type,A=!(a==="button"||a==="input"||a==="select"||a==="textarea")),a=!A;break e;default:a=!1}if(a)return null;if(d&&typeof d!="function")throw Error(r(231,s,typeof d));return d}var fA=!1;if(oi)try{var Uo={};Object.defineProperty(Uo,"passive",{get:function(){fA=!0}}),window.addEventListener("test",Uo,Uo),window.removeEventListener("test",Uo,Uo)}catch{fA=!1}var $i=null,hA=null,Id=null;function NS(){if(Id)return Id;var a,s=hA,d=s.length,A,p="value"in $i?$i.value:$i.textContent,I=p.length;for(a=0;a<d&&s[a]===p[a];a++);var T=d-a;for(A=1;A<=T&&s[d-A]===p[I-A];A++);return Id=p.slice(a,1<A?1-A:void 0)}function yd(a){var s=a.keyCode;return"charCode"in a?(a=a.charCode,a===0&&s===13&&(a=13)):a=s,a===10&&(a=13),32<=a||a===13?a:0}function Cd(){return!0}function IS(){return!1}function Ln(a){function s(d,A,p,I,T){this._reactName=d,this._targetInst=p,this.type=A,this.nativeEvent=I,this.target=T,this.currentTarget=null;for(var F in a)a.hasOwnProperty(F)&&(d=a[F],this[F]=d?d(I):I[F]);return this.isDefaultPrevented=(I.defaultPrevented!=null?I.defaultPrevented:I.returnValue===!1)?Cd:IS,this.isPropagationStopped=IS,this}return G(s.prototype,{preventDefault:function(){this.defaultPrevented=!0;var d=this.nativeEvent;d&&(d.preventDefault?d.preventDefault():typeof d.returnValue!="unknown"&&(d.returnValue=!1),this.isDefaultPrevented=Cd)},stopPropagation:function(){var d=this.nativeEvent;d&&(d.stopPropagation?d.stopPropagation():typeof d.cancelBubble!="unknown"&&(d.cancelBubble=!0),this.isPropagationStopped=Cd)},persist:function(){},isPersistent:Cd}),s}var $u={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(a){return a.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},vd=Ln($u),ko=G({},$u,{view:0,detail:0}),zF=Ln(ko),AA,mA,Go,Rd=G({},ko,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:EA,button:0,buttons:0,relatedTarget:function(a){return a.relatedTarget===void 0?a.fromElement===a.srcElement?a.toElement:a.fromElement:a.relatedTarget},movementX:function(a){return"movementX"in a?a.movementX:(a!==Go&&(Go&&a.type==="mousemove"?(AA=a.screenX-Go.screenX,mA=a.screenY-Go.screenY):mA=AA=0,Go=a),AA)},movementY:function(a){return"movementY"in a?a.movementY:mA}}),yS=Ln(Rd),KF=G({},Rd,{dataTransfer:0}),$F=Ln(KF),YF=G({},ko,{relatedTarget:0}),pA=Ln(YF),ZF=G({},$u,{animationName:0,elapsedTime:0,pseudoElement:0}),WF=Ln(ZF),qF=G({},$u,{clipboardData:function(a){return"clipboardData"in a?a.clipboardData:window.clipboardData}}),XF=Ln(qF),QF=G({},$u,{data:0}),CS=Ln(QF),JF={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},eO={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},tO={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function nO(a){var s=this.nativeEvent;return s.getModifierState?s.getModifierState(a):(a=tO[a])?!!s[a]:!1}function EA(){return nO}var rO=G({},ko,{key:function(a){if(a.key){var s=JF[a.key]||a.key;if(s!=="Unidentified")return s}return a.type==="keypress"?(a=yd(a),a===13?"Enter":String.fromCharCode(a)):a.type==="keydown"||a.type==="keyup"?eO[a.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:EA,charCode:function(a){return a.type==="keypress"?yd(a):0},keyCode:function(a){return a.type==="keydown"||a.type==="keyup"?a.keyCode:0},which:function(a){return a.type==="keypress"?yd(a):a.type==="keydown"||a.type==="keyup"?a.keyCode:0}}),iO=Ln(rO),uO=G({},Rd,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),vS=Ln(uO),aO=G({},ko,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:EA}),sO=Ln(aO),oO=G({},$u,{propertyName:0,elapsedTime:0,pseudoElement:0}),lO=Ln(oO),cO=G({},Rd,{deltaX:function(a){return"deltaX"in a?a.deltaX:"wheelDeltaX"in a?-a.wheelDeltaX:0},deltaY:function(a){return"deltaY"in a?a.deltaY:"wheelDeltaY"in a?-a.wheelDeltaY:"wheelDelta"in a?-a.wheelDelta:0},deltaZ:0,deltaMode:0}),dO=Ln(cO),fO=G({},$u,{newState:0,oldState:0}),hO=Ln(fO),AO=[9,13,27,32],gA=oi&&"CompositionEvent"in window,Vo=null;oi&&"documentMode"in document&&(Vo=document.documentMode);var mO=oi&&"TextEvent"in window&&!Vo,RS=oi&&(!gA||Vo&&8<Vo&&11>=Vo),DS=" ",TS=!1;function bS(a,s){switch(a){case"keyup":return AO.indexOf(s.keyCode)!==-1;case"keydown":return s.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function xS(a){return a=a.detail,typeof a=="object"&&"data"in a?a.data:null}var ns=!1;function pO(a,s){switch(a){case"compositionend":return xS(s);case"keypress":return s.which!==32?null:(TS=!0,DS);case"textInput":return a=s.data,a===DS&&TS?null:a;default:return null}}function EO(a,s){if(ns)return a==="compositionend"||!gA&&bS(a,s)?(a=NS(),Id=hA=$i=null,ns=!1,a):null;switch(a){case"paste":return null;case"keypress":if(!(s.ctrlKey||s.altKey||s.metaKey)||s.ctrlKey&&s.altKey){if(s.char&&1<s.char.length)return s.char;if(s.which)return String.fromCharCode(s.which)}return null;case"compositionend":return RS&&s.locale!=="ko"?null:s.data;default:return null}}var gO={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function BS(a){var s=a&&a.nodeName&&a.nodeName.toLowerCase();return s==="input"?!!gO[a.type]:s==="textarea"}function FS(a,s,d,A){es?ts?ts.push(A):ts=[A]:es=A,s=l0(s,"onChange"),0<s.length&&(d=new vd("onChange","change",null,d,A),a.push({event:d,listeners:s}))}var jo=null,zo=null;function _O(a){iy(a,0)}function Dd(a){var s=Po(a);if(hS(s))return a}function OS(a,s){if(a==="change")return s}var LS=!1;if(oi){var _A;if(oi){var SA="oninput"in document;if(!SA){var wS=document.createElement("div");wS.setAttribute("oninput","return;"),SA=typeof wS.oninput=="function"}_A=SA}else _A=!1;LS=_A&&(!document.documentMode||9<document.documentMode)}function MS(){jo&&(jo.detachEvent("onpropertychange",PS),zo=jo=null)}function PS(a){if(a.propertyName==="value"&&Dd(zo)){var s=[];FS(s,zo,a,cA(a)),SS(_O,s)}}function SO(a,s,d){a==="focusin"?(MS(),jo=s,zo=d,jo.attachEvent("onpropertychange",PS)):a==="focusout"&&MS()}function NO(a){if(a==="selectionchange"||a==="keyup"||a==="keydown")return Dd(zo)}function IO(a,s){if(a==="click")return Dd(s)}function yO(a,s){if(a==="input"||a==="change")return Dd(s)}function CO(a,s){return a===s&&(a!==0||1/a===1/s)||a!==a&&s!==s}var jn=typeof Object.is=="function"?Object.is:CO;function Ko(a,s){if(jn(a,s))return!0;if(typeof a!="object"||a===null||typeof s!="object"||s===null)return!1;var d=Object.keys(a),A=Object.keys(s);if(d.length!==A.length)return!1;for(A=0;A<d.length;A++){var p=d[A];if(!X.call(s,p)||!jn(a[p],s[p]))return!1}return!0}function HS(a){for(;a&&a.firstChild;)a=a.firstChild;return a}function US(a,s){var d=HS(a);a=0;for(var A;d;){if(d.nodeType===3){if(A=a+d.textContent.length,a<=s&&A>=s)return{node:d,offset:s-a};a=A}e:{for(;d;){if(d.nextSibling){d=d.nextSibling;break e}d=d.parentNode}d=void 0}d=HS(d)}}function kS(a,s){return a&&s?a===s?!0:a&&a.nodeType===3?!1:s&&s.nodeType===3?kS(a,s.parentNode):"contains"in a?a.contains(s):a.compareDocumentPosition?!!(a.compareDocumentPosition(s)&16):!1:!1}function GS(a){a=a!=null&&a.ownerDocument!=null&&a.ownerDocument.defaultView!=null?a.ownerDocument.defaultView:window;for(var s=Sd(a.document);s instanceof a.HTMLIFrameElement;){try{var d=typeof s.contentWindow.location.href=="string"}catch{d=!1}if(d)a=s.contentWindow;else break;s=Sd(a.document)}return s}function NA(a){var s=a&&a.nodeName&&a.nodeName.toLowerCase();return s&&(s==="input"&&(a.type==="text"||a.type==="search"||a.type==="tel"||a.type==="url"||a.type==="password")||s==="textarea"||a.contentEditable==="true")}function vO(a,s){var d=GS(s);s=a.focusedElem;var A=a.selectionRange;if(d!==s&&s&&s.ownerDocument&&kS(s.ownerDocument.documentElement,s)){if(A!==null&&NA(s)){if(a=A.start,d=A.end,d===void 0&&(d=a),"selectionStart"in s)s.selectionStart=a,s.selectionEnd=Math.min(d,s.value.length);else if(d=(a=s.ownerDocument||document)&&a.defaultView||window,d.getSelection){d=d.getSelection();var p=s.textContent.length,I=Math.min(A.start,p);A=A.end===void 0?I:Math.min(A.end,p),!d.extend&&I>A&&(p=A,A=I,I=p),p=US(s,I);var T=US(s,A);p&&T&&(d.rangeCount!==1||d.anchorNode!==p.node||d.anchorOffset!==p.offset||d.focusNode!==T.node||d.focusOffset!==T.offset)&&(a=a.createRange(),a.setStart(p.node,p.offset),d.removeAllRanges(),I>A?(d.addRange(a),d.extend(T.node,T.offset)):(a.setEnd(T.node,T.offset),d.addRange(a)))}}for(a=[],d=s;d=d.parentNode;)d.nodeType===1&&a.push({element:d,left:d.scrollLeft,top:d.scrollTop});for(typeof s.focus=="function"&&s.focus(),s=0;s<a.length;s++)d=a[s],d.element.scrollLeft=d.left,d.element.scrollTop=d.top}}var RO=oi&&"documentMode"in document&&11>=document.documentMode,rs=null,IA=null,$o=null,yA=!1;function VS(a,s,d){var A=d.window===d?d.document:d.nodeType===9?d:d.ownerDocument;yA||rs==null||rs!==Sd(A)||(A=rs,"selectionStart"in A&&NA(A)?A={start:A.selectionStart,end:A.selectionEnd}:(A=(A.ownerDocument&&A.ownerDocument.defaultView||window).getSelection(),A={anchorNode:A.anchorNode,anchorOffset:A.anchorOffset,focusNode:A.focusNode,focusOffset:A.focusOffset}),$o&&Ko($o,A)||($o=A,A=l0(IA,"onSelect"),0<A.length&&(s=new vd("onSelect","select",null,s,d),a.push({event:s,listeners:A}),s.target=rs)))}function Yu(a,s){var d={};return d[a.toLowerCase()]=s.toLowerCase(),d["Webkit"+a]="webkit"+s,d["Moz"+a]="moz"+s,d}var is={animationend:Yu("Animation","AnimationEnd"),animationiteration:Yu("Animation","AnimationIteration"),animationstart:Yu("Animation","AnimationStart"),transitionrun:Yu("Transition","TransitionRun"),transitionstart:Yu("Transition","TransitionStart"),transitioncancel:Yu("Transition","TransitionCancel"),transitionend:Yu("Transition","TransitionEnd")},CA={},jS={};oi&&(jS=document.createElement("div").style,"AnimationEvent"in window||(delete is.animationend.animation,delete is.animationiteration.animation,delete is.animationstart.animation),"TransitionEvent"in window||delete is.transitionend.transition);function Zu(a){if(CA[a])return CA[a];if(!is[a])return a;var s=is[a],d;for(d in s)if(s.hasOwnProperty(d)&&d in jS)return CA[a]=s[d];return a}var zS=Zu("animationend"),KS=Zu("animationiteration"),$S=Zu("animationstart"),DO=Zu("transitionrun"),TO=Zu("transitionstart"),bO=Zu("transitioncancel"),YS=Zu("transitionend"),ZS=new Map,WS="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll scrollEnd toggle touchMove waiting wheel".split(" ");function Cr(a,s){ZS.set(a,s),Ku(s,[a])}var ir=[],us=0,vA=0;function Td(){for(var a=us,s=vA=us=0;s<a;){var d=ir[s];ir[s++]=null;var A=ir[s];ir[s++]=null;var p=ir[s];ir[s++]=null;var I=ir[s];if(ir[s++]=null,A!==null&&p!==null){var T=A.pending;T===null?p.next=p:(p.next=T.next,T.next=p),A.pending=p}I!==0&&qS(d,p,I)}}function bd(a,s,d,A){ir[us++]=a,ir[us++]=s,ir[us++]=d,ir[us++]=A,vA|=A,a.lanes|=A,a=a.alternate,a!==null&&(a.lanes|=A)}function RA(a,s,d,A){return bd(a,s,d,A),xd(a)}function Yi(a,s){return bd(a,null,null,s),xd(a)}function qS(a,s,d){a.lanes|=d;var A=a.alternate;A!==null&&(A.lanes|=d);for(var p=!1,I=a.return;I!==null;)I.childLanes|=d,A=I.alternate,A!==null&&(A.childLanes|=d),I.tag===22&&(a=I.stateNode,a===null||a._visibility&1||(p=!0)),a=I,I=I.return;p&&s!==null&&a.tag===3&&(I=a.stateNode,p=31-Vn(d),I=I.hiddenUpdates,a=I[p],a===null?I[p]=[s]:a.push(s),s.lane=d|536870912)}function xd(a){if(50<El)throw El=0,Fm=null,Error(r(185));for(var s=a.return;s!==null;)a=s,s=a.return;return a.tag===3?a.stateNode:null}var as={},XS=new WeakMap;function ur(a,s){if(typeof a=="object"&&a!==null){var d=XS.get(a);return d!==void 0?d:(s={value:a,source:s,stack:ee(s)},XS.set(a,s),s)}return{value:a,source:s,stack:ee(s)}}var ss=[],os=0,Bd=null,Fd=0,ar=[],sr=0,Wu=null,ci=1,di="";function qu(a,s){ss[os++]=Fd,ss[os++]=Bd,Bd=a,Fd=s}function QS(a,s,d){ar[sr++]=ci,ar[sr++]=di,ar[sr++]=Wu,Wu=a;var A=ci;a=di;var p=32-Vn(A)-1;A&=~(1<<p),d+=1;var I=32-Vn(s)+p;if(30<I){var T=p-p%5;I=(A&(1<<T)-1).toString(32),A>>=T,p-=T,ci=1<<32-Vn(s)+p|d<<p|A,di=I+a}else ci=1<<I|d<<p|A,di=a}function DA(a){a.return!==null&&(qu(a,1),QS(a,1,0))}function TA(a){for(;a===Bd;)Bd=ss[--os],ss[os]=null,Fd=ss[--os],ss[os]=null;for(;a===Wu;)Wu=ar[--sr],ar[sr]=null,di=ar[--sr],ar[sr]=null,ci=ar[--sr],ar[sr]=null}var Dn=null,on=null,ft=!1,vr=null,Ur=!1,bA=Error(r(519));function Xu(a){var s=Error(r(418,""));throw Wo(ur(s,a)),bA}function JS(a){var s=a.stateNode,d=a.type,A=a.memoizedProps;switch(s[pn]=a,s[On]=A,d){case"dialog":ot("cancel",s),ot("close",s);break;case"iframe":case"object":case"embed":ot("load",s);break;case"video":case"audio":for(d=0;d<_l.length;d++)ot(_l[d],s);break;case"source":ot("error",s);break;case"img":case"image":case"link":ot("error",s),ot("load",s);break;case"details":ot("toggle",s);break;case"input":ot("invalid",s),AS(s,A.value,A.defaultValue,A.checked,A.defaultChecked,A.type,A.name,!0),_d(s);break;case"select":ot("invalid",s);break;case"textarea":ot("invalid",s),pS(s,A.value,A.defaultValue,A.children),_d(s)}d=A.children,typeof d!="string"&&typeof d!="number"&&typeof d!="bigint"||s.textContent===""+d||A.suppressHydrationWarning===!0||oy(s.textContent,d)?(A.popover!=null&&(ot("beforetoggle",s),ot("toggle",s)),A.onScroll!=null&&ot("scroll",s),A.onScrollEnd!=null&&ot("scrollend",s),A.onClick!=null&&(s.onclick=c0),s=!0):s=!1,s||Xu(a)}function eN(a){for(Dn=a.return;Dn;)switch(Dn.tag){case 3:case 27:Ur=!0;return;case 5:case 13:Ur=!1;return;default:Dn=Dn.return}}function Yo(a){if(a!==Dn)return!1;if(!ft)return eN(a),ft=!0,!1;var s=!1,d;if((d=a.tag!==3&&a.tag!==27)&&((d=a.tag===5)&&(d=a.type,d=!(d!=="form"&&d!=="button")||Wm(a.type,a.memoizedProps)),d=!d),d&&(s=!0),s&&on&&Xu(a),eN(a),a.tag===13){if(a=a.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(r(317));e:{for(a=a.nextSibling,s=0;a;){if(a.nodeType===8)if(d=a.data,d==="/$"){if(s===0){on=Dr(a.nextSibling);break e}s--}else d!=="$"&&d!=="$!"&&d!=="$?"||s++;a=a.nextSibling}on=null}}else on=Dn?Dr(a.stateNode.nextSibling):null;return!0}function Zo(){on=Dn=null,ft=!1}function Wo(a){vr===null?vr=[a]:vr.push(a)}var qo=Error(r(460)),tN=Error(r(474)),xA={then:function(){}};function nN(a){return a=a.status,a==="fulfilled"||a==="rejected"}function Od(){}function rN(a,s,d){switch(d=a[d],d===void 0?a.push(s):d!==s&&(s.then(Od,Od),s=d),s.status){case"fulfilled":return s.value;case"rejected":throw a=s.reason,a===qo?Error(r(483)):a;default:if(typeof s.status=="string")s.then(Od,Od);else{if(a=_t,a!==null&&100<a.shellSuspendCounter)throw Error(r(482));a=s,a.status="pending",a.then(function(A){if(s.status==="pending"){var p=s;p.status="fulfilled",p.value=A}},function(A){if(s.status==="pending"){var p=s;p.status="rejected",p.reason=A}})}switch(s.status){case"fulfilled":return s.value;case"rejected":throw a=s.reason,a===qo?Error(r(483)):a}throw Xo=s,qo}}var Xo=null;function iN(){if(Xo===null)throw Error(r(459));var a=Xo;return Xo=null,a}var ls=null,Qo=0;function Ld(a){var s=Qo;return Qo+=1,ls===null&&(ls=[]),rN(ls,a,s)}function Jo(a,s){s=s.props.ref,a.ref=s!==void 0?s:null}function wd(a,s){throw s.$$typeof===o?Error(r(525)):(a=Object.prototype.toString.call(s),Error(r(31,a==="[object Object]"?"object with keys {"+Object.keys(s).join(", ")+"}":a)))}function uN(a){var s=a._init;return s(a._payload)}function aN(a){function s(Y,z){if(a){var q=Y.deletions;q===null?(Y.deletions=[z],Y.flags|=16):q.push(z)}}function d(Y,z){if(!a)return null;for(;z!==null;)s(Y,z),z=z.sibling;return null}function A(Y){for(var z=new Map;Y!==null;)Y.key!==null?z.set(Y.key,Y):z.set(Y.index,Y),Y=Y.sibling;return z}function p(Y,z){return Y=uu(Y,z),Y.index=0,Y.sibling=null,Y}function I(Y,z,q){return Y.index=q,a?(q=Y.alternate,q!==null?(q=q.index,q<z?(Y.flags|=33554434,z):q):(Y.flags|=33554434,z)):(Y.flags|=1048576,z)}function T(Y){return a&&Y.alternate===null&&(Y.flags|=33554434),Y}function F(Y,z,q,le){return z===null||z.tag!==6?(z=Cm(q,Y.mode,le),z.return=Y,z):(z=p(z,q),z.return=Y,z)}function M(Y,z,q,le){var Te=q.type;return Te===f?se(Y,z,q.props.children,le,q.key):z!==null&&(z.elementType===Te||typeof Te=="object"&&Te!==null&&Te.$$typeof===D&&uN(Te)===z.type)?(z=p(z,q.props),Jo(z,q),z.return=Y,z):(z=Jd(q.type,q.key,q.props,null,Y.mode,le),Jo(z,q),z.return=Y,z)}function K(Y,z,q,le){return z===null||z.tag!==4||z.stateNode.containerInfo!==q.containerInfo||z.stateNode.implementation!==q.implementation?(z=vm(q,Y.mode,le),z.return=Y,z):(z=p(z,q.children||[]),z.return=Y,z)}function se(Y,z,q,le,Te){return z===null||z.tag!==7?(z=sa(q,Y.mode,le,Te),z.return=Y,z):(z=p(z,q),z.return=Y,z)}function he(Y,z,q){if(typeof z=="string"&&z!==""||typeof z=="number"||typeof z=="bigint")return z=Cm(""+z,Y.mode,q),z.return=Y,z;if(typeof z=="object"&&z!==null){switch(z.$$typeof){case l:return q=Jd(z.type,z.key,z.props,null,Y.mode,q),Jo(q,z),q.return=Y,q;case c:return z=vm(z,Y.mode,q),z.return=Y,z;case D:var le=z._init;return z=le(z._payload),he(Y,z,q)}if(re(z)||B(z))return z=sa(z,Y.mode,q,null),z.return=Y,z;if(typeof z.then=="function")return he(Y,Ld(z),q);if(z.$$typeof===_)return he(Y,qd(Y,z),q);wd(Y,z)}return null}function J(Y,z,q,le){var Te=z!==null?z.key:null;if(typeof q=="string"&&q!==""||typeof q=="number"||typeof q=="bigint")return Te!==null?null:F(Y,z,""+q,le);if(typeof q=="object"&&q!==null){switch(q.$$typeof){case l:return q.key===Te?M(Y,z,q,le):null;case c:return q.key===Te?K(Y,z,q,le):null;case D:return Te=q._init,q=Te(q._payload),J(Y,z,q,le)}if(re(q)||B(q))return Te!==null?null:se(Y,z,q,le,null);if(typeof q.then=="function")return J(Y,z,Ld(q),le);if(q.$$typeof===_)return J(Y,z,qd(Y,q),le);wd(Y,q)}return null}function ue(Y,z,q,le,Te){if(typeof le=="string"&&le!==""||typeof le=="number"||typeof le=="bigint")return Y=Y.get(q)||null,F(z,Y,""+le,Te);if(typeof le=="object"&&le!==null){switch(le.$$typeof){case l:return Y=Y.get(le.key===null?q:le.key)||null,M(z,Y,le,Te);case c:return Y=Y.get(le.key===null?q:le.key)||null,K(z,Y,le,Te);case D:var rt=le._init;return le=rt(le._payload),ue(Y,z,q,le,Te)}if(re(le)||B(le))return Y=Y.get(q)||null,se(z,Y,le,Te,null);if(typeof le.then=="function")return ue(Y,z,q,Ld(le),Te);if(le.$$typeof===_)return ue(Y,z,q,qd(z,le),Te);wd(z,le)}return null}function Le(Y,z,q,le){for(var Te=null,rt=null,Pe=z,He=z=0,rn=null;Pe!==null&&He<q.length;He++){Pe.index>He?(rn=Pe,Pe=null):rn=Pe.sibling;var ht=J(Y,Pe,q[He],le);if(ht===null){Pe===null&&(Pe=rn);break}a&&Pe&&ht.alternate===null&&s(Y,Pe),z=I(ht,z,He),rt===null?Te=ht:rt.sibling=ht,rt=ht,Pe=rn}if(He===q.length)return d(Y,Pe),ft&&qu(Y,He),Te;if(Pe===null){for(;He<q.length;He++)Pe=he(Y,q[He],le),Pe!==null&&(z=I(Pe,z,He),rt===null?Te=Pe:rt.sibling=Pe,rt=Pe);return ft&&qu(Y,He),Te}for(Pe=A(Pe);He<q.length;He++)rn=ue(Pe,Y,He,q[He],le),rn!==null&&(a&&rn.alternate!==null&&Pe.delete(rn.key===null?He:rn.key),z=I(rn,z,He),rt===null?Te=rn:rt.sibling=rn,rt=rn);return a&&Pe.forEach(function(fu){return s(Y,fu)}),ft&&qu(Y,He),Te}function Ye(Y,z,q,le){if(q==null)throw Error(r(151));for(var Te=null,rt=null,Pe=z,He=z=0,rn=null,ht=q.next();Pe!==null&&!ht.done;He++,ht=q.next()){Pe.index>He?(rn=Pe,Pe=null):rn=Pe.sibling;var fu=J(Y,Pe,ht.value,le);if(fu===null){Pe===null&&(Pe=rn);break}a&&Pe&&fu.alternate===null&&s(Y,Pe),z=I(fu,z,He),rt===null?Te=fu:rt.sibling=fu,rt=fu,Pe=rn}if(ht.done)return d(Y,Pe),ft&&qu(Y,He),Te;if(Pe===null){for(;!ht.done;He++,ht=q.next())ht=he(Y,ht.value,le),ht!==null&&(z=I(ht,z,He),rt===null?Te=ht:rt.sibling=ht,rt=ht);return ft&&qu(Y,He),Te}for(Pe=A(Pe);!ht.done;He++,ht=q.next())ht=ue(Pe,Y,He,ht.value,le),ht!==null&&(a&&ht.alternate!==null&&Pe.delete(ht.key===null?He:ht.key),z=I(ht,z,He),rt===null?Te=ht:rt.sibling=ht,rt=ht);return a&&Pe.forEach(function(jL){return s(Y,jL)}),ft&&qu(Y,He),Te}function Ot(Y,z,q,le){if(typeof q=="object"&&q!==null&&q.type===f&&q.key===null&&(q=q.props.children),typeof q=="object"&&q!==null){switch(q.$$typeof){case l:e:{for(var Te=q.key;z!==null;){if(z.key===Te){if(Te=q.type,Te===f){if(z.tag===7){d(Y,z.sibling),le=p(z,q.props.children),le.return=Y,Y=le;break e}}else if(z.elementType===Te||typeof Te=="object"&&Te!==null&&Te.$$typeof===D&&uN(Te)===z.type){d(Y,z.sibling),le=p(z,q.props),Jo(le,q),le.return=Y,Y=le;break e}d(Y,z);break}else s(Y,z);z=z.sibling}q.type===f?(le=sa(q.props.children,Y.mode,le,q.key),le.return=Y,Y=le):(le=Jd(q.type,q.key,q.props,null,Y.mode,le),Jo(le,q),le.return=Y,Y=le)}return T(Y);case c:e:{for(Te=q.key;z!==null;){if(z.key===Te)if(z.tag===4&&z.stateNode.containerInfo===q.containerInfo&&z.stateNode.implementation===q.implementation){d(Y,z.sibling),le=p(z,q.children||[]),le.return=Y,Y=le;break e}else{d(Y,z);break}else s(Y,z);z=z.sibling}le=vm(q,Y.mode,le),le.return=Y,Y=le}return T(Y);case D:return Te=q._init,q=Te(q._payload),Ot(Y,z,q,le)}if(re(q))return Le(Y,z,q,le);if(B(q)){if(Te=B(q),typeof Te!="function")throw Error(r(150));return q=Te.call(q),Ye(Y,z,q,le)}if(typeof q.then=="function")return Ot(Y,z,Ld(q),le);if(q.$$typeof===_)return Ot(Y,z,qd(Y,q),le);wd(Y,q)}return typeof q=="string"&&q!==""||typeof q=="number"||typeof q=="bigint"?(q=""+q,z!==null&&z.tag===6?(d(Y,z.sibling),le=p(z,q),le.return=Y,Y=le):(d(Y,z),le=Cm(q,Y.mode,le),le.return=Y,Y=le),T(Y)):d(Y,z)}return function(Y,z,q,le){try{Qo=0;var Te=Ot(Y,z,q,le);return ls=null,Te}catch(Pe){if(Pe===qo)throw Pe;var rt=dr(29,Pe,null,Y.mode);return rt.lanes=le,rt.return=Y,rt}finally{}}}var Qu=aN(!0),sN=aN(!1),cs=ve(null),Md=ve(0);function oN(a,s){a=Ii,we(Md,a),we(cs,s),Ii=a|s.baseLanes}function BA(){we(Md,Ii),we(cs,cs.current)}function FA(){Ii=Md.current,Ve(cs),Ve(Md)}var or=ve(null),kr=null;function Zi(a){var s=a.alternate;we(Yt,Yt.current&1),we(or,a),kr===null&&(s===null||cs.current!==null||s.memoizedState!==null)&&(kr=a)}function lN(a){if(a.tag===22){if(we(Yt,Yt.current),we(or,a),kr===null){var s=a.alternate;s!==null&&s.memoizedState!==null&&(kr=a)}}else Wi()}function Wi(){we(Yt,Yt.current),we(or,or.current)}function fi(a){Ve(or),kr===a&&(kr=null),Ve(Yt)}var Yt=ve(0);function Pd(a){for(var s=a;s!==null;){if(s.tag===13){var d=s.memoizedState;if(d!==null&&(d=d.dehydrated,d===null||d.data==="$?"||d.data==="$!"))return s}else if(s.tag===19&&s.memoizedProps.revealOrder!==void 0){if((s.flags&128)!==0)return s}else if(s.child!==null){s.child.return=s,s=s.child;continue}if(s===a)break;for(;s.sibling===null;){if(s.return===null||s.return===a)return null;s=s.return}s.sibling.return=s.return,s=s.sibling}return null}var xO=typeof AbortController<"u"?AbortController:function(){var a=[],s=this.signal={aborted:!1,addEventListener:function(d,A){a.push(A)}};this.abort=function(){s.aborted=!0,a.forEach(function(d){return d()})}},BO=e.unstable_scheduleCallback,FO=e.unstable_NormalPriority,Zt={$$typeof:_,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function OA(){return{controller:new xO,data:new Map,refCount:0}}function el(a){a.refCount--,a.refCount===0&&BO(FO,function(){a.controller.abort()})}var tl=null,LA=0,ds=0,fs=null;function OO(a,s){if(tl===null){var d=tl=[];LA=0,ds=km(),fs={status:"pending",value:void 0,then:function(A){d.push(A)}}}return LA++,s.then(cN,cN),s}function cN(){if(--LA===0&&tl!==null){fs!==null&&(fs.status="fulfilled");var a=tl;tl=null,ds=0,fs=null;for(var s=0;s<a.length;s++)(0,a[s])()}}function LO(a,s){var d=[],A={status:"pending",value:null,reason:null,then:function(p){d.push(p)}};return a.then(function(){A.status="fulfilled",A.value=s;for(var p=0;p<d.length;p++)(0,d[p])(s)},function(p){for(A.status="rejected",A.reason=p,p=0;p<d.length;p++)(0,d[p])(void 0)}),A}var dN=U.S;U.S=function(a,s){typeof s=="object"&&s!==null&&typeof s.then=="function"&&OO(a,s),dN!==null&&dN(a,s)};var Ju=ve(null);function wA(){var a=Ju.current;return a!==null?a:_t.pooledCache}function Hd(a,s){s===null?we(Ju,Ju.current):we(Ju,s.pool)}function fN(){var a=wA();return a===null?null:{parent:Zt._currentValue,pool:a}}var qi=0,tt=null,mt=null,Vt=null,Ud=!1,hs=!1,ea=!1,kd=0,nl=0,As=null,wO=0;function Ht(){throw Error(r(321))}function MA(a,s){if(s===null)return!1;for(var d=0;d<s.length&&d<a.length;d++)if(!jn(a[d],s[d]))return!1;return!0}function PA(a,s,d,A,p,I){return qi=I,tt=s,s.memoizedState=null,s.updateQueue=null,s.lanes=0,U.H=a===null||a.memoizedState===null?ta:Xi,ea=!1,I=d(A,p),ea=!1,hs&&(I=AN(s,d,A,p)),hN(a),I}function hN(a){U.H=Gr;var s=mt!==null&&mt.next!==null;if(qi=0,Vt=mt=tt=null,Ud=!1,nl=0,As=null,s)throw Error(r(300));a===null||tn||(a=a.dependencies,a!==null&&Wd(a)&&(tn=!0))}function AN(a,s,d,A){tt=a;var p=0;do{if(hs&&(As=null),nl=0,hs=!1,25<=p)throw Error(r(301));if(p+=1,Vt=mt=null,a.updateQueue!=null){var I=a.updateQueue;I.lastEffect=null,I.events=null,I.stores=null,I.memoCache!=null&&(I.memoCache.index=0)}U.H=na,I=s(d,A)}while(hs);return I}function MO(){var a=U.H,s=a.useState()[0];return s=typeof s.then=="function"?rl(s):s,a=a.useState()[0],(mt!==null?mt.memoizedState:null)!==a&&(tt.flags|=1024),s}function HA(){var a=kd!==0;return kd=0,a}function UA(a,s,d){s.updateQueue=a.updateQueue,s.flags&=-2053,a.lanes&=~d}function kA(a){if(Ud){for(a=a.memoizedState;a!==null;){var s=a.queue;s!==null&&(s.pending=null),a=a.next}Ud=!1}qi=0,Vt=mt=tt=null,hs=!1,nl=kd=0,As=null}function wn(){var a={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Vt===null?tt.memoizedState=Vt=a:Vt=Vt.next=a,Vt}function jt(){if(mt===null){var a=tt.alternate;a=a!==null?a.memoizedState:null}else a=mt.next;var s=Vt===null?tt.memoizedState:Vt.next;if(s!==null)Vt=s,mt=a;else{if(a===null)throw tt.alternate===null?Error(r(467)):Error(r(310));mt=a,a={memoizedState:mt.memoizedState,baseState:mt.baseState,baseQueue:mt.baseQueue,queue:mt.queue,next:null},Vt===null?tt.memoizedState=Vt=a:Vt=Vt.next=a}return Vt}var Gd;Gd=function(){return{lastEffect:null,events:null,stores:null,memoCache:null}};function rl(a){var s=nl;return nl+=1,As===null&&(As=[]),a=rN(As,a,s),s=tt,(Vt===null?s.memoizedState:Vt.next)===null&&(s=s.alternate,U.H=s===null||s.memoizedState===null?ta:Xi),a}function Vd(a){if(a!==null&&typeof a=="object"){if(typeof a.then=="function")return rl(a);if(a.$$typeof===_)return En(a)}throw Error(r(438,String(a)))}function GA(a){var s=null,d=tt.updateQueue;if(d!==null&&(s=d.memoCache),s==null){var A=tt.alternate;A!==null&&(A=A.updateQueue,A!==null&&(A=A.memoCache,A!=null&&(s={data:A.data.map(function(p){return p.slice()}),index:0})))}if(s==null&&(s={data:[],index:0}),d===null&&(d=Gd(),tt.updateQueue=d),d.memoCache=s,d=s.data[s.index],d===void 0)for(d=s.data[s.index]=Array(a),A=0;A<a;A++)d[A]=L;return s.index++,d}function hi(a,s){return typeof s=="function"?s(a):s}function jd(a){var s=jt();return VA(s,mt,a)}function VA(a,s,d){var A=a.queue;if(A===null)throw Error(r(311));A.lastRenderedReducer=d;var p=a.baseQueue,I=A.pending;if(I!==null){if(p!==null){var T=p.next;p.next=I.next,I.next=T}s.baseQueue=p=I,A.pending=null}if(I=a.baseState,p===null)a.memoizedState=I;else{s=p.next;var F=T=null,M=null,K=s,se=!1;do{var he=K.lane&-536870913;if(he!==K.lane?(ct&he)===he:(qi&he)===he){var J=K.revertLane;if(J===0)M!==null&&(M=M.next={lane:0,revertLane:0,action:K.action,hasEagerState:K.hasEagerState,eagerState:K.eagerState,next:null}),he===ds&&(se=!0);else if((qi&J)===J){K=K.next,J===ds&&(se=!0);continue}else he={lane:0,revertLane:K.revertLane,action:K.action,hasEagerState:K.hasEagerState,eagerState:K.eagerState,next:null},M===null?(F=M=he,T=I):M=M.next=he,tt.lanes|=J,au|=J;he=K.action,ea&&d(I,he),I=K.hasEagerState?K.eagerState:d(I,he)}else J={lane:he,revertLane:K.revertLane,action:K.action,hasEagerState:K.hasEagerState,eagerState:K.eagerState,next:null},M===null?(F=M=J,T=I):M=M.next=J,tt.lanes|=he,au|=he;K=K.next}while(K!==null&&K!==s);if(M===null?T=I:M.next=F,!jn(I,a.memoizedState)&&(tn=!0,se&&(d=fs,d!==null)))throw d;a.memoizedState=I,a.baseState=T,a.baseQueue=M,A.lastRenderedState=I}return p===null&&(A.lanes=0),[a.memoizedState,A.dispatch]}function jA(a){var s=jt(),d=s.queue;if(d===null)throw Error(r(311));d.lastRenderedReducer=a;var A=d.dispatch,p=d.pending,I=s.memoizedState;if(p!==null){d.pending=null;var T=p=p.next;do I=a(I,T.action),T=T.next;while(T!==p);jn(I,s.memoizedState)||(tn=!0),s.memoizedState=I,s.baseQueue===null&&(s.baseState=I),d.lastRenderedState=I}return[I,A]}function mN(a,s,d){var A=tt,p=jt(),I=ft;if(I){if(d===void 0)throw Error(r(407));d=d()}else d=s();var T=!jn((mt||p).memoizedState,d);if(T&&(p.memoizedState=d,tn=!0),p=p.queue,$A(gN.bind(null,A,p,a),[a]),p.getSnapshot!==s||T||Vt!==null&&Vt.memoizedState.tag&1){if(A.flags|=2048,ms(9,EN.bind(null,A,p,d,s),{destroy:void 0},null),_t===null)throw Error(r(349));I||(qi&60)!==0||pN(A,s,d)}return d}function pN(a,s,d){a.flags|=16384,a={getSnapshot:s,value:d},s=tt.updateQueue,s===null?(s=Gd(),tt.updateQueue=s,s.stores=[a]):(d=s.stores,d===null?s.stores=[a]:d.push(a))}function EN(a,s,d,A){s.value=d,s.getSnapshot=A,_N(s)&&SN(a)}function gN(a,s,d){return d(function(){_N(s)&&SN(a)})}function _N(a){var s=a.getSnapshot;a=a.value;try{var d=s();return!jn(a,d)}catch{return!0}}function SN(a){var s=Yi(a,2);s!==null&&Tn(s,a,2)}function zA(a){var s=wn();if(typeof a=="function"){var d=a;if(a=d(),ea){zi(!0);try{d()}finally{zi(!1)}}}return s.memoizedState=s.baseState=a,s.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:hi,lastRenderedState:a},s}function NN(a,s,d,A){return a.baseState=d,VA(a,mt,typeof A=="function"?A:hi)}function PO(a,s,d,A,p){if($d(a))throw Error(r(485));if(a=s.action,a!==null){var I={payload:p,action:a,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(T){I.listeners.push(T)}};U.T!==null?d(!0):I.isTransition=!1,A(I),d=s.pending,d===null?(I.next=s.pending=I,IN(s,I)):(I.next=d.next,s.pending=d.next=I)}}function IN(a,s){var d=s.action,A=s.payload,p=a.state;if(s.isTransition){var I=U.T,T={};U.T=T;try{var F=d(p,A),M=U.S;M!==null&&M(T,F),yN(a,s,F)}catch(K){KA(a,s,K)}finally{U.T=I}}else try{I=d(p,A),yN(a,s,I)}catch(K){KA(a,s,K)}}function yN(a,s,d){d!==null&&typeof d=="object"&&typeof d.then=="function"?d.then(function(A){CN(a,s,A)},function(A){return KA(a,s,A)}):CN(a,s,d)}function CN(a,s,d){s.status="fulfilled",s.value=d,vN(s),a.state=d,s=a.pending,s!==null&&(d=s.next,d===s?a.pending=null:(d=d.next,s.next=d,IN(a,d)))}function KA(a,s,d){var A=a.pending;if(a.pending=null,A!==null){A=A.next;do s.status="rejected",s.reason=d,vN(s),s=s.next;while(s!==A)}a.action=null}function vN(a){a=a.listeners;for(var s=0;s<a.length;s++)(0,a[s])()}function RN(a,s){return s}function DN(a,s){if(ft){var d=_t.formState;if(d!==null){e:{var A=tt;if(ft){if(on){t:{for(var p=on,I=Ur;p.nodeType!==8;){if(!I){p=null;break t}if(p=Dr(p.nextSibling),p===null){p=null;break t}}I=p.data,p=I==="F!"||I==="F"?p:null}if(p){on=Dr(p.nextSibling),A=p.data==="F!";break e}}Xu(A)}A=!1}A&&(s=d[0])}}return d=wn(),d.memoizedState=d.baseState=s,A={pending:null,lanes:0,dispatch:null,lastRenderedReducer:RN,lastRenderedState:s},d.queue=A,d=KN.bind(null,tt,A),A.dispatch=d,A=zA(!1),I=XA.bind(null,tt,!1,A.queue),A=wn(),p={state:s,dispatch:null,action:a,pending:null},A.queue=p,d=PO.bind(null,tt,p,I,d),p.dispatch=d,A.memoizedState=a,[s,d,!1]}function TN(a){var s=jt();return bN(s,mt,a)}function bN(a,s,d){s=VA(a,s,RN)[0],a=jd(hi)[0],s=typeof s=="object"&&s!==null&&typeof s.then=="function"?rl(s):s;var A=jt(),p=A.queue,I=p.dispatch;return d!==A.memoizedState&&(tt.flags|=2048,ms(9,HO.bind(null,p,d),{destroy:void 0},null)),[s,I,a]}function HO(a,s){a.action=s}function xN(a){var s=jt(),d=mt;if(d!==null)return bN(s,d,a);jt(),s=s.memoizedState,d=jt();var A=d.queue.dispatch;return d.memoizedState=a,[s,A,!1]}function ms(a,s,d,A){return a={tag:a,create:s,inst:d,deps:A,next:null},s=tt.updateQueue,s===null&&(s=Gd(),tt.updateQueue=s),d=s.lastEffect,d===null?s.lastEffect=a.next=a:(A=d.next,d.next=a,a.next=A,s.lastEffect=a),a}function BN(){return jt().memoizedState}function zd(a,s,d,A){var p=wn();tt.flags|=a,p.memoizedState=ms(1|s,d,{destroy:void 0},A===void 0?null:A)}function Kd(a,s,d,A){var p=jt();A=A===void 0?null:A;var I=p.memoizedState.inst;mt!==null&&A!==null&&MA(A,mt.memoizedState.deps)?p.memoizedState=ms(s,d,I,A):(tt.flags|=a,p.memoizedState=ms(1|s,d,I,A))}function FN(a,s){zd(8390656,8,a,s)}function $A(a,s){Kd(2048,8,a,s)}function ON(a,s){return Kd(4,2,a,s)}function LN(a,s){return Kd(4,4,a,s)}function wN(a,s){if(typeof s=="function"){a=a();var d=s(a);return function(){typeof d=="function"?d():s(null)}}if(s!=null)return a=a(),s.current=a,function(){s.current=null}}function MN(a,s,d){d=d!=null?d.concat([a]):null,Kd(4,4,wN.bind(null,s,a),d)}function YA(){}function PN(a,s){var d=jt();s=s===void 0?null:s;var A=d.memoizedState;return s!==null&&MA(s,A[1])?A[0]:(d.memoizedState=[a,s],a)}function HN(a,s){var d=jt();s=s===void 0?null:s;var A=d.memoizedState;if(s!==null&&MA(s,A[1]))return A[0];if(A=a(),ea){zi(!0);try{a()}finally{zi(!1)}}return d.memoizedState=[A,s],A}function ZA(a,s,d){return d===void 0||(qi&1073741824)!==0?a.memoizedState=s:(a.memoizedState=d,a=kI(),tt.lanes|=a,au|=a,d)}function UN(a,s,d,A){return jn(d,s)?d:cs.current!==null?(a=ZA(a,d,A),jn(a,s)||(tn=!0),a):(qi&42)===0?(tn=!0,a.memoizedState=d):(a=kI(),tt.lanes|=a,au|=a,s)}function kN(a,s,d,A,p){var I=ne.p;ne.p=I!==0&&8>I?I:8;var T=U.T,F={};U.T=F,XA(a,!1,s,d);try{var M=p(),K=U.S;if(K!==null&&K(F,M),M!==null&&typeof M=="object"&&typeof M.then=="function"){var se=LO(M,A);il(a,s,se,Yn(a))}else il(a,s,A,Yn(a))}catch(he){il(a,s,{then:function(){},status:"rejected",reason:he},Yn())}finally{ne.p=I,U.T=T}}function UO(){}function WA(a,s,d,A){if(a.tag!==5)throw Error(r(476));var p=GN(a).queue;kN(a,p,s,de,d===null?UO:function(){return VN(a),d(A)})}function GN(a){var s=a.memoizedState;if(s!==null)return s;s={memoizedState:de,baseState:de,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:hi,lastRenderedState:de},next:null};var d={};return s.next={memoizedState:d,baseState:d,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:hi,lastRenderedState:d},next:null},a.memoizedState=s,a=a.alternate,a!==null&&(a.memoizedState=s),s}function VN(a){var s=GN(a).next.queue;il(a,s,{},Yn())}function qA(){return En(Cl)}function jN(){return jt().memoizedState}function zN(){return jt().memoizedState}function kO(a){for(var s=a.return;s!==null;){switch(s.tag){case 24:case 3:var d=Yn();a=eu(d);var A=tu(s,a,d);A!==null&&(Tn(A,s,d),sl(A,s,d)),s={cache:OA()},a.payload=s;return}s=s.return}}function GO(a,s,d){var A=Yn();d={lane:A,revertLane:0,action:d,hasEagerState:!1,eagerState:null,next:null},$d(a)?$N(s,d):(d=RA(a,s,d,A),d!==null&&(Tn(d,a,A),YN(d,s,A)))}function KN(a,s,d){var A=Yn();il(a,s,d,A)}function il(a,s,d,A){var p={lane:A,revertLane:0,action:d,hasEagerState:!1,eagerState:null,next:null};if($d(a))$N(s,p);else{var I=a.alternate;if(a.lanes===0&&(I===null||I.lanes===0)&&(I=s.lastRenderedReducer,I!==null))try{var T=s.lastRenderedState,F=I(T,d);if(p.hasEagerState=!0,p.eagerState=F,jn(F,T))return bd(a,s,p,0),_t===null&&Td(),!1}catch{}finally{}if(d=RA(a,s,p,A),d!==null)return Tn(d,a,A),YN(d,s,A),!0}return!1}function XA(a,s,d,A){if(A={lane:2,revertLane:km(),action:A,hasEagerState:!1,eagerState:null,next:null},$d(a)){if(s)throw Error(r(479))}else s=RA(a,d,A,2),s!==null&&Tn(s,a,2)}function $d(a){var s=a.alternate;return a===tt||s!==null&&s===tt}function $N(a,s){hs=Ud=!0;var d=a.pending;d===null?s.next=s:(s.next=d.next,d.next=s),a.pending=s}function YN(a,s,d){if((d&4194176)!==0){var A=s.lanes;A&=a.pendingLanes,d|=A,s.lanes=d,iS(a,d)}}var Gr={readContext:En,use:Vd,useCallback:Ht,useContext:Ht,useEffect:Ht,useImperativeHandle:Ht,useLayoutEffect:Ht,useInsertionEffect:Ht,useMemo:Ht,useReducer:Ht,useRef:Ht,useState:Ht,useDebugValue:Ht,useDeferredValue:Ht,useTransition:Ht,useSyncExternalStore:Ht,useId:Ht};Gr.useCacheRefresh=Ht,Gr.useMemoCache=Ht,Gr.useHostTransitionStatus=Ht,Gr.useFormState=Ht,Gr.useActionState=Ht,Gr.useOptimistic=Ht;var ta={readContext:En,use:Vd,useCallback:function(a,s){return wn().memoizedState=[a,s===void 0?null:s],a},useContext:En,useEffect:FN,useImperativeHandle:function(a,s,d){d=d!=null?d.concat([a]):null,zd(4194308,4,wN.bind(null,s,a),d)},useLayoutEffect:function(a,s){return zd(4194308,4,a,s)},useInsertionEffect:function(a,s){zd(4,2,a,s)},useMemo:function(a,s){var d=wn();s=s===void 0?null:s;var A=a();if(ea){zi(!0);try{a()}finally{zi(!1)}}return d.memoizedState=[A,s],A},useReducer:function(a,s,d){var A=wn();if(d!==void 0){var p=d(s);if(ea){zi(!0);try{d(s)}finally{zi(!1)}}}else p=s;return A.memoizedState=A.baseState=p,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:a,lastRenderedState:p},A.queue=a,a=a.dispatch=GO.bind(null,tt,a),[A.memoizedState,a]},useRef:function(a){var s=wn();return a={current:a},s.memoizedState=a},useState:function(a){a=zA(a);var s=a.queue,d=KN.bind(null,tt,s);return s.dispatch=d,[a.memoizedState,d]},useDebugValue:YA,useDeferredValue:function(a,s){var d=wn();return ZA(d,a,s)},useTransition:function(){var a=zA(!1);return a=kN.bind(null,tt,a.queue,!0,!1),wn().memoizedState=a,[!1,a]},useSyncExternalStore:function(a,s,d){var A=tt,p=wn();if(ft){if(d===void 0)throw Error(r(407));d=d()}else{if(d=s(),_t===null)throw Error(r(349));(ct&60)!==0||pN(A,s,d)}p.memoizedState=d;var I={value:d,getSnapshot:s};return p.queue=I,FN(gN.bind(null,A,I,a),[a]),A.flags|=2048,ms(9,EN.bind(null,A,I,d,s),{destroy:void 0},null),d},useId:function(){var a=wn(),s=_t.identifierPrefix;if(ft){var d=di,A=ci;d=(A&~(1<<32-Vn(A)-1)).toString(32)+d,s=":"+s+"R"+d,d=kd++,0<d&&(s+="H"+d.toString(32)),s+=":"}else d=wO++,s=":"+s+"r"+d.toString(32)+":";return a.memoizedState=s},useCacheRefresh:function(){return wn().memoizedState=kO.bind(null,tt)}};ta.useMemoCache=GA,ta.useHostTransitionStatus=qA,ta.useFormState=DN,ta.useActionState=DN,ta.useOptimistic=function(a){var s=wn();s.memoizedState=s.baseState=a;var d={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return s.queue=d,s=XA.bind(null,tt,!0,d),d.dispatch=s,[a,s]};var Xi={readContext:En,use:Vd,useCallback:PN,useContext:En,useEffect:$A,useImperativeHandle:MN,useInsertionEffect:ON,useLayoutEffect:LN,useMemo:HN,useReducer:jd,useRef:BN,useState:function(){return jd(hi)},useDebugValue:YA,useDeferredValue:function(a,s){var d=jt();return UN(d,mt.memoizedState,a,s)},useTransition:function(){var a=jd(hi)[0],s=jt().memoizedState;return[typeof a=="boolean"?a:rl(a),s]},useSyncExternalStore:mN,useId:jN};Xi.useCacheRefresh=zN,Xi.useMemoCache=GA,Xi.useHostTransitionStatus=qA,Xi.useFormState=TN,Xi.useActionState=TN,Xi.useOptimistic=function(a,s){var d=jt();return NN(d,mt,a,s)};var na={readContext:En,use:Vd,useCallback:PN,useContext:En,useEffect:$A,useImperativeHandle:MN,useInsertionEffect:ON,useLayoutEffect:LN,useMemo:HN,useReducer:jA,useRef:BN,useState:function(){return jA(hi)},useDebugValue:YA,useDeferredValue:function(a,s){var d=jt();return mt===null?ZA(d,a,s):UN(d,mt.memoizedState,a,s)},useTransition:function(){var a=jA(hi)[0],s=jt().memoizedState;return[typeof a=="boolean"?a:rl(a),s]},useSyncExternalStore:mN,useId:jN};na.useCacheRefresh=zN,na.useMemoCache=GA,na.useHostTransitionStatus=qA,na.useFormState=xN,na.useActionState=xN,na.useOptimistic=function(a,s){var d=jt();return mt!==null?NN(d,mt,a,s):(d.baseState=a,[a,d.queue.dispatch])};function QA(a,s,d,A){s=a.memoizedState,d=d(A,s),d=d==null?s:G({},s,d),a.memoizedState=d,a.lanes===0&&(a.updateQueue.baseState=d)}var JA={isMounted:function(a){return(a=a._reactInternals)?Q(a)===a:!1},enqueueSetState:function(a,s,d){a=a._reactInternals;var A=Yn(),p=eu(A);p.payload=s,d!=null&&(p.callback=d),s=tu(a,p,A),s!==null&&(Tn(s,a,A),sl(s,a,A))},enqueueReplaceState:function(a,s,d){a=a._reactInternals;var A=Yn(),p=eu(A);p.tag=1,p.payload=s,d!=null&&(p.callback=d),s=tu(a,p,A),s!==null&&(Tn(s,a,A),sl(s,a,A))},enqueueForceUpdate:function(a,s){a=a._reactInternals;var d=Yn(),A=eu(d);A.tag=2,s!=null&&(A.callback=s),s=tu(a,A,d),s!==null&&(Tn(s,a,d),sl(s,a,d))}};function ZN(a,s,d,A,p,I,T){return a=a.stateNode,typeof a.shouldComponentUpdate=="function"?a.shouldComponentUpdate(A,I,T):s.prototype&&s.prototype.isPureReactComponent?!Ko(d,A)||!Ko(p,I):!0}function WN(a,s,d,A){a=s.state,typeof s.componentWillReceiveProps=="function"&&s.componentWillReceiveProps(d,A),typeof s.UNSAFE_componentWillReceiveProps=="function"&&s.UNSAFE_componentWillReceiveProps(d,A),s.state!==a&&JA.enqueueReplaceState(s,s.state,null)}function ra(a,s){var d=s;if("ref"in s){d={};for(var A in s)A!=="ref"&&(d[A]=s[A])}if(a=a.defaultProps){d===s&&(d=G({},d));for(var p in a)d[p]===void 0&&(d[p]=a[p])}return d}var Yd=typeof reportError=="function"?reportError:function(a){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var s=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof a=="object"&&a!==null&&typeof a.message=="string"?String(a.message):String(a),error:a});if(!window.dispatchEvent(s))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",a);return}console.error(a)};function qN(a){Yd(a)}function XN(a){console.error(a)}function QN(a){Yd(a)}function Zd(a,s){try{var d=a.onUncaughtError;d(s.value,{componentStack:s.stack})}catch(A){setTimeout(function(){throw A})}}function JN(a,s,d){try{var A=a.onCaughtError;A(d.value,{componentStack:d.stack,errorBoundary:s.tag===1?s.stateNode:null})}catch(p){setTimeout(function(){throw p})}}function em(a,s,d){return d=eu(d),d.tag=3,d.payload={element:null},d.callback=function(){Zd(a,s)},d}function eI(a){return a=eu(a),a.tag=3,a}function tI(a,s,d,A){var p=d.type.getDerivedStateFromError;if(typeof p=="function"){var I=A.value;a.payload=function(){return p(I)},a.callback=function(){JN(s,d,A)}}var T=d.stateNode;T!==null&&typeof T.componentDidCatch=="function"&&(a.callback=function(){JN(s,d,A),typeof p!="function"&&(su===null?su=new Set([this]):su.add(this));var F=A.stack;this.componentDidCatch(A.value,{componentStack:F!==null?F:""})})}function VO(a,s,d,A,p){if(d.flags|=32768,A!==null&&typeof A=="object"&&typeof A.then=="function"){if(s=d.alternate,s!==null&&al(s,d,p,!0),d=or.current,d!==null){switch(d.tag){case 13:return kr===null?wm():d.alternate===null&&Ft===0&&(Ft=3),d.flags&=-257,d.flags|=65536,d.lanes=p,A===xA?d.flags|=16384:(s=d.updateQueue,s===null?d.updateQueue=new Set([A]):s.add(A),Pm(a,A,p)),!1;case 22:return d.flags|=65536,A===xA?d.flags|=16384:(s=d.updateQueue,s===null?(s={transitions:null,markerInstances:null,retryQueue:new Set([A])},d.updateQueue=s):(d=s.retryQueue,d===null?s.retryQueue=new Set([A]):d.add(A)),Pm(a,A,p)),!1}throw Error(r(435,d.tag))}return Pm(a,A,p),wm(),!1}if(ft)return s=or.current,s!==null?((s.flags&65536)===0&&(s.flags|=256),s.flags|=65536,s.lanes=p,A!==bA&&(a=Error(r(422),{cause:A}),Wo(ur(a,d)))):(A!==bA&&(s=Error(r(423),{cause:A}),Wo(ur(s,d))),a=a.current.alternate,a.flags|=65536,p&=-p,a.lanes|=p,A=ur(A,d),p=em(a.stateNode,A,p),mm(a,p),Ft!==4&&(Ft=2)),!1;var I=Error(r(520),{cause:A});if(I=ur(I,d),ml===null?ml=[I]:ml.push(I),Ft!==4&&(Ft=2),s===null)return!0;A=ur(A,d),d=s;do{switch(d.tag){case 3:return d.flags|=65536,a=p&-p,d.lanes|=a,a=em(d.stateNode,A,a),mm(d,a),!1;case 1:if(s=d.type,I=d.stateNode,(d.flags&128)===0&&(typeof s.getDerivedStateFromError=="function"||I!==null&&typeof I.componentDidCatch=="function"&&(su===null||!su.has(I))))return d.flags|=65536,p&=-p,d.lanes|=p,p=eI(p),tI(p,a,d,A),mm(d,p),!1}d=d.return}while(d!==null);return!1}var nI=Error(r(461)),tn=!1;function ln(a,s,d,A){s.child=a===null?sN(s,null,d,A):Qu(s,a.child,d,A)}function rI(a,s,d,A,p){d=d.render;var I=s.ref;if("ref"in A){var T={};for(var F in A)F!=="ref"&&(T[F]=A[F])}else T=A;return ua(s),A=PA(a,s,d,T,I,p),F=HA(),a!==null&&!tn?(UA(a,s,p),Ai(a,s,p)):(ft&&F&&DA(s),s.flags|=1,ln(a,s,A,p),s.child)}function iI(a,s,d,A,p){if(a===null){var I=d.type;return typeof I=="function"&&!ym(I)&&I.defaultProps===void 0&&d.compare===null?(s.tag=15,s.type=I,uI(a,s,I,A,p)):(a=Jd(d.type,null,A,s,s.mode,p),a.ref=s.ref,a.return=s,s.child=a)}if(I=a.child,!lm(a,p)){var T=I.memoizedProps;if(d=d.compare,d=d!==null?d:Ko,d(T,A)&&a.ref===s.ref)return Ai(a,s,p)}return s.flags|=1,a=uu(I,A),a.ref=s.ref,a.return=s,s.child=a}function uI(a,s,d,A,p){if(a!==null){var I=a.memoizedProps;if(Ko(I,A)&&a.ref===s.ref)if(tn=!1,s.pendingProps=A=I,lm(a,p))(a.flags&131072)!==0&&(tn=!0);else return s.lanes=a.lanes,Ai(a,s,p)}return tm(a,s,d,A,p)}function aI(a,s,d){var A=s.pendingProps,p=A.children,I=(s.stateNode._pendingVisibility&2)!==0,T=a!==null?a.memoizedState:null;if(ul(a,s),A.mode==="hidden"||I){if((s.flags&128)!==0){if(A=T!==null?T.baseLanes|d:d,a!==null){for(p=s.child=a.child,I=0;p!==null;)I=I|p.lanes|p.childLanes,p=p.sibling;s.childLanes=I&~A}else s.childLanes=0,s.child=null;return sI(a,s,A,d)}if((d&536870912)!==0)s.memoizedState={baseLanes:0,cachePool:null},a!==null&&Hd(s,T!==null?T.cachePool:null),T!==null?oN(s,T):BA(),lN(s);else return s.lanes=s.childLanes=536870912,sI(a,s,T!==null?T.baseLanes|d:d,d)}else T!==null?(Hd(s,T.cachePool),oN(s,T),Wi(),s.memoizedState=null):(a!==null&&Hd(s,null),BA(),Wi());return ln(a,s,p,d),s.child}function sI(a,s,d,A){var p=wA();return p=p===null?null:{parent:Zt._currentValue,pool:p},s.memoizedState={baseLanes:d,cachePool:p},a!==null&&Hd(s,null),BA(),lN(s),a!==null&&al(a,s,A,!0),null}function ul(a,s){var d=s.ref;if(d===null)a!==null&&a.ref!==null&&(s.flags|=2097664);else{if(typeof d!="function"&&typeof d!="object")throw Error(r(284));(a===null||a.ref!==d)&&(s.flags|=2097664)}}function tm(a,s,d,A,p){return ua(s),d=PA(a,s,d,A,void 0,p),A=HA(),a!==null&&!tn?(UA(a,s,p),Ai(a,s,p)):(ft&&A&&DA(s),s.flags|=1,ln(a,s,d,p),s.child)}function oI(a,s,d,A,p,I){return ua(s),s.updateQueue=null,d=AN(s,A,d,p),hN(a),A=HA(),a!==null&&!tn?(UA(a,s,I),Ai(a,s,I)):(ft&&A&&DA(s),s.flags|=1,ln(a,s,d,I),s.child)}function lI(a,s,d,A,p){if(ua(s),s.stateNode===null){var I=as,T=d.contextType;typeof T=="object"&&T!==null&&(I=En(T)),I=new d(A,I),s.memoizedState=I.state!==null&&I.state!==void 0?I.state:null,I.updater=JA,s.stateNode=I,I._reactInternals=s,I=s.stateNode,I.props=A,I.state=s.memoizedState,I.refs={},hm(s),T=d.contextType,I.context=typeof T=="object"&&T!==null?En(T):as,I.state=s.memoizedState,T=d.getDerivedStateFromProps,typeof T=="function"&&(QA(s,d,T,A),I.state=s.memoizedState),typeof d.getDerivedStateFromProps=="function"||typeof I.getSnapshotBeforeUpdate=="function"||typeof I.UNSAFE_componentWillMount!="function"&&typeof I.componentWillMount!="function"||(T=I.state,typeof I.componentWillMount=="function"&&I.componentWillMount(),typeof I.UNSAFE_componentWillMount=="function"&&I.UNSAFE_componentWillMount(),T!==I.state&&JA.enqueueReplaceState(I,I.state,null),ll(s,A,I,p),ol(),I.state=s.memoizedState),typeof I.componentDidMount=="function"&&(s.flags|=4194308),A=!0}else if(a===null){I=s.stateNode;var F=s.memoizedProps,M=ra(d,F);I.props=M;var K=I.context,se=d.contextType;T=as,typeof se=="object"&&se!==null&&(T=En(se));var he=d.getDerivedStateFromProps;se=typeof he=="function"||typeof I.getSnapshotBeforeUpdate=="function",F=s.pendingProps!==F,se||typeof I.UNSAFE_componentWillReceiveProps!="function"&&typeof I.componentWillReceiveProps!="function"||(F||K!==T)&&WN(s,I,A,T),Ji=!1;var J=s.memoizedState;I.state=J,ll(s,A,I,p),ol(),K=s.memoizedState,F||J!==K||Ji?(typeof he=="function"&&(QA(s,d,he,A),K=s.memoizedState),(M=Ji||ZN(s,d,M,A,J,K,T))?(se||typeof I.UNSAFE_componentWillMount!="function"&&typeof I.componentWillMount!="function"||(typeof I.componentWillMount=="function"&&I.componentWillMount(),typeof I.UNSAFE_componentWillMount=="function"&&I.UNSAFE_componentWillMount()),typeof I.componentDidMount=="function"&&(s.flags|=4194308)):(typeof I.componentDidMount=="function"&&(s.flags|=4194308),s.memoizedProps=A,s.memoizedState=K),I.props=A,I.state=K,I.context=T,A=M):(typeof I.componentDidMount=="function"&&(s.flags|=4194308),A=!1)}else{I=s.stateNode,Am(a,s),T=s.memoizedProps,se=ra(d,T),I.props=se,he=s.pendingProps,J=I.context,K=d.contextType,M=as,typeof K=="object"&&K!==null&&(M=En(K)),F=d.getDerivedStateFromProps,(K=typeof F=="function"||typeof I.getSnapshotBeforeUpdate=="function")||typeof I.UNSAFE_componentWillReceiveProps!="function"&&typeof I.componentWillReceiveProps!="function"||(T!==he||J!==M)&&WN(s,I,A,M),Ji=!1,J=s.memoizedState,I.state=J,ll(s,A,I,p),ol();var ue=s.memoizedState;T!==he||J!==ue||Ji||a!==null&&a.dependencies!==null&&Wd(a.dependencies)?(typeof F=="function"&&(QA(s,d,F,A),ue=s.memoizedState),(se=Ji||ZN(s,d,se,A,J,ue,M)||a!==null&&a.dependencies!==null&&Wd(a.dependencies))?(K||typeof I.UNSAFE_componentWillUpdate!="function"&&typeof I.componentWillUpdate!="function"||(typeof I.componentWillUpdate=="function"&&I.componentWillUpdate(A,ue,M),typeof I.UNSAFE_componentWillUpdate=="function"&&I.UNSAFE_componentWillUpdate(A,ue,M)),typeof I.componentDidUpdate=="function"&&(s.flags|=4),typeof I.getSnapshotBeforeUpdate=="function"&&(s.flags|=1024)):(typeof I.componentDidUpdate!="function"||T===a.memoizedProps&&J===a.memoizedState||(s.flags|=4),typeof I.getSnapshotBeforeUpdate!="function"||T===a.memoizedProps&&J===a.memoizedState||(s.flags|=1024),s.memoizedProps=A,s.memoizedState=ue),I.props=A,I.state=ue,I.context=M,A=se):(typeof I.componentDidUpdate!="function"||T===a.memoizedProps&&J===a.memoizedState||(s.flags|=4),typeof I.getSnapshotBeforeUpdate!="function"||T===a.memoizedProps&&J===a.memoizedState||(s.flags|=1024),A=!1)}return I=A,ul(a,s),A=(s.flags&128)!==0,I||A?(I=s.stateNode,d=A&&typeof d.getDerivedStateFromError!="function"?null:I.render(),s.flags|=1,a!==null&&A?(s.child=Qu(s,a.child,null,p),s.child=Qu(s,null,d,p)):ln(a,s,d,p),s.memoizedState=I.state,a=s.child):a=Ai(a,s,p),a}function cI(a,s,d,A){return Zo(),s.flags|=256,ln(a,s,d,A),s.child}var nm={dehydrated:null,treeContext:null,retryLane:0};function rm(a){return{baseLanes:a,cachePool:fN()}}function im(a,s,d){return a=a!==null?a.childLanes&~d:0,s&&(a|=fr),a}function dI(a,s,d){var A=s.pendingProps,p=!1,I=(s.flags&128)!==0,T;if((T=I)||(T=a!==null&&a.memoizedState===null?!1:(Yt.current&2)!==0),T&&(p=!0,s.flags&=-129),T=(s.flags&32)!==0,s.flags&=-33,a===null){if(ft){if(p?Zi(s):Wi(),ft){var F=on,M;if(M=F){e:{for(M=F,F=Ur;M.nodeType!==8;){if(!F){F=null;break e}if(M=Dr(M.nextSibling),M===null){F=null;break e}}F=M}F!==null?(s.memoizedState={dehydrated:F,treeContext:Wu!==null?{id:ci,overflow:di}:null,retryLane:536870912},M=dr(18,null,null,0),M.stateNode=F,M.return=s,s.child=M,Dn=s,on=null,M=!0):M=!1}M||Xu(s)}if(F=s.memoizedState,F!==null&&(F=F.dehydrated,F!==null))return F.data==="$!"?s.lanes=16:s.lanes=536870912,null;fi(s)}return F=A.children,A=A.fallback,p?(Wi(),p=s.mode,F=am({mode:"hidden",children:F},p),A=sa(A,p,d,null),F.return=s,A.return=s,F.sibling=A,s.child=F,p=s.child,p.memoizedState=rm(d),p.childLanes=im(a,T,d),s.memoizedState=nm,A):(Zi(s),um(s,F))}if(M=a.memoizedState,M!==null&&(F=M.dehydrated,F!==null)){if(I)s.flags&256?(Zi(s),s.flags&=-257,s=sm(a,s,d)):s.memoizedState!==null?(Wi(),s.child=a.child,s.flags|=128,s=null):(Wi(),p=A.fallback,F=s.mode,A=am({mode:"visible",children:A.children},F),p=sa(p,F,d,null),p.flags|=2,A.return=s,p.return=s,A.sibling=p,s.child=A,Qu(s,a.child,null,d),A=s.child,A.memoizedState=rm(d),A.childLanes=im(a,T,d),s.memoizedState=nm,s=p);else if(Zi(s),F.data==="$!"){if(T=F.nextSibling&&F.nextSibling.dataset,T)var K=T.dgst;T=K,A=Error(r(419)),A.stack="",A.digest=T,Wo({value:A,source:null,stack:null}),s=sm(a,s,d)}else if(tn||al(a,s,d,!1),T=(d&a.childLanes)!==0,tn||T){if(T=_t,T!==null){if(A=d&-d,(A&42)!==0)A=1;else switch(A){case 2:A=1;break;case 8:A=4;break;case 32:A=16;break;case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:A=64;break;case 268435456:A=134217728;break;default:A=0}if(A=(A&(T.suspendedLanes|d))!==0?0:A,A!==0&&A!==M.retryLane)throw M.retryLane=A,Yi(a,A),Tn(T,a,A),nI}F.data==="$?"||wm(),s=sm(a,s,d)}else F.data==="$?"?(s.flags|=128,s.child=a.child,s=rL.bind(null,a),F._reactRetry=s,s=null):(a=M.treeContext,on=Dr(F.nextSibling),Dn=s,ft=!0,vr=null,Ur=!1,a!==null&&(ar[sr++]=ci,ar[sr++]=di,ar[sr++]=Wu,ci=a.id,di=a.overflow,Wu=s),s=um(s,A.children),s.flags|=4096);return s}return p?(Wi(),p=A.fallback,F=s.mode,M=a.child,K=M.sibling,A=uu(M,{mode:"hidden",children:A.children}),A.subtreeFlags=M.subtreeFlags&31457280,K!==null?p=uu(K,p):(p=sa(p,F,d,null),p.flags|=2),p.return=s,A.return=s,A.sibling=p,s.child=A,A=p,p=s.child,F=a.child.memoizedState,F===null?F=rm(d):(M=F.cachePool,M!==null?(K=Zt._currentValue,M=M.parent!==K?{parent:K,pool:K}:M):M=fN(),F={baseLanes:F.baseLanes|d,cachePool:M}),p.memoizedState=F,p.childLanes=im(a,T,d),s.memoizedState=nm,A):(Zi(s),d=a.child,a=d.sibling,d=uu(d,{mode:"visible",children:A.children}),d.return=s,d.sibling=null,a!==null&&(T=s.deletions,T===null?(s.deletions=[a],s.flags|=16):T.push(a)),s.child=d,s.memoizedState=null,d)}function um(a,s){return s=am({mode:"visible",children:s},a.mode),s.return=a,a.child=s}function am(a,s){return PI(a,s,0,null)}function sm(a,s,d){return Qu(s,a.child,null,d),a=um(s,s.pendingProps.children),a.flags|=2,s.memoizedState=null,a}function fI(a,s,d){a.lanes|=s;var A=a.alternate;A!==null&&(A.lanes|=s),dm(a.return,s,d)}function om(a,s,d,A,p){var I=a.memoizedState;I===null?a.memoizedState={isBackwards:s,rendering:null,renderingStartTime:0,last:A,tail:d,tailMode:p}:(I.isBackwards=s,I.rendering=null,I.renderingStartTime=0,I.last=A,I.tail=d,I.tailMode=p)}function hI(a,s,d){var A=s.pendingProps,p=A.revealOrder,I=A.tail;if(ln(a,s,A.children,d),A=Yt.current,(A&2)!==0)A=A&1|2,s.flags|=128;else{if(a!==null&&(a.flags&128)!==0)e:for(a=s.child;a!==null;){if(a.tag===13)a.memoizedState!==null&&fI(a,d,s);else if(a.tag===19)fI(a,d,s);else if(a.child!==null){a.child.return=a,a=a.child;continue}if(a===s)break e;for(;a.sibling===null;){if(a.return===null||a.return===s)break e;a=a.return}a.sibling.return=a.return,a=a.sibling}A&=1}switch(we(Yt,A),p){case"forwards":for(d=s.child,p=null;d!==null;)a=d.alternate,a!==null&&Pd(a)===null&&(p=d),d=d.sibling;d=p,d===null?(p=s.child,s.child=null):(p=d.sibling,d.sibling=null),om(s,!1,p,d,I);break;case"backwards":for(d=null,p=s.child,s.child=null;p!==null;){if(a=p.alternate,a!==null&&Pd(a)===null){s.child=p;break}a=p.sibling,p.sibling=d,d=p,p=a}om(s,!0,d,null,I);break;case"together":om(s,!1,null,null,void 0);break;default:s.memoizedState=null}return s.child}function Ai(a,s,d){if(a!==null&&(s.dependencies=a.dependencies),au|=s.lanes,(d&s.childLanes)===0)if(a!==null){if(al(a,s,d,!1),(d&s.childLanes)===0)return null}else return null;if(a!==null&&s.child!==a.child)throw Error(r(153));if(s.child!==null){for(a=s.child,d=uu(a,a.pendingProps),s.child=d,d.return=s;a.sibling!==null;)a=a.sibling,d=d.sibling=uu(a,a.pendingProps),d.return=s;d.sibling=null}return s.child}function lm(a,s){return(a.lanes&s)!==0?!0:(a=a.dependencies,!!(a!==null&&Wd(a)))}function jO(a,s,d){switch(s.tag){case 3:yr(s,s.stateNode.containerInfo),Qi(s,Zt,a.memoizedState.cache),Zo();break;case 27:case 5:Hr(s);break;case 4:yr(s,s.stateNode.containerInfo);break;case 10:Qi(s,s.type,s.memoizedProps.value);break;case 13:var A=s.memoizedState;if(A!==null)return A.dehydrated!==null?(Zi(s),s.flags|=128,null):(d&s.child.childLanes)!==0?dI(a,s,d):(Zi(s),a=Ai(a,s,d),a!==null?a.sibling:null);Zi(s);break;case 19:var p=(a.flags&128)!==0;if(A=(d&s.childLanes)!==0,A||(al(a,s,d,!1),A=(d&s.childLanes)!==0),p){if(A)return hI(a,s,d);s.flags|=128}if(p=s.memoizedState,p!==null&&(p.rendering=null,p.tail=null,p.lastEffect=null),we(Yt,Yt.current),A)break;return null;case 22:case 23:return s.lanes=0,aI(a,s,d);case 24:Qi(s,Zt,a.memoizedState.cache)}return Ai(a,s,d)}function AI(a,s,d){if(a!==null)if(a.memoizedProps!==s.pendingProps)tn=!0;else{if(!lm(a,d)&&(s.flags&128)===0)return tn=!1,jO(a,s,d);tn=(a.flags&131072)!==0}else tn=!1,ft&&(s.flags&1048576)!==0&&QS(s,Fd,s.index);switch(s.lanes=0,s.tag){case 16:e:{a=s.pendingProps;var A=s.elementType,p=A._init;if(A=p(A._payload),s.type=A,typeof A=="function")ym(A)?(a=ra(A,a),s.tag=1,s=lI(null,s,A,a,d)):(s.tag=0,s=tm(null,s,A,a,d));else{if(A!=null){if(p=A.$$typeof,p===S){s.tag=11,s=rI(null,s,A,a,d);break e}else if(p===R){s.tag=14,s=iI(null,s,A,a,d);break e}}throw s=H(A)||A,Error(r(306,s,""))}}return s;case 0:return tm(a,s,s.type,s.pendingProps,d);case 1:return A=s.type,p=ra(A,s.pendingProps),lI(a,s,A,p,d);case 3:e:{if(yr(s,s.stateNode.containerInfo),a===null)throw Error(r(387));var I=s.pendingProps;p=s.memoizedState,A=p.element,Am(a,s),ll(s,I,null,d);var T=s.memoizedState;if(I=T.cache,Qi(s,Zt,I),I!==p.cache&&fm(s,[Zt],d,!0),ol(),I=T.element,p.isDehydrated)if(p={element:I,isDehydrated:!1,cache:T.cache},s.updateQueue.baseState=p,s.memoizedState=p,s.flags&256){s=cI(a,s,I,d);break e}else if(I!==A){A=ur(Error(r(424)),s),Wo(A),s=cI(a,s,I,d);break e}else for(on=Dr(s.stateNode.containerInfo.firstChild),Dn=s,ft=!0,vr=null,Ur=!0,d=sN(s,null,I,d),s.child=d;d;)d.flags=d.flags&-3|4096,d=d.sibling;else{if(Zo(),I===A){s=Ai(a,s,d);break e}ln(a,s,I,d)}s=s.child}return s;case 26:return ul(a,s),a===null?(d=Ey(s.type,null,s.pendingProps,null))?s.memoizedState=d:ft||(d=s.type,a=s.pendingProps,A=d0(It.current).createElement(d),A[pn]=s,A[On]=a,cn(A,d,a),en(A),s.stateNode=A):s.memoizedState=Ey(s.type,a.memoizedProps,s.pendingProps,a.memoizedState),null;case 27:return Hr(s),a===null&&ft&&(A=s.stateNode=Ay(s.type,s.pendingProps,It.current),Dn=s,Ur=!0,on=Dr(A.firstChild)),A=s.pendingProps.children,a!==null||ft?ln(a,s,A,d):s.child=Qu(s,null,A,d),ul(a,s),s.child;case 5:return a===null&&ft&&((p=A=on)&&(A=_L(A,s.type,s.pendingProps,Ur),A!==null?(s.stateNode=A,Dn=s,on=Dr(A.firstChild),Ur=!1,p=!0):p=!1),p||Xu(s)),Hr(s),p=s.type,I=s.pendingProps,T=a!==null?a.memoizedProps:null,A=I.children,Wm(p,I)?A=null:T!==null&&Wm(p,T)&&(s.flags|=32),s.memoizedState!==null&&(p=PA(a,s,MO,null,null,d),Cl._currentValue=p),ul(a,s),ln(a,s,A,d),s.child;case 6:return a===null&&ft&&((a=d=on)&&(d=SL(d,s.pendingProps,Ur),d!==null?(s.stateNode=d,Dn=s,on=null,a=!0):a=!1),a||Xu(s)),null;case 13:return dI(a,s,d);case 4:return yr(s,s.stateNode.containerInfo),A=s.pendingProps,a===null?s.child=Qu(s,null,A,d):ln(a,s,A,d),s.child;case 11:return rI(a,s,s.type,s.pendingProps,d);case 7:return ln(a,s,s.pendingProps,d),s.child;case 8:return ln(a,s,s.pendingProps.children,d),s.child;case 12:return ln(a,s,s.pendingProps.children,d),s.child;case 10:return A=s.pendingProps,Qi(s,s.type,A.value),ln(a,s,A.children,d),s.child;case 9:return p=s.type._context,A=s.pendingProps.children,ua(s),p=En(p),A=A(p),s.flags|=1,ln(a,s,A,d),s.child;case 14:return iI(a,s,s.type,s.pendingProps,d);case 15:return uI(a,s,s.type,s.pendingProps,d);case 19:return hI(a,s,d);case 22:return aI(a,s,d);case 24:return ua(s),A=En(Zt),a===null?(p=wA(),p===null&&(p=_t,I=OA(),p.pooledCache=I,I.refCount++,I!==null&&(p.pooledCacheLanes|=d),p=I),s.memoizedState={parent:A,cache:p},hm(s),Qi(s,Zt,p)):((a.lanes&d)!==0&&(Am(a,s),ll(s,null,null,d),ol()),p=a.memoizedState,I=s.memoizedState,p.parent!==A?(p={parent:A,cache:A},s.memoizedState=p,s.lanes===0&&(s.memoizedState=s.updateQueue.baseState=p),Qi(s,Zt,A)):(A=I.cache,Qi(s,Zt,A),A!==p.cache&&fm(s,[Zt],d,!0))),ln(a,s,s.pendingProps.children,d),s.child;case 29:throw s.pendingProps}throw Error(r(156,s.tag))}var cm=ve(null),ia=null,mi=null;function Qi(a,s,d){we(cm,s._currentValue),s._currentValue=d}function pi(a){a._currentValue=cm.current,Ve(cm)}function dm(a,s,d){for(;a!==null;){var A=a.alternate;if((a.childLanes&s)!==s?(a.childLanes|=s,A!==null&&(A.childLanes|=s)):A!==null&&(A.childLanes&s)!==s&&(A.childLanes|=s),a===d)break;a=a.return}}function fm(a,s,d,A){var p=a.child;for(p!==null&&(p.return=a);p!==null;){var I=p.dependencies;if(I!==null){var T=p.child;I=I.firstContext;e:for(;I!==null;){var F=I;I=p;for(var M=0;M<s.length;M++)if(F.context===s[M]){I.lanes|=d,F=I.alternate,F!==null&&(F.lanes|=d),dm(I.return,d,a),A||(T=null);break e}I=F.next}}else if(p.tag===18){if(T=p.return,T===null)throw Error(r(341));T.lanes|=d,I=T.alternate,I!==null&&(I.lanes|=d),dm(T,d,a),T=null}else T=p.child;if(T!==null)T.return=p;else for(T=p;T!==null;){if(T===a){T=null;break}if(p=T.sibling,p!==null){p.return=T.return,T=p;break}T=T.return}p=T}}function al(a,s,d,A){a=null;for(var p=s,I=!1;p!==null;){if(!I){if((p.flags&524288)!==0)I=!0;else if((p.flags&262144)!==0)break}if(p.tag===10){var T=p.alternate;if(T===null)throw Error(r(387));if(T=T.memoizedProps,T!==null){var F=p.type;jn(p.pendingProps.value,T.value)||(a!==null?a.push(F):a=[F])}}else if(p===Jt.current){if(T=p.alternate,T===null)throw Error(r(387));T.memoizedState.memoizedState!==p.memoizedState.memoizedState&&(a!==null?a.push(Cl):a=[Cl])}p=p.return}a!==null&&fm(s,a,d,A),s.flags|=262144}function Wd(a){for(a=a.firstContext;a!==null;){if(!jn(a.context._currentValue,a.memoizedValue))return!0;a=a.next}return!1}function ua(a){ia=a,mi=null,a=a.dependencies,a!==null&&(a.firstContext=null)}function En(a){return mI(ia,a)}function qd(a,s){return ia===null&&ua(a),mI(a,s)}function mI(a,s){var d=s._currentValue;if(s={context:s,memoizedValue:d,next:null},mi===null){if(a===null)throw Error(r(308));mi=s,a.dependencies={lanes:0,firstContext:s},a.flags|=524288}else mi=mi.next=s;return d}var Ji=!1;function hm(a){a.updateQueue={baseState:a.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Am(a,s){a=a.updateQueue,s.updateQueue===a&&(s.updateQueue={baseState:a.baseState,firstBaseUpdate:a.firstBaseUpdate,lastBaseUpdate:a.lastBaseUpdate,shared:a.shared,callbacks:null})}function eu(a){return{lane:a,tag:0,payload:null,callback:null,next:null}}function tu(a,s,d){var A=a.updateQueue;if(A===null)return null;if(A=A.shared,(Rt&2)!==0){var p=A.pending;return p===null?s.next=s:(s.next=p.next,p.next=s),A.pending=s,s=xd(a),qS(a,null,d),s}return bd(a,A,s,d),xd(a)}function sl(a,s,d){if(s=s.updateQueue,s!==null&&(s=s.shared,(d&4194176)!==0)){var A=s.lanes;A&=a.pendingLanes,d|=A,s.lanes=d,iS(a,d)}}function mm(a,s){var d=a.updateQueue,A=a.alternate;if(A!==null&&(A=A.updateQueue,d===A)){var p=null,I=null;if(d=d.firstBaseUpdate,d!==null){do{var T={lane:d.lane,tag:d.tag,payload:d.payload,callback:null,next:null};I===null?p=I=T:I=I.next=T,d=d.next}while(d!==null);I===null?p=I=s:I=I.next=s}else p=I=s;d={baseState:A.baseState,firstBaseUpdate:p,lastBaseUpdate:I,shared:A.shared,callbacks:A.callbacks},a.updateQueue=d;return}a=d.lastBaseUpdate,a===null?d.firstBaseUpdate=s:a.next=s,d.lastBaseUpdate=s}var pm=!1;function ol(){if(pm){var a=fs;if(a!==null)throw a}}function ll(a,s,d,A){pm=!1;var p=a.updateQueue;Ji=!1;var I=p.firstBaseUpdate,T=p.lastBaseUpdate,F=p.shared.pending;if(F!==null){p.shared.pending=null;var M=F,K=M.next;M.next=null,T===null?I=K:T.next=K,T=M;var se=a.alternate;se!==null&&(se=se.updateQueue,F=se.lastBaseUpdate,F!==T&&(F===null?se.firstBaseUpdate=K:F.next=K,se.lastBaseUpdate=M))}if(I!==null){var he=p.baseState;T=0,se=K=M=null,F=I;do{var J=F.lane&-536870913,ue=J!==F.lane;if(ue?(ct&J)===J:(A&J)===J){J!==0&&J===ds&&(pm=!0),se!==null&&(se=se.next={lane:0,tag:F.tag,payload:F.payload,callback:null,next:null});e:{var Le=a,Ye=F;J=s;var Ot=d;switch(Ye.tag){case 1:if(Le=Ye.payload,typeof Le=="function"){he=Le.call(Ot,he,J);break e}he=Le;break e;case 3:Le.flags=Le.flags&-65537|128;case 0:if(Le=Ye.payload,J=typeof Le=="function"?Le.call(Ot,he,J):Le,J==null)break e;he=G({},he,J);break e;case 2:Ji=!0}}J=F.callback,J!==null&&(a.flags|=64,ue&&(a.flags|=8192),ue=p.callbacks,ue===null?p.callbacks=[J]:ue.push(J))}else ue={lane:J,tag:F.tag,payload:F.payload,callback:F.callback,next:null},se===null?(K=se=ue,M=he):se=se.next=ue,T|=J;if(F=F.next,F===null){if(F=p.shared.pending,F===null)break;ue=F,F=ue.next,ue.next=null,p.lastBaseUpdate=ue,p.shared.pending=null}}while(!0);se===null&&(M=he),p.baseState=M,p.firstBaseUpdate=K,p.lastBaseUpdate=se,I===null&&(p.shared.lanes=0),au|=T,a.lanes=T,a.memoizedState=he}}function pI(a,s){if(typeof a!="function")throw Error(r(191,a));a.call(s)}function EI(a,s){var d=a.callbacks;if(d!==null)for(a.callbacks=null,a=0;a<d.length;a++)pI(d[a],s)}function cl(a,s){try{var d=s.updateQueue,A=d!==null?d.lastEffect:null;if(A!==null){var p=A.next;d=p;do{if((d.tag&a)===a){A=void 0;var I=d.create,T=d.inst;A=I(),T.destroy=A}d=d.next}while(d!==p)}}catch(F){gt(s,s.return,F)}}function nu(a,s,d){try{var A=s.updateQueue,p=A!==null?A.lastEffect:null;if(p!==null){var I=p.next;A=I;do{if((A.tag&a)===a){var T=A.inst,F=T.destroy;if(F!==void 0){T.destroy=void 0,p=s;var M=d;try{F()}catch(K){gt(p,M,K)}}}A=A.next}while(A!==I)}}catch(K){gt(s,s.return,K)}}function gI(a){var s=a.updateQueue;if(s!==null){var d=a.stateNode;try{EI(s,d)}catch(A){gt(a,a.return,A)}}}function _I(a,s,d){d.props=ra(a.type,a.memoizedProps),d.state=a.memoizedState;try{d.componentWillUnmount()}catch(A){gt(a,s,A)}}function aa(a,s){try{var d=a.ref;if(d!==null){var A=a.stateNode;switch(a.tag){case 26:case 27:case 5:var p=A;break;default:p=A}typeof d=="function"?a.refCleanup=d(p):d.current=p}}catch(I){gt(a,s,I)}}function zn(a,s){var d=a.ref,A=a.refCleanup;if(d!==null)if(typeof A=="function")try{A()}catch(p){gt(a,s,p)}finally{a.refCleanup=null,a=a.alternate,a!=null&&(a.refCleanup=null)}else if(typeof d=="function")try{d(null)}catch(p){gt(a,s,p)}else d.current=null}function SI(a){var s=a.type,d=a.memoizedProps,A=a.stateNode;try{e:switch(s){case"button":case"input":case"select":case"textarea":d.autoFocus&&A.focus();break e;case"img":d.src?A.src=d.src:d.srcSet&&(A.srcset=d.srcSet)}}catch(p){gt(a,a.return,p)}}function NI(a,s,d){try{var A=a.stateNode;AL(A,a.type,d,s),A[On]=s}catch(p){gt(a,a.return,p)}}function II(a){return a.tag===5||a.tag===3||a.tag===26||a.tag===27||a.tag===4}function Em(a){e:for(;;){for(;a.sibling===null;){if(a.return===null||II(a.return))return null;a=a.return}for(a.sibling.return=a.return,a=a.sibling;a.tag!==5&&a.tag!==6&&a.tag!==27&&a.tag!==18;){if(a.flags&2||a.child===null||a.tag===4)continue e;a.child.return=a,a=a.child}if(!(a.flags&2))return a.stateNode}}function gm(a,s,d){var A=a.tag;if(A===5||A===6)a=a.stateNode,s?d.nodeType===8?d.parentNode.insertBefore(a,s):d.insertBefore(a,s):(d.nodeType===8?(s=d.parentNode,s.insertBefore(a,d)):(s=d,s.appendChild(a)),d=d._reactRootContainer,d!=null||s.onclick!==null||(s.onclick=c0));else if(A!==4&&A!==27&&(a=a.child,a!==null))for(gm(a,s,d),a=a.sibling;a!==null;)gm(a,s,d),a=a.sibling}function Xd(a,s,d){var A=a.tag;if(A===5||A===6)a=a.stateNode,s?d.insertBefore(a,s):d.appendChild(a);else if(A!==4&&A!==27&&(a=a.child,a!==null))for(Xd(a,s,d),a=a.sibling;a!==null;)Xd(a,s,d),a=a.sibling}var Ei=!1,Bt=!1,_m=!1,yI=typeof WeakSet=="function"?WeakSet:Set,nn=null,CI=!1;function zO(a,s){if(a=a.containerInfo,Ym=E0,a=GS(a),NA(a)){if("selectionStart"in a)var d={start:a.selectionStart,end:a.selectionEnd};else e:{d=(d=a.ownerDocument)&&d.defaultView||window;var A=d.getSelection&&d.getSelection();if(A&&A.rangeCount!==0){d=A.anchorNode;var p=A.anchorOffset,I=A.focusNode;A=A.focusOffset;try{d.nodeType,I.nodeType}catch{d=null;break e}var T=0,F=-1,M=-1,K=0,se=0,he=a,J=null;t:for(;;){for(var ue;he!==d||p!==0&&he.nodeType!==3||(F=T+p),he!==I||A!==0&&he.nodeType!==3||(M=T+A),he.nodeType===3&&(T+=he.nodeValue.length),(ue=he.firstChild)!==null;)J=he,he=ue;for(;;){if(he===a)break t;if(J===d&&++K===p&&(F=T),J===I&&++se===A&&(M=T),(ue=he.nextSibling)!==null)break;he=J,J=he.parentNode}he=ue}d=F===-1||M===-1?null:{start:F,end:M}}else d=null}d=d||{start:0,end:0}}else d=null;for(Zm={focusedElem:a,selectionRange:d},E0=!1,nn=s;nn!==null;)if(s=nn,a=s.child,(s.subtreeFlags&1028)!==0&&a!==null)a.return=s,nn=a;else for(;nn!==null;){switch(s=nn,I=s.alternate,a=s.flags,s.tag){case 0:break;case 11:case 15:break;case 1:if((a&1024)!==0&&I!==null){a=void 0,d=s,p=I.memoizedProps,I=I.memoizedState,A=d.stateNode;try{var Le=ra(d.type,p,d.elementType===d.type);a=A.getSnapshotBeforeUpdate(Le,I),A.__reactInternalSnapshotBeforeUpdate=a}catch(Ye){gt(d,d.return,Ye)}}break;case 3:if((a&1024)!==0){if(a=s.stateNode.containerInfo,d=a.nodeType,d===9)Qm(a);else if(d===1)switch(a.nodeName){case"HEAD":case"HTML":case"BODY":Qm(a);break;default:a.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((a&1024)!==0)throw Error(r(163))}if(a=s.sibling,a!==null){a.return=s.return,nn=a;break}nn=s.return}return Le=CI,CI=!1,Le}function vI(a,s,d){var A=d.flags;switch(d.tag){case 0:case 11:case 15:_i(a,d),A&4&&cl(5,d);break;case 1:if(_i(a,d),A&4)if(a=d.stateNode,s===null)try{a.componentDidMount()}catch(F){gt(d,d.return,F)}else{var p=ra(d.type,s.memoizedProps);s=s.memoizedState;try{a.componentDidUpdate(p,s,a.__reactInternalSnapshotBeforeUpdate)}catch(F){gt(d,d.return,F)}}A&64&&gI(d),A&512&&aa(d,d.return);break;case 3:if(_i(a,d),A&64&&(A=d.updateQueue,A!==null)){if(a=null,d.child!==null)switch(d.child.tag){case 27:case 5:a=d.child.stateNode;break;case 1:a=d.child.stateNode}try{EI(A,a)}catch(F){gt(d,d.return,F)}}break;case 26:_i(a,d),A&512&&aa(d,d.return);break;case 27:case 5:_i(a,d),s===null&&A&4&&SI(d),A&512&&aa(d,d.return);break;case 12:_i(a,d);break;case 13:_i(a,d),A&4&&TI(a,d);break;case 22:if(p=d.memoizedState!==null||Ei,!p){s=s!==null&&s.memoizedState!==null||Bt;var I=Ei,T=Bt;Ei=p,(Bt=s)&&!T?ru(a,d,(d.subtreeFlags&8772)!==0):_i(a,d),Ei=I,Bt=T}A&512&&(d.memoizedProps.mode==="manual"?aa(d,d.return):zn(d,d.return));break;default:_i(a,d)}}function RI(a){var s=a.alternate;s!==null&&(a.alternate=null,RI(s)),a.child=null,a.deletions=null,a.sibling=null,a.tag===5&&(s=a.stateNode,s!==null&&uA(s)),a.stateNode=null,a.return=null,a.dependencies=null,a.memoizedProps=null,a.memoizedState=null,a.pendingProps=null,a.stateNode=null,a.updateQueue=null}var zt=null,Kn=!1;function gi(a,s,d){for(d=d.child;d!==null;)DI(a,s,d),d=d.sibling}function DI(a,s,d){if(Rn&&typeof Rn.onCommitFiberUnmount=="function")try{Rn.onCommitFiberUnmount(ji,d)}catch{}switch(d.tag){case 26:Bt||zn(d,s),gi(a,s,d),d.memoizedState?d.memoizedState.count--:d.stateNode&&(d=d.stateNode,d.parentNode.removeChild(d));break;case 27:Bt||zn(d,s);var A=zt,p=Kn;for(zt=d.stateNode,gi(a,s,d),d=d.stateNode,s=d.attributes;s.length;)d.removeAttributeNode(s[0]);uA(d),zt=A,Kn=p;break;case 5:Bt||zn(d,s);case 6:p=zt;var I=Kn;if(zt=null,gi(a,s,d),zt=p,Kn=I,zt!==null)if(Kn)try{a=zt,A=d.stateNode,a.nodeType===8?a.parentNode.removeChild(A):a.removeChild(A)}catch(T){gt(d,s,T)}else try{zt.removeChild(d.stateNode)}catch(T){gt(d,s,T)}break;case 18:zt!==null&&(Kn?(s=zt,d=d.stateNode,s.nodeType===8?Xm(s.parentNode,d):s.nodeType===1&&Xm(s,d),Tl(s)):Xm(zt,d.stateNode));break;case 4:A=zt,p=Kn,zt=d.stateNode.containerInfo,Kn=!0,gi(a,s,d),zt=A,Kn=p;break;case 0:case 11:case 14:case 15:Bt||nu(2,d,s),Bt||nu(4,d,s),gi(a,s,d);break;case 1:Bt||(zn(d,s),A=d.stateNode,typeof A.componentWillUnmount=="function"&&_I(d,s,A)),gi(a,s,d);break;case 21:gi(a,s,d);break;case 22:Bt||zn(d,s),Bt=(A=Bt)||d.memoizedState!==null,gi(a,s,d),Bt=A;break;default:gi(a,s,d)}}function TI(a,s){if(s.memoizedState===null&&(a=s.alternate,a!==null&&(a=a.memoizedState,a!==null&&(a=a.dehydrated,a!==null))))try{Tl(a)}catch(d){gt(s,s.return,d)}}function KO(a){switch(a.tag){case 13:case 19:var s=a.stateNode;return s===null&&(s=a.stateNode=new yI),s;case 22:return a=a.stateNode,s=a._retryCache,s===null&&(s=a._retryCache=new yI),s;default:throw Error(r(435,a.tag))}}function Sm(a,s){var d=KO(a);s.forEach(function(A){var p=iL.bind(null,a,A);d.has(A)||(d.add(A),A.then(p,p))})}function lr(a,s){var d=s.deletions;if(d!==null)for(var A=0;A<d.length;A++){var p=d[A],I=a,T=s,F=T;e:for(;F!==null;){switch(F.tag){case 27:case 5:zt=F.stateNode,Kn=!1;break e;case 3:zt=F.stateNode.containerInfo,Kn=!0;break e;case 4:zt=F.stateNode.containerInfo,Kn=!0;break e}F=F.return}if(zt===null)throw Error(r(160));DI(I,T,p),zt=null,Kn=!1,I=p.alternate,I!==null&&(I.return=null),p.return=null}if(s.subtreeFlags&13878)for(s=s.child;s!==null;)bI(s,a),s=s.sibling}var Rr=null;function bI(a,s){var d=a.alternate,A=a.flags;switch(a.tag){case 0:case 11:case 14:case 15:lr(s,a),cr(a),A&4&&(nu(3,a,a.return),cl(3,a),nu(5,a,a.return));break;case 1:lr(s,a),cr(a),A&512&&(Bt||d===null||zn(d,d.return)),A&64&&Ei&&(a=a.updateQueue,a!==null&&(A=a.callbacks,A!==null&&(d=a.shared.hiddenCallbacks,a.shared.hiddenCallbacks=d===null?A:d.concat(A))));break;case 26:var p=Rr;if(lr(s,a),cr(a),A&512&&(Bt||d===null||zn(d,d.return)),A&4){var I=d!==null?d.memoizedState:null;if(A=a.memoizedState,d===null)if(A===null)if(a.stateNode===null){e:{A=a.type,d=a.memoizedProps,p=p.ownerDocument||p;t:switch(A){case"title":I=p.getElementsByTagName("title")[0],(!I||I[Mo]||I[pn]||I.namespaceURI==="http://www.w3.org/2000/svg"||I.hasAttribute("itemprop"))&&(I=p.createElement(A),p.head.insertBefore(I,p.querySelector("head > title"))),cn(I,A,d),I[pn]=a,en(I),A=I;break e;case"link":var T=Sy("link","href",p).get(A+(d.href||""));if(T){for(var F=0;F<T.length;F++)if(I=T[F],I.getAttribute("href")===(d.href==null?null:d.href)&&I.getAttribute("rel")===(d.rel==null?null:d.rel)&&I.getAttribute("title")===(d.title==null?null:d.title)&&I.getAttribute("crossorigin")===(d.crossOrigin==null?null:d.crossOrigin)){T.splice(F,1);break t}}I=p.createElement(A),cn(I,A,d),p.head.appendChild(I);break;case"meta":if(T=Sy("meta","content",p).get(A+(d.content||""))){for(F=0;F<T.length;F++)if(I=T[F],I.getAttribute("content")===(d.content==null?null:""+d.content)&&I.getAttribute("name")===(d.name==null?null:d.name)&&I.getAttribute("property")===(d.property==null?null:d.property)&&I.getAttribute("http-equiv")===(d.httpEquiv==null?null:d.httpEquiv)&&I.getAttribute("charset")===(d.charSet==null?null:d.charSet)){T.splice(F,1);break t}}I=p.createElement(A),cn(I,A,d),p.head.appendChild(I);break;default:throw Error(r(468,A))}I[pn]=a,en(I),A=I}a.stateNode=A}else Ny(p,a.type,a.stateNode);else a.stateNode=_y(p,A,a.memoizedProps);else I!==A?(I===null?d.stateNode!==null&&(d=d.stateNode,d.parentNode.removeChild(d)):I.count--,A===null?Ny(p,a.type,a.stateNode):_y(p,A,a.memoizedProps)):A===null&&a.stateNode!==null&&NI(a,a.memoizedProps,d.memoizedProps)}break;case 27:if(A&4&&a.alternate===null){p=a.stateNode,I=a.memoizedProps;try{for(var M=p.firstChild;M;){var K=M.nextSibling,se=M.nodeName;M[Mo]||se==="HEAD"||se==="BODY"||se==="SCRIPT"||se==="STYLE"||se==="LINK"&&M.rel.toLowerCase()==="stylesheet"||p.removeChild(M),M=K}for(var he=a.type,J=p.attributes;J.length;)p.removeAttributeNode(J[0]);cn(p,he,I),p[pn]=a,p[On]=I}catch(Le){gt(a,a.return,Le)}}case 5:if(lr(s,a),cr(a),A&512&&(Bt||d===null||zn(d,d.return)),a.flags&32){p=a.stateNode;try{Ja(p,"")}catch(Le){gt(a,a.return,Le)}}A&4&&a.stateNode!=null&&(p=a.memoizedProps,NI(a,p,d!==null?d.memoizedProps:p)),A&1024&&(_m=!0);break;case 6:if(lr(s,a),cr(a),A&4){if(a.stateNode===null)throw Error(r(162));A=a.memoizedProps,d=a.stateNode;try{d.nodeValue=A}catch(Le){gt(a,a.return,Le)}}break;case 3:if(A0=null,p=Rr,Rr=f0(s.containerInfo),lr(s,a),Rr=p,cr(a),A&4&&d!==null&&d.memoizedState.isDehydrated)try{Tl(s.containerInfo)}catch(Le){gt(a,a.return,Le)}_m&&(_m=!1,xI(a));break;case 4:A=Rr,Rr=f0(a.stateNode.containerInfo),lr(s,a),cr(a),Rr=A;break;case 12:lr(s,a),cr(a);break;case 13:lr(s,a),cr(a),a.child.flags&8192&&a.memoizedState!==null!=(d!==null&&d.memoizedState!==null)&&(bm=Be()),A&4&&(A=a.updateQueue,A!==null&&(a.updateQueue=null,Sm(a,A)));break;case 22:if(A&512&&(Bt||d===null||zn(d,d.return)),M=a.memoizedState!==null,K=d!==null&&d.memoizedState!==null,se=Ei,he=Bt,Ei=se||M,Bt=he||K,lr(s,a),Bt=he,Ei=se,cr(a),s=a.stateNode,s._current=a,s._visibility&=-3,s._visibility|=s._pendingVisibility&2,A&8192&&(s._visibility=M?s._visibility&-2:s._visibility|1,M&&(s=Ei||Bt,d===null||K||s||ps(a)),a.memoizedProps===null||a.memoizedProps.mode!=="manual"))e:for(d=null,s=a;;){if(s.tag===5||s.tag===26||s.tag===27){if(d===null){K=d=s;try{if(p=K.stateNode,M)I=p.style,typeof I.setProperty=="function"?I.setProperty("display","none","important"):I.display="none";else{T=K.stateNode,F=K.memoizedProps.style;var ue=F!=null&&F.hasOwnProperty("display")?F.display:null;T.style.display=ue==null||typeof ue=="boolean"?"":(""+ue).trim()}}catch(Le){gt(K,K.return,Le)}}}else if(s.tag===6){if(d===null){K=s;try{K.stateNode.nodeValue=M?"":K.memoizedProps}catch(Le){gt(K,K.return,Le)}}}else if((s.tag!==22&&s.tag!==23||s.memoizedState===null||s===a)&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===a)break e;for(;s.sibling===null;){if(s.return===null||s.return===a)break e;d===s&&(d=null),s=s.return}d===s&&(d=null),s.sibling.return=s.return,s=s.sibling}A&4&&(A=a.updateQueue,A!==null&&(d=A.retryQueue,d!==null&&(A.retryQueue=null,Sm(a,d))));break;case 19:lr(s,a),cr(a),A&4&&(A=a.updateQueue,A!==null&&(a.updateQueue=null,Sm(a,A)));break;case 21:break;default:lr(s,a),cr(a)}}function cr(a){var s=a.flags;if(s&2){try{if(a.tag!==27){e:{for(var d=a.return;d!==null;){if(II(d)){var A=d;break e}d=d.return}throw Error(r(160))}switch(A.tag){case 27:var p=A.stateNode,I=Em(a);Xd(a,I,p);break;case 5:var T=A.stateNode;A.flags&32&&(Ja(T,""),A.flags&=-33);var F=Em(a);Xd(a,F,T);break;case 3:case 4:var M=A.stateNode.containerInfo,K=Em(a);gm(a,K,M);break;default:throw Error(r(161))}}}catch(se){gt(a,a.return,se)}a.flags&=-3}s&4096&&(a.flags&=-4097)}function xI(a){if(a.subtreeFlags&1024)for(a=a.child;a!==null;){var s=a;xI(s),s.tag===5&&s.flags&1024&&s.stateNode.reset(),a=a.sibling}}function _i(a,s){if(s.subtreeFlags&8772)for(s=s.child;s!==null;)vI(a,s.alternate,s),s=s.sibling}function ps(a){for(a=a.child;a!==null;){var s=a;switch(s.tag){case 0:case 11:case 14:case 15:nu(4,s,s.return),ps(s);break;case 1:zn(s,s.return);var d=s.stateNode;typeof d.componentWillUnmount=="function"&&_I(s,s.return,d),ps(s);break;case 26:case 27:case 5:zn(s,s.return),ps(s);break;case 22:zn(s,s.return),s.memoizedState===null&&ps(s);break;default:ps(s)}a=a.sibling}}function ru(a,s,d){for(d=d&&(s.subtreeFlags&8772)!==0,s=s.child;s!==null;){var A=s.alternate,p=a,I=s,T=I.flags;switch(I.tag){case 0:case 11:case 15:ru(p,I,d),cl(4,I);break;case 1:if(ru(p,I,d),A=I,p=A.stateNode,typeof p.componentDidMount=="function")try{p.componentDidMount()}catch(K){gt(A,A.return,K)}if(A=I,p=A.updateQueue,p!==null){var F=A.stateNode;try{var M=p.shared.hiddenCallbacks;if(M!==null)for(p.shared.hiddenCallbacks=null,p=0;p<M.length;p++)pI(M[p],F)}catch(K){gt(A,A.return,K)}}d&&T&64&&gI(I),aa(I,I.return);break;case 26:case 27:case 5:ru(p,I,d),d&&A===null&&T&4&&SI(I),aa(I,I.return);break;case 12:ru(p,I,d);break;case 13:ru(p,I,d),d&&T&4&&TI(p,I);break;case 22:I.memoizedState===null&&ru(p,I,d),aa(I,I.return);break;default:ru(p,I,d)}s=s.sibling}}function Nm(a,s){var d=null;a!==null&&a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(d=a.memoizedState.cachePool.pool),a=null,s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(a=s.memoizedState.cachePool.pool),a!==d&&(a!=null&&a.refCount++,d!=null&&el(d))}function Im(a,s){a=null,s.alternate!==null&&(a=s.alternate.memoizedState.cache),s=s.memoizedState.cache,s!==a&&(s.refCount++,a!=null&&el(a))}function iu(a,s,d,A){if(s.subtreeFlags&10256)for(s=s.child;s!==null;)BI(a,s,d,A),s=s.sibling}function BI(a,s,d,A){var p=s.flags;switch(s.tag){case 0:case 11:case 15:iu(a,s,d,A),p&2048&&cl(9,s);break;case 3:iu(a,s,d,A),p&2048&&(a=null,s.alternate!==null&&(a=s.alternate.memoizedState.cache),s=s.memoizedState.cache,s!==a&&(s.refCount++,a!=null&&el(a)));break;case 12:if(p&2048){iu(a,s,d,A),a=s.stateNode;try{var I=s.memoizedProps,T=I.id,F=I.onPostCommit;typeof F=="function"&&F(T,s.alternate===null?"mount":"update",a.passiveEffectDuration,-0)}catch(M){gt(s,s.return,M)}}else iu(a,s,d,A);break;case 23:break;case 22:I=s.stateNode,s.memoizedState!==null?I._visibility&4?iu(a,s,d,A):dl(a,s):I._visibility&4?iu(a,s,d,A):(I._visibility|=4,Es(a,s,d,A,(s.subtreeFlags&10256)!==0)),p&2048&&Nm(s.alternate,s);break;case 24:iu(a,s,d,A),p&2048&&Im(s.alternate,s);break;default:iu(a,s,d,A)}}function Es(a,s,d,A,p){for(p=p&&(s.subtreeFlags&10256)!==0,s=s.child;s!==null;){var I=a,T=s,F=d,M=A,K=T.flags;switch(T.tag){case 0:case 11:case 15:Es(I,T,F,M,p),cl(8,T);break;case 23:break;case 22:var se=T.stateNode;T.memoizedState!==null?se._visibility&4?Es(I,T,F,M,p):dl(I,T):(se._visibility|=4,Es(I,T,F,M,p)),p&&K&2048&&Nm(T.alternate,T);break;case 24:Es(I,T,F,M,p),p&&K&2048&&Im(T.alternate,T);break;default:Es(I,T,F,M,p)}s=s.sibling}}function dl(a,s){if(s.subtreeFlags&10256)for(s=s.child;s!==null;){var d=a,A=s,p=A.flags;switch(A.tag){case 22:dl(d,A),p&2048&&Nm(A.alternate,A);break;case 24:dl(d,A),p&2048&&Im(A.alternate,A);break;default:dl(d,A)}s=s.sibling}}var fl=8192;function gs(a){if(a.subtreeFlags&fl)for(a=a.child;a!==null;)FI(a),a=a.sibling}function FI(a){switch(a.tag){case 26:gs(a),a.flags&fl&&a.memoizedState!==null&&OL(Rr,a.memoizedState,a.memoizedProps);break;case 5:gs(a);break;case 3:case 4:var s=Rr;Rr=f0(a.stateNode.containerInfo),gs(a),Rr=s;break;case 22:a.memoizedState===null&&(s=a.alternate,s!==null&&s.memoizedState!==null?(s=fl,fl=16777216,gs(a),fl=s):gs(a));break;default:gs(a)}}function OI(a){var s=a.alternate;if(s!==null&&(a=s.child,a!==null)){s.child=null;do s=a.sibling,a.sibling=null,a=s;while(a!==null)}}function hl(a){var s=a.deletions;if((a.flags&16)!==0){if(s!==null)for(var d=0;d<s.length;d++){var A=s[d];nn=A,wI(A,a)}OI(a)}if(a.subtreeFlags&10256)for(a=a.child;a!==null;)LI(a),a=a.sibling}function LI(a){switch(a.tag){case 0:case 11:case 15:hl(a),a.flags&2048&&nu(9,a,a.return);break;case 3:hl(a);break;case 12:hl(a);break;case 22:var s=a.stateNode;a.memoizedState!==null&&s._visibility&4&&(a.return===null||a.return.tag!==13)?(s._visibility&=-5,Qd(a)):hl(a);break;default:hl(a)}}function Qd(a){var s=a.deletions;if((a.flags&16)!==0){if(s!==null)for(var d=0;d<s.length;d++){var A=s[d];nn=A,wI(A,a)}OI(a)}for(a=a.child;a!==null;){switch(s=a,s.tag){case 0:case 11:case 15:nu(8,s,s.return),Qd(s);break;case 22:d=s.stateNode,d._visibility&4&&(d._visibility&=-5,Qd(s));break;default:Qd(s)}a=a.sibling}}function wI(a,s){for(;nn!==null;){var d=nn;switch(d.tag){case 0:case 11:case 15:nu(8,d,s);break;case 23:case 22:if(d.memoizedState!==null&&d.memoizedState.cachePool!==null){var A=d.memoizedState.cachePool.pool;A!=null&&A.refCount++}break;case 24:el(d.memoizedState.cache)}if(A=d.child,A!==null)A.return=d,nn=A;else e:for(d=a;nn!==null;){A=nn;var p=A.sibling,I=A.return;if(RI(A),A===d){nn=null;break e}if(p!==null){p.return=I,nn=p;break e}nn=I}}}function $O(a,s,d,A){this.tag=a,this.key=d,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=s,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=A,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function dr(a,s,d,A){return new $O(a,s,d,A)}function ym(a){return a=a.prototype,!(!a||!a.isReactComponent)}function uu(a,s){var d=a.alternate;return d===null?(d=dr(a.tag,s,a.key,a.mode),d.elementType=a.elementType,d.type=a.type,d.stateNode=a.stateNode,d.alternate=a,a.alternate=d):(d.pendingProps=s,d.type=a.type,d.flags=0,d.subtreeFlags=0,d.deletions=null),d.flags=a.flags&31457280,d.childLanes=a.childLanes,d.lanes=a.lanes,d.child=a.child,d.memoizedProps=a.memoizedProps,d.memoizedState=a.memoizedState,d.updateQueue=a.updateQueue,s=a.dependencies,d.dependencies=s===null?null:{lanes:s.lanes,firstContext:s.firstContext},d.sibling=a.sibling,d.index=a.index,d.ref=a.ref,d.refCleanup=a.refCleanup,d}function MI(a,s){a.flags&=31457282;var d=a.alternate;return d===null?(a.childLanes=0,a.lanes=s,a.child=null,a.subtreeFlags=0,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=d.childLanes,a.lanes=d.lanes,a.child=d.child,a.subtreeFlags=0,a.deletions=null,a.memoizedProps=d.memoizedProps,a.memoizedState=d.memoizedState,a.updateQueue=d.updateQueue,a.type=d.type,s=d.dependencies,a.dependencies=s===null?null:{lanes:s.lanes,firstContext:s.firstContext}),a}function Jd(a,s,d,A,p,I){var T=0;if(A=a,typeof a=="function")ym(a)&&(T=1);else if(typeof a=="string")T=BL(a,d,Ze.current)?26:a==="html"||a==="head"||a==="body"?27:5;else e:switch(a){case f:return sa(d.children,p,I,s);case h:T=8,p|=24;break;case m:return a=dr(12,d,s,p|2),a.elementType=m,a.lanes=I,a;case C:return a=dr(13,d,s,p),a.elementType=C,a.lanes=I,a;case v:return a=dr(19,d,s,p),a.elementType=v,a.lanes=I,a;case b:return PI(d,p,I,s);default:if(typeof a=="object"&&a!==null)switch(a.$$typeof){case E:case _:T=10;break e;case g:T=9;break e;case S:T=11;break e;case R:T=14;break e;case D:T=16,A=null;break e}T=29,d=Error(r(130,a===null?"null":typeof a,"")),A=null}return s=dr(T,d,s,p),s.elementType=a,s.type=A,s.lanes=I,s}function sa(a,s,d,A){return a=dr(7,a,A,s),a.lanes=d,a}function PI(a,s,d,A){a=dr(22,a,A,s),a.elementType=b,a.lanes=d;var p={_visibility:1,_pendingVisibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null,_current:null,detach:function(){var I=p._current;if(I===null)throw Error(r(456));if((p._pendingVisibility&2)===0){var T=Yi(I,2);T!==null&&(p._pendingVisibility|=2,Tn(T,I,2))}},attach:function(){var I=p._current;if(I===null)throw Error(r(456));if((p._pendingVisibility&2)!==0){var T=Yi(I,2);T!==null&&(p._pendingVisibility&=-3,Tn(T,I,2))}}};return a.stateNode=p,a}function Cm(a,s,d){return a=dr(6,a,null,s),a.lanes=d,a}function vm(a,s,d){return s=dr(4,a.children!==null?a.children:[],a.key,s),s.lanes=d,s.stateNode={containerInfo:a.containerInfo,pendingChildren:null,implementation:a.implementation},s}function Si(a){a.flags|=4}function HI(a,s){if(s.type!=="stylesheet"||(s.state.loading&4)!==0)a.flags&=-16777217;else if(a.flags|=16777216,!Iy(s)){if(s=or.current,s!==null&&((ct&4194176)===ct?kr!==null:(ct&62914560)!==ct&&(ct&536870912)===0||s!==kr))throw Xo=xA,tN;a.flags|=8192}}function e0(a,s){s!==null&&(a.flags|=4),a.flags&16384&&(s=a.tag!==22?nS():536870912,a.lanes|=s,Ss|=s)}function Al(a,s){if(!ft)switch(a.tailMode){case"hidden":s=a.tail;for(var d=null;s!==null;)s.alternate!==null&&(d=s),s=s.sibling;d===null?a.tail=null:d.sibling=null;break;case"collapsed":d=a.tail;for(var A=null;d!==null;)d.alternate!==null&&(A=d),d=d.sibling;A===null?s||a.tail===null?a.tail=null:a.tail.sibling=null:A.sibling=null}}function vt(a){var s=a.alternate!==null&&a.alternate.child===a.child,d=0,A=0;if(s)for(var p=a.child;p!==null;)d|=p.lanes|p.childLanes,A|=p.subtreeFlags&31457280,A|=p.flags&31457280,p.return=a,p=p.sibling;else for(p=a.child;p!==null;)d|=p.lanes|p.childLanes,A|=p.subtreeFlags,A|=p.flags,p.return=a,p=p.sibling;return a.subtreeFlags|=A,a.childLanes=d,s}function YO(a,s,d){var A=s.pendingProps;switch(TA(s),s.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return vt(s),null;case 1:return vt(s),null;case 3:return d=s.stateNode,A=null,a!==null&&(A=a.memoizedState.cache),s.memoizedState.cache!==A&&(s.flags|=2048),pi(Zt),kn(),d.pendingContext&&(d.context=d.pendingContext,d.pendingContext=null),(a===null||a.child===null)&&(Yo(s)?Si(s):a===null||a.memoizedState.isDehydrated&&(s.flags&256)===0||(s.flags|=1024,vr!==null&&(Om(vr),vr=null))),vt(s),null;case 26:return d=s.memoizedState,a===null?(Si(s),d!==null?(vt(s),HI(s,d)):(vt(s),s.flags&=-16777217)):d?d!==a.memoizedState?(Si(s),vt(s),HI(s,d)):(vt(s),s.flags&=-16777217):(a.memoizedProps!==A&&Si(s),vt(s),s.flags&=-16777217),null;case 27:k(s),d=It.current;var p=s.type;if(a!==null&&s.stateNode!=null)a.memoizedProps!==A&&Si(s);else{if(!A){if(s.stateNode===null)throw Error(r(166));return vt(s),null}a=Ze.current,Yo(s)?JS(s):(a=Ay(p,A,d),s.stateNode=a,Si(s))}return vt(s),null;case 5:if(k(s),d=s.type,a!==null&&s.stateNode!=null)a.memoizedProps!==A&&Si(s);else{if(!A){if(s.stateNode===null)throw Error(r(166));return vt(s),null}if(a=Ze.current,Yo(s))JS(s);else{switch(p=d0(It.current),a){case 1:a=p.createElementNS("http://www.w3.org/2000/svg",d);break;case 2:a=p.createElementNS("http://www.w3.org/1998/Math/MathML",d);break;default:switch(d){case"svg":a=p.createElementNS("http://www.w3.org/2000/svg",d);break;case"math":a=p.createElementNS("http://www.w3.org/1998/Math/MathML",d);break;case"script":a=p.createElement("div"),a.innerHTML="<script><\/script>",a=a.removeChild(a.firstChild);break;case"select":a=typeof A.is=="string"?p.createElement("select",{is:A.is}):p.createElement("select"),A.multiple?a.multiple=!0:A.size&&(a.size=A.size);break;default:a=typeof A.is=="string"?p.createElement(d,{is:A.is}):p.createElement(d)}}a[pn]=s,a[On]=A;e:for(p=s.child;p!==null;){if(p.tag===5||p.tag===6)a.appendChild(p.stateNode);else if(p.tag!==4&&p.tag!==27&&p.child!==null){p.child.return=p,p=p.child;continue}if(p===s)break e;for(;p.sibling===null;){if(p.return===null||p.return===s)break e;p=p.return}p.sibling.return=p.return,p=p.sibling}s.stateNode=a;e:switch(cn(a,d,A),d){case"button":case"input":case"select":case"textarea":a=!!A.autoFocus;break e;case"img":a=!0;break e;default:a=!1}a&&Si(s)}}return vt(s),s.flags&=-16777217,null;case 6:if(a&&s.stateNode!=null)a.memoizedProps!==A&&Si(s);else{if(typeof A!="string"&&s.stateNode===null)throw Error(r(166));if(a=It.current,Yo(s)){if(a=s.stateNode,d=s.memoizedProps,A=null,p=Dn,p!==null)switch(p.tag){case 27:case 5:A=p.memoizedProps}a[pn]=s,a=!!(a.nodeValue===d||A!==null&&A.suppressHydrationWarning===!0||oy(a.nodeValue,d)),a||Xu(s)}else a=d0(a).createTextNode(A),a[pn]=s,s.stateNode=a}return vt(s),null;case 13:if(A=s.memoizedState,a===null||a.memoizedState!==null&&a.memoizedState.dehydrated!==null){if(p=Yo(s),A!==null&&A.dehydrated!==null){if(a===null){if(!p)throw Error(r(318));if(p=s.memoizedState,p=p!==null?p.dehydrated:null,!p)throw Error(r(317));p[pn]=s}else Zo(),(s.flags&128)===0&&(s.memoizedState=null),s.flags|=4;vt(s),p=!1}else vr!==null&&(Om(vr),vr=null),p=!0;if(!p)return s.flags&256?(fi(s),s):(fi(s),null)}if(fi(s),(s.flags&128)!==0)return s.lanes=d,s;if(d=A!==null,a=a!==null&&a.memoizedState!==null,d){A=s.child,p=null,A.alternate!==null&&A.alternate.memoizedState!==null&&A.alternate.memoizedState.cachePool!==null&&(p=A.alternate.memoizedState.cachePool.pool);var I=null;A.memoizedState!==null&&A.memoizedState.cachePool!==null&&(I=A.memoizedState.cachePool.pool),I!==p&&(A.flags|=2048)}return d!==a&&d&&(s.child.flags|=8192),e0(s,s.updateQueue),vt(s),null;case 4:return kn(),a===null&&zm(s.stateNode.containerInfo),vt(s),null;case 10:return pi(s.type),vt(s),null;case 19:if(Ve(Yt),p=s.memoizedState,p===null)return vt(s),null;if(A=(s.flags&128)!==0,I=p.rendering,I===null)if(A)Al(p,!1);else{if(Ft!==0||a!==null&&(a.flags&128)!==0)for(a=s.child;a!==null;){if(I=Pd(a),I!==null){for(s.flags|=128,Al(p,!1),a=I.updateQueue,s.updateQueue=a,e0(s,a),s.subtreeFlags=0,a=d,d=s.child;d!==null;)MI(d,a),d=d.sibling;return we(Yt,Yt.current&1|2),s.child}a=a.sibling}p.tail!==null&&Be()>t0&&(s.flags|=128,A=!0,Al(p,!1),s.lanes=4194304)}else{if(!A)if(a=Pd(I),a!==null){if(s.flags|=128,A=!0,a=a.updateQueue,s.updateQueue=a,e0(s,a),Al(p,!0),p.tail===null&&p.tailMode==="hidden"&&!I.alternate&&!ft)return vt(s),null}else 2*Be()-p.renderingStartTime>t0&&d!==536870912&&(s.flags|=128,A=!0,Al(p,!1),s.lanes=4194304);p.isBackwards?(I.sibling=s.child,s.child=I):(a=p.last,a!==null?a.sibling=I:s.child=I,p.last=I)}return p.tail!==null?(s=p.tail,p.rendering=s,p.tail=s.sibling,p.renderingStartTime=Be(),s.sibling=null,a=Yt.current,we(Yt,A?a&1|2:a&1),s):(vt(s),null);case 22:case 23:return fi(s),FA(),A=s.memoizedState!==null,a!==null?a.memoizedState!==null!==A&&(s.flags|=8192):A&&(s.flags|=8192),A?(d&536870912)!==0&&(s.flags&128)===0&&(vt(s),s.subtreeFlags&6&&(s.flags|=8192)):vt(s),d=s.updateQueue,d!==null&&e0(s,d.retryQueue),d=null,a!==null&&a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(d=a.memoizedState.cachePool.pool),A=null,s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(A=s.memoizedState.cachePool.pool),A!==d&&(s.flags|=2048),a!==null&&Ve(Ju),null;case 24:return d=null,a!==null&&(d=a.memoizedState.cache),s.memoizedState.cache!==d&&(s.flags|=2048),pi(Zt),vt(s),null;case 25:return null}throw Error(r(156,s.tag))}function ZO(a,s){switch(TA(s),s.tag){case 1:return a=s.flags,a&65536?(s.flags=a&-65537|128,s):null;case 3:return pi(Zt),kn(),a=s.flags,(a&65536)!==0&&(a&128)===0?(s.flags=a&-65537|128,s):null;case 26:case 27:case 5:return k(s),null;case 13:if(fi(s),a=s.memoizedState,a!==null&&a.dehydrated!==null){if(s.alternate===null)throw Error(r(340));Zo()}return a=s.flags,a&65536?(s.flags=a&-65537|128,s):null;case 19:return Ve(Yt),null;case 4:return kn(),null;case 10:return pi(s.type),null;case 22:case 23:return fi(s),FA(),a!==null&&Ve(Ju),a=s.flags,a&65536?(s.flags=a&-65537|128,s):null;case 24:return pi(Zt),null;case 25:return null;default:return null}}function UI(a,s){switch(TA(s),s.tag){case 3:pi(Zt),kn();break;case 26:case 27:case 5:k(s);break;case 4:kn();break;case 13:fi(s);break;case 19:Ve(Yt);break;case 10:pi(s.type);break;case 22:case 23:fi(s),FA(),a!==null&&Ve(Ju);break;case 24:pi(Zt)}}var WO={getCacheForType:function(a){var s=En(Zt),d=s.data.get(a);return d===void 0&&(d=a(),s.data.set(a,d)),d}},qO=typeof WeakMap=="function"?WeakMap:Map,Rt=0,_t=null,it=null,ct=0,St=0,$n=null,Ni=!1,_s=!1,Rm=!1,Ii=0,Ft=0,au=0,oa=0,Dm=0,fr=0,Ss=0,ml=null,Vr=null,Tm=!1,bm=0,t0=1/0,n0=null,su=null,r0=!1,la=null,pl=0,xm=0,Bm=null,El=0,Fm=null;function Yn(){if((Rt&2)!==0&&ct!==0)return ct&-ct;if(U.T!==null){var a=ds;return a!==0?a:km()}return aS()}function kI(){fr===0&&(fr=(ct&536870912)===0||ft?tS():536870912);var a=or.current;return a!==null&&(a.flags|=32),fr}function Tn(a,s,d){(a===_t&&St===2||a.cancelPendingCommit!==null)&&(Ns(a,0),yi(a,ct,fr,!1)),wo(a,d),((Rt&2)===0||a!==_t)&&(a===_t&&((Rt&2)===0&&(oa|=d),Ft===4&&yi(a,ct,fr,!1)),jr(a))}function GI(a,s,d){if((Rt&6)!==0)throw Error(r(327));var A=!d&&(s&60)===0&&(s&a.expiredLanes)===0||Lo(a,s),p=A?JO(a,s):Mm(a,s,!0),I=A;do{if(p===0){_s&&!A&&yi(a,s,0,!1);break}else if(p===6)yi(a,s,0,!Ni);else{if(d=a.current.alternate,I&&!XO(d)){p=Mm(a,s,!1),I=!1;continue}if(p===2){if(I=s,a.errorRecoveryDisabledLanes&I)var T=0;else T=a.pendingLanes&-536870913,T=T!==0?T:T&536870912?536870912:0;if(T!==0){s=T;e:{var F=a;p=ml;var M=F.current.memoizedState.isDehydrated;if(M&&(Ns(F,T).flags|=256),T=Mm(F,T,!1),T!==2){if(Rm&&!M){F.errorRecoveryDisabledLanes|=I,oa|=I,p=4;break e}I=Vr,Vr=p,I!==null&&Om(I)}p=T}if(I=!1,p!==2)continue}}if(p===1){Ns(a,0),yi(a,s,0,!0);break}e:{switch(A=a,p){case 0:case 1:throw Error(r(345));case 4:if((s&4194176)===s){yi(A,s,fr,!Ni);break e}break;case 2:Vr=null;break;case 3:case 5:break;default:throw Error(r(329))}if(A.finishedWork=d,A.finishedLanes=s,(s&62914560)===s&&(I=bm+300-Be(),10<I)){if(yi(A,s,fr,!Ni),pd(A,0)!==0)break e;A.timeoutHandle=dy(VI.bind(null,A,d,Vr,n0,Tm,s,fr,oa,Ss,Ni,2,-0,0),I);break e}VI(A,d,Vr,n0,Tm,s,fr,oa,Ss,Ni,0,-0,0)}}break}while(!0);jr(a)}function Om(a){Vr===null?Vr=a:Vr.push.apply(Vr,a)}function VI(a,s,d,A,p,I,T,F,M,K,se,he,J){var ue=s.subtreeFlags;if((ue&8192||(ue&16785408)===16785408)&&(yl={stylesheets:null,count:0,unsuspend:FL},FI(s),s=LL(),s!==null)){a.cancelPendingCommit=s(WI.bind(null,a,d,A,p,T,F,M,1,he,J)),yi(a,I,T,!K);return}WI(a,d,A,p,T,F,M,se,he,J)}function XO(a){for(var s=a;;){var d=s.tag;if((d===0||d===11||d===15)&&s.flags&16384&&(d=s.updateQueue,d!==null&&(d=d.stores,d!==null)))for(var A=0;A<d.length;A++){var p=d[A],I=p.getSnapshot;p=p.value;try{if(!jn(I(),p))return!1}catch{return!1}}if(d=s.child,s.subtreeFlags&16384&&d!==null)d.return=s,s=d;else{if(s===a)break;for(;s.sibling===null;){if(s.return===null||s.return===a)return!0;s=s.return}s.sibling.return=s.return,s=s.sibling}}return!0}function yi(a,s,d,A){s&=~Dm,s&=~oa,a.suspendedLanes|=s,a.pingedLanes&=~s,A&&(a.warmLanes|=s),A=a.expirationTimes;for(var p=s;0<p;){var I=31-Vn(p),T=1<<I;A[I]=-1,p&=~T}d!==0&&rS(a,d,s)}function i0(){return(Rt&6)===0?(gl(0),!1):!0}function Lm(){if(it!==null){if(St===0)var a=it.return;else a=it,mi=ia=null,kA(a),ls=null,Qo=0,a=it;for(;a!==null;)UI(a.alternate,a),a=a.return;it=null}}function Ns(a,s){a.finishedWork=null,a.finishedLanes=0;var d=a.timeoutHandle;d!==-1&&(a.timeoutHandle=-1,pL(d)),d=a.cancelPendingCommit,d!==null&&(a.cancelPendingCommit=null,d()),Lm(),_t=a,it=d=uu(a.current,null),ct=s,St=0,$n=null,Ni=!1,_s=Lo(a,s),Rm=!1,Ss=fr=Dm=oa=au=Ft=0,Vr=ml=null,Tm=!1,(s&8)!==0&&(s|=s&32);var A=a.entangledLanes;if(A!==0)for(a=a.entanglements,A&=s;0<A;){var p=31-Vn(A),I=1<<p;s|=a[p],A&=~I}return Ii=s,Td(),d}function jI(a,s){tt=null,U.H=Gr,s===qo?(s=iN(),St=3):s===tN?(s=iN(),St=4):St=s===nI?8:s!==null&&typeof s=="object"&&typeof s.then=="function"?6:1,$n=s,it===null&&(Ft=1,Zd(a,ur(s,a.current)))}function zI(){var a=U.H;return U.H=Gr,a===null?Gr:a}function KI(){var a=U.A;return U.A=WO,a}function wm(){Ft=4,Ni||(ct&4194176)!==ct&&or.current!==null||(_s=!0),(au&134217727)===0&&(oa&134217727)===0||_t===null||yi(_t,ct,fr,!1)}function Mm(a,s,d){var A=Rt;Rt|=2;var p=zI(),I=KI();(_t!==a||ct!==s)&&(n0=null,Ns(a,s)),s=!1;var T=Ft;e:do try{if(St!==0&&it!==null){var F=it,M=$n;switch(St){case 8:Lm(),T=6;break e;case 3:case 2:case 6:or.current===null&&(s=!0);var K=St;if(St=0,$n=null,Is(a,F,M,K),d&&_s){T=0;break e}break;default:K=St,St=0,$n=null,Is(a,F,M,K)}}QO(),T=Ft;break}catch(se){jI(a,se)}while(!0);return s&&a.shellSuspendCounter++,mi=ia=null,Rt=A,U.H=p,U.A=I,it===null&&(_t=null,ct=0,Td()),T}function QO(){for(;it!==null;)$I(it)}function JO(a,s){var d=Rt;Rt|=2;var A=zI(),p=KI();_t!==a||ct!==s?(n0=null,t0=Be()+500,Ns(a,s)):_s=Lo(a,s);e:do try{if(St!==0&&it!==null){s=it;var I=$n;t:switch(St){case 1:St=0,$n=null,Is(a,s,I,1);break;case 2:if(nN(I)){St=0,$n=null,YI(s);break}s=function(){St===2&&_t===a&&(St=7),jr(a)},I.then(s,s);break e;case 3:St=7;break e;case 4:St=5;break e;case 7:nN(I)?(St=0,$n=null,YI(s)):(St=0,$n=null,Is(a,s,I,7));break;case 5:var T=null;switch(it.tag){case 26:T=it.memoizedState;case 5:case 27:var F=it;if(!T||Iy(T)){St=0,$n=null;var M=F.sibling;if(M!==null)it=M;else{var K=F.return;K!==null?(it=K,u0(K)):it=null}break t}}St=0,$n=null,Is(a,s,I,5);break;case 6:St=0,$n=null,Is(a,s,I,6);break;case 8:Lm(),Ft=6;break e;default:throw Error(r(462))}}eL();break}catch(se){jI(a,se)}while(!0);return mi=ia=null,U.H=A,U.A=p,Rt=d,it!==null?0:(_t=null,ct=0,Td(),Ft)}function eL(){for(;it!==null&&!Ie();)$I(it)}function $I(a){var s=AI(a.alternate,a,Ii);a.memoizedProps=a.pendingProps,s===null?u0(a):it=s}function YI(a){var s=a,d=s.alternate;switch(s.tag){case 15:case 0:s=oI(d,s,s.pendingProps,s.type,void 0,ct);break;case 11:s=oI(d,s,s.pendingProps,s.type.render,s.ref,ct);break;case 5:kA(s);default:UI(d,s),s=it=MI(s,Ii),s=AI(d,s,Ii)}a.memoizedProps=a.pendingProps,s===null?u0(a):it=s}function Is(a,s,d,A){mi=ia=null,kA(s),ls=null,Qo=0;var p=s.return;try{if(VO(a,p,s,d,ct)){Ft=1,Zd(a,ur(d,a.current)),it=null;return}}catch(I){if(p!==null)throw it=p,I;Ft=1,Zd(a,ur(d,a.current)),it=null;return}s.flags&32768?(ft||A===1?a=!0:_s||(ct&536870912)!==0?a=!1:(Ni=a=!0,(A===2||A===3||A===6)&&(A=or.current,A!==null&&A.tag===13&&(A.flags|=16384))),ZI(s,a)):u0(s)}function u0(a){var s=a;do{if((s.flags&32768)!==0){ZI(s,Ni);return}a=s.return;var d=YO(s.alternate,s,Ii);if(d!==null){it=d;return}if(s=s.sibling,s!==null){it=s;return}it=s=a}while(s!==null);Ft===0&&(Ft=5)}function ZI(a,s){do{var d=ZO(a.alternate,a);if(d!==null){d.flags&=32767,it=d;return}if(d=a.return,d!==null&&(d.flags|=32768,d.subtreeFlags=0,d.deletions=null),!s&&(a=a.sibling,a!==null)){it=a;return}it=a=d}while(a!==null);Ft=6,it=null}function WI(a,s,d,A,p,I,T,F,M,K){var se=U.T,he=ne.p;try{ne.p=2,U.T=null,tL(a,s,d,A,he,p,I,T,F,M,K)}finally{U.T=se,ne.p=he}}function tL(a,s,d,A,p,I,T,F){do ys();while(la!==null);if((Rt&6)!==0)throw Error(r(327));var M=a.finishedWork;if(A=a.finishedLanes,M===null)return null;if(a.finishedWork=null,a.finishedLanes=0,M===a.current)throw Error(r(177));a.callbackNode=null,a.callbackPriority=0,a.cancelPendingCommit=null;var K=M.lanes|M.childLanes;if(K|=vA,OF(a,A,K,I,T,F),a===_t&&(it=_t=null,ct=0),(M.subtreeFlags&10256)===0&&(M.flags&10256)===0||r0||(r0=!0,xm=K,Bm=d,uL(Gn,function(){return ys(),null})),d=(M.flags&15990)!==0,(M.subtreeFlags&15990)!==0||d?(d=U.T,U.T=null,I=ne.p,ne.p=2,T=Rt,Rt|=4,zO(a,M),bI(M,a),vO(Zm,a.containerInfo),E0=!!Ym,Zm=Ym=null,a.current=M,vI(a,M.alternate,M),Se(),Rt=T,ne.p=I,U.T=d):a.current=M,r0?(r0=!1,la=a,pl=A):qI(a,K),K=a.pendingLanes,K===0&&(su=null),hd(M.stateNode),jr(a),s!==null)for(p=a.onRecoverableError,M=0;M<s.length;M++)K=s[M],p(K.value,{componentStack:K.stack});return(pl&3)!==0&&ys(),K=a.pendingLanes,(A&4194218)!==0&&(K&42)!==0?a===Fm?El++:(El=0,Fm=a):El=0,gl(0),null}function qI(a,s){(a.pooledCacheLanes&=s)===0&&(s=a.pooledCache,s!=null&&(a.pooledCache=null,el(s)))}function ys(){if(la!==null){var a=la,s=xm;xm=0;var d=uS(pl),A=U.T,p=ne.p;try{if(ne.p=32>d?32:d,U.T=null,la===null)var I=!1;else{d=Bm,Bm=null;var T=la,F=pl;if(la=null,pl=0,(Rt&6)!==0)throw Error(r(331));var M=Rt;if(Rt|=4,LI(T.current),BI(T,T.current,F,d),Rt=M,gl(0,!1),Rn&&typeof Rn.onPostCommitFiberRoot=="function")try{Rn.onPostCommitFiberRoot(ji,T)}catch{}I=!0}return I}finally{ne.p=p,U.T=A,qI(a,s)}}return!1}function XI(a,s,d){s=ur(d,s),s=em(a.stateNode,s,2),a=tu(a,s,2),a!==null&&(wo(a,2),jr(a))}function gt(a,s,d){if(a.tag===3)XI(a,a,d);else for(;s!==null;){if(s.tag===3){XI(s,a,d);break}else if(s.tag===1){var A=s.stateNode;if(typeof s.type.getDerivedStateFromError=="function"||typeof A.componentDidCatch=="function"&&(su===null||!su.has(A))){a=ur(d,a),d=eI(2),A=tu(s,d,2),A!==null&&(tI(d,A,s,a),wo(A,2),jr(A));break}}s=s.return}}function Pm(a,s,d){var A=a.pingCache;if(A===null){A=a.pingCache=new qO;var p=new Set;A.set(s,p)}else p=A.get(s),p===void 0&&(p=new Set,A.set(s,p));p.has(d)||(Rm=!0,p.add(d),a=nL.bind(null,a,s,d),s.then(a,a))}function nL(a,s,d){var A=a.pingCache;A!==null&&A.delete(s),a.pingedLanes|=a.suspendedLanes&d,a.warmLanes&=~d,_t===a&&(ct&d)===d&&(Ft===4||Ft===3&&(ct&62914560)===ct&&300>Be()-bm?(Rt&2)===0&&Ns(a,0):Dm|=d,Ss===ct&&(Ss=0)),jr(a)}function QI(a,s){s===0&&(s=nS()),a=Yi(a,s),a!==null&&(wo(a,s),jr(a))}function rL(a){var s=a.memoizedState,d=0;s!==null&&(d=s.retryLane),QI(a,d)}function iL(a,s){var d=0;switch(a.tag){case 13:var A=a.stateNode,p=a.memoizedState;p!==null&&(d=p.retryLane);break;case 19:A=a.stateNode;break;case 22:A=a.stateNode._retryCache;break;default:throw Error(r(314))}A!==null&&A.delete(s),QI(a,d)}function uL(a,s){return ie(a,s)}var a0=null,Cs=null,Hm=!1,s0=!1,Um=!1,ca=0;function jr(a){a!==Cs&&a.next===null&&(Cs===null?a0=Cs=a:Cs=Cs.next=a),s0=!0,Hm||(Hm=!0,sL(aL))}function gl(a,s){if(!Um&&s0){Um=!0;do for(var d=!1,A=a0;A!==null;){if(a!==0){var p=A.pendingLanes;if(p===0)var I=0;else{var T=A.suspendedLanes,F=A.pingedLanes;I=(1<<31-Vn(42|a)+1)-1,I&=p&~(T&~F),I=I&201326677?I&201326677|1:I?I|2:0}I!==0&&(d=!0,ty(A,I))}else I=ct,I=pd(A,A===_t?I:0),(I&3)===0||Lo(A,I)||(d=!0,ty(A,I));A=A.next}while(d);Um=!1}}function aL(){s0=Hm=!1;var a=0;ca!==0&&(mL()&&(a=ca),ca=0);for(var s=Be(),d=null,A=a0;A!==null;){var p=A.next,I=JI(A,s);I===0?(A.next=null,d===null?a0=p:d.next=p,p===null&&(Cs=d)):(d=A,(a!==0||(I&3)!==0)&&(s0=!0)),A=p}gl(a)}function JI(a,s){for(var d=a.suspendedLanes,A=a.pingedLanes,p=a.expirationTimes,I=a.pendingLanes&-62914561;0<I;){var T=31-Vn(I),F=1<<T,M=p[T];M===-1?((F&d)===0||(F&A)!==0)&&(p[T]=FF(F,s)):M<=s&&(a.expiredLanes|=F),I&=~F}if(s=_t,d=ct,d=pd(a,a===s?d:0),A=a.callbackNode,d===0||a===s&&St===2||a.cancelPendingCommit!==null)return A!==null&&A!==null&&Ce(A),a.callbackNode=null,a.callbackPriority=0;if((d&3)===0||Lo(a,d)){if(s=d&-d,s===a.callbackPriority)return s;switch(A!==null&&Ce(A),uS(d)){case 2:case 8:d=Pt;break;case 32:d=Gn;break;case 268435456:d=Ya;break;default:d=Gn}return A=ey.bind(null,a),d=ie(d,A),a.callbackPriority=s,a.callbackNode=d,s}return A!==null&&A!==null&&Ce(A),a.callbackPriority=2,a.callbackNode=null,2}function ey(a,s){var d=a.callbackNode;if(ys()&&a.callbackNode!==d)return null;var A=ct;return A=pd(a,a===_t?A:0),A===0?null:(GI(a,A,s),JI(a,Be()),a.callbackNode!=null&&a.callbackNode===d?ey.bind(null,a):null)}function ty(a,s){if(ys())return null;GI(a,s,!0)}function sL(a){EL(function(){(Rt&6)!==0?ie(Mt,a):a()})}function km(){return ca===0&&(ca=tS()),ca}function ny(a){return a==null||typeof a=="symbol"||typeof a=="boolean"?null:typeof a=="function"?a:Nd(""+a)}function ry(a,s){var d=s.ownerDocument.createElement("input");return d.name=s.name,d.value=s.value,a.id&&d.setAttribute("form",a.id),s.parentNode.insertBefore(d,s),a=new FormData(a),d.parentNode.removeChild(d),a}function oL(a,s,d,A,p){if(s==="submit"&&d&&d.stateNode===p){var I=ny((p[On]||null).action),T=A.submitter;T&&(s=(s=T[On]||null)?ny(s.formAction):T.getAttribute("formAction"),s!==null&&(I=s,T=null));var F=new vd("action","action",null,A,p);a.push({event:F,listeners:[{instance:null,listener:function(){if(A.defaultPrevented){if(ca!==0){var M=T?ry(p,T):new FormData(p);WA(d,{pending:!0,data:M,method:p.method,action:I},null,M)}}else typeof I=="function"&&(F.preventDefault(),M=T?ry(p,T):new FormData(p),WA(d,{pending:!0,data:M,method:p.method,action:I},I,M))},currentTarget:p}]})}}for(var Gm=0;Gm<WS.length;Gm++){var Vm=WS[Gm],lL=Vm.toLowerCase(),cL=Vm[0].toUpperCase()+Vm.slice(1);Cr(lL,"on"+cL)}Cr(zS,"onAnimationEnd"),Cr(KS,"onAnimationIteration"),Cr($S,"onAnimationStart"),Cr("dblclick","onDoubleClick"),Cr("focusin","onFocus"),Cr("focusout","onBlur"),Cr(DO,"onTransitionRun"),Cr(TO,"onTransitionStart"),Cr(bO,"onTransitionCancel"),Cr(YS,"onTransitionEnd"),Xa("onMouseEnter",["mouseout","mouseover"]),Xa("onMouseLeave",["mouseout","mouseover"]),Xa("onPointerEnter",["pointerout","pointerover"]),Xa("onPointerLeave",["pointerout","pointerover"]),Ku("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Ku("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Ku("onBeforeInput",["compositionend","keypress","textInput","paste"]),Ku("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Ku("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Ku("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var _l="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),dL=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(_l));function iy(a,s){s=(s&4)!==0;for(var d=0;d<a.length;d++){var A=a[d],p=A.event;A=A.listeners;e:{var I=void 0;if(s)for(var T=A.length-1;0<=T;T--){var F=A[T],M=F.instance,K=F.currentTarget;if(F=F.listener,M!==I&&p.isPropagationStopped())break e;I=F,p.currentTarget=K;try{I(p)}catch(se){Yd(se)}p.currentTarget=null,I=M}else for(T=0;T<A.length;T++){if(F=A[T],M=F.instance,K=F.currentTarget,F=F.listener,M!==I&&p.isPropagationStopped())break e;I=F,p.currentTarget=K;try{I(p)}catch(se){Yd(se)}p.currentTarget=null,I=M}}}}function ot(a,s){var d=s[iA];d===void 0&&(d=s[iA]=new Set);var A=a+"__bubble";d.has(A)||(uy(s,a,2,!1),d.add(A))}function jm(a,s,d){var A=0;s&&(A|=4),uy(d,a,A,s)}var o0="_reactListening"+Math.random().toString(36).slice(2);function zm(a){if(!a[o0]){a[o0]=!0,oS.forEach(function(d){d!=="selectionchange"&&(dL.has(d)||jm(d,!1,a),jm(d,!0,a))});var s=a.nodeType===9?a:a.ownerDocument;s===null||s[o0]||(s[o0]=!0,jm("selectionchange",!1,s))}}function uy(a,s,d,A){switch(Ty(s)){case 2:var p=PL;break;case 8:p=HL;break;default:p=rp}d=p.bind(null,s,d,a),p=void 0,!fA||s!=="touchstart"&&s!=="touchmove"&&s!=="wheel"||(p=!0),A?p!==void 0?a.addEventListener(s,d,{capture:!0,passive:p}):a.addEventListener(s,d,!0):p!==void 0?a.addEventListener(s,d,{passive:p}):a.addEventListener(s,d,!1)}function Km(a,s,d,A,p){var I=A;if((s&1)===0&&(s&2)===0&&A!==null)e:for(;;){if(A===null)return;var T=A.tag;if(T===3||T===4){var F=A.stateNode.containerInfo;if(F===p||F.nodeType===8&&F.parentNode===p)break;if(T===4)for(T=A.return;T!==null;){var M=T.tag;if((M===3||M===4)&&(M=T.stateNode.containerInfo,M===p||M.nodeType===8&&M.parentNode===p))return;T=T.return}for(;F!==null;){if(T=zu(F),T===null)return;if(M=T.tag,M===5||M===6||M===26||M===27){A=I=T;continue e}F=F.parentNode}}A=A.return}SS(function(){var K=I,se=cA(d),he=[];e:{var J=ZS.get(a);if(J!==void 0){var ue=vd,Le=a;switch(a){case"keypress":if(yd(d)===0)break e;case"keydown":case"keyup":ue=iO;break;case"focusin":Le="focus",ue=pA;break;case"focusout":Le="blur",ue=pA;break;case"beforeblur":case"afterblur":ue=pA;break;case"click":if(d.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":ue=yS;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":ue=$F;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":ue=sO;break;case zS:case KS:case $S:ue=WF;break;case YS:ue=lO;break;case"scroll":case"scrollend":ue=zF;break;case"wheel":ue=dO;break;case"copy":case"cut":case"paste":ue=XF;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":ue=vS;break;case"toggle":case"beforetoggle":ue=hO}var Ye=(s&4)!==0,Ot=!Ye&&(a==="scroll"||a==="scrollend"),Y=Ye?J!==null?J+"Capture":null:J;Ye=[];for(var z=K,q;z!==null;){var le=z;if(q=le.stateNode,le=le.tag,le!==5&&le!==26&&le!==27||q===null||Y===null||(le=Ho(z,Y),le!=null&&Ye.push(Sl(z,le,q))),Ot)break;z=z.return}0<Ye.length&&(J=new ue(J,Le,null,d,se),he.push({event:J,listeners:Ye}))}}if((s&7)===0){e:{if(J=a==="mouseover"||a==="pointerover",ue=a==="mouseout"||a==="pointerout",J&&d!==lA&&(Le=d.relatedTarget||d.fromElement)&&(zu(Le)||Le[Za]))break e;if((ue||J)&&(J=se.window===se?se:(J=se.ownerDocument)?J.defaultView||J.parentWindow:window,ue?(Le=d.relatedTarget||d.toElement,ue=K,Le=Le?zu(Le):null,Le!==null&&(Ot=Q(Le),Ye=Le.tag,Le!==Ot||Ye!==5&&Ye!==27&&Ye!==6)&&(Le=null)):(ue=null,Le=K),ue!==Le)){if(Ye=yS,le="onMouseLeave",Y="onMouseEnter",z="mouse",(a==="pointerout"||a==="pointerover")&&(Ye=vS,le="onPointerLeave",Y="onPointerEnter",z="pointer"),Ot=ue==null?J:Po(ue),q=Le==null?J:Po(Le),J=new Ye(le,z+"leave",ue,d,se),J.target=Ot,J.relatedTarget=q,le=null,zu(se)===K&&(Ye=new Ye(Y,z+"enter",Le,d,se),Ye.target=q,Ye.relatedTarget=Ot,le=Ye),Ot=le,ue&&Le)t:{for(Ye=ue,Y=Le,z=0,q=Ye;q;q=vs(q))z++;for(q=0,le=Y;le;le=vs(le))q++;for(;0<z-q;)Ye=vs(Ye),z--;for(;0<q-z;)Y=vs(Y),q--;for(;z--;){if(Ye===Y||Y!==null&&Ye===Y.alternate)break t;Ye=vs(Ye),Y=vs(Y)}Ye=null}else Ye=null;ue!==null&&ay(he,J,ue,Ye,!1),Le!==null&&Ot!==null&&ay(he,Ot,Le,Ye,!0)}}e:{if(J=K?Po(K):window,ue=J.nodeName&&J.nodeName.toLowerCase(),ue==="select"||ue==="input"&&J.type==="file")var Te=OS;else if(BS(J))if(LS)Te=yO;else{Te=NO;var rt=SO}else ue=J.nodeName,!ue||ue.toLowerCase()!=="input"||J.type!=="checkbox"&&J.type!=="radio"?K&&oA(K.elementType)&&(Te=OS):Te=IO;if(Te&&(Te=Te(a,K))){FS(he,Te,d,se);break e}rt&&rt(a,J,K),a==="focusout"&&K&&J.type==="number"&&K.memoizedProps.value!=null&&sA(J,"number",J.value)}switch(rt=K?Po(K):window,a){case"focusin":(BS(rt)||rt.contentEditable==="true")&&(rs=rt,IA=K,$o=null);break;case"focusout":$o=IA=rs=null;break;case"mousedown":yA=!0;break;case"contextmenu":case"mouseup":case"dragend":yA=!1,VS(he,d,se);break;case"selectionchange":if(RO)break;case"keydown":case"keyup":VS(he,d,se)}var Pe;if(gA)e:{switch(a){case"compositionstart":var He="onCompositionStart";break e;case"compositionend":He="onCompositionEnd";break e;case"compositionupdate":He="onCompositionUpdate";break e}He=void 0}else ns?bS(a,d)&&(He="onCompositionEnd"):a==="keydown"&&d.keyCode===229&&(He="onCompositionStart");He&&(RS&&d.locale!=="ko"&&(ns||He!=="onCompositionStart"?He==="onCompositionEnd"&&ns&&(Pe=NS()):($i=se,hA="value"in $i?$i.value:$i.textContent,ns=!0)),rt=l0(K,He),0<rt.length&&(He=new CS(He,a,null,d,se),he.push({event:He,listeners:rt}),Pe?He.data=Pe:(Pe=xS(d),Pe!==null&&(He.data=Pe)))),(Pe=mO?pO(a,d):EO(a,d))&&(He=l0(K,"onBeforeInput"),0<He.length&&(rt=new CS("onBeforeInput","beforeinput",null,d,se),he.push({event:rt,listeners:He}),rt.data=Pe)),oL(he,a,K,d,se)}iy(he,s)})}function Sl(a,s,d){return{instance:a,listener:s,currentTarget:d}}function l0(a,s){for(var d=s+"Capture",A=[];a!==null;){var p=a,I=p.stateNode;p=p.tag,p!==5&&p!==26&&p!==27||I===null||(p=Ho(a,d),p!=null&&A.unshift(Sl(a,p,I)),p=Ho(a,s),p!=null&&A.push(Sl(a,p,I))),a=a.return}return A}function vs(a){if(a===null)return null;do a=a.return;while(a&&a.tag!==5&&a.tag!==27);return a||null}function ay(a,s,d,A,p){for(var I=s._reactName,T=[];d!==null&&d!==A;){var F=d,M=F.alternate,K=F.stateNode;if(F=F.tag,M!==null&&M===A)break;F!==5&&F!==26&&F!==27||K===null||(M=K,p?(K=Ho(d,I),K!=null&&T.unshift(Sl(d,K,M))):p||(K=Ho(d,I),K!=null&&T.push(Sl(d,K,M)))),d=d.return}T.length!==0&&a.push({event:s,listeners:T})}var fL=/\r\n?/g,hL=/\u0000|\uFFFD/g;function sy(a){return(typeof a=="string"?a:""+a).replace(fL,`
50
+ `).replace(hL,"")}function oy(a,s){return s=sy(s),sy(a)===s}function c0(){}function pt(a,s,d,A,p,I){switch(d){case"children":typeof A=="string"?s==="body"||s==="textarea"&&A===""||Ja(a,A):(typeof A=="number"||typeof A=="bigint")&&s!=="body"&&Ja(a,""+A);break;case"className":gd(a,"class",A);break;case"tabIndex":gd(a,"tabindex",A);break;case"dir":case"role":case"viewBox":case"width":case"height":gd(a,d,A);break;case"style":gS(a,A,I);break;case"data":if(s!=="object"){gd(a,"data",A);break}case"src":case"href":if(A===""&&(s!=="a"||d!=="href")){a.removeAttribute(d);break}if(A==null||typeof A=="function"||typeof A=="symbol"||typeof A=="boolean"){a.removeAttribute(d);break}A=Nd(""+A),a.setAttribute(d,A);break;case"action":case"formAction":if(typeof A=="function"){a.setAttribute(d,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof I=="function"&&(d==="formAction"?(s!=="input"&&pt(a,s,"name",p.name,p,null),pt(a,s,"formEncType",p.formEncType,p,null),pt(a,s,"formMethod",p.formMethod,p,null),pt(a,s,"formTarget",p.formTarget,p,null)):(pt(a,s,"encType",p.encType,p,null),pt(a,s,"method",p.method,p,null),pt(a,s,"target",p.target,p,null)));if(A==null||typeof A=="symbol"||typeof A=="boolean"){a.removeAttribute(d);break}A=Nd(""+A),a.setAttribute(d,A);break;case"onClick":A!=null&&(a.onclick=c0);break;case"onScroll":A!=null&&ot("scroll",a);break;case"onScrollEnd":A!=null&&ot("scrollend",a);break;case"dangerouslySetInnerHTML":if(A!=null){if(typeof A!="object"||!("__html"in A))throw Error(r(61));if(d=A.__html,d!=null){if(p.children!=null)throw Error(r(60));a.innerHTML=d}}break;case"multiple":a.multiple=A&&typeof A!="function"&&typeof A!="symbol";break;case"muted":a.muted=A&&typeof A!="function"&&typeof A!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(A==null||typeof A=="function"||typeof A=="boolean"||typeof A=="symbol"){a.removeAttribute("xlink:href");break}d=Nd(""+A),a.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",d);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":A!=null&&typeof A!="function"&&typeof A!="symbol"?a.setAttribute(d,""+A):a.removeAttribute(d);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":A&&typeof A!="function"&&typeof A!="symbol"?a.setAttribute(d,""):a.removeAttribute(d);break;case"capture":case"download":A===!0?a.setAttribute(d,""):A!==!1&&A!=null&&typeof A!="function"&&typeof A!="symbol"?a.setAttribute(d,A):a.removeAttribute(d);break;case"cols":case"rows":case"size":case"span":A!=null&&typeof A!="function"&&typeof A!="symbol"&&!isNaN(A)&&1<=A?a.setAttribute(d,A):a.removeAttribute(d);break;case"rowSpan":case"start":A==null||typeof A=="function"||typeof A=="symbol"||isNaN(A)?a.removeAttribute(d):a.setAttribute(d,A);break;case"popover":ot("beforetoggle",a),ot("toggle",a),Ed(a,"popover",A);break;case"xlinkActuate":li(a,"http://www.w3.org/1999/xlink","xlink:actuate",A);break;case"xlinkArcrole":li(a,"http://www.w3.org/1999/xlink","xlink:arcrole",A);break;case"xlinkRole":li(a,"http://www.w3.org/1999/xlink","xlink:role",A);break;case"xlinkShow":li(a,"http://www.w3.org/1999/xlink","xlink:show",A);break;case"xlinkTitle":li(a,"http://www.w3.org/1999/xlink","xlink:title",A);break;case"xlinkType":li(a,"http://www.w3.org/1999/xlink","xlink:type",A);break;case"xmlBase":li(a,"http://www.w3.org/XML/1998/namespace","xml:base",A);break;case"xmlLang":li(a,"http://www.w3.org/XML/1998/namespace","xml:lang",A);break;case"xmlSpace":li(a,"http://www.w3.org/XML/1998/namespace","xml:space",A);break;case"is":Ed(a,"is",A);break;case"innerText":case"textContent":break;default:(!(2<d.length)||d[0]!=="o"&&d[0]!=="O"||d[1]!=="n"&&d[1]!=="N")&&(d=VF.get(d)||d,Ed(a,d,A))}}function $m(a,s,d,A,p,I){switch(d){case"style":gS(a,A,I);break;case"dangerouslySetInnerHTML":if(A!=null){if(typeof A!="object"||!("__html"in A))throw Error(r(61));if(d=A.__html,d!=null){if(p.children!=null)throw Error(r(60));a.innerHTML=d}}break;case"children":typeof A=="string"?Ja(a,A):(typeof A=="number"||typeof A=="bigint")&&Ja(a,""+A);break;case"onScroll":A!=null&&ot("scroll",a);break;case"onScrollEnd":A!=null&&ot("scrollend",a);break;case"onClick":A!=null&&(a.onclick=c0);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!lS.hasOwnProperty(d))e:{if(d[0]==="o"&&d[1]==="n"&&(p=d.endsWith("Capture"),s=d.slice(2,p?d.length-7:void 0),I=a[On]||null,I=I!=null?I[d]:null,typeof I=="function"&&a.removeEventListener(s,I,p),typeof A=="function")){typeof I!="function"&&I!==null&&(d in a?a[d]=null:a.hasAttribute(d)&&a.removeAttribute(d)),a.addEventListener(s,A,p);break e}d in a?a[d]=A:A===!0?a.setAttribute(d,""):Ed(a,d,A)}}}function cn(a,s,d){switch(s){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":ot("error",a),ot("load",a);var A=!1,p=!1,I;for(I in d)if(d.hasOwnProperty(I)){var T=d[I];if(T!=null)switch(I){case"src":A=!0;break;case"srcSet":p=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,s));default:pt(a,s,I,T,d,null)}}p&&pt(a,s,"srcSet",d.srcSet,d,null),A&&pt(a,s,"src",d.src,d,null);return;case"input":ot("invalid",a);var F=I=T=p=null,M=null,K=null;for(A in d)if(d.hasOwnProperty(A)){var se=d[A];if(se!=null)switch(A){case"name":p=se;break;case"type":T=se;break;case"checked":M=se;break;case"defaultChecked":K=se;break;case"value":I=se;break;case"defaultValue":F=se;break;case"children":case"dangerouslySetInnerHTML":if(se!=null)throw Error(r(137,s));break;default:pt(a,s,A,se,d,null)}}AS(a,I,F,M,K,T,p,!1),_d(a);return;case"select":ot("invalid",a),A=T=I=null;for(p in d)if(d.hasOwnProperty(p)&&(F=d[p],F!=null))switch(p){case"value":I=F;break;case"defaultValue":T=F;break;case"multiple":A=F;default:pt(a,s,p,F,d,null)}s=I,d=T,a.multiple=!!A,s!=null?Qa(a,!!A,s,!1):d!=null&&Qa(a,!!A,d,!0);return;case"textarea":ot("invalid",a),I=p=A=null;for(T in d)if(d.hasOwnProperty(T)&&(F=d[T],F!=null))switch(T){case"value":A=F;break;case"defaultValue":p=F;break;case"children":I=F;break;case"dangerouslySetInnerHTML":if(F!=null)throw Error(r(91));break;default:pt(a,s,T,F,d,null)}pS(a,A,p,I),_d(a);return;case"option":for(M in d)if(d.hasOwnProperty(M)&&(A=d[M],A!=null))switch(M){case"selected":a.selected=A&&typeof A!="function"&&typeof A!="symbol";break;default:pt(a,s,M,A,d,null)}return;case"dialog":ot("cancel",a),ot("close",a);break;case"iframe":case"object":ot("load",a);break;case"video":case"audio":for(A=0;A<_l.length;A++)ot(_l[A],a);break;case"image":ot("error",a),ot("load",a);break;case"details":ot("toggle",a);break;case"embed":case"source":case"link":ot("error",a),ot("load",a);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(K in d)if(d.hasOwnProperty(K)&&(A=d[K],A!=null))switch(K){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,s));default:pt(a,s,K,A,d,null)}return;default:if(oA(s)){for(se in d)d.hasOwnProperty(se)&&(A=d[se],A!==void 0&&$m(a,s,se,A,d,void 0));return}}for(F in d)d.hasOwnProperty(F)&&(A=d[F],A!=null&&pt(a,s,F,A,d,null))}function AL(a,s,d,A){switch(s){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var p=null,I=null,T=null,F=null,M=null,K=null,se=null;for(ue in d){var he=d[ue];if(d.hasOwnProperty(ue)&&he!=null)switch(ue){case"checked":break;case"value":break;case"defaultValue":M=he;default:A.hasOwnProperty(ue)||pt(a,s,ue,null,A,he)}}for(var J in A){var ue=A[J];if(he=d[J],A.hasOwnProperty(J)&&(ue!=null||he!=null))switch(J){case"type":I=ue;break;case"name":p=ue;break;case"checked":K=ue;break;case"defaultChecked":se=ue;break;case"value":T=ue;break;case"defaultValue":F=ue;break;case"children":case"dangerouslySetInnerHTML":if(ue!=null)throw Error(r(137,s));break;default:ue!==he&&pt(a,s,J,ue,A,he)}}aA(a,T,F,M,K,se,I,p);return;case"select":ue=T=F=J=null;for(I in d)if(M=d[I],d.hasOwnProperty(I)&&M!=null)switch(I){case"value":break;case"multiple":ue=M;default:A.hasOwnProperty(I)||pt(a,s,I,null,A,M)}for(p in A)if(I=A[p],M=d[p],A.hasOwnProperty(p)&&(I!=null||M!=null))switch(p){case"value":J=I;break;case"defaultValue":F=I;break;case"multiple":T=I;default:I!==M&&pt(a,s,p,I,A,M)}s=F,d=T,A=ue,J!=null?Qa(a,!!d,J,!1):!!A!=!!d&&(s!=null?Qa(a,!!d,s,!0):Qa(a,!!d,d?[]:"",!1));return;case"textarea":ue=J=null;for(F in d)if(p=d[F],d.hasOwnProperty(F)&&p!=null&&!A.hasOwnProperty(F))switch(F){case"value":break;case"children":break;default:pt(a,s,F,null,A,p)}for(T in A)if(p=A[T],I=d[T],A.hasOwnProperty(T)&&(p!=null||I!=null))switch(T){case"value":J=p;break;case"defaultValue":ue=p;break;case"children":break;case"dangerouslySetInnerHTML":if(p!=null)throw Error(r(91));break;default:p!==I&&pt(a,s,T,p,A,I)}mS(a,J,ue);return;case"option":for(var Le in d)if(J=d[Le],d.hasOwnProperty(Le)&&J!=null&&!A.hasOwnProperty(Le))switch(Le){case"selected":a.selected=!1;break;default:pt(a,s,Le,null,A,J)}for(M in A)if(J=A[M],ue=d[M],A.hasOwnProperty(M)&&J!==ue&&(J!=null||ue!=null))switch(M){case"selected":a.selected=J&&typeof J!="function"&&typeof J!="symbol";break;default:pt(a,s,M,J,A,ue)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var Ye in d)J=d[Ye],d.hasOwnProperty(Ye)&&J!=null&&!A.hasOwnProperty(Ye)&&pt(a,s,Ye,null,A,J);for(K in A)if(J=A[K],ue=d[K],A.hasOwnProperty(K)&&J!==ue&&(J!=null||ue!=null))switch(K){case"children":case"dangerouslySetInnerHTML":if(J!=null)throw Error(r(137,s));break;default:pt(a,s,K,J,A,ue)}return;default:if(oA(s)){for(var Ot in d)J=d[Ot],d.hasOwnProperty(Ot)&&J!==void 0&&!A.hasOwnProperty(Ot)&&$m(a,s,Ot,void 0,A,J);for(se in A)J=A[se],ue=d[se],!A.hasOwnProperty(se)||J===ue||J===void 0&&ue===void 0||$m(a,s,se,J,A,ue);return}}for(var Y in d)J=d[Y],d.hasOwnProperty(Y)&&J!=null&&!A.hasOwnProperty(Y)&&pt(a,s,Y,null,A,J);for(he in A)J=A[he],ue=d[he],!A.hasOwnProperty(he)||J===ue||J==null&&ue==null||pt(a,s,he,J,A,ue)}var Ym=null,Zm=null;function d0(a){return a.nodeType===9?a:a.ownerDocument}function ly(a){switch(a){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function cy(a,s){if(a===0)switch(s){case"svg":return 1;case"math":return 2;default:return 0}return a===1&&s==="foreignObject"?0:a}function Wm(a,s){return a==="textarea"||a==="noscript"||typeof s.children=="string"||typeof s.children=="number"||typeof s.children=="bigint"||typeof s.dangerouslySetInnerHTML=="object"&&s.dangerouslySetInnerHTML!==null&&s.dangerouslySetInnerHTML.__html!=null}var qm=null;function mL(){var a=window.event;return a&&a.type==="popstate"?a===qm?!1:(qm=a,!0):(qm=null,!1)}var dy=typeof setTimeout=="function"?setTimeout:void 0,pL=typeof clearTimeout=="function"?clearTimeout:void 0,fy=typeof Promise=="function"?Promise:void 0,EL=typeof queueMicrotask=="function"?queueMicrotask:typeof fy<"u"?function(a){return fy.resolve(null).then(a).catch(gL)}:dy;function gL(a){setTimeout(function(){throw a})}function Xm(a,s){var d=s,A=0;do{var p=d.nextSibling;if(a.removeChild(d),p&&p.nodeType===8)if(d=p.data,d==="/$"){if(A===0){a.removeChild(p),Tl(s);return}A--}else d!=="$"&&d!=="$?"&&d!=="$!"||A++;d=p}while(d);Tl(s)}function Qm(a){var s=a.firstChild;for(s&&s.nodeType===10&&(s=s.nextSibling);s;){var d=s;switch(s=s.nextSibling,d.nodeName){case"HTML":case"HEAD":case"BODY":Qm(d),uA(d);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(d.rel.toLowerCase()==="stylesheet")continue}a.removeChild(d)}}function _L(a,s,d,A){for(;a.nodeType===1;){var p=d;if(a.nodeName.toLowerCase()!==s.toLowerCase()){if(!A&&(a.nodeName!=="INPUT"||a.type!=="hidden"))break}else if(A){if(!a[Mo])switch(s){case"meta":if(!a.hasAttribute("itemprop"))break;return a;case"link":if(I=a.getAttribute("rel"),I==="stylesheet"&&a.hasAttribute("data-precedence"))break;if(I!==p.rel||a.getAttribute("href")!==(p.href==null?null:p.href)||a.getAttribute("crossorigin")!==(p.crossOrigin==null?null:p.crossOrigin)||a.getAttribute("title")!==(p.title==null?null:p.title))break;return a;case"style":if(a.hasAttribute("data-precedence"))break;return a;case"script":if(I=a.getAttribute("src"),(I!==(p.src==null?null:p.src)||a.getAttribute("type")!==(p.type==null?null:p.type)||a.getAttribute("crossorigin")!==(p.crossOrigin==null?null:p.crossOrigin))&&I&&a.hasAttribute("async")&&!a.hasAttribute("itemprop"))break;return a;default:return a}}else if(s==="input"&&a.type==="hidden"){var I=p.name==null?null:""+p.name;if(p.type==="hidden"&&a.getAttribute("name")===I)return a}else return a;if(a=Dr(a.nextSibling),a===null)break}return null}function SL(a,s,d){if(s==="")return null;for(;a.nodeType!==3;)if((a.nodeType!==1||a.nodeName!=="INPUT"||a.type!=="hidden")&&!d||(a=Dr(a.nextSibling),a===null))return null;return a}function Dr(a){for(;a!=null;a=a.nextSibling){var s=a.nodeType;if(s===1||s===3)break;if(s===8){if(s=a.data,s==="$"||s==="$!"||s==="$?"||s==="F!"||s==="F")break;if(s==="/$")return null}}return a}function hy(a){a=a.previousSibling;for(var s=0;a;){if(a.nodeType===8){var d=a.data;if(d==="$"||d==="$!"||d==="$?"){if(s===0)return a;s--}else d==="/$"&&s++}a=a.previousSibling}return null}function Ay(a,s,d){switch(s=d0(d),a){case"html":if(a=s.documentElement,!a)throw Error(r(452));return a;case"head":if(a=s.head,!a)throw Error(r(453));return a;case"body":if(a=s.body,!a)throw Error(r(454));return a;default:throw Error(r(451))}}var hr=new Map,my=new Set;function f0(a){return typeof a.getRootNode=="function"?a.getRootNode():a.ownerDocument}var Ci=ne.d;ne.d={f:NL,r:IL,D:yL,C:CL,L:vL,m:RL,X:TL,S:DL,M:bL};function NL(){var a=Ci.f(),s=i0();return a||s}function IL(a){var s=Wa(a);s!==null&&s.tag===5&&s.type==="form"?VN(s):Ci.r(a)}var Rs=typeof document>"u"?null:document;function py(a,s,d){var A=Rs;if(A&&typeof s=="string"&&s){var p=rr(s);p='link[rel="'+a+'"][href="'+p+'"]',typeof d=="string"&&(p+='[crossorigin="'+d+'"]'),my.has(p)||(my.add(p),a={rel:a,crossOrigin:d,href:s},A.querySelector(p)===null&&(s=A.createElement("link"),cn(s,"link",a),en(s),A.head.appendChild(s)))}}function yL(a){Ci.D(a),py("dns-prefetch",a,null)}function CL(a,s){Ci.C(a,s),py("preconnect",a,s)}function vL(a,s,d){Ci.L(a,s,d);var A=Rs;if(A&&a&&s){var p='link[rel="preload"][as="'+rr(s)+'"]';s==="image"&&d&&d.imageSrcSet?(p+='[imagesrcset="'+rr(d.imageSrcSet)+'"]',typeof d.imageSizes=="string"&&(p+='[imagesizes="'+rr(d.imageSizes)+'"]')):p+='[href="'+rr(a)+'"]';var I=p;switch(s){case"style":I=Ds(a);break;case"script":I=Ts(a)}hr.has(I)||(a=G({rel:"preload",href:s==="image"&&d&&d.imageSrcSet?void 0:a,as:s},d),hr.set(I,a),A.querySelector(p)!==null||s==="style"&&A.querySelector(Nl(I))||s==="script"&&A.querySelector(Il(I))||(s=A.createElement("link"),cn(s,"link",a),en(s),A.head.appendChild(s)))}}function RL(a,s){Ci.m(a,s);var d=Rs;if(d&&a){var A=s&&typeof s.as=="string"?s.as:"script",p='link[rel="modulepreload"][as="'+rr(A)+'"][href="'+rr(a)+'"]',I=p;switch(A){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":I=Ts(a)}if(!hr.has(I)&&(a=G({rel:"modulepreload",href:a},s),hr.set(I,a),d.querySelector(p)===null)){switch(A){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(d.querySelector(Il(I)))return}A=d.createElement("link"),cn(A,"link",a),en(A),d.head.appendChild(A)}}}function DL(a,s,d){Ci.S(a,s,d);var A=Rs;if(A&&a){var p=qa(A).hoistableStyles,I=Ds(a);s=s||"default";var T=p.get(I);if(!T){var F={loading:0,preload:null};if(T=A.querySelector(Nl(I)))F.loading=5;else{a=G({rel:"stylesheet",href:a,"data-precedence":s},d),(d=hr.get(I))&&Jm(a,d);var M=T=A.createElement("link");en(M),cn(M,"link",a),M._p=new Promise(function(K,se){M.onload=K,M.onerror=se}),M.addEventListener("load",function(){F.loading|=1}),M.addEventListener("error",function(){F.loading|=2}),F.loading|=4,h0(T,s,A)}T={type:"stylesheet",instance:T,count:1,state:F},p.set(I,T)}}}function TL(a,s){Ci.X(a,s);var d=Rs;if(d&&a){var A=qa(d).hoistableScripts,p=Ts(a),I=A.get(p);I||(I=d.querySelector(Il(p)),I||(a=G({src:a,async:!0},s),(s=hr.get(p))&&ep(a,s),I=d.createElement("script"),en(I),cn(I,"link",a),d.head.appendChild(I)),I={type:"script",instance:I,count:1,state:null},A.set(p,I))}}function bL(a,s){Ci.M(a,s);var d=Rs;if(d&&a){var A=qa(d).hoistableScripts,p=Ts(a),I=A.get(p);I||(I=d.querySelector(Il(p)),I||(a=G({src:a,async:!0,type:"module"},s),(s=hr.get(p))&&ep(a,s),I=d.createElement("script"),en(I),cn(I,"link",a),d.head.appendChild(I)),I={type:"script",instance:I,count:1,state:null},A.set(p,I))}}function Ey(a,s,d,A){var p=(p=It.current)?f0(p):null;if(!p)throw Error(r(446));switch(a){case"meta":case"title":return null;case"style":return typeof d.precedence=="string"&&typeof d.href=="string"?(s=Ds(d.href),d=qa(p).hoistableStyles,A=d.get(s),A||(A={type:"style",instance:null,count:0,state:null},d.set(s,A)),A):{type:"void",instance:null,count:0,state:null};case"link":if(d.rel==="stylesheet"&&typeof d.href=="string"&&typeof d.precedence=="string"){a=Ds(d.href);var I=qa(p).hoistableStyles,T=I.get(a);if(T||(p=p.ownerDocument||p,T={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},I.set(a,T),(I=p.querySelector(Nl(a)))&&!I._p&&(T.instance=I,T.state.loading=5),hr.has(a)||(d={rel:"preload",as:"style",href:d.href,crossOrigin:d.crossOrigin,integrity:d.integrity,media:d.media,hrefLang:d.hrefLang,referrerPolicy:d.referrerPolicy},hr.set(a,d),I||xL(p,a,d,T.state))),s&&A===null)throw Error(r(528,""));return T}if(s&&A!==null)throw Error(r(529,""));return null;case"script":return s=d.async,d=d.src,typeof d=="string"&&s&&typeof s!="function"&&typeof s!="symbol"?(s=Ts(d),d=qa(p).hoistableScripts,A=d.get(s),A||(A={type:"script",instance:null,count:0,state:null},d.set(s,A)),A):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,a))}}function Ds(a){return'href="'+rr(a)+'"'}function Nl(a){return'link[rel="stylesheet"]['+a+"]"}function gy(a){return G({},a,{"data-precedence":a.precedence,precedence:null})}function xL(a,s,d,A){a.querySelector('link[rel="preload"][as="style"]['+s+"]")?A.loading=1:(s=a.createElement("link"),A.preload=s,s.addEventListener("load",function(){return A.loading|=1}),s.addEventListener("error",function(){return A.loading|=2}),cn(s,"link",d),en(s),a.head.appendChild(s))}function Ts(a){return'[src="'+rr(a)+'"]'}function Il(a){return"script[async]"+a}function _y(a,s,d){if(s.count++,s.instance===null)switch(s.type){case"style":var A=a.querySelector('style[data-href~="'+rr(d.href)+'"]');if(A)return s.instance=A,en(A),A;var p=G({},d,{"data-href":d.href,"data-precedence":d.precedence,href:null,precedence:null});return A=(a.ownerDocument||a).createElement("style"),en(A),cn(A,"style",p),h0(A,d.precedence,a),s.instance=A;case"stylesheet":p=Ds(d.href);var I=a.querySelector(Nl(p));if(I)return s.state.loading|=4,s.instance=I,en(I),I;A=gy(d),(p=hr.get(p))&&Jm(A,p),I=(a.ownerDocument||a).createElement("link"),en(I);var T=I;return T._p=new Promise(function(F,M){T.onload=F,T.onerror=M}),cn(I,"link",A),s.state.loading|=4,h0(I,d.precedence,a),s.instance=I;case"script":return I=Ts(d.src),(p=a.querySelector(Il(I)))?(s.instance=p,en(p),p):(A=d,(p=hr.get(I))&&(A=G({},d),ep(A,p)),a=a.ownerDocument||a,p=a.createElement("script"),en(p),cn(p,"link",A),a.head.appendChild(p),s.instance=p);case"void":return null;default:throw Error(r(443,s.type))}else s.type==="stylesheet"&&(s.state.loading&4)===0&&(A=s.instance,s.state.loading|=4,h0(A,d.precedence,a));return s.instance}function h0(a,s,d){for(var A=d.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),p=A.length?A[A.length-1]:null,I=p,T=0;T<A.length;T++){var F=A[T];if(F.dataset.precedence===s)I=F;else if(I!==p)break}I?I.parentNode.insertBefore(a,I.nextSibling):(s=d.nodeType===9?d.head:d,s.insertBefore(a,s.firstChild))}function Jm(a,s){a.crossOrigin==null&&(a.crossOrigin=s.crossOrigin),a.referrerPolicy==null&&(a.referrerPolicy=s.referrerPolicy),a.title==null&&(a.title=s.title)}function ep(a,s){a.crossOrigin==null&&(a.crossOrigin=s.crossOrigin),a.referrerPolicy==null&&(a.referrerPolicy=s.referrerPolicy),a.integrity==null&&(a.integrity=s.integrity)}var A0=null;function Sy(a,s,d){if(A0===null){var A=new Map,p=A0=new Map;p.set(d,A)}else p=A0,A=p.get(d),A||(A=new Map,p.set(d,A));if(A.has(a))return A;for(A.set(a,null),d=d.getElementsByTagName(a),p=0;p<d.length;p++){var I=d[p];if(!(I[Mo]||I[pn]||a==="link"&&I.getAttribute("rel")==="stylesheet")&&I.namespaceURI!=="http://www.w3.org/2000/svg"){var T=I.getAttribute(s)||"";T=a+T;var F=A.get(T);F?F.push(I):A.set(T,[I])}}return A}function Ny(a,s,d){a=a.ownerDocument||a,a.head.insertBefore(d,s==="title"?a.querySelector("head > title"):null)}function BL(a,s,d){if(d===1||s.itemProp!=null)return!1;switch(a){case"meta":case"title":return!0;case"style":if(typeof s.precedence!="string"||typeof s.href!="string"||s.href==="")break;return!0;case"link":if(typeof s.rel!="string"||typeof s.href!="string"||s.href===""||s.onLoad||s.onError)break;switch(s.rel){case"stylesheet":return a=s.disabled,typeof s.precedence=="string"&&a==null;default:return!0}case"script":if(s.async&&typeof s.async!="function"&&typeof s.async!="symbol"&&!s.onLoad&&!s.onError&&s.src&&typeof s.src=="string")return!0}return!1}function Iy(a){return!(a.type==="stylesheet"&&(a.state.loading&3)===0)}var yl=null;function FL(){}function OL(a,s,d){if(yl===null)throw Error(r(475));var A=yl;if(s.type==="stylesheet"&&(typeof d.media!="string"||matchMedia(d.media).matches!==!1)&&(s.state.loading&4)===0){if(s.instance===null){var p=Ds(d.href),I=a.querySelector(Nl(p));if(I){a=I._p,a!==null&&typeof a=="object"&&typeof a.then=="function"&&(A.count++,A=m0.bind(A),a.then(A,A)),s.state.loading|=4,s.instance=I,en(I);return}I=a.ownerDocument||a,d=gy(d),(p=hr.get(p))&&Jm(d,p),I=I.createElement("link"),en(I);var T=I;T._p=new Promise(function(F,M){T.onload=F,T.onerror=M}),cn(I,"link",d),s.instance=I}A.stylesheets===null&&(A.stylesheets=new Map),A.stylesheets.set(s,a),(a=s.state.preload)&&(s.state.loading&3)===0&&(A.count++,s=m0.bind(A),a.addEventListener("load",s),a.addEventListener("error",s))}}function LL(){if(yl===null)throw Error(r(475));var a=yl;return a.stylesheets&&a.count===0&&tp(a,a.stylesheets),0<a.count?function(s){var d=setTimeout(function(){if(a.stylesheets&&tp(a,a.stylesheets),a.unsuspend){var A=a.unsuspend;a.unsuspend=null,A()}},6e4);return a.unsuspend=s,function(){a.unsuspend=null,clearTimeout(d)}}:null}function m0(){if(this.count--,this.count===0){if(this.stylesheets)tp(this,this.stylesheets);else if(this.unsuspend){var a=this.unsuspend;this.unsuspend=null,a()}}}var p0=null;function tp(a,s){a.stylesheets=null,a.unsuspend!==null&&(a.count++,p0=new Map,s.forEach(wL,a),p0=null,m0.call(a))}function wL(a,s){if(!(s.state.loading&4)){var d=p0.get(a);if(d)var A=d.get(null);else{d=new Map,p0.set(a,d);for(var p=a.querySelectorAll("link[data-precedence],style[data-precedence]"),I=0;I<p.length;I++){var T=p[I];(T.nodeName==="LINK"||T.getAttribute("media")!=="not all")&&(d.set(T.dataset.precedence,T),A=T)}A&&d.set(null,A)}p=s.instance,T=p.getAttribute("data-precedence"),I=d.get(T)||A,I===A&&d.set(null,p),d.set(T,p),this.count++,A=m0.bind(this),p.addEventListener("load",A),p.addEventListener("error",A),I?I.parentNode.insertBefore(p,I.nextSibling):(a=a.nodeType===9?a.head:a,a.insertBefore(p,a.firstChild)),s.state.loading|=4}}var Cl={$$typeof:_,Provider:null,Consumer:null,_currentValue:de,_currentValue2:de,_threadCount:0};function ML(a,s,d,A,p,I,T,F){this.tag=1,this.containerInfo=a,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=rA(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.finishedLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=rA(0),this.hiddenUpdates=rA(null),this.identifierPrefix=A,this.onUncaughtError=p,this.onCaughtError=I,this.onRecoverableError=T,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=F,this.incompleteTransitions=new Map}function yy(a,s,d,A,p,I,T,F,M,K,se,he){return a=new ML(a,s,d,T,F,M,K,he),s=1,I===!0&&(s|=24),I=dr(3,null,null,s),a.current=I,I.stateNode=a,s=OA(),s.refCount++,a.pooledCache=s,s.refCount++,I.memoizedState={element:A,isDehydrated:d,cache:s},hm(I),a}function Cy(a){return a?(a=as,a):as}function vy(a,s,d,A,p,I){p=Cy(p),A.context===null?A.context=p:A.pendingContext=p,A=eu(s),A.payload={element:d},I=I===void 0?null:I,I!==null&&(A.callback=I),d=tu(a,A,s),d!==null&&(Tn(d,a,s),sl(d,a,s))}function Ry(a,s){if(a=a.memoizedState,a!==null&&a.dehydrated!==null){var d=a.retryLane;a.retryLane=d!==0&&d<s?d:s}}function np(a,s){Ry(a,s),(a=a.alternate)&&Ry(a,s)}function Dy(a){if(a.tag===13){var s=Yi(a,67108864);s!==null&&Tn(s,a,67108864),np(a,67108864)}}var E0=!0;function PL(a,s,d,A){var p=U.T;U.T=null;var I=ne.p;try{ne.p=2,rp(a,s,d,A)}finally{ne.p=I,U.T=p}}function HL(a,s,d,A){var p=U.T;U.T=null;var I=ne.p;try{ne.p=8,rp(a,s,d,A)}finally{ne.p=I,U.T=p}}function rp(a,s,d,A){if(E0){var p=ip(A);if(p===null)Km(a,s,A,g0,d),by(a,A);else if(kL(p,a,s,d,A))A.stopPropagation();else if(by(a,A),s&4&&-1<UL.indexOf(a)){for(;p!==null;){var I=Wa(p);if(I!==null)switch(I.tag){case 3:if(I=I.stateNode,I.current.memoizedState.isDehydrated){var T=ju(I.pendingLanes);if(T!==0){var F=I;for(F.pendingLanes|=2,F.entangledLanes|=2;T;){var M=1<<31-Vn(T);F.entanglements[1]|=M,T&=~M}jr(I),(Rt&6)===0&&(t0=Be()+500,gl(0))}}break;case 13:F=Yi(I,2),F!==null&&Tn(F,I,2),i0(),np(I,2)}if(I=ip(A),I===null&&Km(a,s,A,g0,d),I===p)break;p=I}p!==null&&A.stopPropagation()}else Km(a,s,A,null,d)}}function ip(a){return a=cA(a),up(a)}var g0=null;function up(a){if(g0=null,a=zu(a),a!==null){var s=Q(a);if(s===null)a=null;else{var d=s.tag;if(d===13){if(a=Ae(s),a!==null)return a;a=null}else if(d===3){if(s.stateNode.current.memoizedState.isDehydrated)return s.tag===3?s.stateNode.containerInfo:null;a=null}else s!==a&&(a=null)}}return g0=a,null}function Ty(a){switch(a){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(Je()){case Mt:return 2;case Pt:return 8;case Gn:case tA:return 32;case Ya:return 268435456;default:return 32}default:return 32}}var ap=!1,ou=null,lu=null,cu=null,vl=new Map,Rl=new Map,du=[],UL="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function by(a,s){switch(a){case"focusin":case"focusout":ou=null;break;case"dragenter":case"dragleave":lu=null;break;case"mouseover":case"mouseout":cu=null;break;case"pointerover":case"pointerout":vl.delete(s.pointerId);break;case"gotpointercapture":case"lostpointercapture":Rl.delete(s.pointerId)}}function Dl(a,s,d,A,p,I){return a===null||a.nativeEvent!==I?(a={blockedOn:s,domEventName:d,eventSystemFlags:A,nativeEvent:I,targetContainers:[p]},s!==null&&(s=Wa(s),s!==null&&Dy(s)),a):(a.eventSystemFlags|=A,s=a.targetContainers,p!==null&&s.indexOf(p)===-1&&s.push(p),a)}function kL(a,s,d,A,p){switch(s){case"focusin":return ou=Dl(ou,a,s,d,A,p),!0;case"dragenter":return lu=Dl(lu,a,s,d,A,p),!0;case"mouseover":return cu=Dl(cu,a,s,d,A,p),!0;case"pointerover":var I=p.pointerId;return vl.set(I,Dl(vl.get(I)||null,a,s,d,A,p)),!0;case"gotpointercapture":return I=p.pointerId,Rl.set(I,Dl(Rl.get(I)||null,a,s,d,A,p)),!0}return!1}function xy(a){var s=zu(a.target);if(s!==null){var d=Q(s);if(d!==null){if(s=d.tag,s===13){if(s=Ae(d),s!==null){a.blockedOn=s,LF(a.priority,function(){if(d.tag===13){var A=Yn(),p=Yi(d,A);p!==null&&Tn(p,d,A),np(d,A)}});return}}else if(s===3&&d.stateNode.current.memoizedState.isDehydrated){a.blockedOn=d.tag===3?d.stateNode.containerInfo:null;return}}}a.blockedOn=null}function _0(a){if(a.blockedOn!==null)return!1;for(var s=a.targetContainers;0<s.length;){var d=ip(a.nativeEvent);if(d===null){d=a.nativeEvent;var A=new d.constructor(d.type,d);lA=A,d.target.dispatchEvent(A),lA=null}else return s=Wa(d),s!==null&&Dy(s),a.blockedOn=d,!1;s.shift()}return!0}function By(a,s,d){_0(a)&&d.delete(s)}function GL(){ap=!1,ou!==null&&_0(ou)&&(ou=null),lu!==null&&_0(lu)&&(lu=null),cu!==null&&_0(cu)&&(cu=null),vl.forEach(By),Rl.forEach(By)}function S0(a,s){a.blockedOn===s&&(a.blockedOn=null,ap||(ap=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,GL)))}var N0=null;function Fy(a){N0!==a&&(N0=a,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){N0===a&&(N0=null);for(var s=0;s<a.length;s+=3){var d=a[s],A=a[s+1],p=a[s+2];if(typeof A!="function"){if(up(A||d)===null)continue;break}var I=Wa(d);I!==null&&(a.splice(s,3),s-=3,WA(I,{pending:!0,data:p,method:d.method,action:A},A,p))}}))}function Tl(a){function s(M){return S0(M,a)}ou!==null&&S0(ou,a),lu!==null&&S0(lu,a),cu!==null&&S0(cu,a),vl.forEach(s),Rl.forEach(s);for(var d=0;d<du.length;d++){var A=du[d];A.blockedOn===a&&(A.blockedOn=null)}for(;0<du.length&&(d=du[0],d.blockedOn===null);)xy(d),d.blockedOn===null&&du.shift();if(d=(a.ownerDocument||a).$$reactFormReplay,d!=null)for(A=0;A<d.length;A+=3){var p=d[A],I=d[A+1],T=p[On]||null;if(typeof I=="function")T||Fy(d);else if(T){var F=null;if(I&&I.hasAttribute("formAction")){if(p=I,T=I[On]||null)F=T.formAction;else if(up(p)!==null)continue}else F=T.action;typeof F=="function"?d[A+1]=F:(d.splice(A,3),A-=3),Fy(d)}}}function sp(a){this._internalRoot=a}I0.prototype.render=sp.prototype.render=function(a){var s=this._internalRoot;if(s===null)throw Error(r(409));var d=s.current,A=Yn();vy(d,A,a,s,null,null)},I0.prototype.unmount=sp.prototype.unmount=function(){var a=this._internalRoot;if(a!==null){this._internalRoot=null;var s=a.containerInfo;a.tag===0&&ys(),vy(a.current,2,null,a,null,null),i0(),s[Za]=null}};function I0(a){this._internalRoot=a}I0.prototype.unstable_scheduleHydration=function(a){if(a){var s=aS();a={blockedOn:null,target:a,priority:s};for(var d=0;d<du.length&&s!==0&&s<du[d].priority;d++);du.splice(d,0,a),d===0&&xy(a)}};var Oy=t.version;if(Oy!=="19.0.0")throw Error(r(527,Oy,"19.0.0"));ne.findDOMNode=function(a){var s=a._reactInternals;if(s===void 0)throw typeof a.render=="function"?Error(r(188)):(a=Object.keys(a).join(","),Error(r(268,a)));return a=W(s),a=a!==null?j(a):null,a=a===null?null:a.stateNode,a};var VL={bundleType:0,version:"19.0.0",rendererPackageName:"react-dom",currentDispatcherRef:U,findFiberByHostInstance:zu,reconcilerVersion:"19.0.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var y0=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!y0.isDisabled&&y0.supportsFiber)try{ji=y0.inject(VL),Rn=y0}catch{}}return xl.createRoot=function(a,s){if(!u(a))throw Error(r(299));var d=!1,A="",p=qN,I=XN,T=QN,F=null;return s!=null&&(s.unstable_strictMode===!0&&(d=!0),s.identifierPrefix!==void 0&&(A=s.identifierPrefix),s.onUncaughtError!==void 0&&(p=s.onUncaughtError),s.onCaughtError!==void 0&&(I=s.onCaughtError),s.onRecoverableError!==void 0&&(T=s.onRecoverableError),s.unstable_transitionCallbacks!==void 0&&(F=s.unstable_transitionCallbacks)),s=yy(a,1,!1,null,null,d,A,p,I,T,F,null),a[Za]=s.current,zm(a.nodeType===8?a.parentNode:a),new sp(s)},xl.hydrateRoot=function(a,s,d){if(!u(a))throw Error(r(299));var A=!1,p="",I=qN,T=XN,F=QN,M=null,K=null;return d!=null&&(d.unstable_strictMode===!0&&(A=!0),d.identifierPrefix!==void 0&&(p=d.identifierPrefix),d.onUncaughtError!==void 0&&(I=d.onUncaughtError),d.onCaughtError!==void 0&&(T=d.onCaughtError),d.onRecoverableError!==void 0&&(F=d.onRecoverableError),d.unstable_transitionCallbacks!==void 0&&(M=d.unstable_transitionCallbacks),d.formState!==void 0&&(K=d.formState)),s=yy(a,1,!0,s,d??null,A,p,I,T,F,M,K),s.context=Cy(null),d=s.current,A=Yn(),p=eu(A),p.callback=null,tu(d,p,A),s.current.lanes=A,wo(s,A),jr(s),a[Za]=s.current,zm(a),new I0(s)},xl.version="19.0.0",xl}var jy;function tw(){if(jy)return cp.exports;jy=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),cp.exports=ew(),cp.exports}var nw=tw();const rw={locales:["en","en-GB","fr","es","de","ja","ko","zh","it","pt","hi","ar","ru"],requiredLocales:[],strictMode:"strict",defaultLocale:"en"},iw={headerName:"x-intlayer-locale",cookieName:"INTLAYER_LOCALE",prefixDefault:!1,basePath:"",serverSetCookie:"always",noPrefix:!1},uw={fileExtensions:[".content.ts",".content.js",".content.cjs",".content.cjx",".content.mjs",".content.mjx",".content.json",".content.tsx",".content.jsx"],baseDir:"/Users/aymericpineau/Documents/intlayer/packages/intlayer-editor",contentDirName:"src",resultDirName:".intlayer",moduleAugmentationDirName:".intlayer/types",dictionariesDirName:"dictionary",i18nextResourcesDirName:"i18next_resources",reactIntlMessagesDirName:"intl_messages",typeDirName:"types",mainDirName:"main",configDirName:"config",excludedPath:["node_modules"],watch:!1,contentDir:"/Users/aymericpineau/Documents/intlayer/packages/intlayer-editor/src",resultDir:"/Users/aymericpineau/Documents/intlayer/packages/intlayer-editor/.intlayer",moduleAugmentationDir:"/Users/aymericpineau/Documents/intlayer/packages/intlayer-editor/.intlayer/types",dictionaryOutput:["intlayer"],dictionariesDir:"/Users/aymericpineau/Documents/intlayer/packages/intlayer-editor/.intlayer/dictionary",i18nextResourcesDir:"/Users/aymericpineau/Documents/intlayer/packages/intlayer-editor/.intlayer/i18next_resources",reactIntlMessagesDir:"/Users/aymericpineau/Documents/intlayer/packages/intlayer-editor/.intlayer/intl_messages",typesDir:"/Users/aymericpineau/Documents/intlayer/packages/intlayer-editor/.intlayer/types",mainDir:"/Users/aymericpineau/Documents/intlayer/packages/intlayer-editor/.intlayer/main",configDir:"/Users/aymericpineau/Documents/intlayer/packages/intlayer-editor/.intlayer/config",watchedFilesPattern:["/**/*.content.ts","/**/*.content.js","/**/*.content.cjs","/**/*.content.cjx","/**/*.content.mjs","/**/*.content.mjx","/**/*.content.json","/**/*.content.tsx","/**/*.content.jsx"],watchedFilesPatternWithPath:["/Users/aymericpineau/Documents/intlayer/packages/intlayer-editor/src/**/*.content.ts","/Users/aymericpineau/Documents/intlayer/packages/intlayer-editor/src/**/*.content.js","/Users/aymericpineau/Documents/intlayer/packages/intlayer-editor/src/**/*.content.cjs","/Users/aymericpineau/Documents/intlayer/packages/intlayer-editor/src/**/*.content.cjx","/Users/aymericpineau/Documents/intlayer/packages/intlayer-editor/src/**/*.content.mjs","/Users/aymericpineau/Documents/intlayer/packages/intlayer-editor/src/**/*.content.mjx","/Users/aymericpineau/Documents/intlayer/packages/intlayer-editor/src/**/*.content.json","/Users/aymericpineau/Documents/intlayer/packages/intlayer-editor/src/**/*.content.tsx","/Users/aymericpineau/Documents/intlayer/packages/intlayer-editor/src/**/*.content.jsx"],outputFilesPatternWithPath:"/Users/aymericpineau/Documents/intlayer/packages/intlayer-editor/.intlayer/dictionary/**/*.json"},aw={applicationURL:"http://localhost:5173/",editorURL:"http://localhost:8000",cmsURL:"https://intlayer.org",backendURL:"https://back.intlayer.org",port:8e3,enabled:!0,dictionaryPriorityStrategy:"local_first",hotReload:!1,openAiApiKey:"",openAiApiModel:"gpt-4o-2024-11-20",openAiApiTemperature:.1},sw={mode:"default",prefix:"\x1B[90m[intlayer] \x1B[0m"},Qe={internationalization:rw,middleware:iw,content:uw,editor:aw,log:sw},fn=[];for(let e=0;e<256;++e)fn.push((e+256).toString(16).slice(1));function ow(e,t=0){return(fn[e[t+0]]+fn[e[t+1]]+fn[e[t+2]]+fn[e[t+3]]+"-"+fn[e[t+4]]+fn[e[t+5]]+"-"+fn[e[t+6]]+fn[e[t+7]]+"-"+fn[e[t+8]]+fn[e[t+9]]+"-"+fn[e[t+10]]+fn[e[t+11]]+fn[e[t+12]]+fn[e[t+13]]+fn[e[t+14]]+fn[e[t+15]]).toLowerCase()}let Ap;const lw=new Uint8Array(16);function cw(){if(!Ap){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");Ap=crypto.getRandomValues.bind(crypto)}return Ap(lw)}const dw=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),zy={randomUUID:dw};function fw(e,t,n){var u;if(zy.randomUUID&&!e)return zy.randomUUID();e=e||{};const r=e.random??((u=e.rng)==null?void 0:u.call(e))??cw();if(r.length<16)throw new Error("Random bytes length must be >= 16");return r[6]=r[6]&15|64,r[8]=r[8]&63|128,ow(r)}const{editor:vi}=Qe,GR=y.createContext({postMessage:()=>null,allowedOrigins:[vi==null?void 0:vi.applicationURL,vi==null?void 0:vi.editorURL,vi==null?void 0:vi.cmsURL],senderId:""}),Ky=({children:e,allowedOrigins:t,postMessage:n})=>{const r=y.useRef(fw()),u=y.useMemo(()=>({postMessage:n,allowedOrigins:t,senderId:r.current}),[n,t,r.current]);return N.jsx(GR.Provider,{value:u,children:e})},VR=()=>y.useContext(GR),hw=(e,t)=>{try{const n=new URL(e),r=new URL(t);if(n.protocol!==r.protocol||n.hostname!==r.hostname||n.port!==r.port)return!1;const u=n.pathname.replace(/\/$/,""),o=r.pathname.replace(/\/$/,"");return!(u!==""&&o!==""&&u!==o)}catch(n){return console.error("Invalid URL(s)",n),!1}},Js=(e,t,n)=>{const{allowedOrigins:r,postMessage:u,senderId:o}=VR();return y.useEffect(()=>{if(t){const c=f=>{const{type:h,data:m,senderId:E}=f.data;h===e&&E!==o&&(typeof r>"u"||r!=null&&r.some(g=>hw(g,f.origin))||r!=null&&r.includes("*"))&&t(m)};return window.addEventListener("message",c),()=>window.removeEventListener("message",c)}},[r,u,o,n]),c=>{u({type:e,data:c,senderId:o})}},Aw=(e,t)=>typeof e=="function"?e(t):e,ka=(e,t,n)=>{const{postMessage:r,senderId:u}=VR(),{emit:o,receive:l}=n??{emit:!0,receive:!0},c=(_,S)=>{const C=Aw(_,S);return o&&typeof r=="function"&&typeof C<"u"&&r({type:`${e}/post`,data:C,senderId:u}),C},f=()=>{typeof r=="function"&&r({type:`${e}/post`,data:h,senderId:u})},[h,m]=y.useState(()=>c(t)),E=_=>m(S=>c(_,S));Js(`${e}/post`,l?_=>{m(_)}:void 0);const g=(_,S)=>{o&&typeof r=="function"&&S!==u&&(typeof h>"u"||r({type:`${e}/post`,data:h,senderId:u}))};return Js(`${e}/get`,o?g:void 0,h),y.useEffect(()=>{l&&typeof r=="function"&&typeof h>"u"&&r({type:`${e}/get`,senderId:u})},[]),[h,E,f]},jR=y.createContext(void 0),mw=({children:e,configuration:t})=>N.jsx(jR.Provider,{value:t,children:e}),ii=()=>y.useContext(jR),zR=y.createContext(void 0),KR=y.createContext(void 0),pw=({children:e})=>{const[t,n]=ka("INTLAYER_LOCALE_DICTIONARIES_CHANGED",void 0),r=y.useMemo(()=>({localeDictionaries:t??{}}),[t]),u=y.useMemo(()=>({setLocaleDictionaries:n,setLocaleDictionary:o=>{n(l=>({...l,[o.key]:o}))}}),[n]);return N.jsx(zR.Provider,{value:r,children:N.jsx(KR.Provider,{value:u,children:e})})},qg=()=>y.useContext(KR),$R=()=>{const e=qg(),t=y.useContext(zR);if(!t)throw new Error("useDictionariesRecordStates must be used within a DictionariesRecordProvider");return{...t,...e}};var $=(e=>(e.Translation="translation",e.Enumeration="enumeration",e.Condition="condition",e.Insertion="insertion",e.File="file",e.Object="object",e.Array="array",e.Nested="nested",e.ReactNode="reactNode",e.Markdown="markdown",e.Text="text",e.Number="number",e.Boolean="boolean",e.Unknown="unknown",e))($||{});const Ew=(e,t,n)=>({...n,nodeType:e,[e]:t}),_e=e=>Ew($.Translation,e),gw=e=>{let t=e.trim().replace(/^\[/,"[").replace(/^\{/,"{").replace(/\]$/,"]").replace(/\}$/,"}").replace(/([\w\d_]+)\s*:/g,'"$1":').replace(/:\s*([a-zA-Z_][\w\d_]*)/g,': "$1"');return t=t.replace(/\[([^\[\]]+?)\]/g,(n,r)=>`[${r.split(",").map(o=>{const l=o.trim();return l.startsWith('"')&&l.endsWith('"')||!isNaN(Number(l))?l:`"${l}"`}).join(", ")}]`),JSON.parse(t)},YR=e=>{try{const t=e.split(/\r?\n/),n=t.find(o=>o.trim()!=="");if(!n||n.trim()!=="---")return{};const r={};let u=!1;for(const o of t){if(o.trim()==="---"){if(u)break;u=!0;continue}if(u){const c=o.match(/^([^:]+)\s*:\s*(.*)$/);if(c){const f=c[1].trim(),h=c[2].trim();try{r[f]=gw(h)}catch{r[f]=h}}}}return r}catch{return}},q0=(e,t)=>{for(const r of t.plugins??[])if(r.canHandle(e))return r.transform(e,t,(u,o)=>q0(u,o));if(e===null||typeof e!="object")return e;if(Array.isArray(e))return e.map((r,u)=>{const o={...t,children:r,keyPath:[...t.keyPath,{type:$.Array,key:u}]};return q0(r,o)});const n={};for(const r in e){const u={...t,children:e[r],keyPath:[...t.keyPath,{type:$.Object,key:r}]};n[r]=q0(e[r],u)}return n},_w=(e,t)=>{const n=Object.keys(e),r=n[n.length-1];return e[`${t}`]??e.fallback??e[r]},Sw=(e,t)=>{const n=Object.keys(e);for(const r of n){const u=!r.startsWith(">")&&!r.startsWith("<")&&!r.startsWith("=")&&parseFloat(r)===t||r.startsWith("=")&&parseFloat(r.slice(1))===t,o=r.startsWith(">")&&t>parseFloat(r.slice(1)),l=r.startsWith(">=")&&t>=parseFloat(r.slice(2)),c=r.startsWith("<")&&t<parseFloat(r.slice(1)),f=r.startsWith("<=")&&t<=parseFloat(r.slice(2));if(u||o||l||c||f)return r}},Nw=(e,t)=>{const n=Sw(e,t)??"fallback";return e[n]},$y={},Iw=(e,t,n=Qe.internationalization.defaultLocale)=>{const r=[xw,Dw(n),Tw,bw,Bw,Fw,...t.plugins??[]];return q0(e,{...t,plugins:r})},ZR=(e,t,n)=>{const r={dictionaryKey:e.key,dictionaryPath:e.filePath,keyPath:[],plugins:n};return Iw(e.content,r,t)},yw=(e,t,n)=>{const r=$y[e];if(!r)throw new Error(`Dictionary ${e} not found`,$y);return ZR(r,t,n)},Cw=(e,t,n)=>{const r=yw(e,n==null?void 0:n.locale,n==null?void 0:n.plugins);if(typeof t=="string"){const u=t.split(".");let o=r;for(const l of u)if(o=o==null?void 0:o[l],o===void 0)return r;return o}return r},vw=(e,t)=>{const{defaultLocale:n}=Qe==null?void 0:Qe.internationalization;return e[t??n]??e[n]},Rw=(e,t)=>e.replace(/\{\{(.*?)\}\}/g,(n,r)=>(t[r]??"").toString()),Dw=e=>({id:"translation-plugin",canHandle:t=>typeof t=="object"&&(t==null?void 0:t.nodeType)===$.Translation,transform:(t,n,r)=>{const u=structuredClone(t[$.Translation]);for(const o in u){const l={...n,children:u[o],keyPath:[...n.keyPath,{type:$.Translation,key:o}]};u[o]=r(u[o],l)}return vw(u,e)}}),Tw={id:"enumeration-plugin",canHandle:e=>typeof e=="object"&&(e==null?void 0:e.nodeType)===$.Enumeration,transform:(e,t,n)=>{const r=structuredClone(e[$.Enumeration]);for(const u in r){const o=r[u],l={...t,children:o,keyPath:[...t.keyPath,{type:$.Enumeration,key:u}]};r[u]=n(o,l)}return u=>Nw(r,u)}},bw={id:"condition-plugin",canHandle:e=>typeof e=="object"&&(e==null?void 0:e.nodeType)===$.Condition,transform:(e,t,n)=>{const r=structuredClone(e[$.Condition]);for(const u in r){const o=r[u],l={...t,children:o,keyPath:[...t.keyPath,{type:$.Condition,key:u}]};r[u]=n(o,l)}return u=>_w(r,u)}},xw={id:"insertion-plugin",canHandle:e=>typeof e=="object"&&(e==null?void 0:e.nodeType)===$.Insertion,transform:(e,t,n)=>{const r=[...t.keyPath,{type:$.Insertion}],u=e[$.Insertion];return n(u,{...t,children:u,keyPath:r,plugins:[{id:"insertion-string-plugin",canHandle:l=>typeof l=="string",transform:(l,c,f)=>{const h=f(l,{...c,children:l,plugins:[...(t.plugins??[]).filter(m=>m.id!=="intlayer-node-plugin")]});return m=>{const E=Rw(h,m);return f(E,{...c,plugins:t.plugins,children:E})}}},...t.plugins??[]]})}},Bw={id:"nested-plugin",canHandle:e=>typeof e=="object"&&(e==null?void 0:e.nodeType)===$.Nested,transform:(e,t)=>Cw(e.nested.dictionaryKey,e.nested.path,t)},Fw={id:"file-plugin",canHandle:e=>typeof e=="object"&&(e==null?void 0:e.nodeType)===$.File,transform:(e,t,n)=>n(e.content,{...t,children:e.content})},Yy={method:"GET",headers:{"Content-Type":"application/json"},credentials:"include"},Ow=e=>(Object.keys(e).forEach(t=>{e[t]===void 0&&delete e[t]}),e),C0=e=>e.reduce((t,n)=>{const r=t??{},u=Ow(n??{});return typeof r=="object"&&typeof u=="object"?{...r,...u}:u??r},{}),Fe=async(e,...t)=>{const{signal:n}=new AbortController;let r="",u;const o=t.map(({body:_,params:S,headers:C,...v})=>v),l=C0([Yy,...o]),c=C0([Yy.headers,...t.map(_=>_.headers)]),f=C0(t.map(_=>_.params)),h=l.method;if(h!=="GET"&&h!=="HEAD"){const _=C0(t.map(S=>S.body));(c==null?void 0:c["Content-Type"])==="application/x-www-form-urlencoded"?u=new URLSearchParams(_).toString():u=JSON.stringify(_)}Object.entries(f).length>0&&(r=`?${new URLSearchParams(f).toString()}`);const m={...l,headers:c,body:u,signal:n},E=`${e}${r}`,g=await fetch(E,m);if(!g.ok){const _=await g.json();throw new Error(JSON.stringify(_.error)??"An error occurred")}return await g.json()},Lw=(e={},t=Qe)=>{const{backendURL:n}=(t==null?void 0:t.editor)??{};if(!n)throw new Error("Backend URL is not defined in the Intlayer configuration.");const r=`${n}/api/ai`;return{auditContentDeclaration:async(m,E={})=>await Fe(`${r}/audit/dictionary`,e,E,{method:"POST",body:m}),auditContentDeclarationField:async(m,E={})=>await Fe(`${r}/audit/dictionary/field`,e,E,{method:"POST",body:m}),auditContentDeclarationMetadata:async(m,E={})=>await Fe(`${r}/audit/dictionary/metadata`,e,E,{method:"POST",body:m}),auditTag:async(m,E={})=>await Fe(`${r}/audit/tag`,e,E,{method:"POST",body:m}),askDocQuestion:async(m,E={})=>await Fe(`${r}/ask`,e,E,{method:"POST",body:m}),autocomplete:async(m,E={})=>await Fe(`${r}/autocomplete`,e,E,{method:"POST",body:m})}},ww=(e={},t=Qe)=>{const{backendURL:n,clientId:r,clientSecret:u}=(t==null?void 0:t.editor)??{};if(!n)throw new Error("Backend URL is not defined in the Intlayer configuration.");const o=`${n}/api/auth`;return{login:async(B,O={})=>await Fe(`${o}/login`,e,O,{method:"POST",body:B}),getLoginWithGitHubURL:B=>{const O=new URLSearchParams(B);return`${o}/login/github?${O.toString()}`},getLoginWithGoogleURL:B=>{const O=new URLSearchParams(B);return`${o}/login/google?${O.toString()}`},register:async(B,O={},H={})=>await Fe(`${o}/register`,e,H,{method:"POST",body:B,params:O}),logout:async(B={})=>await Fe(`${o}/logout`,e,B,{method:"POST"}),resetPassword:async(B,O={})=>await Fe(`${o}/password/reset`,e,O,{params:B,method:"POST"}),defineNewPassword:async(B,O={})=>await Fe(`${o}/password/define`,e,O,{method:"POST",body:B}),askResetPassword:async(B,O={})=>await Fe(`${o}/password/reset`,e,O,{method:"POST",body:{email:B}}),checkIfUserHasPassword:async(B={})=>await Fe(`${o}/password/has`,e,B,{method:"GET"}),verifyEmail:async({userId:B,secret:O},H={})=>await Fe(`${o}/active/${B}/${O}`,e,H,{method:"PUT"}),getVerifyEmailStatusURL:B=>`${o}/verify-email-status/${String(B)}`,changePassword:async(B,O={})=>await Fe(`${o}/password`,e,O,{method:"PUT",body:B}),createSession:async(B,O={})=>await Fe(`${o}/session`,e,O,{method:"POST",body:B}),getSession:async(B,O={})=>await Fe(`${n}/session`,e,O,{params:{session_token:B}}),getCSRFToken:async(B={})=>await Fe(`${n}/csrf-token`,e,B),getOAuth2AccessToken:async(B={})=>await Fe(`${n}/oauth2/token`,e,B,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:{grant_type:"client_credentials",client_id:r,client_secret:u}})}},Mw=(e={},t=Qe)=>{const{backendURL:n}=(t==null?void 0:t.editor)??{};if(!n)throw new Error("Backend URL is not defined in the Intlayer configuration.");const r=`${n}/api/dictionary`;return{getDictionaries:async(E,g={})=>await Fe(r,e,g,{params:E}),getDictionariesKeys:async(E={})=>await Fe(`${r}/keys`,e,E),getDictionary:async(E,g,_={})=>await Fe(`${r}/${E}`,e,_,{params:g?{version:g.toString()}:void 0}),pushDictionaries:async(E,g={})=>await Fe(`${r}`,e,g,{method:"PATCH",body:{dictionaries:E}}),addDictionary:async(E,g={})=>await Fe(`${r}`,e,g,{method:"POST",body:E}),updateDictionary:async(E,g,_={})=>await Fe(`${r}/${E}`,e,_,{method:"PUT",body:g}),deleteDictionary:async(E,g={})=>await Fe(`${r}`,e,g,{method:"DELETE",body:{id:E}})}},Pw=(e={},t=Qe)=>{const{editorURL:n}=(t==null?void 0:t.editor)??{};if(!n)throw new Error("Editor URL is not defined in the Intlayer configuration.");const r=`${n}/api`;return{getConfiguration:async(l={})=>(await Fe(`${r}/config`,e,l)).data,writeDictionary:async(l,c={})=>await Fe(`${r}/dictionary`,e,c,{method:"POST",body:{dictionary:l}})}},Hw=(e={},t=Qe)=>{const{backendURL:n}=(t==null?void 0:t.editor)??{};if(!n)throw new Error("Backend URL is not defined in the Intlayer configuration--.");const r=`${n}/api/organization`;return{getOrganizations:async(_,S={})=>await Fe(r,e,S,{params:_}),getOrganization:async(_,S={})=>await Fe(`${r}/${String(_)}`,e,S),addOrganization:async(_,S={})=>await Fe(r,e,S,{method:"POST",body:_}),addOrganizationMember:async(_,S={})=>Fe(`${r}/member`,e,S,{method:"POST",body:_}),updateOrganization:async(_,S={})=>Fe(r,e,S,{method:"PUT",body:_}),updateOrganizationMembers:async(_,S={})=>Fe(`${r}/members`,e,S,{method:"PUT",body:_}),deleteOrganization:async(_={})=>await Fe(r,e,_,{method:"DELETE"}),selectOrganization:async(_,S={})=>await Fe(`${r}/${String(_)}`,e,S,{method:"PUT"}),unselectOrganization:async(_={})=>await Fe(`${r}/logout`,e,_,{method:"POST"})}},Uw=(e={},t=Qe)=>{const{backendURL:n}=(t==null?void 0:t.editor)??{};if(!n)throw new Error("Backend URL is not defined in the Intlayer configuration.");const r=`${n}/api/project`;return{getProjects:async(C,v={})=>await Fe(r,e,v,{params:C}),addProject:async(C,v={})=>await Fe(`${r}`,e,v,{method:"POST",body:C}),updateProject:async(C,v={})=>await Fe(`${r}`,e,v,{method:"PUT",body:C}),updateProjectMembers:async(C,v={})=>await Fe(`${r}/members`,e,v,{method:"PUT",body:C}),pushProjectConfiguration:async(C,v={})=>await Fe(`${r}/configuration`,e,v,{method:"PUT",body:C}),deleteProject:async(C={})=>await Fe(`${r}`,e,C,{method:"DELETE"}),selectProject:async(C,v={})=>await Fe(`${r}/${String(C)}`,e,v,{method:"PUT"}),unselectProject:async(C={})=>await Fe(`${r}/logout`,e,C,{method:"POST"}),addNewAccessKey:async(C,v={})=>await Fe(`${r}/access_key`,e,v,{method:"POST",body:C}),deleteAccessKey:async(C,v={})=>await Fe(`${r}/access_key`,e,v,{method:"DELETE",body:{clientId:C}}),refreshAccessKey:async(C,v={})=>await Fe(`${r}/access_key`,e,v,{method:"PATCH",body:{clientId:C}})}},kw=(e={},t=Qe)=>{const{backendURL:n}=t.editor;if(!n)throw new Error("Backend URL is not defined in the Intlayer configuration.");const r=`${n}/api/stripe`;return{getPricing:async(c,f={})=>await Fe(`${r}/pricing`,e,f,{method:"POST",body:c}),getSubscription:async(c,f={})=>await Fe(`${r}/create-subscription`,e,f,{method:"POST",body:c}),cancelSubscription:async(c={})=>await Fe(`${r}/cancel-subscription`,e,c,{method:"POST"})}},Gw=(e={},t=Qe)=>{const{backendURL:n}=(t==null?void 0:t.editor)??{};if(!n)throw new Error("Backend URL is not defined in the Intlayer configuration.");const r=`${n}/api/tag`;return{getTags:async(f,h={})=>await Fe(r,e,h,{params:f}),addTag:async(f,h={})=>await Fe(`${r}`,e,h,{method:"POST",body:f}),updateTag:async(f,h,m={})=>await Fe(`${r}/${f}`,e,m,{method:"PUT",body:h}),deleteTag:async(f,h={})=>await Fe(`${r}/${f}`,e,h,{method:"DELETE"})}},Vw=(e={},t=Qe)=>{const{backendURL:n}=(t==null?void 0:t.editor)??{};if(!n)throw new Error("Backend URL is not defined in the Intlayer configuration.");const r=`${n}/api/user`;return{createUser:async(E,g={})=>await Fe(`${r}/`,e,g,{method:"POST",body:E}),getUsers:async(E,g={})=>await Fe(r,e,g,{params:E}),getUserById:async(E,g={})=>await Fe(`${r}/${E}`,e,g),getUserByAccount:async(E,g,_={})=>await Fe(`${r}/account/${g}/${E}`,e,_),getUserByEmail:async(E,g={})=>await Fe(`${r}/email/${E}`,e,g),updateUser:async(E,g={})=>await Fe(`${r}`,e,g,{method:"PUT",body:E}),deleteUser:async(E,g={})=>await Fe(`${r}/${E}`,e,g,{method:"DELETE"})}},ch=(e={},t)=>({organization:Hw(e,t),project:Uw(e,t),user:Vw(e,t),auth:ww(e,t),dictionary:Mw(e,t),stripe:kw(e,t),ai:Lw(e,t),tag:Gw(e,t),editor:Pw(e,t)}),Zy=(e,t,n)=>{let r=e,u=null,o=[];if(t.length===0)return n;for(let l=0;l<t.length;l++){const c=t[l];if(u=r,(c.type===$.Object||c.type===$.Array)&&(o=[c.key],(!r[c.key]||typeof r[c.key]!="object")&&(r[c.key]={}),r=r[c.key]),(c.type===$.Translation||c.type===$.Enumeration)&&(o=[c.type,c.key],(!r[c.type]||typeof r[c.type]!="object")&&(r[c.type]={}),(!r[c.type][c.key]||typeof r[c.type][c.key]!="object")&&(r[c.type][c.key]={}),r=r[c.type][c.key]),(c.type===$.Enumeration||c.type===$.Condition)&&(o=[c.type,c.key],(!r[c.type]||typeof r[c.type]!="object")&&(r[c.type]={}),(!r[c.type][c.key]||typeof r[c.type][c.key]!="object")&&(r[c.type][c.key]={}),r=r[c.type][c.key]),(c.type===$.Markdown||c.type===$.Insertion||c.type===$.File)&&(o=[c.type],(!r[c.type]||typeof r[c.type]!="object")&&(r[c.type]=""),r=r[c.type]),c.type&&(r=r),l===t.length-1&&u&&o.length>0){let f=u;for(const h of o.slice(0,-1))f=f[h];typeof n>"u"?delete f[o[o.length-1]]:f[o[o.length-1]]=n}}return e},Fi=(e,t)=>{let n=structuredClone(e);for(const r of t)r.type===$.Object||r.type===$.Array?n=n==null?void 0:n[r.key]:r.type===$.Translation||r.type===$.Condition||r.type===$.Enumeration?n=n==null?void 0:n[r.type][r.key]:(r.type===$.Markdown||r.type===$.Insertion||r.type===$.File)&&(n=n==null?void 0:n[r.type]);return n},WR=e=>{if(typeof e=="string"||typeof e=="number"||typeof e=="boolean")return e;if(typeof(e==null?void 0:e.nodeType)=="string"){const t=e,n=t[t.nodeType];if(t.nodeType===$.Translation||t.nodeType===$.Enumeration||t.nodeType===$.Condition||t.nodeType===$.Insertion||t.nodeType===$.File){const r=Object.keys(n)[0];return n[r]}return t.nodeType===$.Nested?void 0:n}return!e||typeof e!="object"?e:Array.isArray(e)?e[0]:e},jw=(e,t,n)=>{let r=e,u=null,o=null;for(const l of n)u=r,(l.type===$.Object||l.type===$.Array)&&(o=l.key,r=r[l.key]),(l.type===$.Translation||l.type===$.Enumeration||l.type===$.Condition)&&(o=l.type,r=r[l.type][l.key]),(l.type===$.Markdown||l.type===$.ReactNode||l.type===$.Insertion||l.type===$.File)&&(o=l.type,r=r[l.type]);if(u&&o!==null)if(Array.isArray(u))u[o]=r;else{const l={};for(const c of Object.keys(u))c===o&&typeof t<"u"?l[t]=r:l[c]=u[c];Object.keys(u).forEach(c=>delete u[c]),Object.assign(u,l)}return e},zw=e=>typeof e=="object"&&typeof(e==null?void 0:e.key)<"u"&&typeof(e==null?void 0:e.props)<"u",co=e=>typeof e=="string"?$.Text:typeof(e==null?void 0:e.nodeType)=="string"?e.nodeType:Array.isArray(e)?$.Array:zw(e)?$.ReactNode:typeof e=="number"?$.Number:typeof e=="boolean"?$.Boolean:e&&typeof e=="object"?$.Object:$.Unknown,Bl=(e,t,n)=>{switch(e){case $.Translation:return{nodeType:$.Translation,[$.Translation]:Object.assign({},...t.map(r=>({[r]:n??""})))};case $.Enumeration:return{nodeType:$.Enumeration,[$.Enumeration]:{1:n??""}};case $.Condition:return{nodeType:$.Condition,[$.Condition]:{true:n??"",false:n??""}};case $.Insertion:return{nodeType:$.Insertion,[$.Insertion]:{insertion:n??""}};case $.Nested:return{nodeType:$.Nested,[$.Nested]:{dictionaryKey:""}};case $.Markdown:return{nodeType:$.Markdown,[$.Markdown]:n??""};case $.File:return{nodeType:$.File,[$.File]:n??""};case $.Object:return{newKey:n??""};case $.Array:return[n??""];case $.Text:return n??"";case $.Number:return n??0;case $.Boolean:return n??!0;default:return n??""}},_r=e=>{if(typeof e=="string")return"";if(typeof e=="number")return 0;if(typeof e=="boolean")return!0;if(typeof(e==null?void 0:e.nodeType)=="string"){const r=e,u=r[r.nodeType];return r.nodeType===$.Translation||r.nodeType===$.Enumeration||r.nodeType===$.Condition||r.nodeType===$.Insertion?_r(u):r.nodeType===$.Nested?"dictionary-key":r.nodeType===$.File?"file/path":r.nodeType===$.Markdown?_r(r):u}if(!e||typeof e!="object")return e;if(Array.isArray(e))return e.map(_r);const t=Object.entries(e).map(([r,u])=>[r,_r(u)]);return Object.fromEntries(t)},Gc=(e,t)=>e.every((n,r)=>t[r]&&t[r].key===n.key&&t[r].type===n.type),qR=e=>/^[a-zA-Z][a-zA-Z\d+\-.]*:/.test(e);var i=(e=>(e.AFRIKAANS="af",e.AFRIKAANS_SOUTH_AFRICA="af-ZA",e.ARABIC="ar",e.ARABIC_UNITED_ARAB_EMIRATES="ar-AE",e.ARABIC_BAHRAIN="ar-BH",e.ARABIC_ALGERIA="ar-DZ",e.ARABIC_EGYPT="ar-EG",e.ARABIC_IRAQ="ar-IQ",e.ARABIC_JORDAN="ar-JO",e.ARABIC_KUWAIT="ar-KW",e.ARABIC_LEBANON="ar-LB",e.ARABIC_LIBYA="ar-LY",e.ARABIC_MOROCCO="ar-MA",e.ARABIC_OMAN="ar-OM",e.ARABIC_QATAR="ar-QA",e.ARABIC_SAUDI_ARABIA="ar-SA",e.ARABIC_SYRIA="ar-SY",e.ARABIC_TUNISIA="ar-TN",e.ARABIC_YEMEN="ar-YE",e.AZERI_LATIN="az",e.AZERI_LATIN_AZERBAIJAN="az-AZ",e.BELARUSIAN="be",e.BELARUSIAN_BELARUS="be-BY",e.BULGARIAN="bg",e.BULGARIAN_BULGARIA="bg-BG",e.BOSNIAN="bs",e.BOSNIAN_BOSNIA_AND_HERZEGOVINA="bs-BA",e.CATALAN="ca",e.CATALAN_SPAIN="ca-ES",e.CZECH="cs",e.CZECH_CZECH_REPUBLIC="cs-CZ",e.WELSH="cy",e.WELSH_UNITED_KINGDOM="cy-GB",e.DANISH="da",e.DANISH_DENMARK="da-DK",e.GERMAN="de",e.GERMAN_AUSTRIA="de-AT",e.GERMAN_SWITZERLAND="de-CH",e.GERMAN_GERMANY="de-DE",e.GERMAN_LIECHTENSTEIN="de-LI",e.GERMAN_LUXEMBOURG="de-LU",e.DIVEHI="dv",e.DIVEHI_MALDIVES="dv-MV",e.GREEK="el",e.GREEK_GREECE="el-GR",e.ENGLISH="en",e.ENGLISH_AUSTRALIA="en-AU",e.ENGLISH_BELIZE="en-BZ",e.ENGLISH_CANADA="en-CA",e.ENGLISH_CARIBBEAN="en-CB",e.ENGLISH_UNITED_KINGDOM="en-GB",e.ENGLISH_IRELAND="en-IE",e.ENGLISH_JAMAICA="en-JM",e.ENGLISH_NEW_ZEALAND="en-NZ",e.ENGLISH_PHILIPPINES="en-PH",e.ENGLISH_TRINIDAD_AND_TOBAGO="en-TT",e.ENGLISH_UNITED_STATES="en-US",e.ENGLISH_SOUTH_AFRICA="en-ZA",e.ENGLISH_ZIMBABWE="en-ZW",e.ESPERANTO="eo",e.SPANISH="es",e.SPANISH_ARGENTINA="es-AR",e.SPANISH_BOLIVIA="es-BO",e.SPANISH_CHILE="es-CL",e.SPANISH_COLOMBIA="es-CO",e.SPANISH_COSTA_RICA="es-CR",e.SPANISH_DOMINICAN_REPUBLIC="es-DO",e.SPANISH_ECUADOR="es-EC",e.SPANISH_SPAIN="es-ES",e.SPANISH_GUATEMALA="es-GT",e.SPANISH_HONDURAS="es-HN",e.SPANISH_MEXICO="es-MX",e.SPANISH_NICARAGUA="es-NI",e.SPANISH_PANAMA="es-PA",e.SPANISH_PERU="es-PE",e.SPANISH_PUERTO_RICO="es-PR",e.SPANISH_PARAGUAY="es-PY",e.SPANISH_EL_SALVADOR="es-SV",e.SPANISH_URUGUAY="es-UY",e.SPANISH_VENEZUELA="es-VE",e.ESTONIAN="et",e.ESTONIAN_ESTONIA="et-EE",e.BASQUE="eu",e.BASQUE_SPAIN="eu-ES",e.FARSI="fa",e.FARSI_IRAN="fa-IR",e.FINNISH="fi",e.FINNISH_FINLAND="fi-FI",e.FAROESE="fo",e.FAROESE_FAROE_ISLANDS="fo-FO",e.FRENCH="fr",e.FRENCH_BELGIUM="fr-BE",e.FRENCH_CANADA="fr-CA",e.FRENCH_SWITZERLAND="fr-CH",e.FRENCH_FRANCE="fr-FR",e.FRENCH_LUXEMBOURG="fr-LU",e.FRENCH_PRINCIPALITY_OF_MONACO="fr-MC",e.GALICIAN="gl",e.GALICIAN_SPAIN="gl-ES",e.GUJARATI="gu",e.GUJARATI_INDIA="gu-IN",e.HEBREW="he",e.HEBREW_ISRAEL="he-IL",e.HINDI="hi",e.HINDI_INDIA="hi-IN",e.CROATIAN="hr",e.CROATIAN_BOSNIA_AND_HERZEGOVINA="hr-BA",e.CROATIAN_CROATIA="hr-HR",e.HUNGARIAN="hu",e.HUNGARIAN_HUNGARY="hu-HU",e.ARMENIAN="hy",e.ARMENIAN_ARMENIA="hy-AM",e.INDONESIAN="id",e.INDONESIAN_INDONESIA="id-ID",e.ICELANDIC="is",e.ICELANDIC_ICELAND="is-IS",e.ITALIAN="it",e.ITALIAN_SWITZERLAND="it-CH",e.ITALIAN_ITALY="it-IT",e.JAPANESE="ja",e.JAPANESE_JAPAN="ja-JP",e.GEORGIAN="ka",e.GEORGIAN_GEORGIA="ka-GE",e.KAZAKH="kk",e.KAZAKH_KAZAKHSTAN="kk-KZ",e.KANNADA="kn",e.KANNADA_INDIA="kn-IN",e.KOREAN="ko",e.KOREAN_KOREA="ko-KR",e.KONKANI="kok",e.KONKANI_INDIA="kok-IN",e.KYRGYZ="ky",e.KYRGYZ_KYRGYZSTAN="ky-KG",e.LITHUANIAN="lt",e.LITHUANIAN_LITHUANIA="lt-LT",e.LATVIAN="lv",e.LATVIAN_LATVIA="lv-LV",e.MAORI="mi",e.MAORI_NEW_ZEALAND="mi-NZ",e.FYRO_MACEDONIAN="mk",e.FYRO_MACEDONIAN_MACEDONIA="mk-MK",e.MONGOLIAN="mn",e.MONGOLIAN_MONGOLIA="mn-MN",e.MARATHI="mr",e.MARATHI_INDIA="mr-IN",e.MALAY="ms",e.MALAY_BRUNEI_DARUSSALAM="ms-BN",e.MALAY_MALAYSIA="ms-MY",e.MALTESE="mt",e.MALTESE_MALTA="mt-MT",e.NORWEGIAN_BOKMAL="nb",e.NORWEGIAN_BOKMAL_NORWAY="nb-NO",e.DUTCH="nl",e.DUTCH_BELGIUM="nl-BE",e.DUTCH_NETHERLANDS="nl-NL",e.NORWEGIAN_NYNORSK_NORWAY="nn-NO",e.NORTHERN_SOTHO="ns",e.NORTHERN_SOTHO_SOUTH_AFRICA="ns-ZA",e.PUNJABI="pa",e.PUNJABI_INDIA="pa-IN",e.POLISH="pl",e.POLISH_POLAND="pl-PL",e.PASHTO="ps",e.PASHTO_AFGHANISTAN="ps-AR",e.PORTUGUESE="pt",e.PORTUGUESE_BRAZIL="pt-BR",e.PORTUGUESE_PORTUGAL="pt-PT",e.QUECHUA="qu",e.QUECHUA_BOLIVIA="qu-BO",e.QUECHUA_ECUADOR="qu-EC",e.QUECHUA_PERU="qu-PE",e.ROMANIAN="ro",e.ROMANIAN_ROMANIA="ro-RO",e.RUSSIAN="ru",e.RUSSIAN_RUSSIA="ru-RU",e.SANSKRIT="sa",e.SANSKRIT_INDIA="sa-IN",e.SAMI_NORTHERN="se",e.SAMI_NORTHERN_FINLAND="se-FI",e.SAMI_NORTHERN_NORWAY="se-NO",e.SAMI_NORTHERN_SWEDEN="se-SE",e.SLOVAK="sk",e.SLOVAK_SLOVAKIA="sk-SK",e.SLOVENIAN="sl",e.SLOVENIAN_SLOVENIA="sl-SI",e.ALBANIAN="sq",e.ALBANIAN_ALBANIA="sq-AL",e.SERBIAN_LATIN="sr",e.SERBIAN_LATIN_BOSNIA_AND_HERZEGOVINA="sr-BA",e.SERBIAN_LATIN_SERBIA_AND_MONTENEGRO="sr-SP",e.SWEDISH="sv",e.SWEDISH_FINLAND="sv-FI",e.SWEDISH_SWEDEN="sv-SE",e.SWAHILI="sw",e.SWAHILI_KENYA="sw-KE",e.SYRIAC="syr",e.SYRIAC_SYRIA="syr-SY",e.TAMIL="ta",e.TAMIL_INDIA="ta-IN",e.TELUGU="te",e.TELUGU_INDIA="te-IN",e.THAI="th",e.THAI_THAILAND="th-TH",e.TAGALOG="tl",e.TAGALOG_PHILIPPINES="tl-PH",e.TSWANA="tn",e.TSWANA_SOUTH_AFRICA="tn-ZA",e.TURKISH="tr",e.TURKISH_TURKEY="tr-TR",e.TATAR="tt",e.TATAR_RUSSIA="tt-RU",e.TSOGA="ts",e.UKRAINIAN="uk",e.UKRAINIAN_UKRAINE="uk-UA",e.URDU="ur",e.URDU_ISLAMIC_REPUBLIC_OF_PAKISTAN="ur-PK",e.UZBEK_LATIN="uz",e.UZBEK_LATIN_UZBEKISTAN="uz-UZ",e.VIETNAMESE="vi",e.VIETNAMESE_VIET_NAM="vi-VN",e.XHOSA="xh",e.XHOSA_SOUTH_AFRICA="xh-ZA",e.CHINESE="zh",e.CHINESE_SIMPLIFIED="zh-Hans",e.CHINESE_SIMPLIFIED_CHINA="zh-CN",e.CHINESE_HONG_KONG="zh-HK",e.CHINESE_MACAU="zh-MO",e.CHINESE_SINGAPORE="zh-SG",e.CHINESE_TRADITIONAL="zh-Hant",e.ZULU="zu",e.ZULU_SOUTH_AFRICA="zu-ZA",e))(i||{});const dn={[i.ENGLISH]:"",[i.FRENCH]:"",[i.SPANISH]:"",[i.PORTUGUESE]:"",[i.GERMAN]:"",[i.AFRIKAANS]:"",[i.ARABIC]:"",[i.AZERI_LATIN]:"",[i.BELARUSIAN]:"",[i.BULGARIAN]:"",[i.BOSNIAN]:"",[i.CATALAN]:"",[i.CZECH]:"",[i.WELSH]:"",[i.DANISH]:"",[i.DIVEHI]:"",[i.GREEK]:"",[i.ESPERANTO]:"",[i.ESTONIAN]:"",[i.BASQUE]:"",[i.FARSI]:"",[i.FINNISH]:"",[i.FAROESE]:"",[i.GALICIAN]:"",[i.GUJARATI]:"",[i.HEBREW]:"",[i.HINDI]:"",[i.CROATIAN]:"",[i.HUNGARIAN]:"",[i.ARMENIAN]:"",[i.INDONESIAN]:"",[i.ICELANDIC]:"",[i.ITALIAN]:"",[i.JAPANESE]:"",[i.GEORGIAN]:"",[i.KAZAKH]:"",[i.KANNADA]:"",[i.KOREAN]:"",[i.KONKANI]:"",[i.KYRGYZ]:"",[i.LITHUANIAN]:"",[i.LATVIAN]:"",[i.MAORI]:"",[i.FYRO_MACEDONIAN]:"",[i.MONGOLIAN]:"",[i.MARATHI]:"",[i.MALAY]:"",[i.MALTESE]:"",[i.NORWEGIAN_BOKMAL]:"",[i.DUTCH]:"",[i.NORTHERN_SOTHO]:"",[i.PUNJABI]:"",[i.POLISH]:"",[i.PASHTO]:"",[i.QUECHUA]:"",[i.ROMANIAN]:"",[i.RUSSIAN]:"",[i.SANSKRIT]:"",[i.SAMI_NORTHERN]:"",[i.SLOVAK]:"",[i.SLOVENIAN]:"",[i.ALBANIAN]:"",[i.SERBIAN_LATIN]:"",[i.SWEDISH]:"",[i.SWEDISH_FINLAND]:"",[i.SWEDISH_SWEDEN]:"",[i.SWAHILI]:"",[i.SYRIAC]:"",[i.TAMIL]:"",[i.TELUGU]:"",[i.THAI]:"",[i.TAGALOG]:"",[i.TSWANA]:"",[i.TURKISH]:"",[i.TATAR]:"",[i.UKRAINIAN]:"",[i.URDU]:"",[i.UZBEK_LATIN]:"",[i.VIETNAMESE]:"",[i.XHOSA]:"",[i.CHINESE]:"",[i.CHINESE_SIMPLIFIED]:"",[i.CHINESE_SIMPLIFIED_CHINA]:"",[i.CHINESE_TRADITIONAL]:"",[i.ZULU]:"",[i.AFRIKAANS_SOUTH_AFRICA]:"",[i.ARABIC_UNITED_ARAB_EMIRATES]:"",[i.ARABIC_BAHRAIN]:"",[i.ARABIC_ALGERIA]:"",[i.ARABIC_EGYPT]:"",[i.ARABIC_IRAQ]:"",[i.ARABIC_JORDAN]:"",[i.ARABIC_KUWAIT]:"",[i.ARABIC_LEBANON]:"",[i.ARABIC_LIBYA]:"",[i.ARABIC_MOROCCO]:"",[i.ARABIC_OMAN]:"",[i.ARABIC_QATAR]:"",[i.ARABIC_SAUDI_ARABIA]:"",[i.ARABIC_SYRIA]:"",[i.ARABIC_TUNISIA]:"",[i.ARABIC_YEMEN]:"",[i.AZERI_LATIN_AZERBAIJAN]:"",[i.BELARUSIAN_BELARUS]:"",[i.BULGARIAN_BULGARIA]:"",[i.BOSNIAN_BOSNIA_AND_HERZEGOVINA]:"",[i.CATALAN_SPAIN]:"",[i.CZECH_CZECH_REPUBLIC]:"",[i.WELSH_UNITED_KINGDOM]:"",[i.DANISH_DENMARK]:"",[i.GERMAN_AUSTRIA]:"",[i.GERMAN_SWITZERLAND]:"",[i.GERMAN_GERMANY]:"",[i.GERMAN_LIECHTENSTEIN]:"",[i.GERMAN_LUXEMBOURG]:"",[i.DIVEHI_MALDIVES]:"",[i.GREEK_GREECE]:"",[i.ENGLISH_AUSTRALIA]:"",[i.ENGLISH_BELIZE]:"",[i.ENGLISH_CANADA]:"",[i.ENGLISH_CARIBBEAN]:"",[i.ENGLISH_UNITED_KINGDOM]:"",[i.ENGLISH_IRELAND]:"",[i.ENGLISH_JAMAICA]:"",[i.ENGLISH_NEW_ZEALAND]:"",[i.ENGLISH_PHILIPPINES]:"",[i.ENGLISH_TRINIDAD_AND_TOBAGO]:"",[i.ENGLISH_UNITED_STATES]:"",[i.ENGLISH_SOUTH_AFRICA]:"",[i.ENGLISH_ZIMBABWE]:"",[i.SPANISH_ARGENTINA]:"",[i.SPANISH_BOLIVIA]:"",[i.SPANISH_CHILE]:"",[i.SPANISH_COLOMBIA]:"",[i.SPANISH_COSTA_RICA]:"",[i.SPANISH_DOMINICAN_REPUBLIC]:"",[i.SPANISH_ECUADOR]:"",[i.SPANISH_SPAIN]:"",[i.SPANISH_GUATEMALA]:"",[i.SPANISH_HONDURAS]:"",[i.SPANISH_MEXICO]:"",[i.SPANISH_NICARAGUA]:"",[i.SPANISH_PANAMA]:"",[i.SPANISH_PERU]:"",[i.SPANISH_PUERTO_RICO]:"",[i.SPANISH_PARAGUAY]:"",[i.SPANISH_EL_SALVADOR]:"",[i.SPANISH_URUGUAY]:"",[i.SPANISH_VENEZUELA]:"",[i.ESTONIAN_ESTONIA]:"",[i.BASQUE_SPAIN]:"",[i.FARSI_IRAN]:"",[i.FINNISH_FINLAND]:"",[i.FAROESE_FAROE_ISLANDS]:"",[i.FRENCH_BELGIUM]:"",[i.FRENCH_CANADA]:"",[i.FRENCH_SWITZERLAND]:"",[i.FRENCH_FRANCE]:"",[i.FRENCH_LUXEMBOURG]:"",[i.FRENCH_PRINCIPALITY_OF_MONACO]:"",[i.GALICIAN_SPAIN]:"",[i.GUJARATI_INDIA]:"",[i.HEBREW_ISRAEL]:"",[i.HINDI_INDIA]:"",[i.CROATIAN_BOSNIA_AND_HERZEGOVINA]:"",[i.CROATIAN_CROATIA]:"",[i.HUNGARIAN_HUNGARY]:"",[i.ARMENIAN_ARMENIA]:"",[i.INDONESIAN_INDONESIA]:"",[i.ICELANDIC_ICELAND]:"",[i.ITALIAN_SWITZERLAND]:"",[i.ITALIAN_ITALY]:"",[i.JAPANESE_JAPAN]:"",[i.GEORGIAN_GEORGIA]:"",[i.KAZAKH_KAZAKHSTAN]:"",[i.KANNADA_INDIA]:"",[i.KOREAN_KOREA]:"",[i.KONKANI_INDIA]:"",[i.KYRGYZ_KYRGYZSTAN]:"",[i.LITHUANIAN_LITHUANIA]:"",[i.LATVIAN_LATVIA]:"",[i.MAORI_NEW_ZEALAND]:"",[i.FYRO_MACEDONIAN_MACEDONIA]:"",[i.MONGOLIAN_MONGOLIA]:"",[i.MARATHI_INDIA]:"",[i.MALAY_BRUNEI_DARUSSALAM]:"",[i.MALAY_MALAYSIA]:"",[i.MALTESE_MALTA]:"",[i.NORWEGIAN_BOKMAL_NORWAY]:"",[i.DUTCH_BELGIUM]:"",[i.DUTCH_NETHERLANDS]:"",[i.NORWEGIAN_NYNORSK_NORWAY]:"",[i.NORTHERN_SOTHO_SOUTH_AFRICA]:"",[i.PUNJABI_INDIA]:"",[i.POLISH_POLAND]:"",[i.PASHTO_AFGHANISTAN]:"",[i.PORTUGUESE_BRAZIL]:"",[i.PORTUGUESE_PORTUGAL]:"",[i.QUECHUA_BOLIVIA]:"",[i.QUECHUA_ECUADOR]:"",[i.QUECHUA_PERU]:"",[i.ROMANIAN_ROMANIA]:"",[i.RUSSIAN_RUSSIA]:"",[i.SANSKRIT_INDIA]:"",[i.SAMI_NORTHERN_FINLAND]:"",[i.SAMI_NORTHERN_NORWAY]:"",[i.SAMI_NORTHERN_SWEDEN]:"",[i.SLOVAK_SLOVAKIA]:"",[i.SLOVENIAN_SLOVENIA]:"",[i.ALBANIAN_ALBANIA]:"",[i.SERBIAN_LATIN_BOSNIA_AND_HERZEGOVINA]:"",[i.SERBIAN_LATIN_SERBIA_AND_MONTENEGRO]:"",[i.SWAHILI_KENYA]:"",[i.SYRIAC_SYRIA]:"",[i.TAMIL_INDIA]:"",[i.TELUGU_INDIA]:"",[i.THAI_THAILAND]:"",[i.TAGALOG_PHILIPPINES]:"",[i.TSWANA_SOUTH_AFRICA]:"",[i.TURKISH_TURKEY]:"",[i.TATAR_RUSSIA]:"",[i.TSOGA]:"",[i.UKRAINIAN_UKRAINE]:"",[i.URDU_ISLAMIC_REPUBLIC_OF_PAKISTAN]:"",[i.UZBEK_LATIN_UZBEKISTAN]:"",[i.VIETNAMESE_VIET_NAM]:"",[i.XHOSA_SOUTH_AFRICA]:"",[i.CHINESE_HONG_KONG]:"",[i.CHINESE_MACAU]:"",[i.CHINESE_SINGAPORE]:"",[i.ZULU_SOUTH_AFRICA]:""},bs={[i.ENGLISH]:"Englisch",[i.FRENCH]:"Französisch",[i.SPANISH]:"Spanisch",[i.PORTUGUESE]:"Portugiesisch",[i.GERMAN]:"Deutsch",[i.AFRIKAANS]:"Afrikaans",[i.ARABIC]:"Arabisch",[i.AZERI_LATIN]:"Aserbaidschanisch Latein",[i.BELARUSIAN]:"Weißrussisch",[i.BULGARIAN]:"Bulgarisch",[i.BOSNIAN]:"Bosnisch",[i.CATALAN]:"Katalanisch",[i.CZECH]:"Tschechisch",[i.WELSH]:"Walisisch",[i.DANISH]:"Dänisch",[i.DIVEHI]:"Divehi",[i.GREEK]:"Griechisch",[i.ESPERANTO]:"Esperanto",[i.ESTONIAN]:"Estnisch",[i.BASQUE]:"Baskisch",[i.FARSI]:"Farsi",[i.FINNISH]:"Finnisch",[i.FAROESE]:"Färöisch",[i.GALICIAN]:"Galicisch",[i.GUJARATI]:"Gujarati",[i.HEBREW]:"Hebräisch",[i.HINDI]:"Hindi",[i.CROATIAN]:"Kroatisch",[i.HUNGARIAN]:"Ungarisch",[i.ARMENIAN]:"Armenisch",[i.INDONESIAN]:"Indonesisch",[i.ICELANDIC]:"Isländisch",[i.ITALIAN]:"Italienisch",[i.JAPANESE]:"Japanisch",[i.GEORGIAN]:"Georgisch",[i.KAZAKH]:"Kasachisch",[i.KANNADA]:"Kannada",[i.KOREAN]:"Koreanisch",[i.KONKANI]:"Konkani",[i.KYRGYZ]:"Kirgisisch",[i.LITHUANIAN]:"Litauisch",[i.LATVIAN]:"Lettisch",[i.MAORI]:"Maori",[i.FYRO_MACEDONIAN]:"FYRO Mazedonisch",[i.MONGOLIAN]:"Mongolisch",[i.MARATHI]:"Marathi",[i.MALAY]:"Malaiisch",[i.MALTESE]:"Maltisch",[i.NORWEGIAN_BOKMAL]:"Norwegisch Bokmål",[i.DUTCH]:"Niederländisch",[i.NORTHERN_SOTHO]:"Sotho (Nord)",[i.PUNJABI]:"Punjabi",[i.POLISH]:"Polnisch",[i.PASHTO]:"Paschtu",[i.QUECHUA]:"Quechua",[i.ROMANIAN]:"Rumänisch",[i.RUSSIAN]:"Russisch",[i.SANSKRIT]:"Sanskrit",[i.SAMI_NORTHERN]:"Sami (Nord)",[i.SLOVAK]:"Slowakisch",[i.SLOVENIAN]:"Slowenisch",[i.ALBANIAN]:"Albanisch",[i.SERBIAN_LATIN]:"Serbisch Latein",[i.SWEDISH]:"Schwedisch",[i.SWEDISH_FINLAND]:"Schwedisch (Finnland)",[i.SWEDISH_SWEDEN]:"Schwedisch (Schweden)",[i.SWAHILI]:"Suaheli",[i.SYRIAC]:"Syrisch",[i.TAMIL]:"Tamilisch",[i.TELUGU]:"Telugu",[i.THAI]:"Thailändisch",[i.TAGALOG]:"Tagalog",[i.TSWANA]:"Tswana",[i.TURKISH]:"Türkisch",[i.TATAR]:"Tatarisch",[i.UKRAINIAN]:"Ukrainisch",[i.URDU]:"Urdu",[i.UZBEK_LATIN]:"Usbekisch Latein",[i.VIETNAMESE]:"Vietnamesisch",[i.XHOSA]:"Xhosa",[i.CHINESE]:"Chinesisch",[i.CHINESE_SIMPLIFIED]:"Chinesisch (Vereinfacht)",[i.CHINESE_SIMPLIFIED_CHINA]:"Chinesisch (Vereinfacht, China)",[i.CHINESE_TRADITIONAL]:"Chinesisch (Traditionell)",[i.ZULU]:"Zulu",[i.AFRIKAANS_SOUTH_AFRICA]:"Afrikaans (Südafrika)",[i.ARABIC_UNITED_ARAB_EMIRATES]:"Arabisch (Vereinigte Arabische Emirate)",[i.ARABIC_BAHRAIN]:"Arabisch (Bahrain)",[i.ARABIC_ALGERIA]:"Arabisch (Algerien)",[i.ARABIC_EGYPT]:"Arabisch (Ägypten)",[i.ARABIC_IRAQ]:"Arabisch (Irak)",[i.ARABIC_JORDAN]:"Arabisch (Jordanien)",[i.ARABIC_KUWAIT]:"Arabisch (Kuwait)",[i.ARABIC_LEBANON]:"Arabisch (Libanon)",[i.ARABIC_LIBYA]:"Arabisch (Libyen)",[i.ARABIC_MOROCCO]:"Arabisch (Marokko)",[i.ARABIC_OMAN]:"Arabisch (Oman)",[i.ARABIC_QATAR]:"Arabisch (Katar)",[i.ARABIC_SAUDI_ARABIA]:"Arabisch (Saudi-Arabien)",[i.ARABIC_SYRIA]:"Arabisch (Syrien)",[i.ARABIC_TUNISIA]:"Arabisch (Tunesien)",[i.ARABIC_YEMEN]:"Arabisch (Jemen)",[i.AZERI_LATIN_AZERBAIJAN]:"Aserbaidschanisch Latein (Aserbaidschan)",[i.BELARUSIAN_BELARUS]:"Weißrussisch (Weißrussland)",[i.BULGARIAN_BULGARIA]:"Bulgarisch (Bulgarien)",[i.BOSNIAN_BOSNIA_AND_HERZEGOVINA]:"Bosnisch (Bosnien und Herzegowina)",[i.CATALAN_SPAIN]:"Katalanisch (Spanien)",[i.CZECH_CZECH_REPUBLIC]:"Tschechisch (Tschechische Republik)",[i.WELSH_UNITED_KINGDOM]:"Walisisch (Vereinigtes Königreich)",[i.DANISH_DENMARK]:"Dänisch (Dänemark)",[i.GERMAN_AUSTRIA]:"Deutsch (Österreich)",[i.GERMAN_SWITZERLAND]:"Deutsch (Schweiz)",[i.GERMAN_GERMANY]:"Deutsch (Deutschland)",[i.GERMAN_LIECHTENSTEIN]:"Deutsch (Liechtenstein)",[i.GERMAN_LUXEMBOURG]:"Deutsch (Luxemburg)",[i.DIVEHI_MALDIVES]:"Divehi (Malediven)",[i.GREEK_GREECE]:"Griechisch (Griechenland)",[i.ENGLISH_AUSTRALIA]:"Englisch (Australien)",[i.ENGLISH_BELIZE]:"Englisch (Belize)",[i.ENGLISH_CANADA]:"Englisch (Kanada)",[i.ENGLISH_CARIBBEAN]:"Englisch (Karibik)",[i.ENGLISH_UNITED_KINGDOM]:"Englisch (Vereinigtes Königreich)",[i.ENGLISH_IRELAND]:"Englisch (Irland)",[i.ENGLISH_JAMAICA]:"Englisch (Jamaika)",[i.ENGLISH_NEW_ZEALAND]:"Englisch (Neuseeland)",[i.ENGLISH_PHILIPPINES]:"Englisch (Philippinen)",[i.ENGLISH_TRINIDAD_AND_TOBAGO]:"Englisch (Trinidad und Tobago)",[i.ENGLISH_UNITED_STATES]:"Englisch (Vereinigte Staaten)",[i.ENGLISH_SOUTH_AFRICA]:"Englisch (Südafrika)",[i.ENGLISH_ZIMBABWE]:"Englisch (Simbabwe)",[i.SPANISH_ARGENTINA]:"Spanisch (Argentinien)",[i.SPANISH_BOLIVIA]:"Spanisch (Bolivien)",[i.SPANISH_CHILE]:"Spanisch (Chile)",[i.SPANISH_COLOMBIA]:"Spanisch (Kolumbien)",[i.SPANISH_COSTA_RICA]:"Spanisch (Costa Rica)",[i.SPANISH_DOMINICAN_REPUBLIC]:"Spanisch (Dominikanische Republik)",[i.SPANISH_ECUADOR]:"Spanisch (Ecuador)",[i.SPANISH_SPAIN]:"Spanisch (Spanien)",[i.SPANISH_GUATEMALA]:"Spanisch (Guatemala)",[i.SPANISH_HONDURAS]:"Spanisch (Honduras)",[i.SPANISH_MEXICO]:"Spanisch (Mexiko)",[i.SPANISH_NICARAGUA]:"Spanisch (Nicaragua)",[i.SPANISH_PANAMA]:"Spanisch (Panama)",[i.SPANISH_PERU]:"Spanisch (Peru)",[i.SPANISH_PUERTO_RICO]:"Spanisch (Puerto Rico)",[i.SPANISH_PARAGUAY]:"Spanisch (Paraguay)",[i.SPANISH_EL_SALVADOR]:"Spanisch (El Salvador)",[i.SPANISH_URUGUAY]:"Spanisch (Uruguay)",[i.SPANISH_VENEZUELA]:"Spanisch (Venezuela)",[i.ESTONIAN_ESTONIA]:"Estnisch (Estland)",[i.BASQUE_SPAIN]:"Baskisch (Spanien)",[i.FARSI_IRAN]:"Farsi (Iran)",[i.FINNISH_FINLAND]:"Finnisch (Finnland)",[i.FAROESE_FAROE_ISLANDS]:"Färöisch (Färöer)",[i.FRENCH_BELGIUM]:"Französisch (Belgien)",[i.FRENCH_CANADA]:"Französisch (Kanada)",[i.FRENCH_SWITZERLAND]:"Französisch (Schweiz)",[i.FRENCH_FRANCE]:"Französisch (Frankreich)",[i.FRENCH_LUXEMBOURG]:"Französisch (Luxemburg)",[i.FRENCH_PRINCIPALITY_OF_MONACO]:"Französisch (Fürstentum Monaco)",[i.GALICIAN_SPAIN]:"Galicisch (Spanien)",[i.GUJARATI_INDIA]:"Gujarati (Indien)",[i.HEBREW_ISRAEL]:"Hebräisch (Israel)",[i.HINDI_INDIA]:"Hindi (Indien)",[i.CROATIAN_BOSNIA_AND_HERZEGOVINA]:"Kroatisch (Bosnien und Herzegowina)",[i.CROATIAN_CROATIA]:"Kroatisch (Kroatien)",[i.HUNGARIAN_HUNGARY]:"Ungarisch (Ungarn)",[i.ARMENIAN_ARMENIA]:"Armenisch (Armenien)",[i.INDONESIAN_INDONESIA]:"Indonesisch (Indonesien)",[i.ICELANDIC_ICELAND]:"Isländisch (Island)",[i.ITALIAN_SWITZERLAND]:"Italienisch (Schweiz)",[i.ITALIAN_ITALY]:"Italienisch (Italien)",[i.JAPANESE_JAPAN]:"Japanisch (Japan)",[i.GEORGIAN_GEORGIA]:"Georgisch (Georgien)",[i.KAZAKH_KAZAKHSTAN]:"Kasachisch (Kasachstan)",[i.KANNADA_INDIA]:"Kannada (Indien)",[i.KOREAN_KOREA]:"Koreanisch (Korea)",[i.KONKANI_INDIA]:"Konkani (Indien)",[i.KYRGYZ_KYRGYZSTAN]:"Kirgisisch (Kirgisistan)",[i.LITHUANIAN_LITHUANIA]:"Litauisch (Litauen)",[i.LATVIAN_LATVIA]:"Lettisch (Lettland)",[i.MAORI_NEW_ZEALAND]:"Maori (Neuseeland)",[i.FYRO_MACEDONIAN_MACEDONIA]:"FYRO Mazedonisch (Mazedonien)",[i.MONGOLIAN_MONGOLIA]:"Mongolisch (Mongolei)",[i.MARATHI_INDIA]:"Marathi (Indien)",[i.MALAY_BRUNEI_DARUSSALAM]:"Malaiisch (Brunei Darussalam)",[i.MALAY_MALAYSIA]:"Malaiisch (Malaysia)",[i.MALTESE_MALTA]:"Maltisch (Malta)",[i.NORWEGIAN_BOKMAL_NORWAY]:"Norwegisch Bokmål (Norwegen)",[i.DUTCH_BELGIUM]:"Niederländisch (Belgien)",[i.DUTCH_NETHERLANDS]:"Niederländisch (Niederlande)",[i.NORWEGIAN_NYNORSK_NORWAY]:"Norwegisch Nynorsk (Norwegen)",[i.NORTHERN_SOTHO_SOUTH_AFRICA]:"Sotho (Nord) (Südafrika)",[i.PUNJABI_INDIA]:"Punjabi (Indien)",[i.POLISH_POLAND]:"Polnisch (Polen)",[i.PASHTO_AFGHANISTAN]:"Paschtu (Afghanistan)",[i.PORTUGUESE_BRAZIL]:"Portugiesisch (Brasilien)",[i.PORTUGUESE_PORTUGAL]:"Portugiesisch (Portugal)",[i.QUECHUA_BOLIVIA]:"Quechua (Bolivien)",[i.QUECHUA_ECUADOR]:"Quechua (Ecuador)",[i.QUECHUA_PERU]:"Quechua (Peru)",[i.ROMANIAN_ROMANIA]:"Rumänisch (Rumänien)",[i.RUSSIAN_RUSSIA]:"Russisch (Russland)",[i.SANSKRIT_INDIA]:"Sanskrit (Indien)",[i.SAMI_NORTHERN_FINLAND]:"Sami (Nord) (Finnland)",[i.SAMI_NORTHERN_NORWAY]:"Sami (Nord) (Norwegen)",[i.SAMI_NORTHERN_SWEDEN]:"Sami (Nord) (Schweden)",[i.SLOVAK_SLOVAKIA]:"Slowakisch (Slowakei)",[i.SLOVENIAN_SLOVENIA]:"Slowenisch (Slowenien)",[i.ALBANIAN_ALBANIA]:"Albanisch (Albanien)",[i.SERBIAN_LATIN_BOSNIA_AND_HERZEGOVINA]:"Serbisch Latein (Bosnien und Herzegowina)",[i.SERBIAN_LATIN_SERBIA_AND_MONTENEGRO]:"Serbisch Latein (Serbien und Montenegro)",[i.SWAHILI_KENYA]:"Suaheli (Kenia)",[i.SYRIAC_SYRIA]:"Syrisch (Syrien)",[i.TAMIL_INDIA]:"Tamilisch (Indien)",[i.TELUGU_INDIA]:"Telugu (Indien)",[i.THAI_THAILAND]:"Thailändisch (Thailand)",[i.TAGALOG_PHILIPPINES]:"Tagalog (Philippinen)",[i.TSWANA_SOUTH_AFRICA]:"Tswana (Südafrika)",[i.TURKISH_TURKEY]:"Türkisch (Türkei)",[i.TATAR_RUSSIA]:"Tatarisch (Russland)",[i.TSOGA]:"Tsoga",[i.UKRAINIAN_UKRAINE]:"Ukrainisch (Ukraine)",[i.URDU_ISLAMIC_REPUBLIC_OF_PAKISTAN]:"Urdu (Islamische Republik Pakistan)",[i.UZBEK_LATIN_UZBEKISTAN]:"Usbekisch Latein (Usbekistan)",[i.VIETNAMESE_VIET_NAM]:"Vietnamesisch (Vietnamesisches Reich)",[i.XHOSA_SOUTH_AFRICA]:"Xhosa (Südafrika)",[i.CHINESE_HONG_KONG]:"Chinesisch (Hongkong)",[i.CHINESE_MACAU]:"Chinesisch (Macao)",[i.CHINESE_SINGAPORE]:"Chinesisch (Singapur)",[i.ZULU_SOUTH_AFRICA]:"Zulu (Südafrika)"},Mn={[i.ENGLISH]:"English",[i.FRENCH]:"French",[i.SPANISH]:"Spanish",[i.PORTUGUESE]:"Portuguese",[i.GERMAN]:"German",[i.AFRIKAANS]:"Afrikaans",[i.ARABIC]:"Arabic",[i.AZERI_LATIN]:"Azeri Latin",[i.BELARUSIAN]:"Belarusian",[i.BULGARIAN]:"Bulgarian",[i.BOSNIAN]:"Bosnian",[i.CATALAN]:"Catalan",[i.CZECH]:"Czech",[i.WELSH]:"Welsh",[i.DANISH]:"Danish",[i.DIVEHI]:"Divehi",[i.GREEK]:"Greek",[i.ESPERANTO]:"Esperanto",[i.ESTONIAN]:"Estonian",[i.BASQUE]:"Basque",[i.FARSI]:"Farsi",[i.FINNISH]:"Finnish",[i.FAROESE]:"Faroese",[i.GALICIAN]:"Galician",[i.GUJARATI]:"Gujarati",[i.HEBREW]:"Hebrew",[i.HINDI]:"Hindi",[i.CROATIAN]:"Croatian",[i.HUNGARIAN]:"Hungarian",[i.ARMENIAN]:"Armenian",[i.INDONESIAN]:"Indonesian",[i.ICELANDIC]:"Icelandic",[i.ITALIAN]:"Italian",[i.JAPANESE]:"Japanese",[i.GEORGIAN]:"Georgian",[i.KAZAKH]:"Kazakh",[i.KANNADA]:"Kannada",[i.KOREAN]:"Korean",[i.KONKANI]:"Konkani",[i.KYRGYZ]:"Kyrgyz",[i.LITHUANIAN]:"Lithuanian",[i.LATVIAN]:"Latvian",[i.MAORI]:"Maori",[i.FYRO_MACEDONIAN]:"FYRO Macedonian",[i.MONGOLIAN]:"Mongolian",[i.MARATHI]:"Marathi",[i.MALAY]:"Malay",[i.MALTESE]:"Maltese",[i.NORWEGIAN_BOKMAL]:"Norwegian Bokmål",[i.DUTCH]:"Dutch",[i.NORTHERN_SOTHO]:"Northern Sotho",[i.PUNJABI]:"Punjabi",[i.POLISH]:"Polish",[i.PASHTO]:"Pashto",[i.QUECHUA]:"Quechua",[i.ROMANIAN]:"Romanian",[i.RUSSIAN]:"Russian",[i.SANSKRIT]:"Sanskrit",[i.SAMI_NORTHERN]:"Sami Northern",[i.SLOVAK]:"Slovak",[i.SLOVENIAN]:"Slovenian",[i.ALBANIAN]:"Albanian",[i.SERBIAN_LATIN]:"Serbian Latin",[i.SWEDISH]:"Swedish",[i.SWEDISH_FINLAND]:"Swedish (Finland)",[i.SWEDISH_SWEDEN]:"Swedish (Sweden)",[i.SWAHILI]:"Swahili",[i.SYRIAC]:"Syriac",[i.TAMIL]:"Tamil",[i.TELUGU]:"Telugu",[i.THAI]:"Thai",[i.TAGALOG]:"Tagalog",[i.TSWANA]:"Tswana",[i.TURKISH]:"Turkish",[i.TATAR]:"Tatar",[i.UKRAINIAN]:"Ukrainian",[i.URDU]:"Urdu",[i.UZBEK_LATIN]:"Uzbek Latin",[i.VIETNAMESE]:"Vietnamese",[i.XHOSA]:"Xhosa",[i.CHINESE]:"Chinese",[i.CHINESE_SIMPLIFIED]:"Chinese Simplified",[i.CHINESE_SIMPLIFIED_CHINA]:"Chinese Simplified (China)",[i.CHINESE_TRADITIONAL]:"Chinese Traditional",[i.ZULU]:"Zulu",[i.AFRIKAANS_SOUTH_AFRICA]:"Afrikaans (South Africa)",[i.ARABIC_UNITED_ARAB_EMIRATES]:"Arabic (United Arab Emirates)",[i.ARABIC_BAHRAIN]:"Arabic (Bahrain)",[i.ARABIC_ALGERIA]:"Arabic (Algeria)",[i.ARABIC_EGYPT]:"Arabic (Egypt)",[i.ARABIC_IRAQ]:"Arabic (Iraq)",[i.ARABIC_JORDAN]:"Arabic (Jordan)",[i.ARABIC_KUWAIT]:"Arabic (Kuwait)",[i.ARABIC_LEBANON]:"Arabic (Lebanon)",[i.ARABIC_LIBYA]:"Arabic (Libya)",[i.ARABIC_MOROCCO]:"Arabic (Morocco)",[i.ARABIC_OMAN]:"Arabic (Oman)",[i.ARABIC_QATAR]:"Arabic (Qatar)",[i.ARABIC_SAUDI_ARABIA]:"Arabic (Saudi Arabia)",[i.ARABIC_SYRIA]:"Arabic (Syria)",[i.ARABIC_TUNISIA]:"Arabic (Tunisia)",[i.ARABIC_YEMEN]:"Arabic (Yemen)",[i.AZERI_LATIN_AZERBAIJAN]:"Azeri Latin (Azerbaijan)",[i.BELARUSIAN_BELARUS]:"Belarusian (Belarus)",[i.BULGARIAN_BULGARIA]:"Bulgarian (Bulgaria)",[i.BOSNIAN_BOSNIA_AND_HERZEGOVINA]:"Bosnian (Bosnia and Herzegovina)",[i.CATALAN_SPAIN]:"Catalan (Spain)",[i.CZECH_CZECH_REPUBLIC]:"Czech (Czech Republic)",[i.WELSH_UNITED_KINGDOM]:"Welsh (United Kingdom)",[i.DANISH_DENMARK]:"Danish (Denmark)",[i.GERMAN_AUSTRIA]:"German (Austria)",[i.GERMAN_SWITZERLAND]:"German (Switzerland)",[i.GERMAN_GERMANY]:"German (Germany)",[i.GERMAN_LIECHTENSTEIN]:"German (Liechtenstein)",[i.GERMAN_LUXEMBOURG]:"German (Luxembourg)",[i.DIVEHI_MALDIVES]:"Divehi (Maldives)",[i.GREEK_GREECE]:"Greek (Greece)",[i.ENGLISH_AUSTRALIA]:"English (Australia)",[i.ENGLISH_BELIZE]:"English (Belize)",[i.ENGLISH_CANADA]:"English (Canada)",[i.ENGLISH_CARIBBEAN]:"English (Caribbean)",[i.ENGLISH_UNITED_KINGDOM]:"English (United Kingdom)",[i.ENGLISH_IRELAND]:"English (Ireland)",[i.ENGLISH_JAMAICA]:"English (Jamaica)",[i.ENGLISH_NEW_ZEALAND]:"English (New Zealand)",[i.ENGLISH_PHILIPPINES]:"English (Philippines)",[i.ENGLISH_TRINIDAD_AND_TOBAGO]:"English (Trinidad and Tobago)",[i.ENGLISH_UNITED_STATES]:"English (United States)",[i.ENGLISH_SOUTH_AFRICA]:"English (South Africa)",[i.ENGLISH_ZIMBABWE]:"English (Zimbabwe)",[i.SPANISH_ARGENTINA]:"Spanish (Argentina)",[i.SPANISH_BOLIVIA]:"Spanish (Bolivia)",[i.SPANISH_CHILE]:"Spanish (Chile)",[i.SPANISH_COLOMBIA]:"Spanish (Colombia)",[i.SPANISH_COSTA_RICA]:"Spanish (Costa Rica)",[i.SPANISH_DOMINICAN_REPUBLIC]:"Spanish (Dominican Republic)",[i.SPANISH_ECUADOR]:"Spanish (Ecuador)",[i.SPANISH_SPAIN]:"Spanish (Spain)",[i.SPANISH_GUATEMALA]:"Spanish (Guatemala)",[i.SPANISH_HONDURAS]:"Spanish (Honduras)",[i.SPANISH_MEXICO]:"Spanish (Mexico)",[i.SPANISH_NICARAGUA]:"Spanish (Nicaragua)",[i.SPANISH_PANAMA]:"Spanish (Panama)",[i.SPANISH_PERU]:"Spanish (Peru)",[i.SPANISH_PUERTO_RICO]:"Spanish (Puerto Rico)",[i.SPANISH_PARAGUAY]:"Spanish (Paraguay)",[i.SPANISH_EL_SALVADOR]:"Spanish (El Salvador)",[i.SPANISH_URUGUAY]:"Spanish (Uruguay)",[i.SPANISH_VENEZUELA]:"Spanish (Venezuela)",[i.ESTONIAN_ESTONIA]:"Estonian (Estonia)",[i.BASQUE_SPAIN]:"Basque (Spain)",[i.FARSI_IRAN]:"Farsi (Iran)",[i.FINNISH_FINLAND]:"Finnish (Finland)",[i.FAROESE_FAROE_ISLANDS]:"Faroese (Faroe Islands)",[i.FRENCH_BELGIUM]:"French (Belgium)",[i.FRENCH_CANADA]:"French (Canada)",[i.FRENCH_SWITZERLAND]:"French (Switzerland)",[i.FRENCH_FRANCE]:"French (France)",[i.FRENCH_LUXEMBOURG]:"French (Luxembourg)",[i.FRENCH_PRINCIPALITY_OF_MONACO]:"French (Principality of Monaco)",[i.GALICIAN_SPAIN]:"Galician (Spain)",[i.GUJARATI_INDIA]:"Gujarati (India)",[i.HEBREW_ISRAEL]:"Hebrew (Israel)",[i.HINDI_INDIA]:"Hindi (India)",[i.CROATIAN_BOSNIA_AND_HERZEGOVINA]:"Croatian (Bosnia and Herzegovina)",[i.CROATIAN_CROATIA]:"Croatian (Croatia)",[i.HUNGARIAN_HUNGARY]:"Hungarian (Hungary)",[i.ARMENIAN_ARMENIA]:"Armenian (Armenia)",[i.INDONESIAN_INDONESIA]:"Indonesian (Indonesia)",[i.ICELANDIC_ICELAND]:"Icelandic (Iceland)",[i.ITALIAN_SWITZERLAND]:"Italian (Switzerland)",[i.ITALIAN_ITALY]:"Italian (Italy)",[i.JAPANESE_JAPAN]:"Japanese (Japan)",[i.GEORGIAN_GEORGIA]:"Georgian (Georgia)",[i.KAZAKH_KAZAKHSTAN]:"Kazakh (Kazakhstan)",[i.KANNADA_INDIA]:"Kannada (India)",[i.KOREAN_KOREA]:"Korean (Korea)",[i.KONKANI_INDIA]:"Konkani (India)",[i.KYRGYZ_KYRGYZSTAN]:"Kyrgyz (Kyrgyzstan)",[i.LITHUANIAN_LITHUANIA]:"Lithuanian (Lithuania)",[i.LATVIAN_LATVIA]:"Latvian (Latvia)",[i.MAORI_NEW_ZEALAND]:"Maori (New Zealand)",[i.FYRO_MACEDONIAN_MACEDONIA]:"FYRO Macedonian (Macedonia)",[i.MONGOLIAN_MONGOLIA]:"Mongolian (Mongolia)",[i.MARATHI_INDIA]:"Marathi (India)",[i.MALAY_BRUNEI_DARUSSALAM]:"Malay (Brunei Darussalam)",[i.MALAY_MALAYSIA]:"Malay (Malaysia)",[i.MALTESE_MALTA]:"Maltese (Malta)",[i.NORWEGIAN_BOKMAL_NORWAY]:"Norwegian Bokmål (Norway)",[i.DUTCH_BELGIUM]:"Dutch (Belgium)",[i.DUTCH_NETHERLANDS]:"Dutch (Netherlands)",[i.NORWEGIAN_NYNORSK_NORWAY]:"Norwegian Nynorsk (Norway)",[i.NORTHERN_SOTHO_SOUTH_AFRICA]:"Northern Sotho (South Africa)",[i.PUNJABI_INDIA]:"Punjabi (India)",[i.POLISH_POLAND]:"Polish (Poland)",[i.PASHTO_AFGHANISTAN]:"Pashto (Afghanistan)",[i.PORTUGUESE_BRAZIL]:"Portuguese (Brazil)",[i.PORTUGUESE_PORTUGAL]:"Portuguese (Portugal)",[i.QUECHUA_BOLIVIA]:"Quechua (Bolivia)",[i.QUECHUA_ECUADOR]:"Quechua (Ecuador)",[i.QUECHUA_PERU]:"Quechua (Peru)",[i.ROMANIAN_ROMANIA]:"Romanian (Romania)",[i.RUSSIAN_RUSSIA]:"Russian (Russia)",[i.SANSKRIT_INDIA]:"Sanskrit (India)",[i.SAMI_NORTHERN_FINLAND]:"Sami Northern (Finland)",[i.SAMI_NORTHERN_NORWAY]:"Sami Northern (Norway)",[i.SAMI_NORTHERN_SWEDEN]:"Sami Northern (Sweden)",[i.SLOVAK_SLOVAKIA]:"Slovak (Slovakia)",[i.SLOVENIAN_SLOVENIA]:"Slovenian (Slovenia)",[i.ALBANIAN_ALBANIA]:"Albanian (Albania)",[i.SERBIAN_LATIN_BOSNIA_AND_HERZEGOVINA]:"Serbian Latin (Bosnia and Herzegovina)",[i.SERBIAN_LATIN_SERBIA_AND_MONTENEGRO]:"Serbian Latin (Serbia and Montenegro)",[i.SWAHILI_KENYA]:"Swahili (Kenya)",[i.SYRIAC_SYRIA]:"Syriac (Syria)",[i.TAMIL_INDIA]:"Tamil (India)",[i.TELUGU_INDIA]:"Telugu (India)",[i.THAI_THAILAND]:"Thai (Thailand)",[i.TAGALOG_PHILIPPINES]:"Tagalog (Philippines)",[i.TSWANA_SOUTH_AFRICA]:"Tswana (South Africa)",[i.TURKISH_TURKEY]:"Turkish (Turkey)",[i.TATAR_RUSSIA]:"Tatar (Russia)",[i.TSOGA]:"Tsoga",[i.UKRAINIAN_UKRAINE]:"Ukrainian (Ukraine)",[i.URDU_ISLAMIC_REPUBLIC_OF_PAKISTAN]:"Urdu (Islamic Republic of Pakistan)",[i.UZBEK_LATIN_UZBEKISTAN]:"Uzbek Latin (Uzbekistan)",[i.VIETNAMESE_VIET_NAM]:"Vietnamese (Viet Nam)",[i.XHOSA_SOUTH_AFRICA]:"Xhosa (South Africa)",[i.CHINESE_HONG_KONG]:"Chinese (Hong Kong)",[i.CHINESE_MACAU]:"Chinese (Macau)",[i.CHINESE_SINGAPORE]:"Chinese (Singapore)",[i.ZULU_SOUTH_AFRICA]:"Zulu (South Africa)"},Kt={[i.ENGLISH]:"Inglés",[i.FRENCH]:"Francés",[i.SPANISH]:"Español",[i.PORTUGUESE]:"Portugués",[i.GERMAN]:"Alemán",[i.AFRIKAANS]:"Afrikaans",[i.ARABIC]:"Árabe",[i.AZERI_LATIN]:"Azerí Latín",[i.BELARUSIAN]:"Bielorruso",[i.BULGARIAN]:"Búlgaro",[i.BOSNIAN]:"Bosnio",[i.CATALAN]:"Catalán",[i.CZECH]:"Checo",[i.WELSH]:"Galés",[i.DANISH]:"Danés",[i.DIVEHI]:"Divehi",[i.GREEK]:"Griego",[i.ESPERANTO]:"Esperanto",[i.ESTONIAN]:"Estonio",[i.BASQUE]:"Vasco",[i.FARSI]:"Farsi",[i.FINNISH]:"Finés",[i.FAROESE]:"Feroés",[i.GALICIAN]:"Gallego",[i.GUJARATI]:"Gujarati",[i.HEBREW]:"Hebreo",[i.HINDI]:"Hindi",[i.CROATIAN]:"Croata",[i.HUNGARIAN]:"Húngaro",[i.ARMENIAN]:"Armenio",[i.INDONESIAN]:"Indonesio",[i.ICELANDIC]:"Islandés",[i.ITALIAN]:"Italiano",[i.JAPANESE]:"Japonés",[i.GEORGIAN]:"Georgiano",[i.KAZAKH]:"Kazajo",[i.KANNADA]:"Kannada",[i.KOREAN]:"Coreano",[i.KONKANI]:"Konkani",[i.KYRGYZ]:"Kirguís",[i.LITHUANIAN]:"Lituano",[i.LATVIAN]:"Letón",[i.MAORI]:"Maorí",[i.FYRO_MACEDONIAN]:"Macedonio FYRO",[i.MONGOLIAN]:"Mongol",[i.MARATHI]:"Marathi",[i.MALAY]:"Malayo",[i.MALTESE]:"Maltés",[i.NORWEGIAN_BOKMAL]:"Noruego Bokmål",[i.DUTCH]:"Neerlandés",[i.NORTHERN_SOTHO]:"Sotho del Norte",[i.PUNJABI]:"Panyabí",[i.POLISH]:"Polaco",[i.PASHTO]:"Pastún",[i.QUECHUA]:"Quechua",[i.ROMANIAN]:"Rumano",[i.RUSSIAN]:"Ruso",[i.SANSKRIT]:"Sánscrito",[i.SAMI_NORTHERN]:"Sami del Norte",[i.SLOVAK]:"Eslovaco",[i.SLOVENIAN]:"Esloveno",[i.ALBANIAN]:"Albanés",[i.SERBIAN_LATIN]:"Serbio Latín",[i.SWEDISH]:"Sueco",[i.SWEDISH_FINLAND]:"Sueco (Finlandia)",[i.SWEDISH_SWEDEN]:"Sueco (Suecia)",[i.SWAHILI]:"Swahili",[i.SYRIAC]:"Siríaco",[i.TAMIL]:"Tamil",[i.TELUGU]:"Telugu",[i.THAI]:"Tailandés",[i.TAGALOG]:"Tagalo",[i.TSWANA]:"Tswana",[i.TURKISH]:"Turco",[i.TATAR]:"Tártaro",[i.UKRAINIAN]:"Ucraniano",[i.URDU]:"Urdu",[i.UZBEK_LATIN]:"Uzbeco Latín",[i.VIETNAMESE]:"Vietnamita",[i.XHOSA]:"Xhosa",[i.CHINESE]:"Chino",[i.CHINESE_SIMPLIFIED]:"Chino Simplificado",[i.CHINESE_SIMPLIFIED_CHINA]:"Chino Simplificado (China)",[i.CHINESE_TRADITIONAL]:"Chino Tradicional",[i.ZULU]:"Zulú",[i.AFRIKAANS_SOUTH_AFRICA]:"Afrikaans (Sudáfrica)",[i.ARABIC_UNITED_ARAB_EMIRATES]:"Árabe (Emiratos Árabes Unidos)",[i.ARABIC_BAHRAIN]:"Árabe (Baréin)",[i.ARABIC_ALGERIA]:"Árabe (Argelia)",[i.ARABIC_EGYPT]:"Árabe (Egipto)",[i.ARABIC_IRAQ]:"Árabe (Irak)",[i.ARABIC_JORDAN]:"Árabe (Jordania)",[i.ARABIC_KUWAIT]:"Árabe (Kuwait)",[i.ARABIC_LEBANON]:"Árabe (Líbano)",[i.ARABIC_LIBYA]:"Árabe (Libia)",[i.ARABIC_MOROCCO]:"Árabe (Marruecos)",[i.ARABIC_OMAN]:"Árabe (Omán)",[i.ARABIC_QATAR]:"Árabe (Catar)",[i.ARABIC_SAUDI_ARABIA]:"Árabe (Arabia Saudita)",[i.ARABIC_SYRIA]:"Árabe (Siria)",[i.ARABIC_TUNISIA]:"Árabe (Túnez)",[i.ARABIC_YEMEN]:"Árabe (Yemen)",[i.AZERI_LATIN_AZERBAIJAN]:"Azerí Latín (Azerbaiyán)",[i.BELARUSIAN_BELARUS]:"Bielorruso (Bielorrusia)",[i.BULGARIAN_BULGARIA]:"Búlgaro (Bulgaria)",[i.BOSNIAN_BOSNIA_AND_HERZEGOVINA]:"Bosnio (Bosnia y Herzegovina)",[i.CATALAN_SPAIN]:"Catalán (España)",[i.CZECH_CZECH_REPUBLIC]:"Checo (República Checa)",[i.WELSH_UNITED_KINGDOM]:"Galés (Reino Unido)",[i.DANISH_DENMARK]:"Danés (Dinamarca)",[i.GERMAN_AUSTRIA]:"Alemán (Austria)",[i.GERMAN_SWITZERLAND]:"Alemán (Suiza)",[i.GERMAN_GERMANY]:"Alemán (Alemania)",[i.GERMAN_LIECHTENSTEIN]:"Alemán (Liechtenstein)",[i.GERMAN_LUXEMBOURG]:"Alemán (Luxemburgo)",[i.DIVEHI_MALDIVES]:"Divehi (Maldivas)",[i.GREEK_GREECE]:"Griego (Grecia)",[i.ENGLISH_AUSTRALIA]:"Inglés (Australia)",[i.ENGLISH_BELIZE]:"Inglés (Belice)",[i.ENGLISH_CANADA]:"Inglés (Canadá)",[i.ENGLISH_CARIBBEAN]:"Inglés (Caribe)",[i.ENGLISH_UNITED_KINGDOM]:"Inglés (Reino Unido)",[i.ENGLISH_IRELAND]:"Inglés (Irlanda)",[i.ENGLISH_JAMAICA]:"Inglés (Jamaica)",[i.ENGLISH_NEW_ZEALAND]:"Inglés (Nueva Zelanda)",[i.ENGLISH_PHILIPPINES]:"Inglés (Filipinas)",[i.ENGLISH_TRINIDAD_AND_TOBAGO]:"Inglés (Trinidad y Tobago)",[i.ENGLISH_UNITED_STATES]:"Inglés (Estados Unidos)",[i.ENGLISH_SOUTH_AFRICA]:"Inglés (Sudáfrica)",[i.ENGLISH_ZIMBABWE]:"Inglés (Zimbabue)",[i.SPANISH_ARGENTINA]:"Español (Argentina)",[i.SPANISH_BOLIVIA]:"Español (Bolivia)",[i.SPANISH_CHILE]:"Español (Chile)",[i.SPANISH_COLOMBIA]:"Español (Colombia)",[i.SPANISH_COSTA_RICA]:"Español (Costa Rica)",[i.SPANISH_DOMINICAN_REPUBLIC]:"Español (República Dominicana)",[i.SPANISH_ECUADOR]:"Español (Ecuador)",[i.SPANISH_SPAIN]:"Español (España)",[i.SPANISH_GUATEMALA]:"Español (Guatemala)",[i.SPANISH_HONDURAS]:"Español (Honduras)",[i.SPANISH_MEXICO]:"Español (México)",[i.SPANISH_NICARAGUA]:"Español (Nicaragua)",[i.SPANISH_PANAMA]:"Español (Panamá)",[i.SPANISH_PERU]:"Español (Perú)",[i.SPANISH_PUERTO_RICO]:"Español (Puerto Rico)",[i.SPANISH_PARAGUAY]:"Español (Paraguay)",[i.SPANISH_EL_SALVADOR]:"Español (El Salvador)",[i.SPANISH_URUGUAY]:"Español (Uruguay)",[i.SPANISH_VENEZUELA]:"Español (Venezuela)",[i.ESTONIAN_ESTONIA]:"Estonio (Estonia)",[i.BASQUE_SPAIN]:"Vasco (España)",[i.FARSI_IRAN]:"Farsi (Irán)",[i.FINNISH_FINLAND]:"Finés (Finlandia)",[i.FAROESE_FAROE_ISLANDS]:"Feroés (Islas Feroe)",[i.FRENCH_BELGIUM]:"Francés (Bélgica)",[i.FRENCH_CANADA]:"Francés (Canadá)",[i.FRENCH_SWITZERLAND]:"Francés (Suiza)",[i.FRENCH_FRANCE]:"Francés (Francia)",[i.FRENCH_LUXEMBOURG]:"Francés (Luxemburgo)",[i.FRENCH_PRINCIPALITY_OF_MONACO]:"Francés (Principado de Mónaco)",[i.GALICIAN_SPAIN]:"Gallego (España)",[i.GUJARATI_INDIA]:"Gujarati (India)",[i.HEBREW_ISRAEL]:"Hebreo (Israel)",[i.HINDI_INDIA]:"Hindi (India)",[i.CROATIAN_BOSNIA_AND_HERZEGOVINA]:"Croata (Bosnia y Herzegovina)",[i.CROATIAN_CROATIA]:"Croata (Croacia)",[i.HUNGARIAN_HUNGARY]:"Húngaro (Hungría)",[i.ARMENIAN_ARMENIA]:"Armenio (Armenia)",[i.INDONESIAN_INDONESIA]:"Indonesio (Indonesia)",[i.ICELANDIC_ICELAND]:"Islandés (Islandia)",[i.ITALIAN_SWITZERLAND]:"Italiano (Suiza)",[i.ITALIAN_ITALY]:"Italiano (Italia)",[i.JAPANESE_JAPAN]:"Japonés (Japón)",[i.GEORGIAN_GEORGIA]:"Georgiano (Georgia)",[i.KAZAKH_KAZAKHSTAN]:"Kazajo (Kazajistán)",[i.KANNADA_INDIA]:"Kannada (India)",[i.KOREAN_KOREA]:"Coreano (Corea)",[i.KONKANI_INDIA]:"Konkani (India)",[i.KYRGYZ_KYRGYZSTAN]:"Kirguís (Kirguistán)",[i.LITHUANIAN_LITHUANIA]:"Lituano (Lituania)",[i.LATVIAN_LATVIA]:"Letón (Letonia)",[i.MAORI_NEW_ZEALAND]:"Maorí (Nueva Zelanda)",[i.FYRO_MACEDONIAN_MACEDONIA]:"Macedonio FYRO (Macedonia)",[i.MONGOLIAN_MONGOLIA]:"Mongol (Mongolia)",[i.MARATHI_INDIA]:"Marathi (India)",[i.MALAY_BRUNEI_DARUSSALAM]:"Malayo (Brunéi Darussalam)",[i.MALAY_MALAYSIA]:"Malayo (Malasia)",[i.MALTESE_MALTA]:"Maltés (Malta)",[i.NORWEGIAN_BOKMAL_NORWAY]:"Noruego Bokmål (Noruega)",[i.DUTCH_BELGIUM]:"Neerlandés (Bélgica)",[i.DUTCH_NETHERLANDS]:"Neerlandés (Países Bajos)",[i.NORWEGIAN_NYNORSK_NORWAY]:"Noruego Nynorsk (Noruega)",[i.NORTHERN_SOTHO_SOUTH_AFRICA]:"Sotho del Norte (Sudáfrica)",[i.PUNJABI_INDIA]:"Panyabí (India)",[i.POLISH_POLAND]:"Polaco (Polonia)",[i.PASHTO_AFGHANISTAN]:"Pastún (Afganistán)",[i.PORTUGUESE_BRAZIL]:"Portugués (Brasil)",[i.PORTUGUESE_PORTUGAL]:"Portugués (Portugal)",[i.QUECHUA_BOLIVIA]:"Quechua (Bolivia)",[i.QUECHUA_ECUADOR]:"Quechua (Ecuador)",[i.QUECHUA_PERU]:"Quechua (Perú)",[i.ROMANIAN_ROMANIA]:"Rumano (Rumania)",[i.RUSSIAN_RUSSIA]:"Ruso (Rusia)",[i.SANSKRIT_INDIA]:"Sánscrito (India)",[i.SAMI_NORTHERN_FINLAND]:"Sami del Norte (Finlandia)",[i.SAMI_NORTHERN_NORWAY]:"Sami del Norte (Noruega)",[i.SAMI_NORTHERN_SWEDEN]:"Sami del Norte (Suecia)",[i.SLOVAK_SLOVAKIA]:"Eslovaco (Eslovaquia)",[i.SLOVENIAN_SLOVENIA]:"Esloveno (Eslovenia)",[i.ALBANIAN_ALBANIA]:"Albanés (Albania)",[i.SERBIAN_LATIN_BOSNIA_AND_HERZEGOVINA]:"Serbio Latín (Bosnia y Herzegovina)",[i.SERBIAN_LATIN_SERBIA_AND_MONTENEGRO]:"Serbio Latín (Serbia y Montenegro)",[i.SWAHILI_KENYA]:"Swahili (Kenia)",[i.SYRIAC_SYRIA]:"Siríaco (Siria)",[i.TAMIL_INDIA]:"Tamil (India)",[i.TELUGU_INDIA]:"Telugu (India)",[i.THAI_THAILAND]:"Tailandés (Tailandia)",[i.TAGALOG_PHILIPPINES]:"Tagalo (Filipinas)",[i.TSWANA_SOUTH_AFRICA]:"Tswana (Sudáfrica)",[i.TURKISH_TURKEY]:"Turco (Turquía)",[i.TATAR_RUSSIA]:"Tártaro (Rusia)",[i.TSOGA]:"Tsoga",[i.UKRAINIAN_UKRAINE]:"Ucraniano (Ucrania)",[i.URDU_ISLAMIC_REPUBLIC_OF_PAKISTAN]:"Urdu (República Islámica de Pakistán)",[i.UZBEK_LATIN_UZBEKISTAN]:"Uzbeco Latín (Uzbekistán)",[i.VIETNAMESE_VIET_NAM]:"Vietnamita (Vietnam)",[i.XHOSA_SOUTH_AFRICA]:"Xhosa (Sudáfrica)",[i.CHINESE_HONG_KONG]:"Chino (Hong Kong)",[i.CHINESE_MACAU]:"Chino (Macao)",[i.CHINESE_SINGAPORE]:"Chino (Singapur)",[i.ZULU_SOUTH_AFRICA]:"Zulú (Sudáfrica)"},da={[i.ENGLISH]:"Anglais",[i.FRENCH]:"Français",[i.SPANISH]:"Espagnol",[i.PORTUGUESE]:"Portugais",[i.GERMAN]:"Allemand",[i.AFRIKAANS]:"Afrikaans",[i.ARABIC]:"Arabe",[i.AZERI_LATIN]:"Azéri Latin",[i.BELARUSIAN]:"Biélorusse",[i.BULGARIAN]:"Bulgare",[i.BOSNIAN]:"Bosniaque",[i.CATALAN]:"Catalan",[i.CZECH]:"Tchèque",[i.WELSH]:"Gallois",[i.DANISH]:"Danois",[i.DIVEHI]:"Divehi",[i.GREEK]:"Grec",[i.ESPERANTO]:"Espéranto",[i.ESTONIAN]:"Estonien",[i.BASQUE]:"Basque",[i.FARSI]:"Farsi",[i.FINNISH]:"Finnois",[i.FAROESE]:"Féroïen",[i.GALICIAN]:"Galicien",[i.GUJARATI]:"Gujarati",[i.HEBREW]:"Hébreu",[i.HINDI]:"Hindi",[i.CROATIAN]:"Croate",[i.HUNGARIAN]:"Hongrois",[i.ARMENIAN]:"Arménien",[i.INDONESIAN]:"Indonésien",[i.ICELANDIC]:"Islandais",[i.ITALIAN]:"Italien",[i.JAPANESE]:"Japonais",[i.GEORGIAN]:"Géorgien",[i.KAZAKH]:"Kazakh",[i.KANNADA]:"Kannada",[i.KOREAN]:"Coréen",[i.KONKANI]:"Konkani",[i.KYRGYZ]:"Kirghize",[i.LITHUANIAN]:"Lituanien",[i.LATVIAN]:"Letton",[i.MAORI]:"Maori",[i.FYRO_MACEDONIAN]:"Macédonien FYRO",[i.MONGOLIAN]:"Mongol",[i.MARATHI]:"Marathi",[i.MALAY]:"Malais",[i.MALTESE]:"Maltais",[i.NORWEGIAN_BOKMAL]:"Norvégien Bokmål",[i.DUTCH]:"Néerlandais",[i.NORTHERN_SOTHO]:"Sotho du Nord",[i.PUNJABI]:"Pendjabi",[i.POLISH]:"Polonais",[i.PASHTO]:"Pachto",[i.QUECHUA]:"Quechua",[i.ROMANIAN]:"Roumain",[i.RUSSIAN]:"Russe",[i.SANSKRIT]:"Sanskrit",[i.SAMI_NORTHERN]:"Sami du Nord",[i.SLOVAK]:"Slovaque",[i.SLOVENIAN]:"Slovène",[i.ALBANIAN]:"Albanais",[i.SERBIAN_LATIN]:"Serbe Latin",[i.SWEDISH]:"Suédois",[i.SWEDISH_FINLAND]:"Suédois (Finlande)",[i.SWEDISH_SWEDEN]:"Suédois (Suède)",[i.SWAHILI]:"Swahili",[i.SYRIAC]:"Syriaque",[i.TAMIL]:"Tamoul",[i.TELUGU]:"Télougou",[i.THAI]:"Thaï",[i.TAGALOG]:"Tagalog",[i.TSWANA]:"Tswana",[i.TURKISH]:"Turc",[i.TATAR]:"Tatar",[i.UKRAINIAN]:"Ukrainien",[i.URDU]:"Ourdou",[i.UZBEK_LATIN]:"Ouzbek Latin",[i.VIETNAMESE]:"Vietnamien",[i.XHOSA]:"Xhosa",[i.CHINESE]:"Chinois",[i.CHINESE_SIMPLIFIED]:"Chinois Simplifié",[i.CHINESE_SIMPLIFIED_CHINA]:"Chinois Simplifié (Chine)",[i.CHINESE_TRADITIONAL]:"Chinois Traditionnel",[i.ZULU]:"Zoulou",[i.AFRIKAANS_SOUTH_AFRICA]:"Afrikaans (Afrique du Sud)",[i.ARABIC_UNITED_ARAB_EMIRATES]:"Arabe (Émirats Arabes Unis)",[i.ARABIC_BAHRAIN]:"Arabe (Bahreïn)",[i.ARABIC_ALGERIA]:"Arabe (Algérie)",[i.ARABIC_EGYPT]:"Arabe (Égypte)",[i.ARABIC_IRAQ]:"Arabe (Irak)",[i.ARABIC_JORDAN]:"Arabe (Jordanie)",[i.ARABIC_KUWAIT]:"Arabe (Koweït)",[i.ARABIC_LEBANON]:"Arabe (Liban)",[i.ARABIC_LIBYA]:"Arabe (Libye)",[i.ARABIC_MOROCCO]:"Arabe (Maroc)",[i.ARABIC_OMAN]:"Arabe (Oman)",[i.ARABIC_QATAR]:"Arabe (Qatar)",[i.ARABIC_SAUDI_ARABIA]:"Arabe (Arabie Saoudite)",[i.ARABIC_SYRIA]:"Arabe (Syrie)",[i.ARABIC_TUNISIA]:"Arabe (Tunisie)",[i.ARABIC_YEMEN]:"Arabe (Yémen)",[i.AZERI_LATIN_AZERBAIJAN]:"Azéri Latin (Azerbaïdjan)",[i.BELARUSIAN_BELARUS]:"Biélorusse (Biélorussie)",[i.BULGARIAN_BULGARIA]:"Bulgare (Bulgarie)",[i.BOSNIAN_BOSNIA_AND_HERZEGOVINA]:"Bosniaque (Bosnie-Herzégovine)",[i.CATALAN_SPAIN]:"Catalan (Espagne)",[i.CZECH_CZECH_REPUBLIC]:"Tchèque (République Tchèque)",[i.WELSH_UNITED_KINGDOM]:"Gallois (Royaume-Uni)",[i.DANISH_DENMARK]:"Danois (Danemark)",[i.GERMAN_AUSTRIA]:"Allemand (Autriche)",[i.GERMAN_SWITZERLAND]:"Allemand (Suisse)",[i.GERMAN_GERMANY]:"Allemand (Allemagne)",[i.GERMAN_LIECHTENSTEIN]:"Allemand (Liechtenstein)",[i.GERMAN_LUXEMBOURG]:"Allemand (Luxembourg)",[i.DIVEHI_MALDIVES]:"Divehi (Maldives)",[i.GREEK_GREECE]:"Grec (Grèce)",[i.ENGLISH_AUSTRALIA]:"Anglais (Australie)",[i.ENGLISH_BELIZE]:"Anglais (Belize)",[i.ENGLISH_CANADA]:"Anglais (Canada)",[i.ENGLISH_CARIBBEAN]:"Anglais (Caraïbes)",[i.ENGLISH_UNITED_KINGDOM]:"Anglais (Royaume-Uni)",[i.ENGLISH_IRELAND]:"Anglais (Irlande)",[i.ENGLISH_JAMAICA]:"Anglais (Jamaïque)",[i.ENGLISH_NEW_ZEALAND]:"Anglais (Nouvelle-Zélande)",[i.ENGLISH_PHILIPPINES]:"Anglais (Philippines)",[i.ENGLISH_TRINIDAD_AND_TOBAGO]:"Anglais (Trinité-et-Tobago)",[i.ENGLISH_UNITED_STATES]:"Anglais (États-Unis)",[i.ENGLISH_SOUTH_AFRICA]:"Anglais (Afrique du Sud)",[i.ENGLISH_ZIMBABWE]:"Anglais (Zimbabwe)",[i.SPANISH_ARGENTINA]:"Espagnol (Argentine)",[i.SPANISH_BOLIVIA]:"Espagnol (Bolivie)",[i.SPANISH_CHILE]:"Espagnol (Chili)",[i.SPANISH_COLOMBIA]:"Espagnol (Colombie)",[i.SPANISH_COSTA_RICA]:"Espagnol (Costa Rica)",[i.SPANISH_DOMINICAN_REPUBLIC]:"Espagnol (République Dominicaine)",[i.SPANISH_ECUADOR]:"Espagnol (Équateur)",[i.SPANISH_SPAIN]:"Espagnol (Espagne)",[i.SPANISH_GUATEMALA]:"Espagnol (Guatemala)",[i.SPANISH_HONDURAS]:"Espagnol (Honduras)",[i.SPANISH_MEXICO]:"Espagnol (Mexique)",[i.SPANISH_NICARAGUA]:"Espagnol (Nicaragua)",[i.SPANISH_PANAMA]:"Espagnol (Panama)",[i.SPANISH_PERU]:"Espagnol (Pérou)",[i.SPANISH_PUERTO_RICO]:"Espagnol (Porto Rico)",[i.SPANISH_PARAGUAY]:"Espagnol (Paraguay)",[i.SPANISH_EL_SALVADOR]:"Espagnol (El Salvador)",[i.SPANISH_URUGUAY]:"Espagnol (Uruguay)",[i.SPANISH_VENEZUELA]:"Espagnol (Venezuela)",[i.ESTONIAN_ESTONIA]:"Estonien (Estonie)",[i.BASQUE_SPAIN]:"Basque (Espagne)",[i.FARSI_IRAN]:"Farsi (Iran)",[i.FINNISH_FINLAND]:"Finnois (Finlande)",[i.FAROESE_FAROE_ISLANDS]:"Féroïen (Îles Féroé)",[i.FRENCH_BELGIUM]:"Français (Belgique)",[i.FRENCH_CANADA]:"Français (Canada)",[i.FRENCH_SWITZERLAND]:"Français (Suisse)",[i.FRENCH_FRANCE]:"Français (France)",[i.FRENCH_LUXEMBOURG]:"Français (Luxembourg)",[i.FRENCH_PRINCIPALITY_OF_MONACO]:"Français (Principauté de Monaco)",[i.GALICIAN_SPAIN]:"Galicien (Espagne)",[i.GUJARATI_INDIA]:"Gujarati (Inde)",[i.HEBREW_ISRAEL]:"Hébreu (Israël)",[i.HINDI_INDIA]:"Hindi (Inde)",[i.CROATIAN_BOSNIA_AND_HERZEGOVINA]:"Croate (Bosnie-Herzégovine)",[i.CROATIAN_CROATIA]:"Croate (Croatie)",[i.HUNGARIAN_HUNGARY]:"Hongrois (Hongrie)",[i.ARMENIAN_ARMENIA]:"Arménien (Arménie)",[i.INDONESIAN_INDONESIA]:"Indonésien (Indonésie)",[i.ICELANDIC_ICELAND]:"Islandais (Islande)",[i.ITALIAN_SWITZERLAND]:"Italien (Suisse)",[i.ITALIAN_ITALY]:"Italien (Italie)",[i.JAPANESE_JAPAN]:"Japonais (Japon)",[i.GEORGIAN_GEORGIA]:"Géorgien (Géorgie)",[i.KAZAKH_KAZAKHSTAN]:"Kazakh (Kazakhstan)",[i.KANNADA_INDIA]:"Kannada (Inde)",[i.KOREAN_KOREA]:"Coréen (Corée)",[i.KONKANI_INDIA]:"Konkani (Inde)",[i.KYRGYZ_KYRGYZSTAN]:"Kirghize (Kirghizistan)",[i.LITHUANIAN_LITHUANIA]:"Lituanien (Lituanie)",[i.LATVIAN_LATVIA]:"Letton (Lettonie)",[i.MAORI_NEW_ZEALAND]:"Maori (Nouvelle-Zélande)",[i.FYRO_MACEDONIAN_MACEDONIA]:"Macédonien FYRO (Macédoine)",[i.MONGOLIAN_MONGOLIA]:"Mongol (Mongolie)",[i.MARATHI_INDIA]:"Marathi (Inde)",[i.MALAY_BRUNEI_DARUSSALAM]:"Malais (Brunei Darussalam)",[i.MALAY_MALAYSIA]:"Malais (Malaisie)",[i.MALTESE_MALTA]:"Maltais (Malte)",[i.NORWEGIAN_BOKMAL_NORWAY]:"Norvégien Bokmål (Norvège)",[i.DUTCH_BELGIUM]:"Néerlandais (Belgique)",[i.DUTCH_NETHERLANDS]:"Néerlandais (Pays-Bas)",[i.NORWEGIAN_NYNORSK_NORWAY]:"Norvégien Nynorsk (Norvège)",[i.NORTHERN_SOTHO_SOUTH_AFRICA]:"Sotho du Nord (Afrique du Sud)",[i.PUNJABI_INDIA]:"Pendjabi (Inde)",[i.POLISH_POLAND]:"Polonais (Pologne)",[i.PASHTO_AFGHANISTAN]:"Pachto (Afghanistan)",[i.PORTUGUESE_BRAZIL]:"Portugais (Brésil)",[i.PORTUGUESE_PORTUGAL]:"Portugais (Portugal)",[i.QUECHUA_BOLIVIA]:"Quechua (Bolivie)",[i.QUECHUA_ECUADOR]:"Quechua (Équateur)",[i.QUECHUA_PERU]:"Quechua (Pérou)",[i.ROMANIAN_ROMANIA]:"Roumain (Roumanie)",[i.RUSSIAN_RUSSIA]:"Russe (Russie)",[i.SANSKRIT_INDIA]:"Sanskrit (Inde)",[i.SAMI_NORTHERN_FINLAND]:"Sami du Nord (Finlande)",[i.SAMI_NORTHERN_NORWAY]:"Sami du Nord (Norvège)",[i.SAMI_NORTHERN_SWEDEN]:"Sami du Nord (Suède)",[i.SLOVAK_SLOVAKIA]:"Slovaque (Slovaquie)",[i.SLOVENIAN_SLOVENIA]:"Slovène (Slovénie)",[i.ALBANIAN_ALBANIA]:"Albanais (Albanie)",[i.SERBIAN_LATIN_BOSNIA_AND_HERZEGOVINA]:"Serbe Latin (Bosnie-Herzégovine)",[i.SERBIAN_LATIN_SERBIA_AND_MONTENEGRO]:"Serbe Latin (Serbie et Monténégro)",[i.SWAHILI_KENYA]:"Swahili (Kenya)",[i.SYRIAC_SYRIA]:"Syriaque (Syrie)",[i.TAMIL_INDIA]:"Tamoul (Inde)",[i.TELUGU_INDIA]:"Télougou (Inde)",[i.THAI_THAILAND]:"Thaï (Thaïlande)",[i.TAGALOG_PHILIPPINES]:"Tagalog (Philippines)",[i.TSWANA_SOUTH_AFRICA]:"Tswana (Afrique du Sud)",[i.TURKISH_TURKEY]:"Turc (Turquie)",[i.TATAR_RUSSIA]:"Tatar (Russie)",[i.TSOGA]:"Tsoga",[i.UKRAINIAN_UKRAINE]:"Ukrainien (Ukraine)",[i.URDU_ISLAMIC_REPUBLIC_OF_PAKISTAN]:"Ourdou (République Islamique du Pakistan)",[i.UZBEK_LATIN_UZBEKISTAN]:"Ouzbek Latin (Ouzbékistan)",[i.VIETNAMESE_VIET_NAM]:"Vietnamien (Viêt Nam)",[i.XHOSA_SOUTH_AFRICA]:"Xhosa (Afrique du Sud)",[i.CHINESE_HONG_KONG]:"Chinois (Hong Kong)",[i.CHINESE_MACAU]:"Chinois (Macao)",[i.CHINESE_SINGAPORE]:"Chinois (Singapour)",[i.ZULU_SOUTH_AFRICA]:"Zoulou (Afrique du Sud)"},Kw={[i.ENGLISH]:"अंग्रेज़ी",[i.FRENCH]:"फ़्रेंच",[i.SPANISH]:"स्पेनिश",[i.PORTUGUESE]:"पुर्तगाली",[i.GERMAN]:"जर्मन",[i.AFRIKAANS]:"आफ्रिकान्स",[i.ARABIC]:"अरबी",[i.AZERI_LATIN]:"अज़रबैजानी (लैटिन)",[i.BELARUSIAN]:"बेलारूसी",[i.BULGARIAN]:"बुल्गारियाई",[i.BOSNIAN]:"बोस्नियाई",[i.CATALAN]:"कातालान",[i.CZECH]:"चेक",[i.WELSH]:"वेल्श",[i.DANISH]:"डेनिश",[i.DIVEHI]:"डिवेही",[i.GREEK]:"यूनानी",[i.ESPERANTO]:"एस्पेरांतो",[i.ESTONIAN]:"एस्टोनियाई",[i.BASQUE]:"बास्क",[i.FARSI]:"फ़ारसी",[i.FINNISH]:"फिनिश",[i.FAROESE]:"फ़ेरोश",[i.GALICIAN]:"गैलिशियन",[i.GUJARATI]:"गुजराती",[i.HEBREW]:"हिब्रू",[i.HINDI]:"हिंदी",[i.CROATIAN]:"क्रोएशियाई",[i.HUNGARIAN]:"हंगेरियाई",[i.ARMENIAN]:"आर्मेनियाई",[i.INDONESIAN]:"इंडोनेशियाई",[i.ICELANDIC]:"आइसलैंडिक",[i.ITALIAN]:"इटालियन",[i.JAPANESE]:"जापानी",[i.GEORGIAN]:"जॉर्जियाई",[i.KAZAKH]:"कज़ाख",[i.KANNADA]:"कन्नड़",[i.KOREAN]:"कोरियाई",[i.KONKANI]:"कोंकणी",[i.KYRGYZ]:"किरगिज़",[i.LITHUANIAN]:"लिथुआनियाई",[i.LATVIAN]:"लातवियाई",[i.MAORI]:"माओरी",[i.FYRO_MACEDONIAN]:"मैसेडोनियाई (पूर्व यूगोस्लाविया)",[i.MONGOLIAN]:"मंगोलियाई",[i.MARATHI]:"मराठी",[i.MALAY]:"मलय",[i.MALTESE]:"माल्टीज़",[i.NORWEGIAN_BOKMAL]:"नॉर्वेजियन (बोकमाल)",[i.DUTCH]:"डच",[i.NORTHERN_SOTHO]:"नॉर्दर्न सोटो",[i.PUNJABI]:"पंजाबी",[i.POLISH]:"पोलिश",[i.PASHTO]:"पश्तो",[i.QUECHUA]:"क्वेचुआ",[i.ROMANIAN]:"रोमानियाई",[i.RUSSIAN]:"रूसी",[i.SANSKRIT]:"संस्कृत",[i.SAMI_NORTHERN]:"सामी (उत्तर)",[i.SLOVAK]:"स्लोवाक",[i.SLOVENIAN]:"स्लोवेनियाई",[i.ALBANIAN]:"अल्बानियाई",[i.SERBIAN_LATIN]:"सेर्बियाई (लैटिन)",[i.SWEDISH]:"स्वीडिश",[i.SWEDISH_FINLAND]:"स्वीडिश (फिनलैंड)",[i.SWEDISH_SWEDEN]:"स्वीडिश (स्वीडन)",[i.SWAHILI]:"स्वाहिली",[i.SYRIAC]:"सीरियाई",[i.TAMIL]:"तमिल",[i.TELUGU]:"तेलुगू",[i.THAI]:"थाई",[i.TAGALOG]:"तागालोग",[i.TSWANA]:"त्सवाना",[i.TURKISH]:"तुर्की",[i.TATAR]:"तातार",[i.UKRAINIAN]:"यूक्रेनी",[i.URDU]:"उर्दू",[i.UZBEK_LATIN]:"उज़्बेक (लैटिन)",[i.VIETNAMESE]:"वियतनामी",[i.XHOSA]:"कोसा",[i.CHINESE]:"चीनी",[i.CHINESE_SIMPLIFIED]:"चीनी (सरलीकृत)",[i.CHINESE_SIMPLIFIED_CHINA]:"चीनी (सरलीकृत, चीन)",[i.CHINESE_TRADITIONAL]:"चीनी (परंपरागत)",[i.ZULU]:"ज़ुलू",[i.AFRIKAANS_SOUTH_AFRICA]:"आफ्रिकान्स (दक्षिण अफ्रीका)",[i.ARABIC_UNITED_ARAB_EMIRATES]:"अरबी (संयुक्त अरब अमीरात)",[i.ARABIC_BAHRAIN]:"अरबी (बहरीन)",[i.ARABIC_ALGERIA]:"अरबी (अल्जीरिया)",[i.ARABIC_EGYPT]:"अरबी (मिस्र)",[i.ARABIC_IRAQ]:"अरबी (इराक)",[i.ARABIC_JORDAN]:"अरबी (जोर्डन)",[i.ARABIC_KUWAIT]:"अरबी (कुवैत)",[i.ARABIC_LEBANON]:"अरबी (लेबनान)",[i.ARABIC_LIBYA]:"अरबी (लीबिया)",[i.ARABIC_MOROCCO]:"अरबी (मोरक्को)",[i.ARABIC_OMAN]:"अरबी (ओमान)",[i.ARABIC_QATAR]:"अरबी (कतार)",[i.ARABIC_SAUDI_ARABIA]:"अरबी (सऊदी अरब)",[i.ARABIC_SYRIA]:"अरबी (सीरिया)",[i.ARABIC_TUNISIA]:"अरबी (ट्यूनीशिया)",[i.ARABIC_YEMEN]:"अरबी (यमन)",[i.AZERI_LATIN_AZERBAIJAN]:"अज़रबैजानी (लैटिन, अज़रबैजान)",[i.BELARUSIAN_BELARUS]:"बेलारूसी (बेलारूस)",[i.BULGARIAN_BULGARIA]:"बुल्गारियाई (बुल्गारिया)",[i.BOSNIAN_BOSNIA_AND_HERZEGOVINA]:"बोस्नियाई (बोस्निया और हर्जेगोविना)",[i.CATALAN_SPAIN]:"कातालान (स्पेन)",[i.CZECH_CZECH_REPUBLIC]:"चेक (चेक गणराज्य)",[i.WELSH_UNITED_KINGDOM]:"वेल्श (संयुक्त राज्य)",[i.DANISH_DENMARK]:"डेनिश (डेनमार्क)",[i.GERMAN_AUSTRIA]:"जर्मन (ऑस्ट्रिया)",[i.GERMAN_SWITZERLAND]:"जर्मन (स्विट्जरलैंड)",[i.GERMAN_GERMANY]:"जर्मन (जर्मनी)",[i.GERMAN_LIECHTENSTEIN]:"जर्मन (लिचटेनस्टीन)",[i.GERMAN_LUXEMBOURG]:"जर्मन (लक्समबर्ग)",[i.DIVEHI_MALDIVES]:"डिवेही (मालदीव)",[i.GREEK_GREECE]:"यूनानी (ग्रीस)",[i.ENGLISH_AUSTRALIA]:"अंग्रेज़ी (ऑस्ट्रेलिया)",[i.ENGLISH_BELIZE]:"अंग्रेज़ी (बेलीज)",[i.ENGLISH_CANADA]:"अंग्रेज़ी (कनाडा)",[i.ENGLISH_CARIBBEAN]:"अंग्रेज़ी (कैरेबियन)",[i.ENGLISH_UNITED_KINGDOM]:"अंग्रेज़ी (संयुक्त राज्य)",[i.ENGLISH_IRELAND]:"अंग्रेज़ी (आयरलैंड)",[i.ENGLISH_JAMAICA]:"अंग्रेज़ी (जमैका)",[i.ENGLISH_NEW_ZEALAND]:"अंग्रेज़ी (न्यूज़ीलैंड)",[i.ENGLISH_PHILIPPINES]:"अंग्रेज़ी (फ़िलीपींस)",[i.ENGLISH_TRINIDAD_AND_TOBAGO]:"अंग्रेज़ी (त्रिनिदाद और टोबैगो)",[i.ENGLISH_UNITED_STATES]:"अंग्रेज़ी (संयुक्त राज्य अमेरिका)",[i.ENGLISH_SOUTH_AFRICA]:"अंग्रेज़ी (दक्षिण अफ्रीका)",[i.ENGLISH_ZIMBABWE]:"अंग्रेज़ी (ज़िम्बाब्वे)",[i.SPANISH_ARGENTINA]:"स्पेनिश (अर्जेंटीना)",[i.SPANISH_BOLIVIA]:"स्पेनिश (बोलीविया)",[i.SPANISH_CHILE]:"स्पेनिश (चिली)",[i.SPANISH_COLOMBIA]:"स्पेनिश (कोलंबिया)",[i.SPANISH_COSTA_RICA]:"स्पेनिश (कोस्टा रिका)",[i.SPANISH_DOMINICAN_REPUBLIC]:"स्पेनिश (डोमिनिकन गणराज्य)",[i.SPANISH_ECUADOR]:"स्पेनिश (एक्वाडोर)",[i.SPANISH_SPAIN]:"स्पेनिश (स्पेन)",[i.SPANISH_GUATEMALA]:"स्पेनिश (ग्वाटेमाला)",[i.SPANISH_HONDURAS]:"स्पेनिश (होंडूरास)",[i.SPANISH_MEXICO]:"स्पेनिश (मैक्सिको)",[i.SPANISH_NICARAGUA]:"स्पेनिश (निकारागुआ)",[i.SPANISH_PANAMA]:"स्पेनिश (पनामा)",[i.SPANISH_PERU]:"स्पेनिश (पेरू)",[i.SPANISH_PUERTO_RICO]:"स्पेनिश (पुएर्टो रिको)",[i.SPANISH_PARAGUAY]:"स्पेनिश (पराग्वे)",[i.SPANISH_EL_SALVADOR]:"स्पेनिश (एल साल्वाडोर)",[i.SPANISH_URUGUAY]:"स्पेनिश (उरुग्वे)",[i.SPANISH_VENEZUELA]:"स्पेनिश (वेनेज़ुएला)",[i.ESTONIAN_ESTONIA]:"एस्टोनियाई (एस्टोनिया)",[i.BASQUE_SPAIN]:"बास्क (स्पेन)",[i.FARSI_IRAN]:"फ़ारसी (ईरान)",[i.FINNISH_FINLAND]:"फिनिश (फिनलैंड)",[i.FAROESE_FAROE_ISLANDS]:"फ़ेरोश (फ़ेरो द्वीप)",[i.FRENCH_BELGIUM]:"फ़्रेंच (बेल्जियम)",[i.FRENCH_CANADA]:"फ़्रेंच (कनाडा)",[i.FRENCH_SWITZERLAND]:"फ़्रेंच (स्विट्जरलैंड)",[i.FRENCH_FRANCE]:"फ़्रेंच (फ्रांस)",[i.FRENCH_LUXEMBOURG]:"फ़्रेंच (लक्समबर्ग)",[i.FRENCH_PRINCIPALITY_OF_MONACO]:"फ़्रेंच (मोनाको प्रिंसिपलिटी)",[i.GALICIAN_SPAIN]:"गैलिशियन (स्पेन)",[i.GUJARATI_INDIA]:"गुजराती (भारत)",[i.HEBREW_ISRAEL]:"हिब्रू (इज़राइल)",[i.HINDI_INDIA]:"हिंदी (भारत)",[i.CROATIAN_BOSNIA_AND_HERZEGOVINA]:"क्रोएशियाई (बोस्निया और हर्जेगोविना)",[i.CROATIAN_CROATIA]:"क्रोएशियाई (क्रोएशिया)",[i.HUNGARIAN_HUNGARY]:"वेनगरियाई (वेनगेरिया)",[i.ARMENIAN_ARMENIA]:"आर्मेनियाई (आर्मेनिया)",[i.INDONESIAN_INDONESIA]:"इंडोनेशियाई (इंडोनेशिया)",[i.ICELANDIC_ICELAND]:"आइसलैंडिक (आइसलैंड)",[i.ITALIAN_SWITZERLAND]:"इटालियन (स्विट्जरलैंड)",[i.ITALIAN_ITALY]:"इटालियन (इटली)",[i.JAPANESE_JAPAN]:"जापानी (जापान)",[i.GEORGIAN_GEORGIA]:"जॉर्जियाई (जॉर्जिया)",[i.KAZAKH_KAZAKHSTAN]:"कज़ाख (कज़ाकिस्तान)",[i.KANNADA_INDIA]:"कन्नड़ (भारत)",[i.KOREAN_KOREA]:"कोरियाई (कोरिया)",[i.KONKANI_INDIA]:"कोंकणी (भारत)",[i.KYRGYZ_KYRGYZSTAN]:"किरगिज़ (किरगिज़स्तान)",[i.LITHUANIAN_LITHUANIA]:"लिथुआनियाई (लिथुआनिया)",[i.LATVIAN_LATVIA]:"लातवियाई (लातविया)",[i.MAORI_NEW_ZEALAND]:"माओरी (न्यूज़ीलैंड)",[i.FYRO_MACEDONIAN_MACEDONIA]:"मैसेडोनियाई (पूर्व यूगोस्लाविया, मैसेडोनिया)",[i.MONGOLIAN_MONGOLIA]:"मंगोलियाई (मंगोलिया)",[i.MARATHI_INDIA]:"मराठी (भारत)",[i.MALAY_BRUNEI_DARUSSALAM]:"मलय (ब्रुनेई दारूस्सलाम)",[i.MALAY_MALAYSIA]:"मलय (मलेशिया)",[i.MALTESE_MALTA]:"माल्टीज़ (माल्टा)",[i.NORWEGIAN_BOKMAL_NORWAY]:"नॉर्वेजियन (बोकमाल, नॉर्वे)",[i.DUTCH_BELGIUM]:"डच (बेल्जियम)",[i.DUTCH_NETHERLANDS]:"डच (नीदरलैंड्स)",[i.NORWEGIAN_NYNORSK_NORWAY]:"नॉर्वेजियन (न्योनोर्स्क, नॉर्वे)",[i.NORTHERN_SOTHO_SOUTH_AFRICA]:"नॉर्दर्न सोटो (दक्षिण अफ्रीका)",[i.PUNJABI_INDIA]:"पंजाबी (भारत)",[i.POLISH_POLAND]:"पोलिश (पोलैंड)",[i.PASHTO_AFGHANISTAN]:"पश्तो (अफगानिस्तान)",[i.PORTUGUESE_BRAZIL]:"पुर्तगाली (ब्राजील)",[i.PORTUGUESE_PORTUGAL]:"पुर्तगाली (पुर्तगाल)",[i.QUECHUA_BOLIVIA]:"क्वेचुआ (बोलिविया)",[i.QUECHUA_ECUADOR]:"क्वेचुआ (इक्वाडोर)",[i.QUECHUA_PERU]:"क्वेचुआ (पेरू)",[i.ROMANIAN_ROMANIA]:"रोमानियाई (रूमानिया)",[i.RUSSIAN_RUSSIA]:"रूसी (रूस)",[i.SANSKRIT_INDIA]:"संस्कृत (भारत)",[i.SAMI_NORTHERN_FINLAND]:"सामी (उत्तर, फिनलैंड)",[i.SAMI_NORTHERN_NORWAY]:"सामी (उत्तर, नॉर्वे)",[i.SAMI_NORTHERN_SWEDEN]:"सामी (उत्तर, स्वीडन)",[i.SLOVAK_SLOVAKIA]:"स्लोवाक (स्लोवाकिया)",[i.SLOVENIAN_SLOVENIA]:"स्लोवेनियाई (स्लोवेनिया)",[i.ALBANIAN_ALBANIA]:"अल्बानियाई (अल्बानिया)",[i.SERBIAN_LATIN_BOSNIA_AND_HERZEGOVINA]:"सेर्बियाई (लैटिन, बोस्निया और हर्जेगोविना)",[i.SERBIAN_LATIN_SERBIA_AND_MONTENEGRO]:"सेर्बियाई (लैटिन, सेर्बिया और मोंटेनेग्रो)",[i.SWAHILI_KENYA]:"स्वाहिली (केन्या)",[i.SYRIAC_SYRIA]:"सीरियाई (सीरिया)",[i.TAMIL_INDIA]:"तमिल (भारत)",[i.TELUGU_INDIA]:"तेलुगू (भारत)",[i.THAI_THAILAND]:"थाई (थाईलैंड)",[i.TAGALOG_PHILIPPINES]:"तागालोग (फ़िलीपींस)",[i.TSWANA_SOUTH_AFRICA]:"त्सवाना (दक्षिण अफ्रीका)",[i.TURKISH_TURKEY]:"तुर्की (तुर्की)",[i.TATAR_RUSSIA]:"तातार (रूस)",[i.TSOGA]:"त्सोगा",[i.UKRAINIAN_UKRAINE]:"यूक्रेनी (यूक्रेन)",[i.URDU_ISLAMIC_REPUBLIC_OF_PAKISTAN]:"उर्दू (इस्लामी गणराज्य पाकिस्तान)",[i.UZBEK_LATIN_UZBEKISTAN]:"उज़्बेक (लैटिन, उज़्बेकिस्तान)",[i.VIETNAMESE_VIET_NAM]:"वियतनामी (वियतनाम)",[i.XHOSA_SOUTH_AFRICA]:"कोसा (दक्षिण अफ्रीका)",[i.CHINESE_HONG_KONG]:"चीनी (हांगकांग)",[i.CHINESE_MACAU]:"चीनी (मकाऊ)",[i.CHINESE_SINGAPORE]:"चीनी (सिंगापुर)",[i.ZULU_SOUTH_AFRICA]:"ज़ुलू (दक्षिण अफ्रीका)"},mp={[i.ENGLISH]:"Inglese",[i.FRENCH]:"Francese",[i.SPANISH]:"Spagnolo",[i.PORTUGUESE]:"Portoghese",[i.GERMAN]:"Tedesco",[i.AFRIKAANS]:"Afrikaans",[i.ARABIC]:"Arabo",[i.AZERI_LATIN]:"Azerbaigiano Latino",[i.BELARUSIAN]:"Bielorusso",[i.BULGARIAN]:"Bulgaro",[i.BOSNIAN]:"Bosniaco",[i.CATALAN]:"Catalano",[i.CZECH]:"Ceco",[i.WELSH]:"Gallese",[i.DANISH]:"Danese",[i.DIVEHI]:"Divehi",[i.GREEK]:"Greco",[i.ESPERANTO]:"Esperanto",[i.ESTONIAN]:"Estone",[i.BASQUE]:"Basco",[i.FARSI]:"Farsi",[i.FINNISH]:"Finlandese",[i.FAROESE]:"Faroese",[i.GALICIAN]:"Galiziano",[i.GUJARATI]:"Gujarati",[i.HEBREW]:"Ebraico",[i.HINDI]:"Hindi",[i.CROATIAN]:"Croato",[i.HUNGARIAN]:"Ungherese",[i.ARMENIAN]:"Armeno",[i.INDONESIAN]:"Indonesiano",[i.ICELANDIC]:"Islandese",[i.ITALIAN]:"Italiano",[i.JAPANESE]:"Giapponese",[i.GEORGIAN]:"Georgiano",[i.KAZAKH]:"Kazako",[i.KANNADA]:"Kannada",[i.KOREAN]:"Coreano",[i.KONKANI]:"Konkani",[i.KYRGYZ]:"Kirghiso",[i.LITHUANIAN]:"Lituano",[i.LATVIAN]:"Lettone",[i.MAORI]:"Maori",[i.FYRO_MACEDONIAN]:"Macedone FYRO",[i.MONGOLIAN]:"Mongolo",[i.MARATHI]:"Marathi",[i.MALAY]:"Malese",[i.MALTESE]:"Maltese",[i.NORWEGIAN_BOKMAL]:"Norvegese Bokmål",[i.DUTCH]:"Olandese",[i.NORTHERN_SOTHO]:"Sotho del Nord",[i.PUNJABI]:"Punjabi",[i.POLISH]:"Polacco",[i.PASHTO]:"Pashto",[i.QUECHUA]:"Quechua",[i.ROMANIAN]:"Rumeno",[i.RUSSIAN]:"Russo",[i.SANSKRIT]:"Sanscrito",[i.SAMI_NORTHERN]:"Sami del Nord",[i.SLOVAK]:"Slovacco",[i.SLOVENIAN]:"Sloveno",[i.ALBANIAN]:"Albanese",[i.SERBIAN_LATIN]:"Serbo Latino",[i.SWEDISH]:"Svedese",[i.SWEDISH_FINLAND]:"Svedese (Finlandia)",[i.SWEDISH_SWEDEN]:"Svedese (Svezia)",[i.SWAHILI]:"Swahili",[i.SYRIAC]:"Siriaco",[i.TAMIL]:"Tamil",[i.TELUGU]:"Telugu",[i.THAI]:"Thai",[i.TAGALOG]:"Tagalog",[i.TSWANA]:"Tswana",[i.TURKISH]:"Turco",[i.TATAR]:"Tataro",[i.UKRAINIAN]:"Ucraino",[i.URDU]:"Urdu",[i.UZBEK_LATIN]:"Uzbeco Latino",[i.VIETNAMESE]:"Vietnamita",[i.XHOSA]:"Xhosa",[i.CHINESE]:"Cinese",[i.CHINESE_SIMPLIFIED]:"Cinese Semplificato",[i.CHINESE_SIMPLIFIED_CHINA]:"Cinese Semplificato (Cina)",[i.CHINESE_TRADITIONAL]:"Cinese Tradizionale",[i.ZULU]:"Zulu",[i.AFRIKAANS_SOUTH_AFRICA]:"Afrikaans (Sudafrica)",[i.ARABIC_UNITED_ARAB_EMIRATES]:"Arabo (Emirati Arabi Uniti)",[i.ARABIC_BAHRAIN]:"Arabo (Bahrein)",[i.ARABIC_ALGERIA]:"Arabo (Algeria)",[i.ARABIC_EGYPT]:"Arabo (Egitto)",[i.ARABIC_IRAQ]:"Arabo (Iraq)",[i.ARABIC_JORDAN]:"Arabo (Giordania)",[i.ARABIC_KUWAIT]:"Arabo (Kuwait)",[i.ARABIC_LEBANON]:"Arabo (Libano)",[i.ARABIC_LIBYA]:"Arabo (Libia)",[i.ARABIC_MOROCCO]:"Arabo (Marocco)",[i.ARABIC_OMAN]:"Arabo (Oman)",[i.ARABIC_QATAR]:"Arabo (Qatar)",[i.ARABIC_SAUDI_ARABIA]:"Arabo (Arabia Saudita)",[i.ARABIC_SYRIA]:"Arabo (Siria)",[i.ARABIC_TUNISIA]:"Arabo (Tunisia)",[i.ARABIC_YEMEN]:"Arabo (Yemen)",[i.AZERI_LATIN_AZERBAIJAN]:"Azerbaigiano Latino (Azerbaigian)",[i.BELARUSIAN_BELARUS]:"Bielorusso (Bielorussia)",[i.BULGARIAN_BULGARIA]:"Bulgaro (Bulgaria)",[i.BOSNIAN_BOSNIA_AND_HERZEGOVINA]:"Bosniaco (Bosnia ed Erzegovina)",[i.CATALAN_SPAIN]:"Catalano (Spagna)",[i.CZECH_CZECH_REPUBLIC]:"Ceco (Repubblica Ceca)",[i.WELSH_UNITED_KINGDOM]:"Gallese (Regno Unito)",[i.DANISH_DENMARK]:"Danese (Danimarca)",[i.GERMAN_AUSTRIA]:"Tedesco (Austria)",[i.GERMAN_SWITZERLAND]:"Tedesco (Svizzera)",[i.GERMAN_GERMANY]:"Tedesco (Germania)",[i.GERMAN_LIECHTENSTEIN]:"Tedesco (Liechtenstein)",[i.GERMAN_LUXEMBOURG]:"Tedesco (Lussemburgo)",[i.DIVEHI_MALDIVES]:"Divehi (Maldive)",[i.GREEK_GREECE]:"Greco (Grecia)",[i.ENGLISH_AUSTRALIA]:"Inglese (Australia)",[i.ENGLISH_BELIZE]:"Inglese (Belize)",[i.ENGLISH_CANADA]:"Inglese (Canada)",[i.ENGLISH_CARIBBEAN]:"Inglese (Caraibi)",[i.ENGLISH_UNITED_KINGDOM]:"Inglese (Regno Unito)",[i.ENGLISH_IRELAND]:"Inglese (Irlanda)",[i.ENGLISH_JAMAICA]:"Inglese (Giamaica)",[i.ENGLISH_NEW_ZEALAND]:"Inglese (Nuova Zelanda)",[i.ENGLISH_PHILIPPINES]:"Inglese (Filippine)",[i.ENGLISH_TRINIDAD_AND_TOBAGO]:"Inglese (Trinidad e Tobago)",[i.ENGLISH_UNITED_STATES]:"Inglese (Stati Uniti)",[i.ENGLISH_SOUTH_AFRICA]:"Inglese (Sudafrica)",[i.ENGLISH_ZIMBABWE]:"Inglese (Zimbabwe)",[i.SPANISH_ARGENTINA]:"Spagnolo (Argentina)",[i.SPANISH_BOLIVIA]:"Spagnolo (Bolivia)",[i.SPANISH_CHILE]:"Spagnolo (Cile)",[i.SPANISH_COLOMBIA]:"Spagnolo (Colombia)",[i.SPANISH_COSTA_RICA]:"Spagnolo (Costa Rica)",[i.SPANISH_DOMINICAN_REPUBLIC]:"Spagnolo (Repubblica Dominicana)",[i.SPANISH_ECUADOR]:"Spagnolo (Ecuador)",[i.SPANISH_SPAIN]:"Spagnolo (Spagna)",[i.SPANISH_GUATEMALA]:"Spagnolo (Guatemala)",[i.SPANISH_HONDURAS]:"Spagnolo (Honduras)",[i.SPANISH_MEXICO]:"Spagnolo (Messico)",[i.SPANISH_NICARAGUA]:"Spagnolo (Nicaragua)",[i.SPANISH_PANAMA]:"Spagnolo (Panama)",[i.SPANISH_PERU]:"Spagnolo (Perù)",[i.SPANISH_PUERTO_RICO]:"Spagnolo (Porto Rico)",[i.SPANISH_PARAGUAY]:"Spagnolo (Paraguay)",[i.SPANISH_EL_SALVADOR]:"Spagnolo (El Salvador)",[i.SPANISH_URUGUAY]:"Spagnolo (Uruguay)",[i.SPANISH_VENEZUELA]:"Spagnolo (Venezuela)",[i.ESTONIAN_ESTONIA]:"Estone (Estonia)",[i.BASQUE_SPAIN]:"Basco (Spagna)",[i.FARSI_IRAN]:"Farsi (Iran)",[i.FINNISH_FINLAND]:"Finlandese (Finlandia)",[i.FAROESE_FAROE_ISLANDS]:"Faroese (Isole Faroe)",[i.FRENCH_BELGIUM]:"Francese (Belgio)",[i.FRENCH_CANADA]:"Francese (Canada)",[i.FRENCH_SWITZERLAND]:"Francese (Svizzera)",[i.FRENCH_FRANCE]:"Francese (Francia)",[i.FRENCH_LUXEMBOURG]:"Francese (Lussemburgo)",[i.FRENCH_PRINCIPALITY_OF_MONACO]:"Francese (Principato di Monaco)",[i.GALICIAN_SPAIN]:"Galiziano (Spagna)",[i.GUJARATI_INDIA]:"Gujarati (India)",[i.HEBREW_ISRAEL]:"Ebraico (Israele)",[i.HINDI_INDIA]:"Hindi (India)",[i.CROATIAN_BOSNIA_AND_HERZEGOVINA]:"Croato (Bosnia ed Erzegovina)",[i.CROATIAN_CROATIA]:"Croato (Croazia)",[i.HUNGARIAN_HUNGARY]:"Ungherese (Ungheria)",[i.ARMENIAN_ARMENIA]:"Armeno (Armenia)",[i.INDONESIAN_INDONESIA]:"Indonesiano (Indonesia)",[i.ICELANDIC_ICELAND]:"Islandese (Islanda)",[i.ITALIAN_SWITZERLAND]:"Italiano (Svizzera)",[i.ITALIAN_ITALY]:"Italiano (Italia)",[i.JAPANESE_JAPAN]:"Giapponese (Giappone)",[i.GEORGIAN_GEORGIA]:"Georgiano (Georgia)",[i.KAZAKH_KAZAKHSTAN]:"Kazako (Kazakistan)",[i.KANNADA_INDIA]:"Kannada (India)",[i.KOREAN_KOREA]:"Coreano (Corea)",[i.KONKANI_INDIA]:"Konkani (India)",[i.KYRGYZ_KYRGYZSTAN]:"Kirghiso (Kirghizistan)",[i.LITHUANIAN_LITHUANIA]:"Lituano (Lituania)",[i.LATVIAN_LATVIA]:"Lettone (Lettonia)",[i.MAORI_NEW_ZEALAND]:"Maori (Nuova Zelanda)",[i.FYRO_MACEDONIAN_MACEDONIA]:"Macedone FYRO (Macedonia)",[i.MONGOLIAN_MONGOLIA]:"Mongolo (Mongolia)",[i.MARATHI_INDIA]:"Marathi (India)",[i.MALAY_BRUNEI_DARUSSALAM]:"Malese (Brunei Darussalam)",[i.MALAY_MALAYSIA]:"Malese (Malesia)",[i.MALTESE_MALTA]:"Maltese (Malta)",[i.NORWEGIAN_BOKMAL_NORWAY]:"Norvegese Bokmål (Norvegia)",[i.DUTCH_BELGIUM]:"Olandese (Belgio)",[i.DUTCH_NETHERLANDS]:"Olandese (Paesi Bassi)",[i.NORWEGIAN_NYNORSK_NORWAY]:"Norvegese Nynorsk (Norvegia)",[i.NORTHERN_SOTHO_SOUTH_AFRICA]:"Sotho del Nord (Sudafrica)",[i.PUNJABI_INDIA]:"Punjabi (India)",[i.POLISH_POLAND]:"Polacco (Polonia)",[i.PASHTO_AFGHANISTAN]:"Pashto (Afghanistan)",[i.PORTUGUESE_BRAZIL]:"Portoghese (Brasile)",[i.PORTUGUESE_PORTUGAL]:"Portoghese (Portogallo)",[i.QUECHUA_BOLIVIA]:"Quechua (Bolivia)",[i.QUECHUA_ECUADOR]:"Quechua (Ecuador)",[i.QUECHUA_PERU]:"Quechua (Perù)",[i.ROMANIAN_ROMANIA]:"Rumeno (Romania)",[i.RUSSIAN_RUSSIA]:"Russo (Russia)",[i.SANSKRIT_INDIA]:"Sanscrito (India)",[i.SAMI_NORTHERN_FINLAND]:"Sami del Nord (Finlandia)",[i.SAMI_NORTHERN_NORWAY]:"Sami del Nord (Norvegia)",[i.SAMI_NORTHERN_SWEDEN]:"Sami del Nord (Svezia)",[i.SLOVAK_SLOVAKIA]:"Slovacco (Slovacchia)",[i.SLOVENIAN_SLOVENIA]:"Sloveno (Slovenia)",[i.ALBANIAN_ALBANIA]:"Albanese (Albania)",[i.SERBIAN_LATIN_BOSNIA_AND_HERZEGOVINA]:"Serbo Latino (Bosnia ed Erzegovina)",[i.SERBIAN_LATIN_SERBIA_AND_MONTENEGRO]:"Serbo Latino (Serbia e Montenegro)",[i.SWAHILI_KENYA]:"Swahili (Kenya)",[i.SYRIAC_SYRIA]:"Siriaco (Siria)",[i.TAMIL_INDIA]:"Tamil (India)",[i.TELUGU_INDIA]:"Telugu (India)",[i.THAI_THAILAND]:"Thai (Thailandia)",[i.TAGALOG_PHILIPPINES]:"Tagalog (Filippine)",[i.TSWANA_SOUTH_AFRICA]:"Tswana (Sudafrica)",[i.TURKISH_TURKEY]:"Turco (Turchia)",[i.TATAR_RUSSIA]:"Tataro (Russia)",[i.TSOGA]:"Tsoga",[i.UKRAINIAN_UKRAINE]:"Ucraino (Ucraina)",[i.URDU_ISLAMIC_REPUBLIC_OF_PAKISTAN]:"Urdu (Repubblica Islamica del Pakistan)",[i.UZBEK_LATIN_UZBEKISTAN]:"Uzbeco Latino (Uzbekistan)",[i.VIETNAMESE_VIET_NAM]:"Vietnamita (Vietnam)",[i.XHOSA_SOUTH_AFRICA]:"Xhosa (Sudafrica)",[i.CHINESE_HONG_KONG]:"Cinese (Hong Kong)",[i.CHINESE_MACAU]:"Cinese (Macao)",[i.CHINESE_SINGAPORE]:"Cinese (Singapore)",[i.ZULU_SOUTH_AFRICA]:"Zulu (Sudafrica)"},Wy={[i.ENGLISH]:"英語",[i.FRENCH]:"フランス語",[i.SPANISH]:"スペイン語",[i.PORTUGUESE]:"ポルトガル語",[i.GERMAN]:"ドイツ語",[i.AFRIKAANS]:"アフリカーンス語",[i.ARABIC]:"アラビア語",[i.AZERI_LATIN]:"アゼルバイジャン語(ラテン文字)",[i.BELARUSIAN]:"ベラルーシ語",[i.BULGARIAN]:"ブルガリア語",[i.BOSNIAN]:"ボスニア語",[i.CATALAN]:"カタルーニャ語",[i.CZECH]:"チェコ語",[i.WELSH]:"ウェールズ語",[i.DANISH]:"デンマーク語",[i.DIVEHI]:"ディヴェヒ語",[i.GREEK]:"ギリシャ語",[i.ESPERANTO]:"エスペラント語",[i.ESTONIAN]:"エストニア語",[i.BASQUE]:"バスク語",[i.FARSI]:"ペルシア語",[i.FINNISH]:"フィンランド語",[i.FAROESE]:"フェロー語",[i.GALICIAN]:"ガリシア語",[i.GUJARATI]:"グジャラート語",[i.HEBREW]:"ヘブライ語",[i.HINDI]:"ヒンディー語",[i.CROATIAN]:"クロアチア語",[i.HUNGARIAN]:"ハンガリー語",[i.ARMENIAN]:"アルメニア語",[i.INDONESIAN]:"インドネシア語",[i.ICELANDIC]:"アイスランド語",[i.ITALIAN]:"イタリア語",[i.JAPANESE]:"日本語",[i.GEORGIAN]:"ジョージア語",[i.KAZAKH]:"カザフ語",[i.KANNADA]:"カンナダ語",[i.KOREAN]:"韓国語",[i.KONKANI]:"コンカニ語",[i.KYRGYZ]:"キルギス語",[i.LITHUANIAN]:"リトアニア語",[i.LATVIAN]:"ラトビア語",[i.MAORI]:"マオリ語",[i.FYRO_MACEDONIAN]:"マケドニア語(旧ユーゴスラビア)",[i.MONGOLIAN]:"モンゴル語",[i.MARATHI]:"マラーティー語",[i.MALAY]:"マレー語",[i.MALTESE]:"マルタ語",[i.NORWEGIAN_BOKMAL]:"ノルウェー語(ブークモール)",[i.DUTCH]:"オランダ語",[i.NORTHERN_SOTHO]:"ノーザンソト語",[i.PUNJABI]:"パンジャブ語",[i.POLISH]:"ポーランド語",[i.PASHTO]:"パシュトー語",[i.QUECHUA]:"ケチュア語",[i.ROMANIAN]:"ルーマニア語",[i.RUSSIAN]:"ロシア語",[i.SANSKRIT]:"サンスクリット語",[i.SAMI_NORTHERN]:"サーミ語(北部)",[i.SLOVAK]:"スロバキア語",[i.SLOVENIAN]:"スロベニア語",[i.ALBANIAN]:"アルバニア語",[i.SERBIAN_LATIN]:"セルビア語(ラテン文字)",[i.SWEDISH]:"スウェーデン語",[i.SWEDISH_FINLAND]:"スウェーデン語(フィンランド)",[i.SWEDISH_SWEDEN]:"スウェーデン語(スウェーデン)",[i.SWAHILI]:"スワヒリ語",[i.SYRIAC]:"シリア語",[i.TAMIL]:"タミル語",[i.TELUGU]:"テルグ語",[i.THAI]:"タイ語",[i.TAGALOG]:"タガログ語",[i.TSWANA]:"ツワナ語",[i.TURKISH]:"トルコ語",[i.TATAR]:"タタール語",[i.UKRAINIAN]:"ウクライナ語",[i.URDU]:"ウルドゥー語",[i.UZBEK_LATIN]:"ウズベク語(ラテン文字)",[i.VIETNAMESE]:"ベトナム語",[i.XHOSA]:"コーサ語",[i.CHINESE]:"中国語",[i.CHINESE_SIMPLIFIED]:"中国語(簡体字)",[i.CHINESE_SIMPLIFIED_CHINA]:"中国語(簡体字、中国)",[i.CHINESE_TRADITIONAL]:"中国語(繁体字)",[i.ZULU]:"ズールー語",[i.AFRIKAANS_SOUTH_AFRICA]:"アフリカーンス語(南アフリカ)",[i.ARABIC_UNITED_ARAB_EMIRATES]:"アラビア語(アラブ首長国連邦)",[i.ARABIC_BAHRAIN]:"アラビア語(バーレーン)",[i.ARABIC_ALGERIA]:"アラビア語(アルジェリア)",[i.ARABIC_EGYPT]:"アラビア語(エジプト)",[i.ARABIC_IRAQ]:"アラビア語(イラク)",[i.ARABIC_JORDAN]:"アラビア語(ヨルダン)",[i.ARABIC_KUWAIT]:"アラビア語(クウェート)",[i.ARABIC_LEBANON]:"アラビア語(レバノン)",[i.ARABIC_LIBYA]:"アラビア語(リビア)",[i.ARABIC_MOROCCO]:"アラビア語(モロッコ)",[i.ARABIC_OMAN]:"アラビア語(オマーン)",[i.ARABIC_QATAR]:"アラビア語(カタール)",[i.ARABIC_SAUDI_ARABIA]:"アラビア語(サウジアラビア)",[i.ARABIC_SYRIA]:"アラビア語(シリア)",[i.ARABIC_TUNISIA]:"アラビア語(チュニジア)",[i.ARABIC_YEMEN]:"アラビア語(イエメン)",[i.AZERI_LATIN_AZERBAIJAN]:"アゼルバイジャン語(ラテン文字、アゼルバイジャン)",[i.BELARUSIAN_BELARUS]:"ベラルーシ語(ベラルーシ)",[i.BULGARIAN_BULGARIA]:"ブルガリア語(ブルガリア)",[i.BOSNIAN_BOSNIA_AND_HERZEGOVINA]:"ボスニア語(ボスニア・ヘルツェゴビナ)",[i.CATALAN_SPAIN]:"カタルーニャ語(スペイン)",[i.CZECH_CZECH_REPUBLIC]:"チェコ語(チェコ共和国)",[i.WELSH_UNITED_KINGDOM]:"ウェールズ語(イギリス)",[i.DANISH_DENMARK]:"デンマーク語(デンマーク)",[i.GERMAN_AUSTRIA]:"ドイツ語(オーストリア)",[i.GERMAN_SWITZERLAND]:"ドイツ語(スイス)",[i.GERMAN_GERMANY]:"ドイツ語(ドイツ)",[i.GERMAN_LIECHTENSTEIN]:"ドイツ語(リヒテンシュタイン)",[i.GERMAN_LUXEMBOURG]:"ドイツ語(ルクセンブルク)",[i.DIVEHI_MALDIVES]:"ディヴェヒ語(モルディブ)",[i.GREEK_GREECE]:"ギリシャ語(ギリシャ)",[i.ENGLISH_AUSTRALIA]:"英語(オーストラリア)",[i.ENGLISH_BELIZE]:"英語(ベリーズ)",[i.ENGLISH_CANADA]:"英語(カナダ)",[i.ENGLISH_CARIBBEAN]:"英語(カリブ)",[i.ENGLISH_UNITED_KINGDOM]:"英語(イギリス)",[i.ENGLISH_IRELAND]:"英語(アイルランド)",[i.ENGLISH_JAMAICA]:"英語(ジャマイカ)",[i.ENGLISH_NEW_ZEALAND]:"英語(ニュージーランド)",[i.ENGLISH_PHILIPPINES]:"英語(フィリピン)",[i.ENGLISH_TRINIDAD_AND_TOBAGO]:"英語(トリニダード・トバゴ)",[i.ENGLISH_UNITED_STATES]:"英語(アメリカ合衆国)",[i.ENGLISH_SOUTH_AFRICA]:"英語(南アフリカ)",[i.ENGLISH_ZIMBABWE]:"英語(ジンバブエ)",[i.SPANISH_ARGENTINA]:"スペイン語(アルゼンチン)",[i.SPANISH_BOLIVIA]:"スペイン語(ボリビア)",[i.SPANISH_CHILE]:"スペイン語(チリ)",[i.SPANISH_COLOMBIA]:"スペイン語(コロンビア)",[i.SPANISH_COSTA_RICA]:"スペイン語(コスタリカ)",[i.SPANISH_DOMINICAN_REPUBLIC]:"スペイン語(ドミニカ共和国)",[i.SPANISH_ECUADOR]:"スペイン語(エクアドル)",[i.SPANISH_SPAIN]:"スペイン語(スペイン)",[i.SPANISH_GUATEMALA]:"スペイン語(グアテマラ)",[i.SPANISH_HONDURAS]:"スペイン語(ホンジュラス)",[i.SPANISH_MEXICO]:"スペイン語(メキシコ)",[i.SPANISH_NICARAGUA]:"スペイン語(ニカラグア)",[i.SPANISH_PANAMA]:"スペイン語(パナマ)",[i.SPANISH_PERU]:"スペイン語(ペルー)",[i.SPANISH_PUERTO_RICO]:"スペイン語(プエルトリコ)",[i.SPANISH_PARAGUAY]:"スペイン語(パラグアイ)",[i.SPANISH_EL_SALVADOR]:"スペイン語(エルサルバドル)",[i.SPANISH_URUGUAY]:"スペイン語(ウルグアイ)",[i.SPANISH_VENEZUELA]:"スペイン語(ベネズエラ)",[i.ESTONIAN_ESTONIA]:"エストニア語(エストニア)",[i.BASQUE_SPAIN]:"バスク語(スペイン)",[i.FARSI_IRAN]:"ペルシア語(イラン)",[i.FINNISH_FINLAND]:"フィンランド語(フィンランド)",[i.FAROESE_FAROE_ISLANDS]:"フェロー語(フェロー諸島)",[i.FRENCH_BELGIUM]:"フランス語(ベルギー)",[i.FRENCH_CANADA]:"フランス語(カナダ)",[i.FRENCH_SWITZERLAND]:"フランス語(スイス)",[i.FRENCH_FRANCE]:"フランス語(フランス)",[i.FRENCH_LUXEMBOURG]:"フランス語(ルクセンブルク)",[i.FRENCH_PRINCIPALITY_OF_MONACO]:"フランス語(モナコ公国)",[i.GALICIAN_SPAIN]:"ガリシア語(スペイン)",[i.GUJARATI_INDIA]:"グジャラート語(インド)",[i.HEBREW_ISRAEL]:"ヘブライ語(イスラエル)",[i.HINDI_INDIA]:"ヒンディー語(インド)",[i.CROATIAN_BOSNIA_AND_HERZEGOVINA]:"クロアチア語(ボスニア・ヘルツェゴビナ)",[i.CROATIAN_CROATIA]:"クロアチア語(クロアチア)",[i.HUNGARIAN_HUNGARY]:"ハンガリー語(ハンガリー)",[i.ARMENIAN_ARMENIA]:"アルメニア語(アルメニア)",[i.INDONESIAN_INDONESIA]:"インドネシア語(インドネシア)",[i.ICELANDIC_ICELAND]:"アイスランド語(アイスランド)",[i.ITALIAN_SWITZERLAND]:"イタリア語(スイス)",[i.ITALIAN_ITALY]:"イタリア語(イタリア)",[i.JAPANESE_JAPAN]:"日本語(日本)",[i.GEORGIAN_GEORGIA]:"ジョージア語(ジョージア)",[i.KAZAKH_KAZAKHSTAN]:"カザフ語(カザフスタン)",[i.KANNADA_INDIA]:"カンナダ語(インド)",[i.KOREAN_KOREA]:"韓国語(韓国)",[i.KONKANI_INDIA]:"コンカニ語(インド)",[i.KYRGYZ_KYRGYZSTAN]:"キルギス語(キルギス)",[i.LITHUANIAN_LITHUANIA]:"リトアニア語(リトアニア)",[i.LATVIAN_LATVIA]:"ラトビア語(ラトビア)",[i.MAORI_NEW_ZEALAND]:"マオリ語(ニュージーランド)",[i.FYRO_MACEDONIAN_MACEDONIA]:"マケドニア語(旧ユーゴスラビア、マケドニア)",[i.MONGOLIAN_MONGOLIA]:"モンゴル語(モンゴル)",[i.MARATHI_INDIA]:"マラーティー語(インド)",[i.MALAY_BRUNEI_DARUSSALAM]:"マレー語(ブルネイ・ダルサラーム)",[i.MALAY_MALAYSIA]:"マレー語(マレーシア)",[i.MALTESE_MALTA]:"マルタ語(マルタ)",[i.NORWEGIAN_BOKMAL_NORWAY]:"ノルウェー語(ブークモール、ノルウェー)",[i.DUTCH_BELGIUM]:"オランダ語(ベルギー)",[i.DUTCH_NETHERLANDS]:"オランダ語(オランダ)",[i.NORWEGIAN_NYNORSK_NORWAY]:"ノルウェー語(ニーノルスク、ノルウェー)",[i.NORTHERN_SOTHO_SOUTH_AFRICA]:"ノーザンソト語(南アフリカ)",[i.PUNJABI_INDIA]:"パンジャブ語(インド)",[i.POLISH_POLAND]:"ポーランド語(ポーランド)",[i.PASHTO_AFGHANISTAN]:"パシュトー語(アフガニスタン)",[i.PORTUGUESE_BRAZIL]:"ポルトガル語(ブラジル)",[i.PORTUGUESE_PORTUGAL]:"ポルトガル語(ポルトガル)",[i.QUECHUA_BOLIVIA]:"ケチュア語(ボリビア)",[i.QUECHUA_ECUADOR]:"ケチュア語(エクアドル)",[i.QUECHUA_PERU]:"ケチュア語(ペルー)",[i.ROMANIAN_ROMANIA]:"ルーマニア語(ルーマニア)",[i.RUSSIAN_RUSSIA]:"ロシア語(ロシア)",[i.SANSKRIT_INDIA]:"サンスクリット語(インド)",[i.SAMI_NORTHERN_FINLAND]:"サーミ語(北部、フィンランド)",[i.SAMI_NORTHERN_NORWAY]:"サーミ語(北部、ノルウェー)",[i.SAMI_NORTHERN_SWEDEN]:"サーミ語(北部、スウェーデン)",[i.SLOVAK_SLOVAKIA]:"スロバキア語(スロバキア)",[i.SLOVENIAN_SLOVENIA]:"スロベニア語(スロベニア)",[i.ALBANIAN_ALBANIA]:"アルバニア語(アルバニア)",[i.SERBIAN_LATIN_BOSNIA_AND_HERZEGOVINA]:"セルビア語(ラテン文字、ボスニア・ヘルツェゴビナ)",[i.SERBIAN_LATIN_SERBIA_AND_MONTENEGRO]:"セルビア語(ラテン文字、セルビア・モンテネグロ)",[i.SWAHILI_KENYA]:"スワヒリ語(ケニア)",[i.SYRIAC_SYRIA]:"シリア語(シリア)",[i.TAMIL_INDIA]:"タミル語(インド)",[i.TELUGU_INDIA]:"テルグ語(インド)",[i.THAI_THAILAND]:"タイ語(タイ)",[i.TAGALOG_PHILIPPINES]:"タガログ語(フィリピン)",[i.TSWANA_SOUTH_AFRICA]:"ツワナ語(南アフリカ)",[i.TURKISH_TURKEY]:"トルコ語(トルコ)",[i.TATAR_RUSSIA]:"タタール語(ロシア)",[i.TSOGA]:"ツォガ語",[i.UKRAINIAN_UKRAINE]:"ウクライナ語(ウクライナ)",[i.URDU_ISLAMIC_REPUBLIC_OF_PAKISTAN]:"ウルドゥー語(パキスタン・イスラム共和国)",[i.UZBEK_LATIN_UZBEKISTAN]:"ウズベク語(ラテン文字、ウズベキスタン)",[i.VIETNAMESE_VIET_NAM]:"ベトナム語(ベトナム)",[i.XHOSA_SOUTH_AFRICA]:"コーサ語(南アフリカ)",[i.CHINESE_HONG_KONG]:"中国語(香港)",[i.CHINESE_MACAU]:"中国語(マカオ)",[i.CHINESE_SINGAPORE]:"中国語(シンガポール)",[i.ZULU_SOUTH_AFRICA]:"ズールー語(南アフリカ)"},qy={[i.ENGLISH]:"영어",[i.FRENCH]:"프랑스어",[i.SPANISH]:"스페인어",[i.PORTUGUESE]:"포르투갈어",[i.GERMAN]:"독일어",[i.AFRIKAANS]:"아프리칸스어",[i.ARABIC]:"아랍어",[i.AZERI_LATIN]:"아제르바이잔어 (라틴 문자)",[i.BELARUSIAN]:"벨라루스어",[i.BULGARIAN]:"불가리아어",[i.BOSNIAN]:"보스니아어",[i.CATALAN]:"카탈루냐어",[i.CZECH]:"체코어",[i.WELSH]:"웨일스어",[i.DANISH]:"덴마크어",[i.DIVEHI]:"디베히어",[i.GREEK]:"그리스어",[i.ESPERANTO]:"에스페란토어",[i.ESTONIAN]:"에스토니아어",[i.BASQUE]:"바스크어",[i.FARSI]:"페르시아어",[i.FINNISH]:"핀란드어",[i.FAROESE]:"페로어",[i.GALICIAN]:"갈리시아어",[i.GUJARATI]:"구자라티어",[i.HEBREW]:"히브리어",[i.HINDI]:"힌디어",[i.CROATIAN]:"크로아티아어",[i.HUNGARIAN]:"헝가리어",[i.ARMENIAN]:"아르메니아어",[i.INDONESIAN]:"인도네시아어",[i.ICELANDIC]:"아이슬란드어",[i.ITALIAN]:"이탈리아어",[i.JAPANESE]:"일본어",[i.GEORGIAN]:"조지아어",[i.KAZAKH]:"카자흐어",[i.KANNADA]:"칸나다어",[i.KOREAN]:"한국어",[i.KONKANI]:"콩카니어",[i.KYRGYZ]:"키르기스어",[i.LITHUANIAN]:"리투아니아어",[i.LATVIAN]:"라트비아어",[i.MAORI]:"마오리어",[i.FYRO_MACEDONIAN]:"마케도니아어 (구 유고슬라비아)",[i.MONGOLIAN]:"몽골어",[i.MARATHI]:"마라티어",[i.MALAY]:"말레이어",[i.MALTESE]:"몰타어",[i.NORWEGIAN_BOKMAL]:"노르웨이어 (보크말)",[i.DUTCH]:"네덜란드어",[i.NORTHERN_SOTHO]:"북 소토어",[i.PUNJABI]:"펀자브어",[i.POLISH]:"폴란드어",[i.PASHTO]:"파슈토어",[i.QUECHUA]:"케추아어",[i.ROMANIAN]:"루마니아어",[i.RUSSIAN]:"러시아어",[i.SANSKRIT]:"산스크리트어",[i.SAMI_NORTHERN]:"사미어 (북부)",[i.SLOVAK]:"슬로바키아어",[i.SLOVENIAN]:"슬로베니아어",[i.ALBANIAN]:"알바니아어",[i.SERBIAN_LATIN]:"세르비아어 (라틴 문자)",[i.SWEDISH]:"스웨덴어",[i.SWEDISH_FINLAND]:"스웨덴어 (핀란드)",[i.SWEDISH_SWEDEN]:"스웨덴어 (스웨덴)",[i.SWAHILI]:"스와힐리어",[i.SYRIAC]:"시리아어",[i.TAMIL]:"타밀어",[i.TELUGU]:"텔루구어",[i.THAI]:"태국어",[i.TAGALOG]:"타갈로그어",[i.TSWANA]:"츠와나어",[i.TURKISH]:"터키어",[i.TATAR]:"타타르어",[i.UKRAINIAN]:"우크라이나어",[i.URDU]:"우르두어",[i.UZBEK_LATIN]:"우즈벡어 (라틴 문자)",[i.VIETNAMESE]:"베트남어",[i.XHOSA]:"코사어",[i.CHINESE]:"중국어",[i.CHINESE_SIMPLIFIED]:"중국어 (간체)",[i.CHINESE_SIMPLIFIED_CHINA]:"중국어 (간체, 중국)",[i.CHINESE_TRADITIONAL]:"중국어 (번체)",[i.ZULU]:"줄루어",[i.AFRIKAANS_SOUTH_AFRICA]:"아프리칸스어 (남아프리카)",[i.ARABIC_UNITED_ARAB_EMIRATES]:"아랍어 (아랍에미리트)",[i.ARABIC_BAHRAIN]:"아랍어 (바레인)",[i.ARABIC_ALGERIA]:"아랍어 (알제리)",[i.ARABIC_EGYPT]:"아랍어 (이집트)",[i.ARABIC_IRAQ]:"아랍어 (이라크)",[i.ARABIC_JORDAN]:"아랍어 (요르단)",[i.ARABIC_KUWAIT]:"아랍어 (쿠웨이트)",[i.ARABIC_LEBANON]:"아랍어 (레바논)",[i.ARABIC_LIBYA]:"아랍어 (리비아)",[i.ARABIC_MOROCCO]:"아랍어 (모로코)",[i.ARABIC_OMAN]:"아랍어 (오만)",[i.ARABIC_QATAR]:"아랍어 (카타르)",[i.ARABIC_SAUDI_ARABIA]:"아랍어 (사우디아라비아)",[i.ARABIC_SYRIA]:"아랍어 (시리아)",[i.ARABIC_TUNISIA]:"아랍어 (튀니지)",[i.ARABIC_YEMEN]:"아랍어 (예멘)",[i.AZERI_LATIN_AZERBAIJAN]:"아제르바이잔어 (라틴 문자, 아제르바이잔)",[i.BELARUSIAN_BELARUS]:"벨라루스어 (벨라루스)",[i.BULGARIAN_BULGARIA]:"불가리아어 (불가리아)",[i.BOSNIAN_BOSNIA_AND_HERZEGOVINA]:"보스니아어 (보스니아 헤르체고비나)",[i.CATALAN_SPAIN]:"카탈루냐어 (스페인)",[i.CZECH_CZECH_REPUBLIC]:"체코어 (체코 공화국)",[i.WELSH_UNITED_KINGDOM]:"웨일스어 (영국)",[i.DANISH_DENMARK]:"덴마크어 (덴마크)",[i.GERMAN_AUSTRIA]:"독일어 (오스트리아)",[i.GERMAN_SWITZERLAND]:"독일어 (스위스)",[i.GERMAN_GERMANY]:"독일어 (독일)",[i.GERMAN_LIECHTENSTEIN]:"독일어 (리히텐슈타인)",[i.GERMAN_LUXEMBOURG]:"독일어 (룩셈부르크)",[i.DIVEHI_MALDIVES]:"디베히어 (몰디브)",[i.GREEK_GREECE]:"그리스어 (그리스)",[i.ENGLISH_AUSTRALIA]:"영어 (호주)",[i.ENGLISH_BELIZE]:"영어 (벨리즈)",[i.ENGLISH_CANADA]:"영어 (캐나다)",[i.ENGLISH_CARIBBEAN]:"영어 (카리브)",[i.ENGLISH_UNITED_KINGDOM]:"영어 (영국)",[i.ENGLISH_IRELAND]:"영어 (아일랜드)",[i.ENGLISH_JAMAICA]:"영어 (자메이카)",[i.ENGLISH_NEW_ZEALAND]:"영어 (뉴질랜드)",[i.ENGLISH_PHILIPPINES]:"영어 (필리핀)",[i.ENGLISH_TRINIDAD_AND_TOBAGO]:"영어 (트리니다드 토바고)",[i.ENGLISH_UNITED_STATES]:"영어 (미국)",[i.ENGLISH_SOUTH_AFRICA]:"영어 (남아프리카)",[i.ENGLISH_ZIMBABWE]:"영어 (짐바브웨)",[i.SPANISH_ARGENTINA]:"스페인어 (아르헨티나)",[i.SPANISH_BOLIVIA]:"스페인어 (볼리비아)",[i.SPANISH_CHILE]:"스페인어 (칠레)",[i.SPANISH_COLOMBIA]:"스페인어 (콜롬비아)",[i.SPANISH_COSTA_RICA]:"스페인어 (코스타리카)",[i.SPANISH_DOMINICAN_REPUBLIC]:"스페인어 (도미니카 공화국)",[i.SPANISH_ECUADOR]:"스페인어 (에콰도르)",[i.SPANISH_SPAIN]:"스페인어 (스페인)",[i.SPANISH_GUATEMALA]:"스페인어 (과테말라)",[i.SPANISH_HONDURAS]:"스페인어 (온두라스)",[i.SPANISH_MEXICO]:"스페인어 (멕시코)",[i.SPANISH_NICARAGUA]:"스페인어 (니카라과)",[i.SPANISH_PANAMA]:"스페인어 (파나마)",[i.SPANISH_PERU]:"스페인어 (페루)",[i.SPANISH_PUERTO_RICO]:"스페인어 (푸에르토리코)",[i.SPANISH_PARAGUAY]:"스페인어 (파라과이)",[i.SPANISH_EL_SALVADOR]:"스페인어 (엘살바도르)",[i.SPANISH_URUGUAY]:"스페인어 (우루과이)",[i.SPANISH_VENEZUELA]:"스페인어 (베네수엘라)",[i.ESTONIAN_ESTONIA]:"에스토니아어 (에스토니아)",[i.BASQUE_SPAIN]:"바스크어 (스페인)",[i.FARSI_IRAN]:"페르시아어 (이란)",[i.FINNISH_FINLAND]:"핀란드어 (핀란드)",[i.FAROESE_FAROE_ISLANDS]:"페로어 (페로 제도)",[i.FRENCH_BELGIUM]:"프랑스어 (벨기에)",[i.FRENCH_CANADA]:"프랑스어 (캐나다)",[i.FRENCH_SWITZERLAND]:"프랑스어 (스위스)",[i.FRENCH_FRANCE]:"프랑스어 (프랑스)",[i.FRENCH_LUXEMBOURG]:"프랑스어 (룩셈부르크)",[i.FRENCH_PRINCIPALITY_OF_MONACO]:"프랑스어 (모나코 공국)",[i.GALICIAN_SPAIN]:"갈리시아어 (스페인)",[i.GUJARATI_INDIA]:"구자라티어 (인도)",[i.HEBREW_ISRAEL]:"히브리어 (이스라엘)",[i.HINDI_INDIA]:"힌디어 (인도)",[i.CROATIAN_BOSNIA_AND_HERZEGOVINA]:"크로아티아어 (보스니아 헤르체고비나)",[i.CROATIAN_CROATIA]:"크로아티아어 (크로아티아)",[i.HUNGARIAN_HUNGARY]:"헝가리어 (헝가리)",[i.ARMENIAN_ARMENIA]:"아르메니아어 (아르메니아)",[i.INDONESIAN_INDONESIA]:"인도네시아어 (인도네시아)",[i.ICELANDIC_ICELAND]:"아이슬란드어 (아이슬란드)",[i.ITALIAN_SWITZERLAND]:"이탈리아어 (스위스)",[i.ITALIAN_ITALY]:"이탈리아어 (이탈리아)",[i.JAPANESE_JAPAN]:"일본어 (일본)",[i.GEORGIAN_GEORGIA]:"조지아어 (조지아)",[i.KAZAKH_KAZAKHSTAN]:"카자흐어 (카자흐스탄)",[i.KANNADA_INDIA]:"칸나다어 (인도)",[i.KOREAN_KOREA]:"한국어 (한국)",[i.KONKANI_INDIA]:"콩카니어 (인도)",[i.KYRGYZ_KYRGYZSTAN]:"키르기스어 (키르기스스탄)",[i.LITHUANIAN_LITHUANIA]:"리투아니아어 (리투아니아)",[i.LATVIAN_LATVIA]:"라트비아어 (라트비아)",[i.MAORI_NEW_ZEALAND]:"마오리어 (뉴질랜드)",[i.FYRO_MACEDONIAN_MACEDONIA]:"마케도니아어 (구 유고슬라비아, 마케도니아)",[i.MONGOLIAN_MONGOLIA]:"몽골어 (몽골)",[i.MARATHI_INDIA]:"마라티어 (인도)",[i.MALAY_BRUNEI_DARUSSALAM]:"말레이어 (브루나이 다루살람)",[i.MALAY_MALAYSIA]:"말레이어 (말레이시아)",[i.MALTESE_MALTA]:"몰타어 (몰타)",[i.NORWEGIAN_BOKMAL_NORWAY]:"노르웨이어 (보크말, 노르웨이)",[i.DUTCH_BELGIUM]:"네덜란드어 (벨기에)",[i.DUTCH_NETHERLANDS]:"네덜란드어 (네덜란드)",[i.NORWEGIAN_NYNORSK_NORWAY]:"노르웨이어 (니노르스크, 노르웨이)",[i.NORTHERN_SOTHO_SOUTH_AFRICA]:"북 소토어 (남아프리카)",[i.PUNJABI_INDIA]:"펀자브어 (인도)",[i.POLISH_POLAND]:"폴란드어 (폴란드)",[i.PASHTO_AFGHANISTAN]:"파슈토어 (아프가니스탄)",[i.PORTUGUESE_BRAZIL]:"포르투갈어 (브라질)",[i.PORTUGUESE_PORTUGAL]:"포르투갈어 (포르투갈)",[i.QUECHUA_BOLIVIA]:"케추아어 (볼리비아)",[i.QUECHUA_ECUADOR]:"케추아어 (에콰도르)",[i.QUECHUA_PERU]:"케추아어 (페루)",[i.ROMANIAN_ROMANIA]:"루마니아어 (루마니아)",[i.RUSSIAN_RUSSIA]:"러시아어 (러시아)",[i.SANSKRIT_INDIA]:"산스크리트어 (인도)",[i.SAMI_NORTHERN_FINLAND]:"사미어 (북부, 핀란드)",[i.SAMI_NORTHERN_NORWAY]:"사미어 (북부, 노르웨이)",[i.SAMI_NORTHERN_SWEDEN]:"사미어 (북부, 스웨덴)",[i.SLOVAK_SLOVAKIA]:"슬로바키아어 (슬로바키아)",[i.SLOVENIAN_SLOVENIA]:"슬로베니아어 (슬로베니아)",[i.ALBANIAN_ALBANIA]:"알바니아어 (알바니아)",[i.SERBIAN_LATIN_BOSNIA_AND_HERZEGOVINA]:"세르비아어 (라틴 문자, 보스니아 헤르체고비나)",[i.SERBIAN_LATIN_SERBIA_AND_MONTENEGRO]:"세르비아어 (라틴 문자, 세르비아 및 몬테네그로)",[i.SWAHILI_KENYA]:"스와힐리어 (케냐)",[i.SYRIAC_SYRIA]:"시리아어 (시리아)",[i.TAMIL_INDIA]:"타밀어 (인도)",[i.TELUGU_INDIA]:"텔루구어 (인도)",[i.THAI_THAILAND]:"태국어 (태국)",[i.TAGALOG_PHILIPPINES]:"타갈로그어 (필리핀)",[i.TSWANA_SOUTH_AFRICA]:"츠와나어 (남아프리카)",[i.TURKISH_TURKEY]:"터키어 (터키)",[i.TATAR_RUSSIA]:"타타르어 (러시아)",[i.TSOGA]:"츠오가어",[i.UKRAINIAN_UKRAINE]:"우크라이나어 (우크라이나)",[i.URDU_ISLAMIC_REPUBLIC_OF_PAKISTAN]:"우르두어 (파키스탄 이슬람 공화국)",[i.UZBEK_LATIN_UZBEKISTAN]:"우즈벡어 (라틴 문자, 우즈베키스탄)",[i.VIETNAMESE_VIET_NAM]:"베트남어 (베트남)",[i.XHOSA_SOUTH_AFRICA]:"코사어 (남아프리카)",[i.CHINESE_HONG_KONG]:"중국어 (홍콩)",[i.CHINESE_MACAU]:"중국어 (마카오)",[i.CHINESE_SINGAPORE]:"중국어 (싱가포르)",[i.ZULU_SOUTH_AFRICA]:"줄루어 (남아프리카)"},Xy={[i.ENGLISH]:"English",[i.FRENCH]:"Français",[i.SPANISH]:"Español",[i.PORTUGUESE]:"Português",[i.GERMAN]:"Deutsch",[i.AFRIKAANS]:"Afrikaans",[i.ARABIC]:"العربية",[i.AZERI_LATIN]:"Azərbaycan",[i.BELARUSIAN]:"Беларуская",[i.BULGARIAN]:"Български",[i.BOSNIAN]:"Bosanski",[i.CATALAN]:"Català",[i.CZECH]:"Čeština",[i.WELSH]:"Cymraeg",[i.DANISH]:"Dansk",[i.DIVEHI]:"ދިވެހި",[i.GREEK]:"Ελληνικά",[i.ESPERANTO]:"Esperanto",[i.ESTONIAN]:"Eesti",[i.BASQUE]:"Euskara",[i.FARSI]:"فارسی",[i.FINNISH]:"Suomi",[i.FAROESE]:"Føroyskt",[i.GALICIAN]:"Galego",[i.GUJARATI]:"ગુજરાતી",[i.HEBREW]:"עברית",[i.HINDI]:"हिन्दी",[i.CROATIAN]:"Hrvatski",[i.HUNGARIAN]:"Magyar",[i.ARMENIAN]:"Հայերեն",[i.INDONESIAN]:"Bahasa Indonesia",[i.ICELANDIC]:"Íslenska",[i.ITALIAN]:"Italiano",[i.JAPANESE]:"日本語",[i.GEORGIAN]:"ქართული",[i.KAZAKH]:"Қазақ",[i.KANNADA]:"ಕನ್ನಡ",[i.KOREAN]:"한국어",[i.KONKANI]:"कोंकणी",[i.KYRGYZ]:"Кыргыз",[i.LITHUANIAN]:"Lietuvių",[i.LATVIAN]:"Latviešu",[i.MAORI]:"Māori",[i.FYRO_MACEDONIAN]:"Македонски",[i.MONGOLIAN]:"Монгол",[i.MARATHI]:"मराठी",[i.MALAY]:"Bahasa Melayu",[i.MALTESE]:"Malti",[i.NORWEGIAN_BOKMAL]:"Norsk Bokmål",[i.DUTCH]:"Nederlands",[i.NORTHERN_SOTHO]:"Sesotho sa Leboa",[i.PUNJABI]:"ਪੰਜਾਬੀ",[i.POLISH]:"Polski",[i.PASHTO]:"پښتو",[i.QUECHUA]:"Runasimi",[i.ROMANIAN]:"Română",[i.RUSSIAN]:"Русский",[i.SANSKRIT]:"संस्कृतम्",[i.SAMI_NORTHERN]:"Davvisámegiella",[i.SLOVAK]:"Slovenčina",[i.SLOVENIAN]:"Slovenščina",[i.ALBANIAN]:"Shqip",[i.SERBIAN_LATIN]:"Srpski",[i.SWEDISH]:"Svenska",[i.SWEDISH_FINLAND]:"Svenska (Finland)",[i.SWEDISH_SWEDEN]:"Svenska (Sverige)",[i.SWAHILI]:"Kiswahili",[i.SYRIAC]:"ܣܘܪܝܝܐ",[i.TAMIL]:"தமிழ்",[i.TELUGU]:"తెలుగు",[i.THAI]:"ไทย",[i.TAGALOG]:"Tagalog",[i.TSWANA]:"Setswana",[i.TURKISH]:"Türkçe",[i.TATAR]:"Xitsonga",[i.UKRAINIAN]:"Українська",[i.URDU]:"اردو",[i.UZBEK_LATIN]:"O‘zbekcha",[i.VIETNAMESE]:"Tiếng Việt",[i.XHOSA]:"isiXhosa",[i.CHINESE]:"中文",[i.CHINESE_SIMPLIFIED]:"简体中文",[i.CHINESE_SIMPLIFIED_CHINA]:"简体中文 (中国)",[i.CHINESE_TRADITIONAL]:"繁體中文",[i.ZULU]:"isiZulu",[i.AFRIKAANS_SOUTH_AFRICA]:"Afrikaans (Suid-Afrika)",[i.ARABIC_UNITED_ARAB_EMIRATES]:"العربية (الإمارات)",[i.ARABIC_BAHRAIN]:"العربية (البحرين)",[i.ARABIC_ALGERIA]:"العربية (الجزائر)",[i.ARABIC_EGYPT]:"العربية (مصر)",[i.ARABIC_IRAQ]:"العربية (العراق)",[i.ARABIC_JORDAN]:"العربية (الأردن)",[i.ARABIC_KUWAIT]:"العربية (الكويت)",[i.ARABIC_LEBANON]:"العربية (لبنان)",[i.ARABIC_LIBYA]:"العربية (ليبيا)",[i.ARABIC_MOROCCO]:"العربية (المغرب)",[i.ARABIC_OMAN]:"العربية (عمان)",[i.ARABIC_QATAR]:"العربية (قطر)",[i.ARABIC_SAUDI_ARABIA]:"العربية (السعودية)",[i.ARABIC_SYRIA]:"العربية (سوريا)",[i.ARABIC_TUNISIA]:"العربية (تونس)",[i.ARABIC_YEMEN]:"العربية (اليمن)",[i.AZERI_LATIN_AZERBAIJAN]:"Azərbaycan (Azərbaycan)",[i.BELARUSIAN_BELARUS]:"Беларуская (Беларусь)",[i.BULGARIAN_BULGARIA]:"Български (България)",[i.BOSNIAN_BOSNIA_AND_HERZEGOVINA]:"Bosanski (Bosna i Hercegovina)",[i.CATALAN_SPAIN]:"Català (Espanya)",[i.CZECH_CZECH_REPUBLIC]:"Čeština (Česká republika)",[i.WELSH_UNITED_KINGDOM]:"Cymraeg (Y Deyrnas Unedig)",[i.DANISH_DENMARK]:"Dansk (Danmark)",[i.GERMAN_AUSTRIA]:"Deutsch (Österreich)",[i.GERMAN_SWITZERLAND]:"Deutsch (Schweiz)",[i.GERMAN_GERMANY]:"Deutsch (Deutschland)",[i.GERMAN_LIECHTENSTEIN]:"Deutsch (Liechtenstein)",[i.GERMAN_LUXEMBOURG]:"Deutsch (Luxemburg)",[i.DIVEHI_MALDIVES]:"ދިވެހި (ދިވެހި ރާއްޖެ)",[i.GREEK_GREECE]:"Ελληνικά (Ελλάδα)",[i.ENGLISH_AUSTRALIA]:"English (Australia)",[i.ENGLISH_BELIZE]:"English (Belize)",[i.ENGLISH_CANADA]:"English (Canada)",[i.ENGLISH_CARIBBEAN]:"English (Caribbean)",[i.ENGLISH_UNITED_KINGDOM]:"English (United Kingdom)",[i.ENGLISH_IRELAND]:"English (Ireland)",[i.ENGLISH_JAMAICA]:"English (Jamaica)",[i.ENGLISH_NEW_ZEALAND]:"English (New Zealand)",[i.ENGLISH_PHILIPPINES]:"English (Philippines)",[i.ENGLISH_TRINIDAD_AND_TOBAGO]:"English (Trinidad and Tobago)",[i.ENGLISH_UNITED_STATES]:"English (United States)",[i.ENGLISH_SOUTH_AFRICA]:"English (South Africa)",[i.ENGLISH_ZIMBABWE]:"English (Zimbabwe)",[i.SPANISH_ARGENTINA]:"Español (Argentina)",[i.SPANISH_BOLIVIA]:"Español (Bolivia)",[i.SPANISH_CHILE]:"Español (Chile)",[i.SPANISH_COLOMBIA]:"Español (Colombia)",[i.SPANISH_COSTA_RICA]:"Español (Costa Rica)",[i.SPANISH_DOMINICAN_REPUBLIC]:"Español (República Dominicana)",[i.SPANISH_ECUADOR]:"Español (Ecuador)",[i.SPANISH_SPAIN]:"Español (España)",[i.SPANISH_GUATEMALA]:"Español (Guatemala)",[i.SPANISH_HONDURAS]:"Español (Honduras)",[i.SPANISH_MEXICO]:"Español (México)",[i.SPANISH_NICARAGUA]:"Español (Nicaragua)",[i.SPANISH_PANAMA]:"Español (Panamá)",[i.SPANISH_PERU]:"Español (Perú)",[i.SPANISH_PUERTO_RICO]:"Español (Puerto Rico)",[i.SPANISH_PARAGUAY]:"Español (Paraguay)",[i.SPANISH_EL_SALVADOR]:"Español (El Salvador)",[i.SPANISH_URUGUAY]:"Español (Uruguay)",[i.SPANISH_VENEZUELA]:"Español (Venezuela)",[i.ESTONIAN_ESTONIA]:"Eesti (Eesti)",[i.BASQUE_SPAIN]:"Euskara (Espainia)",[i.FARSI_IRAN]:"فارسی (ایران)",[i.FINNISH_FINLAND]:"Suomi (Suomi)",[i.FAROESE_FAROE_ISLANDS]:"Føroyskt (Føroyar)",[i.FRENCH_BELGIUM]:"Français (Belgique)",[i.FRENCH_CANADA]:"Français (Canada)",[i.FRENCH_SWITZERLAND]:"Français (Suisse)",[i.FRENCH_FRANCE]:"Français (France)",[i.FRENCH_LUXEMBOURG]:"Français (Luxembourg)",[i.FRENCH_PRINCIPALITY_OF_MONACO]:"Français (Monaco)",[i.GALICIAN_SPAIN]:"Galego (España)",[i.GUJARATI_INDIA]:"ગુજરાતી (ભારત)",[i.HEBREW_ISRAEL]:"עברית (ישראל)",[i.HINDI_INDIA]:"हिन्दी (भारत)",[i.CROATIAN_BOSNIA_AND_HERZEGOVINA]:"Hrvatski (Bosna i Hercegovina)",[i.CROATIAN_CROATIA]:"Hrvatski (Hrvatska)",[i.HUNGARIAN_HUNGARY]:"Magyar (Magyarország)",[i.ARMENIAN_ARMENIA]:"Հայերեն (Հայաստան)",[i.INDONESIAN_INDONESIA]:"Bahasa Indonesia (Indonesia)",[i.ICELANDIC_ICELAND]:"Íslenska (Ísland)",[i.ITALIAN_SWITZERLAND]:"Italiano (Svizzera)",[i.ITALIAN_ITALY]:"Italiano (Italia)",[i.JAPANESE_JAPAN]:"日本語 (日本)",[i.GEORGIAN_GEORGIA]:"ქართული (საქართველო)",[i.KAZAKH_KAZAKHSTAN]:"Қазақ (Қазақстан)",[i.KANNADA_INDIA]:"ಕನ್ನಡ (ಭಾರತ)",[i.KOREAN_KOREA]:"한국어 (대한민국)",[i.KONKANI_INDIA]:"कोंकणी (भारत)",[i.KYRGYZ_KYRGYZSTAN]:"Кыргыз (Кыргызстан)",[i.LITHUANIAN_LITHUANIA]:"Lietuvių (Lietuva)",[i.LATVIAN_LATVIA]:"Latviešu (Latvija)",[i.MAORI_NEW_ZEALAND]:"Māori (Aotearoa)",[i.FYRO_MACEDONIAN_MACEDONIA]:"Македонски (Македонија)",[i.MONGOLIAN_MONGOLIA]:"Монгол (Монгол)",[i.MARATHI_INDIA]:"मराठी (भारत)",[i.MALAY_BRUNEI_DARUSSALAM]:"Bahasa Melayu (Brunei)",[i.MALAY_MALAYSIA]:"Bahasa Melayu (Malaysia)",[i.MALTESE_MALTA]:"Malti (Malta)",[i.NORWEGIAN_BOKMAL_NORWAY]:"Norsk Bokmål (Norge)",[i.DUTCH_BELGIUM]:"Nederlands (België)",[i.DUTCH_NETHERLANDS]:"Nederlands (Nederland)",[i.NORWEGIAN_NYNORSK_NORWAY]:"Norsk Nynorsk (Norge)",[i.NORTHERN_SOTHO_SOUTH_AFRICA]:"Sesotho sa Leboa (South Africa)",[i.PUNJABI_INDIA]:"ਪੰਜਾਬੀ (ਭਾਰਤ)",[i.POLISH_POLAND]:"Polski (Polska)",[i.PASHTO_AFGHANISTAN]:"پښتو (افغانستان)",[i.PORTUGUESE_BRAZIL]:"Português (Brasil)",[i.PORTUGUESE_PORTUGAL]:"Português (Portugal)",[i.QUECHUA_BOLIVIA]:"Runasimi (Bolivia)",[i.QUECHUA_ECUADOR]:"Runasimi (Ecuador)",[i.QUECHUA_PERU]:"Runasimi (Perú)",[i.ROMANIAN_ROMANIA]:"Română (România)",[i.RUSSIAN_RUSSIA]:"Русский (Россия)",[i.SANSKRIT_INDIA]:"संस्कृतम् (भारत)",[i.SAMI_NORTHERN_FINLAND]:"Davvisámegiella (Suomi)",[i.SAMI_NORTHERN_NORWAY]:"Davvisámegiella (Norge)",[i.SAMI_NORTHERN_SWEDEN]:"Davvisámegiella (Sverige)",[i.SLOVAK_SLOVAKIA]:"Slovenčina (Slovensko)",[i.SLOVENIAN_SLOVENIA]:"Slovenščina (Slovenija)",[i.ALBANIAN_ALBANIA]:"Shqip (Shqipëria)",[i.SERBIAN_LATIN_BOSNIA_AND_HERZEGOVINA]:"Srpski (Bosna i Hercegovina)",[i.SERBIAN_LATIN_SERBIA_AND_MONTENEGRO]:"Srpski (Srbija i Crna Gora)",[i.SWAHILI_KENYA]:"Kiswahili (Kenya)",[i.SYRIAC_SYRIA]:"ܣܘܪܝܝܐ (ܣܘܪܝܐ)",[i.TAMIL_INDIA]:"தமிழ் (இந்தியா)",[i.TELUGU_INDIA]:"తెలుగు (భారతదేశం)",[i.THAI_THAILAND]:"ไทย (ประเทศไทย)",[i.TAGALOG_PHILIPPINES]:"Tagalog (Pilipinas)",[i.TSWANA_SOUTH_AFRICA]:"Setswana (Aforika Borwa)",[i.TURKISH_TURKEY]:"Türkçe (Türkiye)",[i.TATAR_RUSSIA]:"Татар (Россия)",[i.TSOGA]:"Xitsonga",[i.UKRAINIAN_UKRAINE]:"Українська (Україна)",[i.URDU_ISLAMIC_REPUBLIC_OF_PAKISTAN]:"اردو (پاکستان)",[i.UZBEK_LATIN_UZBEKISTAN]:"O‘zbekcha (O‘zbekiston)",[i.VIETNAMESE_VIET_NAM]:"Tiếng Việt (Việt Nam)",[i.XHOSA_SOUTH_AFRICA]:"isiXhosa (South Africa)",[i.CHINESE_HONG_KONG]:"中文 (香港)",[i.CHINESE_MACAU]:"中文 (澳門)",[i.CHINESE_SINGAPORE]:"中文 (新加坡)",[i.ZULU_SOUTH_AFRICA]:"isiZulu (South Africa)"},pp={[i.ENGLISH]:"Inglês",[i.FRENCH]:"Francês",[i.SPANISH]:"Espanhol",[i.PORTUGUESE]:"Português",[i.GERMAN]:"Alemão",[i.AFRIKAANS]:"Afrikaans",[i.ARABIC]:"Árabe",[i.AZERI_LATIN]:"Azeri Latim",[i.BELARUSIAN]:"Bielorrusso",[i.BULGARIAN]:"Búlgaro",[i.BOSNIAN]:"Bósnio",[i.CATALAN]:"Catalão",[i.CZECH]:"Tcheco",[i.WELSH]:"Galês",[i.DANISH]:"Dinamarquês",[i.DIVEHI]:"Divehi",[i.GREEK]:"Grego",[i.ESPERANTO]:"Esperanto",[i.ESTONIAN]:"Estoniano",[i.BASQUE]:"Basco",[i.FARSI]:"Farsi",[i.FINNISH]:"Finlandês",[i.FAROESE]:"Feroês",[i.GALICIAN]:"Galego",[i.GUJARATI]:"Gujarati",[i.HEBREW]:"Hebraico",[i.HINDI]:"Hindi",[i.CROATIAN]:"Croata",[i.HUNGARIAN]:"Húngaro",[i.ARMENIAN]:"Armênio",[i.INDONESIAN]:"Indonésio",[i.ICELANDIC]:"Islandês",[i.ITALIAN]:"Italiano",[i.JAPANESE]:"Japonês",[i.GEORGIAN]:"Georgiano",[i.KAZAKH]:"Cazaque",[i.KANNADA]:"Kannada",[i.KOREAN]:"Coreano",[i.KONKANI]:"Konkani",[i.KYRGYZ]:"Quirguiz",[i.LITHUANIAN]:"Lituano",[i.LATVIAN]:"Letão",[i.MAORI]:"Maori",[i.FYRO_MACEDONIAN]:"Macedônio FYRO",[i.MONGOLIAN]:"Mongol",[i.MARATHI]:"Marathi",[i.MALAY]:"Malaio",[i.MALTESE]:"Maltês",[i.NORWEGIAN_BOKMAL]:"Norueguês Bokmål",[i.DUTCH]:"Holandês",[i.NORTHERN_SOTHO]:"Sotho do Norte",[i.PUNJABI]:"Panjabi",[i.POLISH]:"Polonês",[i.PASHTO]:"Pastó",[i.QUECHUA]:"Quíchua",[i.ROMANIAN]:"Romeno",[i.RUSSIAN]:"Russo",[i.SANSKRIT]:"Sânscrito",[i.SAMI_NORTHERN]:"Sami do Norte",[i.SLOVAK]:"Eslovaco",[i.SLOVENIAN]:"Esloveno",[i.ALBANIAN]:"Albanês",[i.SERBIAN_LATIN]:"Sérvio Latino",[i.SWEDISH]:"Sueco",[i.SWEDISH_FINLAND]:"Sueco (Finlândia)",[i.SWEDISH_SWEDEN]:"Sueco (Suécia)",[i.SWAHILI]:"Suaíli",[i.SYRIAC]:"Siríaco",[i.TAMIL]:"Tamil",[i.TELUGU]:"Telugu",[i.THAI]:"Tailandês",[i.TAGALOG]:"Tagalo",[i.TSWANA]:"Tswana",[i.TURKISH]:"Turco",[i.TATAR]:"Tártaro",[i.UKRAINIAN]:"Ucraniano",[i.URDU]:"Urdu",[i.UZBEK_LATIN]:"Uzbeque Latim",[i.VIETNAMESE]:"Vietnamita",[i.XHOSA]:"Xhosa",[i.CHINESE]:"Chinês",[i.CHINESE_SIMPLIFIED]:"Chinês Simplificado",[i.CHINESE_SIMPLIFIED_CHINA]:"Chinês Simplificado (China)",[i.CHINESE_TRADITIONAL]:"Chinês Tradicional",[i.ZULU]:"Zulu",[i.AFRIKAANS_SOUTH_AFRICA]:"Afrikaans (África do Sul)",[i.ARABIC_UNITED_ARAB_EMIRATES]:"Árabe (Emirados Árabes Unidos)",[i.ARABIC_BAHRAIN]:"Árabe (Bahrein)",[i.ARABIC_ALGERIA]:"Árabe (Argélia)",[i.ARABIC_EGYPT]:"Árabe (Egito)",[i.ARABIC_IRAQ]:"Árabe (Iraque)",[i.ARABIC_JORDAN]:"Árabe (Jordânia)",[i.ARABIC_KUWAIT]:"Árabe (Cuwait)",[i.ARABIC_LEBANON]:"Árabe (Líbano)",[i.ARABIC_LIBYA]:"Árabe (Líbia)",[i.ARABIC_MOROCCO]:"Árabe (Marrocos)",[i.ARABIC_OMAN]:"Árabe (Omã)",[i.ARABIC_QATAR]:"Árabe (Catar)",[i.ARABIC_SAUDI_ARABIA]:"Árabe (Arábia Saudita)",[i.ARABIC_SYRIA]:"Árabe (Síria)",[i.ARABIC_TUNISIA]:"Árabe (Tunísia)",[i.ARABIC_YEMEN]:"Árabe (Iêmen)",[i.AZERI_LATIN_AZERBAIJAN]:"Azeri Latim (Azerbaijão)",[i.BELARUSIAN_BELARUS]:"Bielorrusso (Bielorrússia)",[i.BULGARIAN_BULGARIA]:"Búlgaro (Bulgária)",[i.BOSNIAN_BOSNIA_AND_HERZEGOVINA]:"Bósnio (Bósnia e Herzegovina)",[i.CATALAN_SPAIN]:"Catalão (Espanha)",[i.CZECH_CZECH_REPUBLIC]:"Tcheco (República Tcheca)",[i.WELSH_UNITED_KINGDOM]:"Galês (Reino Unido)",[i.DANISH_DENMARK]:"Dinamarquês (Dinamarca)",[i.GERMAN_AUSTRIA]:"Alemão (Áustria)",[i.GERMAN_SWITZERLAND]:"Alemão (Suíça)",[i.GERMAN_GERMANY]:"Alemão (Alemanha)",[i.GERMAN_LIECHTENSTEIN]:"Alemão (Liechtenstein)",[i.GERMAN_LUXEMBOURG]:"Alemão (Luxemburgo)",[i.DIVEHI_MALDIVES]:"Divehi (Maldivas)",[i.GREEK_GREECE]:"Grego (Grécia)",[i.ENGLISH_AUSTRALIA]:"Inglês (Austrália)",[i.ENGLISH_BELIZE]:"Inglês (Belize)",[i.ENGLISH_CANADA]:"Inglês (Canadá)",[i.ENGLISH_CARIBBEAN]:"Inglês (Caribe)",[i.ENGLISH_UNITED_KINGDOM]:"Inglês (Reino Unido)",[i.ENGLISH_IRELAND]:"Inglês (Irlanda)",[i.ENGLISH_JAMAICA]:"Inglês (Jamaica)",[i.ENGLISH_NEW_ZEALAND]:"Inglês (Nova Zelândia)",[i.ENGLISH_PHILIPPINES]:"Inglês (Filipinas)",[i.ENGLISH_TRINIDAD_AND_TOBAGO]:"Inglês (Trinidad e Tobago)",[i.ENGLISH_UNITED_STATES]:"Inglês (Estados Unidos)",[i.ENGLISH_SOUTH_AFRICA]:"Inglês (África do Sul)",[i.ENGLISH_ZIMBABWE]:"Inglês (Zimbábue)",[i.SPANISH_ARGENTINA]:"Espanhol (Argentina)",[i.SPANISH_BOLIVIA]:"Espanhol (Bolívia)",[i.SPANISH_CHILE]:"Espanhol (Chile)",[i.SPANISH_COLOMBIA]:"Espanhol (Colômbia)",[i.SPANISH_COSTA_RICA]:"Espanhol (Costa Rica)",[i.SPANISH_DOMINICAN_REPUBLIC]:"Espanhol (República Dominicana)",[i.SPANISH_ECUADOR]:"Espanhol (Equador)",[i.SPANISH_SPAIN]:"Espanhol (Espanha)",[i.SPANISH_GUATEMALA]:"Espanhol (Guatemala)",[i.SPANISH_HONDURAS]:"Espanhol (Honduras)",[i.SPANISH_MEXICO]:"Espanhol (México)",[i.SPANISH_NICARAGUA]:"Espanhol (Nicarágua)",[i.SPANISH_PANAMA]:"Espanhol (Panamá)",[i.SPANISH_PERU]:"Espanhol (Peru)",[i.SPANISH_PUERTO_RICO]:"Espanhol (Porto Rico)",[i.SPANISH_PARAGUAY]:"Espanhol (Paraguai)",[i.SPANISH_EL_SALVADOR]:"Espanhol (El Salvador)",[i.SPANISH_URUGUAY]:"Espanhol (Uruguai)",[i.SPANISH_VENEZUELA]:"Espanhol (Venezuela)",[i.ESTONIAN_ESTONIA]:"Estoniano (Estônia)",[i.BASQUE_SPAIN]:"Basco (Espanha)",[i.FARSI_IRAN]:"Farsi (Irã)",[i.FINNISH_FINLAND]:"Finlandês (Finlândia)",[i.FAROESE_FAROE_ISLANDS]:"Feroês (Ilhas Faroe)",[i.FRENCH_BELGIUM]:"Francês (Bélgica)",[i.FRENCH_CANADA]:"Francês (Canadá)",[i.FRENCH_SWITZERLAND]:"Francês (Suíça)",[i.FRENCH_FRANCE]:"Francês (França)",[i.FRENCH_LUXEMBOURG]:"Francês (Luxemburgo)",[i.FRENCH_PRINCIPALITY_OF_MONACO]:"Francês (Principado de Mônaco)",[i.GALICIAN_SPAIN]:"Galego (Espanha)",[i.GUJARATI_INDIA]:"Gujarati (Índia)",[i.HEBREW_ISRAEL]:"Hebraico (Israel)",[i.HINDI_INDIA]:"Hindi (Índia)",[i.CROATIAN_BOSNIA_AND_HERZEGOVINA]:"Croata (Bósnia e Herzegovina)",[i.CROATIAN_CROATIA]:"Croata (Croácia)",[i.HUNGARIAN_HUNGARY]:"Húngaro (Hungria)",[i.ARMENIAN_ARMENIA]:"Armênio (Armênia)",[i.INDONESIAN_INDONESIA]:"Indonésio (Indonésia)",[i.ICELANDIC_ICELAND]:"Islandês (Islândia)",[i.ITALIAN_SWITZERLAND]:"Italiano (Suíça)",[i.ITALIAN_ITALY]:"Italiano (Itália)",[i.JAPANESE_JAPAN]:"Japonês (Japão)",[i.GEORGIAN_GEORGIA]:"Georgiano (Geórgia)",[i.KAZAKH_KAZAKHSTAN]:"Cazaque (Cazaquistão)",[i.KANNADA_INDIA]:"Kannada (Índia)",[i.KOREAN_KOREA]:"Coreano (Coreia)",[i.KONKANI_INDIA]:"Konkani (Índia)",[i.KYRGYZ_KYRGYZSTAN]:"Quirguiz (Quirguistão)",[i.LITHUANIAN_LITHUANIA]:"Lituano (Lituânia)",[i.LATVIAN_LATVIA]:"Letão (Letônia)",[i.MAORI_NEW_ZEALAND]:"Maori (Nova Zelândia)",[i.FYRO_MACEDONIAN_MACEDONIA]:"Macedônio FYRO (Macedônia)",[i.MONGOLIAN_MONGOLIA]:"Mongol (Mongólia)",[i.MARATHI_INDIA]:"Marathi (Índia)",[i.MALAY_BRUNEI_DARUSSALAM]:"Malaio (Brunei Darussalam)",[i.MALAY_MALAYSIA]:"Malaio (Malásia)",[i.MALTESE_MALTA]:"Maltês (Malta)",[i.NORWEGIAN_BOKMAL_NORWAY]:"Norueguês Bokmål (Noruega)",[i.DUTCH_BELGIUM]:"Holandês (Bélgica)",[i.DUTCH_NETHERLANDS]:"Holandês (Países Baixos)",[i.NORWEGIAN_NYNORSK_NORWAY]:"Norueguês Nynorsk (Noruega)",[i.NORTHERN_SOTHO_SOUTH_AFRICA]:"Sotho do Norte (África do Sul)",[i.PUNJABI_INDIA]:"Panjabi (Índia)",[i.POLISH_POLAND]:"Polonês (Polônia)",[i.PASHTO_AFGHANISTAN]:"Pastó (Afeganistão)",[i.PORTUGUESE_BRAZIL]:"Português (Brasil)",[i.PORTUGUESE_PORTUGAL]:"Português (Portugal)",[i.QUECHUA_BOLIVIA]:"Quíchua (Bolívia)",[i.QUECHUA_ECUADOR]:"Quíchua (Equador)",[i.QUECHUA_PERU]:"Quíchua (Peru)",[i.ROMANIAN_ROMANIA]:"Romeno (Romênia)",[i.RUSSIAN_RUSSIA]:"Russo (Rússia)",[i.SANSKRIT_INDIA]:"Sânscrito (Índia)",[i.SAMI_NORTHERN_FINLAND]:"Sami do Norte (Finlândia)",[i.SAMI_NORTHERN_NORWAY]:"Sami do Norte (Noruega)",[i.SAMI_NORTHERN_SWEDEN]:"Sami do Norte (Suécia)",[i.SLOVAK_SLOVAKIA]:"Eslovaco (Eslováquia)",[i.SLOVENIAN_SLOVENIA]:"Esloveno (Eslovênia)",[i.ALBANIAN_ALBANIA]:"Albanês (Albânia)",[i.SERBIAN_LATIN_BOSNIA_AND_HERZEGOVINA]:"Sérvio Latino (Bósnia e Herzegovina)",[i.SERBIAN_LATIN_SERBIA_AND_MONTENEGRO]:"Sérvio Latino (Sérvia e Montenegro)",[i.SWAHILI_KENYA]:"Suaíli (Quênia)",[i.SYRIAC_SYRIA]:"Siríaco (Síria)",[i.TAMIL_INDIA]:"Tamil (Índia)",[i.TELUGU_INDIA]:"Telugu (Índia)",[i.THAI_THAILAND]:"Tailandês (Tailândia)",[i.TAGALOG_PHILIPPINES]:"Tagalo (Filipinas)",[i.TSWANA_SOUTH_AFRICA]:"Tswana (África do Sul)",[i.TURKISH_TURKEY]:"Turco (Turquia)",[i.TATAR_RUSSIA]:"Tártaro (Rússia)",[i.TSOGA]:"Tsoga",[i.UKRAINIAN_UKRAINE]:"Ucraniano (Ucrânia)",[i.URDU_ISLAMIC_REPUBLIC_OF_PAKISTAN]:"Urdu (República Islâmica do Paquistão)",[i.UZBEK_LATIN_UZBEKISTAN]:"Uzbeque Latim (Uzbequistão)",[i.VIETNAMESE_VIET_NAM]:"Vietnamita (Vietnã)",[i.XHOSA_SOUTH_AFRICA]:"Xhosa (África do Sul)",[i.CHINESE_HONG_KONG]:"Chinês (Hong Kong)",[i.CHINESE_MACAU]:"Chinês (Macau)",[i.CHINESE_SINGAPORE]:"Chinês (Singapura)",[i.ZULU_SOUTH_AFRICA]:"Zulu (África do Sul)"},Qy={[i.ENGLISH]:"Английский",[i.FRENCH]:"Французский",[i.SPANISH]:"Испанский",[i.PORTUGUESE]:"Португальский",[i.GERMAN]:"Немецкий",[i.AFRIKAANS]:"Африкаанс",[i.ARABIC]:"Арабский",[i.AZERI_LATIN]:"Азербайджанский (латиница)",[i.BELARUSIAN]:"Белорусский",[i.BULGARIAN]:"Болгарский",[i.BOSNIAN]:"Боснийский",[i.CATALAN]:"Каталанский",[i.CZECH]:"Чешский",[i.WELSH]:"Уэльский",[i.DANISH]:"Датский",[i.DIVEHI]:"Дивехи",[i.GREEK]:"Греческий",[i.ESPERANTO]:"Эсперанто",[i.ESTONIAN]:"Эстонский",[i.BASQUE]:"Баскский",[i.FARSI]:"Персидский",[i.FINNISH]:"Финский",[i.FAROESE]:"Фарерский",[i.GALICIAN]:"Галисийский",[i.GUJARATI]:"Гуджарати",[i.HEBREW]:"Иврит",[i.HINDI]:"Хинди",[i.CROATIAN]:"Хорватский",[i.HUNGARIAN]:"Венгерский",[i.ARMENIAN]:"Армянский",[i.INDONESIAN]:"Индонезийский",[i.ICELANDIC]:"Исландский",[i.ITALIAN]:"Итальянский",[i.JAPANESE]:"Японский",[i.GEORGIAN]:"Грузинский",[i.KAZAKH]:"Казахский",[i.KANNADA]:"Каннада",[i.KOREAN]:"Корейский",[i.KONKANI]:"Конкани",[i.KYRGYZ]:"Кыргызский",[i.LITHUANIAN]:"Литовский",[i.LATVIAN]:"Латвийский",[i.MAORI]:"Маори",[i.FYRO_MACEDONIAN]:"Македонский (бывшая Югославия)",[i.MONGOLIAN]:"Монгольский",[i.MARATHI]:"Марати",[i.MALAY]:"Малайский",[i.MALTESE]:"Мальтийский",[i.NORWEGIAN_BOKMAL]:"Норвежский (букмол)",[i.DUTCH]:"Нидерландский",[i.NORTHERN_SOTHO]:"Сото северный",[i.PUNJABI]:"Панджаби",[i.POLISH]:"Польский",[i.PASHTO]:"Пушту",[i.QUECHUA]:"Кечуа",[i.ROMANIAN]:"Румынский",[i.RUSSIAN]:"Русский",[i.SANSKRIT]:"Санскрит",[i.SAMI_NORTHERN]:"Саамский северный",[i.SLOVAK]:"Словацкий",[i.SLOVENIAN]:"Словенский",[i.ALBANIAN]:"Албанский",[i.SERBIAN_LATIN]:"Сербский (латиница)",[i.SWEDISH]:"Шведский",[i.SWEDISH_FINLAND]:"Шведский (Финляндия)",[i.SWEDISH_SWEDEN]:"Шведский (Швеция)",[i.SWAHILI]:"Свахили",[i.SYRIAC]:"Сирийский",[i.TAMIL]:"Тамильский",[i.TELUGU]:"Телугу",[i.THAI]:"Тайский",[i.TAGALOG]:"Тагальский",[i.TSWANA]:"Цвана",[i.TURKISH]:"Турецкий",[i.TATAR]:"Татарский",[i.UKRAINIAN]:"Украинский",[i.URDU]:"Урду",[i.UZBEK_LATIN]:"Узбекский (латиница)",[i.VIETNAMESE]:"Вьетнамский",[i.XHOSA]:"Коса",[i.CHINESE]:"Китайский",[i.CHINESE_SIMPLIFIED]:"Китайский (упрощенный)",[i.CHINESE_SIMPLIFIED_CHINA]:"Китайский (упрощенный, Китай)",[i.CHINESE_TRADITIONAL]:"Китайский (традиционный)",[i.ZULU]:"Зулу",[i.AFRIKAANS_SOUTH_AFRICA]:"Африкаанс (Южная Африка)",[i.ARABIC_UNITED_ARAB_EMIRATES]:"Арабский (Объединенные Арабские Эмираты)",[i.ARABIC_BAHRAIN]:"Арабский (Бахрейн)",[i.ARABIC_ALGERIA]:"Арабский (Алжир)",[i.ARABIC_EGYPT]:"Арабский (Египет)",[i.ARABIC_IRAQ]:"Арабский (Ирак)",[i.ARABIC_JORDAN]:"Арабский (Иордания)",[i.ARABIC_KUWAIT]:"Арабский (Кувейт)",[i.ARABIC_LEBANON]:"Арабский (Ливан)",[i.ARABIC_LIBYA]:"Арабский (Ливия)",[i.ARABIC_MOROCCO]:"Арабский (Марокко)",[i.ARABIC_OMAN]:"Арабский (Оман)",[i.ARABIC_QATAR]:"Арабский (Катар)",[i.ARABIC_SAUDI_ARABIA]:"Арабский (Саудовская Аравия)",[i.ARABIC_SYRIA]:"Арабский (Сирия)",[i.ARABIC_TUNISIA]:"Арабский (Тунис)",[i.ARABIC_YEMEN]:"Арабский (Йемен)",[i.AZERI_LATIN_AZERBAIJAN]:"Азербайджанский (латиница, Азербайджан)",[i.BELARUSIAN_BELARUS]:"Белорусский (Беларусь)",[i.BULGARIAN_BULGARIA]:"Болгарский (Болгария)",[i.BOSNIAN_BOSNIA_AND_HERZEGOVINA]:"Боснийский (Босния и Герцеговина)",[i.CATALAN_SPAIN]:"Каталанский (Испания)",[i.CZECH_CZECH_REPUBLIC]:"Чешский (Чешская Республика)",[i.WELSH_UNITED_KINGDOM]:"Уэльский (Великобритания)",[i.DANISH_DENMARK]:"Датский (Дания)",[i.GERMAN_AUSTRIA]:"Немецкий (Австрия)",[i.GERMAN_SWITZERLAND]:"Немецкий (Швейцария)",[i.GERMAN_GERMANY]:"Немецкий (Германия)",[i.GERMAN_LIECHTENSTEIN]:"Немецкий (Лихтенштейн)",[i.GERMAN_LUXEMBOURG]:"Немецкий (Люксембург)",[i.DIVEHI_MALDIVES]:"Дивехи (Мальдивы)",[i.GREEK_GREECE]:"Греческий (Греция)",[i.ENGLISH_AUSTRALIA]:"Английский (Австралия)",[i.ENGLISH_BELIZE]:"Английский (Белиз)",[i.ENGLISH_CANADA]:"Английский (Канада)",[i.ENGLISH_CARIBBEAN]:"Английский (Карибы)",[i.ENGLISH_UNITED_KINGDOM]:"Английский (Великобритания)",[i.ENGLISH_IRELAND]:"Английский (Ирландия)",[i.ENGLISH_JAMAICA]:"Английский (Ямайка)",[i.ENGLISH_NEW_ZEALAND]:"Английский (Новая Зеландия)",[i.ENGLISH_PHILIPPINES]:"Английский (Филиппины)",[i.ENGLISH_TRINIDAD_AND_TOBAGO]:"Английский (Тринидад и Тобаго)",[i.ENGLISH_UNITED_STATES]:"Английский (Соединенные Штаты)",[i.ENGLISH_SOUTH_AFRICA]:"Английский (Южная Африка)",[i.ENGLISH_ZIMBABWE]:"Английский (Зимбабве)",[i.SPANISH_ARGENTINA]:"Испанский (Аргентина)",[i.SPANISH_BOLIVIA]:"Испанский (Боливия)",[i.SPANISH_CHILE]:"Испанский (Чили)",[i.SPANISH_COLOMBIA]:"Испанский (Колумбия)",[i.SPANISH_COSTA_RICA]:"Испанский (Коста-Рика)",[i.SPANISH_DOMINICAN_REPUBLIC]:"Испанский (Доминиканская Республика)",[i.SPANISH_ECUADOR]:"Испанский (Эквадор)",[i.SPANISH_SPAIN]:"Испанский (Испания)",[i.SPANISH_GUATEMALA]:"Испанский (Гватемала)",[i.SPANISH_HONDURAS]:"Испанский (Гондурас)",[i.SPANISH_MEXICO]:"Испанский (Мексика)",[i.SPANISH_NICARAGUA]:"Испанский (Никарагуа)",[i.SPANISH_PANAMA]:"Испанский (Панама)",[i.SPANISH_PERU]:"Испанский (Перу)",[i.SPANISH_PUERTO_RICO]:"Испанский (Пуэрто-Рико)",[i.SPANISH_PARAGUAY]:"Испанский (Парагвай)",[i.SPANISH_EL_SALVADOR]:"Испанский (Сальвадор)",[i.SPANISH_URUGUAY]:"Испанский (Уругвай)",[i.SPANISH_VENEZUELA]:"Испанский (Венесуэла)",[i.ESTONIAN_ESTONIA]:"Эстонский (Эстония)",[i.BASQUE_SPAIN]:"Баскский (Испания)",[i.FARSI_IRAN]:"Персидский (Иран)",[i.FINNISH_FINLAND]:"Финский (Финляндия)",[i.FAROESE_FAROE_ISLANDS]:"Фарерский (Фарерские острова)",[i.FRENCH_BELGIUM]:"Французский (Бельгия)",[i.FRENCH_CANADA]:"Французский (Канада)",[i.FRENCH_SWITZERLAND]:"Французский (Швейцария)",[i.FRENCH_FRANCE]:"Французский (Франция)",[i.FRENCH_LUXEMBOURG]:"Французский (Люксембург)",[i.FRENCH_PRINCIPALITY_OF_MONACO]:"Французский (Монако)",[i.GALICIAN_SPAIN]:"Галисийский (Испания)",[i.GUJARATI_INDIA]:"Гуджарати (Индия)",[i.HEBREW_ISRAEL]:"Иврит (Израиль)",[i.HINDI_INDIA]:"Хинди (Индия)",[i.CROATIAN_BOSNIA_AND_HERZEGOVINA]:"Хорватский (Босния и Герцеговина)",[i.CROATIAN_CROATIA]:"Хорватский (Хорватия)",[i.HUNGARIAN_HUNGARY]:"Венгерский (Венгрия)",[i.ARMENIAN_ARMENIA]:"Армянский (Армения)",[i.INDONESIAN_INDONESIA]:"Индонезийский (Индонезия)",[i.ICELANDIC_ICELAND]:"Исландский (Исландия)",[i.ITALIAN_SWITZERLAND]:"Итальянский (Швейцария)",[i.ITALIAN_ITALY]:"Итальянский (Италия)",[i.JAPANESE_JAPAN]:"Японский (Япония)",[i.GEORGIAN_GEORGIA]:"Грузинский (Грузия)",[i.KAZAKH_KAZAKHSTAN]:"Казахский (Казахстан)",[i.KANNADA_INDIA]:"Каннада (Индия)",[i.KOREAN_KOREA]:"Корейский (Корея)",[i.KONKANI_INDIA]:"Конкани (Индия)",[i.KYRGYZ_KYRGYZSTAN]:"Кыргызский (Кыргызстан)",[i.LITHUANIAN_LITHUANIA]:"Литовский (Литва)",[i.LATVIAN_LATVIA]:"Латвийский (Латвия)",[i.MAORI_NEW_ZEALAND]:"Маори (Новая Зеландия)",[i.FYRO_MACEDONIAN_MACEDONIA]:"Македонский (бывшая Югославия, Македония)",[i.MONGOLIAN_MONGOLIA]:"Монгольский (Монголия)",[i.MARATHI_INDIA]:"Марати (Индия)",[i.MALAY_BRUNEI_DARUSSALAM]:"Малайский (Бруней-Даруссалам)",[i.MALAY_MALAYSIA]:"Малайский (Малайзия)",[i.MALTESE_MALTA]:"Мальтийский (Мальта)",[i.NORWEGIAN_BOKMAL_NORWAY]:"Норвежский (букмол, Норвегия)",[i.DUTCH_BELGIUM]:"Нидерландский (Бельгия)",[i.DUTCH_NETHERLANDS]:"Нидерландский (Нидерланды)",[i.NORWEGIAN_NYNORSK_NORWAY]:"Норвежский (нюнорск, Норвегия)",[i.NORTHERN_SOTHO_SOUTH_AFRICA]:"Сото северный (Южная Африка)",[i.PUNJABI_INDIA]:"Панджаби (Индия)",[i.POLISH_POLAND]:"Польский (Польша)",[i.PASHTO_AFGHANISTAN]:"Пушту (Афганистан)",[i.PORTUGUESE_BRAZIL]:"Португальский (Бразилия)",[i.PORTUGUESE_PORTUGAL]:"Португальский (Португалия)",[i.QUECHUA_BOLIVIA]:"Кечуа (Боливия)",[i.QUECHUA_ECUADOR]:"Кечуа (Эквадор)",[i.QUECHUA_PERU]:"Кечуа (Перу)",[i.ROMANIAN_ROMANIA]:"Румынский (Румыния)",[i.RUSSIAN_RUSSIA]:"Русский (Россия)",[i.SANSKRIT_INDIA]:"Санскрит (Индия)",[i.SAMI_NORTHERN_FINLAND]:"Саамский северный (Финляндия)",[i.SAMI_NORTHERN_NORWAY]:"Саамский северный (Норвегия)",[i.SAMI_NORTHERN_SWEDEN]:"Саамский северный (Швеция)",[i.SLOVAK_SLOVAKIA]:"Словацкий (Словакия)",[i.SLOVENIAN_SLOVENIA]:"Словенский (Словения)",[i.ALBANIAN_ALBANIA]:"Албанский (Албания)",[i.SERBIAN_LATIN_BOSNIA_AND_HERZEGOVINA]:"Сербский (латиница, Босния и Герцеговина)",[i.SERBIAN_LATIN_SERBIA_AND_MONTENEGRO]:"Сербский (латиница, Сербия и Черногория)",[i.SWAHILI_KENYA]:"Свахили (Кения)",[i.SYRIAC_SYRIA]:"Сирийский (Сирия)",[i.TAMIL_INDIA]:"Тамильский (Индия)",[i.TELUGU_INDIA]:"Телугу (Индия)",[i.THAI_THAILAND]:"Тайский (Таиланд)",[i.TAGALOG_PHILIPPINES]:"Тагальский (Филиппины)",[i.TSWANA_SOUTH_AFRICA]:"Цвана (Южная Африка)",[i.TURKISH_TURKEY]:"Турецкий (Турция)",[i.TATAR_RUSSIA]:"Татарский (Россия)",[i.TSOGA]:"Цога",[i.UKRAINIAN_UKRAINE]:"Украинский (Украина)",[i.URDU_ISLAMIC_REPUBLIC_OF_PAKISTAN]:"Урду (Исламская Республика Пакистан)",[i.UZBEK_LATIN_UZBEKISTAN]:"Узбекский (латиница, Узбекистан)",[i.VIETNAMESE_VIET_NAM]:"Вьетнамский (Вьетнам)",[i.XHOSA_SOUTH_AFRICA]:"Коса (Южная Африка)",[i.CHINESE_HONG_KONG]:"Китайский (Гонконг)",[i.CHINESE_MACAU]:"Китайский (Макао)",[i.CHINESE_SINGAPORE]:"Китайский (Сингапур)",[i.ZULU_SOUTH_AFRICA]:"Зулу (Южная Африка)"},fa={[i.ENGLISH]:"英语",[i.FRENCH]:"法语",[i.SPANISH]:"西班牙语",[i.PORTUGUESE]:"葡萄牙语",[i.GERMAN]:"德语",[i.AFRIKAANS]:"南非荷兰语",[i.ARABIC]:"阿拉伯语",[i.AZERI_LATIN]:"阿塞拜疆语(拉丁字母)",[i.BELARUSIAN]:"白俄罗斯语",[i.BULGARIAN]:"保加利亚语",[i.BOSNIAN]:"波斯尼亚语",[i.CATALAN]:"加泰罗尼亚语",[i.CZECH]:"捷克语",[i.WELSH]:"威尔士语",[i.DANISH]:"丹麦语",[i.DIVEHI]:"迪维希语",[i.GREEK]:"希腊语",[i.ESPERANTO]:"世界语",[i.ESTONIAN]:"爱沙尼亚语",[i.BASQUE]:"巴斯克语",[i.FARSI]:"波斯语",[i.FINNISH]:"芬兰语",[i.FAROESE]:"法罗语",[i.GALICIAN]:"加利西亚语",[i.GUJARATI]:"古吉拉特语",[i.HEBREW]:"希伯来语",[i.HINDI]:"印地语",[i.CROATIAN]:"克罗地亚语",[i.HUNGARIAN]:"匈牙利语",[i.ARMENIAN]:"亚美尼亚语",[i.INDONESIAN]:"印尼语",[i.ICELANDIC]:"冰岛语",[i.ITALIAN]:"意大利语",[i.JAPANESE]:"日语",[i.GEORGIAN]:"格鲁吉亚语",[i.KAZAKH]:"哈萨克语",[i.KANNADA]:"卡纳达语",[i.KOREAN]:"韩语",[i.KONKANI]:"孔卡尼语",[i.KYRGYZ]:"吉尔吉斯语",[i.LITHUANIAN]:"立陶宛语",[i.LATVIAN]:"拉脱维亚语",[i.MAORI]:"毛利语",[i.FYRO_MACEDONIAN]:"马其顿语(前南斯拉夫)",[i.MONGOLIAN]:"蒙古语",[i.MARATHI]:"马拉地语",[i.MALAY]:"马来语",[i.MALTESE]:"马耳他语",[i.NORWEGIAN_BOKMAL]:"挪威语博克马尔",[i.DUTCH]:"荷兰语",[i.NORTHERN_SOTHO]:"北索托语",[i.PUNJABI]:"旁遮普语",[i.POLISH]:"波兰语",[i.PASHTO]:"普什图语",[i.QUECHUA]:"克丘亚语",[i.ROMANIAN]:"罗马尼亚语",[i.RUSSIAN]:"俄语",[i.SANSKRIT]:"梵语",[i.SAMI_NORTHERN]:"北萨米语",[i.SLOVAK]:"斯洛伐克语",[i.SLOVENIAN]:"斯洛文尼亚语",[i.ALBANIAN]:"阿尔巴尼亚语",[i.SERBIAN_LATIN]:"塞尔维亚语(拉丁字母)",[i.SWEDISH]:"瑞典语",[i.SWEDISH_FINLAND]:"瑞典语(芬兰)",[i.SWEDISH_SWEDEN]:"瑞典语(瑞典)",[i.SWAHILI]:"斯瓦希里语",[i.SYRIAC]:"叙利亚语",[i.TAMIL]:"泰米尔语",[i.TELUGU]:"泰卢固语",[i.THAI]:"泰语",[i.TAGALOG]:"他加禄语",[i.TSWANA]:"茨瓦纳语",[i.TURKISH]:"土耳其语",[i.TATAR]:"鞑靼语",[i.UKRAINIAN]:"乌克兰语",[i.URDU]:"乌尔都语",[i.UZBEK_LATIN]:"乌兹别克语(拉丁字母)",[i.VIETNAMESE]:"越南语",[i.XHOSA]:"科萨语",[i.CHINESE]:"中文",[i.CHINESE_SIMPLIFIED]:"中文(简体)",[i.CHINESE_SIMPLIFIED_CHINA]:"中文(简体,中国)",[i.CHINESE_TRADITIONAL]:"中文(繁体)",[i.ZULU]:"祖鲁语",[i.AFRIKAANS_SOUTH_AFRICA]:"南非荷兰语(南非)",[i.ARABIC_UNITED_ARAB_EMIRATES]:"阿拉伯语(阿联酋)",[i.ARABIC_BAHRAIN]:"阿拉伯语(巴林)",[i.ARABIC_ALGERIA]:"阿拉伯语(阿尔及利亚)",[i.ARABIC_EGYPT]:"阿拉伯语(埃及)",[i.ARABIC_IRAQ]:"阿拉伯语(伊拉克)",[i.ARABIC_JORDAN]:"阿拉伯语(约旦)",[i.ARABIC_KUWAIT]:"阿拉伯语(科威特)",[i.ARABIC_LEBANON]:"阿拉伯语(黎巴嫩)",[i.ARABIC_LIBYA]:"阿拉伯语(利比亚)",[i.ARABIC_MOROCCO]:"阿拉伯语(摩洛哥)",[i.ARABIC_OMAN]:"阿拉伯语(阿曼)",[i.ARABIC_QATAR]:"阿拉伯语(卡塔尔)",[i.ARABIC_SAUDI_ARABIA]:"阿拉伯语(沙特阿拉伯)",[i.ARABIC_SYRIA]:"阿拉伯语(叙利亚)",[i.ARABIC_TUNISIA]:"阿拉伯语(突尼斯)",[i.ARABIC_YEMEN]:"阿拉伯语(也门)",[i.AZERI_LATIN_AZERBAIJAN]:"阿塞拜疆语(拉丁字母,阿塞拜疆)",[i.BELARUSIAN_BELARUS]:"白俄罗斯语(白俄罗斯)",[i.BULGARIAN_BULGARIA]:"保加利亚语(保加利亚)",[i.BOSNIAN_BOSNIA_AND_HERZEGOVINA]:"波斯尼亚语(波斯尼亚和黑塞哥维那)",[i.CATALAN_SPAIN]:"加泰罗尼亚语(西班牙)",[i.CZECH_CZECH_REPUBLIC]:"捷克语(捷克共和国)",[i.WELSH_UNITED_KINGDOM]:"威尔士语(英国)",[i.DANISH_DENMARK]:"丹麦语(丹麦)",[i.GERMAN_AUSTRIA]:"德语(奥地利)",[i.GERMAN_SWITZERLAND]:"德语(瑞士)",[i.GERMAN_GERMANY]:"德语(德国)",[i.GERMAN_LIECHTENSTEIN]:"德语(列支敦士登)",[i.GERMAN_LUXEMBOURG]:"德语(卢森堡)",[i.DIVEHI_MALDIVES]:"迪维希语(马尔代夫)",[i.GREEK_GREECE]:"希腊语(希腊)",[i.ENGLISH_AUSTRALIA]:"英语(澳大利亚)",[i.ENGLISH_BELIZE]:"英语(伯利兹)",[i.ENGLISH_CANADA]:"英语(加拿大)",[i.ENGLISH_CARIBBEAN]:"英语(加勒比)",[i.ENGLISH_UNITED_KINGDOM]:"英语(英国)",[i.ENGLISH_IRELAND]:"英语(爱尔兰)",[i.ENGLISH_JAMAICA]:"英语(牙买加)",[i.ENGLISH_NEW_ZEALAND]:"英语(新西兰)",[i.ENGLISH_PHILIPPINES]:"英语(菲律宾)",[i.ENGLISH_TRINIDAD_AND_TOBAGO]:"英语(特立尼达和多巴哥)",[i.ENGLISH_UNITED_STATES]:"英语(美国)",[i.ENGLISH_SOUTH_AFRICA]:"英语(南非)",[i.ENGLISH_ZIMBABWE]:"英语(津巴布韦)",[i.SPANISH_ARGENTINA]:"西班牙语(阿根廷)",[i.SPANISH_BOLIVIA]:"西班牙语(玻利维亚)",[i.SPANISH_CHILE]:"西班牙语(智利)",[i.SPANISH_COLOMBIA]:"西班牙语(哥伦比亚)",[i.SPANISH_COSTA_RICA]:"西班牙语(哥斯达黎加)",[i.SPANISH_DOMINICAN_REPUBLIC]:"西班牙语(多米尼加共和国)",[i.SPANISH_ECUADOR]:"西班牙语(厄瓜多尔)",[i.SPANISH_SPAIN]:"西班牙语(西班牙)",[i.SPANISH_GUATEMALA]:"西班牙语(危地马拉)",[i.SPANISH_HONDURAS]:"西班牙语(洪都拉斯)",[i.SPANISH_MEXICO]:"西班牙语(墨西哥)",[i.SPANISH_NICARAGUA]:"西班牙语(尼加拉瓜)",[i.SPANISH_PANAMA]:"西班牙语(巴拿马)",[i.SPANISH_PERU]:"西班牙语(秘鲁)",[i.SPANISH_PUERTO_RICO]:"西班牙语(波多黎各)",[i.SPANISH_PARAGUAY]:"西班牙语(巴拉圭)",[i.SPANISH_EL_SALVADOR]:"西班牙语(萨尔瓦多)",[i.SPANISH_URUGUAY]:"西班牙语(乌拉圭)",[i.SPANISH_VENEZUELA]:"西班牙语(委内瑞拉)",[i.ESTONIAN_ESTONIA]:"爱沙尼亚语(爱沙尼亚)",[i.BASQUE_SPAIN]:"巴斯克语(西班牙)",[i.FARSI_IRAN]:"波斯语(伊朗)",[i.FINNISH_FINLAND]:"芬兰语(芬兰)",[i.FAROESE_FAROE_ISLANDS]:"法罗语(法罗群岛)",[i.FRENCH_BELGIUM]:"法语(比利时)",[i.FRENCH_CANADA]:"法语(加拿大)",[i.FRENCH_SWITZERLAND]:"法语(瑞士)",[i.FRENCH_FRANCE]:"法语(法国)",[i.FRENCH_LUXEMBOURG]:"法语(卢森堡)",[i.FRENCH_PRINCIPALITY_OF_MONACO]:"法语(摩纳哥公国)",[i.GALICIAN_SPAIN]:"加利西亚语(西班牙)",[i.GUJARATI_INDIA]:"古吉拉特语(印度)",[i.HEBREW_ISRAEL]:"希伯来语(以色列)",[i.HINDI_INDIA]:"印地语(印度)",[i.CROATIAN_BOSNIA_AND_HERZEGOVINA]:"克罗地亚语(波斯尼亚和黑塞哥维那)",[i.CROATIAN_CROATIA]:"克罗地亚语(克罗地亚)",[i.HUNGARIAN_HUNGARY]:"匈牙利语(匈牙利)",[i.ARMENIAN_ARMENIA]:"亚美尼亚语(亚美尼亚)",[i.INDONESIAN_INDONESIA]:"印尼语(印度尼西亚)",[i.ICELANDIC_ICELAND]:"冰岛语(冰岛)",[i.ITALIAN_SWITZERLAND]:"意大利语(瑞士)",[i.ITALIAN_ITALY]:"意大利语(意大利)",[i.JAPANESE_JAPAN]:"日语(日本)",[i.GEORGIAN_GEORGIA]:"格鲁吉亚语(格鲁吉亚)",[i.KAZAKH_KAZAKHSTAN]:"哈萨克语(哈萨克斯坦)",[i.KANNADA_INDIA]:"卡纳达语(印度)",[i.KOREAN_KOREA]:"韩语(韩国)",[i.KONKANI_INDIA]:"孔卡尼语(印度)",[i.KYRGYZ_KYRGYZSTAN]:"吉尔吉斯语(吉尔吉斯斯坦)",[i.LITHUANIAN_LITHUANIA]:"立陶宛语(立陶宛)",[i.LATVIAN_LATVIA]:"拉脱维亚语(拉脱维亚)",[i.MAORI_NEW_ZEALAND]:"毛利语(新西兰)",[i.FYRO_MACEDONIAN_MACEDONIA]:"马其顿语(前南斯拉夫,马其顿)",[i.MONGOLIAN_MONGOLIA]:"蒙古语(蒙古)",[i.MARATHI_INDIA]:"马拉地语(印度)",[i.MALAY_BRUNEI_DARUSSALAM]:"马来语(文莱达鲁萨兰)",[i.MALAY_MALAYSIA]:"马来语(马来西亚)",[i.MALTESE_MALTA]:"马耳他语(马耳他)",[i.NORWEGIAN_BOKMAL_NORWAY]:"挪威语博克马尔(挪威)",[i.DUTCH_BELGIUM]:"荷兰语(比利时)",[i.DUTCH_NETHERLANDS]:"荷兰语(荷兰)",[i.NORWEGIAN_NYNORSK_NORWAY]:"挪威语尼诺斯克(挪威)",[i.NORTHERN_SOTHO_SOUTH_AFRICA]:"北索托语(南非)",[i.PUNJABI_INDIA]:"旁遮普语(印度)",[i.POLISH_POLAND]:"波兰语(波兰)",[i.PASHTO_AFGHANISTAN]:"普什图语(阿富汗)",[i.PORTUGUESE_BRAZIL]:"葡萄牙语(巴西)",[i.PORTUGUESE_PORTUGAL]:"葡萄牙语(葡萄牙)",[i.QUECHUA_BOLIVIA]:"克丘亚语(玻利维亚)",[i.QUECHUA_ECUADOR]:"克丘亚语(厄瓜多尔)",[i.QUECHUA_PERU]:"克丘亚语(秘鲁)",[i.ROMANIAN_ROMANIA]:"罗马尼亚语(罗马尼亚)",[i.RUSSIAN_RUSSIA]:"俄语(俄罗斯)",[i.SANSKRIT_INDIA]:"梵语(印度)",[i.SAMI_NORTHERN_FINLAND]:"北萨米语(芬兰)",[i.SAMI_NORTHERN_NORWAY]:"北萨米语(挪威)",[i.SAMI_NORTHERN_SWEDEN]:"北萨米语(瑞典)",[i.SLOVAK_SLOVAKIA]:"斯洛伐克语(斯洛伐克)",[i.SLOVENIAN_SLOVENIA]:"斯洛文尼亚语(斯洛文尼亚)",[i.ALBANIAN_ALBANIA]:"阿尔巴尼亚语(阿尔巴尼亚)",[i.SERBIAN_LATIN_BOSNIA_AND_HERZEGOVINA]:"塞尔维亚语(拉丁字母,波斯尼亚和黑塞哥维那)",[i.SERBIAN_LATIN_SERBIA_AND_MONTENEGRO]:"塞尔维亚语(拉丁字母,塞尔维亚和黑山)",[i.SWAHILI_KENYA]:"斯瓦希里语(肯尼亚)",[i.SYRIAC_SYRIA]:"叙利亚语(叙利亚)",[i.TAMIL_INDIA]:"泰米尔语(印度)",[i.TELUGU_INDIA]:"泰卢固语(印度)",[i.THAI_THAILAND]:"泰语(泰国)",[i.TAGALOG_PHILIPPINES]:"他加禄语(菲律宾)",[i.TSWANA_SOUTH_AFRICA]:"茨瓦纳语(南非)",[i.TURKISH_TURKEY]:"土耳其语(土耳其)",[i.TATAR_RUSSIA]:"鞑靼语(俄罗斯)",[i.TSOGA]:"索加语",[i.UKRAINIAN_UKRAINE]:"乌克兰语(乌克兰)",[i.URDU_ISLAMIC_REPUBLIC_OF_PAKISTAN]:"乌尔都语(巴基斯坦伊斯兰共和国)",[i.UZBEK_LATIN_UZBEKISTAN]:"乌兹别克语(拉丁字母,乌兹别克斯坦)",[i.VIETNAMESE_VIET_NAM]:"越南语(越南)",[i.XHOSA_SOUTH_AFRICA]:"科萨语(南非)",[i.CHINESE_HONG_KONG]:"中文(香港)",[i.CHINESE_MACAU]:"中文(澳门)",[i.CHINESE_SINGAPORE]:"中文(新加坡)",[i.ZULU_SOUTH_AFRICA]:"祖鲁语(南非)"},$w={[i.ENGLISH]:Mn,[i.ENGLISH_AUSTRALIA]:Mn,[i.ENGLISH_BELIZE]:Mn,[i.ENGLISH_CANADA]:Mn,[i.ENGLISH_CARIBBEAN]:Mn,[i.ENGLISH_UNITED_KINGDOM]:Mn,[i.ENGLISH_IRELAND]:Mn,[i.ENGLISH_JAMAICA]:Mn,[i.ENGLISH_NEW_ZEALAND]:Mn,[i.ENGLISH_PHILIPPINES]:Mn,[i.ENGLISH_TRINIDAD_AND_TOBAGO]:Mn,[i.ENGLISH_UNITED_STATES]:Mn,[i.ENGLISH_SOUTH_AFRICA]:Mn,[i.ENGLISH_ZIMBABWE]:Mn,[i.FRENCH]:da,[i.FRENCH_BELGIUM]:da,[i.FRENCH_CANADA]:da,[i.FRENCH_SWITZERLAND]:da,[i.FRENCH_FRANCE]:da,[i.FRENCH_LUXEMBOURG]:da,[i.FRENCH_PRINCIPALITY_OF_MONACO]:da,[i.SPANISH]:Kt,[i.SPANISH_ARGENTINA]:Kt,[i.SPANISH_BOLIVIA]:Kt,[i.SPANISH_CHILE]:Kt,[i.SPANISH_COLOMBIA]:Kt,[i.SPANISH_COSTA_RICA]:Kt,[i.SPANISH_DOMINICAN_REPUBLIC]:Kt,[i.SPANISH_ECUADOR]:Kt,[i.SPANISH_SPAIN]:Kt,[i.SPANISH_GUATEMALA]:Kt,[i.SPANISH_HONDURAS]:Kt,[i.SPANISH_MEXICO]:Kt,[i.SPANISH_NICARAGUA]:Kt,[i.SPANISH_PANAMA]:Kt,[i.SPANISH_PERU]:Kt,[i.SPANISH_PUERTO_RICO]:Kt,[i.SPANISH_PARAGUAY]:Kt,[i.SPANISH_EL_SALVADOR]:Kt,[i.SPANISH_URUGUAY]:Kt,[i.SPANISH_VENEZUELA]:Kt,[i.PORTUGUESE]:pp,[i.PORTUGUESE_BRAZIL]:pp,[i.PORTUGUESE_PORTUGAL]:pp,[i.ITALIAN]:mp,[i.ITALIAN_SWITZERLAND]:mp,[i.ITALIAN_ITALY]:mp,[i.GERMAN]:bs,[i.GERMAN_AUSTRIA]:bs,[i.GERMAN_SWITZERLAND]:bs,[i.GERMAN_GERMANY]:bs,[i.GERMAN_LIECHTENSTEIN]:bs,[i.GERMAN_LUXEMBOURG]:bs,[i.CHINESE]:fa,[i.CHINESE_HONG_KONG]:fa,[i.CHINESE_MACAU]:fa,[i.CHINESE_SINGAPORE]:fa,[i.CHINESE_SIMPLIFIED]:fa,[i.CHINESE_SIMPLIFIED_CHINA]:fa,[i.CHINESE_TRADITIONAL]:fa,[i.RUSSIAN]:Qy,[i.RUSSIAN_RUSSIA]:Qy,[i.ARABIC]:dn,[i.ARABIC_UNITED_ARAB_EMIRATES]:dn,[i.ARABIC_BAHRAIN]:dn,[i.ARABIC_ALGERIA]:dn,[i.ARABIC_EGYPT]:dn,[i.ARABIC_IRAQ]:dn,[i.ARABIC_JORDAN]:dn,[i.ARABIC_KUWAIT]:dn,[i.ARABIC_LEBANON]:dn,[i.ARABIC_LIBYA]:dn,[i.ARABIC_MOROCCO]:dn,[i.ARABIC_OMAN]:dn,[i.ARABIC_QATAR]:dn,[i.ARABIC_SAUDI_ARABIA]:dn,[i.ARABIC_SYRIA]:dn,[i.ARABIC_TUNISIA]:dn,[i.ARABIC_YEMEN]:dn,[i.JAPANESE]:Wy,[i.JAPANESE_JAPAN]:Wy,[i.KOREAN]:qy,[i.KOREAN_KOREA]:qy,[i.HINDI]:Kw,[i.DUTCH_BELGIUM]:void 0,[i.DUTCH_NETHERLANDS]:void 0,[i.DIVEHI_MALDIVES]:void 0,[i.AFRIKAANS]:void 0,[i.AZERI_LATIN]:void 0,[i.BELARUSIAN]:void 0,[i.BULGARIAN]:void 0,[i.BOSNIAN]:void 0,[i.CATALAN]:void 0,[i.CZECH]:void 0,[i.WELSH]:void 0,[i.DANISH]:void 0,[i.DIVEHI]:void 0,[i.GREEK]:void 0,[i.ESPERANTO]:void 0,[i.ESTONIAN]:void 0,[i.BASQUE]:void 0,[i.FARSI]:void 0,[i.FINNISH]:void 0,[i.FAROESE]:void 0,[i.GALICIAN]:void 0,[i.GUJARATI]:void 0,[i.HEBREW]:void 0,[i.CROATIAN]:void 0,[i.HUNGARIAN]:void 0,[i.ARMENIAN]:void 0,[i.INDONESIAN]:void 0,[i.ICELANDIC]:void 0,[i.GEORGIAN]:void 0,[i.KAZAKH]:void 0,[i.KANNADA]:void 0,[i.KONKANI]:void 0,[i.KYRGYZ]:void 0,[i.LITHUANIAN]:void 0,[i.LATVIAN]:void 0,[i.MAORI]:void 0,[i.FYRO_MACEDONIAN]:void 0,[i.MONGOLIAN]:void 0,[i.MARATHI]:void 0,[i.MALAY]:void 0,[i.MALTESE]:void 0,[i.NORWEGIAN_BOKMAL]:void 0,[i.DUTCH]:void 0,[i.NORTHERN_SOTHO]:void 0,[i.PUNJABI]:void 0,[i.POLISH]:void 0,[i.PASHTO]:void 0,[i.QUECHUA]:void 0,[i.ROMANIAN]:void 0,[i.SANSKRIT]:void 0,[i.SAMI_NORTHERN]:void 0,[i.SLOVAK]:void 0,[i.SLOVENIAN]:void 0,[i.ALBANIAN]:void 0,[i.SERBIAN_LATIN]:void 0,[i.SWEDISH]:void 0,[i.SWEDISH_FINLAND]:void 0,[i.SWEDISH_SWEDEN]:void 0,[i.SWAHILI]:void 0,[i.SYRIAC]:void 0,[i.TAMIL]:void 0,[i.TELUGU]:void 0,[i.THAI]:void 0,[i.TAGALOG]:void 0,[i.TSWANA]:void 0,[i.TURKISH]:void 0,[i.TATAR]:void 0,[i.UKRAINIAN]:void 0,[i.URDU]:void 0,[i.UZBEK_LATIN]:void 0,[i.VIETNAMESE]:void 0,[i.XHOSA]:void 0,[i.ZULU]:void 0,[i.AFRIKAANS_SOUTH_AFRICA]:void 0,[i.AZERI_LATIN_AZERBAIJAN]:void 0,[i.BELARUSIAN_BELARUS]:void 0,[i.BULGARIAN_BULGARIA]:void 0,[i.BOSNIAN_BOSNIA_AND_HERZEGOVINA]:void 0,[i.CATALAN_SPAIN]:void 0,[i.CZECH_CZECH_REPUBLIC]:void 0,[i.WELSH_UNITED_KINGDOM]:void 0,[i.DANISH_DENMARK]:void 0,[i.GREEK_GREECE]:void 0,[i.ESTONIAN_ESTONIA]:void 0,[i.BASQUE_SPAIN]:void 0,[i.FARSI_IRAN]:void 0,[i.FINNISH_FINLAND]:void 0,[i.FAROESE_FAROE_ISLANDS]:void 0,[i.GALICIAN_SPAIN]:void 0,[i.GUJARATI_INDIA]:void 0,[i.HEBREW_ISRAEL]:void 0,[i.HINDI_INDIA]:void 0,[i.CROATIAN_BOSNIA_AND_HERZEGOVINA]:void 0,[i.CROATIAN_CROATIA]:void 0,[i.HUNGARIAN_HUNGARY]:void 0,[i.ARMENIAN_ARMENIA]:void 0,[i.INDONESIAN_INDONESIA]:void 0,[i.ICELANDIC_ICELAND]:void 0,[i.GEORGIAN_GEORGIA]:void 0,[i.KAZAKH_KAZAKHSTAN]:void 0,[i.KANNADA_INDIA]:void 0,[i.KONKANI_INDIA]:void 0,[i.KYRGYZ_KYRGYZSTAN]:void 0,[i.LITHUANIAN_LITHUANIA]:void 0,[i.LATVIAN_LATVIA]:void 0,[i.MAORI_NEW_ZEALAND]:void 0,[i.FYRO_MACEDONIAN_MACEDONIA]:void 0,[i.MONGOLIAN_MONGOLIA]:void 0,[i.MARATHI_INDIA]:void 0,[i.MALAY_BRUNEI_DARUSSALAM]:void 0,[i.MALAY_MALAYSIA]:void 0,[i.MALTESE_MALTA]:void 0,[i.NORWEGIAN_BOKMAL_NORWAY]:void 0,[i.NORWEGIAN_NYNORSK_NORWAY]:void 0,[i.NORTHERN_SOTHO_SOUTH_AFRICA]:void 0,[i.PUNJABI_INDIA]:void 0,[i.POLISH_POLAND]:void 0,[i.PASHTO_AFGHANISTAN]:void 0,[i.QUECHUA_BOLIVIA]:void 0,[i.QUECHUA_ECUADOR]:void 0,[i.QUECHUA_PERU]:void 0,[i.ROMANIAN_ROMANIA]:void 0,[i.SANSKRIT_INDIA]:void 0,[i.SAMI_NORTHERN_FINLAND]:void 0,[i.SAMI_NORTHERN_NORWAY]:void 0,[i.SAMI_NORTHERN_SWEDEN]:void 0,[i.SLOVAK_SLOVAKIA]:void 0,[i.SLOVENIAN_SLOVENIA]:void 0,[i.ALBANIAN_ALBANIA]:void 0,[i.SERBIAN_LATIN_BOSNIA_AND_HERZEGOVINA]:void 0,[i.SERBIAN_LATIN_SERBIA_AND_MONTENEGRO]:void 0,[i.SWAHILI_KENYA]:void 0,[i.SYRIAC_SYRIA]:void 0,[i.TAMIL_INDIA]:void 0,[i.TELUGU_INDIA]:void 0,[i.THAI_THAILAND]:void 0,[i.TAGALOG_PHILIPPINES]:void 0,[i.TSWANA_SOUTH_AFRICA]:void 0,[i.TURKISH_TURKEY]:void 0,[i.TATAR_RUSSIA]:void 0,[i.TSOGA]:void 0,[i.UKRAINIAN_UKRAINE]:void 0,[i.URDU_ISLAMIC_REPUBLIC_OF_PAKISTAN]:void 0,[i.UZBEK_LATIN_UZBEKISTAN]:void 0,[i.VIETNAMESE_VIET_NAM]:void 0,[i.XHOSA_SOUTH_AFRICA]:void 0,[i.ZULU_SOUTH_AFRICA]:void 0},X0=(e,t)=>{var n;return t?((n=$w[t])==null?void 0:n[e])??Xy[e]??"Unknown locale":Xy[e]},Yw=e=>{switch(e){case i.ENGLISH:case i.FRENCH:case i.SPANISH:case i.PORTUGUESE:case i.GERMAN:case i.AFRIKAANS:case i.AZERI_LATIN:case i.BELARUSIAN:case i.BULGARIAN:case i.BOSNIAN:case i.CATALAN:case i.CZECH:case i.WELSH:case i.DANISH:case i.ESPERANTO:case i.ESTONIAN:case i.BASQUE:case i.FINNISH:case i.FAROESE:case i.GALICIAN:case i.GREEK:case i.CROATIAN:case i.HUNGARIAN:case i.ARMENIAN:case i.INDONESIAN:case i.ICELANDIC:case i.ITALIAN:case i.JAPANESE:case i.GEORGIAN:case i.KAZAKH:case i.KANNADA:case i.KOREAN:case i.KONKANI:case i.KYRGYZ:case i.LITHUANIAN:case i.LATVIAN:case i.MAORI:case i.FYRO_MACEDONIAN:case i.MONGOLIAN:case i.MARATHI:case i.MALAY:case i.MALTESE:case i.NORWEGIAN_BOKMAL:case i.DUTCH:case i.NORTHERN_SOTHO:case i.PUNJABI:case i.POLISH:case i.QUECHUA:case i.ROMANIAN:case i.RUSSIAN:case i.SANSKRIT:case i.SAMI_NORTHERN:case i.SLOVAK:case i.SLOVENIAN:case i.ALBANIAN:case i.SERBIAN_LATIN:case i.SWEDISH:case i.SWAHILI:case i.TAMIL:case i.TELUGU:case i.THAI:case i.TAGALOG:case i.TSWANA:case i.TURKISH:case i.UKRAINIAN:case i.UZBEK_LATIN:case i.VIETNAMESE:case i.XHOSA:case i.CHINESE_SIMPLIFIED:case i.CHINESE_TRADITIONAL:case i.ZULU:case i.AFRIKAANS_SOUTH_AFRICA:case i.AZERI_LATIN_AZERBAIJAN:case i.BELARUSIAN_BELARUS:case i.BULGARIAN_BULGARIA:case i.BOSNIAN_BOSNIA_AND_HERZEGOVINA:case i.CATALAN_SPAIN:case i.CZECH_CZECH_REPUBLIC:case i.WELSH_UNITED_KINGDOM:case i.DANISH_DENMARK:case i.GERMAN_AUSTRIA:case i.GERMAN_SWITZERLAND:case i.GERMAN_GERMANY:case i.GERMAN_LIECHTENSTEIN:case i.GERMAN_LUXEMBOURG:case i.GREEK_GREECE:case i.ENGLISH_AUSTRALIA:case i.ENGLISH_BELIZE:case i.ENGLISH_CANADA:case i.ENGLISH_CARIBBEAN:case i.ENGLISH_UNITED_KINGDOM:case i.ENGLISH_IRELAND:case i.ENGLISH_JAMAICA:case i.ENGLISH_NEW_ZEALAND:case i.ENGLISH_PHILIPPINES:case i.ENGLISH_TRINIDAD_AND_TOBAGO:case i.ENGLISH_UNITED_STATES:case i.ENGLISH_SOUTH_AFRICA:case i.ENGLISH_ZIMBABWE:case i.SPANISH_ARGENTINA:case i.SPANISH_BOLIVIA:case i.SPANISH_CHILE:case i.SPANISH_COLOMBIA:case i.SPANISH_COSTA_RICA:case i.SPANISH_DOMINICAN_REPUBLIC:case i.SPANISH_ECUADOR:case i.SPANISH_SPAIN:case i.SPANISH_GUATEMALA:case i.SPANISH_HONDURAS:case i.SPANISH_MEXICO:case i.SPANISH_NICARAGUA:case i.SPANISH_PANAMA:case i.SPANISH_PERU:case i.SPANISH_PUERTO_RICO:case i.SPANISH_PARAGUAY:case i.SPANISH_EL_SALVADOR:case i.SPANISH_URUGUAY:case i.SPANISH_VENEZUELA:case i.ESTONIAN_ESTONIA:case i.BASQUE_SPAIN:case i.FINNISH_FINLAND:case i.FAROESE_FAROE_ISLANDS:case i.FRENCH_BELGIUM:case i.FRENCH_CANADA:case i.FRENCH_SWITZERLAND:case i.FRENCH_FRANCE:case i.FRENCH_LUXEMBOURG:case i.FRENCH_PRINCIPALITY_OF_MONACO:case i.GALICIAN_SPAIN:case i.GUJARATI_INDIA:case i.HEBREW_ISRAEL:case i.HINDI_INDIA:case i.CROATIAN_BOSNIA_AND_HERZEGOVINA:case i.CROATIAN_CROATIA:case i.HUNGARIAN_HUNGARY:case i.ARMENIAN_ARMENIA:case i.INDONESIAN_INDONESIA:case i.ICELANDIC_ICELAND:case i.ITALIAN_SWITZERLAND:case i.ITALIAN_ITALY:case i.JAPANESE_JAPAN:case i.GEORGIAN_GEORGIA:case i.KAZAKH_KAZAKHSTAN:case i.KANNADA_INDIA:case i.KOREAN_KOREA:case i.KONKANI_INDIA:case i.KYRGYZ_KYRGYZSTAN:case i.LITHUANIAN_LITHUANIA:case i.LATVIAN_LATVIA:case i.MAORI_NEW_ZEALAND:case i.FYRO_MACEDONIAN_MACEDONIA:case i.MONGOLIAN_MONGOLIA:case i.MARATHI_INDIA:case i.MALAY_BRUNEI_DARUSSALAM:case i.MALAY_MALAYSIA:case i.MALTESE_MALTA:case i.NORWEGIAN_BOKMAL_NORWAY:case i.DUTCH_BELGIUM:case i.DUTCH_NETHERLANDS:case i.NORWEGIAN_NYNORSK_NORWAY:case i.NORTHERN_SOTHO_SOUTH_AFRICA:case i.PUNJABI_INDIA:case i.POLISH_POLAND:case i.PORTUGUESE_BRAZIL:case i.PORTUGUESE_PORTUGAL:case i.QUECHUA_BOLIVIA:case i.QUECHUA_ECUADOR:case i.QUECHUA_PERU:case i.ROMANIAN_ROMANIA:case i.RUSSIAN_RUSSIA:case i.SANSKRIT_INDIA:case i.SAMI_NORTHERN_FINLAND:case i.SAMI_NORTHERN_NORWAY:case i.SAMI_NORTHERN_SWEDEN:case i.SLOVAK_SLOVAKIA:case i.SLOVENIAN_SLOVENIA:case i.ALBANIAN_ALBANIA:case i.SERBIAN_LATIN_BOSNIA_AND_HERZEGOVINA:case i.SERBIAN_LATIN_SERBIA_AND_MONTENEGRO:case i.SWAHILI_KENYA:case i.TAMIL_INDIA:case i.TELUGU_INDIA:case i.THAI_THAILAND:case i.TAGALOG_PHILIPPINES:case i.TSWANA_SOUTH_AFRICA:case i.TURKISH_TURKEY:case i.TATAR_RUSSIA:case i.TSOGA:case i.UKRAINIAN_UKRAINE:case i.UZBEK_LATIN_UZBEKISTAN:case i.VIETNAMESE_VIET_NAM:case i.XHOSA_SOUTH_AFRICA:case i.CHINESE_HONG_KONG:case i.CHINESE_MACAU:case i.CHINESE_SINGAPORE:case i.ZULU_SOUTH_AFRICA:return"ltr";case i.ARABIC:case i.FARSI:case i.URDU:case i.PASHTO:case i.SYRIAC:case i.ARABIC_UNITED_ARAB_EMIRATES:case i.ARABIC_BAHRAIN:case i.ARABIC_ALGERIA:case i.ARABIC_EGYPT:case i.ARABIC_IRAQ:case i.ARABIC_JORDAN:case i.ARABIC_KUWAIT:case i.ARABIC_LEBANON:case i.ARABIC_LIBYA:case i.ARABIC_MOROCCO:case i.ARABIC_OMAN:case i.ARABIC_QATAR:case i.ARABIC_SAUDI_ARABIA:case i.ARABIC_SYRIA:case i.ARABIC_TUNISIA:case i.ARABIC_YEMEN:case i.FARSI_IRAN:case i.URDU_ISLAMIC_REPUBLIC_OF_PAKISTAN:case i.PASHTO_AFGHANISTAN:case i.SYRIAC_SYRIA:return"rtl";default:return"auto"}},Zw=[i.AFRIKAANS,i.AFRIKAANS_SOUTH_AFRICA,i.ARABIC,i.ARABIC_UNITED_ARAB_EMIRATES,i.ARABIC_BAHRAIN,i.ARABIC_ALGERIA,i.ARABIC_EGYPT,i.ARABIC_IRAQ,i.ARABIC_JORDAN,i.ARABIC_KUWAIT,i.ARABIC_LEBANON,i.ARABIC_LIBYA,i.ARABIC_MOROCCO,i.ARABIC_OMAN,i.ARABIC_QATAR,i.ARABIC_SAUDI_ARABIA,i.ARABIC_SYRIA,i.ARABIC_TUNISIA,i.ARABIC_YEMEN,i.AZERI_LATIN,i.AZERI_LATIN_AZERBAIJAN,i.BELARUSIAN,i.BELARUSIAN_BELARUS,i.BULGARIAN,i.BULGARIAN_BULGARIA,i.BOSNIAN_BOSNIA_AND_HERZEGOVINA,i.CATALAN,i.CATALAN_SPAIN,i.CZECH,i.CZECH_CZECH_REPUBLIC,i.WELSH,i.WELSH_UNITED_KINGDOM,i.DANISH,i.DANISH_DENMARK,i.GERMAN,i.GERMAN_AUSTRIA,i.GERMAN_SWITZERLAND,i.GERMAN_GERMANY,i.GERMAN_LIECHTENSTEIN,i.GERMAN_LUXEMBOURG,i.DIVEHI,i.DIVEHI_MALDIVES,i.GREEK,i.GREEK_GREECE,i.ENGLISH,i.ENGLISH_AUSTRALIA,i.ENGLISH_BELIZE,i.ENGLISH_CANADA,i.ENGLISH_CARIBBEAN,i.ENGLISH_UNITED_KINGDOM,i.ENGLISH_IRELAND,i.ENGLISH_JAMAICA,i.ENGLISH_NEW_ZEALAND,i.ENGLISH_PHILIPPINES,i.ENGLISH_TRINIDAD_AND_TOBAGO,i.ENGLISH_UNITED_STATES,i.ENGLISH_SOUTH_AFRICA,i.ENGLISH_ZIMBABWE,i.ESPERANTO,i.SPANISH,i.SPANISH_ARGENTINA,i.SPANISH_BOLIVIA,i.SPANISH_CHILE,i.SPANISH_COLOMBIA,i.SPANISH_COSTA_RICA,i.SPANISH_DOMINICAN_REPUBLIC,i.SPANISH_ECUADOR,i.SPANISH_SPAIN,i.SPANISH_GUATEMALA,i.SPANISH_HONDURAS,i.SPANISH_MEXICO,i.SPANISH_NICARAGUA,i.SPANISH_PANAMA,i.SPANISH_PERU,i.SPANISH_PUERTO_RICO,i.SPANISH_PARAGUAY,i.SPANISH_EL_SALVADOR,i.SPANISH_URUGUAY,i.SPANISH_VENEZUELA,i.ESTONIAN,i.ESTONIAN_ESTONIA,i.BASQUE,i.BASQUE_SPAIN,i.FARSI,i.FARSI_IRAN,i.FINNISH,i.FINNISH_FINLAND,i.FAROESE,i.FAROESE_FAROE_ISLANDS,i.FRENCH,i.FRENCH_BELGIUM,i.FRENCH_CANADA,i.FRENCH_SWITZERLAND,i.FRENCH_FRANCE,i.FRENCH_LUXEMBOURG,i.FRENCH_PRINCIPALITY_OF_MONACO,i.GALICIAN,i.GALICIAN_SPAIN,i.GUJARATI,i.GUJARATI_INDIA,i.HEBREW,i.HEBREW_ISRAEL,i.HINDI,i.HINDI_INDIA,i.CROATIAN,i.CROATIAN_BOSNIA_AND_HERZEGOVINA,i.CROATIAN_CROATIA,i.HUNGARIAN,i.HUNGARIAN_HUNGARY,i.ARMENIAN,i.ARMENIAN_ARMENIA,i.INDONESIAN,i.INDONESIAN_INDONESIA,i.ICELANDIC,i.ICELANDIC_ICELAND,i.ITALIAN,i.ITALIAN_SWITZERLAND,i.ITALIAN_ITALY,i.JAPANESE,i.JAPANESE_JAPAN,i.GEORGIAN,i.GEORGIAN_GEORGIA,i.KAZAKH,i.KAZAKH_KAZAKHSTAN,i.KANNADA,i.KANNADA_INDIA,i.KOREAN,i.KOREAN_KOREA,i.KONKANI,i.KONKANI_INDIA,i.KYRGYZ,i.KYRGYZ_KYRGYZSTAN,i.LITHUANIAN,i.LITHUANIAN_LITHUANIA,i.LATVIAN,i.LATVIAN_LATVIA,i.MAORI,i.MAORI_NEW_ZEALAND,i.FYRO_MACEDONIAN,i.FYRO_MACEDONIAN_MACEDONIA,i.MONGOLIAN,i.MONGOLIAN_MONGOLIA,i.MARATHI,i.MARATHI_INDIA,i.MALAY,i.MALAY_BRUNEI_DARUSSALAM,i.MALAY_MALAYSIA,i.MALTESE,i.MALTESE_MALTA,i.NORWEGIAN_BOKMAL,i.NORWEGIAN_BOKMAL_NORWAY,i.DUTCH,i.DUTCH_BELGIUM,i.DUTCH_NETHERLANDS,i.NORWEGIAN_NYNORSK_NORWAY,i.NORTHERN_SOTHO,i.NORTHERN_SOTHO_SOUTH_AFRICA,i.PUNJABI,i.PUNJABI_INDIA,i.POLISH,i.POLISH_POLAND,i.PASHTO,i.PASHTO_AFGHANISTAN,i.PORTUGUESE,i.PORTUGUESE_BRAZIL,i.PORTUGUESE_PORTUGAL,i.QUECHUA,i.QUECHUA_BOLIVIA,i.QUECHUA_ECUADOR,i.QUECHUA_PERU,i.ROMANIAN,i.ROMANIAN_ROMANIA,i.RUSSIAN,i.RUSSIAN_RUSSIA,i.SANSKRIT,i.SANSKRIT_INDIA,i.SAMI_NORTHERN,i.SAMI_NORTHERN_FINLAND,i.SAMI_NORTHERN_NORWAY,i.SAMI_NORTHERN_SWEDEN,i.SLOVAK,i.SLOVAK_SLOVAKIA,i.SLOVENIAN,i.SLOVENIAN_SLOVENIA,i.ALBANIAN,i.ALBANIAN_ALBANIA,i.SERBIAN_LATIN_BOSNIA_AND_HERZEGOVINA,i.SERBIAN_LATIN_SERBIA_AND_MONTENEGRO,i.SWEDISH,i.SWEDISH_FINLAND,i.SWEDISH_SWEDEN,i.SWAHILI_KENYA,i.SYRIAC_SYRIA,i.TAMIL,i.TAMIL_INDIA,i.TELUGU,i.TELUGU_INDIA,i.THAI,i.THAI_THAILAND,i.TAGALOG,i.TAGALOG_PHILIPPINES,i.TSWANA,i.TSWANA_SOUTH_AFRICA,i.TURKISH,i.TURKISH_TURKEY,i.TATAR,i.TATAR_RUSSIA,i.TSOGA,i.UKRAINIAN,i.UKRAINIAN_UKRAINE,i.URDU,i.URDU_ISLAMIC_REPUBLIC_OF_PAKISTAN,i.UZBEK_LATIN,i.UZBEK_LATIN_UZBEKISTAN,i.VIETNAMESE,i.VIETNAMESE_VIET_NAM,i.XHOSA,i.XHOSA_SOUTH_AFRICA,i.CHINESE,i.CHINESE_SIMPLIFIED,i.CHINESE_HONG_KONG,i.CHINESE_MACAU,i.CHINESE_SINGAPORE,i.CHINESE_TRADITIONAL,i.ZULU_SOUTH_AFRICA],Ww=(e,t=Qe.internationalization.locales,n=Qe.internationalization.defaultLocale)=>{const r=[e].flat(),u=o=>o.trim().toLowerCase();try{for(const o of r){const l=u(o),c=t.find(m=>u(m)===l);if(c)return c;const[f]=l.split("-"),h=t.find(m=>u(m).split("-")[0]===f);if(h)return h}}catch{}return n},qw=(e,t=Qe.internationalization.locales)=>{const n=qR(e);let r=e;e.endsWith("/")&&(r=e.slice(0,-1));const u=n?new URL(r):new URL(r,"http://example.com"),o=u.pathname;o.startsWith("/")||(u.pathname=`/${o}`);const l=o.split("/"),c=l[1];if(t.includes(c)){l.splice(1,1);const f=l.join("/")??"/";u.pathname=f}return n?u.toString():u.toString().replace("http://example.com","")},Xw=(e,t=Qe.internationalization.locales,n=Qe.internationalization.defaultLocale,r=Qe.middleware.prefixDefault)=>{const u=qw(e,t),o=qR(u),l=o?new URL(u):new URL(u,"http://example.com");let c=l.pathname;c.startsWith("/")||(c=`/${c}`);const f=o?`${l.protocol}//${l.host}`:"";return t.reduce((m,E)=>{const g=E.toString()===n.toString();let S=r||!g?`/${E}${c}`:c;S.length>1&&S.endsWith("/")&&(S=S.slice(0,-1));const C=o?`${f}${S}${l.search}${l.hash}`:`${S}${l.search}${l.hash}`;return m[E]=C,m},{})},Qw=(e,t,n=Qe.internationalization.locales,r=Qe.internationalization.defaultLocale,u=Qe.middleware.prefixDefault)=>Xw(e,n,r,u)[t],XR=y.createContext(void 0),Jw=e=>Js("INTLAYER_EDITED_CONTENT_CHANGED/get",e),QR=y.createContext(void 0),Jy=(e,t)=>typeof e=="function"?e(t):e,e2=({children:e})=>{const{localeDictionaries:t}=$R(),[n,r]=ka("INTLAYER_EDITED_CONTENT_CHANGED"),u=_=>{let S=Jy(_);return r(C=>(S=Jy(_,C==null?void 0:C[S.key]),{...C,[S.key]:S})),S},o=(_,S)=>{r(C=>({...C,[_]:{...C==null?void 0:C[_],content:S}}))},l=(_,S,C=[],v=!0)=>{r(R=>{var B,O;const D=(B=t[_])==null?void 0:B.content,b=structuredClone(((O=R==null?void 0:R[_])==null?void 0:O.content)??D);let L=C;if(!v){let H=0;const U=C.slice(0,-1),G=C[C.length-1];let fe=G.key;for(;typeof Fi(b,L)<"u";)H++,fe=H===0?G.key:`${G.key} (${H})`,L=[...U,{...G,key:fe}]}const x=Zy(b,L,S);return{...R,[_]:{...R==null?void 0:R[_],content:x}}})},c=(_,S,C=[])=>{r(v=>{var L,x;const R=(L=t[_])==null?void 0:L.content,D=structuredClone(((x=v==null?void 0:v[_])==null?void 0:x.content)??R),b=jw(D,S,C);return{...v,[_]:{...v==null?void 0:v[_],content:b}}})},f=(_,S)=>{r(C=>{var L,x;const v=(L=t[_])==null?void 0:L.content,R=structuredClone(((x=C==null?void 0:C[_])==null?void 0:x.content)??v),D=Fi(v,S),b=Zy(R,S,D);return{...C,[_]:{...C==null?void 0:C[_],content:b}}})},h=_=>{r(S=>{const C={...S};return delete C[_],C})},m=_=>{r(S=>Object.entries(S).reduce((v,[R,D])=>R===_?v:{...v,[R]:D},{}))},E=()=>{r({})},g=(_,S)=>{var v;const C=((v=n==null?void 0:n[_])==null?void 0:v.content)??{};return Fi(C,S)};return N.jsx(XR.Provider,{value:{editedContent:n},children:N.jsx(QR.Provider,{value:{setEditedContentState:r,setEditedDictionary:u,setEditedContent:o,addEditedContent:l,renameEditedContent:c,removeEditedContent:f,restoreEditedContent:h,clearEditedDictionaryContent:m,clearEditedContent:E,getEditedContentValue:g},children:e})})},fo=()=>y.useContext(QR),Fn=()=>{const e=y.useContext(XR),t=fo();return{...e,...t}},JR=y.createContext(void 0),e9=y.createContext(void 0),t2=({children:e})=>{const[t,n]=ka("INTLAYER_FOCUSED_CONTENT_CHANGED",null),r=u=>{n(o=>o&&{...o,keyPath:u})};return N.jsx(JR.Provider,{value:{focusedContent:t},children:N.jsx(e9.Provider,{value:{setFocusedContent:n,setFocusedContentKeyPath:r},children:e})})},Xg=()=>{const e=y.useContext(e9);if(e===void 0)throw new Error("useFocusDictionaryActions must be used within a FocusDictionaryProvider");return e},Ou=()=>{const e=Xg(),t=y.useContext(JR);if(t===void 0)throw new Error("useFocusDictionaryState must be used within a FocusDictionaryProvider");return{...t,...e}},t9=y.createContext({enabled:!1}),n2=e=>ka("INTLAYER_EDITOR_ENABLED",!1,e),r2=e=>Js("INTLAYER_EDITOR_ENABLED/post",e),n9=e=>Js("INTLAYER_EDITOR_ENABLED/get",e),i2=({children:e})=>{const[t]=n2({emit:!1,receive:!0});return N.jsx(t9.Provider,{value:{enabled:t},children:e})},r9=()=>y.useContext(t9),u2=y.createContext(void 0),a2=y.createContext(void 0),s2=({children:e})=>{const[t,n]=y.useState({}),r=(u,o)=>{n(l=>({...l,[u]:{...l==null?void 0:l[u],content:o}}))};return N.jsx(u2.Provider,{value:{changedContent:t},children:N.jsx(a2.Provider,{value:{setChangedContent:r},children:e})})},e3=({children:e})=>{const t=Jw();return y.useEffect(()=>{t()},[]),N.jsx(pw,{children:N.jsx(e2,{children:N.jsx(t2,{children:e})})})},o2=({children:e,fallback:t})=>{const n=n9(),{enabled:r}=r9();return y.useEffect(()=>{r||n()},[r]),r?e:t},l2=({children:e,fallback:t})=>{const[n,r]=y.useState(!1);return y.useEffect(()=>{r(window.self!==window.top)},[]),n?e:t},c2=({children:e,configuration:t,...n})=>N.jsx(s2,{children:N.jsx(i2,{children:N.jsx(mw,{configuration:t,children:n.mode==="editor"?N.jsx(Ky,{...n,children:N.jsx(e3,{children:e})}):N.jsx(l2,{fallback:e,children:N.jsx(Ky,{...n,children:N.jsx(o2,{fallback:e,children:N.jsx(e3,{children:e})})})})})})}),d2=(e,t)=>ka("INTLAYER_URL_CHANGE",e,t),f2=e=>{const t=new MouseEvent("mousedown",{bubbles:!0,cancelable:!0,view:window}),n=new MouseEvent("click",{bubbles:!0,cancelable:!0,view:window});Object.assign(n,{iframeData:e}),Object.assign(t,{iframeData:e}),window.dispatchEvent(n),window.dispatchEvent(t)},h2=()=>Js("INTLAYER_IFRAME_CLICKED",f2);/*! js-cookie v3.0.5 | MIT */function v0(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)e[r]=n[r]}return e}var A2={read:function(e){return e[0]==='"'&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function TE(e,t){function n(u,o,l){if(!(typeof document>"u")){l=v0({},t,l),typeof l.expires=="number"&&(l.expires=new Date(Date.now()+l.expires*864e5)),l.expires&&(l.expires=l.expires.toUTCString()),u=encodeURIComponent(u).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var c="";for(var f in l)l[f]&&(c+="; "+f,l[f]!==!0&&(c+="="+l[f].split(";")[0]));return document.cookie=u+"="+e.write(o,u)+c}}function r(u){if(!(typeof document>"u"||arguments.length&&!u)){for(var o=document.cookie?document.cookie.split("; "):[],l={},c=0;c<o.length;c++){var f=o[c].split("="),h=f.slice(1).join("=");try{var m=decodeURIComponent(f[0]);if(l[m]=e.read(h,m),u===m)break}catch{}}return u?l[u]:l}}return Object.create({set:n,get:r,remove:function(u,o){n(u,"",v0({},o,{expires:-1}))},withAttributes:function(u){return TE(this.converter,v0({},this.attributes,u))},withConverter:function(u){return TE(v0({},this.converter,u),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(e)}})}var i9=TE(A2,{path:"/"});const{cookieName:u9}=Qe.middleware,m2={path:"/",expires:void 0,domain:void 0,secure:!1,sameSite:"strict"},Qg=i9.get(u9),a9=e=>{i9.set(u9,e,m2)},p2=()=>({localeCookie:Qg,setLocaleCookie:a9});var UR;const dh=y.createContext({locale:Qg??((UR=Qe==null?void 0:Qe.internationalization)==null?void 0:UR.defaultLocale),setLocale:()=>null,disableEditor:!1}),E2=()=>y.useContext(dh),g2=({locale:e,defaultLocale:t,children:n,setLocale:r,disableEditor:u})=>{const{internationalization:o}=Qe??{},{defaultLocale:l,locales:c}=o??{},f=e??Qg??t??l,[h,m]=ka("INTLAYER_CURRENT_LOCALE",f),g=r??(S=>{if(h.toString()!==S.toString()){if(!(c!=null&&c.map(String).includes(S))){console.error(`Locale ${S} is not available`);return}m(S),a9(S)}}),_=Ww(e??h);return N.jsx(dh.Provider,{value:{locale:_,setLocale:g,disableEditor:u},children:n})},mf=({children:e,value:t,additionalProps:n})=>{const r=y.isValidElement(e)?e:N.jsx(N.Fragment,{children:e});return new Proxy(r,{get(u,o,l){return o==="value"?t:n&&Object.keys(n).includes(o)?n[o]:Reflect.get(u,o,l)}})},Jg=({dictionaryKey:e,keyPath:t,children:n})=>{const r=fo();return r?r.getEditedContentValue(e,t)??n:n},_2=e=>Jg(e),S2=250,N2=({children:e,onPress:t,onClickOutside:n,pressDuration:r=S2,isSelecting:u,...o})=>{const l=y.useRef(null),[c,f]=y.useState(!1),[h,m]=y.useState(u),E=y.useRef(null),g=typeof e=="string",_=()=>{m(!0),t()},S=()=>{E.current=setTimeout(()=>{_()},r)},C=()=>{E.current&&(clearTimeout(E.current),E.current=null)},v=()=>{C(),S()},R=()=>{f(!0)},D=()=>{f(!1),C()},b=y.useCallback(B=>{l.current&&!l.current.contains(B.target)&&(m(!1),n==null||n())},[n]);y.useEffect(()=>(document.addEventListener("mousedown",b),()=>{document.removeEventListener("mousedown",b)}),[b]);const L=B=>{h&&(B.preventDefault(),B.stopPropagation())},x=()=>{m(!1)};return N.jsx("span",{style:{display:g?"inline":"inline-block",cursor:"pointer",userSelect:"none",borderRadius:"0.375rem",outlineWidth:"2px",outlineOffset:"4px",outlineStyle:"solid",outlineColor:u||h||c?"inherit":"transparent",transition:"all 100ms 50ms ease-in-out"},role:"button",tabIndex:0,onKeyUp:()=>null,onClick:L,onMouseDown:v,onMouseUp:D,onMouseLeave:D,onTouchStart:v,onTouchEnd:D,onTouchCancel:D,onBlur:x,onMouseEnter:R,ref:l,...o,children:e})},I2=({children:e,dictionaryKey:t,keyPath:n})=>{const{focusedContent:r,setFocusedContent:u}=Ou(),o=y.useCallback(()=>u({dictionaryKey:t,keyPath:n}),[t,n]),l=y.useMemo(()=>{var c;return((r==null?void 0:r.dictionaryKey)===t&&(((c=r==null?void 0:r.keyPath)==null?void 0:c.length)??0)>0&&Gc((r==null?void 0:r.keyPath)??[],n))??!1},[r,n,t]);return N.jsx(N2,{onPress:o,isSelecting:l,children:e})},pf=({children:e,...t})=>{const{enabled:n}=r9(),{disableEditor:r}=E2();return n&&!r?N.jsx(I2,{...t,children:e}):e},y2=y.createContext({renderMarkdown:e=>e}),C2=()=>y.useContext(y2),v2=({dictionaryKey:e,keyPath:t,children:n})=>{const{renderMarkdown:r}=C2(),u=Jg({dictionaryKey:e,keyPath:t,children:n});return r(u)},R2=({dictionaryKey:e,keyPath:t,children:n,metadataKeyPath:r})=>{const u=Jg({dictionaryKey:e,keyPath:t,children:n}),o=YR(u);return Fi(o,r)},D2={id:"intlayer-node-plugin",canHandle:e=>typeof e=="bigint"||typeof e=="string"||typeof e=="number",transform:(e,{plugins:t,...n})=>mf({...n,value:n.children,children:N.jsx(pf,{...n,children:N.jsx(_2,{...n,children:n.children})})})},T2={id:"react-node-plugin",canHandle:e=>typeof e=="object"&&typeof e.props<"u"&&typeof e.key<"u",transform:(e,{plugins:t,...n})=>mf({...n,value:"[[react-element]]",children:N.jsx(pf,{...n,children:"renderReactElement(node)"})})},b2={id:"markdown-string-plugin",canHandle:e=>typeof e=="string",transform:(e,t,n)=>{const{plugins:r,...u}=t,o=YR(e),c=n(o,{plugins:[{id:"markdown-metadata-plugin",canHandle:f=>typeof f=="string"||typeof f=="number"||typeof f=="boolean"||!f,transform:(f,h)=>mf({...h,value:f,children:N.jsx(pf,{...u,children:N.jsx(R2,{...u,metadataKeyPath:h.keyPath,children:f})})})}],dictionaryKey:u.dictionaryKey,keyPath:[]});return mf({...t,value:e,children:N.jsx(pf,{...u,children:N.jsx(v2,{...u,children:e})}),additionalProps:{metadata:c}})}},x2={id:"markdown-plugin",canHandle:e=>typeof e=="object"&&(e==null?void 0:e.nodeType)===$.Markdown,transform:(e,t,n)=>{const r=[...t.keyPath,{type:$.Markdown}],u=e[$.Markdown];return n(u,{...t,children:u,keyPath:r,plugins:[b2,...t.plugins??[]]})}},B2=(e,t,n)=>ZR(e,t,[D2,T2,x2]),sn=(e,t)=>{const{locale:n}=y.useContext(dh);return B2(e,n)},e4=({onLocaleChange:e}={})=>{const{prefixDefault:t}=(Qe==null?void 0:Qe.middleware)??{},{defaultLocale:n,locales:r}=(Qe==null?void 0:Qe.internationalization)??{},{locale:u,setLocale:o}=y.useContext(dh),{setLocaleCookie:l}=p2();return{locale:u,defaultLocale:n,availableLocales:r,localeList:Zw,setLocale:f=>{if(!(r!=null&&r.map(String).includes(f))){console.error(`Locale ${f} is not available`);return}o(f),l(f),e==null||e(f)}}};var Fl={},t3;function F2(){if(t3)return Fl;t3=1,Object.defineProperty(Fl,"__esModule",{value:!0}),Fl.parse=l,Fl.serialize=h;const e=/^[\u0021-\u003A\u003C\u003E-\u007E]+$/,t=/^[\u0021-\u003A\u003C-\u007E]*$/,n=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,r=/^[\u0020-\u003A\u003D-\u007E]*$/,u=Object.prototype.toString,o=(()=>{const g=function(){};return g.prototype=Object.create(null),g})();function l(g,_){const S=new o,C=g.length;if(C<2)return S;const v=(_==null?void 0:_.decode)||m;let R=0;do{const D=g.indexOf("=",R);if(D===-1)break;const b=g.indexOf(";",R),L=b===-1?C:b;if(D>L){R=g.lastIndexOf(";",D-1)+1;continue}const x=c(g,R,D),B=f(g,D,x),O=g.slice(x,B);if(S[O]===void 0){let H=c(g,D+1,L),U=f(g,L,H);const G=v(g.slice(H,U));S[O]=G}R=L+1}while(R<C);return S}function c(g,_,S){do{const C=g.charCodeAt(_);if(C!==32&&C!==9)return _}while(++_<S);return S}function f(g,_,S){for(;_>S;){const C=g.charCodeAt(--_);if(C!==32&&C!==9)return _+1}return S}function h(g,_,S){const C=(S==null?void 0:S.encode)||encodeURIComponent;if(!e.test(g))throw new TypeError(`argument name is invalid: ${g}`);const v=C(_);if(!t.test(v))throw new TypeError(`argument val is invalid: ${_}`);let R=g+"="+v;if(!S)return R;if(S.maxAge!==void 0){if(!Number.isInteger(S.maxAge))throw new TypeError(`option maxAge is invalid: ${S.maxAge}`);R+="; Max-Age="+S.maxAge}if(S.domain){if(!n.test(S.domain))throw new TypeError(`option domain is invalid: ${S.domain}`);R+="; Domain="+S.domain}if(S.path){if(!r.test(S.path))throw new TypeError(`option path is invalid: ${S.path}`);R+="; Path="+S.path}if(S.expires){if(!E(S.expires)||!Number.isFinite(S.expires.valueOf()))throw new TypeError(`option expires is invalid: ${S.expires}`);R+="; Expires="+S.expires.toUTCString()}if(S.httpOnly&&(R+="; HttpOnly"),S.secure&&(R+="; Secure"),S.partitioned&&(R+="; Partitioned"),S.priority)switch(typeof S.priority=="string"?S.priority.toLowerCase():void 0){case"low":R+="; Priority=Low";break;case"medium":R+="; Priority=Medium";break;case"high":R+="; Priority=High";break;default:throw new TypeError(`option priority is invalid: ${S.priority}`)}if(S.sameSite)switch(typeof S.sameSite=="string"?S.sameSite.toLowerCase():S.sameSite){case!0:case"strict":R+="; SameSite=Strict";break;case"lax":R+="; SameSite=Lax";break;case"none":R+="; SameSite=None";break;default:throw new TypeError(`option sameSite is invalid: ${S.sameSite}`)}return R}function m(g){if(g.indexOf("%")===-1)return g;try{return decodeURIComponent(g)}catch{return g}}function E(g){return u.call(g)==="[object Date]"}return Fl}F2();/**
51
+ * react-router v7.3.0
52
+ *
53
+ * Copyright (c) Remix Software Inc.
54
+ *
55
+ * This source code is licensed under the MIT license found in the
56
+ * LICENSE.md file in the root directory of this source tree.
57
+ *
58
+ * @license MIT
59
+ */var n3="popstate";function O2(e={}){function t(r,u){let{pathname:o,search:l,hash:c}=r.location;return bE("",{pathname:o,search:l,hash:c},u.state&&u.state.usr||null,u.state&&u.state.key||"default")}function n(r,u){return typeof u=="string"?u:sc(u)}return w2(t,n,null,e)}function bt(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function ei(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function L2(){return Math.random().toString(36).substring(2,10)}function r3(e,t){return{usr:e.state,key:e.key,idx:t}}function bE(e,t,n=null,r){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?ho(t):t,state:n,key:t&&t.key||r||L2()}}function sc({pathname:e="/",search:t="",hash:n=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),n&&n!=="#"&&(e+=n.charAt(0)==="#"?n:"#"+n),e}function ho(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function w2(e,t,n,r={}){let{window:u=document.defaultView,v5Compat:o=!1}=r,l=u.history,c="POP",f=null,h=m();h==null&&(h=0,l.replaceState({...l.state,idx:h},""));function m(){return(l.state||{idx:null}).idx}function E(){c="POP";let v=m(),R=v==null?null:v-h;h=v,f&&f({action:c,location:C.location,delta:R})}function g(v,R){c="PUSH";let D=bE(C.location,v,R);h=m()+1;let b=r3(D,h),L=C.createHref(D);try{l.pushState(b,"",L)}catch(x){if(x instanceof DOMException&&x.name==="DataCloneError")throw x;u.location.assign(L)}o&&f&&f({action:c,location:C.location,delta:1})}function _(v,R){c="REPLACE";let D=bE(C.location,v,R);h=m();let b=r3(D,h),L=C.createHref(D);l.replaceState(b,"",L),o&&f&&f({action:c,location:C.location,delta:0})}function S(v){let R=u.location.origin!=="null"?u.location.origin:u.location.href,D=typeof v=="string"?v:sc(v);return D=D.replace(/ $/,"%20"),bt(R,`No window.location.(origin|href) available to create URL for href: ${D}`),new URL(D,R)}let C={get action(){return c},get location(){return e(u,l)},listen(v){if(f)throw new Error("A history only accepts one active listener");return u.addEventListener(n3,E),f=v,()=>{u.removeEventListener(n3,E),f=null}},createHref(v){return t(u,v)},createURL:S,encodeLocation(v){let R=S(v);return{pathname:R.pathname,search:R.search,hash:R.hash}},push:g,replace:_,go(v){return l.go(v)}};return C}function s9(e,t,n="/"){return M2(e,t,n,!1)}function M2(e,t,n,r){let u=typeof t=="string"?ho(t):t,o=wi(u.pathname||"/",n);if(o==null)return null;let l=o9(e);P2(l);let c=null;for(let f=0;c==null&&f<l.length;++f){let h=Z2(o);c=$2(l[f],h,r)}return c}function o9(e,t=[],n=[],r=""){let u=(o,l,c)=>{let f={relativePath:c===void 0?o.path||"":c,caseSensitive:o.caseSensitive===!0,childrenIndex:l,route:o};f.relativePath.startsWith("/")&&(bt(f.relativePath.startsWith(r),`Absolute route path "${f.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),f.relativePath=f.relativePath.slice(r.length));let h=Oi([r,f.relativePath]),m=n.concat(f);o.children&&o.children.length>0&&(bt(o.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${h}".`),o9(o.children,t,m,h)),!(o.path==null&&!o.index)&&t.push({path:h,score:z2(h,o.index),routesMeta:m})};return e.forEach((o,l)=>{var c;if(o.path===""||!((c=o.path)!=null&&c.includes("?")))u(o,l);else for(let f of l9(o.path))u(o,l,f)}),t}function l9(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,u=n.endsWith("?"),o=n.replace(/\?$/,"");if(r.length===0)return u?[o,""]:[o];let l=l9(r.join("/")),c=[];return c.push(...l.map(f=>f===""?o:[o,f].join("/"))),u&&c.push(...l),c.map(f=>e.startsWith("/")&&f===""?"/":f)}function P2(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:K2(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}var H2=/^:[\w-]+$/,U2=3,k2=2,G2=1,V2=10,j2=-2,i3=e=>e==="*";function z2(e,t){let n=e.split("/"),r=n.length;return n.some(i3)&&(r+=j2),t&&(r+=k2),n.filter(u=>!i3(u)).reduce((u,o)=>u+(H2.test(o)?U2:o===""?G2:V2),r)}function K2(e,t){return e.length===t.length&&e.slice(0,-1).every((r,u)=>r===t[u])?e[e.length-1]-t[t.length-1]:0}function $2(e,t,n=!1){let{routesMeta:r}=e,u={},o="/",l=[];for(let c=0;c<r.length;++c){let f=r[c],h=c===r.length-1,m=o==="/"?t:t.slice(o.length)||"/",E=Ef({path:f.relativePath,caseSensitive:f.caseSensitive,end:h},m),g=f.route;if(!E&&h&&n&&!r[r.length-1].route.index&&(E=Ef({path:f.relativePath,caseSensitive:f.caseSensitive,end:!1},m)),!E)return null;Object.assign(u,E.params),l.push({params:u,pathname:Oi([o,E.pathname]),pathnameBase:Q2(Oi([o,E.pathnameBase])),route:g}),E.pathnameBase!=="/"&&(o=Oi([o,E.pathnameBase]))}return l}function Ef(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=Y2(e.path,e.caseSensitive,e.end),u=t.match(n);if(!u)return null;let o=u[0],l=o.replace(/(.)\/+$/,"$1"),c=u.slice(1);return{params:r.reduce((h,{paramName:m,isOptional:E},g)=>{if(m==="*"){let S=c[g]||"";l=o.slice(0,o.length-S.length).replace(/(.)\/+$/,"$1")}const _=c[g];return E&&!_?h[m]=void 0:h[m]=(_||"").replace(/%2F/g,"/"),h},{}),pathname:o,pathnameBase:l,pattern:e}}function Y2(e,t=!1,n=!0){ei(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let r=[],u="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(l,c,f)=>(r.push({paramName:c,isOptional:f!=null}),f?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),u+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?u+="\\/*$":e!==""&&e!=="/"&&(u+="(?:(?=\\/|$))"),[new RegExp(u,t?void 0:"i"),r]}function Z2(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return ei(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function wi(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function W2(e,t="/"){let{pathname:n,search:r="",hash:u=""}=typeof e=="string"?ho(e):e;return{pathname:n?n.startsWith("/")?n:q2(n,t):t,search:J2(r),hash:eM(u)}}function q2(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(u=>{u===".."?n.length>1&&n.pop():u!=="."&&n.push(u)}),n.length>1?n.join("/"):"/"}function Ep(e,t,n,r){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function X2(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function c9(e){let t=X2(e);return t.map((n,r)=>r===t.length-1?n.pathname:n.pathnameBase)}function d9(e,t,n,r=!1){let u;typeof e=="string"?u=ho(e):(u={...e},bt(!u.pathname||!u.pathname.includes("?"),Ep("?","pathname","search",u)),bt(!u.pathname||!u.pathname.includes("#"),Ep("#","pathname","hash",u)),bt(!u.search||!u.search.includes("#"),Ep("#","search","hash",u)));let o=e===""||u.pathname==="",l=o?"/":u.pathname,c;if(l==null)c=n;else{let E=t.length-1;if(!r&&l.startsWith("..")){let g=l.split("/");for(;g[0]==="..";)g.shift(),E-=1;u.pathname=g.join("/")}c=E>=0?t[E]:"/"}let f=W2(u,c),h=l&&l!=="/"&&l.endsWith("/"),m=(o||l===".")&&n.endsWith("/");return!f.pathname.endsWith("/")&&(h||m)&&(f.pathname+="/"),f}var Oi=e=>e.join("/").replace(/\/\/+/g,"/"),Q2=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),J2=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,eM=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function tM(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}var f9=["POST","PUT","PATCH","DELETE"];new Set(f9);var nM=["GET",...f9];new Set(nM);var Ao=y.createContext(null);Ao.displayName="DataRouter";var fh=y.createContext(null);fh.displayName="DataRouterState";var h9=y.createContext({isTransitioning:!1});h9.displayName="ViewTransition";var rM=y.createContext(new Map);rM.displayName="Fetchers";var iM=y.createContext(null);iM.displayName="Await";var ui=y.createContext(null);ui.displayName="Navigation";var Vc=y.createContext(null);Vc.displayName="Location";var Gi=y.createContext({outlet:null,matches:[],isDataRoute:!1});Gi.displayName="Route";var t4=y.createContext(null);t4.displayName="RouteError";function uM(e,{relative:t}={}){bt(jc(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=y.useContext(ui),{hash:u,pathname:o,search:l}=zc(e,{relative:t}),c=o;return n!=="/"&&(c=o==="/"?n:Oi([n,o])),r.createHref({pathname:c,search:l,hash:u})}function jc(){return y.useContext(Vc)!=null}function Lu(){return bt(jc(),"useLocation() may be used only in the context of a <Router> component."),y.useContext(Vc).location}var A9="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function m9(e){y.useContext(ui).static||y.useLayoutEffect(e)}function aM(){let{isDataRoute:e}=y.useContext(Gi);return e?_M():sM()}function sM(){bt(jc(),"useNavigate() may be used only in the context of a <Router> component.");let e=y.useContext(Ao),{basename:t,navigator:n}=y.useContext(ui),{matches:r}=y.useContext(Gi),{pathname:u}=Lu(),o=JSON.stringify(c9(r)),l=y.useRef(!1);return m9(()=>{l.current=!0}),y.useCallback((f,h={})=>{if(ei(l.current,A9),!l.current)return;if(typeof f=="number"){n.go(f);return}let m=d9(f,JSON.parse(o),u,h.relative==="path");e==null&&t!=="/"&&(m.pathname=m.pathname==="/"?t:Oi([t,m.pathname])),(h.replace?n.replace:n.push)(m,h.state,h)},[t,n,o,u,e])}y.createContext(null);function zc(e,{relative:t}={}){let{matches:n}=y.useContext(Gi),{pathname:r}=Lu(),u=JSON.stringify(c9(n));return y.useMemo(()=>d9(e,JSON.parse(u),r,t==="path"),[e,u,r,t])}function oM(e,t){return p9(e,t)}function p9(e,t,n,r){var D;bt(jc(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:u,static:o}=y.useContext(ui),{matches:l}=y.useContext(Gi),c=l[l.length-1],f=c?c.params:{},h=c?c.pathname:"/",m=c?c.pathnameBase:"/",E=c&&c.route;{let b=E&&E.path||"";E9(h,!E||b.endsWith("*")||b.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${h}" (under <Route path="${b}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
60
+
61
+ Please change the parent <Route path="${b}"> to <Route path="${b==="/"?"*":`${b}/*`}">.`)}let g=Lu(),_;if(t){let b=typeof t=="string"?ho(t):t;bt(m==="/"||((D=b.pathname)==null?void 0:D.startsWith(m)),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${m}" but pathname "${b.pathname}" was given in the \`location\` prop.`),_=b}else _=g;let S=_.pathname||"/",C=S;if(m!=="/"){let b=m.replace(/^\//,"").split("/");C="/"+S.replace(/^\//,"").split("/").slice(b.length).join("/")}let v=!o&&n&&n.matches&&n.matches.length>0?n.matches:s9(e,{pathname:C});ei(E||v!=null,`No routes matched location "${_.pathname}${_.search}${_.hash}" `),ei(v==null||v[v.length-1].route.element!==void 0||v[v.length-1].route.Component!==void 0||v[v.length-1].route.lazy!==void 0,`Matched leaf route at location "${_.pathname}${_.search}${_.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let R=hM(v&&v.map(b=>Object.assign({},b,{params:Object.assign({},f,b.params),pathname:Oi([m,u.encodeLocation?u.encodeLocation(b.pathname).pathname:b.pathname]),pathnameBase:b.pathnameBase==="/"?m:Oi([m,u.encodeLocation?u.encodeLocation(b.pathnameBase).pathname:b.pathnameBase])})),l,n,r);return t&&R?y.createElement(Vc.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",..._},navigationType:"POP"}},R):R}function lM(){let e=gM(),t=tM(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",u={padding:"0.5rem",backgroundColor:r},o={padding:"2px 4px",backgroundColor:r},l=null;return console.error("Error handled by React Router default ErrorBoundary:",e),l=y.createElement(y.Fragment,null,y.createElement("p",null,"💿 Hey developer 👋"),y.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",y.createElement("code",{style:o},"ErrorBoundary")," or"," ",y.createElement("code",{style:o},"errorElement")," prop on your route.")),y.createElement(y.Fragment,null,y.createElement("h2",null,"Unexpected Application Error!"),y.createElement("h3",{style:{fontStyle:"italic"}},t),n?y.createElement("pre",{style:u},n):null,l)}var cM=y.createElement(lM,null),dM=class extends y.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return this.state.error!==void 0?y.createElement(Gi.Provider,{value:this.props.routeContext},y.createElement(t4.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function fM({routeContext:e,match:t,children:n}){let r=y.useContext(Ao);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),y.createElement(Gi.Provider,{value:e},n)}function hM(e,t=[],n=null,r=null){if(e==null){if(!n)return null;if(n.errors)e=n.matches;else if(t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let u=e,o=n==null?void 0:n.errors;if(o!=null){let f=u.findIndex(h=>h.route.id&&(o==null?void 0:o[h.route.id])!==void 0);bt(f>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(o).join(",")}`),u=u.slice(0,Math.min(u.length,f+1))}let l=!1,c=-1;if(n)for(let f=0;f<u.length;f++){let h=u[f];if((h.route.HydrateFallback||h.route.hydrateFallbackElement)&&(c=f),h.route.id){let{loaderData:m,errors:E}=n,g=h.route.loader&&!m.hasOwnProperty(h.route.id)&&(!E||E[h.route.id]===void 0);if(h.route.lazy||g){l=!0,c>=0?u=u.slice(0,c+1):u=[u[0]];break}}}return u.reduceRight((f,h,m)=>{let E,g=!1,_=null,S=null;n&&(E=o&&h.route.id?o[h.route.id]:void 0,_=h.route.errorElement||cM,l&&(c<0&&m===0?(E9("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),g=!0,S=null):c===m&&(g=!0,S=h.route.hydrateFallbackElement||null)));let C=t.concat(u.slice(0,m+1)),v=()=>{let R;return E?R=_:g?R=S:h.route.Component?R=y.createElement(h.route.Component,null):h.route.element?R=h.route.element:R=f,y.createElement(fM,{match:h,routeContext:{outlet:f,matches:C,isDataRoute:n!=null},children:R})};return n&&(h.route.ErrorBoundary||h.route.errorElement||m===0)?y.createElement(dM,{location:n.location,revalidation:n.revalidation,component:_,error:E,children:v(),routeContext:{outlet:null,matches:C,isDataRoute:!0}}):v()},null)}function n4(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function AM(e){let t=y.useContext(Ao);return bt(t,n4(e)),t}function mM(e){let t=y.useContext(fh);return bt(t,n4(e)),t}function pM(e){let t=y.useContext(Gi);return bt(t,n4(e)),t}function r4(e){let t=pM(e),n=t.matches[t.matches.length-1];return bt(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function EM(){return r4("useRouteId")}function gM(){var r;let e=y.useContext(t4),t=mM("useRouteError"),n=r4("useRouteError");return e!==void 0?e:(r=t.errors)==null?void 0:r[n]}function _M(){let{router:e}=AM("useNavigate"),t=r4("useNavigate"),n=y.useRef(!1);return m9(()=>{n.current=!0}),y.useCallback(async(u,o={})=>{ei(n.current,A9),n.current&&(typeof u=="number"?e.navigate(u):await e.navigate(u,{fromRouteId:t,...o}))},[e,t])}var u3={};function E9(e,t,n){!t&&!u3[e]&&(u3[e]=!0,ei(!1,n))}y.memo(SM);function SM({routes:e,future:t,state:n}){return p9(e,void 0,n,t)}function g9(e){bt(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function NM({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:u,static:o=!1}){bt(!jc(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let l=e.replace(/^\/*/,"/"),c=y.useMemo(()=>({basename:l,navigator:u,static:o,future:{}}),[l,u,o]);typeof n=="string"&&(n=ho(n));let{pathname:f="/",search:h="",hash:m="",state:E=null,key:g="default"}=n,_=y.useMemo(()=>{let S=wi(f,l);return S==null?null:{location:{pathname:S,search:h,hash:m,state:E,key:g},navigationType:r}},[l,f,h,m,E,g,r]);return ei(_!=null,`<Router basename="${l}"> is not able to match the URL "${f}${h}${m}" because it does not start with the basename, so the <Router> won't render anything.`),_==null?null:y.createElement(ui.Provider,{value:c},y.createElement(Vc.Provider,{children:t,value:_}))}function IM({children:e,location:t}){return oM(xE(e),t)}function xE(e,t=[]){let n=[];return y.Children.forEach(e,(r,u)=>{if(!y.isValidElement(r))return;let o=[...t,u];if(r.type===y.Fragment){n.push.apply(n,xE(r.props.children,o));return}bt(r.type===g9,`[${typeof r.type=="string"?r.type:r.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),bt(!r.props.index||!r.props.children,"An index route cannot have child routes.");let l={id:r.props.id||o.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,hydrateFallbackElement:r.props.hydrateFallbackElement,HydrateFallback:r.props.HydrateFallback,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.hasErrorBoundary===!0||r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(l.children=xE(r.props.children,o)),n.push(l)}),n}var Q0="get",J0="application/x-www-form-urlencoded";function hh(e){return e!=null&&typeof e.tagName=="string"}function yM(e){return hh(e)&&e.tagName.toLowerCase()==="button"}function CM(e){return hh(e)&&e.tagName.toLowerCase()==="form"}function vM(e){return hh(e)&&e.tagName.toLowerCase()==="input"}function RM(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function DM(e,t){return e.button===0&&(!t||t==="_self")&&!RM(e)}var R0=null;function TM(){if(R0===null)try{new FormData(document.createElement("form"),0),R0=!1}catch{R0=!0}return R0}var bM=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function gp(e){return e!=null&&!bM.has(e)?(ei(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${J0}"`),null):e}function xM(e,t){let n,r,u,o,l;if(CM(e)){let c=e.getAttribute("action");r=c?wi(c,t):null,n=e.getAttribute("method")||Q0,u=gp(e.getAttribute("enctype"))||J0,o=new FormData(e)}else if(yM(e)||vM(e)&&(e.type==="submit"||e.type==="image")){let c=e.form;if(c==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let f=e.getAttribute("formaction")||c.getAttribute("action");if(r=f?wi(f,t):null,n=e.getAttribute("formmethod")||c.getAttribute("method")||Q0,u=gp(e.getAttribute("formenctype"))||gp(c.getAttribute("enctype"))||J0,o=new FormData(c,e),!TM()){let{name:h,type:m,value:E}=e;if(m==="image"){let g=h?`${h}.`:"";o.append(`${g}x`,"0"),o.append(`${g}y`,"0")}else h&&o.append(h,E)}}else{if(hh(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=Q0,r=null,u=J0,l=e}return o&&u==="text/plain"&&(l=o,o=void 0),{action:r,method:n.toLowerCase(),encType:u,formData:o,body:l}}function i4(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}async function BM(e,t){if(e.id in t)return t[e.id];try{let n=await import(e.module);return t[e.id]=n,n}catch(n){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(n),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function FM(e){return e==null?!1:e.href==null?e.rel==="preload"&&typeof e.imageSrcSet=="string"&&typeof e.imageSizes=="string":typeof e.rel=="string"&&typeof e.href=="string"}async function OM(e,t,n){let r=await Promise.all(e.map(async u=>{let o=t.routes[u.route.id];if(o){let l=await BM(o,n);return l.links?l.links():[]}return[]}));return PM(r.flat(1).filter(FM).filter(u=>u.rel==="stylesheet"||u.rel==="preload").map(u=>u.rel==="stylesheet"?{...u,rel:"prefetch",as:"style"}:{...u,rel:"prefetch"}))}function a3(e,t,n,r,u,o){let l=(f,h)=>n[h]?f.route.id!==n[h].route.id:!0,c=(f,h)=>{var m;return n[h].pathname!==f.pathname||((m=n[h].route.path)==null?void 0:m.endsWith("*"))&&n[h].params["*"]!==f.params["*"]};return o==="assets"?t.filter((f,h)=>l(f,h)||c(f,h)):o==="data"?t.filter((f,h)=>{var E;let m=r.routes[f.route.id];if(!m||!m.hasLoader)return!1;if(l(f,h)||c(f,h))return!0;if(f.route.shouldRevalidate){let g=f.route.shouldRevalidate({currentUrl:new URL(u.pathname+u.search+u.hash,window.origin),currentParams:((E=n[0])==null?void 0:E.params)||{},nextUrl:new URL(e,window.origin),nextParams:f.params,defaultShouldRevalidate:!0});if(typeof g=="boolean")return g}return!0}):[]}function LM(e,t,{includeHydrateFallback:n}={}){return wM(e.map(r=>{let u=t.routes[r.route.id];if(!u)return[];let o=[u.module];return u.clientActionModule&&(o=o.concat(u.clientActionModule)),u.clientLoaderModule&&(o=o.concat(u.clientLoaderModule)),n&&u.hydrateFallbackModule&&(o=o.concat(u.hydrateFallbackModule)),u.imports&&(o=o.concat(u.imports)),o}).flat(1))}function wM(e){return[...new Set(e)]}function MM(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function PM(e,t){let n=new Set;return new Set(t),e.reduce((r,u)=>{let o=JSON.stringify(MM(u));return n.has(o)||(n.add(o),r.push({key:o,link:u})),r},[])}function HM(e,t){let n=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return n.pathname==="/"?n.pathname="_root.data":t&&wi(n.pathname,t)==="/"?n.pathname=`${t.replace(/\/$/,"")}/_root.data`:n.pathname=`${n.pathname.replace(/\/$/,"")}.data`,n}function _9(){let e=y.useContext(Ao);return i4(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function UM(){let e=y.useContext(fh);return i4(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var u4=y.createContext(void 0);u4.displayName="FrameworkContext";function S9(){let e=y.useContext(u4);return i4(e,"You must render this element inside a <HydratedRouter> element"),e}function kM(e,t){let n=y.useContext(u4),[r,u]=y.useState(!1),[o,l]=y.useState(!1),{onFocus:c,onBlur:f,onMouseEnter:h,onMouseLeave:m,onTouchStart:E}=t,g=y.useRef(null);y.useEffect(()=>{if(e==="render"&&l(!0),e==="viewport"){let C=R=>{R.forEach(D=>{l(D.isIntersecting)})},v=new IntersectionObserver(C,{threshold:.5});return g.current&&v.observe(g.current),()=>{v.disconnect()}}},[e]),y.useEffect(()=>{if(r){let C=setTimeout(()=>{l(!0)},100);return()=>{clearTimeout(C)}}},[r]);let _=()=>{u(!0)},S=()=>{u(!1),l(!1)};return n?e!=="intent"?[o,g,{}]:[o,g,{onFocus:Ol(c,_),onBlur:Ol(f,S),onMouseEnter:Ol(h,_),onMouseLeave:Ol(m,S),onTouchStart:Ol(E,_)}]:[!1,g,{}]}function Ol(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function GM({page:e,...t}){let{router:n}=_9(),r=y.useMemo(()=>s9(n.routes,e,n.basename),[n.routes,e,n.basename]);return r?y.createElement(jM,{page:e,matches:r,...t}):null}function VM(e){let{manifest:t,routeModules:n}=S9(),[r,u]=y.useState([]);return y.useEffect(()=>{let o=!1;return OM(e,t,n).then(l=>{o||u(l)}),()=>{o=!0}},[e,t,n]),r}function jM({page:e,matches:t,...n}){let r=Lu(),{manifest:u,routeModules:o}=S9(),{basename:l}=_9(),{loaderData:c,matches:f}=UM(),h=y.useMemo(()=>a3(e,t,f,u,r,"data"),[e,t,f,u,r]),m=y.useMemo(()=>a3(e,t,f,u,r,"assets"),[e,t,f,u,r]),E=y.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let S=new Set,C=!1;if(t.forEach(R=>{var b;let D=u.routes[R.route.id];!D||!D.hasLoader||(!h.some(L=>L.route.id===R.route.id)&&R.route.id in c&&((b=o[R.route.id])!=null&&b.shouldRevalidate)||D.hasClientLoader?C=!0:S.add(R.route.id))}),S.size===0)return[];let v=HM(e,l);return C&&S.size>0&&v.searchParams.set("_routes",t.filter(R=>S.has(R.route.id)).map(R=>R.route.id).join(",")),[v.pathname+v.search]},[l,c,r,u,h,t,e,o]),g=y.useMemo(()=>LM(m,u),[m,u]),_=VM(m);return y.createElement(y.Fragment,null,E.map(S=>y.createElement("link",{key:S,rel:"prefetch",as:"fetch",href:S,...n})),g.map(S=>y.createElement("link",{key:S,rel:"modulepreload",href:S,...n})),_.map(({key:S,link:C})=>y.createElement("link",{key:S,...C})))}function zM(...e){return t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})}}var N9=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{N9&&(window.__reactRouterVersion="7.3.0")}catch{}function KM({basename:e,children:t,window:n}){let r=y.useRef();r.current==null&&(r.current=O2({window:n,v5Compat:!0}));let u=r.current,[o,l]=y.useState({action:u.action,location:u.location}),c=y.useCallback(f=>{y.startTransition(()=>l(f))},[l]);return y.useLayoutEffect(()=>u.listen(c),[u,c]),y.createElement(NM,{basename:e,children:t,location:o.location,navigationType:o.action,navigator:u})}var I9=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,y9=y.forwardRef(function({onClick:t,discover:n="render",prefetch:r="none",relative:u,reloadDocument:o,replace:l,state:c,target:f,to:h,preventScrollReset:m,viewTransition:E,...g},_){let{basename:S}=y.useContext(ui),C=typeof h=="string"&&I9.test(h),v,R=!1;if(typeof h=="string"&&C&&(v=h,N9))try{let U=new URL(window.location.href),G=h.startsWith("//")?new URL(U.protocol+h):new URL(h),fe=wi(G.pathname,S);G.origin===U.origin&&fe!=null?h=fe+G.search+G.hash:R=!0}catch{ei(!1,`<Link to="${h}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let D=uM(h,{relative:u}),[b,L,x]=kM(r,g),B=WM(h,{replace:l,state:c,target:f,preventScrollReset:m,relative:u,viewTransition:E});function O(U){t&&t(U),U.defaultPrevented||B(U)}let H=y.createElement("a",{...g,...x,href:v||D,onClick:R||o?t:O,ref:zM(_,L),target:f,"data-discover":!C&&n==="render"?"true":void 0});return b&&!C?y.createElement(y.Fragment,null,H,y.createElement(GM,{page:D})):H});y9.displayName="Link";var $M=y.forwardRef(function({"aria-current":t="page",caseSensitive:n=!1,className:r="",end:u=!1,style:o,to:l,viewTransition:c,children:f,...h},m){let E=zc(l,{relative:h.relative}),g=Lu(),_=y.useContext(fh),{navigator:S,basename:C}=y.useContext(ui),v=_!=null&&e8(E)&&c===!0,R=S.encodeLocation?S.encodeLocation(E).pathname:E.pathname,D=g.pathname,b=_&&_.navigation&&_.navigation.location?_.navigation.location.pathname:null;n||(D=D.toLowerCase(),b=b?b.toLowerCase():null,R=R.toLowerCase()),b&&C&&(b=wi(b,C)||b);const L=R!=="/"&&R.endsWith("/")?R.length-1:R.length;let x=D===R||!u&&D.startsWith(R)&&D.charAt(L)==="/",B=b!=null&&(b===R||!u&&b.startsWith(R)&&b.charAt(R.length)==="/"),O={isActive:x,isPending:B,isTransitioning:v},H=x?t:void 0,U;typeof r=="function"?U=r(O):U=[r,x?"active":null,B?"pending":null,v?"transitioning":null].filter(Boolean).join(" ");let G=typeof o=="function"?o(O):o;return y.createElement(y9,{...h,"aria-current":H,className:U,ref:m,style:G,to:l,viewTransition:c},typeof f=="function"?f(O):f)});$M.displayName="NavLink";var YM=y.forwardRef(({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:r,replace:u,state:o,method:l=Q0,action:c,onSubmit:f,relative:h,preventScrollReset:m,viewTransition:E,...g},_)=>{let S=QM(),C=JM(c,{relative:h}),v=l.toLowerCase()==="get"?"get":"post",R=typeof c=="string"&&I9.test(c),D=b=>{if(f&&f(b),b.defaultPrevented)return;b.preventDefault();let L=b.nativeEvent.submitter,x=(L==null?void 0:L.getAttribute("formmethod"))||l;S(L||b.currentTarget,{fetcherKey:t,method:x,navigate:n,replace:u,state:o,relative:h,preventScrollReset:m,viewTransition:E})};return y.createElement("form",{ref:_,method:v,action:C,onSubmit:r?f:D,...g,"data-discover":!R&&e==="render"?"true":void 0})});YM.displayName="Form";function ZM(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function C9(e){let t=y.useContext(Ao);return bt(t,ZM(e)),t}function WM(e,{target:t,replace:n,state:r,preventScrollReset:u,relative:o,viewTransition:l}={}){let c=aM(),f=Lu(),h=zc(e,{relative:o});return y.useCallback(m=>{if(DM(m,t)){m.preventDefault();let E=n!==void 0?n:sc(f)===sc(h);c(e,{replace:E,state:r,preventScrollReset:u,relative:o,viewTransition:l})}},[f,c,h,n,r,t,e,u,o,l])}var qM=0,XM=()=>`__${String(++qM)}__`;function QM(){let{router:e}=C9("useSubmit"),{basename:t}=y.useContext(ui),n=EM();return y.useCallback(async(r,u={})=>{let{action:o,method:l,encType:c,formData:f,body:h}=xM(r,t);if(u.navigate===!1){let m=u.fetcherKey||XM();await e.fetch(m,n,u.action||o,{preventScrollReset:u.preventScrollReset,formData:f,body:h,formMethod:u.method||l,formEncType:u.encType||c,flushSync:u.flushSync})}else await e.navigate(u.action||o,{preventScrollReset:u.preventScrollReset,formData:f,body:h,formMethod:u.method||l,formEncType:u.encType||c,replace:u.replace,state:u.state,fromRouteId:n,flushSync:u.flushSync,viewTransition:u.viewTransition})},[e,t,n])}function JM(e,{relative:t}={}){let{basename:n}=y.useContext(ui),r=y.useContext(Gi);bt(r,"useFormAction must be used inside a RouteContext");let[u]=r.matches.slice(-1),o={...zc(e||".",{relative:t})},l=Lu();if(e==null){o.search=l.search;let c=new URLSearchParams(o.search),f=c.getAll("index");if(f.some(m=>m==="")){c.delete("index"),f.filter(E=>E).forEach(E=>c.append("index",E));let m=c.toString();o.search=m?`?${m}`:""}}return(!e||e===".")&&u.route.index&&(o.search=o.search?o.search.replace(/^\?/,"?index&"):"?index"),n!=="/"&&(o.pathname=o.pathname==="/"?n:Oi([n,o.pathname])),sc(o)}function e8(e,t={}){let n=y.useContext(h9);bt(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=C9("useViewTransitionState"),u=zc(e,{relative:t.relative});if(!n.isTransitioning)return!1;let o=wi(n.currentLocation.pathname,r)||n.currentLocation.pathname,l=wi(n.nextLocation.pathname,r)||n.nextLocation.pathname;return Ef(u.pathname,l)!=null||Ef(u.pathname,o)!=null}new TextEncoder;var Ga=kR();const t8=lh(Ga);function v9(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var u=e.length;for(t=0;t<u;t++)e[t]&&(n=v9(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Ah(){for(var e,t,n=0,r="",u=arguments.length;n<u;n++)(e=arguments[n])&&(t=v9(e))&&(r&&(r+=" "),r+=t);return r}const a4="-",n8=e=>{const t=i8(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:l=>{const c=l.split(a4);return c[0]===""&&c.length!==1&&c.shift(),R9(c,t)||r8(l)},getConflictingClassGroupIds:(l,c)=>{const f=n[l]||[];return c&&r[l]?[...f,...r[l]]:f}}},R9=(e,t)=>{var l;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),u=r?R9(e.slice(1),r):void 0;if(u)return u;if(t.validators.length===0)return;const o=e.join(a4);return(l=t.validators.find(({validator:c})=>c(o)))==null?void 0:l.classGroupId},s3=/^\[(.+)\]$/,r8=e=>{if(s3.test(e)){const t=s3.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},i8=e=>{const{theme:t,classGroups:n}=e,r={nextPart:new Map,validators:[]};for(const u in n)BE(n[u],r,u,t);return r},BE=(e,t,n,r)=>{e.forEach(u=>{if(typeof u=="string"){const o=u===""?t:o3(t,u);o.classGroupId=n;return}if(typeof u=="function"){if(u8(u)){BE(u(r),t,n,r);return}t.validators.push({validator:u,classGroupId:n});return}Object.entries(u).forEach(([o,l])=>{BE(l,o3(t,o),n,r)})})},o3=(e,t)=>{let n=e;return t.split(a4).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},u8=e=>e.isThemeGetter,a8=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const u=(o,l)=>{n.set(o,l),t++,t>e&&(t=0,r=n,n=new Map)};return{get(o){let l=n.get(o);if(l!==void 0)return l;if((l=r.get(o))!==void 0)return u(o,l),l},set(o,l){n.has(o)?n.set(o,l):u(o,l)}}},FE="!",OE=":",s8=OE.length,o8=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=u=>{const o=[];let l=0,c=0,f=0,h;for(let S=0;S<u.length;S++){let C=u[S];if(l===0&&c===0){if(C===OE){o.push(u.slice(f,S)),f=S+s8;continue}if(C==="/"){h=S;continue}}C==="["?l++:C==="]"?l--:C==="("?c++:C===")"&&c--}const m=o.length===0?u:u.substring(f),E=l8(m),g=E!==m,_=h&&h>f?h-f:void 0;return{modifiers:o,hasImportantModifier:g,baseClassName:E,maybePostfixModifierPosition:_}};if(t){const u=t+OE,o=r;r=l=>l.startsWith(u)?o(l.substring(u.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:l,maybePostfixModifierPosition:void 0}}if(n){const u=r;r=o=>n({className:o,parseClassName:u})}return r},l8=e=>e.endsWith(FE)?e.substring(0,e.length-1):e.startsWith(FE)?e.substring(1):e,c8=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(r=>[r,!0]));return r=>{if(r.length<=1)return r;const u=[];let o=[];return r.forEach(l=>{l[0]==="["||t[l]?(u.push(...o.sort(),l),o=[]):o.push(l)}),u.push(...o.sort()),u}},d8=e=>({cache:a8(e.cacheSize),parseClassName:o8(e),sortModifiers:c8(e),...n8(e)}),f8=/\s+/,h8=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:u,sortModifiers:o}=t,l=[],c=e.trim().split(f8);let f="";for(let h=c.length-1;h>=0;h-=1){const m=c[h],{isExternal:E,modifiers:g,hasImportantModifier:_,baseClassName:S,maybePostfixModifierPosition:C}=n(m);if(E){f=m+(f.length>0?" "+f:f);continue}let v=!!C,R=r(v?S.substring(0,C):S);if(!R){if(!v){f=m+(f.length>0?" "+f:f);continue}if(R=r(S),!R){f=m+(f.length>0?" "+f:f);continue}v=!1}const D=o(g).join(":"),b=_?D+FE:D,L=b+R;if(l.includes(L))continue;l.push(L);const x=u(R,v);for(let B=0;B<x.length;++B){const O=x[B];l.push(b+O)}f=m+(f.length>0?" "+f:f)}return f};function A8(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=D9(t))&&(r&&(r+=" "),r+=n);return r}const D9=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=D9(e[r]))&&(n&&(n+=" "),n+=t);return n};function m8(e,...t){let n,r,u,o=l;function l(f){const h=t.reduce((m,E)=>E(m),e());return n=d8(h),r=n.cache.get,u=n.cache.set,o=c,c(f)}function c(f){const h=r(f);if(h)return h;const m=h8(f,n);return u(f,m),m}return function(){return o(A8.apply(null,arguments))}}const un=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},T9=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,b9=/^\((?:(\w[\w-]*):)?(.+)\)$/i,p8=/^\d+\/\d+$/,E8=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,g8=/\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$/,_8=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,S8=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,N8=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,xs=e=>p8.test(e),st=e=>!!e&&!Number.isNaN(Number(e)),ha=e=>!!e&&Number.isInteger(Number(e)),l3=e=>e.endsWith("%")&&st(e.slice(0,-1)),hu=e=>E8.test(e),I8=()=>!0,y8=e=>g8.test(e)&&!_8.test(e),s4=()=>!1,C8=e=>S8.test(e),v8=e=>N8.test(e),R8=e=>!be(e)&&!xe(e),D8=e=>mo(e,F9,s4),be=e=>T9.test(e),Aa=e=>mo(e,O9,y8),_p=e=>mo(e,H8,st),T8=e=>mo(e,x9,s4),b8=e=>mo(e,B9,v8),x8=e=>mo(e,s4,C8),xe=e=>b9.test(e),D0=e=>po(e,O9),B8=e=>po(e,U8),F8=e=>po(e,x9),O8=e=>po(e,F9),L8=e=>po(e,B9),w8=e=>po(e,k8,!0),mo=(e,t,n)=>{const r=T9.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},po=(e,t,n=!1)=>{const r=b9.exec(e);return r?r[1]?t(r[1]):n:!1},x9=e=>e==="position",M8=new Set(["image","url"]),B9=e=>M8.has(e),P8=new Set(["length","size","percentage"]),F9=e=>P8.has(e),O9=e=>e==="length",H8=e=>e==="number",U8=e=>e==="family-name",k8=e=>e==="shadow",G8=()=>{const e=un("color"),t=un("font"),n=un("text"),r=un("font-weight"),u=un("tracking"),o=un("leading"),l=un("breakpoint"),c=un("container"),f=un("spacing"),h=un("radius"),m=un("shadow"),E=un("inset-shadow"),g=un("drop-shadow"),_=un("blur"),S=un("perspective"),C=un("aspect"),v=un("ease"),R=un("animate"),D=()=>["auto","avoid","all","avoid-page","page","left","right","column"],b=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],L=()=>["auto","hidden","clip","visible","scroll"],x=()=>["auto","contain","none"],B=()=>[xe,be,f],O=()=>[xs,"full","auto",...B()],H=()=>[ha,"none","subgrid",xe,be],U=()=>["auto",{span:["full",ha,xe,be]},xe,be],G=()=>[ha,"auto",xe,be],fe=()=>["auto","min","max","fr",xe,be],ae=()=>["start","end","center","between","around","evenly","stretch","baseline"],ce=()=>["start","end","center","stretch"],Z=()=>["auto",...B()],te=()=>[xs,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...B()],V=()=>[e,xe,be],ee=()=>[l3,Aa],Q=()=>["","none","full",h,xe,be],Ae=()=>["",st,D0,Aa],P=()=>["solid","dashed","dotted","double"],W=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],j=()=>["","none",_,xe,be],re=()=>["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",xe,be],ne=()=>["none",st,xe,be],de=()=>["none",st,xe,be],Ee=()=>[st,xe,be],pe=()=>[xs,"full",...B()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[hu],breakpoint:[hu],color:[I8],container:[hu],"drop-shadow":[hu],ease:["in","out","in-out"],font:[R8],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[hu],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[hu],shadow:[hu],spacing:["px",st],text:[hu],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",xs,be,xe,C]}],container:["container"],columns:[{columns:[st,be,xe,c]}],"break-after":[{"break-after":D()}],"break-before":[{"break-before":D()}],"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:[...b(),be,xe]}],overflow:[{overflow:L()}],"overflow-x":[{"overflow-x":L()}],"overflow-y":[{"overflow-y":L()}],overscroll:[{overscroll:x()}],"overscroll-x":[{"overscroll-x":x()}],"overscroll-y":[{"overscroll-y":x()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:O()}],"inset-x":[{"inset-x":O()}],"inset-y":[{"inset-y":O()}],start:[{start:O()}],end:[{end:O()}],top:[{top:O()}],right:[{right:O()}],bottom:[{bottom:O()}],left:[{left:O()}],visibility:["visible","invisible","collapse"],z:[{z:[ha,"auto",xe,be]}],basis:[{basis:[xs,"full","auto",c,...B()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[st,xs,"auto","initial","none",be]}],grow:[{grow:["",st,xe,be]}],shrink:[{shrink:["",st,xe,be]}],order:[{order:[ha,"first","last","none",xe,be]}],"grid-cols":[{"grid-cols":H()}],"col-start-end":[{col:U()}],"col-start":[{"col-start":G()}],"col-end":[{"col-end":G()}],"grid-rows":[{"grid-rows":H()}],"row-start-end":[{row:U()}],"row-start":[{"row-start":G()}],"row-end":[{"row-end":G()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":fe()}],"auto-rows":[{"auto-rows":fe()}],gap:[{gap:B()}],"gap-x":[{"gap-x":B()}],"gap-y":[{"gap-y":B()}],"justify-content":[{justify:[...ae(),"normal"]}],"justify-items":[{"justify-items":[...ce(),"normal"]}],"justify-self":[{"justify-self":["auto",...ce()]}],"align-content":[{content:["normal",...ae()]}],"align-items":[{items:[...ce(),"baseline"]}],"align-self":[{self:["auto",...ce(),"baseline"]}],"place-content":[{"place-content":ae()}],"place-items":[{"place-items":[...ce(),"baseline"]}],"place-self":[{"place-self":["auto",...ce()]}],p:[{p:B()}],px:[{px:B()}],py:[{py:B()}],ps:[{ps:B()}],pe:[{pe:B()}],pt:[{pt:B()}],pr:[{pr:B()}],pb:[{pb:B()}],pl:[{pl:B()}],m:[{m:Z()}],mx:[{mx:Z()}],my:[{my:Z()}],ms:[{ms:Z()}],me:[{me:Z()}],mt:[{mt:Z()}],mr:[{mr:Z()}],mb:[{mb:Z()}],ml:[{ml:Z()}],"space-x":[{"space-x":B()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":B()}],"space-y-reverse":["space-y-reverse"],size:[{size:te()}],w:[{w:[c,"screen",...te()]}],"min-w":[{"min-w":[c,"screen","none",...te()]}],"max-w":[{"max-w":[c,"screen","none","prose",{screen:[l]},...te()]}],h:[{h:["screen",...te()]}],"min-h":[{"min-h":["screen","none",...te()]}],"max-h":[{"max-h":["screen",...te()]}],"font-size":[{text:["base",n,D0,Aa]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,xe,_p]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",l3,be]}],"font-family":[{font:[B8,be,t]}],"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:[u,xe,be]}],"line-clamp":[{"line-clamp":[st,"none",xe,_p]}],leading:[{leading:[o,...B()]}],"list-image":[{"list-image":["none",xe,be]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",xe,be]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:V()}],"text-color":[{text:V()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...P(),"wavy"]}],"text-decoration-thickness":[{decoration:[st,"from-font","auto",xe,Aa]}],"text-decoration-color":[{decoration:V()}],"underline-offset":[{"underline-offset":[st,"auto",xe,be]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:B()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",xe,be]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",xe,be]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...b(),F8,T8]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","space","round"]}]}],"bg-size":[{bg:["auto","cover","contain",O8,D8]}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},ha,xe,be],radial:["",xe,be],conic:[ha,xe,be]},L8,b8]}],"bg-color":[{bg:V()}],"gradient-from-pos":[{from:ee()}],"gradient-via-pos":[{via:ee()}],"gradient-to-pos":[{to:ee()}],"gradient-from":[{from:V()}],"gradient-via":[{via:V()}],"gradient-to":[{to:V()}],rounded:[{rounded:Q()}],"rounded-s":[{"rounded-s":Q()}],"rounded-e":[{"rounded-e":Q()}],"rounded-t":[{"rounded-t":Q()}],"rounded-r":[{"rounded-r":Q()}],"rounded-b":[{"rounded-b":Q()}],"rounded-l":[{"rounded-l":Q()}],"rounded-ss":[{"rounded-ss":Q()}],"rounded-se":[{"rounded-se":Q()}],"rounded-ee":[{"rounded-ee":Q()}],"rounded-es":[{"rounded-es":Q()}],"rounded-tl":[{"rounded-tl":Q()}],"rounded-tr":[{"rounded-tr":Q()}],"rounded-br":[{"rounded-br":Q()}],"rounded-bl":[{"rounded-bl":Q()}],"border-w":[{border:Ae()}],"border-w-x":[{"border-x":Ae()}],"border-w-y":[{"border-y":Ae()}],"border-w-s":[{"border-s":Ae()}],"border-w-e":[{"border-e":Ae()}],"border-w-t":[{"border-t":Ae()}],"border-w-r":[{"border-r":Ae()}],"border-w-b":[{"border-b":Ae()}],"border-w-l":[{"border-l":Ae()}],"divide-x":[{"divide-x":Ae()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":Ae()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...P(),"hidden","none"]}],"divide-style":[{divide:[...P(),"hidden","none"]}],"border-color":[{border:V()}],"border-color-x":[{"border-x":V()}],"border-color-y":[{"border-y":V()}],"border-color-s":[{"border-s":V()}],"border-color-e":[{"border-e":V()}],"border-color-t":[{"border-t":V()}],"border-color-r":[{"border-r":V()}],"border-color-b":[{"border-b":V()}],"border-color-l":[{"border-l":V()}],"divide-color":[{divide:V()}],"outline-style":[{outline:[...P(),"none","hidden"]}],"outline-offset":[{"outline-offset":[st,xe,be]}],"outline-w":[{outline:["",st,D0,Aa]}],"outline-color":[{outline:[e]}],shadow:[{shadow:["","none",m,w8,x8]}],"shadow-color":[{shadow:V()}],"inset-shadow":[{"inset-shadow":["none",xe,be,E]}],"inset-shadow-color":[{"inset-shadow":V()}],"ring-w":[{ring:Ae()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:V()}],"ring-offset-w":[{"ring-offset":[st,Aa]}],"ring-offset-color":[{"ring-offset":V()}],"inset-ring-w":[{"inset-ring":Ae()}],"inset-ring-color":[{"inset-ring":V()}],opacity:[{opacity:[st,xe,be]}],"mix-blend":[{"mix-blend":[...W(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":W()}],filter:[{filter:["","none",xe,be]}],blur:[{blur:j()}],brightness:[{brightness:[st,xe,be]}],contrast:[{contrast:[st,xe,be]}],"drop-shadow":[{"drop-shadow":["","none",g,xe,be]}],grayscale:[{grayscale:["",st,xe,be]}],"hue-rotate":[{"hue-rotate":[st,xe,be]}],invert:[{invert:["",st,xe,be]}],saturate:[{saturate:[st,xe,be]}],sepia:[{sepia:["",st,xe,be]}],"backdrop-filter":[{"backdrop-filter":["","none",xe,be]}],"backdrop-blur":[{"backdrop-blur":j()}],"backdrop-brightness":[{"backdrop-brightness":[st,xe,be]}],"backdrop-contrast":[{"backdrop-contrast":[st,xe,be]}],"backdrop-grayscale":[{"backdrop-grayscale":["",st,xe,be]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[st,xe,be]}],"backdrop-invert":[{"backdrop-invert":["",st,xe,be]}],"backdrop-opacity":[{"backdrop-opacity":[st,xe,be]}],"backdrop-saturate":[{"backdrop-saturate":[st,xe,be]}],"backdrop-sepia":[{"backdrop-sepia":["",st,xe,be]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":B()}],"border-spacing-x":[{"border-spacing-x":B()}],"border-spacing-y":[{"border-spacing-y":B()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",xe,be]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[st,"initial",xe,be]}],ease:[{ease:["linear","initial",v,xe,be]}],delay:[{delay:[st,xe,be]}],animate:[{animate:["none",R,xe,be]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[S,xe,be]}],"perspective-origin":[{"perspective-origin":re()}],rotate:[{rotate:ne()}],"rotate-x":[{"rotate-x":ne()}],"rotate-y":[{"rotate-y":ne()}],"rotate-z":[{"rotate-z":ne()}],scale:[{scale:de()}],"scale-x":[{"scale-x":de()}],"scale-y":[{"scale-y":de()}],"scale-z":[{"scale-z":de()}],"scale-3d":["scale-3d"],skew:[{skew:Ee()}],"skew-x":[{"skew-x":Ee()}],"skew-y":[{"skew-y":Ee()}],transform:[{transform:[xe,be,"","none","gpu","cpu"]}],"transform-origin":[{origin:re()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:pe()}],"translate-x":[{"translate-x":pe()}],"translate-y":[{"translate-y":pe()}],"translate-z":[{"translate-z":pe()}],"translate-none":["translate-none"],accent:[{accent:V()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:V()}],"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",xe,be]}],"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":B()}],"scroll-mx":[{"scroll-mx":B()}],"scroll-my":[{"scroll-my":B()}],"scroll-ms":[{"scroll-ms":B()}],"scroll-me":[{"scroll-me":B()}],"scroll-mt":[{"scroll-mt":B()}],"scroll-mr":[{"scroll-mr":B()}],"scroll-mb":[{"scroll-mb":B()}],"scroll-ml":[{"scroll-ml":B()}],"scroll-p":[{"scroll-p":B()}],"scroll-px":[{"scroll-px":B()}],"scroll-py":[{"scroll-py":B()}],"scroll-ps":[{"scroll-ps":B()}],"scroll-pe":[{"scroll-pe":B()}],"scroll-pt":[{"scroll-pt":B()}],"scroll-pr":[{"scroll-pr":B()}],"scroll-pb":[{"scroll-pb":B()}],"scroll-pl":[{"scroll-pl":B()}],"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",xe,be]}],fill:[{fill:["none",...V()]}],"stroke-w":[{stroke:[st,D0,Aa,_p]}],stroke:[{stroke:["none",...V()]}],"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-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-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:["before","after","placeholder","file","marker","selection","first-line","first-letter","backdrop","*","**"]}},L9=m8(G8),Re=(...e)=>L9(Ah(e)),w9=({children:e,isHidden:t,className:n="",isOverable:r=!1,isFocusable:u=!1,minHeight:o=0,...l})=>N.jsx("div",{"aria-hidden":u?t:void 0,tabIndex:u?0:void 0,role:u?"button":"none",className:Re("group/height-smoother relative grid w-full grid-rows-[0fr] overflow-hidden transition-all duration-700 ease-in-out",typeof t<"u"&&!t&&"grid-rows-[1fr] overflow-x-auto",r&&"hover:grid-rows-[1fr] hover:overflow-x-auto",u&&"focus-within:grid-rows-[1fr] focus-within:overflow-x-auto focus:grid-rows-[1fr] focus:overflow-x-auto",n),...l,children:N.jsx("div",{style:{minHeight:`${o}px`},className:Re(r&&"group-hover/height-smoother:visible",u&&"group-focus/height-smoother:visible",n),children:e})}),V8=({children:e,isHidden:t,minWidth:n=0,align:r="left",className:u,...o})=>N.jsx("div",{className:Re("relative grid h-full grid-cols-[0fr] overflow-x-hidden overflow-y-hidden transition-all duration-500 ease-in-out",t?"":"grid-cols-[1fr]",u),"aria-hidden":t,...o,children:N.jsx("div",{style:{minWidth:`${n}px`},tabIndex:t!==!1?void 0:-1,className:Re(r==="right"&&"ml-auto"),children:e})});/**
62
+ * @license lucide-react v0.475.0 - ISC
63
+ *
64
+ * This source code is licensed under the ISC license.
65
+ * See the LICENSE file in the root directory of this source tree.
66
+ */const j8=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),M9=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();/**
67
+ * @license lucide-react v0.475.0 - ISC
68
+ *
69
+ * This source code is licensed under the ISC license.
70
+ * See the LICENSE file in the root directory of this source tree.
71
+ */var z8={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
72
+ * @license lucide-react v0.475.0 - ISC
73
+ *
74
+ * This source code is licensed under the ISC license.
75
+ * See the LICENSE file in the root directory of this source tree.
76
+ */const K8=y.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:u="",children:o,iconNode:l,...c},f)=>y.createElement("svg",{ref:f,...z8,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:M9("lucide",u),...c},[...l.map(([h,m])=>y.createElement(h,m)),...Array.isArray(o)?o:[o]]));/**
77
+ * @license lucide-react v0.475.0 - ISC
78
+ *
79
+ * This source code is licensed under the ISC license.
80
+ * See the LICENSE file in the root directory of this source tree.
81
+ */const Ct=(e,t)=>{const n=y.forwardRef(({className:r,...u},o)=>y.createElement(K8,{ref:o,iconNode:t,className:M9(`lucide-${j8(e)}`,r),...u}));return n.displayName=`${e}`,n};/**
82
+ * @license lucide-react v0.475.0 - ISC
83
+ *
84
+ * This source code is licensed under the ISC license.
85
+ * See the LICENSE file in the root directory of this source tree.
86
+ */const $8=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],Y8=Ct("ArrowLeft",$8);/**
87
+ * @license lucide-react v0.475.0 - ISC
88
+ *
89
+ * This source code is licensed under the ISC license.
90
+ * See the LICENSE file in the root directory of this source tree.
91
+ */const Z8=[["path",{d:"m18 9-6-6-6 6",key:"kcunyi"}],["path",{d:"M12 3v14",key:"7cf3v8"}],["path",{d:"M5 21h14",key:"11awu3"}]],W8=Ct("ArrowUpFromLine",Z8);/**
92
+ * @license lucide-react v0.475.0 - ISC
93
+ *
94
+ * This source code is licensed under the ISC license.
95
+ * See the LICENSE file in the root directory of this source tree.
96
+ */const q8=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Eo=Ct("Check",q8);/**
97
+ * @license lucide-react v0.475.0 - ISC
98
+ *
99
+ * This source code is licensed under the ISC license.
100
+ * See the LICENSE file in the root directory of this source tree.
101
+ */const X8=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],P9=Ct("ChevronDown",X8);/**
102
+ * @license lucide-react v0.475.0 - ISC
103
+ *
104
+ * This source code is licensed under the ISC license.
105
+ * See the LICENSE file in the root directory of this source tree.
106
+ */const Q8=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],J8=Ct("ChevronLeft",Q8);/**
107
+ * @license lucide-react v0.475.0 - ISC
108
+ *
109
+ * This source code is licensed under the ISC license.
110
+ * See the LICENSE file in the root directory of this source tree.
111
+ */const eP=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],LE=Ct("ChevronRight",eP);/**
112
+ * @license lucide-react v0.475.0 - ISC
113
+ *
114
+ * This source code is licensed under the ISC license.
115
+ * See the LICENSE file in the root directory of this source tree.
116
+ */const tP=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],nP=Ct("ChevronUp",tP);/**
117
+ * @license lucide-react v0.475.0 - ISC
118
+ *
119
+ * This source code is licensed under the ISC license.
120
+ * See the LICENSE file in the root directory of this source tree.
121
+ */const rP=[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]],iP=Ct("ChevronsUpDown",rP);/**
122
+ * @license lucide-react v0.475.0 - ISC
123
+ *
124
+ * This source code is licensed under the ISC license.
125
+ * See the LICENSE file in the root directory of this source tree.
126
+ */const uP=[["path",{d:"m12 15 2 2 4-4",key:"2c609p"}],["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],aP=Ct("CopyCheck",uP);/**
127
+ * @license lucide-react v0.475.0 - ISC
128
+ *
129
+ * This source code is licensed under the ISC license.
130
+ * See the LICENSE file in the root directory of this source tree.
131
+ */const sP=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],oP=Ct("Copy",sP);/**
132
+ * @license lucide-react v0.475.0 - ISC
133
+ *
134
+ * This source code is licensed under the ISC license.
135
+ * See the LICENSE file in the root directory of this source tree.
136
+ */const lP=[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]],cP=Ct("Download",lP);/**
137
+ * @license lucide-react v0.475.0 - ISC
138
+ *
139
+ * This source code is licensed under the ISC license.
140
+ * See the LICENSE file in the root directory of this source tree.
141
+ */const dP=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],fP=Ct("ExternalLink",dP);/**
142
+ * @license lucide-react v0.475.0 - ISC
143
+ *
144
+ * This source code is licensed under the ISC license.
145
+ * See the LICENSE file in the root directory of this source tree.
146
+ */const hP=[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]],AP=Ct("EyeOff",hP);/**
147
+ * @license lucide-react v0.475.0 - ISC
148
+ *
149
+ * This source code is licensed under the ISC license.
150
+ * See the LICENSE file in the root directory of this source tree.
151
+ */const mP=[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],pP=Ct("Eye",mP);/**
152
+ * @license lucide-react v0.475.0 - ISC
153
+ *
154
+ * This source code is licensed under the ISC license.
155
+ * See the LICENSE file in the root directory of this source tree.
156
+ */const EP=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]],gP=Ct("Globe",EP);/**
157
+ * @license lucide-react v0.475.0 - ISC
158
+ *
159
+ * This source code is licensed under the ISC license.
160
+ * See the LICENSE file in the root directory of this source tree.
161
+ */const _P=[["path",{d:"M12 2v20",key:"t6zp3m"}],["path",{d:"m8 18 4 4 4-4",key:"bh5tu3"}],["path",{d:"m8 6 4-4 4 4",key:"ybng9g"}]],SP=Ct("MoveVertical",_P);/**
162
+ * @license lucide-react v0.475.0 - ISC
163
+ *
164
+ * This source code is licensed under the ISC license.
165
+ * See the LICENSE file in the root directory of this source tree.
166
+ */const NP=[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]],IP=Ct("Pencil",NP);/**
167
+ * @license lucide-react v0.475.0 - ISC
168
+ *
169
+ * This source code is licensed under the ISC license.
170
+ * See the LICENSE file in the root directory of this source tree.
171
+ */const yP=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],mh=Ct("Plus",yP);/**
172
+ * @license lucide-react v0.475.0 - ISC
173
+ *
174
+ * This source code is licensed under the ISC license.
175
+ * See the LICENSE file in the root directory of this source tree.
176
+ */const CP=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]],vP=Ct("RotateCcw",CP);/**
177
+ * @license lucide-react v0.475.0 - ISC
178
+ *
179
+ * This source code is licensed under the ISC license.
180
+ * See the LICENSE file in the root directory of this source tree.
181
+ */const RP=[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]],DP=Ct("Save",RP);/**
182
+ * @license lucide-react v0.475.0 - ISC
183
+ *
184
+ * This source code is licensed under the ISC license.
185
+ * See the LICENSE file in the root directory of this source tree.
186
+ */const TP=[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]],bP=Ct("Search",TP);/**
187
+ * @license lucide-react v0.475.0 - ISC
188
+ *
189
+ * This source code is licensed under the ISC license.
190
+ * See the LICENSE file in the root directory of this source tree.
191
+ */const xP=[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}]],o4=Ct("Trash",xP);/**
192
+ * @license lucide-react v0.475.0 - ISC
193
+ *
194
+ * This source code is licensed under the ISC license.
195
+ * See the LICENSE file in the root directory of this source tree.
196
+ */const BP=[["path",{d:"m21.64 3.64-1.28-1.28a1.21 1.21 0 0 0-1.72 0L2.36 18.64a1.21 1.21 0 0 0 0 1.72l1.28 1.28a1.2 1.2 0 0 0 1.72 0L21.64 5.36a1.2 1.2 0 0 0 0-1.72",key:"ul74o6"}],["path",{d:"m14 7 3 3",key:"1r5n42"}],["path",{d:"M5 6v4",key:"ilb8ba"}],["path",{d:"M19 14v4",key:"blhpug"}],["path",{d:"M10 2v2",key:"7u0qdc"}],["path",{d:"M7 8H3",key:"zfb6yr"}],["path",{d:"M21 16h-4",key:"1cnmox"}],["path",{d:"M11 3H9",key:"1obp7u"}]],H9=Ct("WandSparkles",BP);/**
197
+ * @license lucide-react v0.475.0 - ISC
198
+ *
199
+ * This source code is licensed under the ISC license.
200
+ * See the LICENSE file in the root directory of this source tree.
201
+ */const FP=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Va=Ct("X",FP),U9=e=>{const[t,n]=y.useState(e);return y.useEffect(()=>{n(e??window.document.body)},[e]),t},OP={},c3=e=>{let t;const n=new Set,r=(m,E)=>{const g=typeof m=="function"?m(t):m;if(!Object.is(g,t)){const _=t;t=E??(typeof g!="object"||g===null)?g:Object.assign({},t,g),n.forEach(S=>S(t,_))}},u=()=>t,f={setState:r,getState:u,getInitialState:()=>h,subscribe:m=>(n.add(m),()=>n.delete(m)),destroy:()=>{(OP?"production":void 0)!=="production"&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),n.clear()}},h=t=e(r,u,f);return f},LP=e=>e?c3(e):c3;var Sp={exports:{}},Np={},Ip={exports:{}},yp={};/**
202
+ * @license React
203
+ * use-sync-external-store-shim.production.js
204
+ *
205
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
206
+ *
207
+ * This source code is licensed under the MIT license found in the
208
+ * LICENSE file in the root directory of this source tree.
209
+ */var d3;function wP(){if(d3)return yp;d3=1;var e=kc();function t(E,g){return E===g&&(E!==0||1/E===1/g)||E!==E&&g!==g}var n=typeof Object.is=="function"?Object.is:t,r=e.useState,u=e.useEffect,o=e.useLayoutEffect,l=e.useDebugValue;function c(E,g){var _=g(),S=r({inst:{value:_,getSnapshot:g}}),C=S[0].inst,v=S[1];return o(function(){C.value=_,C.getSnapshot=g,f(C)&&v({inst:C})},[E,_,g]),u(function(){return f(C)&&v({inst:C}),E(function(){f(C)&&v({inst:C})})},[E]),l(_),_}function f(E){var g=E.getSnapshot;E=E.value;try{var _=g();return!n(E,_)}catch{return!0}}function h(E,g){return g()}var m=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?h:c;return yp.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:m,yp}var f3;function k9(){return f3||(f3=1,Ip.exports=wP()),Ip.exports}/**
210
+ * @license React
211
+ * use-sync-external-store-shim/with-selector.production.js
212
+ *
213
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
214
+ *
215
+ * This source code is licensed under the MIT license found in the
216
+ * LICENSE file in the root directory of this source tree.
217
+ */var h3;function MP(){if(h3)return Np;h3=1;var e=kc(),t=k9();function n(h,m){return h===m&&(h!==0||1/h===1/m)||h!==h&&m!==m}var r=typeof Object.is=="function"?Object.is:n,u=t.useSyncExternalStore,o=e.useRef,l=e.useEffect,c=e.useMemo,f=e.useDebugValue;return Np.useSyncExternalStoreWithSelector=function(h,m,E,g,_){var S=o(null);if(S.current===null){var C={hasValue:!1,value:null};S.current=C}else C=S.current;S=c(function(){function R(B){if(!D){if(D=!0,b=B,B=g(B),_!==void 0&&C.hasValue){var O=C.value;if(_(O,B))return L=O}return L=B}if(O=L,r(b,B))return O;var H=g(B);return _!==void 0&&_(O,H)?(b=B,O):(b=B,L=H)}var D=!1,b,L,x=E===void 0?null:E;return[function(){return R(m())},x===null?void 0:function(){return R(x())}]},[m,E,g,_]);var v=u(h,S[0],S[1]);return l(function(){C.hasValue=!0,C.value=v},[v]),f(v),v},Np}var A3;function PP(){return A3||(A3=1,Sp.exports=MP()),Sp.exports}var HP=PP();const UP=lh(HP),G9={},{useDebugValue:kP}=$e,{useSyncExternalStoreWithSelector:GP}=UP;let m3=!1;const VP=e=>e;function jP(e,t=VP,n){(G9?"production":void 0)!=="production"&&n&&!m3&&(console.warn("[DEPRECATED] Use `createWithEqualityFn` instead of `create` or use `useStoreWithEqualityFn` instead of `useStore`. They can be imported from 'zustand/traditional'. https://github.com/pmndrs/zustand/discussions/1937"),m3=!0);const r=GP(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,n);return kP(r),r}const p3=e=>{(G9?"production":void 0)!=="production"&&typeof e!="function"&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");const t=typeof e=="function"?LP(e):e,n=(r,u)=>jP(t,r,u);return Object.assign(n,t),n},V9=e=>e?p3(e):p3,zP=V9((e,t)=>({scrollBlockers:[],addBlockage:(n,r)=>e(u=>{const o=u.scrollBlockers,l=o.find(c=>c.element===r);if(l){const f=l.blockers.includes(n)?l.blockers:[...l.blockers,n];return{scrollBlockers:o.map(h=>h.element===r?{...h,blockers:f}:h)}}return r.style.overflowY="hidden",r.style.overflowX="hidden",{scrollBlockers:[...o,{element:r,blockers:[n]}]}}),removeBlockage:(n,r)=>e(u=>{const o=u.scrollBlockers,l=o.find(c=>c.element===r);return l?l.blockers.length>1?{scrollBlockers:o.map(c=>c.element===r?{...c,blockers:c.blockers.filter(f=>f!==n)}:c)}:(r.style.overflowY="auto",{scrollBlockers:o.filter(c=>c.element!==r)}):{scrollBlockers:o}}),isElementScrollBlocked:n=>t().scrollBlockers.some(r=>r.element===n)}));function KP(e,t){if(Object.is(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(const[r,u]of e)if(!Object.is(u,t.get(r)))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(const r of e)if(!t.has(r))return!1;return!0}const n=Object.keys(e);if(n.length!==Object.keys(t).length)return!1;for(const r of n)if(!Object.prototype.hasOwnProperty.call(t,r)||!Object.is(e[r],t[r]))return!1;return!0}const{useRef:$P}=$e;function j9(e){const t=$P();return n=>{const r=e(n);return KP(t.current,r)?t.current:t.current=r}}const z9=e=>{const{disableScroll:t=!1,element:n,key:r="unnamed_blocker"}=e??{},{isElementScrollBlocked:u,addBlockage:o,removeBlockage:l}=zP(j9(h=>({isElementScrollBlocked:h.isElementScrollBlocked,addBlockage:h.addBlockage,removeBlockage:h.removeBlockage}))),c=U9(n);return y.useEffect(()=>{const h=n??window.document.body;t?o(r,h):l(r,h)},[o,t,n,r,l]),{isScrollBlocked:c?u(c):!1}},YP=e=>{switch(e){case"sm":return 640;case"md":return 768;case"lg":return 1024;case"xl":return 1280;case"2xl":return 1536;default:return e}},ZP=()=>{var t;if(typeof window>"u")return;const e=(t=window.navigator)==null?void 0:t.userAgent;if(!(typeof e>"u"))return/android|bb\d+|meego|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(?:hone|od|ad)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(?:ob|in)i|palm(?: os)?|phone|p(?:ixi|re)\/|plucker|pocket|psp|series(?:4|6)0|symbian|treo|up\.(?:browser|link)|vodafone|wap|windows ce|windows phone|xda|xiino|zte-/i.test(e)},WP=e=>{if(!(typeof window>"u"))return((window==null?void 0:window.innerWidth)??0)<=e},E3=e=>{const t=YP(e),n=ZP(),r=WP(t);return{isMobileScreen:r,isMobileUserAgent:n,isMobile:r??n}},qP=(e="md")=>{const[t,n]=y.useState(E3(e));return y.useEffect(()=>{const r=()=>{n(E3(e))};return window.addEventListener("resize",r),()=>window.removeEventListener("resize",r)},[e]),t},XP=e=>{const t=e.getBoundingClientRect(),n=t.top,r=t.bottom;if(n>=0&&r<=window.innerHeight){const o=t.left+t.width/2,l=t.top+10,c=document.elementFromPoint(o,l);return e===c||e.contains(c)}return!1},g3=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,_3=Ah,Ir=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return _3(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:u,defaultVariants:o}=t,l=Object.keys(u).map(h=>{const m=n==null?void 0:n[h],E=o==null?void 0:o[h];if(m===null)return null;const g=g3(m)||g3(E);return u[h][g]}),c=n&&Object.entries(n).reduce((h,m)=>{let[E,g]=m;return g===void 0||(h[E]=g),h},{}),f=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((h,m)=>{let{class:E,className:g,..._}=m;return Object.entries(_).every(S=>{let[C,v]=S;return Array.isArray(v)?v.includes({...o,...c}[C]):{...o,...c}[C]===v})?[...h,E,g]:h},[]);return _3(e,l,f,n==null?void 0:n.class,n==null?void 0:n.className)},QP=({className:e,strokeWidth:t=4})=>N.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"44",height:"44",viewBox:"0 0 44 44",stroke:"currentColor",className:Re("size-full",e),children:N.jsxs("g",{fill:"none",fillRule:"evenodd",strokeWidth:t,children:[N.jsxs("circle",{cx:"22",cy:"22",r:"1",children:[N.jsx("animate",{attributeName:"r",begin:"0s",dur:"1.8s",values:"1; 20",calcMode:"spline",keyTimes:"0; 1",keySplines:"0.165, 0.84, 0.44, 1",repeatCount:"indefinite"}),N.jsx("animate",{attributeName:"stroke-opacity",begin:"0s",dur:"1.8s",values:"1; 0",calcMode:"spline",keyTimes:"0; 1",keySplines:"0.3, 0.61, 0.355, 1",repeatCount:"indefinite"})]}),N.jsxs("circle",{cx:"22",cy:"22",r:"1",children:[N.jsx("animate",{attributeName:"r",begin:"-0.9s",dur:"1.8s",values:"1; 20",calcMode:"spline",keyTimes:"0; 1",keySplines:"0.165, 0.84, 0.44, 1",repeatCount:"indefinite"}),N.jsx("animate",{attributeName:"stroke-opacity",begin:"-0.9s",dur:"1.8s",values:"1; 0",calcMode:"spline",keyTimes:"0; 1",keySplines:"0.3, 0.61, 0.355, 1",repeatCount:"indefinite"})]})]})}),eo=({children:e,isLoading:t=!0,className:n,...r})=>N.jsx(N.Fragment,{children:t?N.jsx("div",{className:Re("flex size-full max-h-screen max-w-[100vw] flex-1 items-center justify-center",n),role:"status","aria-label":"Animated icon, meaning that the website is processing",...r,children:N.jsx(QP,{className:"size-10 max-h-full max-w-full"})}):e??N.jsx(N.Fragment,{})}),Cp=Ir("",{variants:{size:{sm:"size-3 absolute top-1/2 -translate-y-1/2",md:"size-4 absolute top-1/2 -translate-y-1/2",lg:"size-5 absolute top-1/2 -translate-y-1/2",xl:"size-6 absolute top-1/2 -translate-y-1/2","icon-sm":"size-3","icon-md":"size-4","icon-lg":"size-5","icon-xl":"size-6"},position:{left:"left-3",right:"right-3"}},defaultVariants:{size:"md"}}),JP=Ir("relative cursor-pointer truncate whitespace-nowrap font-medium transition focus-visible:outline-hidden disabled:pointer-events-none disabled:opacity-50",{variants:{size:{sm:"min-h-7 px-3 max-md:py-1 text-xs",md:"min-h-8 px-6 max-md:py-2 text-sm",lg:"min-h-10 px-8 max-md:py-3 text-lg",xl:"min-h-11 px-10 max-md:py-4 text-xl","icon-sm":"p-1.5","icon-md":"p-1.5","icon-lg":"p-2","icon-xl":"p-3"},color:{primary:"text-primary *:text-text-light",secondary:"text-secondary *:text-text-light",destructive:"text-destructive *:text-text-light",neutral:"text-neutral *:text-text-light",light:"text-white *:text-text-light",dark:"text-neutral-800 *:text-text-light",text:"text-text *:text-text-opposite","text-inverse":"text-text-opposite *:text-text",error:"text-error *:text-text-light",success:"text-success *:text-text-light",custom:""},variant:{default:"rounded-lg bg-current",none:"border-none bg-current/0 text-inherit hover:bg-current/0",outline:"*:!text-current rounded-lg border-[1.5px] bg-current/0 hover:bg-current/30",link:"*:!text-current h-auto justify-start border-inherit bg-transparent px-1 underline-offset-4 hover:bg-transparent hover:underline","invisible-link":"*:!text-current h-auto justify-start border-inherit bg-transparent px-1 underline-offset-4 hover:bg-transparent",hoverable:"*:!text-current rounded-lg border-none bg-current/0 transition hover:bg-current/10 aria-[current]:bg-current/5",input:["*:!text-current w-full select-text resize-none rounded-xl border-2 bg-input-background text-sm text-input-text shadow-none outline-0 transition-all","border-input-border hover:border-input-border-hover focus:border-input-border-focus focus:outline-0 focus:[box-shadow:none]","aria-[invalid=true]:border-error","disabled:opacity-50"]},textAlign:{left:"text-left",center:"text-center",right:"text-right"},isFullWidth:{true:"w-full",false:""},hasIconLeft:{true:"px-12",false:""},hasIconRight:{true:"pr-8",false:""}},defaultVariants:{variant:"default",size:"md",color:"primary",textAlign:"center",isFullWidth:!1,hasIconRight:!1,hasIconLeft:!1}}),Et=({variant:e,size:t,color:n,children:r,Icon:u,IconRight:o,iconClassName:l,isLoading:c,isActive:f,isFullWidth:h=!1,textAlign:m,disabled:E,label:g,className:_,type:S="button",...C})=>{const v=e==="link"||e==="invisible-link";return N.jsxs("button",{disabled:c||E,"aria-current":f?"page":void 0,"aria-label":g,"aria-busy":c,role:v?"link":void 0,type:S,className:JP({variant:e,size:t,color:n,isFullWidth:h,textAlign:m??(o?"left":"center"),hasIconLeft:typeof r<"u"&&(typeof u<"u"||typeof c<"u"),hasIconRight:typeof r<"u"&&typeof o<"u",className:_}),...C,children:[u&&!c&&N.jsx(u,{className:Cp({size:t,className:l,position:"left"})}),N.jsx(eo,{className:Cp({size:t,className:l,position:"left"}),isLoading:c??!1}),N.jsx("span",{children:r}),o&&N.jsx(o,{className:Cp({size:t,className:l,position:"right"})})]})},eH=Ir("flex text-text flex-col backdrop-blur",{variants:{roundedSize:{none:"rounded-none",sm:"rounded-sm",md:"rounded-md",lg:"rounded-lg",xl:"rounded-xl","2xl":"rounded-2xl","3xl":"rounded-3xl",full:"rounded-full"},transparency:{none:"bg-card",sm:"bg-card/90",md:"bg-card/70",lg:"bg-card/40",xl:"bg-card/20",full:""},padding:{none:"p-0",sm:"p-1",md:"p-2",lg:"p-3",xl:"p-4"},separator:{without:"",x:"divide-x divide-dashed divide-text/20",y:"divide-y divide-dashed divide-text/20",both:"divide-x divide-y divide-dashed divide-text/20"},border:{none:"",with:"border-[1.5px]"},borderColor:{primary:"border-primary",secondary:"border-secondary",neutral:"border-neutral",text:"border-text ",error:"border-error",warning:"border-warning",success:"border-success"},background:{none:"bg-inherit",hoverable:"!bg-opacity-5 backdrop-blur-0 hover:!bg-opacity-10 hover:backdrop-blur focus:!bg-opacity-10 focus:backdrop-blur aria-selected:!bg-opacity-15 aria-selected:backdrop-blur",with:""},gap:{none:"gap-0",sm:"gap-1",md:"gap-3",lg:"gap-5",xl:"gap-8","2xl":"gap-10"}},defaultVariants:{roundedSize:"md",border:"none",borderColor:"text",transparency:"md",padding:"none",separator:"without",gap:"none"}}),ai=({children:e,roundedSize:t,padding:n,transparency:r,separator:u,className:o,border:l,borderColor:c,background:f,...h})=>N.jsx("div",{className:Re(eH({roundedSize:t,transparency:r,padding:n,separator:u,border:typeof l=="boolean"?l?"with":"none":void 0,background:f,borderColor:c,className:o})),...h,children:e}),ph=V9((e,t)=>({drawers:{},open:n=>e(r=>({drawers:{...r.drawers,[n]:!0}})),close:n=>e(r=>({drawers:{...r.drawers,[n]:!1}})),isOpen:n=>t().drawers[n]??!1})),K9=({title:e,identifier:t,children:n,header:r,closeOnOutsideClick:u=!0,backButton:o,isOpen:l,onClose:c})=>{const{isMobile:f}=qP("md"),h=y.useRef(null),m=y.useRef(null),{close:E,open:g,isOpen:_}=ph(j9(C=>({close:()=>C.close(t),open:()=>C.open(t),isOpen:C.isOpen(t)})));z9({disableScroll:_,key:t?`right_drawer_${t}`:"right_drawer"}),y.useEffect(()=>{const C=v=>{try{if(!h.current)return;const R=_&&u,D=v.target&&!h.current.contains(v.target),b=XP(h.current);(R&&D&&b||!v.target)&&(E(),c==null||c())}catch{E(),c==null||c()}};return window.addEventListener("mousedown",C),()=>window.removeEventListener("mousedown",C)},[_,E,c,u,t]),y.useEffect(()=>{l!==void 0&&(l?g():(E(),c==null||c()))},[E,g,c,l,t]);const S=C=>{C.target===C.currentTarget&&f&&(E(),c==null||c())};return N.jsx("div",{className:"fixed right-0 top-0 z-50 flex h-full justify-end",children:N.jsx(V8,{isHidden:!_,align:"right",children:N.jsxs(ai,{className:"text-text relative flex h-screen w-screen flex-col md:w-[400px]",ref:h,roundedSize:"none",children:[N.jsxs("div",{className:"flex flex-col gap-3 p-6",children:[N.jsxs("div",{className:"flex justify-between gap-3",children:[N.jsx("div",{children:o&&N.jsx(Et,{variant:"hoverable",color:"text",label:o.text??"Go back",onClick:o.onBack,Icon:J8,children:o==null?void 0:o.text})}),N.jsx("div",{children:N.jsx(Et,{variant:"hoverable",color:"text",label:"Close",className:"ml-auto",onClick:E,Icon:Va,size:"icon-md"})})]}),e&&N.jsx("h2",{className:"flex items-center justify-center text-lg font-bold",children:e}),r]}),N.jsx("div",{className:"flex h-full flex-col overflow-y-auto p-2",children:N.jsx("div",{className:"flex flex-1 flex-col",onClick:S,ref:m,children:n})})]})})})},ws=()=>({isFetched:!1,fetchedDateTime:null,isLoading:!1,isInvalidated:!1,error:null,isSuccess:!1,data:null,errorCount:0,isEnabled:!0}),vp=(e,t)=>t.filter(n=>e.includes(n.split("/")[0])),tH=(e,t)=>{var n;switch(t.type){case"SET_QUERY_STATE":{const{key:r,value:u}=t;return{...e,states:{...e.states,[r]:{...e.states[r]??ws(),...u}}}}case"MAKE_QUERY_IN_ERROR":{const{key:r,error:u}=t;return{...e,states:{...e.states,[r]:{...e.states[r]??ws(),error:u,isFetched:!0,isSuccess:!1,errorCount:(((n=e.states[r])==null?void 0:n.errorCount)??0)+1,isLoading:!1,isInvalidated:!1}}}}case"SET_QUERIES_STATE":{const{keys:r,value:u}=t,o=[r].flat(),l=Object.keys(e.states),c=vp(o,l);if(c.length===0)return e;const f=structuredClone(e.states);return c.forEach(h=>{f[h]={...e.states[h]??ws(),...u}}),{...e,states:f}}case"RESET_KEY_STATE":{const{keys:r}=t,u=[r].flat();if(u.length===0)return e;const o=Object.keys(e.states),l=vp(u,o);if(l.length===0)return e;const c={...e.states};return l.forEach(f=>{c[f]=ws()}),{...e,states:c}}case"RESET_STATE":{const r=[t.excludeKeys].flat(),u=Object.keys(e.states),o=vp(r,u),l={};return u.forEach(c=>{l[c]=o.includes(c)?e.states[c]:ws()}),{...e,states:l}}default:return e}},$9=y.createContext(null),nH=({children:e})=>{const[t,n]=y.useReducer(tH,{states:{}}),r=h=>t.states[h]??ws(),u=(h,m)=>{n({type:"SET_QUERY_STATE",key:h,value:m})},o=(h,m)=>{n({type:"SET_QUERIES_STATE",keys:h,value:m})},l=(h,m)=>{n({type:"MAKE_QUERY_IN_ERROR",key:h,error:m})},c=h=>{n({type:"RESET_KEY_STATE",keys:h})},f=h=>{n({type:"RESET_STATE",excludeKeys:h})};return N.jsx($9.Provider,{value:{getStates:r,setQueryState:u,setQueriesState:o,makeQueryInError:l,resetKeyState:c,resetState:f},children:e})},rH=()=>{const e=y.useContext($9);if(!e)throw new Error("useAsyncState must be used within an AsyncStateProvider");return e},T0=new Map,iH=!1,uH=!1,aH=!0,sH=!1,oH=1,lH=!1,cH=5*60*1e3,dH=5*60*1e3,wE=e=>e?Array.isArray(e)?e:[e]:[],S3=(e,t)=>wE(t).length>0?`${e}/${JSON.stringify(t)}`:e,Kc=(e,t,n)=>{const r=(n==null?void 0:n.retryLimit)??oH,u=(n==null?void 0:n.autoFetch)??sH,o=(n==null?void 0:n.retryTime)??dH,l=(n==null?void 0:n.cache)??iH,c=(n==null?void 0:n.store)??uH,f=(n==null?void 0:n.enable)??aH,h=(n==null?void 0:n.revalidation)??lH,m=(n==null?void 0:n.revalidateTime)??cH,E=(n==null?void 0:n.updateQueries)??[],g=(n==null?void 0:n.invalidateQueries)??[],_=n==null?void 0:n.onSuccess,S=n==null?void 0:n.onError,C=wE((n==null?void 0:n.args)??[]),{getStates:v,setQueryState:R,setQueriesState:D,makeQueryInError:b}=rH(),L=y.useRef(C),x=y.useRef(null),B=S3(e,L.current),{isFetched:O,fetchedDateTime:H,isLoading:U,isEnabled:G,error:fe,isSuccess:ae,isInvalidated:ce,data:Z,errorCount:te}=v(B),V=async(...W)=>{const j=S3(e,W);x.current&&x.current.abort();const re=new AbortController;if(x.current=re,T0.has(j))return T0.get(j);const ne=(async()=>{R(j,{isLoading:!0});let de=null;return await t(...W).then(Ee=>{de=Ee,R(j,{data:Ee,errorCount:0,isLoading:!1,isFetched:!0,fetchedDateTime:new Date,isSuccess:!0,isInvalidated:!1,error:null}),_==null||_(Ee),g.length>0&&D(g,{isInvalidated:!0}),E.length>0&&D(E,{data:Ee}),c&&localStorage.setItem(j,JSON.stringify(Ee))}).catch(Ee=>{const pe=Ee instanceof Error?Ee.message:String(Ee);b(j,pe),S==null||S(Ee.message)}).finally(()=>{T0.delete(j)}),de})();return T0.set(j,ne),await ne},ee=async(...W)=>{if(!(!G||!f))return W&&(L.current=wE(W)),await V(...L.current)},Q=async(...W)=>!G||!f||U?void 0:!ce&&ae&&l&&Z?Z:await ee(...W);y.useEffect(()=>{f!==G&&R(B,{isEnabled:G})},[f,G,B]),y.useEffect(()=>{if(!G||!f||!c||ce||O||Z)return;const W=localStorage.getItem(B);try{W&&R(B,{data:JSON.parse(W)})}catch(j){console.error(j)}},[c,B,O,ce,G,f,Z]),y.useEffect(()=>{u&&(!G||!f||O&&!ce||U||V(...L.current))},[u,G,f,O,ce,U,V]),y.useEffect(()=>{const W=te>0&&r>0,j=te>r;if(!G||!f||!W||j||!(l||c)||U||ae)return;const re=setTimeout(()=>{V(...L.current)},o);return()=>clearTimeout(re)},[G,te,r,f,o,l,c,ae,U,V]),y.useEffect(()=>{if(!h||m<=0||!G||!f||U||!ae||!H||!(l||c))return;const W=setTimeout(()=>{V(...L.current)},m);return()=>clearTimeout(W)},[h,m,l,c,ae,H,U,G,f,V]);const Ae=W=>{R(B,{data:W})},P={isFetched:O,isInvalidated:ce,error:fe,data:Z,errorCount:te,isSuccess:ae,isEnabled:G,isDisabled:!G,isLoading:U,isWaitingData:U&&!O&&!Z,isRevalidating:U&&O,[e]:Q,revalidate:ee,setData:Ae};return y.useEffect(()=>()=>{x.current&&x.current.abort()},[]),P},fH=e=>{var c;const t=ii(),r=ch(void 0,e??t??Qe),{data:u,isFetched:o}=Kc("getCSRFToken",r.auth.getCSRFToken,{cache:!0,autoFetch:!0});return{csrfToken:(c=u==null?void 0:u.data)==null?void 0:c.csrf_token,csrfTokenFetched:o}},hH=e=>{const t=ii(),n=e??t??Qe,r=ch(void 0,n),{data:u}=Kc("getOAuth2AccessToken",()=>r.auth.getOAuth2AccessToken(),{cache:!0,autoFetch:!0,enable:!!(n.editor.clientId&&n.editor.clientSecret)});return{oAuth2AccessToken:u==null?void 0:u.data}},AH=(e,t)=>{const n=ii(),u=ch(void 0,t??n??Qe),{getSession:o,revalidate:l,data:c,setData:f,isFetched:h}=Kc("getSession",async()=>{try{const E=await u.auth.getSession();if(E.data){const{user:g,organization:_,project:S}=E.data;return{user:g,organization:_,isOrganizationAdmin:(g&&((_==null?void 0:_.adminsIds)??[]).includes(g._id))??!1,project:S,isProjectAdmin:(g&&((S==null?void 0:S.adminsIds)??[]).includes(g._id))??!1}}}catch(E){console.error(E)}return null},{cache:!0,store:!0,autoFetch:!0,enable:!e,invalidateQueries:["getOrganizations","getProjects","getUsers","getDictionaries"]});return{session:y.useMemo(()=>c??(h?null:void 0),[c,h]),fetchSession:o,revalidateSession:l,setSession:f}},$c=({session:e,intlayerConfiguration:t}={})=>{const{csrfToken:n,csrfTokenFetched:r}=fH(t),{session:u,fetchSession:o,revalidateSession:l,setSession:c}=AH(e,t),{oAuth2AccessToken:f}=hH(t);return{session:u,fetchSession:o,setSession:c,revalidateSession:l,csrfToken:n,csrfTokenFetched:r,oAuth2AccessToken:f,isAuthenticated:!!(u||f),isProjectAdmin:u==null?void 0:u.isProjectAdmin,isOrganizationAdmin:u==null?void 0:u.isOrganizationAdmin}};function lt(e,t,{checkForDefaultPrevented:n=!0}={}){return function(u){if(e==null||e(u),n===!1||!u.defaultPrevented)return t==null?void 0:t(u)}}function N3(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Y9(...e){return t=>{let n=!1;const r=e.map(u=>{const o=N3(u,t);return!n&&typeof o=="function"&&(n=!0),o});if(n)return()=>{for(let u=0;u<r.length;u++){const o=r[u];typeof o=="function"?o():N3(e[u],null)}}}}function xt(...e){return y.useCallback(Y9(...e),e)}function mH(e,t){const n=y.createContext(t),r=o=>{const{children:l,...c}=o,f=y.useMemo(()=>c,Object.values(c));return N.jsx(n.Provider,{value:f,children:l})};r.displayName=e+"Provider";function u(o){const l=y.useContext(n);if(l)return l;if(t!==void 0)return t;throw new Error(`\`${o}\` must be used within \`${e}\``)}return[r,u]}function Yc(e,t=[]){let n=[];function r(o,l){const c=y.createContext(l),f=n.length;n=[...n,l];const h=E=>{var R;const{scope:g,children:_,...S}=E,C=((R=g==null?void 0:g[e])==null?void 0:R[f])||c,v=y.useMemo(()=>S,Object.values(S));return N.jsx(C.Provider,{value:v,children:_})};h.displayName=o+"Provider";function m(E,g){var C;const _=((C=g==null?void 0:g[e])==null?void 0:C[f])||c,S=y.useContext(_);if(S)return S;if(l!==void 0)return l;throw new Error(`\`${E}\` must be used within \`${o}\``)}return[h,m]}const u=()=>{const o=n.map(l=>y.createContext(l));return function(c){const f=(c==null?void 0:c[e])||o;return y.useMemo(()=>({[`__scope${e}`]:{...c,[e]:f}}),[c,f])}};return u.scopeName=e,[r,pH(u,...t)]}function pH(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(u=>({useScope:u(),scopeName:u.scopeName}));return function(o){const l=r.reduce((c,{useScope:f,scopeName:h})=>{const E=f(o)[`__scope${h}`];return{...c,...E}},{});return y.useMemo(()=>({[`__scope${t.scopeName}`]:l}),[l])}};return n.scopeName=t.scopeName,n}var xa=y.forwardRef((e,t)=>{const{children:n,...r}=e,u=y.Children.toArray(n),o=u.find(gH);if(o){const l=o.props.children,c=u.map(f=>f===o?y.Children.count(l)>1?y.Children.only(null):y.isValidElement(l)?l.props.children:null:f);return N.jsx(ME,{...r,ref:t,children:y.isValidElement(l)?y.cloneElement(l,void 0,c):null})}return N.jsx(ME,{...r,ref:t,children:n})});xa.displayName="Slot";var ME=y.forwardRef((e,t)=>{const{children:n,...r}=e;if(y.isValidElement(n)){const u=SH(n),o=_H(r,n.props);return n.type!==y.Fragment&&(o.ref=t?Y9(t,u):u),y.cloneElement(n,o)}return y.Children.count(n)>1?y.Children.only(null):null});ME.displayName="SlotClone";var EH=({children:e})=>N.jsx(N.Fragment,{children:e});function gH(e){return y.isValidElement(e)&&e.type===EH}function _H(e,t){const n={...t};for(const r in t){const u=e[r],o=t[r];/^on[A-Z]/.test(r)?u&&o?n[r]=(...c)=>{o(...c),u(...c)}:u&&(n[r]=u):r==="style"?n[r]={...u,...o}:r==="className"&&(n[r]=[u,o].filter(Boolean).join(" "))}return{...e,...n}}function SH(e){var r,u;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(u=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:u.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function Z9(e){const t=e+"CollectionProvider",[n,r]=Yc(t),[u,o]=n(t,{collectionRef:{current:null},itemMap:new Map}),l=_=>{const{scope:S,children:C}=_,v=$e.useRef(null),R=$e.useRef(new Map).current;return N.jsx(u,{scope:S,itemMap:R,collectionRef:v,children:C})};l.displayName=t;const c=e+"CollectionSlot",f=$e.forwardRef((_,S)=>{const{scope:C,children:v}=_,R=o(c,C),D=xt(S,R.collectionRef);return N.jsx(xa,{ref:D,children:v})});f.displayName=c;const h=e+"CollectionItemSlot",m="data-radix-collection-item",E=$e.forwardRef((_,S)=>{const{scope:C,children:v,...R}=_,D=$e.useRef(null),b=xt(S,D),L=o(h,C);return $e.useEffect(()=>(L.itemMap.set(D,{ref:D,...R}),()=>void L.itemMap.delete(D))),N.jsx(xa,{[m]:"",ref:b,children:v})});E.displayName=h;function g(_){const S=o(e+"CollectionConsumer",_);return $e.useCallback(()=>{const v=S.collectionRef.current;if(!v)return[];const R=Array.from(v.querySelectorAll(`[${m}]`));return Array.from(S.itemMap.values()).sort((L,x)=>R.indexOf(L.ref.current)-R.indexOf(x.ref.current))},[S.collectionRef,S.itemMap])}return[{Provider:l,Slot:f,ItemSlot:E},g,r]}var NH=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],nt=NH.reduce((e,t)=>{const n=y.forwardRef((r,u)=>{const{asChild:o,...l}=r,c=o?xa:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),N.jsx(c,{...l,ref:u})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function W9(e,t){e&&Ga.flushSync(()=>e.dispatchEvent(t))}function er(e){const t=y.useRef(e);return y.useEffect(()=>{t.current=e}),y.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function IH(e,t=globalThis==null?void 0:globalThis.document){const n=er(e);y.useEffect(()=>{const r=u=>{u.key==="Escape"&&n(u)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var yH="DismissableLayer",PE="dismissableLayer.update",CH="dismissableLayer.pointerDownOutside",vH="dismissableLayer.focusOutside",I3,q9=y.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Eh=y.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:u,onFocusOutside:o,onInteractOutside:l,onDismiss:c,...f}=e,h=y.useContext(q9),[m,E]=y.useState(null),g=(m==null?void 0:m.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,_]=y.useState({}),S=xt(t,O=>E(O)),C=Array.from(h.layers),[v]=[...h.layersWithOutsidePointerEventsDisabled].slice(-1),R=C.indexOf(v),D=m?C.indexOf(m):-1,b=h.layersWithOutsidePointerEventsDisabled.size>0,L=D>=R,x=DH(O=>{const H=O.target,U=[...h.branches].some(G=>G.contains(H));!L||U||(u==null||u(O),l==null||l(O),O.defaultPrevented||c==null||c())},g),B=TH(O=>{const H=O.target;[...h.branches].some(G=>G.contains(H))||(o==null||o(O),l==null||l(O),O.defaultPrevented||c==null||c())},g);return IH(O=>{D===h.layers.size-1&&(r==null||r(O),!O.defaultPrevented&&c&&(O.preventDefault(),c()))},g),y.useEffect(()=>{if(m)return n&&(h.layersWithOutsidePointerEventsDisabled.size===0&&(I3=g.body.style.pointerEvents,g.body.style.pointerEvents="none"),h.layersWithOutsidePointerEventsDisabled.add(m)),h.layers.add(m),y3(),()=>{n&&h.layersWithOutsidePointerEventsDisabled.size===1&&(g.body.style.pointerEvents=I3)}},[m,g,n,h]),y.useEffect(()=>()=>{m&&(h.layers.delete(m),h.layersWithOutsidePointerEventsDisabled.delete(m),y3())},[m,h]),y.useEffect(()=>{const O=()=>_({});return document.addEventListener(PE,O),()=>document.removeEventListener(PE,O)},[]),N.jsx(nt.div,{...f,ref:S,style:{pointerEvents:b?L?"auto":"none":void 0,...e.style},onFocusCapture:lt(e.onFocusCapture,B.onFocusCapture),onBlurCapture:lt(e.onBlurCapture,B.onBlurCapture),onPointerDownCapture:lt(e.onPointerDownCapture,x.onPointerDownCapture)})});Eh.displayName=yH;var RH="DismissableLayerBranch",X9=y.forwardRef((e,t)=>{const n=y.useContext(q9),r=y.useRef(null),u=xt(t,r);return y.useEffect(()=>{const o=r.current;if(o)return n.branches.add(o),()=>{n.branches.delete(o)}},[n.branches]),N.jsx(nt.div,{...e,ref:u})});X9.displayName=RH;function DH(e,t=globalThis==null?void 0:globalThis.document){const n=er(e),r=y.useRef(!1),u=y.useRef(()=>{});return y.useEffect(()=>{const o=c=>{if(c.target&&!r.current){let f=function(){Q9(CH,n,h,{discrete:!0})};const h={originalEvent:c};c.pointerType==="touch"?(t.removeEventListener("click",u.current),u.current=f,t.addEventListener("click",u.current,{once:!0})):f()}else t.removeEventListener("click",u.current);r.current=!1},l=window.setTimeout(()=>{t.addEventListener("pointerdown",o)},0);return()=>{window.clearTimeout(l),t.removeEventListener("pointerdown",o),t.removeEventListener("click",u.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function TH(e,t=globalThis==null?void 0:globalThis.document){const n=er(e),r=y.useRef(!1);return y.useEffect(()=>{const u=o=>{o.target&&!r.current&&Q9(vH,n,{originalEvent:o},{discrete:!1})};return t.addEventListener("focusin",u),()=>t.removeEventListener("focusin",u)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function y3(){const e=new CustomEvent(PE);document.dispatchEvent(e)}function Q9(e,t,n,{discrete:r}){const u=n.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&u.addEventListener(e,t,{once:!0}),r?W9(u,o):u.dispatchEvent(o)}var bH=Eh,xH=X9,Cn=globalThis!=null&&globalThis.document?y.useLayoutEffect:()=>{},BH="Portal",gh=y.forwardRef((e,t)=>{var c;const{container:n,...r}=e,[u,o]=y.useState(!1);Cn(()=>o(!0),[]);const l=n||u&&((c=globalThis==null?void 0:globalThis.document)==null?void 0:c.body);return l?t8.createPortal(N.jsx(nt.div,{...r,ref:t}),l):null});gh.displayName=BH;function FH(e,t){return y.useReducer((n,r)=>t[n][r]??n,e)}var Zc=e=>{const{present:t,children:n}=e,r=OH(t),u=typeof n=="function"?n({present:r.isPresent}):y.Children.only(n),o=xt(r.ref,LH(u));return typeof n=="function"||r.isPresent?y.cloneElement(u,{ref:o}):null};Zc.displayName="Presence";function OH(e){const[t,n]=y.useState(),r=y.useRef({}),u=y.useRef(e),o=y.useRef("none"),l=e?"mounted":"unmounted",[c,f]=FH(l,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return y.useEffect(()=>{const h=b0(r.current);o.current=c==="mounted"?h:"none"},[c]),Cn(()=>{const h=r.current,m=u.current;if(m!==e){const g=o.current,_=b0(h);e?f("MOUNT"):_==="none"||(h==null?void 0:h.display)==="none"?f("UNMOUNT"):f(m&&g!==_?"ANIMATION_OUT":"UNMOUNT"),u.current=e}},[e,f]),Cn(()=>{if(t){let h;const m=t.ownerDocument.defaultView??window,E=_=>{const C=b0(r.current).includes(_.animationName);if(_.target===t&&C&&(f("ANIMATION_END"),!u.current)){const v=t.style.animationFillMode;t.style.animationFillMode="forwards",h=m.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=v)})}},g=_=>{_.target===t&&(o.current=b0(r.current))};return t.addEventListener("animationstart",g),t.addEventListener("animationcancel",E),t.addEventListener("animationend",E),()=>{m.clearTimeout(h),t.removeEventListener("animationstart",g),t.removeEventListener("animationcancel",E),t.removeEventListener("animationend",E)}}else f("ANIMATION_END")},[t,f]),{isPresent:["mounted","unmountSuspended"].includes(c),ref:y.useCallback(h=>{h&&(r.current=getComputedStyle(h)),n(h)},[])}}function b0(e){return(e==null?void 0:e.animationName)||"none"}function LH(e){var r,u;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(u=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:u.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function gf({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,u]=wH({defaultProp:t,onChange:n}),o=e!==void 0,l=o?e:r,c=er(n),f=y.useCallback(h=>{if(o){const E=typeof h=="function"?h(e):h;E!==e&&c(E)}else u(h)},[o,e,u,c]);return[l,f]}function wH({defaultProp:e,onChange:t}){const n=y.useState(e),[r]=n,u=y.useRef(r),o=er(t);return y.useEffect(()=>{u.current!==r&&(o(r),u.current=r)},[r,u,o]),n}var MH="VisuallyHidden",_h=y.forwardRef((e,t)=>N.jsx(nt.span,{...e,ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}));_h.displayName=MH;var l4="ToastProvider",[c4,PH,HH]=Z9("Toast"),[J9,UH]=Yc("Toast",[HH]),[kH,Sh]=J9(l4),d4=e=>{const{__scopeToast:t,label:n="Notification",duration:r=5e3,swipeDirection:u="right",swipeThreshold:o=50,children:l}=e,[c,f]=y.useState(null),[h,m]=y.useState(0),E=y.useRef(!1),g=y.useRef(!1);return n.trim()||console.error(`Invalid prop \`label\` supplied to \`${l4}\`. Expected non-empty \`string\`.`),N.jsx(c4.Provider,{scope:t,children:N.jsx(kH,{scope:t,label:n,duration:r,swipeDirection:u,swipeThreshold:o,toastCount:h,viewport:c,onViewportChange:f,onToastAdd:y.useCallback(()=>m(_=>_+1),[]),onToastRemove:y.useCallback(()=>m(_=>_-1),[]),isFocusedToastEscapeKeyDownRef:E,isClosePausedRef:g,children:l})})};d4.displayName=l4;var e1="ToastViewport",GH=["F8"],HE="toast.viewportPause",UE="toast.viewportResume",f4=y.forwardRef((e,t)=>{const{__scopeToast:n,hotkey:r=GH,label:u="Notifications ({hotkey})",...o}=e,l=Sh(e1,n),c=PH(n),f=y.useRef(null),h=y.useRef(null),m=y.useRef(null),E=y.useRef(null),g=xt(t,E,l.onViewportChange),_=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),S=l.toastCount>0;y.useEffect(()=>{const v=R=>{var b;r.length!==0&&r.every(L=>R[L]||R.code===L)&&((b=E.current)==null||b.focus())};return document.addEventListener("keydown",v),()=>document.removeEventListener("keydown",v)},[r]),y.useEffect(()=>{const v=f.current,R=E.current;if(S&&v&&R){const D=()=>{if(!l.isClosePausedRef.current){const B=new CustomEvent(HE);R.dispatchEvent(B),l.isClosePausedRef.current=!0}},b=()=>{if(l.isClosePausedRef.current){const B=new CustomEvent(UE);R.dispatchEvent(B),l.isClosePausedRef.current=!1}},L=B=>{!v.contains(B.relatedTarget)&&b()},x=()=>{v.contains(document.activeElement)||b()};return v.addEventListener("focusin",D),v.addEventListener("focusout",L),v.addEventListener("pointermove",D),v.addEventListener("pointerleave",x),window.addEventListener("blur",D),window.addEventListener("focus",b),()=>{v.removeEventListener("focusin",D),v.removeEventListener("focusout",L),v.removeEventListener("pointermove",D),v.removeEventListener("pointerleave",x),window.removeEventListener("blur",D),window.removeEventListener("focus",b)}}},[S,l.isClosePausedRef]);const C=y.useCallback(({tabbingDirection:v})=>{const D=c().map(b=>{const L=b.ref.current,x=[L,...eU(L)];return v==="forwards"?x:x.reverse()});return(v==="forwards"?D.reverse():D).flat()},[c]);return y.useEffect(()=>{const v=E.current;if(v){const R=D=>{var x,B,O;const b=D.altKey||D.ctrlKey||D.metaKey;if(D.key==="Tab"&&!b){const H=document.activeElement,U=D.shiftKey;if(D.target===v&&U){(x=h.current)==null||x.focus();return}const ae=C({tabbingDirection:U?"backwards":"forwards"}),ce=ae.findIndex(Z=>Z===H);Rp(ae.slice(ce+1))?D.preventDefault():U?(B=h.current)==null||B.focus():(O=m.current)==null||O.focus()}};return v.addEventListener("keydown",R),()=>v.removeEventListener("keydown",R)}},[c,C]),N.jsxs(xH,{ref:f,role:"region","aria-label":u.replace("{hotkey}",_),tabIndex:-1,style:{pointerEvents:S?void 0:"none"},children:[S&&N.jsx(kE,{ref:h,onFocusFromOutsideViewport:()=>{const v=C({tabbingDirection:"forwards"});Rp(v)}}),N.jsx(c4.Slot,{scope:n,children:N.jsx(nt.ol,{tabIndex:-1,...o,ref:g})}),S&&N.jsx(kE,{ref:m,onFocusFromOutsideViewport:()=>{const v=C({tabbingDirection:"backwards"});Rp(v)}})]})});f4.displayName=e1;var t1="ToastFocusProxy",kE=y.forwardRef((e,t)=>{const{__scopeToast:n,onFocusFromOutsideViewport:r,...u}=e,o=Sh(t1,n);return N.jsx(_h,{"aria-hidden":!0,tabIndex:0,...u,ref:t,style:{position:"fixed"},onFocus:l=>{var h;const c=l.relatedTarget;!((h=o.viewport)!=null&&h.contains(c))&&r()}})});kE.displayName=t1;var Nh="Toast",VH="toast.swipeStart",jH="toast.swipeMove",zH="toast.swipeCancel",KH="toast.swipeEnd",h4=y.forwardRef((e,t)=>{const{forceMount:n,open:r,defaultOpen:u,onOpenChange:o,...l}=e,[c=!0,f]=gf({prop:r,defaultProp:u,onChange:o});return N.jsx(Zc,{present:n||c,children:N.jsx(ZH,{open:c,...l,ref:t,onClose:()=>f(!1),onPause:er(e.onPause),onResume:er(e.onResume),onSwipeStart:lt(e.onSwipeStart,h=>{h.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:lt(e.onSwipeMove,h=>{const{x:m,y:E}=h.detail.delta;h.currentTarget.setAttribute("data-swipe","move"),h.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${m}px`),h.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${E}px`)}),onSwipeCancel:lt(e.onSwipeCancel,h=>{h.currentTarget.setAttribute("data-swipe","cancel"),h.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),h.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),h.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),h.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:lt(e.onSwipeEnd,h=>{const{x:m,y:E}=h.detail.delta;h.currentTarget.setAttribute("data-swipe","end"),h.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),h.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),h.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${m}px`),h.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${E}px`),f(!1)})})})});h4.displayName=Nh;var[$H,YH]=J9(Nh,{onClose(){}}),ZH=y.forwardRef((e,t)=>{const{__scopeToast:n,type:r="foreground",duration:u,open:o,onClose:l,onEscapeKeyDown:c,onPause:f,onResume:h,onSwipeStart:m,onSwipeMove:E,onSwipeCancel:g,onSwipeEnd:_,...S}=e,C=Sh(Nh,n),[v,R]=y.useState(null),D=xt(t,Z=>R(Z)),b=y.useRef(null),L=y.useRef(null),x=u||C.duration,B=y.useRef(0),O=y.useRef(x),H=y.useRef(0),{onToastAdd:U,onToastRemove:G}=C,fe=er(()=>{var te;(v==null?void 0:v.contains(document.activeElement))&&((te=C.viewport)==null||te.focus()),l()}),ae=y.useCallback(Z=>{!Z||Z===1/0||(window.clearTimeout(H.current),B.current=new Date().getTime(),H.current=window.setTimeout(fe,Z))},[fe]);y.useEffect(()=>{const Z=C.viewport;if(Z){const te=()=>{ae(O.current),h==null||h()},V=()=>{const ee=new Date().getTime()-B.current;O.current=O.current-ee,window.clearTimeout(H.current),f==null||f()};return Z.addEventListener(HE,V),Z.addEventListener(UE,te),()=>{Z.removeEventListener(HE,V),Z.removeEventListener(UE,te)}}},[C.viewport,x,f,h,ae]),y.useEffect(()=>{o&&!C.isClosePausedRef.current&&ae(x)},[o,x,C.isClosePausedRef,ae]),y.useEffect(()=>(U(),()=>G()),[U,G]);const ce=y.useMemo(()=>v?u1(v):null,[v]);return C.viewport?N.jsxs(N.Fragment,{children:[ce&&N.jsx(WH,{__scopeToast:n,role:"status","aria-live":r==="foreground"?"assertive":"polite","aria-atomic":!0,children:ce}),N.jsx($H,{scope:n,onClose:fe,children:Ga.createPortal(N.jsx(c4.ItemSlot,{scope:n,children:N.jsx(bH,{asChild:!0,onEscapeKeyDown:lt(c,()=>{C.isFocusedToastEscapeKeyDownRef.current||fe(),C.isFocusedToastEscapeKeyDownRef.current=!1}),children:N.jsx(nt.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":o?"open":"closed","data-swipe-direction":C.swipeDirection,...S,ref:D,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:lt(e.onKeyDown,Z=>{Z.key==="Escape"&&(c==null||c(Z.nativeEvent),Z.nativeEvent.defaultPrevented||(C.isFocusedToastEscapeKeyDownRef.current=!0,fe()))}),onPointerDown:lt(e.onPointerDown,Z=>{Z.button===0&&(b.current={x:Z.clientX,y:Z.clientY})}),onPointerMove:lt(e.onPointerMove,Z=>{if(!b.current)return;const te=Z.clientX-b.current.x,V=Z.clientY-b.current.y,ee=!!L.current,Q=["left","right"].includes(C.swipeDirection),Ae=["left","up"].includes(C.swipeDirection)?Math.min:Math.max,P=Q?Ae(0,te):0,W=Q?0:Ae(0,V),j=Z.pointerType==="touch"?10:2,re={x:P,y:W},ne={originalEvent:Z,delta:re};ee?(L.current=re,x0(jH,E,ne,{discrete:!1})):C3(re,C.swipeDirection,j)?(L.current=re,x0(VH,m,ne,{discrete:!1}),Z.target.setPointerCapture(Z.pointerId)):(Math.abs(te)>j||Math.abs(V)>j)&&(b.current=null)}),onPointerUp:lt(e.onPointerUp,Z=>{const te=L.current,V=Z.target;if(V.hasPointerCapture(Z.pointerId)&&V.releasePointerCapture(Z.pointerId),L.current=null,b.current=null,te){const ee=Z.currentTarget,Q={originalEvent:Z,delta:te};C3(te,C.swipeDirection,C.swipeThreshold)?x0(KH,_,Q,{discrete:!0}):x0(zH,g,Q,{discrete:!0}),ee.addEventListener("click",Ae=>Ae.preventDefault(),{once:!0})}})})})}),C.viewport)})]}):null}),WH=e=>{const{__scopeToast:t,children:n,...r}=e,u=Sh(Nh,t),[o,l]=y.useState(!1),[c,f]=y.useState(!1);return QH(()=>l(!0)),y.useEffect(()=>{const h=window.setTimeout(()=>f(!0),1e3);return()=>window.clearTimeout(h)},[]),c?null:N.jsx(gh,{asChild:!0,children:N.jsx(_h,{...r,children:o&&N.jsxs(N.Fragment,{children:[u.label," ",n]})})})},qH="ToastTitle",A4=y.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return N.jsx(nt.div,{...r,ref:t})});A4.displayName=qH;var XH="ToastDescription",m4=y.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return N.jsx(nt.div,{...r,ref:t})});m4.displayName=XH;var n1="ToastAction",p4=y.forwardRef((e,t)=>{const{altText:n,...r}=e;return n.trim()?N.jsx(i1,{altText:n,asChild:!0,children:N.jsx(Ih,{...r,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${n1}\`. Expected non-empty \`string\`.`),null)});p4.displayName=n1;var r1="ToastClose",Ih=y.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e,u=YH(r1,n);return N.jsx(i1,{asChild:!0,children:N.jsx(nt.button,{type:"button",...r,ref:t,onClick:lt(e.onClick,u.onClose)})})});Ih.displayName=r1;var i1=y.forwardRef((e,t)=>{const{__scopeToast:n,altText:r,...u}=e;return N.jsx(nt.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0,...u,ref:t})});function u1(e){const t=[];return Array.from(e.childNodes).forEach(r=>{if(r.nodeType===r.TEXT_NODE&&r.textContent&&t.push(r.textContent),JH(r)){const u=r.ariaHidden||r.hidden||r.style.display==="none",o=r.dataset.radixToastAnnounceExclude==="";if(!u)if(o){const l=r.dataset.radixToastAnnounceAlt;l&&t.push(l)}else t.push(...u1(r))}}),t}function x0(e,t,n,{discrete:r}){const u=n.originalEvent.currentTarget,o=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});t&&u.addEventListener(e,t,{once:!0}),r?W9(u,o):u.dispatchEvent(o)}var C3=(e,t,n=0)=>{const r=Math.abs(e.x),u=Math.abs(e.y),o=r>u;return t==="left"||t==="right"?o&&r>n:!o&&u>n};function QH(e=()=>{}){const t=er(e);Cn(()=>{let n=0,r=0;return n=window.requestAnimationFrame(()=>r=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(n),window.cancelAnimationFrame(r)}},[t])}function JH(e){return e.nodeType===e.ELEMENT_NODE}function eU(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const u=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||u?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Rp(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}var tU=d4,a1=f4,s1=h4,o1=A4,l1=m4,nU=p4,c1=Ih;const rU=Object.freeze(Object.defineProperty({__proto__:null,Action:nU,Close:c1,Description:l1,Provider:tU,Root:s1,Title:o1,Toast:h4,ToastAction:p4,ToastClose:Ih,ToastDescription:m4,ToastProvider:d4,ToastTitle:A4,ToastViewport:f4,Viewport:a1,createToastScope:UH},Symbol.toStringTag,{value:"Module"})),iU=rU,uU=({className:e,...t})=>N.jsx(a1,{className:Re("fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",e),...t}),aU=Ir("group pointer-events-auto relative flex w-full items-center justify-between space-x-2 overflow-hidden rounded-md p-4 pr-6 shadow-[0_0_10px_-15px_rgba(0,0,0,0.3)] backdrop-blur transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",{variants:{variant:{error:"bg-error/40 text-text",success:"bg-success/30 text-text",default:"bg-card/80 text-text"}},defaultVariants:{variant:"default"}}),sU=({className:e,variant:t,...n})=>N.jsx(s1,{className:Re(aU({variant:t}),e),...n}),oU=({className:e,...t})=>N.jsx(c1,{className:Re("text-text/50 hover:text-text/80 focus:outline-hidden absolute right-1 top-1 rounded-md p-1 opacity-0 transition-opacity focus:opacity-100 focus:ring-1 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",e),"toast-close":"",...t,children:N.jsx(Va,{className:"size-5"})}),lU=({className:e,...t})=>N.jsx(o1,{className:Re("text-sm font-semibold [&+div]:text-xs",e),...t}),cU=({className:e,...t})=>N.jsx(l1,{className:Re("text-sm opacity-90",e),...t}),dU=1,fU=15*60*1e3;let Dp=0;const hU=()=>(Dp=(Dp+1)%Number.MAX_SAFE_INTEGER,Dp.toString()),Tp=new Map,v3=e=>{if(Tp.has(e))return;const t=setTimeout(()=>{Tp.delete(e),Wl({type:"REMOVE_TOAST",toastId:e})},fU);Tp.set(e,t)},AU=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,dU)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(n=>n.id===t.toast.id?{...n,...t.toast}:n)};case"DISMISS_TOAST":{const{toastId:n}=t;return n?v3(n):e.toasts.forEach(r=>{v3(r.id)}),{...e,toasts:e.toasts.map(r=>r.id===n||n===void 0?{...r,open:!1}:r)}}case"REMOVE_TOAST":return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(n=>n.id!==t.toastId)}}},ef=[];let tf={toasts:[]};const Wl=e=>{tf=AU(tf,e),ef.forEach(t=>{t(tf)})},mU=({...e})=>{const t=hU(),n=u=>Wl({type:"UPDATE_TOAST",toast:{...u,id:t}}),r=()=>Wl({type:"DISMISS_TOAST",toastId:t});return Wl({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:u=>{u||r()}}}),{id:t,dismiss:r,update:n}},d1=()=>{const[e,t]=y.useState(tf);return y.useEffect(()=>(ef.push(t),()=>{const n=ef.indexOf(t);n>-1&&ef.splice(n,1)}),[e]),{...e,toast:mU,dismiss:n=>Wl({type:"DISMISS_TOAST",toastId:n})}},Vi=e=>{const t=ii(),{csrfToken:n,oAuth2AccessToken:r}=$c(),u=r!=null&&r.accessToken?{Authorization:`Bearer ${r.accessToken}`}:void 0;return ch({headers:u,body:n?{csrf_token:n}:void 0},t)};var pU={};const f1=e=>{const{toast:t}=d1();return{...e,onError:n=>{var u;let r;try{if(typeof n>"u")return;r=JSON.parse(n)}catch{r=n}[r].flatMap(o=>o).forEach(o=>t({title:(pU.NODE_ENV==="production"?o.title:o.code)??"Error",description:o.message??n??"An error occurred",variant:"error"})),(u=e.onError)==null||u.call(e,n)},onSuccess:n=>{var r;n.message&&t({title:n.message,description:n.description,variant:"success"}),(r=e.onSuccess)==null||r.call(e,n)}}},EU=(e,{requireUser:t,requireProject:n,requireOrganization:r}={})=>{const u=ii(),{csrfToken:o,oAuth2AccessToken:l,session:c}=$c({intlayerConfiguration:u}),f=(e==null?void 0:e.enable)??!0,h=c?c.user:l==null?void 0:l.user,m=c?c.organization:l==null?void 0:l.organization,E=c?c.project:l==null?void 0:l.project;return{...e,enable:f&&(t?!!h:!0)&&(n?!!E:!0)&&(r?!!m:!0)&&(!!o||!c&&!!l)}},wu=(e,t,n,r)=>{const u=EU(n??{},r),o=f1(u);return Kc(e,t,o)},gU=(e,t,n)=>{const r=f1({});return Kc(e,t,r)},_U=e=>wu("logout",Vi().auth.logout,{invalidateQueries:["getSession"],...e}),SU=e=>wu("getProjects",Vi().project.getProjects,{cache:!0,store:!0,retryLimit:3,autoFetch:!0,revalidation:!0,revalidateTime:5*60*1e3,...e},{requireUser:!0,requireOrganization:!0}),NU=e=>wu("getDictionaries",Vi().dictionary.getDictionaries,{cache:!0,store:!0,retryLimit:3,autoFetch:!0,revalidation:!0,revalidateTime:5*60*1e3,...e},{requireUser:!0,requireOrganization:!0,requireProject:!0}),IU=e=>wu("pushDictionaries",Vi().dictionary.pushDictionaries,{invalidateQueries:["getDictionaries","getDictionary","getDictionariesKeys"],...e}),yU=e=>wu("getTags",Vi().tag.getTags,{cache:!0,store:!0,retryLimit:3,autoFetch:!0,revalidation:!0,revalidateTime:5*60*1e3,...e},{requireUser:!0,requireOrganization:!0}),CU=e=>wu("auditContentDeclaration",Vi().ai.auditContentDeclarationMetadata,e,{requireUser:!0,requireOrganization:!0,requireProject:!0}),vU=e=>wu("auditContentDeclarationField",Vi().ai.auditContentDeclarationField,e,{requireUser:!0,requireOrganization:!0,requireProject:!0}),RU=e=>wu("autocomplete",Vi().ai.autocomplete,e),DU=e=>gU("writeDictionary",Vi().editor.writeDictionary);var bp,R3;function TU(){if(R3)return bp;R3=1;var e=function(D){return t(D)&&!n(D)};function t(R){return!!R&&typeof R=="object"}function n(R){var D=Object.prototype.toString.call(R);return D==="[object RegExp]"||D==="[object Date]"||o(R)}var r=typeof Symbol=="function"&&Symbol.for,u=r?Symbol.for("react.element"):60103;function o(R){return R.$$typeof===u}function l(R){return Array.isArray(R)?[]:{}}function c(R,D){return D.clone!==!1&&D.isMergeableObject(R)?C(l(R),R,D):R}function f(R,D,b){return R.concat(D).map(function(L){return c(L,b)})}function h(R,D){if(!D.customMerge)return C;var b=D.customMerge(R);return typeof b=="function"?b:C}function m(R){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(R).filter(function(D){return Object.propertyIsEnumerable.call(R,D)}):[]}function E(R){return Object.keys(R).concat(m(R))}function g(R,D){try{return D in R}catch{return!1}}function _(R,D){return g(R,D)&&!(Object.hasOwnProperty.call(R,D)&&Object.propertyIsEnumerable.call(R,D))}function S(R,D,b){var L={};return b.isMergeableObject(R)&&E(R).forEach(function(x){L[x]=c(R[x],b)}),E(D).forEach(function(x){_(R,x)||(g(R,x)&&b.isMergeableObject(D[x])?L[x]=h(x,b)(R[x],D[x],b):L[x]=c(D[x],b))}),L}function C(R,D,b){b=b||{},b.arrayMerge=b.arrayMerge||f,b.isMergeableObject=b.isMergeableObject||e,b.cloneUnlessOtherwiseSpecified=c;var L=Array.isArray(D),x=Array.isArray(R),B=L===x;return B?L?b.arrayMerge(R,D,b):S(R,D,b):c(D,b)}C.all=function(D,b){if(!Array.isArray(D))throw new Error("first argument should be an array");return D.reduce(function(L,x){return C(L,x,b)},{})};var v=C;return bp=v,bp}var bU=TU();const xU=lh(bU);var Wc=e=>e.type==="checkbox",Ia=e=>e instanceof Date,bn=e=>e==null;const h1=e=>typeof e=="object";var Gt=e=>!bn(e)&&!Array.isArray(e)&&h1(e)&&!Ia(e),A1=e=>Gt(e)&&e.target?Wc(e.target)?e.target.checked:e.target.value:e,BU=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,m1=(e,t)=>e.has(BU(t)),FU=e=>{const t=e.constructor&&e.constructor.prototype;return Gt(t)&&t.hasOwnProperty("isPrototypeOf")},E4=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function Pn(e){let t;const n=Array.isArray(e),r=typeof FileList<"u"?e instanceof FileList:!1;if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else if(!(E4&&(e instanceof Blob||r))&&(n||Gt(e)))if(t=n?[]:{},!n&&!FU(e))t=e;else for(const u in e)e.hasOwnProperty(u)&&(t[u]=Pn(e[u]));else return e;return t}var yh=e=>Array.isArray(e)?e.filter(Boolean):[],kt=e=>e===void 0,Ne=(e,t,n)=>{if(!t||!Gt(e))return n;const r=yh(t.split(/[,[\].]+?/)).reduce((u,o)=>bn(u)?u:u[o],e);return kt(r)||r===e?kt(e[t])?n:e[t]:r},Er=e=>typeof e=="boolean",g4=e=>/^\w*$/.test(e),p1=e=>yh(e.replace(/["|']|\]/g,"").split(/\.|\[/)),At=(e,t,n)=>{let r=-1;const u=g4(t)?[t]:p1(t),o=u.length,l=o-1;for(;++r<o;){const c=u[r];let f=n;if(r!==l){const h=e[c];f=Gt(h)||Array.isArray(h)?h:isNaN(+u[r+1])?{}:[]}if(c==="__proto__"||c==="constructor"||c==="prototype")return;e[c]=f,e=e[c]}return e};const _f={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},xr={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},Ri={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},E1=$e.createContext(null),Mu=()=>$e.useContext(E1),OU=e=>{const{children:t,...n}=e;return $e.createElement(E1.Provider,{value:n},t)};var g1=(e,t,n,r=!0)=>{const u={defaultValues:t._defaultValues};for(const o in e)Object.defineProperty(u,o,{get:()=>{const l=o;return t._proxyFormState[l]!==xr.all&&(t._proxyFormState[l]=!r||xr.all),n&&(n[l]=!0),e[l]}});return u},Hn=e=>Gt(e)&&!Object.keys(e).length,_1=(e,t,n,r)=>{n(e);const{name:u,...o}=e;return Hn(o)||Object.keys(o).length>=Object.keys(t).length||Object.keys(o).find(l=>t[l]===(!r||xr.all))},ql=e=>Array.isArray(e)?e:[e],S1=(e,t,n)=>!e||!t||e===t||ql(e).some(r=>r&&(n?r===t:r.startsWith(t)||t.startsWith(r)));function _4(e){const t=$e.useRef(e);t.current=e,$e.useEffect(()=>{const n=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{n&&n.unsubscribe()}},[e.disabled])}function LU(e){const t=Mu(),{control:n=t.control,disabled:r,name:u,exact:o}=e||{},[l,c]=$e.useState(n._formState),f=$e.useRef(!0),h=$e.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1}),m=$e.useRef(u);return m.current=u,_4({disabled:r,next:E=>f.current&&S1(m.current,E.name,o)&&_1(E,h.current,n._updateFormState)&&c({...n._formState,...E}),subject:n._subjects.state}),$e.useEffect(()=>(f.current=!0,h.current.isValid&&n._updateValid(!0),()=>{f.current=!1}),[n]),$e.useMemo(()=>g1(l,n,h.current,!1),[l,n])}var Zr=e=>typeof e=="string",N1=(e,t,n,r,u)=>Zr(e)?(r&&t.watch.add(e),Ne(n,e,u)):Array.isArray(e)?e.map(o=>(r&&t.watch.add(o),Ne(n,o))):(r&&(t.watchAll=!0),n);function wU(e){const t=Mu(),{control:n=t.control,name:r,defaultValue:u,disabled:o,exact:l}=e||{},c=$e.useRef(r);c.current=r,_4({disabled:o,subject:n._subjects.values,next:m=>{S1(c.current,m.name,l)&&h(Pn(N1(c.current,n._names,m.values||n._formValues,!1,u)))}});const[f,h]=$e.useState(n._getWatch(r,u));return $e.useEffect(()=>n._removeUnmounted()),f}function MU(e){const t=Mu(),{name:n,disabled:r,control:u=t.control,shouldUnregister:o}=e,l=m1(u._names.array,n),c=wU({control:u,name:n,defaultValue:Ne(u._formValues,n,Ne(u._defaultValues,n,e.defaultValue)),exact:!0}),f=LU({control:u,name:n,exact:!0}),h=$e.useRef(u.register(n,{...e.rules,value:c,...Er(e.disabled)?{disabled:e.disabled}:{}})),m=$e.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!Ne(f.errors,n)},isDirty:{enumerable:!0,get:()=>!!Ne(f.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!Ne(f.touchedFields,n)},isValidating:{enumerable:!0,get:()=>!!Ne(f.validatingFields,n)},error:{enumerable:!0,get:()=>Ne(f.errors,n)}}),[f,n]),E=$e.useMemo(()=>({name:n,value:c,...Er(r)||f.disabled?{disabled:f.disabled||r}:{},onChange:g=>h.current.onChange({target:{value:A1(g),name:n},type:_f.CHANGE}),onBlur:()=>h.current.onBlur({target:{value:Ne(u._formValues,n),name:n},type:_f.BLUR}),ref:g=>{const _=Ne(u._fields,n);_&&g&&(_._f.ref={focus:()=>g.focus(),select:()=>g.select(),setCustomValidity:S=>g.setCustomValidity(S),reportValidity:()=>g.reportValidity()})}}),[n,u._formValues,r,f.disabled,c,u._fields]);return $e.useEffect(()=>{const g=u._options.shouldUnregister||o,_=(S,C)=>{const v=Ne(u._fields,S);v&&v._f&&(v._f.mount=C)};if(_(n,!0),g){const S=Pn(Ne(u._options.defaultValues,n));At(u._defaultValues,n,S),kt(Ne(u._formValues,n))&&At(u._formValues,n,S)}return!l&&u.register(n),()=>{(l?g&&!u._state.action:g)?u.unregister(n):_(n,!1)}},[n,u,l,o]),$e.useEffect(()=>{u._updateDisabledField({disabled:r,fields:u._fields,name:n})},[r,n,u]),$e.useMemo(()=>({field:E,formState:f,fieldState:m}),[E,f,m])}const PU=e=>e.render(MU(e));var I1=(e,t,n,r,u)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:u||!0}}:{},D3=e=>({isOnSubmit:!e||e===xr.onSubmit,isOnBlur:e===xr.onBlur,isOnChange:e===xr.onChange,isOnAll:e===xr.all,isOnTouch:e===xr.onTouched}),T3=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(r=>e.startsWith(r)&&/^\.\w+/.test(e.slice(r.length))));const Xl=(e,t,n,r)=>{for(const u of n||Object.keys(e)){const o=Ne(e,u);if(o){const{_f:l,...c}=o;if(l){if(l.refs&&l.refs[0]&&t(l.refs[0],u)&&!r)return!0;if(l.ref&&t(l.ref,l.name)&&!r)return!0;if(Xl(c,t))break}else if(Gt(c)&&Xl(c,t))break}}};var HU=(e,t,n)=>{const r=ql(Ne(e,n));return At(r,"root",t[n]),At(e,n,r),e},S4=e=>e.type==="file",$r=e=>typeof e=="function",Sf=e=>{if(!E4)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},nf=e=>Zr(e),N4=e=>e.type==="radio",Nf=e=>e instanceof RegExp;const b3={value:!1,isValid:!1},x3={value:!0,isValid:!0};var y1=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter(n=>n&&n.checked&&!n.disabled).map(n=>n.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!kt(e[0].attributes.value)?kt(e[0].value)||e[0].value===""?x3:{value:e[0].value,isValid:!0}:x3:b3}return b3};const B3={isValid:!1,value:null};var C1=e=>Array.isArray(e)?e.reduce((t,n)=>n&&n.checked&&!n.disabled?{isValid:!0,value:n.value}:t,B3):B3;function F3(e,t,n="validate"){if(nf(e)||Array.isArray(e)&&e.every(nf)||Er(e)&&!e)return{type:n,message:nf(e)?e:"",ref:t}}var Bs=e=>Gt(e)&&!Nf(e)?e:{value:e,message:""},O3=async(e,t,n,r,u,o)=>{const{ref:l,refs:c,required:f,maxLength:h,minLength:m,min:E,max:g,pattern:_,validate:S,name:C,valueAsNumber:v,mount:R}=e._f,D=Ne(n,C);if(!R||t.has(C))return{};const b=c?c[0]:l,L=ae=>{u&&b.reportValidity&&(b.setCustomValidity(Er(ae)?"":ae||""),b.reportValidity())},x={},B=N4(l),O=Wc(l),H=B||O,U=(v||S4(l))&&kt(l.value)&&kt(D)||Sf(l)&&l.value===""||D===""||Array.isArray(D)&&!D.length,G=I1.bind(null,C,r,x),fe=(ae,ce,Z,te=Ri.maxLength,V=Ri.minLength)=>{const ee=ae?ce:Z;x[C]={type:ae?te:V,message:ee,ref:l,...G(ae?te:V,ee)}};if(o?!Array.isArray(D)||!D.length:f&&(!H&&(U||bn(D))||Er(D)&&!D||O&&!y1(c).isValid||B&&!C1(c).isValid)){const{value:ae,message:ce}=nf(f)?{value:!!f,message:f}:Bs(f);if(ae&&(x[C]={type:Ri.required,message:ce,ref:b,...G(Ri.required,ce)},!r))return L(ce),x}if(!U&&(!bn(E)||!bn(g))){let ae,ce;const Z=Bs(g),te=Bs(E);if(!bn(D)&&!isNaN(D)){const V=l.valueAsNumber||D&&+D;bn(Z.value)||(ae=V>Z.value),bn(te.value)||(ce=V<te.value)}else{const V=l.valueAsDate||new Date(D),ee=P=>new Date(new Date().toDateString()+" "+P),Q=l.type=="time",Ae=l.type=="week";Zr(Z.value)&&D&&(ae=Q?ee(D)>ee(Z.value):Ae?D>Z.value:V>new Date(Z.value)),Zr(te.value)&&D&&(ce=Q?ee(D)<ee(te.value):Ae?D<te.value:V<new Date(te.value))}if((ae||ce)&&(fe(!!ae,Z.message,te.message,Ri.max,Ri.min),!r))return L(x[C].message),x}if((h||m)&&!U&&(Zr(D)||o&&Array.isArray(D))){const ae=Bs(h),ce=Bs(m),Z=!bn(ae.value)&&D.length>+ae.value,te=!bn(ce.value)&&D.length<+ce.value;if((Z||te)&&(fe(Z,ae.message,ce.message),!r))return L(x[C].message),x}if(_&&!U&&Zr(D)){const{value:ae,message:ce}=Bs(_);if(Nf(ae)&&!D.match(ae)&&(x[C]={type:Ri.pattern,message:ce,ref:l,...G(Ri.pattern,ce)},!r))return L(ce),x}if(S){if($r(S)){const ae=await S(D,n),ce=F3(ae,b);if(ce&&(x[C]={...ce,...G(Ri.validate,ce.message)},!r))return L(ce.message),x}else if(Gt(S)){let ae={};for(const ce in S){if(!Hn(ae)&&!r)break;const Z=F3(await S[ce](D,n),b,ce);Z&&(ae={...Z,...G(ce,Z.message)},L(Z.message),r&&(x[C]=ae))}if(!Hn(ae)&&(x[C]={ref:b,...ae},!r))return x}}return L(!0),x};function UU(e,t){const n=t.slice(0,-1).length;let r=0;for(;r<n;)e=kt(e)?r++:e[t[r++]];return e}function kU(e){for(const t in e)if(e.hasOwnProperty(t)&&!kt(e[t]))return!1;return!0}function Wt(e,t){const n=Array.isArray(t)?t:g4(t)?[t]:p1(t),r=n.length===1?e:UU(e,n),u=n.length-1,o=n[u];return r&&delete r[o],u!==0&&(Gt(r)&&Hn(r)||Array.isArray(r)&&kU(r))&&Wt(e,n.slice(0,-1)),e}var xp=()=>{let e=[];return{get observers(){return e},next:u=>{for(const o of e)o.next&&o.next(u)},subscribe:u=>(e.push(u),{unsubscribe:()=>{e=e.filter(o=>o!==u)}}),unsubscribe:()=>{e=[]}}},GE=e=>bn(e)||!h1(e);function Su(e,t){if(GE(e)||GE(t))return e===t;if(Ia(e)&&Ia(t))return e.getTime()===t.getTime();const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(const u of n){const o=e[u];if(!r.includes(u))return!1;if(u!=="ref"){const l=t[u];if(Ia(o)&&Ia(l)||Gt(o)&&Gt(l)||Array.isArray(o)&&Array.isArray(l)?!Su(o,l):o!==l)return!1}}return!0}var v1=e=>e.type==="select-multiple",GU=e=>N4(e)||Wc(e),Bp=e=>Sf(e)&&e.isConnected,R1=e=>{for(const t in e)if($r(e[t]))return!0;return!1};function If(e,t={}){const n=Array.isArray(e);if(Gt(e)||n)for(const r in e)Array.isArray(e[r])||Gt(e[r])&&!R1(e[r])?(t[r]=Array.isArray(e[r])?[]:{},If(e[r],t[r])):bn(e[r])||(t[r]=!0);return t}function D1(e,t,n){const r=Array.isArray(e);if(Gt(e)||r)for(const u in e)Array.isArray(e[u])||Gt(e[u])&&!R1(e[u])?kt(t)||GE(n[u])?n[u]=Array.isArray(e[u])?If(e[u],[]):{...If(e[u])}:D1(e[u],bn(t)?{}:t[u],n[u]):n[u]=!Su(e[u],t[u]);return n}var Ll=(e,t)=>D1(e,t,If(t)),T1=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>kt(e)?e:t?e===""?NaN:e&&+e:n&&Zr(e)?new Date(e):r?r(e):e;function Fp(e){const t=e.ref;return S4(t)?t.files:N4(t)?C1(e.refs).value:v1(t)?[...t.selectedOptions].map(({value:n})=>n):Wc(t)?y1(e.refs).value:T1(kt(t.value)?e.ref.value:t.value,e)}var VU=(e,t,n,r)=>{const u={};for(const o of e){const l=Ne(t,o);l&&At(u,o,l._f)}return{criteriaMode:n,names:[...e],fields:u,shouldUseNativeValidation:r}},wl=e=>kt(e)?e:Nf(e)?e.source:Gt(e)?Nf(e.value)?e.value.source:e.value:e;const L3="AsyncFunction";var jU=e=>!!e&&!!e.validate&&!!($r(e.validate)&&e.validate.constructor.name===L3||Gt(e.validate)&&Object.values(e.validate).find(t=>t.constructor.name===L3)),zU=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function w3(e,t,n){const r=Ne(e,n);if(r||g4(n))return{error:r,name:n};const u=n.split(".");for(;u.length;){const o=u.join("."),l=Ne(t,o),c=Ne(e,o);if(l&&!Array.isArray(l)&&n!==o)return{name:n};if(c&&c.type)return{name:o,error:c};u.pop()}return{name:n}}var KU=(e,t,n,r,u)=>u.isOnAll?!1:!n&&u.isOnTouch?!(t||e):(n?r.isOnBlur:u.isOnBlur)?!e:(n?r.isOnChange:u.isOnChange)?e:!0,$U=(e,t)=>!yh(Ne(e,t)).length&&Wt(e,t);const YU={mode:xr.onSubmit,reValidateMode:xr.onChange,shouldFocusError:!0};function ZU(e={}){let t={...YU,...e},n={submitCount:0,isDirty:!1,isLoading:$r(t.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:t.errors||{},disabled:t.disabled||!1},r={},u=Gt(t.defaultValues)||Gt(t.values)?Pn(t.defaultValues||t.values)||{}:{},o=t.shouldUnregister?{}:Pn(u),l={action:!1,mount:!1,watch:!1},c={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set},f,h=0;const m={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},E={values:xp(),array:xp(),state:xp()},g=D3(t.mode),_=D3(t.reValidateMode),S=t.criteriaMode===xr.all,C=k=>X=>{clearTimeout(h),h=setTimeout(k,X)},v=async k=>{if(!t.disabled&&(m.isValid||k)){const X=t.resolver?Hn((await H()).errors):await G(r,!0);X!==n.isValid&&E.state.next({isValid:X})}},R=(k,X)=>{!t.disabled&&(m.isValidating||m.validatingFields)&&((k||Array.from(c.mount)).forEach(ie=>{ie&&(X?At(n.validatingFields,ie,X):Wt(n.validatingFields,ie))}),E.state.next({validatingFields:n.validatingFields,isValidating:!Hn(n.validatingFields)}))},D=(k,X=[],ie,Ce,Ie=!0,Se=!0)=>{if(Ce&&ie&&!t.disabled){if(l.action=!0,Se&&Array.isArray(Ne(r,k))){const Be=ie(Ne(r,k),Ce.argA,Ce.argB);Ie&&At(r,k,Be)}if(Se&&Array.isArray(Ne(n.errors,k))){const Be=ie(Ne(n.errors,k),Ce.argA,Ce.argB);Ie&&At(n.errors,k,Be),$U(n.errors,k)}if(m.touchedFields&&Se&&Array.isArray(Ne(n.touchedFields,k))){const Be=ie(Ne(n.touchedFields,k),Ce.argA,Ce.argB);Ie&&At(n.touchedFields,k,Be)}m.dirtyFields&&(n.dirtyFields=Ll(u,o)),E.state.next({name:k,isDirty:ae(k,X),dirtyFields:n.dirtyFields,errors:n.errors,isValid:n.isValid})}else At(o,k,X)},b=(k,X)=>{At(n.errors,k,X),E.state.next({errors:n.errors})},L=k=>{n.errors=k,E.state.next({errors:n.errors,isValid:!1})},x=(k,X,ie,Ce)=>{const Ie=Ne(r,k);if(Ie){const Se=Ne(o,k,kt(ie)?Ne(u,k):ie);kt(Se)||Ce&&Ce.defaultChecked||X?At(o,k,X?Se:Fp(Ie._f)):te(k,Se),l.mount&&v()}},B=(k,X,ie,Ce,Ie)=>{let Se=!1,Be=!1;const Je={name:k};if(!t.disabled){const Mt=!!(Ne(r,k)&&Ne(r,k)._f&&Ne(r,k)._f.disabled);if(!ie||Ce){m.isDirty&&(Be=n.isDirty,n.isDirty=Je.isDirty=ae(),Se=Be!==Je.isDirty);const Pt=Mt||Su(Ne(u,k),X);Be=!!(!Mt&&Ne(n.dirtyFields,k)),Pt||Mt?Wt(n.dirtyFields,k):At(n.dirtyFields,k,!0),Je.dirtyFields=n.dirtyFields,Se=Se||m.dirtyFields&&Be!==!Pt}if(ie){const Pt=Ne(n.touchedFields,k);Pt||(At(n.touchedFields,k,ie),Je.touchedFields=n.touchedFields,Se=Se||m.touchedFields&&Pt!==ie)}Se&&Ie&&E.state.next(Je)}return Se?Je:{}},O=(k,X,ie,Ce)=>{const Ie=Ne(n.errors,k),Se=m.isValid&&Er(X)&&n.isValid!==X;if(t.delayError&&ie?(f=C(()=>b(k,ie)),f(t.delayError)):(clearTimeout(h),f=null,ie?At(n.errors,k,ie):Wt(n.errors,k)),(ie?!Su(Ie,ie):Ie)||!Hn(Ce)||Se){const Be={...Ce,...Se&&Er(X)?{isValid:X}:{},errors:n.errors,name:k};n={...n,...Be},E.state.next(Be)}},H=async k=>{R(k,!0);const X=await t.resolver(o,t.context,VU(k||c.mount,r,t.criteriaMode,t.shouldUseNativeValidation));return R(k),X},U=async k=>{const{errors:X}=await H(k);if(k)for(const ie of k){const Ce=Ne(X,ie);Ce?At(n.errors,ie,Ce):Wt(n.errors,ie)}else n.errors=X;return X},G=async(k,X,ie={valid:!0})=>{for(const Ce in k){const Ie=k[Ce];if(Ie){const{_f:Se,...Be}=Ie;if(Se){const Je=c.array.has(Se.name),Mt=Ie._f&&jU(Ie._f);Mt&&m.validatingFields&&R([Ce],!0);const Pt=await O3(Ie,c.disabled,o,S,t.shouldUseNativeValidation&&!X,Je);if(Mt&&m.validatingFields&&R([Ce]),Pt[Se.name]&&(ie.valid=!1,X))break;!X&&(Ne(Pt,Se.name)?Je?HU(n.errors,Pt,Se.name):At(n.errors,Se.name,Pt[Se.name]):Wt(n.errors,Se.name))}!Hn(Be)&&await G(Be,X,ie)}}return ie.valid},fe=()=>{for(const k of c.unMount){const X=Ne(r,k);X&&(X._f.refs?X._f.refs.every(ie=>!Bp(ie)):!Bp(X._f.ref))&&Ee(k)}c.unMount=new Set},ae=(k,X)=>!t.disabled&&(k&&X&&At(o,k,X),!Su(W(),u)),ce=(k,X,ie)=>N1(k,c,{...l.mount?o:kt(X)?u:Zr(k)?{[k]:X}:X},ie,X),Z=k=>yh(Ne(l.mount?o:u,k,t.shouldUnregister?Ne(u,k,[]):[])),te=(k,X,ie={})=>{const Ce=Ne(r,k);let Ie=X;if(Ce){const Se=Ce._f;Se&&(!Se.disabled&&At(o,k,T1(X,Se)),Ie=Sf(Se.ref)&&bn(X)?"":X,v1(Se.ref)?[...Se.ref.options].forEach(Be=>Be.selected=Ie.includes(Be.value)):Se.refs?Wc(Se.ref)?Se.refs.length>1?Se.refs.forEach(Be=>(!Be.defaultChecked||!Be.disabled)&&(Be.checked=Array.isArray(Ie)?!!Ie.find(Je=>Je===Be.value):Ie===Be.value)):Se.refs[0]&&(Se.refs[0].checked=!!Ie):Se.refs.forEach(Be=>Be.checked=Be.value===Ie):S4(Se.ref)?Se.ref.value="":(Se.ref.value=Ie,Se.ref.type||E.values.next({name:k,values:{...o}})))}(ie.shouldDirty||ie.shouldTouch)&&B(k,Ie,ie.shouldTouch,ie.shouldDirty,!0),ie.shouldValidate&&P(k)},V=(k,X,ie)=>{for(const Ce in X){const Ie=X[Ce],Se=`${k}.${Ce}`,Be=Ne(r,Se);(c.array.has(k)||Gt(Ie)||Be&&!Be._f)&&!Ia(Ie)?V(Se,Ie,ie):te(Se,Ie,ie)}},ee=(k,X,ie={})=>{const Ce=Ne(r,k),Ie=c.array.has(k),Se=Pn(X);At(o,k,Se),Ie?(E.array.next({name:k,values:{...o}}),(m.isDirty||m.dirtyFields)&&ie.shouldDirty&&E.state.next({name:k,dirtyFields:Ll(u,o),isDirty:ae(k,Se)})):Ce&&!Ce._f&&!bn(Se)?V(k,Se,ie):te(k,Se,ie),T3(k,c)&&E.state.next({...n}),E.values.next({name:l.mount?k:void 0,values:{...o}})},Q=async k=>{l.mount=!0;const X=k.target;let ie=X.name,Ce=!0;const Ie=Ne(r,ie),Se=()=>X.type?Fp(Ie._f):A1(k),Be=Je=>{Ce=Number.isNaN(Je)||Ia(Je)&&isNaN(Je.getTime())||Su(Je,Ne(o,ie,Je))};if(Ie){let Je,Mt;const Pt=Se(),Gn=k.type===_f.BLUR||k.type===_f.FOCUS_OUT,tA=!zU(Ie._f)&&!t.resolver&&!Ne(n.errors,ie)&&!Ie._f.deps||KU(Gn,Ne(n.touchedFields,ie),n.isSubmitted,_,g),Ya=T3(ie,c,Gn);At(o,ie,Pt),Gn?(Ie._f.onBlur&&Ie._f.onBlur(k),f&&f(0)):Ie._f.onChange&&Ie._f.onChange(k);const Oo=B(ie,Pt,Gn,!1),nA=!Hn(Oo)||Ya;if(!Gn&&E.values.next({name:ie,type:k.type,values:{...o}}),tA)return m.isValid&&(t.mode==="onBlur"&&Gn?v():Gn||v()),nA&&E.state.next({name:ie,...Ya?{}:Oo});if(!Gn&&Ya&&E.state.next({...n}),t.resolver){const{errors:ji}=await H([ie]);if(Be(Pt),Ce){const Rn=w3(n.errors,r,ie),hd=w3(ji,r,Rn.name||ie);Je=hd.error,ie=hd.name,Mt=Hn(ji)}}else R([ie],!0),Je=(await O3(Ie,c.disabled,o,S,t.shouldUseNativeValidation))[ie],R([ie]),Be(Pt),Ce&&(Je?Mt=!1:m.isValid&&(Mt=await G(r,!0)));Ce&&(Ie._f.deps&&P(Ie._f.deps),O(ie,Mt,Je,Oo))}},Ae=(k,X)=>{if(Ne(n.errors,X)&&k.focus)return k.focus(),1},P=async(k,X={})=>{let ie,Ce;const Ie=ql(k);if(t.resolver){const Se=await U(kt(k)?k:Ie);ie=Hn(Se),Ce=k?!Ie.some(Be=>Ne(Se,Be)):ie}else k?(Ce=(await Promise.all(Ie.map(async Se=>{const Be=Ne(r,Se);return await G(Be&&Be._f?{[Se]:Be}:Be)}))).every(Boolean),!(!Ce&&!n.isValid)&&v()):Ce=ie=await G(r);return E.state.next({...!Zr(k)||m.isValid&&ie!==n.isValid?{}:{name:k},...t.resolver||!k?{isValid:ie}:{},errors:n.errors}),X.shouldFocus&&!Ce&&Xl(r,Ae,k?Ie:c.mount),Ce},W=k=>{const X={...l.mount?o:u};return kt(k)?X:Zr(k)?Ne(X,k):k.map(ie=>Ne(X,ie))},j=(k,X)=>({invalid:!!Ne((X||n).errors,k),isDirty:!!Ne((X||n).dirtyFields,k),error:Ne((X||n).errors,k),isValidating:!!Ne(n.validatingFields,k),isTouched:!!Ne((X||n).touchedFields,k)}),re=k=>{k&&ql(k).forEach(X=>Wt(n.errors,X)),E.state.next({errors:k?n.errors:{}})},ne=(k,X,ie)=>{const Ce=(Ne(r,k,{_f:{}})._f||{}).ref,Ie=Ne(n.errors,k)||{},{ref:Se,message:Be,type:Je,...Mt}=Ie;At(n.errors,k,{...Mt,...X,ref:Ce}),E.state.next({name:k,errors:n.errors,isValid:!1}),ie&&ie.shouldFocus&&Ce&&Ce.focus&&Ce.focus()},de=(k,X)=>$r(k)?E.values.subscribe({next:ie=>k(ce(void 0,X),ie)}):ce(k,X,!0),Ee=(k,X={})=>{for(const ie of k?ql(k):c.mount)c.mount.delete(ie),c.array.delete(ie),X.keepValue||(Wt(r,ie),Wt(o,ie)),!X.keepError&&Wt(n.errors,ie),!X.keepDirty&&Wt(n.dirtyFields,ie),!X.keepTouched&&Wt(n.touchedFields,ie),!X.keepIsValidating&&Wt(n.validatingFields,ie),!t.shouldUnregister&&!X.keepDefaultValue&&Wt(u,ie);E.values.next({values:{...o}}),E.state.next({...n,...X.keepDirty?{isDirty:ae()}:{}}),!X.keepIsValid&&v()},pe=({disabled:k,name:X,field:ie,fields:Ce})=>{(Er(k)&&l.mount||k||c.disabled.has(X))&&(k?c.disabled.add(X):c.disabled.delete(X),B(X,Fp(ie?ie._f:Ne(Ce,X)._f),!1,!1,!0))},ve=(k,X={})=>{let ie=Ne(r,k);const Ce=Er(X.disabled)||Er(t.disabled);return At(r,k,{...ie||{},_f:{...ie&&ie._f?ie._f:{ref:{name:k}},name:k,mount:!0,...X}}),c.mount.add(k),ie?pe({field:ie,disabled:Er(X.disabled)?X.disabled:t.disabled,name:k}):x(k,!0,X.value),{...Ce?{disabled:X.disabled||t.disabled}:{},...t.progressive?{required:!!X.required,min:wl(X.min),max:wl(X.max),minLength:wl(X.minLength),maxLength:wl(X.maxLength),pattern:wl(X.pattern)}:{},name:k,onChange:Q,onBlur:Q,ref:Ie=>{if(Ie){ve(k,X),ie=Ne(r,k);const Se=kt(Ie.value)&&Ie.querySelectorAll&&Ie.querySelectorAll("input,select,textarea")[0]||Ie,Be=GU(Se),Je=ie._f.refs||[];if(Be?Je.find(Mt=>Mt===Se):Se===ie._f.ref)return;At(r,k,{_f:{...ie._f,...Be?{refs:[...Je.filter(Bp),Se,...Array.isArray(Ne(u,k))?[{}]:[]],ref:{type:Se.type,name:k}}:{ref:Se}}}),x(k,!1,void 0,Se)}else ie=Ne(r,k,{}),ie._f&&(ie._f.mount=!1),(t.shouldUnregister||X.shouldUnregister)&&!(m1(c.array,k)&&l.action)&&c.unMount.add(k)}}},Ve=()=>t.shouldFocusError&&Xl(r,Ae,c.mount),we=k=>{Er(k)&&(E.state.next({disabled:k}),Xl(r,(X,ie)=>{const Ce=Ne(r,ie);Ce&&(X.disabled=Ce._f.disabled||k,Array.isArray(Ce._f.refs)&&Ce._f.refs.forEach(Ie=>{Ie.disabled=Ce._f.disabled||k}))},0,!1))},Ze=(k,X)=>async ie=>{let Ce;ie&&(ie.preventDefault&&ie.preventDefault(),ie.persist&&ie.persist());let Ie=Pn(o);if(c.disabled.size)for(const Se of c.disabled)At(Ie,Se,void 0);if(E.state.next({isSubmitting:!0}),t.resolver){const{errors:Se,values:Be}=await H();n.errors=Se,Ie=Be}else await G(r);if(Wt(n.errors,"root"),Hn(n.errors)){E.state.next({errors:{}});try{await k(Ie,ie)}catch(Se){Ce=Se}}else X&&await X({...n.errors},ie),Ve(),setTimeout(Ve);if(E.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:Hn(n.errors)&&!Ce,submitCount:n.submitCount+1,errors:n.errors}),Ce)throw Ce},at=(k,X={})=>{Ne(r,k)&&(kt(X.defaultValue)?ee(k,Pn(Ne(u,k))):(ee(k,X.defaultValue),At(u,k,Pn(X.defaultValue))),X.keepTouched||Wt(n.touchedFields,k),X.keepDirty||(Wt(n.dirtyFields,k),n.isDirty=X.defaultValue?ae(k,Pn(Ne(u,k))):ae()),X.keepError||(Wt(n.errors,k),m.isValid&&v()),E.state.next({...n}))},It=(k,X={})=>{const ie=k?Pn(k):u,Ce=Pn(ie),Ie=Hn(k),Se=Ie?u:Ce;if(X.keepDefaultValues||(u=ie),!X.keepValues){if(X.keepDirtyValues){const Be=new Set([...c.mount,...Object.keys(Ll(u,o))]);for(const Je of Array.from(Be))Ne(n.dirtyFields,Je)?At(Se,Je,Ne(o,Je)):ee(Je,Ne(Se,Je))}else{if(E4&&kt(k))for(const Be of c.mount){const Je=Ne(r,Be);if(Je&&Je._f){const Mt=Array.isArray(Je._f.refs)?Je._f.refs[0]:Je._f.ref;if(Sf(Mt)){const Pt=Mt.closest("form");if(Pt){Pt.reset();break}}}}r={}}o=t.shouldUnregister?X.keepDefaultValues?Pn(u):{}:Pn(Se),E.array.next({values:{...Se}}),E.values.next({values:{...Se}})}c={mount:X.keepDirtyValues?c.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},l.mount=!m.isValid||!!X.keepIsValid||!!X.keepDirtyValues,l.watch=!!t.shouldUnregister,E.state.next({submitCount:X.keepSubmitCount?n.submitCount:0,isDirty:Ie?!1:X.keepDirty?n.isDirty:!!(X.keepDefaultValues&&!Su(k,u)),isSubmitted:X.keepIsSubmitted?n.isSubmitted:!1,dirtyFields:Ie?{}:X.keepDirtyValues?X.keepDefaultValues&&o?Ll(u,o):n.dirtyFields:X.keepDefaultValues&&k?Ll(u,k):X.keepDirty?n.dirtyFields:{},touchedFields:X.keepTouched?n.touchedFields:{},errors:X.keepErrors?n.errors:{},isSubmitSuccessful:X.keepIsSubmitSuccessful?n.isSubmitSuccessful:!1,isSubmitting:!1})},Jt=(k,X)=>It($r(k)?k(o):k,X);return{control:{register:ve,unregister:Ee,getFieldState:j,handleSubmit:Ze,setError:ne,_executeSchema:H,_getWatch:ce,_getDirty:ae,_updateValid:v,_removeUnmounted:fe,_updateFieldArray:D,_updateDisabledField:pe,_getFieldArray:Z,_reset:It,_resetDefaultValues:()=>$r(t.defaultValues)&&t.defaultValues().then(k=>{Jt(k,t.resetOptions),E.state.next({isLoading:!1})}),_updateFormState:k=>{n={...n,...k}},_disableForm:we,_subjects:E,_proxyFormState:m,_setErrors:L,get _fields(){return r},get _formValues(){return o},get _state(){return l},set _state(k){l=k},get _defaultValues(){return u},get _names(){return c},set _names(k){c=k},get _formState(){return n},set _formState(k){n=k},get _options(){return t},set _options(k){t={...t,...k}}},trigger:P,register:ve,handleSubmit:Ze,watch:de,setValue:ee,getValues:W,reset:Jt,resetField:at,clearErrors:re,unregister:Ee,setError:ne,setFocus:(k,X={})=>{const ie=Ne(r,k),Ce=ie&&ie._f;if(Ce){const Ie=Ce.refs?Ce.refs[0]:Ce.ref;Ie.focus&&(Ie.focus(),X.shouldSelect&&$r(Ie.select)&&Ie.select())}},getFieldState:j}}function WU(e={}){const t=$e.useRef(void 0),n=$e.useRef(void 0),[r,u]=$e.useState({isDirty:!1,isValidating:!1,isLoading:$r(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,defaultValues:$r(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...ZU(e),formState:r});const o=t.current.control;return o._options=e,_4({subject:o._subjects.state,next:l=>{_1(l,o._proxyFormState,o._updateFormState,!0)&&u({...o._formState})}}),$e.useEffect(()=>o._disableForm(e.disabled),[o,e.disabled]),$e.useEffect(()=>{if(o._proxyFormState.isDirty){const l=o._getDirty();l!==r.isDirty&&o._subjects.state.next({isDirty:l})}},[o,r.isDirty]),$e.useEffect(()=>{e.values&&!Su(e.values,n.current)?(o._reset(e.values,o._options.resetOptions),n.current=e.values,u(l=>({...l}))):o._resetDefaultValues()},[e.values,o]),$e.useEffect(()=>{e.errors&&o._setErrors(e.errors)},[e.errors,o]),$e.useEffect(()=>{o._state.mount||(o._updateValid(),o._state.mount=!0),o._state.watch&&(o._state.watch=!1,o._subjects.state.next({...o._formState})),o._removeUnmounted()}),$e.useEffect(()=>{e.shouldUnregister&&o._subjects.values.next({values:o._getWatch()})},[e.shouldUnregister,o]),t.current.formState=g1(r,o),t.current}const M3=(e,t,n)=>{if(e&&"reportValidity"in e){const r=Ne(n,t);e.setCustomValidity(r&&r.message||""),e.reportValidity()}},b1=(e,t)=>{for(const n in t.fields){const r=t.fields[n];r&&r.ref&&"reportValidity"in r.ref?M3(r.ref,n,e):r.refs&&r.refs.forEach(u=>M3(u,n,e))}},qU=(e,t)=>{t.shouldUseNativeValidation&&b1(e,t);const n={};for(const r in e){const u=Ne(t.fields,r),o=Object.assign(e[r]||{},{ref:u&&u.ref});if(XU(t.names||Object.keys(e),r)){const l=Object.assign({},Ne(n,r));At(l,"root",o),At(n,r,l)}else At(n,r,o)}return n},XU=(e,t)=>e.some(n=>n.startsWith(t+".")),QU=e=>{const t=y.useId(),n=y.useMemo(()=>({id:t}),[t]);return N.jsx(x1,{value:n,children:N.jsx("div",{className:"flex flex-col gap-2 p-2",...e})})},x1=y.createContext({}),B1=y.createContext({}),JU=({...e})=>{const t=y.useMemo(()=>({name:e.name}),[e.name]);return N.jsx(B1,{value:t,children:N.jsx(PU,{...e})})},Pu=()=>{const e=y.useContext(B1),t=y.useContext(x1),{getFieldState:n,formState:r}=Mu(),u=n(e.name,r);if(!e)throw new Error("useFormField should be used within <FormField>");const{id:o}=t;return{id:o,name:e.name,formItemId:`${o}-form-item`,formDescriptionId:`${o}-form-item-description`,formMessageId:`${o}-form-item-message`,...u}},F1=Ir("",{variants:{variant:{default:["w-full select-text resize-none rounded-xl border-2 bg-input-background text-base md:text-sm text-input-text shadow-none outline-0 transition-all","border-input-border hover:border-input-border-hover focus:border-input-border-focus focus:outline-0 focus:[box-shadow:none]","aria-[invalid=true]:border-error","disabled:opacity-50"],invisible:["w-full border-none bg-inherit text-inherit outline-hidden ring-0"]},size:{md:"px-2 md:py-1 py-3",lg:"p-4 md:py-2"},validationStyleEnabled:{disabled:"",enabled:"valid:border-success invalid:border-error"}},defaultVariants:{variant:"default",size:"md",validationStyleEnabled:"disabled"}}),go=({validationStyleEnabled:e=!1,variant:t,size:n,className:r,...u})=>N.jsx("input",{className:F1({variant:t,size:n,validationStyleEnabled:e?"enabled":"disabled",className:r}),...u}),e5=Ir("",{variants:{variant:{default:["pointer rounded border-2 bg-input-background text-input-text shadow-none outline-0 transition-all","border-input-border hover:border-input-border-hover focus:border-input-border-focus focus:outline-0 focus:[box-shadow:none]","checked:bg-checkbox-checked checked:border-checkbox-checked-border","disabled:opacity-50"]},size:{sm:"size-4",md:"size-5",lg:"size-6"},color:{primary:"accent-primary",secondary:"accent-secondary",destructive:"accent-destructive",neutral:"accent-neutral",light:"accent-light",text:"accent-text",dark:"accent-dark",error:"accent-error",success:"accent-success",custom:"accent-custom"},validationStyleEnabled:{disabled:"",enabled:"valid:border-success invalid:border-error"}},defaultVariants:{variant:"default",color:"primary",validationStyleEnabled:"disabled",size:"md"}}),t5=({validationStyleEnabled:e=!1,label:t,size:n,color:r,variant:u,className:o,...l})=>{const c=y.useId();return N.jsxs(N.Fragment,{children:[N.jsx("input",{type:"checkbox",className:e5({variant:u,size:n,color:r,validationStyleEnabled:e?"enabled":"disabled",className:o}),id:c,...l}),N.jsx("label",{htmlFor:c,children:t})]})},n5=e=>{const[t,n]=y.useState(!1),r=o=>{o.preventDefault(),o.stopPropagation(),n(l=>!l)},u=t?pP:AP;return N.jsxs("div",{className:"relative",children:[N.jsx(go,{...e,"aria-label":"password",type:t?"text":"password"}),N.jsx("button",{"data-testid":"eye-icon",className:"absolute right-2 h-full flex-row items-center",onClick:r,"aria-label":t?"Hide password":"Show password",children:N.jsx(u,{className:"text-neutral mr-2 inline-block",size:20})})]})},O1=({className:e,variant:t,validationStyleEnabled:n=!1,...r})=>N.jsx("textarea",{className:Re("resize-none",F1({variant:t,validationStyleEnabled:n?"enabled":"disabled",className:e})),...r}),L1=({value:e="",onCancel:t,onSave:n,onClick:r,children:u,isDisabled:o,...l})=>{const[c,f]=y.useState(!1),h=y.useRef(null),m=S=>{S.stopPropagation(),f(!1),n()},E=S=>{S.stopPropagation(),f(!1),t()},g=!e||e===""?"-":e,_=y.useCallback(S=>{const C=window.getSelection();C&&C.toString().trim()!==""||h.current&&!h.current.contains(S.target)&&(f(!1),n())},[n]);return y.useEffect(()=>(c?document.addEventListener("click",_):document.removeEventListener("click",_),()=>document.removeEventListener("click",_)),[_,c]),N.jsxs("span",{className:"group/editable-field flex gap-2",role:"button",tabIndex:0,onClick:S=>{f(!0),r==null||r(S)},ref:h,...l,children:[N.jsxs("div",{className:Re("flex flex-1 gap-2",c?"display":"hidden"),children:[u,N.jsx(Et,{label:"Save",variant:"hoverable",size:"icon-sm",color:"text",Icon:Eo,onClick:m,disabled:o,className:"!text-current"}),N.jsx(Et,{label:"Cancel",color:"text",variant:"hoverable",className:"!text-current",size:"icon-sm",Icon:Va,onClick:E,disabled:o})]},String(c)),N.jsxs("div",{className:Re("flex flex-1 gap-2",c?"hidden":"display"),children:[N.jsx("span",{className:"ml-2 flex w-full whitespace-pre-wrap p-1 text-sm leading-6",children:g}),N.jsx(Et,{label:"Edit",Icon:IP,color:"text",variant:"hoverable",size:"icon-sm",className:"invisible !text-current group-hover/editable-field:visible",disabled:o,onClick:S=>{S.stopPropagation(),f(!0)}})]})]})},w1=({onSave:e,onCancel:t,ref:n,...r})=>{var f;const u=y.useRef(null),o=()=>{var h;e==null||e(((h=u.current)==null?void 0:h.value)??"")},l=()=>{u.current&&(u.current.value=u.current.defaultValue??""),t==null||t()};y.useImperativeHandle(n,()=>u.current);const c=y.useMemo(()=>{var h;return r.value??((h=u.current)==null?void 0:h.value)??r.defaultValue},[r.value,r.defaultValue,(f=u.current)==null?void 0:f.value]);return N.jsx(L1,{value:c,onCancel:l,onSave:o,children:N.jsx(go,{ref:u,...r})})},P3=24,H3=12,I4=({className:e,autoSize:t=!0,onChange:n,maxRows:r=999,ref:u,...o})=>{const l=y.useRef(null);y.useImperativeHandle(u,()=>l.current);const c=y.useCallback(()=>{const m=l.current;if(!m||!t)return;const E=m.style;E.height="auto";const g=m.scrollHeight,_=P3*r+H3,S=P3+H3;E.height=Math.max(Math.min(g,_),S)+"px"},[t,r]);y.useEffect(()=>{c()},[o.value,o.defaultValue,c]);const f=m=>{n==null||n(m),c()},h=y.useCallback(m=>{l.current=m,m&&c()},[c]);return N.jsx(O1,{ref:h,onChange:f,className:Re("overflow-y-scroll",t?"resize-none":"",e),...o})},M1=({onSave:e,onCancel:t,ref:n,...r})=>{var f;const u=y.useRef(null);y.useImperativeHandle(n,()=>u.current);const o=()=>{var h;e==null||e(((h=u.current)==null?void 0:h.value)??"")},l=()=>{u.current&&(u.current.value=u.current.defaultValue??""),t==null||t()},c=r.value??((f=u.current)==null?void 0:f.value)??r.defaultValue??"";return N.jsx(L1,{value:c,onCancel:l,onSave:o,onClick:h=>{h.preventDefault(),h.stopPropagation()},children:N.jsx(I4,{className:"leading-6",ref:u,onClick:h=>{h.preventDefault(),h.stopPropagation()},...r})})},r5=Ir("focus:ring-ring inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-hidden focus:ring-2 focus:ring-offset-2",{variants:{color:{primary:"border-primary bg-primary text-primary hover:bg-primary-500",secondary:"border-secondary bg-secondary text-secondary hover:bg-secondary-300",destructive:"border-destructive bg-destructive text-destructive hover:bg-destructive-500",neutral:"border-neutral bg-neutral text-neutral hover:bg-neutral-600",light:"border-white bg-white text-white hover:bg-neutral-500",dark:"border-neutral-800 bg-neutral-800 text-neutral-800 hover:bg-neutral-900",text:"border-text bg-text text-text hover:opacity-80",custom:""},variant:{default:"rounded-lg text-text-opposite",none:"border-none bg-opacity-0 text-inherit hover:bg-opacity-0",outline:"rounded-lg border-[1.5px] bg-opacity-0 hover:bg-opacity-30",hoverable:"rounded-lg border-none bg-opacity-0 transition hover:bg-opacity-10"}},defaultVariants:{variant:"default",color:"primary"}}),i5=({className:e,variant:t,color:n,...r})=>N.jsx("div",{className:Re(r5({variant:t,color:n}),e),...r});var u5=qL.useId||(()=>{}),a5=0;function Nr(e){const[t,n]=y.useState(u5());return Cn(()=>{n(r=>r??String(a5++))},[e]),t?`radix-${t}`:""}var Op="focusScope.autoFocusOnMount",Lp="focusScope.autoFocusOnUnmount",U3={bubbles:!1,cancelable:!0},s5="FocusScope",y4=y.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:u,onUnmountAutoFocus:o,...l}=e,[c,f]=y.useState(null),h=er(u),m=er(o),E=y.useRef(null),g=xt(t,C=>f(C)),_=y.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;y.useEffect(()=>{if(r){let C=function(b){if(_.paused||!c)return;const L=b.target;c.contains(L)?E.current=L:Eu(E.current,{select:!0})},v=function(b){if(_.paused||!c)return;const L=b.relatedTarget;L!==null&&(c.contains(L)||Eu(E.current,{select:!0}))},R=function(b){if(document.activeElement===document.body)for(const x of b)x.removedNodes.length>0&&Eu(c)};document.addEventListener("focusin",C),document.addEventListener("focusout",v);const D=new MutationObserver(R);return c&&D.observe(c,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",C),document.removeEventListener("focusout",v),D.disconnect()}}},[r,c,_.paused]),y.useEffect(()=>{if(c){G3.add(_);const C=document.activeElement;if(!c.contains(C)){const R=new CustomEvent(Op,U3);c.addEventListener(Op,h),c.dispatchEvent(R),R.defaultPrevented||(o5(h5(P1(c)),{select:!0}),document.activeElement===C&&Eu(c))}return()=>{c.removeEventListener(Op,h),setTimeout(()=>{const R=new CustomEvent(Lp,U3);c.addEventListener(Lp,m),c.dispatchEvent(R),R.defaultPrevented||Eu(C??document.body,{select:!0}),c.removeEventListener(Lp,m),G3.remove(_)},0)}}},[c,h,m,_]);const S=y.useCallback(C=>{if(!n&&!r||_.paused)return;const v=C.key==="Tab"&&!C.altKey&&!C.ctrlKey&&!C.metaKey,R=document.activeElement;if(v&&R){const D=C.currentTarget,[b,L]=l5(D);b&&L?!C.shiftKey&&R===L?(C.preventDefault(),n&&Eu(b,{select:!0})):C.shiftKey&&R===b&&(C.preventDefault(),n&&Eu(L,{select:!0})):R===D&&C.preventDefault()}},[n,r,_.paused]);return N.jsx(nt.div,{tabIndex:-1,...l,ref:g,onKeyDown:S})});y4.displayName=s5;function o5(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Eu(r,{select:t}),document.activeElement!==n)return}function l5(e){const t=P1(e),n=k3(t,e),r=k3(t.reverse(),e);return[n,r]}function P1(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const u=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||u?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function k3(e,t){for(const n of e)if(!c5(n,{upTo:t}))return n}function c5(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function d5(e){return e instanceof HTMLInputElement&&"select"in e}function Eu(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&d5(e)&&t&&e.select()}}var G3=f5();function f5(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=V3(e,t),e.unshift(t)},remove(t){var n;e=V3(e,t),(n=e[0])==null||n.resume()}}}function V3(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function h5(e){return e.filter(t=>t.tagName!=="A")}var wp=0;function H1(){y.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??j3()),document.body.insertAdjacentElement("beforeend",e[1]??j3()),wp++,()=>{wp===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),wp--}},[])}function j3(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var Yr=function(){return Yr=Object.assign||function(t){for(var n,r=1,u=arguments.length;r<u;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},Yr.apply(this,arguments)};function U1(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var u=0,r=Object.getOwnPropertySymbols(e);u<r.length;u++)t.indexOf(r[u])<0&&Object.prototype.propertyIsEnumerable.call(e,r[u])&&(n[r[u]]=e[r[u]]);return n}function A5(e,t,n){if(n||arguments.length===2)for(var r=0,u=t.length,o;r<u;r++)(o||!(r in t))&&(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))}var rf="right-scroll-bar-position",uf="width-before-scroll-bar",m5="with-scroll-bars-hidden",p5="--removed-body-scroll-bar-size";function Mp(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function E5(e,t){var n=y.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var u=n.value;u!==r&&(n.value=r,n.callback(r,u))}}}})[0];return n.callback=t,n.facade}var g5=typeof window<"u"?y.useLayoutEffect:y.useEffect,z3=new WeakMap;function _5(e,t){var n=E5(null,function(r){return e.forEach(function(u){return Mp(u,r)})});return g5(function(){var r=z3.get(n);if(r){var u=new Set(r),o=new Set(e),l=n.current;u.forEach(function(c){o.has(c)||Mp(c,null)}),o.forEach(function(c){u.has(c)||Mp(c,l)})}z3.set(n,e)},[e]),n}function S5(e){return e}function N5(e,t){t===void 0&&(t=S5);var n=[],r=!1,u={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(o){var l=t(o,r);return n.push(l),function(){n=n.filter(function(c){return c!==l})}},assignSyncMedium:function(o){for(r=!0;n.length;){var l=n;n=[],l.forEach(o)}n={push:function(c){return o(c)},filter:function(){return n}}},assignMedium:function(o){r=!0;var l=[];if(n.length){var c=n;n=[],c.forEach(o),l=n}var f=function(){var m=l;l=[],m.forEach(o)},h=function(){return Promise.resolve().then(f)};h(),n={push:function(m){l.push(m),h()},filter:function(m){return l=l.filter(m),n}}}};return u}function I5(e){e===void 0&&(e={});var t=N5(null);return t.options=Yr({async:!0,ssr:!1},e),t}var k1=function(e){var t=e.sideCar,n=U1(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return y.createElement(r,Yr({},n))};k1.isSideCarExport=!0;function y5(e,t){return e.useMedium(t),k1}var G1=I5(),Pp=function(){},Ch=y.forwardRef(function(e,t){var n=y.useRef(null),r=y.useState({onScrollCapture:Pp,onWheelCapture:Pp,onTouchMoveCapture:Pp}),u=r[0],o=r[1],l=e.forwardProps,c=e.children,f=e.className,h=e.removeScrollBar,m=e.enabled,E=e.shards,g=e.sideCar,_=e.noIsolation,S=e.inert,C=e.allowPinchZoom,v=e.as,R=v===void 0?"div":v,D=e.gapMode,b=U1(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),L=g,x=_5([n,t]),B=Yr(Yr({},b),u);return y.createElement(y.Fragment,null,m&&y.createElement(L,{sideCar:G1,removeScrollBar:h,shards:E,noIsolation:_,inert:S,setCallbacks:o,allowPinchZoom:!!C,lockRef:n,gapMode:D}),l?y.cloneElement(y.Children.only(c),Yr(Yr({},B),{ref:x})):y.createElement(R,Yr({},B,{className:f,ref:x}),c))});Ch.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Ch.classNames={fullWidth:uf,zeroRight:rf};var C5=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function v5(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=C5();return t&&e.setAttribute("nonce",t),e}function R5(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function D5(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var T5=function(){var e=0,t=null;return{add:function(n){e==0&&(t=v5())&&(R5(t,n),D5(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},b5=function(){var e=T5();return function(t,n){y.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},V1=function(){var e=b5(),t=function(n){var r=n.styles,u=n.dynamic;return e(r,u),null};return t},x5={left:0,top:0,right:0,gap:0},Hp=function(e){return parseInt(e||"",10)||0},B5=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],u=t[e==="padding"?"paddingRight":"marginRight"];return[Hp(n),Hp(r),Hp(u)]},F5=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return x5;var t=B5(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},O5=V1(),Ys="data-scroll-locked",L5=function(e,t,n,r){var u=e.left,o=e.top,l=e.right,c=e.gap;return n===void 0&&(n="margin"),`
218
+ .`.concat(m5,` {
219
+ overflow: hidden `).concat(r,`;
220
+ padding-right: `).concat(c,"px ").concat(r,`;
221
+ }
222
+ body[`).concat(Ys,`] {
223
+ overflow: hidden `).concat(r,`;
224
+ overscroll-behavior: contain;
225
+ `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
226
+ padding-left: `.concat(u,`px;
227
+ padding-top: `).concat(o,`px;
228
+ padding-right: `).concat(l,`px;
229
+ margin-left:0;
230
+ margin-top:0;
231
+ margin-right: `).concat(c,"px ").concat(r,`;
232
+ `),n==="padding"&&"padding-right: ".concat(c,"px ").concat(r,";")].filter(Boolean).join(""),`
233
+ }
234
+
235
+ .`).concat(rf,` {
236
+ right: `).concat(c,"px ").concat(r,`;
237
+ }
238
+
239
+ .`).concat(uf,` {
240
+ margin-right: `).concat(c,"px ").concat(r,`;
241
+ }
242
+
243
+ .`).concat(rf," .").concat(rf,` {
244
+ right: 0 `).concat(r,`;
245
+ }
246
+
247
+ .`).concat(uf," .").concat(uf,` {
248
+ margin-right: 0 `).concat(r,`;
249
+ }
250
+
251
+ body[`).concat(Ys,`] {
252
+ `).concat(p5,": ").concat(c,`px;
253
+ }
254
+ `)},K3=function(){var e=parseInt(document.body.getAttribute(Ys)||"0",10);return isFinite(e)?e:0},w5=function(){y.useEffect(function(){return document.body.setAttribute(Ys,(K3()+1).toString()),function(){var e=K3()-1;e<=0?document.body.removeAttribute(Ys):document.body.setAttribute(Ys,e.toString())}},[])},M5=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,u=r===void 0?"margin":r;w5();var o=y.useMemo(function(){return F5(u)},[u]);return y.createElement(O5,{styles:L5(o,!t,u,n?"":"!important")})},VE=!1;if(typeof window<"u")try{var B0=Object.defineProperty({},"passive",{get:function(){return VE=!0,!0}});window.addEventListener("test",B0,B0),window.removeEventListener("test",B0,B0)}catch{VE=!1}var Fs=VE?{passive:!1}:!1,P5=function(e){return e.tagName==="TEXTAREA"},j1=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!P5(e)&&n[t]==="visible")},H5=function(e){return j1(e,"overflowY")},U5=function(e){return j1(e,"overflowX")},$3=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var u=z1(e,r);if(u){var o=K1(e,r),l=o[1],c=o[2];if(l>c)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},k5=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},G5=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},z1=function(e,t){return e==="v"?H5(t):U5(t)},K1=function(e,t){return e==="v"?k5(t):G5(t)},V5=function(e,t){return e==="h"&&t==="rtl"?-1:1},j5=function(e,t,n,r,u){var o=V5(e,window.getComputedStyle(t).direction),l=o*r,c=n.target,f=t.contains(c),h=!1,m=l>0,E=0,g=0;do{var _=K1(e,c),S=_[0],C=_[1],v=_[2],R=C-v-o*S;(S||R)&&z1(e,c)&&(E+=R,g+=S),c instanceof ShadowRoot?c=c.host:c=c.parentNode}while(!f&&c!==document.body||f&&(t.contains(c)||t===c));return(m&&Math.abs(E)<1||!m&&Math.abs(g)<1)&&(h=!0),h},F0=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Y3=function(e){return[e.deltaX,e.deltaY]},Z3=function(e){return e&&"current"in e?e.current:e},z5=function(e,t){return e[0]===t[0]&&e[1]===t[1]},K5=function(e){return`
255
+ .block-interactivity-`.concat(e,` {pointer-events: none;}
256
+ .allow-interactivity-`).concat(e,` {pointer-events: all;}
257
+ `)},$5=0,Os=[];function Y5(e){var t=y.useRef([]),n=y.useRef([0,0]),r=y.useRef(),u=y.useState($5++)[0],o=y.useState(V1)[0],l=y.useRef(e);y.useEffect(function(){l.current=e},[e]),y.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(u));var C=A5([e.lockRef.current],(e.shards||[]).map(Z3),!0).filter(Boolean);return C.forEach(function(v){return v.classList.add("allow-interactivity-".concat(u))}),function(){document.body.classList.remove("block-interactivity-".concat(u)),C.forEach(function(v){return v.classList.remove("allow-interactivity-".concat(u))})}}},[e.inert,e.lockRef.current,e.shards]);var c=y.useCallback(function(C,v){if("touches"in C&&C.touches.length===2||C.type==="wheel"&&C.ctrlKey)return!l.current.allowPinchZoom;var R=F0(C),D=n.current,b="deltaX"in C?C.deltaX:D[0]-R[0],L="deltaY"in C?C.deltaY:D[1]-R[1],x,B=C.target,O=Math.abs(b)>Math.abs(L)?"h":"v";if("touches"in C&&O==="h"&&B.type==="range")return!1;var H=$3(O,B);if(!H)return!0;if(H?x=O:(x=O==="v"?"h":"v",H=$3(O,B)),!H)return!1;if(!r.current&&"changedTouches"in C&&(b||L)&&(r.current=x),!x)return!0;var U=r.current||x;return j5(U,v,C,U==="h"?b:L)},[]),f=y.useCallback(function(C){var v=C;if(!(!Os.length||Os[Os.length-1]!==o)){var R="deltaY"in v?Y3(v):F0(v),D=t.current.filter(function(x){return x.name===v.type&&(x.target===v.target||v.target===x.shadowParent)&&z5(x.delta,R)})[0];if(D&&D.should){v.cancelable&&v.preventDefault();return}if(!D){var b=(l.current.shards||[]).map(Z3).filter(Boolean).filter(function(x){return x.contains(v.target)}),L=b.length>0?c(v,b[0]):!l.current.noIsolation;L&&v.cancelable&&v.preventDefault()}}},[]),h=y.useCallback(function(C,v,R,D){var b={name:C,delta:v,target:R,should:D,shadowParent:Z5(R)};t.current.push(b),setTimeout(function(){t.current=t.current.filter(function(L){return L!==b})},1)},[]),m=y.useCallback(function(C){n.current=F0(C),r.current=void 0},[]),E=y.useCallback(function(C){h(C.type,Y3(C),C.target,c(C,e.lockRef.current))},[]),g=y.useCallback(function(C){h(C.type,F0(C),C.target,c(C,e.lockRef.current))},[]);y.useEffect(function(){return Os.push(o),e.setCallbacks({onScrollCapture:E,onWheelCapture:E,onTouchMoveCapture:g}),document.addEventListener("wheel",f,Fs),document.addEventListener("touchmove",f,Fs),document.addEventListener("touchstart",m,Fs),function(){Os=Os.filter(function(C){return C!==o}),document.removeEventListener("wheel",f,Fs),document.removeEventListener("touchmove",f,Fs),document.removeEventListener("touchstart",m,Fs)}},[]);var _=e.removeScrollBar,S=e.inert;return y.createElement(y.Fragment,null,S?y.createElement(o,{styles:K5(u)}):null,_?y.createElement(M5,{gapMode:e.gapMode}):null)}function Z5(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const W5=y5(G1,Y5);var C4=y.forwardRef(function(e,t){return y.createElement(Ch,Yr({},e,{ref:t,sideCar:W5}))});C4.classNames=Ch.classNames;var q5=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Ls=new WeakMap,O0=new WeakMap,L0={},Up=0,$1=function(e){return e&&(e.host||$1(e.parentNode))},X5=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=$1(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},Q5=function(e,t,n,r){var u=X5(t,Array.isArray(e)?e:[e]);L0[n]||(L0[n]=new WeakMap);var o=L0[n],l=[],c=new Set,f=new Set(u),h=function(E){!E||c.has(E)||(c.add(E),h(E.parentNode))};u.forEach(h);var m=function(E){!E||f.has(E)||Array.prototype.forEach.call(E.children,function(g){if(c.has(g))m(g);else try{var _=g.getAttribute(r),S=_!==null&&_!=="false",C=(Ls.get(g)||0)+1,v=(o.get(g)||0)+1;Ls.set(g,C),o.set(g,v),l.push(g),C===1&&S&&O0.set(g,!0),v===1&&g.setAttribute(n,"true"),S||g.setAttribute(r,"true")}catch(R){console.error("aria-hidden: cannot operate on ",g,R)}})};return m(t),c.clear(),Up++,function(){l.forEach(function(E){var g=Ls.get(E)-1,_=o.get(E)-1;Ls.set(E,g),o.set(E,_),g||(O0.has(E)||E.removeAttribute(r),O0.delete(E)),_||E.removeAttribute(n)}),Up--,Up||(Ls=new WeakMap,Ls=new WeakMap,O0=new WeakMap,L0={})}},Y1=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),u=q5(e);return u?(r.push.apply(r,Array.from(u.querySelectorAll("[aria-live]"))),Q5(r,u,n,"aria-hidden")):function(){return null}},v4="Dialog",[Z1,gie]=Yc(v4),[J5,Pr]=Z1(v4),W1=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:u,onOpenChange:o,modal:l=!0}=e,c=y.useRef(null),f=y.useRef(null),[h=!1,m]=gf({prop:r,defaultProp:u,onChange:o});return N.jsx(J5,{scope:t,triggerRef:c,contentRef:f,contentId:Nr(),titleId:Nr(),descriptionId:Nr(),open:h,onOpenChange:m,onOpenToggle:y.useCallback(()=>m(E=>!E),[m]),modal:l,children:n})};W1.displayName=v4;var q1="DialogTrigger",ek=y.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,u=Pr(q1,n),o=xt(t,u.triggerRef);return N.jsx(nt.button,{type:"button","aria-haspopup":"dialog","aria-expanded":u.open,"aria-controls":u.contentId,"data-state":T4(u.open),...r,ref:o,onClick:lt(e.onClick,u.onOpenToggle)})});ek.displayName=q1;var R4="DialogPortal",[tk,X1]=Z1(R4,{forceMount:void 0}),Q1=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:u}=e,o=Pr(R4,t);return N.jsx(tk,{scope:t,forceMount:n,children:y.Children.map(r,l=>N.jsx(Zc,{present:n||o.open,children:N.jsx(gh,{asChild:!0,container:u,children:l})}))})};Q1.displayName=R4;var yf="DialogOverlay",J1=y.forwardRef((e,t)=>{const n=X1(yf,e.__scopeDialog),{forceMount:r=n.forceMount,...u}=e,o=Pr(yf,e.__scopeDialog);return o.modal?N.jsx(Zc,{present:r||o.open,children:N.jsx(nk,{...u,ref:t})}):null});J1.displayName=yf;var nk=y.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,u=Pr(yf,n);return N.jsx(C4,{as:xa,allowPinchZoom:!0,shards:[u.contentRef],children:N.jsx(nt.div,{"data-state":T4(u.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),Ba="DialogContent",eD=y.forwardRef((e,t)=>{const n=X1(Ba,e.__scopeDialog),{forceMount:r=n.forceMount,...u}=e,o=Pr(Ba,e.__scopeDialog);return N.jsx(Zc,{present:r||o.open,children:o.modal?N.jsx(rk,{...u,ref:t}):N.jsx(ik,{...u,ref:t})})});eD.displayName=Ba;var rk=y.forwardRef((e,t)=>{const n=Pr(Ba,e.__scopeDialog),r=y.useRef(null),u=xt(t,n.contentRef,r);return y.useEffect(()=>{const o=r.current;if(o)return Y1(o)},[]),N.jsx(tD,{...e,ref:u,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:lt(e.onCloseAutoFocus,o=>{var l;o.preventDefault(),(l=n.triggerRef.current)==null||l.focus()}),onPointerDownOutside:lt(e.onPointerDownOutside,o=>{const l=o.detail.originalEvent,c=l.button===0&&l.ctrlKey===!0;(l.button===2||c)&&o.preventDefault()}),onFocusOutside:lt(e.onFocusOutside,o=>o.preventDefault())})}),ik=y.forwardRef((e,t)=>{const n=Pr(Ba,e.__scopeDialog),r=y.useRef(!1),u=y.useRef(!1);return N.jsx(tD,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:o=>{var l,c;(l=e.onCloseAutoFocus)==null||l.call(e,o),o.defaultPrevented||(r.current||(c=n.triggerRef.current)==null||c.focus(),o.preventDefault()),r.current=!1,u.current=!1},onInteractOutside:o=>{var f,h;(f=e.onInteractOutside)==null||f.call(e,o),o.defaultPrevented||(r.current=!0,o.detail.originalEvent.type==="pointerdown"&&(u.current=!0));const l=o.target;((h=n.triggerRef.current)==null?void 0:h.contains(l))&&o.preventDefault(),o.detail.originalEvent.type==="focusin"&&u.current&&o.preventDefault()}})}),tD=y.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:u,onCloseAutoFocus:o,...l}=e,c=Pr(Ba,n),f=y.useRef(null),h=xt(t,f);return H1(),N.jsxs(N.Fragment,{children:[N.jsx(y4,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:u,onUnmountAutoFocus:o,children:N.jsx(Eh,{role:"dialog",id:c.contentId,"aria-describedby":c.descriptionId,"aria-labelledby":c.titleId,"data-state":T4(c.open),...l,ref:h,onDismiss:()=>c.onOpenChange(!1)})}),N.jsxs(N.Fragment,{children:[N.jsx(ok,{titleId:c.titleId}),N.jsx(ck,{contentRef:f,descriptionId:c.descriptionId})]})]})}),D4="DialogTitle",uk=y.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,u=Pr(D4,n);return N.jsx(nt.h2,{id:u.titleId,...r,ref:t})});uk.displayName=D4;var nD="DialogDescription",ak=y.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,u=Pr(nD,n);return N.jsx(nt.p,{id:u.descriptionId,...r,ref:t})});ak.displayName=nD;var rD="DialogClose",sk=y.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,u=Pr(rD,n);return N.jsx(nt.button,{type:"button",...r,ref:t,onClick:lt(e.onClick,()=>u.onOpenChange(!1))})});sk.displayName=rD;function T4(e){return e?"open":"closed"}var iD="DialogTitleWarning",[_ie,uD]=mH(iD,{contentName:Ba,titleName:D4,docsSlug:"dialog"}),ok=({titleId:e})=>{const t=uD(iD),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
258
+
259
+ If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
260
+
261
+ For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return y.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},lk="DialogDescriptionWarning",ck=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${uD(lk).contentName}}.`;return y.useEffect(()=>{var o;const u=(o=e.current)==null?void 0:o.getAttribute("aria-describedby");t&&u&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},dk=W1,fk=Q1,hk=J1,Ak=eD,W3=1,mk=.9,pk=.8,Ek=.17,kp=.1,Gp=.999,gk=.9999,_k=.99,Sk=/[\\\/_+.#"@\[\(\{&]/,Nk=/[\\\/_+.#"@\[\(\{&]/g,Ik=/[\s-]/,aD=/[\s-]/g;function jE(e,t,n,r,u,o,l){if(o===t.length)return u===e.length?W3:_k;var c=`${u},${o}`;if(l[c]!==void 0)return l[c];for(var f=r.charAt(o),h=n.indexOf(f,u),m=0,E,g,_,S;h>=0;)E=jE(e,t,n,r,h+1,o+1,l),E>m&&(h===u?E*=W3:Sk.test(e.charAt(h-1))?(E*=pk,_=e.slice(u,h-1).match(Nk),_&&u>0&&(E*=Math.pow(Gp,_.length))):Ik.test(e.charAt(h-1))?(E*=mk,S=e.slice(u,h-1).match(aD),S&&u>0&&(E*=Math.pow(Gp,S.length))):(E*=Ek,u>0&&(E*=Math.pow(Gp,h-u))),e.charAt(h)!==t.charAt(o)&&(E*=gk)),(E<kp&&n.charAt(h-1)===r.charAt(o+1)||r.charAt(o+1)===r.charAt(o)&&n.charAt(h-1)!==r.charAt(o))&&(g=jE(e,t,n,r,h+1,o+2,l),g*kp>E&&(E=g*kp)),E>m&&(m=E),h=n.indexOf(f,h+1);return l[c]=m,m}function q3(e){return e.toLowerCase().replace(aD," ")}function yk(e,t,n){return e=n&&n.length>0?`${e+" "+n.join(" ")}`:e,jE(e,t,q3(e),q3(t),0,0,{})}var Ck=k9(),Ml='[cmdk-group=""]',Vp='[cmdk-group-items=""]',vk='[cmdk-group-heading=""]',b4='[cmdk-item=""]',X3=`${b4}:not([aria-disabled="true"])`,zE="cmdk-item-select",_a="data-value",Rk=(e,t,n)=>yk(e,t,n),sD=y.createContext(void 0),qc=()=>y.useContext(sD),oD=y.createContext(void 0),x4=()=>y.useContext(oD),lD=y.createContext(void 0),cD=y.forwardRef((e,t)=>{let n=Ms(()=>{var j,re;return{search:"",value:(re=(j=e.value)!=null?j:e.defaultValue)!=null?re:"",filtered:{count:0,items:new Map,groups:new Set}}}),r=Ms(()=>new Set),u=Ms(()=>new Map),o=Ms(()=>new Map),l=Ms(()=>new Set),c=dD(e),{label:f,children:h,value:m,onValueChange:E,filter:g,shouldFilter:_,loop:S,disablePointerSelection:C=!1,vimBindings:v=!0,...R}=e,D=Nr(),b=Nr(),L=Nr(),x=y.useRef(null),B=Pk();Fa(()=>{if(m!==void 0){let j=m.trim();n.current.value=j,O.emit()}},[m]),Fa(()=>{B(6,ce)},[]);let O=y.useMemo(()=>({subscribe:j=>(l.current.add(j),()=>l.current.delete(j)),snapshot:()=>n.current,setState:(j,re,ne)=>{var de,Ee,pe;if(!Object.is(n.current[j],re)){if(n.current[j]=re,j==="search")ae(),G(),B(1,fe);else if(j==="value"&&(ne||B(5,ce),((de=c.current)==null?void 0:de.value)!==void 0)){let ve=re??"";(pe=(Ee=c.current).onValueChange)==null||pe.call(Ee,ve);return}O.emit()}},emit:()=>{l.current.forEach(j=>j())}}),[]),H=y.useMemo(()=>({value:(j,re,ne)=>{var de;re!==((de=o.current.get(j))==null?void 0:de.value)&&(o.current.set(j,{value:re,keywords:ne}),n.current.filtered.items.set(j,U(re,ne)),B(2,()=>{G(),O.emit()}))},item:(j,re)=>(r.current.add(j),re&&(u.current.has(re)?u.current.get(re).add(j):u.current.set(re,new Set([j]))),B(3,()=>{ae(),G(),n.current.value||fe(),O.emit()}),()=>{o.current.delete(j),r.current.delete(j),n.current.filtered.items.delete(j);let ne=Z();B(4,()=>{ae(),(ne==null?void 0:ne.getAttribute("id"))===j&&fe(),O.emit()})}),group:j=>(u.current.has(j)||u.current.set(j,new Set),()=>{o.current.delete(j),u.current.delete(j)}),filter:()=>c.current.shouldFilter,label:f||e["aria-label"],getDisablePointerSelection:()=>c.current.disablePointerSelection,listId:D,inputId:L,labelId:b,listInnerRef:x}),[]);function U(j,re){var ne,de;let Ee=(de=(ne=c.current)==null?void 0:ne.filter)!=null?de:Rk;return j?Ee(j,n.current.search,re):0}function G(){if(!n.current.search||c.current.shouldFilter===!1)return;let j=n.current.filtered.items,re=[];n.current.filtered.groups.forEach(de=>{let Ee=u.current.get(de),pe=0;Ee.forEach(ve=>{let Ve=j.get(ve);pe=Math.max(Ve,pe)}),re.push([de,pe])});let ne=x.current;te().sort((de,Ee)=>{var pe,ve;let Ve=de.getAttribute("id"),we=Ee.getAttribute("id");return((pe=j.get(we))!=null?pe:0)-((ve=j.get(Ve))!=null?ve:0)}).forEach(de=>{let Ee=de.closest(Vp);Ee?Ee.appendChild(de.parentElement===Ee?de:de.closest(`${Vp} > *`)):ne.appendChild(de.parentElement===ne?de:de.closest(`${Vp} > *`))}),re.sort((de,Ee)=>Ee[1]-de[1]).forEach(de=>{var Ee;let pe=(Ee=x.current)==null?void 0:Ee.querySelector(`${Ml}[${_a}="${encodeURIComponent(de[0])}"]`);pe==null||pe.parentElement.appendChild(pe)})}function fe(){let j=te().find(ne=>ne.getAttribute("aria-disabled")!=="true"),re=j==null?void 0:j.getAttribute(_a);O.setState("value",re||void 0)}function ae(){var j,re,ne,de;if(!n.current.search||c.current.shouldFilter===!1){n.current.filtered.count=r.current.size;return}n.current.filtered.groups=new Set;let Ee=0;for(let pe of r.current){let ve=(re=(j=o.current.get(pe))==null?void 0:j.value)!=null?re:"",Ve=(de=(ne=o.current.get(pe))==null?void 0:ne.keywords)!=null?de:[],we=U(ve,Ve);n.current.filtered.items.set(pe,we),we>0&&Ee++}for(let[pe,ve]of u.current)for(let Ve of ve)if(n.current.filtered.items.get(Ve)>0){n.current.filtered.groups.add(pe);break}n.current.filtered.count=Ee}function ce(){var j,re,ne;let de=Z();de&&(((j=de.parentElement)==null?void 0:j.firstChild)===de&&((ne=(re=de.closest(Ml))==null?void 0:re.querySelector(vk))==null||ne.scrollIntoView({block:"nearest"})),de.scrollIntoView({block:"nearest"}))}function Z(){var j;return(j=x.current)==null?void 0:j.querySelector(`${b4}[aria-selected="true"]`)}function te(){var j;return Array.from(((j=x.current)==null?void 0:j.querySelectorAll(X3))||[])}function V(j){let re=te()[j];re&&O.setState("value",re.getAttribute(_a))}function ee(j){var re;let ne=Z(),de=te(),Ee=de.findIndex(ve=>ve===ne),pe=de[Ee+j];(re=c.current)!=null&&re.loop&&(pe=Ee+j<0?de[de.length-1]:Ee+j===de.length?de[0]:de[Ee+j]),pe&&O.setState("value",pe.getAttribute(_a))}function Q(j){let re=Z(),ne=re==null?void 0:re.closest(Ml),de;for(;ne&&!de;)ne=j>0?wk(ne,Ml):Mk(ne,Ml),de=ne==null?void 0:ne.querySelector(X3);de?O.setState("value",de.getAttribute(_a)):ee(j)}let Ae=()=>V(te().length-1),P=j=>{j.preventDefault(),j.metaKey?Ae():j.altKey?Q(1):ee(1)},W=j=>{j.preventDefault(),j.metaKey?V(0):j.altKey?Q(-1):ee(-1)};return y.createElement(nt.div,{ref:t,tabIndex:-1,...R,"cmdk-root":"",onKeyDown:j=>{var re;if((re=R.onKeyDown)==null||re.call(R,j),!j.defaultPrevented)switch(j.key){case"n":case"j":{v&&j.ctrlKey&&P(j);break}case"ArrowDown":{P(j);break}case"p":case"k":{v&&j.ctrlKey&&W(j);break}case"ArrowUp":{W(j);break}case"Home":{j.preventDefault(),V(0);break}case"End":{j.preventDefault(),Ae();break}case"Enter":if(!j.nativeEvent.isComposing&&j.keyCode!==229){j.preventDefault();let ne=Z();if(ne){let de=new Event(zE);ne.dispatchEvent(de)}}}}},y.createElement("label",{"cmdk-label":"",htmlFor:H.inputId,id:H.labelId,style:Uk},f),vh(e,j=>y.createElement(oD.Provider,{value:O},y.createElement(sD.Provider,{value:H},j))))}),Dk=y.forwardRef((e,t)=>{var n,r;let u=Nr(),o=y.useRef(null),l=y.useContext(lD),c=qc(),f=dD(e),h=(r=(n=f.current)==null?void 0:n.forceMount)!=null?r:l==null?void 0:l.forceMount;Fa(()=>{if(!h)return c.item(u,l==null?void 0:l.id)},[h]);let m=fD(u,o,[e.value,e.children,o],e.keywords),E=x4(),g=Oa(B=>B.value&&B.value===m.current),_=Oa(B=>h||c.filter()===!1?!0:B.search?B.filtered.items.get(u)>0:!0);y.useEffect(()=>{let B=o.current;if(!(!B||e.disabled))return B.addEventListener(zE,S),()=>B.removeEventListener(zE,S)},[_,e.onSelect,e.disabled]);function S(){var B,O;C(),(O=(B=f.current).onSelect)==null||O.call(B,m.current)}function C(){E.setState("value",m.current,!0)}if(!_)return null;let{disabled:v,value:R,onSelect:D,forceMount:b,keywords:L,...x}=e;return y.createElement(nt.div,{ref:oc([o,t]),...x,id:u,"cmdk-item":"",role:"option","aria-disabled":!!v,"aria-selected":!!g,"data-disabled":!!v,"data-selected":!!g,onPointerMove:v||c.getDisablePointerSelection()?void 0:C,onClick:v?void 0:S},e.children)}),Tk=y.forwardRef((e,t)=>{let{heading:n,children:r,forceMount:u,...o}=e,l=Nr(),c=y.useRef(null),f=y.useRef(null),h=Nr(),m=qc(),E=Oa(_=>u||m.filter()===!1?!0:_.search?_.filtered.groups.has(l):!0);Fa(()=>m.group(l),[]),fD(l,c,[e.value,e.heading,f]);let g=y.useMemo(()=>({id:l,forceMount:u}),[u]);return y.createElement(nt.div,{ref:oc([c,t]),...o,"cmdk-group":"",role:"presentation",hidden:E?void 0:!0},n&&y.createElement("div",{ref:f,"cmdk-group-heading":"","aria-hidden":!0,id:h},n),vh(e,_=>y.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":n?h:void 0},y.createElement(lD.Provider,{value:g},_))))}),bk=y.forwardRef((e,t)=>{let{alwaysRender:n,...r}=e,u=y.useRef(null),o=Oa(l=>!l.search);return!n&&!o?null:y.createElement(nt.div,{ref:oc([u,t]),...r,"cmdk-separator":"",role:"separator"})}),xk=y.forwardRef((e,t)=>{let{onValueChange:n,...r}=e,u=e.value!=null,o=x4(),l=Oa(m=>m.search),c=Oa(m=>m.value),f=qc(),h=y.useMemo(()=>{var m;let E=(m=f.listInnerRef.current)==null?void 0:m.querySelector(`${b4}[${_a}="${encodeURIComponent(c)}"]`);return E==null?void 0:E.getAttribute("id")},[]);return y.useEffect(()=>{e.value!=null&&o.setState("search",e.value)},[e.value]),y.createElement(nt.input,{ref:t,...r,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":f.listId,"aria-labelledby":f.labelId,"aria-activedescendant":h,id:f.inputId,type:"text",value:u?e.value:l,onChange:m=>{u||o.setState("search",m.target.value),n==null||n(m.target.value)}})}),Bk=y.forwardRef((e,t)=>{let{children:n,label:r="Suggestions",...u}=e,o=y.useRef(null),l=y.useRef(null),c=qc();return y.useEffect(()=>{if(l.current&&o.current){let f=l.current,h=o.current,m,E=new ResizeObserver(()=>{m=requestAnimationFrame(()=>{let g=f.offsetHeight;h.style.setProperty("--cmdk-list-height",g.toFixed(1)+"px")})});return E.observe(f),()=>{cancelAnimationFrame(m),E.unobserve(f)}}},[]),y.createElement(nt.div,{ref:oc([o,t]),...u,"cmdk-list":"",role:"listbox","aria-label":r,id:c.listId},vh(e,f=>y.createElement("div",{ref:oc([l,c.listInnerRef]),"cmdk-list-sizer":""},f)))}),Fk=y.forwardRef((e,t)=>{let{open:n,onOpenChange:r,overlayClassName:u,contentClassName:o,container:l,...c}=e;return y.createElement(dk,{open:n,onOpenChange:r},y.createElement(fk,{container:l},y.createElement(hk,{"cmdk-overlay":"",className:u}),y.createElement(Ak,{"aria-label":e.label,"cmdk-dialog":"",className:o},y.createElement(cD,{ref:t,...c}))))}),Ok=y.forwardRef((e,t)=>Oa(n=>n.filtered.count===0)?y.createElement(nt.div,{ref:t,...e,"cmdk-empty":"",role:"presentation"}):null),Lk=y.forwardRef((e,t)=>{let{progress:n,children:r,label:u="Loading...",...o}=e;return y.createElement(nt.div,{ref:t,...o,"cmdk-loading":"",role:"progressbar","aria-valuenow":n,"aria-valuemin":0,"aria-valuemax":100,"aria-label":u},vh(e,l=>y.createElement("div",{"aria-hidden":!0},l)))}),Xc=Object.assign(cD,{List:Bk,Item:Dk,Input:xk,Group:Tk,Separator:bk,Dialog:Fk,Empty:Ok,Loading:Lk});function wk(e,t){let n=e.nextElementSibling;for(;n;){if(n.matches(t))return n;n=n.nextElementSibling}}function Mk(e,t){let n=e.previousElementSibling;for(;n;){if(n.matches(t))return n;n=n.previousElementSibling}}function dD(e){let t=y.useRef(e);return Fa(()=>{t.current=e}),t}var Fa=typeof window>"u"?y.useEffect:y.useLayoutEffect;function Ms(e){let t=y.useRef();return t.current===void 0&&(t.current=e()),t}function oc(e){return t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})}}function Oa(e){let t=x4(),n=()=>e(t.snapshot());return Ck.useSyncExternalStore(t.subscribe,n,n)}function fD(e,t,n,r=[]){let u=y.useRef(),o=qc();return Fa(()=>{var l;let c=(()=>{var h;for(let m of n){if(typeof m=="string")return m.trim();if(typeof m=="object"&&"current"in m)return m.current?(h=m.current.textContent)==null?void 0:h.trim():u.current}})(),f=r.map(h=>h.trim());o.value(e,c,f),(l=t.current)==null||l.setAttribute(_a,c),u.current=c}),u}var Pk=()=>{let[e,t]=y.useState(),n=Ms(()=>new Map);return Fa(()=>{n.current.forEach(r=>r()),n.current=new Map},[e]),(r,u)=>{n.current.set(r,u),t({})}};function Hk(e){let t=e.type;return typeof t=="function"?t(e.props):"render"in t?t.render(e.props):e}function vh({asChild:e,children:t},n){return e&&y.isValidElement(t)?y.cloneElement(Hk(t),{ref:t.ref},n(t.props.children)):n(t)}var Uk={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};const hD=({className:e,...t})=>N.jsx(Xc,{className:Re("flex size-full flex-col overflow-hidden rounded-md",e),...t}),kk=({className:e,...t})=>N.jsxs("div",{className:"flex w-full items-center","cmdk-input-wrapper":"",children:[N.jsx(bP,{className:"mr-2 size-4 shrink-0 opacity-50"}),N.jsx(Xc.Input,{className:Re("placeholder:text-muted-foreground outline-hidden flex w-full rounded-md bg-transparent text-sm disabled:cursor-not-allowed disabled:opacity-50",e),...t})]}),Gk=({className:e,...t})=>N.jsx(Xc.List,{className:Re("max-h-[300px] overflow-y-auto overflow-x-hidden",e),...t}),Vk=e=>N.jsx(Xc.Empty,{className:"py-6 text-center text-sm",...e}),jk=({className:e,...t})=>N.jsx(Xc.Item,{className:Re("data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground outline-hidden relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50",e),...t}),Cf={...hD,Input:kk,List:Gk,Empty:Vk,Item:jk},AD=y.createContext(null),Rh=()=>{const e=y.useContext(AD);if(!e)throw new Error("useMultiSelect must be used within MultiSelectProvider");return e},zk=({values:e,defaultValues:t,onValueChange:n,loop:r=!1,className:u,children:o,dir:l,...c})=>{const[f,h]=y.useState(t??[]),[m,E]=y.useState(""),[g,_]=y.useState(!1),[S,C]=y.useState(-1),v=y.useRef(null),[R,D]=y.useState(!1),[b,L]=y.useState("");y.useEffect(()=>{e&&h(e)},[e]);const x=y.useCallback(U=>{if(f.includes(U)){const G=f.filter(fe=>fe!==U);h(G),n==null||n(G)}else{const G=[...f,U];h(G),n==null||n(G)}},[f]),B=y.useCallback(U=>{U.preventDefault();const G=U.currentTarget,fe=G.value.substring(G.selectionStart??0,G.selectionEnd??0);L(fe),D(fe===m)},[m]),O=y.useCallback(U=>{U.stopPropagation();const G=v.current;if(!G)return;const fe=()=>{const Z=S+1;C(Z>f.length-1?r?0:-1:Z)},ae=()=>{const Z=S-1;C(Z<0?f.length-1:Z)},ce=()=>{const Z=S-1<=0?f.length-1===0?-1:0:S-1;C(Z)};switch(U.key){case"ArrowLeft":l==="rtl"?f.length>0&&(S!==-1||r)&&fe():f.length>0&&G.selectionStart===0&&ae();break;case"ArrowRight":l==="rtl"?f.length>0&&G.selectionStart===0&&ae():f.length>0&&(S!==-1||r)&&fe();break;case"Backspace":case"Delete":f.length>0&&(S!==-1&&S<f.length?(x(f[S]),ce()):(G.selectionStart===0&&b===m||R)&&x(f[f.length-1]));break;case"Enter":_(!0);break;case"Escape":S!==-1?C(-1):g&&_(!1);break}},[f,m,S,r]),H=y.useMemo(()=>({value:f,onValueChange:x,open:g,setOpen:_,inputValue:m,setInputValue:E,activeIndex:S,setActiveIndex:C,ref:v,handleSelect:B}),[f,x,g,_,m,E,S,C,v,B]);return N.jsx(AD,{value:H,children:N.jsx(hD,{onKeyDown:O,className:Re("flex w-full flex-col gap-2 overflow-visible bg-transparent",u),dir:l,...c,children:o})})},Kk=({className:e,getBadgeValue:t=o=>o,validationStyleEnabled:n=!1,children:r,...u})=>{const{value:o,onValueChange:l,activeIndex:c}=Rh(),f=y.useCallback(h=>{h.preventDefault(),h.stopPropagation()},[]);return N.jsxs("div",{className:Re("flex w-full flex-col gap-3 rounded-lg p-1 py-2","border-input ring-offset-background placeholder:text-muted-foreground focus:ring-ring focus:outline-hidden flex w-full items-center justify-between whitespace-nowrap border px-3 py-2 text-sm focus:ring-1 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1","bg-input-background text-input-text w-full select-text resize-none rounded-xl border-2 px-2 py-1 text-sm shadow-none outline-0 transition-all","border-input-border hover:border-input-border-hover focus:border-input-border-focus focus:outline-0 focus:[box-shadow:none]","aria-[invalid=true]:border-error",n&&"valid:border-success invalid:border-error",e),...u,children:[o.length>0&&N.jsx("div",{className:"flex w-full flex-wrap gap-1",children:o.map((h,m)=>N.jsxs(i5,{className:Re("flex items-center gap-1 rounded-xl px-1",c===m&&"ring-muted-foreground ring-2"),color:"text",children:[N.jsx("span",{className:"text-xs",children:t(h)}),N.jsxs("button",{"aria-label":`Remove ${h} option`,"aria-roledescription":"button to remove option",onMouseDown:f,onClick:()=>l(h),children:[N.jsxs("span",{className:"sr-only",children:["Remove ",h," option"]}),N.jsx(Va,{className:"size-4 cursor-pointer"})]})]},h))}),r]})},$k=({className:e,...t})=>{const{setOpen:n,inputValue:r,setInputValue:u,activeIndex:o,setActiveIndex:l,handleSelect:c,ref:f}=Rh();return N.jsx(Cf.Input,{...t,tabIndex:0,ref:f,value:r,onValueChange:o===-1?u:void 0,onSelect:c,onBlur:()=>n(!1),onFocus:()=>n(!0),onClick:()=>l(-1),className:Re("outline-hidden ml-2 flex-1 cursor-pointer",e,o!==-1&&"caret-transparent")})},Yk=({children:e})=>{const{open:t}=Rh();return N.jsx("div",{className:"relative",children:t&&e})},Zk=({className:e,children:t})=>N.jsxs(Cf.List,{className:Re("border-muted bg-input-background absolute top-0 z-10 flex w-full flex-col gap-2 rounded-lg border p-2 shadow-md transition-colors",e),children:[t,N.jsx(Cf.Empty,{children:N.jsx("span",{className:"text-muted-foreground",children:"No results found"})})]}),Wk=({className:e,value:t,children:n,...r})=>{const{value:u,onValueChange:o,setInputValue:l}=Rh(),c=y.useCallback(h=>{h.preventDefault(),h.stopPropagation()},[]),f=u.includes(t);return N.jsxs(Cf.Item,{...r,onSelect:()=>{o(t),l("")},className:Re("flex cursor-pointer justify-between rounded-lg px-2 py-1 transition-colors","hover:bg-neutral/10",e,f&&"opacity-50",r.disabled&&"cursor-not-allowed opacity-50"),onMouseDown:c,children:[n,f&&N.jsx(Eo,{className:"size-4"})]})},Sn=zk;Sn.Trigger=Kk;Sn.Input=$k;Sn.Content=Yk;Sn.List=Zk;Sn.Item=Wk;const qk=({className:e,children:t,...n})=>N.jsxs("i",{className:Re("text-xs text-neutral-400",e),...n,children:["ⓘ ",t]}),KE=({htmlFor:e,...t})=>N.jsx("label",{className:"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",htmlFor:e,...t}),Xk=({className:e,...t})=>{const{error:n,formItemId:r}=Pu();return N.jsx(KE,{className:Re("mb-2",n&&"text-error",e),htmlFor:r,...t})},Qk=({isRequired:e})=>e?N.jsx("span",{"aria-label":"Asterisk meaning the field is required",children:"*"}):N.jsx(N.Fragment,{}),mD=({children:e,isRequired:t,info:n,htmlFor:r,className:u})=>N.jsxs("div",{className:"ml-1 flex gap-1 align-middle text-base leading-none",children:[e&&N.jsxs(Xk,{htmlFor:r,id:`${r}-label`,className:Ah("font-bold",u),children:[e,N.jsx(Qk,{isRequired:t})]}),n&&N.jsx(qk,{content:n})]});function Q3(e,[t,n]){return Math.min(n,Math.max(t,e))}var Jk=y.createContext(void 0);function eG(e){const t=y.useContext(Jk);return e||t||"ltr"}const tG=["top","right","bottom","left"],yu=Math.min,qn=Math.max,vf=Math.round,w0=Math.floor,qr=e=>({x:e,y:e}),nG={left:"right",right:"left",bottom:"top",top:"bottom"},rG={start:"end",end:"start"};function $E(e,t,n){return qn(e,yu(t,n))}function Mi(e,t){return typeof e=="function"?e(t):e}function Pi(e){return e.split("-")[0]}function _o(e){return e.split("-")[1]}function B4(e){return e==="x"?"y":"x"}function F4(e){return e==="y"?"height":"width"}function Cu(e){return["top","bottom"].includes(Pi(e))?"y":"x"}function O4(e){return B4(Cu(e))}function iG(e,t,n){n===void 0&&(n=!1);const r=_o(e),u=O4(e),o=F4(u);let l=u==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(l=Rf(l)),[l,Rf(l)]}function uG(e){const t=Rf(e);return[YE(e),t,YE(t)]}function YE(e){return e.replace(/start|end/g,t=>rG[t])}function aG(e,t,n){const r=["left","right"],u=["right","left"],o=["top","bottom"],l=["bottom","top"];switch(e){case"top":case"bottom":return n?t?u:r:t?r:u;case"left":case"right":return t?o:l;default:return[]}}function sG(e,t,n,r){const u=_o(e);let o=aG(Pi(e),n==="start",r);return u&&(o=o.map(l=>l+"-"+u),t&&(o=o.concat(o.map(YE)))),o}function Rf(e){return e.replace(/left|right|bottom|top/g,t=>nG[t])}function oG(e){return{top:0,right:0,bottom:0,left:0,...e}}function pD(e){return typeof e!="number"?oG(e):{top:e,right:e,bottom:e,left:e}}function Df(e){const{x:t,y:n,width:r,height:u}=e;return{width:r,height:u,top:n,left:t,right:t+r,bottom:n+u,x:t,y:n}}function J3(e,t,n){let{reference:r,floating:u}=e;const o=Cu(t),l=O4(t),c=F4(l),f=Pi(t),h=o==="y",m=r.x+r.width/2-u.width/2,E=r.y+r.height/2-u.height/2,g=r[c]/2-u[c]/2;let _;switch(f){case"top":_={x:m,y:r.y-u.height};break;case"bottom":_={x:m,y:r.y+r.height};break;case"right":_={x:r.x+r.width,y:E};break;case"left":_={x:r.x-u.width,y:E};break;default:_={x:r.x,y:r.y}}switch(_o(t)){case"start":_[l]-=g*(n&&h?-1:1);break;case"end":_[l]+=g*(n&&h?-1:1);break}return _}const lG=async(e,t,n)=>{const{placement:r="bottom",strategy:u="absolute",middleware:o=[],platform:l}=n,c=o.filter(Boolean),f=await(l.isRTL==null?void 0:l.isRTL(t));let h=await l.getElementRects({reference:e,floating:t,strategy:u}),{x:m,y:E}=J3(h,r,f),g=r,_={},S=0;for(let C=0;C<c.length;C++){const{name:v,fn:R}=c[C],{x:D,y:b,data:L,reset:x}=await R({x:m,y:E,initialPlacement:r,placement:g,strategy:u,middlewareData:_,rects:h,platform:l,elements:{reference:e,floating:t}});m=D??m,E=b??E,_={..._,[v]:{..._[v],...L}},x&&S<=50&&(S++,typeof x=="object"&&(x.placement&&(g=x.placement),x.rects&&(h=x.rects===!0?await l.getElementRects({reference:e,floating:t,strategy:u}):x.rects),{x:m,y:E}=J3(h,g,f)),C=-1)}return{x:m,y:E,placement:g,strategy:u,middlewareData:_}};async function lc(e,t){var n;t===void 0&&(t={});const{x:r,y:u,platform:o,rects:l,elements:c,strategy:f}=e,{boundary:h="clippingAncestors",rootBoundary:m="viewport",elementContext:E="floating",altBoundary:g=!1,padding:_=0}=Mi(t,e),S=pD(_),v=c[g?E==="floating"?"reference":"floating":E],R=Df(await o.getClippingRect({element:(n=await(o.isElement==null?void 0:o.isElement(v)))==null||n?v:v.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(c.floating)),boundary:h,rootBoundary:m,strategy:f})),D=E==="floating"?{x:r,y:u,width:l.floating.width,height:l.floating.height}:l.reference,b=await(o.getOffsetParent==null?void 0:o.getOffsetParent(c.floating)),L=await(o.isElement==null?void 0:o.isElement(b))?await(o.getScale==null?void 0:o.getScale(b))||{x:1,y:1}:{x:1,y:1},x=Df(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:D,offsetParent:b,strategy:f}):D);return{top:(R.top-x.top+S.top)/L.y,bottom:(x.bottom-R.bottom+S.bottom)/L.y,left:(R.left-x.left+S.left)/L.x,right:(x.right-R.right+S.right)/L.x}}const cG=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:u,rects:o,platform:l,elements:c,middlewareData:f}=t,{element:h,padding:m=0}=Mi(e,t)||{};if(h==null)return{};const E=pD(m),g={x:n,y:r},_=O4(u),S=F4(_),C=await l.getDimensions(h),v=_==="y",R=v?"top":"left",D=v?"bottom":"right",b=v?"clientHeight":"clientWidth",L=o.reference[S]+o.reference[_]-g[_]-o.floating[S],x=g[_]-o.reference[_],B=await(l.getOffsetParent==null?void 0:l.getOffsetParent(h));let O=B?B[b]:0;(!O||!await(l.isElement==null?void 0:l.isElement(B)))&&(O=c.floating[b]||o.floating[S]);const H=L/2-x/2,U=O/2-C[S]/2-1,G=yu(E[R],U),fe=yu(E[D],U),ae=G,ce=O-C[S]-fe,Z=O/2-C[S]/2+H,te=$E(ae,Z,ce),V=!f.arrow&&_o(u)!=null&&Z!==te&&o.reference[S]/2-(Z<ae?G:fe)-C[S]/2<0,ee=V?Z<ae?Z-ae:Z-ce:0;return{[_]:g[_]+ee,data:{[_]:te,centerOffset:Z-te-ee,...V&&{alignmentOffset:ee}},reset:V}}}),dG=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:u,middlewareData:o,rects:l,initialPlacement:c,platform:f,elements:h}=t,{mainAxis:m=!0,crossAxis:E=!0,fallbackPlacements:g,fallbackStrategy:_="bestFit",fallbackAxisSideDirection:S="none",flipAlignment:C=!0,...v}=Mi(e,t);if((n=o.arrow)!=null&&n.alignmentOffset)return{};const R=Pi(u),D=Cu(c),b=Pi(c)===c,L=await(f.isRTL==null?void 0:f.isRTL(h.floating)),x=g||(b||!C?[Rf(c)]:uG(c)),B=S!=="none";!g&&B&&x.push(...sG(c,C,S,L));const O=[c,...x],H=await lc(t,v),U=[];let G=((r=o.flip)==null?void 0:r.overflows)||[];if(m&&U.push(H[R]),E){const Z=iG(u,l,L);U.push(H[Z[0]],H[Z[1]])}if(G=[...G,{placement:u,overflows:U}],!U.every(Z=>Z<=0)){var fe,ae;const Z=(((fe=o.flip)==null?void 0:fe.index)||0)+1,te=O[Z];if(te)return{data:{index:Z,overflows:G},reset:{placement:te}};let V=(ae=G.filter(ee=>ee.overflows[0]<=0).sort((ee,Q)=>ee.overflows[1]-Q.overflows[1])[0])==null?void 0:ae.placement;if(!V)switch(_){case"bestFit":{var ce;const ee=(ce=G.filter(Q=>{if(B){const Ae=Cu(Q.placement);return Ae===D||Ae==="y"}return!0}).map(Q=>[Q.placement,Q.overflows.filter(Ae=>Ae>0).reduce((Ae,P)=>Ae+P,0)]).sort((Q,Ae)=>Q[1]-Ae[1])[0])==null?void 0:ce[0];ee&&(V=ee);break}case"initialPlacement":V=c;break}if(u!==V)return{reset:{placement:V}}}return{}}}};function eC(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function tC(e){return tG.some(t=>e[t]>=0)}const fG=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...u}=Mi(e,t);switch(r){case"referenceHidden":{const o=await lc(t,{...u,elementContext:"reference"}),l=eC(o,n.reference);return{data:{referenceHiddenOffsets:l,referenceHidden:tC(l)}}}case"escaped":{const o=await lc(t,{...u,altBoundary:!0}),l=eC(o,n.floating);return{data:{escapedOffsets:l,escaped:tC(l)}}}default:return{}}}}};async function hG(e,t){const{placement:n,platform:r,elements:u}=e,o=await(r.isRTL==null?void 0:r.isRTL(u.floating)),l=Pi(n),c=_o(n),f=Cu(n)==="y",h=["left","top"].includes(l)?-1:1,m=o&&f?-1:1,E=Mi(t,e);let{mainAxis:g,crossAxis:_,alignmentAxis:S}=typeof E=="number"?{mainAxis:E,crossAxis:0,alignmentAxis:null}:{mainAxis:E.mainAxis||0,crossAxis:E.crossAxis||0,alignmentAxis:E.alignmentAxis};return c&&typeof S=="number"&&(_=c==="end"?S*-1:S),f?{x:_*m,y:g*h}:{x:g*h,y:_*m}}const AG=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:u,y:o,placement:l,middlewareData:c}=t,f=await hG(t,e);return l===((n=c.offset)==null?void 0:n.placement)&&(r=c.arrow)!=null&&r.alignmentOffset?{}:{x:u+f.x,y:o+f.y,data:{...f,placement:l}}}}},mG=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:u}=t,{mainAxis:o=!0,crossAxis:l=!1,limiter:c={fn:v=>{let{x:R,y:D}=v;return{x:R,y:D}}},...f}=Mi(e,t),h={x:n,y:r},m=await lc(t,f),E=Cu(Pi(u)),g=B4(E);let _=h[g],S=h[E];if(o){const v=g==="y"?"top":"left",R=g==="y"?"bottom":"right",D=_+m[v],b=_-m[R];_=$E(D,_,b)}if(l){const v=E==="y"?"top":"left",R=E==="y"?"bottom":"right",D=S+m[v],b=S-m[R];S=$E(D,S,b)}const C=c.fn({...t,[g]:_,[E]:S});return{...C,data:{x:C.x-n,y:C.y-r,enabled:{[g]:o,[E]:l}}}}}},pG=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:u,rects:o,middlewareData:l}=t,{offset:c=0,mainAxis:f=!0,crossAxis:h=!0}=Mi(e,t),m={x:n,y:r},E=Cu(u),g=B4(E);let _=m[g],S=m[E];const C=Mi(c,t),v=typeof C=="number"?{mainAxis:C,crossAxis:0}:{mainAxis:0,crossAxis:0,...C};if(f){const b=g==="y"?"height":"width",L=o.reference[g]-o.floating[b]+v.mainAxis,x=o.reference[g]+o.reference[b]-v.mainAxis;_<L?_=L:_>x&&(_=x)}if(h){var R,D;const b=g==="y"?"width":"height",L=["top","left"].includes(Pi(u)),x=o.reference[E]-o.floating[b]+(L&&((R=l.offset)==null?void 0:R[E])||0)+(L?0:v.crossAxis),B=o.reference[E]+o.reference[b]+(L?0:((D=l.offset)==null?void 0:D[E])||0)-(L?v.crossAxis:0);S<x?S=x:S>B&&(S=B)}return{[g]:_,[E]:S}}}},EG=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:u,rects:o,platform:l,elements:c}=t,{apply:f=()=>{},...h}=Mi(e,t),m=await lc(t,h),E=Pi(u),g=_o(u),_=Cu(u)==="y",{width:S,height:C}=o.floating;let v,R;E==="top"||E==="bottom"?(v=E,R=g===(await(l.isRTL==null?void 0:l.isRTL(c.floating))?"start":"end")?"left":"right"):(R=E,v=g==="end"?"top":"bottom");const D=C-m.top-m.bottom,b=S-m.left-m.right,L=yu(C-m[v],D),x=yu(S-m[R],b),B=!t.middlewareData.shift;let O=L,H=x;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(H=b),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(O=D),B&&!g){const G=qn(m.left,0),fe=qn(m.right,0),ae=qn(m.top,0),ce=qn(m.bottom,0);_?H=S-2*(G!==0||fe!==0?G+fe:qn(m.left,m.right)):O=C-2*(ae!==0||ce!==0?ae+ce:qn(m.top,m.bottom))}await f({...t,availableWidth:H,availableHeight:O});const U=await l.getDimensions(c.floating);return S!==U.width||C!==U.height?{reset:{rects:!0}}:{}}}};function Dh(){return typeof window<"u"}function So(e){return ED(e)?(e.nodeName||"").toLowerCase():"#document"}function Qn(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function si(e){var t;return(t=(ED(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function ED(e){return Dh()?e instanceof Node||e instanceof Qn(e).Node:!1}function Or(e){return Dh()?e instanceof Element||e instanceof Qn(e).Element:!1}function ti(e){return Dh()?e instanceof HTMLElement||e instanceof Qn(e).HTMLElement:!1}function nC(e){return!Dh()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Qn(e).ShadowRoot}function Qc(e){const{overflow:t,overflowX:n,overflowY:r,display:u}=Lr(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(u)}function gG(e){return["table","td","th"].includes(So(e))}function Th(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function L4(e){const t=w4(),n=Or(e)?Lr(e):e;return["transform","translate","scale","rotate","perspective"].some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","translate","scale","rotate","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function _G(e){let t=vu(e);for(;ti(t)&&!to(t);){if(L4(t))return t;if(Th(t))return null;t=vu(t)}return null}function w4(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function to(e){return["html","body","#document"].includes(So(e))}function Lr(e){return Qn(e).getComputedStyle(e)}function bh(e){return Or(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function vu(e){if(So(e)==="html")return e;const t=e.assignedSlot||e.parentNode||nC(e)&&e.host||si(e);return nC(t)?t.host:t}function gD(e){const t=vu(e);return to(t)?e.ownerDocument?e.ownerDocument.body:e.body:ti(t)&&Qc(t)?t:gD(t)}function cc(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const u=gD(e),o=u===((r=e.ownerDocument)==null?void 0:r.body),l=Qn(u);if(o){const c=ZE(l);return t.concat(l,l.visualViewport||[],Qc(u)?u:[],c&&n?cc(c):[])}return t.concat(u,cc(u,[],n))}function ZE(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function _D(e){const t=Lr(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const u=ti(e),o=u?e.offsetWidth:n,l=u?e.offsetHeight:r,c=vf(n)!==o||vf(r)!==l;return c&&(n=o,r=l),{width:n,height:r,$:c}}function M4(e){return Or(e)?e:e.contextElement}function Zs(e){const t=M4(e);if(!ti(t))return qr(1);const n=t.getBoundingClientRect(),{width:r,height:u,$:o}=_D(t);let l=(o?vf(n.width):n.width)/r,c=(o?vf(n.height):n.height)/u;return(!l||!Number.isFinite(l))&&(l=1),(!c||!Number.isFinite(c))&&(c=1),{x:l,y:c}}const SG=qr(0);function SD(e){const t=Qn(e);return!w4()||!t.visualViewport?SG:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function NG(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Qn(e)?!1:t}function La(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const u=e.getBoundingClientRect(),o=M4(e);let l=qr(1);t&&(r?Or(r)&&(l=Zs(r)):l=Zs(e));const c=NG(o,n,r)?SD(o):qr(0);let f=(u.left+c.x)/l.x,h=(u.top+c.y)/l.y,m=u.width/l.x,E=u.height/l.y;if(o){const g=Qn(o),_=r&&Or(r)?Qn(r):r;let S=g,C=ZE(S);for(;C&&r&&_!==S;){const v=Zs(C),R=C.getBoundingClientRect(),D=Lr(C),b=R.left+(C.clientLeft+parseFloat(D.paddingLeft))*v.x,L=R.top+(C.clientTop+parseFloat(D.paddingTop))*v.y;f*=v.x,h*=v.y,m*=v.x,E*=v.y,f+=b,h+=L,S=Qn(C),C=ZE(S)}}return Df({width:m,height:E,x:f,y:h})}function P4(e,t){const n=bh(e).scrollLeft;return t?t.left+n:La(si(e)).left+n}function ND(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),u=r.left+t.scrollLeft-(n?0:P4(e,r)),o=r.top+t.scrollTop;return{x:u,y:o}}function IG(e){let{elements:t,rect:n,offsetParent:r,strategy:u}=e;const o=u==="fixed",l=si(r),c=t?Th(t.floating):!1;if(r===l||c&&o)return n;let f={scrollLeft:0,scrollTop:0},h=qr(1);const m=qr(0),E=ti(r);if((E||!E&&!o)&&((So(r)!=="body"||Qc(l))&&(f=bh(r)),ti(r))){const _=La(r);h=Zs(r),m.x=_.x+r.clientLeft,m.y=_.y+r.clientTop}const g=l&&!E&&!o?ND(l,f,!0):qr(0);return{width:n.width*h.x,height:n.height*h.y,x:n.x*h.x-f.scrollLeft*h.x+m.x+g.x,y:n.y*h.y-f.scrollTop*h.y+m.y+g.y}}function yG(e){return Array.from(e.getClientRects())}function CG(e){const t=si(e),n=bh(e),r=e.ownerDocument.body,u=qn(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=qn(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let l=-n.scrollLeft+P4(e);const c=-n.scrollTop;return Lr(r).direction==="rtl"&&(l+=qn(t.clientWidth,r.clientWidth)-u),{width:u,height:o,x:l,y:c}}function vG(e,t){const n=Qn(e),r=si(e),u=n.visualViewport;let o=r.clientWidth,l=r.clientHeight,c=0,f=0;if(u){o=u.width,l=u.height;const h=w4();(!h||h&&t==="fixed")&&(c=u.offsetLeft,f=u.offsetTop)}return{width:o,height:l,x:c,y:f}}function RG(e,t){const n=La(e,!0,t==="fixed"),r=n.top+e.clientTop,u=n.left+e.clientLeft,o=ti(e)?Zs(e):qr(1),l=e.clientWidth*o.x,c=e.clientHeight*o.y,f=u*o.x,h=r*o.y;return{width:l,height:c,x:f,y:h}}function rC(e,t,n){let r;if(t==="viewport")r=vG(e,n);else if(t==="document")r=CG(si(e));else if(Or(t))r=RG(t,n);else{const u=SD(e);r={x:t.x-u.x,y:t.y-u.y,width:t.width,height:t.height}}return Df(r)}function ID(e,t){const n=vu(e);return n===t||!Or(n)||to(n)?!1:Lr(n).position==="fixed"||ID(n,t)}function DG(e,t){const n=t.get(e);if(n)return n;let r=cc(e,[],!1).filter(c=>Or(c)&&So(c)!=="body"),u=null;const o=Lr(e).position==="fixed";let l=o?vu(e):e;for(;Or(l)&&!to(l);){const c=Lr(l),f=L4(l);!f&&c.position==="fixed"&&(u=null),(o?!f&&!u:!f&&c.position==="static"&&!!u&&["absolute","fixed"].includes(u.position)||Qc(l)&&!f&&ID(e,l))?r=r.filter(m=>m!==l):u=c,l=vu(l)}return t.set(e,r),r}function TG(e){let{element:t,boundary:n,rootBoundary:r,strategy:u}=e;const l=[...n==="clippingAncestors"?Th(t)?[]:DG(t,this._c):[].concat(n),r],c=l[0],f=l.reduce((h,m)=>{const E=rC(t,m,u);return h.top=qn(E.top,h.top),h.right=yu(E.right,h.right),h.bottom=yu(E.bottom,h.bottom),h.left=qn(E.left,h.left),h},rC(t,c,u));return{width:f.right-f.left,height:f.bottom-f.top,x:f.left,y:f.top}}function bG(e){const{width:t,height:n}=_D(e);return{width:t,height:n}}function xG(e,t,n){const r=ti(t),u=si(t),o=n==="fixed",l=La(e,!0,o,t);let c={scrollLeft:0,scrollTop:0};const f=qr(0);if(r||!r&&!o)if((So(t)!=="body"||Qc(u))&&(c=bh(t)),r){const g=La(t,!0,o,t);f.x=g.x+t.clientLeft,f.y=g.y+t.clientTop}else u&&(f.x=P4(u));const h=u&&!r&&!o?ND(u,c):qr(0),m=l.left+c.scrollLeft-f.x-h.x,E=l.top+c.scrollTop-f.y-h.y;return{x:m,y:E,width:l.width,height:l.height}}function jp(e){return Lr(e).position==="static"}function iC(e,t){if(!ti(e)||Lr(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return si(e)===n&&(n=n.ownerDocument.body),n}function yD(e,t){const n=Qn(e);if(Th(e))return n;if(!ti(e)){let u=vu(e);for(;u&&!to(u);){if(Or(u)&&!jp(u))return u;u=vu(u)}return n}let r=iC(e,t);for(;r&&gG(r)&&jp(r);)r=iC(r,t);return r&&to(r)&&jp(r)&&!L4(r)?n:r||_G(e)||n}const BG=async function(e){const t=this.getOffsetParent||yD,n=this.getDimensions,r=await n(e.floating);return{reference:xG(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function FG(e){return Lr(e).direction==="rtl"}const OG={convertOffsetParentRelativeRectToViewportRelativeRect:IG,getDocumentElement:si,getClippingRect:TG,getOffsetParent:yD,getElementRects:BG,getClientRects:yG,getDimensions:bG,getScale:Zs,isElement:Or,isRTL:FG};function CD(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function LG(e,t){let n=null,r;const u=si(e);function o(){var c;clearTimeout(r),(c=n)==null||c.disconnect(),n=null}function l(c,f){c===void 0&&(c=!1),f===void 0&&(f=1),o();const h=e.getBoundingClientRect(),{left:m,top:E,width:g,height:_}=h;if(c||t(),!g||!_)return;const S=w0(E),C=w0(u.clientWidth-(m+g)),v=w0(u.clientHeight-(E+_)),R=w0(m),b={rootMargin:-S+"px "+-C+"px "+-v+"px "+-R+"px",threshold:qn(0,yu(1,f))||1};let L=!0;function x(B){const O=B[0].intersectionRatio;if(O!==f){if(!L)return l();O?l(!1,O):r=setTimeout(()=>{l(!1,1e-7)},1e3)}O===1&&!CD(h,e.getBoundingClientRect())&&l(),L=!1}try{n=new IntersectionObserver(x,{...b,root:u.ownerDocument})}catch{n=new IntersectionObserver(x,b)}n.observe(e)}return l(!0),o}function wG(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:u=!0,ancestorResize:o=!0,elementResize:l=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:f=!1}=r,h=M4(e),m=u||o?[...h?cc(h):[],...cc(t)]:[];m.forEach(R=>{u&&R.addEventListener("scroll",n,{passive:!0}),o&&R.addEventListener("resize",n)});const E=h&&c?LG(h,n):null;let g=-1,_=null;l&&(_=new ResizeObserver(R=>{let[D]=R;D&&D.target===h&&_&&(_.unobserve(t),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var b;(b=_)==null||b.observe(t)})),n()}),h&&!f&&_.observe(h),_.observe(t));let S,C=f?La(e):null;f&&v();function v(){const R=La(e);C&&!CD(C,R)&&n(),C=R,S=requestAnimationFrame(v)}return n(),()=>{var R;m.forEach(D=>{u&&D.removeEventListener("scroll",n),o&&D.removeEventListener("resize",n)}),E==null||E(),(R=_)==null||R.disconnect(),_=null,f&&cancelAnimationFrame(S)}}const MG=AG,PG=mG,HG=dG,UG=EG,kG=fG,uC=cG,GG=pG,VG=(e,t,n)=>{const r=new Map,u={platform:OG,...n},o={...u.platform,_c:r};return lG(e,t,{...u,platform:o})};var af=typeof document<"u"?y.useLayoutEffect:y.useEffect;function Tf(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,u;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Tf(e[r],t[r]))return!1;return!0}if(u=Object.keys(e),n=u.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,u[r]))return!1;for(r=n;r--!==0;){const o=u[r];if(!(o==="_owner"&&e.$$typeof)&&!Tf(e[o],t[o]))return!1}return!0}return e!==e&&t!==t}function vD(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function aC(e,t){const n=vD(e);return Math.round(t*n)/n}function zp(e){const t=y.useRef(e);return af(()=>{t.current=e}),t}function jG(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:u,elements:{reference:o,floating:l}={},transform:c=!0,whileElementsMounted:f,open:h}=e,[m,E]=y.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[g,_]=y.useState(r);Tf(g,r)||_(r);const[S,C]=y.useState(null),[v,R]=y.useState(null),D=y.useCallback(Q=>{Q!==B.current&&(B.current=Q,C(Q))},[]),b=y.useCallback(Q=>{Q!==O.current&&(O.current=Q,R(Q))},[]),L=o||S,x=l||v,B=y.useRef(null),O=y.useRef(null),H=y.useRef(m),U=f!=null,G=zp(f),fe=zp(u),ae=zp(h),ce=y.useCallback(()=>{if(!B.current||!O.current)return;const Q={placement:t,strategy:n,middleware:g};fe.current&&(Q.platform=fe.current),VG(B.current,O.current,Q).then(Ae=>{const P={...Ae,isPositioned:ae.current!==!1};Z.current&&!Tf(H.current,P)&&(H.current=P,Ga.flushSync(()=>{E(P)}))})},[g,t,n,fe,ae]);af(()=>{h===!1&&H.current.isPositioned&&(H.current.isPositioned=!1,E(Q=>({...Q,isPositioned:!1})))},[h]);const Z=y.useRef(!1);af(()=>(Z.current=!0,()=>{Z.current=!1}),[]),af(()=>{if(L&&(B.current=L),x&&(O.current=x),L&&x){if(G.current)return G.current(L,x,ce);ce()}},[L,x,ce,G,U]);const te=y.useMemo(()=>({reference:B,floating:O,setReference:D,setFloating:b}),[D,b]),V=y.useMemo(()=>({reference:L,floating:x}),[L,x]),ee=y.useMemo(()=>{const Q={position:n,left:0,top:0};if(!V.floating)return Q;const Ae=aC(V.floating,m.x),P=aC(V.floating,m.y);return c?{...Q,transform:"translate("+Ae+"px, "+P+"px)",...vD(V.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:Ae,top:P}},[n,c,V.floating,m.x,m.y]);return y.useMemo(()=>({...m,update:ce,refs:te,elements:V,floatingStyles:ee}),[m,ce,te,V,ee])}const zG=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:u}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?uC({element:r.current,padding:u}).fn(n):{}:r?uC({element:r,padding:u}).fn(n):{}}}},KG=(e,t)=>({...MG(e),options:[e,t]}),$G=(e,t)=>({...PG(e),options:[e,t]}),YG=(e,t)=>({...GG(e),options:[e,t]}),ZG=(e,t)=>({...HG(e),options:[e,t]}),WG=(e,t)=>({...UG(e),options:[e,t]}),qG=(e,t)=>({...kG(e),options:[e,t]}),XG=(e,t)=>({...zG(e),options:[e,t]});var QG="Arrow",RD=y.forwardRef((e,t)=>{const{children:n,width:r=10,height:u=5,...o}=e;return N.jsx(nt.svg,{...o,ref:t,width:r,height:u,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:N.jsx("polygon",{points:"0,0 30,0 15,10"})})});RD.displayName=QG;var JG=RD;function eV(e){const[t,n]=y.useState(void 0);return Cn(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(u=>{if(!Array.isArray(u)||!u.length)return;const o=u[0];let l,c;if("borderBoxSize"in o){const f=o.borderBoxSize,h=Array.isArray(f)?f[0]:f;l=h.inlineSize,c=h.blockSize}else l=e.offsetWidth,c=e.offsetHeight;n({width:l,height:c})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var H4="Popper",[DD,TD]=Yc(H4),[tV,bD]=DD(H4),xD=e=>{const{__scopePopper:t,children:n}=e,[r,u]=y.useState(null);return N.jsx(tV,{scope:t,anchor:r,onAnchorChange:u,children:n})};xD.displayName=H4;var BD="PopperAnchor",FD=y.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...u}=e,o=bD(BD,n),l=y.useRef(null),c=xt(t,l);return y.useEffect(()=>{o.onAnchorChange((r==null?void 0:r.current)||l.current)}),r?null:N.jsx(nt.div,{...u,ref:c})});FD.displayName=BD;var U4="PopperContent",[nV,rV]=DD(U4),OD=y.forwardRef((e,t)=>{var pe,ve,Ve,we,Ze,at;const{__scopePopper:n,side:r="bottom",sideOffset:u=0,align:o="center",alignOffset:l=0,arrowPadding:c=0,avoidCollisions:f=!0,collisionBoundary:h=[],collisionPadding:m=0,sticky:E="partial",hideWhenDetached:g=!1,updatePositionStrategy:_="optimized",onPlaced:S,...C}=e,v=bD(U4,n),[R,D]=y.useState(null),b=xt(t,It=>D(It)),[L,x]=y.useState(null),B=eV(L),O=(B==null?void 0:B.width)??0,H=(B==null?void 0:B.height)??0,U=r+(o!=="center"?"-"+o:""),G=typeof m=="number"?m:{top:0,right:0,bottom:0,left:0,...m},fe=Array.isArray(h)?h:[h],ae=fe.length>0,ce={padding:G,boundary:fe.filter(uV),altBoundary:ae},{refs:Z,floatingStyles:te,placement:V,isPositioned:ee,middlewareData:Q}=jG({strategy:"fixed",placement:U,whileElementsMounted:(...It)=>wG(...It,{animationFrame:_==="always"}),elements:{reference:v.anchor},middleware:[KG({mainAxis:u+H,alignmentAxis:l}),f&&$G({mainAxis:!0,crossAxis:!1,limiter:E==="partial"?YG():void 0,...ce}),f&&ZG({...ce}),WG({...ce,apply:({elements:It,rects:Jt,availableWidth:yr,availableHeight:kn})=>{const{width:Hr,height:k}=Jt.reference,X=It.floating.style;X.setProperty("--radix-popper-available-width",`${yr}px`),X.setProperty("--radix-popper-available-height",`${kn}px`),X.setProperty("--radix-popper-anchor-width",`${Hr}px`),X.setProperty("--radix-popper-anchor-height",`${k}px`)}}),L&&XG({element:L,padding:c}),aV({arrowWidth:O,arrowHeight:H}),g&&qG({strategy:"referenceHidden",...ce})]}),[Ae,P]=MD(V),W=er(S);Cn(()=>{ee&&(W==null||W())},[ee,W]);const j=(pe=Q.arrow)==null?void 0:pe.x,re=(ve=Q.arrow)==null?void 0:ve.y,ne=((Ve=Q.arrow)==null?void 0:Ve.centerOffset)!==0,[de,Ee]=y.useState();return Cn(()=>{R&&Ee(window.getComputedStyle(R).zIndex)},[R]),N.jsx("div",{ref:Z.setFloating,"data-radix-popper-content-wrapper":"",style:{...te,transform:ee?te.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:de,"--radix-popper-transform-origin":[(we=Q.transformOrigin)==null?void 0:we.x,(Ze=Q.transformOrigin)==null?void 0:Ze.y].join(" "),...((at=Q.hide)==null?void 0:at.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:N.jsx(nV,{scope:n,placedSide:Ae,onArrowChange:x,arrowX:j,arrowY:re,shouldHideArrow:ne,children:N.jsx(nt.div,{"data-side":Ae,"data-align":P,...C,ref:b,style:{...C.style,animation:ee?void 0:"none"}})})})});OD.displayName=U4;var LD="PopperArrow",iV={top:"bottom",right:"left",bottom:"top",left:"right"},wD=y.forwardRef(function(t,n){const{__scopePopper:r,...u}=t,o=rV(LD,r),l=iV[o.placedSide];return N.jsx("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[l]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0},children:N.jsx(JG,{...u,ref:n,style:{...u.style,display:"block"}})})});wD.displayName=LD;function uV(e){return e!==null}var aV=e=>({name:"transformOrigin",options:e,fn(t){var v,R,D;const{placement:n,rects:r,middlewareData:u}=t,l=((v=u.arrow)==null?void 0:v.centerOffset)!==0,c=l?0:e.arrowWidth,f=l?0:e.arrowHeight,[h,m]=MD(n),E={start:"0%",center:"50%",end:"100%"}[m],g=(((R=u.arrow)==null?void 0:R.x)??0)+c/2,_=(((D=u.arrow)==null?void 0:D.y)??0)+f/2;let S="",C="";return h==="bottom"?(S=l?E:`${g}px`,C=`${-f}px`):h==="top"?(S=l?E:`${g}px`,C=`${r.floating.height+f}px`):h==="right"?(S=`${-f}px`,C=l?E:`${_}px`):h==="left"&&(S=`${r.floating.width+f}px`,C=l?E:`${_}px`),{data:{x:S,y:C}}}});function MD(e){const[t,n="center"]=e.split("-");return[t,n]}var sV=xD,oV=FD,lV=OD,cV=wD;function dV(e){const t=y.useRef({value:e,previous:e});return y.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var fV=[" ","Enter","ArrowUp","ArrowDown"],hV=[" ","Enter"],Jc="Select",[xh,Bh,AV]=Z9(Jc),[No,Sie]=Yc(Jc,[AV,TD]),Fh=TD(),[mV,Hu]=No(Jc),[pV,EV]=No(Jc),PD=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:u,onOpenChange:o,value:l,defaultValue:c,onValueChange:f,dir:h,name:m,autoComplete:E,disabled:g,required:_,form:S}=e,C=Fh(t),[v,R]=y.useState(null),[D,b]=y.useState(null),[L,x]=y.useState(!1),B=eG(h),[O=!1,H]=gf({prop:r,defaultProp:u,onChange:o}),[U,G]=gf({prop:l,defaultProp:c,onChange:f}),fe=y.useRef(null),ae=v?S||!!v.closest("form"):!0,[ce,Z]=y.useState(new Set),te=Array.from(ce).map(V=>V.props.value).join(";");return N.jsx(sV,{...C,children:N.jsxs(mV,{required:_,scope:t,trigger:v,onTriggerChange:R,valueNode:D,onValueNodeChange:b,valueNodeHasChildren:L,onValueNodeHasChildrenChange:x,contentId:Nr(),value:U,onValueChange:G,open:O,onOpenChange:H,dir:B,triggerPointerDownPosRef:fe,disabled:g,children:[N.jsx(xh.Provider,{scope:t,children:N.jsx(pV,{scope:e.__scopeSelect,onNativeOptionAdd:y.useCallback(V=>{Z(ee=>new Set(ee).add(V))},[]),onNativeOptionRemove:y.useCallback(V=>{Z(ee=>{const Q=new Set(ee);return Q.delete(V),Q})},[]),children:n})}),ae?N.jsxs(lT,{"aria-hidden":!0,required:_,tabIndex:-1,name:m,autoComplete:E,value:U,onChange:V=>G(V.target.value),disabled:g,form:S,children:[U===void 0?N.jsx("option",{value:""}):null,Array.from(ce)]},te):null]})})};PD.displayName=Jc;var HD="SelectTrigger",UD=y.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...u}=e,o=Fh(n),l=Hu(HD,n),c=l.disabled||r,f=xt(t,l.onTriggerChange),h=Bh(n),m=y.useRef("touch"),[E,g,_]=cT(C=>{const v=h().filter(b=>!b.disabled),R=v.find(b=>b.value===l.value),D=dT(v,C,R);D!==void 0&&l.onValueChange(D.value)}),S=C=>{c||(l.onOpenChange(!0),_()),C&&(l.triggerPointerDownPosRef.current={x:Math.round(C.pageX),y:Math.round(C.pageY)})};return N.jsx(oV,{asChild:!0,...o,children:N.jsx(nt.button,{type:"button",role:"combobox","aria-controls":l.contentId,"aria-expanded":l.open,"aria-required":l.required,"aria-autocomplete":"none",dir:l.dir,"data-state":l.open?"open":"closed",disabled:c,"data-disabled":c?"":void 0,"data-placeholder":oT(l.value)?"":void 0,...u,ref:f,onClick:lt(u.onClick,C=>{C.currentTarget.focus(),m.current!=="mouse"&&S(C)}),onPointerDown:lt(u.onPointerDown,C=>{m.current=C.pointerType;const v=C.target;v.hasPointerCapture(C.pointerId)&&v.releasePointerCapture(C.pointerId),C.button===0&&C.ctrlKey===!1&&C.pointerType==="mouse"&&(S(C),C.preventDefault())}),onKeyDown:lt(u.onKeyDown,C=>{const v=E.current!=="";!(C.ctrlKey||C.altKey||C.metaKey)&&C.key.length===1&&g(C.key),!(v&&C.key===" ")&&fV.includes(C.key)&&(S(),C.preventDefault())})})})});UD.displayName=HD;var kD="SelectValue",GD=y.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:u,children:o,placeholder:l="",...c}=e,f=Hu(kD,n),{onValueNodeHasChildrenChange:h}=f,m=o!==void 0,E=xt(t,f.onValueNodeChange);return Cn(()=>{h(m)},[h,m]),N.jsx(nt.span,{...c,ref:E,style:{pointerEvents:"none"},children:oT(f.value)?N.jsx(N.Fragment,{children:l}):o})});GD.displayName=kD;var gV="SelectIcon",VD=y.forwardRef((e,t)=>{const{__scopeSelect:n,children:r,...u}=e;return N.jsx(nt.span,{"aria-hidden":!0,...u,ref:t,children:r||"▼"})});VD.displayName=gV;var _V="SelectPortal",jD=e=>N.jsx(gh,{asChild:!0,...e});jD.displayName=_V;var wa="SelectContent",zD=y.forwardRef((e,t)=>{const n=Hu(wa,e.__scopeSelect),[r,u]=y.useState();if(Cn(()=>{u(new DocumentFragment)},[]),!n.open){const o=r;return o?Ga.createPortal(N.jsx(KD,{scope:e.__scopeSelect,children:N.jsx(xh.Slot,{scope:e.__scopeSelect,children:N.jsx("div",{children:e.children})})}),o):null}return N.jsx($D,{...e,ref:t})});zD.displayName=wa;var Tr=10,[KD,Uu]=No(wa),SV="SelectContentImpl",$D=y.forwardRef((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:u,onEscapeKeyDown:o,onPointerDownOutside:l,side:c,sideOffset:f,align:h,alignOffset:m,arrowPadding:E,collisionBoundary:g,collisionPadding:_,sticky:S,hideWhenDetached:C,avoidCollisions:v,...R}=e,D=Hu(wa,n),[b,L]=y.useState(null),[x,B]=y.useState(null),O=xt(t,pe=>L(pe)),[H,U]=y.useState(null),[G,fe]=y.useState(null),ae=Bh(n),[ce,Z]=y.useState(!1),te=y.useRef(!1);y.useEffect(()=>{if(b)return Y1(b)},[b]),H1();const V=y.useCallback(pe=>{const[ve,...Ve]=ae().map(at=>at.ref.current),[we]=Ve.slice(-1),Ze=document.activeElement;for(const at of pe)if(at===Ze||(at==null||at.scrollIntoView({block:"nearest"}),at===ve&&x&&(x.scrollTop=0),at===we&&x&&(x.scrollTop=x.scrollHeight),at==null||at.focus(),document.activeElement!==Ze))return},[ae,x]),ee=y.useCallback(()=>V([H,b]),[V,H,b]);y.useEffect(()=>{ce&&ee()},[ce,ee]);const{onOpenChange:Q,triggerPointerDownPosRef:Ae}=D;y.useEffect(()=>{if(b){let pe={x:0,y:0};const ve=we=>{var Ze,at;pe={x:Math.abs(Math.round(we.pageX)-(((Ze=Ae.current)==null?void 0:Ze.x)??0)),y:Math.abs(Math.round(we.pageY)-(((at=Ae.current)==null?void 0:at.y)??0))}},Ve=we=>{pe.x<=10&&pe.y<=10?we.preventDefault():b.contains(we.target)||Q(!1),document.removeEventListener("pointermove",ve),Ae.current=null};return Ae.current!==null&&(document.addEventListener("pointermove",ve),document.addEventListener("pointerup",Ve,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",ve),document.removeEventListener("pointerup",Ve,{capture:!0})}}},[b,Q,Ae]),y.useEffect(()=>{const pe=()=>Q(!1);return window.addEventListener("blur",pe),window.addEventListener("resize",pe),()=>{window.removeEventListener("blur",pe),window.removeEventListener("resize",pe)}},[Q]);const[P,W]=cT(pe=>{const ve=ae().filter(Ze=>!Ze.disabled),Ve=ve.find(Ze=>Ze.ref.current===document.activeElement),we=dT(ve,pe,Ve);we&&setTimeout(()=>we.ref.current.focus())}),j=y.useCallback((pe,ve,Ve)=>{const we=!te.current&&!Ve;(D.value!==void 0&&D.value===ve||we)&&(U(pe),we&&(te.current=!0))},[D.value]),re=y.useCallback(()=>b==null?void 0:b.focus(),[b]),ne=y.useCallback((pe,ve,Ve)=>{const we=!te.current&&!Ve;(D.value!==void 0&&D.value===ve||we)&&fe(pe)},[D.value]),de=r==="popper"?WE:YD,Ee=de===WE?{side:c,sideOffset:f,align:h,alignOffset:m,arrowPadding:E,collisionBoundary:g,collisionPadding:_,sticky:S,hideWhenDetached:C,avoidCollisions:v}:{};return N.jsx(KD,{scope:n,content:b,viewport:x,onViewportChange:B,itemRefCallback:j,selectedItem:H,onItemLeave:re,itemTextRefCallback:ne,focusSelectedItem:ee,selectedItemText:G,position:r,isPositioned:ce,searchRef:P,children:N.jsx(C4,{as:xa,allowPinchZoom:!0,children:N.jsx(y4,{asChild:!0,trapped:D.open,onMountAutoFocus:pe=>{pe.preventDefault()},onUnmountAutoFocus:lt(u,pe=>{var ve;(ve=D.trigger)==null||ve.focus({preventScroll:!0}),pe.preventDefault()}),children:N.jsx(Eh,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:o,onPointerDownOutside:l,onFocusOutside:pe=>pe.preventDefault(),onDismiss:()=>D.onOpenChange(!1),children:N.jsx(de,{role:"listbox",id:D.contentId,"data-state":D.open?"open":"closed",dir:D.dir,onContextMenu:pe=>pe.preventDefault(),...R,...Ee,onPlaced:()=>Z(!0),ref:O,style:{display:"flex",flexDirection:"column",outline:"none",...R.style},onKeyDown:lt(R.onKeyDown,pe=>{const ve=pe.ctrlKey||pe.altKey||pe.metaKey;if(pe.key==="Tab"&&pe.preventDefault(),!ve&&pe.key.length===1&&W(pe.key),["ArrowUp","ArrowDown","Home","End"].includes(pe.key)){let we=ae().filter(Ze=>!Ze.disabled).map(Ze=>Ze.ref.current);if(["ArrowUp","End"].includes(pe.key)&&(we=we.slice().reverse()),["ArrowUp","ArrowDown"].includes(pe.key)){const Ze=pe.target,at=we.indexOf(Ze);we=we.slice(at+1)}setTimeout(()=>V(we)),pe.preventDefault()}})})})})})})});$D.displayName=SV;var NV="SelectItemAlignedPosition",YD=y.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:r,...u}=e,o=Hu(wa,n),l=Uu(wa,n),[c,f]=y.useState(null),[h,m]=y.useState(null),E=xt(t,O=>m(O)),g=Bh(n),_=y.useRef(!1),S=y.useRef(!0),{viewport:C,selectedItem:v,selectedItemText:R,focusSelectedItem:D}=l,b=y.useCallback(()=>{if(o.trigger&&o.valueNode&&c&&h&&C&&v&&R){const O=o.trigger.getBoundingClientRect(),H=h.getBoundingClientRect(),U=o.valueNode.getBoundingClientRect(),G=R.getBoundingClientRect();if(o.dir!=="rtl"){const Ze=G.left-H.left,at=U.left-Ze,It=O.left-at,Jt=O.width+It,yr=Math.max(Jt,H.width),kn=window.innerWidth-Tr,Hr=Q3(at,[Tr,Math.max(Tr,kn-yr)]);c.style.minWidth=Jt+"px",c.style.left=Hr+"px"}else{const Ze=H.right-G.right,at=window.innerWidth-U.right-Ze,It=window.innerWidth-O.right-at,Jt=O.width+It,yr=Math.max(Jt,H.width),kn=window.innerWidth-Tr,Hr=Q3(at,[Tr,Math.max(Tr,kn-yr)]);c.style.minWidth=Jt+"px",c.style.right=Hr+"px"}const fe=g(),ae=window.innerHeight-Tr*2,ce=C.scrollHeight,Z=window.getComputedStyle(h),te=parseInt(Z.borderTopWidth,10),V=parseInt(Z.paddingTop,10),ee=parseInt(Z.borderBottomWidth,10),Q=parseInt(Z.paddingBottom,10),Ae=te+V+ce+Q+ee,P=Math.min(v.offsetHeight*5,Ae),W=window.getComputedStyle(C),j=parseInt(W.paddingTop,10),re=parseInt(W.paddingBottom,10),ne=O.top+O.height/2-Tr,de=ae-ne,Ee=v.offsetHeight/2,pe=v.offsetTop+Ee,ve=te+V+pe,Ve=Ae-ve;if(ve<=ne){const Ze=fe.length>0&&v===fe[fe.length-1].ref.current;c.style.bottom="0px";const at=h.clientHeight-C.offsetTop-C.offsetHeight,It=Math.max(de,Ee+(Ze?re:0)+at+ee),Jt=ve+It;c.style.height=Jt+"px"}else{const Ze=fe.length>0&&v===fe[0].ref.current;c.style.top="0px";const It=Math.max(ne,te+C.offsetTop+(Ze?j:0)+Ee)+Ve;c.style.height=It+"px",C.scrollTop=ve-ne+C.offsetTop}c.style.margin=`${Tr}px 0`,c.style.minHeight=P+"px",c.style.maxHeight=ae+"px",r==null||r(),requestAnimationFrame(()=>_.current=!0)}},[g,o.trigger,o.valueNode,c,h,C,v,R,o.dir,r]);Cn(()=>b(),[b]);const[L,x]=y.useState();Cn(()=>{h&&x(window.getComputedStyle(h).zIndex)},[h]);const B=y.useCallback(O=>{O&&S.current===!0&&(b(),D==null||D(),S.current=!1)},[b,D]);return N.jsx(yV,{scope:n,contentWrapper:c,shouldExpandOnScrollRef:_,onScrollButtonChange:B,children:N.jsx("div",{ref:f,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:L},children:N.jsx(nt.div,{...u,ref:E,style:{boxSizing:"border-box",maxHeight:"100%",...u.style}})})})});YD.displayName=NV;var IV="SelectPopperPosition",WE=y.forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:u=Tr,...o}=e,l=Fh(n);return N.jsx(lV,{...l,...o,ref:t,align:r,collisionPadding:u,style:{boxSizing:"border-box",...o.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});WE.displayName=IV;var[yV,k4]=No(wa,{}),qE="SelectViewport",ZD=y.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:r,...u}=e,o=Uu(qE,n),l=k4(qE,n),c=xt(t,o.onViewportChange),f=y.useRef(0);return N.jsxs(N.Fragment,{children:[N.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:r}),N.jsx(xh.Slot,{scope:n,children:N.jsx(nt.div,{"data-radix-select-viewport":"",role:"presentation",...u,ref:c,style:{position:"relative",flex:1,overflow:"hidden auto",...u.style},onScroll:lt(u.onScroll,h=>{const m=h.currentTarget,{contentWrapper:E,shouldExpandOnScrollRef:g}=l;if(g!=null&&g.current&&E){const _=Math.abs(f.current-m.scrollTop);if(_>0){const S=window.innerHeight-Tr*2,C=parseFloat(E.style.minHeight),v=parseFloat(E.style.height),R=Math.max(C,v);if(R<S){const D=R+_,b=Math.min(S,D),L=D-b;E.style.height=b+"px",E.style.bottom==="0px"&&(m.scrollTop=L>0?L:0,E.style.justifyContent="flex-end")}}}f.current=m.scrollTop})})})]})});ZD.displayName=qE;var WD="SelectGroup",[CV,vV]=No(WD),qD=y.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,u=Nr();return N.jsx(CV,{scope:n,id:u,children:N.jsx(nt.div,{role:"group","aria-labelledby":u,...r,ref:t})})});qD.displayName=WD;var XD="SelectLabel",QD=y.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,u=vV(XD,n);return N.jsx(nt.div,{id:u.id,...r,ref:t})});QD.displayName=XD;var bf="SelectItem",[RV,JD]=No(bf),eT=y.forwardRef((e,t)=>{const{__scopeSelect:n,value:r,disabled:u=!1,textValue:o,...l}=e,c=Hu(bf,n),f=Uu(bf,n),h=c.value===r,[m,E]=y.useState(o??""),[g,_]=y.useState(!1),S=xt(t,D=>{var b;return(b=f.itemRefCallback)==null?void 0:b.call(f,D,r,u)}),C=Nr(),v=y.useRef("touch"),R=()=>{u||(c.onValueChange(r),c.onOpenChange(!1))};if(r==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return N.jsx(RV,{scope:n,value:r,disabled:u,textId:C,isSelected:h,onItemTextChange:y.useCallback(D=>{E(b=>b||((D==null?void 0:D.textContent)??"").trim())},[]),children:N.jsx(xh.ItemSlot,{scope:n,value:r,disabled:u,textValue:m,children:N.jsx(nt.div,{role:"option","aria-labelledby":C,"data-highlighted":g?"":void 0,"aria-selected":h&&g,"data-state":h?"checked":"unchecked","aria-disabled":u||void 0,"data-disabled":u?"":void 0,tabIndex:u?void 0:-1,...l,ref:S,onFocus:lt(l.onFocus,()=>_(!0)),onBlur:lt(l.onBlur,()=>_(!1)),onClick:lt(l.onClick,()=>{v.current!=="mouse"&&R()}),onPointerUp:lt(l.onPointerUp,()=>{v.current==="mouse"&&R()}),onPointerDown:lt(l.onPointerDown,D=>{v.current=D.pointerType}),onPointerMove:lt(l.onPointerMove,D=>{var b;v.current=D.pointerType,u?(b=f.onItemLeave)==null||b.call(f):v.current==="mouse"&&D.currentTarget.focus({preventScroll:!0})}),onPointerLeave:lt(l.onPointerLeave,D=>{var b;D.currentTarget===document.activeElement&&((b=f.onItemLeave)==null||b.call(f))}),onKeyDown:lt(l.onKeyDown,D=>{var L;((L=f.searchRef)==null?void 0:L.current)!==""&&D.key===" "||(hV.includes(D.key)&&R(),D.key===" "&&D.preventDefault())})})})})});eT.displayName=bf;var Gl="SelectItemText",tT=y.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:u,...o}=e,l=Hu(Gl,n),c=Uu(Gl,n),f=JD(Gl,n),h=EV(Gl,n),[m,E]=y.useState(null),g=xt(t,R=>E(R),f.onItemTextChange,R=>{var D;return(D=c.itemTextRefCallback)==null?void 0:D.call(c,R,f.value,f.disabled)}),_=m==null?void 0:m.textContent,S=y.useMemo(()=>N.jsx("option",{value:f.value,disabled:f.disabled,children:_},f.value),[f.disabled,f.value,_]),{onNativeOptionAdd:C,onNativeOptionRemove:v}=h;return Cn(()=>(C(S),()=>v(S)),[C,v,S]),N.jsxs(N.Fragment,{children:[N.jsx(nt.span,{id:f.textId,...o,ref:g}),f.isSelected&&l.valueNode&&!l.valueNodeHasChildren?Ga.createPortal(o.children,l.valueNode):null]})});tT.displayName=Gl;var nT="SelectItemIndicator",rT=y.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return JD(nT,n).isSelected?N.jsx(nt.span,{"aria-hidden":!0,...r,ref:t}):null});rT.displayName=nT;var XE="SelectScrollUpButton",iT=y.forwardRef((e,t)=>{const n=Uu(XE,e.__scopeSelect),r=k4(XE,e.__scopeSelect),[u,o]=y.useState(!1),l=xt(t,r.onScrollButtonChange);return Cn(()=>{if(n.viewport&&n.isPositioned){let c=function(){const h=f.scrollTop>0;o(h)};const f=n.viewport;return c(),f.addEventListener("scroll",c),()=>f.removeEventListener("scroll",c)}},[n.viewport,n.isPositioned]),u?N.jsx(aT,{...e,ref:l,onAutoScroll:()=>{const{viewport:c,selectedItem:f}=n;c&&f&&(c.scrollTop=c.scrollTop-f.offsetHeight)}}):null});iT.displayName=XE;var QE="SelectScrollDownButton",uT=y.forwardRef((e,t)=>{const n=Uu(QE,e.__scopeSelect),r=k4(QE,e.__scopeSelect),[u,o]=y.useState(!1),l=xt(t,r.onScrollButtonChange);return Cn(()=>{if(n.viewport&&n.isPositioned){let c=function(){const h=f.scrollHeight-f.clientHeight,m=Math.ceil(f.scrollTop)<h;o(m)};const f=n.viewport;return c(),f.addEventListener("scroll",c),()=>f.removeEventListener("scroll",c)}},[n.viewport,n.isPositioned]),u?N.jsx(aT,{...e,ref:l,onAutoScroll:()=>{const{viewport:c,selectedItem:f}=n;c&&f&&(c.scrollTop=c.scrollTop+f.offsetHeight)}}):null});uT.displayName=QE;var aT=y.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...u}=e,o=Uu("SelectScrollButton",n),l=y.useRef(null),c=Bh(n),f=y.useCallback(()=>{l.current!==null&&(window.clearInterval(l.current),l.current=null)},[]);return y.useEffect(()=>()=>f(),[f]),Cn(()=>{var m;const h=c().find(E=>E.ref.current===document.activeElement);(m=h==null?void 0:h.ref.current)==null||m.scrollIntoView({block:"nearest"})},[c]),N.jsx(nt.div,{"aria-hidden":!0,...u,ref:t,style:{flexShrink:0,...u.style},onPointerDown:lt(u.onPointerDown,()=>{l.current===null&&(l.current=window.setInterval(r,50))}),onPointerMove:lt(u.onPointerMove,()=>{var h;(h=o.onItemLeave)==null||h.call(o),l.current===null&&(l.current=window.setInterval(r,50))}),onPointerLeave:lt(u.onPointerLeave,()=>{f()})})}),DV="SelectSeparator",sT=y.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return N.jsx(nt.div,{"aria-hidden":!0,...r,ref:t})});sT.displayName=DV;var JE="SelectArrow",TV=y.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,u=Fh(n),o=Hu(JE,n),l=Uu(JE,n);return o.open&&l.position==="popper"?N.jsx(cV,{...u,...r,ref:t}):null});TV.displayName=JE;function oT(e){return e===""||e===void 0}var lT=y.forwardRef((e,t)=>{const{value:n,...r}=e,u=y.useRef(null),o=xt(t,u),l=dV(n);return y.useEffect(()=>{const c=u.current,f=window.HTMLSelectElement.prototype,m=Object.getOwnPropertyDescriptor(f,"value").set;if(l!==n&&m){const E=new Event("change",{bubbles:!0});m.call(c,n),c.dispatchEvent(E)}},[l,n]),N.jsx(_h,{asChild:!0,children:N.jsx("select",{...r,ref:o,defaultValue:n})})});lT.displayName="BubbleSelect";function cT(e){const t=er(e),n=y.useRef(""),r=y.useRef(0),u=y.useCallback(l=>{const c=n.current+l;t(c),function f(h){n.current=h,window.clearTimeout(r.current),h!==""&&(r.current=window.setTimeout(()=>f(""),1e3))}(c)},[t]),o=y.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return y.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,u,o]}function dT(e,t,n){const u=t.length>1&&Array.from(t).every(h=>h===t[0])?t[0]:t,o=n?e.indexOf(n):-1;let l=bV(e,Math.max(o,0));u.length===1&&(l=l.filter(h=>h!==n));const f=l.find(h=>h.textValue.toLowerCase().startsWith(u.toLowerCase()));return f!==n?f:void 0}function bV(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var xV=PD,BV=UD,FV=GD,OV=VD,LV=jD,wV=zD,MV=ZD,PV=qD,HV=QD,UV=eT,kV=tT,GV=rT,VV=iT,jV=uT,zV=sT;const KV=xV,$V=PV,YV=FV,ZV=({validationStyleEnabled:e=!1,className:t,children:n,...r})=>N.jsxs(BV,{className:Re("border-input ring-offset-background placeholder:text-muted-foreground focus:ring-ring focus:outline-hidden flex w-full items-center justify-between whitespace-nowrap rounded-md border px-3 py-2 text-sm focus:ring-1 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1","bg-input-background text-input-text w-full select-text resize-none rounded-xl border-2 px-2 py-1 text-sm shadow-none outline-0 transition-all","border-input-border hover:border-input-border-hover focus:border-input-border-focus focus:outline-0 focus:[box-shadow:none]","aria-[invalid=true]:border-error",e&&"valid:border-success invalid:border-error",t),...r,children:[n,N.jsx(OV,{asChild:!0,children:N.jsx(iP,{className:"size-4 opacity-50"})})]}),fT=({className:e,...t})=>N.jsx(VV,{className:Re("flex cursor-default items-center justify-center py-1",e),...t,children:N.jsx(nP,{})}),hT=({className:e,...t})=>N.jsx(jV,{className:Re("flex cursor-default items-center justify-center py-1",e),...t,children:N.jsx(P9,{})}),WV=({className:e,children:t,position:n="popper",...r})=>N.jsx(LV,{children:N.jsxs(wV,{className:Re("bg-input-background text-input-text w-full select-text resize-none rounded-xl border-2 p-1 text-sm shadow-none outline-0 transition-all","data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 relative z-50 max-h-96 min-w-[8rem] overflow-hidden border shadow-md",n==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:n,...r,children:[N.jsx(fT,{}),N.jsx(MV,{className:Re("p-1",n==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t}),N.jsx(hT,{})]})}),qV=({className:e,...t})=>N.jsx(HV,{className:Re("px-1 py-0.5 text-sm font-semibold",e),...t}),XV=({className:e,children:t,...n})=>N.jsxs(UV,{className:Re("focus:bg-neutral/10 outline-hidden relative flex w-full cursor-pointer select-none items-center rounded-lg py-1.5 pl-2 pr-8 text-sm data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...n,children:[N.jsx("span",{className:"absolute right-2 flex size-3.5 items-center justify-center",children:N.jsx(GV,{children:N.jsx(Eo,{className:"size-4"})})}),N.jsx(kV,{children:t})]}),QV=({className:e,...t})=>N.jsx(zV,{className:Re("-mx-1 my-1 h-px bg-red-300",e),...t}),Me=KV;Me.Group=$V;Me.Value=YV;Me.Trigger=ZV;Me.ScrollUpButton=fT;Me.ScrollDownButton=hT;Me.Content=WV;Me.Label=qV;Me.Item=XV;Me.Separator=QV;const JV=e=>(e==null?void 0:e.getAttribute("aria-selected"))==="true",ej=(e,t=JV,n=!1)=>{const[r,u]=y.useState(null),[o,l]=y.useState(null),c=e.current.length;return y.useEffect(()=>{const f=()=>{let C=null;if(o?C=o:C=e.current.find(t)??null,!C){u(D=>({left:0,width:0,...D,opacity:0}));return}const v=C.offsetLeft,R=C.offsetWidth;u({left:v,width:R,opacity:1})};f(),window.addEventListener("resize",f),window.addEventListener("DOMContentLoaded",f);const h=[];e.current.forEach(C=>{if(C){const v=new MutationObserver(R=>{for(const D of R)if(D.type==="attributes"&&D.attributeName==="aria-selected"){f();break}});v.observe(C,{attributes:!0,attributeFilter:["aria-selected"]}),h.push(v)}});const m=[],E=C=>{if(!C)return;const v=new ResizeObserver(()=>{f()});v.observe(C),m.push(v)},g=e.current.find(t)??null;g&&E(g),o&&E(o);const _=C=>{l(C.currentTarget)},S=()=>{l(null)};return n&&e.current.forEach(C=>{C==null||C.addEventListener("mouseenter",_),C==null||C.addEventListener("mouseleave",S)}),()=>{window.removeEventListener("resize",f),window.removeEventListener("DOMContentLoaded",f),h.forEach(C=>C.disconnect()),m.forEach(C=>C.disconnect()),e.current.forEach(C=>{C==null||C.removeEventListener("mouseenter",_),C==null||C.removeEventListener("mouseleave",S)})}},[e,t,o,c]),{choiceIndicatorPosition:r}},tj=[{content:"Off",value:!1},{content:"On",value:!0}],nj=Ir("flex flex-row gap-2 rounded-full w-fit border-[1.5px] p-[1.5px]",{variants:{color:{primary:"border-primary text-primary",secondary:"border-secondary text-secondary",destructive:"border-destructive bg-destructive text-destructive",neutral:"border-neutral text-neutral ",light:"border-white text-white",dark:"border-neutral-800 text-neutral-800",text:"border-text text-text"}},defaultVariants:{color:"primary"}}),rj=Ir("z-1 w-full flex-1 text-sm font-medium transition-all duration-300 ease-in-out aria-selected:cursor-default aria-selected:text-text-opposite motion-reduce:transition-none",{variants:{size:{sm:"py-1 px-2 text-xs",md:"p-2 text-sm",lg:"p-4 text-base"}},defaultVariants:{size:"md"}}),ij=Ir("absolute top-0 z-[-1] h-full w-auto rounded-full transition-[left,width] duration-300 ease-in-out motion-reduce:transition-none",{variants:{color:{primary:"bg-primary aria-selected:text-text",secondary:"bg-secondary aria-selected:text-text",destructive:"bg-destructive aria-selected:text-text",neutral:"bg-neutral aria-selected:text-white ",light:"bg-white aria-selected:text-black",dark:"bg-neutral-800 aria-selected:text-white",text:"bg-text aria-selected:text-text-opposite"}}}),ed=({choices:e=tj,value:t,defaultValue:n,onChange:r,color:u="primary",size:o="md",className:l})=>{const[c,f]=y.useState(t??n??e[0].value),h=y.useRef([]),m=y.useRef(null),{choiceIndicatorPosition:E}=ej(h),g=_=>{f(_),r==null||r(_)};return y.useEffect(()=>{t!==void 0&&f(t)},[t]),N.jsx("div",{className:nj({color:u,className:l}),role:"tablist",children:N.jsxs("div",{className:"relative flex size-full flex-row items-center justify-center",children:[e.map((_,S)=>{const{content:C,value:v,...R}=_,D=typeof v=="string"||typeof v=="number",b=v===c;return y.createElement("button",{...R,className:Re(rj({size:o})),key:D?v:S,role:"tab",onClick:()=>g(v),"aria-selected":b,disabled:b,ref:L=>{h.current[S]=L}},C)}),E&&N.jsx("div",{className:Re(ij({color:u})),style:E,ref:m})]})})};var uj=function(e,t){for(var n={};e.length;){var r=e[0],u=r.code,o=r.message,l=r.path.join(".");if(!n[l])if("unionErrors"in r){var c=r.unionErrors[0].errors[0];n[l]={message:c.message,type:c.code}}else n[l]={message:o,type:u};if("unionErrors"in r&&r.unionErrors.forEach(function(m){return m.errors.forEach(function(E){return e.push(E)})}),t){var f=n[l].types,h=f&&f[r.code];n[l]=I1(l,t,n,u,h?[].concat(h,r.message):r.message)}e.shift()}return n},aj=function(e,t,n){return n===void 0&&(n={}),function(r,u,o){try{return Promise.resolve(function(l,c){try{var f=Promise.resolve(e[n.mode==="sync"?"parse":"parseAsync"](r,t)).then(function(h){return o.shouldUseNativeValidation&&b1({},o),{errors:{},values:n.raw?r:h}})}catch(h){return c(h)}return f&&f.then?f.then(void 0,c):f}(0,function(l){if(function(c){return Array.isArray(c==null?void 0:c.errors)}(l))return{values:{},errors:qU(uj(l.errors,!o.shouldUseNativeValidation&&o.criteriaMode==="all"),o)};throw l}))}catch(l){return Promise.reject(l)}}};const Kp=async e=>e&&typeof e.then=="function"?await e:e,sj=({schema:e,onSubmit:t,onSubmitSuccess:n,onSubmitError:r,className:u,children:o,autoComplete:l,...c})=>{const f=async h=>{const m=(e==null?void 0:e.safeParse(h))??{success:!0,data:void 0};await Kp(t==null?void 0:t(h)),m.success?await Kp(n==null?void 0:n(m.data)):await Kp(r==null?void 0:r(new Error(m.error.errors.map(E=>E.message).join(", "))))};return N.jsx(OU,{...c,children:N.jsx("form",{className:Re("flex size-full flex-col gap-y-6",u),onSubmit:c.handleSubmit(f),autoComplete:l?"on":"off",children:o})})},oj=(e,t)=>{const n=WU({resolver:aj(e),...t}),r=n.formState.isSubmitting,u=n.formState.isSubmitted,o=n.formState.isLoading,l=n.formState.isValid;return{form:n,isSubmitting:r,isSubmitted:u,isLoading:o,isValid:l}},lj=e=>{const{error:t,formItemId:n,formDescriptionId:r,formMessageId:u}=Pu();return N.jsx(xa,{id:n,"aria-describedby":t?`${r} ${u}`:`${r}`,"aria-invalid":!!t,...e})},cj=e=>{const{formDescriptionId:t}=Pu();return N.jsx("p",{className:"text-neutral text-sm",id:t,...e})},dj=({children:e,...t})=>{const{error:n,formMessageId:r}=Pu(),u=n?String((n==null?void 0:n.message)??""):e;return u?N.jsx("p",{className:"text-error text-xs font-medium",role:"alert",id:r,...t,children:u}):null},Oh=({label:e,description:t,isRequired:n,info:r,children:u,showErrorMessage:o=!0,htmlFor:l})=>N.jsxs(ut.Item,{className:"flex w-full flex-col gap-2 p-2",children:[(t||e)&&N.jsxs("div",{className:"flex flex-col gap-1 p-1 leading-none",children:[e&&N.jsx(mD,{isRequired:n,info:r,htmlFor:l,children:e}),t&&N.jsx(ut.Description,{children:t})]}),N.jsx(ut.Control,{children:u}),o&&N.jsx(ut.Message,{"data-testid":"error-message"})]}),fj=({field:e,name:t,label:n,Element:r,isRequired:u=!1,info:o,description:l,showErrorMessage:c=!0,...f})=>{const{error:h}=Pu();return N.jsx(Oh,{htmlFor:t,label:n,description:l,isRequired:u,info:o,showErrorMessage:c,"aria-invalid":!!h,children:N.jsx(r,{"data-testid":"element",id:t,...e,...f,children:f.children})})},ku=e=>{const{control:t}=Mu();return N.jsx(ut.Field,{control:t,name:e.name,render:({field:n})=>N.jsx(fj,{...e,field:n})})},hj=e=>N.jsx(ku,{id:e.name,"data-testid":e.name,Element:go,"aria-labelledby":e.label?`${e.name}-label`:void 0,"aria-label":e.label?void 0:e.name,...e}),Aj=({autoComplete:e,...t})=>N.jsx(ku,{Element:n5,id:t.name,"data-testid":t.name,"aria-labelledby":t.label?`${t.name}-label`:void 0,"aria-label":t.label?void 0:t.name,autoComplete:e,minLength:6,maxLength:255,...t}),mj=e=>N.jsx(ku,{Element:O1,id:e.name,"aria-labelledby":e.label?`${e.name}-label`:void 0,"aria-label":e.label?void 0:e.name,"data-testid":e.name,...e}),pj=e=>N.jsx(ku,{id:e.name,"data-testid":e.name,"aria-labelledby":e.label?`${e.name}-label`:void 0,"aria-label":e.label?void 0:e.name,Element:w1,...e}),Ej=e=>N.jsx(ku,{id:e.name,"data-testid":e.name,"aria-labelledby":e.label?`${e.name}-label`:void 0,"aria-label":e.label?void 0:e.name,Element:M1,...e}),gj=e=>N.jsx(ku,{Element:I4,id:e.name,"data-testid":e.name,...e}),_j=({inputLabel:e,...t})=>N.jsx(t5,{...t,label:e}),Sj=({autoComplete:e,...t})=>N.jsx(ku,{Element:_j,id:t.name,"data-testid":t.name,autoComplete:e,minLength:6,maxLength:255,...t}),Nj=({name:e,description:t,label:n,isRequired:r,info:u,showErrorMessage:o,children:l,...c})=>{const{control:f}=Mu();return N.jsx(ut.Field,{control:f,name:e,render:({field:h})=>{const{error:m}=Pu();return N.jsx(Oh,{htmlFor:e,label:n,description:t,isRequired:r,info:u,showErrorMessage:o,"aria-invalid":!!m,children:N.jsx(Sn,{onValueChange:h.onChange,values:h.value,...c,children:l})})}})},Ij=({name:e,description:t,label:n,isRequired:r,info:u,showErrorMessage:o,children:l,...c})=>{const{control:f}=Mu();return N.jsx(ut.Field,{control:f,name:e,render:({field:h})=>{const{error:m}=Pu();return N.jsx(Oh,{htmlFor:e,label:n,description:t,isRequired:r,info:u,showErrorMessage:o,"aria-invalid":!!m,children:N.jsx(Me,{onValueChange:h.onChange,defaultValue:h.value,...c,children:l})})}})},yj=({name:e,description:t,label:n,isRequired:r,info:u,showErrorMessage:o,children:l,...c})=>{const{control:f}=Mu();return N.jsx(ut.Field,{control:f,name:e,render:({field:h})=>{const{error:m}=Pu();return N.jsx(Oh,{htmlFor:e,label:n,description:t,isRequired:r,info:u,showErrorMessage:o,"aria-invalid":!!m,children:N.jsx(ed,{...h,...c,children:l})})}})},ut=sj;ut.Description=cj;ut.Control=lj;ut.Field=JU;ut.Item=QU;ut.Label=mD;ut.Message=dj;ut.Element=ku;ut.Input=hj;ut.InputPassword=Aj;ut.Checkbox=Sj;ut.TextArea=mj;ut.AutoSizedTextArea=gj;ut.Button=Et;ut.Select=Ij;ut.MultiSelect=Nj;ut.EditableFieldInput=pj;ut.EditableFieldTextArea=Ej;ut.SwitchSelector=yj;var dt;(function(e){e.assertEqual=u=>u;function t(u){}e.assertIs=t;function n(u){throw new Error}e.assertNever=n,e.arrayToEnum=u=>{const o={};for(const l of u)o[l]=l;return o},e.getValidEnumValues=u=>{const o=e.objectKeys(u).filter(c=>typeof u[u[c]]!="number"),l={};for(const c of o)l[c]=u[c];return e.objectValues(l)},e.objectValues=u=>e.objectKeys(u).map(function(o){return u[o]}),e.objectKeys=typeof Object.keys=="function"?u=>Object.keys(u):u=>{const o=[];for(const l in u)Object.prototype.hasOwnProperty.call(u,l)&&o.push(l);return o},e.find=(u,o)=>{for(const l of u)if(o(l))return l},e.isInteger=typeof Number.isInteger=="function"?u=>Number.isInteger(u):u=>typeof u=="number"&&isFinite(u)&&Math.floor(u)===u;function r(u,o=" | "){return u.map(l=>typeof l=="string"?`'${l}'`:l).join(o)}e.joinValues=r,e.jsonStringifyReplacer=(u,o)=>typeof o=="bigint"?o.toString():o})(dt||(dt={}));var eg;(function(e){e.mergeShapes=(t,n)=>({...t,...n})})(eg||(eg={}));const De=dt.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),bi=e=>{switch(typeof e){case"undefined":return De.undefined;case"string":return De.string;case"number":return isNaN(e)?De.nan:De.number;case"boolean":return De.boolean;case"function":return De.function;case"bigint":return De.bigint;case"symbol":return De.symbol;case"object":return Array.isArray(e)?De.array:e===null?De.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?De.promise:typeof Map<"u"&&e instanceof Map?De.map:typeof Set<"u"&&e instanceof Set?De.set:typeof Date<"u"&&e instanceof Date?De.date:De.object;default:return De.unknown}},me=dt.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),Cj=e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:");class Jn extends Error{get errors(){return this.issues}constructor(t){super(),this.issues=[],this.addIssue=r=>{this.issues=[...this.issues,r]},this.addIssues=(r=[])=>{this.issues=[...this.issues,...r]};const n=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,n):this.__proto__=n,this.name="ZodError",this.issues=t}format(t){const n=t||function(o){return o.message},r={_errors:[]},u=o=>{for(const l of o.issues)if(l.code==="invalid_union")l.unionErrors.map(u);else if(l.code==="invalid_return_type")u(l.returnTypeError);else if(l.code==="invalid_arguments")u(l.argumentsError);else if(l.path.length===0)r._errors.push(n(l));else{let c=r,f=0;for(;f<l.path.length;){const h=l.path[f];f===l.path.length-1?(c[h]=c[h]||{_errors:[]},c[h]._errors.push(n(l))):c[h]=c[h]||{_errors:[]},c=c[h],f++}}};return u(this),r}static assert(t){if(!(t instanceof Jn))throw new Error(`Not a ZodError: ${t}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,dt.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(t=n=>n.message){const n={},r=[];for(const u of this.issues)u.path.length>0?(n[u.path[0]]=n[u.path[0]]||[],n[u.path[0]].push(t(u))):r.push(t(u));return{formErrors:r,fieldErrors:n}}get formErrors(){return this.flatten()}}Jn.create=e=>new Jn(e);const no=(e,t)=>{let n;switch(e.code){case me.invalid_type:e.received===De.undefined?n="Required":n=`Expected ${e.expected}, received ${e.received}`;break;case me.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,dt.jsonStringifyReplacer)}`;break;case me.unrecognized_keys:n=`Unrecognized key(s) in object: ${dt.joinValues(e.keys,", ")}`;break;case me.invalid_union:n="Invalid input";break;case me.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${dt.joinValues(e.options)}`;break;case me.invalid_enum_value:n=`Invalid enum value. Expected ${dt.joinValues(e.options)}, received '${e.received}'`;break;case me.invalid_arguments:n="Invalid function arguments";break;case me.invalid_return_type:n="Invalid function return type";break;case me.invalid_date:n="Invalid date";break;case me.invalid_string:typeof e.validation=="object"?"includes"in e.validation?(n=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position=="number"&&(n=`${n} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?n=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?n=`Invalid input: must end with "${e.validation.endsWith}"`:dt.assertNever(e.validation):e.validation!=="regex"?n=`Invalid ${e.validation}`:n="Invalid";break;case me.too_small:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:n="Invalid input";break;case me.too_big:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="bigint"?n=`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:n="Invalid input";break;case me.custom:n="Invalid input";break;case me.invalid_intersection_types:n="Intersection results could not be merged";break;case me.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case me.not_finite:n="Number must be finite";break;default:n=t.defaultError,dt.assertNever(e)}return{message:n}};let AT=no;function vj(e){AT=e}function xf(){return AT}const Bf=e=>{const{data:t,path:n,errorMaps:r,issueData:u}=e,o=[...n,...u.path||[]],l={...u,path:o};if(u.message!==void 0)return{...u,path:o,message:u.message};let c="";const f=r.filter(h=>!!h).slice().reverse();for(const h of f)c=h(l,{data:t,defaultError:c}).message;return{...u,path:o,message:c}},Rj=[];function ye(e,t){const n=xf(),r=Bf({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,n,n===no?void 0:no].filter(u=>!!u)});e.common.issues.push(r)}class vn{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(t,n){const r=[];for(const u of n){if(u.status==="aborted")return Ke;u.status==="dirty"&&t.dirty(),r.push(u.value)}return{status:t.value,value:r}}static async mergeObjectAsync(t,n){const r=[];for(const u of n){const o=await u.key,l=await u.value;r.push({key:o,value:l})}return vn.mergeObjectSync(t,r)}static mergeObjectSync(t,n){const r={};for(const u of n){const{key:o,value:l}=u;if(o.status==="aborted"||l.status==="aborted")return Ke;o.status==="dirty"&&t.dirty(),l.status==="dirty"&&t.dirty(),o.value!=="__proto__"&&(typeof l.value<"u"||u.alwaysSet)&&(r[o.value]=l.value)}return{status:t.value,value:r}}}const Ke=Object.freeze({status:"aborted"}),Us=e=>({status:"dirty",value:e}),Bn=e=>({status:"valid",value:e}),tg=e=>e.status==="aborted",ng=e=>e.status==="dirty",Ma=e=>e.status==="valid",dc=e=>typeof Promise<"u"&&e instanceof Promise;function Ff(e,t,n,r){if(typeof t=="function"?e!==t||!0:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t.get(e)}function mT(e,t,n,r,u){if(typeof t=="function"?e!==t||!0:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return t.set(e,n),n}var Oe;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t==null?void 0:t.message})(Oe||(Oe={}));var Vl,jl;class ni{constructor(t,n,r,u){this._cachedPath=[],this.parent=t,this.data=n,this._path=r,this._key=u}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const sC=(e,t)=>{if(Ma(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const n=new Jn(e.common.issues);return this._error=n,this._error}}};function qe(e){if(!e)return{};const{errorMap:t,invalid_type_error:n,required_error:r,description:u}=e;if(t&&(n||r))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:u}:{errorMap:(l,c)=>{var f,h;const{message:m}=e;return l.code==="invalid_enum_value"?{message:m??c.defaultError}:typeof c.data>"u"?{message:(f=m??r)!==null&&f!==void 0?f:c.defaultError}:l.code!=="invalid_type"?{message:c.defaultError}:{message:(h=m??n)!==null&&h!==void 0?h:c.defaultError}},description:u}}class et{get description(){return this._def.description}_getType(t){return bi(t.data)}_getOrReturnCtx(t,n){return n||{common:t.parent.common,data:t.data,parsedType:bi(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new vn,ctx:{common:t.parent.common,data:t.data,parsedType:bi(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){const n=this._parse(t);if(dc(n))throw new Error("Synchronous parse encountered promise.");return n}_parseAsync(t){const n=this._parse(t);return Promise.resolve(n)}parse(t,n){const r=this.safeParse(t,n);if(r.success)return r.data;throw r.error}safeParse(t,n){var r;const u={common:{issues:[],async:(r=n==null?void 0:n.async)!==null&&r!==void 0?r:!1,contextualErrorMap:n==null?void 0:n.errorMap},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:bi(t)},o=this._parseSync({data:t,path:u.path,parent:u});return sC(u,o)}"~validate"(t){var n,r;const u={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:bi(t)};if(!this["~standard"].async)try{const o=this._parseSync({data:t,path:[],parent:u});return Ma(o)?{value:o.value}:{issues:u.common.issues}}catch(o){!((r=(n=o==null?void 0:o.message)===null||n===void 0?void 0:n.toLowerCase())===null||r===void 0)&&r.includes("encountered")&&(this["~standard"].async=!0),u.common={issues:[],async:!0}}return this._parseAsync({data:t,path:[],parent:u}).then(o=>Ma(o)?{value:o.value}:{issues:u.common.issues})}async parseAsync(t,n){const r=await this.safeParseAsync(t,n);if(r.success)return r.data;throw r.error}async safeParseAsync(t,n){const r={common:{issues:[],contextualErrorMap:n==null?void 0:n.errorMap,async:!0},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:bi(t)},u=this._parse({data:t,path:r.path,parent:r}),o=await(dc(u)?u:Promise.resolve(u));return sC(r,o)}refine(t,n){const r=u=>typeof n=="string"||typeof n>"u"?{message:n}:typeof n=="function"?n(u):n;return this._refinement((u,o)=>{const l=t(u),c=()=>o.addIssue({code:me.custom,...r(u)});return typeof Promise<"u"&&l instanceof Promise?l.then(f=>f?!0:(c(),!1)):l?!0:(c(),!1)})}refinement(t,n){return this._refinement((r,u)=>t(r)?!0:(u.addIssue(typeof n=="function"?n(r,u):n),!1))}_refinement(t){return new wr({schema:this,typeName:Ge.ZodEffects,effect:{type:"refinement",refinement:t}})}superRefine(t){return this._refinement(t)}constructor(t){this.spa=this.safeParseAsync,this._def=t,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:n=>this["~validate"](n)}}optional(){return Xr.create(this,this._def)}nullable(){return bu.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Fr.create(this)}promise(){return io.create(this,this._def)}or(t){return mc.create([this,t],this._def)}and(t){return pc.create(this,t,this._def)}transform(t){return new wr({...qe(this._def),schema:this,typeName:Ge.ZodEffects,effect:{type:"transform",transform:t}})}default(t){const n=typeof t=="function"?t:()=>t;return new Nc({...qe(this._def),innerType:this,defaultValue:n,typeName:Ge.ZodDefault})}brand(){return new G4({typeName:Ge.ZodBranded,type:this,...qe(this._def)})}catch(t){const n=typeof t=="function"?t:()=>t;return new Ic({...qe(this._def),innerType:this,catchValue:n,typeName:Ge.ZodCatch})}describe(t){const n=this.constructor;return new n({...this._def,description:t})}pipe(t){return td.create(this,t)}readonly(){return yc.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const Dj=/^c[^\s-]{8,}$/i,Tj=/^[0-9a-z]+$/,bj=/^[0-9A-HJKMNP-TV-Z]{26}$/i,xj=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,Bj=/^[a-z0-9_-]{21}$/i,Fj=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,Oj=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,Lj=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,wj="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let $p;const Mj=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,Pj=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,Hj=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,Uj=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,kj=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,Gj=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,pT="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",Vj=new RegExp(`^${pT}$`);function ET(e){let t="([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d";return e.precision?t=`${t}\\.\\d{${e.precision}}`:e.precision==null&&(t=`${t}(\\.\\d+)?`),t}function jj(e){return new RegExp(`^${ET(e)}$`)}function gT(e){let t=`${pT}T${ET(e)}`;const n=[];return n.push(e.local?"Z?":"Z"),e.offset&&n.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${n.join("|")})`,new RegExp(`^${t}$`)}function zj(e,t){return!!((t==="v4"||!t)&&Mj.test(e)||(t==="v6"||!t)&&Hj.test(e))}function Kj(e,t){if(!Fj.test(e))return!1;try{const[n]=e.split("."),r=n.replace(/-/g,"+").replace(/_/g,"/").padEnd(n.length+(4-n.length%4)%4,"="),u=JSON.parse(atob(r));return!(typeof u!="object"||u===null||!u.typ||!u.alg||t&&u.alg!==t)}catch{return!1}}function $j(e,t){return!!((t==="v4"||!t)&&Pj.test(e)||(t==="v6"||!t)&&Uj.test(e))}class Br extends et{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==De.string){const o=this._getOrReturnCtx(t);return ye(o,{code:me.invalid_type,expected:De.string,received:o.parsedType}),Ke}const r=new vn;let u;for(const o of this._def.checks)if(o.kind==="min")t.data.length<o.value&&(u=this._getOrReturnCtx(t,u),ye(u,{code:me.too_small,minimum:o.value,type:"string",inclusive:!0,exact:!1,message:o.message}),r.dirty());else if(o.kind==="max")t.data.length>o.value&&(u=this._getOrReturnCtx(t,u),ye(u,{code:me.too_big,maximum:o.value,type:"string",inclusive:!0,exact:!1,message:o.message}),r.dirty());else if(o.kind==="length"){const l=t.data.length>o.value,c=t.data.length<o.value;(l||c)&&(u=this._getOrReturnCtx(t,u),l?ye(u,{code:me.too_big,maximum:o.value,type:"string",inclusive:!0,exact:!0,message:o.message}):c&&ye(u,{code:me.too_small,minimum:o.value,type:"string",inclusive:!0,exact:!0,message:o.message}),r.dirty())}else if(o.kind==="email")Lj.test(t.data)||(u=this._getOrReturnCtx(t,u),ye(u,{validation:"email",code:me.invalid_string,message:o.message}),r.dirty());else if(o.kind==="emoji")$p||($p=new RegExp(wj,"u")),$p.test(t.data)||(u=this._getOrReturnCtx(t,u),ye(u,{validation:"emoji",code:me.invalid_string,message:o.message}),r.dirty());else if(o.kind==="uuid")xj.test(t.data)||(u=this._getOrReturnCtx(t,u),ye(u,{validation:"uuid",code:me.invalid_string,message:o.message}),r.dirty());else if(o.kind==="nanoid")Bj.test(t.data)||(u=this._getOrReturnCtx(t,u),ye(u,{validation:"nanoid",code:me.invalid_string,message:o.message}),r.dirty());else if(o.kind==="cuid")Dj.test(t.data)||(u=this._getOrReturnCtx(t,u),ye(u,{validation:"cuid",code:me.invalid_string,message:o.message}),r.dirty());else if(o.kind==="cuid2")Tj.test(t.data)||(u=this._getOrReturnCtx(t,u),ye(u,{validation:"cuid2",code:me.invalid_string,message:o.message}),r.dirty());else if(o.kind==="ulid")bj.test(t.data)||(u=this._getOrReturnCtx(t,u),ye(u,{validation:"ulid",code:me.invalid_string,message:o.message}),r.dirty());else if(o.kind==="url")try{new URL(t.data)}catch{u=this._getOrReturnCtx(t,u),ye(u,{validation:"url",code:me.invalid_string,message:o.message}),r.dirty()}else o.kind==="regex"?(o.regex.lastIndex=0,o.regex.test(t.data)||(u=this._getOrReturnCtx(t,u),ye(u,{validation:"regex",code:me.invalid_string,message:o.message}),r.dirty())):o.kind==="trim"?t.data=t.data.trim():o.kind==="includes"?t.data.includes(o.value,o.position)||(u=this._getOrReturnCtx(t,u),ye(u,{code:me.invalid_string,validation:{includes:o.value,position:o.position},message:o.message}),r.dirty()):o.kind==="toLowerCase"?t.data=t.data.toLowerCase():o.kind==="toUpperCase"?t.data=t.data.toUpperCase():o.kind==="startsWith"?t.data.startsWith(o.value)||(u=this._getOrReturnCtx(t,u),ye(u,{code:me.invalid_string,validation:{startsWith:o.value},message:o.message}),r.dirty()):o.kind==="endsWith"?t.data.endsWith(o.value)||(u=this._getOrReturnCtx(t,u),ye(u,{code:me.invalid_string,validation:{endsWith:o.value},message:o.message}),r.dirty()):o.kind==="datetime"?gT(o).test(t.data)||(u=this._getOrReturnCtx(t,u),ye(u,{code:me.invalid_string,validation:"datetime",message:o.message}),r.dirty()):o.kind==="date"?Vj.test(t.data)||(u=this._getOrReturnCtx(t,u),ye(u,{code:me.invalid_string,validation:"date",message:o.message}),r.dirty()):o.kind==="time"?jj(o).test(t.data)||(u=this._getOrReturnCtx(t,u),ye(u,{code:me.invalid_string,validation:"time",message:o.message}),r.dirty()):o.kind==="duration"?Oj.test(t.data)||(u=this._getOrReturnCtx(t,u),ye(u,{validation:"duration",code:me.invalid_string,message:o.message}),r.dirty()):o.kind==="ip"?zj(t.data,o.version)||(u=this._getOrReturnCtx(t,u),ye(u,{validation:"ip",code:me.invalid_string,message:o.message}),r.dirty()):o.kind==="jwt"?Kj(t.data,o.alg)||(u=this._getOrReturnCtx(t,u),ye(u,{validation:"jwt",code:me.invalid_string,message:o.message}),r.dirty()):o.kind==="cidr"?$j(t.data,o.version)||(u=this._getOrReturnCtx(t,u),ye(u,{validation:"cidr",code:me.invalid_string,message:o.message}),r.dirty()):o.kind==="base64"?kj.test(t.data)||(u=this._getOrReturnCtx(t,u),ye(u,{validation:"base64",code:me.invalid_string,message:o.message}),r.dirty()):o.kind==="base64url"?Gj.test(t.data)||(u=this._getOrReturnCtx(t,u),ye(u,{validation:"base64url",code:me.invalid_string,message:o.message}),r.dirty()):dt.assertNever(o);return{status:r.value,value:t.data}}_regex(t,n,r){return this.refinement(u=>t.test(u),{validation:n,code:me.invalid_string,...Oe.errToObj(r)})}_addCheck(t){return new Br({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...Oe.errToObj(t)})}url(t){return this._addCheck({kind:"url",...Oe.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...Oe.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...Oe.errToObj(t)})}nanoid(t){return this._addCheck({kind:"nanoid",...Oe.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...Oe.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...Oe.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...Oe.errToObj(t)})}base64(t){return this._addCheck({kind:"base64",...Oe.errToObj(t)})}base64url(t){return this._addCheck({kind:"base64url",...Oe.errToObj(t)})}jwt(t){return this._addCheck({kind:"jwt",...Oe.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...Oe.errToObj(t)})}cidr(t){return this._addCheck({kind:"cidr",...Oe.errToObj(t)})}datetime(t){var n,r;return typeof t=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:t}):this._addCheck({kind:"datetime",precision:typeof(t==null?void 0:t.precision)>"u"?null:t==null?void 0:t.precision,offset:(n=t==null?void 0:t.offset)!==null&&n!==void 0?n:!1,local:(r=t==null?void 0:t.local)!==null&&r!==void 0?r:!1,...Oe.errToObj(t==null?void 0:t.message)})}date(t){return this._addCheck({kind:"date",message:t})}time(t){return typeof t=="string"?this._addCheck({kind:"time",precision:null,message:t}):this._addCheck({kind:"time",precision:typeof(t==null?void 0:t.precision)>"u"?null:t==null?void 0:t.precision,...Oe.errToObj(t==null?void 0:t.message)})}duration(t){return this._addCheck({kind:"duration",...Oe.errToObj(t)})}regex(t,n){return this._addCheck({kind:"regex",regex:t,...Oe.errToObj(n)})}includes(t,n){return this._addCheck({kind:"includes",value:t,position:n==null?void 0:n.position,...Oe.errToObj(n==null?void 0:n.message)})}startsWith(t,n){return this._addCheck({kind:"startsWith",value:t,...Oe.errToObj(n)})}endsWith(t,n){return this._addCheck({kind:"endsWith",value:t,...Oe.errToObj(n)})}min(t,n){return this._addCheck({kind:"min",value:t,...Oe.errToObj(n)})}max(t,n){return this._addCheck({kind:"max",value:t,...Oe.errToObj(n)})}length(t,n){return this._addCheck({kind:"length",value:t,...Oe.errToObj(n)})}nonempty(t){return this.min(1,Oe.errToObj(t))}trim(){return new Br({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new Br({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new Br({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(t=>t.kind==="datetime")}get isDate(){return!!this._def.checks.find(t=>t.kind==="date")}get isTime(){return!!this._def.checks.find(t=>t.kind==="time")}get isDuration(){return!!this._def.checks.find(t=>t.kind==="duration")}get isEmail(){return!!this._def.checks.find(t=>t.kind==="email")}get isURL(){return!!this._def.checks.find(t=>t.kind==="url")}get isEmoji(){return!!this._def.checks.find(t=>t.kind==="emoji")}get isUUID(){return!!this._def.checks.find(t=>t.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(t=>t.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(t=>t.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(t=>t.kind==="cuid2")}get isULID(){return!!this._def.checks.find(t=>t.kind==="ulid")}get isIP(){return!!this._def.checks.find(t=>t.kind==="ip")}get isCIDR(){return!!this._def.checks.find(t=>t.kind==="cidr")}get isBase64(){return!!this._def.checks.find(t=>t.kind==="base64")}get isBase64url(){return!!this._def.checks.find(t=>t.kind==="base64url")}get minLength(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxLength(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}}Br.create=e=>{var t;return new Br({checks:[],typeName:Ge.ZodString,coerce:(t=e==null?void 0:e.coerce)!==null&&t!==void 0?t:!1,...qe(e)})};function Yj(e,t){const n=(e.toString().split(".")[1]||"").length,r=(t.toString().split(".")[1]||"").length,u=n>r?n:r,o=parseInt(e.toFixed(u).replace(".","")),l=parseInt(t.toFixed(u).replace(".",""));return o%l/Math.pow(10,u)}class Ru extends et{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(t){if(this._def.coerce&&(t.data=Number(t.data)),this._getType(t)!==De.number){const o=this._getOrReturnCtx(t);return ye(o,{code:me.invalid_type,expected:De.number,received:o.parsedType}),Ke}let r;const u=new vn;for(const o of this._def.checks)o.kind==="int"?dt.isInteger(t.data)||(r=this._getOrReturnCtx(t,r),ye(r,{code:me.invalid_type,expected:"integer",received:"float",message:o.message}),u.dirty()):o.kind==="min"?(o.inclusive?t.data<o.value:t.data<=o.value)&&(r=this._getOrReturnCtx(t,r),ye(r,{code:me.too_small,minimum:o.value,type:"number",inclusive:o.inclusive,exact:!1,message:o.message}),u.dirty()):o.kind==="max"?(o.inclusive?t.data>o.value:t.data>=o.value)&&(r=this._getOrReturnCtx(t,r),ye(r,{code:me.too_big,maximum:o.value,type:"number",inclusive:o.inclusive,exact:!1,message:o.message}),u.dirty()):o.kind==="multipleOf"?Yj(t.data,o.value)!==0&&(r=this._getOrReturnCtx(t,r),ye(r,{code:me.not_multiple_of,multipleOf:o.value,message:o.message}),u.dirty()):o.kind==="finite"?Number.isFinite(t.data)||(r=this._getOrReturnCtx(t,r),ye(r,{code:me.not_finite,message:o.message}),u.dirty()):dt.assertNever(o);return{status:u.value,value:t.data}}gte(t,n){return this.setLimit("min",t,!0,Oe.toString(n))}gt(t,n){return this.setLimit("min",t,!1,Oe.toString(n))}lte(t,n){return this.setLimit("max",t,!0,Oe.toString(n))}lt(t,n){return this.setLimit("max",t,!1,Oe.toString(n))}setLimit(t,n,r,u){return new Ru({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:Oe.toString(u)}]})}_addCheck(t){return new Ru({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:Oe.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:Oe.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:Oe.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:Oe.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:Oe.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:Oe.toString(n)})}finite(t){return this._addCheck({kind:"finite",message:Oe.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:Oe.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:Oe.toString(t)})}get minValue(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}get isInt(){return!!this._def.checks.find(t=>t.kind==="int"||t.kind==="multipleOf"&&dt.isInteger(t.value))}get isFinite(){let t=null,n=null;for(const r of this._def.checks){if(r.kind==="finite"||r.kind==="int"||r.kind==="multipleOf")return!0;r.kind==="min"?(n===null||r.value>n)&&(n=r.value):r.kind==="max"&&(t===null||r.value<t)&&(t=r.value)}return Number.isFinite(n)&&Number.isFinite(t)}}Ru.create=e=>new Ru({checks:[],typeName:Ge.ZodNumber,coerce:(e==null?void 0:e.coerce)||!1,...qe(e)});class Du extends et{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(t){if(this._def.coerce)try{t.data=BigInt(t.data)}catch{return this._getInvalidInput(t)}if(this._getType(t)!==De.bigint)return this._getInvalidInput(t);let r;const u=new vn;for(const o of this._def.checks)o.kind==="min"?(o.inclusive?t.data<o.value:t.data<=o.value)&&(r=this._getOrReturnCtx(t,r),ye(r,{code:me.too_small,type:"bigint",minimum:o.value,inclusive:o.inclusive,message:o.message}),u.dirty()):o.kind==="max"?(o.inclusive?t.data>o.value:t.data>=o.value)&&(r=this._getOrReturnCtx(t,r),ye(r,{code:me.too_big,type:"bigint",maximum:o.value,inclusive:o.inclusive,message:o.message}),u.dirty()):o.kind==="multipleOf"?t.data%o.value!==BigInt(0)&&(r=this._getOrReturnCtx(t,r),ye(r,{code:me.not_multiple_of,multipleOf:o.value,message:o.message}),u.dirty()):dt.assertNever(o);return{status:u.value,value:t.data}}_getInvalidInput(t){const n=this._getOrReturnCtx(t);return ye(n,{code:me.invalid_type,expected:De.bigint,received:n.parsedType}),Ke}gte(t,n){return this.setLimit("min",t,!0,Oe.toString(n))}gt(t,n){return this.setLimit("min",t,!1,Oe.toString(n))}lte(t,n){return this.setLimit("max",t,!0,Oe.toString(n))}lt(t,n){return this.setLimit("max",t,!1,Oe.toString(n))}setLimit(t,n,r,u){return new Du({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:Oe.toString(u)}]})}_addCheck(t){return new Du({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:Oe.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:Oe.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:Oe.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:Oe.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:Oe.toString(n)})}get minValue(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}}Du.create=e=>{var t;return new Du({checks:[],typeName:Ge.ZodBigInt,coerce:(t=e==null?void 0:e.coerce)!==null&&t!==void 0?t:!1,...qe(e)})};class fc extends et{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==De.boolean){const r=this._getOrReturnCtx(t);return ye(r,{code:me.invalid_type,expected:De.boolean,received:r.parsedType}),Ke}return Bn(t.data)}}fc.create=e=>new fc({typeName:Ge.ZodBoolean,coerce:(e==null?void 0:e.coerce)||!1,...qe(e)});class Pa extends et{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==De.date){const o=this._getOrReturnCtx(t);return ye(o,{code:me.invalid_type,expected:De.date,received:o.parsedType}),Ke}if(isNaN(t.data.getTime())){const o=this._getOrReturnCtx(t);return ye(o,{code:me.invalid_date}),Ke}const r=new vn;let u;for(const o of this._def.checks)o.kind==="min"?t.data.getTime()<o.value&&(u=this._getOrReturnCtx(t,u),ye(u,{code:me.too_small,message:o.message,inclusive:!0,exact:!1,minimum:o.value,type:"date"}),r.dirty()):o.kind==="max"?t.data.getTime()>o.value&&(u=this._getOrReturnCtx(t,u),ye(u,{code:me.too_big,message:o.message,inclusive:!0,exact:!1,maximum:o.value,type:"date"}),r.dirty()):dt.assertNever(o);return{status:r.value,value:new Date(t.data.getTime())}}_addCheck(t){return new Pa({...this._def,checks:[...this._def.checks,t]})}min(t,n){return this._addCheck({kind:"min",value:t.getTime(),message:Oe.toString(n)})}max(t,n){return this._addCheck({kind:"max",value:t.getTime(),message:Oe.toString(n)})}get minDate(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t!=null?new Date(t):null}get maxDate(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t!=null?new Date(t):null}}Pa.create=e=>new Pa({checks:[],coerce:(e==null?void 0:e.coerce)||!1,typeName:Ge.ZodDate,...qe(e)});class Of extends et{_parse(t){if(this._getType(t)!==De.symbol){const r=this._getOrReturnCtx(t);return ye(r,{code:me.invalid_type,expected:De.symbol,received:r.parsedType}),Ke}return Bn(t.data)}}Of.create=e=>new Of({typeName:Ge.ZodSymbol,...qe(e)});class hc extends et{_parse(t){if(this._getType(t)!==De.undefined){const r=this._getOrReturnCtx(t);return ye(r,{code:me.invalid_type,expected:De.undefined,received:r.parsedType}),Ke}return Bn(t.data)}}hc.create=e=>new hc({typeName:Ge.ZodUndefined,...qe(e)});class Ac extends et{_parse(t){if(this._getType(t)!==De.null){const r=this._getOrReturnCtx(t);return ye(r,{code:me.invalid_type,expected:De.null,received:r.parsedType}),Ke}return Bn(t.data)}}Ac.create=e=>new Ac({typeName:Ge.ZodNull,...qe(e)});class ro extends et{constructor(){super(...arguments),this._any=!0}_parse(t){return Bn(t.data)}}ro.create=e=>new ro({typeName:Ge.ZodAny,...qe(e)});class Da extends et{constructor(){super(...arguments),this._unknown=!0}_parse(t){return Bn(t.data)}}Da.create=e=>new Da({typeName:Ge.ZodUnknown,...qe(e)});class Hi extends et{_parse(t){const n=this._getOrReturnCtx(t);return ye(n,{code:me.invalid_type,expected:De.never,received:n.parsedType}),Ke}}Hi.create=e=>new Hi({typeName:Ge.ZodNever,...qe(e)});class Lf extends et{_parse(t){if(this._getType(t)!==De.undefined){const r=this._getOrReturnCtx(t);return ye(r,{code:me.invalid_type,expected:De.void,received:r.parsedType}),Ke}return Bn(t.data)}}Lf.create=e=>new Lf({typeName:Ge.ZodVoid,...qe(e)});class Fr extends et{_parse(t){const{ctx:n,status:r}=this._processInputParams(t),u=this._def;if(n.parsedType!==De.array)return ye(n,{code:me.invalid_type,expected:De.array,received:n.parsedType}),Ke;if(u.exactLength!==null){const l=n.data.length>u.exactLength.value,c=n.data.length<u.exactLength.value;(l||c)&&(ye(n,{code:l?me.too_big:me.too_small,minimum:c?u.exactLength.value:void 0,maximum:l?u.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:u.exactLength.message}),r.dirty())}if(u.minLength!==null&&n.data.length<u.minLength.value&&(ye(n,{code:me.too_small,minimum:u.minLength.value,type:"array",inclusive:!0,exact:!1,message:u.minLength.message}),r.dirty()),u.maxLength!==null&&n.data.length>u.maxLength.value&&(ye(n,{code:me.too_big,maximum:u.maxLength.value,type:"array",inclusive:!0,exact:!1,message:u.maxLength.message}),r.dirty()),n.common.async)return Promise.all([...n.data].map((l,c)=>u.type._parseAsync(new ni(n,l,n.path,c)))).then(l=>vn.mergeArray(r,l));const o=[...n.data].map((l,c)=>u.type._parseSync(new ni(n,l,n.path,c)));return vn.mergeArray(r,o)}get element(){return this._def.type}min(t,n){return new Fr({...this._def,minLength:{value:t,message:Oe.toString(n)}})}max(t,n){return new Fr({...this._def,maxLength:{value:t,message:Oe.toString(n)}})}length(t,n){return new Fr({...this._def,exactLength:{value:t,message:Oe.toString(n)}})}nonempty(t){return this.min(1,t)}}Fr.create=(e,t)=>new Fr({type:e,minLength:null,maxLength:null,exactLength:null,typeName:Ge.ZodArray,...qe(t)});function Ps(e){if(e instanceof Dt){const t={};for(const n in e.shape){const r=e.shape[n];t[n]=Xr.create(Ps(r))}return new Dt({...e._def,shape:()=>t})}else return e instanceof Fr?new Fr({...e._def,type:Ps(e.element)}):e instanceof Xr?Xr.create(Ps(e.unwrap())):e instanceof bu?bu.create(Ps(e.unwrap())):e instanceof ri?ri.create(e.items.map(t=>Ps(t))):e}class Dt extends et{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const t=this._def.shape(),n=dt.objectKeys(t);return this._cached={shape:t,keys:n}}_parse(t){if(this._getType(t)!==De.object){const h=this._getOrReturnCtx(t);return ye(h,{code:me.invalid_type,expected:De.object,received:h.parsedType}),Ke}const{status:r,ctx:u}=this._processInputParams(t),{shape:o,keys:l}=this._getCached(),c=[];if(!(this._def.catchall instanceof Hi&&this._def.unknownKeys==="strip"))for(const h in u.data)l.includes(h)||c.push(h);const f=[];for(const h of l){const m=o[h],E=u.data[h];f.push({key:{status:"valid",value:h},value:m._parse(new ni(u,E,u.path,h)),alwaysSet:h in u.data})}if(this._def.catchall instanceof Hi){const h=this._def.unknownKeys;if(h==="passthrough")for(const m of c)f.push({key:{status:"valid",value:m},value:{status:"valid",value:u.data[m]}});else if(h==="strict")c.length>0&&(ye(u,{code:me.unrecognized_keys,keys:c}),r.dirty());else if(h!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const h=this._def.catchall;for(const m of c){const E=u.data[m];f.push({key:{status:"valid",value:m},value:h._parse(new ni(u,E,u.path,m)),alwaysSet:m in u.data})}}return u.common.async?Promise.resolve().then(async()=>{const h=[];for(const m of f){const E=await m.key,g=await m.value;h.push({key:E,value:g,alwaysSet:m.alwaysSet})}return h}).then(h=>vn.mergeObjectSync(r,h)):vn.mergeObjectSync(r,f)}get shape(){return this._def.shape()}strict(t){return Oe.errToObj,new Dt({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(n,r)=>{var u,o,l,c;const f=(l=(o=(u=this._def).errorMap)===null||o===void 0?void 0:o.call(u,n,r).message)!==null&&l!==void 0?l:r.defaultError;return n.code==="unrecognized_keys"?{message:(c=Oe.errToObj(t).message)!==null&&c!==void 0?c:f}:{message:f}}}:{}})}strip(){return new Dt({...this._def,unknownKeys:"strip"})}passthrough(){return new Dt({...this._def,unknownKeys:"passthrough"})}extend(t){return new Dt({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new Dt({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:Ge.ZodObject})}setKey(t,n){return this.augment({[t]:n})}catchall(t){return new Dt({...this._def,catchall:t})}pick(t){const n={};return dt.objectKeys(t).forEach(r=>{t[r]&&this.shape[r]&&(n[r]=this.shape[r])}),new Dt({...this._def,shape:()=>n})}omit(t){const n={};return dt.objectKeys(this.shape).forEach(r=>{t[r]||(n[r]=this.shape[r])}),new Dt({...this._def,shape:()=>n})}deepPartial(){return Ps(this)}partial(t){const n={};return dt.objectKeys(this.shape).forEach(r=>{const u=this.shape[r];t&&!t[r]?n[r]=u:n[r]=u.optional()}),new Dt({...this._def,shape:()=>n})}required(t){const n={};return dt.objectKeys(this.shape).forEach(r=>{if(t&&!t[r])n[r]=this.shape[r];else{let o=this.shape[r];for(;o instanceof Xr;)o=o._def.innerType;n[r]=o}}),new Dt({...this._def,shape:()=>n})}keyof(){return _T(dt.objectKeys(this.shape))}}Dt.create=(e,t)=>new Dt({shape:()=>e,unknownKeys:"strip",catchall:Hi.create(),typeName:Ge.ZodObject,...qe(t)});Dt.strictCreate=(e,t)=>new Dt({shape:()=>e,unknownKeys:"strict",catchall:Hi.create(),typeName:Ge.ZodObject,...qe(t)});Dt.lazycreate=(e,t)=>new Dt({shape:e,unknownKeys:"strip",catchall:Hi.create(),typeName:Ge.ZodObject,...qe(t)});class mc extends et{_parse(t){const{ctx:n}=this._processInputParams(t),r=this._def.options;function u(o){for(const c of o)if(c.result.status==="valid")return c.result;for(const c of o)if(c.result.status==="dirty")return n.common.issues.push(...c.ctx.common.issues),c.result;const l=o.map(c=>new Jn(c.ctx.common.issues));return ye(n,{code:me.invalid_union,unionErrors:l}),Ke}if(n.common.async)return Promise.all(r.map(async o=>{const l={...n,common:{...n.common,issues:[]},parent:null};return{result:await o._parseAsync({data:n.data,path:n.path,parent:l}),ctx:l}})).then(u);{let o;const l=[];for(const f of r){const h={...n,common:{...n.common,issues:[]},parent:null},m=f._parseSync({data:n.data,path:n.path,parent:h});if(m.status==="valid")return m;m.status==="dirty"&&!o&&(o={result:m,ctx:h}),h.common.issues.length&&l.push(h.common.issues)}if(o)return n.common.issues.push(...o.ctx.common.issues),o.result;const c=l.map(f=>new Jn(f));return ye(n,{code:me.invalid_union,unionErrors:c}),Ke}}get options(){return this._def.options}}mc.create=(e,t)=>new mc({options:e,typeName:Ge.ZodUnion,...qe(t)});const Ti=e=>e instanceof gc?Ti(e.schema):e instanceof wr?Ti(e.innerType()):e instanceof _c?[e.value]:e instanceof Tu?e.options:e instanceof Sc?dt.objectValues(e.enum):e instanceof Nc?Ti(e._def.innerType):e instanceof hc?[void 0]:e instanceof Ac?[null]:e instanceof Xr?[void 0,...Ti(e.unwrap())]:e instanceof bu?[null,...Ti(e.unwrap())]:e instanceof G4||e instanceof yc?Ti(e.unwrap()):e instanceof Ic?Ti(e._def.innerType):[];class Lh extends et{_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==De.object)return ye(n,{code:me.invalid_type,expected:De.object,received:n.parsedType}),Ke;const r=this.discriminator,u=n.data[r],o=this.optionsMap.get(u);return o?n.common.async?o._parseAsync({data:n.data,path:n.path,parent:n}):o._parseSync({data:n.data,path:n.path,parent:n}):(ye(n,{code:me.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[r]}),Ke)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(t,n,r){const u=new Map;for(const o of n){const l=Ti(o.shape[t]);if(!l.length)throw new Error(`A discriminator value for key \`${t}\` could not be extracted from all schema options`);for(const c of l){if(u.has(c))throw new Error(`Discriminator property ${String(t)} has duplicate value ${String(c)}`);u.set(c,o)}}return new Lh({typeName:Ge.ZodDiscriminatedUnion,discriminator:t,options:n,optionsMap:u,...qe(r)})}}function rg(e,t){const n=bi(e),r=bi(t);if(e===t)return{valid:!0,data:e};if(n===De.object&&r===De.object){const u=dt.objectKeys(t),o=dt.objectKeys(e).filter(c=>u.indexOf(c)!==-1),l={...e,...t};for(const c of o){const f=rg(e[c],t[c]);if(!f.valid)return{valid:!1};l[c]=f.data}return{valid:!0,data:l}}else if(n===De.array&&r===De.array){if(e.length!==t.length)return{valid:!1};const u=[];for(let o=0;o<e.length;o++){const l=e[o],c=t[o],f=rg(l,c);if(!f.valid)return{valid:!1};u.push(f.data)}return{valid:!0,data:u}}else return n===De.date&&r===De.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}class pc extends et{_parse(t){const{status:n,ctx:r}=this._processInputParams(t),u=(o,l)=>{if(tg(o)||tg(l))return Ke;const c=rg(o.value,l.value);return c.valid?((ng(o)||ng(l))&&n.dirty(),{status:n.value,value:c.data}):(ye(r,{code:me.invalid_intersection_types}),Ke)};return r.common.async?Promise.all([this._def.left._parseAsync({data:r.data,path:r.path,parent:r}),this._def.right._parseAsync({data:r.data,path:r.path,parent:r})]).then(([o,l])=>u(o,l)):u(this._def.left._parseSync({data:r.data,path:r.path,parent:r}),this._def.right._parseSync({data:r.data,path:r.path,parent:r}))}}pc.create=(e,t,n)=>new pc({left:e,right:t,typeName:Ge.ZodIntersection,...qe(n)});class ri extends et{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==De.array)return ye(r,{code:me.invalid_type,expected:De.array,received:r.parsedType}),Ke;if(r.data.length<this._def.items.length)return ye(r,{code:me.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),Ke;!this._def.rest&&r.data.length>this._def.items.length&&(ye(r,{code:me.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),n.dirty());const o=[...r.data].map((l,c)=>{const f=this._def.items[c]||this._def.rest;return f?f._parse(new ni(r,l,r.path,c)):null}).filter(l=>!!l);return r.common.async?Promise.all(o).then(l=>vn.mergeArray(n,l)):vn.mergeArray(n,o)}get items(){return this._def.items}rest(t){return new ri({...this._def,rest:t})}}ri.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new ri({items:e,typeName:Ge.ZodTuple,rest:null,...qe(t)})};class Ec extends et{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==De.object)return ye(r,{code:me.invalid_type,expected:De.object,received:r.parsedType}),Ke;const u=[],o=this._def.keyType,l=this._def.valueType;for(const c in r.data)u.push({key:o._parse(new ni(r,c,r.path,c)),value:l._parse(new ni(r,r.data[c],r.path,c)),alwaysSet:c in r.data});return r.common.async?vn.mergeObjectAsync(n,u):vn.mergeObjectSync(n,u)}get element(){return this._def.valueType}static create(t,n,r){return n instanceof et?new Ec({keyType:t,valueType:n,typeName:Ge.ZodRecord,...qe(r)}):new Ec({keyType:Br.create(),valueType:t,typeName:Ge.ZodRecord,...qe(n)})}}class wf extends et{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==De.map)return ye(r,{code:me.invalid_type,expected:De.map,received:r.parsedType}),Ke;const u=this._def.keyType,o=this._def.valueType,l=[...r.data.entries()].map(([c,f],h)=>({key:u._parse(new ni(r,c,r.path,[h,"key"])),value:o._parse(new ni(r,f,r.path,[h,"value"]))}));if(r.common.async){const c=new Map;return Promise.resolve().then(async()=>{for(const f of l){const h=await f.key,m=await f.value;if(h.status==="aborted"||m.status==="aborted")return Ke;(h.status==="dirty"||m.status==="dirty")&&n.dirty(),c.set(h.value,m.value)}return{status:n.value,value:c}})}else{const c=new Map;for(const f of l){const h=f.key,m=f.value;if(h.status==="aborted"||m.status==="aborted")return Ke;(h.status==="dirty"||m.status==="dirty")&&n.dirty(),c.set(h.value,m.value)}return{status:n.value,value:c}}}}wf.create=(e,t,n)=>new wf({valueType:t,keyType:e,typeName:Ge.ZodMap,...qe(n)});class Ha extends et{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==De.set)return ye(r,{code:me.invalid_type,expected:De.set,received:r.parsedType}),Ke;const u=this._def;u.minSize!==null&&r.data.size<u.minSize.value&&(ye(r,{code:me.too_small,minimum:u.minSize.value,type:"set",inclusive:!0,exact:!1,message:u.minSize.message}),n.dirty()),u.maxSize!==null&&r.data.size>u.maxSize.value&&(ye(r,{code:me.too_big,maximum:u.maxSize.value,type:"set",inclusive:!0,exact:!1,message:u.maxSize.message}),n.dirty());const o=this._def.valueType;function l(f){const h=new Set;for(const m of f){if(m.status==="aborted")return Ke;m.status==="dirty"&&n.dirty(),h.add(m.value)}return{status:n.value,value:h}}const c=[...r.data.values()].map((f,h)=>o._parse(new ni(r,f,r.path,h)));return r.common.async?Promise.all(c).then(f=>l(f)):l(c)}min(t,n){return new Ha({...this._def,minSize:{value:t,message:Oe.toString(n)}})}max(t,n){return new Ha({...this._def,maxSize:{value:t,message:Oe.toString(n)}})}size(t,n){return this.min(t,n).max(t,n)}nonempty(t){return this.min(1,t)}}Ha.create=(e,t)=>new Ha({valueType:e,minSize:null,maxSize:null,typeName:Ge.ZodSet,...qe(t)});class Ws extends et{constructor(){super(...arguments),this.validate=this.implement}_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==De.function)return ye(n,{code:me.invalid_type,expected:De.function,received:n.parsedType}),Ke;function r(c,f){return Bf({data:c,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,xf(),no].filter(h=>!!h),issueData:{code:me.invalid_arguments,argumentsError:f}})}function u(c,f){return Bf({data:c,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,xf(),no].filter(h=>!!h),issueData:{code:me.invalid_return_type,returnTypeError:f}})}const o={errorMap:n.common.contextualErrorMap},l=n.data;if(this._def.returns instanceof io){const c=this;return Bn(async function(...f){const h=new Jn([]),m=await c._def.args.parseAsync(f,o).catch(_=>{throw h.addIssue(r(f,_)),h}),E=await Reflect.apply(l,this,m);return await c._def.returns._def.type.parseAsync(E,o).catch(_=>{throw h.addIssue(u(E,_)),h})})}else{const c=this;return Bn(function(...f){const h=c._def.args.safeParse(f,o);if(!h.success)throw new Jn([r(f,h.error)]);const m=Reflect.apply(l,this,h.data),E=c._def.returns.safeParse(m,o);if(!E.success)throw new Jn([u(m,E.error)]);return E.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...t){return new Ws({...this._def,args:ri.create(t).rest(Da.create())})}returns(t){return new Ws({...this._def,returns:t})}implement(t){return this.parse(t)}strictImplement(t){return this.parse(t)}static create(t,n,r){return new Ws({args:t||ri.create([]).rest(Da.create()),returns:n||Da.create(),typeName:Ge.ZodFunction,...qe(r)})}}class gc extends et{get schema(){return this._def.getter()}_parse(t){const{ctx:n}=this._processInputParams(t);return this._def.getter()._parse({data:n.data,path:n.path,parent:n})}}gc.create=(e,t)=>new gc({getter:e,typeName:Ge.ZodLazy,...qe(t)});class _c extends et{_parse(t){if(t.data!==this._def.value){const n=this._getOrReturnCtx(t);return ye(n,{received:n.data,code:me.invalid_literal,expected:this._def.value}),Ke}return{status:"valid",value:t.data}}get value(){return this._def.value}}_c.create=(e,t)=>new _c({value:e,typeName:Ge.ZodLiteral,...qe(t)});function _T(e,t){return new Tu({values:e,typeName:Ge.ZodEnum,...qe(t)})}class Tu extends et{constructor(){super(...arguments),Vl.set(this,void 0)}_parse(t){if(typeof t.data!="string"){const n=this._getOrReturnCtx(t),r=this._def.values;return ye(n,{expected:dt.joinValues(r),received:n.parsedType,code:me.invalid_type}),Ke}if(Ff(this,Vl)||mT(this,Vl,new Set(this._def.values)),!Ff(this,Vl).has(t.data)){const n=this._getOrReturnCtx(t),r=this._def.values;return ye(n,{received:n.data,code:me.invalid_enum_value,options:r}),Ke}return Bn(t.data)}get options(){return this._def.values}get enum(){const t={};for(const n of this._def.values)t[n]=n;return t}get Values(){const t={};for(const n of this._def.values)t[n]=n;return t}get Enum(){const t={};for(const n of this._def.values)t[n]=n;return t}extract(t,n=this._def){return Tu.create(t,{...this._def,...n})}exclude(t,n=this._def){return Tu.create(this.options.filter(r=>!t.includes(r)),{...this._def,...n})}}Vl=new WeakMap;Tu.create=_T;class Sc extends et{constructor(){super(...arguments),jl.set(this,void 0)}_parse(t){const n=dt.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(t);if(r.parsedType!==De.string&&r.parsedType!==De.number){const u=dt.objectValues(n);return ye(r,{expected:dt.joinValues(u),received:r.parsedType,code:me.invalid_type}),Ke}if(Ff(this,jl)||mT(this,jl,new Set(dt.getValidEnumValues(this._def.values))),!Ff(this,jl).has(t.data)){const u=dt.objectValues(n);return ye(r,{received:r.data,code:me.invalid_enum_value,options:u}),Ke}return Bn(t.data)}get enum(){return this._def.values}}jl=new WeakMap;Sc.create=(e,t)=>new Sc({values:e,typeName:Ge.ZodNativeEnum,...qe(t)});class io extends et{unwrap(){return this._def.type}_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==De.promise&&n.common.async===!1)return ye(n,{code:me.invalid_type,expected:De.promise,received:n.parsedType}),Ke;const r=n.parsedType===De.promise?n.data:Promise.resolve(n.data);return Bn(r.then(u=>this._def.type.parseAsync(u,{path:n.path,errorMap:n.common.contextualErrorMap})))}}io.create=(e,t)=>new io({type:e,typeName:Ge.ZodPromise,...qe(t)});class wr extends et{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===Ge.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){const{status:n,ctx:r}=this._processInputParams(t),u=this._def.effect||null,o={addIssue:l=>{ye(r,l),l.fatal?n.abort():n.dirty()},get path(){return r.path}};if(o.addIssue=o.addIssue.bind(o),u.type==="preprocess"){const l=u.transform(r.data,o);if(r.common.async)return Promise.resolve(l).then(async c=>{if(n.value==="aborted")return Ke;const f=await this._def.schema._parseAsync({data:c,path:r.path,parent:r});return f.status==="aborted"?Ke:f.status==="dirty"||n.value==="dirty"?Us(f.value):f});{if(n.value==="aborted")return Ke;const c=this._def.schema._parseSync({data:l,path:r.path,parent:r});return c.status==="aborted"?Ke:c.status==="dirty"||n.value==="dirty"?Us(c.value):c}}if(u.type==="refinement"){const l=c=>{const f=u.refinement(c,o);if(r.common.async)return Promise.resolve(f);if(f instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return c};if(r.common.async===!1){const c=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});return c.status==="aborted"?Ke:(c.status==="dirty"&&n.dirty(),l(c.value),{status:n.value,value:c.value})}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(c=>c.status==="aborted"?Ke:(c.status==="dirty"&&n.dirty(),l(c.value).then(()=>({status:n.value,value:c.value}))))}if(u.type==="transform")if(r.common.async===!1){const l=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if(!Ma(l))return l;const c=u.transform(l.value,o);if(c instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:n.value,value:c}}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(l=>Ma(l)?Promise.resolve(u.transform(l.value,o)).then(c=>({status:n.value,value:c})):l);dt.assertNever(u)}}wr.create=(e,t,n)=>new wr({schema:e,typeName:Ge.ZodEffects,effect:t,...qe(n)});wr.createWithPreprocess=(e,t,n)=>new wr({schema:t,effect:{type:"preprocess",transform:e},typeName:Ge.ZodEffects,...qe(n)});class Xr extends et{_parse(t){return this._getType(t)===De.undefined?Bn(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}Xr.create=(e,t)=>new Xr({innerType:e,typeName:Ge.ZodOptional,...qe(t)});class bu extends et{_parse(t){return this._getType(t)===De.null?Bn(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}bu.create=(e,t)=>new bu({innerType:e,typeName:Ge.ZodNullable,...qe(t)});class Nc extends et{_parse(t){const{ctx:n}=this._processInputParams(t);let r=n.data;return n.parsedType===De.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:n.path,parent:n})}removeDefault(){return this._def.innerType}}Nc.create=(e,t)=>new Nc({innerType:e,typeName:Ge.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...qe(t)});class Ic extends et{_parse(t){const{ctx:n}=this._processInputParams(t),r={...n,common:{...n.common,issues:[]}},u=this._def.innerType._parse({data:r.data,path:r.path,parent:{...r}});return dc(u)?u.then(o=>({status:"valid",value:o.status==="valid"?o.value:this._def.catchValue({get error(){return new Jn(r.common.issues)},input:r.data})})):{status:"valid",value:u.status==="valid"?u.value:this._def.catchValue({get error(){return new Jn(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}}Ic.create=(e,t)=>new Ic({innerType:e,typeName:Ge.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...qe(t)});class Mf extends et{_parse(t){if(this._getType(t)!==De.nan){const r=this._getOrReturnCtx(t);return ye(r,{code:me.invalid_type,expected:De.nan,received:r.parsedType}),Ke}return{status:"valid",value:t.data}}}Mf.create=e=>new Mf({typeName:Ge.ZodNaN,...qe(e)});const Zj=Symbol("zod_brand");class G4 extends et{_parse(t){const{ctx:n}=this._processInputParams(t),r=n.data;return this._def.type._parse({data:r,path:n.path,parent:n})}unwrap(){return this._def.type}}class td extends et{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.common.async)return(async()=>{const o=await this._def.in._parseAsync({data:r.data,path:r.path,parent:r});return o.status==="aborted"?Ke:o.status==="dirty"?(n.dirty(),Us(o.value)):this._def.out._parseAsync({data:o.value,path:r.path,parent:r})})();{const u=this._def.in._parseSync({data:r.data,path:r.path,parent:r});return u.status==="aborted"?Ke:u.status==="dirty"?(n.dirty(),{status:"dirty",value:u.value}):this._def.out._parseSync({data:u.value,path:r.path,parent:r})}}static create(t,n){return new td({in:t,out:n,typeName:Ge.ZodPipeline})}}class yc extends et{_parse(t){const n=this._def.innerType._parse(t),r=u=>(Ma(u)&&(u.value=Object.freeze(u.value)),u);return dc(n)?n.then(u=>r(u)):r(n)}unwrap(){return this._def.innerType}}yc.create=(e,t)=>new yc({innerType:e,typeName:Ge.ZodReadonly,...qe(t)});function oC(e,t){const n=typeof e=="function"?e(t):typeof e=="string"?{message:e}:e;return typeof n=="string"?{message:n}:n}function ST(e,t={},n){return e?ro.create().superRefine((r,u)=>{var o,l;const c=e(r);if(c instanceof Promise)return c.then(f=>{var h,m;if(!f){const E=oC(t,r),g=(m=(h=E.fatal)!==null&&h!==void 0?h:n)!==null&&m!==void 0?m:!0;u.addIssue({code:"custom",...E,fatal:g})}});if(!c){const f=oC(t,r),h=(l=(o=f.fatal)!==null&&o!==void 0?o:n)!==null&&l!==void 0?l:!0;u.addIssue({code:"custom",...f,fatal:h})}}):ro.create()}const Wj={object:Dt.lazycreate};var Ge;(function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"})(Ge||(Ge={}));const qj=(e,t={message:`Input not instance of ${e.name}`})=>ST(n=>n instanceof e,t),NT=Br.create,IT=Ru.create,Xj=Mf.create,Qj=Du.create,yT=fc.create,Jj=Pa.create,e7=Of.create,t7=hc.create,n7=Ac.create,r7=ro.create,i7=Da.create,u7=Hi.create,a7=Lf.create,s7=Fr.create,o7=Dt.create,l7=Dt.strictCreate,c7=mc.create,d7=Lh.create,f7=pc.create,h7=ri.create,A7=Ec.create,m7=wf.create,p7=Ha.create,E7=Ws.create,g7=gc.create,_7=_c.create,S7=Tu.create,N7=Sc.create,I7=io.create,lC=wr.create,y7=Xr.create,C7=bu.create,v7=wr.createWithPreprocess,R7=td.create,D7=()=>NT().optional(),T7=()=>IT().optional(),b7=()=>yT().optional(),x7={string:e=>Br.create({...e,coerce:!0}),number:e=>Ru.create({...e,coerce:!0}),boolean:e=>fc.create({...e,coerce:!0}),bigint:e=>Du.create({...e,coerce:!0}),date:e=>Pa.create({...e,coerce:!0})},B7=Ke;var Au=Object.freeze({__proto__:null,defaultErrorMap:no,setErrorMap:vj,getErrorMap:xf,makeIssue:Bf,EMPTY_PATH:Rj,addIssueToContext:ye,ParseStatus:vn,INVALID:Ke,DIRTY:Us,OK:Bn,isAborted:tg,isDirty:ng,isValid:Ma,isAsync:dc,get util(){return dt},get objectUtil(){return eg},ZodParsedType:De,getParsedType:bi,ZodType:et,datetimeRegex:gT,ZodString:Br,ZodNumber:Ru,ZodBigInt:Du,ZodBoolean:fc,ZodDate:Pa,ZodSymbol:Of,ZodUndefined:hc,ZodNull:Ac,ZodAny:ro,ZodUnknown:Da,ZodNever:Hi,ZodVoid:Lf,ZodArray:Fr,ZodObject:Dt,ZodUnion:mc,ZodDiscriminatedUnion:Lh,ZodIntersection:pc,ZodTuple:ri,ZodRecord:Ec,ZodMap:wf,ZodSet:Ha,ZodFunction:Ws,ZodLazy:gc,ZodLiteral:_c,ZodEnum:Tu,ZodNativeEnum:Sc,ZodPromise:io,ZodEffects:wr,ZodTransformer:wr,ZodOptional:Xr,ZodNullable:bu,ZodDefault:Nc,ZodCatch:Ic,ZodNaN:Mf,BRAND:Zj,ZodBranded:G4,ZodPipeline:td,ZodReadonly:yc,custom:ST,Schema:et,ZodSchema:et,late:Wj,get ZodFirstPartyTypeKind(){return Ge},coerce:x7,any:r7,array:s7,bigint:Qj,boolean:yT,date:Jj,discriminatedUnion:d7,effect:lC,enum:S7,function:E7,instanceof:qj,intersection:f7,lazy:g7,literal:_7,map:m7,nan:Xj,nativeEnum:N7,never:u7,null:n7,nullable:C7,number:IT,object:o7,oboolean:b7,onumber:T7,optional:y7,ostring:D7,pipeline:R7,preprocess:v7,promise:I7,record:A7,set:p7,strictObject:l7,string:NT,symbol:e7,transformer:lC,tuple:h7,undefined:t7,union:c7,unknown:i7,void:a7,NEVER:B7,ZodIssueCode:me,quotelessJson:Cj,ZodError:Jn});const CT=y.createContext({});function F7(e){const t=y.useRef(null);return t.current===null&&(t.current=e()),t.current}const V4=y.createContext(null),vT=y.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function O7(e=!0){const t=y.useContext(V4);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:u}=t,o=y.useId();y.useEffect(()=>{e&&u(o)},[e]);const l=y.useCallback(()=>e&&r&&r(o),[o,r,e]);return!n&&r?[!1,l]:[!0]}const j4=typeof window<"u",L7=j4?y.useLayoutEffect:y.useEffect,Xt=e=>e;let wh=Xt;function Mh(e){let t;return()=>(t===void 0&&(t=e()),t)}const xu=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},An=e=>e*1e3,mn=e=>e/1e3,w7={useManualTiming:!1};function M7(e){let t=new Set,n=new Set,r=!1,u=!1;const o=new WeakSet;let l={delta:0,timestamp:0,isProcessing:!1};function c(h){o.has(h)&&(f.schedule(h),e()),h(l)}const f={schedule:(h,m=!1,E=!1)=>{const _=E&&r?t:n;return m&&o.add(h),_.has(h)||_.add(h),h},cancel:h=>{n.delete(h),o.delete(h)},process:h=>{if(l=h,r){u=!0;return}r=!0,[t,n]=[n,t],t.forEach(c),t.clear(),r=!1,u&&(u=!1,f.process(h))}};return f}const M0=["read","resolveKeyframes","update","preRender","render","postRender"],P7=40;function RT(e,t){let n=!1,r=!0;const u={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,l=M0.reduce((R,D)=>(R[D]=M7(o),R),{}),{read:c,resolveKeyframes:f,update:h,preRender:m,render:E,postRender:g}=l,_=()=>{const R=performance.now();n=!1,u.delta=r?1e3/60:Math.max(Math.min(R-u.timestamp,P7),1),u.timestamp=R,u.isProcessing=!0,c.process(u),f.process(u),h.process(u),m.process(u),E.process(u),g.process(u),u.isProcessing=!1,n&&t&&(r=!1,e(_))},S=()=>{n=!0,r=!0,u.isProcessing||e(_)};return{schedule:M0.reduce((R,D)=>{const b=l[D];return R[D]=(L,x=!1,B=!1)=>(n||S(),b.schedule(L,x,B)),R},{}),cancel:R=>{for(let D=0;D<M0.length;D++)l[M0[D]].cancel(R)},state:u,steps:l}}const{schedule:yt,cancel:Bu,state:hn,steps:Yp}=RT(typeof requestAnimationFrame<"u"?requestAnimationFrame:Xt,!0),DT=y.createContext({strict:!1}),cC={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},uo={};for(const e in cC)uo[e]={isEnabled:t=>cC[e].some(n=>!!t[n])};function H7(e){for(const t in e)uo[t]={...uo[t],...e[t]}}const U7=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function Pf(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||U7.has(e)}let TT=e=>!Pf(e);function k7(e){e&&(TT=t=>t.startsWith("on")?!Pf(t):e(t))}try{k7(require("@emotion/is-prop-valid").default)}catch{}function G7(e,t,n){const r={};for(const u in e)u==="values"&&typeof e.values=="object"||(TT(u)||n===!0&&Pf(u)||!t&&!Pf(u)||e.draggable&&u.startsWith("onDrag"))&&(r[u]=e[u]);return r}function V7(e){if(typeof Proxy>"u")return e;const t=new Map,n=(...r)=>e(...r);return new Proxy(n,{get:(r,u)=>u==="create"?e:(t.has(u)||t.set(u,e(u)),t.get(u))})}const Ph=y.createContext({});function Cc(e){return typeof e=="string"||Array.isArray(e)}function Hh(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const z4=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],K4=["initial",...z4];function Uh(e){return Hh(e.animate)||K4.some(t=>Cc(e[t]))}function bT(e){return!!(Uh(e)||e.variants)}function j7(e,t){if(Uh(e)){const{initial:n,animate:r}=e;return{initial:n===!1||Cc(n)?n:void 0,animate:Cc(r)?r:void 0}}return e.inherit!==!1?t:{}}function z7(e){const{initial:t,animate:n}=j7(e,y.useContext(Ph));return y.useMemo(()=>({initial:t,animate:n}),[dC(t),dC(n)])}function dC(e){return Array.isArray(e)?e.join(" "):e}const K7=Symbol.for("motionComponentSymbol");function ks(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function $7(e,t,n){return y.useCallback(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):ks(n)&&(n.current=r))},[t])}const $4=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),Y7="framerAppearId",xT="data-"+$4(Y7),{schedule:Y4}=RT(queueMicrotask,!1),BT=y.createContext({});function Z7(e,t,n,r,u){var o,l;const{visualElement:c}=y.useContext(Ph),f=y.useContext(DT),h=y.useContext(V4),m=y.useContext(vT).reducedMotion,E=y.useRef(null);r=r||f.renderer,!E.current&&r&&(E.current=r(e,{visualState:t,parent:c,props:n,presenceContext:h,blockInitialAnimation:h?h.initial===!1:!1,reducedMotionConfig:m}));const g=E.current,_=y.useContext(BT);g&&!g.projection&&u&&(g.type==="html"||g.type==="svg")&&W7(E.current,n,u,_);const S=y.useRef(!1);y.useInsertionEffect(()=>{g&&S.current&&g.update(n,h)});const C=n[xT],v=y.useRef(!!C&&!(!((o=window.MotionHandoffIsComplete)===null||o===void 0)&&o.call(window,C))&&((l=window.MotionHasOptimisedAnimation)===null||l===void 0?void 0:l.call(window,C)));return L7(()=>{g&&(S.current=!0,window.MotionIsMounted=!0,g.updateFeatures(),Y4.render(g.render),v.current&&g.animationState&&g.animationState.animateChanges())}),y.useEffect(()=>{g&&(!v.current&&g.animationState&&g.animationState.animateChanges(),v.current&&(queueMicrotask(()=>{var R;(R=window.MotionHandoffMarkAsComplete)===null||R===void 0||R.call(window,C)}),v.current=!1))}),g}function W7(e,t,n,r){const{layoutId:u,layout:o,drag:l,dragConstraints:c,layoutScroll:f,layoutRoot:h}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:FT(e.parent)),e.projection.setOptions({layoutId:u,layout:o,alwaysMeasureLayout:!!l||c&&ks(c),visualElement:e,animationType:typeof o=="string"?o:"both",initialPromotionConfig:r,layoutScroll:f,layoutRoot:h})}function FT(e){if(e)return e.options.allowProjection!==!1?e.projection:FT(e.parent)}function q7({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:u}){var o,l;e&&H7(e);function c(h,m){let E;const g={...y.useContext(vT),...h,layoutId:X7(h)},{isStatic:_}=g,S=z7(h),C=r(h,_);if(!_&&j4){Q7();const v=J7(g);E=v.MeasureLayout,S.visualElement=Z7(u,C,g,t,v.ProjectionNode)}return N.jsxs(Ph.Provider,{value:S,children:[E&&S.visualElement?N.jsx(E,{visualElement:S.visualElement,...g}):null,n(u,h,$7(C,S.visualElement,m),C,_,S.visualElement)]})}c.displayName=`motion.${typeof u=="string"?u:`create(${(l=(o=u.displayName)!==null&&o!==void 0?o:u.name)!==null&&l!==void 0?l:""})`}`;const f=y.forwardRef(c);return f[K7]=u,f}function X7({layoutId:e}){const t=y.useContext(CT).id;return t&&e!==void 0?t+"-"+e:e}function Q7(e,t){y.useContext(DT).strict}function J7(e){const{drag:t,layout:n}=uo;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t!=null&&t.isEnabled(e)||n!=null&&n.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}const e6=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function Z4(e){return typeof e!="string"||e.includes("-")?!1:!!(e6.indexOf(e)>-1||/[A-Z]/u.test(e))}function fC(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function W4(e,t,n,r){if(typeof t=="function"){const[u,o]=fC(r);t=t(n!==void 0?n:e.custom,u,o)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[u,o]=fC(r);t=t(n!==void 0?n:e.custom,u,o)}return t}const ig=e=>Array.isArray(e),t6=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),n6=e=>ig(e)?e[e.length-1]||0:e,yn=e=>!!(e&&e.getVelocity);function sf(e){const t=yn(e)?e.get():e;return t6(t)?t.toValue():t}function r6({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:n},r,u,o){const l={latestValues:i6(r,u,o,e),renderState:t()};return n&&(l.onMount=c=>n({props:r,current:c,...l}),l.onUpdate=c=>n(c)),l}const OT=e=>(t,n)=>{const r=y.useContext(Ph),u=y.useContext(V4),o=()=>r6(e,t,r,u);return n?o():F7(o)};function i6(e,t,n,r){const u={},o=r(e,{});for(const g in o)u[g]=sf(o[g]);let{initial:l,animate:c}=e;const f=Uh(e),h=bT(e);t&&h&&!f&&e.inherit!==!1&&(l===void 0&&(l=t.initial),c===void 0&&(c=t.animate));let m=n?n.initial===!1:!1;m=m||l===!1;const E=m?c:l;if(E&&typeof E!="boolean"&&!Hh(E)){const g=Array.isArray(E)?E:[E];for(let _=0;_<g.length;_++){const S=W4(e,g[_]);if(S){const{transitionEnd:C,transition:v,...R}=S;for(const D in R){let b=R[D];if(Array.isArray(b)){const L=m?b.length-1:0;b=b[L]}b!==null&&(u[D]=b)}for(const D in C)u[D]=C[D]}}}return u}const Io=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],ja=new Set(Io),LT=e=>t=>typeof t=="string"&&t.startsWith(e),wT=LT("--"),u6=LT("var(--"),q4=e=>u6(e)?a6.test(e.split("/*")[0].trim()):!1,a6=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,MT=(e,t)=>t&&typeof e=="number"?t.transform(e):e,Ui=(e,t,n)=>n>t?t:n<e?e:n,yo={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},vc={...yo,transform:e=>Ui(0,1,e)},P0={...yo,default:1},nd=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),gu=nd("deg"),Qr=nd("%"),Ue=nd("px"),s6=nd("vh"),o6=nd("vw"),hC={...Qr,parse:e=>Qr.parse(e)/100,transform:e=>Qr.transform(e*100)},l6={borderWidth:Ue,borderTopWidth:Ue,borderRightWidth:Ue,borderBottomWidth:Ue,borderLeftWidth:Ue,borderRadius:Ue,radius:Ue,borderTopLeftRadius:Ue,borderTopRightRadius:Ue,borderBottomRightRadius:Ue,borderBottomLeftRadius:Ue,width:Ue,maxWidth:Ue,height:Ue,maxHeight:Ue,top:Ue,right:Ue,bottom:Ue,left:Ue,padding:Ue,paddingTop:Ue,paddingRight:Ue,paddingBottom:Ue,paddingLeft:Ue,margin:Ue,marginTop:Ue,marginRight:Ue,marginBottom:Ue,marginLeft:Ue,backgroundPositionX:Ue,backgroundPositionY:Ue},c6={rotate:gu,rotateX:gu,rotateY:gu,rotateZ:gu,scale:P0,scaleX:P0,scaleY:P0,scaleZ:P0,skew:gu,skewX:gu,skewY:gu,distance:Ue,translateX:Ue,translateY:Ue,translateZ:Ue,x:Ue,y:Ue,z:Ue,perspective:Ue,transformPerspective:Ue,opacity:vc,originX:hC,originY:hC,originZ:Ue},AC={...yo,transform:Math.round},X4={...l6,...c6,zIndex:AC,size:Ue,fillOpacity:vc,strokeOpacity:vc,numOctaves:AC},d6={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},f6=Io.length;function h6(e,t,n){let r="",u=!0;for(let o=0;o<f6;o++){const l=Io[o],c=e[l];if(c===void 0)continue;let f=!0;if(typeof c=="number"?f=c===(l.startsWith("scale")?1:0):f=parseFloat(c)===0,!f||n){const h=MT(c,X4[l]);if(!f){u=!1;const m=d6[l]||l;r+=`${m}(${h}) `}n&&(t[l]=h)}}return r=r.trim(),n?r=n(t,u?"":r):u&&(r="none"),r}function Q4(e,t,n){const{style:r,vars:u,transformOrigin:o}=e;let l=!1,c=!1;for(const f in t){const h=t[f];if(ja.has(f)){l=!0;continue}else if(wT(f)){u[f]=h;continue}else{const m=MT(h,X4[f]);f.startsWith("origin")?(c=!0,o[f]=m):r[f]=m}}if(t.transform||(l||n?r.transform=h6(t,e.transform,n):r.transform&&(r.transform="none")),c){const{originX:f="50%",originY:h="50%",originZ:m=0}=o;r.transformOrigin=`${f} ${h} ${m}`}}const A6={offset:"stroke-dashoffset",array:"stroke-dasharray"},m6={offset:"strokeDashoffset",array:"strokeDasharray"};function p6(e,t,n=1,r=0,u=!0){e.pathLength=1;const o=u?A6:m6;e[o.offset]=Ue.transform(-r);const l=Ue.transform(t),c=Ue.transform(n);e[o.array]=`${l} ${c}`}function mC(e,t,n){return typeof e=="string"?e:Ue.transform(t+n*e)}function E6(e,t,n){const r=mC(t,e.x,e.width),u=mC(n,e.y,e.height);return`${r} ${u}`}function J4(e,{attrX:t,attrY:n,attrScale:r,originX:u,originY:o,pathLength:l,pathSpacing:c=1,pathOffset:f=0,...h},m,E){if(Q4(e,h,E),m){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:g,style:_,dimensions:S}=e;g.transform&&(S&&(_.transform=g.transform),delete g.transform),S&&(u!==void 0||o!==void 0||_.transform)&&(_.transformOrigin=E6(S,u!==void 0?u:.5,o!==void 0?o:.5)),t!==void 0&&(g.x=t),n!==void 0&&(g.y=n),r!==void 0&&(g.scale=r),l!==void 0&&p6(g,l,c,f,!1)}const e_=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),PT=()=>({...e_(),attrs:{}}),t_=e=>typeof e=="string"&&e.toLowerCase()==="svg";function HT(e,{style:t,vars:n},r,u){Object.assign(e.style,t,u&&u.getProjectionStyles(r));for(const o in n)e.style.setProperty(o,n[o])}const UT=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function kT(e,t,n,r){HT(e,t,void 0,r);for(const u in t.attrs)e.setAttribute(UT.has(u)?u:$4(u),t.attrs[u])}const Hf={};function g6(e){Object.assign(Hf,e)}function GT(e,{layout:t,layoutId:n}){return ja.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Hf[e]||e==="opacity")}function n_(e,t,n){var r;const{style:u}=e,o={};for(const l in u)(yn(u[l])||t.style&&yn(t.style[l])||GT(l,e)||((r=n==null?void 0:n.getValue(l))===null||r===void 0?void 0:r.liveStyle)!==void 0)&&(o[l]=u[l]);return o}function VT(e,t,n){const r=n_(e,t,n);for(const u in e)if(yn(e[u])||yn(t[u])){const o=Io.indexOf(u)!==-1?"attr"+u.charAt(0).toUpperCase()+u.substring(1):u;r[o]=e[u]}return r}function _6(e,t){try{t.dimensions=typeof e.getBBox=="function"?e.getBBox():e.getBoundingClientRect()}catch{t.dimensions={x:0,y:0,width:0,height:0}}}const pC=["x","y","width","height","cx","cy","r"],S6={useVisualState:OT({scrapeMotionValuesFromProps:VT,createRenderState:PT,onUpdate:({props:e,prevProps:t,current:n,renderState:r,latestValues:u})=>{if(!n)return;let o=!!e.drag;if(!o){for(const c in u)if(ja.has(c)){o=!0;break}}if(!o)return;let l=!t;if(t)for(let c=0;c<pC.length;c++){const f=pC[c];e[f]!==t[f]&&(l=!0)}l&&yt.read(()=>{_6(n,r),yt.render(()=>{J4(r,u,t_(n.tagName),e.transformTemplate),kT(n,r)})})}})},N6={useVisualState:OT({scrapeMotionValuesFromProps:n_,createRenderState:e_})};function jT(e,t,n){for(const r in t)!yn(t[r])&&!GT(r,n)&&(e[r]=t[r])}function I6({transformTemplate:e},t){return y.useMemo(()=>{const n=e_();return Q4(n,t,e),Object.assign({},n.vars,n.style)},[t])}function y6(e,t){const n=e.style||{},r={};return jT(r,n,e),Object.assign(r,I6(e,t)),r}function C6(e,t){const n={},r=y6(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}function v6(e,t,n,r){const u=y.useMemo(()=>{const o=PT();return J4(o,t,t_(r),e.transformTemplate),{...o.attrs,style:{...o.style}}},[t]);if(e.style){const o={};jT(o,e.style,e),u.style={...o,...u.style}}return u}function R6(e=!1){return(n,r,u,{latestValues:o},l)=>{const f=(Z4(n)?v6:C6)(r,o,l,n),h=G7(r,typeof n=="string",e),m=n!==y.Fragment?{...h,...f,ref:u}:{},{children:E}=r,g=y.useMemo(()=>yn(E)?E.get():E,[E]);return y.createElement(n,{...m,children:g})}}function D6(e,t){return function(r,{forwardMotionProps:u}={forwardMotionProps:!1}){const l={...Z4(r)?S6:N6,preloadedFeatures:e,useRender:R6(u),createVisualElement:t,Component:r};return q7(l)}}function zT(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}function kh(e,t,n){const r=e.getProps();return W4(r,t,n!==void 0?n:r.custom,e)}const T6=Mh(()=>window.ScrollTimeline!==void 0);class b6{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}get finished(){return Promise.all(this.animations.map(t=>"finished"in t?t.finished:t))}getAll(t){return this.animations[0][t]}setAll(t,n){for(let r=0;r<this.animations.length;r++)this.animations[r][t]=n}attachTimeline(t,n){const r=this.animations.map(u=>{if(T6()&&u.attachTimeline)return u.attachTimeline(t);if(typeof n=="function")return n(u)});return()=>{r.forEach((u,o)=>{u&&u(),this.animations[o].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let n=0;n<this.animations.length;n++)t=Math.max(t,this.animations[n].duration);return t}runAll(t){this.animations.forEach(n=>n[t]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class KT extends b6{then(t,n){return Promise.all(this.animations).then(t).catch(n)}}function rd(e,t){return e?e[t]||e.default||e:void 0}const Uf=2e4;function Gh(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<Uf;)t+=n,r=e.next(t);return t>=Uf?1/0:t}function Co(e){return typeof e=="function"}function kf(e,t){e.timeline=t,e.onfinish=null}const Vh=e=>Array.isArray(e)&&typeof e[0]=="number",x6={linearEasing:void 0};function B6(e,t){const n=Mh(e);return()=>{var r;return(r=x6[t])!==null&&r!==void 0?r:n()}}const Rc=B6(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),r_=(e,t,n=10)=>{let r="";const u=Math.max(Math.round(t/n),2);for(let o=0;o<u;o++)r+=e(xu(0,u-1,o))+", ";return`linear(${r.substring(0,r.length-2)})`};function i_(e){return!!(typeof e=="function"&&Rc()||!e||typeof e=="string"&&(e in ug||Rc())||Vh(e)||Array.isArray(e)&&e.every(i_))}const zl=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,ug={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:zl([0,.65,.55,1]),circOut:zl([.55,0,1,.45]),backIn:zl([.31,.01,.66,-.59]),backOut:zl([.33,1.53,.69,.99])};function u_(e,t){if(e)return typeof e=="function"&&Rc()?r_(e,t):Vh(e)?zl(e):Array.isArray(e)?e.map(n=>u_(n,t)||ug.easeOut):ug[e]}const br={x:!1,y:!1};function $T(){return br.x||br.y}function F6(e,t,n){var r;if(e instanceof Element)return[e];if(typeof e=="string"){let u=document;const o=(r=void 0)!==null&&r!==void 0?r:u.querySelectorAll(e);return o?Array.from(o):[]}return Array.from(e)}function YT(e,t){const n=F6(e),r=new AbortController,u={passive:!0,...t,signal:r.signal};return[n,u,()=>r.abort()]}function EC(e){return t=>{t.pointerType==="touch"||$T()||e(t)}}function ZT(e,t,n={}){const[r,u,o]=YT(e,n),l=EC(c=>{const{target:f}=c,h=t(c);if(typeof h!="function"||!f)return;const m=EC(E=>{h(E),f.removeEventListener("pointerleave",m)});f.addEventListener("pointerleave",m,u)});return r.forEach(c=>{c.addEventListener("pointerenter",l,u)}),o}const WT=(e,t)=>t?e===t?!0:WT(e,t.parentElement):!1,a_=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,O6=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function L6(e){return O6.has(e.tagName)||e.tabIndex!==-1}const Kl=new WeakSet;function gC(e){return t=>{t.key==="Enter"&&e(t)}}function Zp(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const w6=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=gC(()=>{if(Kl.has(n))return;Zp(n,"down");const u=gC(()=>{Zp(n,"up")}),o=()=>Zp(n,"cancel");n.addEventListener("keyup",u,t),n.addEventListener("blur",o,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function _C(e){return a_(e)&&!$T()}function qT(e,t,n={}){const[r,u,o]=YT(e,n),l=c=>{const f=c.currentTarget;if(!_C(c)||Kl.has(f))return;Kl.add(f);const h=t(c),m=(_,S)=>{window.removeEventListener("pointerup",E),window.removeEventListener("pointercancel",g),!(!_C(_)||!Kl.has(f))&&(Kl.delete(f),typeof h=="function"&&h(_,{success:S}))},E=_=>{m(_,n.useGlobalTarget||WT(f,_.target))},g=_=>{m(_,!1)};window.addEventListener("pointerup",E,u),window.addEventListener("pointercancel",g,u)};return r.forEach(c=>{!L6(c)&&c.getAttribute("tabindex")===null&&(c.tabIndex=0),(n.useGlobalTarget?window:c).addEventListener("pointerdown",l,u),c.addEventListener("focus",h=>w6(h,u),u)}),o}function M6(e){return e==="x"||e==="y"?br[e]?null:(br[e]=!0,()=>{br[e]=!1}):br.x||br.y?null:(br.x=br.y=!0,()=>{br.x=br.y=!1})}const XT=new Set(["width","height","top","left","right","bottom",...Io]);let of;function P6(){of=void 0}const Jr={now:()=>(of===void 0&&Jr.set(hn.isProcessing||w7.useManualTiming?hn.timestamp:performance.now()),of),set:e=>{of=e,queueMicrotask(P6)}};function s_(e,t){e.indexOf(t)===-1&&e.push(t)}function o_(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}let l_=class{constructor(){this.subscriptions=[]}add(t){return s_(this.subscriptions,t),()=>o_(this.subscriptions,t)}notify(t,n,r){const u=this.subscriptions.length;if(u)if(u===1)this.subscriptions[0](t,n,r);else for(let o=0;o<u;o++){const l=this.subscriptions[o];l&&l(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}};function QT(e,t){return t?e*(1e3/t):0}const SC=30,H6=e=>!isNaN(parseFloat(e));let U6=class{constructor(t,n={}){this.version="11.18.2",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,u=!0)=>{const o=Jr.now();this.updatedAt!==o&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),u&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=Jr.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=H6(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new l_);const r=this.events[t].add(n);return t==="change"?()=>{r(),yt.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=Jr.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>SC)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,SC);return QT(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}};function Dc(e,t){return new U6(e,t)}function k6(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Dc(n))}function G6(e,t){const n=kh(e,t);let{transitionEnd:r={},transition:u={},...o}=n||{};o={...o,...r};for(const l in o){const c=n6(o[l]);k6(e,l,c)}}function V6(e){return!!(yn(e)&&e.add)}function ag(e,t){const n=e.getValue("willChange");if(V6(n))return n.add(t)}function JT(e){return e.props[xT]}const eb=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,j6=1e-7,z6=12;function K6(e,t,n,r,u){let o,l,c=0;do l=t+(n-t)/2,o=eb(l,r,u)-e,o>0?n=l:t=l;while(Math.abs(o)>j6&&++c<z6);return l}function id(e,t,n,r){if(e===t&&n===r)return Xt;const u=o=>K6(o,0,1,e,n);return o=>o===0||o===1?o:eb(u(o),t,r)}const tb=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,nb=e=>t=>1-e(1-t),rb=id(.33,1.53,.69,.99),c_=nb(rb),ib=tb(c_),ub=e=>(e*=2)<1?.5*c_(e):.5*(2-Math.pow(2,-10*(e-1))),d_=e=>1-Math.sin(Math.acos(e)),ab=nb(d_),sb=tb(d_),ob=e=>/^0[^.\s]+$/u.test(e);function $6(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||ob(e):!0}const Ql=e=>Math.round(e*1e5)/1e5,f_=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Y6(e){return e==null}const Z6=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,h_=(e,t)=>n=>!!(typeof n=="string"&&Z6.test(n)&&n.startsWith(e)||t&&!Y6(n)&&Object.prototype.hasOwnProperty.call(n,t)),lb=(e,t,n)=>r=>{if(typeof r!="string")return r;const[u,o,l,c]=r.match(f_);return{[e]:parseFloat(u),[t]:parseFloat(o),[n]:parseFloat(l),alpha:c!==void 0?parseFloat(c):1}},W6=e=>Ui(0,255,e),Wp={...yo,transform:e=>Math.round(W6(e))},ya={test:h_("rgb","red"),parse:lb("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Wp.transform(e)+", "+Wp.transform(t)+", "+Wp.transform(n)+", "+Ql(vc.transform(r))+")"};function q6(e){let t="",n="",r="",u="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),u=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),u=e.substring(4,5),t+=t,n+=n,r+=r,u+=u),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:u?parseInt(u,16)/255:1}}const sg={test:h_("#"),parse:q6,transform:ya.transform},Gs={test:h_("hsl","hue"),parse:lb("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Qr.transform(Ql(t))+", "+Qr.transform(Ql(n))+", "+Ql(vc.transform(r))+")"},Nn={test:e=>ya.test(e)||sg.test(e)||Gs.test(e),parse:e=>ya.test(e)?ya.parse(e):Gs.test(e)?Gs.parse(e):sg.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?ya.transform(e):Gs.transform(e)},X6=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Q6(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(f_))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(X6))===null||n===void 0?void 0:n.length)||0)>0}const cb="number",db="color",J6="var",ez="var(",NC="${}",tz=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Tc(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},u=[];let o=0;const c=t.replace(tz,f=>(Nn.test(f)?(r.color.push(o),u.push(db),n.push(Nn.parse(f))):f.startsWith(ez)?(r.var.push(o),u.push(J6),n.push(f)):(r.number.push(o),u.push(cb),n.push(parseFloat(f))),++o,NC)).split(NC);return{values:n,split:c,indexes:r,types:u}}function fb(e){return Tc(e).values}function hb(e){const{split:t,types:n}=Tc(e),r=t.length;return u=>{let o="";for(let l=0;l<r;l++)if(o+=t[l],u[l]!==void 0){const c=n[l];c===cb?o+=Ql(u[l]):c===db?o+=Nn.transform(u[l]):o+=u[l]}return o}}const nz=e=>typeof e=="number"?0:e;function rz(e){const t=fb(e);return hb(e)(t.map(nz))}const Fu={test:Q6,parse:fb,createTransformer:hb,getAnimatableNone:rz},iz=new Set(["brightness","contrast","saturate","opacity"]);function uz(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(f_)||[];if(!r)return e;const u=n.replace(r,"");let o=iz.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+u+")"}const az=/\b([a-z-]*)\(.*?\)/gu,og={...Fu,getAnimatableNone:e=>{const t=e.match(az);return t?t.map(uz).join(" "):e}},sz={...X4,color:Nn,backgroundColor:Nn,outlineColor:Nn,fill:Nn,stroke:Nn,borderColor:Nn,borderTopColor:Nn,borderRightColor:Nn,borderBottomColor:Nn,borderLeftColor:Nn,filter:og,WebkitFilter:og},A_=e=>sz[e];function Ab(e,t){let n=A_(e);return n!==og&&(n=Fu),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const oz=new Set(["auto","none","0"]);function lz(e,t,n){let r=0,u;for(;r<e.length&&!u;){const o=e[r];typeof o=="string"&&!oz.has(o)&&Tc(o).values.length&&(u=e[r]),r++}if(u&&n)for(const o of t)e[o]=Ab(n,u)}const IC=e=>e===yo||e===Ue,yC=(e,t)=>parseFloat(e.split(", ")[t]),CC=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const u=r.match(/^matrix3d\((.+)\)$/u);if(u)return yC(u[1],t);{const o=r.match(/^matrix\((.+)\)$/u);return o?yC(o[1],e):0}},cz=new Set(["x","y","z"]),dz=Io.filter(e=>!cz.has(e));function fz(e){const t=[];return dz.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const ao={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:CC(4,13),y:CC(5,14)};ao.translateX=ao.x;ao.translateY=ao.y;const Ta=new Set;let lg=!1,cg=!1;function mb(){if(cg){const e=Array.from(Ta).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const u=fz(r);u.length&&(n.set(r,u),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const u=n.get(r);u&&u.forEach(([o,l])=>{var c;(c=r.getValue(o))===null||c===void 0||c.set(l)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}cg=!1,lg=!1,Ta.forEach(e=>e.complete()),Ta.clear()}function pb(){Ta.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(cg=!0)})}function hz(){pb(),mb()}let m_=class{constructor(t,n,r,u,o,l=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=u,this.element=o,this.isAsync=l}scheduleResolve(){this.isScheduled=!0,this.isAsync?(Ta.add(this),lg||(lg=!0,yt.read(pb),yt.resolveKeyframes(mb))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:u}=this;for(let o=0;o<t.length;o++)if(t[o]===null)if(o===0){const l=u==null?void 0:u.get(),c=t[t.length-1];if(l!==void 0)t[0]=l;else if(r&&n){const f=r.readValue(n,c);f!=null&&(t[0]=f)}t[0]===void 0&&(t[0]=c),u&&l===void 0&&u.set(t[0])}else t[o]=t[o-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),Ta.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,Ta.delete(this))}resume(){this.isComplete||this.scheduleResolve()}};const Eb=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),Az=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function mz(e){const t=Az.exec(e);if(!t)return[,];const[,n,r,u]=t;return[`--${n??r}`,u]}function gb(e,t,n=1){const[r,u]=mz(e);if(!r)return;const o=window.getComputedStyle(t).getPropertyValue(r);if(o){const l=o.trim();return Eb(l)?parseFloat(l):l}return q4(u)?gb(u,t,n+1):u}const _b=e=>t=>t.test(e),pz={test:e=>e==="auto",parse:e=>e},Sb=[yo,Ue,Qr,gu,o6,s6,pz],vC=e=>Sb.find(_b(e));let Nb=class extends m_{constructor(t,n,r,u,o){super(t,n,r,u,o,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let f=0;f<t.length;f++){let h=t[f];if(typeof h=="string"&&(h=h.trim(),q4(h))){const m=gb(h,n.current);m!==void 0&&(t[f]=m),f===t.length-1&&(this.finalKeyframe=h)}}if(this.resolveNoneKeyframes(),!XT.has(r)||t.length!==2)return;const[u,o]=t,l=vC(u),c=vC(o);if(l!==c)if(IC(l)&&IC(c))for(let f=0;f<t.length;f++){const h=t[f];typeof h=="string"&&(t[f]=parseFloat(h))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let u=0;u<t.length;u++)$6(t[u])&&r.push(u);r.length&&lz(t,r,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:r}=this;if(!t||!t.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=ao[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const u=n[n.length-1];u!==void 0&&t.getValue(r,u).jump(u,!1)}measureEndState(){var t;const{element:n,name:r,unresolvedKeyframes:u}=this;if(!n||!n.current)return;const o=n.getValue(r);o&&o.jump(this.measuredOrigin,!1);const l=u.length-1,c=u[l];u[l]=ao[r](n.measureViewportBox(),window.getComputedStyle(n.current)),c!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=c),!((t=this.removedTransforms)===null||t===void 0)&&t.length&&this.removedTransforms.forEach(([f,h])=>{n.getValue(f).set(h)}),this.resolveNoneKeyframes()}};const RC=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Fu.test(e)||e==="0")&&!e.startsWith("url("));function Ez(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function gz(e,t,n,r){const u=e[0];if(u===null)return!1;if(t==="display"||t==="visibility")return!0;const o=e[e.length-1],l=RC(u,t),c=RC(o,t);return!l||!c?!1:Ez(e)||(n==="spring"||Co(n))&&r}const _z=e=>e!==null;function jh(e,{repeat:t,repeatType:n="loop"},r){const u=e.filter(_z),o=t&&n!=="loop"&&t%2===1?0:u.length-1;return!o||r===void 0?u[o]:r}const Sz=40;let Ib=class{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:u=0,repeatDelay:o=0,repeatType:l="loop",...c}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=Jr.now(),this.options={autoplay:t,delay:n,type:r,repeat:u,repeatDelay:o,repeatType:l,...c},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>Sz?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&hz(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=Jr.now(),this.hasAttemptedResolve=!0;const{name:r,type:u,velocity:o,delay:l,onComplete:c,onUpdate:f,isGenerator:h}=this.options;if(!h&&!gz(t,r,u,o))if(l)this.options.duration=0;else{f&&f(jh(t,this.options,n)),c&&c(),this.resolveFinishedPromise();return}const m=this.initPlayback(t,n);m!==!1&&(this._resolved={keyframes:t,finalKeyframe:n,...m},this.onPostResolved())}onPostResolved(){}then(t,n){return this.currentFinishedPromise.then(t,n)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}};const Tt=(e,t,n)=>e+(t-e)*n;function qp(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function Nz({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let u=0,o=0,l=0;if(!t)u=o=l=n;else{const c=n<.5?n*(1+t):n+t-n*t,f=2*n-c;u=qp(f,c,e+1/3),o=qp(f,c,e),l=qp(f,c,e-1/3)}return{red:Math.round(u*255),green:Math.round(o*255),blue:Math.round(l*255),alpha:r}}function Gf(e,t){return n=>n>0?t:e}const Xp=(e,t,n)=>{const r=e*e,u=n*(t*t-r)+r;return u<0?0:Math.sqrt(u)},Iz=[sg,ya,Gs],yz=e=>Iz.find(t=>t.test(e));function DC(e){const t=yz(e);if(!t)return!1;let n=t.parse(e);return t===Gs&&(n=Nz(n)),n}const TC=(e,t)=>{const n=DC(e),r=DC(t);if(!n||!r)return Gf(e,t);const u={...n};return o=>(u.red=Xp(n.red,r.red,o),u.green=Xp(n.green,r.green,o),u.blue=Xp(n.blue,r.blue,o),u.alpha=Tt(n.alpha,r.alpha,o),ya.transform(u))},Cz=(e,t)=>n=>t(e(n)),ud=(...e)=>e.reduce(Cz),dg=new Set(["none","hidden"]);function vz(e,t){return dg.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function Rz(e,t){return n=>Tt(e,t,n)}function p_(e){return typeof e=="number"?Rz:typeof e=="string"?q4(e)?Gf:Nn.test(e)?TC:bz:Array.isArray(e)?yb:typeof e=="object"?Nn.test(e)?TC:Dz:Gf}function yb(e,t){const n=[...e],r=n.length,u=e.map((o,l)=>p_(o)(o,t[l]));return o=>{for(let l=0;l<r;l++)n[l]=u[l](o);return n}}function Dz(e,t){const n={...e,...t},r={};for(const u in n)e[u]!==void 0&&t[u]!==void 0&&(r[u]=p_(e[u])(e[u],t[u]));return u=>{for(const o in r)n[o]=r[o](u);return n}}function Tz(e,t){var n;const r=[],u={color:0,var:0,number:0};for(let o=0;o<t.values.length;o++){const l=t.types[o],c=e.indexes[l][u[l]],f=(n=e.values[c])!==null&&n!==void 0?n:0;r[o]=f,u[l]++}return r}const bz=(e,t)=>{const n=Fu.createTransformer(t),r=Tc(e),u=Tc(t);return r.indexes.var.length===u.indexes.var.length&&r.indexes.color.length===u.indexes.color.length&&r.indexes.number.length>=u.indexes.number.length?dg.has(e)&&!u.values.length||dg.has(t)&&!r.values.length?vz(e,t):ud(yb(Tz(r,u),u.values),n):Gf(e,t)};function Cb(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?Tt(e,t,n):p_(e)(e,t)}const xz=5;function vb(e,t,n){const r=Math.max(t-xz,0);return QT(n-e(r),t-r)}const Lt={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},bC=.001;function Bz({duration:e=Lt.duration,bounce:t=Lt.bounce,velocity:n=Lt.velocity,mass:r=Lt.mass}){let u,o,l=1-t;l=Ui(Lt.minDamping,Lt.maxDamping,l),e=Ui(Lt.minDuration,Lt.maxDuration,mn(e)),l<1?(u=h=>{const m=h*l,E=m*e,g=m-n,_=fg(h,l),S=Math.exp(-E);return bC-g/_*S},o=h=>{const E=h*l*e,g=E*n+n,_=Math.pow(l,2)*Math.pow(h,2)*e,S=Math.exp(-E),C=fg(Math.pow(h,2),l);return(-u(h)+bC>0?-1:1)*((g-_)*S)/C}):(u=h=>{const m=Math.exp(-h*e),E=(h-n)*e+1;return-.001+m*E},o=h=>{const m=Math.exp(-h*e),E=(n-h)*(e*e);return m*E});const c=5/e,f=Oz(u,o,c);if(e=An(e),isNaN(f))return{stiffness:Lt.stiffness,damping:Lt.damping,duration:e};{const h=Math.pow(f,2)*r;return{stiffness:h,damping:l*2*Math.sqrt(r*h),duration:e}}}const Fz=12;function Oz(e,t,n){let r=n;for(let u=1;u<Fz;u++)r=r-e(r)/t(r);return r}function fg(e,t){return e*Math.sqrt(1-t*t)}const Lz=["duration","bounce"],wz=["stiffness","damping","mass"];function xC(e,t){return t.some(n=>e[n]!==void 0)}function Mz(e){let t={velocity:Lt.velocity,stiffness:Lt.stiffness,damping:Lt.damping,mass:Lt.mass,isResolvedFromDuration:!1,...e};if(!xC(e,wz)&&xC(e,Lz))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),u=r*r,o=2*Ui(.05,1,1-(e.bounce||0))*Math.sqrt(u);t={...t,mass:Lt.mass,stiffness:u,damping:o}}else{const n=Bz(e);t={...t,...n,mass:Lt.mass},t.isResolvedFromDuration=!0}return t}function Rb(e=Lt.visualDuration,t=Lt.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:u}=n;const o=n.keyframes[0],l=n.keyframes[n.keyframes.length-1],c={done:!1,value:o},{stiffness:f,damping:h,mass:m,duration:E,velocity:g,isResolvedFromDuration:_}=Mz({...n,velocity:-mn(n.velocity||0)}),S=g||0,C=h/(2*Math.sqrt(f*m)),v=l-o,R=mn(Math.sqrt(f/m)),D=Math.abs(v)<5;r||(r=D?Lt.restSpeed.granular:Lt.restSpeed.default),u||(u=D?Lt.restDelta.granular:Lt.restDelta.default);let b;if(C<1){const x=fg(R,C);b=B=>{const O=Math.exp(-C*R*B);return l-O*((S+C*R*v)/x*Math.sin(x*B)+v*Math.cos(x*B))}}else if(C===1)b=x=>l-Math.exp(-R*x)*(v+(S+R*v)*x);else{const x=R*Math.sqrt(C*C-1);b=B=>{const O=Math.exp(-C*R*B),H=Math.min(x*B,300);return l-O*((S+C*R*v)*Math.sinh(H)+x*v*Math.cosh(H))/x}}const L={calculatedDuration:_&&E||null,next:x=>{const B=b(x);if(_)c.done=x>=E;else{let O=0;C<1&&(O=x===0?An(S):vb(b,x,B));const H=Math.abs(O)<=r,U=Math.abs(l-B)<=u;c.done=H&&U}return c.value=c.done?l:B,c},toString:()=>{const x=Math.min(Gh(L),Uf),B=r_(O=>L.next(x*O).value,x,30);return x+"ms "+B}};return L}function BC({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:u=10,bounceStiffness:o=500,modifyTarget:l,min:c,max:f,restDelta:h=.5,restSpeed:m}){const E=e[0],g={done:!1,value:E},_=H=>c!==void 0&&H<c||f!==void 0&&H>f,S=H=>c===void 0?f:f===void 0||Math.abs(c-H)<Math.abs(f-H)?c:f;let C=n*t;const v=E+C,R=l===void 0?v:l(v);R!==v&&(C=R-E);const D=H=>-C*Math.exp(-H/r),b=H=>R+D(H),L=H=>{const U=D(H),G=b(H);g.done=Math.abs(U)<=h,g.value=g.done?R:G};let x,B;const O=H=>{_(g.value)&&(x=H,B=Rb({keyframes:[g.value,S(g.value)],velocity:vb(b,H,g.value),damping:u,stiffness:o,restDelta:h,restSpeed:m}))};return O(0),{calculatedDuration:null,next:H=>{let U=!1;return!B&&x===void 0&&(U=!0,L(H),O(H)),x!==void 0&&H>=x?B.next(H-x):(!U&&L(H),g)}}}const Pz=id(.42,0,1,1),Hz=id(0,0,.58,1),Db=id(.42,0,.58,1),Uz=e=>Array.isArray(e)&&typeof e[0]!="number",kz={linear:Xt,easeIn:Pz,easeInOut:Db,easeOut:Hz,circIn:d_,circInOut:sb,circOut:ab,backIn:c_,backInOut:ib,backOut:rb,anticipate:ub},FC=e=>{if(Vh(e)){wh(e.length===4);const[t,n,r,u]=e;return id(t,n,r,u)}else if(typeof e=="string")return kz[e];return e};function Gz(e,t,n){const r=[],u=n||Cb,o=e.length-1;for(let l=0;l<o;l++){let c=u(e[l],e[l+1]);if(t){const f=Array.isArray(t)?t[l]||Xt:t;c=ud(f,c)}r.push(c)}return r}function Vz(e,t,{clamp:n=!0,ease:r,mixer:u}={}){const o=e.length;if(wh(o===t.length),o===1)return()=>t[0];if(o===2&&t[0]===t[1])return()=>t[1];const l=e[0]===e[1];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());const c=Gz(t,r,u),f=c.length,h=m=>{if(l&&m<e[0])return t[0];let E=0;if(f>1)for(;E<e.length-2&&!(m<e[E+1]);E++);const g=xu(e[E],e[E+1],m);return c[E](g)};return n?m=>h(Ui(e[0],e[o-1],m)):h}function jz(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const u=xu(0,t,r);e.push(Tt(n,1,u))}}function zz(e){const t=[0];return jz(t,e.length-1),t}function Kz(e,t){return e.map(n=>n*t)}function $z(e,t){return e.map(()=>t||Db).splice(0,e.length-1)}function Vf({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const u=Uz(r)?r.map(FC):FC(r),o={done:!1,value:t[0]},l=Kz(n&&n.length===t.length?n:zz(t),e),c=Vz(l,t,{ease:Array.isArray(u)?u:$z(t,u)});return{calculatedDuration:e,next:f=>(o.value=c(f),o.done=f>=e,o)}}const Yz=e=>{const t=({timestamp:n})=>e(n);return{start:()=>yt.update(t,!0),stop:()=>Bu(t),now:()=>hn.isProcessing?hn.timestamp:Jr.now()}},Zz={decay:BC,inertia:BC,tween:Vf,keyframes:Vf,spring:Rb},Wz=e=>e/100;let E_=class extends Ib{constructor(t){super(t),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:f}=this.options;f&&f()};const{name:n,motionValue:r,element:u,keyframes:o}=this.options,l=(u==null?void 0:u.KeyframeResolver)||m_,c=(f,h)=>this.onKeyframesResolved(f,h);this.resolver=new l(o,c,n,r,u),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){const{type:n="keyframes",repeat:r=0,repeatDelay:u=0,repeatType:o,velocity:l=0}=this.options,c=Co(n)?n:Zz[n]||Vf;let f,h;c!==Vf&&typeof t[0]!="number"&&(f=ud(Wz,Cb(t[0],t[1])),t=[0,100]);const m=c({...this.options,keyframes:t});o==="mirror"&&(h=c({...this.options,keyframes:[...t].reverse(),velocity:-l})),m.calculatedDuration===null&&(m.calculatedDuration=Gh(m));const{calculatedDuration:E}=m,g=E+u,_=g*(r+1)-u;return{generator:m,mirroredGenerator:h,mapPercentToKeyframes:f,calculatedDuration:E,resolvedDuration:g,totalDuration:_}}onPostResolved(){const{autoplay:t=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!t?this.pause():this.state=this.pendingPlayState}tick(t,n=!1){const{resolved:r}=this;if(!r){const{keyframes:H}=this.options;return{done:!0,value:H[H.length-1]}}const{finalKeyframe:u,generator:o,mirroredGenerator:l,mapPercentToKeyframes:c,keyframes:f,calculatedDuration:h,totalDuration:m,resolvedDuration:E}=r;if(this.startTime===null)return o.next(0);const{delay:g,repeat:_,repeatType:S,repeatDelay:C,onUpdate:v}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-m/this.speed,this.startTime)),n?this.currentTime=t:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;const R=this.currentTime-g*(this.speed>=0?1:-1),D=this.speed>=0?R<0:R>m;this.currentTime=Math.max(R,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=m);let b=this.currentTime,L=o;if(_){const H=Math.min(this.currentTime,m)/E;let U=Math.floor(H),G=H%1;!G&&H>=1&&(G=1),G===1&&U--,U=Math.min(U,_+1),!!(U%2)&&(S==="reverse"?(G=1-G,C&&(G-=C/E)):S==="mirror"&&(L=l)),b=Ui(0,1,G)*E}const x=D?{done:!1,value:f[0]}:L.next(b);c&&(x.value=c(x.value));let{done:B}=x;!D&&h!==null&&(B=this.speed>=0?this.currentTime>=m:this.currentTime<=0);const O=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&B);return O&&u!==void 0&&(x.value=jh(f,this.options,u)),v&&v(x.value),O&&this.finish(),x}get duration(){const{resolved:t}=this;return t?mn(t.calculatedDuration):0}get time(){return mn(this.currentTime)}set time(t){t=An(t),this.currentTime=t,this.holdTime!==null||this.speed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=mn(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=Yz,onPlay:n,startTime:r}=this.options;this.driver||(this.driver=t(o=>this.tick(o))),n&&n();const u=this.driver.now();this.holdTime!==null?this.startTime=u-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=u):this.startTime=r??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(t=this.currentTime)!==null&&t!==void 0?t:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:t}=this.options;t&&t()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}};const qz=new Set(["opacity","clipPath","filter","transform"]);function Xz(e,t,n,{delay:r=0,duration:u=300,repeat:o=0,repeatType:l="loop",ease:c="easeInOut",times:f}={}){const h={[t]:n};f&&(h.offset=f);const m=u_(c,u);return Array.isArray(m)&&(h.easing=m),e.animate(h,{delay:r,duration:u,easing:Array.isArray(m)?"linear":m,fill:"both",iterations:o+1,direction:l==="reverse"?"alternate":"normal"})}const Qz=Mh(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),jf=10,Jz=2e4;function eK(e){return Co(e.type)||e.type==="spring"||!i_(e.ease)}function tK(e,t){const n=new E_({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:e[0]};const u=[];let o=0;for(;!r.done&&o<Jz;)r=n.sample(o),u.push(r.value),o+=jf;return{times:void 0,keyframes:u,duration:o-jf,ease:"linear"}}const Tb={anticipate:ub,backInOut:ib,circInOut:sb};function nK(e){return e in Tb}let OC=class extends Ib{constructor(t){super(t);const{name:n,motionValue:r,element:u,keyframes:o}=this.options;this.resolver=new Nb(o,(l,c)=>this.onKeyframesResolved(l,c),n,r,u),this.resolver.scheduleResolve()}initPlayback(t,n){let{duration:r=300,times:u,ease:o,type:l,motionValue:c,name:f,startTime:h}=this.options;if(!c.owner||!c.owner.current)return!1;if(typeof o=="string"&&Rc()&&nK(o)&&(o=Tb[o]),eK(this.options)){const{onComplete:E,onUpdate:g,motionValue:_,element:S,...C}=this.options,v=tK(t,C);t=v.keyframes,t.length===1&&(t[1]=t[0]),r=v.duration,u=v.times,o=v.ease,l="keyframes"}const m=Xz(c.owner.current,f,t,{...this.options,duration:r,times:u,ease:o});return m.startTime=h??this.calcStartTime(),this.pendingTimeline?(kf(m,this.pendingTimeline),this.pendingTimeline=void 0):m.onfinish=()=>{const{onComplete:E}=this.options;c.set(jh(t,this.options,n)),E&&E(),this.cancel(),this.resolveFinishedPromise()},{animation:m,duration:r,times:u,type:l,ease:o,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return mn(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return mn(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=An(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:n}=t;return n.playbackRate}set speed(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:n}=t;return n.playState}get startTime(){const{resolved:t}=this;if(!t)return null;const{animation:n}=t;return n.startTime}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{const{resolved:n}=this;if(!n)return Xt;const{animation:r}=n;kf(r,t)}return Xt}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:t}=this;if(!t)return;const{animation:n,keyframes:r,duration:u,type:o,ease:l,times:c}=t;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:h,onUpdate:m,onComplete:E,element:g,..._}=this.options,S=new E_({..._,keyframes:r,duration:u,type:o,ease:l,times:c,isGenerator:!0}),C=An(this.time);h.setWithVelocity(S.sample(C-jf).value,S.sample(C).value,jf)}const{onStop:f}=this.options;f&&f(),this.cancel()}complete(){const{resolved:t}=this;t&&t.animation.finish()}cancel(){const{resolved:t}=this;t&&t.animation.cancel()}static supports(t){const{motionValue:n,name:r,repeatDelay:u,repeatType:o,damping:l,type:c}=t;if(!n||!n.owner||!(n.owner.current instanceof HTMLElement))return!1;const{onUpdate:f,transformTemplate:h}=n.owner.getProps();return Qz()&&r&&qz.has(r)&&!f&&!h&&!u&&o!=="mirror"&&l!==0&&c!=="inertia"}};const rK={type:"spring",stiffness:500,damping:25,restSpeed:10},iK=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),uK={type:"keyframes",duration:.8},aK={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},sK=(e,{keyframes:t})=>t.length>2?uK:ja.has(e)?e.startsWith("scale")?iK(t[1]):rK:aK;function oK({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:u,repeat:o,repeatType:l,repeatDelay:c,from:f,elapsed:h,...m}){return!!Object.keys(m).length}const g_=(e,t,n,r={},u,o)=>l=>{const c=rd(r,e)||{},f=c.delay||r.delay||0;let{elapsed:h=0}=r;h=h-An(f);let m={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...c,delay:-h,onUpdate:g=>{t.set(g),c.onUpdate&&c.onUpdate(g)},onComplete:()=>{l(),c.onComplete&&c.onComplete()},name:e,motionValue:t,element:o?void 0:u};oK(c)||(m={...m,...sK(e,m)}),m.duration&&(m.duration=An(m.duration)),m.repeatDelay&&(m.repeatDelay=An(m.repeatDelay)),m.from!==void 0&&(m.keyframes[0]=m.from);let E=!1;if((m.type===!1||m.duration===0&&!m.repeatDelay)&&(m.duration=0,m.delay===0&&(E=!0)),E&&!o&&t.get()!==void 0){const g=jh(m.keyframes,c);if(g!==void 0)return yt.update(()=>{m.onUpdate(g),m.onComplete()}),new KT([])}return!o&&OC.supports(m)?new OC(m):new E_(m)};function lK({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function bb(e,t,{delay:n=0,transitionOverride:r,type:u}={}){var o;let{transition:l=e.getDefaultTransition(),transitionEnd:c,...f}=t;r&&(l=r);const h=[],m=u&&e.animationState&&e.animationState.getState()[u];for(const E in f){const g=e.getValue(E,(o=e.latestValues[E])!==null&&o!==void 0?o:null),_=f[E];if(_===void 0||m&&lK(m,E))continue;const S={delay:n,...rd(l||{},E)};let C=!1;if(window.MotionHandoffAnimation){const R=JT(e);if(R){const D=window.MotionHandoffAnimation(R,E,yt);D!==null&&(S.startTime=D,C=!0)}}ag(e,E),g.start(g_(E,g,_,e.shouldReduceMotion&&XT.has(E)?{type:!1}:S,e,C));const v=g.animation;v&&h.push(v)}return c&&Promise.all(h).then(()=>{yt.update(()=>{c&&G6(e,c)})}),h}function hg(e,t,n={}){var r;const u=kh(e,t,n.type==="exit"?(r=e.presenceContext)===null||r===void 0?void 0:r.custom:void 0);let{transition:o=e.getDefaultTransition()||{}}=u||{};n.transitionOverride&&(o=n.transitionOverride);const l=u?()=>Promise.all(bb(e,u,n)):()=>Promise.resolve(),c=e.variantChildren&&e.variantChildren.size?(h=0)=>{const{delayChildren:m=0,staggerChildren:E,staggerDirection:g}=o;return cK(e,t,m+h,E,g,n)}:()=>Promise.resolve(),{when:f}=o;if(f){const[h,m]=f==="beforeChildren"?[l,c]:[c,l];return h().then(()=>m())}else return Promise.all([l(),c(n.delay)])}function cK(e,t,n=0,r=0,u=1,o){const l=[],c=(e.variantChildren.size-1)*r,f=u===1?(h=0)=>h*r:(h=0)=>c-h*r;return Array.from(e.variantChildren).sort(dK).forEach((h,m)=>{h.notify("AnimationStart",t),l.push(hg(h,t,{...o,delay:n+f(m)}).then(()=>h.notify("AnimationComplete",t)))}),Promise.all(l)}function dK(e,t){return e.sortNodePosition(t)}function fK(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const u=t.map(o=>hg(e,o,n));r=Promise.all(u)}else if(typeof t=="string")r=hg(e,t,n);else{const u=typeof t=="function"?kh(e,t,n.custom):t;r=Promise.all(bb(e,u,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}const hK=K4.length;function xb(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?xb(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<hK;n++){const r=K4[n],u=e.props[r];(Cc(u)||u===!1)&&(t[r]=u)}return t}const AK=[...z4].reverse(),mK=z4.length;function pK(e){return t=>Promise.all(t.map(({animation:n,options:r})=>fK(e,n,r)))}function EK(e){let t=pK(e),n=LC(),r=!0;const u=f=>(h,m)=>{var E;const g=kh(e,m,f==="exit"?(E=e.presenceContext)===null||E===void 0?void 0:E.custom:void 0);if(g){const{transition:_,transitionEnd:S,...C}=g;h={...h,...C,...S}}return h};function o(f){t=f(e)}function l(f){const{props:h}=e,m=xb(e.parent)||{},E=[],g=new Set;let _={},S=1/0;for(let v=0;v<mK;v++){const R=AK[v],D=n[R],b=h[R]!==void 0?h[R]:m[R],L=Cc(b),x=R===f?D.isActive:null;x===!1&&(S=v);let B=b===m[R]&&b!==h[R]&&L;if(B&&r&&e.manuallyAnimateOnMount&&(B=!1),D.protectedKeys={..._},!D.isActive&&x===null||!b&&!D.prevProp||Hh(b)||typeof b=="boolean")continue;const O=gK(D.prevProp,b);let H=O||R===f&&D.isActive&&!B&&L||v>S&&L,U=!1;const G=Array.isArray(b)?b:[b];let fe=G.reduce(u(R),{});x===!1&&(fe={});const{prevResolvedValues:ae={}}=D,ce={...ae,...fe},Z=ee=>{H=!0,g.has(ee)&&(U=!0,g.delete(ee)),D.needsAnimating[ee]=!0;const Q=e.getValue(ee);Q&&(Q.liveStyle=!1)};for(const ee in ce){const Q=fe[ee],Ae=ae[ee];if(_.hasOwnProperty(ee))continue;let P=!1;ig(Q)&&ig(Ae)?P=!zT(Q,Ae):P=Q!==Ae,P?Q!=null?Z(ee):g.add(ee):Q!==void 0&&g.has(ee)?Z(ee):D.protectedKeys[ee]=!0}D.prevProp=b,D.prevResolvedValues=fe,D.isActive&&(_={..._,...fe}),r&&e.blockInitialAnimation&&(H=!1),H&&(!(B&&O)||U)&&E.push(...G.map(ee=>({animation:ee,options:{type:R}})))}if(g.size){const v={};g.forEach(R=>{const D=e.getBaseTarget(R),b=e.getValue(R);b&&(b.liveStyle=!0),v[R]=D??null}),E.push({animation:v})}let C=!!E.length;return r&&(h.initial===!1||h.initial===h.animate)&&!e.manuallyAnimateOnMount&&(C=!1),r=!1,C?t(E):Promise.resolve()}function c(f,h){var m;if(n[f].isActive===h)return Promise.resolve();(m=e.variantChildren)===null||m===void 0||m.forEach(g=>{var _;return(_=g.animationState)===null||_===void 0?void 0:_.setActive(f,h)}),n[f].isActive=h;const E=l(f);for(const g in n)n[g].protectedKeys={};return E}return{animateChanges:l,setActive:c,setAnimateFunction:o,getState:()=>n,reset:()=>{n=LC(),r=!0}}}function gK(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!zT(t,e):!1}function ma(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function LC(){return{animate:ma(!0),whileInView:ma(),whileHover:ma(),whileTap:ma(),whileDrag:ma(),whileFocus:ma(),exit:ma()}}let Gu=class{constructor(t){this.isMounted=!1,this.node=t}update(){}},_K=class extends Gu{constructor(t){super(t),t.animationState||(t.animationState=EK(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Hh(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)===null||t===void 0||t.call(this)}},SK=0,NK=class extends Gu{constructor(){super(...arguments),this.id=SK++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const u=this.node.animationState.setActive("exit",!t);n&&!t&&u.then(()=>n(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}};const IK={animation:{Feature:_K},exit:{Feature:NK}};function bc(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function ad(e){return{point:{x:e.pageX,y:e.pageY}}}const yK=e=>t=>a_(t)&&e(t,ad(t));function Jl(e,t,n,r){return bc(e,t,yK(n),r)}const wC=(e,t)=>Math.abs(e-t);function CK(e,t){const n=wC(e.x,t.x),r=wC(e.y,t.y);return Math.sqrt(n**2+r**2)}class Bb{constructor(t,n,{transformPagePoint:r,contextWindow:u,dragSnapToOrigin:o=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const E=Jp(this.lastMoveEventInfo,this.history),g=this.startEvent!==null,_=CK(E.offset,{x:0,y:0})>=3;if(!g&&!_)return;const{point:S}=E,{timestamp:C}=hn;this.history.push({...S,timestamp:C});const{onStart:v,onMove:R}=this.handlers;g||(v&&v(this.lastMoveEvent,E),this.startEvent=this.lastMoveEvent),R&&R(this.lastMoveEvent,E)},this.handlePointerMove=(E,g)=>{this.lastMoveEvent=E,this.lastMoveEventInfo=Qp(g,this.transformPagePoint),yt.update(this.updatePoint,!0)},this.handlePointerUp=(E,g)=>{this.end();const{onEnd:_,onSessionEnd:S,resumeAnimation:C}=this.handlers;if(this.dragSnapToOrigin&&C&&C(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const v=Jp(E.type==="pointercancel"?this.lastMoveEventInfo:Qp(g,this.transformPagePoint),this.history);this.startEvent&&_&&_(E,v),S&&S(E,v)},!a_(t))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=r,this.contextWindow=u||window;const l=ad(t),c=Qp(l,this.transformPagePoint),{point:f}=c,{timestamp:h}=hn;this.history=[{...f,timestamp:h}];const{onSessionStart:m}=n;m&&m(t,Jp(c,this.history)),this.removeListeners=ud(Jl(this.contextWindow,"pointermove",this.handlePointerMove),Jl(this.contextWindow,"pointerup",this.handlePointerUp),Jl(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Bu(this.updatePoint)}}function Qp(e,t){return t?{point:t(e.point)}:e}function MC(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Jp({point:e},t){return{point:e,delta:MC(e,Fb(t)),offset:MC(e,vK(t)),velocity:RK(t,.1)}}function vK(e){return e[0]}function Fb(e){return e[e.length-1]}function RK(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const u=Fb(e);for(;n>=0&&(r=e[n],!(u.timestamp-r.timestamp>An(t)));)n--;if(!r)return{x:0,y:0};const o=mn(u.timestamp-r.timestamp);if(o===0)return{x:0,y:0};const l={x:(u.x-r.x)/o,y:(u.y-r.y)/o};return l.x===1/0&&(l.x=0),l.y===1/0&&(l.y=0),l}const Ob=1e-4,DK=1-Ob,TK=1+Ob,Lb=.01,bK=0-Lb,xK=0+Lb;function tr(e){return e.max-e.min}function BK(e,t,n){return Math.abs(e-t)<=n}function PC(e,t,n,r=.5){e.origin=r,e.originPoint=Tt(t.min,t.max,e.origin),e.scale=tr(n)/tr(t),e.translate=Tt(n.min,n.max,e.origin)-e.originPoint,(e.scale>=DK&&e.scale<=TK||isNaN(e.scale))&&(e.scale=1),(e.translate>=bK&&e.translate<=xK||isNaN(e.translate))&&(e.translate=0)}function ec(e,t,n,r){PC(e.x,t.x,n.x,r?r.originX:void 0),PC(e.y,t.y,n.y,r?r.originY:void 0)}function HC(e,t,n){e.min=n.min+t.min,e.max=e.min+tr(t)}function FK(e,t,n){HC(e.x,t.x,n.x),HC(e.y,t.y,n.y)}function UC(e,t,n){e.min=t.min-n.min,e.max=e.min+tr(t)}function tc(e,t,n){UC(e.x,t.x,n.x),UC(e.y,t.y,n.y)}function OK(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?Tt(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?Tt(n,e,r.max):Math.min(e,n)),e}function kC(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function LK(e,{top:t,left:n,bottom:r,right:u}){return{x:kC(e.x,n,u),y:kC(e.y,t,r)}}function GC(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function wK(e,t){return{x:GC(e.x,t.x),y:GC(e.y,t.y)}}function MK(e,t){let n=.5;const r=tr(e),u=tr(t);return u>r?n=xu(t.min,t.max-r,e.min):r>u&&(n=xu(e.min,e.max-u,t.min)),Ui(0,1,n)}function PK(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const Ag=.35;function HK(e=Ag){return e===!1?e=0:e===!0&&(e=Ag),{x:VC(e,"left","right"),y:VC(e,"top","bottom")}}function VC(e,t,n){return{min:jC(e,t),max:jC(e,n)}}function jC(e,t){return typeof e=="number"?e:e[t]||0}const zC=()=>({translate:0,scale:1,origin:0,originPoint:0}),Vs=()=>({x:zC(),y:zC()}),KC=()=>({min:0,max:0}),Ut=()=>({x:KC(),y:KC()});function pr(e){return[e("x"),e("y")]}function wb({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function UK({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function kK(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function eE(e){return e===void 0||e===1}function mg({scale:e,scaleX:t,scaleY:n}){return!eE(e)||!eE(t)||!eE(n)}function Ea(e){return mg(e)||Mb(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function Mb(e){return $C(e.x)||$C(e.y)}function $C(e){return e&&e!=="0%"}function zf(e,t,n){const r=e-n,u=t*r;return n+u}function YC(e,t,n,r,u){return u!==void 0&&(e=zf(e,u,r)),zf(e,n,r)+t}function pg(e,t=0,n=1,r,u){e.min=YC(e.min,t,n,r,u),e.max=YC(e.max,t,n,r,u)}function Pb(e,{x:t,y:n}){pg(e.x,t.translate,t.scale,t.originPoint),pg(e.y,n.translate,n.scale,n.originPoint)}const ZC=.999999999999,WC=1.0000000000001;function GK(e,t,n,r=!1){const u=n.length;if(!u)return;t.x=t.y=1;let o,l;for(let c=0;c<u;c++){o=n[c],l=o.projectionDelta;const{visualElement:f}=o.options;f&&f.props.style&&f.props.style.display==="contents"||(r&&o.options.layoutScroll&&o.scroll&&o!==o.root&&zs(e,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),l&&(t.x*=l.x.scale,t.y*=l.y.scale,Pb(e,l)),r&&Ea(o.latestValues)&&zs(e,o.latestValues))}t.x<WC&&t.x>ZC&&(t.x=1),t.y<WC&&t.y>ZC&&(t.y=1)}function js(e,t){e.min=e.min+t,e.max=e.max+t}function qC(e,t,n,r,u=.5){const o=Tt(e.min,e.max,u);pg(e,t,n,o,r)}function zs(e,t){qC(e.x,t.x,t.scaleX,t.scale,t.originX),qC(e.y,t.y,t.scaleY,t.scale,t.originY)}function Hb(e,t){return wb(kK(e.getBoundingClientRect(),t))}function VK(e,t,n){const r=Hb(e,n),{scroll:u}=t;return u&&(js(r.x,u.offset.x),js(r.y,u.offset.y)),r}const Ub=({current:e})=>e?e.ownerDocument.defaultView:null,jK=new WeakMap;class zK{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Ut(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const u=m=>{const{dragSnapToOrigin:E}=this.getProps();E?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(ad(m).point)},o=(m,E)=>{const{drag:g,dragPropagation:_,onDragStart:S}=this.getProps();if(g&&!_&&(this.openDragLock&&this.openDragLock(),this.openDragLock=M6(g),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),pr(v=>{let R=this.getAxisMotionValue(v).get()||0;if(Qr.test(R)){const{projection:D}=this.visualElement;if(D&&D.layout){const b=D.layout.layoutBox[v];b&&(R=tr(b)*(parseFloat(R)/100))}}this.originPoint[v]=R}),S&&yt.postRender(()=>S(m,E)),ag(this.visualElement,"transform");const{animationState:C}=this.visualElement;C&&C.setActive("whileDrag",!0)},l=(m,E)=>{const{dragPropagation:g,dragDirectionLock:_,onDirectionLock:S,onDrag:C}=this.getProps();if(!g&&!this.openDragLock)return;const{offset:v}=E;if(_&&this.currentDirection===null){this.currentDirection=KK(v),this.currentDirection!==null&&S&&S(this.currentDirection);return}this.updateAxis("x",E.point,v),this.updateAxis("y",E.point,v),this.visualElement.render(),C&&C(m,E)},c=(m,E)=>this.stop(m,E),f=()=>pr(m=>{var E;return this.getAnimationState(m)==="paused"&&((E=this.getAxisMotionValue(m).animation)===null||E===void 0?void 0:E.play())}),{dragSnapToOrigin:h}=this.getProps();this.panSession=new Bb(t,{onSessionStart:u,onStart:o,onMove:l,onSessionEnd:c,resumeAnimation:f},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:h,contextWindow:Ub(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:u}=n;this.startAnimation(u);const{onDragEnd:o}=this.getProps();o&&yt.postRender(()=>o(t,n))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:u}=this.getProps();if(!r||!H0(t,u,this.currentDirection))return;const o=this.getAxisMotionValue(t);let l=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(l=OK(l,this.constraints[t],this.elastic[t])),o.set(l)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:r}=this.getProps(),u=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,o=this.constraints;n&&ks(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&u?this.constraints=LK(u.layoutBox,n):this.constraints=!1,this.elastic=HK(r),o!==this.constraints&&u&&this.constraints&&!this.hasMutatedConstraints&&pr(l=>{this.constraints!==!1&&this.getAxisMotionValue(l)&&(this.constraints[l]=PK(u.layoutBox[l],this.constraints[l]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!ks(t))return!1;const r=t.current,{projection:u}=this.visualElement;if(!u||!u.layout)return!1;const o=VK(r,u.root,this.visualElement.getTransformPagePoint());let l=wK(u.layout.layoutBox,o);if(n){const c=n(UK(l));this.hasMutatedConstraints=!!c,c&&(l=wb(c))}return l}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:u,dragTransition:o,dragSnapToOrigin:l,onDragTransitionEnd:c}=this.getProps(),f=this.constraints||{},h=pr(m=>{if(!H0(m,n,this.currentDirection))return;let E=f&&f[m]||{};l&&(E={min:0,max:0});const g=u?200:1e6,_=u?40:1e7,S={type:"inertia",velocity:r?t[m]:0,bounceStiffness:g,bounceDamping:_,timeConstant:750,restDelta:1,restSpeed:10,...o,...E};return this.startAxisValueAnimation(m,S)});return Promise.all(h).then(c)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return ag(this.visualElement,t),r.start(g_(t,r,0,n,this.visualElement,!1))}stopAnimation(){pr(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){pr(t=>{var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),u=r[n];return u||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){pr(n=>{const{drag:r}=this.getProps();if(!H0(n,r,this.currentDirection))return;const{projection:u}=this.visualElement,o=this.getAxisMotionValue(n);if(u&&u.layout){const{min:l,max:c}=u.layout.layoutBox[n];o.set(t[n]-Tt(l,c,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!ks(n)||!r||!this.constraints)return;this.stopAnimation();const u={x:0,y:0};pr(l=>{const c=this.getAxisMotionValue(l);if(c&&this.constraints!==!1){const f=c.get();u[l]=MK({min:f,max:f},this.constraints[l])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),pr(l=>{if(!H0(l,t,null))return;const c=this.getAxisMotionValue(l),{min:f,max:h}=this.constraints[l];c.set(Tt(f,h,u[l]))})}addListeners(){if(!this.visualElement.current)return;jK.set(this.visualElement,this);const t=this.visualElement.current,n=Jl(t,"pointerdown",f=>{const{drag:h,dragListener:m=!0}=this.getProps();h&&m&&this.start(f)}),r=()=>{const{dragConstraints:f}=this.getProps();ks(f)&&f.current&&(this.constraints=this.resolveRefConstraints())},{projection:u}=this.visualElement,o=u.addEventListener("measure",r);u&&!u.layout&&(u.root&&u.root.updateScroll(),u.updateLayout()),yt.read(r);const l=bc(window,"resize",()=>this.scalePositionWithinConstraints()),c=u.addEventListener("didUpdate",({delta:f,hasLayoutChanged:h})=>{this.isDragging&&h&&(pr(m=>{const E=this.getAxisMotionValue(m);E&&(this.originPoint[m]+=f[m].translate,E.set(E.get()+f[m].translate))}),this.visualElement.render())});return()=>{l(),n(),o(),c&&c()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:u=!1,dragConstraints:o=!1,dragElastic:l=Ag,dragMomentum:c=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:u,dragConstraints:o,dragElastic:l,dragMomentum:c}}}function H0(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function KK(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class $K extends Gu{constructor(t){super(t),this.removeGroupControls=Xt,this.removeListeners=Xt,this.controls=new zK(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Xt}unmount(){this.removeGroupControls(),this.removeListeners()}}const XC=e=>(t,n)=>{e&&yt.postRender(()=>e(t,n))};class YK extends Gu{constructor(){super(...arguments),this.removePointerDownListener=Xt}onPointerDown(t){this.session=new Bb(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Ub(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:u}=this.node.getProps();return{onSessionStart:XC(t),onStart:XC(n),onMove:r,onEnd:(o,l)=>{delete this.session,u&&yt.postRender(()=>u(o,l))}}}mount(){this.removePointerDownListener=Jl(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const lf={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function QC(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Pl={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(Ue.test(e))e=parseFloat(e);else return e;const n=QC(e,t.target.x),r=QC(e,t.target.y);return`${n}% ${r}%`}},ZK={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,u=Fu.parse(e);if(u.length>5)return r;const o=Fu.createTransformer(e),l=typeof u[0]!="number"?1:0,c=n.x.scale*t.x,f=n.y.scale*t.y;u[0+l]/=c,u[1+l]/=f;const h=Tt(c,f,.5);return typeof u[2+l]=="number"&&(u[2+l]/=h),typeof u[3+l]=="number"&&(u[3+l]/=h),o(u)}};class WK extends y.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:u}=this.props,{projection:o}=t;g6(qK),o&&(n.group&&n.group.add(o),r&&r.register&&u&&r.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),lf.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:u,isPresent:o}=this.props,l=r.projection;return l&&(l.isPresent=o,u||t.layoutDependency!==n||n===void 0?l.willUpdate():this.safeToRemove(),t.isPresent!==o&&(o?l.promote():l.relegate()||yt.postRender(()=>{const c=l.getStack();(!c||!c.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),Y4.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:u}=t;u&&(u.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(u),r&&r.deregister&&r.deregister(u))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function kb(e){const[t,n]=O7(),r=y.useContext(CT);return N.jsx(WK,{...e,layoutGroup:r,switchLayoutGroup:y.useContext(BT),isPresent:t,safeToRemove:n})}const qK={borderRadius:{...Pl,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Pl,borderTopRightRadius:Pl,borderBottomLeftRadius:Pl,borderBottomRightRadius:Pl,boxShadow:ZK};function XK(e,t,n){const r=yn(e)?e:Dc(e);return r.start(g_("",r,t,n)),r.animation}function QK(e){return e instanceof SVGElement&&e.tagName!=="svg"}const JK=(e,t)=>e.depth-t.depth;class e${constructor(){this.children=[],this.isDirty=!1}add(t){s_(this.children,t),this.isDirty=!0}remove(t){o_(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(JK),this.isDirty=!1,this.children.forEach(t)}}function t$(e,t){const n=Jr.now(),r=({timestamp:u})=>{const o=u-n;o>=t&&(Bu(r),e(o-t))};return yt.read(r,!0),()=>Bu(r)}const Gb=["TopLeft","TopRight","BottomLeft","BottomRight"],n$=Gb.length,JC=e=>typeof e=="string"?parseFloat(e):e,ev=e=>typeof e=="number"||Ue.test(e);function r$(e,t,n,r,u,o){u?(e.opacity=Tt(0,n.opacity!==void 0?n.opacity:1,i$(r)),e.opacityExit=Tt(t.opacity!==void 0?t.opacity:1,0,u$(r))):o&&(e.opacity=Tt(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let l=0;l<n$;l++){const c=`border${Gb[l]}Radius`;let f=tv(t,c),h=tv(n,c);if(f===void 0&&h===void 0)continue;f||(f=0),h||(h=0),f===0||h===0||ev(f)===ev(h)?(e[c]=Math.max(Tt(JC(f),JC(h),r),0),(Qr.test(h)||Qr.test(f))&&(e[c]+="%")):e[c]=h}(t.rotate||n.rotate)&&(e.rotate=Tt(t.rotate||0,n.rotate||0,r))}function tv(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const i$=Vb(0,.5,ab),u$=Vb(.5,.95,Xt);function Vb(e,t,n){return r=>r<e?0:r>t?1:n(xu(e,t,r))}function nv(e,t){e.min=t.min,e.max=t.max}function Ar(e,t){nv(e.x,t.x),nv(e.y,t.y)}function rv(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function iv(e,t,n,r,u){return e-=t,e=zf(e,1/n,r),u!==void 0&&(e=zf(e,1/u,r)),e}function a$(e,t=0,n=1,r=.5,u,o=e,l=e){if(Qr.test(t)&&(t=parseFloat(t),t=Tt(l.min,l.max,t/100)-l.min),typeof t!="number")return;let c=Tt(o.min,o.max,r);e===o&&(c-=t),e.min=iv(e.min,t,n,c,u),e.max=iv(e.max,t,n,c,u)}function uv(e,t,[n,r,u],o,l){a$(e,t[n],t[r],t[u],t.scale,o,l)}const s$=["x","scaleX","originX"],o$=["y","scaleY","originY"];function av(e,t,n,r){uv(e.x,t,s$,n?n.x:void 0,r?r.x:void 0),uv(e.y,t,o$,n?n.y:void 0,r?r.y:void 0)}function sv(e){return e.translate===0&&e.scale===1}function jb(e){return sv(e.x)&&sv(e.y)}function ov(e,t){return e.min===t.min&&e.max===t.max}function l$(e,t){return ov(e.x,t.x)&&ov(e.y,t.y)}function lv(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function zb(e,t){return lv(e.x,t.x)&&lv(e.y,t.y)}function cv(e){return tr(e.x)/tr(e.y)}function dv(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class c${constructor(){this.members=[]}add(t){s_(this.members,t),t.scheduleRender()}remove(t){if(o_(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(u=>t===u);if(n===0)return!1;let r;for(let u=n;u>=0;u--){const o=this.members[u];if(o.isPresent!==!1){r=o;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:u}=t.options;u===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function d$(e,t,n){let r="";const u=e.x.translate/t.x,o=e.y.translate/t.y,l=(n==null?void 0:n.z)||0;if((u||o||l)&&(r=`translate3d(${u}px, ${o}px, ${l}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:h,rotate:m,rotateX:E,rotateY:g,skewX:_,skewY:S}=n;h&&(r=`perspective(${h}px) ${r}`),m&&(r+=`rotate(${m}deg) `),E&&(r+=`rotateX(${E}deg) `),g&&(r+=`rotateY(${g}deg) `),_&&(r+=`skewX(${_}deg) `),S&&(r+=`skewY(${S}deg) `)}const c=e.x.scale*t.x,f=e.y.scale*t.y;return(c!==1||f!==1)&&(r+=`scale(${c}, ${f})`),r||"none"}const ga={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},$l=typeof window<"u"&&window.MotionDebug!==void 0,tE=["","X","Y","Z"],f$={visibility:"hidden"},fv=1e3;let h$=0;function nE(e,t,n,r){const{latestValues:u}=t;u[e]&&(n[e]=u[e],t.setStaticValue(e,0),r&&(r[e]=0))}function Kb(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=JT(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:u,layoutId:o}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",yt,!(u||o))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&Kb(r)}function $b({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:u}){return class{constructor(l={},c=t==null?void 0:t()){this.id=h$++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,$l&&(ga.totalNodes=ga.resolvedTargetDeltas=ga.recalculatedProjection=0),this.nodes.forEach(p$),this.nodes.forEach(N$),this.nodes.forEach(I$),this.nodes.forEach(E$),$l&&window.MotionDebug.record(ga)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=l,this.root=c?c.root||c:this,this.path=c?[...c.path,c]:[],this.parent=c,this.depth=c?c.depth+1:0;for(let f=0;f<this.path.length;f++)this.path[f].shouldResetTransform=!0;this.root===this&&(this.nodes=new e$)}addEventListener(l,c){return this.eventHandlers.has(l)||this.eventHandlers.set(l,new l_),this.eventHandlers.get(l).add(c)}notifyListeners(l,...c){const f=this.eventHandlers.get(l);f&&f.notify(...c)}hasListeners(l){return this.eventHandlers.has(l)}mount(l,c=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=QK(l),this.instance=l;const{layoutId:f,layout:h,visualElement:m}=this.options;if(m&&!m.current&&m.mount(l),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),c&&(h||f)&&(this.isLayoutDirty=!0),e){let E;const g=()=>this.root.updateBlockedByResize=!1;e(l,()=>{this.root.updateBlockedByResize=!0,E&&E(),E=t$(g,250),lf.hasAnimatedSinceResize&&(lf.hasAnimatedSinceResize=!1,this.nodes.forEach(Av))})}f&&this.root.registerSharedNode(f,this),this.options.animate!==!1&&m&&(f||h)&&this.addEventListener("didUpdate",({delta:E,hasLayoutChanged:g,hasRelativeTargetChanged:_,layout:S})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const C=this.options.transition||m.getDefaultTransition()||D$,{onLayoutAnimationStart:v,onLayoutAnimationComplete:R}=m.getProps(),D=!this.targetLayout||!zb(this.targetLayout,S)||_,b=!g&&_;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||b||g&&(D||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(E,b);const L={...rd(C,"layout"),onPlay:v,onComplete:R};(m.shouldReduceMotion||this.options.layoutRoot)&&(L.delay=0,L.type=!1),this.startAnimation(L)}else g||Av(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=S})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const l=this.getStack();l&&l.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Bu(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(y$),this.animationId++)}getTransformTemplate(){const{visualElement:l}=this.options;return l&&l.getProps().transformTemplate}willUpdate(l=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Kb(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let m=0;m<this.path.length;m++){const E=this.path[m];E.shouldResetTransform=!0,E.updateScroll("snapshot"),E.options.layoutRoot&&E.willUpdate(!1)}const{layoutId:c,layout:f}=this.options;if(c===void 0&&!f)return;const h=this.getTransformTemplate();this.prevTransformTemplateValue=h?h(this.latestValues,""):void 0,this.updateSnapshot(),l&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(hv);return}this.isUpdating||this.nodes.forEach(_$),this.isUpdating=!1,this.nodes.forEach(S$),this.nodes.forEach(A$),this.nodes.forEach(m$),this.clearAllSnapshots();const c=Jr.now();hn.delta=Ui(0,1e3/60,c-hn.timestamp),hn.timestamp=c,hn.isProcessing=!0,Yp.update.process(hn),Yp.preRender.process(hn),Yp.render.process(hn),hn.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Y4.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(g$),this.sharedNodes.forEach(C$)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,yt.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){yt.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let f=0;f<this.path.length;f++)this.path[f].updateScroll();const l=this.layout;this.layout=this.measure(!1),this.layoutCorrected=Ut(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:c}=this.options;c&&c.notify("LayoutMeasure",this.layout.layoutBox,l?l.layoutBox:void 0)}updateScroll(l="measure"){let c=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===l&&(c=!1),c){const f=r(this.instance);this.scroll={animationId:this.root.animationId,phase:l,isRoot:f,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:f}}}resetTransform(){if(!u)return;const l=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,c=this.projectionDelta&&!jb(this.projectionDelta),f=this.getTransformTemplate(),h=f?f(this.latestValues,""):void 0,m=h!==this.prevTransformTemplateValue;l&&(c||Ea(this.latestValues)||m)&&(u(this.instance,h),this.shouldResetTransform=!1,this.scheduleRender())}measure(l=!0){const c=this.measurePageBox();let f=this.removeElementScroll(c);return l&&(f=this.removeTransform(f)),T$(f),{animationId:this.root.animationId,measuredBox:c,layoutBox:f,latestValues:{},source:this.id}}measurePageBox(){var l;const{visualElement:c}=this.options;if(!c)return Ut();const f=c.measureViewportBox();if(!(((l=this.scroll)===null||l===void 0?void 0:l.wasRoot)||this.path.some(b$))){const{scroll:m}=this.root;m&&(js(f.x,m.offset.x),js(f.y,m.offset.y))}return f}removeElementScroll(l){var c;const f=Ut();if(Ar(f,l),!((c=this.scroll)===null||c===void 0)&&c.wasRoot)return f;for(let h=0;h<this.path.length;h++){const m=this.path[h],{scroll:E,options:g}=m;m!==this.root&&E&&g.layoutScroll&&(E.wasRoot&&Ar(f,l),js(f.x,E.offset.x),js(f.y,E.offset.y))}return f}applyTransform(l,c=!1){const f=Ut();Ar(f,l);for(let h=0;h<this.path.length;h++){const m=this.path[h];!c&&m.options.layoutScroll&&m.scroll&&m!==m.root&&zs(f,{x:-m.scroll.offset.x,y:-m.scroll.offset.y}),Ea(m.latestValues)&&zs(f,m.latestValues)}return Ea(this.latestValues)&&zs(f,this.latestValues),f}removeTransform(l){const c=Ut();Ar(c,l);for(let f=0;f<this.path.length;f++){const h=this.path[f];if(!h.instance||!Ea(h.latestValues))continue;mg(h.latestValues)&&h.updateSnapshot();const m=Ut(),E=h.measurePageBox();Ar(m,E),av(c,h.latestValues,h.snapshot?h.snapshot.layoutBox:void 0,m)}return Ea(this.latestValues)&&av(c,this.latestValues),c}setTargetDelta(l){this.targetDelta=l,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(l){this.options={...this.options,...l,crossfade:l.crossfade!==void 0?l.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==hn.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(l=!1){var c;const f=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=f.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=f.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=f.isSharedProjectionDirty);const h=!!this.resumingFrom||this!==f;if(!(l||h&&this.isSharedProjectionDirty||this.isProjectionDirty||!((c=this.parent)===null||c===void 0)&&c.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:E,layoutId:g}=this.options;if(!(!this.layout||!(E||g))){if(this.resolvedRelativeTargetAt=hn.timestamp,!this.targetDelta&&!this.relativeTarget){const _=this.getClosestProjectingParent();_&&_.layout&&this.animationProgress!==1?(this.relativeParent=_,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Ut(),this.relativeTargetOrigin=Ut(),tc(this.relativeTargetOrigin,this.layout.layoutBox,_.layout.layoutBox),Ar(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=Ut(),this.targetWithTransforms=Ut()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),FK(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Ar(this.target,this.layout.layoutBox),Pb(this.target,this.targetDelta)):Ar(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const _=this.getClosestProjectingParent();_&&!!_.resumingFrom==!!this.resumingFrom&&!_.options.layoutScroll&&_.target&&this.animationProgress!==1?(this.relativeParent=_,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Ut(),this.relativeTargetOrigin=Ut(),tc(this.relativeTargetOrigin,this.target,_.target),Ar(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}$l&&ga.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||mg(this.parent.latestValues)||Mb(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var l;const c=this.getLead(),f=!!this.resumingFrom||this!==c;let h=!0;if((this.isProjectionDirty||!((l=this.parent)===null||l===void 0)&&l.isProjectionDirty)&&(h=!1),f&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(h=!1),this.resolvedRelativeTargetAt===hn.timestamp&&(h=!1),h)return;const{layout:m,layoutId:E}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(m||E))return;Ar(this.layoutCorrected,this.layout.layoutBox);const g=this.treeScale.x,_=this.treeScale.y;GK(this.layoutCorrected,this.treeScale,this.path,f),c.layout&&!c.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(c.target=c.layout.layoutBox,c.targetWithTransforms=Ut());const{target:S}=c;if(!S){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(rv(this.prevProjectionDelta.x,this.projectionDelta.x),rv(this.prevProjectionDelta.y,this.projectionDelta.y)),ec(this.projectionDelta,this.layoutCorrected,S,this.latestValues),(this.treeScale.x!==g||this.treeScale.y!==_||!dv(this.projectionDelta.x,this.prevProjectionDelta.x)||!dv(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",S)),$l&&ga.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(l=!0){var c;if((c=this.options.visualElement)===null||c===void 0||c.scheduleRender(),l){const f=this.getStack();f&&f.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Vs(),this.projectionDelta=Vs(),this.projectionDeltaWithTransform=Vs()}setAnimationOrigin(l,c=!1){const f=this.snapshot,h=f?f.latestValues:{},m={...this.latestValues},E=Vs();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!c;const g=Ut(),_=f?f.source:void 0,S=this.layout?this.layout.source:void 0,C=_!==S,v=this.getStack(),R=!v||v.members.length<=1,D=!!(C&&!R&&this.options.crossfade===!0&&!this.path.some(R$));this.animationProgress=0;let b;this.mixTargetDelta=L=>{const x=L/1e3;mv(E.x,l.x,x),mv(E.y,l.y,x),this.setTargetDelta(E),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(tc(g,this.layout.layoutBox,this.relativeParent.layout.layoutBox),v$(this.relativeTarget,this.relativeTargetOrigin,g,x),b&&l$(this.relativeTarget,b)&&(this.isProjectionDirty=!1),b||(b=Ut()),Ar(b,this.relativeTarget)),C&&(this.animationValues=m,r$(m,h,this.latestValues,x,D,R)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=x},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(l){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Bu(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=yt.update(()=>{lf.hasAnimatedSinceResize=!0,this.currentAnimation=XK(0,fv,{...l,onUpdate:c=>{this.mixTargetDelta(c),l.onUpdate&&l.onUpdate(c)},onComplete:()=>{l.onComplete&&l.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const l=this.getStack();l&&l.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(fv),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const l=this.getLead();let{targetWithTransforms:c,target:f,layout:h,latestValues:m}=l;if(!(!c||!f||!h)){if(this!==l&&this.layout&&h&&Yb(this.options.animationType,this.layout.layoutBox,h.layoutBox)){f=this.target||Ut();const E=tr(this.layout.layoutBox.x);f.x.min=l.target.x.min,f.x.max=f.x.min+E;const g=tr(this.layout.layoutBox.y);f.y.min=l.target.y.min,f.y.max=f.y.min+g}Ar(c,f),zs(c,m),ec(this.projectionDeltaWithTransform,this.layoutCorrected,c,m)}}registerSharedNode(l,c){this.sharedNodes.has(l)||this.sharedNodes.set(l,new c$),this.sharedNodes.get(l).add(c);const h=c.options.initialPromotionConfig;c.promote({transition:h?h.transition:void 0,preserveFollowOpacity:h&&h.shouldPreserveFollowOpacity?h.shouldPreserveFollowOpacity(c):void 0})}isLead(){const l=this.getStack();return l?l.lead===this:!0}getLead(){var l;const{layoutId:c}=this.options;return c?((l=this.getStack())===null||l===void 0?void 0:l.lead)||this:this}getPrevLead(){var l;const{layoutId:c}=this.options;return c?(l=this.getStack())===null||l===void 0?void 0:l.prevLead:void 0}getStack(){const{layoutId:l}=this.options;if(l)return this.root.sharedNodes.get(l)}promote({needsReset:l,transition:c,preserveFollowOpacity:f}={}){const h=this.getStack();h&&h.promote(this,f),l&&(this.projectionDelta=void 0,this.needsReset=!0),c&&this.setOptions({transition:c})}relegate(){const l=this.getStack();return l?l.relegate(this):!1}resetSkewAndRotation(){const{visualElement:l}=this.options;if(!l)return;let c=!1;const{latestValues:f}=l;if((f.z||f.rotate||f.rotateX||f.rotateY||f.rotateZ||f.skewX||f.skewY)&&(c=!0),!c)return;const h={};f.z&&nE("z",l,h,this.animationValues);for(let m=0;m<tE.length;m++)nE(`rotate${tE[m]}`,l,h,this.animationValues),nE(`skew${tE[m]}`,l,h,this.animationValues);l.render();for(const m in h)l.setStaticValue(m,h[m]),this.animationValues&&(this.animationValues[m]=h[m]);l.scheduleRender()}getProjectionStyles(l){var c,f;if(!this.instance||this.isSVG)return;if(!this.isVisible)return f$;const h={visibility:""},m=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,h.opacity="",h.pointerEvents=sf(l==null?void 0:l.pointerEvents)||"",h.transform=m?m(this.latestValues,""):"none",h;const E=this.getLead();if(!this.projectionDelta||!this.layout||!E.target){const C={};return this.options.layoutId&&(C.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,C.pointerEvents=sf(l==null?void 0:l.pointerEvents)||""),this.hasProjected&&!Ea(this.latestValues)&&(C.transform=m?m({},""):"none",this.hasProjected=!1),C}const g=E.animationValues||E.latestValues;this.applyTransformsToTarget(),h.transform=d$(this.projectionDeltaWithTransform,this.treeScale,g),m&&(h.transform=m(g,h.transform));const{x:_,y:S}=this.projectionDelta;h.transformOrigin=`${_.origin*100}% ${S.origin*100}% 0`,E.animationValues?h.opacity=E===this?(f=(c=g.opacity)!==null&&c!==void 0?c:this.latestValues.opacity)!==null&&f!==void 0?f:1:this.preserveOpacity?this.latestValues.opacity:g.opacityExit:h.opacity=E===this?g.opacity!==void 0?g.opacity:"":g.opacityExit!==void 0?g.opacityExit:0;for(const C in Hf){if(g[C]===void 0)continue;const{correct:v,applyTo:R}=Hf[C],D=h.transform==="none"?g[C]:v(g[C],E);if(R){const b=R.length;for(let L=0;L<b;L++)h[R[L]]=D}else h[C]=D}return this.options.layoutId&&(h.pointerEvents=E===this?sf(l==null?void 0:l.pointerEvents)||"":"none"),h}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(l=>{var c;return(c=l.currentAnimation)===null||c===void 0?void 0:c.stop()}),this.root.nodes.forEach(hv),this.root.sharedNodes.clear()}}}function A$(e){e.updateLayout()}function m$(e){var t;const n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:u}=e.layout,{animationType:o}=e.options,l=n.source!==e.layout.source;o==="size"?pr(E=>{const g=l?n.measuredBox[E]:n.layoutBox[E],_=tr(g);g.min=r[E].min,g.max=g.min+_}):Yb(o,n.layoutBox,r)&&pr(E=>{const g=l?n.measuredBox[E]:n.layoutBox[E],_=tr(r[E]);g.max=g.min+_,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[E].max=e.relativeTarget[E].min+_)});const c=Vs();ec(c,r,n.layoutBox);const f=Vs();l?ec(f,e.applyTransform(u,!0),n.measuredBox):ec(f,r,n.layoutBox);const h=!jb(c);let m=!1;if(!e.resumeFrom){const E=e.getClosestProjectingParent();if(E&&!E.resumeFrom){const{snapshot:g,layout:_}=E;if(g&&_){const S=Ut();tc(S,n.layoutBox,g.layoutBox);const C=Ut();tc(C,r,_.layoutBox),zb(S,C)||(m=!0),E.options.layoutRoot&&(e.relativeTarget=C,e.relativeTargetOrigin=S,e.relativeParent=E)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:f,layoutDelta:c,hasLayoutChanged:h,hasRelativeTargetChanged:m})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function p$(e){$l&&ga.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function E$(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function g$(e){e.clearSnapshot()}function hv(e){e.clearMeasurements()}function _$(e){e.isLayoutDirty=!1}function S$(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Av(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function N$(e){e.resolveTargetDelta()}function I$(e){e.calcProjection()}function y$(e){e.resetSkewAndRotation()}function C$(e){e.removeLeadSnapshot()}function mv(e,t,n){e.translate=Tt(t.translate,0,n),e.scale=Tt(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function pv(e,t,n,r){e.min=Tt(t.min,n.min,r),e.max=Tt(t.max,n.max,r)}function v$(e,t,n,r){pv(e.x,t.x,n.x,r),pv(e.y,t.y,n.y,r)}function R$(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const D$={duration:.45,ease:[.4,0,.1,1]},Ev=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),gv=Ev("applewebkit/")&&!Ev("chrome/")?Math.round:Xt;function _v(e){e.min=gv(e.min),e.max=gv(e.max)}function T$(e){_v(e.x),_v(e.y)}function Yb(e,t,n){return e==="position"||e==="preserve-aspect"&&!BK(cv(t),cv(n),.2)}function b$(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const x$=$b({attachResizeListener:(e,t)=>bc(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),rE={current:void 0},Zb=$b({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!rE.current){const e=new x$({});e.mount(window),e.setOptions({layoutScroll:!0}),rE.current=e}return rE.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),B$={pan:{Feature:YK},drag:{Feature:$K,ProjectionNode:Zb,MeasureLayout:kb}};function Sv(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const u="onHover"+n,o=r[u];o&&yt.postRender(()=>o(t,ad(t)))}let F$=class extends Gu{mount(){const{current:t}=this.node;t&&(this.unmount=ZT(t,n=>(Sv(this.node,n,"Start"),r=>Sv(this.node,r,"End"))))}unmount(){}},O$=class extends Gu{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=ud(bc(this.node.current,"focus",()=>this.onFocus()),bc(this.node.current,"blur",()=>this.onBlur()))}unmount(){}};function Nv(e,t,n){const{props:r}=e;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const u="onTap"+(n==="End"?"":n),o=r[u];o&&yt.postRender(()=>o(t,ad(t)))}let L$=class extends Gu{mount(){const{current:t}=this.node;t&&(this.unmount=qT(t,n=>(Nv(this.node,n,"Start"),(r,{success:u})=>Nv(this.node,r,u?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}};const Eg=new WeakMap,iE=new WeakMap,w$=e=>{const t=Eg.get(e.target);t&&t(e)},M$=e=>{e.forEach(w$)};function P$({root:e,...t}){const n=e||document;iE.has(n)||iE.set(n,{});const r=iE.get(n),u=JSON.stringify(t);return r[u]||(r[u]=new IntersectionObserver(M$,{root:e,...t})),r[u]}function H$(e,t,n){const r=P$(t);return Eg.set(e,n),r.observe(e),()=>{Eg.delete(e),r.unobserve(e)}}const U$={some:0,all:1};let k$=class extends Gu{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:u="some",once:o}=t,l={root:n?n.current:void 0,rootMargin:r,threshold:typeof u=="number"?u:U$[u]},c=f=>{const{isIntersecting:h}=f;if(this.isInView===h||(this.isInView=h,o&&!h&&this.hasEnteredView))return;h&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",h);const{onViewportEnter:m,onViewportLeave:E}=this.node.getProps(),g=h?m:E;g&&g(f)};return H$(this.node.current,l,c)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(G$(t,n))&&this.startObserver()}unmount(){}};function G$({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const V$={inView:{Feature:k$},tap:{Feature:L$},focus:{Feature:O$},hover:{Feature:F$}},j$={layout:{ProjectionNode:Zb,MeasureLayout:kb}},gg={current:null},Wb={current:!1};function z$(){if(Wb.current=!0,!!j4)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>gg.current=e.matches;e.addListener(t),t()}else gg.current=!1}const K$=[...Sb,Nn,Fu],$$=e=>K$.find(_b(e)),Iv=new WeakMap;function Y$(e,t,n){for(const r in t){const u=t[r],o=n[r];if(yn(u))e.addValue(r,u);else if(yn(o))e.addValue(r,Dc(u,{owner:e}));else if(o!==u)if(e.hasValue(r)){const l=e.getValue(r);l.liveStyle===!0?l.jump(u):l.hasAnimated||l.set(u)}else{const l=e.getStaticValue(r);e.addValue(r,Dc(l!==void 0?l:u,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const yv=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let Z$=class{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:u,blockInitialAnimation:o,visualState:l},c={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=m_,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const _=Jr.now();this.renderScheduledAt<_&&(this.renderScheduledAt=_,yt.render(this.render,!1,!0))};const{latestValues:f,renderState:h,onUpdate:m}=l;this.onUpdate=m,this.latestValues=f,this.baseTarget={...f},this.initialValues=n.initial?{...f}:{},this.renderState=h,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=u,this.options=c,this.blockInitialAnimation=!!o,this.isControllingVariants=Uh(n),this.isVariantNode=bT(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:E,...g}=this.scrapeMotionValuesFromProps(n,{},this);for(const _ in g){const S=g[_];f[_]!==void 0&&yn(S)&&S.set(f[_],!1)}}mount(t){this.current=t,Iv.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),Wb.current||z$(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:gg.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){Iv.delete(this.current),this.projection&&this.projection.unmount(),Bu(this.notifyUpdate),Bu(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=ja.has(t),u=n.on("change",c=>{this.latestValues[t]=c,this.props.onUpdate&&yt.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),o=n.on("renderRequest",this.scheduleRender);let l;window.MotionCheckAppearSync&&(l=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{u(),o(),l&&l(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in uo){const n=uo[t];if(!n)continue;const{isEnabled:r,Feature:u}=n;if(!this.features[t]&&u&&r(this.props)&&(this.features[t]=new u(this)),this.features[t]){const o=this.features[t];o.isMounted?o.update():(o.mount(),o.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Ut()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<yv.length;r++){const u=yv[r];this.propEventSubscriptions[u]&&(this.propEventSubscriptions[u](),delete this.propEventSubscriptions[u]);const o="on"+u,l=t[o];l&&(this.propEventSubscriptions[u]=this.on(u,l))}this.prevMotionValues=Y$(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=Dc(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){var r;let u=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(r=this.getBaseTargetFromProps(this.props,t))!==null&&r!==void 0?r:this.readValueFromInstance(this.current,t,this.options);return u!=null&&(typeof u=="string"&&(Eb(u)||ob(u))?u=parseFloat(u):!$$(u)&&Fu.test(n)&&(u=Ab(t,n)),this.setBaseTarget(t,yn(u)?u.get():u)),yn(u)?u.get():u}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props;let u;if(typeof r=="string"||typeof r=="object"){const l=W4(this.props,r,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);l&&(u=l[t])}if(r&&u!==void 0)return u;const o=this.getBaseTargetFromProps(this.props,t);return o!==void 0&&!yn(o)?o:this.initialValues[t]!==void 0&&u===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new l_),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}},qb=class extends Z${constructor(){super(...arguments),this.KeyframeResolver=Nb}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;yn(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}};function W$(e){return window.getComputedStyle(e)}let q$=class extends qb{constructor(){super(...arguments),this.type="html",this.renderInstance=HT}readValueFromInstance(t,n){if(ja.has(n)){const r=A_(n);return r&&r.default||0}else{const r=W$(t),u=(wT(n)?r.getPropertyValue(n):r[n])||0;return typeof u=="string"?u.trim():u}}measureInstanceViewportBox(t,{transformPagePoint:n}){return Hb(t,n)}build(t,n,r){Q4(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return n_(t,n,r)}},X$=class extends qb{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Ut}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(ja.has(n)){const r=A_(n);return r&&r.default||0}return n=UT.has(n)?n:$4(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return VT(t,n,r)}build(t,n,r){J4(t,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,n,r,u){kT(t,n,r,u)}mount(t){this.isSVGTag=t_(t.tagName),super.mount(t)}};const Q$=(e,t)=>Z4(e)?new X$(t):new q$(t,{allowProjection:e!==y.Fragment}),J$=D6({...IK,...V$,...B$,...j$},Q$),Xb=V7(J$),__="relative scroll-mb-8 scroll-mt-[30vh] scroll-p-8",eY="after:content-['#'] after:scale-75 after:px-6 after:text-neutral after:absolute after:top-0 after:h-full after:-left-12 after:hover:cursor-pointer after:absolute after:to-neutral after:md:opacity-0 after:transition-opacity hover:after:opacity-80 after:duration-200 after:delay-100",tY=({className:e,...t})=>N.jsx("h1",{className:Re("mt-5 text-2xl font-bold",e),...t}),nY=({className:e,...t})=>N.jsx("h2",{className:Re("mt-5 text-2xl font-bold",__,e),...t}),rY=({className:e,...t})=>N.jsx("h3",{className:Re("mt-3 text-xl font-bold",__,e),...t}),iY=({className:e,...t})=>N.jsx("h4",{className:Re("mt-3 text-lg font-bold",__,e),...t}),uY=e=>String(e).normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(/\s+/g,"-").toLowerCase(),aY=e=>{var u;const t=document.getElementById(e),r=(((u=t==null?void 0:t.getBoundingClientRect())==null?void 0:u.top)??0)+window.scrollY-150;window.scrollTo({top:r,behavior:"smooth"})},sY=(e,t)=>{const n=e.getBoundingClientRect().left,r=e.getBoundingClientRect().top,u=window.getComputedStyle(e,":after"),o=n+parseInt(u.getPropertyValue("left"),10),l=o+parseInt(u.width,10),c=r+parseInt(u.getPropertyValue("top"),10),f=c+parseInt(u.height,10),h=t.clientX,m=t.clientY;return h>=o&&h<=l&&m>=c&&m<=f},S_=({H:e,children:t,className:n,isClickable:r,...u})=>{const o=typeof t=="string"?uY(t):void 0,l=c=>{const{id:f}=c.currentTarget;if(sY(c.currentTarget,c)&&typeof f=="string"){const E=`${window.location.href.split("#")[0]}#${f}`;navigator.clipboard.writeText(E),aY(f)}};return N.jsx(e,{id:o,onClick:r?l:void 0,"aria-label":r?`Click to scroll to section ${o} and copy the link to the clipboard`:void 0,className:Re(r&&eY,n),...u,children:t})},oY=({isClickable:e,...t})=>N.jsx(tY,{...t}),lY=({isClickable:e=!1,...t})=>N.jsx(S_,{H:nY,isClickable:e,...t}),N_=({isClickable:e=!1,...t})=>N.jsx(S_,{H:rY,isClickable:e,...t}),cY=({isClickable:e=!1,...t})=>N.jsx(S_,{H:iY,isClickable:e,...t}),dY=Ir("cursor-default overflow-auto py-3 shadow-sm justify-center",{variants:{size:{sm:"h-auto max-h-[30vh] w-[95vw] max-w-xl",md:"h-auto max-h-[50vh] w-[95vw] max-w-xl",lg:"h-auto max-h-[70vh] w-[95vw] max-w-2xl",xl:"h-auto max-h-[95vh] w-[95vw] max-w-6xl",unset:"h-auto max-h-[95vh] w-[95vw]"}},defaultVariants:{size:"unset"}}),fY=Xb.create(ai),hY=({children:e,isOpen:t,container:n,disableScroll:r=!1,onClose:u,hasCloseButton:o=!1,title:l,size:c="md",className:f,...h})=>{const m=U9(n);if(z9({key:"modal",disableScroll:t&&r}),!m)return N.jsx(N.Fragment,{});const E=typeof l=="string";return Ga.createPortal(N.jsx(Xb.div,{className:"bg-background/40 /40 invisible fixed left-0 top-0 z-50 flex size-full cursor-pointer items-center justify-center overflow-auto backdrop-blur",animate:t?"visible":"invisible",variants:{visible:{opacity:1,visibility:"visible",transition:{duration:.1,when:"beforeChildren"}},invisible:{opacity:0,visibility:"hidden",transition:{duration:.1,when:"afterChildren"}}},onClick:g=>{g.stopPropagation(),u==null||u()},"aria-hidden":!t,children:N.jsx("div",{className:"flex justify-center p-4",children:N.jsxs(fY,{onClick:g=>g.stopPropagation(),initial:{scale:t?.5:1},animate:{scale:t?1:.5},transition:{duration:.3},className:dY({size:c,className:f}),role:"dialog","aria-modal":!0,roundedSize:"2xl",...h,children:[N.jsxs("div",{className:Re("cursor-default px-4",o&&E?"flex items-center justify-center":o?"flex items-center justify-end":E?"items-center":"hidden"),children:[E&&N.jsx(N_,{className:"ml-4 flex items-center justify-center text-lg font-bold",children:l}),o&&N.jsx(Et,{variant:"hoverable",color:"text",label:"Close modal",className:"ml-auto",onClick:g=>{g.stopPropagation(),u==null||u()},Icon:Va,size:"icon-md"})]}),N.jsx("div",{className:"flex flex-1 flex-col items-center overflow-auto",children:e})]})})}),m)},AY={key:"save-dictionary-details",content:{resetButton:{text:_e({en:"Reset all changes","en-GB":"Reset all changes",fr:"Réinitialiser toutes les modifications",es:"Restablecer todas las modificaciones",de:"Alle Änderungen zurücksetzen",ja:"すべての変更をリセット",ko:"모든 변경 사항 초기화",zh:"重置所有更改",it:"Reimposta tutte le modifiche",pt:"Redefinir todas as alterações",hi:"सभी परिवर्तनों को रीसेट करें",ar:"إعادة تعيين جميع التغييرات",ru:"Сбросить все изменения"}),label:_e({en:"Click to reset all the changes","en-GB":"Click to reset all the changes",fr:"Cliquez pour réinitialiser toutes les modifications",es:"Haga clic para restablecer todas las modificaciones",de:"Klicken Sie, um alle Änderungen zurückzusetzen",ja:"すべての変更をリセットするにはクリックしてください",ko:"모든 변경 사항을 초기화하려면 클릭하세요",zh:"单击以重置所有更改",it:"Fai clic per ripristinare tutte le modifiche",pt:"Clique para redefinir todas as alterações",hi:"सभी परिवर्तनों को रीसेट करने के लिए क्लिक करें",ar:"انقر لإعادة تعيين جميع التغييرات",ru:"Нажмите, чтобы сбросить все изменения"})},saveButton:{text:_e({en:"Save changes","en-GB":"Save changes",fr:"Enregistrer les modifications",es:"Guardar cambios",de:"Änderungen speichern",ja:"変更を保存",ko:"변경 사항 저장",zh:"保存更改",it:"Salva le modifiche",pt:"Salvar alterações",hi:"परिवर्तनों को सहेजें",ar:"احفظ التغييرات",ru:"Сохранить изменения"}),label:_e({en:"Click to save changes","en-GB":"Click to save changes",fr:"Cliquez pour enregistrer les modifications",es:"Haga clic para guardar cambios",de:"Klicken Sie, um Änderungen zu speichern",ja:"変更を保存するにはクリックしてください",ko:"변경 사항을 저장하려면 클릭하세요",zh:"单击保存更改",it:"Fai clic per salvare le modifiche",pt:"Clique para salvar alterações",hi:"परिवर्तनों को सहेजने के लिए क्लिक करें",ar:"انقر لحفظ التغييرات",ru:"Нажмите, чтобы сохранить изменения"})},publishButton:{text:_e({en:"Publish dictionary","en-GB":"Publish dictionary",fr:"Publier dictionnaire",es:"Publicar diccionario",de:"Wörterbuch veröffentlichen",ja:"辞書を公開",ko:"사전을 게시합니다",zh:"发布字典",it:"Pubblica dizionario",pt:"Publicar dicionário",hi:"शब्दकोश प्रकाशित करें",ar:"نشر القاموس",ru:"Опубликовать словарь"}),label:_e({en:"Click to publish dictionary","en-GB":"Click to publish dictionary",fr:"Cliquez pour publier dictionnaire",es:"Haga clic para publicar diccionario",de:"Klicken Sie, um das Wörterbuch zu veröffentlichen",ja:"辞書を公開するにはクリックしてください",ko:"사전을 게시하려면 클릭하세요",zh:"单击以发布字典",it:"Fai clic per pubblicare il dizionario",pt:"Clique para publicar dicionário",hi:"शब्दकोश प्रकाशित करने के लिए क्लिक करें",ar:"انقر لنشر القاموس",ru:"Нажмите, чтобы опубликовать словарь"})},downloadButton:{text:_e({en:"Download","en-GB":"Download",fr:"Télécharger",es:"Descargar",de:"Herunterladen",ja:"ダウンロード",ko:"다운로드",zh:"下载",it:"Scarica",pt:"Baixar",hi:"डाउनलोड",ar:"تنزيل",ru:"Скачать"}),label:_e({en:"Click to download","en-GB":"Click to download",fr:"Cliquez pour télécharger",es:"Haga clic para descargar",de:"Klicken Sie, um herunterzuladen",ja:"ダウンロードするにはクリックしてください",ko:"다운로드를 클릭하세요",zh:"单击下载",it:"Fai clic per scaricare",pt:"Clique para baixar",hi:"डाउनलोड करने के लिए क्लिक करें",ar:"انقر لتنزيل",ru:"Нажмите, чтобы скачать"})}}},Qb=({dictionary:e,mode:t,className:n,...r})=>{const{setLocaleDictionary:u}=qg(),{writeDictionary:o,isLoading:l}=DU(),{pushDictionaries:c,isLoading:f}=IU(),h=l||f,{editedContent:m,restoreEditedContent:E}=Fn(),{resetButton:g,saveButton:_,publishButton:S,downloadButton:C}=sn(AY),{isAuthenticated:v}=$c(),R=y.useMemo(()=>m==null?void 0:m[e.key],[m,e.key]),D=y.useMemo(()=>R&&JSON.stringify(R)!==JSON.stringify(e),[R,e,t]),b=y.useMemo(()=>typeof(e==null?void 0:e._id)>"u",[e]),L=async()=>{if(!(m!=null&&m[e.key]))return;const B={...e,...m==null?void 0:m[e.key]};await o(B).then(()=>{u(m==null?void 0:m[e.key]),E(e.key)})},x=async()=>{if(!(m!=null&&m[e.key]))return;const B={...e,...m==null?void 0:m[e.key]};await c([B]).then(O=>{O&&(u(m==null?void 0:m[e.key]),E(e.key))})};return N.jsxs("form",{className:Re("flex justify-end gap-2 max-md:flex-col",n),...r,children:[D&&N.jsx(ut.Button,{label:g.label.value,disabled:!D,Icon:vP,variant:"outline",color:"text",className:"max-md:w-full",onClick:()=>E(e.key),children:g.text}),t.includes("local")&&N.jsx(ut.Button,{label:C.label.value,disabled:!D||h,Icon:cP,color:"text",variant:v?"outline":"default",className:"max-md:w-full",isLoading:l,onClick:L,children:C.text}),t.includes("remote")&&v&&b&&N.jsx(ut.Button,{label:S.label.value,disabled:h,Icon:W8,color:"text",className:"max-md:w-full",isLoading:f,onClick:x,children:S.text}),t.includes("remote")&&v&&!b&&D&&N.jsx(ut.Button,{label:_.label.value,disabled:!D||h,Icon:DP,color:"text",className:"max-md:w-full",isLoading:f,onClick:x,children:_.text})]})},Jb=({children:e,header:t,isOpen:n=!1,onClick:r,...u})=>{const[o,l]=y.useState(n),c=o==null?void 0:!o;return y.useEffect(()=>{n!=null&&l(n)},[n]),N.jsxs("div",{className:"w-full",children:[N.jsx(Et,{variant:"hoverable",color:"text",onClick:f=>{l(h=>!h),r==null||r(f)},isFullWidth:!0,className:"flex items-center justify-between gap-2",IconRight:P9,iconClassName:Re("transform transition-transform duration-500 ease-in-out",o?"rotate-0":"-rotate-180"),...u,children:t}),N.jsx(w9,{tabIndex:c!==!1?void 0:-1,isHidden:c,children:e})]})},ex=({level:e,title:t,description:n,children:r,rightParam:u,isSelected:o,...l})=>N.jsx("div",{className:Re("rounded-md p-2 transition","hover:bg-card/30 [&:has(.section:hover)]:bg-transparent",e===2&&"hover:bg-card/30",e>=3&&"",o===!0&&"bg-card/40"),...l,children:N.jsx(Jb,{isOpen:o,label:t,header:N.jsxs("div",{className:"flex w-full",children:[N.jsxs("div",{className:"flex w-full items-center justify-between",children:[N.jsx("span",{className:Re(e===0&&"text-2xl",e===1&&"text-xl",e===2&&"text-lg",e>=3&&"text-base"),children:t}),u&&N.jsx("div",{className:"flex w-auto items-center justify-between p-3",children:u})]}),n&&N.jsx("p",{className:"text-card pl-3 text-sm",children:n})]}),children:r})}),tx=({keyPath:e,section:t,editedContent:n,editedContentValue:r,onContentChange:u,onFocusKeyPath:o,renderSection:l})=>{const c=r??Fi(n,e);if(c&&typeof c!="string")return N.jsx(N.Fragment,{children:"Error loading section - Edited content Incoherence with the original content format"});const f=e.length,h=String(c??t);return N.jsx("span",{role:"button",tabIndex:0,className:Re("w-full rounded-md p-2 text-left transition","hover:bg-card/30 [&:has(.section:hover)]:bg-transparent",f===2&&"hover:bg-card/30",f>=3&&""),onClick:m=>{m.stopPropagation(),o(e)},children:typeof l=="function"?l(h):N.jsx(M1,{"aria-label":"Editable field",defaultValue:h,onSave:m=>u({keyPath:e,newValue:m}),onCancel:()=>null})})},mY=e=>{const{keyPath:t,section:n}=e,{addEditedContent:r}=Fn(),u=Fi(e.editedContent,t),o=n[$.File],{content:l}=n,c=[...t,{type:$.File}];return N.jsxs("div",{className:"ml-2 grid grid-cols-[auto,1fr] gap-2",children:[N.jsxs("span",{className:"text-neutral text-sm",children:[o," "]}),N.jsx(tx,{...e,keyPath:c,section:l,editedContentValue:u==null?void 0:u.content,onContentChange:f=>{console.log("lll",{subSection:o,file:{...n,content:f.newValue},keyPath:t,newKeyPath:c}),r(e.dictionary.key,{...n,content:f.newValue},t)}})]})},pY=e=>{const{keyPath:t,section:n,onFocusKeyPath:r,focusedKeyPath:u=[]}=e;return n.map((o,l)=>{const c={key:l,type:$.Array},f=[...t,c];return N.jsx(ex,{level:t.length,title:`${l}`,description:"",isSelected:Gc(f,u),onClick:h=>{h.stopPropagation(),r(f)},children:N.jsx(za,{...e,keyPath:f,section:o})},JSON.stringify(o))})},EY=e=>{const{keyPath:t,section:n}=e;return N.jsx("div",{className:"ml-2 grid grid-cols-[auto,1fr] gap-2",children:Object.keys(n).filter(r=>!I_.includes(r)).map(r=>{const u={type:$.Condition,key:r},o=[...t,u],l=n[$.Condition][r];return N.jsxs(N.Fragment,{children:[N.jsx("span",{className:"flex items-center font-bold",children:r}),y.createElement(za,{...e,key:r,keyPath:o,section:l})]})})})},gY=e=>{const{keyPath:t,section:n}=e;return N.jsx("div",{className:"ml-2 grid grid-cols-[auto,1fr] gap-2",children:Object.keys(n).filter(r=>!I_.includes(r)).map(r=>{const u={type:$.Enumeration,key:r},o=[...t,u],l=n[$.Enumeration][r];return N.jsxs(N.Fragment,{children:[N.jsx("span",{className:"flex items-center font-bold",children:r}),y.createElement(za,{...e,key:r,keyPath:o,section:l})]})})})},_Y=e=>{const{keyPath:t,section:n}=e,r=[...t,{type:$.Markdown}],u=n[$.Markdown];return N.jsx("div",{className:"ml-2 grid grid-cols-[auto,1fr] gap-2",children:N.jsx(za,{...e,keyPath:r,section:u})})},SY=e=>{const{keyPath:t,section:n,focusedKeyPath:r=[],onFocusKeyPath:u}=e;return Object.keys(n).filter(o=>!I_.includes(o)).map(o=>{const l={key:o,type:$.Object},c=[...t,l];return N.jsx(ex,{level:t.length,title:o,description:"",isSelected:Gc(c,r),onClick:f=>{f.stopPropagation(),u(c)},children:N.jsx(za,{...e,keyPath:c,section:n[o]})},o)})},NY=e=>{const{keyPath:t,section:n,locale:r}=e,u={type:$.Translation,key:r},o=[...t,u],l=n.translation[r];return N.jsx(za,{...e,keyPath:o,section:l})},I_=["filePath","id","nodeType"],za=e=>{const{section:t}=e,n=co(t);if(typeof t=="object")return n===$.ReactNode?N.jsx("span",{className:"text-neutral text-xs",children:"React node not editable"}):n===$.Nested?N.jsx("div",{className:"ml-2 grid grid-cols-[auto,1fr] gap-2",children:"[Nested] Dictionary"}):n===$.Markdown?N.jsx(_Y,{...e,section:t}):n===$.Translation?N.jsx(NY,{...e,section:t}):n===$.Enumeration?N.jsx(gY,{...e,section:t}):n===$.Condition?N.jsx(EY,{...e,section:t}):n===$.Insertion?N.jsx("span",{className:"text-neutral text-xs",children:"Insertion not editable"}):n===$.Array?N.jsx(pY,{...e,section:t}):n===$.File?N.jsx(mY,{...e,section:t}):N.jsx(SY,{...e,section:t});if(typeof t=="string")return N.jsx(tx,{...e,section:t})},IY=({dictionary:e,mode:t,...n})=>{var f;const{editedContent:r,addEditedContent:u}=Fn(),{focusedContent:o,setFocusedContentKeyPath:l}=Ou(),c=o==null?void 0:o.keyPath;return N.jsxs("div",{className:"flex flex-1 flex-col justify-between gap-2",children:[N.jsx("div",{children:y.createElement(za,{...n,keyPath:[],dictionary:e,key:JSON.stringify(((r==null?void 0:r[e.key])??e).content),editedContent:(f=r==null?void 0:r[e.key])==null?void 0:f.content,focusedKeyPath:c,section:e.content,onContentChange:h=>{u(e.key,h.newValue,h.keyPath)},onFocusKeyPath:l})}),N.jsx(Qb,{dictionary:e,mode:t,className:"mb-4 flex-col"})]})};function ki(e){return Array.isArray?Array.isArray(e):ix(e)==="[object Array]"}function yY(e){if(typeof e=="string")return e;let t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function CY(e){return e==null?"":yY(e)}function Wr(e){return typeof e=="string"}function nx(e){return typeof e=="number"}function vY(e){return e===!0||e===!1||RY(e)&&ix(e)=="[object Boolean]"}function rx(e){return typeof e=="object"}function RY(e){return rx(e)&&e!==null}function Xn(e){return e!=null}function uE(e){return!e.trim().length}function ix(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}const DY="Incorrect 'index' type",TY=e=>`Invalid value for key ${e}`,bY=e=>`Pattern length exceeds max of ${e}.`,xY=e=>`Missing ${e} property in key`,BY=e=>`Property 'weight' in key '${e}' must be a positive integer`,Cv=Object.prototype.hasOwnProperty;class FY{constructor(t){this._keys=[],this._keyMap={};let n=0;t.forEach(r=>{let u=ux(r);this._keys.push(u),this._keyMap[u.id]=u,n+=u.weight}),this._keys.forEach(r=>{r.weight/=n})}get(t){return this._keyMap[t]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}}function ux(e){let t=null,n=null,r=null,u=1,o=null;if(Wr(e)||ki(e))r=e,t=vv(e),n=_g(e);else{if(!Cv.call(e,"name"))throw new Error(xY("name"));const l=e.name;if(r=l,Cv.call(e,"weight")&&(u=e.weight,u<=0))throw new Error(BY(l));t=vv(l),n=_g(l),o=e.getFn}return{path:t,id:n,weight:u,src:r,getFn:o}}function vv(e){return ki(e)?e:e.split(".")}function _g(e){return ki(e)?e.join("."):e}function OY(e,t){let n=[],r=!1;const u=(o,l,c)=>{if(Xn(o))if(!l[c])n.push(o);else{let f=l[c];const h=o[f];if(!Xn(h))return;if(c===l.length-1&&(Wr(h)||nx(h)||vY(h)))n.push(CY(h));else if(ki(h)){r=!0;for(let m=0,E=h.length;m<E;m+=1)u(h[m],l,c+1)}else l.length&&u(h,l,c+1)}};return u(e,Wr(t)?t.split("."):t,0),r?n:n[0]}const LY={includeMatches:!1,findAllMatches:!1,minMatchCharLength:1},wY={isCaseSensitive:!1,ignoreDiacritics:!1,includeScore:!1,keys:[],shouldSort:!0,sortFn:(e,t)=>e.score===t.score?e.idx<t.idx?-1:1:e.score<t.score?-1:1},MY={location:0,threshold:.6,distance:100},PY={useExtendedSearch:!1,getFn:OY,ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1};var ze={...wY,...LY,...MY,...PY};const HY=/[^ ]+/g;function UY(e=1,t=3){const n=new Map,r=Math.pow(10,t);return{get(u){const o=u.match(HY).length;if(n.has(o))return n.get(o);const l=1/Math.pow(o,.5*e),c=parseFloat(Math.round(l*r)/r);return n.set(o,c),c},clear(){n.clear()}}}class y_{constructor({getFn:t=ze.getFn,fieldNormWeight:n=ze.fieldNormWeight}={}){this.norm=UY(n,3),this.getFn=t,this.isCreated=!1,this.setIndexRecords()}setSources(t=[]){this.docs=t}setIndexRecords(t=[]){this.records=t}setKeys(t=[]){this.keys=t,this._keysMap={},t.forEach((n,r)=>{this._keysMap[n.id]=r})}create(){this.isCreated||!this.docs.length||(this.isCreated=!0,Wr(this.docs[0])?this.docs.forEach((t,n)=>{this._addString(t,n)}):this.docs.forEach((t,n)=>{this._addObject(t,n)}),this.norm.clear())}add(t){const n=this.size();Wr(t)?this._addString(t,n):this._addObject(t,n)}removeAt(t){this.records.splice(t,1);for(let n=t,r=this.size();n<r;n+=1)this.records[n].i-=1}getValueForItemAtKeyId(t,n){return t[this._keysMap[n]]}size(){return this.records.length}_addString(t,n){if(!Xn(t)||uE(t))return;let r={v:t,i:n,n:this.norm.get(t)};this.records.push(r)}_addObject(t,n){let r={i:n,$:{}};this.keys.forEach((u,o)=>{let l=u.getFn?u.getFn(t):this.getFn(t,u.path);if(Xn(l)){if(ki(l)){let c=[];const f=[{nestedArrIndex:-1,value:l}];for(;f.length;){const{nestedArrIndex:h,value:m}=f.pop();if(Xn(m))if(Wr(m)&&!uE(m)){let E={v:m,i:h,n:this.norm.get(m)};c.push(E)}else ki(m)&&m.forEach((E,g)=>{f.push({nestedArrIndex:g,value:E})})}r.$[o]=c}else if(Wr(l)&&!uE(l)){let c={v:l,n:this.norm.get(l)};r.$[o]=c}}}),this.records.push(r)}toJSON(){return{keys:this.keys,records:this.records}}}function ax(e,t,{getFn:n=ze.getFn,fieldNormWeight:r=ze.fieldNormWeight}={}){const u=new y_({getFn:n,fieldNormWeight:r});return u.setKeys(e.map(ux)),u.setSources(t),u.create(),u}function kY(e,{getFn:t=ze.getFn,fieldNormWeight:n=ze.fieldNormWeight}={}){const{keys:r,records:u}=e,o=new y_({getFn:t,fieldNormWeight:n});return o.setKeys(r),o.setIndexRecords(u),o}function U0(e,{errors:t=0,currentLocation:n=0,expectedLocation:r=0,distance:u=ze.distance,ignoreLocation:o=ze.ignoreLocation}={}){const l=t/e.length;if(o)return l;const c=Math.abs(r-n);return u?l+c/u:c?1:l}function GY(e=[],t=ze.minMatchCharLength){let n=[],r=-1,u=-1,o=0;for(let l=e.length;o<l;o+=1){let c=e[o];c&&r===-1?r=o:!c&&r!==-1&&(u=o-1,u-r+1>=t&&n.push([r,u]),r=-1)}return e[o-1]&&o-r>=t&&n.push([r,o-1]),n}const Sa=32;function VY(e,t,n,{location:r=ze.location,distance:u=ze.distance,threshold:o=ze.threshold,findAllMatches:l=ze.findAllMatches,minMatchCharLength:c=ze.minMatchCharLength,includeMatches:f=ze.includeMatches,ignoreLocation:h=ze.ignoreLocation}={}){if(t.length>Sa)throw new Error(bY(Sa));const m=t.length,E=e.length,g=Math.max(0,Math.min(r,E));let _=o,S=g;const C=c>1||f,v=C?Array(E):[];let R;for(;(R=e.indexOf(t,S))>-1;){let O=U0(t,{currentLocation:R,expectedLocation:g,distance:u,ignoreLocation:h});if(_=Math.min(O,_),S=R+m,C){let H=0;for(;H<m;)v[R+H]=1,H+=1}}S=-1;let D=[],b=1,L=m+E;const x=1<<m-1;for(let O=0;O<m;O+=1){let H=0,U=L;for(;H<U;)U0(t,{errors:O,currentLocation:g+U,expectedLocation:g,distance:u,ignoreLocation:h})<=_?H=U:L=U,U=Math.floor((L-H)/2+H);L=U;let G=Math.max(1,g-U+1),fe=l?E:Math.min(g+U,E)+m,ae=Array(fe+2);ae[fe+1]=(1<<O)-1;for(let Z=fe;Z>=G;Z-=1){let te=Z-1,V=n[e.charAt(te)];if(C&&(v[te]=+!!V),ae[Z]=(ae[Z+1]<<1|1)&V,O&&(ae[Z]|=(D[Z+1]|D[Z])<<1|1|D[Z+1]),ae[Z]&x&&(b=U0(t,{errors:O,currentLocation:te,expectedLocation:g,distance:u,ignoreLocation:h}),b<=_)){if(_=b,S=te,S<=g)break;G=Math.max(1,2*g-S)}}if(U0(t,{errors:O+1,currentLocation:g,expectedLocation:g,distance:u,ignoreLocation:h})>_)break;D=ae}const B={isMatch:S>=0,score:Math.max(.001,b)};if(C){const O=GY(v,c);O.length?f&&(B.indices=O):B.isMatch=!1}return B}function jY(e){let t={};for(let n=0,r=e.length;n<r;n+=1){const u=e.charAt(n);t[u]=(t[u]||0)|1<<r-n-1}return t}const Kf=String.prototype.normalize?e=>e.normalize("NFD").replace(/[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B62\u0B63\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0C00-\u0C04\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D82\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EB9\u0EBB\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F\u109A-\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u192B\u1930-\u193B\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F\u1AB0-\u1ABE\u1B00-\u1B04\u1B34-\u1B44\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BE6-\u1BF3\u1C24-\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF2-\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA880\uA881\uA8B4-\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9E5\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F]/g,""):e=>e;class sx{constructor(t,{location:n=ze.location,threshold:r=ze.threshold,distance:u=ze.distance,includeMatches:o=ze.includeMatches,findAllMatches:l=ze.findAllMatches,minMatchCharLength:c=ze.minMatchCharLength,isCaseSensitive:f=ze.isCaseSensitive,ignoreDiacritics:h=ze.ignoreDiacritics,ignoreLocation:m=ze.ignoreLocation}={}){if(this.options={location:n,threshold:r,distance:u,includeMatches:o,findAllMatches:l,minMatchCharLength:c,isCaseSensitive:f,ignoreDiacritics:h,ignoreLocation:m},t=f?t:t.toLowerCase(),t=h?Kf(t):t,this.pattern=t,this.chunks=[],!this.pattern.length)return;const E=(_,S)=>{this.chunks.push({pattern:_,alphabet:jY(_),startIndex:S})},g=this.pattern.length;if(g>Sa){let _=0;const S=g%Sa,C=g-S;for(;_<C;)E(this.pattern.substr(_,Sa),_),_+=Sa;if(S){const v=g-Sa;E(this.pattern.substr(v),v)}}else E(this.pattern,0)}searchIn(t){const{isCaseSensitive:n,ignoreDiacritics:r,includeMatches:u}=this.options;if(t=n?t:t.toLowerCase(),t=r?Kf(t):t,this.pattern===t){let C={isMatch:!0,score:0};return u&&(C.indices=[[0,t.length-1]]),C}const{location:o,distance:l,threshold:c,findAllMatches:f,minMatchCharLength:h,ignoreLocation:m}=this.options;let E=[],g=0,_=!1;this.chunks.forEach(({pattern:C,alphabet:v,startIndex:R})=>{const{isMatch:D,score:b,indices:L}=VY(t,C,v,{location:o+R,distance:l,threshold:c,findAllMatches:f,minMatchCharLength:h,includeMatches:u,ignoreLocation:m});D&&(_=!0),g+=b,D&&L&&(E=[...E,...L])});let S={isMatch:_,score:_?g/this.chunks.length:1};return _&&u&&(S.indices=E),S}}class Vu{constructor(t){this.pattern=t}static isMultiMatch(t){return Rv(t,this.multiRegex)}static isSingleMatch(t){return Rv(t,this.singleRegex)}search(){}}function Rv(e,t){const n=e.match(t);return n?n[1]:null}class zY extends Vu{constructor(t){super(t)}static get type(){return"exact"}static get multiRegex(){return/^="(.*)"$/}static get singleRegex(){return/^=(.*)$/}search(t){const n=t===this.pattern;return{isMatch:n,score:n?0:1,indices:[0,this.pattern.length-1]}}}class KY extends Vu{constructor(t){super(t)}static get type(){return"inverse-exact"}static get multiRegex(){return/^!"(.*)"$/}static get singleRegex(){return/^!(.*)$/}search(t){const r=t.indexOf(this.pattern)===-1;return{isMatch:r,score:r?0:1,indices:[0,t.length-1]}}}class $Y extends Vu{constructor(t){super(t)}static get type(){return"prefix-exact"}static get multiRegex(){return/^\^"(.*)"$/}static get singleRegex(){return/^\^(.*)$/}search(t){const n=t.startsWith(this.pattern);return{isMatch:n,score:n?0:1,indices:[0,this.pattern.length-1]}}}class YY extends Vu{constructor(t){super(t)}static get type(){return"inverse-prefix-exact"}static get multiRegex(){return/^!\^"(.*)"$/}static get singleRegex(){return/^!\^(.*)$/}search(t){const n=!t.startsWith(this.pattern);return{isMatch:n,score:n?0:1,indices:[0,t.length-1]}}}class ZY extends Vu{constructor(t){super(t)}static get type(){return"suffix-exact"}static get multiRegex(){return/^"(.*)"\$$/}static get singleRegex(){return/^(.*)\$$/}search(t){const n=t.endsWith(this.pattern);return{isMatch:n,score:n?0:1,indices:[t.length-this.pattern.length,t.length-1]}}}class WY extends Vu{constructor(t){super(t)}static get type(){return"inverse-suffix-exact"}static get multiRegex(){return/^!"(.*)"\$$/}static get singleRegex(){return/^!(.*)\$$/}search(t){const n=!t.endsWith(this.pattern);return{isMatch:n,score:n?0:1,indices:[0,t.length-1]}}}class ox extends Vu{constructor(t,{location:n=ze.location,threshold:r=ze.threshold,distance:u=ze.distance,includeMatches:o=ze.includeMatches,findAllMatches:l=ze.findAllMatches,minMatchCharLength:c=ze.minMatchCharLength,isCaseSensitive:f=ze.isCaseSensitive,ignoreDiacritics:h=ze.ignoreDiacritics,ignoreLocation:m=ze.ignoreLocation}={}){super(t),this._bitapSearch=new sx(t,{location:n,threshold:r,distance:u,includeMatches:o,findAllMatches:l,minMatchCharLength:c,isCaseSensitive:f,ignoreDiacritics:h,ignoreLocation:m})}static get type(){return"fuzzy"}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(t){return this._bitapSearch.searchIn(t)}}class lx extends Vu{constructor(t){super(t)}static get type(){return"include"}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(t){let n=0,r;const u=[],o=this.pattern.length;for(;(r=t.indexOf(this.pattern,n))>-1;)n=r+o,u.push([r,n-1]);const l=!!u.length;return{isMatch:l,score:l?0:1,indices:u}}}const Sg=[zY,lx,$Y,YY,WY,ZY,KY,ox],Dv=Sg.length,qY=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/,XY="|";function QY(e,t={}){return e.split(XY).map(n=>{let r=n.trim().split(qY).filter(o=>o&&!!o.trim()),u=[];for(let o=0,l=r.length;o<l;o+=1){const c=r[o];let f=!1,h=-1;for(;!f&&++h<Dv;){const m=Sg[h];let E=m.isMultiMatch(c);E&&(u.push(new m(E,t)),f=!0)}if(!f)for(h=-1;++h<Dv;){const m=Sg[h];let E=m.isSingleMatch(c);if(E){u.push(new m(E,t));break}}}return u})}const JY=new Set([ox.type,lx.type]);class eZ{constructor(t,{isCaseSensitive:n=ze.isCaseSensitive,ignoreDiacritics:r=ze.ignoreDiacritics,includeMatches:u=ze.includeMatches,minMatchCharLength:o=ze.minMatchCharLength,ignoreLocation:l=ze.ignoreLocation,findAllMatches:c=ze.findAllMatches,location:f=ze.location,threshold:h=ze.threshold,distance:m=ze.distance}={}){this.query=null,this.options={isCaseSensitive:n,ignoreDiacritics:r,includeMatches:u,minMatchCharLength:o,findAllMatches:c,ignoreLocation:l,location:f,threshold:h,distance:m},t=n?t:t.toLowerCase(),t=r?Kf(t):t,this.pattern=t,this.query=QY(this.pattern,this.options)}static condition(t,n){return n.useExtendedSearch}searchIn(t){const n=this.query;if(!n)return{isMatch:!1,score:1};const{includeMatches:r,isCaseSensitive:u,ignoreDiacritics:o}=this.options;t=u?t:t.toLowerCase(),t=o?Kf(t):t;let l=0,c=[],f=0;for(let h=0,m=n.length;h<m;h+=1){const E=n[h];c.length=0,l=0;for(let g=0,_=E.length;g<_;g+=1){const S=E[g],{isMatch:C,indices:v,score:R}=S.search(t);if(C){if(l+=1,f+=R,r){const D=S.constructor.type;JY.has(D)?c=[...c,...v]:c.push(v)}}else{f=0,l=0,c.length=0;break}}if(l){let g={isMatch:!0,score:f/l};return r&&(g.indices=c),g}}return{isMatch:!1,score:1}}}const Ng=[];function tZ(...e){Ng.push(...e)}function Ig(e,t){for(let n=0,r=Ng.length;n<r;n+=1){let u=Ng[n];if(u.condition(e,t))return new u(e,t)}return new sx(e,t)}const $f={AND:"$and",OR:"$or"},yg={PATH:"$path",PATTERN:"$val"},Cg=e=>!!(e[$f.AND]||e[$f.OR]),nZ=e=>!!e[yg.PATH],rZ=e=>!ki(e)&&rx(e)&&!Cg(e),Tv=e=>({[$f.AND]:Object.keys(e).map(t=>({[t]:e[t]}))});function cx(e,t,{auto:n=!0}={}){const r=u=>{let o=Object.keys(u);const l=nZ(u);if(!l&&o.length>1&&!Cg(u))return r(Tv(u));if(rZ(u)){const f=l?u[yg.PATH]:o[0],h=l?u[yg.PATTERN]:u[f];if(!Wr(h))throw new Error(TY(f));const m={keyId:_g(f),pattern:h};return n&&(m.searcher=Ig(h,t)),m}let c={children:[],operator:o[0]};return o.forEach(f=>{const h=u[f];ki(h)&&h.forEach(m=>{c.children.push(r(m))})}),c};return Cg(e)||(e=Tv(e)),r(e)}function iZ(e,{ignoreFieldNorm:t=ze.ignoreFieldNorm}){e.forEach(n=>{let r=1;n.matches.forEach(({key:u,norm:o,score:l})=>{const c=u?u.weight:null;r*=Math.pow(l===0&&c?Number.EPSILON:l,(c||1)*(t?1:o))}),n.score=r})}function uZ(e,t){const n=e.matches;t.matches=[],Xn(n)&&n.forEach(r=>{if(!Xn(r.indices)||!r.indices.length)return;const{indices:u,value:o}=r;let l={indices:u,value:o};r.key&&(l.key=r.key.src),r.idx>-1&&(l.refIndex=r.idx),t.matches.push(l)})}function aZ(e,t){t.score=e.score}function sZ(e,t,{includeMatches:n=ze.includeMatches,includeScore:r=ze.includeScore}={}){const u=[];return n&&u.push(uZ),r&&u.push(aZ),e.map(o=>{const{idx:l}=o,c={item:t[l],refIndex:l};return u.length&&u.forEach(f=>{f(o,c)}),c})}class vo{constructor(t,n={},r){this.options={...ze,...n},this.options.useExtendedSearch,this._keyStore=new FY(this.options.keys),this.setCollection(t,r)}setCollection(t,n){if(this._docs=t,n&&!(n instanceof y_))throw new Error(DY);this._myIndex=n||ax(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(t){Xn(t)&&(this._docs.push(t),this._myIndex.add(t))}remove(t=()=>!1){const n=[];for(let r=0,u=this._docs.length;r<u;r+=1){const o=this._docs[r];t(o,r)&&(this.removeAt(r),r-=1,u-=1,n.push(o))}return n}removeAt(t){this._docs.splice(t,1),this._myIndex.removeAt(t)}getIndex(){return this._myIndex}search(t,{limit:n=-1}={}){const{includeMatches:r,includeScore:u,shouldSort:o,sortFn:l,ignoreFieldNorm:c}=this.options;let f=Wr(t)?Wr(this._docs[0])?this._searchStringList(t):this._searchObjectList(t):this._searchLogical(t);return iZ(f,{ignoreFieldNorm:c}),o&&f.sort(l),nx(n)&&n>-1&&(f=f.slice(0,n)),sZ(f,this._docs,{includeMatches:r,includeScore:u})}_searchStringList(t){const n=Ig(t,this.options),{records:r}=this._myIndex,u=[];return r.forEach(({v:o,i:l,n:c})=>{if(!Xn(o))return;const{isMatch:f,score:h,indices:m}=n.searchIn(o);f&&u.push({item:o,idx:l,matches:[{score:h,value:o,norm:c,indices:m}]})}),u}_searchLogical(t){const n=cx(t,this.options),r=(c,f,h)=>{if(!c.children){const{keyId:E,searcher:g}=c,_=this._findMatches({key:this._keyStore.get(E),value:this._myIndex.getValueForItemAtKeyId(f,E),searcher:g});return _&&_.length?[{idx:h,item:f,matches:_}]:[]}const m=[];for(let E=0,g=c.children.length;E<g;E+=1){const _=c.children[E],S=r(_,f,h);if(S.length)m.push(...S);else if(c.operator===$f.AND)return[]}return m},u=this._myIndex.records,o={},l=[];return u.forEach(({$:c,i:f})=>{if(Xn(c)){let h=r(n,c,f);h.length&&(o[f]||(o[f]={idx:f,item:c,matches:[]},l.push(o[f])),h.forEach(({matches:m})=>{o[f].matches.push(...m)}))}}),l}_searchObjectList(t){const n=Ig(t,this.options),{keys:r,records:u}=this._myIndex,o=[];return u.forEach(({$:l,i:c})=>{if(!Xn(l))return;let f=[];r.forEach((h,m)=>{f.push(...this._findMatches({key:h,value:l[m],searcher:n}))}),f.length&&o.push({idx:c,item:l,matches:f})}),o}_findMatches({key:t,value:n,searcher:r}){if(!Xn(n))return[];let u=[];if(ki(n))n.forEach(({v:o,i:l,n:c})=>{if(!Xn(o))return;const{isMatch:f,score:h,indices:m}=r.searchIn(o);f&&u.push({score:h,key:t,value:o,idx:l,norm:c,indices:m})});else{const{v:o,n:l}=n,{isMatch:c,score:f,indices:h}=r.searchIn(o);c&&u.push({score:f,key:t,value:o,norm:l,indices:h})}return u}}vo.version="7.1.0";vo.createIndex=ax;vo.parseIndex=kY;vo.config=ze;vo.parseQuery=cx;tZ(eZ);const nc=({children:e,className:t,identifier:n,...r})=>N.jsx("div",{className:Re("group/dropdown relative flex",t),"aria-label":`DropDown ${n}`,id:`unrollable-panel-button-${n}`,"aria-haspopup":!0,...r,children:e}),oZ=({children:e,identifier:t,className:n,...r})=>N.jsx("button",{className:Re("w-full cursor-pointer",n),"aria-label":`Open panel ${t}`,...r,children:e}),lZ=({children:e,isHidden:t=void 0,isOverable:n=!1,isFocusable:r=!1,align:u="start",identifier:o,className:l,...c})=>N.jsx("div",{className:Re("absolute top-[calc(100%+0.5rem)] z-[1000] min-w-full",u==="start"&&"left-0",u==="end"&&"right-0",l),"aria-hidden":t,role:"region","aria-labelledby":`unrollable-panel-button-${o}`,id:`unrollable-panel-${o}`,children:N.jsx(w9,{isHidden:t,className:Re("overflow-x-visible",t!==!1?"invisible":"visible",n&&"group-hover/dropdown:visible group-hover/dropdown:grid-rows-[1fr]",r&&"group-focus-within/dropdown:visible group-focus-within/dropdown:grid-rows-[1fr]"),...c,children:e})});nc.Trigger=oZ;nc.Panel=lZ;const cZ={key:"locale-switcher-content",content:{localeSwitcherLabel:_e({en:"Language switcher","en-GB":"Language switcher",fr:"Changer de langue",es:"Cambiar idioma",de:"Sprachwechsler",ja:"言語スイッチャー",ko:"언어 스위치",zh:"语言切换器",it:"Cambia lingua",pt:"Mudar idioma",hi:"भाषा स्विचर",ar:"مبدل اللغة",ru:"Переключатель языка"}),languageListLabel:_e({en:"Language list","en-GB":"Language list",fr:"Liste des langues",es:"Lista de idiomas",de:"Sprachliste",ja:"言語リスト",ko:"언어 목록",zh:"语言列表",it:"Elenco lingue",pt:"Lista de idiomas",hi:"भाषा सूची",ar:"قائمة اللغات",ru:"Список языков"}),switchTo:_e({en:"Switch to",fr:"Passer à",es:"Cambiar a","en-GB":"Switch to",de:"Wechseln Sie zu",ja:"に切り替える",ko:"전환",zh:"切换到",it:"Passa a",pt:"Mudar para",hi:"स्विच करें",ar:"التبديل إلى",ru:"Переключиться на"}),searchInput:{text:_e({en:"Search Locale","en-GB":"Search Locale",fr:"Rechercher la locale",es:"Buscar idioma",de:"Sprache durchsuchen",ja:"ロケールを検索",ko:"언어 검색",zh:"搜索语言",it:"Cerca lingua",pt:"Pesquisar idioma",hi:"भाषा खोजें",ar:"بحث اللغة",ru:"Поиск языка"}),placeholder:_e({en:"Search a locale","en-GB":"Search a locale",fr:"Rechercher une locale",es:"Buscar un idioma",de:"Sprache suchen",ja:"ロケールを検索",ko:"언어 검색",zh:"搜索语言",it:"Cerca una lingua",pt:"Pesquisar um idioma",hi:"भाषा खोजें",ar:"بحث اللغة",ru:"Поиск языка"}),ariaLabel:_e({en:"Language search","en-GB":"Language search",fr:"Recherche de langue",es:"Búsqueda de idioma",de:"Sprachsuche",ja:"言語検索",ko:"언어 검색",zh:"语言搜索",it:"Ricerca lingua",pt:"Pesquisa de idioma",hi:"भाषा खोजें",ar:"بحث اللغة",ru:"Поиск языка"})},seeAllLocalesSwitch:{true:_e({en:"See all locales","en-GB":"See all locales",fr:"Voir toutes les langues",es:"Ver todos los idiomas",de:"Alle Sprachen anzeigen",ja:"すべての言語を表示",ko:"모든 언어 보기",zh:"查看所有语言",it:"Vedi tutte le lingue",pt:"Ver todos os idiomas",hi:"सभी भाषाओं को देखें",ar:"عرض جميع اللغات",ru:"Показать все языки"}),false:_e({en:"See only selected locales","en-GB":"See only selected locales",fr:"Voir seulement les langues sélectionnées",es:"Ver solo los idiomas seleccionados",de:"Nur ausgewählte Sprachen anzeigen",ja:"選択された言語のみを表示",ko:"선택한 언어만 보기",zh:"仅查看选定的语言",it:"Vedi solo le lingue selezionate",pt:"Ver apenas os idiomas selecionados",hi:"केवल चुने गए भाषाओं को देखें",ar:"عرض اللغات المحددة فقط",ru:"Показать только выбранные языки"})}}},rc=(e,t)=>{const[n,r]=y.useState(()=>{if(t!==void 0){const o=typeof t=="function"?t():t;if(typeof window>"u")return o;const l=localStorage==null?void 0:localStorage.getItem(e);if(l)try{return JSON.parse(l)}catch(c){console.error(c)}return o}});y.useEffect(()=>{const o=localStorage==null?void 0:localStorage.getItem(e);if(o&&n===void 0)try{r(JSON.parse(o))}catch(l){console.error(l)}else t!==void 0&&n===void 0&&r(t)},[e,n]);const u=y.useCallback(o=>{r(l=>{const c=typeof o=="function"?o(l):o;return localStorage==null||localStorage.setItem(e,JSON.stringify(c)),c})},[e,r]);return y.useMemo(()=>[n,u],[n,u])},dx=y.createContext({availableLocales:[],selectedLocales:[],setSelectedLocales:()=>{}}),fx=()=>y.useContext(dx),dZ=({availableLocales:e,defaultSelectedLocales:t,children:n})=>{const{locale:r}=e4(),[u,o]=rc("locale-content-selector-selected-locales",t??[r]);return N.jsx(dx,{value:{availableLocales:e,selectedLocales:u,setSelectedLocales:o},children:n})},aE="locale-switcher-content",fZ=({panelProps:e,isMultilingual:t=!0})=>{const{switchTo:n,searchInput:r,localeSwitcherLabel:u,languageListLabel:o,seeAllLocalesSwitch:l}=sn(cZ),c=y.useRef(null),{locale:f}=e4(),{availableLocales:h,selectedLocales:m,setSelectedLocales:E}=fx(),g=y.useMemo(()=>h.map(x=>{const B=X0(x,i.ENGLISH),O=X0(x,f),H=X0(x);return{locale:x,englishName:B,currentLocaleName:O,ownLocaleName:H}}),[h,f]),[_,S]=y.useState(g),[C,v]=rc("locale-content-selector-see-all-locales",!1),R=y.useMemo(()=>{const x={keys:[{name:"ownLocaleName",weight:.4},{name:"englishName",weight:.2},{name:"currentLocaleName",weight:.2},{name:"locale",weight:.2}],threshold:.02};return new vo(g,x)},[g]),D=y.useCallback(x=>{if(x){const B=R.search(x).map(O=>O.item);S(B)}else S(g)},[R,g]),b=x=>{t?m.includes(x)?m.length>1&&E(B=>B.filter(O=>O!==x)):E(B=>[...B,x]):E([x])},L=x=>{v(x),E(x?h:[f])};return N.jsx("div",{className:"border-text text-text rounded-xl border transition-colors","aria-label":u.value,children:N.jsxs(nc,{identifier:aE,children:[N.jsx(nc.Trigger,{identifier:aE,children:N.jsxs("div",{className:"flex w-full items-center justify-between",children:[N.jsx("div",{className:"px-2 py-1",children:N.jsx(gP,{size:18})}),N.jsx(SP,{className:"self-center",size:18})]})}),N.jsx(nc.Panel,{identifier:aE,isOverable:!0,isFocusable:!0,className:"left-auto right-0",...e,children:N.jsxs(ai,{className:"max-h-[80vh] min-w-28",separator:"y",role:"listbox",transparency:"sm",border:!0,roundedSize:"2xl",borderColor:"text","aria-label":o.value,children:[t&&N.jsx("div",{className:"m-auto p-2",children:N.jsx(ed,{defaultValue:!1,onChange:L,color:"text",size:"sm",className:"!w-60",choices:[{content:l.true.value,value:!0},{content:l.false.value,value:!1}]})}),!(t&&C)&&N.jsxs(N.Fragment,{children:[N.jsx("div",{className:"p-3",children:N.jsx(go,{type:"search","aria-label":r.ariaLabel.value,placeholder:r.placeholder.value,onChange:x=>D(x.target.value),ref:c})}),N.jsx("ol",{className:"divide-text/20 divide-y divide-dashed overflow-y-auto p-1",children:_.map(({locale:x,currentLocaleName:B,ownLocaleName:O})=>N.jsx("li",{className:"px-1.5 py-1",children:N.jsx(Et,{onClick:()=>b(x),label:`${n} ${B}`,disabled:!(h??h).includes(x),isActive:m.includes(x),variant:"hoverable",color:"text",isFullWidth:!0,textAlign:"left",size:"sm",children:N.jsxs("div",{className:"flex flex-row items-center justify-between gap-3 px-2 py-1",children:[t&&N.jsx("div",{className:"w-4",children:m.includes(x)&&N.jsx(Eo,{className:"size-full"})}),N.jsxs("div",{className:"flex flex-1 flex-row items-center justify-between gap-3 px-2 py-1",children:[N.jsxs("div",{className:"flex flex-col text-nowrap",children:[N.jsx("span",{dir:Yw(x),lang:x,children:O}),N.jsx("span",{className:"text-neutral text-xs",children:B})]}),N.jsx("span",{className:"text-neutral text-sm",children:x.toUpperCase()})]})]})})},x))})]})]})})]})})},hZ=(e,t,n)=>{const r={...e};for(const u of Object.keys(e))u===t?(r[n]=e[t],delete r[t]):r[u]=e[u];return r},vg=({children:e,onContentChange:t,disabled:n,validate:r,additionalButtons:u,...o})=>{const[l,c]=y.useState(e),[f,h]=y.useState(0),m=l!==e,E=()=>{c(e),h(C=>C+1)},g=()=>{t(l)},_=C=>{c(C.currentTarget.value)};y.useEffect(()=>{c(e)},[e]);const S=(r==null?void 0:r(l))??!0;return N.jsxs("div",{className:"flex size-full flex-col items-center justify-between gap-2",children:[N.jsx(go,{onChange:_,"aria-label":"value",variant:"invisible",className:"size-full",defaultValue:e,...o},f),(m||u)&&N.jsxs("div",{className:"flex w-full items-center justify-end gap-2",children:[m&&N.jsxs(N.Fragment,{children:[N.jsx(Et,{Icon:Eo,label:"Validate",variant:"hoverable",color:"text",size:"icon-sm",className:"cursor-pointer hover:scale-110",disabled:n||!S,onClick:g}),N.jsx(Et,{Icon:Va,label:"Cancel",variant:"hoverable",size:"icon-sm",color:"text",className:"cursor-pointer hover:scale-110",onClick:E})]}),u]})]},String(e))},AZ=(e,t)=>{const[n,r]=y.useState(e);return y.useEffect(()=>{const u=setTimeout(()=>{r(e)},t);return()=>clearTimeout(u)},[e,t]),n},mZ=({isActive:e=!0,suggestion:t,...n})=>{const r=String(n.value??n.defaultValue??""),{autocomplete:u}=RU(),o=ii(),[l,c]=y.useState(!1),[f,h]=y.useState(r),[m,E]=y.useState(""),g=AZ(f,200);y.useEffect(()=>{typeof n.value>"u"||h(r)},[n.value,n.defaultValue]),y.useEffect(()=>{if(!e||!l)return;const S=async()=>{var C;try{const v=await u({text:g,openAiApiKey:o.editor.openAiApiKey,model:o.editor.openAiApiModel,temperature:o.editor.openAiApiTemperature}),R=((C=v==null?void 0:v.data)==null?void 0:C.autocompletion)??"";if(R.startsWith(g)){const D=R.slice(g.length);return E(D)}return E(R)}catch(v){console.error("Autocomplete error:",v)}};g.length>3?(E(""),S()):E("")},[g,e]);const _=()=>{h(S=>S+m),E("")};return N.jsxs("div",{className:"relative w-full",children:[N.jsxs("div",{className:"pointer-events-none absolute inset-0 whitespace-pre-wrap break-words px-1 py-3 text-base leading-[1.45rem] md:py-1 md:text-sm md:leading-[1.23rem]","aria-hidden":"true",children:[N.jsx("span",{className:"align-text-top text-transparent",children:f}),(m||t)&&N.jsx("span",{className:"text-neutral ml-3 align-text-top",children:t??m})]}),N.jsx(I4,{...n,value:f,onChange:S=>{var C;c(!0),h(S.target.value),(C=n.onChange)==null||C.call(n,S)},onKeyDown:S=>{var C;S.key==="Tab"&&m&&(S.preventDefault(),_()),(C=n.onKeyDown)==null||C.call(n,S)}})]})},pZ=()=>{const{session:e,revalidateSession:t,setSession:n}=$c(),{logout:r}=_U(),u=e!=null&&e.user?"authenticated":"unauthenticated",o=u==="authenticated",l=u==="unauthenticated",c=e==null?void 0:e.user;return{isAuthenticated:o,isUnauthenticated:l,user:c,revalidateSession:t,logout:async()=>{n(null),await r()}}},EZ=({children:e,onContentChange:t,disabled:n,validate:r,additionalButtons:u,...o})=>{const{isAuthenticated:l}=pZ(),[c,f]=y.useState(e),[h,m]=y.useState(0),E=c!==e,g=()=>{f(e),m(v=>v+1)},_=()=>{t(c)},S=v=>f(v.currentTarget.value??"");y.useEffect(()=>{f(e)},[e]);const C=(r==null?void 0:r(c))??!0;return N.jsxs("div",{className:"flex size-full flex-col items-center justify-between gap-2",children:[N.jsx(mZ,{onChange:S,variant:"invisible",className:"size-full",defaultValue:e,isActive:l,...o},h),(E||u)&&N.jsxs("div",{className:"flex w-full items-center justify-end gap-2",children:[E&&N.jsxs(N.Fragment,{children:[N.jsx(Et,{Icon:Eo,label:"Validate",variant:"hoverable",color:"text",size:"icon-sm",className:"cursor-pointer hover:scale-110",disabled:n||!C,onClick:_}),N.jsx(Et,{Icon:Va,label:"Cancel",variant:"hoverable",size:"icon-sm",color:"text",className:"cursor-pointer hover:scale-110",onClick:g})]}),u]})]},e)};function Na(){return Na=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Na.apply(this,arguments)}const gZ=["children","options"],ke={blockQuote:"0",breakLine:"1",breakThematic:"2",codeBlock:"3",codeFenced:"4",codeInline:"5",footnote:"6",footnoteReference:"7",gfmTask:"8",heading:"9",headingSetext:"10",htmlBlock:"11",htmlComment:"12",htmlSelfClosing:"13",image:"14",link:"15",linkAngleBraceStyleDetector:"16",linkBareUrlDetector:"17",linkMailtoDetector:"18",newlineCoalescer:"19",orderedList:"20",paragraph:"21",ref:"22",refImage:"23",refLink:"24",table:"25",text:"27",textBolded:"28",textEmphasized:"29",textEscaped:"30",textMarked:"31",textStrikethroughed:"32",unorderedList:"33"};var bv;(function(e){e[e.MAX=0]="MAX",e[e.HIGH=1]="HIGH",e[e.MED=2]="MED",e[e.LOW=3]="LOW",e[e.MIN=4]="MIN"})(bv||(bv={}));const xv=["allowFullScreen","allowTransparency","autoComplete","autoFocus","autoPlay","cellPadding","cellSpacing","charSet","classId","colSpan","contentEditable","contextMenu","crossOrigin","encType","formAction","formEncType","formMethod","formNoValidate","formTarget","frameBorder","hrefLang","inputMode","keyParams","keyType","marginHeight","marginWidth","maxLength","mediaGroup","minLength","noValidate","radioGroup","readOnly","rowSpan","spellCheck","srcDoc","srcLang","srcSet","tabIndex","useMap"].reduce((e,t)=>(e[t.toLowerCase()]=t,e),{class:"className",for:"htmlFor"}),Bv={amp:"&",apos:"'",gt:">",lt:"<",nbsp:" ",quot:"“"},_Z=["style","script"],SZ=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,NZ=/mailto:/i,IZ=/\n{2,}$/,hx=/^(\s*>[\s\S]*?)(?=\n\n|$)/,yZ=/^ *> ?/gm,CZ=/^(?:\[!([^\]]*)\]\n)?([\s\S]*)/,vZ=/^ {2,}\n/,RZ=/^(?:( *[-*_])){3,} *(?:\n *)+\n/,Ax=/^(?: {1,3})?(`{3,}|~{3,}) *(\S+)? *([^\n]*?)?\n([\s\S]*?)(?:\1\n?|$)/,mx=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,DZ=/^(`+)((?:\\`|[^`])+)\1/,TZ=/^(?:\n *)*\n/,bZ=/\r\n?/g,xZ=/^\[\^([^\]]+)](:(.*)((\n+ {4,}.*)|(\n(?!\[\^).+))*)/,BZ=/^\[\^([^\]]+)]/,FZ=/\f/g,OZ=/^---[ \t]*\n(.|\n)*\n---[ \t]*\n/,LZ=/^\s*?\[(x|\s)\]/,px=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,Ex=/^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,gx=/^([^\n]+)\n *(=|-){3,} *(?:\n *)+\n/,Rg=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?((?:[^>]*[^/])?)>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1\b)[\s\S])*?)<\/\1>(?!<\/\1>)\n*/i,wZ=/&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi,_x=/^<!--[\s\S]*?(?:-->)/,MZ=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,Dg=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,PZ=/^\{.*\}$/,HZ=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,UZ=/^<([^ >]+@[^ >]+)>/,kZ=/^<([^ >]+:\/[^ >]+)>/,GZ=/-([a-z])?/gi,Sx=/^(\|.*)\n(?: *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*))?\n?/,VZ=/^\[([^\]]*)\]:\s+<?([^\s>]+)>?\s*("([^"]*)")?/,jZ=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,zZ=/^\[([^\]]*)\] ?\[([^\]]*)\]/,KZ=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,$Z=/\t/g,YZ=/(^ *\||\| *$)/g,ZZ=/^ *:-+: *$/,WZ=/^ *:-+ *$/,qZ=/^ *-+: *$/,zh="((?:\\[.*?\\][([].*?[)\\]]|<.*?>(?:.*?<.*?>)?|`.*?`|\\\\\\1|[\\s\\S])+?)",XZ=new RegExp(`^([*_])\\1${zh}\\1\\1(?!\\1)`),QZ=new RegExp(`^([*_])${zh}\\1(?!\\1)`),JZ=new RegExp(`^(==)${zh}\\1`),eW=new RegExp(`^(~~)${zh}\\1`),tW=/^\\([^0-9A-Za-z\s])/,sE=/\\([^0-9A-Za-z\s])/g,nW=/^([\s\S](?:(?! |[0-9]\.)[^*_~\-\n<`\\\[!])*)/,rW=/^\n+/,iW=/^([ \t]*)/,uW=/\\([^\\])/g,aW=/(?:^|\n)( *)$/,C_="(?:\\d+\\.)",v_="(?:[*+-])";function Nx(e){return"( *)("+(e===1?C_:v_)+") +"}const Ix=Nx(1),yx=Nx(2);function Cx(e){return new RegExp("^"+(e===1?Ix:yx))}const sW=Cx(1),oW=Cx(2);function vx(e){return new RegExp("^"+(e===1?Ix:yx)+"[^\\n]*(?:\\n(?!\\1"+(e===1?C_:v_)+" )[^\\n]*)*(\\n|$)","gm")}const lW=vx(1),cW=vx(2);function Rx(e){const t=e===1?C_:v_;return new RegExp("^( *)("+t+") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1"+t+" (?!"+t+" ))\\n*|\\s*\\n*$)")}const Dx=Rx(1),Tx=Rx(2);function Fv(e,t){const n=t===1,r=n?Dx:Tx,u=n?lW:cW,o=n?sW:oW;return{match:so(function(l,c){const f=aW.exec(c.prevCapture);return f&&(c.list||!c.inline&&!c.simple)?r.exec(l=f[1]+l):null}),order:1,parse(l,c,f){const h=n?+l[2]:void 0,m=l[0].replace(IZ,`
262
+ `).match(u);let E=!1;return{items:m.map(function(g,_){const S=o.exec(g)[0].length,C=new RegExp("^ {1,"+S+"}","gm"),v=g.replace(C,"").replace(o,""),R=_===m.length-1,D=v.indexOf(`
263
+
264
+ `)!==-1||R&&E;E=D;const b=f.inline,L=f.list;let x;f.list=!0,D?(f.inline=!1,x=xc(v)+`
265
+
266
+ `):(f.inline=!0,x=xc(v));const B=c(x,f);return f.inline=b,f.list=L,B}),ordered:n,start:h}},render:(l,c,f)=>e(l.ordered?"ol":"ul",{key:f.key,start:l.type===ke.orderedList?l.start:void 0},l.items.map(function(h,m){return e("li",{key:m},c(h,f))}))}}const dW=new RegExp(`^\\[((?:\\[[^\\]]*\\]|[^\\[\\]]|\\](?=[^\\[]*\\]))*)\\]\\(\\s*<?((?:\\([^)]*\\)|[^\\s\\\\]|\\\\.)*?)>?(?:\\s+['"]([\\s\\S]*?)['"])?\\s*\\)`),fW=/^!\[(.*?)\]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/,bx=[hx,Ax,mx,px,gx,Ex,Sx,Dx,Tx],hW=[...bx,/^[^\n]+(?: \n|\n{2,})/,Rg,_x,Dg];function xc(e){let t=e.length;for(;t>0&&e[t-1]<=" ";)t--;return e.slice(0,t)}function Hl(e){return e.replace(/[ÀÁÂÃÄÅàáâãä忯]/g,"a").replace(/[çÇ]/g,"c").replace(/[ðÐ]/g,"d").replace(/[ÈÉÊËéèêë]/g,"e").replace(/[ÏïÎîÍíÌì]/g,"i").replace(/[Ññ]/g,"n").replace(/[øØœŒÕõÔôÓóÒò]/g,"o").replace(/[ÜüÛûÚúÙù]/g,"u").replace(/[ŸÿÝý]/g,"y").replace(/[^a-z0-9- ]/gi,"").replace(/ /gi,"-").toLowerCase()}function AW(e){return qZ.test(e)?"right":ZZ.test(e)?"center":WZ.test(e)?"left":null}function Ov(e,t,n,r){const u=n.inTable;n.inTable=!0;let o=[[]],l="";function c(){if(!l)return;const f=o[o.length-1];f.push.apply(f,t(l,n)),l=""}return e.trim().split(/(`[^`]*`|\\\||\|)/).filter(Boolean).forEach((f,h,m)=>{f.trim()==="|"&&(c(),r)?h!==0&&h!==m.length-1&&o.push([]):l+=f}),c(),n.inTable=u,o}function mW(e,t,n){n.inline=!0;const r=e[2]?e[2].replace(YZ,"").split("|").map(AW):[],u=e[3]?function(l,c,f){return l.trim().split(`
267
+ `).map(function(h){return Ov(h,c,f,!0)})}(e[3],t,n):[],o=Ov(e[1],t,n,!!u.length);return n.inline=!1,u.length?{align:r,cells:u,header:o,type:ke.table}:{children:o,type:ke.paragraph}}function Lv(e,t){return e.align[t]==null?{}:{textAlign:e.align[t]}}function so(e){return e.inline=1,e}function mu(e){return so(function(t,n){return n.inline?e.exec(t):null})}function pu(e){return so(function(t,n){return n.inline||n.simple?e.exec(t):null})}function Di(e){return function(t,n){return n.inline||n.simple?null:e.exec(t)}}function Ul(e){return so(function(t){return e.exec(t)})}function pW(e,t){if(t.inline||t.simple)return null;let n="";e.split(`
268
+ `).every(u=>(u+=`
269
+ `,!bx.some(o=>o.test(u))&&(n+=u,!!u.trim())));const r=xc(n);return r==""?null:[n,,r]}function EW(e){try{if(decodeURIComponent(e).replace(/[^A-Za-z0-9/:]/g,"").match(/^\s*(javascript|vbscript|data(?!:image)):/i))return null}catch{return null}return e}function wv(e){return e.replace(uW,"$1")}function cf(e,t,n){const r=n.inline||!1,u=n.simple||!1;n.inline=!0,n.simple=!0;const o=e(t,n);return n.inline=r,n.simple=u,o}function gW(e,t,n){const r=n.inline||!1,u=n.simple||!1;n.inline=!1,n.simple=!0;const o=e(t,n);return n.inline=r,n.simple=u,o}function _W(e,t,n){const r=n.inline||!1;n.inline=!1;const u=e(t,n);return n.inline=r,u}const oE=(e,t,n)=>({children:cf(t,e[2],n)});function lE(){return{}}function cE(){return null}function SW(...e){return e.filter(Boolean).join(" ")}function dE(e,t,n){let r=e;const u=t.split(".");for(;u.length&&(r=r[u[0]],r!==void 0);)u.shift();return r||n}function NW(e="",t={}){function n(g,_,...S){const C=dE(t.overrides,`${g}.props`,{});return t.createElement(function(v,R){const D=dE(R,v);return D?typeof D=="function"||typeof D=="object"&&"render"in D?D:dE(R,`${v}.component`,v):v}(g,t.overrides),Na({},_,C,{className:SW(_==null?void 0:_.className,C.className)||void 0}),...S)}function r(g){g=g.replace(OZ,"");let _=!1;t.forceInline?_=!0:t.forceBlock||(_=KZ.test(g)===!1);const S=h(f(_?g:`${xc(g).replace(rW,"")}
270
+
271
+ `,{inline:_}));for(;typeof S[S.length-1]=="string"&&!S[S.length-1].trim();)S.pop();if(t.wrapper===null)return S;const C=t.wrapper||(_?"span":"div");let v;if(S.length>1||t.forceWrapper)v=S;else{if(S.length===1)return v=S[0],typeof v=="string"?n("span",{key:"outer"},v):v;v=null}return t.createElement(C,{key:"outer"},v)}function u(g,_){const S=_.match(SZ);return S?S.reduce(function(C,v){const R=v.indexOf("=");if(R!==-1){const D=function(B){return B.indexOf("-")!==-1&&B.match(MZ)===null&&(B=B.replace(GZ,function(O,H){return H.toUpperCase()})),B}(v.slice(0,R)).trim(),b=function(B){const O=B[0];return(O==='"'||O==="'")&&B.length>=2&&B[B.length-1]===O?B.slice(1,-1):B}(v.slice(R+1).trim()),L=xv[D]||D;if(L==="ref")return C;const x=C[L]=function(B,O,H,U){return O==="style"?H.split(/;\s?/).reduce(function(G,fe){const ae=fe.slice(0,fe.indexOf(":"));return G[ae.trim().replace(/(-[a-z])/g,ce=>ce[1].toUpperCase())]=fe.slice(ae.length+1).trim(),G},{}):O==="href"||O==="src"?U(H,B,O):(H.match(PZ)&&(H=H.slice(1,H.length-1)),H==="true"||H!=="false"&&H)}(g,D,b,t.sanitizer);typeof x=="string"&&(Rg.test(x)||Dg.test(x))&&(C[L]=r(x.trim()))}else v!=="style"&&(C[xv[v]||v]=!0);return C},{}):null}t.overrides=t.overrides||{},t.sanitizer=t.sanitizer||EW,t.slugify=t.slugify||Hl,t.namedCodesToUnicode=t.namedCodesToUnicode?Na({},Bv,t.namedCodesToUnicode):Bv,t.createElement=t.createElement||y.createElement;const o=[],l={},c={[ke.blockQuote]:{match:Di(hx),order:1,parse(g,_,S){const[,C,v]=g[0].replace(yZ,"").match(CZ);return{alert:C,children:_(v,S)}},render(g,_,S){const C={key:S.key};return g.alert&&(C.className="markdown-alert-"+t.slugify(g.alert.toLowerCase(),Hl),g.children.unshift({attrs:{},children:[{type:ke.text,text:g.alert}],noInnerParse:!0,type:ke.htmlBlock,tag:"header"})),n("blockquote",C,_(g.children,S))}},[ke.breakLine]:{match:Ul(vZ),order:1,parse:lE,render:(g,_,S)=>n("br",{key:S.key})},[ke.breakThematic]:{match:Di(RZ),order:1,parse:lE,render:(g,_,S)=>n("hr",{key:S.key})},[ke.codeBlock]:{match:Di(mx),order:0,parse:g=>({lang:void 0,text:xc(g[0].replace(/^ {4}/gm,"")).replace(sE,"$1")}),render:(g,_,S)=>n("pre",{key:S.key},n("code",Na({},g.attrs,{className:g.lang?`lang-${g.lang}`:""}),g.text))},[ke.codeFenced]:{match:Di(Ax),order:0,parse:g=>({attrs:u("code",g[3]||""),lang:g[2]||void 0,text:g[4].replace(sE,"$1"),type:ke.codeBlock})},[ke.codeInline]:{match:pu(DZ),order:3,parse:g=>({text:g[2].replace(sE,"$1")}),render:(g,_,S)=>n("code",{key:S.key},g.text)},[ke.footnote]:{match:Di(xZ),order:0,parse:g=>(o.push({footnote:g[2],identifier:g[1]}),{}),render:cE},[ke.footnoteReference]:{match:mu(BZ),order:1,parse:g=>({target:`#${t.slugify(g[1],Hl)}`,text:g[1]}),render:(g,_,S)=>n("a",{key:S.key,href:t.sanitizer(g.target,"a","href")},n("sup",{key:S.key},g.text))},[ke.gfmTask]:{match:mu(LZ),order:1,parse:g=>({completed:g[1].toLowerCase()==="x"}),render:(g,_,S)=>n("input",{checked:g.completed,key:S.key,readOnly:!0,type:"checkbox"})},[ke.heading]:{match:Di(t.enforceAtxHeadings?Ex:px),order:1,parse:(g,_,S)=>({children:cf(_,g[2],S),id:t.slugify(g[2],Hl),level:g[1].length}),render:(g,_,S)=>n(`h${g.level}`,{id:g.id,key:S.key},_(g.children,S))},[ke.headingSetext]:{match:Di(gx),order:0,parse:(g,_,S)=>({children:cf(_,g[1],S),level:g[2]==="="?1:2,type:ke.heading})},[ke.htmlBlock]:{match:Ul(Rg),order:1,parse(g,_,S){const[,C]=g[3].match(iW),v=new RegExp(`^${C}`,"gm"),R=g[3].replace(v,""),D=(b=R,hW.some(H=>H.test(b))?_W:cf);var b;const L=g[1].toLowerCase(),x=_Z.indexOf(L)!==-1,B=(x?L:g[1]).trim(),O={attrs:u(B,g[2]),noInnerParse:x,tag:B};return S.inAnchor=S.inAnchor||L==="a",x?O.text=g[3]:O.children=D(_,R,S),S.inAnchor=!1,O},render:(g,_,S)=>n(g.tag,Na({key:S.key},g.attrs),g.text||(g.children?_(g.children,S):""))},[ke.htmlSelfClosing]:{match:Ul(Dg),order:1,parse(g){const _=g[1].trim();return{attrs:u(_,g[2]||""),tag:_}},render:(g,_,S)=>n(g.tag,Na({},g.attrs,{key:S.key}))},[ke.htmlComment]:{match:Ul(_x),order:1,parse:()=>({}),render:cE},[ke.image]:{match:pu(fW),order:1,parse:g=>({alt:g[1],target:wv(g[2]),title:g[3]}),render:(g,_,S)=>n("img",{key:S.key,alt:g.alt||void 0,title:g.title||void 0,src:t.sanitizer(g.target,"img","src")})},[ke.link]:{match:mu(dW),order:3,parse:(g,_,S)=>({children:gW(_,g[1],S),target:wv(g[2]),title:g[3]}),render:(g,_,S)=>n("a",{key:S.key,href:t.sanitizer(g.target,"a","href"),title:g.title},_(g.children,S))},[ke.linkAngleBraceStyleDetector]:{match:mu(kZ),order:0,parse:g=>({children:[{text:g[1],type:ke.text}],target:g[1],type:ke.link})},[ke.linkBareUrlDetector]:{match:so((g,_)=>_.inAnchor||t.disableAutoLink?null:mu(HZ)(g,_)),order:0,parse:g=>({children:[{text:g[1],type:ke.text}],target:g[1],title:void 0,type:ke.link})},[ke.linkMailtoDetector]:{match:mu(UZ),order:0,parse(g){let _=g[1],S=g[1];return NZ.test(S)||(S="mailto:"+S),{children:[{text:_.replace("mailto:",""),type:ke.text}],target:S,type:ke.link}}},[ke.orderedList]:Fv(n,1),[ke.unorderedList]:Fv(n,2),[ke.newlineCoalescer]:{match:Di(TZ),order:3,parse:lE,render:()=>`
272
+ `},[ke.paragraph]:{match:so(pW),order:3,parse:oE,render:(g,_,S)=>n("p",{key:S.key},_(g.children,S))},[ke.ref]:{match:mu(VZ),order:0,parse:g=>(l[g[1]]={target:g[2],title:g[4]},{}),render:cE},[ke.refImage]:{match:pu(jZ),order:0,parse:g=>({alt:g[1]||void 0,ref:g[2]}),render:(g,_,S)=>l[g.ref]?n("img",{key:S.key,alt:g.alt,src:t.sanitizer(l[g.ref].target,"img","src"),title:l[g.ref].title}):null},[ke.refLink]:{match:mu(zZ),order:0,parse:(g,_,S)=>({children:_(g[1],S),fallbackChildren:g[0],ref:g[2]}),render:(g,_,S)=>l[g.ref]?n("a",{key:S.key,href:t.sanitizer(l[g.ref].target,"a","href"),title:l[g.ref].title},_(g.children,S)):n("span",{key:S.key},g.fallbackChildren)},[ke.table]:{match:Di(Sx),order:1,parse:mW,render(g,_,S){const C=g;return n("table",{key:S.key},n("thead",null,n("tr",null,C.header.map(function(v,R){return n("th",{key:R,style:Lv(C,R)},_(v,S))}))),n("tbody",null,C.cells.map(function(v,R){return n("tr",{key:R},v.map(function(D,b){return n("td",{key:b,style:Lv(C,b)},_(D,S))}))})))}},[ke.text]:{match:Ul(nW),order:4,parse:g=>({text:g[0].replace(wZ,(_,S)=>t.namedCodesToUnicode[S]?t.namedCodesToUnicode[S]:_)}),render:g=>g.text},[ke.textBolded]:{match:pu(XZ),order:2,parse:(g,_,S)=>({children:_(g[2],S)}),render:(g,_,S)=>n("strong",{key:S.key},_(g.children,S))},[ke.textEmphasized]:{match:pu(QZ),order:3,parse:(g,_,S)=>({children:_(g[2],S)}),render:(g,_,S)=>n("em",{key:S.key},_(g.children,S))},[ke.textEscaped]:{match:pu(tW),order:1,parse:g=>({text:g[1],type:ke.text})},[ke.textMarked]:{match:pu(JZ),order:3,parse:oE,render:(g,_,S)=>n("mark",{key:S.key},_(g.children,S))},[ke.textStrikethroughed]:{match:pu(eW),order:3,parse:oE,render:(g,_,S)=>n("del",{key:S.key},_(g.children,S))}};t.disableParsingRawHTML===!0&&(delete c[ke.htmlBlock],delete c[ke.htmlSelfClosing]);const f=function(g){let _=Object.keys(g);function S(C,v){let R,D,b=[],L="",x="";for(v.prevCapture=v.prevCapture||"";C;){let B=0;for(;B<_.length;){if(L=_[B],R=g[L],v.inline&&!R.match.inline){B++;continue}const O=R.match(C,v);if(O){x=O[0],v.prevCapture+=x,C=C.substring(x.length),D=R.parse(O,S,v),D.type==null&&(D.type=L),b.push(D);break}B++}}return v.prevCapture="",b}return _.sort(function(C,v){let R=g[C].order,D=g[v].order;return R!==D?R-D:C<v?-1:1}),function(C,v){return S(function(R){return R.replace(bZ,`
273
+ `).replace(FZ,"").replace($Z," ")}(C),v)}}(c),h=(m=function(g,_){return function(S,C,v){const R=g[S.type].render;return _?_(()=>R(S,C,v),S,C,v):R(S,C,v)}}(c,t.renderRule),function g(_,S={}){if(Array.isArray(_)){const C=S.key,v=[];let R=!1;for(let D=0;D<_.length;D++){S.key=D;const b=g(_[D],S),L=typeof b=="string";L&&R?v[v.length-1]+=b:b!==null&&v.push(b),R=L}return S.key=C,v}return m(_,g,S)});var m;const E=r(e);return o.length?n("div",null,E,n("footer",{key:"footer"},o.map(function(g){return n("div",{id:t.slugify(g.identifier,Hl),key:g.identifier},g.identifier,h(f(g.footnote,{inline:!0})))}))):E}const IW=e=>{let{children:t="",options:n}=e,r=function(u,o){if(u==null)return{};var l,c,f={},h=Object.keys(u);for(c=0;c<h.length;c++)o.indexOf(l=h[c])>=0||(f[l]=u[l]);return f}(e,gZ);return y.cloneElement(NW(t,n),r)},yW=e=>{var u;const t=document.getElementById(e),r=(((u=t==null?void 0:t.getBoundingClientRect())==null?void 0:u.top)??0)+window.scrollY-150;window.scrollTo({top:r,behavior:"smooth"})},CW=()=>{const[e,t]=y.useState(),n=()=>{t(window.location.hash.slice(1))};return y.useEffect(()=>(t(window.location.hash.slice(1)),window.addEventListener("hashchange",n),()=>window.removeEventListener("hashchange",n)),[]),y.useEffect(()=>{e&&yW(e)},[e]),null};let Li=class extends Error{constructor(t){super(t),this.name="ShikiError"}},R_=class extends Error{constructor(t){super(t),this.name="ShikiError"}};function vW(){return 2147483648}function RW(){return typeof performance<"u"?performance.now():Date.now()}const DW=(e,t)=>e+(t-e%t)%t;async function TW(e){let t,n;const r={};function u(_){n=_,r.HEAPU8=new Uint8Array(_),r.HEAPU32=new Uint32Array(_)}function o(_,S,C){r.HEAPU8.copyWithin(_,S,S+C)}function l(_){try{return t.grow(_-n.byteLength+65535>>>16),u(t.buffer),1}catch{}}function c(_){const S=r.HEAPU8.length;_=_>>>0;const C=vW();if(_>C)return!1;for(let v=1;v<=4;v*=2){let R=S*(1+.2/v);R=Math.min(R,_+100663296);const D=Math.min(C,DW(Math.max(_,R),65536));if(l(D))return!0}return!1}const f=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0;function h(_,S,C=1024){const v=S+C;let R=S;for(;_[R]&&!(R>=v);)++R;if(R-S>16&&_.buffer&&f)return f.decode(_.subarray(S,R));let D="";for(;S<R;){let b=_[S++];if(!(b&128)){D+=String.fromCharCode(b);continue}const L=_[S++]&63;if((b&224)===192){D+=String.fromCharCode((b&31)<<6|L);continue}const x=_[S++]&63;if((b&240)===224?b=(b&15)<<12|L<<6|x:b=(b&7)<<18|L<<12|x<<6|_[S++]&63,b<65536)D+=String.fromCharCode(b);else{const B=b-65536;D+=String.fromCharCode(55296|B>>10,56320|B&1023)}}return D}function m(_,S){return _?h(r.HEAPU8,_,S):""}const E={emscripten_get_now:RW,emscripten_memcpy_big:o,emscripten_resize_heap:c,fd_write:()=>0};async function g(){const S=await e({env:E,wasi_snapshot_preview1:E});t=S.memory,u(t.buffer),Object.assign(r,S),r.UTF8ToString=m}return await g(),r}var bW=Object.defineProperty,xW=(e,t,n)=>t in e?bW(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,qt=(e,t,n)=>(xW(e,typeof t!="symbol"?t+"":t,n),n);let an=null;function BW(e){throw new R_(e.UTF8ToString(e.getLastOnigError()))}class Kh{constructor(t){qt(this,"utf16Length"),qt(this,"utf8Length"),qt(this,"utf16Value"),qt(this,"utf8Value"),qt(this,"utf16OffsetToUtf8"),qt(this,"utf8OffsetToUtf16");const n=t.length,r=Kh._utf8ByteLength(t),u=r!==n,o=u?new Uint32Array(n+1):null;u&&(o[n]=r);const l=u?new Uint32Array(r+1):null;u&&(l[r]=n);const c=new Uint8Array(r);let f=0;for(let h=0;h<n;h++){const m=t.charCodeAt(h);let E=m,g=!1;if(m>=55296&&m<=56319&&h+1<n){const _=t.charCodeAt(h+1);_>=56320&&_<=57343&&(E=(m-55296<<10)+65536|_-56320,g=!0)}u&&(o[h]=f,g&&(o[h+1]=f),E<=127?l[f+0]=h:E<=2047?(l[f+0]=h,l[f+1]=h):E<=65535?(l[f+0]=h,l[f+1]=h,l[f+2]=h):(l[f+0]=h,l[f+1]=h,l[f+2]=h,l[f+3]=h)),E<=127?c[f++]=E:E<=2047?(c[f++]=192|(E&1984)>>>6,c[f++]=128|(E&63)>>>0):E<=65535?(c[f++]=224|(E&61440)>>>12,c[f++]=128|(E&4032)>>>6,c[f++]=128|(E&63)>>>0):(c[f++]=240|(E&1835008)>>>18,c[f++]=128|(E&258048)>>>12,c[f++]=128|(E&4032)>>>6,c[f++]=128|(E&63)>>>0),g&&h++}this.utf16Length=n,this.utf8Length=r,this.utf16Value=t,this.utf8Value=c,this.utf16OffsetToUtf8=o,this.utf8OffsetToUtf16=l}static _utf8ByteLength(t){let n=0;for(let r=0,u=t.length;r<u;r++){const o=t.charCodeAt(r);let l=o,c=!1;if(o>=55296&&o<=56319&&r+1<u){const f=t.charCodeAt(r+1);f>=56320&&f<=57343&&(l=(o-55296<<10)+65536|f-56320,c=!0)}l<=127?n+=1:l<=2047?n+=2:l<=65535?n+=3:n+=4,c&&r++}return n}createString(t){const n=t.omalloc(this.utf8Length);return t.HEAPU8.set(this.utf8Value,n),n}}const zr=class{constructor(e){if(qt(this,"id",++zr.LAST_ID),qt(this,"_onigBinding"),qt(this,"content"),qt(this,"utf16Length"),qt(this,"utf8Length"),qt(this,"utf16OffsetToUtf8"),qt(this,"utf8OffsetToUtf16"),qt(this,"ptr"),!an)throw new R_("Must invoke loadWasm first.");this._onigBinding=an,this.content=e;const t=new Kh(e);this.utf16Length=t.utf16Length,this.utf8Length=t.utf8Length,this.utf16OffsetToUtf8=t.utf16OffsetToUtf8,this.utf8OffsetToUtf16=t.utf8OffsetToUtf16,this.utf8Length<1e4&&!zr._sharedPtrInUse?(zr._sharedPtr||(zr._sharedPtr=an.omalloc(1e4)),zr._sharedPtrInUse=!0,an.HEAPU8.set(t.utf8Value,zr._sharedPtr),this.ptr=zr._sharedPtr):this.ptr=t.createString(an)}convertUtf8OffsetToUtf16(e){return this.utf8OffsetToUtf16?e<0?0:e>this.utf8Length?this.utf16Length:this.utf8OffsetToUtf16[e]:e}convertUtf16OffsetToUtf8(e){return this.utf16OffsetToUtf8?e<0?0:e>this.utf16Length?this.utf8Length:this.utf16OffsetToUtf8[e]:e}dispose(){this.ptr===zr._sharedPtr?zr._sharedPtrInUse=!1:this._onigBinding.ofree(this.ptr)}};let sd=zr;qt(sd,"LAST_ID",0);qt(sd,"_sharedPtr",0);qt(sd,"_sharedPtrInUse",!1);class FW{constructor(t){if(qt(this,"_onigBinding"),qt(this,"_ptr"),!an)throw new R_("Must invoke loadWasm first.");const n=[],r=[];for(let c=0,f=t.length;c<f;c++){const h=new Kh(t[c]);n[c]=h.createString(an),r[c]=h.utf8Length}const u=an.omalloc(4*t.length);an.HEAPU32.set(n,u/4);const o=an.omalloc(4*t.length);an.HEAPU32.set(r,o/4);const l=an.createOnigScanner(u,o,t.length);for(let c=0,f=t.length;c<f;c++)an.ofree(n[c]);an.ofree(o),an.ofree(u),l===0&&BW(an),this._onigBinding=an,this._ptr=l}dispose(){this._onigBinding.freeOnigScanner(this._ptr)}findNextMatchSync(t,n,r){let u=0;if(typeof r=="number"&&(u=r),typeof t=="string"){t=new sd(t);const o=this._findNextMatchSync(t,n,!1,u);return t.dispose(),o}return this._findNextMatchSync(t,n,!1,u)}_findNextMatchSync(t,n,r,u){const o=this._onigBinding,l=o.findNextOnigScannerMatch(this._ptr,t.id,t.ptr,t.utf8Length,t.convertUtf16OffsetToUtf8(n),u);if(l===0)return null;const c=o.HEAPU32;let f=l/4;const h=c[f++],m=c[f++],E=[];for(let g=0;g<m;g++){const _=t.convertUtf8OffsetToUtf16(c[f++]),S=t.convertUtf8OffsetToUtf16(c[f++]);E[g]={start:_,end:S,length:S-_}}return{index:h,captureIndices:E}}}function OW(e){return typeof e.instantiator=="function"}function LW(e){return typeof e.default=="function"}function wW(e){return typeof e.data<"u"}function MW(e){return typeof Response<"u"&&e instanceof Response}function PW(e){var t;return typeof ArrayBuffer<"u"&&(e instanceof ArrayBuffer||ArrayBuffer.isView(e))||typeof Buffer<"u"&&((t=Buffer.isBuffer)==null?void 0:t.call(Buffer,e))||typeof SharedArrayBuffer<"u"&&e instanceof SharedArrayBuffer||typeof Uint32Array<"u"&&e instanceof Uint32Array}let k0;function HW(e){if(k0)return k0;async function t(){an=await TW(async n=>{let r=e;return r=await r,typeof r=="function"&&(r=await r(n)),typeof r=="function"&&(r=await r(n)),OW(r)?r=await r.instantiator(n):LW(r)?r=await r.default(n):(wW(r)&&(r=r.data),MW(r)?typeof WebAssembly.instantiateStreaming=="function"?r=await UW(r)(n):r=await kW(r)(n):PW(r)?r=await fE(r)(n):r instanceof WebAssembly.Module?r=await fE(r)(n):"default"in r&&r.default instanceof WebAssembly.Module&&(r=await fE(r.default)(n))),"instance"in r&&(r=r.instance),"exports"in r&&(r=r.exports),r})}return k0=t(),k0}function fE(e){return t=>WebAssembly.instantiate(e,t)}function UW(e){return t=>WebAssembly.instantiateStreaming(e,t)}function kW(e){return async t=>{const n=await e.arrayBuffer();return WebAssembly.instantiate(n,t)}}let GW;function VW(){return GW}async function xx(e){return e&&await HW(e),{createScanner(t){return new FW(t.map(n=>typeof n=="string"?n:n.source))},createString(t){return new sd(t)}}}function jW(e){return D_(e)}function D_(e){return Array.isArray(e)?zW(e):e instanceof RegExp?e:typeof e=="object"?KW(e):e}function zW(e){let t=[];for(let n=0,r=e.length;n<r;n++)t[n]=D_(e[n]);return t}function KW(e){let t={};for(let n in e)t[n]=D_(e[n]);return t}function Bx(e,...t){return t.forEach(n=>{for(let r in n)e[r]=n[r]}),e}function Fx(e){const t=~e.lastIndexOf("/")||~e.lastIndexOf("\\");return t===0?e:~t===e.length-1?Fx(e.substring(0,e.length-1)):e.substr(~t+1)}var hE=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,G0=class{static hasCaptures(e){return e===null?!1:(hE.lastIndex=0,hE.test(e))}static replaceCaptures(e,t,n){return e.replace(hE,(r,u,o,l)=>{let c=n[parseInt(u||o,10)];if(c){let f=t.substring(c.start,c.end);for(;f[0]===".";)f=f.substring(1);switch(l){case"downcase":return f.toLowerCase();case"upcase":return f.toUpperCase();default:return f}}else return r})}};function Ox(e,t){return e<t?-1:e>t?1:0}function Lx(e,t){if(e===null&&t===null)return 0;if(!e)return-1;if(!t)return 1;let n=e.length,r=t.length;if(n===r){for(let u=0;u<n;u++){let o=Ox(e[u],t[u]);if(o!==0)return o}return 0}return n-r}function Mv(e){return!!(/^#[0-9a-f]{6}$/i.test(e)||/^#[0-9a-f]{8}$/i.test(e)||/^#[0-9a-f]{3}$/i.test(e)||/^#[0-9a-f]{4}$/i.test(e))}function wx(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")}var Mx=class{constructor(e){oe(this,"cache",new Map);this.fn=e}get(e){if(this.cache.has(e))return this.cache.get(e);const t=this.fn(e);return this.cache.set(e,t),t}},Yf=class{constructor(e,t,n){oe(this,"_cachedMatchRoot",new Mx(e=>this._root.match(e)));this._colorMap=e,this._defaults=t,this._root=n}static createFromRawTheme(e,t){return this.createFromParsedTheme(ZW(e),t)}static createFromParsedTheme(e,t){return qW(e,t)}getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(e){if(e===null)return this._defaults;const t=e.scopeName,r=this._cachedMatchRoot.get(t).find(u=>$W(e.parent,u.parentScopes));return r?new Px(r.fontStyle,r.foreground,r.background):null}},AE=class df{constructor(t,n){this.parent=t,this.scopeName=n}static push(t,n){for(const r of n)t=new df(t,r);return t}static from(...t){let n=null;for(let r=0;r<t.length;r++)n=new df(n,t[r]);return n}push(t){return new df(this,t)}getSegments(){let t=this;const n=[];for(;t;)n.push(t.scopeName),t=t.parent;return n.reverse(),n}toString(){return this.getSegments().join(" ")}extends(t){return this===t?!0:this.parent===null?!1:this.parent.extends(t)}getExtensionIfDefined(t){const n=[];let r=this;for(;r&&r!==t;)n.push(r.scopeName),r=r.parent;return r===t?n.reverse():void 0}};function $W(e,t){if(t.length===0)return!0;for(let n=0;n<t.length;n++){let r=t[n],u=!1;if(r===">"){if(n===t.length-1)return!1;r=t[++n],u=!0}for(;e&&!YW(e.scopeName,r);){if(u)return!1;e=e.parent}if(!e)return!1;e=e.parent}return!0}function YW(e,t){return t===e||e.startsWith(t)&&e[t.length]==="."}var Px=class{constructor(e,t,n){this.fontStyle=e,this.foregroundId=t,this.backgroundId=n}};function ZW(e){if(!e)return[];if(!e.settings||!Array.isArray(e.settings))return[];let t=e.settings,n=[],r=0;for(let u=0,o=t.length;u<o;u++){let l=t[u];if(!l.settings)continue;let c;if(typeof l.scope=="string"){let E=l.scope;E=E.replace(/^[,]+/,""),E=E.replace(/[,]+$/,""),c=E.split(",")}else Array.isArray(l.scope)?c=l.scope:c=[""];let f=-1;if(typeof l.settings.fontStyle=="string"){f=0;let E=l.settings.fontStyle.split(" ");for(let g=0,_=E.length;g<_;g++)switch(E[g]){case"italic":f=f|1;break;case"bold":f=f|2;break;case"underline":f=f|4;break;case"strikethrough":f=f|8;break}}let h=null;typeof l.settings.foreground=="string"&&Mv(l.settings.foreground)&&(h=l.settings.foreground);let m=null;typeof l.settings.background=="string"&&Mv(l.settings.background)&&(m=l.settings.background);for(let E=0,g=c.length;E<g;E++){let S=c[E].trim().split(" "),C=S[S.length-1],v=null;S.length>1&&(v=S.slice(0,S.length-1),v.reverse()),n[r++]=new WW(C,v,u,f,h,m)}}return n}var WW=class{constructor(e,t,n,r,u,o){this.scope=e,this.parentScopes=t,this.index=n,this.fontStyle=r,this.foreground=u,this.background=o}},Bi=(e=>(e[e.NotSet=-1]="NotSet",e[e.None=0]="None",e[e.Italic=1]="Italic",e[e.Bold=2]="Bold",e[e.Underline=4]="Underline",e[e.Strikethrough=8]="Strikethrough",e))(Bi||{});function qW(e,t){e.sort((f,h)=>{let m=Ox(f.scope,h.scope);return m!==0||(m=Lx(f.parentScopes,h.parentScopes),m!==0)?m:f.index-h.index});let n=0,r="#000000",u="#ffffff";for(;e.length>=1&&e[0].scope==="";){let f=e.shift();f.fontStyle!==-1&&(n=f.fontStyle),f.foreground!==null&&(r=f.foreground),f.background!==null&&(u=f.background)}let o=new XW(t),l=new Px(n,o.getId(r),o.getId(u)),c=new JW(new Tg(0,null,-1,0,0),[]);for(let f=0,h=e.length;f<h;f++){let m=e[f];c.insert(0,m.scope,m.parentScopes,m.fontStyle,o.getId(m.foreground),o.getId(m.background))}return new Yf(o,l,c)}var XW=class{constructor(e){oe(this,"_isFrozen");oe(this,"_lastColorId");oe(this,"_id2color");oe(this,"_color2id");if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(e)){this._isFrozen=!0;for(let t=0,n=e.length;t<n;t++)this._color2id[e[t]]=t,this._id2color[t]=e[t]}else this._isFrozen=!1}getId(e){if(e===null)return 0;e=e.toUpperCase();let t=this._color2id[e];if(t)return t;if(this._isFrozen)throw new Error(`Missing color in color map - ${e}`);return t=++this._lastColorId,this._color2id[e]=t,this._id2color[t]=e,t}getColorMap(){return this._id2color.slice(0)}},QW=Object.freeze([]),Tg=class Hx{constructor(t,n,r,u,o){oe(this,"scopeDepth");oe(this,"parentScopes");oe(this,"fontStyle");oe(this,"foreground");oe(this,"background");this.scopeDepth=t,this.parentScopes=n||QW,this.fontStyle=r,this.foreground=u,this.background=o}clone(){return new Hx(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(t){let n=[];for(let r=0,u=t.length;r<u;r++)n[r]=t[r].clone();return n}acceptOverwrite(t,n,r,u){this.scopeDepth>t?console.log("how did this happen?"):this.scopeDepth=t,n!==-1&&(this.fontStyle=n),r!==0&&(this.foreground=r),u!==0&&(this.background=u)}},JW=class bg{constructor(t,n=[],r={}){oe(this,"_rulesWithParentScopes");this._mainRule=t,this._children=r,this._rulesWithParentScopes=n}static _cmpBySpecificity(t,n){if(t.scopeDepth!==n.scopeDepth)return n.scopeDepth-t.scopeDepth;let r=0,u=0;for(;t.parentScopes[r]===">"&&r++,n.parentScopes[u]===">"&&u++,!(r>=t.parentScopes.length||u>=n.parentScopes.length);){const o=n.parentScopes[u].length-t.parentScopes[r].length;if(o!==0)return o;r++,u++}return n.parentScopes.length-t.parentScopes.length}match(t){if(t!==""){let r=t.indexOf("."),u,o;if(r===-1?(u=t,o=""):(u=t.substring(0,r),o=t.substring(r+1)),this._children.hasOwnProperty(u))return this._children[u].match(o)}const n=this._rulesWithParentScopes.concat(this._mainRule);return n.sort(bg._cmpBySpecificity),n}insert(t,n,r,u,o,l){if(n===""){this._doInsertHere(t,r,u,o,l);return}let c=n.indexOf("."),f,h;c===-1?(f=n,h=""):(f=n.substring(0,c),h=n.substring(c+1));let m;this._children.hasOwnProperty(f)?m=this._children[f]:(m=new bg(this._mainRule.clone(),Tg.cloneArr(this._rulesWithParentScopes)),this._children[f]=m),m.insert(t+1,h,r,u,o,l)}_doInsertHere(t,n,r,u,o){if(n===null){this._mainRule.acceptOverwrite(t,r,u,o);return}for(let l=0,c=this._rulesWithParentScopes.length;l<c;l++){let f=this._rulesWithParentScopes[l];if(Lx(f.parentScopes,n)===0){f.acceptOverwrite(t,r,u,o);return}}r===-1&&(r=this._mainRule.fontStyle),u===0&&(u=this._mainRule.foreground),o===0&&(o=this._mainRule.background),this._rulesWithParentScopes.push(new Tg(t,n,r,u,o))}},oo=class mr{static toBinaryStr(t){return t.toString(2).padStart(32,"0")}static print(t){const n=mr.getLanguageId(t),r=mr.getTokenType(t),u=mr.getFontStyle(t),o=mr.getForeground(t),l=mr.getBackground(t);console.log({languageId:n,tokenType:r,fontStyle:u,foreground:o,background:l})}static getLanguageId(t){return(t&255)>>>0}static getTokenType(t){return(t&768)>>>8}static containsBalancedBrackets(t){return(t&1024)!==0}static getFontStyle(t){return(t&30720)>>>11}static getForeground(t){return(t&16744448)>>>15}static getBackground(t){return(t&4278190080)>>>24}static set(t,n,r,u,o,l,c){let f=mr.getLanguageId(t),h=mr.getTokenType(t),m=mr.containsBalancedBrackets(t)?1:0,E=mr.getFontStyle(t),g=mr.getForeground(t),_=mr.getBackground(t);return n!==0&&(f=n),r!==8&&(h=r),u!==null&&(m=u?1:0),o!==-1&&(E=o),l!==0&&(g=l),c!==0&&(_=c),(f<<0|h<<8|m<<10|E<<11|g<<15|_<<24)>>>0}};function Zf(e,t){const n=[],r=eq(e);let u=r.next();for(;u!==null;){let f=0;if(u.length===2&&u.charAt(1)===":"){switch(u.charAt(0)){case"R":f=1;break;case"L":f=-1;break;default:console.log(`Unknown priority ${u} in scope selector`)}u=r.next()}let h=l();if(n.push({matcher:h,priority:f}),u!==",")break;u=r.next()}return n;function o(){if(u==="-"){u=r.next();const f=o();return h=>!!f&&!f(h)}if(u==="("){u=r.next();const f=c();return u===")"&&(u=r.next()),f}if(Pv(u)){const f=[];do f.push(u),u=r.next();while(Pv(u));return h=>t(f,h)}return null}function l(){const f=[];let h=o();for(;h;)f.push(h),h=o();return m=>f.every(E=>E(m))}function c(){const f=[];let h=l();for(;h&&(f.push(h),u==="|"||u===",");){do u=r.next();while(u==="|"||u===",");h=l()}return m=>f.some(E=>E(m))}}function Pv(e){return!!e&&!!e.match(/[\w\.:]+/)}function eq(e){let t=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,n=t.exec(e);return{next:()=>{if(!n)return null;const r=n[0];return n=t.exec(e),r}}}function Ux(e){typeof e.dispose=="function"&&e.dispose()}var Bc=class{constructor(e){this.scopeName=e}toKey(){return this.scopeName}},tq=class{constructor(e,t){this.scopeName=e,this.ruleName=t}toKey(){return`${this.scopeName}#${this.ruleName}`}},nq=class{constructor(){oe(this,"_references",[]);oe(this,"_seenReferenceKeys",new Set);oe(this,"visitedRule",new Set)}get references(){return this._references}add(e){const t=e.toKey();this._seenReferenceKeys.has(t)||(this._seenReferenceKeys.add(t),this._references.push(e))}},rq=class{constructor(e,t){oe(this,"seenFullScopeRequests",new Set);oe(this,"seenPartialScopeRequests",new Set);oe(this,"Q");this.repo=e,this.initialScopeName=t,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new Bc(this.initialScopeName)]}processQueue(){const e=this.Q;this.Q=[];const t=new nq;for(const n of e)iq(n,this.initialScopeName,this.repo,t);for(const n of t.references)if(n instanceof Bc){if(this.seenFullScopeRequests.has(n.scopeName))continue;this.seenFullScopeRequests.add(n.scopeName),this.Q.push(n)}else{if(this.seenFullScopeRequests.has(n.scopeName)||this.seenPartialScopeRequests.has(n.toKey()))continue;this.seenPartialScopeRequests.add(n.toKey()),this.Q.push(n)}}};function iq(e,t,n,r){const u=n.lookup(e.scopeName);if(!u){if(e.scopeName===t)throw new Error(`No grammar provided for <${t}>`);return}const o=n.lookup(t);e instanceof Bc?ff({baseGrammar:o,selfGrammar:u},r):xg(e.ruleName,{baseGrammar:o,selfGrammar:u,repository:u.repository},r);const l=n.injections(e.scopeName);if(l)for(const c of l)r.add(new Bc(c))}function xg(e,t,n){if(t.repository&&t.repository[e]){const r=t.repository[e];Wf([r],t,n)}}function ff(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&Wf(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},t),e.selfGrammar.injections&&Wf(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}function Wf(e,t,n){for(const r of e){if(n.visitedRule.has(r))continue;n.visitedRule.add(r);const u=r.repository?Bx({},t.repository,r.repository):t.repository;Array.isArray(r.patterns)&&Wf(r.patterns,{...t,repository:u},n);const o=r.include;if(!o)continue;const l=kx(o);switch(l.kind){case 0:ff({...t,selfGrammar:t.baseGrammar},n);break;case 1:ff(t,n);break;case 2:xg(l.ruleName,{...t,repository:u},n);break;case 3:case 4:const c=l.scopeName===t.selfGrammar.scopeName?t.selfGrammar:l.scopeName===t.baseGrammar.scopeName?t.baseGrammar:void 0;if(c){const f={baseGrammar:t.baseGrammar,selfGrammar:c,repository:u};l.kind===4?xg(l.ruleName,f,n):ff(f,n)}else l.kind===4?n.add(new tq(l.scopeName,l.ruleName)):n.add(new Bc(l.scopeName));break}}}var uq=class{constructor(){oe(this,"kind",0)}},aq=class{constructor(){oe(this,"kind",1)}},sq=class{constructor(e){oe(this,"kind",2);this.ruleName=e}},oq=class{constructor(e){oe(this,"kind",3);this.scopeName=e}},lq=class{constructor(e,t){oe(this,"kind",4);this.scopeName=e,this.ruleName=t}};function kx(e){if(e==="$base")return new uq;if(e==="$self")return new aq;const t=e.indexOf("#");if(t===-1)return new oq(e);if(t===0)return new sq(e.substring(1));{const n=e.substring(0,t),r=e.substring(t+1);return new lq(n,r)}}var cq=/\\(\d+)/,Hv=/\\(\d+)/g,dq=-1,Gx=-2;var od=class{constructor(e,t,n,r){oe(this,"$location");oe(this,"id");oe(this,"_nameIsCapturing");oe(this,"_name");oe(this,"_contentNameIsCapturing");oe(this,"_contentName");this.$location=e,this.id=t,this._name=n||null,this._nameIsCapturing=G0.hasCaptures(this._name),this._contentName=r||null,this._contentNameIsCapturing=G0.hasCaptures(this._contentName)}get debugName(){const e=this.$location?`${Fx(this.$location.filename)}:${this.$location.line}`:"unknown";return`${this.constructor.name}#${this.id} @ ${e}`}getName(e,t){return!this._nameIsCapturing||this._name===null||e===null||t===null?this._name:G0.replaceCaptures(this._name,e,t)}getContentName(e,t){return!this._contentNameIsCapturing||this._contentName===null?this._contentName:G0.replaceCaptures(this._contentName,e,t)}},fq=class extends od{constructor(t,n,r,u,o){super(t,n,r,u);oe(this,"retokenizeCapturedWithRuleId");this.retokenizeCapturedWithRuleId=o}dispose(){}collectPatterns(t,n){throw new Error("Not supported!")}compile(t,n){throw new Error("Not supported!")}compileAG(t,n,r,u){throw new Error("Not supported!")}},hq=class extends od{constructor(t,n,r,u,o){super(t,n,r,null);oe(this,"_match");oe(this,"captures");oe(this,"_cachedCompiledPatterns");this._match=new Fc(u,this.id),this.captures=o,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(t,n){n.push(this._match)}compile(t,n){return this._getCachedCompiledPatterns(t).compile(t)}compileAG(t,n,r,u){return this._getCachedCompiledPatterns(t).compileAG(t,r,u)}_getCachedCompiledPatterns(t){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new Oc,this.collectPatterns(t,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},Uv=class extends od{constructor(t,n,r,u,o){super(t,n,r,u);oe(this,"hasMissingPatterns");oe(this,"patterns");oe(this,"_cachedCompiledPatterns");this.patterns=o.patterns,this.hasMissingPatterns=o.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(t,n){for(const r of this.patterns)t.getRule(r).collectPatterns(t,n)}compile(t,n){return this._getCachedCompiledPatterns(t).compile(t)}compileAG(t,n,r,u){return this._getCachedCompiledPatterns(t).compileAG(t,r,u)}_getCachedCompiledPatterns(t){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new Oc,this.collectPatterns(t,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},Bg=class extends od{constructor(t,n,r,u,o,l,c,f,h,m){super(t,n,r,u);oe(this,"_begin");oe(this,"beginCaptures");oe(this,"_end");oe(this,"endHasBackReferences");oe(this,"endCaptures");oe(this,"applyEndPatternLast");oe(this,"hasMissingPatterns");oe(this,"patterns");oe(this,"_cachedCompiledPatterns");this._begin=new Fc(o,this.id),this.beginCaptures=l,this._end=new Fc(c||"￿",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=f,this.applyEndPatternLast=h||!1,this.patterns=m.patterns,this.hasMissingPatterns=m.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugEndRegExp(){return`${this._end.source}`}getEndWithResolvedBackReferences(t,n){return this._end.resolveBackReferences(t,n)}collectPatterns(t,n){n.push(this._begin)}compile(t,n){return this._getCachedCompiledPatterns(t,n).compile(t)}compileAG(t,n,r,u){return this._getCachedCompiledPatterns(t,n).compileAG(t,r,u)}_getCachedCompiledPatterns(t,n){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new Oc;for(const r of this.patterns)t.getRule(r).collectPatterns(t,this._cachedCompiledPatterns);this.applyEndPatternLast?this._cachedCompiledPatterns.push(this._end.hasBackReferences?this._end.clone():this._end):this._cachedCompiledPatterns.unshift(this._end.hasBackReferences?this._end.clone():this._end)}return this._end.hasBackReferences&&(this.applyEndPatternLast?this._cachedCompiledPatterns.setSource(this._cachedCompiledPatterns.length()-1,n):this._cachedCompiledPatterns.setSource(0,n)),this._cachedCompiledPatterns}},qf=class extends od{constructor(t,n,r,u,o,l,c,f,h){super(t,n,r,u);oe(this,"_begin");oe(this,"beginCaptures");oe(this,"whileCaptures");oe(this,"_while");oe(this,"whileHasBackReferences");oe(this,"hasMissingPatterns");oe(this,"patterns");oe(this,"_cachedCompiledPatterns");oe(this,"_cachedCompiledWhilePatterns");this._begin=new Fc(o,this.id),this.beginCaptures=l,this.whileCaptures=f,this._while=new Fc(c,Gx),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=h.patterns,this.hasMissingPatterns=h.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null),this._cachedCompiledWhilePatterns&&(this._cachedCompiledWhilePatterns.dispose(),this._cachedCompiledWhilePatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugWhileRegExp(){return`${this._while.source}`}getWhileWithResolvedBackReferences(t,n){return this._while.resolveBackReferences(t,n)}collectPatterns(t,n){n.push(this._begin)}compile(t,n){return this._getCachedCompiledPatterns(t).compile(t)}compileAG(t,n,r,u){return this._getCachedCompiledPatterns(t).compileAG(t,r,u)}_getCachedCompiledPatterns(t){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new Oc;for(const n of this.patterns)t.getRule(n).collectPatterns(t,this._cachedCompiledPatterns)}return this._cachedCompiledPatterns}compileWhile(t,n){return this._getCachedCompiledWhilePatterns(t,n).compile(t)}compileWhileAG(t,n,r,u){return this._getCachedCompiledWhilePatterns(t,n).compileAG(t,r,u)}_getCachedCompiledWhilePatterns(t,n){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new Oc,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,n||"￿"),this._cachedCompiledWhilePatterns}},Vx=class _n{static createCaptureRule(t,n,r,u,o){return t.registerRule(l=>new fq(n,l,r,u,o))}static getCompiledRuleId(t,n,r){return t.id||n.registerRule(u=>{if(t.id=u,t.match)return new hq(t.$vscodeTextmateLocation,t.id,t.name,t.match,_n._compileCaptures(t.captures,n,r));if(typeof t.begin>"u"){t.repository&&(r=Bx({},r,t.repository));let o=t.patterns;return typeof o>"u"&&t.include&&(o=[{include:t.include}]),new Uv(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,_n._compilePatterns(o,n,r))}return t.while?new qf(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,_n._compileCaptures(t.beginCaptures||t.captures,n,r),t.while,_n._compileCaptures(t.whileCaptures||t.captures,n,r),_n._compilePatterns(t.patterns,n,r)):new Bg(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,_n._compileCaptures(t.beginCaptures||t.captures,n,r),t.end,_n._compileCaptures(t.endCaptures||t.captures,n,r),t.applyEndPatternLast,_n._compilePatterns(t.patterns,n,r))}),t.id}static _compileCaptures(t,n,r){let u=[];if(t){let o=0;for(const l in t){if(l==="$vscodeTextmateLocation")continue;const c=parseInt(l,10);c>o&&(o=c)}for(let l=0;l<=o;l++)u[l]=null;for(const l in t){if(l==="$vscodeTextmateLocation")continue;const c=parseInt(l,10);let f=0;t[l].patterns&&(f=_n.getCompiledRuleId(t[l],n,r)),u[c]=_n.createCaptureRule(n,t[l].$vscodeTextmateLocation,t[l].name,t[l].contentName,f)}}return u}static _compilePatterns(t,n,r){let u=[];if(t)for(let o=0,l=t.length;o<l;o++){const c=t[o];let f=-1;if(c.include){const h=kx(c.include);switch(h.kind){case 0:case 1:f=_n.getCompiledRuleId(r[c.include],n,r);break;case 2:let m=r[h.ruleName];m&&(f=_n.getCompiledRuleId(m,n,r));break;case 3:case 4:const E=h.scopeName,g=h.kind===4?h.ruleName:null,_=n.getExternalGrammar(E,r);if(_)if(g){let S=_.repository[g];S&&(f=_n.getCompiledRuleId(S,n,_.repository))}else f=_n.getCompiledRuleId(_.repository.$self,n,_.repository);break}}else f=_n.getCompiledRuleId(c,n,r);if(f!==-1){const h=n.getRule(f);let m=!1;if((h instanceof Uv||h instanceof Bg||h instanceof qf)&&h.hasMissingPatterns&&h.patterns.length===0&&(m=!0),m)continue;u.push(f)}}return{patterns:u,hasMissingPatterns:(t?t.length:0)!==u.length}}},Fc=class jx{constructor(t,n){oe(this,"source");oe(this,"ruleId");oe(this,"hasAnchor");oe(this,"hasBackReferences");oe(this,"_anchorCache");if(t&&typeof t=="string"){const r=t.length;let u=0,o=[],l=!1;for(let c=0;c<r;c++)if(t.charAt(c)==="\\"&&c+1<r){const h=t.charAt(c+1);h==="z"?(o.push(t.substring(u,c)),o.push("$(?!\\n)(?<!\\n)"),u=c+2):(h==="A"||h==="G")&&(l=!0),c++}this.hasAnchor=l,u===0?this.source=t:(o.push(t.substring(u,r)),this.source=o.join(""))}else this.hasAnchor=!1,this.source=t;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=n,typeof this.source=="string"?this.hasBackReferences=cq.test(this.source):this.hasBackReferences=!1}clone(){return new jx(this.source,this.ruleId)}setSource(t){this.source!==t&&(this.source=t,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(t,n){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let r=n.map(u=>t.substring(u.start,u.end));return Hv.lastIndex=0,this.source.replace(Hv,(u,o)=>wx(r[parseInt(o,10)]||""))}_buildAnchorCache(){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let t=[],n=[],r=[],u=[],o,l,c,f;for(o=0,l=this.source.length;o<l;o++)c=this.source.charAt(o),t[o]=c,n[o]=c,r[o]=c,u[o]=c,c==="\\"&&o+1<l&&(f=this.source.charAt(o+1),f==="A"?(t[o+1]="￿",n[o+1]="￿",r[o+1]="A",u[o+1]="A"):f==="G"?(t[o+1]="￿",n[o+1]="G",r[o+1]="￿",u[o+1]="G"):(t[o+1]=f,n[o+1]=f,r[o+1]=f,u[o+1]=f),o++);return{A0_G0:t.join(""),A0_G1:n.join(""),A1_G0:r.join(""),A1_G1:u.join("")}}resolveAnchors(t,n){return!this.hasAnchor||!this._anchorCache||typeof this.source!="string"?this.source:t?n?this._anchorCache.A1_G1:this._anchorCache.A1_G0:n?this._anchorCache.A0_G1:this._anchorCache.A0_G0}},Oc=class{constructor(){oe(this,"_items");oe(this,"_hasAnchors");oe(this,"_cached");oe(this,"_anchorCache");this._items=[],this._hasAnchors=!1,this._cached=null,this._anchorCache={A0_G0:null,A0_G1:null,A1_G0:null,A1_G1:null}}dispose(){this._disposeCaches()}_disposeCaches(){this._cached&&(this._cached.dispose(),this._cached=null),this._anchorCache.A0_G0&&(this._anchorCache.A0_G0.dispose(),this._anchorCache.A0_G0=null),this._anchorCache.A0_G1&&(this._anchorCache.A0_G1.dispose(),this._anchorCache.A0_G1=null),this._anchorCache.A1_G0&&(this._anchorCache.A1_G0.dispose(),this._anchorCache.A1_G0=null),this._anchorCache.A1_G1&&(this._anchorCache.A1_G1.dispose(),this._anchorCache.A1_G1=null)}push(e){this._items.push(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}unshift(e){this._items.unshift(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}length(){return this._items.length}setSource(e,t){this._items[e].source!==t&&(this._disposeCaches(),this._items[e].setSource(t))}compile(e){if(!this._cached){let t=this._items.map(n=>n.source);this._cached=new kv(e,t,this._items.map(n=>n.ruleId))}return this._cached}compileAG(e,t,n){return this._hasAnchors?t?n?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G0):n?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(e,t,n)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(e,t,n)),this._anchorCache.A0_G0):this.compile(e)}_resolveAnchors(e,t,n){let r=this._items.map(u=>u.resolveAnchors(t,n));return new kv(e,r,this._items.map(u=>u.ruleId))}},kv=class{constructor(e,t,n){oe(this,"scanner");this.regExps=t,this.rules=n,this.scanner=e.createOnigScanner(t)}dispose(){typeof this.scanner.dispose=="function"&&this.scanner.dispose()}toString(){const e=[];for(let t=0,n=this.rules.length;t<n;t++)e.push(" - "+this.rules[t]+": "+this.regExps[t]);return e.join(`
274
+ `)}findNextMatchSync(e,t,n){const r=this.scanner.findNextMatchSync(e,t,n);return r?{ruleId:this.rules[r.index],captureIndices:r.captureIndices}:null}},mE=class{constructor(e,t){this.languageId=e,this.tokenType=t}},xi,Aq=(xi=class{constructor(t,n){oe(this,"_defaultAttributes");oe(this,"_embeddedLanguagesMatcher");oe(this,"_getBasicScopeAttributes",new Mx(t=>{const n=this._scopeToLanguage(t),r=this._toStandardTokenType(t);return new mE(n,r)}));this._defaultAttributes=new mE(t,8),this._embeddedLanguagesMatcher=new mq(Object.entries(n||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(t){return t===null?xi._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(t)}_scopeToLanguage(t){return this._embeddedLanguagesMatcher.match(t)||0}_toStandardTokenType(t){const n=t.match(xi.STANDARD_TOKEN_TYPE_REGEXP);if(!n)return 8;switch(n[1]){case"comment":return 1;case"string":return 2;case"regex":return 3;case"meta.embedded":return 0}throw new Error("Unexpected match for standard token type!")}},oe(xi,"_NULL_SCOPE_METADATA",new mE(0,0)),oe(xi,"STANDARD_TOKEN_TYPE_REGEXP",/\b(comment|string|regex|meta\.embedded)\b/),xi),mq=class{constructor(e){oe(this,"values");oe(this,"scopesRegExp");if(e.length===0)this.values=null,this.scopesRegExp=null;else{this.values=new Map(e);const t=e.map(([n,r])=>wx(n));t.sort(),t.reverse(),this.scopesRegExp=new RegExp(`^((${t.join(")|(")}))($|\\.)`,"")}}match(e){if(!this.scopesRegExp)return;const t=e.match(this.scopesRegExp);if(t)return this.values.get(t[1])}},Gv=class{constructor(e,t){this.stack=e,this.stoppedEarly=t}};function zx(e,t,n,r,u,o,l,c){const f=t.content.length;let h=!1,m=-1;if(l){const _=pq(e,t,n,r,u,o);u=_.stack,r=_.linePos,n=_.isFirstLine,m=_.anchorPosition}const E=Date.now();for(;!h;){if(c!==0&&Date.now()-E>c)return new Gv(u,!0);g()}return new Gv(u,!1);function g(){const _=Eq(e,t,n,r,u,m);if(!_){o.produce(u,f),h=!0;return}const S=_.captureIndices,C=_.matchedRuleId,v=S&&S.length>0?S[0].end>r:!1;if(C===dq){const R=u.getRule(e);o.produce(u,S[0].start),u=u.withContentNameScopesList(u.nameScopesList),Yl(e,t,n,u,o,R.endCaptures,S),o.produce(u,S[0].end);const D=u;if(u=u.parent,m=D.getAnchorPos(),!v&&D.getEnterPos()===r){u=D,o.produce(u,f),h=!0;return}}else{const R=e.getRule(C);o.produce(u,S[0].start);const D=u,b=R.getName(t.content,S),L=u.contentNameScopesList.pushAttributed(b,e);if(u=u.push(C,r,m,S[0].end===f,null,L,L),R instanceof Bg){const x=R;Yl(e,t,n,u,o,x.beginCaptures,S),o.produce(u,S[0].end),m=S[0].end;const B=x.getContentName(t.content,S),O=L.pushAttributed(B,e);if(u=u.withContentNameScopesList(O),x.endHasBackReferences&&(u=u.withEndRule(x.getEndWithResolvedBackReferences(t.content,S))),!v&&D.hasSameRuleAs(u)){u=u.pop(),o.produce(u,f),h=!0;return}}else if(R instanceof qf){const x=R;Yl(e,t,n,u,o,x.beginCaptures,S),o.produce(u,S[0].end),m=S[0].end;const B=x.getContentName(t.content,S),O=L.pushAttributed(B,e);if(u=u.withContentNameScopesList(O),x.whileHasBackReferences&&(u=u.withEndRule(x.getWhileWithResolvedBackReferences(t.content,S))),!v&&D.hasSameRuleAs(u)){u=u.pop(),o.produce(u,f),h=!0;return}}else if(Yl(e,t,n,u,o,R.captures,S),o.produce(u,S[0].end),u=u.pop(),!v){u=u.safePop(),o.produce(u,f),h=!0;return}}S[0].end>r&&(r=S[0].end,n=!1)}}function pq(e,t,n,r,u,o){let l=u.beginRuleCapturedEOL?0:-1;const c=[];for(let f=u;f;f=f.pop()){const h=f.getRule(e);h instanceof qf&&c.push({rule:h,stack:f})}for(let f=c.pop();f;f=c.pop()){const{ruleScanner:h,findOptions:m}=Sq(f.rule,e,f.stack.endRule,n,r===l),E=h.findNextMatchSync(t,r,m);if(E){if(E.ruleId!==Gx){u=f.stack.pop();break}E.captureIndices&&E.captureIndices.length&&(o.produce(f.stack,E.captureIndices[0].start),Yl(e,t,n,f.stack,o,f.rule.whileCaptures,E.captureIndices),o.produce(f.stack,E.captureIndices[0].end),l=E.captureIndices[0].end,E.captureIndices[0].end>r&&(r=E.captureIndices[0].end,n=!1))}else{u=f.stack.pop();break}}return{stack:u,linePos:r,anchorPosition:l,isFirstLine:n}}function Eq(e,t,n,r,u,o){const l=gq(e,t,n,r,u,o),c=e.getInjections();if(c.length===0)return l;const f=_q(c,e,t,n,r,u,o);if(!f)return l;if(!l)return f;const h=l.captureIndices[0].start,m=f.captureIndices[0].start;return m<h||f.priorityMatch&&m===h?f:l}function gq(e,t,n,r,u,o){const l=u.getRule(e),{ruleScanner:c,findOptions:f}=Kx(l,e,u.endRule,n,r===o),h=c.findNextMatchSync(t,r,f);return h?{captureIndices:h.captureIndices,matchedRuleId:h.ruleId}:null}function _q(e,t,n,r,u,o,l){let c=Number.MAX_VALUE,f=null,h,m=0;const E=o.contentNameScopesList.getScopeNames();for(let g=0,_=e.length;g<_;g++){const S=e[g];if(!S.matcher(E))continue;const C=t.getRule(S.ruleId),{ruleScanner:v,findOptions:R}=Kx(C,t,null,r,u===l),D=v.findNextMatchSync(n,u,R);if(!D)continue;const b=D.captureIndices[0].start;if(!(b>=c)&&(c=b,f=D.captureIndices,h=D.ruleId,m=S.priority,c===u))break}return f?{priorityMatch:m===-1,captureIndices:f,matchedRuleId:h}:null}function Kx(e,t,n,r,u){return{ruleScanner:e.compileAG(t,n,r,u),findOptions:0}}function Sq(e,t,n,r,u){return{ruleScanner:e.compileWhileAG(t,n,r,u),findOptions:0}}function Yl(e,t,n,r,u,o,l){if(o.length===0)return;const c=t.content,f=Math.min(o.length,l.length),h=[],m=l[0].end;for(let E=0;E<f;E++){const g=o[E];if(g===null)continue;const _=l[E];if(_.length===0)continue;if(_.start>m)break;for(;h.length>0&&h[h.length-1].endPos<=_.start;)u.produceFromScopes(h[h.length-1].scopes,h[h.length-1].endPos),h.pop();if(h.length>0?u.produceFromScopes(h[h.length-1].scopes,_.start):u.produce(r,_.start),g.retokenizeCapturedWithRuleId){const C=g.getName(c,l),v=r.contentNameScopesList.pushAttributed(C,e),R=g.getContentName(c,l),D=v.pushAttributed(R,e),b=r.push(g.retokenizeCapturedWithRuleId,_.start,-1,!1,null,v,D),L=e.createOnigString(c.substring(0,_.end));zx(e,L,n&&_.start===0,_.start,b,u,!1,0),Ux(L);continue}const S=g.getName(c,l);if(S!==null){const v=(h.length>0?h[h.length-1].scopes:r.contentNameScopesList).pushAttributed(S,e);h.push(new Nq(v,_.end))}}for(;h.length>0;)u.produceFromScopes(h[h.length-1].scopes,h[h.length-1].endPos),h.pop()}var Nq=class{constructor(e,t){oe(this,"scopes");oe(this,"endPos");this.scopes=e,this.endPos=t}};function Iq(e,t,n,r,u,o,l,c){return new Cq(e,t,n,r,u,o,l,c)}function Vv(e,t,n,r,u){const o=Zf(t,Xf),l=Vx.getCompiledRuleId(n,r,u.repository);for(const c of o)e.push({debugSelector:t,matcher:c.matcher,ruleId:l,grammar:u,priority:c.priority})}function Xf(e,t){if(t.length<e.length)return!1;let n=0;return e.every(r=>{for(let u=n;u<t.length;u++)if(yq(t[u],r))return n=u+1,!0;return!1})}function yq(e,t){if(!e)return!1;if(e===t)return!0;const n=t.length;return e.length>n&&e.substr(0,n)===t&&e[n]==="."}var Cq=class{constructor(e,t,n,r,u,o,l,c){oe(this,"_rootId");oe(this,"_lastRuleId");oe(this,"_ruleId2desc");oe(this,"_includedGrammars");oe(this,"_grammarRepository");oe(this,"_grammar");oe(this,"_injections");oe(this,"_basicScopeAttributesProvider");oe(this,"_tokenTypeMatchers");if(this._rootScopeName=e,this.balancedBracketSelectors=o,this._onigLib=c,this._basicScopeAttributesProvider=new Aq(n,r),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=l,this._grammar=jv(t,null),this._injections=null,this._tokenTypeMatchers=[],u)for(const f of Object.keys(u)){const h=Zf(f,Xf);for(const m of h)this._tokenTypeMatchers.push({matcher:m.matcher,type:u[f]})}}get themeProvider(){return this._grammarRepository}dispose(){for(const e of this._ruleId2desc)e&&e.dispose()}createOnigScanner(e){return this._onigLib.createOnigScanner(e)}createOnigString(e){return this._onigLib.createOnigString(e)}getMetadataForScope(e){return this._basicScopeAttributesProvider.getBasicScopeAttributes(e)}_collectInjections(){const e={lookup:u=>u===this._rootScopeName?this._grammar:this.getExternalGrammar(u),injections:u=>this._grammarRepository.injections(u)},t=[],n=this._rootScopeName,r=e.lookup(n);if(r){const u=r.injections;if(u)for(let l in u)Vv(t,l,u[l],this,r);const o=this._grammarRepository.injections(n);o&&o.forEach(l=>{const c=this.getExternalGrammar(l);if(c){const f=c.injectionSelector;f&&Vv(t,f,c,this,c)}})}return t.sort((u,o)=>u.priority-o.priority),t}getInjections(){return this._injections===null&&(this._injections=this._collectInjections()),this._injections}registerRule(e){const t=++this._lastRuleId,n=e(t);return this._ruleId2desc[t]=n,n}getRule(e){return this._ruleId2desc[e]}getExternalGrammar(e,t){if(this._includedGrammars[e])return this._includedGrammars[e];if(this._grammarRepository){const n=this._grammarRepository.lookup(e);if(n)return this._includedGrammars[e]=jv(n,t&&t.$base),this._includedGrammars[e]}}tokenizeLine(e,t,n=0){const r=this._tokenize(e,t,!1,n);return{tokens:r.lineTokens.getResult(r.ruleStack,r.lineLength),ruleStack:r.ruleStack,stoppedEarly:r.stoppedEarly}}tokenizeLine2(e,t,n=0){const r=this._tokenize(e,t,!0,n);return{tokens:r.lineTokens.getBinaryResult(r.ruleStack,r.lineLength),ruleStack:r.ruleStack,stoppedEarly:r.stoppedEarly}}_tokenize(e,t,n,r){this._rootId===-1&&(this._rootId=Vx.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections());let u;if(!t||t===Fg.NULL){u=!0;const h=this._basicScopeAttributesProvider.getDefaultAttributes(),m=this.themeProvider.getDefaults(),E=oo.set(0,h.languageId,h.tokenType,null,m.fontStyle,m.foregroundId,m.backgroundId),g=this.getRule(this._rootId).getName(null,null);let _;g?_=ic.createRootAndLookUpScopeName(g,E,this):_=ic.createRoot("unknown",E),t=new Fg(null,this._rootId,-1,-1,!1,null,_,_)}else u=!1,t.reset();e=e+`
275
+ `;const o=this.createOnigString(e),l=o.content.length,c=new Rq(n,e,this._tokenTypeMatchers,this.balancedBracketSelectors),f=zx(this,o,u,0,t,c,!0,r);return Ux(o),{lineLength:l,lineTokens:c,ruleStack:f.stack,stoppedEarly:f.stoppedEarly}}};function jv(e,t){return e=jW(e),e.repository=e.repository||{},e.repository.$self={$vscodeTextmateLocation:e.$vscodeTextmateLocation,patterns:e.patterns,name:e.scopeName},e.repository.$base=t||e.repository.$self,e}var ic=class Kr{constructor(t,n,r){this.parent=t,this.scopePath=n,this.tokenAttributes=r}static fromExtension(t,n){let r=t,u=(t==null?void 0:t.scopePath)??null;for(const o of n)u=AE.push(u,o.scopeNames),r=new Kr(r,u,o.encodedTokenAttributes);return r}static createRoot(t,n){return new Kr(null,new AE(null,t),n)}static createRootAndLookUpScopeName(t,n,r){const u=r.getMetadataForScope(t),o=new AE(null,t),l=r.themeProvider.themeMatch(o),c=Kr.mergeAttributes(n,u,l);return new Kr(null,o,c)}get scopeName(){return this.scopePath.scopeName}toString(){return this.getScopeNames().join(" ")}equals(t){return Kr.equals(this,t)}static equals(t,n){do{if(t===n||!t&&!n)return!0;if(!t||!n||t.scopeName!==n.scopeName||t.tokenAttributes!==n.tokenAttributes)return!1;t=t.parent,n=n.parent}while(!0)}static mergeAttributes(t,n,r){let u=-1,o=0,l=0;return r!==null&&(u=r.fontStyle,o=r.foregroundId,l=r.backgroundId),oo.set(t,n.languageId,n.tokenType,null,u,o,l)}pushAttributed(t,n){if(t===null)return this;if(t.indexOf(" ")===-1)return Kr._pushAttributed(this,t,n);const r=t.split(/ /g);let u=this;for(const o of r)u=Kr._pushAttributed(u,o,n);return u}static _pushAttributed(t,n,r){const u=r.getMetadataForScope(n),o=t.scopePath.push(n),l=r.themeProvider.themeMatch(o),c=Kr.mergeAttributes(t.tokenAttributes,u,l);return new Kr(t,o,c)}getScopeNames(){return this.scopePath.getSegments()}getExtensionIfDefined(t){var u;const n=[];let r=this;for(;r&&r!==t;)n.push({encodedTokenAttributes:r.tokenAttributes,scopeNames:r.scopePath.getExtensionIfDefined(((u=r.parent)==null?void 0:u.scopePath)??null)}),r=r.parent;return r===t?n.reverse():void 0}},gr,Fg=(gr=class{constructor(t,n,r,u,o,l,c,f){oe(this,"_stackElementBrand");oe(this,"_enterPos");oe(this,"_anchorPos");oe(this,"depth");this.parent=t,this.ruleId=n,this.beginRuleCapturedEOL=o,this.endRule=l,this.nameScopesList=c,this.contentNameScopesList=f,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=r,this._anchorPos=u}equals(t){return t===null?!1:gr._equals(this,t)}static _equals(t,n){return t===n?!0:this._structuralEquals(t,n)?ic.equals(t.contentNameScopesList,n.contentNameScopesList):!1}static _structuralEquals(t,n){do{if(t===n||!t&&!n)return!0;if(!t||!n||t.depth!==n.depth||t.ruleId!==n.ruleId||t.endRule!==n.endRule)return!1;t=t.parent,n=n.parent}while(!0)}clone(){return this}static _reset(t){for(;t;)t._enterPos=-1,t._anchorPos=-1,t=t.parent}reset(){gr._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(t,n,r,u,o,l,c){return new gr(this,t,n,r,u,o,l,c)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(t){return t.getRule(this.ruleId)}toString(){const t=[];return this._writeString(t,0),"["+t.join(",")+"]"}_writeString(t,n){var r,u;return this.parent&&(n=this.parent._writeString(t,n)),t[n++]=`(${this.ruleId}, ${(r=this.nameScopesList)==null?void 0:r.toString()}, ${(u=this.contentNameScopesList)==null?void 0:u.toString()})`,n}withContentNameScopesList(t){return this.contentNameScopesList===t?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,t)}withEndRule(t){return this.endRule===t?this:new gr(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,t,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(t){let n=this;for(;n&&n._enterPos===t._enterPos;){if(n.ruleId===t.ruleId)return!0;n=n.parent}return!1}toStateStackFrame(){var t,n,r;return{ruleId:this.ruleId,beginRuleCapturedEOL:this.beginRuleCapturedEOL,endRule:this.endRule,nameScopesList:((n=this.nameScopesList)==null?void 0:n.getExtensionIfDefined(((t=this.parent)==null?void 0:t.nameScopesList)??null))??[],contentNameScopesList:((r=this.contentNameScopesList)==null?void 0:r.getExtensionIfDefined(this.nameScopesList))??[]}}static pushFrame(t,n){const r=ic.fromExtension((t==null?void 0:t.nameScopesList)??null,n.nameScopesList);return new gr(t,n.ruleId,n.enterPos??-1,n.anchorPos??-1,n.beginRuleCapturedEOL,n.endRule,r,ic.fromExtension(r,n.contentNameScopesList))}},oe(gr,"NULL",new gr(null,0,0,0,!1,null,null,null)),gr),vq=class{constructor(e,t){oe(this,"balancedBracketScopes");oe(this,"unbalancedBracketScopes");oe(this,"allowAny",!1);this.balancedBracketScopes=e.flatMap(n=>n==="*"?(this.allowAny=!0,[]):Zf(n,Xf).map(r=>r.matcher)),this.unbalancedBracketScopes=t.flatMap(n=>Zf(n,Xf).map(r=>r.matcher))}get matchesAlways(){return this.allowAny&&this.unbalancedBracketScopes.length===0}get matchesNever(){return this.balancedBracketScopes.length===0&&!this.allowAny}match(e){for(const t of this.unbalancedBracketScopes)if(t(e))return!1;for(const t of this.balancedBracketScopes)if(t(e))return!0;return this.allowAny}},Rq=class{constructor(e,t,n,r){oe(this,"_emitBinaryTokens");oe(this,"_lineText");oe(this,"_tokens");oe(this,"_binaryTokens");oe(this,"_lastTokenEndIndex");oe(this,"_tokenTypeOverrides");this.balancedBracketSelectors=r,this._emitBinaryTokens=e,this._tokenTypeOverrides=n,this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}produce(e,t){this.produceFromScopes(e.contentNameScopesList,t)}produceFromScopes(e,t){var r;if(this._lastTokenEndIndex>=t)return;if(this._emitBinaryTokens){let u=(e==null?void 0:e.tokenAttributes)??0,o=!1;if((r=this.balancedBracketSelectors)!=null&&r.matchesAlways&&(o=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){const l=(e==null?void 0:e.getScopeNames())??[];for(const c of this._tokenTypeOverrides)c.matcher(l)&&(u=oo.set(u,0,c.type,null,-1,0,0));this.balancedBracketSelectors&&(o=this.balancedBracketSelectors.match(l))}if(o&&(u=oo.set(u,0,8,o,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===u){this._lastTokenEndIndex=t;return}this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(u),this._lastTokenEndIndex=t;return}const n=(e==null?void 0:e.getScopeNames())??[];this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:t,scopes:n}),this._lastTokenEndIndex=t}getResult(e,t){return this._tokens.length>0&&this._tokens[this._tokens.length-1].startIndex===t-1&&this._tokens.pop(),this._tokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._tokens[this._tokens.length-1].startIndex=0),this._tokens}getBinaryResult(e,t){this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-2]===t-1&&(this._binaryTokens.pop(),this._binaryTokens.pop()),this._binaryTokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._binaryTokens[this._binaryTokens.length-2]=0);const n=new Uint32Array(this._binaryTokens.length);for(let r=0,u=this._binaryTokens.length;r<u;r++)n[r]=this._binaryTokens[r];return n}},Dq=class{constructor(e,t){oe(this,"_grammars",new Map);oe(this,"_rawGrammars",new Map);oe(this,"_injectionGrammars",new Map);oe(this,"_theme");this._onigLib=t,this._theme=e}dispose(){for(const e of this._grammars.values())e.dispose()}setTheme(e){this._theme=e}getColorMap(){return this._theme.getColorMap()}addGrammar(e,t){this._rawGrammars.set(e.scopeName,e),t&&this._injectionGrammars.set(e.scopeName,t)}lookup(e){return this._rawGrammars.get(e)}injections(e){return this._injectionGrammars.get(e)}getDefaults(){return this._theme.getDefaults()}themeMatch(e){return this._theme.match(e)}grammarForScopeName(e,t,n,r,u){if(!this._grammars.has(e)){let o=this._rawGrammars.get(e);if(!o)return null;this._grammars.set(e,Iq(e,o,t,n,r,u,this,this._onigLib))}return this._grammars.get(e)}},Tq=class{constructor(t){oe(this,"_options");oe(this,"_syncRegistry");oe(this,"_ensureGrammarCache");this._options=t,this._syncRegistry=new Dq(Yf.createFromRawTheme(t.theme,t.colorMap),t.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(t,n){this._syncRegistry.setTheme(Yf.createFromRawTheme(t,n))}getColorMap(){return this._syncRegistry.getColorMap()}loadGrammarWithEmbeddedLanguages(t,n,r){return this.loadGrammarWithConfiguration(t,n,{embeddedLanguages:r})}loadGrammarWithConfiguration(t,n,r){return this._loadGrammar(t,n,r.embeddedLanguages,r.tokenTypes,new vq(r.balancedBracketSelectors||[],r.unbalancedBracketSelectors||[]))}loadGrammar(t){return this._loadGrammar(t,0,null,null,null)}_loadGrammar(t,n,r,u,o){const l=new rq(this._syncRegistry,t);for(;l.Q.length>0;)l.Q.map(c=>this._loadSingleGrammar(c.scopeName)),l.processQueue();return this._grammarForScopeName(t,n,r,u,o)}_loadSingleGrammar(t){this._ensureGrammarCache.has(t)||(this._doLoadSingleGrammar(t),this._ensureGrammarCache.set(t,!0))}_doLoadSingleGrammar(t){const n=this._options.loadGrammar(t);if(n){const r=typeof this._options.getInjections=="function"?this._options.getInjections(t):void 0;this._syncRegistry.addGrammar(n,r)}}addGrammar(t,n=[],r=0,u=null){return this._syncRegistry.addGrammar(t,n),this._grammarForScopeName(t.scopeName,r,u)}_grammarForScopeName(t,n=0,r=null,u=null,o=null){return this._syncRegistry.grammarForScopeName(t,n,r,u,o)}},Og=Fg.NULL;const bq=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"];class ld{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}}ld.prototype.normal={};ld.prototype.property={};ld.prototype.space=void 0;function $x(e,t){const n={},r={};for(const u of e)Object.assign(n,u.property),Object.assign(r,u.normal);return new ld(n,r,t)}function Lg(e){return e.toLowerCase()}class Un{constructor(t,n){this.attribute=n,this.property=t}}Un.prototype.attribute="";Un.prototype.booleanish=!1;Un.prototype.boolean=!1;Un.prototype.commaOrSpaceSeparated=!1;Un.prototype.commaSeparated=!1;Un.prototype.defined=!1;Un.prototype.mustUseProperty=!1;Un.prototype.number=!1;Un.prototype.overloadedBoolean=!1;Un.prototype.property="";Un.prototype.spaceSeparated=!1;Un.prototype.space=void 0;let xq=0;const We=Ka(),$t=Ka(),Yx=Ka(),ge=Ka(),Nt=Ka(),qs=Ka(),Zn=Ka();function Ka(){return 2**++xq}const wg=Object.freeze(Object.defineProperty({__proto__:null,boolean:We,booleanish:$t,commaOrSpaceSeparated:Zn,commaSeparated:qs,number:ge,overloadedBoolean:Yx,spaceSeparated:Nt},Symbol.toStringTag,{value:"Module"})),pE=Object.keys(wg);class T_ extends Un{constructor(t,n,r,u){let o=-1;if(super(t,n),zv(this,"space",u),typeof r=="number")for(;++o<pE.length;){const l=pE[o];zv(this,pE[o],(r&wg[l])===wg[l])}}}T_.prototype.defined=!0;function zv(e,t,n){n&&(e[t]=n)}function Ro(e){const t={},n={};for(const[r,u]of Object.entries(e.properties)){const o=new T_(r,e.transform(e.attributes||{},r),u,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(o.mustUseProperty=!0),t[r]=o,n[Lg(r)]=r,n[Lg(o.attribute)]=r}return new ld(t,n,e.space)}const Zx=Ro({properties:{ariaActiveDescendant:null,ariaAtomic:$t,ariaAutoComplete:null,ariaBusy:$t,ariaChecked:$t,ariaColCount:ge,ariaColIndex:ge,ariaColSpan:ge,ariaControls:Nt,ariaCurrent:null,ariaDescribedBy:Nt,ariaDetails:null,ariaDisabled:$t,ariaDropEffect:Nt,ariaErrorMessage:null,ariaExpanded:$t,ariaFlowTo:Nt,ariaGrabbed:$t,ariaHasPopup:null,ariaHidden:$t,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Nt,ariaLevel:ge,ariaLive:null,ariaModal:$t,ariaMultiLine:$t,ariaMultiSelectable:$t,ariaOrientation:null,ariaOwns:Nt,ariaPlaceholder:null,ariaPosInSet:ge,ariaPressed:$t,ariaReadOnly:$t,ariaRelevant:null,ariaRequired:$t,ariaRoleDescription:Nt,ariaRowCount:ge,ariaRowIndex:ge,ariaRowSpan:ge,ariaSelected:$t,ariaSetSize:ge,ariaSort:null,ariaValueMax:ge,ariaValueMin:ge,ariaValueNow:ge,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function Wx(e,t){return t in e?e[t]:t}function qx(e,t){return Wx(e,t.toLowerCase())}const Bq=Ro({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:qs,acceptCharset:Nt,accessKey:Nt,action:null,allow:null,allowFullScreen:We,allowPaymentRequest:We,allowUserMedia:We,alt:null,as:null,async:We,autoCapitalize:null,autoComplete:Nt,autoFocus:We,autoPlay:We,blocking:Nt,capture:null,charSet:null,checked:We,cite:null,className:Nt,cols:ge,colSpan:null,content:null,contentEditable:$t,controls:We,controlsList:Nt,coords:ge|qs,crossOrigin:null,data:null,dateTime:null,decoding:null,default:We,defer:We,dir:null,dirName:null,disabled:We,download:Yx,draggable:$t,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:We,formTarget:null,headers:Nt,height:ge,hidden:We,high:ge,href:null,hrefLang:null,htmlFor:Nt,httpEquiv:Nt,id:null,imageSizes:null,imageSrcSet:null,inert:We,inputMode:null,integrity:null,is:null,isMap:We,itemId:null,itemProp:Nt,itemRef:Nt,itemScope:We,itemType:Nt,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:We,low:ge,manifest:null,max:null,maxLength:ge,media:null,method:null,min:null,minLength:ge,multiple:We,muted:We,name:null,nonce:null,noModule:We,noValidate:We,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:We,optimum:ge,pattern:null,ping:Nt,placeholder:null,playsInline:We,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:We,referrerPolicy:null,rel:Nt,required:We,reversed:We,rows:ge,rowSpan:ge,sandbox:Nt,scope:null,scoped:We,seamless:We,selected:We,shadowRootClonable:We,shadowRootDelegatesFocus:We,shadowRootMode:null,shape:null,size:ge,sizes:null,slot:null,span:ge,spellCheck:$t,src:null,srcDoc:null,srcLang:null,srcSet:null,start:ge,step:null,style:null,tabIndex:ge,target:null,title:null,translate:null,type:null,typeMustMatch:We,useMap:null,value:$t,width:ge,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Nt,axis:null,background:null,bgColor:null,border:ge,borderColor:null,bottomMargin:ge,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:We,declare:We,event:null,face:null,frame:null,frameBorder:null,hSpace:ge,leftMargin:ge,link:null,longDesc:null,lowSrc:null,marginHeight:ge,marginWidth:ge,noResize:We,noHref:We,noShade:We,noWrap:We,object:null,profile:null,prompt:null,rev:null,rightMargin:ge,rules:null,scheme:null,scrolling:$t,standby:null,summary:null,text:null,topMargin:ge,valueType:null,version:null,vAlign:null,vLink:null,vSpace:ge,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:We,disableRemotePlayback:We,prefix:null,property:null,results:ge,security:null,unselectable:null},space:"html",transform:qx}),Fq=Ro({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:Zn,accentHeight:ge,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:ge,amplitude:ge,arabicForm:null,ascent:ge,attributeName:null,attributeType:null,azimuth:ge,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:ge,by:null,calcMode:null,capHeight:ge,className:Nt,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:ge,diffuseConstant:ge,direction:null,display:null,dur:null,divisor:ge,dominantBaseline:null,download:We,dx:null,dy:null,edgeMode:null,editable:null,elevation:ge,enableBackground:null,end:null,event:null,exponent:ge,externalResourcesRequired:null,fill:null,fillOpacity:ge,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:qs,g2:qs,glyphName:qs,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:ge,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:ge,horizOriginX:ge,horizOriginY:ge,id:null,ideographic:ge,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:ge,k:ge,k1:ge,k2:ge,k3:ge,k4:ge,kernelMatrix:Zn,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:ge,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:ge,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:ge,overlineThickness:ge,paintOrder:null,panose1:null,path:null,pathLength:ge,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Nt,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:ge,pointsAtY:ge,pointsAtZ:ge,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Zn,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Zn,rev:Zn,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Zn,requiredFeatures:Zn,requiredFonts:Zn,requiredFormats:Zn,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:ge,specularExponent:ge,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:ge,strikethroughThickness:ge,string:null,stroke:null,strokeDashArray:Zn,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:ge,strokeOpacity:ge,strokeWidth:null,style:null,surfaceScale:ge,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Zn,tabIndex:ge,tableValues:null,target:null,targetX:ge,targetY:ge,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Zn,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:ge,underlineThickness:ge,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:ge,values:null,vAlphabetic:ge,vMathematical:ge,vectorEffect:null,vHanging:ge,vIdeographic:ge,version:null,vertAdvY:ge,vertOriginX:ge,vertOriginY:ge,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:ge,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:Wx}),Xx=Ro({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),Qx=Ro({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:qx}),Jx=Ro({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),Oq=/[A-Z]/g,Kv=/-[a-z]/g,Lq=/^data[-\w.:]+$/i;function wq(e,t){const n=Lg(t);let r=t,u=Un;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&Lq.test(t)){if(t.charAt(4)==="-"){const o=t.slice(5).replace(Kv,Pq);r="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=t.slice(4);if(!Kv.test(o)){let l=o.replace(Oq,Mq);l.charAt(0)!=="-"&&(l="-"+l),t="data"+l}}u=T_}return new u(r,t)}function Mq(e){return"-"+e.toLowerCase()}function Pq(e){return e.charAt(1).toUpperCase()}const Hq=$x([Zx,Bq,Xx,Qx,Jx],"html"),eB=$x([Zx,Fq,Xx,Qx,Jx],"svg"),$v={}.hasOwnProperty;function Uq(e,t){const n=t||{};function r(u,...o){let l=r.invalid;const c=r.handlers;if(u&&$v.call(u,e)){const f=String(u[e]);l=$v.call(c,f)?c[f]:r.unknown}if(l)return l.call(this,u,...o)}return r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r}const kq=/["&'<>`]/g,Gq=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Vq=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,jq=/[|\\{}()[\]^$+*?.]/g,Yv=new WeakMap;function zq(e,t){if(e=e.replace(t.subset?Kq(t.subset):kq,r),t.subset||t.escapeOnly)return e;return e.replace(Gq,n).replace(Vq,r);function n(u,o,l){return t.format((u.charCodeAt(0)-55296)*1024+u.charCodeAt(1)-56320+65536,l.charCodeAt(o+2),t)}function r(u,o,l){return t.format(u.charCodeAt(0),l.charCodeAt(o+1),t)}}function Kq(e){let t=Yv.get(e);return t||(t=$q(e),Yv.set(e,t)),t}function $q(e){const t=[];let n=-1;for(;++n<e.length;)t.push(e[n].replace(jq,"\\$&"));return new RegExp("(?:"+t.join("|")+")","g")}const Yq=/[\dA-Fa-f]/;function Zq(e,t,n){const r="&#x"+e.toString(16).toUpperCase();return n&&t&&!Yq.test(String.fromCharCode(t))?r:r+";"}const Wq=/\d/;function qq(e,t,n){const r="&#"+String(e);return n&&t&&!Wq.test(String.fromCharCode(t))?r:r+";"}const Xq=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"],EE={nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"­",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",fnof:"ƒ",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",bull:"•",hellip:"…",prime:"′",Prime:"″",oline:"‾",frasl:"⁄",weierp:"℘",image:"ℑ",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦",quot:'"',amp:"&",lt:"<",gt:">",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",circ:"ˆ",tilde:"˜",ensp:" ",emsp:" ",thinsp:" ",zwnj:"‌",zwj:"‍",lrm:"‎",rlm:"‏",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",permil:"‰",lsaquo:"‹",rsaquo:"›",euro:"€"},Qq=["cent","copy","divide","gt","lt","not","para","times"],tB={}.hasOwnProperty,Mg={};let V0;for(V0 in EE)tB.call(EE,V0)&&(Mg[EE[V0]]=V0);const Jq=/[^\dA-Za-z]/;function eX(e,t,n,r){const u=String.fromCharCode(e);if(tB.call(Mg,u)){const o=Mg[u],l="&"+o;return n&&Xq.includes(o)&&!Qq.includes(o)&&(!r||t&&t!==61&&Jq.test(String.fromCharCode(t)))?l:l+";"}return""}function tX(e,t,n){let r=Zq(e,t,n.omitOptionalSemicolons),u;if((n.useNamedReferences||n.useShortestReferences)&&(u=eX(e,t,n.omitOptionalSemicolons,n.attribute)),(n.useShortestReferences||!u)&&n.useShortestReferences){const o=qq(e,t,n.omitOptionalSemicolons);o.length<r.length&&(r=o)}return u&&(!n.useShortestReferences||u.length<r.length)?u:r}function Xs(e,t){return zq(e,Object.assign({format:tX},t))}const nX=/^>|^->|<!--|-->|--!>|<!-$/g,rX=[">"],iX=["<",">"];function uX(e,t,n,r){return r.settings.bogusComments?"<?"+Xs(e.value,Object.assign({},r.settings.characterReferences,{subset:rX}))+">":"<!--"+e.value.replace(nX,u)+"-->";function u(o){return Xs(o,Object.assign({},r.settings.characterReferences,{subset:iX}))}}function aX(e,t,n,r){return"<!"+(r.settings.upperDoctype?"DOCTYPE":"doctype")+(r.settings.tightDoctype?"":" ")+"html>"}function Zv(e,t){const n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let r=0,u=n.indexOf(t);for(;u!==-1;)r++,u=n.indexOf(t,u+t.length);return r}function sX(e,t){const n=t||{};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}function oX(e){return e.join(" ").trim()}const lX=/[ \t\n\f\r]/g;function b_(e){return typeof e=="object"?e.type==="text"?Wv(e.value):!1:Wv(e)}function Wv(e){return e.replace(lX,"")===""}const Qt=rB(1),nB=rB(-1),cX=[];function rB(e){return t;function t(n,r,u){const o=n?n.children:cX;let l=(r||0)+e,c=o[l];if(!u)for(;c&&b_(c);)l+=e,c=o[l];return c}}const dX={}.hasOwnProperty;function iB(e){return t;function t(n,r,u){return dX.call(e,n.tagName)&&e[n.tagName](n,r,u)}}const x_=iB({body:hX,caption:gE,colgroup:gE,dd:EX,dt:pX,head:gE,html:fX,li:mX,optgroup:gX,option:_X,p:AX,rp:qv,rt:qv,tbody:NX,td:Xv,tfoot:IX,th:Xv,thead:SX,tr:yX});function gE(e,t,n){const r=Qt(n,t,!0);return!r||r.type!=="comment"&&!(r.type==="text"&&b_(r.value.charAt(0)))}function fX(e,t,n){const r=Qt(n,t);return!r||r.type!=="comment"}function hX(e,t,n){const r=Qt(n,t);return!r||r.type!=="comment"}function AX(e,t,n){const r=Qt(n,t);return r?r.type==="element"&&(r.tagName==="address"||r.tagName==="article"||r.tagName==="aside"||r.tagName==="blockquote"||r.tagName==="details"||r.tagName==="div"||r.tagName==="dl"||r.tagName==="fieldset"||r.tagName==="figcaption"||r.tagName==="figure"||r.tagName==="footer"||r.tagName==="form"||r.tagName==="h1"||r.tagName==="h2"||r.tagName==="h3"||r.tagName==="h4"||r.tagName==="h5"||r.tagName==="h6"||r.tagName==="header"||r.tagName==="hgroup"||r.tagName==="hr"||r.tagName==="main"||r.tagName==="menu"||r.tagName==="nav"||r.tagName==="ol"||r.tagName==="p"||r.tagName==="pre"||r.tagName==="section"||r.tagName==="table"||r.tagName==="ul"):!n||!(n.type==="element"&&(n.tagName==="a"||n.tagName==="audio"||n.tagName==="del"||n.tagName==="ins"||n.tagName==="map"||n.tagName==="noscript"||n.tagName==="video"))}function mX(e,t,n){const r=Qt(n,t);return!r||r.type==="element"&&r.tagName==="li"}function pX(e,t,n){const r=Qt(n,t);return!!(r&&r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd"))}function EX(e,t,n){const r=Qt(n,t);return!r||r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd")}function qv(e,t,n){const r=Qt(n,t);return!r||r.type==="element"&&(r.tagName==="rp"||r.tagName==="rt")}function gX(e,t,n){const r=Qt(n,t);return!r||r.type==="element"&&r.tagName==="optgroup"}function _X(e,t,n){const r=Qt(n,t);return!r||r.type==="element"&&(r.tagName==="option"||r.tagName==="optgroup")}function SX(e,t,n){const r=Qt(n,t);return!!(r&&r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot"))}function NX(e,t,n){const r=Qt(n,t);return!r||r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot")}function IX(e,t,n){return!Qt(n,t)}function yX(e,t,n){const r=Qt(n,t);return!r||r.type==="element"&&r.tagName==="tr"}function Xv(e,t,n){const r=Qt(n,t);return!r||r.type==="element"&&(r.tagName==="td"||r.tagName==="th")}const CX=iB({body:DX,colgroup:TX,head:RX,html:vX,tbody:bX});function vX(e){const t=Qt(e,-1);return!t||t.type!=="comment"}function RX(e){const t=new Set;for(const r of e.children)if(r.type==="element"&&(r.tagName==="base"||r.tagName==="title")){if(t.has(r.tagName))return!1;t.add(r.tagName)}const n=e.children[0];return!n||n.type==="element"}function DX(e){const t=Qt(e,-1,!0);return!t||t.type!=="comment"&&!(t.type==="text"&&b_(t.value.charAt(0)))&&!(t.type==="element"&&(t.tagName==="meta"||t.tagName==="link"||t.tagName==="script"||t.tagName==="style"||t.tagName==="template"))}function TX(e,t,n){const r=nB(n,t),u=Qt(e,-1,!0);return n&&r&&r.type==="element"&&r.tagName==="colgroup"&&x_(r,n.children.indexOf(r),n)?!1:!!(u&&u.type==="element"&&u.tagName==="col")}function bX(e,t,n){const r=nB(n,t),u=Qt(e,-1);return n&&r&&r.type==="element"&&(r.tagName==="thead"||r.tagName==="tbody")&&x_(r,n.children.indexOf(r),n)?!1:!!(u&&u.type==="element"&&u.tagName==="tr")}const j0={name:[[`
276
+ \f\r &/=>`.split(""),`
277
+ \f\r "&'/=>\``.split("")],[`\0
278
+ \f\r "&'/<=>`.split(""),`\0
279
+ \f\r "&'/<=>\``.split("")]],unquoted:[[`
280
+ \f\r &>`.split(""),`\0
281
+ \f\r "&'<=>\``.split("")],[`\0
282
+ \f\r "&'<=>\``.split(""),`\0
283
+ \f\r "&'<=>\``.split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]};function xX(e,t,n,r){const u=r.schema,o=u.space==="svg"?!1:r.settings.omitOptionalTags;let l=u.space==="svg"?r.settings.closeEmptyElements:r.settings.voids.includes(e.tagName.toLowerCase());const c=[];let f;u.space==="html"&&e.tagName==="svg"&&(r.schema=eB);const h=BX(r,e.properties),m=r.all(u.space==="html"&&e.tagName==="template"?e.content:e);return r.schema=u,m&&(l=!1),(h||!o||!CX(e,t,n))&&(c.push("<",e.tagName,h?" "+h:""),l&&(u.space==="svg"||r.settings.closeSelfClosing)&&(f=h.charAt(h.length-1),(!r.settings.tightSelfClosing||f==="/"||f&&f!=='"'&&f!=="'")&&c.push(" "),c.push("/")),c.push(">")),c.push(m),!l&&(!o||!x_(e,t,n))&&c.push("</"+e.tagName+">"),c.join("")}function BX(e,t){const n=[];let r=-1,u;if(t){for(u in t)if(t[u]!==null&&t[u]!==void 0){const o=FX(e,u,t[u]);o&&n.push(o)}}for(;++r<n.length;){const o=e.settings.tightAttributes?n[r].charAt(n[r].length-1):void 0;r!==n.length-1&&o!=='"'&&o!=="'"&&(n[r]+=" ")}return n.join("")}function FX(e,t,n){const r=wq(e.schema,t),u=e.settings.allowParseErrors&&e.schema.space==="html"?0:1,o=e.settings.allowDangerousCharacters?0:1;let l=e.quote,c;if(r.overloadedBoolean&&(n===r.attribute||n==="")?n=!0:(r.boolean||r.overloadedBoolean)&&(typeof n!="string"||n===r.attribute||n==="")&&(n=!!n),n==null||n===!1||typeof n=="number"&&Number.isNaN(n))return"";const f=Xs(r.attribute,Object.assign({},e.settings.characterReferences,{subset:j0.name[u][o]}));return n===!0||(n=Array.isArray(n)?(r.commaSeparated?sX:oX)(n,{padLeft:!e.settings.tightCommaSeparatedLists}):String(n),e.settings.collapseEmptyAttributes&&!n)?f:(e.settings.preferUnquoted&&(c=Xs(n,Object.assign({},e.settings.characterReferences,{attribute:!0,subset:j0.unquoted[u][o]}))),c!==n&&(e.settings.quoteSmart&&Zv(n,l)>Zv(n,e.alternative)&&(l=e.alternative),c=l+Xs(n,Object.assign({},e.settings.characterReferences,{subset:(l==="'"?j0.single:j0.double)[u][o],attribute:!0}))+l),f+(c&&"="+c))}const OX=["<","&"];function uB(e,t,n,r){return n&&n.type==="element"&&(n.tagName==="script"||n.tagName==="style")?e.value:Xs(e.value,Object.assign({},r.settings.characterReferences,{subset:OX}))}function LX(e,t,n,r){return r.settings.allowDangerousHtml?e.value:uB(e,t,n,r)}function wX(e,t,n,r){return r.all(e)}const MX=Uq("type",{invalid:PX,unknown:HX,handlers:{comment:uX,doctype:aX,element:xX,raw:LX,root:wX,text:uB}});function PX(e){throw new Error("Expected node, not `"+e+"`")}function HX(e){const t=e;throw new Error("Cannot compile unknown node `"+t.type+"`")}const UX={},kX={},GX=[];function VX(e,t){const n=UX,r=n.quote||'"',u=r==='"'?"'":'"';if(r!=='"'&&r!=="'")throw new Error("Invalid quote `"+r+"`, expected `'` or `\"`");return{one:jX,all:zX,settings:{omitOptionalTags:n.omitOptionalTags||!1,allowParseErrors:n.allowParseErrors||!1,allowDangerousCharacters:n.allowDangerousCharacters||!1,quoteSmart:n.quoteSmart||!1,preferUnquoted:n.preferUnquoted||!1,tightAttributes:n.tightAttributes||!1,upperDoctype:n.upperDoctype||!1,tightDoctype:n.tightDoctype||!1,bogusComments:n.bogusComments||!1,tightCommaSeparatedLists:n.tightCommaSeparatedLists||!1,tightSelfClosing:n.tightSelfClosing||!1,collapseEmptyAttributes:n.collapseEmptyAttributes||!1,allowDangerousHtml:n.allowDangerousHtml||!1,voids:n.voids||bq,characterReferences:n.characterReferences||kX,closeSelfClosing:n.closeSelfClosing||!1,closeEmptyElements:n.closeEmptyElements||!1},schema:n.space==="svg"?eB:Hq,quote:r,alternative:u}.one(Array.isArray(e)?{type:"root",children:e}:e,void 0,void 0)}function jX(e,t,n){return MX(e,t,n,this)}function zX(e){const t=[],n=e&&e.children||GX;let r=-1;for(;++r<n.length;)t[r]=this.one(n[r],r,e);return t.join("")}function KX(e){return Array.isArray(e)?e:[e]}function $h(e,t=!1){var o;const n=e.split(/(\r?\n)/g);let r=0;const u=[];for(let l=0;l<n.length;l+=2){const c=t?n[l]+(n[l+1]||""):n[l];u.push([c,r]),r+=n[l].length,r+=((o=n[l+1])==null?void 0:o.length)||0}return u}function B_(e){return!e||["plaintext","txt","text","plain"].includes(e)}function aB(e){return e==="ansi"||B_(e)}function F_(e){return e==="none"}function sB(e){return F_(e)}function oB(e,t){var r;if(!t)return e;e.properties||(e.properties={}),(r=e.properties).class||(r.class=[]),typeof e.properties.class=="string"&&(e.properties.class=e.properties.class.split(/\s+/g)),Array.isArray(e.properties.class)||(e.properties.class=[]);const n=Array.isArray(t)?t:t.split(/\s+/g);for(const u of n)u&&!e.properties.class.includes(u)&&e.properties.class.push(u);return e}function $X(e,t){let n=0;const r=[];for(const u of t)u>n&&r.push({...e,content:e.content.slice(n,u),offset:e.offset+n}),n=u;return n<e.content.length&&r.push({...e,content:e.content.slice(n),offset:e.offset+n}),r}function YX(e,t){const n=Array.from(t instanceof Set?t:new Set(t)).sort((r,u)=>r-u);return n.length?e.map(r=>r.flatMap(u=>{const o=n.filter(l=>u.offset<l&&l<u.offset+u.content.length).map(l=>l-u.offset).sort((l,c)=>l-c);return o.length?$X(u,o):u})):e}async function lB(e){return Promise.resolve(typeof e=="function"?e():e).then(t=>t.default||t)}function Qf(e,t){const n=typeof e=="string"?{}:{...e.colorReplacements},r=typeof e=="string"?e:e.name;for(const[u,o]of Object.entries((t==null?void 0:t.colorReplacements)||{}))typeof o=="string"?n[u]=o:u===r&&Object.assign(n,o);return n}function Ca(e,t){return e&&((t==null?void 0:t[e==null?void 0:e.toLowerCase()])||e)}function cB(e){const t={};return e.color&&(t.color=e.color),e.bgColor&&(t["background-color"]=e.bgColor),e.fontStyle&&(e.fontStyle&Bi.Italic&&(t["font-style"]="italic"),e.fontStyle&Bi.Bold&&(t["font-weight"]="bold"),e.fontStyle&Bi.Underline&&(t["text-decoration"]="underline")),t}function ZX(e){return typeof e=="string"?e:Object.entries(e).map(([t,n])=>`${t}:${n}`).join(";")}function WX(e){const t=$h(e,!0).map(([u])=>u);function n(u){if(u===e.length)return{line:t.length-1,character:t[t.length-1].length};let o=u,l=0;for(const c of t){if(o<c.length)break;o-=c.length,l++}return{line:l,character:o}}function r(u,o){let l=0;for(let c=0;c<u;c++)l+=t[c].length;return l+=o,l}return{lines:t,indexToPos:n,posToIndex:r}}class xn extends Error{constructor(t){super(t),this.name="ShikiError"}}const dB=new WeakMap;function Yh(e,t){dB.set(e,t)}function Lc(e){return dB.get(e)}class Do{constructor(...t){oe(this,"_stacks",{});oe(this,"lang");if(t.length===2){const[n,r]=t;this.lang=r,this._stacks=n}else{const[n,r,u]=t;this.lang=r,this._stacks={[u]:n}}}get themes(){return Object.keys(this._stacks)}get theme(){return this.themes[0]}get _stack(){return this._stacks[this.theme]}static initial(t,n){return new Do(Object.fromEntries(KX(n).map(r=>[r,Og])),t)}getInternalStack(t=this.theme){return this._stacks[t]}get scopes(){return Qv(this._stacks[this.theme])}getScopes(t=this.theme){return Qv(this._stacks[t])}toJSON(){return{lang:this.lang,theme:this.theme,themes:this.themes,scopes:this.scopes}}}function Qv(e){const t=[],n=new Set;function r(u){var l;if(n.has(u))return;n.add(u);const o=(l=u==null?void 0:u.nameScopesList)==null?void 0:l.scopeName;o&&t.push(o),u.parent&&r(u.parent)}return r(e),t}function qX(e,t){if(!(e instanceof Do))throw new xn("Invalid grammar state");return e.getInternalStack(t)}function XX(){const e=new WeakMap;function t(n){if(!e.has(n.meta)){let r=function(l){if(typeof l=="number"){if(l<0||l>n.source.length)throw new xn(`Invalid decoration offset: ${l}. Code length: ${n.source.length}`);return{...u.indexToPos(l),offset:l}}else{const c=u.lines[l.line];if(c===void 0)throw new xn(`Invalid decoration position ${JSON.stringify(l)}. Lines length: ${u.lines.length}`);if(l.character<0||l.character>c.length)throw new xn(`Invalid decoration position ${JSON.stringify(l)}. Line ${l.line} length: ${c.length}`);return{...l,offset:u.posToIndex(l.line,l.character)}}};const u=WX(n.source),o=(n.options.decorations||[]).map(l=>({...l,start:r(l.start),end:r(l.end)}));QX(o),e.set(n.meta,{decorations:o,converter:u,source:n.source})}return e.get(n.meta)}return{name:"shiki:decorations",tokens(n){var l;if(!((l=this.options.decorations)!=null&&l.length))return;const u=t(this).decorations.flatMap(c=>[c.start.offset,c.end.offset]);return YX(n,u)},code(n){var m;if(!((m=this.options.decorations)!=null&&m.length))return;const r=t(this),u=Array.from(n.children).filter(E=>E.type==="element"&&E.tagName==="span");if(u.length!==r.converter.lines.length)throw new xn(`Number of lines in code element (${u.length}) does not match the number of lines in the source (${r.converter.lines.length}). Failed to apply decorations.`);function o(E,g,_,S){const C=u[E];let v="",R=-1,D=-1;if(g===0&&(R=0),_===0&&(D=0),_===Number.POSITIVE_INFINITY&&(D=C.children.length),R===-1||D===-1)for(let L=0;L<C.children.length;L++)v+=fB(C.children[L]),R===-1&&v.length===g&&(R=L+1),D===-1&&v.length===_&&(D=L+1);if(R===-1)throw new xn(`Failed to find start index for decoration ${JSON.stringify(S.start)}`);if(D===-1)throw new xn(`Failed to find end index for decoration ${JSON.stringify(S.end)}`);const b=C.children.slice(R,D);if(!S.alwaysWrap&&b.length===C.children.length)c(C,S,"line");else if(!S.alwaysWrap&&b.length===1&&b[0].type==="element")c(b[0],S,"token");else{const L={type:"element",tagName:"span",properties:{},children:b};c(L,S,"wrapper"),C.children.splice(R,b.length,L)}}function l(E,g){u[E]=c(u[E],g,"line")}function c(E,g,_){var v;const S=g.properties||{},C=g.transform||(R=>R);return E.tagName=g.tagName||"span",E.properties={...E.properties,...S,class:E.properties.class},(v=g.properties)!=null&&v.class&&oB(E,g.properties.class),E=C(E,_)||E,E}const f=[],h=r.decorations.sort((E,g)=>g.start.offset-E.start.offset);for(const E of h){const{start:g,end:_}=E;if(g.line===_.line)o(g.line,g.character,_.character,E);else if(g.line<_.line){o(g.line,g.character,Number.POSITIVE_INFINITY,E);for(let S=g.line+1;S<_.line;S++)f.unshift(()=>l(S,E));o(_.line,0,_.character,E)}}f.forEach(E=>E())}}}function QX(e){for(let t=0;t<e.length;t++){const n=e[t];if(n.start.offset>n.end.offset)throw new xn(`Invalid decoration range: ${JSON.stringify(n.start)} - ${JSON.stringify(n.end)}`);for(let r=t+1;r<e.length;r++){const u=e[r],o=n.start.offset<u.start.offset&&u.start.offset<n.end.offset,l=n.start.offset<u.end.offset&&u.end.offset<n.end.offset,c=u.start.offset<n.start.offset&&n.start.offset<u.end.offset,f=u.start.offset<n.end.offset&&n.end.offset<u.end.offset;if(o||l||c||f){if(l&&l||c&&f)continue;throw new xn(`Decorations ${JSON.stringify(n.start)} and ${JSON.stringify(u.start)} intersect.`)}}}}function fB(e){return e.type==="text"?e.value:e.type==="element"?e.children.map(fB).join(""):""}const JX=[XX()];function Jf(e){return[...e.transformers||[],...JX]}var va=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],_E={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",9:"strikethrough"};function eQ(e,t){const n=e.indexOf("\x1B[",t);if(n!==-1){const r=e.indexOf("m",n);return{sequence:e.substring(n+2,r).split(";"),startPosition:n,position:r+1}}return{position:e.length}}function Jv(e,t){let n=1;const r=e[t+n++];let u;if(r==="2"){const o=[e[t+n++],e[t+n++],e[t+n]].map(l=>Number.parseInt(l));o.length===3&&!o.some(l=>Number.isNaN(l))&&(u={type:"rgb",rgb:o})}else if(r==="5"){const o=Number.parseInt(e[t+n]);Number.isNaN(o)||(u={type:"table",index:Number(o)})}return[n,u]}function tQ(e){const t=[];for(let n=0;n<e.length;n++){const r=e[n],u=Number.parseInt(r);if(!Number.isNaN(u))if(u===0)t.push({type:"resetAll"});else if(u<=9)_E[u]&&t.push({type:"setDecoration",value:_E[u]});else if(u<=29){const o=_E[u-20];o&&t.push({type:"resetDecoration",value:o})}else if(u<=37)t.push({type:"setForegroundColor",value:{type:"named",name:va[u-30]}});else if(u===38){const[o,l]=Jv(e,n);l&&t.push({type:"setForegroundColor",value:l}),n+=o}else if(u===39)t.push({type:"resetForegroundColor"});else if(u<=47)t.push({type:"setBackgroundColor",value:{type:"named",name:va[u-40]}});else if(u===48){const[o,l]=Jv(e,n);l&&t.push({type:"setBackgroundColor",value:l}),n+=o}else u===49?t.push({type:"resetBackgroundColor"}):u>=90&&u<=97?t.push({type:"setForegroundColor",value:{type:"named",name:va[u-90+8]}}):u>=100&&u<=107&&t.push({type:"setBackgroundColor",value:{type:"named",name:va[u-100+8]}})}return t}function nQ(){let e=null,t=null,n=new Set;return{parse(r){const u=[];let o=0;do{const l=eQ(r,o),c=l.sequence?r.substring(o,l.startPosition):r.substring(o);if(c.length>0&&u.push({value:c,foreground:e,background:t,decorations:new Set(n)}),l.sequence){const f=tQ(l.sequence);for(const h of f)h.type==="resetAll"?(e=null,t=null,n.clear()):h.type==="resetForegroundColor"?e=null:h.type==="resetBackgroundColor"?t=null:h.type==="resetDecoration"&&n.delete(h.value);for(const h of f)h.type==="setForegroundColor"?e=h.value:h.type==="setBackgroundColor"?t=h.value:h.type==="setDecoration"&&n.add(h.value)}o=l.position}while(o<r.length);return u}}}var rQ={black:"#000000",red:"#bb0000",green:"#00bb00",yellow:"#bbbb00",blue:"#0000bb",magenta:"#ff00ff",cyan:"#00bbbb",white:"#eeeeee",brightBlack:"#555555",brightRed:"#ff5555",brightGreen:"#00ff00",brightYellow:"#ffff55",brightBlue:"#5555ff",brightMagenta:"#ff55ff",brightCyan:"#55ffff",brightWhite:"#ffffff"};function iQ(e=rQ){function t(c){return e[c]}function n(c){return`#${c.map(f=>Math.max(0,Math.min(f,255)).toString(16).padStart(2,"0")).join("")}`}let r;function u(){if(r)return r;r=[];for(let h=0;h<va.length;h++)r.push(t(va[h]));let c=[0,95,135,175,215,255];for(let h=0;h<6;h++)for(let m=0;m<6;m++)for(let E=0;E<6;E++)r.push(n([c[h],c[m],c[E]]));let f=8;for(let h=0;h<24;h++,f+=10)r.push(n([f,f,f]));return r}function o(c){return u()[c]}function l(c){switch(c.type){case"named":return t(c.name);case"rgb":return n(c.rgb);case"table":return o(c.index)}}return{value:l}}function uQ(e,t,n){const r=Qf(e,n),u=$h(t),o=iQ(Object.fromEntries(va.map(c=>{var f;return[c,(f=e.colors)==null?void 0:f[`terminal.ansi${c[0].toUpperCase()}${c.substring(1)}`]]}))),l=nQ();return u.map(c=>l.parse(c[0]).map(f=>{let h,m;f.decorations.has("reverse")?(h=f.background?o.value(f.background):e.bg,m=f.foreground?o.value(f.foreground):e.fg):(h=f.foreground?o.value(f.foreground):e.fg,m=f.background?o.value(f.background):void 0),h=Ca(h,r),m=Ca(m,r),f.decorations.has("dim")&&(h=aQ(h));let E=Bi.None;return f.decorations.has("bold")&&(E|=Bi.Bold),f.decorations.has("italic")&&(E|=Bi.Italic),f.decorations.has("underline")&&(E|=Bi.Underline),{content:f.value,offset:c[1],color:h,bgColor:m,fontStyle:E}}))}function aQ(e){const t=e.match(/#([0-9a-f]{3})([0-9a-f]{3})?([0-9a-f]{2})?/);if(t)if(t[3]){const r=Math.round(Number.parseInt(t[3],16)/2).toString(16).padStart(2,"0");return`#${t[1]}${t[2]}${r}`}else return t[2]?`#${t[1]}${t[2]}80`:`#${Array.from(t[1]).map(r=>`${r}${r}`).join("")}80`;const n=e.match(/var\((--[\w-]+-ansi-[\w-]+)\)/);return n?`var(${n[1]}-dim)`:e}function O_(e,t,n={}){const{lang:r="text",theme:u=e.getLoadedThemes()[0]}=n;if(B_(r)||F_(u))return $h(t).map(f=>[{content:f[0],offset:f[1]}]);const{theme:o,colorMap:l}=e.setTheme(u);if(r==="ansi")return uQ(o,t,n);const c=e.getLanguage(r);if(n.grammarState){if(n.grammarState.lang!==c.name)throw new Li(`Grammar state language "${n.grammarState.lang}" does not match highlight language "${c.name}"`);if(!n.grammarState.themes.includes(o.name))throw new Li(`Grammar state themes "${n.grammarState.themes}" do not contain highlight theme "${o.name}"`)}return oQ(t,c,o,l,n)}function sQ(...e){if(e.length===2)return Lc(e[1]);const[t,n,r={}]=e,{lang:u="text",theme:o=t.getLoadedThemes()[0]}=r;if(B_(u)||F_(o))throw new Li("Plain language does not have grammar state");if(u==="ansi")throw new Li("ANSI language does not have grammar state");const{theme:l,colorMap:c}=t.setTheme(o),f=t.getLanguage(u);return new Do(eh(n,f,l,c,r).stateStack,f.name,l.name)}function oQ(e,t,n,r,u){const o=eh(e,t,n,r,u),l=new Do(eh(e,t,n,r,u).stateStack,t.name,n.name);return Yh(o.tokens,l),o.tokens}function eh(e,t,n,r,u){const o=Qf(n,u),{tokenizeMaxLineLength:l=0,tokenizeTimeLimit:c=500}=u,f=$h(e);let h=u.grammarState?qX(u.grammarState,n.name)??Og:u.grammarContextCode!=null?eh(u.grammarContextCode,t,n,r,{...u,grammarState:void 0,grammarContextCode:void 0}).stateStack:Og,m=[];const E=[];for(let g=0,_=f.length;g<_;g++){const[S,C]=f[g];if(S===""){m=[],E.push([]);continue}if(l>0&&S.length>=l){m=[],E.push([{content:S,offset:C,color:"",fontStyle:0}]);continue}let v,R,D;u.includeExplanation&&(v=t.tokenizeLine(S,h),R=v.tokens,D=0);const b=t.tokenizeLine2(S,h,c),L=b.tokens.length/2;for(let x=0;x<L;x++){const B=b.tokens[2*x],O=x+1<L?b.tokens[2*x+2]:S.length;if(B===O)continue;const H=b.tokens[2*x+1],U=Ca(r[oo.getForeground(H)],o),G=oo.getFontStyle(H),fe={content:S.substring(B,O),offset:C+B,color:U,fontStyle:G};if(u.includeExplanation){const ae=[];if(u.includeExplanation!=="scopeName")for(const Z of n.settings){let te;switch(typeof Z.scope){case"string":te=Z.scope.split(/,/).map(V=>V.trim());break;case"object":te=Z.scope;break;default:continue}ae.push({settings:Z,selectors:te.map(V=>V.split(/ /))})}fe.explanation=[];let ce=0;for(;B+ce<O;){const Z=R[D],te=S.substring(Z.startIndex,Z.endIndex);ce+=te.length,fe.explanation.push({content:te,scopes:u.includeExplanation==="scopeName"?lQ(Z.scopes):cQ(ae,Z.scopes)}),D+=1}}m.push(fe)}E.push(m),m=[],h=b.ruleStack}return{tokens:E,stateStack:h}}function lQ(e){return e.map(t=>({scopeName:t}))}function cQ(e,t){const n=[];for(let r=0,u=t.length;r<u;r++){const o=t[r];n[r]={scopeName:o,themeMatches:fQ(e,o,t.slice(0,r))}}return n}function eR(e,t){return e===t||t.substring(0,e.length)===e&&t[e.length]==="."}function dQ(e,t,n){if(!eR(e[e.length-1],t))return!1;let r=e.length-2,u=n.length-1;for(;r>=0&&u>=0;)eR(e[r],n[u])&&(r-=1),u-=1;return r===-1}function fQ(e,t,n){const r=[];for(const{selectors:u,settings:o}of e)for(const l of u)if(dQ(l,t,n)){r.push(o);break}return r}function hB(e,t,n){const r=Object.entries(n.themes).filter(f=>f[1]).map(f=>({color:f[0],theme:f[1]})),u=r.map(f=>{const h=O_(e,t,{...n,theme:f.theme}),m=Lc(h),E=typeof f.theme=="string"?f.theme:f.theme.name;return{tokens:h,state:m,theme:E}}),o=hQ(...u.map(f=>f.tokens)),l=o[0].map((f,h)=>f.map((m,E)=>{const g={content:m.content,variants:{},offset:m.offset};return"includeExplanation"in n&&n.includeExplanation&&(g.explanation=m.explanation),o.forEach((_,S)=>{const{content:C,explanation:v,offset:R,...D}=_[h][E];g.variants[r[S].color]=D}),g})),c=u[0].state?new Do(Object.fromEntries(u.map(f=>{var h;return[f.theme,(h=f.state)==null?void 0:h.getInternalStack(f.theme)]})),u[0].state.lang):void 0;return c&&Yh(l,c),l}function hQ(...e){const t=e.map(()=>[]),n=e.length;for(let r=0;r<e[0].length;r++){const u=e.map(f=>f[r]),o=t.map(()=>[]);t.forEach((f,h)=>f.push(o[h]));const l=u.map(()=>0),c=u.map(f=>f[0]);for(;c.every(f=>f);){const f=Math.min(...c.map(h=>h.content.length));for(let h=0;h<n;h++){const m=c[h];m.content.length===f?(o[h].push(m),l[h]+=1,c[h]=u[h][l[h]]):(o[h].push({...m,content:m.content.slice(0,f)}),c[h]={...m,content:m.content.slice(f),offset:m.offset+f})}}}return t}function th(e,t,n){let r,u,o,l,c,f;if("themes"in n){const{defaultColor:h="light",cssVariablePrefix:m="--shiki-"}=n,E=Object.entries(n.themes).filter(v=>v[1]).map(v=>({color:v[0],theme:v[1]})).sort((v,R)=>v.color===h?-1:R.color===h?1:0);if(E.length===0)throw new Li("`themes` option must not be empty");const g=hB(e,t,n);if(f=Lc(g),h&&!E.find(v=>v.color===h))throw new Li(`\`themes\` option must contain the defaultColor key \`${h}\``);const _=E.map(v=>e.getTheme(v.theme)),S=E.map(v=>v.color);o=g.map(v=>v.map(R=>AQ(R,S,m,h))),f&&Yh(o,f);const C=E.map(v=>Qf(v.theme,n));u=E.map((v,R)=>(R===0&&h?"":`${m+v.color}:`)+(Ca(_[R].fg,C[R])||"inherit")).join(";"),r=E.map((v,R)=>(R===0&&h?"":`${m+v.color}-bg:`)+(Ca(_[R].bg,C[R])||"inherit")).join(";"),l=`shiki-themes ${_.map(v=>v.name).join(" ")}`,c=h?void 0:[u,r].join(";")}else if("theme"in n){const h=Qf(n.theme,n);o=O_(e,t,n);const m=e.getTheme(n.theme);r=Ca(m.bg,h),u=Ca(m.fg,h),l=m.name,f=Lc(o)}else throw new Li("Invalid options, either `theme` or `themes` must be provided");return{tokens:o,fg:u,bg:r,themeName:l,rootStyle:c,grammarState:f}}function AQ(e,t,n,r){const u={content:e.content,explanation:e.explanation,offset:e.offset},o=t.map(f=>cB(e.variants[f])),l=new Set(o.flatMap(f=>Object.keys(f))),c={};return o.forEach((f,h)=>{for(const m of l){const E=f[m]||"inherit";if(h===0&&r)c[m]=E;else{const g=m==="color"?"":m==="background-color"?"-bg":`-${m}`,_=n+t[h]+(m==="color"?"":g);c[_]=E}}}),u.htmlStyle=c,u}function nh(e,t,n,r={meta:{},options:n,codeToHast:(u,o)=>nh(e,u,o),codeToTokens:(u,o)=>th(e,u,o)}){var _,S;let u=t;for(const C of Jf(n))u=((_=C.preprocess)==null?void 0:_.call(r,u,n))||u;let{tokens:o,fg:l,bg:c,themeName:f,rootStyle:h,grammarState:m}=th(e,u,n);const{mergeWhitespaces:E=!0}=n;E===!0?o=pQ(o):E==="never"&&(o=EQ(o));const g={...r,get source(){return u}};for(const C of Jf(n))o=((S=C.tokens)==null?void 0:S.call(g,o))||o;return mQ(o,{...n,fg:l,bg:c,themeName:f,rootStyle:h},g,m)}function mQ(e,t,n,r=Lc(e)){var S,C,v;const u=Jf(t),o=[],l={type:"root",children:[]},{structure:c="classic",tabindex:f="0"}=t;let h={type:"element",tagName:"pre",properties:{class:`shiki ${t.themeName||""}`,style:t.rootStyle||`background-color:${t.bg};color:${t.fg}`,...f!==!1&&f!=null?{tabindex:f.toString()}:{},...Object.fromEntries(Array.from(Object.entries(t.meta||{})).filter(([R])=>!R.startsWith("_")))},children:[]},m={type:"element",tagName:"code",properties:{},children:o};const E=[],g={...n,structure:c,addClassToHast:oB,get source(){return n.source},get tokens(){return e},get options(){return t},get root(){return l},get pre(){return h},get code(){return m},get lines(){return E}};if(e.forEach((R,D)=>{var x,B;D&&(c==="inline"?l.children.push({type:"element",tagName:"br",properties:{},children:[]}):c==="classic"&&o.push({type:"text",value:`
284
+ `}));let b={type:"element",tagName:"span",properties:{class:"line"},children:[]},L=0;for(const O of R){let H={type:"element",tagName:"span",properties:{...O.htmlAttrs},children:[{type:"text",value:O.content}]};O.htmlStyle;const U=ZX(O.htmlStyle||cB(O));U&&(H.properties.style=U);for(const G of u)H=((x=G==null?void 0:G.span)==null?void 0:x.call(g,H,D+1,L,b,O))||H;c==="inline"?l.children.push(H):c==="classic"&&b.children.push(H),L+=O.content.length}if(c==="classic"){for(const O of u)b=((B=O==null?void 0:O.line)==null?void 0:B.call(g,b,D+1))||b;E.push(b),o.push(b)}}),c==="classic"){for(const R of u)m=((S=R==null?void 0:R.code)==null?void 0:S.call(g,m))||m;h.children.push(m);for(const R of u)h=((C=R==null?void 0:R.pre)==null?void 0:C.call(g,h))||h;l.children.push(h)}let _=l;for(const R of u)_=((v=R==null?void 0:R.root)==null?void 0:v.call(g,_))||_;return r&&Yh(_,r),_}function pQ(e){return e.map(t=>{const n=[];let r="",u=0;return t.forEach((o,l)=>{const f=!(o.fontStyle&&o.fontStyle&Bi.Underline);f&&o.content.match(/^\s+$/)&&t[l+1]?(u||(u=o.offset),r+=o.content):r?(f?n.push({...o,offset:u,content:r+o.content}):n.push({content:r,offset:u},o),u=0,r=""):n.push(o)}),n})}function EQ(e){return e.map(t=>t.flatMap(n=>{if(n.content.match(/^\s+$/))return n;const r=n.content.match(/^(\s*)(.*?)(\s*)$/);if(!r)return n;const[,u,o,l]=r;if(!u&&!l)return n;const c=[{...n,offset:n.offset+u.length,content:o}];return u&&c.unshift({content:u,offset:n.offset}),l&&c.push({content:l,offset:n.offset+u.length+o.length}),c}))}function gQ(e,t,n){var o;const r={meta:{},options:n,codeToHast:(l,c)=>nh(e,l,c),codeToTokens:(l,c)=>th(e,l,c)};let u=VX(nh(e,t,n,r));for(const l of Jf(n))u=((o=l.postprocess)==null?void 0:o.call(r,u,n))||u;return u}const tR={light:"#333333",dark:"#bbbbbb"},nR={light:"#fffffe",dark:"#1e1e1e"},rR="__shiki_resolved";function L_(e){var c,f,h,m,E;if(e!=null&&e[rR])return e;const t={...e};t.tokenColors&&!t.settings&&(t.settings=t.tokenColors,delete t.tokenColors),t.type||(t.type="dark"),t.colorReplacements={...t.colorReplacements},t.settings||(t.settings=[]);let{bg:n,fg:r}=t;if(!n||!r){const g=t.settings?t.settings.find(_=>!_.name&&!_.scope):void 0;(c=g==null?void 0:g.settings)!=null&&c.foreground&&(r=g.settings.foreground),(f=g==null?void 0:g.settings)!=null&&f.background&&(n=g.settings.background),!r&&((h=t==null?void 0:t.colors)!=null&&h["editor.foreground"])&&(r=t.colors["editor.foreground"]),!n&&((m=t==null?void 0:t.colors)!=null&&m["editor.background"])&&(n=t.colors["editor.background"]),r||(r=t.type==="light"?tR.light:tR.dark),n||(n=t.type==="light"?nR.light:nR.dark),t.fg=r,t.bg=n}t.settings[0]&&t.settings[0].settings&&!t.settings[0].scope||t.settings.unshift({settings:{foreground:t.fg,background:t.bg}});let u=0;const o=new Map;function l(g){var S;if(o.has(g))return o.get(g);u+=1;const _=`#${u.toString(16).padStart(8,"0").toLowerCase()}`;return(S=t.colorReplacements)!=null&&S[`#${_}`]?l(g):(o.set(g,_),_)}t.settings=t.settings.map(g=>{var v,R;const _=((v=g.settings)==null?void 0:v.foreground)&&!g.settings.foreground.startsWith("#"),S=((R=g.settings)==null?void 0:R.background)&&!g.settings.background.startsWith("#");if(!_&&!S)return g;const C={...g,settings:{...g.settings}};if(_){const D=l(g.settings.foreground);t.colorReplacements[D]=g.settings.foreground,C.settings.foreground=D}if(S){const D=l(g.settings.background);t.colorReplacements[D]=g.settings.background,C.settings.background=D}return C});for(const g of Object.keys(t.colors||{}))if((g==="editor.foreground"||g==="editor.background"||g.startsWith("terminal.ansi"))&&!((E=t.colors[g])!=null&&E.startsWith("#"))){const _=l(t.colors[g]);t.colorReplacements[_]=t.colors[g],t.colors[g]=_}return Object.defineProperty(t,rR,{enumerable:!1,writable:!1,value:!0}),t}async function AB(e){return Array.from(new Set((await Promise.all(e.filter(t=>!aB(t)).map(async t=>await lB(t).then(n=>Array.isArray(n)?n:[n])))).flat()))}async function mB(e){return(await Promise.all(e.map(async n=>sB(n)?null:L_(await lB(n))))).filter(n=>!!n)}class _Q extends Tq{constructor(n,r,u,o={}){super(n);oe(this,"_resolvedThemes",new Map);oe(this,"_resolvedGrammars",new Map);oe(this,"_langMap",new Map);oe(this,"_langGraph",new Map);oe(this,"_textmateThemeCache",new WeakMap);oe(this,"_loadedThemesCache",null);oe(this,"_loadedLanguagesCache",null);this._resolver=n,this._themes=r,this._langs=u,this._alias=o,this._themes.map(l=>this.loadTheme(l)),this.loadLanguages(this._langs)}getTheme(n){return typeof n=="string"?this._resolvedThemes.get(n):this.loadTheme(n)}loadTheme(n){const r=L_(n);return r.name&&(this._resolvedThemes.set(r.name,r),this._loadedThemesCache=null),r}getLoadedThemes(){return this._loadedThemesCache||(this._loadedThemesCache=[...this._resolvedThemes.keys()]),this._loadedThemesCache}setTheme(n){let r=this._textmateThemeCache.get(n);r||(r=Yf.createFromRawTheme(n),this._textmateThemeCache.set(n,r)),this._syncRegistry.setTheme(r)}getGrammar(n){if(this._alias[n]){const r=new Set([n]);for(;this._alias[n];){if(n=this._alias[n],r.has(n))throw new xn(`Circular alias \`${Array.from(r).join(" -> ")} -> ${n}\``);r.add(n)}}return this._resolvedGrammars.get(n)}loadLanguage(n){var l,c,f,h;if(this.getGrammar(n.name))return;const r=new Set([...this._langMap.values()].filter(m=>{var E;return(E=m.embeddedLangsLazy)==null?void 0:E.includes(n.name)}));this._resolver.addLanguage(n);const u={balancedBracketSelectors:n.balancedBracketSelectors||["*"],unbalancedBracketSelectors:n.unbalancedBracketSelectors||[]};this._syncRegistry._rawGrammars.set(n.scopeName,n);const o=this.loadGrammarWithConfiguration(n.scopeName,1,u);if(o.name=n.name,this._resolvedGrammars.set(n.name,o),n.aliases&&n.aliases.forEach(m=>{this._alias[m]=n.name}),this._loadedLanguagesCache=null,r.size)for(const m of r)this._resolvedGrammars.delete(m.name),this._loadedLanguagesCache=null,(c=(l=this._syncRegistry)==null?void 0:l._injectionGrammars)==null||c.delete(m.scopeName),(h=(f=this._syncRegistry)==null?void 0:f._grammars)==null||h.delete(m.scopeName),this.loadLanguage(this._langMap.get(m.name))}dispose(){super.dispose(),this._resolvedThemes.clear(),this._resolvedGrammars.clear(),this._langMap.clear(),this._langGraph.clear(),this._loadedThemesCache=null}loadLanguages(n){for(const o of n)this.resolveEmbeddedLanguages(o);const r=Array.from(this._langGraph.entries()),u=r.filter(([o,l])=>!l);if(u.length){const o=r.filter(([l,c])=>{var f;return c&&((f=c.embeddedLangs)==null?void 0:f.some(h=>u.map(([m])=>m).includes(h)))}).filter(l=>!u.includes(l));throw new xn(`Missing languages ${u.map(([l])=>`\`${l}\``).join(", ")}, required by ${o.map(([l])=>`\`${l}\``).join(", ")}`)}for(const[o,l]of r)this._resolver.addLanguage(l);for(const[o,l]of r)this.loadLanguage(l)}getLoadedLanguages(){return this._loadedLanguagesCache||(this._loadedLanguagesCache=[...new Set([...this._resolvedGrammars.keys(),...Object.keys(this._alias)])]),this._loadedLanguagesCache}resolveEmbeddedLanguages(n){if(this._langMap.set(n.name,n),this._langGraph.set(n.name,n),n.embeddedLangs)for(const r of n.embeddedLangs)this._langGraph.set(r,this._langMap.get(r))}}class SQ{constructor(t,n){oe(this,"_langs",new Map);oe(this,"_scopeToLang",new Map);oe(this,"_injections",new Map);oe(this,"_onigLib");this._onigLib={createOnigScanner:r=>t.createScanner(r),createOnigString:r=>t.createString(r)},n.forEach(r=>this.addLanguage(r))}get onigLib(){return this._onigLib}getLangRegistration(t){return this._langs.get(t)}loadGrammar(t){return this._scopeToLang.get(t)}addLanguage(t){this._langs.set(t.name,t),t.aliases&&t.aliases.forEach(n=>{this._langs.set(n,t)}),this._scopeToLang.set(t.scopeName,t),t.injectTo&&t.injectTo.forEach(n=>{this._injections.get(n)||this._injections.set(n,[]),this._injections.get(n).push(t.scopeName)})}getInjections(t){const n=t.split(".");let r=[];for(let u=1;u<=n.length;u++){const o=n.slice(0,u).join(".");r=[...r,...this._injections.get(o)||[]]}return r}}let kl=0;function NQ(e){kl+=1,e.warnings!==!1&&kl>=10&&kl%10===0&&console.warn(`[Shiki] ${kl} instances have been created. Shiki is supposed to be used as a singleton, consider refactoring your code to cache your highlighter instance; Or call \`highlighter.dispose()\` to release unused instances.`);let t=!1;if(!e.engine)throw new xn("`engine` option is required for synchronous mode");const n=(e.langs||[]).flat(1),r=(e.themes||[]).flat(1).map(L_),u=new SQ(e.engine,n),o=new _Q(u,r,n,e.langAlias);let l;function c(D){v();const b=o.getGrammar(typeof D=="string"?D:D.name);if(!b)throw new xn(`Language \`${D}\` not found, you may need to load it first`);return b}function f(D){if(D==="none")return{bg:"",fg:"",name:"none",settings:[],type:"dark"};v();const b=o.getTheme(D);if(!b)throw new xn(`Theme \`${D}\` not found, you may need to load it first`);return b}function h(D){v();const b=f(D);l!==D&&(o.setTheme(b),l=D);const L=o.getColorMap();return{theme:b,colorMap:L}}function m(){return v(),o.getLoadedThemes()}function E(){return v(),o.getLoadedLanguages()}function g(...D){v(),o.loadLanguages(D.flat(1))}async function _(...D){return g(await AB(D))}function S(...D){v();for(const b of D.flat(1))o.loadTheme(b)}async function C(...D){return v(),S(await mB(D))}function v(){if(t)throw new xn("Shiki instance has been disposed")}function R(){t||(t=!0,o.dispose(),kl-=1)}return{setTheme:h,getTheme:f,getLanguage:c,getLoadedThemes:m,getLoadedLanguages:E,loadLanguage:_,loadLanguageSync:g,loadTheme:C,loadThemeSync:S,dispose:R,[Symbol.dispose]:R}}async function IQ(e={}){e.loadWasm;const[t,n,r]=await Promise.all([mB(e.themes||[]),AB(e.langs||[]),e.engine||xx(e.loadWasm||VW())]);return NQ({...e,themes:t,langs:n,engine:r})}async function yQ(e={}){const t=await IQ(e);return{getLastGrammarState:(...n)=>sQ(t,...n),codeToTokensBase:(n,r)=>O_(t,n,r),codeToTokensWithThemes:(n,r)=>hB(t,n,r),codeToTokens:(n,r)=>th(t,n,r),codeToHast:(n,r)=>nh(t,n,r),codeToHtml:(n,r)=>gQ(t,n,r),...t,getInternalContext:()=>t}}function CQ(e,t,n){let r,u,o;{const c=e;r=c.langs,u=c.themes,o=c.engine}async function l(c){function f(_){if(typeof _=="string"){if(aB(_))return[];const S=r[_];if(!S)throw new Li(`Language \`${_}\` is not included in this bundle. You may want to load it from external source.`);return S}return _}function h(_){if(sB(_))return"none";if(typeof _=="string"){const S=u[_];if(!S)throw new Li(`Theme \`${_}\` is not included in this bundle. You may want to load it from external source.`);return S}return _}const m=(c.themes??[]).map(_=>h(_)),E=(c.langs??[]).map(_=>f(_)),g=await yQ({engine:c.engine??o(),...c,themes:m,langs:E});return{...g,loadLanguage(..._){return g.loadLanguage(..._.map(f))},loadTheme(..._){return g.loadTheme(..._.map(h))}}}return l}function vQ(e){let t;async function n(r={}){if(t){const u=await t;return await Promise.all([u.loadTheme(...r.themes||[]),u.loadLanguage(...r.langs||[])]),u}else return t=e({...r,themes:r.themes||[],langs:r.langs||[]}),t}return n}function RQ(e){const t=vQ(e);return{getSingletonHighlighter(n){return t(n)},async codeToHtml(n,r){return(await t({langs:[r.lang],themes:"theme"in r?[r.theme]:Object.values(r.themes)})).codeToHtml(n,r)},async codeToHast(n,r){return(await t({langs:[r.lang],themes:"theme"in r?[r.theme]:Object.values(r.themes)})).codeToHast(n,r)},async codeToTokens(n,r){return(await t({langs:[r.lang],themes:"theme"in r?[r.theme]:Object.values(r.themes)})).codeToTokens(n,r)},async codeToTokensBase(n,r){return(await t({langs:[r.lang],themes:[r.theme]})).codeToTokensBase(n,r)},async codeToTokensWithThemes(n,r){return(await t({langs:[r.lang],themes:Object.values(r.themes).filter(Boolean)})).codeToTokensWithThemes(n,r)},async getLastGrammarState(n,r){return(await t({langs:[r.lang],themes:[r.theme]})).getLastGrammarState(n,r)}}}const DQ=[[/^(<!--)(.+)(-->)$/,!1],[/^(\/\*)(.+)(\*\/)$/,!1],[/^(\/\/|["'#]|;{1,2}|%{1,2}|--)(.*)$/,!0],[/^(\*)(.+)$/,!0]];function TQ(e,t,n){const r=[];for(const u of e){const o=u.children;let l=o.length-1;n==="v1"?l=0:t&&(l=o.length-2);for(let c=Math.max(l,0);c<o.length;c++){const f=o[c];if(f.type!=="element")continue;const h=f.children.at(0);if((h==null?void 0:h.type)!=="text")continue;const m=c===o.length-1,E=bQ(h.value,m);E&&(t&&!m&&c!==0?r.push({info:E,line:u,token:f,isJsxStyle:iR(o[c-1],"{")&&iR(o[c+1],"}")}):r.push({info:E,line:u,token:f,isJsxStyle:!1}))}}return r}function iR(e,t){if(e.type!=="element")return!1;const n=e.children[0];return n.type!=="text"?!1:n.value.trim()===t}function bQ(e,t){let n=e.trimStart();const r=e.length-n.length;n=n.trimEnd();const u=e.length-n.length-r;for(const[o,l]of DQ){if(l&&!t)continue;const c=o.exec(n);if(c)return[" ".repeat(r)+c[1],c[2],c[3]?c[3]+" ".repeat(u):void 0]}}function xQ(e){const n=/(?:\/\/|["'#]|;{1,2}|%{1,2}|--)(.*)$/.exec(e);return n&&n[1].trim().length===0?e.slice(0,n.index):e}function pB(e,t,n,r="v1"){return{name:e,code(u){const o=u.children.filter(h=>h.type==="element"),l=[];u.data??(u.data={});const c=u.data;c._shiki_notation??(c._shiki_notation=TQ(o,["jsx","tsx"].includes(this.options.lang),r));const f=c._shiki_notation;for(const h of f){if(h.info[1].length===0)continue;const m=h.line.children.length===(h.isJsxStyle?3:1);let E=o.indexOf(h.line);m&&r!=="v1"&&E++;let g=!1;if(h.info[1]=h.info[1].replace(t,(...S)=>n.call(this,S,h.line,h.token,o,E)?(g=!0,""):S[0]),!g)continue;r==="v1"&&(h.info[1]=xQ(h.info[1]));const _=h.info[1].trim().length===0;if(_&&(h.info[1]=""),_&&m)l.push(h.line);else if(_&&h.isJsxStyle)h.line.children.splice(h.line.children.indexOf(h.token)-1,3);else if(_)h.line.children.splice(h.line.children.indexOf(h.token),1);else{const S=h.token.children[0];S.type==="text"&&(S.value=h.info.join(""))}}for(const h of l)u.children.splice(u.children.indexOf(h),1)}}}function BQ(e){if(!e)return null;const t=e.match(/\{([\d,-]+)\}/);return t?t[1].split(",").flatMap(r=>{const u=r.split("-").map(o=>Number.parseInt(o,10));return u.length===1?[u[0]]:Array.from({length:u[1]-u[0]+1},(o,l)=>l+u[0])}):null}const z0=Symbol("highlighted-lines");function FQ(e={}){const{className:t="highlighted"}=e;return{name:"@shikijs/transformers:meta-highlight",line(n,r){var l;if(!((l=this.options.meta)!=null&&l.__raw))return;const u=this.meta;return u[z0]??(u[z0]=BQ(this.options.meta.__raw)),(u[z0]??[]).includes(r)&&this.addClassToHast(n,t),n}}}function OQ(e){return e?Array.from(e.matchAll(/\/((?:\\.|[^/])+)\//g)).map(n=>n[1].replace(/\\(.)/g,"$1")):[]}function LQ(e={}){const{className:t="highlighted-word"}=e;return{name:"@shikijs/transformers:meta-word-highlight",preprocess(n,r){var o;if(!((o=this.options.meta)!=null&&o.__raw))return;const u=OQ(this.options.meta.__raw);r.decorations||(r.decorations=[]);for(const l of u){const c=wQ(n,l);for(const f of c)r.decorations.push({start:f,end:f+l.length,properties:{class:t}})}}}}function wQ(e,t){const n=[];let r=-1;for(;(r=e.indexOf(t,r+1))!==-1;)n.push(r);return n}function MQ(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function w_(e={},t="@shikijs/transformers:notation-map"){const{classMap:n={},classActivePre:r=void 0}=e;return pB(t,new RegExp(`\\s*\\[!code (${Object.keys(n).map(MQ).join("|")})(:\\d+)?\\]`),function([u,o,l=":1"],c,f,h,m){const E=Number.parseInt(l.slice(1),10);for(let g=m;g<Math.min(m+E,h.length);g++)this.addClassToHast(h[g],n[o]);return r&&this.addClassToHast(this.pre,r),!0},e.matchAlgorithm)}function PQ(e={}){const{classLineAdd:t="diff add",classLineRemove:n="diff remove",classActivePre:r="has-diff"}=e;return w_({classMap:{"++":t,"--":n},classActivePre:r,matchAlgorithm:e.matchAlgorithm},"@shikijs/transformers:notation-diff")}function HQ(e={}){const{classMap:t={error:["highlighted","error"],warning:["highlighted","warning"]},classActivePre:n="has-highlighted"}=e;return w_({classMap:t,classActivePre:n,matchAlgorithm:e.matchAlgorithm},"@shikijs/transformers:notation-error-level")}function UQ(e={}){const{classActiveLine:t="highlighted",classActivePre:n="has-highlighted"}=e;return w_({classMap:{highlight:t,hl:t},classActivePre:n,matchAlgorithm:e.matchAlgorithm},"@shikijs/transformers:notation-highlight")}function kQ(e,t,n,r){const u=EB(e);let o=u.indexOf(n);for(;o!==-1;)GQ.call(this,e.children,t,o,n.length,r),o=u.indexOf(n,o+1)}function EB(e){return e.type==="text"?e.value:e.type==="element"&&e.tagName==="span"?e.children.map(EB).join(""):""}function GQ(e,t,n,r,u){let o=0;for(let l=0;l<e.length;l++){const c=e[l];if(c.type!=="element"||c.tagName!=="span"||c===t)continue;const f=c.children[0];if(f.type==="text"){if(VQ([o,o+f.value.length-1],[n,n+r])){const h=Math.max(0,n-o),m=r-Math.max(0,o-n);if(m===0)continue;const E=jQ(c,f,h,m);this.addClassToHast(E[1],u);const g=E.filter(Boolean);e.splice(l,1,...g),l+=g.length-1}o+=f.value.length}}}function VQ(e,t){return e[0]<=t[1]&&e[1]>=t[0]}function jQ(e,t,n,r){const u=t.value,o=l=>zQ(e,{children:[{type:"text",value:l}]});return[n>0?o(u.slice(0,n)):void 0,o(u.slice(n,n+r)),n+r<u.length?o(u.slice(n+r)):void 0]}function zQ(e,t){return{...e,properties:{...e.properties},...t}}function KQ(e={}){const{classActiveWord:t="highlighted-word",classActivePre:n=void 0}=e;return pB("@shikijs/transformers:notation-highlight-word",/\s*\[!code word:((?:\\.|[^:\]])+)(:\d+)?\]/,function([r,u,o],l,c,f,h){const m=o?Number.parseInt(o.slice(1),10):f.length;u=u.replace(/\\(.)/g,"$1");for(let E=h;E<Math.min(h+m,f.length);E++)kQ.call(this,f[E],c,u,t);return n&&this.addClassToHast(this.pre,n),!0},e.matchAlgorithm)}const $Q="modulepreload",YQ=function(e){return"/"+e},uR={},w=function(t,n,r){let u=Promise.resolve();if(n&&n.length>0){document.getElementsByTagName("link");const l=document.querySelector("meta[property=csp-nonce]"),c=(l==null?void 0:l.nonce)||(l==null?void 0:l.getAttribute("nonce"));u=Promise.allSettled(n.map(f=>{if(f=YQ(f),f in uR)return;uR[f]=!0;const h=f.endsWith(".css"),m=h?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${f}"]${m}`))return;const E=document.createElement("link");if(E.rel=h?"stylesheet":$Q,h||(E.as="script"),E.crossOrigin="",E.href=f,c&&E.setAttribute("nonce",c),document.head.appendChild(E),h)return new Promise((g,_)=>{E.addEventListener("load",g),E.addEventListener("error",()=>_(new Error(`Unable to preload CSS for ${f}`)))})}))}function o(l){const c=new Event("vite:preloadError",{cancelable:!0});if(c.payload=l,window.dispatchEvent(c),!c.defaultPrevented)throw l}return u.then(l=>{for(const c of l||[])c.status==="rejected"&&o(c.reason);return t().catch(o)})},gB=[{id:"abap",name:"ABAP",import:()=>w(()=>import("./abap-DsBKuouk.js"),[])},{id:"actionscript-3",name:"ActionScript",import:()=>w(()=>import("./actionscript-3-D_z4Izcz.js"),[])},{id:"ada",name:"Ada",import:()=>w(()=>import("./ada-727ZlQH0.js"),[])},{id:"angular-html",name:"Angular HTML",import:()=>w(()=>import("./angular-html-LfdN0zeE.js").then(e=>e.f),__vite__mapDeps([0,1,2,3]))},{id:"angular-ts",name:"Angular TypeScript",import:()=>w(()=>import("./angular-ts-CKsD7JZE.js"),__vite__mapDeps([4,0,1,2,3,5]))},{id:"apache",name:"Apache Conf",import:()=>w(()=>import("./apache-Dn00JSTd.js"),[])},{id:"apex",name:"Apex",import:()=>w(()=>import("./apex-COJ4H7py.js"),[])},{id:"apl",name:"APL",import:()=>w(()=>import("./apl-BBq3IX1j.js"),__vite__mapDeps([6,1,2,3,7,8,9]))},{id:"applescript",name:"AppleScript",import:()=>w(()=>import("./applescript-Bu5BbsvL.js"),[])},{id:"ara",name:"Ara",import:()=>w(()=>import("./ara-7O62HKoU.js"),[])},{id:"asciidoc",name:"AsciiDoc",aliases:["adoc"],import:()=>w(()=>import("./asciidoc-BPT9niGB.js"),[])},{id:"asm",name:"Assembly",import:()=>w(()=>import("./asm-Dhn9LcZ4.js"),[])},{id:"astro",name:"Astro",import:()=>w(()=>import("./astro-CqkE3fuf.js"),__vite__mapDeps([10,9,2,11,3,12]))},{id:"awk",name:"AWK",import:()=>w(()=>import("./awk-eg146-Ew.js"),[])},{id:"ballerina",name:"Ballerina",import:()=>w(()=>import("./ballerina-Du268qiB.js"),[])},{id:"bat",name:"Batch File",aliases:["batch"],import:()=>w(()=>import("./bat-fje9CFhw.js"),[])},{id:"beancount",name:"Beancount",import:()=>w(()=>import("./beancount-BwXTMy5W.js"),[])},{id:"berry",name:"Berry",aliases:["be"],import:()=>w(()=>import("./berry-3xVqZejG.js"),[])},{id:"bibtex",name:"BibTeX",import:()=>w(()=>import("./bibtex-xW4inM5L.js"),[])},{id:"bicep",name:"Bicep",import:()=>w(()=>import("./bicep-DHo0CJ0O.js"),[])},{id:"blade",name:"Blade",import:()=>w(()=>import("./blade-a8OxSdnT.js"),__vite__mapDeps([13,1,2,3,7,8,14,9]))},{id:"bsl",name:"1C (Enterprise)",aliases:["1c"],import:()=>w(()=>import("./bsl-Dgyn0ogV.js"),__vite__mapDeps([15,16]))},{id:"c",name:"C",import:()=>w(()=>import("./c-C3t2pwGQ.js"),[])},{id:"cadence",name:"Cadence",aliases:["cdc"],import:()=>w(()=>import("./cadence-DNquZEk8.js"),[])},{id:"cairo",name:"Cairo",import:()=>w(()=>import("./cairo--RitsXJZ.js"),__vite__mapDeps([17,18]))},{id:"clarity",name:"Clarity",import:()=>w(()=>import("./clarity-BHOwM8T6.js"),[])},{id:"clojure",name:"Clojure",aliases:["clj"],import:()=>w(()=>import("./clojure-DxSadP1t.js"),[])},{id:"cmake",name:"CMake",import:()=>w(()=>import("./cmake-DbXoA79R.js"),[])},{id:"cobol",name:"COBOL",import:()=>w(()=>import("./cobol-PTqiYgYu.js"),__vite__mapDeps([19,1,2,3,8]))},{id:"codeowners",name:"CODEOWNERS",import:()=>w(()=>import("./codeowners-Bp6g37R7.js"),[])},{id:"codeql",name:"CodeQL",aliases:["ql"],import:()=>w(()=>import("./codeql-sacFqUAJ.js"),[])},{id:"coffee",name:"CoffeeScript",aliases:["coffeescript"],import:()=>w(()=>import("./coffee-dyiR41kL.js"),__vite__mapDeps([20,2]))},{id:"common-lisp",name:"Common Lisp",aliases:["lisp"],import:()=>w(()=>import("./common-lisp-C7gG9l05.js"),[])},{id:"coq",name:"Coq",import:()=>w(()=>import("./coq-Dsg_Bt_b.js"),[])},{id:"cpp",name:"C++",aliases:["c++"],import:()=>w(()=>import("./cpp-BksuvNSY.js"),__vite__mapDeps([21,22,23,24,14]))},{id:"crystal",name:"Crystal",import:()=>w(()=>import("./crystal-DtDmRg-F.js"),__vite__mapDeps([25,1,2,3,14,24,26]))},{id:"csharp",name:"C#",aliases:["c#","cs"],import:()=>w(()=>import("./csharp-D9R-vmeu.js"),[])},{id:"css",name:"CSS",import:()=>w(()=>import("./css-BPhBrDlE.js"),[])},{id:"csv",name:"CSV",import:()=>w(()=>import("./csv-B0qRVHPH.js"),[])},{id:"cue",name:"CUE",import:()=>w(()=>import("./cue-DtFQj3wx.js"),[])},{id:"cypher",name:"Cypher",aliases:["cql"],import:()=>w(()=>import("./cypher-m2LEI-9-.js"),[])},{id:"d",name:"D",import:()=>w(()=>import("./d-BoXegm-a.js"),[])},{id:"dart",name:"Dart",import:()=>w(()=>import("./dart-B9wLZaAG.js"),[])},{id:"dax",name:"DAX",import:()=>w(()=>import("./dax-ClGRhx96.js"),[])},{id:"desktop",name:"Desktop",import:()=>w(()=>import("./desktop-DEIpsLCJ.js"),[])},{id:"diff",name:"Diff",import:()=>w(()=>import("./diff-BgYniUM_.js"),[])},{id:"docker",name:"Dockerfile",aliases:["dockerfile"],import:()=>w(()=>import("./docker-COcR7UxN.js"),[])},{id:"dotenv",name:"dotEnv",import:()=>w(()=>import("./dotenv-BjQB5zDj.js"),[])},{id:"dream-maker",name:"Dream Maker",import:()=>w(()=>import("./dream-maker-C-nORZOA.js"),[])},{id:"edge",name:"Edge",import:()=>w(()=>import("./edge-D5gP-w-T.js"),__vite__mapDeps([27,11,1,2,3,28]))},{id:"elixir",name:"Elixir",import:()=>w(()=>import("./elixir-CLiX3zqd.js"),__vite__mapDeps([29,1,2,3]))},{id:"elm",name:"Elm",import:()=>w(()=>import("./elm-CmHSxxaM.js"),__vite__mapDeps([30,23,24]))},{id:"emacs-lisp",name:"Emacs Lisp",aliases:["elisp"],import:()=>w(()=>import("./emacs-lisp-BX77sIaO.js"),[])},{id:"erb",name:"ERB",import:()=>w(()=>import("./erb-BYTLMnw6.js"),__vite__mapDeps([31,1,2,3,32,33,7,8,14,34,11,35,36,21,22,23,24,26,37,38]))},{id:"erlang",name:"Erlang",aliases:["erl"],import:()=>w(()=>import("./erlang-B-DoSBHF.js"),[])},{id:"fennel",name:"Fennel",import:()=>w(()=>import("./fennel-bCA53EVm.js"),[])},{id:"fish",name:"Fish",import:()=>w(()=>import("./fish-w-ucz2PV.js"),[])},{id:"fluent",name:"Fluent",aliases:["ftl"],import:()=>w(()=>import("./fluent-Dayu4EKP.js"),[])},{id:"fortran-fixed-form",name:"Fortran (Fixed Form)",aliases:["f","for","f77"],import:()=>w(()=>import("./fortran-fixed-form-TqA4NnZg.js"),__vite__mapDeps([39,40]))},{id:"fortran-free-form",name:"Fortran (Free Form)",aliases:["f90","f95","f03","f08","f18"],import:()=>w(()=>import("./fortran-free-form-DKXYxT9g.js"),[])},{id:"fsharp",name:"F#",aliases:["f#","fs"],import:()=>w(()=>import("./fsharp-XplgxFYe.js"),__vite__mapDeps([41,42]))},{id:"gdresource",name:"GDResource",import:()=>w(()=>import("./gdresource-BHYsBjWJ.js"),__vite__mapDeps([43,44,45]))},{id:"gdscript",name:"GDScript",import:()=>w(()=>import("./gdscript-DfxzS6Rs.js"),[])},{id:"gdshader",name:"GDShader",import:()=>w(()=>import("./gdshader-SKMF96pI.js"),[])},{id:"genie",name:"Genie",import:()=>w(()=>import("./genie-ajMbGru0.js"),[])},{id:"gherkin",name:"Gherkin",import:()=>w(()=>import("./gherkin--30QC5Em.js"),[])},{id:"git-commit",name:"Git Commit Message",import:()=>w(()=>import("./git-commit-i4q6IMui.js"),__vite__mapDeps([46,47]))},{id:"git-rebase",name:"Git Rebase Message",import:()=>w(()=>import("./git-rebase-B-v9cOL2.js"),__vite__mapDeps([48,26]))},{id:"gleam",name:"Gleam",import:()=>w(()=>import("./gleam-B430Bg39.js"),[])},{id:"glimmer-js",name:"Glimmer JS",aliases:["gjs"],import:()=>w(()=>import("./glimmer-js-D-cwc0-E.js"),__vite__mapDeps([49,2,11,3,1]))},{id:"glimmer-ts",name:"Glimmer TS",aliases:["gts"],import:()=>w(()=>import("./glimmer-ts-pgjy16dm.js"),__vite__mapDeps([50,11,3,2,1]))},{id:"glsl",name:"GLSL",import:()=>w(()=>import("./glsl-DBO2IWDn.js"),__vite__mapDeps([23,24]))},{id:"gnuplot",name:"Gnuplot",import:()=>w(()=>import("./gnuplot-CM8KxXT1.js"),[])},{id:"go",name:"Go",import:()=>w(()=>import("./go-B1SYOhNW.js"),[])},{id:"graphql",name:"GraphQL",aliases:["gql"],import:()=>w(()=>import("./graphql-cDcHW_If.js"),__vite__mapDeps([34,2,11,35,36]))},{id:"groovy",name:"Groovy",import:()=>w(()=>import("./groovy-DkBy-JyN.js"),[])},{id:"hack",name:"Hack",import:()=>w(()=>import("./hack-D1yCygmZ.js"),__vite__mapDeps([51,1,2,3,14]))},{id:"haml",name:"Ruby Haml",import:()=>w(()=>import("./haml-B2EZWmdv.js"),__vite__mapDeps([33,2,3]))},{id:"handlebars",name:"Handlebars",aliases:["hbs"],import:()=>w(()=>import("./handlebars-BQGss363.js"),__vite__mapDeps([52,1,2,3,38]))},{id:"haskell",name:"Haskell",aliases:["hs"],import:()=>w(()=>import("./haskell-BILxekzW.js"),[])},{id:"haxe",name:"Haxe",import:()=>w(()=>import("./haxe-C5wWYbrZ.js"),[])},{id:"hcl",name:"HashiCorp HCL",import:()=>w(()=>import("./hcl-HzYwdGDm.js"),[])},{id:"hjson",name:"Hjson",import:()=>w(()=>import("./hjson-T-Tgc4AT.js"),[])},{id:"hlsl",name:"HLSL",import:()=>w(()=>import("./hlsl-ifBTmRxC.js"),[])},{id:"html",name:"HTML",import:()=>w(()=>import("./html-C2L_23MC.js"),__vite__mapDeps([1,2,3]))},{id:"html-derivative",name:"HTML (Derivative)",import:()=>w(()=>import("./html-derivative-CSfWNPLT.js"),__vite__mapDeps([28,1,2,3]))},{id:"http",name:"HTTP",import:()=>w(()=>import("./http-FRrOvY1W.js"),__vite__mapDeps([53,26,9,7,8,34,2,11,35,36]))},{id:"hxml",name:"HXML",import:()=>w(()=>import("./hxml-TIA70rKU.js"),__vite__mapDeps([54,55]))},{id:"hy",name:"Hy",import:()=>w(()=>import("./hy-BMj5Y0dO.js"),[])},{id:"imba",name:"Imba",import:()=>w(()=>import("./imba-bv_oIlVt.js"),__vite__mapDeps([56,11]))},{id:"ini",name:"INI",aliases:["properties"],import:()=>w(()=>import("./ini-BjABl1g7.js"),[])},{id:"java",name:"Java",import:()=>w(()=>import("./java-xI-RfyKK.js"),[])},{id:"javascript",name:"JavaScript",aliases:["js"],import:()=>w(()=>import("./javascript-ySlJ1b_l.js"),[])},{id:"jinja",name:"Jinja",import:()=>w(()=>import("./jinja-DGy0s7-h.js"),__vite__mapDeps([57,1,2,3]))},{id:"jison",name:"Jison",import:()=>w(()=>import("./jison-BqZprYcd.js"),__vite__mapDeps([58,2]))},{id:"json",name:"JSON",import:()=>w(()=>import("./json-BQoSv7ci.js"),[])},{id:"json5",name:"JSON5",import:()=>w(()=>import("./json5-w8dY5SsB.js"),[])},{id:"jsonc",name:"JSON with Comments",import:()=>w(()=>import("./jsonc-TU54ms6u.js"),[])},{id:"jsonl",name:"JSON Lines",import:()=>w(()=>import("./jsonl-DREVFZK8.js"),[])},{id:"jsonnet",name:"Jsonnet",import:()=>w(()=>import("./jsonnet-BfivnA6A.js"),[])},{id:"jssm",name:"JSSM",aliases:["fsl"],import:()=>w(()=>import("./jssm-P4WzXJd0.js"),[])},{id:"jsx",name:"JSX",import:()=>w(()=>import("./jsx-BAng5TT0.js"),[])},{id:"julia",name:"Julia",aliases:["jl"],import:()=>w(()=>import("./julia-BBuGR-5E.js"),__vite__mapDeps([59,21,22,23,24,14,18,2,60]))},{id:"kotlin",name:"Kotlin",aliases:["kt","kts"],import:()=>w(()=>import("./kotlin-B5lbUyaz.js"),[])},{id:"kusto",name:"Kusto",aliases:["kql"],import:()=>w(()=>import("./kusto-mebxcVVE.js"),[])},{id:"latex",name:"LaTeX",import:()=>w(()=>import("./latex-C-cWTeAZ.js"),__vite__mapDeps([61,62,60]))},{id:"lean",name:"Lean 4",aliases:["lean4"],import:()=>w(()=>import("./lean-XBlWyCtg.js"),[])},{id:"less",name:"Less",import:()=>w(()=>import("./less-BfCpw3nA.js"),[])},{id:"liquid",name:"Liquid",import:()=>w(()=>import("./liquid-D3W5UaiH.js"),__vite__mapDeps([63,1,2,3,9]))},{id:"log",name:"Log file",import:()=>w(()=>import("./log-Cc5clBb7.js"),[])},{id:"logo",name:"Logo",import:()=>w(()=>import("./logo-IuBKFhSY.js"),[])},{id:"lua",name:"Lua",import:()=>w(()=>import("./lua-CvWAzNxB.js"),__vite__mapDeps([37,24]))},{id:"luau",name:"Luau",import:()=>w(()=>import("./luau-Du5NY7AG.js"),[])},{id:"make",name:"Makefile",aliases:["makefile"],import:()=>w(()=>import("./make-Bvotw-X0.js"),[])},{id:"markdown",name:"Markdown",aliases:["md"],import:()=>w(()=>import("./markdown-UIAJJxZW.js"),[])},{id:"marko",name:"Marko",import:()=>w(()=>import("./marko-z0MBrx5-.js"),__vite__mapDeps([64,3,65,5,2]))},{id:"matlab",name:"MATLAB",import:()=>w(()=>import("./matlab-D9-PGadD.js"),[])},{id:"mdc",name:"MDC",import:()=>w(()=>import("./mdc-DB_EDNY_.js"),__vite__mapDeps([66,42,38,28,1,2,3]))},{id:"mdx",name:"MDX",import:()=>w(()=>import("./mdx-sdHcTMYB.js"),[])},{id:"mermaid",name:"Mermaid",aliases:["mmd"],import:()=>w(()=>import("./mermaid-Ci6OQyBP.js"),[])},{id:"mipsasm",name:"MIPS Assembly",aliases:["mips"],import:()=>w(()=>import("./mipsasm-BC5c_5Pe.js"),[])},{id:"mojo",name:"Mojo",import:()=>w(()=>import("./mojo-Tz6hzZYG.js"),[])},{id:"move",name:"Move",import:()=>w(()=>import("./move-DB_GagMm.js"),[])},{id:"narrat",name:"Narrat Language",aliases:["nar"],import:()=>w(()=>import("./narrat-DLbgOhZU.js"),[])},{id:"nextflow",name:"Nextflow",aliases:["nf"],import:()=>w(()=>import("./nextflow-B0XVJmRM.js"),[])},{id:"nginx",name:"Nginx",import:()=>w(()=>import("./nginx-D_VnBJ67.js"),__vite__mapDeps([67,37,24]))},{id:"nim",name:"Nim",import:()=>w(()=>import("./nim-ZlGxZxc3.js"),__vite__mapDeps([68,24,1,2,3,7,8,23,42]))},{id:"nix",name:"Nix",import:()=>w(()=>import("./nix-shcSOmrb.js"),[])},{id:"nushell",name:"nushell",aliases:["nu"],import:()=>w(()=>import("./nushell-D4Tzg5kh.js"),[])},{id:"objective-c",name:"Objective-C",aliases:["objc"],import:()=>w(()=>import("./objective-c-Deuh7S70.js"),[])},{id:"objective-cpp",name:"Objective-C++",import:()=>w(()=>import("./objective-cpp-BUEGK8hf.js"),[])},{id:"ocaml",name:"OCaml",import:()=>w(()=>import("./ocaml-BNioltXt.js"),[])},{id:"pascal",name:"Pascal",import:()=>w(()=>import("./pascal-JqZropPD.js"),[])},{id:"perl",name:"Perl",import:()=>w(()=>import("./perl-CHQXSrWU.js"),__vite__mapDeps([69,1,2,3,7,8,14]))},{id:"php",name:"PHP",import:()=>w(()=>import("./php-B5ebYQev.js"),__vite__mapDeps([70,1,2,3,7,8,14,9]))},{id:"plsql",name:"PL/SQL",import:()=>w(()=>import("./plsql-LKU2TuZ1.js"),[])},{id:"po",name:"Gettext PO",aliases:["pot","potx"],import:()=>w(()=>import("./po-BFLt1xDp.js"),[])},{id:"polar",name:"Polar",import:()=>w(()=>import("./polar-DKykz6zU.js"),[])},{id:"postcss",name:"PostCSS",import:()=>w(()=>import("./postcss-B3ZDOciz.js"),[])},{id:"powerquery",name:"PowerQuery",import:()=>w(()=>import("./powerquery-CSHBycmS.js"),[])},{id:"powershell",name:"PowerShell",aliases:["ps","ps1"],import:()=>w(()=>import("./powershell-BIEUsx6d.js"),[])},{id:"prisma",name:"Prisma",import:()=>w(()=>import("./prisma-B48N-Iqd.js"),[])},{id:"prolog",name:"Prolog",import:()=>w(()=>import("./prolog-BY-TUvya.js"),[])},{id:"proto",name:"Protocol Buffer 3",aliases:["protobuf"],import:()=>w(()=>import("./proto-zocC4JxJ.js"),[])},{id:"pug",name:"Pug",aliases:["jade"],import:()=>w(()=>import("./pug-CM9l7STV.js"),__vite__mapDeps([71,2,3,1]))},{id:"puppet",name:"Puppet",import:()=>w(()=>import("./puppet-Cza_XSSt.js"),[])},{id:"purescript",name:"PureScript",import:()=>w(()=>import("./purescript-Bg-kzb6g.js"),[])},{id:"python",name:"Python",aliases:["py"],import:()=>w(()=>import("./python-DhUJRlN_.js"),[])},{id:"qml",name:"QML",import:()=>w(()=>import("./qml-D8XfuvdV.js"),__vite__mapDeps([72,2]))},{id:"qmldir",name:"QML Directory",import:()=>w(()=>import("./qmldir-C8lEn-DE.js"),[])},{id:"qss",name:"Qt Style Sheets",import:()=>w(()=>import("./qss-DhMKtDLN.js"),[])},{id:"r",name:"R",import:()=>w(()=>import("./r-CwjWoCRV.js"),[])},{id:"racket",name:"Racket",import:()=>w(()=>import("./racket-CzouJOBO.js"),[])},{id:"raku",name:"Raku",aliases:["perl6"],import:()=>w(()=>import("./raku-B1bQXN8T.js"),[])},{id:"razor",name:"ASP.NET Razor",import:()=>w(()=>import("./razor-CNLDkMZG.js"),__vite__mapDeps([73,1,2,3,74]))},{id:"reg",name:"Windows Registry Script",import:()=>w(()=>import("./reg-5LuOXUq_.js"),[])},{id:"regexp",name:"RegExp",aliases:["regex"],import:()=>w(()=>import("./regexp-DWJ3fJO_.js"),[])},{id:"rel",name:"Rel",import:()=>w(()=>import("./rel-DJlmqQ1C.js"),[])},{id:"riscv",name:"RISC-V",import:()=>w(()=>import("./riscv-QhoSD0DR.js"),[])},{id:"rst",name:"reStructuredText",import:()=>w(()=>import("./rst-4NLicBqY.js"),__vite__mapDeps([75,28,1,2,3,21,22,23,24,14,18,26,38,76,32,33,7,8,34,11,35,36,37]))},{id:"ruby",name:"Ruby",aliases:["rb"],import:()=>w(()=>import("./ruby-DeZ3UC14.js"),__vite__mapDeps([32,1,2,3,33,7,8,14,34,11,35,36,21,22,23,24,26,37,38]))},{id:"rust",name:"Rust",aliases:["rs"],import:()=>w(()=>import("./rust-Be6lgOlo.js"),[])},{id:"sas",name:"SAS",import:()=>w(()=>import("./sas-BmTFh92c.js"),__vite__mapDeps([77,14]))},{id:"sass",name:"Sass",import:()=>w(()=>import("./sass-BJ4Li9vH.js"),[])},{id:"scala",name:"Scala",import:()=>w(()=>import("./scala-DQVVAn-B.js"),[])},{id:"scheme",name:"Scheme",import:()=>w(()=>import("./scheme-BJGe-b2p.js"),[])},{id:"scss",name:"SCSS",import:()=>w(()=>import("./scss-C31hgJw-.js"),__vite__mapDeps([5,3]))},{id:"sdbl",name:"1C (Query)",aliases:["1c-query"],import:()=>w(()=>import("./sdbl-BLhTXw86.js"),[])},{id:"shaderlab",name:"ShaderLab",aliases:["shader"],import:()=>w(()=>import("./shaderlab-B7qAK45m.js"),__vite__mapDeps([78,79]))},{id:"shellscript",name:"Shell",aliases:["bash","sh","shell","zsh"],import:()=>w(()=>import("./shellscript-atvbtKCR.js"),[])},{id:"shellsession",name:"Shell Session",aliases:["console"],import:()=>w(()=>import("./shellsession-C_rIy8kc.js"),__vite__mapDeps([80,26]))},{id:"smalltalk",name:"Smalltalk",import:()=>w(()=>import("./smalltalk-DkLiglaE.js"),[])},{id:"solidity",name:"Solidity",import:()=>w(()=>import("./solidity-C1w2a3ep.js"),[])},{id:"soy",name:"Closure Templates",aliases:["closure-templates"],import:()=>w(()=>import("./soy-C-lX7w71.js"),__vite__mapDeps([81,1,2,3]))},{id:"sparql",name:"SPARQL",import:()=>w(()=>import("./sparql-bYkjHRlG.js"),__vite__mapDeps([82,83]))},{id:"splunk",name:"Splunk Query Language",aliases:["spl"],import:()=>w(()=>import("./splunk-Cf8iN4DR.js"),[])},{id:"sql",name:"SQL",import:()=>w(()=>import("./sql-COK4E0Yg.js"),[])},{id:"ssh-config",name:"SSH Config",import:()=>w(()=>import("./ssh-config-BknIz3MU.js"),[])},{id:"stata",name:"Stata",import:()=>w(()=>import("./stata-DorPZHa4.js"),__vite__mapDeps([84,14]))},{id:"stylus",name:"Stylus",aliases:["styl"],import:()=>w(()=>import("./stylus-BeQkCIfX.js"),[])},{id:"svelte",name:"Svelte",import:()=>w(()=>import("./svelte-MSaWC3Je.js"),__vite__mapDeps([85,2,11,3,12]))},{id:"swift",name:"Swift",import:()=>w(()=>import("./swift-BSxZ-RaX.js"),[])},{id:"system-verilog",name:"SystemVerilog",import:()=>w(()=>import("./system-verilog-C7L56vO4.js"),[])},{id:"systemd",name:"Systemd Units",import:()=>w(()=>import("./systemd-CUnW07Te.js"),[])},{id:"talonscript",name:"TalonScript",aliases:["talon"],import:()=>w(()=>import("./talonscript-C1XDQQGZ.js"),[])},{id:"tasl",name:"Tasl",import:()=>w(()=>import("./tasl-CQjiPCtT.js"),[])},{id:"tcl",name:"Tcl",import:()=>w(()=>import("./tcl-DQ1-QYvQ.js"),[])},{id:"templ",name:"Templ",import:()=>w(()=>import("./templ-dwX3ZSMB.js"),__vite__mapDeps([86,87,2,3]))},{id:"terraform",name:"Terraform",aliases:["tf","tfvars"],import:()=>w(()=>import("./terraform-BbSNqyBO.js"),[])},{id:"tex",name:"TeX",import:()=>w(()=>import("./tex-rYs2v40G.js"),__vite__mapDeps([62,60]))},{id:"toml",name:"TOML",import:()=>w(()=>import("./toml-CB2ApiWb.js"),[])},{id:"ts-tags",name:"TypeScript with Tags",aliases:["lit"],import:()=>w(()=>import("./ts-tags-CipyTH0X.js"),__vite__mapDeps([88,11,3,2,23,24,1,14,7,8]))},{id:"tsv",name:"TSV",import:()=>w(()=>import("./tsv-B_m7g4N7.js"),[])},{id:"tsx",name:"TSX",import:()=>w(()=>import("./tsx-B6W0miNI.js"),[])},{id:"turtle",name:"Turtle",import:()=>w(()=>import("./turtle-BMR_PYu6.js"),[])},{id:"twig",name:"Twig",import:()=>w(()=>import("./twig-NC5TFiHP.js"),__vite__mapDeps([89,3,2,5,70,1,7,8,14,9,18,32,33,34,11,35,36,21,22,23,24,26,37,38]))},{id:"typescript",name:"TypeScript",aliases:["ts"],import:()=>w(()=>import("./typescript-Dj6nwHGl.js"),[])},{id:"typespec",name:"TypeSpec",aliases:["tsp"],import:()=>w(()=>import("./typespec-BpWG_bgh.js"),[])},{id:"typst",name:"Typst",aliases:["typ"],import:()=>w(()=>import("./typst-BVUVsWT6.js"),[])},{id:"v",name:"V",import:()=>w(()=>import("./v-CAQ2eGtk.js"),[])},{id:"vala",name:"Vala",import:()=>w(()=>import("./vala-BFOHcciG.js"),[])},{id:"vb",name:"Visual Basic",aliases:["cmd"],import:()=>w(()=>import("./vb-CdO5JTpU.js"),[])},{id:"verilog",name:"Verilog",import:()=>w(()=>import("./verilog-CJaU5se_.js"),[])},{id:"vhdl",name:"VHDL",import:()=>w(()=>import("./vhdl-DYoNaHQp.js"),[])},{id:"viml",name:"Vim Script",aliases:["vim","vimscript"],import:()=>w(()=>import("./viml-m4uW47V2.js"),[])},{id:"vue",name:"Vue",import:()=>w(()=>import("./vue-BuYVFjOK.js"),__vite__mapDeps([90,1,2,3,11,9,28]))},{id:"vue-html",name:"Vue HTML",import:()=>w(()=>import("./vue-html-xdeiXROB.js"),__vite__mapDeps([91,90,1,2,3,11,9,28]))},{id:"vyper",name:"Vyper",aliases:["vy"],import:()=>w(()=>import("./vyper-nyqBNV6O.js"),[])},{id:"wasm",name:"WebAssembly",import:()=>w(()=>import("./wasm-C6j12Q_x.js"),[])},{id:"wenyan",name:"Wenyan",aliases:["文言"],import:()=>w(()=>import("./wenyan-7A4Fjokl.js"),[])},{id:"wgsl",name:"WGSL",import:()=>w(()=>import("./wgsl-CB0Krxn9.js"),[])},{id:"wikitext",name:"Wikitext",aliases:["mediawiki","wiki"],import:()=>w(()=>import("./wikitext-DCE3LsBG.js"),[])},{id:"wolfram",name:"Wolfram",aliases:["wl"],import:()=>w(()=>import("./wolfram-C3FkfJm5.js"),[])},{id:"xml",name:"XML",import:()=>w(()=>import("./xml-e3z08dGr.js"),__vite__mapDeps([7,8]))},{id:"xsl",name:"XSL",import:()=>w(()=>import("./xsl-Dd0NUgwM.js"),__vite__mapDeps([92,7,8]))},{id:"yaml",name:"YAML",aliases:["yml"],import:()=>w(()=>import("./yaml-CVw76BM1.js"),[])},{id:"zenscript",name:"ZenScript",import:()=>w(()=>import("./zenscript-HnGAYVZD.js"),[])},{id:"zig",name:"Zig",import:()=>w(()=>import("./zig-BVz_zdnA.js"),[])}],ZQ=Object.fromEntries(gB.map(e=>[e.id,e.import])),WQ=Object.fromEntries(gB.flatMap(e=>{var t;return((t=e.aliases)==null?void 0:t.map(n=>[n,e.import]))||[]})),qQ={...ZQ,...WQ},XQ=[{id:"andromeeda",displayName:"Andromeeda",type:"dark",import:()=>w(()=>import("./andromeeda-C3khCPGq.js"),[])},{id:"aurora-x",displayName:"Aurora X",type:"dark",import:()=>w(()=>import("./aurora-x-D-2ljcwZ.js"),[])},{id:"ayu-dark",displayName:"Ayu Dark",type:"dark",import:()=>w(()=>import("./ayu-dark-Cv9koXgw.js"),[])},{id:"catppuccin-frappe",displayName:"Catppuccin Frappé",type:"dark",import:()=>w(()=>import("./catppuccin-frappe-CD_QflpE.js"),[])},{id:"catppuccin-latte",displayName:"Catppuccin Latte",type:"light",import:()=>w(()=>import("./catppuccin-latte-DRW-0cLl.js"),[])},{id:"catppuccin-macchiato",displayName:"Catppuccin Macchiato",type:"dark",import:()=>w(()=>import("./catppuccin-macchiato-C-_shW-Y.js"),[])},{id:"catppuccin-mocha",displayName:"Catppuccin Mocha",type:"dark",import:()=>w(()=>import("./catppuccin-mocha-LGGdnPYs.js"),[])},{id:"dark-plus",displayName:"Dark Plus",type:"dark",import:()=>w(()=>import("./dark-plus-C3mMm8J8.js"),[])},{id:"dracula",displayName:"Dracula Theme",type:"dark",import:()=>w(()=>import("./dracula-BzJJZx-M.js"),[])},{id:"dracula-soft",displayName:"Dracula Theme Soft",type:"dark",import:()=>w(()=>import("./dracula-soft-BXkSAIEj.js"),[])},{id:"everforest-dark",displayName:"Everforest Dark",type:"dark",import:()=>w(()=>import("./everforest-dark-BgDCqdQA.js"),[])},{id:"everforest-light",displayName:"Everforest Light",type:"light",import:()=>w(()=>import("./everforest-light-C8M2exoo.js"),[])},{id:"github-dark",displayName:"GitHub Dark",type:"dark",import:()=>w(()=>import("./github-dark-DHJKELXO.js"),[])},{id:"github-dark-default",displayName:"GitHub Dark Default",type:"dark",import:()=>w(()=>import("./github-dark-default-Cuk6v7N8.js"),[])},{id:"github-dark-dimmed",displayName:"GitHub Dark Dimmed",type:"dark",import:()=>w(()=>import("./github-dark-dimmed-DH5Ifo-i.js"),[])},{id:"github-dark-high-contrast",displayName:"GitHub Dark High Contrast",type:"dark",import:()=>w(()=>import("./github-dark-high-contrast-E3gJ1_iC.js"),[])},{id:"github-light",displayName:"GitHub Light",type:"light",import:()=>w(()=>import("./github-light-DAi9KRSo.js"),[])},{id:"github-light-default",displayName:"GitHub Light Default",type:"light",import:()=>w(()=>import("./github-light-default-D7oLnXFd.js"),[])},{id:"github-light-high-contrast",displayName:"GitHub Light High Contrast",type:"light",import:()=>w(()=>import("./github-light-high-contrast-BfjtVDDH.js"),[])},{id:"houston",displayName:"Houston",type:"dark",import:()=>w(()=>import("./houston-DnULxvSX.js"),[])},{id:"kanagawa-dragon",displayName:"Kanagawa Dragon",type:"dark",import:()=>w(()=>import("./kanagawa-dragon-CkXjmgJE.js"),[])},{id:"kanagawa-lotus",displayName:"Kanagawa Lotus",type:"light",import:()=>w(()=>import("./kanagawa-lotus-CfQXZHmo.js"),[])},{id:"kanagawa-wave",displayName:"Kanagawa Wave",type:"dark",import:()=>w(()=>import("./kanagawa-wave-DWedfzmr.js"),[])},{id:"laserwave",displayName:"LaserWave",type:"dark",import:()=>w(()=>import("./laserwave-DUszq2jm.js"),[])},{id:"light-plus",displayName:"Light Plus",type:"light",import:()=>w(()=>import("./light-plus-B7mTdjB0.js"),[])},{id:"material-theme",displayName:"Material Theme",type:"dark",import:()=>w(()=>import("./material-theme-D5KoaKCx.js"),[])},{id:"material-theme-darker",displayName:"Material Theme Darker",type:"dark",import:()=>w(()=>import("./material-theme-darker-BfHTSMKl.js"),[])},{id:"material-theme-lighter",displayName:"Material Theme Lighter",type:"light",import:()=>w(()=>import("./material-theme-lighter-B0m2ddpp.js"),[])},{id:"material-theme-ocean",displayName:"Material Theme Ocean",type:"dark",import:()=>w(()=>import("./material-theme-ocean-CyktbL80.js"),[])},{id:"material-theme-palenight",displayName:"Material Theme Palenight",type:"dark",import:()=>w(()=>import("./material-theme-palenight-Csfq5Kiy.js"),[])},{id:"min-dark",displayName:"Min Dark",type:"dark",import:()=>w(()=>import("./min-dark-CafNBF8u.js"),[])},{id:"min-light",displayName:"Min Light",type:"light",import:()=>w(()=>import("./min-light-CTRr51gU.js"),[])},{id:"monokai",displayName:"Monokai",type:"dark",import:()=>w(()=>import("./monokai-D4h5O-jR.js"),[])},{id:"night-owl",displayName:"Night Owl",type:"dark",import:()=>w(()=>import("./night-owl-C39BiMTA.js"),[])},{id:"nord",displayName:"Nord",type:"dark",import:()=>w(()=>import("./nord-Ddv68eIx.js"),[])},{id:"one-dark-pro",displayName:"One Dark Pro",type:"dark",import:()=>w(()=>import("./one-dark-pro-GBQ2dnAY.js"),[])},{id:"one-light",displayName:"One Light",type:"light",import:()=>w(()=>import("./one-light-PoHY5YXO.js"),[])},{id:"plastic",displayName:"Plastic",type:"dark",import:()=>w(()=>import("./plastic-3e1v2bzS.js"),[])},{id:"poimandres",displayName:"Poimandres",type:"dark",import:()=>w(()=>import("./poimandres-CS3Unz2-.js"),[])},{id:"red",displayName:"Red",type:"dark",import:()=>w(()=>import("./red-bN70gL4F.js"),[])},{id:"rose-pine",displayName:"Rosé Pine",type:"dark",import:()=>w(()=>import("./rose-pine-CmCqftbK.js"),[])},{id:"rose-pine-dawn",displayName:"Rosé Pine Dawn",type:"light",import:()=>w(()=>import("./rose-pine-dawn-Ds-gbosJ.js"),[])},{id:"rose-pine-moon",displayName:"Rosé Pine Moon",type:"dark",import:()=>w(()=>import("./rose-pine-moon-CjDtw9vr.js"),[])},{id:"slack-dark",displayName:"Slack Dark",type:"dark",import:()=>w(()=>import("./slack-dark-BthQWCQV.js"),[])},{id:"slack-ochin",displayName:"Slack Ochin",type:"light",import:()=>w(()=>import("./slack-ochin-DqwNpetd.js"),[])},{id:"snazzy-light",displayName:"Snazzy Light",type:"light",import:()=>w(()=>import("./snazzy-light-Bw305WKR.js"),[])},{id:"solarized-dark",displayName:"Solarized Dark",type:"dark",import:()=>w(()=>import("./solarized-dark-DXbdFlpD.js"),[])},{id:"solarized-light",displayName:"Solarized Light",type:"light",import:()=>w(()=>import("./solarized-light-L9t79GZl.js"),[])},{id:"synthwave-84",displayName:"Synthwave '84",type:"dark",import:()=>w(()=>import("./synthwave-84-CbfX1IO0.js"),[])},{id:"tokyo-night",displayName:"Tokyo Night",type:"dark",import:()=>w(()=>import("./tokyo-night-DBQeEorK.js"),[])},{id:"vesper",displayName:"Vesper",type:"dark",import:()=>w(()=>import("./vesper-BEBZ7ncR.js"),[])},{id:"vitesse-black",displayName:"Vitesse Black",type:"dark",import:()=>w(()=>import("./vitesse-black-Bkuqu6BP.js"),[])},{id:"vitesse-dark",displayName:"Vitesse Dark",type:"dark",import:()=>w(()=>import("./vitesse-dark-D0r3Knsf.js"),[])},{id:"vitesse-light",displayName:"Vitesse Light",type:"light",import:()=>w(()=>import("./vitesse-light-CVO1_9PV.js"),[])}],QQ=Object.fromEntries(XQ.map(e=>[e.id,e.import])),JQ=CQ({langs:qQ,themes:QQ,engine:()=>xx(w(()=>import("./wasm-CG6Dc4jp.js"),[]))}),{codeToHtml:eJ}=RQ(JQ),tJ=({children:e})=>N.jsx("div",{children:N.jsx("pre",{children:N.jsx("code",{children:e.split(`
285
+ `).map((t,n)=>N.jsx("span",{className:"line block w-full",children:t},n))})})}),nJ=({children:e,lang:t,isDarkMode:n,onChange:r,...u})=>{const[o,l]=y.useState(null),c=y.useMemo(()=>({lang:t,theme:n?"github-dark":"github-light",transformers:[PQ(),UQ(),KQ(),HQ(),FQ(),LQ()]}),[t,n]);return y.useEffect(()=>{eJ(e,c).then(f=>l(f)).catch(f=>console.error(f))},[c,e]),o?N.jsx("div",{dangerouslySetInnerHTML:{__html:o},...u,style:{backgroundColor:"transparent"}}):N.jsx(tJ,{children:e})},rJ=({className:e,onChange:t,isEditable:n,...r})=>N.jsx(nJ,{className:Re("flex w-full",e),contentEditable:n,onInput:u=>t==null?void 0:t(u.currentTarget.textContent??""),...r}),_B=y.createContext({packageManager:"npm",setPackageManager:()=>{},codeFormat:"typescript",setCodeFormat:()=>{},contentDeclarationFormat:"typescript",setContentDeclarationFormat:()=>{}}),Zh=()=>y.useContext(_B),iJ=({children:e})=>{const[t,n]=rc("packageManager","npm"),[r,u]=rc("codeFormat","typescript"),[o,l]=rc("contentDeclarationFormat","typescript");return N.jsx(_B,{value:{packageManager:t,setPackageManager:n,codeFormat:r,setCodeFormat:u,contentDeclarationFormat:o,setContentDeclarationFormat:l},children:e})},uJ=({children:e,...t})=>{const{packageManager:n,codeFormat:r,contentDeclarationFormat:u}=Zh(),o=typeof t.packageManager>"u",l=n===t.packageManager,c=typeof t.codeFormat>"u",f=r===t.codeFormat,h=typeof t.contentDeclarationFormat>"u",m=u===t.contentDeclarationFormat;return(o||l)&&(c||f)&&(h||m)?e:N.jsx(N.Fragment,{})},aJ=()=>{const{codeFormat:e,setCodeFormat:t,setContentDeclarationFormat:n}=Zh();return N.jsxs(Me,{value:e,onValueChange:r=>{t(r),n(r)},children:[N.jsx(Me.Trigger,{children:N.jsx(Me.Value,{placeholder:"Code Format"})}),N.jsxs(Me.Content,{children:[N.jsx(Me.Item,{value:"typescript",children:"TypeScript"}),N.jsx(Me.Item,{value:"esm",children:"ESM"}),N.jsx(Me.Item,{value:"commonjs",children:"CommonJS"})]})]})},sJ=()=>{const{contentDeclarationFormat:e,setContentDeclarationFormat:t}=Zh();return N.jsxs(Me,{value:e,onValueChange:t,children:[N.jsx(Me.Trigger,{children:N.jsx(Me.Value,{placeholder:"Dictionary Format"})}),N.jsxs(Me.Content,{children:[N.jsx(Me.Item,{value:"typescript",children:"TypeScript"}),N.jsx(Me.Item,{value:"commonjs",children:"CommonJS"}),N.jsx(Me.Item,{value:"esm",children:"ESM"}),N.jsx(Me.Item,{value:"json",children:"JSON"})]})]})},oJ={key:"copy-button",content:{label:_e({en:"Copy content",fr:"Copier le contenu",es:"Copiar contenido","en-GB":"Copy content",de:"Inhalt kopieren",ja:"コンテンツをコピー",ko:"콘텐츠 복사",zh:"复制内容",it:"Copia contenuto",pt:"Copiar conteúdo",hi:"सामग्री कॉपी करें",ar:"نسخ المحتوى",ru:"Копировать содержимое"})}},SB=({content:e})=>{const[t,n]=y.useState(!1),{label:r}=sn(oJ),u=async()=>{try{await navigator.clipboard.writeText(e),n(!0)}catch(o){console.error("Failed to copy text: ",o)}};return y.useEffect(()=>{const o=setTimeout(()=>{n(!1)},1e3);return()=>clearTimeout(o)},[t]),N.jsx(Et,{Icon:t?aP:oP,onClick:u,variant:"hoverable",color:"text",label:r.value,size:"icon-sm"})},lJ=()=>{const{packageManager:e,setPackageManager:t}=Zh();return N.jsxs(Me,{value:e,onValueChange:t,children:[N.jsx(Me.Trigger,{children:N.jsx(Me.Value,{placeholder:"Package Manager"})}),N.jsxs(Me.Content,{children:[N.jsx(Me.Item,{value:"npm",children:"npm"}),N.jsx(Me.Item,{value:"pnpm",children:"pnpm"}),N.jsx(Me.Item,{value:"yarn",children:"yarn"})]})]})},cJ=({children:e,language:t,isDarkMode:n,showHeader:r=!0,showLineNumbers:u=!0,className:o,fileName:l,packageManager:c,codeFormat:f,contentDeclarationFormat:h,...m})=>{const E=e.endsWith(`
286
+ `)?e.slice(0,-1):e,g=c||f||h;return N.jsx(uJ,{packageManager:c,codeFormat:f,contentDeclarationFormat:h,children:N.jsxs(ai,{className:Re("relative text-sm leading-6",u&&"with-line-number ml-0",o),transparency:"lg",...m,children:[r&&N.jsxs(N.Fragment,{children:[N.jsxs("div",{className:"bg-card/50 text-neutral grid w-full grid-cols-[1fr_auto] items-center justify-between rounded-t-xl py-1.5 pl-4 pr-12 text-xs",children:[N.jsx("span",{className:"truncate",children:l??t}),N.jsxs("div",{className:"flex items-center gap-2",children:[c&&N.jsx(lJ,{}),f&&N.jsx(aJ,{}),h&&N.jsx(sJ,{})]})]}),N.jsx("div",{className:"sticky top-28",children:N.jsx("div",{className:Re("absolute bottom-0 right-2 flex h-7 items-center",g&&"h-11"),children:N.jsx(SB,{content:E})})})]}),N.jsx("div",{className:"grid size-full grid-cols-[0px] overflow-auto p-3",children:N.jsx(rJ,{lang:t,isDarkMode:n,children:E})})]})})},dJ=Ir("gap-3 font-medium transition focus-visible:outline-hidden disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"h-auto justify-start border-inherit bg-current/0 px-1 underline-offset-4 hover:bg-current/0 hover:underline","invisible-link":"h-auto justify-start border-inherit bg-current/0 px-1 underline-offset-4 hover:bg-current/0",button:"rounded-lg bg-current *:text-text-opposite min-h-8 px-6 max-md:py-2 text-sm flex items-center justify-center gap-2 whitespace-nowrap font-medium transition focus-visible:outline-hidden disabled:pointer-events-none disabled:opacity-50","button-outlined":"rounded-lg border-[1.5px] hover:bg-current/30 min-h-8 px-6 max-md:py-2 text-sm flex items-center justify-center gap-2 whitespace-nowrap font-medium transition focus-visible:outline-hidden disabled:pointer-events-none disabled:opacity-50",hoverable:"block rounded-lg border-none bg-current/0 transition hover:bg-current/10 aria-[current]:bg-current/5"},color:{primary:"text-primary",secondary:"text-secondary",destructive:"text-destructive",neutral:"text-neutral",light:"text-white",dark:"text-neutral-800",text:"text-text","text-inverse":"text-text-opposite",error:"text-error",success:"text-success",custom:""},underlined:{default:"",true:"underline",false:"no-underline"}},defaultVariants:{variant:"default",color:"primary",underlined:"default"}}),fJ=({href:e,isExternalLink:t})=>{const n=typeof e=="string"&&e.trim()!=="";return t===!0||typeof t>"u"&&n&&/^https?:\/\//.test(e)},M_=e=>{const{variant:t="default",color:n="primary",children:r,label:u,className:o,isActive:l,underlined:c,locale:f,isExternalLink:h,href:m,...E}=e,{internationalization:g}=Qe,_=fJ(e),S=typeof r=="string",C=_?"noopener noreferrer nofollow":void 0,v=_?"_blank":"_self",R=f?f===g.defaultLocale?"x-default":f:void 0,D=f&&m&&!_?Qw(m,f):m;return N.jsxs("a",{href:D,hrefLang:R,"aria-label":u,rel:C,target:v,"aria-current":l?"page":void 0,className:Re(dJ({variant:t,color:n,underlined:c,className:o})),...E,children:[t==="button"?N.jsx("span",{children:r}):r,_&&S&&N.jsx(fP,{className:"ml-2 inline-block size-4"})]})},hJ=({children:e,isDarkMode:t,locale:n,options:r})=>{const{overrides:u,...o}=r??{};return N.jsx(iJ,{children:N.jsx(IW,{options:{overrides:{h1:l=>N.jsx(oY,{isClickable:!0,...l}),h2:l=>N.jsx(lY,{isClickable:!0,...l}),h3:l=>N.jsx(N_,{isClickable:!0,...l}),h4:l=>N.jsx(cY,{isClickable:!0,...l}),code:l=>{var c;return typeof l.className>"u"?N.jsx("strong",{className:"bg-card/60 rounded p-1 shadow-[0_0_10px_-15px_rgba(0,0,0,0.3)] backdrop-blur",children:l.children}):N.jsx(cJ,{isDarkMode:t,language:(c=l.className)==null?void 0:c.replace("lang-",""),...l})},blockquote:({className:l,...c})=>N.jsx("blockquote",{className:Re("border-card text-neutral mt-5 flex flex-col gap-3 border-l-4 pl-5",l),...c}),ul:({className:l,...c})=>N.jsx("ul",{className:Re("mt-5 flex flex-col gap-3 pl-5",l),...c}),ol:({className:l,...c})=>N.jsx("ol",{className:Re("mt-5 flex flex-col gap-3 pl-5",l),...c}),li:({className:l,...c})=>N.jsx("li",{className:Re("list-disc",l),...c}),img:({className:l,...c})=>N.jsx("img",{...c,loading:"lazy",className:Re("max-w-full rounded-md",l),src:`${c.src}?raw=true`}),a:l=>{var c;return N.jsx(M_,{color:"neutral",isExternalLink:(c=l.href)==null?void 0:c.startsWith("http"),underlined:!0,locale:n,...l})},pre:l=>l.children,table:({className:l,...c})=>N.jsx("div",{className:"grid w-full max-w-full overflow-scroll rounded",children:N.jsx("table",{className:Re("max-w-full table-auto overflow-hidden text-left",l),...c})}),th:({className:l,...c})=>N.jsx("th",{className:Re("border-neutral bg-neutral/10 border-b p-4",l),...c}),tr:({className:l,...c})=>N.jsx("tr",{className:Re("hover:bg-neutral/10 hover:/10",l),...c}),td:({className:l,...c})=>N.jsx("td",{className:Re("border-b border-neutral-500/50 p-4",l),...c}),...u},wrapper:({className:l,...c})=>N.jsxs(N.Fragment,{children:[N.jsx(CW,{}),N.jsx("div",{className:Re("flex flex-col gap-6 p-10",l),...c})]}),...o},children:e??""})})},AJ=e=>{let t,n;if(typeof e=="number"||!isNaN(Number(e)))t="=",n=e.toString();else if(typeof e=="string"){const u=["<=",">=","<",">","="].find(o=>e.startsWith(o));u&&(t=u,n=e.slice(u.length))}return{comparator:t,numberValue:n}},mJ=({value:e,onChange:t})=>{const{comparator:n,numberValue:r}=y.useMemo(()=>AJ(e),[e]),[u,o]=y.useState(n??null),[l,c]=y.useState(r??null);return y.useEffect(()=>{if(u&&l&&(u!==n||l!==r)){const f=`${u}${l}`;t(f)}},[u,n,r,l,t]),N.jsxs("div",{className:"flex gap-1",children:[N.jsxs(Me,{onValueChange:o,defaultValue:n,children:[N.jsx(Me.Trigger,{className:"w-20",children:N.jsx(Me.Value,{placeholder:"Select a comparator"})}),N.jsxs(Me.Content,{children:[N.jsx(Me.Item,{value:"<",children:"<"}),N.jsx(Me.Item,{value:"<=",children:"<="}),N.jsx(Me.Item,{value:"=",children:"="}),N.jsx(Me.Item,{value:">=",children:">="}),N.jsx(Me.Item,{value:">",children:">"})]})]}),N.jsx(go,{type:"number","aria-label":"Quantity",defaultValue:l??void 0,onChange:f=>c(f.target.value),className:"min-w-4"})]})},Wh={key:"navigation-view",content:{tsxNotEditable:_e({en:"React node is not editable","en-GB":"React node is not editable",fr:"Node React non éditable",es:"Nodo React no editable",de:"React-Knoten ist nicht bearbeitbar",ja:"編集できないReactノードです",ko:"편집할 수 없는 React 노드입니다",zh:"不可编辑的 React 节点",it:"Node React non modificabile",pt:"Nó React não editável",hi:"सम्पादित न करने योग्य React नोड",ar:"عقدة React غير قابلة للتحرير",ru:"React-узел не редактируемый"}),goToField:{label:_e({en:"Go to field","en-GB":"Go to field",fr:"Aller au champ",es:"Ir al campo",de:"Zum Feld gehen",ja:"フィールドに移動",ko:"필드로 이동",zh:"转到字段",it:"Vai al campo",pt:"Ir para o campo",hi:"फ़ील्ड पर जाएं",ar:"اذهب إلى الحقل",ru:"Перейти к полю"})},addNewElement:{label:_e({en:"Click to add element","en-GB":"Click to add element",fr:"Cliquez pour ajouter un élément",es:"Haga clic para agregar un elemento",de:"Klicken Sie, um ein Element hinzuzufügen",ja:"要素を追加するにはクリック",ko:"요소를 추가하려면 클릭하세요",zh:"点击添加元素",it:"Clicca per aggiungere un elemento",pt:"Clique para adicionar um elemento",hi:"तत्व जोड़ने के लिए क्लिक करें",ar:"انقر لإضافة عنصر",ru:"Нажмите, чтобы добавить элемент"}),text:_e({en:"Add new element","en-GB":"Add new element",fr:"Ajouter un nouvel élément",es:"Agregar nuevo elemento",de:"Neues Element hinzufügen",ja:"新しい要素を追加",ko:"새 요소 추가",zh:"添加新元素",it:"Aggiungi nuovo elemento",pt:"Adicionar novo elemento",hi:"नया तत्व जोड़ें",ar:"أضف عنصرًا جديدًا",ru:"Добавить новый элемент"})},removeElement:{label:_e({en:"Click to remove element","en-GB":"Click to remove element",fr:"Cliquez pour supprimer un élément",es:"Haga clic para eliminar un elemento",de:"Klicken Sie, um ein Element zu entfernen",ja:"要素を削除するにはクリック",ko:"요소를 제거하려면 클릭하세요",zh:"点击删除元素",it:"Clicca per rimuovere un elemento",pt:"Clique para remover um elemento",hi:"तत्व निकालने के लिए क्लिक करें",ar:"انقر لإزالة عنصر",ru:"Нажмите, чтобы удалить элемент"}),text:_e({en:"Remove element","en-GB":"Remove element",fr:"Supprimer l’élément",es:"Eliminar elemento",de:"Element entfernen",ja:"要素を削除",ko:"요소 제거",zh:"删除元素",it:"Rimuovi elemento",pt:"Remover elemento",hi:"तत्व निकालें",ar:"إزالة عنصر",ru:"Удалить элемент"})},addNewEnumeration:{label:_e({en:"Click to add enumeration","en-GB":"Click to add enumeration",fr:"Cliquez pour ajouter une énumération",es:"Haga clic para agregar una enumeración",de:"Klicken Sie, um eine Aufzählung hinzuzufügen",ja:"列挙を追加するにはクリック",ko:"열거를 추가하려면 클릭하세요",zh:"点击添加枚举",it:"Clicca per aggiungere un enumerazione",pt:"Clique para adicionar uma enumeração",hi:"सूची जोड़ने के लिए क्लिक करें",ar:"انقر لإضافة تعداد",ru:"Нажмите, чтобы добавить перечисление"}),text:_e({en:"Add new enumeration","en-GB":"Add new enumeration",fr:"Ajouter une nouvelle énumération",es:"Agregar nueva enumeración",de:"Neue Aufzählung hinzufügen",ja:"新しい列挙を追加",ko:"새 목록 추가",zh:"添加新枚举",it:"Aggiungi nuova enumerazione",pt:"Adicionar nova enumeração",hi:"नया सूची जोड़ें",ar:"أضف تعدادًا جديدًا",ru:"Добавить новое перечисление"})},removeEnumeration:{label:_e({en:"Click to remove enumeration","en-GB":"Click to remove enumeration",fr:"Cliquez pour supprimer une énumération",es:"Haga clic para eliminar una enumeración",de:"Klicken Sie, um eine Aufzählung zu entfernen",ja:"列挙を削除するにはクリック",ko:"목록을 제거하려면 클릭하세요",zh:"点击删除枚举",it:"Clicca per rimuovere un'enumerazione",pt:"Clique para remover uma enumeração",hi:"सूची निकालने के लिए क्लिक करें",ar:"انقر لإزالة تعداد",ru:"Нажмите, чтобы удалить перечисление"}),text:_e({en:"Remove enumeration","en-GB":"Remove enumeration",fr:"Supprimer l’énumération",es:"Eliminar enumeración",de:"Aufzählung entfernen",ja:"列挙を削除",ko:"목록 제거",zh:"删除枚举",it:"Rimuovi enumerazione",pt:"Remover enumeração",hi:"सूची निकालें",ar:"إزالة تعداد",ru:"Удалить перечисление"})},addNewCondition:{label:_e({en:"Click to add condition","en-GB":"Click to add condition",fr:"Cliquez pour ajouter une condition",es:"Haga clic para agregar una condición",de:"Klicken Sie, um eine Bedingung hinzuzufügen",ja:"条件を追加するにはクリック",ko:"조건을 추가하려면 클릭하세요",zh:"点击添加条件",it:"Clicca per aggiungere una condizione",pt:"Clique para adicionar uma condição",hi:"शर्ते जोड़ने के लिए क्लिक करें",ar:"انقر لإضافة شرط",ru:"Нажмите, чтобы добавить условие"}),text:_e({en:"Add new condition","en-GB":"Add new condition",fr:"Ajouter une nouvelle condition",es:"Agregar nueva condición",de:"Neue Bedingung hinzufügen",ja:"新しい条件を追加",ko:"새 조건 추가",zh:"添加新条件",it:"Aggiungi nuova condizione",pt:"Adicionar nova condição",hi:"नया शर्ते जोड़ें",ar:"أضف شرطًا جديدًا",ru:"Добавить новое условие"})}}},pJ=({keyPath:e,dictionary:t,...n})=>{const{editedContent:r,addEditedContent:u}=Fn(),o=ii(),{auditContentDeclarationField:l,isLoading:c}=vU();return N.jsx(EZ,{variant:"default",onContentChange:f=>u(t.key,f,e),additionalButtons:N.jsx(Et,{Icon:H9,label:"Audit",variant:"hoverable",size:"icon-sm",color:"text",className:"cursor-pointer hover:scale-110",isLoading:c,onClick:()=>{l({fileContent:JSON.stringify({...t,...(r==null?void 0:r[t.key])??{}}),keyPath:e,locales:o.internationalization.locales??[],openAiApiKey:o.editor.openAiApiKey,model:o.editor.openAiApiModel,temperature:o.editor.openAiApiTemperature}).then(f=>{if(f!=null&&f.data)try{const h=f.data.fileContent;u(t.key,h,e)}catch(h){console.error(h)}})}}),...n})},EJ=({keyPath:e,dictionary:t,...n})=>{const{addEditedContent:r}=Fn();return N.jsx(vg,{variant:"default",onContentChange:u=>r(t.key,u,e),...n})},gJ=[{content:"False",value:!1},{content:"True",value:!0}],_J=({dictionary:e,keyPath:t,...n})=>{const{addEditedContent:r}=Fn();return N.jsx(ed,{choices:gJ,value:!0,onChange:u=>r(e.key,u,t),color:"text",size:"sm",...n})},SJ=({section:e,keyPath:t,dictionary:n,renderSection:r})=>{const{locale:u,defaultLocale:o}=e4(),{selectedLocales:l,availableLocales:c}=fx(),f=e[$.Translation],h=Object.keys(f),E=c.length>l.length?l:[...new Set([...c,...h])],g=e[$.Translation];return N.jsx("table",{className:"w-full",children:N.jsx("tbody",{className:"flex w-full flex-col gap-2",children:E.map(_=>N.jsxs(y.Fragment,{children:[N.jsx("tr",{className:"mt-2 w-full p-2 text-xs",children:X0(_,u)}),N.jsx("tr",{children:N.jsx($a,{section:g[_]??_r(g[o]),keyPath:[...t,{type:$.Translation,key:_}],dictionary:n,renderSection:r})})]},_))})})},NJ=({section:e,keyPath:t,dictionary:n,renderSection:r})=>{const{addEditedContent:u}=Fn(),{addNewEnumeration:o,removeEnumeration:l}=sn(Wh),c=e[$.Enumeration],f=Object.keys(c)[0];return N.jsxs("div",{className:"flex flex-col gap-2",children:[N.jsx("table",{className:"w-full",children:N.jsx("tbody",{className:"flex w-full flex-col gap-2",children:Object.keys(e[$.Enumeration]).map(h=>{const m=[...t,{type:$.Enumeration}];return N.jsxs(y.Fragment,{children:[N.jsx("tr",{className:"mt-2 w-full",children:N.jsx("div",{className:"flex flex-1",children:N.jsx(Et,{label:l.label.value,variant:"hoverable",color:"text",Icon:o4,className:"ml-auto",onClick:()=>u(n.key,void 0,m),children:l.text})})}),N.jsx("tr",{className:"w-full p-2",children:N.jsx(mJ,{value:h,onChange:E=>{const g=e[$.Enumeration],_=hZ(g,h,E),S={...e,[$.Enumeration]:_};u(n.key,S,t)}})}),N.jsx("tr",{className:"block w-full",children:N.jsx(P_,{section:c[h]??_r(c[f]),keyPath:m,dictionary:n,renderSection:r})})]},h)})})}),N.jsx(Et,{label:o.label.value,variant:"hoverable",color:"neutral",textAlign:"left",isFullWidth:!0,onClick:()=>u(n.key,_r(c[f])??"",[...t,{type:$.Enumeration,key:"unknown"}]),Icon:mh,className:"m-2",children:o.text})]})},IJ=({section:e,keyPath:t,dictionary:n,renderSection:r})=>{const u=e[$.Condition];return N.jsx("table",{className:"w-full",children:N.jsx("tbody",{className:"flex w-full flex-col gap-2",children:["true","false","fallback"].map(o=>N.jsxs(y.Fragment,{children:[N.jsx("tr",{className:"mt-2 block w-full p-2 text-xs",children:String(o)},o),N.jsx("tr",{className:"block w-full",children:N.jsx($a,{section:u[o]??_r(u.true),keyPath:[...t,{type:$.Condition,key:o}],dictionary:n,renderSection:r})},o)]},o))})})},yJ=({section:e,keyPath:t,dictionary:n,renderSection:r})=>{const{addEditedContent:u}=Fn(),{addNewElement:o,removeElement:l}=sn(Wh);return N.jsxs("div",{className:"flex flex-col gap-2",children:[N.jsx("table",{className:"w-full",children:N.jsx("tbody",{className:"flex w-full flex-col gap-2",children:e.map((c,f)=>N.jsxs(y.Fragment,{children:[N.jsxs("tr",{className:"mt-2 flex w-full justify-between gap-2 p-2",children:[N.jsx("span",{className:"text-xs",children:String(f)}),N.jsx(Et,{label:l.label.value,variant:"hoverable",color:"neutral",className:"ml-auto",textAlign:"left",onClick:()=>{const h=[...t,{type:$.Array,key:e.length}];u(n.key,void 0,h)},Icon:o4,children:l.text})]}),N.jsx("tr",{className:"block w-full",children:N.jsx($a,{section:c??_r(e[0]),keyPath:[...t,{type:$.Array,key:f}],dictionary:n,renderSection:r})})]},JSON.stringify(c)))})}),N.jsx(Et,{label:o.label.value,variant:"hoverable",color:"neutral",textAlign:"left",isFullWidth:!0,onClick:()=>{const c=[...t,{type:$.Array,key:e.length}];u(n.key,_r(e[0])??"",c,!1)},Icon:mh,children:o.text})]})},CJ=({section:e,keyPath:t,dictionary:n,renderSection:r})=>N.jsx(N.Fragment,{children:N.jsx("table",{className:"w-full",children:N.jsx("tbody",{className:"flex flex-col gap-2",children:Object.keys(e).map(u=>{const o=[...t,{type:$.Object,key:u}],l=e,c=Object.keys(l)[0],f=l[u]??_r(l[c]);return N.jsxs(y.Fragment,{children:[N.jsx("tr",{className:"mt-2 p-2 text-xs",children:String(u)},JSON.stringify(f)),N.jsx("tr",{className:"block w-full",children:N.jsx(P_,{section:f,keyPath:o,dictionary:n,renderSection:r})},JSON.stringify(f))]},u)})})})}),vJ=({section:e,keyPath:t,dictionary:n,isDarkMode:r,onContentChange:u})=>{const[o,l]=y.useState(0),c=[{content:"Edit",value:0},{content:"Preview",value:1}],f=[...t,{type:$.Markdown}],h=e[$.Markdown];return N.jsxs("div",{className:"flex w-full flex-col justify-center gap-6 p-2",children:[N.jsx(ed,{choices:c,value:o,onChange:l,color:"text",size:"sm",className:"ml-auto"}),N.jsx($a,{section:h,keyPath:f,dictionary:n,renderSection:o===1?m=>N.jsx(hJ,{isDarkMode:r,children:m}):void 0,onContentChange:u})]})},RJ=({section:e,keyPath:t,...n})=>{const r=[...t,{type:$.Insertion}],u=e[$.Insertion];return N.jsx("div",{className:"flex w-full flex-col justify-center gap-6 p-2",children:N.jsx($a,{section:u,keyPath:r,...n})})},DJ=({section:e,keyPath:t,...n})=>{const r=[...t,{type:$.File}],u=e[$.File],{content:o}=e;return N.jsxs("div",{className:"flex w-full flex-col justify-center gap-6 p-2",children:[N.jsxs("span",{className:"text-neutral text-sm",children:[u," "]}),N.jsx($a,{section:o,keyPath:r,...n})]})},TJ=({keyPath:e,dictionary:t,renderSection:n,section:r,...u})=>{const{addEditedContent:o}=Fn(),l=r[$.Nested],c=[...e,{type:$.Nested}];return N.jsxs("div",{className:"w-full p-2",children:[N.jsx(KE,{children:"Dictionary key"}),N.jsx(vg,{"aria-label":"Edit field",type:"text",variant:"default",...u,onContentChange:f=>{o(t.key,{...l,dictionaryKey:String(f)},c)},children:l.dictionaryKey??""}),N.jsx(KE,{children:"Path (optional)"}),N.jsx(vg,{"aria-label":"Edit field",type:"text",variant:"default",...u,onContentChange:f=>{o(t.key,{...l,path:f!==""?f:void 0},c)},children:l.path??""})]})},P_=({section:e,keyPath:t,dictionary:n,renderSection:r,isDarkMode:u})=>{const{tsxNotEditable:o}=sn(Wh),l=co(e);return l===$.ReactNode?N.jsxs(N.Fragment,{children:[N.jsx("span",{children:"[React Node]"}),N.jsx("span",{className:"text-neutral text-xs",children:o})]}):l===$.Nested?N.jsx(TJ,{dictionary:n,renderSection:r,keyPath:t,section:e}):l===$.Translation?N.jsx(SJ,{dictionary:n,renderSection:r,keyPath:t,section:e}):l===$.Enumeration?N.jsx(NJ,{dictionary:n,renderSection:r,keyPath:t,section:e}):l===$.Condition?N.jsx(IJ,{dictionary:n,renderSection:r,keyPath:t,section:e}):l===$.Insertion?N.jsx(RJ,{dictionary:n,renderSection:r,keyPath:t,section:e}):l===$.Markdown?N.jsx(vJ,{dictionary:n,keyPath:t,section:e,isDarkMode:u}):l===$.File?N.jsx(DJ,{dictionary:n,renderSection:r,keyPath:t,section:e}):l===$.Array?N.jsx(yJ,{dictionary:n,renderSection:r,keyPath:t,section:e}):l===$.Object?N.jsx(CJ,{dictionary:n,renderSection:r,keyPath:t,section:e}):l===$.Number?N.jsx("div",{className:"w-full p-2",children:N.jsx(EJ,{dictionary:n,keyPath:t,type:"number","aria-label":"Edit field",children:e})}):l===$.Text?N.jsx("div",{className:"w-full p-2",children:typeof r=="function"?r(e):N.jsx(pJ,{variant:"default","aria-label":"Edit field",keyPath:t,dictionary:n,children:e})}):l===$.Boolean?N.jsx("div",{className:"w-full p-2",children:N.jsx(_J,{dictionary:n,keyPath:t,value:e})}):N.jsxs("div",{className:"w-full p-2",children:["Error. Format not supported.",JSON.stringify(e,null,2),JSON.stringify(t,null,2),"NodeType : ",l]})},$a=e=>N.jsx(ai,{border:!0,background:"none",className:"top-6 flex h-full flex-1 flex-col gap-6 overflow-hidden p-2 md:sticky",roundedSize:"xl",children:N.jsx(P_,{...e})}),wc=e=>{const t=WR(e),n=co(e);return t&&(n===$.ReactNode||n===$.File)?!0:t&&typeof t.nodeType=="string"?wc(t[t.nodeType]):typeof t=="string"||typeof t=="number"||typeof t=="boolean"||typeof t>"u"},NB={key:"breadcrumb",content:{linkLabel:_e({en:"Go to",fr:"Aller à",es:"Ir a","en-GB":"Go to",de:"Gehe zu",ja:"に移動",ko:"로 이동",zh:"转到",it:"Vai a",pt:"Ir para",hi:"कर जाएं",ar:"اذهب إلى",ru:"Перейти на"})}},bJ=({href:e,lang:t,children:n,onClick:r,color:u,position:o,locale:l,...c})=>{const{linkLabel:f}=sn(NB);return N.jsxs(N.Fragment,{children:[N.jsx(M_,{href:e,locale:l,color:u,onClick:r,itemProp:"item",itemScope:!0,itemType:"https://schema.org/WebPage",...c,label:`${f} ${n}`,itemID:e,children:N.jsx("span",{itemProp:"name",children:n})}),N.jsx("meta",{itemProp:"position",content:o.toString()})]})},xJ=({children:e,onClick:t,color:n,position:r,...u})=>{const{linkLabel:o}=sn(NB);return N.jsxs(N.Fragment,{children:[N.jsx(Et,{onClick:t,variant:"link",label:`${o} ${e}`,color:n,itemProp:"item",...u,children:N.jsx("span",{itemProp:"name",children:e})}),N.jsx("meta",{itemProp:"position",content:r.toString()})]})},BJ=({children:e,position:t,...n})=>N.jsxs("span",{itemProp:"item",children:[N.jsx("span",{itemProp:"name",...n,children:e}),N.jsx("meta",{itemProp:"position",content:t.toString()})]}),FJ=({links:e,className:t,color:n="text",locale:r,elementType:u="page",...o})=>N.jsx("nav",{"aria-label":"breadcrumb",children:N.jsx("ol",{className:Re("flex flex-row flex-wrap items-center gap-2 text-sm",t),itemScope:!0,itemType:"http://schema.org/BreadcrumbList",...o,children:e.map((l,c)=>{const f=c===e.length-1,h=typeof l=="object"&&typeof l.href=="string",m=typeof l=="object"&&typeof l.onClick=="function",g=c===e.length-1?u:void 0,_=l.text??l;let S=N.jsx(BJ,{position:c+1,"aria-current":g,children:_},_);h?S=N.jsx(bJ,{href:l.href,color:n,position:c+1,locale:r,"aria-current":g,children:_},_):m&&(S=N.jsx(xJ,{onClick:l.onClick,color:n,position:c+1,"aria-current":g,children:_},_));const C=N.jsx("li",{itemProp:"itemListElement",itemScope:!0,itemType:"https://schema.org/ListItem",children:S},_);return f?C:N.jsxs(y.Fragment,{children:[C,N.jsx(LE,{size:10})]},_)})})}),OJ=({keyPath:e,dictionaryKey:t,onClickKeyPath:n,locale:r})=>{const u=[{text:t,onClick:()=>n([])},...e.map((o,l)=>{var c;return{onClick:()=>n(e.slice(0,l+1)),text:((c=o.key)==null?void 0:c.toString())??""}})];return N.jsx(FJ,{links:u,locale:r,elementType:"location"})},hf=e=>String(e).replace(/([A-Z])/g," $1").toLowerCase().trim(),Hs=({section:e,keyPath:t,dictionaryKey:n})=>{const{locales:r}=Qe==null?void 0:Qe.internationalization,u=Fi(e,t),{addEditedContent:o}=fo(),{setFocusedContentKeyPath:l,focusedContent:c}=Ou(),{addNewElement:f,goToField:h}=sn(Wh),m=co(u),E=_=>{var S;return(((S=c==null?void 0:c.keyPath)==null?void 0:S.length)??0)>0&&Gc(_,(c==null?void 0:c.keyPath)??[])},g=wc(u);if(!u)return N.jsx(N.Fragment,{});if(g)return N.jsx(Et,{label:h.label.value,variant:"hoverable",color:"text",className:"w-full",onClick:()=>l(t),IconRight:LE,children:hf(t[t.length-1].key)});if(typeof u=="object"){if(m===$.ReactNode)return N.jsx(N.Fragment,{children:"React Node"});if(m===$.Translation)return N.jsx("div",{className:"flex flex-col justify-between gap-2",children:r.map(S=>{const C=[...t,{type:$.Translation,key:S}];return N.jsx(Hs,{keyPath:C,section:e,dictionaryKey:n})})});if(m===$.Enumeration||m===$.Condition)return N.jsx("div",{className:"flex flex-col justify-between gap-2",children:Object.keys(u[m]).map(S=>{const C=[...t,{type:m,key:S}];return N.jsx(Hs,{keyPath:C,section:e,dictionaryKey:n})})});if(m===$.Array)return N.jsxs("div",{className:"flex flex-col justify-between gap-2",children:[u.map((S,C)=>{const v=[...t,{type:$.Array,key:C}];return N.jsx(Hs,{keyPath:v,section:e,dictionaryKey:n})}),N.jsx(Et,{label:f.label.value,variant:"hoverable",color:"neutral",textAlign:"left",onClick:()=>{const S=[...t,{type:$.Array,key:u.length}],C=u,v=_r(C[C.length-1])??"";o(n,v,S,!1),l(S)},Icon:mh,children:f.text})]});if(typeof u.nodeType=="string"){const S=[...t,{type:u.nodeType}];return N.jsx(Hs,{keyPath:S,section:e,dictionaryKey:n})}const _=Object.keys(u);return N.jsx("div",{className:"flex w-full max-w-full flex-col justify-between gap-2",children:_.map(S=>{const C=[...t,{type:$.Object,key:S}],v=Fi(e,C);return wc(v)?N.jsx(Et,{label:`${h.label.value} ${S}`,isActive:E(C),variant:"hoverable",color:"text",className:"w-full",onClick:()=>l(C),IconRight:LE,children:hf(S)},S):N.jsx(Jb,{label:`${h.label.value} ${S}`,isActive:E(C),onClick:()=>l(C),header:hf(S),children:N.jsx("div",{className:"mt-2 flex w-full max-w-full",children:N.jsx("div",{className:"flex-1 pl-10",children:N.jsx(Hs,{keyPath:C,section:e,dictionaryKey:n})})})},S)})})}return N.jsxs(N.Fragment,{children:["Error loading section --",m,"--",JSON.stringify(u),"--",JSON.stringify(t)]})},LJ=({dictionary:e,isDarkMode:t})=>{var g,_;const{content:n,key:r}=e,{editedContent:u}=Fn(),{focusedContent:o,setFocusedContentKeyPath:l}=Ou(),c=o==null?void 0:o.keyPath,f=typeof((g=u==null?void 0:u[e.key])==null?void 0:g.content)>"u"?n:(_=u==null?void 0:u[r])==null?void 0:_.content,h=Fi(f,c??[]),m=wc(f),E=wc(h);return y.useEffect(()=>{var S;typeof h>"u"&&l(((S=o==null?void 0:o.keyPath)==null?void 0:S.slice(0,-1))??[])},[]),N.jsxs("div",{children:[N.jsxs("div",{className:"mb-6 flex items-center justify-between gap-2",children:[N.jsx(OJ,{dictionaryKey:r,keyPath:c??[],onClickKeyPath:l}),N.jsx("div",{className:"flex items-center gap-2",children:N.jsx(fZ,{})})]}),N.jsxs("div",{className:"flex gap-2 max-md:flex-col",children:[typeof f=="object"&&f&&!m&&Object.keys(f).length>0&&N.jsx(ai,{border:!0,background:"none",className:"top-6 flex h-full flex-col items-start gap-0.5 overflow-auto p-2 md:sticky md:max-w-[50%]",roundedSize:"xl",transparency:"sm",children:N.jsx(Hs,{keyPath:[],section:f,dictionaryKey:r})}),(E||(c??[]).length>0)&&N.jsx($a,{keyPath:c??[],section:h,dictionary:e,isDarkMode:t})]})]})},wJ={key:"dictionary-details",content:{titleInput:{label:_e({en:"Title","en-GB":"Title",fr:"Titre",es:"Título",de:"Titel",ja:"タイトル",ko:"제목",zh:"标题",it:"Titolo",pt:"Título",hi:"शीर्षक",ar:"العنوان",ru:"Заголовок"}),description:_e({en:"The title of your dictionary allows you to easily identify it","en-GB":"The title of your dictionary allows you to easily identify it",fr:"Le titre de votre dictionnaire permet de l'identifier facilement",es:"El título de su diccionario le permite identificar fácilmente",de:"Der Titel Ihres Wörterbuchs ermöglicht es Ihnen, es leicht zu identifizieren",ja:"辞書のタイトルは、それを簡単に識別することができます",ko:"사전의 제목은 이를 쉽게 식별할 수 있게 해줍니다",zh:"字典的标题使您能够轻松识别它",it:"Il titolo del tuo dizionario ti consente di identificarlo facilmente",pt:"O título do seu dicionário permite que você o identifique facilmente",hi:"आपके शब्दकोश का शीर्षक इसे आसानी से पहचानने में मदद करता है",ar:"يتيح لك عنوان القاموس الخاص بك التعرف عليه بسهولة",ru:"Название вашего словаря позволяет легко его идентифицировать"}),placeholder:_e({en:"Enter the title of your dictionary","en-GB":"Enter the title of your dictionary",fr:"Entrez le titre de votre dictionnaire",es:"Ingrese el título de su diccionario",de:"Geben Sie den Titel Ihres Wörterbuchs ein",ja:"辞書のタイトルを入力してください",ko:"사전의 제목을 입력하세요",zh:"输入字典的标题",it:"Inserisci il titolo del tuo dizionario",pt:"Insira o título do seu dicionário",hi:"आपके शब्दकोश का शीर्षक दर्ज करें",ar:"أدخل عنوان القاموس الخاص بك",ru:"Введите название вашего словаря"})},keyInput:{label:_e({en:"Key","en-GB":"Key",fr:"Clé",es:"Clave",de:"Schlüssel",ja:"キー",ko:"키",zh:"键",it:"Chiave",pt:"Chave",hi:"कुंजी",ar:"مفتاح",ru:"Ключ"}),description:_e({en:"The key of your dictionary is used to identify it in the application","en-GB":"The key of your dictionary is used to identify it in the application",fr:"La clé de votre dictionnaire est utilisée pour l'identifier dans l'application",es:"La clave de su diccionario se utiliza para identificarla en la aplicación",de:"Der Schlüssel Ihres Wörterbuchs wird verwendet, um es in der Anwendung zu identifizieren",ja:"辞書のキーは、アプリケーション内でそれを識別するために使用されます",ko:"사전의 키는 애플리케이션에서 이를 식별하는 데 사용됩니다",zh:"字典的键用于在应用程序中识别它",it:"La chiave del tuo dizionario viene utilizzata per identificarlo nell'applicazione",pt:"A chave do seu dicionário é usada para identificá-lo no aplicativo",hi:"आपके शब्दकोश की कुंजी इसे एप्लिकेशन में पहचानने के लिए उपयोग की जाती है",ar:"مفتاح القاموس الخاص بك يُستخدم لتحديده في التطبيق",ru:"Ключ вашего словаря используется для его идентификации в приложении"}),placeholder:_e({en:"Enter the key of your dictionary","en-GB":"Enter the key of your dictionary",fr:"Entrez la clé de votre dictionnaire",es:"Ingrese la clave de su diccionario",de:"Geben Sie den Schlüssel Ihres Wörterbuchs ein",ja:"辞書のキーを入力してください",ko:"사전의 키를 입력하세요",zh:"输入字典的键",it:"Inserisci la chiave del tuo dizionario",pt:"Insira a chave do seu dicionário",hi:"अपने शब्दकोश की कुंजी दर्ज करें",ar:"أدخل مفتاح القاموس الخاص بك",ru:"Введите ключ вашего словаря"})},descriptionInput:{label:_e({en:"Description","en-GB":"Description",fr:"Description",es:"Descripción",de:"Beschreibung",ja:"説明",ko:"설명",zh:"描述",it:"Descrizione",pt:"Descrição",hi:"विवरण",ar:"الوصف",ru:"Описание"}),placeholder:_e({en:"Enter the description of your dictionary","en-GB":"Enter the description of your dictionary",fr:"Entrez la description de votre dictionnaire",es:"Ingrese la descripción de su diccionario",de:"Geben Sie die Beschreibung Ihres Wörterbuchs ein",ja:"辞書の説明を入力してください",ko:"사전의 설명을 입력하세요",zh:"输入字典的描述",it:"Inserisci la descrizione del tuo dizionario",pt:"Insira a descrição do seu dicionário",hi:"अपने शब्दकोश का विवरण दर्ज करें",ar:"أدخل وصف القاموس الخاص بك",ru:"Введите описание вашего словаря"}),description:_e({en:"The description of your dictionary allows you to easily identify it using keywords. It is also used to search for your dictionary, and to assist the AI in understanding your dictionary.","en-GB":"The description of your dictionary allows you to easily identify it using keywords. It is also used to search for your dictionary, and to assist the AI in understanding your dictionary.",fr:"La description de votre dictionnaire permet d'identifier facilement l'utilisateur en utilisant des mots-clés. Elle est également utilisée pour rechercher votre dictionnaire et pour aider l'IA à comprendre votre dictionnaire.",es:"La descripción de su diccionario le permite identificar fácilmente el usuario utilizando palabras clave. También se utiliza para buscar su diccionario y para ayudar a la IA a entender su diccionario.",de:"Die Beschreibung Ihres Wörterbuchs ermöglicht es Ihnen, es mit Schlüsselwörtern leicht zu identifizieren. Sie wird auch verwendet, um nach Ihrem Wörterbuch zu suchen und der KI zu helfen, Ihr Wörterbuch zu verstehen.",ja:"辞書の説明は、キーワードを使用して簡単に識別できます。また、辞書を検索するために使用され、AIが辞書を理解するのを助けます。",ko:"사전의 설명은 키워드를 사용하여 쉽게 식별할 수 있습니다. 또한 사전을 검색하고 AI가 사전을 이해하는 데 도움을 줍니다.",zh:"您字典的描述使您能够使用关键字轻松地识别它。它还用于搜索您的字典,以及帮助 AI 理解您的字典。",it:"La descrizione del tuo dizionario ti consente di identificarlo facilmente utilizzando parole chiave. Viene anche utilizzata per cercare il tuo dizionario e per assistere l'IA nella comprensione del tuo dizionario.",pt:"A descrição do seu dicionário permite que você o identifique facilmente usando palavras-chave. Também é usada para pesquisar seu dicionário e para ajudar a IA a entender seu dicionário.",hi:"आपके शब्दकोश का विवरण आपको कुंजीशब्दों का उपयोग करके इसे आसानी से पहचानने की अनुमति देता है। इसका उपयोग आपके शब्दकोश की खोज करने और AI को आपके शब्दकोश को समझने में मदद करने के लिए भी किया जाता है।",ar:"يتيح لك وصف القاموس الخاص بك التعرف عليه بسهولة باستخدام الكلمات الرئيسية. كما أنه يستخدم للبحث عن القاموس الخاص بك ، ولمساعدة الذكاء الاصطناعي على فهم القاموس الخاص بك.",ru:"Описание вашего словаря позволяет легко его идентифицировать с помощью ключевых слов. Оно также используется для поиска вашего словаря и для помощи ИИ в понимании вашего словаря."})},projectInput:{label:_e({en:"Projects","en-GB":"Projects",fr:"Projets",es:"Proyectos",de:"Projekte",ja:"プロジェクト",ko:"프로젝트",zh:"项目",it:"Progetti",pt:"Projetos",hi:"परियोजनाएँ",ar:"المشاريع",ru:"Проекты"}),description:_e({en:"A dictionary can be associated with one or more projects. This allows you load the dictionary on different applications, and share it across different teams.","en-GB":"A dictionary can be associated with one or more projects. This allows you to load the dictionary on different applications, and share it across different teams.",fr:"Un dictionnaire peut être associé à un ou plusieurs projets. Cela permet de charger le dictionnaire sur différentes applications et de le partager entre différentes équipes.",es:"Un diccionario puede estar asociado con uno o más proyectos. Esto permite cargar el diccionario en diferentes aplicaciones y compartirlo entre diferentes equipos.",de:"Ein Wörterbuch kann mit einem oder mehreren Projekten verknüpft werden. Dies ermöglicht es Ihnen, das Wörterbuch in verschiedenen Anwendungen zu laden und es in verschiedenen Teams zu teilen.",ja:"辞書は1つ以上のプロジェクトに関連付けることができます。これにより、辞書を異なるアプリケーションにロードし、異なるチーム間で共有できます。",ko:"사전은 하나 이상의 프로젝트와 연결할 수 있습니다. 이를 통해 사전을 다양한 애플리케이션에 로드하고 다양한 팀 간에 공유할 수 있습니다.",zh:"字典可以与一个或多个项目关联。这使您能够在不同的应用程序中加载字典,并在不同的团队之间共享。",it:"Un dizionario può essere associato a uno o più progetti. Questo ti consente di caricare il dizionario in diverse applicazioni e condividerlo tra diversi team.",pt:"Um dicionário pode ser associado a um ou mais projetos. Isso permite que você carregue o dicionário em diferentes aplicativos e o compartilhe entre diferentes equipes.",hi:"एक शब्दकोश को एक या अधिक परियोजनाओं से जोड़ा जा सकता है। यह आपको विभिन्न अनुप्रयोगों में शब्दकोश लोड करने और विभिन्न टीमों के बीच साझा करने की अनुमति देता है।",ar:"يمكن ربط قاموس بواحد أو أكثر من المشاريع. وهذا يتيح لك تحميل القاموس على تطبيقات مختلفة ومشاركته عبر فرق مختلفة.",ru:"Словарь можно ассоциировать с одним или несколькими проектами. Это позволяет загружать словарь в различных приложениях и делиться им между разными командами."}),placeholder:_e({en:"Select one or more projects to associate with your dictionary","en-GB":"Select one or more projects to associate with your dictionary",fr:"Sélectionnez un ou plusieurs projets à associer à votre dictionnaire",es:"Seleccione uno o más proyectos para asociar con su diccionario",de:"Wählen Sie ein oder mehrere Projekte aus, um sie mit Ihrem Wörterbuch zu verknüpfen",ja:"辞書に関連付けるプロジェクトを1つ以上選択してください",ko:"사전과 연결할 하나 이상의 프로젝트를 선택하세요",zh:"选择一个或多个项目以与您的字典关联",it:"Seleziona uno o più progetti da associare al tuo dizionario",pt:"Selecione um ou mais projetos para associar ao seu dicionário",hi:"अपने शब्दकोश से जोड़ने के लिए एक या अधिक परियोजनाएँ चुनें",ar:"حدد مشروعًا أو أكثر لربطه بقاموسك",ru:"Выберите один или несколько проектов, чтобы связать их с вашим словарем"})},tagsSelect:{label:_e({en:"Tags","en-GB":"Tags",fr:"Tags",es:"Etiquetas",de:"Tags",ja:"タグ",ko:"태그",zh:"标签",it:"Tag",pt:"Tags",hi:"टैग",ar:"الوسوم",ru:"Теги"}),description:_e({en:"A dictionary can be associated with one or more tags. This allows you to load the dictionary on different applications, and share it across different teams.","en-GB":"A dictionary can be associated with one or more tags. This allows you to load the dictionary on different applications, and share it across different teams.",fr:"Un dictionnaire peut être associé à un ou plusieurs tags. Cela permet de charger le dictionnaire dans différentes applications et de le partager entre différentes équipes.",es:"Un diccionario puede estar asociado con uno o más tags. Esto permite cargar el diccionario en diferentes aplicaciones y compartirlo entre diferentes equipos.",de:"Ein Wörterbuch kann mit einem oder mehreren Tags verknüpft werden. Dies ermöglicht es Ihnen, das Wörterbuch in verschiedenen Anwendungen zu laden und es in verschiedenen Teams zu teilen.",ja:"辞書は1つ以上のタグに関連付けることができます。これにより、辞書を異なるアプリケーションにロードし、異なるチーム間で共有できます。",ko:"사전은 태그를 하나 이상의 태그로 연결할 수 있습니다. 이를 통해 사전을 다양한 애플리케이션에 로드하고 다양한 팀 간에 공유할 수 있습니다.",zh:"字典可以与一个或多个标签关联。这使您能够在不同的应用程序中加载字典,并在不同的团队之间共享。",it:"Un dizionario può essere associato a uno o più tag. Questo ti consente di caricare il dizionario in diverse applicazioni e condividerlo tra diversi team.",pt:"Um dicionário pode ser associado a um ou mais tags. Isso permite que você carregue o dicionário em diferentes aplicativos e o compartilhe entre diferentes equipes."}),placeholder:_e({en:"Select the tags to associate with your dictionary","en-GB":"Select the tags to associate with your dictionary",fr:"Sélectionnez les tags à associer à votre dictionnaire",es:"Seleccione los tags para asociar con su diccionario",de:"Wählen Sie die Tags, die mit Ihrem Wörterbuch verknüpft werden sollen",ja:"辞書に関連付けるタグを選択してください",ko:"사전과 연결할 태그를 선택하세요",zh:"选择与您的字典相关的标签",it:"Seleziona i tag da associare al tuo dizionario",pt:"Selecione os tags para associar ao seu dicionário",hi:"अपने शब्दकोश से जोड़ने के लिए टैग का चयन करें",ar:"حدد الوسوم التي تريد ربطها بقاموسك",ru:"Выберите теги, которые нужно связать с словарем"})},auditButton:{label:_e({en:"Audit",fr:"Auditer",es:"Auditar","en-GB":"Audit",de:"Prüfen",ja:"監査",ko:"감사",zh:"审核",it:"Controllare",pt:"Auditar",hi:"ऑडिट",ar:"التدقيق",ru:"Отслеживание"}),text:_e({en:"Audit",fr:"Auditer",es:"Auditar","en-GB":"Audit",de:"Prüfen",ja:"監査",ko:"감사",zh:"审核",it:"Controllare",pt:"Auditar",hi:"ऑडिट",ar:"التدقيق",ru:"Отслеживание"})}}},MJ={key:"dictionary-detail-schema",content:{titleRequiredError:_e({en:"Please enter a name for your organization.","en-GB":"Please enter a name for your organization.",fr:"Veuillez saisir un nom pour votre organisation.",es:"Por favor, ingrese un nombre para su organización.",de:"Bitte geben Sie einen Namen für Ihre Organisation ein.",ja:"あなたの組織の名前を入力してください。",ko:"조직 이름을 입력하세요.",zh:"请输入您组织的名称。",it:"Si prega di inserire un nome per la propria organizzazione.",pt:"Por favor, insira um nome para sua organização.",hi:"कृपया अपने संगठन का नाम दर्ज करें।",ar:"يرجى إدخال اسم منظمتك.",ru:"Пожалуйста, введите название вашей организации."}),titleInvalidTypeError:_e({en:"The organization name must be a valid string.","en-GB":"The organization name must be a valid string.",fr:"Le nom de votre organisation doit être une chaîne valide.",es:"El nombre de su organización debe ser una cadena válida.",de:"Der Name der Organisation muss eine gültige Zeichenfolge sein.",ja:"組織名は有効な文字列である必要があります。",ko:"조직 이름은 유효한 문자열이어야 합니다.",zh:"组织名称必须是有效的字符串。",it:"Il nome dell'organizzazione deve essere una stringa valida.",pt:"O nome da organização deve ser uma string válida.",hi:"संगठन का नाम एक वैध स्ट्रिंग होना चाहिए।",ar:"يجب أن يكون اسم المنظمة سلسلة صحيحة.",ru:"Имя организации должно быть правильной строкой."}),titleMinLengthError:_e({en:"The organization name must be at least 4 characters long.","en-GB":"The organization name must be at least 4 characters long.",fr:"Le nom de votre organisation doit comporter au moins 4 caractères.",es:"El nombre de su organización debe tener al menos 4 caracteres.",de:"Der Name der Organisation muss mindestens 4 Zeichen lang sein.",ja:"組織名は4文字以上でなければなりません。",ko:"조직 이름은 4자 이상이어야 합니다.",zh:"组织名称必须至少4个字符。",it:"Il nome dell'organizzazione deve essere lungo almeno 4 caratteri.",pt:"O nome da organização deve ter pelo menos 4 caracteres.",hi:"संगठन का नाम कम से कम 4 वर्ण का होना चाहिए।",ar:"يجب أن يكون اسم المنظمة مكونًا من 4 أحرف على الأقل.",ru:"Имя организации должно содержать не менее 4 символов."}),keyRequiredError:_e({en:"Please enter a key for your organization.","en-GB":"Please enter a key for your organization.",fr:"Veuillez saisir une clé pour votre organisation.",es:"Por favor, ingrese una clave para su organización.",de:"Bitte geben Sie einen Schlüssel für Ihre Organisation ein.",ja:"あなたの組織のためにキーを入力してください。",ko:"조직에 대한 키를 입력하세요.",zh:"请输入您组织的键。",it:"Si prega di inserire una chiave per la propria organizzazione.",pt:"Por favor, insira uma chave para sua organização.",hi:"कृपया अपने संगठन के लिए एक कुंजी दर्ज करें।",ar:"يرجى إدخال مفتاح لمنظمتك.",ru:"Пожалуйста, введите ключ для вашей организации."}),keyInvalidTypeError:_e({en:"The key must be a valid string.","en-GB":"The key must be a valid string.",fr:"La clé doit être une chaîne valide.",es:"La clave debe ser una cadena válida.",de:"Der Schlüssel muss eine gültige Zeichenfolge sein.",ja:"キーは有効な文字列である必要があります。",ko:"키는 유효한 문자열이어야 합니다.",zh:"关键字必须是有效的字符串。",it:"La chiave deve essere una stringa valida.",pt:"A chave deve ser uma string válida.",hi:"कुंजी एक वैध स्ट्रिंग होनी चाहिए।",ar:"يجب أن يكون المفتاح سلسلة صحيحة.",ru:"Ключ должен быть правильной строкой."}),keySpaceError:_e({en:"The key cannot contain spaces or special characters.","en-GB":"The key cannot contain spaces or special characters.",fr:"La clé ne peut pas contenir d'espaces ou de caractères spéciaux.",es:"La clave no puede contener espacios o caracteres especiales.",de:"Der Schlüssel darf keine Leerzeichen oder Sonderzeichen enthalten.",ja:"キーにはスペースや特殊文字を含めることはできません。",ko:"키에는 공백이나 특수 문자가 포함될 수 없습니다.",zh:"关键字不能包含空格或特殊字符。",it:"La chiave non può contenere spazi o caratteri speciali.",pt:"A chave não pode conter espaços ou caracteres especiais.",hi:"कुंजी में स्पेस या विशेष वर्ण नहीं हो सकते।",ar:"لا يمكن أن يحتوي المفتاح على مسافات أو أحرف خاصة.",ru:"Ключ не может содержать пробелы или специальные символы."}),keyMinLengthError:_e({en:"The key must be at least 4 characters long.","en-GB":"The key must be at least 4 characters long.",fr:"La clé doit comporter au moins 4 caractères.",es:"La clave debe tener al menos 4 caracteres.",de:"Der Schlüssel muss mindestens 4 Zeichen lang sein.",ja:"キーは4文字以上でなければなりません。",ko:"키는 4자 이상이어야 합니다.",zh:"键必须至少为4个字符。",it:"La chiave deve essere lunga almeno 4 caratteri.",pt:"A chave deve ter pelo menos 4 caracteres.",hi:"कुंजी में कम से कम 4 वर्ण होने चाहिए।",ar:"يجب أن يكون المفتاح مكونًا من 4 أحرف على الأقل.",ru:"Ключ должен содержать не менее 4 символов."}),descriptionRequiredError:_e({en:"Please enter a description for your organization.","en-GB":"Please enter a description for your organization.",fr:"Veuillez saisir une description pour votre organisation.",es:"Por favor, ingrese una descripción para su organización.",de:"Bitte geben Sie eine Beschreibung für Ihre Organisation ein.",ja:"あなたの組織の説明を入力してください。",ko:"조직에 대한 설명을 입력하세요.",zh:"请输入您组织的描述。",it:"Si prega di inserire una descrizione per la propria organizzazione.",pt:"Por favor, insira uma descrição para sua organização.",hi:"कृपया अपने संगठन का विवरण दर्ज करें।",ar:"يرجى إدخال وصف لمنظمتك.",ru:"Пожалуйста, введите описание вашей организации."}),descriptionInvalidTypeError:_e({en:"The description must be a valid string.","en-GB":"The description must be a valid string.",fr:"La description doit être une chaîne valide.",es:"La descripción debe ser una cadena válida.",de:"Die Beschreibung muss eine gültige Zeichenfolge sein.",ja:"説明は有効な文字列である必要があります。",ko:"설명은 유효한 문자열이어야 합니다.",zh:"描述必须是有效的字符串。",it:"La descrizione deve essere una stringa valida.",pt:"A descrição deve ser uma string válida.",hi:"विवरण एक वैध स्ट्रिंग होना चाहिए।",ar:"يجب أن يكون الوصف سلسلة صحيحة.",ru:"Описание должно быть правильной строкой."}),requiredErrorProjectId:_e({en:"Please select a project","en-GB":"Please select a project",fr:"Veuillez sélectionner un projet",es:"Por favor, seleccione un proyecto",de:"Bitte wählen Sie ein Projekt aus",ja:"プロジェクトを選択してください",ko:"프로젝트를 선택하세요",zh:"请选择一个项目",it:"Si prega di selezionare un progetto",pt:"Por favor, selecione um projeto",hi:"कृपया एक प्रोजेक्ट चुनें",ar:"يرجى اختيار مشروع",ru:"Пожалуйста, выберите проект"}),invalidTypeErrorProjectId:_e({en:"Please select a valid project","en-GB":"Please select a valid project",fr:"Veuillez sélectionner un projet valide",es:"Por favor, seleccione un proyecto válido",de:"Bitte wählen Sie ein gültiges Projekt aus",ja:"有効なプロジェクトを選択してください",ko:"유효한 프로젝트를 선택하세요",zh:"请选择有效的项目",it:"Si prega di selezionare un progetto valido",pt:"Por favor, selecione um projeto válido",hi:"कृपया एक वैध परियोजना चुनें",ar:"يرجى اختيار مشروع صالح",ru:"Пожалуйста, выберите действительный проект"}),invalidTypeErrorTags:_e({en:"Please enter a valid tag","en-GB":"Please enter a valid tag",fr:"Veuillez saisir un tag valide",es:"Por favor, ingrese un tag válido",de:"Bitte geben Sie einen gültigen Tag ein",ja:"有効なタグを入力してください",ko:"유효한 태그를 입력하세요",zh:"请输入有效的标签",it:"Si prega di inserire un tag valido",pt:"Por favor, insira um tag válido",hi:"कृपया एक वैध टैग दर्ज करें",ar:"يرجى إدخال وسم صالح",ru:"Пожалуйста, введите действительный тег"})}},PJ=e=>{const{titleRequiredError:t,titleInvalidTypeError:n,titleMinLengthError:r,keyRequiredError:u,keyInvalidTypeError:o,keySpaceError:l,keyMinLengthError:c,descriptionRequiredError:f,descriptionInvalidTypeError:h,requiredErrorProjectId:m,invalidTypeErrorProjectId:E,invalidTypeErrorTags:g}=sn(MJ);return Au.object({title:Au.string({required_error:t.value,invalid_type_error:n.value}).refine(_=>_.length===0||_.length>=4,{message:r.value}).optional(),key:Au.string({required_error:u.value,invalid_type_error:o.value}).min(4,{message:c.value}).regex(/^[a-zA-Z0-9-_]+$/,{message:l.value}).default(""),description:Au.string({required_error:f.value,invalid_type_error:h.value}).optional(),projectIds:Au.array(Au.string({required_error:m.value,invalid_type_error:E.value})).default([e]),tags:Au.array(Au.string({invalid_type_error:g.value})).default([])})},HJ=({dictionary:e})=>{var x,B;const{session:t}=$c(),{project:n}=t??{},{data:r,isLoading:u}=SU(),{data:o}=yU(),l=PJ(String(n==null?void 0:n._id)),{form:c,isSubmitting:f}=oj(l,{defaultValues:e}),{editedContent:h,setEditedDictionary:m}=Fn(),{titleInput:E,keyInput:g,descriptionInput:_,projectInput:S,tagsSelect:C,auditButton:v}=sn(wJ),{auditContentDeclaration:R,isLoading:D}=CU(),b=h==null?void 0:h[e.key];y.useEffect(()=>{c.reset(e)},[e,c==null?void 0:c.reset]),y.useEffect(()=>{typeof b>"u"&&c.reset(e)},[b]);const L=async()=>{const O={...e,...b};await R({fileContent:JSON.stringify(O)}).then(H=>{if(H!=null&&H.data)try{const U=JSON.parse(H.data.fileContent);m(G=>({...G,...O,...U})),c.reset({...O,...U})}catch(U){console.error(U)}})};return N.jsx(ai,{background:"none",border:!0,roundedSize:"2xl",className:"w-full px-5 pb-3 pt-5",children:N.jsxs(ut,{className:"flex w-full flex-col gap-8",...c,schema:l,onChange:O=>m(H=>({...H,...O})),children:[N.jsxs("div",{className:"flex w-full flex-1 gap-8 max-md:flex-col",children:[N.jsx(ut.EditableFieldInput,{name:"key",label:g.label,placeholder:g.label.value,description:g.description,disabled:f,isRequired:!0,onSave:O=>{c.setValue("key",O),m(H=>({...e,...H??{},key:O}))}}),N.jsx(ut.EditableFieldInput,{name:"title",label:E.label,placeholder:E.placeholder.value,description:E.description,disabled:f,onSave:O=>{c.setValue("title",O),m(H=>({...e,...H??{},title:O}))}})]}),N.jsx(ut.EditableFieldTextArea,{name:"description",label:_.label,placeholder:_.placeholder.value,description:_.description,disabled:f,onSave:O=>{c.setValue("description",O),m(H=>({...e,...H??{},description:O}))}}),N.jsxs("div",{className:"flex size-full flex-1 gap-8 max-md:flex-col",children:[N.jsxs(ut.MultiSelect,{name:"projectIds",label:S.label.value,description:S.description.value,onValueChange:O=>{const H=[O].flat();c.setValue("projectIds",H),m(U=>({...e,...U??{},projectIds:H}))},children:[N.jsx(Sn.Trigger,{getBadgeValue:O=>{var H,U;return((U=(H=r==null?void 0:r.data)==null?void 0:H.find(G=>String(G._id)===O))==null?void 0:U.name)??O},children:N.jsx(Sn.Input,{placeholder:S.placeholder.value})}),N.jsx(Sn.Content,{children:N.jsx(eo,{isLoading:u,children:N.jsx(Sn.List,{children:(x=r==null?void 0:r.data)==null?void 0:x.map(O=>N.jsx(Sn.Item,{value:String(O._id),children:O.name},String(O._id)))})})})]}),N.jsxs(ut.MultiSelect,{name:"tags",label:C.label.value,description:C.description.value,onValueChange:O=>{c.setValue("tags",[O].flat()),m(H=>({...e,...H??{},tags:[O].flat()}))},children:[N.jsx(Sn.Trigger,{getBadgeValue:O=>{var H,U;return((U=(H=r==null?void 0:r.data)==null?void 0:H.find(G=>String(G._id)===O))==null?void 0:U.name)??O},children:N.jsx(Sn.Input,{placeholder:C.placeholder.value})}),N.jsx(Sn.Content,{children:N.jsx(eo,{isLoading:u,children:N.jsx(Sn.List,{children:(B=o==null?void 0:o.data)==null?void 0:B.map(O=>N.jsx(Sn.Item,{value:String(O.key),children:O.name??O.key},String(O.key)))})})})]})]}),N.jsx("div",{className:"flex flex-wrap items-center justify-end gap-2 max-md:flex-col",children:N.jsx(ut.Button,{type:"button",label:v.label.value,Icon:H9,variant:"outline",color:"text",className:"max-md:w-full",onClick:L,disabled:f||D,isLoading:D,children:v.text})})]})})},UJ={key:"dictionary-field-editor",content:{returnToDictionaryList:{label:_e({en:"Return to dictionary list","en-GB":"Return to dictionary list",fr:"Retourner à la liste des dictionnaires",es:"Volver a la lista de diccionarios",de:"Zurück zur Wörterbuchliste",ja:"辞書リストに戻る",ko:"사전 목록으로 돌아가기",zh:"返回字典列表",it:"Torna all'elenco dei dizionari",pt:"Voltar à lista de dicionários",hi:"शब्दकोश सूची में वापस जाएं",ar:"العودة إلى قائمة المعاجم",ru:"Вернуться к списку словарей"}),text:_e({en:"Dictionary list","en-GB":"Dictionary list",fr:"Liste des dictionnaires",es:"Lista de diccionarios",de:"Wörterbuchliste",ja:"辞書リスト",ko:"사전 목록",zh:"字典列表",it:"Elenco dei dizionari",pt:"Lista de dicionários",hi:"शब्दकोश सूची",ar:"قائمة المعاجم",ru:"Список словарей"})}}};function kJ(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function aR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(u){return Object.getOwnPropertyDescriptor(e,u).enumerable})),n.push.apply(n,r)}return n}function sR(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?aR(Object(n),!0).forEach(function(r){kJ(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):aR(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function GJ(e,t){if(e==null)return{};var n={},r=Object.keys(e),u,o;for(o=0;o<r.length;o++)u=r[o],!(t.indexOf(u)>=0)&&(n[u]=e[u]);return n}function VJ(e,t){if(e==null)return{};var n=GJ(e,t),r,u;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(u=0;u<o.length;u++)r=o[u],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function jJ(e,t){return zJ(e)||KJ(e,t)||$J(e,t)||YJ()}function zJ(e){if(Array.isArray(e))return e}function KJ(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var n=[],r=!0,u=!1,o=void 0;try{for(var l=e[Symbol.iterator](),c;!(r=(c=l.next()).done)&&(n.push(c.value),!(t&&n.length===t));r=!0);}catch(f){u=!0,o=f}finally{try{!r&&l.return!=null&&l.return()}finally{if(u)throw o}}return n}}function $J(e,t){if(e){if(typeof e=="string")return oR(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return oR(e,t)}}function oR(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function YJ(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
287
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ZJ(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function lR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(u){return Object.getOwnPropertyDescriptor(e,u).enumerable})),n.push.apply(n,r)}return n}function cR(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?lR(Object(n),!0).forEach(function(r){ZJ(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lR(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function WJ(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(r){return t.reduceRight(function(u,o){return o(u)},r)}}function Zl(e){return function t(){for(var n=this,r=arguments.length,u=new Array(r),o=0;o<r;o++)u[o]=arguments[o];return u.length>=e.length?e.apply(this,u):function(){for(var l=arguments.length,c=new Array(l),f=0;f<l;f++)c[f]=arguments[f];return t.apply(n,[].concat(u,c))}}}function rh(e){return{}.toString.call(e).includes("Object")}function qJ(e){return!Object.keys(e).length}function Mc(e){return typeof e=="function"}function XJ(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function QJ(e,t){return rh(t)||Nu("changeType"),Object.keys(t).some(function(n){return!XJ(e,n)})&&Nu("changeField"),t}function JJ(e){Mc(e)||Nu("selectorType")}function eee(e){Mc(e)||rh(e)||Nu("handlerType"),rh(e)&&Object.values(e).some(function(t){return!Mc(t)})&&Nu("handlersType")}function tee(e){e||Nu("initialIsRequired"),rh(e)||Nu("initialType"),qJ(e)&&Nu("initialContent")}function nee(e,t){throw new Error(e[t]||e.default)}var ree={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"},Nu=Zl(nee)(ree),K0={changes:QJ,selector:JJ,handler:eee,initial:tee};function iee(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};K0.initial(e),K0.handler(t);var n={current:e},r=Zl(see)(n,t),u=Zl(aee)(n),o=Zl(K0.changes)(e),l=Zl(uee)(n);function c(){var h=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(m){return m};return K0.selector(h),h(n.current)}function f(h){WJ(r,u,o,l)(h)}return[c,f]}function uee(e,t){return Mc(t)?t(e.current):t}function aee(e,t){return e.current=cR(cR({},e.current),t),t}function see(e,t,n){return Mc(t)?t(e.current):Object.keys(n).forEach(function(r){var u;return(u=t[r])===null||u===void 0?void 0:u.call(t,e.current[r])}),n}var oee={create:iee},lee={paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.52.2/min/vs"}};function cee(e){return function t(){for(var n=this,r=arguments.length,u=new Array(r),o=0;o<r;o++)u[o]=arguments[o];return u.length>=e.length?e.apply(this,u):function(){for(var l=arguments.length,c=new Array(l),f=0;f<l;f++)c[f]=arguments[f];return t.apply(n,[].concat(u,c))}}}function dee(e){return{}.toString.call(e).includes("Object")}function fee(e){return e||dR("configIsRequired"),dee(e)||dR("configType"),e.urls?(hee(),{paths:{vs:e.urls.monacoBase}}):e}function hee(){console.warn(IB.deprecation)}function Aee(e,t){throw new Error(e[t]||e.default)}var IB={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!
288
+ You are using deprecated way of configuration.
289
+
290
+ Instead of using
291
+ monaco.config({ urls: { monacoBase: '...' } })
292
+ use
293
+ monaco.config({ paths: { vs: '...' } })
294
+
295
+ For more please check the link https://github.com/suren-atoyan/monaco-loader#config
296
+ `},dR=cee(Aee)(IB),mee={config:fee},pee=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return function(u){return n.reduceRight(function(o,l){return l(o)},u)}};function yB(e,t){return Object.keys(t).forEach(function(n){t[n]instanceof Object&&e[n]&&Object.assign(t[n],yB(e[n],t[n]))}),sR(sR({},e),t)}var Eee={type:"cancelation",msg:"operation is manually canceled"};function SE(e){var t=!1,n=new Promise(function(r,u){e.then(function(o){return t?u(Eee):r(o)}),e.catch(u)});return n.cancel=function(){return t=!0},n}var gee=oee.create({config:lee,isInitialized:!1,resolve:null,reject:null,monaco:null}),CB=jJ(gee,2),cd=CB[0],qh=CB[1];function _ee(e){var t=mee.config(e),n=t.monaco,r=VJ(t,["monaco"]);qh(function(u){return{config:yB(u.config,r),monaco:n}})}function See(){var e=cd(function(t){var n=t.monaco,r=t.isInitialized,u=t.resolve;return{monaco:n,isInitialized:r,resolve:u}});if(!e.isInitialized){if(qh({isInitialized:!0}),e.monaco)return e.resolve(e.monaco),SE(NE);if(window.monaco&&window.monaco.editor)return vB(window.monaco),e.resolve(window.monaco),SE(NE);pee(Nee,yee)(Cee)}return SE(NE)}function Nee(e){return document.body.appendChild(e)}function Iee(e){var t=document.createElement("script");return e&&(t.src=e),t}function yee(e){var t=cd(function(r){var u=r.config,o=r.reject;return{config:u,reject:o}}),n=Iee("".concat(t.config.paths.vs,"/loader.js"));return n.onload=function(){return e()},n.onerror=t.reject,n}function Cee(){var e=cd(function(n){var r=n.config,u=n.resolve,o=n.reject;return{config:r,resolve:u,reject:o}}),t=window.require;t.config(e.config),t(["vs/editor/editor.main"],function(n){vB(n),e.resolve(n)},function(n){e.reject(n)})}function vB(e){cd().monaco||qh({monaco:e})}function vee(){return cd(function(e){var t=e.monaco;return t})}var NE=new Promise(function(e,t){return qh({resolve:e,reject:t})}),RB={config:_ee,init:See,__getMonacoInstance:vee},Ree={wrapper:{display:"flex",position:"relative",textAlign:"initial"},fullWidth:{width:"100%"},hide:{display:"none"}},IE=Ree,Dee={container:{display:"flex",height:"100%",width:"100%",justifyContent:"center",alignItems:"center"}},Tee=Dee;function bee({children:e}){return $e.createElement("div",{style:Tee.container},e)}var xee=bee,Bee=xee;function Fee({width:e,height:t,isEditorReady:n,loading:r,_ref:u,className:o,wrapperProps:l}){return $e.createElement("section",{style:{...IE.wrapper,width:e,height:t},...l},!n&&$e.createElement(Bee,null,r),$e.createElement("div",{ref:u,style:{...IE.fullWidth,...!n&&IE.hide},className:o}))}var Oee=Fee,DB=y.memo(Oee);function Lee(e){y.useEffect(e,[])}var TB=Lee;function wee(e,t,n=!0){let r=y.useRef(!0);y.useEffect(r.current||!n?()=>{r.current=!1}:e,t)}var Wn=wee;function uc(){}function Ks(e,t,n,r){return Mee(e,r)||Pee(e,t,n,r)}function Mee(e,t){return e.editor.getModel(bB(e,t))}function Pee(e,t,n,r){return e.editor.createModel(t,n,r?bB(e,r):void 0)}function bB(e,t){return e.Uri.parse(t)}function Hee({original:e,modified:t,language:n,originalLanguage:r,modifiedLanguage:u,originalModelPath:o,modifiedModelPath:l,keepCurrentOriginalModel:c=!1,keepCurrentModifiedModel:f=!1,theme:h="light",loading:m="Loading...",options:E={},height:g="100%",width:_="100%",className:S,wrapperProps:C={},beforeMount:v=uc,onMount:R=uc}){let[D,b]=y.useState(!1),[L,x]=y.useState(!0),B=y.useRef(null),O=y.useRef(null),H=y.useRef(null),U=y.useRef(R),G=y.useRef(v),fe=y.useRef(!1);TB(()=>{let te=RB.init();return te.then(V=>(O.current=V)&&x(!1)).catch(V=>(V==null?void 0:V.type)!=="cancelation"&&console.error("Monaco initialization: error:",V)),()=>B.current?Z():te.cancel()}),Wn(()=>{if(B.current&&O.current){let te=B.current.getOriginalEditor(),V=Ks(O.current,e||"",r||n||"text",o||"");V!==te.getModel()&&te.setModel(V)}},[o],D),Wn(()=>{if(B.current&&O.current){let te=B.current.getModifiedEditor(),V=Ks(O.current,t||"",u||n||"text",l||"");V!==te.getModel()&&te.setModel(V)}},[l],D),Wn(()=>{let te=B.current.getModifiedEditor();te.getOption(O.current.editor.EditorOption.readOnly)?te.setValue(t||""):t!==te.getValue()&&(te.executeEdits("",[{range:te.getModel().getFullModelRange(),text:t||"",forceMoveMarkers:!0}]),te.pushUndoStop())},[t],D),Wn(()=>{var te,V;(V=(te=B.current)==null?void 0:te.getModel())==null||V.original.setValue(e||"")},[e],D),Wn(()=>{let{original:te,modified:V}=B.current.getModel();O.current.editor.setModelLanguage(te,r||n||"text"),O.current.editor.setModelLanguage(V,u||n||"text")},[n,r,u],D),Wn(()=>{var te;(te=O.current)==null||te.editor.setTheme(h)},[h],D),Wn(()=>{var te;(te=B.current)==null||te.updateOptions(E)},[E],D);let ae=y.useCallback(()=>{var ee;if(!O.current)return;G.current(O.current);let te=Ks(O.current,e||"",r||n||"text",o||""),V=Ks(O.current,t||"",u||n||"text",l||"");(ee=B.current)==null||ee.setModel({original:te,modified:V})},[n,t,u,e,r,o,l]),ce=y.useCallback(()=>{var te;!fe.current&&H.current&&(B.current=O.current.editor.createDiffEditor(H.current,{automaticLayout:!0,...E}),ae(),(te=O.current)==null||te.editor.setTheme(h),b(!0),fe.current=!0)},[E,h,ae]);y.useEffect(()=>{D&&U.current(B.current,O.current)},[D]),y.useEffect(()=>{!L&&!D&&ce()},[L,D,ce]);function Z(){var V,ee,Q,Ae;let te=(V=B.current)==null?void 0:V.getModel();c||((ee=te==null?void 0:te.original)==null||ee.dispose()),f||((Q=te==null?void 0:te.modified)==null||Q.dispose()),(Ae=B.current)==null||Ae.dispose()}return $e.createElement(DB,{width:_,height:g,isEditorReady:D,loading:m,_ref:H,className:S,wrapperProps:C})}var Uee=Hee;y.memo(Uee);function kee(e){let t=y.useRef();return y.useEffect(()=>{t.current=e},[e]),t.current}var Gee=kee,$0=new Map;function Vee({defaultValue:e,defaultLanguage:t,defaultPath:n,value:r,language:u,path:o,theme:l="light",line:c,loading:f="Loading...",options:h={},overrideServices:m={},saveViewState:E=!0,keepCurrentModel:g=!1,width:_="100%",height:S="100%",className:C,wrapperProps:v={},beforeMount:R=uc,onMount:D=uc,onChange:b,onValidate:L=uc}){let[x,B]=y.useState(!1),[O,H]=y.useState(!0),U=y.useRef(null),G=y.useRef(null),fe=y.useRef(null),ae=y.useRef(D),ce=y.useRef(R),Z=y.useRef(),te=y.useRef(r),V=Gee(o),ee=y.useRef(!1),Q=y.useRef(!1);TB(()=>{let W=RB.init();return W.then(j=>(U.current=j)&&H(!1)).catch(j=>(j==null?void 0:j.type)!=="cancelation"&&console.error("Monaco initialization: error:",j)),()=>G.current?P():W.cancel()}),Wn(()=>{var j,re,ne,de;let W=Ks(U.current,e||r||"",t||u||"",o||n||"");W!==((j=G.current)==null?void 0:j.getModel())&&(E&&$0.set(V,(re=G.current)==null?void 0:re.saveViewState()),(ne=G.current)==null||ne.setModel(W),E&&((de=G.current)==null||de.restoreViewState($0.get(o))))},[o],x),Wn(()=>{var W;(W=G.current)==null||W.updateOptions(h)},[h],x),Wn(()=>{!G.current||r===void 0||(G.current.getOption(U.current.editor.EditorOption.readOnly)?G.current.setValue(r):r!==G.current.getValue()&&(Q.current=!0,G.current.executeEdits("",[{range:G.current.getModel().getFullModelRange(),text:r,forceMoveMarkers:!0}]),G.current.pushUndoStop(),Q.current=!1))},[r],x),Wn(()=>{var j,re;let W=(j=G.current)==null?void 0:j.getModel();W&&u&&((re=U.current)==null||re.editor.setModelLanguage(W,u))},[u],x),Wn(()=>{var W;c!==void 0&&((W=G.current)==null||W.revealLine(c))},[c],x),Wn(()=>{var W;(W=U.current)==null||W.editor.setTheme(l)},[l],x);let Ae=y.useCallback(()=>{var W;if(!(!fe.current||!U.current)&&!ee.current){ce.current(U.current);let j=o||n,re=Ks(U.current,r||e||"",t||u||"",j||"");G.current=(W=U.current)==null?void 0:W.editor.create(fe.current,{model:re,automaticLayout:!0,...h},m),E&&G.current.restoreViewState($0.get(j)),U.current.editor.setTheme(l),c!==void 0&&G.current.revealLine(c),B(!0),ee.current=!0}},[e,t,n,r,u,o,h,m,E,l,c]);y.useEffect(()=>{x&&ae.current(G.current,U.current)},[x]),y.useEffect(()=>{!O&&!x&&Ae()},[O,x,Ae]),te.current=r,y.useEffect(()=>{var W,j;x&&b&&((W=Z.current)==null||W.dispose(),Z.current=(j=G.current)==null?void 0:j.onDidChangeModelContent(re=>{Q.current||b(G.current.getValue(),re)}))},[x,b]),y.useEffect(()=>{if(x){let W=U.current.editor.onDidChangeMarkers(j=>{var ne;let re=(ne=G.current.getModel())==null?void 0:ne.uri;if(re&&j.find(de=>de.path===re.path)){let de=U.current.editor.getModelMarkers({resource:re});L==null||L(de)}});return()=>{W==null||W.dispose()}}return()=>{}},[x,L]);function P(){var W,j;(W=Z.current)==null||W.dispose(),g?E&&$0.set(o,G.current.saveViewState()):(j=G.current.getModel())==null||j.dispose(),G.current.dispose()}return $e.createElement(DB,{width:_,height:S,isEditorReady:x,loading:f,_ref:fe,className:C,wrapperProps:v})}var jee=Vee,zee=y.memo(jee);const Kee=({children:e,language:t,isDarkMode:n,showLineNumbers:r,showCopyButton:u=!0,isReadOnly:o=!1,onChange:l})=>{const c=y.useRef(null),f=y.useRef(null),[h,m]=y.useState({height:0,width:0}),E=y.useMemo(()=>n?"vs-dark-transparent":"hc-light-theme",[n]),g=(S,C)=>{var R;f.current=S;const v=(S.getContentHeight()??0)+25;C.editor.defineTheme("vs-dark-transparent",{base:"vs-dark",inherit:!0,rules:[],colors:{"editor.background":"#00000000"}}),C.editor.defineTheme("hc-light-theme",{base:"vs",inherit:!0,rules:[],colors:{"editor.background":"#00000000"}}),C.editor.setTheme(E),C.languages.typescript.typescriptDefaults.setDiagnosticsOptions({noSemanticValidation:!0,noSyntaxValidation:!0}),C.languages.typescript.javascriptDefaults.setDiagnosticsOptions({noSemanticValidation:!0,noSyntaxValidation:!0}),C.languages.typescript.typescriptDefaults.setCompilerOptions({noLib:!0,allowNonTsExtensions:!0}),C.languages.typescript.javascriptDefaults.setCompilerOptions({noLib:!0,allowNonTsExtensions:!0}),m({height:v,width:((R=c.current)==null?void 0:R.clientWidth)??0})},_=r??e.split(`
297
+ `).length>1;return N.jsxs("div",{className:Re("relative h-full w-full text-sm",r&&"ml-0"),children:[u&&N.jsx("div",{className:"sticky top-5 z-10",children:N.jsx("div",{className:Re("absolute bottom-0 right-2 flex h-7 items-center"),children:N.jsx(SB,{content:e})})}),N.jsx("div",{className:"z-0 grid size-full grid-cols-[0px] overflow-auto",ref:c,children:N.jsx(zee,{...h,defaultLanguage:"typescript",language:t,loading:N.jsx(eo,{}),defaultValue:String(e).replace(/\n$/,""),onMount:g,onChange:l,options:{readOnly:o,cursorStyle:"line",minimap:{enabled:!1},scrollbar:{vertical:"hidden",verticalScrollbarSize:0,alwaysConsumeMouseWheel:!1},folding:!1,renderValidationDecorations:"off",quickSuggestions:!1,parameterHints:{enabled:!1},suggestOnTriggerCharacters:!1,mouseWheelScrollSensitivity:0,fastScrollSensitivity:0,scrollBeyondLastLine:!1,lineNumbers:_?"on":"off"},theme:E,className:"my-2 rounded-md"})})]})},$ee=({dictionary:e,isDarkMode:t})=>{const{setEditedContent:n,editedContent:r}=Fn(),u=l=>{try{return JSON.parse(l),!0}catch{return!1}},o=y.useMemo(()=>{var l;return((l=r==null?void 0:r[e.key])==null?void 0:l.content)??(e==null?void 0:e.content)??{}},[e]);return N.jsx(ai,{background:"none",border:!0,roundedSize:"xl",className:"w-full overflow-hidden p-3",children:N.jsx(Kee,{language:"json",onChange:l=>{u(l??"{}")&&n(e.key,JSON.parse(l??"{}"))},isDarkMode:t,children:JSON.stringify(o,null,2)})})},Yee={key:"node-type-selector",content:{triggerPlaceHolder:_e({en:"Node type","en-GB":"Node type",fr:"Type du Nœud",es:"Tipo del nodo",de:"Knotentyp",ja:"ノードタイプ",ko:"노드 유형",zh:"节点类型",it:"Tipo di nodo",pt:"Tipo de nó",hi:"नोड प्रकार",ar:"نوع العقدة",ru:"Тип узла"}),multilingual:_e({en:"Multilingual content","en-GB":"Multilingual content",fr:"Contenu Multilingue",es:"Contenido multilingüe",de:"Mehrsprachiger Inhalt",ja:"複数言語コンテンツ",ko:"다중 언어 콘텐츠",zh:"多语言内容",it:"Contenuto multilingue",pt:"Conteúdo multilíngue",hi:"बहुभाषी सामग्री",ar:"محتوى متعدد اللغات",ru:"Многоязычный контент"}),text:_e({en:"Text","en-GB":"Text",fr:"Texte",es:"Texto",de:"Text",ja:"テキスト",ko:"텍스트",zh:"文本",it:"Testo",pt:"Texto",hi:"पाठ",ar:"نص",ru:"Текст"}),number:_e({en:"Number","en-GB":"Number",fr:"Nombre",es:"Número",de:"Zahl",ja:"数字",ko:"숫자",zh:"数字",it:"Numero",pt:"Número",hi:"संख्या",ar:"رقم",ru:"Число"}),boolean:_e({en:"Boolean","en-GB":"Boolean",fr:"Booléen",es:"Booleano",de:"Bool",ja:"ブール",ko:"불리언",zh:"布尔",it:"Booleano",pt:"Booleano",hi:"बूलियन",ar:"منطقي",ru:"Булево"}),node:_e({en:"Object","en-GB":"Object",fr:"Objet",es:"Objeto",de:"Objekt",ja:"オブジェクト",ko:"객체",zh:"对象",it:"Oggetto",pt:"Objeto",hi:"ऑब्जेक्ट",ar:"كائن",ru:"Объект"}),array:_e({en:"Array","en-GB":"Array",fr:"Tableau",es:"Arreglo",de:"Array",ja:"配列",ko:"배열",zh:"数组",it:"Array",pt:"Array",hi:"ऐरे",ar:"مصفوفة",ru:"Массив"}),enumeration:_e({en:"Enumeration","en-GB":"Enumeration",fr:"Énumération",es:"Enumeración",de:"Enumeration",ja:"列挙",ko:"열거",zh:"枚举",it:"Enumerazione",pt:"Enumeração",hi:"गणना",ar:"تعداد",ru:"Перечисление"}),nest:_e({en:"Nesting","en-GB":"Nesting",fr:"Imbriquation",es:"Anidación",de:"Vererbung",ja:"ネスト",ko:"중첩",zh:"嵌套",it:"Nidificazione",pt:"Nido",hi:"नेस्टेंस",ar:"مستوى",ru:"Вложенность",nl:"Nest"}),insertion:_e({en:"Insertion","en-GB":"Insertion",fr:"Insertion",es:"Inserción",de:"Einfügung",ja:"挿入",ko:"삽입",zh:"插入",it:"Inserimento",pt:"Inserção",hi:"सम्मिलन",ar:"إدراج",ru:"Вставка"}),condition:_e({en:"Condition","en-GB":"Condition",fr:"Condition",es:"Condición",de:"Bedingung",ja:"条件",ko:"조건",zh:"条件",it:"Condizione",pt:"Condição",hi:"शर्त्ता",ar:"شرط",ru:"Условие"}),file:_e({en:"File","en-GB":"File",fr:"Fichier",es:"Archivo",de:"Datei",ja:"ファイル",ko:"파일",zh:"文件",it:"File",pt:"Arquivo",hi:"फ़ाइल",ar:"ملف",ru:"Файл"}),markdown:_e({en:"Markdown","en-GB":"Markdown",fr:"Markdown",es:"Markdown",de:"Markdown",ja:"マークダウン",ko:"마크다운",zh:"Markdown",it:"Markdown",pt:"Markdown",hi:"मार्कडाउन",ar:"مارك داون",ru:"Markdown"}),reactNode:_e({en:"React Node","en-GB":"React Node",fr:"Node React",es:"Nodo React",de:"React-Knoten",ja:"リアル・ノード",ko:"리액 노드",zh:"React 节点",it:"Nodo React",pt:"Nó React",hi:"रेड नोड",ar:"عقدة رياكت",ru:"Реакт узел"})}},Y0=({section:e,onValueChange:t})=>{const{multilingual:n,text:r,number:u,boolean:o,node:l,array:c,enumeration:f,triggerPlaceHolder:h,nest:m,condition:E,markdown:g,insertion:_,reactNode:S,file:C}=sn(Yee),v=co(e),[R,D]=y.useState(v),b=L=>{D(L),t(L)};return N.jsxs(Me,{value:R,onValueChange:b,children:[N.jsx(Me.Trigger,{children:N.jsx(Me.Value,{placeholder:h})}),N.jsxs(Me.Content,{children:[N.jsx(Me.Item,{value:$.Translation,children:n}),N.jsx(Me.Item,{value:$.Text,children:r}),N.jsx(Me.Item,{value:$.Number,children:u}),N.jsx(Me.Item,{value:$.Boolean,children:o}),N.jsx(Me.Item,{value:$.Object,children:l}),N.jsx(Me.Item,{value:$.Array,children:c}),N.jsx(Me.Item,{value:$.Enumeration,children:f}),N.jsx(Me.Item,{value:$.Insertion,children:_}),N.jsx(Me.Item,{value:$.Markdown,children:g}),N.jsx(Me.Item,{value:$.Nested,children:m}),N.jsx(Me.Item,{value:$.Condition,children:E}),N.jsx(Me.Item,{value:$.ReactNode,disabled:!0,children:S}),N.jsx(Me.Item,{value:$.File,children:C})]})]})},xB={key:"editor-view",content:{titleInput:{placeholder:_e({en:"Enter the key of your node","en-GB":"Enter the key of your node",fr:"Entrez la clé de votre nœud",es:"Ingrese la clave de su nodo",de:"Geben Sie den Schlüssel Ihres Knotens ein",ja:"ノードのキーを入力してください",ko:"노드의 키를 입력하세요",zh:"输入您节点的键",it:"Inserisci la chiave del tuo nodo",pt:"Insira a chave do seu nó",hi:"अपनी नोड की कुंजी दर्ज करें",ar:"أدخل مفتاح العقدة الخاص بك",ru:"Введите ключ вашего узла"})},deleteButton:{label:_e({en:"Remove node from section","en-GB":"Remove node from section",fr:"Supprimer le nœud de la section",es:"Eliminar el nodo de la sección",de:"Knoten aus dem Abschnitt entfernen",ja:"セクションからノードを削除",ko:"섹션에서 노드를 제거",zh:"从部分中移除节点",it:"Rimuovi nodo dalla sezione",pt:"Remover nó da seção",hi:"सेक्शन से नोड हटाएं",ar:"إزالة العقدة من القسم",ru:"Удалить узел из секции"})},addNodeButton:{label:_e({en:"Click to add a new node","en-GB":"Click to add a new node",fr:"Cliquez pour ajouter un nouveau nœud",es:"Haga clic para agregar un nuevo nodo",de:"Klicken, um einen neuen Knoten hinzuzufügen",ja:"新しいノードを追加するにはクリックしてください",ko:"새 노드를 추가하려면 클릭하세요",zh:"点击添加新节点",it:"Fai clic per aggiungere un nuovo nodo",pt:"Clique para adicionar um novo nó",hi:"नया नोड जोड़ने के लिए क्लिक करें",ar:"انقر لإضافة عقدة جديدة",ru:"Нажмите, чтобы добавить новый узел"}),text:_e({en:"Add a new node","en-GB":"Add a new node",fr:"Ajouter un nouveau nœud",es:"Agregar un nuevo nodo",de:"Neuen Knoten hinzufügen",ja:"新しいノードを追加",ko:"새 노드 추가",zh:"添加新节点",it:"Aggiungi un nuovo nodo",pt:"Adicionar um novo nó",hi:"नया नोड जोड़ें",ar:"إضافة عقدة جديدة",ru:"Добавить новый узел"})}}},Pg=({section:e,dictionaryKey:t,keyPath:n,onNodeTypeChange:r})=>{var f;const u=((f=ii())==null?void 0:f.internationalization.locales)??[],o=co(e),l=WR(e),c=h=>{const m=Bl(o,u,h);r(m)};if(o===$.Translation||o===$.Condition||o===$.Enumeration){const h=Object.keys(e[o])[0],m=[...n,{type:o,key:h}];return N.jsxs("div",{className:"flex w-full flex-col gap-1",children:[N.jsx(Y0,{section:e,onValueChange:E=>r(Bl(E,u))}),N.jsx(Pg,{section:l,keyPath:m,dictionaryKey:t,onNodeTypeChange:c})]})}if(o===$.Array){const h=[...n,{type:o,key:0}];return N.jsxs("div",{className:"flex w-full flex-col gap-1",children:[N.jsx(Y0,{section:e,onValueChange:m=>r(Bl(m,u))}),N.jsx(Pg,{section:l,keyPath:h,dictionaryKey:t,onNodeTypeChange:c})]})}return o===$.Object?N.jsxs(N.Fragment,{children:[N.jsx(Y0,{section:e,onValueChange:h=>r(Bl(h,u))}),N.jsx("div",{className:"ml-10 mt-6",children:N.jsx(Wee,{keyPath:n,section:e,dictionaryKey:t})})]}):N.jsx(Y0,{section:e,onValueChange:h=>r(Bl(h,u))})},H_=({sectionKey:e,section:t,keyPath:n,dictionaryKey:r})=>{const{focusedContent:u,setFocusedContentKeyPath:o}=Ou(),{renameEditedContent:l,addEditedContent:c}=fo(),{titleInput:f,deleteButton:h}=sn(xB),m=E=>{l(r,E,n);const g=n.slice(0,-1),_=n[n.length-1],S=[...g,{..._,key:E}];o(S)};return N.jsx(ai,{transparency:"xl",roundedSize:"xl",className:"w-full min-w-80 gap-2 overflow-auto px-5 py-2",border:!0,borderColor:"text",background:"none","aria-selected":Gc(n,(u==null?void 0:u.keyPath)??[]),onClick:()=>o(n),children:N.jsxs("div",{className:"flex w-full flex-col items-start justify-between gap-3",children:[typeof e=="string"&&N.jsxs("div",{className:"w-full",children:[N.jsxs("div",{className:"flex w-full items-center justify-between gap-10",children:[N.jsx(w1,{name:"key","aria-label":"Key",placeholder:f.placeholder.value,defaultValue:e,onSave:E=>m(E),variant:"invisible"}),N.jsx(Et,{label:h.label.value,variant:"hoverable",size:"icon-sm",color:"text",className:"translate-x-2",Icon:o4,onClick:()=>{c(r,void 0,n);const E=n.slice(0,-1);o(E)}})]}),N.jsxs("span",{className:"text-neutral ml-3 text-sm",children:["( ",hf(e)," )"]})]}),N.jsx(Pg,{keyPath:n,dictionaryKey:r,section:t,onNodeTypeChange:E=>{c(r,E,n)}})]})})},Zee=({section:e,keyPath:t,dictionaryKey:n})=>{const{addNodeButton:r}=sn(xB),{setFocusedContentKeyPath:u}=Xg(),{addEditedContent:o}=fo();return!e||typeof e!="object"?N.jsx("div",{children:"Not an object"}):N.jsxs("div",{className:"flex flex-col gap-2 overflow-y-scroll",children:[N.jsx("ul",{className:"mr-auto flex flex-col gap-4",children:Object.keys(e).map(l=>N.jsx("li",{className:"flex w-full",children:N.jsx(H_,{sectionKey:l,section:e==null?void 0:e[l],keyPath:[...t,{type:$.Object,key:l}],dictionaryKey:n})},l))}),N.jsx(Et,{label:r.label.value,variant:"hoverable",size:"md",color:"text",Icon:mh,className:"flex-1",onClick:()=>{const c=[...t,{type:$.Object,key:"newKey"}];o(n,"",c),u(c)},children:r.text})]})},Wee=({section:e,keyPath:t,dictionaryKey:n})=>!e||typeof e!="object"||typeof e.nodeType=="string"?N.jsx(H_,{sectionKey:"content",section:e,keyPath:t,dictionaryKey:n}):N.jsx(Zee,{section:e,keyPath:t,dictionaryKey:n}),qee=({dictionary:e})=>{var o,l;const{content:t,key:n}=e,{editedContent:r}=Fn(),u=typeof((o=r==null?void 0:r[n])==null?void 0:o.content)>"u"?t:(l=r==null?void 0:r[n])==null?void 0:l.content;return N.jsx(H_,{section:u,keyPath:[],dictionaryKey:e.key})},Xee=({dictionary:e,onClickDictionaryList:t,isDarkMode:n,mode:r})=>{const u=ii(),[o,l]=y.useState(1),{returnToDictionaryList:c}=sn(UJ),{setFocusedContent:f}=Xg(),{setLocaleDictionaries:h}=qg();return y.useEffect(()=>{f(m=>({...m??{},dictionaryKey:e.key})),h(m=>({...m,[e.key]:e}))},[]),N.jsx(dZ,{availableLocales:(u==null?void 0:u.internationalization.locales)??[],children:N.jsxs("div",{className:"flex size-full flex-col gap-6 px-2",children:[N.jsx(Et,{onClick:t,variant:"hoverable",className:"z-10 ml-5 mr-auto",color:"text",Icon:Y8,label:c.label.value,children:c.text}),N.jsx(ed,{defaultValue:o,onChange:m=>l(m),color:"text",size:"sm",className:"m-auto w-full max-w-xl",choices:[{content:"Details",value:0},{content:"Structure",value:2},{content:"Content",value:1},{content:"JSON",value:3}].filter(({value:m})=>!(!r.includes("remote")&&m===0))}),o===0&&N.jsx(HJ,{dictionary:e}),o===2&&N.jsx(qee,{dictionary:e}),o===1&&N.jsx(LJ,{dictionary:e,isDarkMode:n}),o===3&&N.jsx($ee,{dictionary:e,isDarkMode:n}),N.jsx(Qb,{dictionary:e,mode:r})]})})},Qee=()=>{const{toasts:e}=d1();return N.jsxs(iU.Provider,{children:[e.map(({id:t,title:n,description:r,action:u,...o})=>N.jsxs(sU,{...o,children:[N.jsxs("div",{className:"grid gap-1",children:[n&&N.jsx(lU,{children:n}),r&&N.jsx(cU,{children:r})]}),u,N.jsx(oU,{})]},t)),N.jsx(uU,{})]})},BB=(...e)=>{const{localeDictionaries:t}=$R(),{data:n,isWaitingData:r}=NU(...e),u=y.useMemo(()=>((n==null?void 0:n.data)??[]).reduce((l,c)=>(l[c.key]=c,l),{}),[n]),o=y.useMemo(()=>xU(u??{},t),[u,t]);return{online:u,locale:t,all:o,isLoading:r}},Jee=typeof window<"u",ete={useManualTiming:!1};function tte(e){let t=new Set,n=new Set,r=!1,u=!1;const o=new WeakSet;let l={delta:0,timestamp:0,isProcessing:!1};function c(h){o.has(h)&&(f.schedule(h),e()),h(l)}const f={schedule:(h,m=!1,E=!1)=>{const _=E&&r?t:n;return m&&o.add(h),_.has(h)||_.add(h),h},cancel:h=>{n.delete(h),o.delete(h)},process:h=>{if(l=h,r){u=!0;return}r=!0,[t,n]=[n,t],t.forEach(c),t.clear(),r=!1,u&&(u=!1,f.process(h))}};return f}const Z0=["read","resolveKeyframes","update","preRender","render","postRender"],nte=40;function rte(e,t){let n=!1,r=!0;const u={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,l=Z0.reduce((R,D)=>(R[D]=tte(o),R),{}),{read:c,resolveKeyframes:f,update:h,preRender:m,render:E,postRender:g}=l,_=()=>{const R=performance.now();n=!1,u.delta=r?1e3/60:Math.max(Math.min(R-u.timestamp,nte),1),u.timestamp=R,u.isProcessing=!0,c.process(u),f.process(u),h.process(u),m.process(u),E.process(u),g.process(u),u.isProcessing=!1,n&&t&&(r=!1,e(_))},S=()=>{n=!0,r=!0,u.isProcessing||e(_)};return{schedule:Z0.reduce((R,D)=>{const b=l[D];return R[D]=(L,x=!1,B=!1)=>(n||S(),b.schedule(L,x,B)),R},{}),cancel:R=>{for(let D=0;D<Z0.length;D++)l[Z0[D]].cancel(R)},state:u,steps:l}}const{schedule:Mr,cancel:Hg,state:ih}=rte(typeof requestAnimationFrame<"u"?requestAnimationFrame:Xt,!0),ite=y.createContext({strict:!1}),fR={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},Pc={};for(const e in fR)Pc[e]={isEnabled:t=>fR[e].some(n=>!!t[n])};function hR(e){for(const t in e)Pc[t]={...Pc[t],...e[t]}}function ute({children:e,features:t,strict:n=!1}){const[,r]=y.useState(!yE(t)),u=y.useRef(void 0);if(!yE(t)){const{renderer:o,...l}=t;u.current=o,hR(l)}return y.useEffect(()=>{yE(t)&&t().then(({renderer:o,...l})=>{hR(l),u.current=o,r(!0)})},[]),N.jsx(ite.Provider,{value:{renderer:u.current,strict:n},children:e})}function yE(e){return typeof e=="function"}function U_(e){return typeof e=="string"||Array.isArray(e)}function k_(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const G_=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],V_=["initial",...G_];function FB(e){return k_(e.animate)||V_.some(t=>U_(e[t]))}function ate(e){return!!(FB(e)||e.variants)}const j_=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),ste="framerAppearId",ote="data-"+j_(ste),lte=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function cte(e){return typeof e!="string"||e.includes("-")?!1:!!(lte.indexOf(e)>-1||/[A-Z]/u.test(e))}function AR(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function OB(e,t,n,r){if(typeof t=="function"){const[u,o]=AR(r);t=t(n!==void 0?n:e.custom,u,o)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[u,o]=AR(r);t=t(n!==void 0?n:e.custom,u,o)}return t}const Ug=e=>Array.isArray(e),dte=e=>Ug(e)?e[e.length-1]||0:e,Sr=e=>!!(e&&e.getVelocity),To=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],bo=new Set(To),LB=e=>t=>typeof t=="string"&&t.startsWith(e),wB=LB("--"),fte=LB("var(--"),z_=e=>fte(e)?hte.test(e.split("/*")[0].trim()):!1,hte=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,MB=(e,t)=>t&&typeof e=="number"?t.transform(e):e,Ua=(e,t,n)=>n>t?t:n<e?e:n,xo={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Hc={...xo,transform:e=>Ua(0,1,e)},W0={...xo,default:1},dd=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),_u=dd("deg"),Qs=dd("%"),je=dd("px"),Ate=dd("vh"),mte=dd("vw"),mR={...Qs,parse:e=>Qs.parse(e)/100,transform:e=>Qs.transform(e*100)},pte={borderWidth:je,borderTopWidth:je,borderRightWidth:je,borderBottomWidth:je,borderLeftWidth:je,borderRadius:je,radius:je,borderTopLeftRadius:je,borderTopRightRadius:je,borderBottomRightRadius:je,borderBottomLeftRadius:je,width:je,maxWidth:je,height:je,maxHeight:je,top:je,right:je,bottom:je,left:je,padding:je,paddingTop:je,paddingRight:je,paddingBottom:je,paddingLeft:je,margin:je,marginTop:je,marginRight:je,marginBottom:je,marginLeft:je,backgroundPositionX:je,backgroundPositionY:je},Ete={rotate:_u,rotateX:_u,rotateY:_u,rotateZ:_u,scale:W0,scaleX:W0,scaleY:W0,scaleZ:W0,skew:_u,skewX:_u,skewY:_u,distance:je,translateX:je,translateY:je,translateZ:je,x:je,y:je,z:je,perspective:je,transformPerspective:je,opacity:Hc,originX:mR,originY:mR,originZ:je},pR={...xo,transform:Math.round},K_={...pte,...Ete,zIndex:pR,size:je,fillOpacity:Hc,strokeOpacity:Hc,numOctaves:pR},gte={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},_te=To.length;function Ste(e,t,n){let r="",u=!0;for(let o=0;o<_te;o++){const l=To[o],c=e[l];if(c===void 0)continue;let f=!0;if(typeof c=="number"?f=c===(l.startsWith("scale")?1:0):f=parseFloat(c)===0,!f||n){const h=MB(c,K_[l]);if(!f){u=!1;const m=gte[l]||l;r+=`${m}(${h}) `}n&&(t[l]=h)}}return r=r.trim(),n?r=n(t,u?"":r):u&&(r="none"),r}function PB(e,t,n){const{style:r,vars:u,transformOrigin:o}=e;let l=!1,c=!1;for(const f in t){const h=t[f];if(bo.has(f)){l=!0;continue}else if(wB(f)){u[f]=h;continue}else{const m=MB(h,K_[f]);f.startsWith("origin")?(c=!0,o[f]=m):r[f]=m}}if(t.transform||(l||n?r.transform=Ste(t,e.transform,n):r.transform&&(r.transform="none")),c){const{originX:f="50%",originY:h="50%",originZ:m=0}=o;r.transformOrigin=`${f} ${h} ${m}`}}const Nte={offset:"stroke-dashoffset",array:"stroke-dasharray"},Ite={offset:"strokeDashoffset",array:"strokeDasharray"};function yte(e,t,n=1,r=0,u=!0){e.pathLength=1;const o=u?Nte:Ite;e[o.offset]=je.transform(-r);const l=je.transform(t),c=je.transform(n);e[o.array]=`${l} ${c}`}function ER(e,t,n){return typeof e=="string"?e:je.transform(t+n*e)}function Cte(e,t,n){const r=ER(t,e.x,e.width),u=ER(n,e.y,e.height);return`${r} ${u}`}function vte(e,{attrX:t,attrY:n,attrScale:r,originX:u,originY:o,pathLength:l,pathSpacing:c=1,pathOffset:f=0,...h},m,E){if(PB(e,h,E),m){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:g,style:_,dimensions:S}=e;g.transform&&(S&&(_.transform=g.transform),delete g.transform),S&&(u!==void 0||o!==void 0||_.transform)&&(_.transformOrigin=Cte(S,u!==void 0?u:.5,o!==void 0?o:.5)),t!==void 0&&(g.x=t),n!==void 0&&(g.y=n),r!==void 0&&(g.scale=r),l!==void 0&&yte(g,l,c,f,!1)}const Rte=e=>typeof e=="string"&&e.toLowerCase()==="svg";function HB(e,{style:t,vars:n},r,u){Object.assign(e.style,t,u&&u.getProjectionStyles(r));for(const o in n)e.style.setProperty(o,n[o])}const UB=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function Dte(e,t,n,r){HB(e,t,void 0,r);for(const u in t.attrs)e.setAttribute(UB.has(u)?u:j_(u),t.attrs[u])}const Tte={};function bte(e,{layout:t,layoutId:n}){return bo.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Tte[e]||e==="opacity")}function kB(e,t,n){var r;const{style:u}=e,o={};for(const l in u)(Sr(u[l])||t.style&&Sr(t.style[l])||bte(l,e)||((r=n==null?void 0:n.getValue(l))===null||r===void 0?void 0:r.liveStyle)!==void 0)&&(o[l]=u[l]);return o}function xte(e,t,n){const r=kB(e,t,n);for(const u in e)if(Sr(e[u])||Sr(t[u])){const o=To.indexOf(u)!==-1?"attr"+u.charAt(0).toUpperCase()+u.substring(1):u;r[o]=e[u]}return r}function GB(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}function Xh(e,t,n){const r=e.getProps();return OB(r,t,n!==void 0?n:r.custom,e)}const VB=new Set(["width","height","top","left","right","bottom",...To]);let Af;function Bte(){Af=void 0}const Iu={now:()=>(Af===void 0&&Iu.set(ih.isProcessing||ete.useManualTiming?ih.timestamp:performance.now()),Af),set:e=>{Af=e,queueMicrotask(Bte)}};function Fte(e,t){e.indexOf(t)===-1&&e.push(t)}function Ote(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class jB{constructor(){this.subscriptions=[]}add(t){return Fte(this.subscriptions,t),()=>Ote(this.subscriptions,t)}notify(t,n,r){const u=this.subscriptions.length;if(u)if(u===1)this.subscriptions[0](t,n,r);else for(let o=0;o<u;o++){const l=this.subscriptions[o];l&&l(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function zB(e,t){return t?e*(1e3/t):0}const gR=30,Lte=e=>!isNaN(parseFloat(e));class wte{constructor(t,n={}){this.version="11.18.2",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,u=!0)=>{const o=Iu.now();this.updatedAt!==o&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),u&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=Iu.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=Lte(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new jB);const r=this.events[t].add(n);return t==="change"?()=>{r(),Mr.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=Iu.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>gR)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,gR);return zB(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function uh(e,t){return new wte(e,t)}function Mte(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,uh(n))}function Pte(e,t){const n=Xh(e,t);let{transitionEnd:r={},transition:u={},...o}=n||{};o={...o,...r};for(const l in o){const c=dte(o[l]);Mte(e,l,c)}}function Hte(e){return!!(Sr(e)&&e.add)}function Ute(e,t){const n=e.getValue("willChange");if(Hte(n))return n.add(t)}function kte(e){return e.props[ote]}const KB=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,Gte=1e-7,Vte=12;function jte(e,t,n,r,u){let o,l,c=0;do l=t+(n-t)/2,o=KB(l,r,u)-e,o>0?n=l:t=l;while(Math.abs(o)>Gte&&++c<Vte);return l}function fd(e,t,n,r){if(e===t&&n===r)return Xt;const u=o=>jte(o,0,1,e,n);return o=>o===0||o===1?o:KB(u(o),t,r)}const $B=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,YB=e=>t=>1-e(1-t),ZB=fd(.33,1.53,.69,.99),$_=YB(ZB),WB=$B($_),qB=e=>(e*=2)<1?.5*$_(e):.5*(2-Math.pow(2,-10*(e-1))),Y_=e=>1-Math.sin(Math.acos(e)),zte=YB(Y_),XB=$B(Y_),QB=e=>/^0[^.\s]+$/u.test(e);function Kte(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||QB(e):!0}const ac=e=>Math.round(e*1e5)/1e5,Z_=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function $te(e){return e==null}const Yte=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,W_=(e,t)=>n=>!!(typeof n=="string"&&Yte.test(n)&&n.startsWith(e)||t&&!$te(n)&&Object.prototype.hasOwnProperty.call(n,t)),JB=(e,t,n)=>r=>{if(typeof r!="string")return r;const[u,o,l,c]=r.match(Z_);return{[e]:parseFloat(u),[t]:parseFloat(o),[n]:parseFloat(l),alpha:c!==void 0?parseFloat(c):1}},Zte=e=>Ua(0,255,e),CE={...xo,transform:e=>Math.round(Zte(e))},Ra={test:W_("rgb","red"),parse:JB("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+CE.transform(e)+", "+CE.transform(t)+", "+CE.transform(n)+", "+ac(Hc.transform(r))+")"};function Wte(e){let t="",n="",r="",u="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),u=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),u=e.substring(4,5),t+=t,n+=n,r+=r,u+=u),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:u?parseInt(u,16)/255:1}}const kg={test:W_("#"),parse:Wte,transform:Ra.transform},$s={test:W_("hsl","hue"),parse:JB("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Qs.transform(ac(t))+", "+Qs.transform(ac(n))+", "+ac(Hc.transform(r))+")"},In={test:e=>Ra.test(e)||kg.test(e)||$s.test(e),parse:e=>Ra.test(e)?Ra.parse(e):$s.test(e)?$s.parse(e):kg.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Ra.transform(e):$s.transform(e)},qte=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Xte(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(Z_))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(qte))===null||n===void 0?void 0:n.length)||0)>0}const eF="number",tF="color",Qte="var",Jte="var(",_R="${}",ene=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Uc(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},u=[];let o=0;const c=t.replace(ene,f=>(In.test(f)?(r.color.push(o),u.push(tF),n.push(In.parse(f))):f.startsWith(Jte)?(r.var.push(o),u.push(Qte),n.push(f)):(r.number.push(o),u.push(eF),n.push(parseFloat(f))),++o,_R)).split(_R);return{values:n,split:c,indexes:r,types:u}}function nF(e){return Uc(e).values}function rF(e){const{split:t,types:n}=Uc(e),r=t.length;return u=>{let o="";for(let l=0;l<r;l++)if(o+=t[l],u[l]!==void 0){const c=n[l];c===eF?o+=ac(u[l]):c===tF?o+=In.transform(u[l]):o+=u[l]}return o}}const tne=e=>typeof e=="number"?0:e;function nne(e){const t=nF(e);return rF(e)(t.map(tne))}const Bo={test:Xte,parse:nF,createTransformer:rF,getAnimatableNone:nne},rne=new Set(["brightness","contrast","saturate","opacity"]);function ine(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Z_)||[];if(!r)return e;const u=n.replace(r,"");let o=rne.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+u+")"}const une=/\b([a-z-]*)\(.*?\)/gu,Gg={...Bo,getAnimatableNone:e=>{const t=e.match(une);return t?t.map(ine).join(" "):e}},ane={...K_,color:In,backgroundColor:In,outlineColor:In,fill:In,stroke:In,borderColor:In,borderTopColor:In,borderRightColor:In,borderBottomColor:In,borderLeftColor:In,filter:Gg,WebkitFilter:Gg},q_=e=>ane[e];function iF(e,t){let n=q_(e);return n!==Gg&&(n=Bo),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const sne=new Set(["auto","none","0"]);function one(e,t,n){let r=0,u;for(;r<e.length&&!u;){const o=e[r];typeof o=="string"&&!sne.has(o)&&Uc(o).values.length&&(u=e[r]),r++}if(u&&n)for(const o of t)e[o]=iF(n,u)}const SR=e=>e===xo||e===je,NR=(e,t)=>parseFloat(e.split(", ")[t]),IR=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const u=r.match(/^matrix3d\((.+)\)$/u);if(u)return NR(u[1],t);{const o=r.match(/^matrix\((.+)\)$/u);return o?NR(o[1],e):0}},lne=new Set(["x","y","z"]),cne=To.filter(e=>!lne.has(e));function dne(e){const t=[];return cne.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const lo={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:IR(4,13),y:IR(5,14)};lo.translateX=lo.x;lo.translateY=lo.y;const ba=new Set;let Vg=!1,jg=!1;function uF(){if(jg){const e=Array.from(ba).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const u=dne(r);u.length&&(n.set(r,u),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const u=n.get(r);u&&u.forEach(([o,l])=>{var c;(c=r.getValue(o))===null||c===void 0||c.set(l)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}jg=!1,Vg=!1,ba.forEach(e=>e.complete()),ba.clear()}function aF(){ba.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(jg=!0)})}function fne(){aF(),uF()}class X_{constructor(t,n,r,u,o,l=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=u,this.element=o,this.isAsync=l}scheduleResolve(){this.isScheduled=!0,this.isAsync?(ba.add(this),Vg||(Vg=!0,Mr.read(aF),Mr.resolveKeyframes(uF))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:u}=this;for(let o=0;o<t.length;o++)if(t[o]===null)if(o===0){const l=u==null?void 0:u.get(),c=t[t.length-1];if(l!==void 0)t[0]=l;else if(r&&n){const f=r.readValue(n,c);f!=null&&(t[0]=f)}t[0]===void 0&&(t[0]=c),u&&l===void 0&&u.set(t[0])}else t[o]=t[o-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),ba.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,ba.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const sF=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),hne=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Ane(e){const t=hne.exec(e);if(!t)return[,];const[,n,r,u]=t;return[`--${n??r}`,u]}function oF(e,t,n=1){const[r,u]=Ane(e);if(!r)return;const o=window.getComputedStyle(t).getPropertyValue(r);if(o){const l=o.trim();return sF(l)?parseFloat(l):l}return z_(u)?oF(u,t,n+1):u}const lF=e=>t=>t.test(e),mne={test:e=>e==="auto",parse:e=>e},cF=[xo,je,Qs,_u,mte,Ate,mne],yR=e=>cF.find(lF(e));class dF extends X_{constructor(t,n,r,u,o){super(t,n,r,u,o,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let f=0;f<t.length;f++){let h=t[f];if(typeof h=="string"&&(h=h.trim(),z_(h))){const m=oF(h,n.current);m!==void 0&&(t[f]=m),f===t.length-1&&(this.finalKeyframe=h)}}if(this.resolveNoneKeyframes(),!VB.has(r)||t.length!==2)return;const[u,o]=t,l=yR(u),c=yR(o);if(l!==c)if(SR(l)&&SR(c))for(let f=0;f<t.length;f++){const h=t[f];typeof h=="string"&&(t[f]=parseFloat(h))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let u=0;u<t.length;u++)Kte(t[u])&&r.push(u);r.length&&one(t,r,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:r}=this;if(!t||!t.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=lo[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const u=n[n.length-1];u!==void 0&&t.getValue(r,u).jump(u,!1)}measureEndState(){var t;const{element:n,name:r,unresolvedKeyframes:u}=this;if(!n||!n.current)return;const o=n.getValue(r);o&&o.jump(this.measuredOrigin,!1);const l=u.length-1,c=u[l];u[l]=lo[r](n.measureViewportBox(),window.getComputedStyle(n.current)),c!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=c),!((t=this.removedTransforms)===null||t===void 0)&&t.length&&this.removedTransforms.forEach(([f,h])=>{n.getValue(f).set(h)}),this.resolveNoneKeyframes()}}const CR=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Bo.test(e)||e==="0")&&!e.startsWith("url("));function pne(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function Ene(e,t,n,r){const u=e[0];if(u===null)return!1;if(t==="display"||t==="visibility")return!0;const o=e[e.length-1],l=CR(u,t),c=CR(o,t);return!l||!c?!1:pne(e)||(n==="spring"||Co(n))&&r}const gne=e=>e!==null;function Qh(e,{repeat:t,repeatType:n="loop"},r){const u=e.filter(gne),o=t&&n!=="loop"&&t%2===1?0:u.length-1;return!o||r===void 0?u[o]:r}const _ne=40;class fF{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:u=0,repeatDelay:o=0,repeatType:l="loop",...c}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=Iu.now(),this.options={autoplay:t,delay:n,type:r,repeat:u,repeatDelay:o,repeatType:l,...c},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>_ne?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&fne(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=Iu.now(),this.hasAttemptedResolve=!0;const{name:r,type:u,velocity:o,delay:l,onComplete:c,onUpdate:f,isGenerator:h}=this.options;if(!h&&!Ene(t,r,u,o))if(l)this.options.duration=0;else{f&&f(Qh(t,this.options,n)),c&&c(),this.resolveFinishedPromise();return}const m=this.initPlayback(t,n);m!==!1&&(this._resolved={keyframes:t,finalKeyframe:n,...m},this.onPostResolved())}onPostResolved(){}then(t,n){return this.currentFinishedPromise.then(t,n)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}}const Jh=(e,t,n)=>e+(t-e)*n;function vE(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function Sne({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let u=0,o=0,l=0;if(!t)u=o=l=n;else{const c=n<.5?n*(1+t):n+t-n*t,f=2*n-c;u=vE(f,c,e+1/3),o=vE(f,c,e),l=vE(f,c,e-1/3)}return{red:Math.round(u*255),green:Math.round(o*255),blue:Math.round(l*255),alpha:r}}function ah(e,t){return n=>n>0?t:e}const RE=(e,t,n)=>{const r=e*e,u=n*(t*t-r)+r;return u<0?0:Math.sqrt(u)},Nne=[kg,Ra,$s],Ine=e=>Nne.find(t=>t.test(e));function vR(e){const t=Ine(e);if(!t)return!1;let n=t.parse(e);return t===$s&&(n=Sne(n)),n}const RR=(e,t)=>{const n=vR(e),r=vR(t);if(!n||!r)return ah(e,t);const u={...n};return o=>(u.red=RE(n.red,r.red,o),u.green=RE(n.green,r.green,o),u.blue=RE(n.blue,r.blue,o),u.alpha=Jh(n.alpha,r.alpha,o),Ra.transform(u))},yne=(e,t)=>n=>t(e(n)),eA=(...e)=>e.reduce(yne),zg=new Set(["none","hidden"]);function Cne(e,t){return zg.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function vne(e,t){return n=>Jh(e,t,n)}function Q_(e){return typeof e=="number"?vne:typeof e=="string"?z_(e)?ah:In.test(e)?RR:Tne:Array.isArray(e)?hF:typeof e=="object"?In.test(e)?RR:Rne:ah}function hF(e,t){const n=[...e],r=n.length,u=e.map((o,l)=>Q_(o)(o,t[l]));return o=>{for(let l=0;l<r;l++)n[l]=u[l](o);return n}}function Rne(e,t){const n={...e,...t},r={};for(const u in n)e[u]!==void 0&&t[u]!==void 0&&(r[u]=Q_(e[u])(e[u],t[u]));return u=>{for(const o in r)n[o]=r[o](u);return n}}function Dne(e,t){var n;const r=[],u={color:0,var:0,number:0};for(let o=0;o<t.values.length;o++){const l=t.types[o],c=e.indexes[l][u[l]],f=(n=e.values[c])!==null&&n!==void 0?n:0;r[o]=f,u[l]++}return r}const Tne=(e,t)=>{const n=Bo.createTransformer(t),r=Uc(e),u=Uc(t);return r.indexes.var.length===u.indexes.var.length&&r.indexes.color.length===u.indexes.color.length&&r.indexes.number.length>=u.indexes.number.length?zg.has(e)&&!u.values.length||zg.has(t)&&!r.values.length?Cne(e,t):eA(hF(Dne(r,u),u.values),n):ah(e,t)};function AF(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?Jh(e,t,n):Q_(e)(e,t)}const bne=5;function mF(e,t,n){const r=Math.max(t-bne,0);return zB(n-e(r),t-r)}const wt={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},DR=.001;function xne({duration:e=wt.duration,bounce:t=wt.bounce,velocity:n=wt.velocity,mass:r=wt.mass}){let u,o,l=1-t;l=Ua(wt.minDamping,wt.maxDamping,l),e=Ua(wt.minDuration,wt.maxDuration,mn(e)),l<1?(u=h=>{const m=h*l,E=m*e,g=m-n,_=Kg(h,l),S=Math.exp(-E);return DR-g/_*S},o=h=>{const E=h*l*e,g=E*n+n,_=Math.pow(l,2)*Math.pow(h,2)*e,S=Math.exp(-E),C=Kg(Math.pow(h,2),l);return(-u(h)+DR>0?-1:1)*((g-_)*S)/C}):(u=h=>{const m=Math.exp(-h*e),E=(h-n)*e+1;return-.001+m*E},o=h=>{const m=Math.exp(-h*e),E=(n-h)*(e*e);return m*E});const c=5/e,f=Fne(u,o,c);if(e=An(e),isNaN(f))return{stiffness:wt.stiffness,damping:wt.damping,duration:e};{const h=Math.pow(f,2)*r;return{stiffness:h,damping:l*2*Math.sqrt(r*h),duration:e}}}const Bne=12;function Fne(e,t,n){let r=n;for(let u=1;u<Bne;u++)r=r-e(r)/t(r);return r}function Kg(e,t){return e*Math.sqrt(1-t*t)}const One=["duration","bounce"],Lne=["stiffness","damping","mass"];function TR(e,t){return t.some(n=>e[n]!==void 0)}function wne(e){let t={velocity:wt.velocity,stiffness:wt.stiffness,damping:wt.damping,mass:wt.mass,isResolvedFromDuration:!1,...e};if(!TR(e,Lne)&&TR(e,One))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),u=r*r,o=2*Ua(.05,1,1-(e.bounce||0))*Math.sqrt(u);t={...t,mass:wt.mass,stiffness:u,damping:o}}else{const n=xne(e);t={...t,...n,mass:wt.mass},t.isResolvedFromDuration=!0}return t}function pF(e=wt.visualDuration,t=wt.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:u}=n;const o=n.keyframes[0],l=n.keyframes[n.keyframes.length-1],c={done:!1,value:o},{stiffness:f,damping:h,mass:m,duration:E,velocity:g,isResolvedFromDuration:_}=wne({...n,velocity:-mn(n.velocity||0)}),S=g||0,C=h/(2*Math.sqrt(f*m)),v=l-o,R=mn(Math.sqrt(f/m)),D=Math.abs(v)<5;r||(r=D?wt.restSpeed.granular:wt.restSpeed.default),u||(u=D?wt.restDelta.granular:wt.restDelta.default);let b;if(C<1){const x=Kg(R,C);b=B=>{const O=Math.exp(-C*R*B);return l-O*((S+C*R*v)/x*Math.sin(x*B)+v*Math.cos(x*B))}}else if(C===1)b=x=>l-Math.exp(-R*x)*(v+(S+R*v)*x);else{const x=R*Math.sqrt(C*C-1);b=B=>{const O=Math.exp(-C*R*B),H=Math.min(x*B,300);return l-O*((S+C*R*v)*Math.sinh(H)+x*v*Math.cosh(H))/x}}const L={calculatedDuration:_&&E||null,next:x=>{const B=b(x);if(_)c.done=x>=E;else{let O=0;C<1&&(O=x===0?An(S):mF(b,x,B));const H=Math.abs(O)<=r,U=Math.abs(l-B)<=u;c.done=H&&U}return c.value=c.done?l:B,c},toString:()=>{const x=Math.min(Gh(L),Uf),B=r_(O=>L.next(x*O).value,x,30);return x+"ms "+B}};return L}function bR({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:u=10,bounceStiffness:o=500,modifyTarget:l,min:c,max:f,restDelta:h=.5,restSpeed:m}){const E=e[0],g={done:!1,value:E},_=H=>c!==void 0&&H<c||f!==void 0&&H>f,S=H=>c===void 0?f:f===void 0||Math.abs(c-H)<Math.abs(f-H)?c:f;let C=n*t;const v=E+C,R=l===void 0?v:l(v);R!==v&&(C=R-E);const D=H=>-C*Math.exp(-H/r),b=H=>R+D(H),L=H=>{const U=D(H),G=b(H);g.done=Math.abs(U)<=h,g.value=g.done?R:G};let x,B;const O=H=>{_(g.value)&&(x=H,B=pF({keyframes:[g.value,S(g.value)],velocity:mF(b,H,g.value),damping:u,stiffness:o,restDelta:h,restSpeed:m}))};return O(0),{calculatedDuration:null,next:H=>{let U=!1;return!B&&x===void 0&&(U=!0,L(H),O(H)),x!==void 0&&H>=x?B.next(H-x):(!U&&L(H),g)}}}const Mne=fd(.42,0,1,1),Pne=fd(0,0,.58,1),EF=fd(.42,0,.58,1),Hne=e=>Array.isArray(e)&&typeof e[0]!="number",Une={linear:Xt,easeIn:Mne,easeInOut:EF,easeOut:Pne,circIn:Y_,circInOut:XB,circOut:zte,backIn:$_,backInOut:WB,backOut:ZB,anticipate:qB},xR=e=>{if(Vh(e)){wh(e.length===4);const[t,n,r,u]=e;return fd(t,n,r,u)}else if(typeof e=="string")return Une[e];return e};function kne(e,t,n){const r=[],u=n||AF,o=e.length-1;for(let l=0;l<o;l++){let c=u(e[l],e[l+1]);if(t){const f=Array.isArray(t)?t[l]||Xt:t;c=eA(f,c)}r.push(c)}return r}function Gne(e,t,{clamp:n=!0,ease:r,mixer:u}={}){const o=e.length;if(wh(o===t.length),o===1)return()=>t[0];if(o===2&&t[0]===t[1])return()=>t[1];const l=e[0]===e[1];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());const c=kne(t,r,u),f=c.length,h=m=>{if(l&&m<e[0])return t[0];let E=0;if(f>1)for(;E<e.length-2&&!(m<e[E+1]);E++);const g=xu(e[E],e[E+1],m);return c[E](g)};return n?m=>h(Ua(e[0],e[o-1],m)):h}function Vne(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const u=xu(0,t,r);e.push(Jh(n,1,u))}}function jne(e){const t=[0];return Vne(t,e.length-1),t}function zne(e,t){return e.map(n=>n*t)}function Kne(e,t){return e.map(()=>t||EF).splice(0,e.length-1)}function sh({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const u=Hne(r)?r.map(xR):xR(r),o={done:!1,value:t[0]},l=zne(n&&n.length===t.length?n:jne(t),e),c=Gne(l,t,{ease:Array.isArray(u)?u:Kne(t,u)});return{calculatedDuration:e,next:f=>(o.value=c(f),o.done=f>=e,o)}}const $ne=e=>{const t=({timestamp:n})=>e(n);return{start:()=>Mr.update(t,!0),stop:()=>Hg(t),now:()=>ih.isProcessing?ih.timestamp:Iu.now()}},Yne={decay:bR,inertia:bR,tween:sh,keyframes:sh,spring:pF},Zne=e=>e/100;class J_ extends fF{constructor(t){super(t),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:f}=this.options;f&&f()};const{name:n,motionValue:r,element:u,keyframes:o}=this.options,l=(u==null?void 0:u.KeyframeResolver)||X_,c=(f,h)=>this.onKeyframesResolved(f,h);this.resolver=new l(o,c,n,r,u),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){const{type:n="keyframes",repeat:r=0,repeatDelay:u=0,repeatType:o,velocity:l=0}=this.options,c=Co(n)?n:Yne[n]||sh;let f,h;c!==sh&&typeof t[0]!="number"&&(f=eA(Zne,AF(t[0],t[1])),t=[0,100]);const m=c({...this.options,keyframes:t});o==="mirror"&&(h=c({...this.options,keyframes:[...t].reverse(),velocity:-l})),m.calculatedDuration===null&&(m.calculatedDuration=Gh(m));const{calculatedDuration:E}=m,g=E+u,_=g*(r+1)-u;return{generator:m,mirroredGenerator:h,mapPercentToKeyframes:f,calculatedDuration:E,resolvedDuration:g,totalDuration:_}}onPostResolved(){const{autoplay:t=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!t?this.pause():this.state=this.pendingPlayState}tick(t,n=!1){const{resolved:r}=this;if(!r){const{keyframes:H}=this.options;return{done:!0,value:H[H.length-1]}}const{finalKeyframe:u,generator:o,mirroredGenerator:l,mapPercentToKeyframes:c,keyframes:f,calculatedDuration:h,totalDuration:m,resolvedDuration:E}=r;if(this.startTime===null)return o.next(0);const{delay:g,repeat:_,repeatType:S,repeatDelay:C,onUpdate:v}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-m/this.speed,this.startTime)),n?this.currentTime=t:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;const R=this.currentTime-g*(this.speed>=0?1:-1),D=this.speed>=0?R<0:R>m;this.currentTime=Math.max(R,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=m);let b=this.currentTime,L=o;if(_){const H=Math.min(this.currentTime,m)/E;let U=Math.floor(H),G=H%1;!G&&H>=1&&(G=1),G===1&&U--,U=Math.min(U,_+1),!!(U%2)&&(S==="reverse"?(G=1-G,C&&(G-=C/E)):S==="mirror"&&(L=l)),b=Ua(0,1,G)*E}const x=D?{done:!1,value:f[0]}:L.next(b);c&&(x.value=c(x.value));let{done:B}=x;!D&&h!==null&&(B=this.speed>=0?this.currentTime>=m:this.currentTime<=0);const O=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&B);return O&&u!==void 0&&(x.value=Qh(f,this.options,u)),v&&v(x.value),O&&this.finish(),x}get duration(){const{resolved:t}=this;return t?mn(t.calculatedDuration):0}get time(){return mn(this.currentTime)}set time(t){t=An(t),this.currentTime=t,this.holdTime!==null||this.speed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=mn(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=$ne,onPlay:n,startTime:r}=this.options;this.driver||(this.driver=t(o=>this.tick(o))),n&&n();const u=this.driver.now();this.holdTime!==null?this.startTime=u-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=u):this.startTime=r??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(t=this.currentTime)!==null&&t!==void 0?t:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:t}=this.options;t&&t()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}}const Wne=new Set(["opacity","clipPath","filter","transform"]);function qne(e,t,n,{delay:r=0,duration:u=300,repeat:o=0,repeatType:l="loop",ease:c="easeInOut",times:f}={}){const h={[t]:n};f&&(h.offset=f);const m=u_(c,u);return Array.isArray(m)&&(h.easing=m),e.animate(h,{delay:r,duration:u,easing:Array.isArray(m)?"linear":m,fill:"both",iterations:o+1,direction:l==="reverse"?"alternate":"normal"})}const Xne=Mh(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),oh=10,Qne=2e4;function Jne(e){return Co(e.type)||e.type==="spring"||!i_(e.ease)}function ere(e,t){const n=new J_({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:e[0]};const u=[];let o=0;for(;!r.done&&o<Qne;)r=n.sample(o),u.push(r.value),o+=oh;return{times:void 0,keyframes:u,duration:o-oh,ease:"linear"}}const gF={anticipate:qB,backInOut:WB,circInOut:XB};function tre(e){return e in gF}class BR extends fF{constructor(t){super(t);const{name:n,motionValue:r,element:u,keyframes:o}=this.options;this.resolver=new dF(o,(l,c)=>this.onKeyframesResolved(l,c),n,r,u),this.resolver.scheduleResolve()}initPlayback(t,n){let{duration:r=300,times:u,ease:o,type:l,motionValue:c,name:f,startTime:h}=this.options;if(!c.owner||!c.owner.current)return!1;if(typeof o=="string"&&Rc()&&tre(o)&&(o=gF[o]),Jne(this.options)){const{onComplete:E,onUpdate:g,motionValue:_,element:S,...C}=this.options,v=ere(t,C);t=v.keyframes,t.length===1&&(t[1]=t[0]),r=v.duration,u=v.times,o=v.ease,l="keyframes"}const m=qne(c.owner.current,f,t,{...this.options,duration:r,times:u,ease:o});return m.startTime=h??this.calcStartTime(),this.pendingTimeline?(kf(m,this.pendingTimeline),this.pendingTimeline=void 0):m.onfinish=()=>{const{onComplete:E}=this.options;c.set(Qh(t,this.options,n)),E&&E(),this.cancel(),this.resolveFinishedPromise()},{animation:m,duration:r,times:u,type:l,ease:o,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return mn(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return mn(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=An(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:n}=t;return n.playbackRate}set speed(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:n}=t;return n.playState}get startTime(){const{resolved:t}=this;if(!t)return null;const{animation:n}=t;return n.startTime}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{const{resolved:n}=this;if(!n)return Xt;const{animation:r}=n;kf(r,t)}return Xt}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:t}=this;if(!t)return;const{animation:n,keyframes:r,duration:u,type:o,ease:l,times:c}=t;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:h,onUpdate:m,onComplete:E,element:g,..._}=this.options,S=new J_({..._,keyframes:r,duration:u,type:o,ease:l,times:c,isGenerator:!0}),C=An(this.time);h.setWithVelocity(S.sample(C-oh).value,S.sample(C).value,oh)}const{onStop:f}=this.options;f&&f(),this.cancel()}complete(){const{resolved:t}=this;t&&t.animation.finish()}cancel(){const{resolved:t}=this;t&&t.animation.cancel()}static supports(t){const{motionValue:n,name:r,repeatDelay:u,repeatType:o,damping:l,type:c}=t;if(!n||!n.owner||!(n.owner.current instanceof HTMLElement))return!1;const{onUpdate:f,transformTemplate:h}=n.owner.getProps();return Xne()&&r&&Wne.has(r)&&!f&&!h&&!u&&o!=="mirror"&&l!==0&&c!=="inertia"}}const nre={type:"spring",stiffness:500,damping:25,restSpeed:10},rre=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),ire={type:"keyframes",duration:.8},ure={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},are=(e,{keyframes:t})=>t.length>2?ire:bo.has(e)?e.startsWith("scale")?rre(t[1]):nre:ure;function sre({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:u,repeat:o,repeatType:l,repeatDelay:c,from:f,elapsed:h,...m}){return!!Object.keys(m).length}const ore=(e,t,n,r={},u,o)=>l=>{const c=rd(r,e)||{},f=c.delay||r.delay||0;let{elapsed:h=0}=r;h=h-An(f);let m={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...c,delay:-h,onUpdate:g=>{t.set(g),c.onUpdate&&c.onUpdate(g)},onComplete:()=>{l(),c.onComplete&&c.onComplete()},name:e,motionValue:t,element:o?void 0:u};sre(c)||(m={...m,...are(e,m)}),m.duration&&(m.duration=An(m.duration)),m.repeatDelay&&(m.repeatDelay=An(m.repeatDelay)),m.from!==void 0&&(m.keyframes[0]=m.from);let E=!1;if((m.type===!1||m.duration===0&&!m.repeatDelay)&&(m.duration=0,m.delay===0&&(E=!0)),E&&!o&&t.get()!==void 0){const g=Qh(m.keyframes,c);if(g!==void 0)return Mr.update(()=>{m.onUpdate(g),m.onComplete()}),new KT([])}return!o&&BR.supports(m)?new BR(m):new J_(m)};function lre({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function _F(e,t,{delay:n=0,transitionOverride:r,type:u}={}){var o;let{transition:l=e.getDefaultTransition(),transitionEnd:c,...f}=t;r&&(l=r);const h=[],m=u&&e.animationState&&e.animationState.getState()[u];for(const E in f){const g=e.getValue(E,(o=e.latestValues[E])!==null&&o!==void 0?o:null),_=f[E];if(_===void 0||m&&lre(m,E))continue;const S={delay:n,...rd(l||{},E)};let C=!1;if(window.MotionHandoffAnimation){const R=kte(e);if(R){const D=window.MotionHandoffAnimation(R,E,Mr);D!==null&&(S.startTime=D,C=!0)}}Ute(e,E),g.start(ore(E,g,_,e.shouldReduceMotion&&VB.has(E)?{type:!1}:S,e,C));const v=g.animation;v&&h.push(v)}return c&&Promise.all(h).then(()=>{Mr.update(()=>{c&&Pte(e,c)})}),h}function $g(e,t,n={}){var r;const u=Xh(e,t,n.type==="exit"?(r=e.presenceContext)===null||r===void 0?void 0:r.custom:void 0);let{transition:o=e.getDefaultTransition()||{}}=u||{};n.transitionOverride&&(o=n.transitionOverride);const l=u?()=>Promise.all(_F(e,u,n)):()=>Promise.resolve(),c=e.variantChildren&&e.variantChildren.size?(h=0)=>{const{delayChildren:m=0,staggerChildren:E,staggerDirection:g}=o;return cre(e,t,m+h,E,g,n)}:()=>Promise.resolve(),{when:f}=o;if(f){const[h,m]=f==="beforeChildren"?[l,c]:[c,l];return h().then(()=>m())}else return Promise.all([l(),c(n.delay)])}function cre(e,t,n=0,r=0,u=1,o){const l=[],c=(e.variantChildren.size-1)*r,f=u===1?(h=0)=>h*r:(h=0)=>c-h*r;return Array.from(e.variantChildren).sort(dre).forEach((h,m)=>{h.notify("AnimationStart",t),l.push($g(h,t,{...o,delay:n+f(m)}).then(()=>h.notify("AnimationComplete",t)))}),Promise.all(l)}function dre(e,t){return e.sortNodePosition(t)}function fre(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const u=t.map(o=>$g(e,o,n));r=Promise.all(u)}else if(typeof t=="string")r=$g(e,t,n);else{const u=typeof t=="function"?Xh(e,t,n.custom):t;r=Promise.all(_F(e,u,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}const hre=V_.length;function SF(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?SF(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<hre;n++){const r=V_[n],u=e.props[r];(U_(u)||u===!1)&&(t[r]=u)}return t}const Are=[...G_].reverse(),mre=G_.length;function pre(e){return t=>Promise.all(t.map(({animation:n,options:r})=>fre(e,n,r)))}function Ere(e){let t=pre(e),n=FR(),r=!0;const u=f=>(h,m)=>{var E;const g=Xh(e,m,f==="exit"?(E=e.presenceContext)===null||E===void 0?void 0:E.custom:void 0);if(g){const{transition:_,transitionEnd:S,...C}=g;h={...h,...C,...S}}return h};function o(f){t=f(e)}function l(f){const{props:h}=e,m=SF(e.parent)||{},E=[],g=new Set;let _={},S=1/0;for(let v=0;v<mre;v++){const R=Are[v],D=n[R],b=h[R]!==void 0?h[R]:m[R],L=U_(b),x=R===f?D.isActive:null;x===!1&&(S=v);let B=b===m[R]&&b!==h[R]&&L;if(B&&r&&e.manuallyAnimateOnMount&&(B=!1),D.protectedKeys={..._},!D.isActive&&x===null||!b&&!D.prevProp||k_(b)||typeof b=="boolean")continue;const O=gre(D.prevProp,b);let H=O||R===f&&D.isActive&&!B&&L||v>S&&L,U=!1;const G=Array.isArray(b)?b:[b];let fe=G.reduce(u(R),{});x===!1&&(fe={});const{prevResolvedValues:ae={}}=D,ce={...ae,...fe},Z=ee=>{H=!0,g.has(ee)&&(U=!0,g.delete(ee)),D.needsAnimating[ee]=!0;const Q=e.getValue(ee);Q&&(Q.liveStyle=!1)};for(const ee in ce){const Q=fe[ee],Ae=ae[ee];if(_.hasOwnProperty(ee))continue;let P=!1;Ug(Q)&&Ug(Ae)?P=!GB(Q,Ae):P=Q!==Ae,P?Q!=null?Z(ee):g.add(ee):Q!==void 0&&g.has(ee)?Z(ee):D.protectedKeys[ee]=!0}D.prevProp=b,D.prevResolvedValues=fe,D.isActive&&(_={..._,...fe}),r&&e.blockInitialAnimation&&(H=!1),H&&(!(B&&O)||U)&&E.push(...G.map(ee=>({animation:ee,options:{type:R}})))}if(g.size){const v={};g.forEach(R=>{const D=e.getBaseTarget(R),b=e.getValue(R);b&&(b.liveStyle=!0),v[R]=D??null}),E.push({animation:v})}let C=!!E.length;return r&&(h.initial===!1||h.initial===h.animate)&&!e.manuallyAnimateOnMount&&(C=!1),r=!1,C?t(E):Promise.resolve()}function c(f,h){var m;if(n[f].isActive===h)return Promise.resolve();(m=e.variantChildren)===null||m===void 0||m.forEach(g=>{var _;return(_=g.animationState)===null||_===void 0?void 0:_.setActive(f,h)}),n[f].isActive=h;const E=l(f);for(const g in n)n[g].protectedKeys={};return E}return{animateChanges:l,setActive:c,setAnimateFunction:o,getState:()=>n,reset:()=>{n=FR(),r=!0}}}function gre(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!GB(t,e):!1}function pa(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function FR(){return{animate:pa(!0),whileInView:pa(),whileHover:pa(),whileTap:pa(),whileDrag:pa(),whileFocus:pa(),exit:pa()}}class Fo{constructor(t){this.isMounted=!1,this.node=t}update(){}}class _re extends Fo{constructor(t){super(t),t.animationState||(t.animationState=Ere(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();k_(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)===null||t===void 0||t.call(this)}}let Sre=0;class Nre extends Fo{constructor(){super(...arguments),this.id=Sre++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const u=this.node.animationState.setActive("exit",!t);n&&!t&&u.then(()=>n(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const Ire={animation:{Feature:_re},exit:{Feature:Nre}};function OR(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function NF(e){return{point:{x:e.pageX,y:e.pageY}}}const LR=()=>({min:0,max:0}),IF=()=>({x:LR(),y:LR()});function yre({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function Cre(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function vre(e,t){return yre(Cre(e.getBoundingClientRect(),t))}function wR(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const u="onHover"+n,o=r[u];o&&Mr.postRender(()=>o(t,NF(t)))}class Rre extends Fo{mount(){const{current:t}=this.node;t&&(this.unmount=ZT(t,n=>(wR(this.node,n,"Start"),r=>wR(this.node,r,"End"))))}unmount(){}}class Dre extends Fo{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=eA(OR(this.node.current,"focus",()=>this.onFocus()),OR(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function MR(e,t,n){const{props:r}=e;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const u="onTap"+(n==="End"?"":n),o=r[u];o&&Mr.postRender(()=>o(t,NF(t)))}class Tre extends Fo{mount(){const{current:t}=this.node;t&&(this.unmount=qT(t,n=>(MR(this.node,n,"Start"),(r,{success:u})=>MR(this.node,r,u?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const Yg=new WeakMap,DE=new WeakMap,bre=e=>{const t=Yg.get(e.target);t&&t(e)},xre=e=>{e.forEach(bre)};function Bre({root:e,...t}){const n=e||document;DE.has(n)||DE.set(n,{});const r=DE.get(n),u=JSON.stringify(t);return r[u]||(r[u]=new IntersectionObserver(xre,{root:e,...t})),r[u]}function Fre(e,t,n){const r=Bre(t);return Yg.set(e,n),r.observe(e),()=>{Yg.delete(e),r.unobserve(e)}}const Ore={some:0,all:1};class Lre extends Fo{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:u="some",once:o}=t,l={root:n?n.current:void 0,rootMargin:r,threshold:typeof u=="number"?u:Ore[u]},c=f=>{const{isIntersecting:h}=f;if(this.isInView===h||(this.isInView=h,o&&!h&&this.hasEnteredView))return;h&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",h);const{onViewportEnter:m,onViewportLeave:E}=this.node.getProps(),g=h?m:E;g&&g(f)};return Fre(this.node.current,l,c)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(wre(t,n))&&this.startObserver()}unmount(){}}function wre({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const Mre={inView:{Feature:Lre},tap:{Feature:Tre},focus:{Feature:Dre},hover:{Feature:Rre}},Zg={current:null},yF={current:!1};function Pre(){if(yF.current=!0,!!Jee)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Zg.current=e.matches;e.addListener(t),t()}else Zg.current=!1}const Hre=[...cF,In,Bo],Ure=e=>Hre.find(lF(e)),PR=new WeakMap;function kre(e,t,n){for(const r in t){const u=t[r],o=n[r];if(Sr(u))e.addValue(r,u);else if(Sr(o))e.addValue(r,uh(u,{owner:e}));else if(o!==u)if(e.hasValue(r)){const l=e.getValue(r);l.liveStyle===!0?l.jump(u):l.hasAnimated||l.set(u)}else{const l=e.getStaticValue(r);e.addValue(r,uh(l!==void 0?l:u,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const HR=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class Gre{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:u,blockInitialAnimation:o,visualState:l},c={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=X_,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const _=Iu.now();this.renderScheduledAt<_&&(this.renderScheduledAt=_,Mr.render(this.render,!1,!0))};const{latestValues:f,renderState:h,onUpdate:m}=l;this.onUpdate=m,this.latestValues=f,this.baseTarget={...f},this.initialValues=n.initial?{...f}:{},this.renderState=h,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=u,this.options=c,this.blockInitialAnimation=!!o,this.isControllingVariants=FB(n),this.isVariantNode=ate(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:E,...g}=this.scrapeMotionValuesFromProps(n,{},this);for(const _ in g){const S=g[_];f[_]!==void 0&&Sr(S)&&S.set(f[_],!1)}}mount(t){this.current=t,PR.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),yF.current||Pre(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Zg.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){PR.delete(this.current),this.projection&&this.projection.unmount(),Hg(this.notifyUpdate),Hg(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=bo.has(t),u=n.on("change",c=>{this.latestValues[t]=c,this.props.onUpdate&&Mr.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),o=n.on("renderRequest",this.scheduleRender);let l;window.MotionCheckAppearSync&&(l=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{u(),o(),l&&l(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in Pc){const n=Pc[t];if(!n)continue;const{isEnabled:r,Feature:u}=n;if(!this.features[t]&&u&&r(this.props)&&(this.features[t]=new u(this)),this.features[t]){const o=this.features[t];o.isMounted?o.update():(o.mount(),o.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):IF()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<HR.length;r++){const u=HR[r];this.propEventSubscriptions[u]&&(this.propEventSubscriptions[u](),delete this.propEventSubscriptions[u]);const o="on"+u,l=t[o];l&&(this.propEventSubscriptions[u]=this.on(u,l))}this.prevMotionValues=kre(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=uh(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){var r;let u=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(r=this.getBaseTargetFromProps(this.props,t))!==null&&r!==void 0?r:this.readValueFromInstance(this.current,t,this.options);return u!=null&&(typeof u=="string"&&(sF(u)||QB(u))?u=parseFloat(u):!Ure(u)&&Bo.test(n)&&(u=iF(t,n)),this.setBaseTarget(t,Sr(u)?u.get():u)),Sr(u)?u.get():u}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props;let u;if(typeof r=="string"||typeof r=="object"){const l=OB(this.props,r,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);l&&(u=l[t])}if(r&&u!==void 0)return u;const o=this.getBaseTargetFromProps(this.props,t);return o!==void 0&&!Sr(o)?o:this.initialValues[t]!==void 0&&u===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new jB),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class CF extends Gre{constructor(){super(...arguments),this.KeyframeResolver=dF}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Sr(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function Vre(e){return window.getComputedStyle(e)}class jre extends CF{constructor(){super(...arguments),this.type="html",this.renderInstance=HB}readValueFromInstance(t,n){if(bo.has(n)){const r=q_(n);return r&&r.default||0}else{const r=Vre(t),u=(wB(n)?r.getPropertyValue(n):r[n])||0;return typeof u=="string"?u.trim():u}}measureInstanceViewportBox(t,{transformPagePoint:n}){return vre(t,n)}build(t,n,r){PB(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return kB(t,n,r)}}class zre extends CF{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=IF}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(bo.has(n)){const r=q_(n);return r&&r.default||0}return n=UB.has(n)?n:j_(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return xte(t,n,r)}build(t,n,r){vte(t,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,n,r,u){Dte(t,n,r,u)}mount(t){this.isSVGTag=Rte(t.tagName),super.mount(t)}}const Kre=(e,t)=>cte(e)?new zre(t):new jre(t,{allowProjection:e!==y.Fragment}),$re={renderer:Kre,...Ire,...Mre},Yre=({children:e})=>N.jsx(ute,{features:$re,children:e}),Zre=({children:e})=>N.jsx(Yre,{children:N.jsxs(nH,{children:[N.jsx(Qee,{}),e]})}),Wre=({children:e})=>N.jsx(KM,{children:N.jsx(IM,{children:N.jsx(g9,{path:"*",element:e})})});/**
298
+ * @license lucide-react v0.475.0 - ISC
299
+ *
300
+ * This source code is licensed under the ISC license.
301
+ * See the LICENSE file in the root directory of this source tree.
302
+ */const qre=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),vF=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();/**
303
+ * @license lucide-react v0.475.0 - ISC
304
+ *
305
+ * This source code is licensed under the ISC license.
306
+ * See the LICENSE file in the root directory of this source tree.
307
+ */var Xre={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
308
+ * @license lucide-react v0.475.0 - ISC
309
+ *
310
+ * This source code is licensed under the ISC license.
311
+ * See the LICENSE file in the root directory of this source tree.
312
+ */const Qre=y.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:u="",children:o,iconNode:l,...c},f)=>y.createElement("svg",{ref:f,...Xre,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:vF("lucide",u),...c},[...l.map(([h,m])=>y.createElement(h,m)),...Array.isArray(o)?o:[o]]));/**
313
+ * @license lucide-react v0.475.0 - ISC
314
+ *
315
+ * This source code is licensed under the ISC license.
316
+ * See the LICENSE file in the root directory of this source tree.
317
+ */const RF=(e,t)=>{const n=y.forwardRef(({className:r,...u},o)=>y.createElement(Qre,{ref:o,iconNode:t,className:vF(`lucide-${qre(e)}`,r),...u}));return n.displayName=`${e}`,n};/**
318
+ * @license lucide-react v0.475.0 - ISC
319
+ *
320
+ * This source code is licensed under the ISC license.
321
+ * See the LICENSE file in the root directory of this source tree.
322
+ */const Jre=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],eie=RF("ChevronRight",Jre);/**
323
+ * @license lucide-react v0.475.0 - ISC
324
+ *
325
+ * This source code is licensed under the ISC license.
326
+ * See the LICENSE file in the root directory of this source tree.
327
+ */const tie=[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]],nie=RF("Pencil",tie),Wg="dictionaryList",DF={key:"dictionary-edition-drawer",content:{openDictionaryEditor:{label:_e({en:"Click to open the dictionary in the editor",fr:"Cliquez pour ouvrir le dictionnaire dans l’éditeur",es:"Haga clic para abrir el diccionario en el editor",de:"Klicken Sie hier, um das Wörterbuch im Editor zu öffnen",ja:"エディターで辞書を開く",ko:"편집기에서 사전 열기",zh:"点击打开词典到编辑器",it:"Fai clic per aprire il dizionario nell’editor",pt:"Clique para abrir o dicionário no editor",hi:"एडिटर में शब्दकोश खोलने के लिए क्लिक करें",ar:"انقر لفتح قاموس في المحرر",ru:"Нажмите, чтобы открыть словарь в редакторе","en-GB":"Click to open the dictionary in the editor"})},backButtonText:_e({en:"Dictionary list",fr:"Liste des dictionnaires",es:"Lista de diccionarios",de:"Wörterbuchliste",ja:"辞書リスト",ko:"사전 목록",zh:"词典列表",it:"Elenco di dizionari",pt:"Lista de dicionários",hi:"शब्दकोश सूची",ar:"قائمة القوامل",ru:"Список словарей","en-GB":"Dictionary list"}),modalTitle:_e({en:"Edit dictionary",fr:"Modifier le dictionnaire",es:"Editar el diccionario",de:"Wörterbuch bearbeiten",ja:"辞書を編集",ko:"사전 편집",zh:"编辑词典",it:"Modifica dizionario",pt:"Editar dicionário",hi:"शब्दकोश संपादित करें",ar:"تحرير قاموس",ru:"Редактировать словарь","en-GB":"Edit dictionary"}),noDictionaryFocused:_e({en:"No dictionary focused",fr:"Aucun dictionnaire sélectionné",es:"No hay diccionario enfocado",de:"Kein Wörterbuch ausgewählt",ja:"フォーカスされた辞書がありません",ko:"포커스가 있는 사전이 없습니다",zh:"没有聚焦的词典",it:"Nessun dizionario selezionato",pt:"Nenhum dicionário focalizado",hi:"कोई फोकस शब्दकोश नहीं है",ar:"لا يوجد قاموس مرتبط",ru:"Нет фокусированного словаря","en-GB":"No dictionary focused"})}},eS=e=>`dictionary_edition_${e}`,TF=e=>{const t=eS(e),{isOpen:n,open:r,close:u}=ph(),{getEditedContentValue:o}=fo(),{focusedContent:l,setFocusedContent:c}=Ou();return y.useEffect(()=>{var f;l&&(((f=l.keyPath)==null?void 0:f.length)??0)>0&&r(t)},[l,r,t]),{isOpen:n(t),focusedContent:l,getEditedContentValue:o,close:()=>{u(t),c(f=>f!=null&&f.dictionaryKey?{...f,keyPath:[]}:f)}}},rie=({locale:e,identifier:t,handleOnBack:n,isDarkMode:r})=>{const{modalTitle:u,openDictionaryEditor:o}=sn(DF),[l,c]=y.useState(!1),{all:f}=BB(),{focusedContent:h}=TF(t),m=y.useCallback(()=>{c(!1),n()},[n]),E=h==null?void 0:h.dictionaryKey;if(!E)return N.jsx(N.Fragment,{children:"No dictionary focused"});const g=f[E];return g?N.jsxs(N.Fragment,{children:[N.jsx(hY,{isOpen:l,onClose:()=>c(!1),hasCloseButton:!0,title:u.value,size:"xl",transparency:"lg",children:N.jsx("div",{className:"size-full px-3 pt-5",children:N.jsx(Xee,{dictionary:g,onClickDictionaryList:m,isDarkMode:r,mode:["local","remote"]})})}),N.jsxs("div",{className:"border-text/20 /20 mb-5 flex w-full border-b border-dashed px-3 pb-2",children:[N.jsx("h3",{className:"w-full text-center text-lg",children:g.title?g.title:g.key}),N.jsx(Et,{variant:"hoverable",color:"text",size:"icon-md",IconRight:nie,label:o.label.value,onClick:()=>c(!0)})]}),N.jsx(IY,{dictionary:g,locale:e,mode:["local","remote"]})]}):N.jsx(N.Fragment,{children:"No dictionary focused"})},iie=({locale:e,dictionaryKey:t,isDarkMode:n})=>{const{backButtonText:r}=sn(DF),u=eS(t),{focusedContent:o,close:l}=TF(t),{openDictionaryListDrawer:c}=ph(h=>({openDictionaryListDrawer:()=>h.open(Wg)})),f=()=>{l(),c()};return N.jsx(K9,{identifier:u,backButton:{onBack:f,text:r.value},onClose:l,children:o&&N.jsx(rie,{focusedContent:o,locale:e,identifier:u,handleOnBack:f,isDarkMode:n})})},uie=({locale:e,isDarkMode:t})=>{const{focusedContent:n}=Ou(),r=n==null?void 0:n.dictionaryKey;return r?N.jsx(iie,{locale:e,dictionaryKey:r,isDarkMode:t}):N.jsx(N.Fragment,{})},aie=()=>{const{all:e}=BB(),t=y.useMemo(()=>Object.keys(e),[e]),{close:n,open:r}=ph(),{editedContent:u}=Fn(),{setFocusedContent:o}=Ou(),l=f=>{n(Wg);const{filePath:h}=e[f];o({dictionaryKey:f,dictionaryPath:h}),r(eS(f))},c=y.useCallback(f=>Object.keys(u??{}).includes(f),[u]);return N.jsx(K9,{title:"Dictionary list",identifier:Wg,children:t.map(f=>N.jsx("div",{children:N.jsx(Et,{label:`Open dictionary editor ${f}`,onClick:()=>l(f),variant:"hoverable",color:"text",IconRight:eie,size:"md",isFullWidth:!0,children:c(f)?`✎ ${f}`:f})},f))})},sie=({children:e})=>{const[t]=ka("INTLAYER_CURRENT_LOCALE",void 0,{receive:!0,emit:!1});return N.jsxs("div",{className:"bg-card relative size-full p-3",children:[e,N.jsx(uie,{locale:t}),N.jsx(aie,{})]})},oie=()=>{const[e,t]=y.useState();return y.useEffect(()=>{fetch("/api/config").then(n=>n.json()).then(n=>t(n.data))},[]),e},lie=({children:e,iframeRef:t})=>{const n=oie(),r=n!=null&&n.editor.applicationURL?n==null?void 0:n.editor.applicationURL:"*",u=(n==null?void 0:n.editor.editorURL)??"*";return n?N.jsx(c2,{postMessage:o=>{var l,c;window==null||window.postMessage(o,u),(c=(l=t.current)==null?void 0:l.contentWindow)==null||c.postMessage(o,r)},allowedOrigins:[r,u],mode:"editor",configuration:n,children:e}):N.jsx(eo,{})},cie=()=>{const{editedContent:e,setEditedContentState:t}=Fn(),n=()=>{const r=localStorage==null?void 0:localStorage.getItem("INTLAYER_EDITED_CONTENT_CHANGED");if(r)try{const u=JSON.parse(r);t(u)}catch(u){console.error(u)}};return y.useEffect(()=>{typeof e>"u"||localStorage==null||localStorage.setItem("INTLAYER_EDITED_CONTENT_CHANGED",JSON.stringify(e))},[e]),y.useEffect(()=>{typeof e<"u"||n()},[]),n},die=(...e)=>L9(Ah(e)),fie={key:"no-application-url-view",content:{title:_e({en:"Your project configuration do not includes application URL","en-GB":"Your project configuration do not includes application URL",fr:"Votre configuration de projet ne comprend pas l’URL de l’application",es:"Su configuración de proyecto no incluye la URL de la aplicación",de:"Ihre Projektkonfiguration enthält keine Anwendungs-URL",ja:"あなたのプロジェクト構成にはアプリケーション URL が含まれていません",ko:"당신의 프로젝트 구성에 앱 URL이 포함되어 있지 않습니다.",zh:"您的项目配置未包含应用程序 URL",pt:"Sua configuração do projeto não inclui a URL do aplicativo",ru:"Ваша конфигурация проекта не включает URL-адрес приложения",ar:"تم إنشاء مشروعك بدون تضمين عنوان URL التطبيق",hi:"आपके प्रोजेक्ट कॉन्फ़िगरेशन में ऐप का URL शामिल नहीं है",it:"La configurazione del progetto non include l’URL dell’applicazione"}),description:_e({en:"To use the editor, you need to add the URL of the application to access to the configuration file.","en-GB":"To use the editor, you need to add the URL of the application to access to the configuration file.",fr:"Pour utiliser l’éditeur, vous devez ajouter l’URL de l’application pour accéder au fichier de configuration.",es:"Para usar el editor, debe agregar la URL de la aplicación para acceder al archivo de configuración.",de:"Um den Editor zu verwenden, müssen Sie die URL der Anwendung hinzufügen, um auf die Konfigurationsdatei zuzugreifen.",ja:"エディターを使用するには、アプリケーションの URL を設定ファイルに追加する必要があります。",ko:"에디터를 사용하려면 설정 파일에 앱 URL을 추가해야 합니다.",zh:"要使用编辑器,您需要将应用程序 URL 添加到访问配置文件。",pt:"Para usar o editor, você precisa adicionar a URL do aplicativo para acessar o arquivo de configuração.",ru:"Чтобы использовать редактор, вам необходимо добавить URL-адрес приложения для доступа к файлу конфигурации.",ar:"لاستخدام المحرر، يجب عليك إضافة عنوان URL التطبيق للوصول إلى ملف التكوين.",hi:"एडिटर का उपयोग करने के लिए, आपको कॉन्फ़िगरेशन फ़ाइल तक ऐप का URL को जोड़ना होगा।",it:"Per utilizzare l’editor, è necessario aggiungere l’URL dell’applicazione per accedere al file di configurazione."}),documentationLink:{label:_e({en:"Click to go to the editor documentation","en-GB":"Click to go to the editor documentation",fr:"Cliquez ici pour accéder à la documentation de l’éditeur",es:"Haga clic aquí para acceder a la documentación del editor",de:"Klicken Sie hier, um die Editor-Dokumentation zu besuchen",ja:"エディターのドキュメントに移動するには、ここをクリックしてください",ko:"에디터 문서로 이동하려면 여기를 클릭하십시오.",zh:"点击此处访问编辑器文档",pt:"Clique aqui para acessar a documentação do editor",ru:"Нажмите, чтобы перейти к документации редактора",ar:"انقر هنا للوصول إلى وثائق المحرر",hi:"एडिटर को डॉक्यूमेंट पर जाए रखना चाहते हैं?",it:"Fai clic qui per accedere alla documentazione dell’editor"}),text:_e({en:"See how to configure the editor","en-GB":"See how to configure the editor",fr:"Voir comment configurer l’éditeur",de:"Siehe, wie man den Editor konfiguriert",ar:"انظر كيفية تكوين المحرر",hi:"एडिटर को काने के बारे में देखें",it:"Vedi come configurare l’editor",ja:"エディターの設定方法を見る",ru:"Смотрите, как настроить редактор",es:"Vea cómo configurar el editor",pt:"Veja como configurar o editor",ko:"에디터 설정 방법을 보십시오",zh:"查看如何配置编辑器"})}}},hie=()=>{const{title:e,description:t,documentationLink:n}=sn(fie);return N.jsxs("div",{className:"flex flex-col gap-6",children:[N.jsx(N_,{className:"mb-8",children:e}),N.jsx("strong",{className:"text-neutral block",children:t}),N.jsx(M_,{label:n.label.value,href:"https://intlayer.org/doc/concept/configuration#editor-configuration",color:"text",children:n.text})]})},Aie=({iframeRef:e,applicationPath:t})=>{const{editor:n}=ii(),r=()=>u(n.enabled),u=r2();n9(r),cie(),h2();const[o,l]=y.useState(!1),[c]=d2(void 0,{receive:!0,emit:!1});return y.useEffect(()=>{typeof c=="string"&&window.history.replaceState({},"",c)},[c]),n.applicationURL?N.jsxs("div",{className:"size-full overflow-hidden rounded-lg",children:[N.jsx(eo,{isLoading:o}),N.jsx("iframe",{src:`${n.applicationURL}${t}`,title:"Intlayer Application",className:die("size-full",o&&"hidden"),ref:e,onLoad:()=>{l(!1),r()}})]}):N.jsx("div",{className:"flex size-full items-center justify-center",children:N.jsx(ai,{className:"flex max-w-xl flex-col gap-4 p-6",children:N.jsx(hie,{})})})},mie=()=>{const e=y.useRef(null),t=Lu();return N.jsx(lie,{iframeRef:e,children:N.jsx(g2,{disableEditor:!0,children:N.jsx(sie,{children:N.jsx(Aie,{iframeRef:e,applicationPath:t.pathname})})})})},pie=()=>N.jsx(Wre,{children:N.jsx(Zre,{children:N.jsx(mie,{})})});nw.createRoot(document.getElementById("root")).render(N.jsx(y.StrictMode,{children:N.jsx(pie,{})}));