intlayer-editor 5.3.5 → 5.3.7

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.
@@ -1,327 +0,0 @@
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 $L=Object.defineProperty;var YL=(e,t,n)=>t in e?$L(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var oe=(e,t,n)=>YL(e,typeof t!="symbol"?t+"":t,n);function ZL(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 WL(){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 qL(){return wy||(wy=1,op.exports=WL()),op.exports}var N=qL(),lp={exports:{}},Qe={};/**
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 QL(){if(My)return Qe;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 T(P,W,j){this.props=P,this.context=W,this.refs=C,this.updater=j||_}var b=T.prototype=new R;b.constructor=T,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,fe){return j=fe.ref,{$$typeof:e,type:P,key:W,ref:j!==void 0?j:null,props:fe}}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 ce=/\/+/g;function ae(P,W){return typeof P=="object"&&P!==null&&P.key!=null?G(""+P.key):W.toString(36)}function de(){}function Z(P){switch(P.status){case"fulfilled":return P.value;case"rejected":throw P.reason;default:switch(typeof P.status=="string"?P.then(de,de):(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 fe=typeof P;(fe==="undefined"||fe==="boolean")&&(P=null);var ge=!1;if(P===null)ge=!0;else switch(fe){case"bigint":case"string":case"number":ge=!0;break;case"object":switch(P.$$typeof){case e:case t:ge=!0;break;case m:return ge=P._init,te(ge(P._payload),W,j,re,ne)}}if(ge)return ne=ne(P),ge=re===""?"."+ae(P,0):re,L(ne)?(j="",ge!=null&&(j=ge.replace(ce,"$&/")+"/"),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(ce,"$&/")+"/")+ge)),W.push(ne)),1;ge=0;var pe=re===""?".":re+":";if(L(P))for(var ve=0;ve<P.length;ve++)re=P[ve],fe=pe+ae(re,ve),ge+=te(re,W,j,fe,ne);else if(ve=g(P),typeof ve=="function")for(P=ve.call(P),ve=0;!(re=P.next()).done;)re=re.value,fe=pe+ae(re,ve++),ge+=te(re,W,j,fe,ne);else if(fe==="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 ge}function V(P,W,j){if(P==null)return P;var re=[],ne=0;return te(P,re,"","",function(fe){return W.call(j,fe,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 X=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 Qe.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}},Qe.Component=v,Qe.Fragment=n,Qe.Profiler=u,Qe.PureComponent=T,Qe.StrictMode=r,Qe.Suspense=f,Qe.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=x,Qe.act=function(){throw Error("act(...) is not supported in production builds of React.")},Qe.cache=function(P){return function(){return P.apply(null,arguments)}},Qe.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,fe=void 0;if(W!=null)for(ge in W.ref!==void 0&&(fe=void 0),W.key!==void 0&&(ne=""+W.key),W)!B.call(W,ge)||ge==="key"||ge==="__self"||ge==="__source"||ge==="ref"&&W.ref===void 0||(re[ge]=W[ge]);var ge=arguments.length-2;if(ge===1)re.children=j;else if(1<ge){for(var pe=Array(ge),ve=0;ve<ge;ve++)pe[ve]=arguments[ve+2];re.children=pe}return O(P.type,ne,void 0,void 0,fe,re)},Qe.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},Qe.createElement=function(P,W,j){var re,ne={},fe=null;if(W!=null)for(re in W.key!==void 0&&(fe=""+W.key),W)B.call(W,re)&&re!=="key"&&re!=="__self"&&re!=="__source"&&(ne[re]=W[re]);var ge=arguments.length-2;if(ge===1)ne.children=j;else if(1<ge){for(var pe=Array(ge),ve=0;ve<ge;ve++)pe[ve]=arguments[ve+2];ne.children=pe}if(P&&P.defaultProps)for(re in ge=P.defaultProps,ge)ne[re]===void 0&&(ne[re]=ge[re]);return O(P,fe,void 0,void 0,null,ne)},Qe.createRef=function(){return{current:null}},Qe.forwardRef=function(P){return{$$typeof:c,render:P}},Qe.isValidElement=U,Qe.lazy=function(P){return{$$typeof:m,_payload:{_status:-1,_result:P},_init:ee}},Qe.memo=function(P,W){return{$$typeof:h,type:P,compare:W===void 0?null:W}},Qe.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,X)}catch(fe){X(fe)}finally{x.T=W}},Qe.unstable_useCacheRefresh=function(){return x.H.useCacheRefresh()},Qe.use=function(P){return x.H.use(P)},Qe.useActionState=function(P,W,j){return x.H.useActionState(P,W,j)},Qe.useCallback=function(P,W){return x.H.useCallback(P,W)},Qe.useContext=function(P){return x.H.useContext(P)},Qe.useDebugValue=function(){},Qe.useDeferredValue=function(P,W){return x.H.useDeferredValue(P,W)},Qe.useEffect=function(P,W){return x.H.useEffect(P,W)},Qe.useId=function(){return x.H.useId()},Qe.useImperativeHandle=function(P,W,j){return x.H.useImperativeHandle(P,W,j)},Qe.useInsertionEffect=function(P,W){return x.H.useInsertionEffect(P,W)},Qe.useLayoutEffect=function(P,W){return x.H.useLayoutEffect(P,W)},Qe.useMemo=function(P,W){return x.H.useMemo(P,W)},Qe.useOptimistic=function(P,W){return x.H.useOptimistic(P,W)},Qe.useReducer=function(P,W,j){return x.H.useReducer(P,W,j)},Qe.useRef=function(P){return x.H.useRef(P)},Qe.useState=function(P){return x.H.useState(P)},Qe.useSyncExternalStore=function(P,W,j){return x.H.useSyncExternalStore(P,W,j)},Qe.useTransition=function(){return x.H.useTransition()},Qe.version="19.0.0",Qe}var Py;function kc(){return Py||(Py=1,lp.exports=QL()),lp.exports}var y=kc();const $e=lh(y),XL=ZL({__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 JL(){return Hy||(Hy=1,function(e){function t(V,ee){var X=V.length;V.push(ee);e:for(;0<X;){var Ae=X-1>>>1,P=V[Ae];if(0<u(P,ee))V[Ae]=ee,V[X]=P,X=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],X=V.pop();if(X!==ee){V[0]=X;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,fe=V[ne];if(0>u(re,X))ne<P&&0>u(fe,re)?(V[Ae]=fe,V[ne]=X,Ae=ne):(V[Ae]=re,V[j]=X,Ae=j);else if(ne<P&&0>u(fe,X))V[Ae]=fe,V[ne]=X,Ae=ne;else break e}}return ee}function u(V,ee){var X=V.sortIndex-ee.sortIndex;return X!==0?X: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,T=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 X=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=X,_=!1}ee=void 0}}finally{ee?ce():x=!1}}}var ce;if(typeof T=="function")ce=function(){T(G)};else if(typeof MessageChannel<"u"){var ae=new MessageChannel,de=ae.port2;ae.port1.onmessage=G,ce=function(){de.postMessage(null)}}else ce=function(){v(G,0)};function Z(){x||(x=!0,ce())}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 X=g;g=ee;try{return V()}finally{g=X}},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 X=g;g=V;try{return ee()}finally{g=X}},e.unstable_scheduleCallback=function(V,ee,X){var Ae=e.unstable_now();switch(typeof X=="object"&&X!==null?(X=X.delay,X=typeof X=="number"&&0<X?Ae+X:Ae):X=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=X+P,V={id:m++,callback:ee,priorityLevel:V,startTime:X,expirationTime:P,sortIndex:-1},X>Ae?(V.sortIndex=X,t(h,V),n(f)===null&&V===n(h)&&(C?(R(B),B=-1):C=!0,te(L,X-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 X=g;g=ee;try{return V.apply(this,arguments)}finally{g=X}}}}(fp)),fp}var Uy;function ew(){return Uy||(Uy=1,dp.exports=JL()),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 tw(){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 GR(){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=tw(),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 nw(){if(Vy)return xl;Vy=1;var e=ew(),t=kc(),n=GR();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"),T=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 T: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,ce,ae;function de(a){if(ce===void 0)try{throw Error()}catch(d){var s=d.stack.trim().match(/\n( *(at )?)/);ce=s&&s[1]||"",ae=-1<d.stack.indexOf(`
43
- at`)?" (<anonymous>)":-1<d.stack.indexOf("@")?"@unknown:0:0":""}return`
44
- `+ce+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(),D=I[0],F=I[1];if(D&&F){var M=D.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:"")?de(d):""}function V(a){switch(a.tag){case 26:case 27:case 5:return de(a.type);case 16:return de("Lazy");case 13:return de("Suspense");case 19:return de("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 X(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(X(a)!==a)throw Error(r(188))}function W(a){var s=a.alternate;if(!s){if(s=X(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 D=!1,F=p.child;F;){if(F===d){D=!0,d=p,A=I;break}if(F===A){D=!0,A=p,d=I;break}F=F.sibling}if(!D){for(F=I.child;F;){if(F===d){D=!0,d=I,A=p;break}if(F===A){D=!0,A=I,d=p;break}F=F.sibling}if(!D)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,fe={pending:!1,data:null,method:null,action:null},ge=[],pe=-1;function ve(a){return{current:a}}function Ve(a){0>pe||(a.current=ge[pe],ge[pe]=null,pe--)}function we(a,s){pe++,ge[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=fe)}var Q=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:OF,BF=Math.log,FF=Math.LN2;function OF(a){return a>>>=0,a===0?32:31-(BF(a)/FF|0)|0}var Ad=128,md=4194304;function zu(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,D=a.warmLanes;a=a.finishedLanes!==0;var F=d&134217727;return F!==0?(d=F&~p,d!==0?A=zu(d):(I&=F,I!==0?A=zu(I):a||(D=F&~D,D!==0&&(A=zu(D))))):(F=d&~p,F!==0?A=zu(F):I!==0?A=zu(I):a||(D=d&~D,D!==0&&(A=zu(D)))),A===0?0:s!==0&&s!==A&&(s&p)===0&&(p=A&-A,D=s&-s,p>=D||p===32&&(D&4194176)!==0)?s:A}function Lo(a,s){return(a.pendingLanes&~(a.suspendedLanes&~a.pingedLanes)&s)===0}function LF(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 wF(a,s,d,A,p,I){var D=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=D&~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&~(D&~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:Dy(a.type))}function MF(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,PF="__reactListeners$"+Ki,HF="__reactHandles$"+Ki,sS="__reactResources$"+Ki,Mo="__reactMarker$"+Ki;function uA(a){delete a[pn],delete a[On],delete a[iA],delete a[PF],delete a[HF]}function Ku(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 $u(a,s){Qa(a,s),Qa(a+"Capture",s)}function Qa(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"),UF=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 kF(a){return Q.call(dS,a)?!0:Q.call(cS,a)?!1:UF.test(a)?dS[a]=!0:(cS[a]=!0,!1)}function Ed(a,s,d){if(kF(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 GF(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(D){A=""+D,I.call(this,D)}}),Object.defineProperty(a,s,{enumerable:d.enumerable}),{getValue:function(){return A},setValue:function(D){A=""+D},stopTracking:function(){a._valueTracker=null,delete a[s]}}}}function _d(a){a._valueTracker||(a._valueTracker=GF(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 VF=/[\n"\\]/g;function rr(a){return a.replace(VF,function(s){return"\\"+s.charCodeAt(0).toString(16)+" "})}function aA(a,s,d,A,p,I,D,F){a.name="",D!=null&&typeof D!="function"&&typeof D!="symbol"&&typeof D!="boolean"?a.type=D:a.removeAttribute("type"),s!=null?D==="number"?(s===0&&a.value===""||a.value!=s)&&(a.value=""+nr(s)):a.value!==""+nr(s)&&(a.value=""+nr(s)):D!=="submit"&&D!=="reset"||a.removeAttribute("value"),s!=null?sA(a,D,nr(s)):d!=null?sA(a,D,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,D,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,D!=null&&typeof D!="function"&&typeof D!="symbol"&&typeof D!="boolean"&&(a.name=D)}function sA(a,s,d){s==="number"&&Sd(a.ownerDocument)===a||a.defaultValue===""+d||(a.defaultValue=""+d)}function Xa(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 jF=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||jF.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 zF=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"]]),KF=/^[\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 KF.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&&Xa(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 D=d-a;for(A=1;A<=D&&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,D){this._reactName=d,this._targetInst=p,this.type=A,this.nativeEvent=I,this.target=D,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 Yu={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(a){return a.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},vd=Ln(Yu),ko=G({},Yu,{view:0,detail:0}),$F=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),YF=G({},Rd,{dataTransfer:0}),ZF=Ln(YF),WF=G({},ko,{relatedTarget:0}),pA=Ln(WF),qF=G({},Yu,{animationName:0,elapsedTime:0,pseudoElement:0}),QF=Ln(qF),XF=G({},Yu,{clipboardData:function(a){return"clipboardData"in a?a.clipboardData:window.clipboardData}}),JF=Ln(XF),eO=G({},Yu,{data:0}),CS=Ln(eO),tO={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},nO={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"},rO={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function iO(a){var s=this.nativeEvent;return s.getModifierState?s.getModifierState(a):(a=rO[a])?!!s[a]:!1}function EA(){return iO}var uO=G({},ko,{key:function(a){if(a.key){var s=tO[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"?nO[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}}),aO=Ln(uO),sO=G({},Rd,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),vS=Ln(sO),oO=G({},ko,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:EA}),lO=Ln(oO),cO=G({},Yu,{propertyName:0,elapsedTime:0,pseudoElement:0}),dO=Ln(cO),fO=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}),hO=Ln(fO),AO=G({},Yu,{newState:0,oldState:0}),mO=Ln(AO),pO=[9,13,27,32],gA=oi&&"CompositionEvent"in window,Vo=null;oi&&"documentMode"in document&&(Vo=document.documentMode);var EO=oi&&"TextEvent"in window&&!Vo,RS=oi&&(!gA||Vo&&8<Vo&&11>=Vo),TS=" ",DS=!1;function bS(a,s){switch(a){case"keyup":return pO.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 gO(a,s){switch(a){case"compositionend":return xS(s);case"keypress":return s.which!==32?null:(DS=!0,TS);case"textInput":return a=s.data,a===TS&&DS?null:a;default:return null}}function _O(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 SO={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"?!!SO[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 NO(a){iy(a,0)}function Td(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"&&Td(zo)){var s=[];FS(s,zo,a,cA(a)),SS(NO,s)}}function IO(a,s,d){a==="focusin"?(MS(),jo=s,zo=d,jo.attachEvent("onpropertychange",PS)):a==="focusout"&&MS()}function yO(a){if(a==="selectionchange"||a==="keyup"||a==="keydown")return Td(zo)}function CO(a,s){if(a==="click")return Td(s)}function vO(a,s){if(a==="input"||a==="change")return Td(s)}function RO(a,s){return a===s&&(a!==0||1/a===1/s)||a!==a&&s!==s}var jn=typeof Object.is=="function"?Object.is:RO;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(!Q.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 TO(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 D=US(s,A);p&&D&&(d.rangeCount!==1||d.anchorNode!==p.node||d.anchorOffset!==p.offset||d.focusNode!==D.node||d.focusOffset!==D.offset)&&(a=a.createRange(),a.setStart(p.node,p.offset),d.removeAllRanges(),I>A?(d.addRange(a),d.extend(D.node,D.offset)):(a.setEnd(D.node,D.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 DO=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 Zu(a,s){var d={};return d[a.toLowerCase()]=s.toLowerCase(),d["Webkit"+a]="webkit"+s,d["Moz"+a]="moz"+s,d}var is={animationend:Zu("Animation","AnimationEnd"),animationiteration:Zu("Animation","AnimationIteration"),animationstart:Zu("Animation","AnimationStart"),transitionrun:Zu("Transition","TransitionRun"),transitionstart:Zu("Transition","TransitionStart"),transitioncancel:Zu("Transition","TransitionCancel"),transitionend:Zu("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 Wu(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=Wu("animationend"),KS=Wu("animationiteration"),$S=Wu("animationstart"),bO=Wu("transitionrun"),xO=Wu("transitionstart"),BO=Wu("transitioncancel"),YS=Wu("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),$u(s,[a])}var ir=[],us=0,vA=0;function Dd(){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 D=A.pending;D===null?p.next=p:(p.next=D.next,D.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={},QS=new WeakMap;function ur(a,s){if(typeof a=="object"&&a!==null){var d=QS.get(a);return d!==void 0?d:(s={value:a,source:s,stack:ee(s)},QS.set(a,s),s)}return{value:a,source:s,stack:ee(s)}}var ss=[],os=0,Bd=null,Fd=0,ar=[],sr=0,qu=null,ci=1,di="";function Qu(a,s){ss[os++]=Fd,ss[os++]=Bd,Bd=a,Fd=s}function XS(a,s,d){ar[sr++]=ci,ar[sr++]=di,ar[sr++]=qu,qu=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 D=p-p%5;I=(A&(1<<D)-1).toString(32),A>>=D,p-=D,ci=1<<32-Vn(s)+p|d<<p|A,di=I+a}else ci=1<<I|d<<p|A,di=a}function TA(a){a.return!==null&&(Qu(a,1),XS(a,1,0))}function DA(a){for(;a===Bd;)Bd=ss[--os],ss[os]=null,Fd=ss[--os],ss[os]=null;for(;a===qu;)qu=ar[--sr],ar[sr]=null,di=ar[--sr],ar[sr]=null,ci=ar[--sr],ar[sr]=null}var Tn=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(Tn=a.return;Tn;)switch(Tn.tag){case 3:case 27:Ur=!0;return;case 5:case 13:Ur=!1;return;default:Tn=Tn.return}}function Yo(a){if(a!==Tn)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=Tr(a.nextSibling);break e}s--}else d!=="$"&&d!=="$!"&&d!=="$?"||s++;a=a.nextSibling}on=null}}else on=Tn?Tr(a.stateNode.nextSibling):null;return!0}function Zo(){on=Tn=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 Qo=s,qo}}var Qo=null;function iN(){if(Qo===null)throw Error(r(459));var a=Qo;return Qo=null,a}var ls=null,Xo=0;function Ld(a){var s=Xo;return Xo+=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 D(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 De=q.type;return De===f?se(Y,z,q.props.children,le,q.key):z!==null&&(z.elementType===De||typeof De=="object"&&De!==null&&De.$$typeof===T&&uN(De)===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,De){return z===null||z.tag!==7?(z=oa(q,Y.mode,le,De),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 T:var le=z._init;return z=le(z._payload),he(Y,z,q)}if(re(z)||B(z))return z=oa(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 De=z!==null?z.key:null;if(typeof q=="string"&&q!==""||typeof q=="number"||typeof q=="bigint")return De!==null?null:F(Y,z,""+q,le);if(typeof q=="object"&&q!==null){switch(q.$$typeof){case l:return q.key===De?M(Y,z,q,le):null;case c:return q.key===De?K(Y,z,q,le):null;case T:return De=q._init,q=De(q._payload),J(Y,z,q,le)}if(re(q)||B(q))return De!==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,De){if(typeof le=="string"&&le!==""||typeof le=="number"||typeof le=="bigint")return Y=Y.get(q)||null,F(z,Y,""+le,De);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,De);case c:return Y=Y.get(le.key===null?q:le.key)||null,K(z,Y,le,De);case T:var it=le._init;return le=it(le._payload),ue(Y,z,q,le,De)}if(re(le)||B(le))return Y=Y.get(q)||null,se(z,Y,le,De,null);if(typeof le.then=="function")return ue(Y,z,q,Ld(le),De);if(le.$$typeof===_)return ue(Y,z,q,qd(z,le),De);wd(z,le)}return null}function Le(Y,z,q,le){for(var De=null,it=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),it===null?De=ht:it.sibling=ht,it=ht,Pe=rn}if(He===q.length)return d(Y,Pe),ft&&Qu(Y,He),De;if(Pe===null){for(;He<q.length;He++)Pe=he(Y,q[He],le),Pe!==null&&(z=I(Pe,z,He),it===null?De=Pe:it.sibling=Pe,it=Pe);return ft&&Qu(Y,He),De}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),it===null?De=rn:it.sibling=rn,it=rn);return a&&Pe.forEach(function(fu){return s(Y,fu)}),ft&&Qu(Y,He),De}function Ye(Y,z,q,le){if(q==null)throw Error(r(151));for(var De=null,it=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),it===null?De=fu:it.sibling=fu,it=fu,Pe=rn}if(ht.done)return d(Y,Pe),ft&&Qu(Y,He),De;if(Pe===null){for(;!ht.done;He++,ht=q.next())ht=he(Y,ht.value,le),ht!==null&&(z=I(ht,z,He),it===null?De=ht:it.sibling=ht,it=ht);return ft&&Qu(Y,He),De}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),it===null?De=ht:it.sibling=ht,it=ht);return a&&Pe.forEach(function(KL){return s(Y,KL)}),ft&&Qu(Y,He),De}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 De=q.key;z!==null;){if(z.key===De){if(De=q.type,De===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===De||typeof De=="object"&&De!==null&&De.$$typeof===T&&uN(De)===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=oa(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 D(Y);case c:e:{for(De=q.key;z!==null;){if(z.key===De)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 D(Y);case T:return De=q._init,q=De(q._payload),Ot(Y,z,q,le)}if(re(q))return Le(Y,z,q,le);if(B(q)){if(De=B(q),typeof De!="function")throw Error(r(150));return q=De.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),D(Y)):d(Y,z)}return function(Y,z,q,le){try{Xo=0;var De=Ot(Y,z,q,le);return ls=null,De}catch(Pe){if(Pe===qo)throw Pe;var it=dr(29,Pe,null,Y.mode);return it.lanes=le,it.return=Y,it}finally{}}}var Ju=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 FO=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()})}},OO=e.unstable_scheduleCallback,LO=e.unstable_NormalPriority,Zt={$$typeof:_,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function OA(){return{controller:new FO,data:new Map,refCount:0}}function el(a){a.refCount--,a.refCount===0&&OO(LO,function(){a.controller.abort()})}var tl=null,LA=0,ds=0,fs=null;function wO(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 MO(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"&&wO(a,s),dN!==null&&dN(a,s)};var ea=ve(null);function wA(){var a=ea.current;return a!==null?a:_t.pooledCache}function Hd(a,s){s===null?we(ea,ea.current):we(ea,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,ta=!1,kd=0,nl=0,As=null,PO=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?na:Qi,ta=!1,I=d(A,p),ta=!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=ra,I=s(d,A)}while(hs);return I}function HO(){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?na:Qi),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 D=p.next;p.next=I.next,I.next=D}s.baseQueue=p=I,A.pending=null}if(I=a.baseState,p===null)a.memoizedState=I;else{s=p.next;var F=D=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,D=I):M=M.next=he,tt.lanes|=J,au|=J;he=K.action,ta&&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,D=I):M=M.next=J,tt.lanes|=he,au|=he;K=K.next}while(K!==null&&K!==s);if(M===null?D=I:M.next=F,!jn(I,a.memoizedState)&&(tn=!0,se&&(d=fs,d!==null)))throw d;a.memoizedState=I,a.baseState=D,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 D=p=p.next;do I=a(I,D.action),D=D.next;while(D!==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 D=!jn((mt||p).memoizedState,d);if(D&&(p.memoizedState=d,tn=!0),p=p.queue,$A(gN.bind(null,A,p,a),[a]),p.getSnapshot!==s||D||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&&Dn(s,a,2)}function zA(a){var s=wn();if(typeof a=="function"){var d=a;if(a=d(),ta){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 UO(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(D){I.listeners.push(D)}};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,D={};U.T=D;try{var F=d(p,A),M=U.S;M!==null&&M(D,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 TN(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=Tr(p.nextSibling),p===null){p=null;break t}}I=p.data,p=I==="F!"||I==="F"?p:null}if(p){on=Tr(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=QA.bind(null,tt,!1,A.queue),A=wn(),p={state:s,dispatch:null,action:a,pending:null},A.queue=p,d=UO.bind(null,tt,p,I,d),p.dispatch=d,A.memoizedState=a,[s,d,!1]}function DN(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,kO.bind(null,p,d),{destroy:void 0},null)),[s,I,a]}function kO(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(),ta){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 D=U.T,F={};U.T=F,QA(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=MO(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=D}}function GO(){}function WA(a,s,d,A){if(a.tag!==5)throw Error(r(476));var p=GN(a).queue;kN(a,p,s,fe,d===null?GO:function(){return VN(a),d(A)})}function GN(a){var s=a.memoizedState;if(s!==null)return s;s={memoizedState:fe,baseState:fe,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:hi,lastRenderedState:fe},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 VO(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&&(Dn(A,s,d),sl(A,s,d)),s={cache:OA()},a.payload=s;return}s=s.return}}function jO(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&&(Dn(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 D=s.lastRenderedState,F=I(D,d);if(p.hasEagerState=!0,p.eagerState=F,jn(F,D))return bd(a,s,p,0),_t===null&&Dd(),!1}catch{}finally{}if(d=RA(a,s,p,A),d!==null)return Dn(d,a,A),YN(d,s,A),!0}return!1}function QA(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&&Dn(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 na={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(ta){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(ta){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=jO.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=PO++,s=":"+s+"r"+d.toString(32)+":";return a.memoizedState=s},useCacheRefresh:function(){return wn().memoizedState=VO.bind(null,tt)}};na.useMemoCache=GA,na.useHostTransitionStatus=qA,na.useFormState=TN,na.useActionState=TN,na.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=QA.bind(null,tt,!0,d),d.dispatch=s,[a,s]};var Qi={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};Qi.useCacheRefresh=zN,Qi.useMemoCache=GA,Qi.useHostTransitionStatus=qA,Qi.useFormState=DN,Qi.useActionState=DN,Qi.useOptimistic=function(a,s){var d=jt();return NN(d,mt,a,s)};var ra={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};ra.useCacheRefresh=zN,ra.useMemoCache=GA,ra.useHostTransitionStatus=qA,ra.useFormState=xN,ra.useActionState=xN,ra.useOptimistic=function(a,s){var d=jt();return mt!==null?NN(d,mt,a,s):(d.baseState=a,[a,d.queue.dispatch])};function XA(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)?X(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&&(Dn(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&&(Dn(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&&(Dn(s,a,d),sl(s,a,d))}};function ZN(a,s,d,A,p,I,D){return a=a.stateNode,typeof a.shouldComponentUpdate=="function"?a.shouldComponentUpdate(A,I,D):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 ia(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 QN(a){console.error(a)}function XN(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 D=d.stateNode;D!==null&&typeof D.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 zO(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):Ju(s,a.child,d,A)}function rI(a,s,d,A,p){d=d.render;var I=s.ref;if("ref"in A){var D={};for(var F in A)F!=="ref"&&(D[F]=A[F])}else D=A;return aa(s),A=PA(a,s,d,D,I,p),F=HA(),a!==null&&!tn?(UA(a,s,p),Ai(a,s,p)):(ft&&F&&TA(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 D=I.memoizedProps;if(d=d.compare,d=d!==null?d:Ko,d(D,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,D=a!==null?a.memoizedState:null;if(ul(a,s),A.mode==="hidden"||I){if((s.flags&128)!==0){if(A=D!==null?D.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,D!==null?D.cachePool:null),D!==null?oN(s,D):BA(),lN(s);else return s.lanes=s.childLanes=536870912,sI(a,s,D!==null?D.baseLanes|d:d,d)}else D!==null?(Hd(s,D.cachePool),oN(s,D),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 aa(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&&TA(s),s.flags|=1,ln(a,s,d,p),s.child)}function oI(a,s,d,A,p,I){return aa(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&&TA(s),s.flags|=1,ln(a,s,d,I),s.child)}function lI(a,s,d,A,p){if(aa(s),s.stateNode===null){var I=as,D=d.contextType;typeof D=="object"&&D!==null&&(I=En(D)),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),D=d.contextType,I.context=typeof D=="object"&&D!==null?En(D):as,I.state=s.memoizedState,D=d.getDerivedStateFromProps,typeof D=="function"&&(XA(s,d,D,A),I.state=s.memoizedState),typeof d.getDerivedStateFromProps=="function"||typeof I.getSnapshotBeforeUpdate=="function"||typeof I.UNSAFE_componentWillMount!="function"&&typeof I.componentWillMount!="function"||(D=I.state,typeof I.componentWillMount=="function"&&I.componentWillMount(),typeof I.UNSAFE_componentWillMount=="function"&&I.UNSAFE_componentWillMount(),D!==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=ia(d,F);I.props=M;var K=I.context,se=d.contextType;D=as,typeof se=="object"&&se!==null&&(D=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!==D)&&WN(s,I,A,D),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"&&(XA(s,d,he,A),K=s.memoizedState),(M=Ji||ZN(s,d,M,A,J,K,D))?(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=D,A=M):(typeof I.componentDidMount=="function"&&(s.flags|=4194308),A=!1)}else{I=s.stateNode,Am(a,s),D=s.memoizedProps,se=ia(d,D),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"||(D!==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;D!==he||J!==ue||Ji||a!==null&&a.dependencies!==null&&Wd(a.dependencies)?(typeof F=="function"&&(XA(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"||D===a.memoizedProps&&J===a.memoizedState||(s.flags|=4),typeof I.getSnapshotBeforeUpdate!="function"||D===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"||D===a.memoizedProps&&J===a.memoizedState||(s.flags|=4),typeof I.getSnapshotBeforeUpdate!="function"||D===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=Ju(s,a.child,null,p),s.child=Ju(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,D;if((D=I)||(D=a!==null&&a.memoizedState===null?!1:(Yt.current&2)!==0),D&&(p=!0,s.flags&=-129),D=(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=Tr(M.nextSibling),M===null){F=null;break e}}F=M}F!==null?(s.memoizedState={dehydrated:F,treeContext:qu!==null?{id:ci,overflow:di}:null,retryLane:536870912},M=dr(18,null,null,0),M.stateNode=F,M.return=s,s.child=M,Tn=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=oa(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,D,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=oa(p,F,d,null),p.flags|=2,A.return=s,p.return=s,A.sibling=p,s.child=A,Ju(s,a.child,null,d),A=s.child,A.memoizedState=rm(d),A.childLanes=im(a,D,d),s.memoizedState=nm,s=p);else if(Zi(s),F.data==="$!"){if(D=F.nextSibling&&F.nextSibling.dataset,D)var K=D.dgst;D=K,A=Error(r(419)),A.stack="",A.digest=D,Wo({value:A,source:null,stack:null}),s=sm(a,s,d)}else if(tn||al(a,s,d,!1),D=(d&a.childLanes)!==0,tn||D){if(D=_t,D!==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&(D.suspendedLanes|d))!==0?0:A,A!==0&&A!==M.retryLane)throw M.retryLane=A,Yi(a,A),Dn(D,a,A),nI}F.data==="$?"||wm(),s=sm(a,s,d)}else F.data==="$?"?(s.flags|=128,s.child=a.child,s=uL.bind(null,a),F._reactRetry=s,s=null):(a=M.treeContext,on=Tr(F.nextSibling),Tn=s,ft=!0,vr=null,Ur=!1,a!==null&&(ar[sr++]=ci,ar[sr++]=di,ar[sr++]=qu,ci=a.id,di=a.overflow,qu=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=oa(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,D,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&&(D=s.deletions,D===null?(s.deletions=[a],s.flags|=16):D.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 Ju(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 KO(a,s,d){switch(s.tag){case 3:yr(s,s.stateNode.containerInfo),Xi(s,Zt,a.memoizedState.cache),Zo();break;case 27:case 5:Hr(s);break;case 4:yr(s,s.stateNode.containerInfo);break;case 10:Xi(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:Xi(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,KO(a,s,d);tn=(a.flags&131072)!==0}else tn=!1,ft&&(s.flags&1048576)!==0&&XS(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=ia(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=ia(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 D=s.memoizedState;if(I=D.cache,Xi(s,Zt,I),I!==p.cache&&fm(s,[Zt],d,!0),ol(),I=D.element,p.isDehydrated)if(p={element:I,isDehydrated:!1,cache:D.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=Tr(s.stateNode.containerInfo.firstChild),Tn=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),Tn=s,Ur=!0,on=Tr(A.firstChild)),A=s.pendingProps.children,a!==null||ft?ln(a,s,A,d):s.child=Ju(s,null,A,d),ul(a,s),s.child;case 5:return a===null&&ft&&((p=A=on)&&(A=NL(A,s.type,s.pendingProps,Ur),A!==null?(s.stateNode=A,Tn=s,on=Tr(A.firstChild),Ur=!1,p=!0):p=!1),p||Xu(s)),Hr(s),p=s.type,I=s.pendingProps,D=a!==null?a.memoizedProps:null,A=I.children,Wm(p,I)?A=null:D!==null&&Wm(p,D)&&(s.flags|=32),s.memoizedState!==null&&(p=PA(a,s,HO,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=IL(d,s.pendingProps,Ur),d!==null?(s.stateNode=d,Tn=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=Ju(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,Xi(s,s.type,A.value),ln(a,s,A.children,d),s.child;case 9:return p=s.type._context,A=s.pendingProps.children,aa(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 aa(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),Xi(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),Xi(s,Zt,A)):(A=I.cache,Xi(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),ua=null,mi=null;function Xi(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 D=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||(D=null);break e}I=F.next}}else if(p.tag===18){if(D=p.return,D===null)throw Error(r(341));D.lanes|=d,I=D.alternate,I!==null&&(I.lanes|=d),dm(D,d,a),D=null}else D=p.child;if(D!==null)D.return=p;else for(D=p;D!==null;){if(D===a){D=null;break}if(p=D.sibling,p!==null){p.return=D.return,D=p;break}D=D.return}p=D}}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 D=p.alternate;if(D===null)throw Error(r(387));if(D=D.memoizedProps,D!==null){var F=p.type;jn(p.pendingProps.value,D.value)||(a!==null?a.push(F):a=[F])}}else if(p===Jt.current){if(D=p.alternate,D===null)throw Error(r(387));D.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 aa(a){ua=a,mi=null,a=a.dependencies,a!==null&&(a.firstContext=null)}function En(a){return mI(ua,a)}function qd(a,s){return ua===null&&aa(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 D={lane:d.lane,tag:d.tag,payload:d.payload,callback:null,next:null};I===null?p=I=D:I=I.next=D,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,D=p.lastBaseUpdate,F=p.shared.pending;if(F!==null){p.shared.pending=null;var M=F,K=M.next;M.next=null,D===null?I=K:D.next=K,D=M;var se=a.alternate;se!==null&&(se=se.updateQueue,F=se.lastBaseUpdate,F!==D&&(F===null?se.firstBaseUpdate=K:F.next=K,se.lastBaseUpdate=M))}if(I!==null){var he=p.baseState;D=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,D|=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|=D,a.lanes=D,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,D=d.inst;A=I(),D.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 D=A.inst,F=D.destroy;if(F!==void 0){D.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=ia(a.type,a.memoizedProps),d.state=a.memoizedState;try{d.componentWillUnmount()}catch(A){gt(a,s,A)}}function sa(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;pL(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 Qd(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(Qd(a,s,d),a=a.sibling;a!==null;)Qd(a,s,d),a=a.sibling}var Ei=!1,Bt=!1,_m=!1,yI=typeof WeakSet=="function"?WeakSet:Set,nn=null,CI=!1;function $O(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 D=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=D+p),he!==I||A!==0&&he.nodeType!==3||(M=D+A),he.nodeType===3&&(D+=he.nodeValue.length),(ue=he.firstChild)!==null;)J=he,he=ue;for(;;){if(he===a)break t;if(J===d&&++K===p&&(F=D),J===I&&++se===A&&(M=D),(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=ia(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)Xm(a);else if(d===1)switch(a.nodeName){case"HEAD":case"HTML":case"BODY":Xm(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=ia(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&&sa(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&&sa(d,d.return);break;case 27:case 5:_i(a,d),s===null&&A&4&&SI(d),A&512&&sa(d,d.return);break;case 12:_i(a,d);break;case 13:_i(a,d),A&4&&DI(a,d);break;case 22:if(p=d.memoizedState!==null||Ei,!p){s=s!==null&&s.memoizedState!==null||Bt;var I=Ei,D=Bt;Ei=p,(Bt=s)&&!D?ru(a,d,(d.subtreeFlags&8772)!==0):_i(a,d),Ei=I,Bt=D}A&512&&(d.memoizedProps.mode==="manual"?sa(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;)TI(a,s,d),d=d.sibling}function TI(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(D){gt(d,s,D)}else try{zt.removeChild(d.stateNode)}catch(D){gt(d,s,D)}break;case 18:zt!==null&&(Kn?(s=zt,d=d.stateNode,s.nodeType===8?Qm(s.parentNode,d):s.nodeType===1&&Qm(s,d),Dl(s)):Qm(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 DI(a,s){if(s.memoizedState===null&&(a=s.alternate,a!==null&&(a=a.memoizedState,a!==null&&(a=a.dehydrated,a!==null))))try{Dl(a)}catch(d){gt(s,s.return,d)}}function YO(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=YO(a);s.forEach(function(A){var p=aL.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,D=s,F=D;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));TI(I,D,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 D=Sy("link","href",p).get(A+(d.href||""));if(D){for(var F=0;F<D.length;F++)if(I=D[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)){D.splice(F,1);break t}}I=p.createElement(A),cn(I,A,d),p.head.appendChild(I);break;case"meta":if(D=Sy("meta","content",p).get(A+(d.content||""))){for(F=0;F<D.length;F++)if(I=D[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)){D.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{Dl(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{D=K.stateNode,F=K.memoizedProps.style;var ue=F!=null&&F.hasOwnProperty("display")?F.display:null;D.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);Qd(a,I,p);break;case 5:var D=A.stateNode;A.flags&32&&(Ja(D,""),A.flags&=-33);var F=Em(a);Qd(a,F,D);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,D=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&&D&64&&gI(I),sa(I,I.return);break;case 26:case 27:case 5:ru(p,I,d),d&&A===null&&D&4&&SI(I),sa(I,I.return);break;case 12:ru(p,I,d);break;case 13:ru(p,I,d),d&&D&4&&DI(p,I);break;case 22:I.memoizedState===null&&ru(p,I,d),sa(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,D=I.id,F=I.onPostCommit;typeof F=="function"&&F(D,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,D=s,F=d,M=A,K=D.flags;switch(D.tag){case 0:case 11:case 15:Es(I,D,F,M,p),cl(8,D);break;case 23:break;case 22:var se=D.stateNode;D.memoizedState!==null?se._visibility&4?Es(I,D,F,M,p):dl(I,D):(se._visibility|=4,Es(I,D,F,M,p)),p&&K&2048&&Nm(D.alternate,D);break;case 24:Es(I,D,F,M,p),p&&K&2048&&Im(D.alternate,D);break;default:Es(I,D,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&&wL(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,Xd(a)):hl(a);break;default:hl(a)}}function Xd(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),Xd(s);break;case 22:d=s.stateNode,d._visibility&4&&(d._visibility&=-5,Xd(s));break;default:Xd(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 ZO(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 ZO(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 D=0;if(A=a,typeof a=="function")ym(a)&&(D=1);else if(typeof a=="string")D=OL(a,d,Ze.current)?26:a==="html"||a==="head"||a==="body"?27:5;else e:switch(a){case f:return oa(d.children,p,I,s);case h:D=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 _:D=10;break e;case g:D=9;break e;case S:D=11;break e;case R:D=14;break e;case T:D=16,A=null;break e}D=29,d=Error(r(130,a===null?"null":typeof a,"")),A=null}return s=dr(D,d,s,p),s.elementType=a,s.type=A,s.lanes=I,s}function oa(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 D=Yi(I,2);D!==null&&(p._pendingVisibility|=2,Dn(D,I,2))}},attach:function(){var I=p._current;if(I===null)throw Error(r(456));if((p._pendingVisibility&2)!==0){var D=Yi(I,2);D!==null&&(p._pendingVisibility&=-3,Dn(D,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 Qo=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 WO(a,s,d){var A=s.pendingProps;switch(DA(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=Tn,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(ea),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 qO(a,s){switch(DA(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(ea),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(DA(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(ea);break;case 24:pi(Zt)}}var QO={getCacheForType:function(a){var s=En(Zt),d=s.data.get(a);return d===void 0&&(d=a(),s.data.set(a,d)),d}},XO=typeof WeakMap=="function"?WeakMap:Map,Rt=0,_t=null,ut=null,ct=0,St=0,$n=null,Ni=!1,_s=!1,Rm=!1,Ii=0,Ft=0,au=0,la=0,Tm=0,fr=0,Ss=0,ml=null,Vr=null,Dm=!1,bm=0,t0=1/0,n0=null,su=null,r0=!1,ca=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 Dn(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&&(la|=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?tL(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&&!JO(d)){p=Mm(a,s,!1),I=!1;continue}if(p===2){if(I=s,a.errorRecoveryDisabledLanes&I)var D=0;else D=a.pendingLanes&-536870913,D=D!==0?D:D&536870912?536870912:0;if(D!==0){s=D;e:{var F=a;p=ml;var M=F.current.memoizedState.isDehydrated;if(M&&(Ns(F,D).flags|=256),D=Mm(F,D,!1),D!==2){if(Rm&&!M){F.errorRecoveryDisabledLanes|=I,la|=I,p=4;break e}I=Vr,Vr=p,I!==null&&Om(I)}p=D}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,Dm,s,fr,la,Ss,Ni,2,-0,0),I);break e}VI(A,d,Vr,n0,Dm,s,fr,la,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,D,F,M,K,se,he,J){var ue=s.subtreeFlags;if((ue&8192||(ue&16785408)===16785408)&&(yl={stylesheets:null,count:0,unsuspend:LL},FI(s),s=ML(),s!==null)){a.cancelPendingCommit=s(WI.bind(null,a,d,A,p,D,F,M,1,he,J)),yi(a,I,D,!K);return}WI(a,d,A,p,D,F,M,se,he,J)}function JO(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&=~Tm,s&=~la,a.suspendedLanes|=s,a.pingedLanes&=~s,A&&(a.warmLanes|=s),A=a.expirationTimes;for(var p=s;0<p;){var I=31-Vn(p),D=1<<I;A[I]=-1,p&=~D}d!==0&&rS(a,d,s)}function i0(){return(Rt&6)===0?(gl(0),!1):!0}function Lm(){if(ut!==null){if(St===0)var a=ut.return;else a=ut,mi=ua=null,kA(a),ls=null,Xo=0,a=ut;for(;a!==null;)UI(a.alternate,a),a=a.return;ut=null}}function Ns(a,s){a.finishedWork=null,a.finishedLanes=0;var d=a.timeoutHandle;d!==-1&&(a.timeoutHandle=-1,gL(d)),d=a.cancelPendingCommit,d!==null&&(a.cancelPendingCommit=null,d()),Lm(),_t=a,ut=d=uu(a.current,null),ct=s,St=0,$n=null,Ni=!1,_s=Lo(a,s),Rm=!1,Ss=fr=Tm=la=au=Ft=0,Vr=ml=null,Dm=!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,Dd(),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,ut===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=QO,a}function wm(){Ft=4,Ni||(ct&4194176)!==ct&&or.current!==null||(_s=!0),(au&134217727)===0&&(la&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 D=Ft;e:do try{if(St!==0&&ut!==null){var F=ut,M=$n;switch(St){case 8:Lm(),D=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){D=0;break e}break;default:K=St,St=0,$n=null,Is(a,F,M,K)}}eL(),D=Ft;break}catch(se){jI(a,se)}while(!0);return s&&a.shellSuspendCounter++,mi=ua=null,Rt=A,U.H=p,U.A=I,ut===null&&(_t=null,ct=0,Dd()),D}function eL(){for(;ut!==null;)$I(ut)}function tL(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&&ut!==null){s=ut;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 D=null;switch(ut.tag){case 26:D=ut.memoizedState;case 5:case 27:var F=ut;if(!D||Iy(D)){St=0,$n=null;var M=F.sibling;if(M!==null)ut=M;else{var K=F.return;K!==null?(ut=K,u0(K)):ut=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))}}nL();break}catch(se){jI(a,se)}while(!0);return mi=ua=null,U.H=A,U.A=p,Rt=d,ut!==null?0:(_t=null,ct=0,Dd(),Ft)}function nL(){for(;ut!==null&&!Ie();)$I(ut)}function $I(a){var s=AI(a.alternate,a,Ii);a.memoizedProps=a.pendingProps,s===null?u0(a):ut=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=ut=MI(s,Ii),s=AI(d,s,Ii)}a.memoizedProps=a.pendingProps,s===null?u0(a):ut=s}function Is(a,s,d,A){mi=ua=null,kA(s),ls=null,Xo=0;var p=s.return;try{if(zO(a,p,s,d,ct)){Ft=1,Zd(a,ur(d,a.current)),ut=null;return}}catch(I){if(p!==null)throw ut=p,I;Ft=1,Zd(a,ur(d,a.current)),ut=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=WO(s.alternate,s,Ii);if(d!==null){ut=d;return}if(s=s.sibling,s!==null){ut=s;return}ut=s=a}while(s!==null);Ft===0&&(Ft=5)}function ZI(a,s){do{var d=qO(a.alternate,a);if(d!==null){d.flags&=32767,ut=d;return}if(d=a.return,d!==null&&(d.flags|=32768,d.subtreeFlags=0,d.deletions=null),!s&&(a=a.sibling,a!==null)){ut=a;return}ut=a=d}while(a!==null);Ft=6,ut=null}function WI(a,s,d,A,p,I,D,F,M,K){var se=U.T,he=ne.p;try{ne.p=2,U.T=null,rL(a,s,d,A,he,p,I,D,F,M,K)}finally{U.T=se,ne.p=he}}function rL(a,s,d,A,p,I,D,F){do ys();while(ca!==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,wF(a,A,K,I,D,F),a===_t&&(ut=_t=null,ct=0),(M.subtreeFlags&10256)===0&&(M.flags&10256)===0||r0||(r0=!0,xm=K,Bm=d,sL(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,D=Rt,Rt|=4,$O(a,M),bI(M,a),TO(Zm,a.containerInfo),E0=!!Ym,Zm=Ym=null,a.current=M,vI(a,M.alternate,M),Se(),Rt=D,ne.p=I,U.T=d):a.current=M,r0?(r0=!1,ca=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(ca!==null){var a=ca,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,ca===null)var I=!1;else{d=Bm,Bm=null;var D=ca,F=pl;if(ca=null,pl=0,(Rt&6)!==0)throw Error(r(331));var M=Rt;if(Rt|=4,LI(D.current),BI(D,D.current,F,d),Rt=M,gl(0,!1),Rn&&typeof Rn.onPostCommitFiberRoot=="function")try{Rn.onPostCommitFiberRoot(ji,D)}catch{}I=!0}return I}finally{ne.p=p,U.T=A,qI(a,s)}}return!1}function QI(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)QI(a,a,d);else for(;s!==null;){if(s.tag===3){QI(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 XO;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=iL.bind(null,a,s,d),s.then(a,a))}function iL(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):Tm|=d,Ss===ct&&(Ss=0)),jr(a)}function XI(a,s){s===0&&(s=nS()),a=Yi(a,s),a!==null&&(wo(a,s),jr(a))}function uL(a){var s=a.memoizedState,d=0;s!==null&&(d=s.retryLane),XI(a,d)}function aL(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),XI(a,d)}function sL(a,s){return ie(a,s)}var a0=null,Cs=null,Hm=!1,s0=!1,Um=!1,da=0;function jr(a){a!==Cs&&a.next===null&&(Cs===null?a0=Cs=a:Cs=Cs.next=a),s0=!0,Hm||(Hm=!0,lL(oL))}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 D=A.suspendedLanes,F=A.pingedLanes;I=(1<<31-Vn(42|a)+1)-1,I&=p&~(D&~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 oL(){s0=Hm=!1;var a=0;da!==0&&(EL()&&(a=da),da=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 D=31-Vn(I),F=1<<D,M=p[D];M===-1?((F&d)===0||(F&A)!==0)&&(p[D]=LF(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 lL(a){_L(function(){(Rt&6)!==0?ie(Mt,a):a()})}function km(){return da===0&&(da=tS()),da}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 cL(a,s,d,A,p){if(s==="submit"&&d&&d.stateNode===p){var I=ny((p[On]||null).action),D=A.submitter;D&&(s=(s=D[On]||null)?ny(s.formAction):D.getAttribute("formAction"),s!==null&&(I=s,D=null));var F=new vd("action","action",null,A,p);a.push({event:F,listeners:[{instance:null,listener:function(){if(A.defaultPrevented){if(da!==0){var M=D?ry(p,D):new FormData(p);WA(d,{pending:!0,data:M,method:p.method,action:I},null,M)}}else typeof I=="function"&&(F.preventDefault(),M=D?ry(p,D):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],dL=Vm.toLowerCase(),fL=Vm[0].toUpperCase()+Vm.slice(1);Cr(dL,"on"+fL)}Cr(zS,"onAnimationEnd"),Cr(KS,"onAnimationIteration"),Cr($S,"onAnimationStart"),Cr("dblclick","onDoubleClick"),Cr("focusin","onFocus"),Cr("focusout","onBlur"),Cr(bO,"onTransitionRun"),Cr(xO,"onTransitionStart"),Cr(BO,"onTransitionCancel"),Cr(YS,"onTransitionEnd"),Qa("onMouseEnter",["mouseout","mouseover"]),Qa("onMouseLeave",["mouseout","mouseover"]),Qa("onPointerEnter",["pointerout","pointerover"]),Qa("onPointerLeave",["pointerout","pointerover"]),$u("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),$u("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),$u("onBeforeInput",["compositionend","keypress","textInput","paste"]),$u("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),$u("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),$u("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(" "),hL=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 D=A.length-1;0<=D;D--){var F=A[D],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(D=0;D<A.length;D++){if(F=A[D],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"&&(hL.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(Dy(s)){case 2:var p=UL;break;case 8:p=kL;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 D=A.tag;if(D===3||D===4){var F=A.stateNode.containerInfo;if(F===p||F.nodeType===8&&F.parentNode===p)break;if(D===4)for(D=A.return;D!==null;){var M=D.tag;if((M===3||M===4)&&(M=D.stateNode.containerInfo,M===p||M.nodeType===8&&M.parentNode===p))return;D=D.return}for(;F!==null;){if(D=Ku(F),D===null)return;if(M=D.tag,M===5||M===6||M===26||M===27){A=I=D;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=aO;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=ZF;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":ue=lO;break;case zS:case KS:case $S:ue=QF;break;case YS:ue=dO;break;case"scroll":case"scrollend":ue=$F;break;case"wheel":ue=hO;break;case"copy":case"cut":case"paste":ue=JF;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=mO}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)&&(Ku(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?Ku(Le):null,Le!==null&&(Ot=X(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,Ku(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 De=OS;else if(BS(J))if(LS)De=vO;else{De=yO;var it=IO}else ue=J.nodeName,!ue||ue.toLowerCase()!=="input"||J.type!=="checkbox"&&J.type!=="radio"?K&&oA(K.elementType)&&(De=OS):De=CO;if(De&&(De=De(a,K))){FS(he,De,d,se);break e}it&&it(a,J,K),a==="focusout"&&K&&J.type==="number"&&K.memoizedProps.value!=null&&sA(J,"number",J.value)}switch(it=K?Po(K):window,a){case"focusin":(BS(it)||it.contentEditable==="true")&&(rs=it,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(DO)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)),it=l0(K,He),0<it.length&&(He=new CS(He,a,null,d,se),he.push({event:He,listeners:it}),Pe?He.data=Pe:(Pe=xS(d),Pe!==null&&(He.data=Pe)))),(Pe=EO?gO(a,d):_O(a,d))&&(He=l0(K,"onBeforeInput"),0<He.length&&(it=new CS("onBeforeInput","beforeinput",null,d,se),he.push({event:it,listeners:He}),it.data=Pe)),cL(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,D=[];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&&D.unshift(Sl(d,K,M))):p||(K=Ho(d,I),K!=null&&D.push(Sl(d,K,M)))),d=d.return}D.length!==0&&a.push({event:s,listeners:D})}var AL=/\r\n?/g,mL=/\u0000|\uFFFD/g;function sy(a){return(typeof a=="string"?a:""+a).replace(AL,`
50
- `).replace(mL,"")}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=zF.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 D=d[I];if(D!=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,D,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=D=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":D=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,D,p,!1),_d(a);return;case"select":ot("invalid",a),A=D=I=null;for(p in d)if(d.hasOwnProperty(p)&&(F=d[p],F!=null))switch(p){case"value":I=F;break;case"defaultValue":D=F;break;case"multiple":A=F;default:pt(a,s,p,F,d,null)}s=I,d=D,a.multiple=!!A,s!=null?Xa(a,!!A,s,!1):d!=null&&Xa(a,!!A,d,!0);return;case"textarea":ot("invalid",a),I=p=A=null;for(D in d)if(d.hasOwnProperty(D)&&(F=d[D],F!=null))switch(D){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,D,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 pL(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,D=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":D=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,D,F,M,K,se,I,p);return;case"select":ue=D=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":D=I;default:I!==M&&pt(a,s,p,I,A,M)}s=F,d=D,A=ue,J!=null?Xa(a,!!d,J,!1):!!A!=!!d&&(s!=null?Xa(a,!!d,s,!0):Xa(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(D in A)if(p=A[D],I=d[D],A.hasOwnProperty(D)&&(p!=null||I!=null))switch(D){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,D,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 EL(){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,gL=typeof clearTimeout=="function"?clearTimeout:void 0,fy=typeof Promise=="function"?Promise:void 0,_L=typeof queueMicrotask=="function"?queueMicrotask:typeof fy<"u"?function(a){return fy.resolve(null).then(a).catch(SL)}:dy;function SL(a){setTimeout(function(){throw a})}function Qm(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),Dl(s);return}A--}else d!=="$"&&d!=="$?"&&d!=="$!"||A++;d=p}while(d);Dl(s)}function Xm(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":Xm(d),uA(d);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(d.rel.toLowerCase()==="stylesheet")continue}a.removeChild(d)}}function NL(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=Tr(a.nextSibling),a===null)break}return null}function IL(a,s,d){if(s==="")return null;for(;a.nodeType!==3;)if((a.nodeType!==1||a.nodeName!=="INPUT"||a.type!=="hidden")&&!d||(a=Tr(a.nextSibling),a===null))return null;return a}function Tr(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:yL,r:CL,D:vL,C:RL,L:TL,m:DL,X:xL,S:bL,M:BL};function yL(){var a=Ci.f(),s=i0();return a||s}function CL(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 vL(a){Ci.D(a),py("dns-prefetch",a,null)}function RL(a,s){Ci.C(a,s),py("preconnect",a,s)}function TL(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=Ts(a);break;case"script":I=Ds(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 DL(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=Ds(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 bL(a,s,d){Ci.S(a,s,d);var A=Rs;if(A&&a){var p=qa(A).hoistableStyles,I=Ts(a);s=s||"default";var D=p.get(I);if(!D){var F={loading:0,preload:null};if(D=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=D=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(D,s,A)}D={type:"stylesheet",instance:D,count:1,state:F},p.set(I,D)}}}function xL(a,s){Ci.X(a,s);var d=Rs;if(d&&a){var A=qa(d).hoistableScripts,p=Ds(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=Ds(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=Ts(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=Ts(d.href);var I=qa(p).hoistableStyles,D=I.get(a);if(D||(p=p.ownerDocument||p,D={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},I.set(a,D),(I=p.querySelector(Nl(a)))&&!I._p&&(D.instance=I,D.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||FL(p,a,d,D.state))),s&&A===null)throw Error(r(528,""));return D}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=Ds(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 Ts(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 FL(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 Ds(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=Ts(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 D=I;return D._p=new Promise(function(F,M){D.onload=F,D.onerror=M}),cn(I,"link",A),s.state.loading|=4,h0(I,d.precedence,a),s.instance=I;case"script":return I=Ds(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,D=0;D<A.length;D++){var F=A[D];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 D=I.getAttribute(s)||"";D=a+D;var F=A.get(D);F?F.push(I):A.set(D,[I])}}return A}function Ny(a,s,d){a=a.ownerDocument||a,a.head.insertBefore(d,s==="title"?a.querySelector("head > title"):null)}function OL(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 LL(){}function wL(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=Ts(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 D=I;D._p=new Promise(function(F,M){D.onload=F,D.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 ML(){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(PL,a),p0=null,m0.call(a))}function PL(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 D=p[I];(D.nodeName==="LINK"||D.getAttribute("media")!=="not all")&&(d.set(D.dataset.precedence,D),A=D)}A&&d.set(null,A)}p=s.instance,D=p.getAttribute("data-precedence"),I=d.get(D)||A,I===A&&d.set(null,p),d.set(D,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:fe,_currentValue2:fe,_threadCount:0};function HL(a,s,d,A,p,I,D,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=D,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=F,this.incompleteTransitions=new Map}function yy(a,s,d,A,p,I,D,F,M,K,se,he){return a=new HL(a,s,d,D,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&&(Dn(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 Ty(a){if(a.tag===13){var s=Yi(a,67108864);s!==null&&Dn(s,a,67108864),np(a,67108864)}}var E0=!0;function UL(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 kL(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(VL(p,a,s,d,A))A.stopPropagation();else if(by(a,A),s&4&&-1<GL.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 D=zu(I.pendingLanes);if(D!==0){var F=I;for(F.pendingLanes|=2,F.entangledLanes|=2;D;){var M=1<<31-Vn(D);F.entanglements[1]|=M,D&=~M}jr(I),(Rt&6)===0&&(t0=Be()+500,gl(0))}}break;case 13:F=Yi(I,2),F!==null&&Dn(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=Ku(a),a!==null){var s=X(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 Dy(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=[],GL="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 Tl(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&&Ty(s)),a):(a.eventSystemFlags|=A,s=a.targetContainers,p!==null&&s.indexOf(p)===-1&&s.push(p),a)}function VL(a,s,d,A,p){switch(s){case"focusin":return ou=Tl(ou,a,s,d,A,p),!0;case"dragenter":return lu=Tl(lu,a,s,d,A,p),!0;case"mouseover":return cu=Tl(cu,a,s,d,A,p),!0;case"pointerover":var I=p.pointerId;return vl.set(I,Tl(vl.get(I)||null,a,s,d,A,p)),!0;case"gotpointercapture":return I=p.pointerId,Rl.set(I,Tl(Rl.get(I)||null,a,s,d,A,p)),!0}return!1}function xy(a){var s=Ku(a.target);if(s!==null){var d=X(s);if(d!==null){if(s=d.tag,s===13){if(s=Ae(d),s!==null){a.blockedOn=s,MF(a.priority,function(){if(d.tag===13){var A=Yn(),p=Yi(d,A);p!==null&&Dn(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&&Ty(s),a.blockedOn=d,!1;s.shift()}return!0}function By(a,s,d){_0(a)&&d.delete(s)}function jL(){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,jL)))}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 Dl(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],D=p[On]||null;if(typeof I=="function")D||Fy(d);else if(D){var F=null;if(I&&I.hasAttribute("formAction")){if(p=I,D=I[On]||null)F=D.formAction;else if(up(p)!==null)continue}else F=D.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 zL={bundleType:0,version:"19.0.0",rendererPackageName:"react-dom",currentDispatcherRef:U,findFiberByHostInstance:Ku,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(zL),Rn=y0}catch{}}return xl.createRoot=function(a,s){if(!u(a))throw Error(r(299));var d=!1,A="",p=qN,I=QN,D=XN,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&&(D=s.onRecoverableError),s.unstable_transitionCallbacks!==void 0&&(F=s.unstable_transitionCallbacks)),s=yy(a,1,!1,null,null,d,A,p,I,D,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,D=QN,F=XN,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&&(D=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,D,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 rw(){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=nw(),cp.exports}var iw=rw();const uw={locales:["en","en-GB","fr","es","de","ja","ko","zh","it","pt","hi","ar","ru"],requiredLocales:[],strictMode:"strict",defaultLocale:"en"},aw={headerName:"x-intlayer-locale",cookieName:"INTLAYER_LOCALE",prefixDefault:!1,basePath:"",serverSetCookie:"always",noPrefix:!1},sw={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"},ow={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},lw={mode:"default",prefix:"\x1B[90m[intlayer] \x1B[0m"},Xe={internationalization:uw,middleware:aw,content:sw,editor:ow,log:lw},fn=[];for(let e=0;e<256;++e)fn.push((e+256).toString(16).slice(1));function cw(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 dw=new Uint8Array(16);function fw(){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(dw)}const hw=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),zy={randomUUID:hw};function Aw(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))??fw();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,cw(r)}const{editor:vi}=Xe,VR=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(Aw()),u=y.useMemo(()=>({postMessage:n,allowedOrigins:t,senderId:r.current}),[n,t,r.current]);return N.jsx(VR.Provider,{value:u,children:e})},jR=()=>y.useContext(VR),mw=(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}=jR();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=>mw(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})}},pw=(e,t)=>typeof e=="function"?e(t):e,Ga=(e,t,n)=>{const{postMessage:r,senderId:u}=jR(),{emit:o,receive:l}=n??{emit:!0,receive:!0},c=(_,S)=>{const C=pw(_,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]},zR=y.createContext(void 0),Ew=({children:e,configuration:t})=>N.jsx(zR.Provider,{value:t,children:e}),ii=()=>y.useContext(zR),KR=y.createContext(void 0),$R=y.createContext(void 0),gw=({children:e})=>{const[t,n]=Ga("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(KR.Provider,{value:r,children:N.jsx($R.Provider,{value:u,children:e})})},qg=()=>y.useContext($R),YR=()=>{const e=qg(),t=y.useContext(KR);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 _w=(e,t,n)=>({...n,nodeType:e,[e]:t}),Ee=e=>_w($.Translation,e),Sw=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)},ZR=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]=Sw(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},Nw=(e,t)=>{const n=Object.keys(e),r=n[n.length-1];return e[`${t}`]??e.fallback??e[r]},Iw=(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}},yw=(e,t)=>{const n=Iw(e,t)??"fallback";return e[n]},$y={},Cw=(e,t,n=Xe.internationalization.defaultLocale)=>{const r=[Fw,bw(n),xw,Bw,Ow,Lw,...t.plugins??[]];return q0(e,{...t,plugins:r})},WR=(e,t,n)=>{const r={dictionaryKey:e.key,dictionaryPath:e.filePath,keyPath:[],plugins:n};return Cw(e.content,r,t)},vw=(e,t,n)=>{const r=$y[e];if(!r)throw new Error(`Dictionary ${e} not found`,$y);return WR(r,t,n)},Rw=(e,t,n)=>{const r=vw(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},Tw=(e,t)=>{const{defaultLocale:n}=Xe==null?void 0:Xe.internationalization;return e[t??n]??e[n]},Dw=(e,t)=>e.replace(/\{\{(.*?)\}\}/g,(n,r)=>(t[r]??"").toString()),bw=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 Tw(u,e)}}),xw={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=>yw(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=>Nw(r,u)}},Fw={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=Dw(h,m);return f(E,{...c,plugins:t.plugins,children:E})}}},...t.plugins??[]]})}},Ow={id:"nested-plugin",canHandle:e=>typeof e=="object"&&(e==null?void 0:e.nodeType)===$.Nested,transform:(e,t)=>Rw(e.nested.dictionaryKey,e.nested.path,t)},Lw={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"},ww=e=>(Object.keys(e).forEach(t=>{e[t]===void 0&&delete e[t]}),e),C0=e=>e.reduce((t,n)=>{const r=t??{},u=ww(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()},Mw=(e={},t=Xe)=>{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})}},Pw=(e={},t=Xe)=>{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}})}},Hw=(e={},t=Xe)=>{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}})}},Uw=(e={},t=Xe)=>{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}})}},kw=(e={},t=Xe)=>{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"})}},Gw=(e={},t=Xe)=>{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}})}},Vw=(e={},t=Xe)=>{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"})}},jw=(e={},t=Xe)=>{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"})}},zw=(e={},t=Xe)=>{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:kw(e,t),project:Gw(e,t),user:zw(e,t),auth:Pw(e,t),dictionary:Hw(e,t),stripe:Vw(e,t),ai:Mw(e,t),tag:jw(e,t),editor:Uw(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},qR=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},Kw=(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},$w=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:$w(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)"},fa={[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)"},Yw={[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]:"줄루어 (남아프리카)"},Qy={[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)"},Xy={[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]:"Зулу (Южная Африка)"},ha={[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]:"祖鲁语(南非)"},Zw={[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]:fa,[i.FRENCH_BELGIUM]:fa,[i.FRENCH_CANADA]:fa,[i.FRENCH_SWITZERLAND]:fa,[i.FRENCH_FRANCE]:fa,[i.FRENCH_LUXEMBOURG]:fa,[i.FRENCH_PRINCIPALITY_OF_MONACO]:fa,[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]:ha,[i.CHINESE_HONG_KONG]:ha,[i.CHINESE_MACAU]:ha,[i.CHINESE_SINGAPORE]:ha,[i.CHINESE_SIMPLIFIED]:ha,[i.CHINESE_SIMPLIFIED_CHINA]:ha,[i.CHINESE_TRADITIONAL]:ha,[i.RUSSIAN]:Xy,[i.RUSSIAN_RUSSIA]:Xy,[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]:Yw,[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},Q0=(e,t)=>{var n;return t?((n=Zw[t])==null?void 0:n[e])??Qy[e]??"Unknown locale":Qy[e]},Ww=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"}},qw=[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],Qw=(e,t=Xe.internationalization.locales,n=Xe.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},Xw=(e,t=Xe.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","")},Jw=(e,t=Xe.internationalization.locales,n=Xe.internationalization.defaultLocale,r=Xe.middleware.prefixDefault)=>{const u=Xw(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},{})},e2=(e,t,n=Xe.internationalization.locales,r=Xe.internationalization.defaultLocale,u=Xe.middleware.prefixDefault)=>Jw(e,n,r,u)[t],XR=y.createContext(void 0),t2=e=>Js("INTLAYER_EDITED_CONTENT_CHANGED/get",e),JR=y.createContext(void 0),Jy=(e,t)=>typeof e=="function"?e(t):e,n2=({children:e})=>{const{localeDictionaries:t}=YR(),[n,r]=Ga("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 T=(B=t[_])==null?void 0:B.content,b=structuredClone(((O=R==null?void 0:R[_])==null?void 0:O.content)??T);let L=C;if(!v){let H=0;const U=C.slice(0,-1),G=C[C.length-1];let ce=G.key;for(;typeof Fi(b,L)<"u";)H++,ce=H===0?G.key:`${G.key} (${H})`,L=[...U,{...G,key:ce}]}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,T=structuredClone(((x=v==null?void 0:v[_])==null?void 0:x.content)??R),b=Kw(T,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),T=Fi(v,S),b=Zy(R,S,T);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,T])=>R===_?v:{...v,[R]:T},{}))},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(JR.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(JR),Fn=()=>{const e=y.useContext(XR),t=fo();return{...e,...t}},e9=y.createContext(void 0),t9=y.createContext(void 0),r2=({children:e})=>{const[t,n]=Ga("INTLAYER_FOCUSED_CONTENT_CHANGED",null),r=u=>{n(o=>o&&{...o,keyPath:u})};return N.jsx(e9.Provider,{value:{focusedContent:t},children:N.jsx(t9.Provider,{value:{setFocusedContent:n,setFocusedContentKeyPath:r},children:e})})},Qg=()=>{const e=y.useContext(t9);if(e===void 0)throw new Error("useFocusDictionaryActions must be used within a FocusDictionaryProvider");return e},Ou=()=>{const e=Qg(),t=y.useContext(e9);if(t===void 0)throw new Error("useFocusDictionaryState must be used within a FocusDictionaryProvider");return{...t,...e}},n9=y.createContext({enabled:!1}),i2=e=>Ga("INTLAYER_EDITOR_ENABLED",!1,e),u2=e=>Js("INTLAYER_EDITOR_ENABLED/post",e),r9=e=>Js("INTLAYER_EDITOR_ENABLED/get",e),a2=({children:e})=>{const[t]=i2({emit:!1,receive:!0});return N.jsx(n9.Provider,{value:{enabled:t},children:e})},i9=()=>y.useContext(n9),s2=y.createContext(void 0),o2=y.createContext(void 0),l2=({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(s2.Provider,{value:{changedContent:t},children:N.jsx(o2.Provider,{value:{setChangedContent:r},children:e})})},e3=({children:e})=>{const t=t2();return y.useEffect(()=>{t()},[]),N.jsx(gw,{children:N.jsx(n2,{children:N.jsx(r2,{children:e})})})},c2=({children:e,fallback:t})=>{const n=r9(),{enabled:r}=i9();return y.useEffect(()=>{r||n()},[r]),r?e:t},d2=({children:e,fallback:t})=>{const[n,r]=y.useState(!1);return y.useEffect(()=>{r(window.self!==window.top)},[]),n?e:t},f2=({children:e,configuration:t,...n})=>N.jsx(l2,{children:N.jsx(a2,{children:N.jsx(Ew,{configuration:t,children:n.mode==="editor"?N.jsx(Ky,{...n,children:N.jsx(e3,{children:e})}):N.jsx(d2,{fallback:e,children:N.jsx(Ky,{...n,children:N.jsx(c2,{fallback:e,children:N.jsx(e3,{children:e})})})})})})}),h2=(e,t)=>Ga("INTLAYER_URL_CHANGE",e,t),A2=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)},m2=()=>Js("INTLAYER_IFRAME_CLICKED",A2);/*! 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 p2={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 DE(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 DE(this.converter,v0({},this.attributes,u))},withConverter:function(u){return DE(v0({},this.converter,u),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(e)}})}var u9=DE(p2,{path:"/"});const{cookieName:a9}=Xe.middleware,E2={path:"/",expires:void 0,domain:void 0,secure:!1,sameSite:"strict"},Xg=u9.get(a9),s9=e=>{u9.set(a9,e,E2)},g2=()=>({localeCookie:Xg,setLocaleCookie:s9});var kR;const dh=y.createContext({locale:Xg??((kR=Xe==null?void 0:Xe.internationalization)==null?void 0:kR.defaultLocale),setLocale:()=>null,disableEditor:!1}),_2=()=>y.useContext(dh),S2=({locale:e,defaultLocale:t,children:n,setLocale:r,disableEditor:u})=>{const{internationalization:o}=Xe??{},{defaultLocale:l,locales:c}=o??{},f=e??Xg??t??l,[h,m]=Ga("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),s9(S)}}),_=Qw(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},N2=e=>Jg(e),I2=250,y2=({children:e,onPress:t,onClickOutside:n,pressDuration:r=I2,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)},T=()=>{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:T,onMouseLeave:T,onTouchStart:v,onTouchEnd:T,onTouchCancel:T,onBlur:x,onMouseEnter:R,ref:l,...o,children:e})},C2=({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(y2,{onPress:o,isSelecting:l,children:e})},pf=({children:e,...t})=>{const{enabled:n}=i9(),{disableEditor:r}=_2();return n&&!r?N.jsx(C2,{...t,children:e}):e},v2=y.createContext({renderMarkdown:e=>e}),R2=()=>y.useContext(v2),T2=({dictionaryKey:e,keyPath:t,children:n})=>{const{renderMarkdown:r}=R2(),u=Jg({dictionaryKey:e,keyPath:t,children:n});return r(u)},D2=({dictionaryKey:e,keyPath:t,children:n,metadataKeyPath:r})=>{const u=Jg({dictionaryKey:e,keyPath:t,children:n}),o=ZR(u);return Fi(o,r)},b2={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(N2,{...n,children:n.children})})})},x2={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=ZR(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(D2,{...u,metadataKeyPath:h.keyPath,children:f})})})}],dictionaryKey:u.dictionaryKey,keyPath:[]});return mf({...t,value:e,children:N.jsx(pf,{...u,children:N.jsx(T2,{...u,children:e})}),additionalProps:{metadata:c}})}},F2={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??[]]})}},O2=(e,t,n)=>WR(e,t,[b2,x2,F2]),sn=(e,t)=>{const{locale:n}=y.useContext(dh);return O2(e,n)},e4=({onLocaleChange:e}={})=>{const{prefixDefault:t}=(Xe==null?void 0:Xe.middleware)??{},{defaultLocale:n,locales:r}=(Xe==null?void 0:Xe.internationalization)??{},{locale:u,setLocale:o}=y.useContext(dh),{setLocaleCookie:l}=g2();return{locale:u,defaultLocale:n,availableLocales:r,localeList:qw,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 L2(){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 T=g.indexOf("=",R);if(T===-1)break;const b=g.indexOf(";",R),L=b===-1?C:b;if(T>L){R=g.lastIndexOf(";",T-1)+1;continue}const x=c(g,R,T),B=f(g,T,x),O=g.slice(x,B);if(S[O]===void 0){let H=c(g,T+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}L2();/**
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 w2(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 P2(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 M2(){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||M2()}}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 P2(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 T=bE(C.location,v,R);h=m()+1;let b=r3(T,h),L=C.createHref(T);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 T=bE(C.location,v,R);h=m();let b=r3(T,h),L=C.createHref(T);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,T=typeof v=="string"?v:sc(v);return T=T.replace(/ $/,"%20"),bt(R,`No window.location.(origin|href) available to create URL for href: ${T}`),new URL(T,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 o9(e,t,n="/"){return H2(e,t,n,!1)}function H2(e,t,n,r){let u=typeof t=="string"?ho(t):t,o=wi(u.pathname||"/",n);if(o==null)return null;let l=l9(e);U2(l);let c=null;for(let f=0;c==null&&f<l.length;++f){let h=q2(o);c=Z2(l[f],h,r)}return c}function l9(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}".`),l9(o.children,t,m,h)),!(o.path==null&&!o.index)&&t.push({path:h,score:$2(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 c9(o.path))u(o,l,f)}),t}function c9(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=c9(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 U2(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:Y2(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}var k2=/^:[\w-]+$/,G2=3,V2=2,j2=1,z2=10,K2=-2,i3=e=>e==="*";function $2(e,t){let n=e.split("/"),r=n.length;return n.some(i3)&&(r+=K2),t&&(r+=V2),n.filter(u=>!i3(u)).reduce((u,o)=>u+(k2.test(o)?G2:o===""?j2:z2),r)}function Y2(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 Z2(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:eM(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]=W2(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 W2(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 q2(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 Q2(e,t="/"){let{pathname:n,search:r="",hash:u=""}=typeof e=="string"?ho(e):e;return{pathname:n?n.startsWith("/")?n:X2(n,t):t,search:tM(r),hash:nM(u)}}function X2(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 J2(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function d9(e){let t=J2(e);return t.map((n,r)=>r===t.length-1?n.pathname:n.pathnameBase)}function f9(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=Q2(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,"/"),eM=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),tM=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,nM=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function rM(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}var h9=["POST","PUT","PATCH","DELETE"];new Set(h9);var iM=["GET",...h9];new Set(iM);var Ao=y.createContext(null);Ao.displayName="DataRouter";var fh=y.createContext(null);fh.displayName="DataRouterState";var A9=y.createContext({isTransitioning:!1});A9.displayName="ViewTransition";var uM=y.createContext(new Map);uM.displayName="Fetchers";var aM=y.createContext(null);aM.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 sM(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 m9="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function p9(e){y.useContext(ui).static||y.useLayoutEffect(e)}function oM(){let{isDataRoute:e}=y.useContext(Gi);return e?NM():lM()}function lM(){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(d9(r)),l=y.useRef(!1);return p9(()=>{l.current=!0}),y.useCallback((f,h={})=>{if(ei(l.current,m9),!l.current)return;if(typeof f=="number"){n.go(f);return}let m=f9(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(d9(n));return y.useMemo(()=>f9(e,JSON.parse(u),r,t==="path"),[e,u,r,t])}function cM(e,t){return E9(e,t)}function E9(e,t,n,r){var T;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||"";g9(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==="/"||((T=b.pathname)==null?void 0:T.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:o9(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=mM(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 dM(){let e=SM(),t=rM(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 fM=y.createElement(dM,null),hM=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 AM({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 mM(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||fM,l&&(c<0&&m===0?(g9("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(AM,{match:h,routeContext:{outlet:f,matches:C,isDataRoute:n!=null},children:R})};return n&&(h.route.ErrorBoundary||h.route.errorElement||m===0)?y.createElement(hM,{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 pM(e){let t=y.useContext(Ao);return bt(t,n4(e)),t}function EM(e){let t=y.useContext(fh);return bt(t,n4(e)),t}function gM(e){let t=y.useContext(Gi);return bt(t,n4(e)),t}function r4(e){let t=gM(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 _M(){return r4("useRouteId")}function SM(){var r;let e=y.useContext(t4),t=EM("useRouteError"),n=r4("useRouteError");return e!==void 0?e:(r=t.errors)==null?void 0:r[n]}function NM(){let{router:e}=pM("useNavigate"),t=r4("useNavigate"),n=y.useRef(!1);return p9(()=>{n.current=!0}),y.useCallback(async(u,o={})=>{ei(n.current,m9),n.current&&(typeof u=="number"?e.navigate(u):await e.navigate(u,{fromRouteId:t,...o}))},[e,t])}var u3={};function g9(e,t,n){!t&&!u3[e]&&(u3[e]=!0,ei(!1,n))}y.memo(IM);function IM({routes:e,future:t,state:n}){return E9(e,void 0,n,t)}function _9(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 yM({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 CM({children:e,location:t}){return cM(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===_9,`[${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 X0="get",J0="application/x-www-form-urlencoded";function hh(e){return e!=null&&typeof e.tagName=="string"}function vM(e){return hh(e)&&e.tagName.toLowerCase()==="button"}function RM(e){return hh(e)&&e.tagName.toLowerCase()==="form"}function TM(e){return hh(e)&&e.tagName.toLowerCase()==="input"}function DM(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function bM(e,t){return e.button===0&&(!t||t==="_self")&&!DM(e)}var R0=null;function xM(){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 FM(e,t){let n,r,u,o,l;if(RM(e)){let c=e.getAttribute("action");r=c?wi(c,t):null,n=e.getAttribute("method")||X0,u=gp(e.getAttribute("enctype"))||J0,o=new FormData(e)}else if(vM(e)||TM(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")||X0,u=gp(e.getAttribute("formenctype"))||gp(c.getAttribute("enctype"))||J0,o=new FormData(c,e),!xM()){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=X0,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 OM(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 LM(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 wM(e,t,n){let r=await Promise.all(e.map(async u=>{let o=t.routes[u.route.id];if(o){let l=await OM(o,n);return l.links?l.links():[]}return[]}));return UM(r.flat(1).filter(LM).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 MM(e,t,{includeHydrateFallback:n}={}){return PM(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 PM(e){return[...new Set(e)]}function HM(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function UM(e,t){let n=new Set;return new Set(t),e.reduce((r,u)=>{let o=JSON.stringify(HM(u));return n.has(o)||(n.add(o),r.push({key:o,link:u})),r},[])}function kM(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 S9(){let e=y.useContext(Ao);return i4(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function GM(){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 N9(){let e=y.useContext(u4);return i4(e,"You must render this element inside a <HydratedRouter> element"),e}function VM(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(T=>{l(T.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 jM({page:e,...t}){let{router:n}=S9(),r=y.useMemo(()=>o9(n.routes,e,n.basename),[n.routes,e,n.basename]);return r?y.createElement(KM,{page:e,matches:r,...t}):null}function zM(e){let{manifest:t,routeModules:n}=N9(),[r,u]=y.useState([]);return y.useEffect(()=>{let o=!1;return wM(e,t,n).then(l=>{o||u(l)}),()=>{o=!0}},[e,t,n]),r}function KM({page:e,matches:t,...n}){let r=Lu(),{manifest:u,routeModules:o}=N9(),{basename:l}=S9(),{loaderData:c,matches:f}=GM(),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 T=u.routes[R.route.id];!T||!T.hasLoader||(!h.some(L=>L.route.id===R.route.id)&&R.route.id in c&&((b=o[R.route.id])!=null&&b.shouldRevalidate)||T.hasClientLoader?C=!0:S.add(R.route.id))}),S.size===0)return[];let v=kM(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(()=>MM(m,u),[m,u]),_=zM(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 $M(...e){return t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})}}var I9=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{I9&&(window.__reactRouterVersion="7.3.0")}catch{}function YM({basename:e,children:t,window:n}){let r=y.useRef();r.current==null&&(r.current=w2({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(yM,{basename:e,children:t,location:o.location,navigationType:o.action,navigator:u})}var y9=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,C9=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"&&y9.test(h),v,R=!1;if(typeof h=="string"&&C&&(v=h,I9))try{let U=new URL(window.location.href),G=h.startsWith("//")?new URL(U.protocol+h):new URL(h),ce=wi(G.pathname,S);G.origin===U.origin&&ce!=null?h=ce+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 T=sM(h,{relative:u}),[b,L,x]=VM(r,g),B=QM(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||T,onClick:R||o?t:O,ref:$M(_,L),target:f,"data-discover":!C&&n==="render"?"true":void 0});return b&&!C?y.createElement(y.Fragment,null,H,y.createElement(jM,{page:T})):H});C9.displayName="Link";var ZM=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&&n8(E)&&c===!0,R=S.encodeLocation?S.encodeLocation(E).pathname:E.pathname,T=g.pathname,b=_&&_.navigation&&_.navigation.location?_.navigation.location.pathname:null;n||(T=T.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=T===R||!u&&T.startsWith(R)&&T.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(C9,{...h,"aria-current":H,className:U,ref:m,style:G,to:l,viewTransition:c},typeof f=="function"?f(O):f)});ZM.displayName="NavLink";var WM=y.forwardRef(({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:r,replace:u,state:o,method:l=X0,action:c,onSubmit:f,relative:h,preventScrollReset:m,viewTransition:E,...g},_)=>{let S=e8(),C=t8(c,{relative:h}),v=l.toLowerCase()==="get"?"get":"post",R=typeof c=="string"&&y9.test(c),T=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:T,...g,"data-discover":!R&&e==="render"?"true":void 0})});WM.displayName="Form";function qM(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function v9(e){let t=y.useContext(Ao);return bt(t,qM(e)),t}function QM(e,{target:t,replace:n,state:r,preventScrollReset:u,relative:o,viewTransition:l}={}){let c=oM(),f=Lu(),h=zc(e,{relative:o});return y.useCallback(m=>{if(bM(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 XM=0,JM=()=>`__${String(++XM)}__`;function e8(){let{router:e}=v9("useSubmit"),{basename:t}=y.useContext(ui),n=_M();return y.useCallback(async(r,u={})=>{let{action:o,method:l,encType:c,formData:f,body:h}=FM(r,t);if(u.navigate===!1){let m=u.fetcherKey||JM();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 t8(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 n8(e,t={}){let n=y.useContext(A9);bt(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=v9("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 Va=GR();const r8=lh(Va);function R9(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=R9(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=R9(e))&&(r&&(r+=" "),r+=t);return r}const a4="-",i8=e=>{const t=a8(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:l=>{const c=l.split(a4);return c[0]===""&&c.length!==1&&c.shift(),T9(c,t)||u8(l)},getConflictingClassGroupIds:(l,c)=>{const f=n[l]||[];return c&&r[l]?[...f,...r[l]]:f}}},T9=(e,t)=>{var l;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),u=r?T9(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=/^\[(.+)\]$/,u8=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}},a8=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(s8(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},s8=e=>e.isThemeGetter,o8=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=":",l8=OE.length,c8=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+l8;continue}if(C==="/"){h=S;continue}}C==="["?l++:C==="]"?l--:C==="("?c++:C===")"&&c--}const m=o.length===0?u:u.substring(f),E=d8(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},d8=e=>e.endsWith(FE)?e.substring(0,e.length-1):e.startsWith(FE)?e.substring(1):e,f8=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}},h8=e=>({cache:o8(e.cacheSize),parseClassName:c8(e),sortModifiers:f8(e),...i8(e)}),A8=/\s+/,m8=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:u,sortModifiers:o}=t,l=[],c=e.trim().split(A8);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 T=o(g).join(":"),b=_?T+FE:T,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 p8(){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 E8(e,...t){let n,r,u,o=l;function l(f){const h=t.reduce((m,E)=>E(m),e());return n=h8(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=m8(f,n);return u(f,m),m}return function(){return o(p8.apply(null,arguments))}}const un=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},b9=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,x9=/^\((?:(\w[\w-]*):)?(.+)\)$/i,g8=/^\d+\/\d+$/,_8=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,S8=/\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$/,N8=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,I8=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,y8=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,xs=e=>g8.test(e),st=e=>!!e&&!Number.isNaN(Number(e)),Aa=e=>!!e&&Number.isInteger(Number(e)),l3=e=>e.endsWith("%")&&st(e.slice(0,-1)),hu=e=>_8.test(e),C8=()=>!0,v8=e=>S8.test(e)&&!N8.test(e),s4=()=>!1,R8=e=>I8.test(e),T8=e=>y8.test(e),D8=e=>!be(e)&&!xe(e),b8=e=>mo(e,O9,s4),be=e=>b9.test(e),ma=e=>mo(e,L9,v8),_p=e=>mo(e,k8,st),x8=e=>mo(e,B9,s4),B8=e=>mo(e,F9,T8),F8=e=>mo(e,s4,R8),xe=e=>x9.test(e),T0=e=>po(e,L9),O8=e=>po(e,G8),L8=e=>po(e,B9),w8=e=>po(e,O9),M8=e=>po(e,F9),P8=e=>po(e,V8,!0),mo=(e,t,n)=>{const r=b9.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},po=(e,t,n=!1)=>{const r=x9.exec(e);return r?r[1]?t(r[1]):n:!1},B9=e=>e==="position",H8=new Set(["image","url"]),F9=e=>H8.has(e),U8=new Set(["length","size","percentage"]),O9=e=>U8.has(e),L9=e=>e==="length",k8=e=>e==="number",G8=e=>e==="family-name",V8=e=>e==="shadow",j8=()=>{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"),T=()=>["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=()=>[Aa,"none","subgrid",xe,be],U=()=>["auto",{span:["full",Aa,xe,be]},xe,be],G=()=>[Aa,"auto",xe,be],ce=()=>["auto","min","max","fr",xe,be],ae=()=>["start","end","center","between","around","evenly","stretch","baseline"],de=()=>["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,ma],X=()=>["","none","full",h,xe,be],Ae=()=>["",st,T0,ma],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],fe=()=>["none",st,xe,be],ge=()=>[st,xe,be],pe=()=>[xs,"full",...B()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[hu],breakpoint:[hu],color:[C8],container:[hu],"drop-shadow":[hu],ease:["in","out","in-out"],font:[D8],"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":T()}],"break-before":[{"break-before":T()}],"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:[Aa,"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:[Aa,"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":ce()}],"auto-rows":[{"auto-rows":ce()}],gap:[{gap:B()}],"gap-x":[{"gap-x":B()}],"gap-y":[{"gap-y":B()}],"justify-content":[{justify:[...ae(),"normal"]}],"justify-items":[{"justify-items":[...de(),"normal"]}],"justify-self":[{"justify-self":["auto",...de()]}],"align-content":[{content:["normal",...ae()]}],"align-items":[{items:[...de(),"baseline"]}],"align-self":[{self:["auto",...de(),"baseline"]}],"place-content":[{"place-content":ae()}],"place-items":[{"place-items":[...de(),"baseline"]}],"place-self":[{"place-self":["auto",...de()]}],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,T0,ma]}],"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:[O8,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,ma]}],"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(),L8,x8]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","space","round"]}]}],"bg-size":[{bg:["auto","cover","contain",w8,b8]}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Aa,xe,be],radial:["",xe,be],conic:[Aa,xe,be]},M8,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:X()}],"rounded-s":[{"rounded-s":X()}],"rounded-e":[{"rounded-e":X()}],"rounded-t":[{"rounded-t":X()}],"rounded-r":[{"rounded-r":X()}],"rounded-b":[{"rounded-b":X()}],"rounded-l":[{"rounded-l":X()}],"rounded-ss":[{"rounded-ss":X()}],"rounded-se":[{"rounded-se":X()}],"rounded-ee":[{"rounded-ee":X()}],"rounded-es":[{"rounded-es":X()}],"rounded-tl":[{"rounded-tl":X()}],"rounded-tr":[{"rounded-tr":X()}],"rounded-br":[{"rounded-br":X()}],"rounded-bl":[{"rounded-bl":X()}],"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,T0,ma]}],"outline-color":[{outline:[e]}],shadow:[{shadow:["","none",m,P8,F8]}],"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,ma]}],"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:fe()}],"scale-x":[{"scale-x":fe()}],"scale-y":[{"scale-y":fe()}],"scale-z":[{"scale-z":fe()}],"scale-3d":["scale-3d"],skew:[{skew:ge()}],"skew-x":[{"skew-x":ge()}],"skew-y":[{"skew-y":ge()}],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,T0,ma,_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","*","**"]}},w9=E8(j8),Re=(...e)=>w9(Ah(e)),M9=({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})}),z8=({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 K8=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),P9=(...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 $8={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 Y8=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,...$8,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:P9("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(Y8,{ref:o,iconNode:t,className:P9(`lucide-${K8(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 Z8=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],W8=Ct("ArrowLeft",Z8);/**
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 q8=[["path",{d:"m18 9-6-6-6 6",key:"kcunyi"}],["path",{d:"M12 3v14",key:"7cf3v8"}],["path",{d:"M5 21h14",key:"11awu3"}]],Q8=Ct("ArrowUpFromLine",q8);/**
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 X8=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Eo=Ct("Check",X8);/**
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 J8=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],H9=Ct("ChevronDown",J8);/**
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 eP=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],tP=Ct("ChevronLeft",eP);/**
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 nP=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],LE=Ct("ChevronRight",nP);/**
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 rP=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],iP=Ct("ChevronUp",rP);/**
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 uP=[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]],aP=Ct("ChevronsUpDown",uP);/**
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 sP=[["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"}]],oP=Ct("CopyCheck",sP);/**
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 lP=[["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"}]],cP=Ct("Copy",lP);/**
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 dP=[["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"}]],fP=Ct("Download",dP);/**
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 hP=[["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"}]],AP=Ct("ExternalLink",hP);/**
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 mP=[["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"}]],pP=Ct("EyeOff",mP);/**
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 EP=[["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"}]],gP=Ct("Eye",EP);/**
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 _P=[["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"}]],SP=Ct("Globe",_P);/**
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 NP=[["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"}]],IP=Ct("MoveVertical",NP);/**
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 yP=[["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"}]],CP=Ct("Pencil",yP);/**
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 vP=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],mh=Ct("Plus",vP);/**
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 RP=[["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"}]],TP=Ct("RotateCcw",RP);/**
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 DP=[["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"}]],c3=Ct("Save",DP);/**
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 bP=[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]],xP=Ct("Search",bP);/**
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 BP=[["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",BP);/**
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 FP=[["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"}]],U9=Ct("WandSparkles",FP);/**
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 OP=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],ja=Ct("X",OP),k9=e=>{const[t,n]=y.useState(e);return y.useEffect(()=>{n(e??window.document.body)},[e]),t},LP={},d3=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:()=>{(LP?"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},wP=e=>e?d3(e):d3;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 f3;function MP(){if(f3)return yp;f3=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 h3;function G9(){return h3||(h3=1,Ip.exports=MP()),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 A3;function PP(){if(A3)return Np;A3=1;var e=kc(),t=G9();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(!T){if(T=!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 T=!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 m3;function HP(){return m3||(m3=1,Sp.exports=PP()),Sp.exports}var UP=HP();const kP=lh(UP),V9={},{useDebugValue:GP}=$e,{useSyncExternalStoreWithSelector:VP}=kP;let p3=!1;const jP=e=>e;function zP(e,t=jP,n){(V9?"production":void 0)!=="production"&&n&&!p3&&(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"),p3=!0);const r=VP(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,n);return GP(r),r}const E3=e=>{(V9?"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"?wP(e):e,n=(r,u)=>zP(t,r,u);return Object.assign(n,t),n},j9=e=>e?E3(e):E3,KP=j9((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 $P(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:YP}=$e;function z9(e){const t=YP();return n=>{const r=e(n);return $P(t.current,r)?t.current:t.current=r}}const K9=e=>{const{disableScroll:t=!1,element:n,key:r="unnamed_blocker"}=e??{},{isElementScrollBlocked:u,addBlockage:o,removeBlockage:l}=KP(z9(h=>({isElementScrollBlocked:h.isElementScrollBlocked,addBlockage:h.addBlockage,removeBlockage:h.removeBlockage}))),c=k9(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}},ZP=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}},WP=()=>{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)},qP=e=>{if(!(typeof window>"u"))return((window==null?void 0:window.innerWidth)??0)<=e},g3=e=>{const t=ZP(e),n=WP(),r=qP(t);return{isMobileScreen:r,isMobileUserAgent:n,isMobile:r??n}},QP=(e="md")=>{const[t,n]=y.useState(g3(e));return y.useEffect(()=>{const r=()=>{n(g3(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},_3=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,S3=Ah,Ir=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return S3(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=_3(m)||_3(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 S3(e,l,f,n==null?void 0:n.class,n==null?void 0:n.className)},JP=({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(JP,{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"}}),eH=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:eH({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"})})]})},tH=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(tH({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=j9((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})),$9=({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(z9(C=>({close:()=>C.close(t),open:()=>C.open(t),isOpen:C.isOpen(t)})));K9({disableScroll:_,key:t?`right_drawer_${t}`:"right_drawer"}),y.useEffect(()=>{const C=v=>{try{if(!h.current)return;const R=_&&u,T=v.target&&!h.current.contains(v.target),b=XP(h.current);(R&&T&&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(z8,{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:tP,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:ja,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])),nH=(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}},Y9=y.createContext(null),rH=({children:e})=>{const[t,n]=y.useReducer(nH,{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(Y9.Provider,{value:{getStates:r,setQueryState:u,setQueriesState:o,makeQueryInError:l,resetKeyState:c,resetState:f},children:e})},iH=()=>{const e=y.useContext(Y9);if(!e)throw new Error("useAsyncState must be used within an AsyncStateProvider");return e},D0=new Map,uH=!1,aH=!1,sH=!0,oH=!1,lH=1,cH=!1,dH=5*60*1e3,fH=5*60*1e3,wE=e=>e?Array.isArray(e)?e:[e]:[],N3=(e,t)=>wE(t).length>0?`${e}/${JSON.stringify(t)}`:e,Kc=(e,t,n)=>{const r=(n==null?void 0:n.retryLimit)??lH,u=(n==null?void 0:n.autoFetch)??oH,o=(n==null?void 0:n.retryTime)??fH,l=(n==null?void 0:n.cache)??uH,c=(n==null?void 0:n.store)??aH,f=(n==null?void 0:n.enable)??sH,h=(n==null?void 0:n.revalidation)??cH,m=(n==null?void 0:n.revalidateTime)??dH,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:T,makeQueryInError:b}=iH(),L=y.useRef(C),x=y.useRef(null),B=N3(e,L.current),{isFetched:O,fetchedDateTime:H,isLoading:U,isEnabled:G,error:ce,isSuccess:ae,isInvalidated:de,data:Z,errorCount:te}=v(B),V=async(...W)=>{const j=N3(e,W);x.current&&x.current.abort();const re=new AbortController;if(x.current=re,D0.has(j))return D0.get(j);const ne=(async()=>{R(j,{isLoading:!0});let fe=null;return await t(...W).then(ge=>{fe=ge,R(j,{data:ge,errorCount:0,isLoading:!1,isFetched:!0,fetchedDateTime:new Date,isSuccess:!0,isInvalidated:!1,error:null}),_==null||_(ge),g.length>0&&T(g,{isInvalidated:!0}),E.length>0&&T(E,{data:ge}),c&&localStorage.setItem(j,JSON.stringify(ge))}).catch(ge=>{const pe=ge instanceof Error?ge.message:String(ge);b(j,pe),S==null||S(ge.message)}).finally(()=>{D0.delete(j)}),fe})();return D0.set(j,ne),await ne},ee=async(...W)=>{if(!(!G||!f))return W&&(L.current=wE(W)),await V(...L.current)},X=async(...W)=>!G||!f||U?void 0:!de&&ae&&l&&Z?Z:await ee(...W);y.useEffect(()=>{f!==G&&R(B,{isEnabled:G})},[f,G,B]),y.useEffect(()=>{if(!G||!f||!c||de||O||Z)return;const W=localStorage.getItem(B);try{W&&R(B,{data:JSON.parse(W)})}catch(j){console.error(j)}},[c,B,O,de,G,f,Z]),y.useEffect(()=>{u&&(!G||!f||O&&!de||U||V(...L.current))},[u,G,f,O,de,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:de,error:ce,data:Z,errorCount:te,isSuccess:ae,isEnabled:G,isDisabled:!G,isLoading:U,isWaitingData:U&&!O&&!Z,isRevalidating:U&&O,[e]:X,revalidate:ee,setData:Ae};return y.useEffect(()=>()=>{x.current&&x.current.abort()},[]),P},hH=e=>{var c;const t=ii(),r=ch(void 0,e??t??Xe),{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}},AH=e=>{const t=ii(),n=e??t??Xe,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}},mH=(e,t)=>{const n=ii(),u=ch(void 0,t??n??Xe),{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}=hH(t),{session:u,fetchSession:o,revalidateSession:l,setSession:c}=mH(e,t),{oAuth2AccessToken:f}=AH(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 I3(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Z9(...e){return t=>{let n=!1;const r=e.map(u=>{const o=I3(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():I3(e[u],null)}}}}function xt(...e){return y.useCallback(Z9(...e),e)}function pH(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,EH(u,...t)]}function EH(...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 Ba=y.forwardRef((e,t)=>{const{children:n,...r}=e,u=y.Children.toArray(n),o=u.find(_H);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})});Ba.displayName="Slot";var ME=y.forwardRef((e,t)=>{const{children:n,...r}=e;if(y.isValidElement(n)){const u=NH(n),o=SH(r,n.props);return n.type!==y.Fragment&&(o.ref=t?Z9(t,u):u),y.cloneElement(n,o)}return y.Children.count(n)>1?y.Children.only(null):null});ME.displayName="SlotClone";var gH=({children:e})=>N.jsx(N.Fragment,{children:e});function _H(e){return y.isValidElement(e)&&e.type===gH}function SH(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 NH(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 W9(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),T=xt(S,R.collectionRef);return N.jsx(Ba,{ref:T,children:v})});f.displayName=c;const h=e+"CollectionItemSlot",m="data-radix-collection-item",E=$e.forwardRef((_,S)=>{const{scope:C,children:v,...R}=_,T=$e.useRef(null),b=xt(S,T),L=o(h,C);return $e.useEffect(()=>(L.itemMap.set(T,{ref:T,...R}),()=>void L.itemMap.delete(T))),N.jsx(Ba,{[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 IH=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],rt=IH.reduce((e,t)=>{const n=y.forwardRef((r,u)=>{const{asChild:o,...l}=r,c=o?Ba: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 q9(e,t){e&&Va.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 yH(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 CH="DismissableLayer",PE="dismissableLayer.update",vH="dismissableLayer.pointerDownOutside",RH="dismissableLayer.focusOutside",y3,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),T=m?C.indexOf(m):-1,b=h.layersWithOutsidePointerEventsDisabled.size>0,L=T>=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=bH(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 yH(O=>{T===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&&(y3=g.body.style.pointerEvents,g.body.style.pointerEvents="none"),h.layersWithOutsidePointerEventsDisabled.add(m)),h.layers.add(m),C3(),()=>{n&&h.layersWithOutsidePointerEventsDisabled.size===1&&(g.body.style.pointerEvents=y3)}},[m,g,n,h]),y.useEffect(()=>()=>{m&&(h.layers.delete(m),h.layersWithOutsidePointerEventsDisabled.delete(m),C3())},[m,h]),y.useEffect(()=>{const O=()=>_({});return document.addEventListener(PE,O),()=>document.removeEventListener(PE,O)},[]),N.jsx(rt.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=CH;var TH="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(rt.div,{...e,ref:u})});X9.displayName=TH;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(){J9(vH,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 bH(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&&J9(RH,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 C3(){const e=new CustomEvent(PE);document.dispatchEvent(e)}function J9(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?q9(u,o):u.dispatchEvent(o)}var xH=Eh,BH=X9,Cn=globalThis!=null&&globalThis.document?y.useLayoutEffect:()=>{},FH="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?r8.createPortal(N.jsx(rt.div,{...r,ref:t}),l):null});gh.displayName=FH;function OH(e,t){return y.useReducer((n,r)=>t[n][r]??n,e)}var Zc=e=>{const{present:t,children:n}=e,r=LH(t),u=typeof n=="function"?n({present:r.isPresent}):y.Children.only(n),o=xt(r.ref,wH(u));return typeof n=="function"||r.isPresent?y.cloneElement(u,{ref:o}):null};Zc.displayName="Presence";function LH(e){const[t,n]=y.useState(),r=y.useRef({}),u=y.useRef(e),o=y.useRef("none"),l=e?"mounted":"unmounted",[c,f]=OH(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 wH(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]=MH({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 MH({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 PH="VisuallyHidden",_h=y.forwardRef((e,t)=>N.jsx(rt.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=PH;var l4="ToastProvider",[c4,HH,UH]=W9("Toast"),[eT,kH]=Yc("Toast",[UH]),[GH,Sh]=eT(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(GH,{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 tT="ToastViewport",VH=["F8"],HE="toast.viewportPause",UE="toast.viewportResume",f4=y.forwardRef((e,t)=>{const{__scopeToast:n,hotkey:r=VH,label:u="Notifications ({hotkey})",...o}=e,l=Sh(tT,n),c=HH(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 T=()=>{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",T),v.addEventListener("focusout",L),v.addEventListener("pointermove",T),v.addEventListener("pointerleave",x),window.addEventListener("blur",T),window.addEventListener("focus",b),()=>{v.removeEventListener("focusin",T),v.removeEventListener("focusout",L),v.removeEventListener("pointermove",T),v.removeEventListener("pointerleave",x),window.removeEventListener("blur",T),window.removeEventListener("focus",b)}}},[S,l.isClosePausedRef]);const C=y.useCallback(({tabbingDirection:v})=>{const T=c().map(b=>{const L=b.ref.current,x=[L,...tU(L)];return v==="forwards"?x:x.reverse()});return(v==="forwards"?T.reverse():T).flat()},[c]);return y.useEffect(()=>{const v=E.current;if(v){const R=T=>{var x,B,O;const b=T.altKey||T.ctrlKey||T.metaKey;if(T.key==="Tab"&&!b){const H=document.activeElement,U=T.shiftKey;if(T.target===v&&U){(x=h.current)==null||x.focus();return}const ae=C({tabbingDirection:U?"backwards":"forwards"}),de=ae.findIndex(Z=>Z===H);Rp(ae.slice(de+1))?T.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(BH,{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(rt.ol,{tabIndex:-1,...o,ref:g})}),S&&N.jsx(kE,{ref:m,onFocusFromOutsideViewport:()=>{const v=C({tabbingDirection:"backwards"});Rp(v)}})]})});f4.displayName=tT;var nT="ToastFocusProxy",kE=y.forwardRef((e,t)=>{const{__scopeToast:n,onFocusFromOutsideViewport:r,...u}=e,o=Sh(nT,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=nT;var Nh="Toast",jH="toast.swipeStart",zH="toast.swipeMove",KH="toast.swipeCancel",$H="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(WH,{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[YH,ZH]=eT(Nh,{onClose(){}}),WH=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),T=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,ce=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(ce,Z))},[ce]);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 de=y.useMemo(()=>v?aT(v):null,[v]);return C.viewport?N.jsxs(N.Fragment,{children:[de&&N.jsx(qH,{__scopeToast:n,role:"status","aria-live":r==="foreground"?"assertive":"polite","aria-atomic":!0,children:de}),N.jsx(YH,{scope:n,onClose:ce,children:Va.createPortal(N.jsx(c4.ItemSlot,{scope:n,children:N.jsx(xH,{asChild:!0,onEscapeKeyDown:lt(c,()=>{C.isFocusedToastEscapeKeyDownRef.current||ce(),C.isFocusedToastEscapeKeyDownRef.current=!1}),children:N.jsx(rt.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":o?"open":"closed","data-swipe-direction":C.swipeDirection,...S,ref:T,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,ce()))}),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,X=["left","right"].includes(C.swipeDirection),Ae=["left","up"].includes(C.swipeDirection)?Math.min:Math.max,P=X?Ae(0,te):0,W=X?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(zH,E,ne,{discrete:!1})):v3(re,C.swipeDirection,j)?(L.current=re,x0(jH,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,X={originalEvent:Z,delta:te};v3(te,C.swipeDirection,C.swipeThreshold)?x0($H,_,X,{discrete:!0}):x0(KH,g,X,{discrete:!0}),ee.addEventListener("click",Ae=>Ae.preventDefault(),{once:!0})}})})})}),C.viewport)})]}):null}),qH=e=>{const{__scopeToast:t,children:n,...r}=e,u=Sh(Nh,t),[o,l]=y.useState(!1),[c,f]=y.useState(!1);return JH(()=>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(rt.div,{...r,ref:t})});A4.displayName=QH;var XH="ToastDescription",m4=y.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return N.jsx(rt.div,{...r,ref:t})});m4.displayName=XH;var rT="ToastAction",p4=y.forwardRef((e,t)=>{const{altText:n,...r}=e;return n.trim()?N.jsx(uT,{altText:n,asChild:!0,children:N.jsx(Ih,{...r,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${rT}\`. Expected non-empty \`string\`.`),null)});p4.displayName=rT;var iT="ToastClose",Ih=y.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e,u=ZH(iT,n);return N.jsx(uT,{asChild:!0,children:N.jsx(rt.button,{type:"button",...r,ref:t,onClick:lt(e.onClick,u.onClose)})})});Ih.displayName=iT;var uT=y.forwardRef((e,t)=>{const{__scopeToast:n,altText:r,...u}=e;return N.jsx(rt.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0,...u,ref:t})});function aT(e){const t=[];return Array.from(e.childNodes).forEach(r=>{if(r.nodeType===r.TEXT_NODE&&r.textContent&&t.push(r.textContent),eU(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(...aT(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?q9(u,o):u.dispatchEvent(o)}var v3=(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 JH(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 eU(e){return e.nodeType===e.ELEMENT_NODE}function tU(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 nU=d4,sT=f4,oT=h4,lT=A4,cT=m4,rU=p4,dT=Ih;const iU=Object.freeze(Object.defineProperty({__proto__:null,Action:rU,Close:dT,Description:cT,Provider:nU,Root:oT,Title:lT,Toast:h4,ToastAction:p4,ToastClose:Ih,ToastDescription:m4,ToastProvider:d4,ToastTitle:A4,ToastViewport:f4,Viewport:sT,createToastScope:kH},Symbol.toStringTag,{value:"Module"})),uU=iU,aU=({className:e,...t})=>N.jsx(sT,{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}),sU=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"}}),oU=({className:e,variant:t,...n})=>N.jsx(oT,{className:Re(sU({variant:t}),e),...n}),lU=({className:e,...t})=>N.jsx(dT,{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(ja,{className:"size-5"})}),cU=({className:e,...t})=>N.jsx(lT,{className:Re("text-sm font-semibold [&+div]:text-xs",e),...t}),dU=({className:e,...t})=>N.jsx(cT,{className:Re("text-sm opacity-90",e),...t}),fU=1,hU=15*60*1e3;let Tp=0;const AU=()=>(Tp=(Tp+1)%Number.MAX_SAFE_INTEGER,Tp.toString()),Dp=new Map,R3=e=>{if(Dp.has(e))return;const t=setTimeout(()=>{Dp.delete(e),Wl({type:"REMOVE_TOAST",toastId:e})},hU);Dp.set(e,t)},mU=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,fU)};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?R3(n):e.toasts.forEach(r=>{R3(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=mU(tf,e),ef.forEach(t=>{t(tf)})},pU=({...e})=>{const t=AU(),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}},fT=()=>{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:pU,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 EU={};const hT=e=>{const{toast:t}=fT();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:(EU.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)}}},gU=(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=gU(n??{},r),o=hT(u);return Kc(e,t,o)},_U=(e,t,n)=>{const r=hT({});return Kc(e,t,r)},SU=e=>wu("logout",Vi().auth.logout,{invalidateQueries:["getSession"],...e}),NU=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}),IU=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}),yU=e=>wu("pushDictionaries",Vi().dictionary.pushDictionaries,{invalidateQueries:["getDictionaries","getDictionary","getDictionariesKeys"],...e}),CU=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}),vU=e=>wu("auditContentDeclaration",Vi().ai.auditContentDeclarationMetadata,e,{requireUser:!0,requireOrganization:!0,requireProject:!0}),RU=e=>wu("auditContentDeclarationField",Vi().ai.auditContentDeclarationField,e,{requireUser:!0,requireOrganization:!0,requireProject:!0}),TU=e=>wu("autocomplete",Vi().ai.autocomplete,e),DU=e=>_U("writeDictionary",Vi().editor.writeDictionary);var bp,T3;function bU(){if(T3)return bp;T3=1;var e=function(T){return t(T)&&!n(T)};function t(R){return!!R&&typeof R=="object"}function n(R){var T=Object.prototype.toString.call(R);return T==="[object RegExp]"||T==="[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,T){return T.clone!==!1&&T.isMergeableObject(R)?C(l(R),R,T):R}function f(R,T,b){return R.concat(T).map(function(L){return c(L,b)})}function h(R,T){if(!T.customMerge)return C;var b=T.customMerge(R);return typeof b=="function"?b:C}function m(R){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(R).filter(function(T){return Object.propertyIsEnumerable.call(R,T)}):[]}function E(R){return Object.keys(R).concat(m(R))}function g(R,T){try{return T in R}catch{return!1}}function _(R,T){return g(R,T)&&!(Object.hasOwnProperty.call(R,T)&&Object.propertyIsEnumerable.call(R,T))}function S(R,T,b){var L={};return b.isMergeableObject(R)&&E(R).forEach(function(x){L[x]=c(R[x],b)}),E(T).forEach(function(x){_(R,x)||(g(R,x)&&b.isMergeableObject(T[x])?L[x]=h(x,b)(R[x],T[x],b):L[x]=c(T[x],b))}),L}function C(R,T,b){b=b||{},b.arrayMerge=b.arrayMerge||f,b.isMergeableObject=b.isMergeableObject||e,b.cloneUnlessOtherwiseSpecified=c;var L=Array.isArray(T),x=Array.isArray(R),B=L===x;return B?L?b.arrayMerge(R,T,b):S(R,T,b):c(T,b)}C.all=function(T,b){if(!Array.isArray(T))throw new Error("first argument should be an array");return T.reduce(function(L,x){return C(L,x,b)},{})};var v=C;return bp=v,bp}var xU=bU();const BU=lh(xU);var Wc=e=>e.type==="checkbox",ya=e=>e instanceof Date,bn=e=>e==null;const AT=e=>typeof e=="object";var Gt=e=>!bn(e)&&!Array.isArray(e)&&AT(e)&&!ya(e),mT=e=>Gt(e)&&e.target?Wc(e.target)?e.target.checked:e.target.value:e,FU=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,pT=(e,t)=>e.has(FU(t)),OU=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&&!OU(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),ET=e=>yh(e.replace(/["|']|\]/g,"").split(/\.|\[/)),At=(e,t,n)=>{let r=-1;const u=g4(t)?[t]:ET(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"},gT=$e.createContext(null),Mu=()=>$e.useContext(gT),LU=e=>{const{children:t,...n}=e;return $e.createElement(gT.Provider,{value:n},t)};var _T=(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,ST=(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],NT=(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 wU(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&&NT(m.current,E.name,o)&&ST(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(()=>_T(l,n,h.current,!1),[l,n])}var Zr=e=>typeof e=="string",IT=(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 MU(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=>{NT(c.current,m.name,l)&&h(Pn(IT(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 PU(e){const t=Mu(),{name:n,disabled:r,control:u=t.control,shouldUnregister:o}=e,l=pT(u._names.array,n),c=MU({control:u,name:n,defaultValue:Ne(u._formValues,n,Ne(u._defaultValues,n,e.defaultValue)),exact:!0}),f=wU({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:mT(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 HU=e=>e.render(PU(e));var yT=(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}),b3=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(r=>e.startsWith(r)&&/^\.\w+/.test(e.slice(r.length))));const Ql=(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(Ql(c,t))break}else if(Gt(c)&&Ql(c,t))break}}};var UU=(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 x3={value:!1,isValid:!1},B3={value:!0,isValid:!0};var CT=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===""?B3:{value:e[0].value,isValid:!0}:B3:x3}return x3};const F3={isValid:!1,value:null};var vT=e=>Array.isArray(e)?e.reduce((t,n)=>n&&n.checked&&!n.disabled?{isValid:!0,value:n.value}:t,F3):F3;function O3(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:""},L3=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,T=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(T)||Sf(l)&&l.value===""||T===""||Array.isArray(T)&&!T.length,G=yT.bind(null,C,r,x),ce=(ae,de,Z,te=Ri.maxLength,V=Ri.minLength)=>{const ee=ae?de:Z;x[C]={type:ae?te:V,message:ee,ref:l,...G(ae?te:V,ee)}};if(o?!Array.isArray(T)||!T.length:f&&(!H&&(U||bn(T))||Er(T)&&!T||O&&!CT(c).isValid||B&&!vT(c).isValid)){const{value:ae,message:de}=nf(f)?{value:!!f,message:f}:Bs(f);if(ae&&(x[C]={type:Ri.required,message:de,ref:b,...G(Ri.required,de)},!r))return L(de),x}if(!U&&(!bn(E)||!bn(g))){let ae,de;const Z=Bs(g),te=Bs(E);if(!bn(T)&&!isNaN(T)){const V=l.valueAsNumber||T&&+T;bn(Z.value)||(ae=V>Z.value),bn(te.value)||(de=V<te.value)}else{const V=l.valueAsDate||new Date(T),ee=P=>new Date(new Date().toDateString()+" "+P),X=l.type=="time",Ae=l.type=="week";Zr(Z.value)&&T&&(ae=X?ee(T)>ee(Z.value):Ae?T>Z.value:V>new Date(Z.value)),Zr(te.value)&&T&&(de=X?ee(T)<ee(te.value):Ae?T<te.value:V<new Date(te.value))}if((ae||de)&&(ce(!!ae,Z.message,te.message,Ri.max,Ri.min),!r))return L(x[C].message),x}if((h||m)&&!U&&(Zr(T)||o&&Array.isArray(T))){const ae=Bs(h),de=Bs(m),Z=!bn(ae.value)&&T.length>+ae.value,te=!bn(de.value)&&T.length<+de.value;if((Z||te)&&(ce(Z,ae.message,de.message),!r))return L(x[C].message),x}if(_&&!U&&Zr(T)){const{value:ae,message:de}=Bs(_);if(Nf(ae)&&!T.match(ae)&&(x[C]={type:Ri.pattern,message:de,ref:l,...G(Ri.pattern,de)},!r))return L(de),x}if(S){if($r(S)){const ae=await S(T,n),de=O3(ae,b);if(de&&(x[C]={...de,...G(Ri.validate,de.message)},!r))return L(de.message),x}else if(Gt(S)){let ae={};for(const de in S){if(!Hn(ae)&&!r)break;const Z=O3(await S[de](T,n),b,de);Z&&(ae={...Z,...G(de,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 kU(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 GU(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]:ET(t),r=n.length===1?e:kU(e,n),u=n.length-1,o=n[u];return r&&delete r[o],u!==0&&(Gt(r)&&Hn(r)||Array.isArray(r)&&GU(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)||!AT(e);function Su(e,t){if(GE(e)||GE(t))return e===t;if(ya(e)&&ya(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(ya(o)&&ya(l)||Gt(o)&&Gt(l)||Array.isArray(o)&&Array.isArray(l)?!Su(o,l):o!==l)return!1}}return!0}var RT=e=>e.type==="select-multiple",VU=e=>N4(e)||Wc(e),Bp=e=>Sf(e)&&e.isConnected,TT=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])&&!TT(e[r])?(t[r]=Array.isArray(e[r])?[]:{},If(e[r],t[r])):bn(e[r])||(t[r]=!0);return t}function DT(e,t,n){const r=Array.isArray(e);if(Gt(e)||r)for(const u in e)Array.isArray(e[u])||Gt(e[u])&&!TT(e[u])?kt(t)||GE(n[u])?n[u]=Array.isArray(e[u])?If(e[u],[]):{...If(e[u])}:DT(e[u],bn(t)?{}:t[u],n[u]):n[u]=!Su(e[u],t[u]);return n}var Ll=(e,t)=>DT(e,t,If(t)),bT=(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)?vT(e.refs).value:RT(t)?[...t.selectedOptions].map(({value:n})=>n):Wc(t)?CT(e.refs).value:bT(kt(t.value)?e.ref.value:t.value,e)}var jU=(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 w3="AsyncFunction";var zU=e=>!!e&&!!e.validate&&!!($r(e.validate)&&e.validate.constructor.name===w3||Gt(e.validate)&&Object.values(e.validate).find(t=>t.constructor.name===w3)),KU=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function M3(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 $U=(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,YU=(e,t)=>!yh(Ne(e,t)).length&&Wt(e,t);const ZU={mode:xr.onSubmit,reValidateMode:xr.onChange,shouldFocusError:!0};function WU(e={}){let t={...ZU,...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=>Q=>{clearTimeout(h),h=setTimeout(k,Q)},v=async k=>{if(!t.disabled&&(m.isValid||k)){const Q=t.resolver?Hn((await H()).errors):await G(r,!0);Q!==n.isValid&&E.state.next({isValid:Q})}},R=(k,Q)=>{!t.disabled&&(m.isValidating||m.validatingFields)&&((k||Array.from(c.mount)).forEach(ie=>{ie&&(Q?At(n.validatingFields,ie,Q):Wt(n.validatingFields,ie))}),E.state.next({validatingFields:n.validatingFields,isValidating:!Hn(n.validatingFields)}))},T=(k,Q=[],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),YU(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,Q),dirtyFields:n.dirtyFields,errors:n.errors,isValid:n.isValid})}else At(o,k,Q)},b=(k,Q)=>{At(n.errors,k,Q),E.state.next({errors:n.errors})},L=k=>{n.errors=k,E.state.next({errors:n.errors,isValid:!1})},x=(k,Q,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||Q?At(o,k,Q?Se:Fp(Ie._f)):te(k,Se),l.mount&&v()}},B=(k,Q,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),Q);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,Q,ie,Ce)=>{const Ie=Ne(n.errors,k),Se=m.isValid&&Er(Q)&&n.isValid!==Q;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(Q)?{isValid:Q}:{},errors:n.errors,name:k};n={...n,...Be},E.state.next(Be)}},H=async k=>{R(k,!0);const Q=await t.resolver(o,t.context,jU(k||c.mount,r,t.criteriaMode,t.shouldUseNativeValidation));return R(k),Q},U=async k=>{const{errors:Q}=await H(k);if(k)for(const ie of k){const Ce=Ne(Q,ie);Ce?At(n.errors,ie,Ce):Wt(n.errors,ie)}else n.errors=Q;return Q},G=async(k,Q,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&&zU(Ie._f);Mt&&m.validatingFields&&R([Ce],!0);const Pt=await L3(Ie,c.disabled,o,S,t.shouldUseNativeValidation&&!Q,Je);if(Mt&&m.validatingFields&&R([Ce]),Pt[Se.name]&&(ie.valid=!1,Q))break;!Q&&(Ne(Pt,Se.name)?Je?UU(n.errors,Pt,Se.name):At(n.errors,Se.name,Pt[Se.name]):Wt(n.errors,Se.name))}!Hn(Be)&&await G(Be,Q,ie)}}return ie.valid},ce=()=>{for(const k of c.unMount){const Q=Ne(r,k);Q&&(Q._f.refs?Q._f.refs.every(ie=>!Bp(ie)):!Bp(Q._f.ref))&&ge(k)}c.unMount=new Set},ae=(k,Q)=>!t.disabled&&(k&&Q&&At(o,k,Q),!Su(W(),u)),de=(k,Q,ie)=>IT(k,c,{...l.mount?o:kt(Q)?u:Zr(k)?{[k]:Q}:Q},ie,Q),Z=k=>yh(Ne(l.mount?o:u,k,t.shouldUnregister?Ne(u,k,[]):[])),te=(k,Q,ie={})=>{const Ce=Ne(r,k);let Ie=Q;if(Ce){const Se=Ce._f;Se&&(!Se.disabled&&At(o,k,bT(Q,Se)),Ie=Sf(Se.ref)&&bn(Q)?"":Q,RT(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,Q,ie)=>{for(const Ce in Q){const Ie=Q[Ce],Se=`${k}.${Ce}`,Be=Ne(r,Se);(c.array.has(k)||Gt(Ie)||Be&&!Be._f)&&!ya(Ie)?V(Se,Ie,ie):te(Se,Ie,ie)}},ee=(k,Q,ie={})=>{const Ce=Ne(r,k),Ie=c.array.has(k),Se=Pn(Q);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),b3(k,c)&&E.state.next({...n}),E.values.next({name:l.mount?k:void 0,values:{...o}})},X=async k=>{l.mount=!0;const Q=k.target;let ie=Q.name,Ce=!0;const Ie=Ne(r,ie),Se=()=>Q.type?Fp(Ie._f):mT(k),Be=Je=>{Ce=Number.isNaN(Je)||ya(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=!KU(Ie._f)&&!t.resolver&&!Ne(n.errors,ie)&&!Ie._f.deps||$U(Gn,Ne(n.touchedFields,ie),n.isSubmitted,_,g),Ya=b3(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=M3(n.errors,r,ie),hd=M3(ji,r,Rn.name||ie);Je=hd.error,ie=hd.name,Mt=Hn(ji)}}else R([ie],!0),Je=(await L3(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,Q)=>{if(Ne(n.errors,Q)&&k.focus)return k.focus(),1},P=async(k,Q={})=>{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}),Q.shouldFocus&&!Ce&&Ql(r,Ae,k?Ie:c.mount),Ce},W=k=>{const Q={...l.mount?o:u};return kt(k)?Q:Zr(k)?Ne(Q,k):k.map(ie=>Ne(Q,ie))},j=(k,Q)=>({invalid:!!Ne((Q||n).errors,k),isDirty:!!Ne((Q||n).dirtyFields,k),error:Ne((Q||n).errors,k),isValidating:!!Ne(n.validatingFields,k),isTouched:!!Ne((Q||n).touchedFields,k)}),re=k=>{k&&ql(k).forEach(Q=>Wt(n.errors,Q)),E.state.next({errors:k?n.errors:{}})},ne=(k,Q,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,...Q,ref:Ce}),E.state.next({name:k,errors:n.errors,isValid:!1}),ie&&ie.shouldFocus&&Ce&&Ce.focus&&Ce.focus()},fe=(k,Q)=>$r(k)?E.values.subscribe({next:ie=>k(de(void 0,Q),ie)}):de(k,Q,!0),ge=(k,Q={})=>{for(const ie of k?ql(k):c.mount)c.mount.delete(ie),c.array.delete(ie),Q.keepValue||(Wt(r,ie),Wt(o,ie)),!Q.keepError&&Wt(n.errors,ie),!Q.keepDirty&&Wt(n.dirtyFields,ie),!Q.keepTouched&&Wt(n.touchedFields,ie),!Q.keepIsValidating&&Wt(n.validatingFields,ie),!t.shouldUnregister&&!Q.keepDefaultValue&&Wt(u,ie);E.values.next({values:{...o}}),E.state.next({...n,...Q.keepDirty?{isDirty:ae()}:{}}),!Q.keepIsValid&&v()},pe=({disabled:k,name:Q,field:ie,fields:Ce})=>{(Er(k)&&l.mount||k||c.disabled.has(Q))&&(k?c.disabled.add(Q):c.disabled.delete(Q),B(Q,Fp(ie?ie._f:Ne(Ce,Q)._f),!1,!1,!0))},ve=(k,Q={})=>{let ie=Ne(r,k);const Ce=Er(Q.disabled)||Er(t.disabled);return At(r,k,{...ie||{},_f:{...ie&&ie._f?ie._f:{ref:{name:k}},name:k,mount:!0,...Q}}),c.mount.add(k),ie?pe({field:ie,disabled:Er(Q.disabled)?Q.disabled:t.disabled,name:k}):x(k,!0,Q.value),{...Ce?{disabled:Q.disabled||t.disabled}:{},...t.progressive?{required:!!Q.required,min:wl(Q.min),max:wl(Q.max),minLength:wl(Q.minLength),maxLength:wl(Q.maxLength),pattern:wl(Q.pattern)}:{},name:k,onChange:X,onBlur:X,ref:Ie=>{if(Ie){ve(k,Q),ie=Ne(r,k);const Se=kt(Ie.value)&&Ie.querySelectorAll&&Ie.querySelectorAll("input,select,textarea")[0]||Ie,Be=VU(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||Q.shouldUnregister)&&!(pT(c.array,k)&&l.action)&&c.unMount.add(k)}}},Ve=()=>t.shouldFocusError&&Ql(r,Ae,c.mount),we=k=>{Er(k)&&(E.state.next({disabled:k}),Ql(r,(Q,ie)=>{const Ce=Ne(r,ie);Ce&&(Q.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,Q)=>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 Q&&await Q({...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,Q={})=>{Ne(r,k)&&(kt(Q.defaultValue)?ee(k,Pn(Ne(u,k))):(ee(k,Q.defaultValue),At(u,k,Pn(Q.defaultValue))),Q.keepTouched||Wt(n.touchedFields,k),Q.keepDirty||(Wt(n.dirtyFields,k),n.isDirty=Q.defaultValue?ae(k,Pn(Ne(u,k))):ae()),Q.keepError||(Wt(n.errors,k),m.isValid&&v()),E.state.next({...n}))},It=(k,Q={})=>{const ie=k?Pn(k):u,Ce=Pn(ie),Ie=Hn(k),Se=Ie?u:Ce;if(Q.keepDefaultValues||(u=ie),!Q.keepValues){if(Q.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?Q.keepDefaultValues?Pn(u):{}:Pn(Se),E.array.next({values:{...Se}}),E.values.next({values:{...Se}})}c={mount:Q.keepDirtyValues?c.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},l.mount=!m.isValid||!!Q.keepIsValid||!!Q.keepDirtyValues,l.watch=!!t.shouldUnregister,E.state.next({submitCount:Q.keepSubmitCount?n.submitCount:0,isDirty:Ie?!1:Q.keepDirty?n.isDirty:!!(Q.keepDefaultValues&&!Su(k,u)),isSubmitted:Q.keepIsSubmitted?n.isSubmitted:!1,dirtyFields:Ie?{}:Q.keepDirtyValues?Q.keepDefaultValues&&o?Ll(u,o):n.dirtyFields:Q.keepDefaultValues&&k?Ll(u,k):Q.keepDirty?n.dirtyFields:{},touchedFields:Q.keepTouched?n.touchedFields:{},errors:Q.keepErrors?n.errors:{},isSubmitSuccessful:Q.keepIsSubmitSuccessful?n.isSubmitSuccessful:!1,isSubmitting:!1})},Jt=(k,Q)=>It($r(k)?k(o):k,Q);return{control:{register:ve,unregister:ge,getFieldState:j,handleSubmit:Ze,setError:ne,_executeSchema:H,_getWatch:de,_getDirty:ae,_updateValid:v,_removeUnmounted:ce,_updateFieldArray:T,_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:fe,setValue:ee,getValues:W,reset:Jt,resetField:at,clearErrors:re,unregister:ge,setError:ne,setFocus:(k,Q={})=>{const ie=Ne(r,k),Ce=ie&&ie._f;if(Ce){const Ie=Ce.refs?Ce.refs[0]:Ce.ref;Ie.focus&&(Ie.focus(),Q.shouldSelect&&$r(Ie.select)&&Ie.select())}},getFieldState:j}}function qU(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={...WU(e),formState:r});const o=t.current.control;return o._options=e,_4({subject:o._subjects.state,next:l=>{ST(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=_T(r,o),t.current}const P3=(e,t,n)=>{if(e&&"reportValidity"in e){const r=Ne(n,t);e.setCustomValidity(r&&r.message||""),e.reportValidity()}},xT=(e,t)=>{for(const n in t.fields){const r=t.fields[n];r&&r.ref&&"reportValidity"in r.ref?P3(r.ref,n,e):r.refs&&r.refs.forEach(u=>P3(u,n,e))}},QU=(e,t)=>{t.shouldUseNativeValidation&&xT(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+".")),JU=e=>{const t=y.useId(),n=y.useMemo(()=>({id:t}),[t]);return N.jsx(BT,{value:n,children:N.jsx("div",{className:"flex flex-col gap-2 p-2",...e})})},BT=y.createContext({}),FT=y.createContext({}),e5=({...e})=>{const t=y.useMemo(()=>({name:e.name}),[e.name]);return N.jsx(FT,{value:t,children:N.jsx(HU,{...e})})},Pu=()=>{const e=y.useContext(FT),t=y.useContext(BT),{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}},OT=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:OT({variant:t,size:n,validationStyleEnabled:e?"enabled":"disabled",className:r}),...u}),t5=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"}}),n5=({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:t5({variant:u,size:n,color:r,validationStyleEnabled:e?"enabled":"disabled",className:o}),id:c,...l}),N.jsx("label",{htmlFor:c,children:t})]})},r5=e=>{const[t,n]=y.useState(!1),r=o=>{o.preventDefault(),o.stopPropagation(),n(l=>!l)},u=t?gP:pP;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})})]})},LT=({className:e,variant:t,validationStyleEnabled:n=!1,...r})=>N.jsx("textarea",{className:Re("resize-none",OT({variant:t,validationStyleEnabled:n?"enabled":"disabled",className:e})),...r}),wT=({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:ja,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:CP,color:"text",variant:"hoverable",size:"icon-sm",className:"invisible !text-current group-hover/editable-field:visible",disabled:o,onClick:S=>{S.stopPropagation(),f(!0)}})]})]})},MT=({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(wT,{value:c,onCancel:l,onSave:o,children:N.jsx(go,{ref:u,...r})})},H3=24,U3=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,_=H3*r+U3,S=H3+U3;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(LT,{ref:h,onChange:f,className:Re("overflow-y-scroll",t?"resize-none":"",e),...o})},PT=({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(wT,{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})})},i5=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"}}),u5=({className:e,variant:t,color:n,...r})=>N.jsx("div",{className:Re(i5({variant:t,color:n}),e),...r});var a5=XL.useId||(()=>{}),s5=0;function Nr(e){const[t,n]=y.useState(a5());return Cn(()=>{n(r=>r??String(s5++))},[e]),t?`radix-${t}`:""}var Op="focusScope.autoFocusOnMount",Lp="focusScope.autoFocusOnUnmount",k3={bubbles:!1,cancelable:!0},o5="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 T=new MutationObserver(R);return c&&T.observe(c,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",C),document.removeEventListener("focusout",v),T.disconnect()}}},[r,c,_.paused]),y.useEffect(()=>{if(c){V3.add(_);const C=document.activeElement;if(!c.contains(C)){const R=new CustomEvent(Op,k3);c.addEventListener(Op,h),c.dispatchEvent(R),R.defaultPrevented||(l5(A5(HT(c)),{select:!0}),document.activeElement===C&&Eu(c))}return()=>{c.removeEventListener(Op,h),setTimeout(()=>{const R=new CustomEvent(Lp,k3);c.addEventListener(Lp,m),c.dispatchEvent(R),R.defaultPrevented||Eu(C??document.body,{select:!0}),c.removeEventListener(Lp,m),V3.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 T=C.currentTarget,[b,L]=c5(T);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===T&&C.preventDefault()}},[n,r,_.paused]);return N.jsx(rt.div,{tabIndex:-1,...l,ref:g,onKeyDown:S})});y4.displayName=o5;function l5(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Eu(r,{select:t}),document.activeElement!==n)return}function c5(e){const t=HT(e),n=G3(t,e),r=G3(t.reverse(),e);return[n,r]}function HT(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 G3(e,t){for(const n of e)if(!d5(n,{upTo:t}))return n}function d5(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 f5(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&&f5(e)&&t&&e.select()}}var V3=h5();function h5(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=j3(e,t),e.unshift(t)},remove(t){var n;e=j3(e,t),(n=e[0])==null||n.resume()}}}function j3(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function A5(e){return e.filter(t=>t.tagName!=="A")}var wp=0;function UT(){y.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??z3()),document.body.insertAdjacentElement("beforeend",e[1]??z3()),wp++,()=>{wp===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),wp--}},[])}function z3(){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 kT(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 m5(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",p5="with-scroll-bars-hidden",E5="--removed-body-scroll-bar-size";function Mp(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function g5(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 _5=typeof window<"u"?y.useLayoutEffect:y.useEffect,K3=new WeakMap;function S5(e,t){var n=g5(null,function(r){return e.forEach(function(u){return Mp(u,r)})});return _5(function(){var r=K3.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)})}K3.set(n,e)},[e]),n}function N5(e){return e}function I5(e,t){t===void 0&&(t=N5);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 y5(e){e===void 0&&(e={});var t=I5(null);return t.options=Yr({async:!0,ssr:!1},e),t}var GT=function(e){var t=e.sideCar,n=kT(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))};GT.isSideCarExport=!0;function C5(e,t){return e.useMedium(t),GT}var VT=y5(),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,T=e.gapMode,b=kT(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),L=g,x=S5([n,t]),B=Yr(Yr({},b),u);return y.createElement(y.Fragment,null,m&&y.createElement(L,{sideCar:VT,removeScrollBar:h,shards:E,noIsolation:_,inert:S,setCallbacks:o,allowPinchZoom:!!C,lockRef:n,gapMode:T}),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 v5=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function R5(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=v5();return t&&e.setAttribute("nonce",t),e}function T5(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 b5=function(){var e=0,t=null;return{add:function(n){e==0&&(t=R5())&&(T5(t,n),D5(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},x5=function(){var e=b5();return function(t,n){y.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},jT=function(){var e=x5(),t=function(n){var r=n.styles,u=n.dynamic;return e(r,u),null};return t},B5={left:0,top:0,right:0,gap:0},Hp=function(e){return parseInt(e||"",10)||0},F5=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)]},O5=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return B5;var t=F5(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])}},L5=jT(),Ys="data-scroll-locked",w5=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(p5,` {
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(E5,": ").concat(c,`px;
253
- }
254
- `)},$3=function(){var e=parseInt(document.body.getAttribute(Ys)||"0",10);return isFinite(e)?e:0},M5=function(){y.useEffect(function(){return document.body.setAttribute(Ys,($3()+1).toString()),function(){var e=$3()-1;e<=0?document.body.removeAttribute(Ys):document.body.setAttribute(Ys,e.toString())}},[])},P5=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,u=r===void 0?"margin":r;M5();var o=y.useMemo(function(){return O5(u)},[u]);return y.createElement(L5,{styles:w5(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,H5=function(e){return e.tagName==="TEXTAREA"},zT=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!H5(e)&&n[t]==="visible")},U5=function(e){return zT(e,"overflowY")},k5=function(e){return zT(e,"overflowX")},Y3=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var u=KT(e,r);if(u){var o=$T(e,r),l=o[1],c=o[2];if(l>c)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},G5=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},V5=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},KT=function(e,t){return e==="v"?U5(t):k5(t)},$T=function(e,t){return e==="v"?G5(t):V5(t)},j5=function(e,t){return e==="h"&&t==="rtl"?-1:1},z5=function(e,t,n,r,u){var o=j5(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 _=$T(e,c),S=_[0],C=_[1],v=_[2],R=C-v-o*S;(S||R)&&KT(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]},Z3=function(e){return[e.deltaX,e.deltaY]},W3=function(e){return e&&"current"in e?e.current:e},K5=function(e,t){return e[0]===t[0]&&e[1]===t[1]},$5=function(e){return`
255
- .block-interactivity-`.concat(e,` {pointer-events: none;}
256
- .allow-interactivity-`).concat(e,` {pointer-events: all;}
257
- `)},Y5=0,Os=[];function Z5(e){var t=y.useRef([]),n=y.useRef([0,0]),r=y.useRef(),u=y.useState(Y5++)[0],o=y.useState(jT)[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=m5([e.lockRef.current],(e.shards||[]).map(W3),!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),T=n.current,b="deltaX"in C?C.deltaX:T[0]-R[0],L="deltaY"in C?C.deltaY:T[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=Y3(O,B);if(!H)return!0;if(H?x=O:(x=O==="v"?"h":"v",H=Y3(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 z5(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?Z3(v):F0(v),T=t.current.filter(function(x){return x.name===v.type&&(x.target===v.target||v.target===x.shadowParent)&&K5(x.delta,R)})[0];if(T&&T.should){v.cancelable&&v.preventDefault();return}if(!T){var b=(l.current.shards||[]).map(W3).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,T){var b={name:C,delta:v,target:R,should:T,shadowParent:W5(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,Z3(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:$5(u)}):null,_?y.createElement(P5,{gapMode:e.gapMode}):null)}function W5(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const q5=C5(VT,Z5);var C4=y.forwardRef(function(e,t){return y.createElement(Ch,Yr({},e,{ref:t,sideCar:q5}))});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,YT=function(e){return e&&(e.host||YT(e.parentNode))},X5=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=YT(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})},J5=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={})}},ZT=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]"))),J5(r,u,n,"aria-hidden")):function(){return null}},v4="Dialog",[WT,_ie]=Yc(v4),[ek,Pr]=WT(v4),qT=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(ek,{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})};qT.displayName=v4;var QT="DialogTrigger",tk=y.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,u=Pr(QT,n),o=xt(t,u.triggerRef);return N.jsx(rt.button,{type:"button","aria-haspopup":"dialog","aria-expanded":u.open,"aria-controls":u.contentId,"data-state":D4(u.open),...r,ref:o,onClick:lt(e.onClick,u.onOpenToggle)})});tk.displayName=QT;var R4="DialogPortal",[nk,XT]=WT(R4,{forceMount:void 0}),JT=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:u}=e,o=Pr(R4,t);return N.jsx(nk,{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})}))})};JT.displayName=R4;var yf="DialogOverlay",eD=y.forwardRef((e,t)=>{const n=XT(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(rk,{...u,ref:t})}):null});eD.displayName=yf;var rk=y.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,u=Pr(yf,n);return N.jsx(C4,{as:Ba,allowPinchZoom:!0,shards:[u.contentRef],children:N.jsx(rt.div,{"data-state":D4(u.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),Fa="DialogContent",tD=y.forwardRef((e,t)=>{const n=XT(Fa,e.__scopeDialog),{forceMount:r=n.forceMount,...u}=e,o=Pr(Fa,e.__scopeDialog);return N.jsx(Zc,{present:r||o.open,children:o.modal?N.jsx(ik,{...u,ref:t}):N.jsx(uk,{...u,ref:t})})});tD.displayName=Fa;var ik=y.forwardRef((e,t)=>{const n=Pr(Fa,e.__scopeDialog),r=y.useRef(null),u=xt(t,n.contentRef,r);return y.useEffect(()=>{const o=r.current;if(o)return ZT(o)},[]),N.jsx(nD,{...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())})}),uk=y.forwardRef((e,t)=>{const n=Pr(Fa,e.__scopeDialog),r=y.useRef(!1),u=y.useRef(!1);return N.jsx(nD,{...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()}})}),nD=y.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:u,onCloseAutoFocus:o,...l}=e,c=Pr(Fa,n),f=y.useRef(null),h=xt(t,f);return UT(),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":D4(c.open),...l,ref:h,onDismiss:()=>c.onOpenChange(!1)})}),N.jsxs(N.Fragment,{children:[N.jsx(lk,{titleId:c.titleId}),N.jsx(dk,{contentRef:f,descriptionId:c.descriptionId})]})]})}),T4="DialogTitle",ak=y.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,u=Pr(T4,n);return N.jsx(rt.h2,{id:u.titleId,...r,ref:t})});ak.displayName=T4;var rD="DialogDescription",sk=y.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,u=Pr(rD,n);return N.jsx(rt.p,{id:u.descriptionId,...r,ref:t})});sk.displayName=rD;var iD="DialogClose",ok=y.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,u=Pr(iD,n);return N.jsx(rt.button,{type:"button",...r,ref:t,onClick:lt(e.onClick,()=>u.onOpenChange(!1))})});ok.displayName=iD;function D4(e){return e?"open":"closed"}var uD="DialogTitleWarning",[Sie,aD]=pH(uD,{contentName:Fa,titleName:T4,docsSlug:"dialog"}),lk=({titleId:e})=>{const t=aD(uD),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},ck="DialogDescriptionWarning",dk=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${aD(ck).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},fk=qT,hk=JT,Ak=eD,mk=tD,q3=1,pk=.9,Ek=.8,gk=.17,kp=.1,Gp=.999,_k=.9999,Sk=.99,Nk=/[\\\/_+.#"@\[\(\{&]/,Ik=/[\\\/_+.#"@\[\(\{&]/g,yk=/[\s-]/,sD=/[\s-]/g;function jE(e,t,n,r,u,o,l){if(o===t.length)return u===e.length?q3:Sk;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*=q3:Nk.test(e.charAt(h-1))?(E*=Ek,_=e.slice(u,h-1).match(Ik),_&&u>0&&(E*=Math.pow(Gp,_.length))):yk.test(e.charAt(h-1))?(E*=pk,S=e.slice(u,h-1).match(sD),S&&u>0&&(E*=Math.pow(Gp,S.length))):(E*=gk,u>0&&(E*=Math.pow(Gp,h-u))),e.charAt(h)!==t.charAt(o)&&(E*=_k)),(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(sD," ")}function Ck(e,t,n){return e=n&&n.length>0?`${e+" "+n.join(" ")}`:e,jE(e,t,Q3(e),Q3(t),0,0,{})}var vk=G9(),Ml='[cmdk-group=""]',Vp='[cmdk-group-items=""]',Rk='[cmdk-group-heading=""]',b4='[cmdk-item=""]',X3=`${b4}:not([aria-disabled="true"])`,zE="cmdk-item-select",Sa="data-value",Tk=(e,t,n)=>Ck(e,t,n),oD=y.createContext(void 0),qc=()=>y.useContext(oD),lD=y.createContext(void 0),x4=()=>y.useContext(lD),cD=y.createContext(void 0),dD=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=fD(e),{label:f,children:h,value:m,onValueChange:E,filter:g,shouldFilter:_,loop:S,disablePointerSelection:C=!1,vimBindings:v=!0,...R}=e,T=Nr(),b=Nr(),L=Nr(),x=y.useRef(null),B=Hk();Oa(()=>{if(m!==void 0){let j=m.trim();n.current.value=j,O.emit()}},[m]),Oa(()=>{B(6,de)},[]);let O=y.useMemo(()=>({subscribe:j=>(l.current.add(j),()=>l.current.delete(j)),snapshot:()=>n.current,setState:(j,re,ne)=>{var fe,ge,pe;if(!Object.is(n.current[j],re)){if(n.current[j]=re,j==="search")ae(),G(),B(1,ce);else if(j==="value"&&(ne||B(5,de),((fe=c.current)==null?void 0:fe.value)!==void 0)){let ve=re??"";(pe=(ge=c.current).onValueChange)==null||pe.call(ge,ve);return}O.emit()}},emit:()=>{l.current.forEach(j=>j())}}),[]),H=y.useMemo(()=>({value:(j,re,ne)=>{var fe;re!==((fe=o.current.get(j))==null?void 0:fe.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||ce(),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&&ce(),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:T,inputId:L,labelId:b,listInnerRef:x}),[]);function U(j,re){var ne,fe;let ge=(fe=(ne=c.current)==null?void 0:ne.filter)!=null?fe:Tk;return j?ge(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(fe=>{let ge=u.current.get(fe),pe=0;ge.forEach(ve=>{let Ve=j.get(ve);pe=Math.max(Ve,pe)}),re.push([fe,pe])});let ne=x.current;te().sort((fe,ge)=>{var pe,ve;let Ve=fe.getAttribute("id"),we=ge.getAttribute("id");return((pe=j.get(we))!=null?pe:0)-((ve=j.get(Ve))!=null?ve:0)}).forEach(fe=>{let ge=fe.closest(Vp);ge?ge.appendChild(fe.parentElement===ge?fe:fe.closest(`${Vp} > *`)):ne.appendChild(fe.parentElement===ne?fe:fe.closest(`${Vp} > *`))}),re.sort((fe,ge)=>ge[1]-fe[1]).forEach(fe=>{var ge;let pe=(ge=x.current)==null?void 0:ge.querySelector(`${Ml}[${Sa}="${encodeURIComponent(fe[0])}"]`);pe==null||pe.parentElement.appendChild(pe)})}function ce(){let j=te().find(ne=>ne.getAttribute("aria-disabled")!=="true"),re=j==null?void 0:j.getAttribute(Sa);O.setState("value",re||void 0)}function ae(){var j,re,ne,fe;if(!n.current.search||c.current.shouldFilter===!1){n.current.filtered.count=r.current.size;return}n.current.filtered.groups=new Set;let ge=0;for(let pe of r.current){let ve=(re=(j=o.current.get(pe))==null?void 0:j.value)!=null?re:"",Ve=(fe=(ne=o.current.get(pe))==null?void 0:ne.keywords)!=null?fe:[],we=U(ve,Ve);n.current.filtered.items.set(pe,we),we>0&&ge++}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=ge}function de(){var j,re,ne;let fe=Z();fe&&(((j=fe.parentElement)==null?void 0:j.firstChild)===fe&&((ne=(re=fe.closest(Ml))==null?void 0:re.querySelector(Rk))==null||ne.scrollIntoView({block:"nearest"})),fe.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(Sa))}function ee(j){var re;let ne=Z(),fe=te(),ge=fe.findIndex(ve=>ve===ne),pe=fe[ge+j];(re=c.current)!=null&&re.loop&&(pe=ge+j<0?fe[fe.length-1]:ge+j===fe.length?fe[0]:fe[ge+j]),pe&&O.setState("value",pe.getAttribute(Sa))}function X(j){let re=Z(),ne=re==null?void 0:re.closest(Ml),fe;for(;ne&&!fe;)ne=j>0?Mk(ne,Ml):Pk(ne,Ml),fe=ne==null?void 0:ne.querySelector(X3);fe?O.setState("value",fe.getAttribute(Sa)):ee(j)}let Ae=()=>V(te().length-1),P=j=>{j.preventDefault(),j.metaKey?Ae():j.altKey?X(1):ee(1)},W=j=>{j.preventDefault(),j.metaKey?V(0):j.altKey?X(-1):ee(-1)};return y.createElement(rt.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 fe=new Event(zE);ne.dispatchEvent(fe)}}}}},y.createElement("label",{"cmdk-label":"",htmlFor:H.inputId,id:H.labelId,style:kk},f),vh(e,j=>y.createElement(lD.Provider,{value:O},y.createElement(oD.Provider,{value:H},j))))}),Dk=y.forwardRef((e,t)=>{var n,r;let u=Nr(),o=y.useRef(null),l=y.useContext(cD),c=qc(),f=fD(e),h=(r=(n=f.current)==null?void 0:n.forceMount)!=null?r:l==null?void 0:l.forceMount;Oa(()=>{if(!h)return c.item(u,l==null?void 0:l.id)},[h]);let m=hD(u,o,[e.value,e.children,o],e.keywords),E=x4(),g=La(B=>B.value&&B.value===m.current),_=La(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:T,forceMount:b,keywords:L,...x}=e;return y.createElement(rt.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)}),bk=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=La(_=>u||m.filter()===!1?!0:_.search?_.filtered.groups.has(l):!0);Oa(()=>m.group(l),[]),hD(l,c,[e.value,e.heading,f]);let g=y.useMemo(()=>({id:l,forceMount:u}),[u]);return y.createElement(rt.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(cD.Provider,{value:g},_))))}),xk=y.forwardRef((e,t)=>{let{alwaysRender:n,...r}=e,u=y.useRef(null),o=La(l=>!l.search);return!n&&!o?null:y.createElement(rt.div,{ref:oc([u,t]),...r,"cmdk-separator":"",role:"separator"})}),Bk=y.forwardRef((e,t)=>{let{onValueChange:n,...r}=e,u=e.value!=null,o=x4(),l=La(m=>m.search),c=La(m=>m.value),f=qc(),h=y.useMemo(()=>{var m;let E=(m=f.listInnerRef.current)==null?void 0:m.querySelector(`${b4}[${Sa}="${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(rt.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)}})}),Fk=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(rt.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)))}),Ok=y.forwardRef((e,t)=>{let{open:n,onOpenChange:r,overlayClassName:u,contentClassName:o,container:l,...c}=e;return y.createElement(fk,{open:n,onOpenChange:r},y.createElement(hk,{container:l},y.createElement(Ak,{"cmdk-overlay":"",className:u}),y.createElement(mk,{"aria-label":e.label,"cmdk-dialog":"",className:o},y.createElement(dD,{ref:t,...c}))))}),Lk=y.forwardRef((e,t)=>La(n=>n.filtered.count===0)?y.createElement(rt.div,{ref:t,...e,"cmdk-empty":"",role:"presentation"}):null),wk=y.forwardRef((e,t)=>{let{progress:n,children:r,label:u="Loading...",...o}=e;return y.createElement(rt.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)))}),Qc=Object.assign(dD,{List:Fk,Item:Dk,Input:Bk,Group:bk,Separator:xk,Dialog:Ok,Empty:Lk,Loading:wk});function Mk(e,t){let n=e.nextElementSibling;for(;n;){if(n.matches(t))return n;n=n.nextElementSibling}}function Pk(e,t){let n=e.previousElementSibling;for(;n;){if(n.matches(t))return n;n=n.previousElementSibling}}function fD(e){let t=y.useRef(e);return Oa(()=>{t.current=e}),t}var Oa=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 La(e){let t=x4(),n=()=>e(t.snapshot());return vk.useSyncExternalStore(t.subscribe,n,n)}function hD(e,t,n,r=[]){let u=y.useRef(),o=qc();return Oa(()=>{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(Sa,c),u.current=c}),u}var Hk=()=>{let[e,t]=y.useState(),n=Ms(()=>new Map);return Oa(()=>{n.current.forEach(r=>r()),n.current=new Map},[e]),(r,u)=>{n.current.set(r,u),t({})}};function Uk(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(Uk(t),{ref:t.ref},n(t.props.children)):n(t)}var kk={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};const AD=({className:e,...t})=>N.jsx(Qc,{className:Re("flex size-full flex-col overflow-hidden rounded-md",e),...t}),Gk=({className:e,...t})=>N.jsxs("div",{className:"flex w-full items-center","cmdk-input-wrapper":"",children:[N.jsx(xP,{className:"mr-2 size-4 shrink-0 opacity-50"}),N.jsx(Qc.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})]}),Vk=({className:e,...t})=>N.jsx(Qc.List,{className:Re("max-h-[300px] overflow-y-auto overflow-x-hidden",e),...t}),jk=e=>N.jsx(Qc.Empty,{className:"py-6 text-center text-sm",...e}),zk=({className:e,...t})=>N.jsx(Qc.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={...AD,Input:Gk,List:Vk,Empty:jk,Item:zk},mD=y.createContext(null),Rh=()=>{const e=y.useContext(mD);if(!e)throw new Error("useMultiSelect must be used within MultiSelectProvider");return e},Kk=({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,T]=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(ce=>ce!==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,ce=G.value.substring(G.selectionStart??0,G.selectionEnd??0);L(ce),T(ce===m)},[m]),O=y.useCallback(U=>{U.stopPropagation();const G=v.current;if(!G)return;const ce=()=>{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)},de=()=>{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)&&ce():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)&&ce();break;case"Backspace":case"Delete":f.length>0&&(S!==-1&&S<f.length?(x(f[S]),de()):(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(mD,{value:H,children:N.jsx(AD,{onKeyDown:O,className:Re("flex w-full flex-col gap-2 overflow-visible bg-transparent",u),dir:l,...c,children:o})})},$k=({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(u5,{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(ja,{className:"size-4 cursor-pointer"})]})]},h))}),r]})},Yk=({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")})},Zk=({children:e})=>{const{open:t}=Rh();return N.jsx("div",{className:"relative",children:t&&e})},Wk=({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"})})]}),qk=({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=Kk;Sn.Trigger=$k;Sn.Input=Yk;Sn.Content=Zk;Sn.List=Wk;Sn.Item=qk;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})},Jk=({isRequired:e})=>e?N.jsx("span",{"aria-label":"Asterisk meaning the field is required",children:"*"}):N.jsx(N.Fragment,{}),pD=({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(Jk,{isRequired:t})]}),n&&N.jsx(Qk,{content:n})]});function J3(e,[t,n]){return Math.min(n,Math.max(t,e))}var eG=y.createContext(void 0);function tG(e){const t=y.useContext(eG);return e||t||"ltr"}const nG=["top","right","bottom","left"],yu=Math.min,qn=Math.max,vf=Math.round,w0=Math.floor,qr=e=>({x:e,y:e}),rG={left:"right",right:"left",bottom:"top",top:"bottom"},iG={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 uG(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 aG(e){const t=Rf(e);return[YE(e),t,YE(t)]}function YE(e){return e.replace(/start|end/g,t=>iG[t])}function sG(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 oG(e,t,n,r){const u=_o(e);let o=sG(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=>rG[t])}function lG(e){return{top:0,right:0,bottom:0,left:0,...e}}function ED(e){return typeof e!="number"?lG(e):{top:e,right:e,bottom:e,left:e}}function Tf(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 eC(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 cG=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}=eC(h,r,f),g=r,_={},S=0;for(let C=0;C<c.length;C++){const{name:v,fn:R}=c[C],{x:T,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=T??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}=eC(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=ED(_),v=c[g?E==="floating"?"reference":"floating":E],R=Tf(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})),T=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=Tf(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:T,offsetParent:b,strategy:f}):T);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 dG=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=ED(m),g={x:n,y:r},_=O4(u),S=F4(_),C=await l.getDimensions(h),v=_==="y",R=v?"top":"left",T=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),ce=yu(E[T],U),ae=G,de=O-C[S]-ce,Z=O/2-C[S]/2+H,te=$E(ae,Z,de),V=!f.arrow&&_o(u)!=null&&Z!==te&&o.reference[S]/2-(Z<ae?G:ce)-C[S]/2<0,ee=V?Z<ae?Z-ae:Z-de:0;return{[_]:g[_]+ee,data:{[_]:te,centerOffset:Z-te-ee,...V&&{alignmentOffset:ee}},reset:V}}}),fG=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),T=Cu(c),b=Pi(c)===c,L=await(f.isRTL==null?void 0:f.isRTL(h.floating)),x=g||(b||!C?[Rf(c)]:aG(c)),B=S!=="none";!g&&B&&x.push(...oG(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=uG(u,l,L);U.push(H[Z[0]],H[Z[1]])}if(G=[...G,{placement:u,overflows:U}],!U.every(Z=>Z<=0)){var ce,ae;const Z=(((ce=o.flip)==null?void 0:ce.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,X)=>ee.overflows[1]-X.overflows[1])[0])==null?void 0:ae.placement;if(!V)switch(_){case"bestFit":{var de;const ee=(de=G.filter(X=>{if(B){const Ae=Cu(X.placement);return Ae===T||Ae==="y"}return!0}).map(X=>[X.placement,X.overflows.filter(Ae=>Ae>0).reduce((Ae,P)=>Ae+P,0)]).sort((X,Ae)=>X[1]-Ae[1])[0])==null?void 0:de[0];ee&&(V=ee);break}case"initialPlacement":V=c;break}if(u!==V)return{reset:{placement:V}}}return{}}}};function tC(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function nC(e){return nG.some(t=>e[t]>=0)}const hG=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=tC(o,n.reference);return{data:{referenceHiddenOffsets:l,referenceHidden:nC(l)}}}case"escaped":{const o=await lc(t,{...u,altBoundary:!0}),l=tC(o,n.floating);return{data:{escapedOffsets:l,escaped:nC(l)}}}default:return{}}}}};async function AG(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 mG=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 AG(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}}}}},pG=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:T}=v;return{x:R,y:T}}},...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",T=_+m[v],b=_-m[R];_=$E(T,_,b)}if(l){const v=E==="y"?"top":"left",R=E==="y"?"bottom":"right",T=S+m[v],b=S-m[R];S=$E(T,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}}}}}},EG=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,T;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:((T=l.offset)==null?void 0:T[E])||0)-(L?v.crossAxis:0);S<x?S=x:S>B&&(S=B)}return{[g]:_,[E]:S}}}},gG=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 T=C-m.top-m.bottom,b=S-m.left-m.right,L=yu(C-m[v],T),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=T),B&&!g){const G=qn(m.left,0),ce=qn(m.right,0),ae=qn(m.top,0),de=qn(m.bottom,0);_?H=S-2*(G!==0||ce!==0?G+ce:qn(m.left,m.right)):O=C-2*(ae!==0||de!==0?ae+de: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 Th(){return typeof window<"u"}function So(e){return gD(e)?(e.nodeName||"").toLowerCase():"#document"}function Xn(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function si(e){var t;return(t=(gD(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function gD(e){return Th()?e instanceof Node||e instanceof Xn(e).Node:!1}function Or(e){return Th()?e instanceof Element||e instanceof Xn(e).Element:!1}function ti(e){return Th()?e instanceof HTMLElement||e instanceof Xn(e).HTMLElement:!1}function rC(e){return!Th()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Xn(e).ShadowRoot}function Xc(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 _G(e){return["table","td","th"].includes(So(e))}function Dh(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 SG(e){let t=vu(e);for(;ti(t)&&!to(t);){if(L4(t))return t;if(Dh(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 Xn(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||rC(e)&&e.host||si(e);return rC(t)?t.host:t}function _D(e){const t=vu(e);return to(t)?e.ownerDocument?e.ownerDocument.body:e.body:ti(t)&&Xc(t)?t:_D(t)}function cc(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const u=_D(e),o=u===((r=e.ownerDocument)==null?void 0:r.body),l=Xn(u);if(o){const c=ZE(l);return t.concat(l,l.visualViewport||[],Xc(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 SD(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}=SD(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 NG=qr(0);function ND(e){const t=Xn(e);return!w4()||!t.visualViewport?NG:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function IG(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Xn(e)?!1:t}function wa(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=IG(o,n,r)?ND(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=Xn(o),_=r&&Or(r)?Xn(r):r;let S=g,C=ZE(S);for(;C&&r&&_!==S;){const v=Zs(C),R=C.getBoundingClientRect(),T=Lr(C),b=R.left+(C.clientLeft+parseFloat(T.paddingLeft))*v.x,L=R.top+(C.clientTop+parseFloat(T.paddingTop))*v.y;f*=v.x,h*=v.y,m*=v.x,E*=v.y,f+=b,h+=L,S=Xn(C),C=ZE(S)}}return Tf({width:m,height:E,x:f,y:h})}function P4(e,t){const n=bh(e).scrollLeft;return t?t.left+n:wa(si(e)).left+n}function ID(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 yG(e){let{elements:t,rect:n,offsetParent:r,strategy:u}=e;const o=u==="fixed",l=si(r),c=t?Dh(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"||Xc(l))&&(f=bh(r)),ti(r))){const _=wa(r);h=Zs(r),m.x=_.x+r.clientLeft,m.y=_.y+r.clientTop}const g=l&&!E&&!o?ID(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 CG(e){return Array.from(e.getClientRects())}function vG(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 RG(e,t){const n=Xn(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 TG(e,t){const n=wa(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 iC(e,t,n){let r;if(t==="viewport")r=RG(e,n);else if(t==="document")r=vG(si(e));else if(Or(t))r=TG(t,n);else{const u=ND(e);r={x:t.x-u.x,y:t.y-u.y,width:t.width,height:t.height}}return Tf(r)}function yD(e,t){const n=vu(e);return n===t||!Or(n)||to(n)?!1:Lr(n).position==="fixed"||yD(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)||Xc(l)&&!f&&yD(e,l))?r=r.filter(m=>m!==l):u=c,l=vu(l)}return t.set(e,r),r}function bG(e){let{element:t,boundary:n,rootBoundary:r,strategy:u}=e;const l=[...n==="clippingAncestors"?Dh(t)?[]:DG(t,this._c):[].concat(n),r],c=l[0],f=l.reduce((h,m)=>{const E=iC(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},iC(t,c,u));return{width:f.right-f.left,height:f.bottom-f.top,x:f.left,y:f.top}}function xG(e){const{width:t,height:n}=SD(e);return{width:t,height:n}}function BG(e,t,n){const r=ti(t),u=si(t),o=n==="fixed",l=wa(e,!0,o,t);let c={scrollLeft:0,scrollTop:0};const f=qr(0);if(r||!r&&!o)if((So(t)!=="body"||Xc(u))&&(c=bh(t)),r){const g=wa(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?ID(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 uC(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 CD(e,t){const n=Xn(e);if(Dh(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=uC(e,t);for(;r&&_G(r)&&jp(r);)r=uC(r,t);return r&&to(r)&&jp(r)&&!L4(r)?n:r||SG(e)||n}const FG=async function(e){const t=this.getOffsetParent||CD,n=this.getDimensions,r=await n(e.floating);return{reference:BG(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function OG(e){return Lr(e).direction==="rtl"}const LG={convertOffsetParentRelativeRectToViewportRelativeRect:yG,getDocumentElement:si,getClippingRect:bG,getOffsetParent:CD,getElementRects:FG,getClientRects:CG,getDimensions:xG,getScale:Zs,isElement:Or,isRTL:OG};function vD(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function wG(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&&!vD(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 MG(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?wG(h,n):null;let g=-1,_=null;l&&(_=new ResizeObserver(R=>{let[T]=R;T&&T.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?wa(e):null;f&&v();function v(){const R=wa(e);C&&!vD(C,R)&&n(),C=R,S=requestAnimationFrame(v)}return n(),()=>{var R;m.forEach(T=>{u&&T.removeEventListener("scroll",n),o&&T.removeEventListener("resize",n)}),E==null||E(),(R=_)==null||R.disconnect(),_=null,f&&cancelAnimationFrame(S)}}const PG=mG,HG=pG,UG=fG,kG=gG,GG=hG,aC=dG,VG=EG,jG=(e,t,n)=>{const r=new Map,u={platform:LG,...n},o={...u.platform,_c:r};return cG(e,t,{...u,platform:o})};var af=typeof document<"u"?y.useLayoutEffect:y.useEffect;function Df(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(!Df(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)&&!Df(e[o],t[o]))return!1}return!0}return e!==e&&t!==t}function RD(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function sC(e,t){const n=RD(e);return Math.round(t*n)/n}function zp(e){const t=y.useRef(e);return af(()=>{t.current=e}),t}function zG(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);Df(g,r)||_(r);const[S,C]=y.useState(null),[v,R]=y.useState(null),T=y.useCallback(X=>{X!==B.current&&(B.current=X,C(X))},[]),b=y.useCallback(X=>{X!==O.current&&(O.current=X,R(X))},[]),L=o||S,x=l||v,B=y.useRef(null),O=y.useRef(null),H=y.useRef(m),U=f!=null,G=zp(f),ce=zp(u),ae=zp(h),de=y.useCallback(()=>{if(!B.current||!O.current)return;const X={placement:t,strategy:n,middleware:g};ce.current&&(X.platform=ce.current),jG(B.current,O.current,X).then(Ae=>{const P={...Ae,isPositioned:ae.current!==!1};Z.current&&!Df(H.current,P)&&(H.current=P,Va.flushSync(()=>{E(P)}))})},[g,t,n,ce,ae]);af(()=>{h===!1&&H.current.isPositioned&&(H.current.isPositioned=!1,E(X=>({...X,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,de);de()}},[L,x,de,G,U]);const te=y.useMemo(()=>({reference:B,floating:O,setReference:T,setFloating:b}),[T,b]),V=y.useMemo(()=>({reference:L,floating:x}),[L,x]),ee=y.useMemo(()=>{const X={position:n,left:0,top:0};if(!V.floating)return X;const Ae=sC(V.floating,m.x),P=sC(V.floating,m.y);return c?{...X,transform:"translate("+Ae+"px, "+P+"px)",...RD(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:de,refs:te,elements:V,floatingStyles:ee}),[m,de,te,V,ee])}const KG=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?aC({element:r.current,padding:u}).fn(n):{}:r?aC({element:r,padding:u}).fn(n):{}}}},$G=(e,t)=>({...PG(e),options:[e,t]}),YG=(e,t)=>({...HG(e),options:[e,t]}),ZG=(e,t)=>({...VG(e),options:[e,t]}),WG=(e,t)=>({...UG(e),options:[e,t]}),qG=(e,t)=>({...kG(e),options:[e,t]}),QG=(e,t)=>({...GG(e),options:[e,t]}),XG=(e,t)=>({...KG(e),options:[e,t]});var JG="Arrow",TD=y.forwardRef((e,t)=>{const{children:n,width:r=10,height:u=5,...o}=e;return N.jsx(rt.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"})})});TD.displayName=JG;var eV=TD;function tV(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,bD]=Yc(H4),[nV,xD]=DD(H4),BD=e=>{const{__scopePopper:t,children:n}=e,[r,u]=y.useState(null);return N.jsx(nV,{scope:t,anchor:r,onAnchorChange:u,children:n})};BD.displayName=H4;var FD="PopperAnchor",OD=y.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...u}=e,o=xD(FD,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(rt.div,{...u,ref:c})});OD.displayName=FD;var U4="PopperContent",[rV,iV]=DD(U4),LD=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=xD(U4,n),[R,T]=y.useState(null),b=xt(t,It=>T(It)),[L,x]=y.useState(null),B=tV(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},ce=Array.isArray(h)?h:[h],ae=ce.length>0,de={padding:G,boundary:ce.filter(aV),altBoundary:ae},{refs:Z,floatingStyles:te,placement:V,isPositioned:ee,middlewareData:X}=zG({strategy:"fixed",placement:U,whileElementsMounted:(...It)=>MG(...It,{animationFrame:_==="always"}),elements:{reference:v.anchor},middleware:[$G({mainAxis:u+H,alignmentAxis:l}),f&&YG({mainAxis:!0,crossAxis:!1,limiter:E==="partial"?ZG():void 0,...de}),f&&WG({...de}),qG({...de,apply:({elements:It,rects:Jt,availableWidth:yr,availableHeight:kn})=>{const{width:Hr,height:k}=Jt.reference,Q=It.floating.style;Q.setProperty("--radix-popper-available-width",`${yr}px`),Q.setProperty("--radix-popper-available-height",`${kn}px`),Q.setProperty("--radix-popper-anchor-width",`${Hr}px`),Q.setProperty("--radix-popper-anchor-height",`${k}px`)}}),L&&XG({element:L,padding:c}),sV({arrowWidth:O,arrowHeight:H}),g&&QG({strategy:"referenceHidden",...de})]}),[Ae,P]=PD(V),W=er(S);Cn(()=>{ee&&(W==null||W())},[ee,W]);const j=(pe=X.arrow)==null?void 0:pe.x,re=(ve=X.arrow)==null?void 0:ve.y,ne=((Ve=X.arrow)==null?void 0:Ve.centerOffset)!==0,[fe,ge]=y.useState();return Cn(()=>{R&&ge(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:fe,"--radix-popper-transform-origin":[(we=X.transformOrigin)==null?void 0:we.x,(Ze=X.transformOrigin)==null?void 0:Ze.y].join(" "),...((at=X.hide)==null?void 0:at.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:N.jsx(rV,{scope:n,placedSide:Ae,onArrowChange:x,arrowX:j,arrowY:re,shouldHideArrow:ne,children:N.jsx(rt.div,{"data-side":Ae,"data-align":P,...C,ref:b,style:{...C.style,animation:ee?void 0:"none"}})})})});LD.displayName=U4;var wD="PopperArrow",uV={top:"bottom",right:"left",bottom:"top",left:"right"},MD=y.forwardRef(function(t,n){const{__scopePopper:r,...u}=t,o=iV(wD,r),l=uV[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(eV,{...u,ref:n,style:{...u.style,display:"block"}})})});MD.displayName=wD;function aV(e){return e!==null}var sV=e=>({name:"transformOrigin",options:e,fn(t){var v,R,T;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]=PD(n),E={start:"0%",center:"50%",end:"100%"}[m],g=(((R=u.arrow)==null?void 0:R.x)??0)+c/2,_=(((T=u.arrow)==null?void 0:T.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 PD(e){const[t,n="center"]=e.split("-");return[t,n]}var oV=BD,lV=OD,cV=LD,dV=MD;function fV(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 hV=[" ","Enter","ArrowUp","ArrowDown"],AV=[" ","Enter"],Jc="Select",[xh,Bh,mV]=W9(Jc),[No,Nie]=Yc(Jc,[mV,bD]),Fh=bD(),[pV,Hu]=No(Jc),[EV,gV]=No(Jc),HD=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),[T,b]=y.useState(null),[L,x]=y.useState(!1),B=tG(h),[O=!1,H]=gf({prop:r,defaultProp:u,onChange:o}),[U,G]=gf({prop:l,defaultProp:c,onChange:f}),ce=y.useRef(null),ae=v?S||!!v.closest("form"):!0,[de,Z]=y.useState(new Set),te=Array.from(de).map(V=>V.props.value).join(";");return N.jsx(oV,{...C,children:N.jsxs(pV,{required:_,scope:t,trigger:v,onTriggerChange:R,valueNode:T,onValueNodeChange:b,valueNodeHasChildren:L,onValueNodeHasChildrenChange:x,contentId:Nr(),value:U,onValueChange:G,open:O,onOpenChange:H,dir:B,triggerPointerDownPosRef:ce,disabled:g,children:[N.jsx(xh.Provider,{scope:t,children:N.jsx(EV,{scope:e.__scopeSelect,onNativeOptionAdd:y.useCallback(V=>{Z(ee=>new Set(ee).add(V))},[]),onNativeOptionRemove:y.useCallback(V=>{Z(ee=>{const X=new Set(ee);return X.delete(V),X})},[]),children:n})}),ae?N.jsxs(c1,{"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(de)]},te):null]})})};HD.displayName=Jc;var UD="SelectTrigger",kD=y.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...u}=e,o=Fh(n),l=Hu(UD,n),c=l.disabled||r,f=xt(t,l.onTriggerChange),h=Bh(n),m=y.useRef("touch"),[E,g,_]=d1(C=>{const v=h().filter(b=>!b.disabled),R=v.find(b=>b.value===l.value),T=f1(v,C,R);T!==void 0&&l.onValueChange(T.value)}),S=C=>{c||(l.onOpenChange(!0),_()),C&&(l.triggerPointerDownPosRef.current={x:Math.round(C.pageX),y:Math.round(C.pageY)})};return N.jsx(lV,{asChild:!0,...o,children:N.jsx(rt.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":l1(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===" ")&&hV.includes(C.key)&&(S(),C.preventDefault())})})})});kD.displayName=UD;var GD="SelectValue",VD=y.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:u,children:o,placeholder:l="",...c}=e,f=Hu(GD,n),{onValueNodeHasChildrenChange:h}=f,m=o!==void 0,E=xt(t,f.onValueNodeChange);return Cn(()=>{h(m)},[h,m]),N.jsx(rt.span,{...c,ref:E,style:{pointerEvents:"none"},children:l1(f.value)?N.jsx(N.Fragment,{children:l}):o})});VD.displayName=GD;var _V="SelectIcon",jD=y.forwardRef((e,t)=>{const{__scopeSelect:n,children:r,...u}=e;return N.jsx(rt.span,{"aria-hidden":!0,...u,ref:t,children:r||"▼"})});jD.displayName=_V;var SV="SelectPortal",zD=e=>N.jsx(gh,{asChild:!0,...e});zD.displayName=SV;var Ma="SelectContent",KD=y.forwardRef((e,t)=>{const n=Hu(Ma,e.__scopeSelect),[r,u]=y.useState();if(Cn(()=>{u(new DocumentFragment)},[]),!n.open){const o=r;return o?Va.createPortal(N.jsx($D,{scope:e.__scopeSelect,children:N.jsx(xh.Slot,{scope:e.__scopeSelect,children:N.jsx("div",{children:e.children})})}),o):null}return N.jsx(YD,{...e,ref:t})});KD.displayName=Ma;var Dr=10,[$D,Uu]=No(Ma),NV="SelectContentImpl",YD=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,T=Hu(Ma,n),[b,L]=y.useState(null),[x,B]=y.useState(null),O=xt(t,pe=>L(pe)),[H,U]=y.useState(null),[G,ce]=y.useState(null),ae=Bh(n),[de,Z]=y.useState(!1),te=y.useRef(!1);y.useEffect(()=>{if(b)return ZT(b)},[b]),UT();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(()=>{de&&ee()},[de,ee]);const{onOpenChange:X,triggerPointerDownPosRef:Ae}=T;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)||X(!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,X,Ae]),y.useEffect(()=>{const pe=()=>X(!1);return window.addEventListener("blur",pe),window.addEventListener("resize",pe),()=>{window.removeEventListener("blur",pe),window.removeEventListener("resize",pe)}},[X]);const[P,W]=d1(pe=>{const ve=ae().filter(Ze=>!Ze.disabled),Ve=ve.find(Ze=>Ze.ref.current===document.activeElement),we=f1(ve,pe,Ve);we&&setTimeout(()=>we.ref.current.focus())}),j=y.useCallback((pe,ve,Ve)=>{const we=!te.current&&!Ve;(T.value!==void 0&&T.value===ve||we)&&(U(pe),we&&(te.current=!0))},[T.value]),re=y.useCallback(()=>b==null?void 0:b.focus(),[b]),ne=y.useCallback((pe,ve,Ve)=>{const we=!te.current&&!Ve;(T.value!==void 0&&T.value===ve||we)&&ce(pe)},[T.value]),fe=r==="popper"?WE:ZD,ge=fe===WE?{side:c,sideOffset:f,align:h,alignOffset:m,arrowPadding:E,collisionBoundary:g,collisionPadding:_,sticky:S,hideWhenDetached:C,avoidCollisions:v}:{};return N.jsx($D,{scope:n,content:b,viewport:x,onViewportChange:B,itemRefCallback:j,selectedItem:H,onItemLeave:re,itemTextRefCallback:ne,focusSelectedItem:ee,selectedItemText:G,position:r,isPositioned:de,searchRef:P,children:N.jsx(C4,{as:Ba,allowPinchZoom:!0,children:N.jsx(y4,{asChild:!0,trapped:T.open,onMountAutoFocus:pe=>{pe.preventDefault()},onUnmountAutoFocus:lt(u,pe=>{var ve;(ve=T.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:()=>T.onOpenChange(!1),children:N.jsx(fe,{role:"listbox",id:T.contentId,"data-state":T.open?"open":"closed",dir:T.dir,onContextMenu:pe=>pe.preventDefault(),...R,...ge,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()}})})})})})})});YD.displayName=NV;var IV="SelectItemAlignedPosition",ZD=y.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:r,...u}=e,o=Hu(Ma,n),l=Uu(Ma,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:T}=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-Dr,Hr=J3(at,[Dr,Math.max(Dr,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-Dr,Hr=J3(at,[Dr,Math.max(Dr,kn-yr)]);c.style.minWidth=Jt+"px",c.style.right=Hr+"px"}const ce=g(),ae=window.innerHeight-Dr*2,de=C.scrollHeight,Z=window.getComputedStyle(h),te=parseInt(Z.borderTopWidth,10),V=parseInt(Z.paddingTop,10),ee=parseInt(Z.borderBottomWidth,10),X=parseInt(Z.paddingBottom,10),Ae=te+V+de+X+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-Dr,fe=ae-ne,ge=v.offsetHeight/2,pe=v.offsetTop+ge,ve=te+V+pe,Ve=Ae-ve;if(ve<=ne){const Ze=ce.length>0&&v===ce[ce.length-1].ref.current;c.style.bottom="0px";const at=h.clientHeight-C.offsetTop-C.offsetHeight,It=Math.max(fe,ge+(Ze?re:0)+at+ee),Jt=ve+It;c.style.height=Jt+"px"}else{const Ze=ce.length>0&&v===ce[0].ref.current;c.style.top="0px";const It=Math.max(ne,te+C.offsetTop+(Ze?j:0)+ge)+Ve;c.style.height=It+"px",C.scrollTop=ve-ne+C.offsetTop}c.style.margin=`${Dr}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(),T==null||T(),S.current=!1)},[b,T]);return N.jsx(CV,{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(rt.div,{...u,ref:E,style:{boxSizing:"border-box",maxHeight:"100%",...u.style}})})})});ZD.displayName=IV;var yV="SelectPopperPosition",WE=y.forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:u=Dr,...o}=e,l=Fh(n);return N.jsx(cV,{...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=yV;var[CV,k4]=No(Ma,{}),qE="SelectViewport",WD=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(rt.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-Dr*2,C=parseFloat(E.style.minHeight),v=parseFloat(E.style.height),R=Math.max(C,v);if(R<S){const T=R+_,b=Math.min(S,T),L=T-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})})})]})});WD.displayName=qE;var qD="SelectGroup",[vV,RV]=No(qD),QD=y.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,u=Nr();return N.jsx(vV,{scope:n,id:u,children:N.jsx(rt.div,{role:"group","aria-labelledby":u,...r,ref:t})})});QD.displayName=qD;var XD="SelectLabel",JD=y.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,u=RV(XD,n);return N.jsx(rt.div,{id:u.id,...r,ref:t})});JD.displayName=XD;var bf="SelectItem",[TV,e1]=No(bf),t1=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,T=>{var b;return(b=f.itemRefCallback)==null?void 0:b.call(f,T,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(TV,{scope:n,value:r,disabled:u,textId:C,isSelected:h,onItemTextChange:y.useCallback(T=>{E(b=>b||((T==null?void 0:T.textContent)??"").trim())},[]),children:N.jsx(xh.ItemSlot,{scope:n,value:r,disabled:u,textValue:m,children:N.jsx(rt.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,T=>{v.current=T.pointerType}),onPointerMove:lt(l.onPointerMove,T=>{var b;v.current=T.pointerType,u?(b=f.onItemLeave)==null||b.call(f):v.current==="mouse"&&T.currentTarget.focus({preventScroll:!0})}),onPointerLeave:lt(l.onPointerLeave,T=>{var b;T.currentTarget===document.activeElement&&((b=f.onItemLeave)==null||b.call(f))}),onKeyDown:lt(l.onKeyDown,T=>{var L;((L=f.searchRef)==null?void 0:L.current)!==""&&T.key===" "||(AV.includes(T.key)&&R(),T.key===" "&&T.preventDefault())})})})})});t1.displayName=bf;var Gl="SelectItemText",n1=y.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:u,...o}=e,l=Hu(Gl,n),c=Uu(Gl,n),f=e1(Gl,n),h=gV(Gl,n),[m,E]=y.useState(null),g=xt(t,R=>E(R),f.onItemTextChange,R=>{var T;return(T=c.itemTextRefCallback)==null?void 0:T.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(rt.span,{id:f.textId,...o,ref:g}),f.isSelected&&l.valueNode&&!l.valueNodeHasChildren?Va.createPortal(o.children,l.valueNode):null]})});n1.displayName=Gl;var r1="SelectItemIndicator",i1=y.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return e1(r1,n).isSelected?N.jsx(rt.span,{"aria-hidden":!0,...r,ref:t}):null});i1.displayName=r1;var QE="SelectScrollUpButton",u1=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.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(s1,{...e,ref:l,onAutoScroll:()=>{const{viewport:c,selectedItem:f}=n;c&&f&&(c.scrollTop=c.scrollTop-f.offsetHeight)}}):null});u1.displayName=QE;var XE="SelectScrollDownButton",a1=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.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(s1,{...e,ref:l,onAutoScroll:()=>{const{viewport:c,selectedItem:f}=n;c&&f&&(c.scrollTop=c.scrollTop+f.offsetHeight)}}):null});a1.displayName=XE;var s1=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(rt.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",o1=y.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return N.jsx(rt.div,{"aria-hidden":!0,...r,ref:t})});o1.displayName=DV;var JE="SelectArrow",bV=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(dV,{...u,...r,ref:t}):null});bV.displayName=JE;function l1(e){return e===""||e===void 0}var c1=y.forwardRef((e,t)=>{const{value:n,...r}=e,u=y.useRef(null),o=xt(t,u),l=fV(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})})});c1.displayName="BubbleSelect";function d1(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 f1(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=xV(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 xV(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var BV=HD,FV=kD,OV=VD,LV=jD,wV=zD,MV=KD,PV=WD,HV=QD,UV=JD,kV=t1,GV=n1,VV=i1,jV=u1,zV=a1,KV=o1;const $V=BV,YV=HV,ZV=OV,WV=({validationStyleEnabled:e=!1,className:t,children:n,...r})=>N.jsxs(FV,{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(LV,{asChild:!0,children:N.jsx(aP,{className:"size-4 opacity-50"})})]}),h1=({className:e,...t})=>N.jsx(jV,{className:Re("flex cursor-default items-center justify-center py-1",e),...t,children:N.jsx(iP,{})}),A1=({className:e,...t})=>N.jsx(zV,{className:Re("flex cursor-default items-center justify-center py-1",e),...t,children:N.jsx(H9,{})}),qV=({className:e,children:t,position:n="popper",...r})=>N.jsx(wV,{children:N.jsxs(MV,{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(h1,{}),N.jsx(PV,{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(A1,{})]})}),QV=({className:e,...t})=>N.jsx(UV,{className:Re("px-1 py-0.5 text-sm font-semibold",e),...t}),XV=({className:e,children:t,...n})=>N.jsxs(kV,{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(VV,{children:N.jsx(Eo,{className:"size-4"})})}),N.jsx(GV,{children:t})]}),JV=({className:e,...t})=>N.jsx(KV,{className:Re("-mx-1 my-1 h-px bg-red-300",e),...t}),Me=$V;Me.Group=YV;Me.Value=ZV;Me.Trigger=WV;Me.ScrollUpButton=h1;Me.ScrollDownButton=A1;Me.Content=qV;Me.Label=QV;Me.Item=XV;Me.Separator=JV;const ej=e=>(e==null?void 0:e.getAttribute("aria-selected"))==="true",tj=(e,t=ej,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(T=>({left:0,width:0,...T,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 T of R)if(T.type==="attributes"&&T.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}},nj=[{content:"Off",value:!1},{content:"On",value:!0}],rj=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"}}),ij=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"}}),uj=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=nj,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}=tj(h),g=_=>{f(_),r==null||r(_)};return y.useEffect(()=>{t!==void 0&&f(t)},[t]),N.jsx("div",{className:rj({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}=_,T=typeof v=="string"||typeof v=="number",b=v===c;return y.createElement("button",{...R,className:Re(ij({size:o})),key:T?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(uj({color:u})),style:E,ref:m})]})})};var aj=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]=yT(l,t,n,u,h?[].concat(h,r.message):r.message)}e.shift()}return n},sj=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&&xT({},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(aj(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,oj=({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(LU,{...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})})},lj=(e,t)=>{const n=qU({resolver:sj(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}},cj=e=>{const{error:t,formItemId:n,formDescriptionId:r,formMessageId:u}=Pu();return N.jsx(Ba,{id:n,"aria-describedby":t?`${r} ${u}`:`${r}`,"aria-invalid":!!t,...e})},dj=e=>{const{formDescriptionId:t}=Pu();return N.jsx("p",{className:"text-neutral text-sm",id:t,...e})},fj=({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(nt.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(pD,{isRequired:n,info:r,htmlFor:l,children:e}),t&&N.jsx(nt.Description,{children:t})]}),N.jsx(nt.Control,{children:u}),o&&N.jsx(nt.Message,{"data-testid":"error-message"})]}),hj=({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(nt.Field,{control:t,name:e.name,render:({field:n})=>N.jsx(hj,{...e,field:n})})},Aj=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}),mj=({autoComplete:e,...t})=>N.jsx(ku,{Element:r5,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}),pj=e=>N.jsx(ku,{Element:LT,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}),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:MT,...e}),gj=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:PT,...e}),_j=e=>N.jsx(ku,{Element:I4,id:e.name,"data-testid":e.name,...e}),Sj=({inputLabel:e,...t})=>N.jsx(n5,{...t,label:e}),Nj=({autoComplete:e,...t})=>N.jsx(ku,{Element:Sj,id:t.name,"data-testid":t.name,autoComplete:e,minLength:6,maxLength:255,...t}),Ij=({name:e,description:t,label:n,isRequired:r,info:u,showErrorMessage:o,children:l,...c})=>{const{control:f}=Mu();return N.jsx(nt.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})})}})},yj=({name:e,description:t,label:n,isRequired:r,info:u,showErrorMessage:o,children:l,...c})=>{const{control:f}=Mu();return N.jsx(nt.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})})}})},Cj=({name:e,description:t,label:n,isRequired:r,info:u,showErrorMessage:o,children:l,...c})=>{const{control:f}=Mu();return N.jsx(nt.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})})}})},nt=oj;nt.Description=dj;nt.Control=cj;nt.Field=e5;nt.Item=JU;nt.Label=pD;nt.Message=fj;nt.Element=ku;nt.Input=Aj;nt.InputPassword=mj;nt.Checkbox=Nj;nt.TextArea=pj;nt.AutoSizedTextArea=_j;nt.Button=Et;nt.Select=yj;nt.MultiSelect=Ij;nt.EditableFieldInput=Ej;nt.EditableFieldTextArea=gj;nt.SwitchSelector=Cj;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 Te=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 Te.undefined;case"string":return Te.string;case"number":return isNaN(e)?Te.nan:Te.number;case"boolean":return Te.boolean;case"function":return Te.function;case"bigint":return Te.bigint;case"symbol":return Te.symbol;case"object":return Array.isArray(e)?Te.array:e===null?Te.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?Te.promise:typeof Map<"u"&&e instanceof Map?Te.map:typeof Set<"u"&&e instanceof Set?Te.set:typeof Date<"u"&&e instanceof Date?Te.date:Te.object;default:return Te.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"]),vj=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===Te.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 m1=no;function Rj(e){m1=e}function xf(){return m1}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}},Tj=[];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",Pa=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 p1(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 oC=(e,t)=>{if(Pa(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 oC(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 Pa(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=>Pa(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 oC(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 Qr.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,bj=/^[0-9a-z]+$/,xj=/^[0-9A-HJKMNP-TV-Z]{26}$/i,Bj=/^[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,Fj=/^[a-z0-9_-]{21}$/i,Oj=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,Lj=/^[-+]?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)?)??$/,wj=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,Mj="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let $p;const 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])$/,Hj=/^(?:(?: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])$/,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]))$/,kj=/^(([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])$/,Gj=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,Vj=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,E1="((\\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])))",jj=new RegExp(`^${E1}$`);function g1(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 zj(e){return new RegExp(`^${g1(e)}$`)}function _1(e){let t=`${E1}T${g1(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 Kj(e,t){return!!((t==="v4"||!t)&&Pj.test(e)||(t==="v6"||!t)&&Uj.test(e))}function $j(e,t){if(!Oj.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 Yj(e,t){return!!((t==="v4"||!t)&&Hj.test(e)||(t==="v6"||!t)&&kj.test(e))}class Br extends et{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==Te.string){const o=this._getOrReturnCtx(t);return ye(o,{code:me.invalid_type,expected:Te.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")wj.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(Mj,"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")Bj.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")Fj.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")bj.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")xj.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"?_1(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"?jj.test(t.data)||(u=this._getOrReturnCtx(t,u),ye(u,{code:me.invalid_string,validation:"date",message:o.message}),r.dirty()):o.kind==="time"?zj(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"?Lj.test(t.data)||(u=this._getOrReturnCtx(t,u),ye(u,{validation:"duration",code:me.invalid_string,message:o.message}),r.dirty()):o.kind==="ip"?Kj(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"?$j(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"?Yj(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"?Gj.test(t.data)||(u=this._getOrReturnCtx(t,u),ye(u,{validation:"base64",code:me.invalid_string,message:o.message}),r.dirty()):o.kind==="base64url"?Vj.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 Zj(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)!==Te.number){const o=this._getOrReturnCtx(t);return ye(o,{code:me.invalid_type,expected:Te.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"?Zj(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 Tu 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)!==Te.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:Te.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 Tu({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:Oe.toString(u)}]})}_addCheck(t){return new Tu({...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}}Tu.create=e=>{var t;return new Tu({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)!==Te.boolean){const r=this._getOrReturnCtx(t);return ye(r,{code:me.invalid_type,expected:Te.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 Ha extends et{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==Te.date){const o=this._getOrReturnCtx(t);return ye(o,{code:me.invalid_type,expected:Te.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 Ha({...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}}Ha.create=e=>new Ha({checks:[],coerce:(e==null?void 0:e.coerce)||!1,typeName:Ge.ZodDate,...qe(e)});class Of extends et{_parse(t){if(this._getType(t)!==Te.symbol){const r=this._getOrReturnCtx(t);return ye(r,{code:me.invalid_type,expected:Te.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)!==Te.undefined){const r=this._getOrReturnCtx(t);return ye(r,{code:me.invalid_type,expected:Te.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)!==Te.null){const r=this._getOrReturnCtx(t);return ye(r,{code:me.invalid_type,expected:Te.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:Te.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)!==Te.undefined){const r=this._getOrReturnCtx(t);return ye(r,{code:me.invalid_type,expected:Te.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!==Te.array)return ye(n,{code:me.invalid_type,expected:Te.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 Tt){const t={};for(const n in e.shape){const r=e.shape[n];t[n]=Qr.create(Ps(r))}return new Tt({...e._def,shape:()=>t})}else return e instanceof Fr?new Fr({...e._def,type:Ps(e.element)}):e instanceof Qr?Qr.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 Tt 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)!==Te.object){const h=this._getOrReturnCtx(t);return ye(h,{code:me.invalid_type,expected:Te.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 Tt({...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 Tt({...this._def,unknownKeys:"strip"})}passthrough(){return new Tt({...this._def,unknownKeys:"passthrough"})}extend(t){return new Tt({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new Tt({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 Tt({...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 Tt({...this._def,shape:()=>n})}omit(t){const n={};return dt.objectKeys(this.shape).forEach(r=>{t[r]||(n[r]=this.shape[r])}),new Tt({...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 Tt({...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 Qr;)o=o._def.innerType;n[r]=o}}),new Tt({...this._def,shape:()=>n})}keyof(){return S1(dt.objectKeys(this.shape))}}Tt.create=(e,t)=>new Tt({shape:()=>e,unknownKeys:"strip",catchall:Hi.create(),typeName:Ge.ZodObject,...qe(t)});Tt.strictCreate=(e,t)=>new Tt({shape:()=>e,unknownKeys:"strict",catchall:Hi.create(),typeName:Ge.ZodObject,...qe(t)});Tt.lazycreate=(e,t)=>new Tt({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 Di=e=>e instanceof gc?Di(e.schema):e instanceof wr?Di(e.innerType()):e instanceof _c?[e.value]:e instanceof Du?e.options:e instanceof Sc?dt.objectValues(e.enum):e instanceof Nc?Di(e._def.innerType):e instanceof hc?[void 0]:e instanceof Ac?[null]:e instanceof Qr?[void 0,...Di(e.unwrap())]:e instanceof bu?[null,...Di(e.unwrap())]:e instanceof G4||e instanceof yc?Di(e.unwrap()):e instanceof Ic?Di(e._def.innerType):[];class Lh extends et{_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==Te.object)return ye(n,{code:me.invalid_type,expected:Te.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=Di(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===Te.object&&r===Te.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===Te.array&&r===Te.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===Te.date&&r===Te.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!==Te.array)return ye(r,{code:me.invalid_type,expected:Te.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!==Te.object)return ye(r,{code:me.invalid_type,expected:Te.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!==Te.map)return ye(r,{code:me.invalid_type,expected:Te.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 Ua extends et{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==Te.set)return ye(r,{code:me.invalid_type,expected:Te.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 Ua({...this._def,minSize:{value:t,message:Oe.toString(n)}})}max(t,n){return new Ua({...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)}}Ua.create=(e,t)=>new Ua({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!==Te.function)return ye(n,{code:me.invalid_type,expected:Te.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 S1(e,t){return new Du({values:e,typeName:Ge.ZodEnum,...qe(t)})}class Du 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)||p1(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 Du.create(t,{...this._def,...n})}exclude(t,n=this._def){return Du.create(this.options.filter(r=>!t.includes(r)),{...this._def,...n})}}Vl=new WeakMap;Du.create=S1;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!==Te.string&&r.parsedType!==Te.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)||p1(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!==Te.promise&&n.common.async===!1)return ye(n,{code:me.invalid_type,expected:Te.promise,received:n.parsedType}),Ke;const r=n.parsedType===Te.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(!Pa(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=>Pa(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 Qr extends et{_parse(t){return this._getType(t)===Te.undefined?Bn(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}Qr.create=(e,t)=>new Qr({innerType:e,typeName:Ge.ZodOptional,...qe(t)});class bu extends et{_parse(t){return this._getType(t)===Te.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===Te.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)!==Te.nan){const r=this._getOrReturnCtx(t);return ye(r,{code:me.invalid_type,expected:Te.nan,received:r.parsedType}),Ke}return{status:"valid",value:t.data}}}Mf.create=e=>new Mf({typeName:Ge.ZodNaN,...qe(e)});const Wj=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=>(Pa(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 lC(e,t){const n=typeof e=="function"?e(t):typeof e=="string"?{message:e}:e;return typeof n=="string"?{message:n}:n}function N1(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=lC(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=lC(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 qj={object:Tt.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}`})=>N1(n=>n instanceof e,t),I1=Br.create,y1=Ru.create,Xj=Mf.create,Jj=Tu.create,C1=fc.create,e7=Ha.create,t7=Of.create,n7=hc.create,r7=Ac.create,i7=ro.create,u7=Da.create,a7=Hi.create,s7=Lf.create,o7=Fr.create,l7=Tt.create,c7=Tt.strictCreate,d7=mc.create,f7=Lh.create,h7=pc.create,A7=ri.create,m7=Ec.create,p7=wf.create,E7=Ua.create,g7=Ws.create,_7=gc.create,S7=_c.create,N7=Du.create,I7=Sc.create,y7=io.create,cC=wr.create,C7=Qr.create,v7=bu.create,R7=wr.createWithPreprocess,T7=td.create,D7=()=>I1().optional(),b7=()=>y1().optional(),x7=()=>C1().optional(),B7={string:e=>Br.create({...e,coerce:!0}),number:e=>Ru.create({...e,coerce:!0}),boolean:e=>fc.create({...e,coerce:!0}),bigint:e=>Tu.create({...e,coerce:!0}),date:e=>Ha.create({...e,coerce:!0})},F7=Ke;var Au=Object.freeze({__proto__:null,defaultErrorMap:no,setErrorMap:Rj,getErrorMap:xf,makeIssue:Bf,EMPTY_PATH:Tj,addIssueToContext:ye,ParseStatus:vn,INVALID:Ke,DIRTY:Us,OK:Bn,isAborted:tg,isDirty:ng,isValid:Pa,isAsync:dc,get util(){return dt},get objectUtil(){return eg},ZodParsedType:Te,getParsedType:bi,ZodType:et,datetimeRegex:_1,ZodString:Br,ZodNumber:Ru,ZodBigInt:Tu,ZodBoolean:fc,ZodDate:Ha,ZodSymbol:Of,ZodUndefined:hc,ZodNull:Ac,ZodAny:ro,ZodUnknown:Da,ZodNever:Hi,ZodVoid:Lf,ZodArray:Fr,ZodObject:Tt,ZodUnion:mc,ZodDiscriminatedUnion:Lh,ZodIntersection:pc,ZodTuple:ri,ZodRecord:Ec,ZodMap:wf,ZodSet:Ua,ZodFunction:Ws,ZodLazy:gc,ZodLiteral:_c,ZodEnum:Du,ZodNativeEnum:Sc,ZodPromise:io,ZodEffects:wr,ZodTransformer:wr,ZodOptional:Qr,ZodNullable:bu,ZodDefault:Nc,ZodCatch:Ic,ZodNaN:Mf,BRAND:Wj,ZodBranded:G4,ZodPipeline:td,ZodReadonly:yc,custom:N1,Schema:et,ZodSchema:et,late:qj,get ZodFirstPartyTypeKind(){return Ge},coerce:B7,any:i7,array:o7,bigint:Jj,boolean:C1,date:e7,discriminatedUnion:f7,effect:cC,enum:N7,function:g7,instanceof:Qj,intersection:h7,lazy:_7,literal:S7,map:p7,nan:Xj,nativeEnum:I7,never:a7,null:r7,nullable:v7,number:y1,object:l7,oboolean:x7,onumber:b7,optional:C7,ostring:D7,pipeline:T7,preprocess:R7,promise:y7,record:m7,set:E7,strictObject:c7,string:I1,symbol:t7,transformer:cC,tuple:A7,undefined:n7,union:d7,unknown:u7,void:s7,NEVER:F7,ZodIssueCode:me,quotelessJson:vj,ZodError:Jn});const v1=y.createContext({});function O7(e){const t=y.useRef(null);return t.current===null&&(t.current=e()),t.current}const V4=y.createContext(null),R1=y.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function L7(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",w7=j4?y.useLayoutEffect:y.useEffect,Qt=e=>e;let wh=Qt;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,M7={useManualTiming:!1};function P7(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"],H7=40;function T1(e,t){let n=!1,r=!0;const u={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,l=M0.reduce((R,T)=>(R[T]=P7(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,H7),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,T)=>{const b=l[T];return R[T]=(L,x=!1,B=!1)=>(n||S(),b.schedule(L,x,B)),R},{}),cancel:R=>{for(let T=0;T<M0.length;T++)l[M0[T]].cancel(R)},state:u,steps:l}}const{schedule:yt,cancel:Bu,state:hn,steps:Yp}=T1(typeof requestAnimationFrame<"u"?requestAnimationFrame:Qt,!0),D1=y.createContext({strict:!1}),dC={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 dC)uo[e]={isEnabled:t=>dC[e].some(n=>!!t[n])};function U7(e){for(const t in e)uo[t]={...uo[t],...e[t]}}const k7=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")||k7.has(e)}let b1=e=>!Pf(e);function G7(e){e&&(b1=t=>t.startsWith("on")?!Pf(t):e(t))}try{G7(require("@emotion/is-prop-valid").default)}catch{}function V7(e,t,n){const r={};for(const u in e)u==="values"&&typeof e.values=="object"||(b1(u)||n===!0&&Pf(u)||!t&&!Pf(u)||e.draggable&&u.startsWith("onDrag"))&&(r[u]=e[u]);return r}function j7(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 x1(e){return!!(Uh(e)||e.variants)}function z7(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 K7(e){const{initial:t,animate:n}=z7(e,y.useContext(Ph));return y.useMemo(()=>({initial:t,animate:n}),[fC(t),fC(n)])}function fC(e){return Array.isArray(e)?e.join(" "):e}const $7=Symbol.for("motionComponentSymbol");function ks(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function Y7(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(),Z7="framerAppearId",B1="data-"+$4(Z7),{schedule:Y4}=T1(queueMicrotask,!1),F1=y.createContext({});function W7(e,t,n,r,u){var o,l;const{visualElement:c}=y.useContext(Ph),f=y.useContext(D1),h=y.useContext(V4),m=y.useContext(R1).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(F1);g&&!g.projection&&u&&(g.type==="html"||g.type==="svg")&&q7(E.current,n,u,_);const S=y.useRef(!1);y.useInsertionEffect(()=>{g&&S.current&&g.update(n,h)});const C=n[B1],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 w7(()=>{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 q7(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:O1(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 O1(e){if(e)return e.options.allowProjection!==!1?e.projection:O1(e.parent)}function Q7({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:u}){var o,l;e&&U7(e);function c(h,m){let E;const g={...y.useContext(R1),...h,layoutId:X7(h)},{isStatic:_}=g,S=K7(h),C=r(h,_);if(!_&&j4){J7();const v=e6(g);E=v.MeasureLayout,S.visualElement=W7(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,Y7(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[$7]=u,f}function X7({layoutId:e}){const t=y.useContext(v1).id;return t&&e!==void 0?t+"-"+e:e}function J7(e,t){y.useContext(D1).strict}function e6(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 t6=["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:!!(t6.indexOf(e)>-1||/[A-Z]/u.test(e))}function hC(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]=hC(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]=hC(r);t=t(n!==void 0?n:e.custom,u,o)}return t}const ig=e=>Array.isArray(e),n6=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),r6=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 n6(t)?t.toValue():t}function i6({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:n},r,u,o){const l={latestValues:u6(r,u,o,e),renderState:t()};return n&&(l.onMount=c=>n({props:r,current:c,...l}),l.onUpdate=c=>n(c)),l}const L1=e=>(t,n)=>{const r=y.useContext(Ph),u=y.useContext(V4),o=()=>i6(e,t,r,u);return n?o():O7(o)};function u6(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=x1(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 T in R){let b=R[T];if(Array.isArray(b)){const L=m?b.length-1:0;b=b[L]}b!==null&&(u[T]=b)}for(const T in C)u[T]=C[T]}}}return u}const Io=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],za=new Set(Io),w1=e=>t=>typeof t=="string"&&t.startsWith(e),M1=w1("--"),a6=w1("var(--"),q4=e=>a6(e)?s6.test(e.split("/*")[0].trim()):!1,s6=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,P1=(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"),Xr=nd("%"),Ue=nd("px"),o6=nd("vh"),l6=nd("vw"),AC={...Xr,parse:e=>Xr.parse(e)/100,transform:e=>Xr.transform(e*100)},c6={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},d6={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:AC,originY:AC,originZ:Ue},mC={...yo,transform:Math.round},Q4={...c6,...d6,zIndex:mC,size:Ue,fillOpacity:vc,strokeOpacity:vc,numOctaves:mC},f6={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},h6=Io.length;function A6(e,t,n){let r="",u=!0;for(let o=0;o<h6;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=P1(c,Q4[l]);if(!f){u=!1;const m=f6[l]||l;r+=`${m}(${h}) `}n&&(t[l]=h)}}return r=r.trim(),n?r=n(t,u?"":r):u&&(r="none"),r}function X4(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(za.has(f)){l=!0;continue}else if(M1(f)){u[f]=h;continue}else{const m=P1(h,Q4[f]);f.startsWith("origin")?(c=!0,o[f]=m):r[f]=m}}if(t.transform||(l||n?r.transform=A6(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 m6={offset:"stroke-dashoffset",array:"stroke-dasharray"},p6={offset:"strokeDashoffset",array:"strokeDasharray"};function E6(e,t,n=1,r=0,u=!0){e.pathLength=1;const o=u?m6:p6;e[o.offset]=Ue.transform(-r);const l=Ue.transform(t),c=Ue.transform(n);e[o.array]=`${l} ${c}`}function pC(e,t,n){return typeof e=="string"?e:Ue.transform(t+n*e)}function g6(e,t,n){const r=pC(t,e.x,e.width),u=pC(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(X4(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=g6(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&&E6(g,l,c,f,!1)}const e_=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),H1=()=>({...e_(),attrs:{}}),t_=e=>typeof e=="string"&&e.toLowerCase()==="svg";function U1(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 k1=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 G1(e,t,n,r){U1(e,t,void 0,r);for(const u in t.attrs)e.setAttribute(k1.has(u)?u:$4(u),t.attrs[u])}const Hf={};function _6(e){Object.assign(Hf,e)}function V1(e,{layout:t,layoutId:n}){return za.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])||V1(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 j1(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 S6(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 EC=["x","y","width","height","cx","cy","r"],N6={useVisualState:L1({scrapeMotionValuesFromProps:j1,createRenderState:H1,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(za.has(c)){o=!0;break}}if(!o)return;let l=!t;if(t)for(let c=0;c<EC.length;c++){const f=EC[c];e[f]!==t[f]&&(l=!0)}l&&yt.read(()=>{S6(n,r),yt.render(()=>{J4(r,u,t_(n.tagName),e.transformTemplate),G1(n,r)})})}})},I6={useVisualState:L1({scrapeMotionValuesFromProps:n_,createRenderState:e_})};function z1(e,t,n){for(const r in t)!yn(t[r])&&!V1(r,n)&&(e[r]=t[r])}function y6({transformTemplate:e},t){return y.useMemo(()=>{const n=e_();return X4(n,t,e),Object.assign({},n.vars,n.style)},[t])}function C6(e,t){const n=e.style||{},r={};return z1(r,n,e),Object.assign(r,y6(e,t)),r}function v6(e,t){const n={},r=C6(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 R6(e,t,n,r){const u=y.useMemo(()=>{const o=H1();return J4(o,t,t_(r),e.transformTemplate),{...o.attrs,style:{...o.style}}},[t]);if(e.style){const o={};z1(o,e.style,e),u.style={...o,...u.style}}return u}function T6(e=!1){return(n,r,u,{latestValues:o},l)=>{const f=(Z4(n)?R6:v6)(r,o,l,n),h=V7(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)?N6:I6,preloadedFeatures:e,useRender:T6(u),createVisualElement:t,Component:r};return Q7(l)}}function K1(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 b6=Mh(()=>window.ScrollTimeline!==void 0);class x6{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(b6()&&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 $1 extends x6{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",B6={linearEasing:void 0};function F6(e,t){const n=Mh(e);return()=>{var r;return(r=B6[t])!==null&&r!==void 0?r:n()}}const Rc=F6(()=>{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 Y1(){return br.x||br.y}function O6(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 Z1(e,t){const n=O6(e),r=new AbortController,u={passive:!0,...t,signal:r.signal};return[n,u,()=>r.abort()]}function gC(e){return t=>{t.pointerType==="touch"||Y1()||e(t)}}function W1(e,t,n={}){const[r,u,o]=Z1(e,n),l=gC(c=>{const{target:f}=c,h=t(c);if(typeof h!="function"||!f)return;const m=gC(E=>{h(E),f.removeEventListener("pointerleave",m)});f.addEventListener("pointerleave",m,u)});return r.forEach(c=>{c.addEventListener("pointerenter",l,u)}),o}const q1=(e,t)=>t?e===t?!0:q1(e,t.parentElement):!1,a_=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,L6=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function w6(e){return L6.has(e.tagName)||e.tabIndex!==-1}const Kl=new WeakSet;function _C(e){return t=>{t.key==="Enter"&&e(t)}}function Zp(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const M6=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=_C(()=>{if(Kl.has(n))return;Zp(n,"down");const u=_C(()=>{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 SC(e){return a_(e)&&!Y1()}function Q1(e,t,n={}){const[r,u,o]=Z1(e,n),l=c=>{const f=c.currentTarget;if(!SC(c)||Kl.has(f))return;Kl.add(f);const h=t(c),m=(_,S)=>{window.removeEventListener("pointerup",E),window.removeEventListener("pointercancel",g),!(!SC(_)||!Kl.has(f))&&(Kl.delete(f),typeof h=="function"&&h(_,{success:S}))},E=_=>{m(_,n.useGlobalTarget||q1(f,_.target))},g=_=>{m(_,!1)};window.addEventListener("pointerup",E,u),window.addEventListener("pointercancel",g,u)};return r.forEach(c=>{!w6(c)&&c.getAttribute("tabindex")===null&&(c.tabIndex=0),(n.useGlobalTarget?window:c).addEventListener("pointerdown",l,u),c.addEventListener("focus",h=>M6(h,u),u)}),o}function P6(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 X1=new Set(["width","height","top","left","right","bottom",...Io]);let of;function H6(){of=void 0}const Jr={now:()=>(of===void 0&&Jr.set(hn.isProcessing||M7.useManualTiming?hn.timestamp:performance.now()),of),set:e=>{of=e,queueMicrotask(H6)}};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 J1(e,t){return t?e*(1e3/t):0}const NC=30,U6=e=>!isNaN(parseFloat(e));let k6=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=U6(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>NC)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,NC);return J1(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 Tc(e,t){return new k6(e,t)}function G6(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Tc(n))}function V6(e,t){const n=kh(e,t);let{transitionEnd:r={},transition:u={},...o}=n||{};o={...o,...r};for(const l in o){const c=r6(o[l]);G6(e,l,c)}}function j6(e){return!!(yn(e)&&e.add)}function ag(e,t){const n=e.getValue("willChange");if(j6(n))return n.add(t)}function eb(e){return e.props[B1]}const tb=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,z6=1e-7,K6=12;function $6(e,t,n,r,u){let o,l,c=0;do l=t+(n-t)/2,o=tb(l,r,u)-e,o>0?n=l:t=l;while(Math.abs(o)>z6&&++c<K6);return l}function id(e,t,n,r){if(e===t&&n===r)return Qt;const u=o=>$6(o,0,1,e,n);return o=>o===0||o===1?o:tb(u(o),t,r)}const nb=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,rb=e=>t=>1-e(1-t),ib=id(.33,1.53,.69,.99),c_=rb(ib),ub=nb(c_),ab=e=>(e*=2)<1?.5*c_(e):.5*(2-Math.pow(2,-10*(e-1))),d_=e=>1-Math.sin(Math.acos(e)),sb=rb(d_),ob=nb(d_),lb=e=>/^0[^.\s]+$/u.test(e);function Y6(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||lb(e):!0}const Xl=e=>Math.round(e*1e5)/1e5,f_=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Z6(e){return e==null}const W6=/^(?:#[\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"&&W6.test(n)&&n.startsWith(e)||t&&!Z6(n)&&Object.prototype.hasOwnProperty.call(n,t)),cb=(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}},q6=e=>Ui(0,255,e),Wp={...yo,transform:e=>Math.round(q6(e))},Ca={test:h_("rgb","red"),parse:cb("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Wp.transform(e)+", "+Wp.transform(t)+", "+Wp.transform(n)+", "+Xl(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:Ca.transform},Gs={test:h_("hsl","hue"),parse:cb("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Xr.transform(Xl(t))+", "+Xr.transform(Xl(n))+", "+Xl(vc.transform(r))+")"},Nn={test:e=>Ca.test(e)||sg.test(e)||Gs.test(e),parse:e=>Ca.test(e)?Ca.parse(e):Gs.test(e)?Gs.parse(e):sg.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Ca.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 J6(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 db="number",fb="color",ez="var",tz="var(",IC="${}",nz=/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 Dc(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},u=[];let o=0;const c=t.replace(nz,f=>(Nn.test(f)?(r.color.push(o),u.push(fb),n.push(Nn.parse(f))):f.startsWith(tz)?(r.var.push(o),u.push(ez),n.push(f)):(r.number.push(o),u.push(db),n.push(parseFloat(f))),++o,IC)).split(IC);return{values:n,split:c,indexes:r,types:u}}function hb(e){return Dc(e).values}function Ab(e){const{split:t,types:n}=Dc(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===db?o+=Xl(u[l]):c===fb?o+=Nn.transform(u[l]):o+=u[l]}return o}}const rz=e=>typeof e=="number"?0:e;function iz(e){const t=hb(e);return Ab(e)(t.map(rz))}const Fu={test:J6,parse:hb,createTransformer:Ab,getAnimatableNone:iz},uz=new Set(["brightness","contrast","saturate","opacity"]);function az(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=uz.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+u+")"}const sz=/\b([a-z-]*)\(.*?\)/gu,og={...Fu,getAnimatableNone:e=>{const t=e.match(sz);return t?t.map(az).join(" "):e}},oz={...Q4,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=>oz[e];function mb(e,t){let n=A_(e);return n!==og&&(n=Fu),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const lz=new Set(["auto","none","0"]);function cz(e,t,n){let r=0,u;for(;r<e.length&&!u;){const o=e[r];typeof o=="string"&&!lz.has(o)&&Dc(o).values.length&&(u=e[r]),r++}if(u&&n)for(const o of t)e[o]=mb(n,u)}const yC=e=>e===yo||e===Ue,CC=(e,t)=>parseFloat(e.split(", ")[t]),vC=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const u=r.match(/^matrix3d\((.+)\)$/u);if(u)return CC(u[1],t);{const o=r.match(/^matrix\((.+)\)$/u);return o?CC(o[1],e):0}},dz=new Set(["x","y","z"]),fz=Io.filter(e=>!dz.has(e));function hz(e){const t=[];return fz.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:vC(4,13),y:vC(5,14)};ao.translateX=ao.x;ao.translateY=ao.y;const ba=new Set;let lg=!1,cg=!1;function pb(){if(cg){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=hz(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,ba.forEach(e=>e.complete()),ba.clear()}function Eb(){ba.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(cg=!0)})}function Az(){Eb(),pb()}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?(ba.add(this),lg||(lg=!0,yt.read(Eb),yt.resolveKeyframes(pb))):(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 gb=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),mz=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function pz(e){const t=mz.exec(e);if(!t)return[,];const[,n,r,u]=t;return[`--${n??r}`,u]}function _b(e,t,n=1){const[r,u]=pz(e);if(!r)return;const o=window.getComputedStyle(t).getPropertyValue(r);if(o){const l=o.trim();return gb(l)?parseFloat(l):l}return q4(u)?_b(u,t,n+1):u}const Sb=e=>t=>t.test(e),Ez={test:e=>e==="auto",parse:e=>e},Nb=[yo,Ue,Xr,gu,l6,o6,Ez],RC=e=>Nb.find(Sb(e));let Ib=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=_b(h,n.current);m!==void 0&&(t[f]=m),f===t.length-1&&(this.finalKeyframe=h)}}if(this.resolveNoneKeyframes(),!X1.has(r)||t.length!==2)return;const[u,o]=t,l=RC(u),c=RC(o);if(l!==c)if(yC(l)&&yC(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++)Y6(t[u])&&r.push(u);r.length&&cz(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 TC=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Fu.test(e)||e==="0")&&!e.startsWith("url("));function gz(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 _z(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=TC(u,t),c=TC(o,t);return!l||!c?!1:gz(e)||(n==="spring"||Co(n))&&r}const Sz=e=>e!==null;function jh(e,{repeat:t,repeatType:n="loop"},r){const u=e.filter(Sz),o=t&&n!=="loop"&&t%2===1?0:u.length-1;return!o||r===void 0?u[o]:r}const Nz=40;let yb=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>Nz?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&Az(),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&&!_z(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 Dt=(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 Iz({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 Qp=(e,t,n)=>{const r=e*e,u=n*(t*t-r)+r;return u<0?0:Math.sqrt(u)},yz=[sg,Ca,Gs],Cz=e=>yz.find(t=>t.test(e));function DC(e){const t=Cz(e);if(!t)return!1;let n=t.parse(e);return t===Gs&&(n=Iz(n)),n}const bC=(e,t)=>{const n=DC(e),r=DC(t);if(!n||!r)return Gf(e,t);const u={...n};return o=>(u.red=Qp(n.red,r.red,o),u.green=Qp(n.green,r.green,o),u.blue=Qp(n.blue,r.blue,o),u.alpha=Dt(n.alpha,r.alpha,o),Ca.transform(u))},vz=(e,t)=>n=>t(e(n)),ud=(...e)=>e.reduce(vz),dg=new Set(["none","hidden"]);function Rz(e,t){return dg.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function Tz(e,t){return n=>Dt(e,t,n)}function p_(e){return typeof e=="number"?Tz:typeof e=="string"?q4(e)?Gf:Nn.test(e)?bC:xz:Array.isArray(e)?Cb:typeof e=="object"?Nn.test(e)?bC:Dz:Gf}function Cb(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 bz(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 xz=(e,t)=>{const n=Fu.createTransformer(t),r=Dc(e),u=Dc(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?Rz(e,t):ud(Cb(bz(r,u),u.values),n):Gf(e,t)};function vb(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?Dt(e,t,n):p_(e)(e,t)}const Bz=5;function Rb(e,t,n){const r=Math.max(t-Bz,0);return J1(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},xC=.001;function Fz({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 xC-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)+xC>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=Lz(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 Oz=12;function Lz(e,t,n){let r=n;for(let u=1;u<Oz;u++)r=r-e(r)/t(r);return r}function fg(e,t){return e*Math.sqrt(1-t*t)}const wz=["duration","bounce"],Mz=["stiffness","damping","mass"];function BC(e,t){return t.some(n=>e[n]!==void 0)}function Pz(e){let t={velocity:Lt.velocity,stiffness:Lt.stiffness,damping:Lt.damping,mass:Lt.mass,isResolvedFromDuration:!1,...e};if(!BC(e,Mz)&&BC(e,wz))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=Fz(e);t={...t,...n,mass:Lt.mass},t.isResolvedFromDuration=!0}return t}function Tb(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:_}=Pz({...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)),T=Math.abs(v)<5;r||(r=T?Lt.restSpeed.granular:Lt.restSpeed.default),u||(u=T?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):Rb(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 FC({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 T=H=>-C*Math.exp(-H/r),b=H=>R+T(H),L=H=>{const U=T(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=Tb({keyframes:[g.value,S(g.value)],velocity:Rb(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 Hz=id(.42,0,1,1),Uz=id(0,0,.58,1),Db=id(.42,0,.58,1),kz=e=>Array.isArray(e)&&typeof e[0]!="number",Gz={linear:Qt,easeIn:Hz,easeInOut:Db,easeOut:Uz,circIn:d_,circInOut:ob,circOut:sb,backIn:c_,backInOut:ub,backOut:ib,anticipate:ab},OC=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 Gz[e];return e};function Vz(e,t,n){const r=[],u=n||vb,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]||Qt:t;c=ud(f,c)}r.push(c)}return r}function jz(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=Vz(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 zz(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const u=xu(0,t,r);e.push(Dt(n,1,u))}}function Kz(e){const t=[0];return zz(t,e.length-1),t}function $z(e,t){return e.map(n=>n*t)}function Yz(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=kz(r)?r.map(OC):OC(r),o={done:!1,value:t[0]},l=$z(n&&n.length===t.length?n:Kz(t),e),c=jz(l,t,{ease:Array.isArray(u)?u:Yz(t,u)});return{calculatedDuration:e,next:f=>(o.value=c(f),o.done=f>=e,o)}}const Zz=e=>{const t=({timestamp:n})=>e(n);return{start:()=>yt.update(t,!0),stop:()=>Bu(t),now:()=>hn.isProcessing?hn.timestamp:Jr.now()}},Wz={decay:FC,inertia:FC,tween:Vf,keyframes:Vf,spring:Tb},qz=e=>e/100;let E_=class extends yb{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:Wz[n]||Vf;let f,h;c!==Vf&&typeof t[0]!="number"&&(f=ud(qz,vb(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),T=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=T?{done:!1,value:f[0]}:L.next(b);c&&(x.value=c(x.value));let{done:B}=x;!T&&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=Zz,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 Jz=Mh(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),jf=10,eK=2e4;function tK(e){return Co(e.type)||e.type==="spring"||!i_(e.ease)}function nK(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<eK;)r=n.sample(o),u.push(r.value),o+=jf;return{times:void 0,keyframes:u,duration:o-jf,ease:"linear"}}const bb={anticipate:ab,backInOut:ub,circInOut:ob};function rK(e){return e in bb}let LC=class extends yb{constructor(t){super(t);const{name:n,motionValue:r,element:u,keyframes:o}=this.options;this.resolver=new Ib(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()&&rK(o)&&(o=bb[o]),tK(this.options)){const{onComplete:E,onUpdate:g,motionValue:_,element:S,...C}=this.options,v=nK(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 Qt;const{animation:r}=n;kf(r,t)}return Qt}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 Jz()&&r&&Qz.has(r)&&!f&&!h&&!u&&o!=="mirror"&&l!==0&&c!=="inertia"}};const iK={type:"spring",stiffness:500,damping:25,restSpeed:10},uK=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),aK={type:"keyframes",duration:.8},sK={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},oK=(e,{keyframes:t})=>t.length>2?aK:za.has(e)?e.startsWith("scale")?uK(t[1]):iK:sK;function lK({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};lK(c)||(m={...m,...oK(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 $1([])}return!o&&LC.supports(m)?new LC(m):new E_(m)};function cK({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function xb(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&&cK(m,E))continue;const S={delay:n,...rd(l||{},E)};let C=!1;if(window.MotionHandoffAnimation){const R=eb(e);if(R){const T=window.MotionHandoffAnimation(R,E,yt);T!==null&&(S.startTime=T,C=!0)}}ag(e,E),g.start(g_(E,g,_,e.shouldReduceMotion&&X1.has(E)?{type:!1}:S,e,C));const v=g.animation;v&&h.push(v)}return c&&Promise.all(h).then(()=>{yt.update(()=>{c&&V6(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(xb(e,u,n)):()=>Promise.resolve(),c=e.variantChildren&&e.variantChildren.size?(h=0)=>{const{delayChildren:m=0,staggerChildren:E,staggerDirection:g}=o;return dK(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 dK(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(fK).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 fK(e,t){return e.sortNodePosition(t)}function hK(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(xb(e,u,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}const AK=K4.length;function Bb(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?Bb(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<AK;n++){const r=K4[n],u=e.props[r];(Cc(u)||u===!1)&&(t[r]=u)}return t}const mK=[...z4].reverse(),pK=z4.length;function EK(e){return t=>Promise.all(t.map(({animation:n,options:r})=>hK(e,n,r)))}function gK(e){let t=EK(e),n=wC(),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=Bb(e.parent)||{},E=[],g=new Set;let _={},S=1/0;for(let v=0;v<pK;v++){const R=mK[v],T=n[R],b=h[R]!==void 0?h[R]:m[R],L=Cc(b),x=R===f?T.isActive:null;x===!1&&(S=v);let B=b===m[R]&&b!==h[R]&&L;if(B&&r&&e.manuallyAnimateOnMount&&(B=!1),T.protectedKeys={..._},!T.isActive&&x===null||!b&&!T.prevProp||Hh(b)||typeof b=="boolean")continue;const O=_K(T.prevProp,b);let H=O||R===f&&T.isActive&&!B&&L||v>S&&L,U=!1;const G=Array.isArray(b)?b:[b];let ce=G.reduce(u(R),{});x===!1&&(ce={});const{prevResolvedValues:ae={}}=T,de={...ae,...ce},Z=ee=>{H=!0,g.has(ee)&&(U=!0,g.delete(ee)),T.needsAnimating[ee]=!0;const X=e.getValue(ee);X&&(X.liveStyle=!1)};for(const ee in de){const X=ce[ee],Ae=ae[ee];if(_.hasOwnProperty(ee))continue;let P=!1;ig(X)&&ig(Ae)?P=!K1(X,Ae):P=X!==Ae,P?X!=null?Z(ee):g.add(ee):X!==void 0&&g.has(ee)?Z(ee):T.protectedKeys[ee]=!0}T.prevProp=b,T.prevResolvedValues=ce,T.isActive&&(_={..._,...ce}),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 T=e.getBaseTarget(R),b=e.getValue(R);b&&(b.liveStyle=!0),v[R]=T??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=wC(),r=!0}}}function _K(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!K1(t,e):!1}function pa(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function wC(){return{animate:pa(!0),whileInView:pa(),whileHover:pa(),whileTap:pa(),whileDrag:pa(),whileFocus:pa(),exit:pa()}}let Gu=class{constructor(t){this.isMounted=!1,this.node=t}update(){}},SK=class extends Gu{constructor(t){super(t),t.animationState||(t.animationState=gK(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)}},NK=0,IK=class extends Gu{constructor(){super(...arguments),this.id=NK++}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 yK={animation:{Feature:SK},exit:{Feature:IK}};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 CK=e=>t=>a_(t)&&e(t,ad(t));function Jl(e,t,n,r){return bc(e,t,CK(n),r)}const MC=(e,t)=>Math.abs(e-t);function vK(e,t){const n=MC(e.x,t.x),r=MC(e.y,t.y);return Math.sqrt(n**2+r**2)}class Fb{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,_=vK(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=Xp(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:Xp(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=Xp(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 Xp(e,t){return t?{point:t(e.point)}:e}function PC(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Jp({point:e},t){return{point:e,delta:PC(e,Ob(t)),offset:PC(e,RK(t)),velocity:TK(t,.1)}}function RK(e){return e[0]}function Ob(e){return e[e.length-1]}function TK(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const u=Ob(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 Lb=1e-4,DK=1-Lb,bK=1+Lb,wb=.01,xK=0-wb,BK=0+wb;function tr(e){return e.max-e.min}function FK(e,t,n){return Math.abs(e-t)<=n}function HC(e,t,n,r=.5){e.origin=r,e.originPoint=Dt(t.min,t.max,e.origin),e.scale=tr(n)/tr(t),e.translate=Dt(n.min,n.max,e.origin)-e.originPoint,(e.scale>=DK&&e.scale<=bK||isNaN(e.scale))&&(e.scale=1),(e.translate>=xK&&e.translate<=BK||isNaN(e.translate))&&(e.translate=0)}function ec(e,t,n,r){HC(e.x,t.x,n.x,r?r.originX:void 0),HC(e.y,t.y,n.y,r?r.originY:void 0)}function UC(e,t,n){e.min=n.min+t.min,e.max=e.min+tr(t)}function OK(e,t,n){UC(e.x,t.x,n.x),UC(e.y,t.y,n.y)}function kC(e,t,n){e.min=t.min-n.min,e.max=e.min+tr(t)}function tc(e,t,n){kC(e.x,t.x,n.x),kC(e.y,t.y,n.y)}function LK(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?Dt(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?Dt(n,e,r.max):Math.min(e,n)),e}function GC(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 wK(e,{top:t,left:n,bottom:r,right:u}){return{x:GC(e.x,n,u),y:GC(e.y,t,r)}}function VC(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 MK(e,t){return{x:VC(e.x,t.x),y:VC(e.y,t.y)}}function PK(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 HK(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 UK(e=Ag){return e===!1?e=0:e===!0&&(e=Ag),{x:jC(e,"left","right"),y:jC(e,"top","bottom")}}function jC(e,t,n){return{min:zC(e,t),max:zC(e,n)}}function zC(e,t){return typeof e=="number"?e:e[t]||0}const KC=()=>({translate:0,scale:1,origin:0,originPoint:0}),Vs=()=>({x:KC(),y:KC()}),$C=()=>({min:0,max:0}),Ut=()=>({x:$C(),y:$C()});function pr(e){return[e("x"),e("y")]}function Mb({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function kK({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function GK(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 ga(e){return mg(e)||Pb(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function Pb(e){return YC(e.x)||YC(e.y)}function YC(e){return e&&e!=="0%"}function zf(e,t,n){const r=e-n,u=t*r;return n+u}function ZC(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=ZC(e.min,t,n,r,u),e.max=ZC(e.max,t,n,r,u)}function Hb(e,{x:t,y:n}){pg(e.x,t.translate,t.scale,t.originPoint),pg(e.y,n.translate,n.scale,n.originPoint)}const WC=.999999999999,qC=1.0000000000001;function VK(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,Hb(e,l)),r&&ga(o.latestValues)&&zs(e,o.latestValues))}t.x<qC&&t.x>WC&&(t.x=1),t.y<qC&&t.y>WC&&(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=Dt(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 Ub(e,t){return Mb(GK(e.getBoundingClientRect(),t))}function jK(e,t,n){const r=Ub(e,n),{scroll:u}=t;return u&&(js(r.x,u.offset.x),js(r.y,u.offset.y)),r}const kb=({current:e})=>e?e.ownerDocument.defaultView:null,zK=new WeakMap;class KK{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=P6(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(Xr.test(R)){const{projection:T}=this.visualElement;if(T&&T.layout){const b=T.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=$K(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 Fb(t,{onSessionStart:u,onStart:o,onMove:l,onSessionEnd:c,resumeAnimation:f},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:h,contextWindow:kb(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=LK(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=wK(u.layoutBox,n):this.constraints=!1,this.elastic=UK(r),o!==this.constraints&&u&&this.constraints&&!this.hasMutatedConstraints&&pr(l=>{this.constraints!==!1&&this.getAxisMotionValue(l)&&(this.constraints[l]=HK(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=jK(r,u.root,this.visualElement.getTransformPagePoint());let l=MK(u.layout.layoutBox,o);if(n){const c=n(kK(l));this.hasMutatedConstraints=!!c,c&&(l=Mb(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]-Dt(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]=PK({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(Dt(f,h,u[l]))})}addListeners(){if(!this.visualElement.current)return;zK.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 $K(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class YK extends Gu{constructor(t){super(t),this.removeGroupControls=Qt,this.removeListeners=Qt,this.controls=new KK(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Qt}unmount(){this.removeGroupControls(),this.removeListeners()}}const XC=e=>(t,n)=>{e&&yt.postRender(()=>e(t,n))};class ZK extends Gu{constructor(){super(...arguments),this.removePointerDownListener=Qt}onPointerDown(t){this.session=new Fb(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:kb(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 JC(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=JC(e,t.target.x),r=JC(e,t.target.y);return`${n}% ${r}%`}},WK={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=Dt(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 qK extends y.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:u}=this.props,{projection:o}=t;_6(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 Gb(e){const[t,n]=L7(),r=y.useContext(v1);return N.jsx(qK,{...e,layoutGroup:r,switchLayoutGroup:y.useContext(F1),isPresent:t,safeToRemove:n})}const QK={borderRadius:{...Pl,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Pl,borderTopRightRadius:Pl,borderBottomLeftRadius:Pl,borderBottomRightRadius:Pl,boxShadow:WK};function XK(e,t,n){const r=yn(e)?e:Tc(e);return r.start(g_("",r,t,n)),r.animation}function JK(e){return e instanceof SVGElement&&e.tagName!=="svg"}const e$=(e,t)=>e.depth-t.depth;class t${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(e$),this.isDirty=!1,this.children.forEach(t)}}function n$(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 Vb=["TopLeft","TopRight","BottomLeft","BottomRight"],r$=Vb.length,ev=e=>typeof e=="string"?parseFloat(e):e,tv=e=>typeof e=="number"||Ue.test(e);function i$(e,t,n,r,u,o){u?(e.opacity=Dt(0,n.opacity!==void 0?n.opacity:1,u$(r)),e.opacityExit=Dt(t.opacity!==void 0?t.opacity:1,0,a$(r))):o&&(e.opacity=Dt(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let l=0;l<r$;l++){const c=`border${Vb[l]}Radius`;let f=nv(t,c),h=nv(n,c);if(f===void 0&&h===void 0)continue;f||(f=0),h||(h=0),f===0||h===0||tv(f)===tv(h)?(e[c]=Math.max(Dt(ev(f),ev(h),r),0),(Xr.test(h)||Xr.test(f))&&(e[c]+="%")):e[c]=h}(t.rotate||n.rotate)&&(e.rotate=Dt(t.rotate||0,n.rotate||0,r))}function nv(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const u$=jb(0,.5,sb),a$=jb(.5,.95,Qt);function jb(e,t,n){return r=>r<e?0:r>t?1:n(xu(e,t,r))}function rv(e,t){e.min=t.min,e.max=t.max}function Ar(e,t){rv(e.x,t.x),rv(e.y,t.y)}function iv(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function uv(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 s$(e,t=0,n=1,r=.5,u,o=e,l=e){if(Xr.test(t)&&(t=parseFloat(t),t=Dt(l.min,l.max,t/100)-l.min),typeof t!="number")return;let c=Dt(o.min,o.max,r);e===o&&(c-=t),e.min=uv(e.min,t,n,c,u),e.max=uv(e.max,t,n,c,u)}function av(e,t,[n,r,u],o,l){s$(e,t[n],t[r],t[u],t.scale,o,l)}const o$=["x","scaleX","originX"],l$=["y","scaleY","originY"];function sv(e,t,n,r){av(e.x,t,o$,n?n.x:void 0,r?r.x:void 0),av(e.y,t,l$,n?n.y:void 0,r?r.y:void 0)}function ov(e){return e.translate===0&&e.scale===1}function zb(e){return ov(e.x)&&ov(e.y)}function lv(e,t){return e.min===t.min&&e.max===t.max}function c$(e,t){return lv(e.x,t.x)&&lv(e.y,t.y)}function cv(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function Kb(e,t){return cv(e.x,t.x)&&cv(e.y,t.y)}function dv(e){return tr(e.x)/tr(e.y)}function fv(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class d${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 f$(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 _a={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},$l=typeof window<"u"&&window.MotionDebug!==void 0,tE=["","X","Y","Z"],h$={visibility:"hidden"},hv=1e3;let A$=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 $b(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=eb(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&&$b(r)}function Yb({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:u}){return class{constructor(l={},c=t==null?void 0:t()){this.id=A$++,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&&(_a.totalNodes=_a.resolvedTargetDeltas=_a.recalculatedProjection=0),this.nodes.forEach(E$),this.nodes.forEach(I$),this.nodes.forEach(y$),this.nodes.forEach(g$),$l&&window.MotionDebug.record(_a)},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 t$)}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=JK(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=n$(g,250),lf.hasAnimatedSinceResize&&(lf.hasAnimatedSinceResize=!1,this.nodes.forEach(mv))})}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(),T=!this.targetLayout||!Kb(this.targetLayout,S)||_,b=!g&&_;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||b||g&&(T||!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||mv(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(C$),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&&$b(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(Av);return}this.isUpdating||this.nodes.forEach(S$),this.isUpdating=!1,this.nodes.forEach(N$),this.nodes.forEach(m$),this.nodes.forEach(p$),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(_$),this.sharedNodes.forEach(v$)}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&&!zb(this.projectionDelta),f=this.getTransformTemplate(),h=f?f(this.latestValues,""):void 0,m=h!==this.prevTransformTemplateValue;l&&(c||ga(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)),b$(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(x$))){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}),ga(m.latestValues)&&zs(f,m.latestValues)}return ga(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||!ga(h.latestValues))continue;mg(h.latestValues)&&h.updateSnapshot();const m=Ut(),E=h.measurePageBox();Ar(m,E),sv(c,h.latestValues,h.snapshot?h.snapshot.layoutBox:void 0,m)}return ga(this.latestValues)&&sv(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(),OK(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Ar(this.target,this.layout.layoutBox),Hb(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&&_a.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||mg(this.parent.latestValues)||Pb(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;VK(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():(iv(this.prevProjectionDelta.x,this.projectionDelta.x),iv(this.prevProjectionDelta.y,this.projectionDelta.y)),ec(this.projectionDelta,this.layoutCorrected,S,this.latestValues),(this.treeScale.x!==g||this.treeScale.y!==_||!fv(this.projectionDelta.x,this.prevProjectionDelta.x)||!fv(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",S)),$l&&_a.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,T=!!(C&&!R&&this.options.crossfade===!0&&!this.path.some(T$));this.animationProgress=0;let b;this.mixTargetDelta=L=>{const x=L/1e3;pv(E.x,l.x,x),pv(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),R$(this.relativeTarget,this.relativeTargetOrigin,g,x),b&&c$(this.relativeTarget,b)&&(this.isProjectionDirty=!1),b||(b=Ut()),Ar(b,this.relativeTarget)),C&&(this.animationValues=m,i$(m,h,this.latestValues,x,T,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,hv,{...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(hv),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&&Zb(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 d$),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 h$;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&&!ga(this.latestValues)&&(C.transform=m?m({},""):"none",this.hasProjected=!1),C}const g=E.animationValues||E.latestValues;this.applyTransformsToTarget(),h.transform=f$(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],T=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]]=T}else h[C]=T}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(Av),this.root.sharedNodes.clear()}}}function m$(e){e.updateLayout()}function p$(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+_}):Zb(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=!zb(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),Kb(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 E$(e){$l&&_a.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 g$(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function _$(e){e.clearSnapshot()}function Av(e){e.clearMeasurements()}function S$(e){e.isLayoutDirty=!1}function N$(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function mv(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function I$(e){e.resolveTargetDelta()}function y$(e){e.calcProjection()}function C$(e){e.resetSkewAndRotation()}function v$(e){e.removeLeadSnapshot()}function pv(e,t,n){e.translate=Dt(t.translate,0,n),e.scale=Dt(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Ev(e,t,n,r){e.min=Dt(t.min,n.min,r),e.max=Dt(t.max,n.max,r)}function R$(e,t,n,r){Ev(e.x,t.x,n.x,r),Ev(e.y,t.y,n.y,r)}function T$(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const D$={duration:.45,ease:[.4,0,.1,1]},gv=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),_v=gv("applewebkit/")&&!gv("chrome/")?Math.round:Qt;function Sv(e){e.min=_v(e.min),e.max=_v(e.max)}function b$(e){Sv(e.x),Sv(e.y)}function Zb(e,t,n){return e==="position"||e==="preserve-aspect"&&!FK(dv(t),dv(n),.2)}function x$(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const B$=Yb({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},Wb=Yb({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!rE.current){const e=new B$({});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"}),F$={pan:{Feature:ZK},drag:{Feature:YK,ProjectionNode:Wb,MeasureLayout:Gb}};function Nv(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 O$=class extends Gu{mount(){const{current:t}=this.node;t&&(this.unmount=W1(t,n=>(Nv(this.node,n,"Start"),r=>Nv(this.node,r,"End"))))}unmount(){}},L$=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 Iv(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 w$=class extends Gu{mount(){const{current:t}=this.node;t&&(this.unmount=Q1(t,n=>(Iv(this.node,n,"Start"),(r,{success:u})=>Iv(this.node,r,u?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}};const Eg=new WeakMap,iE=new WeakMap,M$=e=>{const t=Eg.get(e.target);t&&t(e)},P$=e=>{e.forEach(M$)};function H$({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(P$,{root:e,...t})),r[u]}function U$(e,t,n){const r=H$(t);return Eg.set(e,n),r.observe(e),()=>{Eg.delete(e),r.unobserve(e)}}const k$={some:0,all:1};let G$=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:k$[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 U$(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(V$(t,n))&&this.startObserver()}unmount(){}};function V$({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const j$={inView:{Feature:G$},tap:{Feature:w$},focus:{Feature:L$},hover:{Feature:O$}},z$={layout:{ProjectionNode:Wb,MeasureLayout:Gb}},gg={current:null},qb={current:!1};function K$(){if(qb.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 $$=[...Nb,Nn,Fu],Y$=e=>$$.find(Sb(e)),yv=new WeakMap;function Z$(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,Tc(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,Tc(l!==void 0?l:u,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const Cv=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let W$=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=x1(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,yv.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)),qb.current||K$(),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(){yv.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=za.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<Cv.length;r++){const u=Cv[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=Z$(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=Tc(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"&&(gb(u)||lb(u))?u=parseFloat(u):!Y$(u)&&Fu.test(n)&&(u=mb(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 W${constructor(){super(...arguments),this.KeyframeResolver=Ib}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 q$(e){return window.getComputedStyle(e)}let Q$=class extends Qb{constructor(){super(...arguments),this.type="html",this.renderInstance=U1}readValueFromInstance(t,n){if(za.has(n)){const r=A_(n);return r&&r.default||0}else{const r=q$(t),u=(M1(n)?r.getPropertyValue(n):r[n])||0;return typeof u=="string"?u.trim():u}}measureInstanceViewportBox(t,{transformPagePoint:n}){return Ub(t,n)}build(t,n,r){X4(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(za.has(n)){const r=A_(n);return r&&r.default||0}return n=k1.has(n)?n:$4(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return j1(t,n,r)}build(t,n,r){J4(t,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,n,r,u){G1(t,n,r,u)}mount(t){this.isSVGTag=t_(t.tagName),super.mount(t)}};const J$=(e,t)=>Z4(e)?new X$(t):new Q$(t,{allowProjection:e!==y.Fragment}),eY=D6({...yK,...j$,...F$,...z$},J$),Xb=j7(eY),__="relative scroll-mb-8 scroll-mt-[30vh] scroll-p-8",tY="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",nY=({className:e,...t})=>N.jsx("h1",{className:Re("mt-5 text-2xl font-bold",e),...t}),rY=({className:e,...t})=>N.jsx("h2",{className:Re("mt-5 text-2xl font-bold",__,e),...t}),iY=({className:e,...t})=>N.jsx("h3",{className:Re("mt-3 text-xl font-bold",__,e),...t}),uY=({className:e,...t})=>N.jsx("h4",{className:Re("mt-3 text-lg font-bold",__,e),...t}),aY=e=>String(e).normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(/\s+/g,"-").toLowerCase(),sY=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"})},oY=(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"?aY(t):void 0,l=c=>{const{id:f}=c.currentTarget;if(oY(c.currentTarget,c)&&typeof f=="string"){const E=`${window.location.href.split("#")[0]}#${f}`;navigator.clipboard.writeText(E),sY(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&&tY,n),...u,children:t})},lY=({isClickable:e,...t})=>N.jsx(nY,{...t}),cY=({isClickable:e=!1,...t})=>N.jsx(S_,{H:rY,isClickable:e,...t}),N_=({isClickable:e=!1,...t})=>N.jsx(S_,{H:iY,isClickable:e,...t}),dY=({isClickable:e=!1,...t})=>N.jsx(S_,{H:uY,isClickable:e,...t}),fY=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"}}),hY=Xb.create(ai),Jb=({children:e,isOpen:t,container:n,disableScroll:r=!1,onClose:u,hasCloseButton:o=!1,title:l,size:c="md",className:f,...h})=>{const m=k9(n);if(K9({key:"modal",disableScroll:t&&r}),!m)return N.jsx(N.Fragment,{});const E=typeof l=="string";return Va.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(hY,{onClick:g=>g.stopPropagation(),initial:{scale:t?.5:1},animate:{scale:t?1:.5},transition:{duration:.3},className:fY({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:ja,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:Ee({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:Ee({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:Ee({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:Ee({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:Ee({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:Ee({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:Ee({en:"Download","en-GB":"Download",fr:"Télécharger",es:"Descargar",de:"Herunterladen",ja:"ダウンロード",ko:"다운로드",zh:"下载",it:"Scarica",pt:"Baixar",hi:"डाउनलोड",ar:"تنزيل",ru:"Скачать"}),label:Ee({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:"Нажмите, чтобы скачать"})},confirmation:{title:Ee({en:"Confirmation","en-GB":"Confirmation",fr:"Confirmation",es:"Confirmation",de:"Confirmation",ja:"確認",ko:"확인",zh:"确认",it:"Conferma",pt:"Confirmação",hi:"पुष्टि करें",ar:"تأكيد",ru:"Подтверждение"}),message:Ee({en:"This will overwrite the existing dictionary. Are you sure you want to continue?","en-GB":"This will overwrite the existing dictionary. Are you sure you want to continue?",fr:"Cela remplacera le dictionnaire existant. Êtes-vous sûr de vouloir continuer?",es:"Esto sobrescribirá el diccionario existente. ¿Estás seguro de que quieres continuar?",de:"Dies wird das existierende Wörterbuch überschreiben. Sind Sie sicher, dass Sie fortfahren möchten?",ja:"既存の辞書を上書きします。続行しますか?",ko:"이는 기존 사전을 덮어 쓸 것입니다. 계속하시겠습니까?",zh:"这将覆盖现有的字典。你确定要继续吗?",it:"Questo sovrascriverà il dizionario esistente. Sei sicuro di voler continuare?",pt:"Isso sobrescreverá o dicionário existente. Você tem certeza de que deseja continuar?",hi:"यह मौजूदा शब्दकोश को ओवरराइट करने जारी है। आप क्या आप जारी रखना चाहते हैं?",ar:"سيتم الكتابة على القاموس الحالي. هل أنت متأكد من أنك تريد المتابعة؟",ru:"Это перезапишет существующий словарь. Вы уверены, что хотите продолжить?"}),differentFormatMessage:Ee({en:"The dictionary is in a different format, it will be transformed into a JSON file. Are you sure you want to continue? This will overwrite the existing dictionary.","en-GB":"The dictionary is in a different format, it will be transformed into a JSON file. Are you sure you want to continue? This will overwrite the existing dictionary.",fr:"Le dictionnaire est dans un format différent, il sera transformé en un fichier JSON. Êtes-vous sûr de vouloir continuer ? Cela remplacera le dictionnaire existant.",es:"El diccionario está en un formato diferente, se transformará en un archivo JSON. ¿Estás seguro de que quieres continuar? Esto sobrescribirá el diccionario existente.",de:"Das Wörterbuch ist in einem anderen Format, es wird in eine JSON-Datei umgewandelt. Sind Sie sicher, dass Sie fortfahren möchten? Dies wird das existierende Wörterbuch überschreiben.",ja:"辞書は異なる形式です。JSONファイルに変換されます。続行しますか?既存の辞書を上書きします。",ko:"사전은 다른 형식입니다. JSON 파일로 변환됩니다. 계속하시겠습니까? 이는 기존 사전을 덮어 쓸 것입니다.",zh:"字典是在不同格式中,它将转换为JSON文件。你确定要继续吗?这将覆盖现有的字典。",it:"Il dizionario è in un formato diverso, verrà trasformato in un file JSON. Sei sicuro di voler continuare? Questo sovrascriverà il dizionario esistente.",pt:"O dicionário está em um formato diferente, ele será transformado em um arquivo JSON. Você tem certeza de que deseja continuar? Isso sobrescreverá o dicionário existente."}),confirmButton:{text:Ee({en:"Confirm","en-GB":"Confirm",fr:"Confirmer",es:"Confirmar",de:"Bestätigen",ja:"確認",ko:"확인",zh:"确认",it:"Conferma",pt:"Confirmar",hi:"पुष्टि करें",ar:"تأكيد",ru:"Подтвердить"}),label:Ee({en:"Click to confirm","en-GB":"Click to confirm",fr:"Cliquez pour confirmer",es:"Haga clic para confirmar",de:"Klicken Sie, um zu bestätigen",ja:"確認するにはクリックしてください",ko:"확인을 클릭하세요",zh:"单击确认",it:"Fai clic per confermare",pt:"Clique para confirmar",hi:"पुष्टि करने के लिए क्लिक करें",ar:"انقر لتأكيد",ru:"Нажмите, чтобы подтвердить"})},cancelButton:{text:Ee({en:"Cancel","en-GB":"Cancel",fr:"Annuler",es:"Cancelar",de:"Abbrechen",ja:"キャンセル",ko:"취소",zh:"取消",it:"Annulla",pt:"Cancelar",hi:"रद्द करें",ar:"إلغاء",ru:"Отмена"}),label:Ee({en:"Click to cancel","en-GB":"Click to cancel",fr:"Cliquez pour annuler",es:"Haga clic para cancelar",de:"Klicken Sie, um abzubrechen",ja:"キャンセルするにはクリックしてください",ko:"취소를 클릭하세요",zh:"单击取消",it:"Fai clic per annullare",pt:"Clique para cancelar",hi:"रद्द करने के लिए क्लिक करें",ar:"انقر لإلغاء",ru:"Нажмите, чтобы отменить"})}}}},ex=({dictionary:e,mode:t,className:n,...r})=>{var G;const[u,o]=y.useState(!1),{setLocaleDictionary:l}=qg(),{writeDictionary:c,isLoading:f}=DU(),{pushDictionaries:h,isLoading:m}=yU(),E=f||m,g=t.includes("local")&&((G=e.filePath)==null?void 0:G.endsWith(".json")),{editedContent:_,restoreEditedContent:S}=Fn(),{resetButton:C,saveButton:v,publishButton:R,downloadButton:T,confirmation:b}=sn(AY),{isAuthenticated:L}=$c(),x=_==null?void 0:_[e.key],B=x&&JSON.stringify(x)!==JSON.stringify(e),O=typeof(e==null?void 0:e._id)>"u",H=async()=>{if(!(_!=null&&_[e.key]))return;const ce={...e,..._==null?void 0:_[e.key]};await c(ce).then(()=>{l(_==null?void 0:_[e.key]),S(e.key)})},U=async()=>{if(!(_!=null&&_[e.key]))return;const ce={...e,..._==null?void 0:_[e.key]};await h([ce]).then(ae=>{ae&&(l(_==null?void 0:_[e.key]),S(e.key))})};return N.jsxs(N.Fragment,{children:[N.jsx(Jb,{isOpen:u,title:b.title.value,size:"md",children:N.jsxs("form",{className:"size-full px-3",children:[g?N.jsx("p",{className:"text-neutral py-4 text-sm",children:b.message}):N.jsx("p",{className:"text-neutral py-4 text-sm",children:b.differentFormatMessage}),N.jsxs("div",{className:"mt-12 flex justify-end gap-2 max-md:flex-col",children:[N.jsx(nt.Button,{label:b.cancelButton.label.value,disabled:!B||E,color:"text",className:"max-md:w-full",variant:"outline",onClick:()=>o(!1),children:b.cancelButton.text}),N.jsx(nt.Button,{label:b.confirmButton.label.value,disabled:!B||E,Icon:c3,color:"text",className:"max-md:w-full",isLoading:m,onClick:H,children:b.confirmButton.text})]})]})}),N.jsxs("form",{className:Re("flex justify-end gap-2 max-md:flex-col",n),...r,children:[B&&N.jsx(nt.Button,{label:C.label.value,disabled:!B,Icon:TP,variant:"outline",color:"text",className:"max-md:w-full",onClick:()=>S(e.key),children:C.text}),t.includes("local")&&N.jsx(nt.Button,{label:T.label.value,disabled:!B||E,Icon:fP,color:"text",variant:L?"outline":"default",className:"max-md:w-full",isLoading:f,onClick:()=>o(!0),children:T.text}),t.includes("remote")&&L&&O&&N.jsx(nt.Button,{label:R.label.value,disabled:E,Icon:Q8,color:"text",className:"max-md:w-full",isLoading:m,onClick:U,children:R.text}),t.includes("remote")&&L&&!O&&B&&N.jsx(nt.Button,{label:v.label.value,disabled:!B||E,Icon:c3,color:"text",className:"max-md:w-full",isLoading:m,onClick:U,children:v.text})]})]})},tx=({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:H9,iconClassName:Re("transform transition-transform duration-500 ease-in-out",o?"rotate-0":"-rotate-180"),...u,children:t}),N.jsx(M9,{tabIndex:c!==!1?void 0:-1,isHidden:c,children:e})]})},nx=({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(tx,{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})}),rx=({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(PT,{"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(rx,{...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(nx,{level:t.length,title:`${l}`,description:"",isSelected:Gc(f,u),onClick:h=>{h.stopPropagation(),r(f)},children:N.jsx(Vu,{...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(Vu,{...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(Vu,{...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(Vu,{...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(nx,{level:t.length,title:o,description:"",isSelected:Gc(c,r),onClick:f=>{f.stopPropagation(),u(c)},children:N.jsx(Vu,{...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(Vu,{...e,keyPath:o,section:l})},IY=e=>{const{keyPath:t,section:n}=e,r=[...t,{type:$.Insertion}],u=n[$.Insertion];return N.jsxs("div",{className:"ml-2 grid grid-cols-[auto,1fr] gap-2",children:[N.jsx(Vu,{...e,keyPath:r,section:u}),";"]})},I_=["filePath","id","nodeType"],Vu=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(IY,{...e,section:t}):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(rx,{...e,section:t})},yY=({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(Vu,{...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(ex,{dictionary:e,mode:t,className:"mb-4 flex-col"})]})};function ki(e){return Array.isArray?Array.isArray(e):ax(e)==="[object Array]"}function CY(e){if(typeof e=="string")return e;let t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function vY(e){return e==null?"":CY(e)}function Wr(e){return typeof e=="string"}function ix(e){return typeof e=="number"}function RY(e){return e===!0||e===!1||TY(e)&&ax(e)=="[object Boolean]"}function ux(e){return typeof e=="object"}function TY(e){return ux(e)&&e!==null}function Qn(e){return e!=null}function uE(e){return!e.trim().length}function ax(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}const DY="Incorrect 'index' type",bY=e=>`Invalid value for key ${e}`,xY=e=>`Pattern length exceeds max of ${e}.`,BY=e=>`Missing ${e} property in key`,FY=e=>`Property 'weight' in key '${e}' must be a positive integer`,vv=Object.prototype.hasOwnProperty;class OY{constructor(t){this._keys=[],this._keyMap={};let n=0;t.forEach(r=>{let u=sx(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 sx(e){let t=null,n=null,r=null,u=1,o=null;if(Wr(e)||ki(e))r=e,t=Rv(e),n=_g(e);else{if(!vv.call(e,"name"))throw new Error(BY("name"));const l=e.name;if(r=l,vv.call(e,"weight")&&(u=e.weight,u<=0))throw new Error(FY(l));t=Rv(l),n=_g(l),o=e.getFn}return{path:t,id:n,weight:u,src:r,getFn:o}}function Rv(e){return ki(e)?e:e.split(".")}function _g(e){return ki(e)?e.join("."):e}function LY(e,t){let n=[],r=!1;const u=(o,l,c)=>{if(Qn(o))if(!l[c])n.push(o);else{let f=l[c];const h=o[f];if(!Qn(h))return;if(c===l.length-1&&(Wr(h)||ix(h)||RY(h)))n.push(vY(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 wY={includeMatches:!1,findAllMatches:!1,minMatchCharLength:1},MY={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},PY={location:0,threshold:.6,distance:100},HY={useExtendedSearch:!1,getFn:LY,ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1};var ze={...MY,...wY,...PY,...HY};const UY=/[^ ]+/g;function kY(e=1,t=3){const n=new Map,r=Math.pow(10,t);return{get(u){const o=u.match(UY).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=kY(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(!Qn(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(Qn(l)){if(ki(l)){let c=[];const f=[{nestedArrIndex:-1,value:l}];for(;f.length;){const{nestedArrIndex:h,value:m}=f.pop();if(Qn(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 ox(e,t,{getFn:n=ze.getFn,fieldNormWeight:r=ze.fieldNormWeight}={}){const u=new y_({getFn:n,fieldNormWeight:r});return u.setKeys(e.map(sx)),u.setSources(t),u.create(),u}function GY(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 VY(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 Na=32;function jY(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>Na)throw new Error(xY(Na));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 T=[],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),ce=l?E:Math.min(g+U,E)+m,ae=Array(ce+2);ae[ce+1]=(1<<O)-1;for(let Z=ce;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]|=(T[Z+1]|T[Z])<<1|1|T[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;T=ae}const B={isMatch:S>=0,score:Math.max(.001,b)};if(C){const O=VY(v,c);O.length?f&&(B.indices=O):B.isMatch=!1}return B}function zY(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 lx{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:zY(_),startIndex:S})},g=this.pattern.length;if(g>Na){let _=0;const S=g%Na,C=g-S;for(;_<C;)E(this.pattern.substr(_,Na),_),_+=Na;if(S){const v=g-Na;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:T,score:b,indices:L}=jY(t,C,v,{location:o+R,distance:l,threshold:c,findAllMatches:f,minMatchCharLength:h,includeMatches:u,ignoreLocation:m});T&&(_=!0),g+=b,T&&L&&(E=[...E,...L])});let S={isMatch:_,score:_?g/this.chunks.length:1};return _&&u&&(S.indices=E),S}}class ju{constructor(t){this.pattern=t}static isMultiMatch(t){return Tv(t,this.multiRegex)}static isSingleMatch(t){return Tv(t,this.singleRegex)}search(){}}function Tv(e,t){const n=e.match(t);return n?n[1]:null}class KY extends ju{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 $Y extends ju{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 YY extends ju{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 ZY extends ju{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 WY extends ju{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 qY extends ju{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 cx extends ju{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 lx(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 dx extends ju{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=[KY,dx,YY,ZY,qY,WY,$Y,cx],Dv=Sg.length,QY=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/,XY="|";function JY(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 eZ=new Set([cx.type,dx.type]);class tZ{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=JY(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 T=S.constructor.type;eZ.has(T)?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 nZ(...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 lx(e,t)}const $f={AND:"$and",OR:"$or"},yg={PATH:"$path",PATTERN:"$val"},Cg=e=>!!(e[$f.AND]||e[$f.OR]),rZ=e=>!!e[yg.PATH],iZ=e=>!ki(e)&&ux(e)&&!Cg(e),bv=e=>({[$f.AND]:Object.keys(e).map(t=>({[t]:e[t]}))});function fx(e,t,{auto:n=!0}={}){const r=u=>{let o=Object.keys(u);const l=rZ(u);if(!l&&o.length>1&&!Cg(u))return r(bv(u));if(iZ(u)){const f=l?u[yg.PATH]:o[0],h=l?u[yg.PATTERN]:u[f];if(!Wr(h))throw new Error(bY(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=bv(e)),r(e)}function uZ(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 aZ(e,t){const n=e.matches;t.matches=[],Qn(n)&&n.forEach(r=>{if(!Qn(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 sZ(e,t){t.score=e.score}function oZ(e,t,{includeMatches:n=ze.includeMatches,includeScore:r=ze.includeScore}={}){const u=[];return n&&u.push(aZ),r&&u.push(sZ),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 OY(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||ox(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(t){Qn(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 uZ(f,{ignoreFieldNorm:c}),o&&f.sort(l),ix(n)&&n>-1&&(f=f.slice(0,n)),oZ(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(!Qn(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=fx(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(Qn(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(!Qn(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(!Qn(n))return[];let u=[];if(ki(n))n.forEach(({v:o,i:l,n:c})=>{if(!Qn(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=ox;vo.parseIndex=GY;vo.config=ze;vo.parseQuery=fx;nZ(tZ);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}),lZ=({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}),cZ=({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(M9,{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=lZ;nc.Panel=cZ;const dZ={key:"locale-switcher-content",content:{localeSwitcherLabel:Ee({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:Ee({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:Ee({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:Ee({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:Ee({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:Ee({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:Ee({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:Ee({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])},hx=y.createContext({availableLocales:[],selectedLocales:[],setSelectedLocales:()=>{}}),Ax=()=>y.useContext(hx),fZ=({availableLocales:e,defaultSelectedLocales:t,children:n})=>{const{locale:r}=e4(),[u,o]=rc("locale-content-selector-selected-locales",t??[r]);return N.jsx(hx,{value:{availableLocales:e,selectedLocales:u,setSelectedLocales:o},children:n})},aE="locale-switcher-content",hZ=({panelProps:e,isMultilingual:t=!0})=>{const{switchTo:n,searchInput:r,localeSwitcherLabel:u,languageListLabel:o,seeAllLocalesSwitch:l}=sn(dZ),c=y.useRef(null),{locale:f}=e4(),{availableLocales:h,selectedLocales:m,setSelectedLocales:E}=Ax(),g=y.useMemo(()=>h.map(x=>{const B=Q0(x,i.ENGLISH),O=Q0(x,f),H=Q0(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]),T=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(SP,{size:18})}),N.jsx(IP,{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=>T(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:Ww(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))})]})]})})]})})},AZ=(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:ja,label:"Cancel",variant:"hoverable",size:"icon-sm",color:"text",className:"cursor-pointer hover:scale-110",onClick:E})]}),u]})]},String(e))},mZ=(e,t)=>{const[n,r]=y.useState(e);return y.useEffect(()=>{const u=setTimeout(()=>{r(e)},t);return()=>clearTimeout(u)},[e,t]),n},pZ=({isActive:e=!0,suggestion:t,...n})=>{const r=String(n.value??n.defaultValue??""),{autocomplete:u}=TU(),o=ii(),[l,c]=y.useState(!1),[f,h]=y.useState(r),[m,E]=y.useState(""),g=mZ(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 T=R.slice(g.length);return E(T)}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)}})]})},EZ=()=>{const{session:e,revalidateSession:t,setSession:n}=$c(),{logout:r}=SU(),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()}}},gZ=({children:e,onContentChange:t,disabled:n,validate:r,additionalButtons:u,...o})=>{const{isAuthenticated:l}=EZ(),[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(pZ,{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:ja,label:"Cancel",variant:"hoverable",size:"icon-sm",color:"text",className:"cursor-pointer hover:scale-110",onClick:g})]}),u]})]},e)};function Ia(){return Ia=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},Ia.apply(this,arguments)}const _Z=["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 xv;(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"})(xv||(xv={}));const Bv=["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"}),Fv={amp:"&",apos:"'",gt:">",lt:"<",nbsp:" ",quot:"“"},SZ=["style","script"],NZ=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,IZ=/mailto:/i,yZ=/\n{2,}$/,mx=/^(\s*>[\s\S]*?)(?=\n\n|$)/,CZ=/^ *> ?/gm,vZ=/^(?:\[!([^\]]*)\]\n)?([\s\S]*)/,RZ=/^ {2,}\n/,TZ=/^(?:( *[-*_])){3,} *(?:\n *)+\n/,px=/^(?: {1,3})?(`{3,}|~{3,}) *(\S+)? *([^\n]*?)?\n([\s\S]*?)(?:\1\n?|$)/,Ex=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,DZ=/^(`+)((?:\\`|[^`])+)\1/,bZ=/^(?:\n *)*\n/,xZ=/\r\n?/g,BZ=/^\[\^([^\]]+)](:(.*)((\n+ {4,}.*)|(\n(?!\[\^).+))*)/,FZ=/^\[\^([^\]]+)]/,OZ=/\f/g,LZ=/^---[ \t]*\n(.|\n)*\n---[ \t]*\n/,wZ=/^\s*?\[(x|\s)\]/,gx=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,_x=/^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,Sx=/^([^\n]+)\n *(=|-){3,} *(?:\n *)+\n/,Rg=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?((?:[^>]*[^/])?)>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1\b)[\s\S])*?)<\/\1>(?!<\/\1>)\n*/i,MZ=/&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi,Nx=/^<!--[\s\S]*?(?:-->)/,PZ=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,Tg=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,HZ=/^\{.*\}$/,UZ=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,kZ=/^<([^ >]+@[^ >]+)>/,GZ=/^<([^ >]+:\/[^ >]+)>/,VZ=/-([a-z])?/gi,Ix=/^(\|.*)\n(?: *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*))?\n?/,jZ=/^\[([^\]]*)\]:\s+<?([^\s>]+)>?\s*("([^"]*)")?/,zZ=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,KZ=/^\[([^\]]*)\] ?\[([^\]]*)\]/,$Z=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,YZ=/\t/g,ZZ=/(^ *\||\| *$)/g,WZ=/^ *:-+: *$/,qZ=/^ *:-+ *$/,QZ=/^ *-+: *$/,zh="((?:\\[.*?\\][([].*?[)\\]]|<.*?>(?:.*?<.*?>)?|`.*?`|\\\\\\1|[\\s\\S])+?)",XZ=new RegExp(`^([*_])\\1${zh}\\1\\1(?!\\1)`),JZ=new RegExp(`^([*_])${zh}\\1(?!\\1)`),eW=new RegExp(`^(==)${zh}\\1`),tW=new RegExp(`^(~~)${zh}\\1`),nW=/^\\([^0-9A-Za-z\s])/,sE=/\\([^0-9A-Za-z\s])/g,rW=/^([\s\S](?:(?! |[0-9]\.)[^*_~\-\n<`\\\[!])*)/,iW=/^\n+/,uW=/^([ \t]*)/,aW=/\\([^\\])/g,sW=/(?:^|\n)( *)$/,C_="(?:\\d+\\.)",v_="(?:[*+-])";function yx(e){return"( *)("+(e===1?C_:v_)+") +"}const Cx=yx(1),vx=yx(2);function Rx(e){return new RegExp("^"+(e===1?Cx:vx))}const oW=Rx(1),lW=Rx(2);function Tx(e){return new RegExp("^"+(e===1?Cx:vx)+"[^\\n]*(?:\\n(?!\\1"+(e===1?C_:v_)+" )[^\\n]*)*(\\n|$)","gm")}const cW=Tx(1),dW=Tx(2);function Dx(e){const t=e===1?C_:v_;return new RegExp("^( *)("+t+") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1"+t+" (?!"+t+" ))\\n*|\\s*\\n*$)")}const bx=Dx(1),xx=Dx(2);function Ov(e,t){const n=t===1,r=n?bx:xx,u=n?cW:dW,o=n?oW:lW;return{match:so(function(l,c){const f=sW.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(yZ,`
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,T=v.indexOf(`
263
-
264
- `)!==-1||R&&E;E=T;const b=f.inline,L=f.list;let x;f.list=!0,T?(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 fW=new RegExp(`^\\[((?:\\[[^\\]]*\\]|[^\\[\\]]|\\](?=[^\\[]*\\]))*)\\]\\(\\s*<?((?:\\([^)]*\\)|[^\\s\\\\]|\\\\.)*?)>?(?:\\s+['"]([\\s\\S]*?)['"])?\\s*\\)`),hW=/^!\[(.*?)\]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/,Bx=[mx,px,Ex,gx,Sx,_x,Ix,bx,xx],AW=[...Bx,/^[^\n]+(?: \n|\n{2,})/,Rg,Nx,Tg];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 mW(e){return QZ.test(e)?"right":WZ.test(e)?"center":qZ.test(e)?"left":null}function Lv(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 pW(e,t,n){n.inline=!0;const r=e[2]?e[2].replace(ZZ,"").split("|").map(mW):[],u=e[3]?function(l,c,f){return l.trim().split(`
267
- `).map(function(h){return Lv(h,c,f,!0)})}(e[3],t,n):[],o=Lv(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 wv(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 Ti(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 EW(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 gW(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 Mv(e){return e.replace(aW,"$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 _W(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 SW(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 NW(...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 IW(e="",t={}){function n(g,_,...S){const C=dE(t.overrides,`${g}.props`,{});return t.createElement(function(v,R){const T=dE(R,v);return T?typeof T=="function"||typeof T=="object"&&"render"in T?T:dE(R,`${v}.component`,v):v}(g,t.overrides),Ia({},_,C,{className:NW(_==null?void 0:_.className,C.className)||void 0}),...S)}function r(g){g=g.replace(LZ,"");let _=!1;t.forceInline?_=!0:t.forceBlock||(_=$Z.test(g)===!1);const S=h(f(_?g:`${xc(g).replace(iW,"")}
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(NZ);return S?S.reduce(function(C,v){const R=v.indexOf("=");if(R!==-1){const T=function(B){return B.indexOf("-")!==-1&&B.match(PZ)===null&&(B=B.replace(VZ,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=Bv[T]||T;if(L==="ref")return C;const x=C[L]=function(B,O,H,U){return O==="style"?H.split(/;\s?/).reduce(function(G,ce){const ae=ce.slice(0,ce.indexOf(":"));return G[ae.trim().replace(/(-[a-z])/g,de=>de[1].toUpperCase())]=ce.slice(ae.length+1).trim(),G},{}):O==="href"||O==="src"?U(H,B,O):(H.match(HZ)&&(H=H.slice(1,H.length-1)),H==="true"||H!=="false"&&H)}(g,T,b,t.sanitizer);typeof x=="string"&&(Rg.test(x)||Tg.test(x))&&(C[L]=r(x.trim()))}else v!=="style"&&(C[Bv[v]||v]=!0);return C},{}):null}t.overrides=t.overrides||{},t.sanitizer=t.sanitizer||gW,t.slugify=t.slugify||Hl,t.namedCodesToUnicode=t.namedCodesToUnicode?Ia({},Fv,t.namedCodesToUnicode):Fv,t.createElement=t.createElement||y.createElement;const o=[],l={},c={[ke.blockQuote]:{match:Ti(mx),order:1,parse(g,_,S){const[,C,v]=g[0].replace(CZ,"").match(vZ);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(RZ),order:1,parse:lE,render:(g,_,S)=>n("br",{key:S.key})},[ke.breakThematic]:{match:Ti(TZ),order:1,parse:lE,render:(g,_,S)=>n("hr",{key:S.key})},[ke.codeBlock]:{match:Ti(Ex),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",Ia({},g.attrs,{className:g.lang?`lang-${g.lang}`:""}),g.text))},[ke.codeFenced]:{match:Ti(px),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:Ti(BZ),order:0,parse:g=>(o.push({footnote:g[2],identifier:g[1]}),{}),render:cE},[ke.footnoteReference]:{match:mu(FZ),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(wZ),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:Ti(t.enforceAtxHeadings?_x:gx),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:Ti(Sx),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(uW),v=new RegExp(`^${C}`,"gm"),R=g[3].replace(v,""),T=(b=R,AW.some(H=>H.test(b))?SW:cf);var b;const L=g[1].toLowerCase(),x=SZ.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=T(_,R,S),S.inAnchor=!1,O},render:(g,_,S)=>n(g.tag,Ia({key:S.key},g.attrs),g.text||(g.children?_(g.children,S):""))},[ke.htmlSelfClosing]:{match:Ul(Tg),order:1,parse(g){const _=g[1].trim();return{attrs:u(_,g[2]||""),tag:_}},render:(g,_,S)=>n(g.tag,Ia({},g.attrs,{key:S.key}))},[ke.htmlComment]:{match:Ul(Nx),order:1,parse:()=>({}),render:cE},[ke.image]:{match:pu(hW),order:1,parse:g=>({alt:g[1],target:Mv(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(fW),order:3,parse:(g,_,S)=>({children:_W(_,g[1],S),target:Mv(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(GZ),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(UZ)(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(kZ),order:0,parse(g){let _=g[1],S=g[1];return IZ.test(S)||(S="mailto:"+S),{children:[{text:_.replace("mailto:",""),type:ke.text}],target:S,type:ke.link}}},[ke.orderedList]:Ov(n,1),[ke.unorderedList]:Ov(n,2),[ke.newlineCoalescer]:{match:Ti(bZ),order:3,parse:lE,render:()=>`
272
- `},[ke.paragraph]:{match:so(EW),order:3,parse:oE,render:(g,_,S)=>n("p",{key:S.key},_(g.children,S))},[ke.ref]:{match:mu(jZ),order:0,parse:g=>(l[g[1]]={target:g[2],title:g[4]},{}),render:cE},[ke.refImage]:{match:pu(zZ),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(KZ),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:Ti(Ix),order:1,parse:pW,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:wv(C,R)},_(v,S))}))),n("tbody",null,C.cells.map(function(v,R){return n("tr",{key:R},v.map(function(T,b){return n("td",{key:b,style:wv(C,b)},_(T,S))}))})))}},[ke.text]:{match:Ul(rW),order:4,parse:g=>({text:g[0].replace(MZ,(_,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(JZ),order:3,parse:(g,_,S)=>({children:_(g[2],S)}),render:(g,_,S)=>n("em",{key:S.key},_(g.children,S))},[ke.textEscaped]:{match:pu(nW),order:1,parse:g=>({text:g[1],type:ke.text})},[ke.textMarked]:{match:pu(eW),order:3,parse:oE,render:(g,_,S)=>n("mark",{key:S.key},_(g.children,S))},[ke.textStrikethroughed]:{match:pu(tW),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,T,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),T=R.parse(O,S,v),T.type==null&&(T.type=L),b.push(T);break}B++}}return v.prevCapture="",b}return _.sort(function(C,v){let R=g[C].order,T=g[v].order;return R!==T?R-T:C<v?-1:1}),function(C,v){return S(function(R){return R.replace(xZ,`
273
- `).replace(OZ,"").replace(YZ," ")}(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 T=0;T<_.length;T++){S.key=T;const b=g(_[T],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 yW=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,_Z);return y.cloneElement(IW(t,n),r)},CW=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"})},vW=()=>{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&&CW(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 RW(){return 2147483648}function TW(){return typeof performance<"u"?performance.now():Date.now()}const DW=(e,t)=>e+(t-e%t)%t;async function bW(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=RW();if(_>C)return!1;for(let v=1;v<=4;v*=2){let R=S*(1+.2/v);R=Math.min(R,_+100663296);const T=Math.min(C,DW(Math.max(_,R),65536));if(l(T))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 T="";for(;S<R;){let b=_[S++];if(!(b&128)){T+=String.fromCharCode(b);continue}const L=_[S++]&63;if((b&224)===192){T+=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)T+=String.fromCharCode(b);else{const B=b-65536;T+=String.fromCharCode(55296|B>>10,56320|B&1023)}}return T}function m(_,S){return _?h(r.HEAPU8,_,S):""}const E={emscripten_get_now:TW,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 xW=Object.defineProperty,BW=(e,t,n)=>t in e?xW(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,qt=(e,t,n)=>(BW(e,typeof t!="symbol"?t+"":t,n),n);let an=null;function FW(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 OW{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&&FW(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 LW(e){return typeof e.instantiator=="function"}function wW(e){return typeof e.default=="function"}function MW(e){return typeof e.data<"u"}function PW(e){return typeof Response<"u"&&e instanceof Response}function HW(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 UW(e){if(k0)return k0;async function t(){an=await bW(async n=>{let r=e;return r=await r,typeof r=="function"&&(r=await r(n)),typeof r=="function"&&(r=await r(n)),LW(r)?r=await r.instantiator(n):wW(r)?r=await r.default(n):(MW(r)&&(r=r.data),PW(r)?typeof WebAssembly.instantiateStreaming=="function"?r=await kW(r)(n):r=await GW(r)(n):HW(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 kW(e){return t=>WebAssembly.instantiateStreaming(e,t)}function GW(e){return async t=>{const n=await e.arrayBuffer();return WebAssembly.instantiate(n,t)}}let VW;function jW(){return VW}async function Fx(e){return e&&await UW(e),{createScanner(t){return new OW(t.map(n=>typeof n=="string"?n:n.source))},createString(t){return new sd(t)}}}function zW(e){return T_(e)}function T_(e){return Array.isArray(e)?KW(e):e instanceof RegExp?e:typeof e=="object"?$W(e):e}function KW(e){let t=[];for(let n=0,r=e.length;n<r;n++)t[n]=T_(e[n]);return t}function $W(e){let t={};for(let n in e)t[n]=T_(e[n]);return t}function Ox(e,...t){return t.forEach(n=>{for(let r in n)e[r]=n[r]}),e}function Lx(e){const t=~e.lastIndexOf("/")||~e.lastIndexOf("\\");return t===0?e:~t===e.length-1?Lx(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 wx(e,t){return e<t?-1:e>t?1:0}function Mx(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=wx(e[u],t[u]);if(o!==0)return o}return 0}return n-r}function Pv(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 Px(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")}var Hx=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 Hx(e=>this._root.match(e)));this._colorMap=e,this._defaults=t,this._root=n}static createFromRawTheme(e,t){return this.createFromParsedTheme(WW(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=>YW(e.parent,u.parentScopes));return r?new Ux(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 YW(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&&!ZW(e.scopeName,r);){if(u)return!1;e=e.parent}if(!e)return!1;e=e.parent}return!0}function ZW(e,t){return t===e||e.startsWith(t)&&e[t.length]==="."}var Ux=class{constructor(e,t,n){this.fontStyle=e,this.foregroundId=t,this.backgroundId=n}};function WW(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"&&Pv(l.settings.foreground)&&(h=l.settings.foreground);let m=null;typeof l.settings.background=="string"&&Pv(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 qW(C,v,u,f,h,m)}}return n}var qW=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=wx(f.scope,h.scope);return m!==0||(m=Mx(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 Ux(n,o.getId(r),o.getId(u)),c=new eq(new Dg(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)}},JW=Object.freeze([]),Dg=class kx{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||JW,this.fontStyle=r,this.foreground=u,this.background=o}clone(){return new kx(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)}},eq=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(),Dg.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(Mx(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 Dg(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=tq(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(Hv(u)){const f=[];do f.push(u),u=r.next();while(Hv(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 Hv(e){return!!e&&!!e.match(/[\w\.:]+/)}function tq(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 Gx(e){typeof e.dispose=="function"&&e.dispose()}var Bc=class{constructor(e){this.scopeName=e}toKey(){return this.scopeName}},nq=class{constructor(e,t){this.scopeName=e,this.ruleName=t}toKey(){return`${this.scopeName}#${this.ruleName}`}},rq=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))}},iq=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 rq;for(const n of e)uq(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 uq(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?Ox({},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=Vx(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 nq(l.scopeName,l.ruleName)):n.add(new Bc(l.scopeName));break}}}var aq=class{constructor(){oe(this,"kind",0)}},sq=class{constructor(){oe(this,"kind",1)}},oq=class{constructor(e){oe(this,"kind",2);this.ruleName=e}},lq=class{constructor(e){oe(this,"kind",3);this.scopeName=e}},cq=class{constructor(e,t){oe(this,"kind",4);this.scopeName=e,this.ruleName=t}};function Vx(e){if(e==="$base")return new aq;if(e==="$self")return new sq;const t=e.indexOf("#");if(t===-1)return new lq(e);if(t===0)return new oq(e.substring(1));{const n=e.substring(0,t),r=e.substring(t+1);return new cq(n,r)}}var dq=/\\(\d+)/,Uv=/\\(\d+)/g,fq=-1,jx=-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?`${Lx(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)}},hq=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!")}},Aq=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}},kv=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,jx),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}},zx=class _n{static createCaptureRule(t,n,r,u,o){return t.registerRule(l=>new hq(n,l,r,u,o))}static getCompiledRuleId(t,n,r){return t.id||n.registerRule(u=>{if(t.id=u,t.match)return new Aq(t.$vscodeTextmateLocation,t.id,t.name,t.match,_n._compileCaptures(t.captures,n,r));if(typeof t.begin>"u"){t.repository&&(r=Ox({},r,t.repository));let o=t.patterns;return typeof o>"u"&&t.include&&(o=[{include:t.include}]),new kv(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=Vx(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 kv||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 Kx{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=dq.test(this.source):this.hasBackReferences=!1}clone(){return new Kx(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 Uv.lastIndex=0,this.source.replace(Uv,(u,o)=>Px(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 Gv(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 Gv(e,r,this._items.map(u=>u.ruleId))}},Gv=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,mq=(xi=class{constructor(t,n){oe(this,"_defaultAttributes");oe(this,"_embeddedLanguagesMatcher");oe(this,"_getBasicScopeAttributes",new Hx(t=>{const n=this._scopeToLanguage(t),r=this._toStandardTokenType(t);return new mE(n,r)}));this._defaultAttributes=new mE(t,8),this._embeddedLanguagesMatcher=new pq(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),pq=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])=>Px(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])}},Vv=class{constructor(e,t){this.stack=e,this.stoppedEarly=t}};function $x(e,t,n,r,u,o,l,c){const f=t.content.length;let h=!1,m=-1;if(l){const _=Eq(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 Vv(u,!0);g()}return new Vv(u,!1);function g(){const _=gq(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===fq){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 T=u;if(u=u.parent,m=T.getAnchorPos(),!v&&T.getEnterPos()===r){u=T,o.produce(u,f),h=!0;return}}else{const R=e.getRule(C);o.produce(u,S[0].start);const T=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&&T.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&&T.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 Eq(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}=Nq(f.rule,e,f.stack.endRule,n,r===l),E=h.findNextMatchSync(t,r,m);if(E){if(E.ruleId!==jx){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 gq(e,t,n,r,u,o){const l=_q(e,t,n,r,u,o),c=e.getInjections();if(c.length===0)return l;const f=Sq(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 _q(e,t,n,r,u,o){const l=u.getRule(e),{ruleScanner:c,findOptions:f}=Yx(l,e,u.endRule,n,r===o),h=c.findNextMatchSync(t,r,f);return h?{captureIndices:h.captureIndices,matchedRuleId:h.ruleId}:null}function Sq(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}=Yx(C,t,null,r,u===l),T=v.findNextMatchSync(n,u,R);if(!T)continue;const b=T.captureIndices[0].start;if(!(b>=c)&&(c=b,f=T.captureIndices,h=T.ruleId,m=S.priority,c===u))break}return f?{priorityMatch:m===-1,captureIndices:f,matchedRuleId:h}:null}function Yx(e,t,n,r,u){return{ruleScanner:e.compileAG(t,n,r,u),findOptions:0}}function Nq(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),T=v.pushAttributed(R,e),b=r.push(g.retokenizeCapturedWithRuleId,_.start,-1,!1,null,v,T),L=e.createOnigString(c.substring(0,_.end));$x(e,L,n&&_.start===0,_.start,b,u,!1,0),Gx(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 Iq(v,_.end))}}for(;h.length>0;)u.produceFromScopes(h[h.length-1].scopes,h[h.length-1].endPos),h.pop()}var Iq=class{constructor(e,t){oe(this,"scopes");oe(this,"endPos");this.scopes=e,this.endPos=t}};function yq(e,t,n,r,u,o,l,c){return new vq(e,t,n,r,u,o,l,c)}function jv(e,t,n,r,u){const o=Zf(t,Qf),l=zx.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 Qf(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(Cq(t[u],r))return n=u+1,!0;return!1})}function Cq(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 vq=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 mq(n,r),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=l,this._grammar=zv(t,null),this._injections=null,this._tokenTypeMatchers=[],u)for(const f of Object.keys(u)){const h=Zf(f,Qf);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)jv(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&&jv(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]=zv(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=zx.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 Tq(n,e,this._tokenTypeMatchers,this.balancedBracketSelectors),f=$x(this,o,u,0,t,c,!0,r);return Gx(o),{lineLength:l,lineTokens:c,ruleStack:f.stack,stoppedEarly:f.stoppedEarly}}};function zv(e,t){return e=zW(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),Rq=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,Qf).map(r=>r.matcher)),this.unbalancedBracketScopes=t.flatMap(n=>Zf(n,Qf).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}},Tq=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,yq(e,o,t,n,r,u,this,this._onigLib))}return this._grammars.get(e)}},bq=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 Rq(r.balancedBracketSelectors||[],r.unbalancedBracketSelectors||[]))}loadGrammar(t){return this._loadGrammar(t,0,null,null,null)}_loadGrammar(t,n,r,u,o){const l=new iq(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 xq=["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 Zx(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 Bq=0;const We=Ka(),$t=Ka(),Wx=Ka(),_e=Ka(),Nt=Ka(),qs=Ka(),Zn=Ka();function Ka(){return 2**++Bq}const wg=Object.freeze(Object.defineProperty({__proto__:null,boolean:We,booleanish:$t,commaOrSpaceSeparated:Zn,commaSeparated:qs,number:_e,overloadedBoolean:Wx,spaceSeparated:Nt},Symbol.toStringTag,{value:"Module"})),pE=Object.keys(wg);class D_ extends Un{constructor(t,n,r,u){let o=-1;if(super(t,n),Kv(this,"space",u),typeof r=="number")for(;++o<pE.length;){const l=pE[o];Kv(this,pE[o],(r&wg[l])===wg[l])}}}D_.prototype.defined=!0;function Kv(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 D_(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 qx=Ro({properties:{ariaActiveDescendant:null,ariaAtomic:$t,ariaAutoComplete:null,ariaBusy:$t,ariaChecked:$t,ariaColCount:_e,ariaColIndex:_e,ariaColSpan:_e,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:_e,ariaLive:null,ariaModal:$t,ariaMultiLine:$t,ariaMultiSelectable:$t,ariaOrientation:null,ariaOwns:Nt,ariaPlaceholder:null,ariaPosInSet:_e,ariaPressed:$t,ariaReadOnly:$t,ariaRelevant:null,ariaRequired:$t,ariaRoleDescription:Nt,ariaRowCount:_e,ariaRowIndex:_e,ariaRowSpan:_e,ariaSelected:$t,ariaSetSize:_e,ariaSort:null,ariaValueMax:_e,ariaValueMin:_e,ariaValueNow:_e,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function Qx(e,t){return t in e?e[t]:t}function Xx(e,t){return Qx(e,t.toLowerCase())}const Fq=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:_e,colSpan:null,content:null,contentEditable:$t,controls:We,controlsList:Nt,coords:_e|qs,crossOrigin:null,data:null,dateTime:null,decoding:null,default:We,defer:We,dir:null,dirName:null,disabled:We,download:Wx,draggable:$t,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:We,formTarget:null,headers:Nt,height:_e,hidden:We,high:_e,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:_e,manifest:null,max:null,maxLength:_e,media:null,method:null,min:null,minLength:_e,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:_e,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:_e,rowSpan:_e,sandbox:Nt,scope:null,scoped:We,seamless:We,selected:We,shadowRootClonable:We,shadowRootDelegatesFocus:We,shadowRootMode:null,shape:null,size:_e,sizes:null,slot:null,span:_e,spellCheck:$t,src:null,srcDoc:null,srcLang:null,srcSet:null,start:_e,step:null,style:null,tabIndex:_e,target:null,title:null,translate:null,type:null,typeMustMatch:We,useMap:null,value:$t,width:_e,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Nt,axis:null,background:null,bgColor:null,border:_e,borderColor:null,bottomMargin:_e,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:_e,leftMargin:_e,link:null,longDesc:null,lowSrc:null,marginHeight:_e,marginWidth:_e,noResize:We,noHref:We,noShade:We,noWrap:We,object:null,profile:null,prompt:null,rev:null,rightMargin:_e,rules:null,scheme:null,scrolling:$t,standby:null,summary:null,text:null,topMargin:_e,valueType:null,version:null,vAlign:null,vLink:null,vSpace:_e,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:We,disableRemotePlayback:We,prefix:null,property:null,results:_e,security:null,unselectable:null},space:"html",transform:Xx}),Oq=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:_e,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:_e,amplitude:_e,arabicForm:null,ascent:_e,attributeName:null,attributeType:null,azimuth:_e,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:_e,by:null,calcMode:null,capHeight:_e,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:_e,diffuseConstant:_e,direction:null,display:null,dur:null,divisor:_e,dominantBaseline:null,download:We,dx:null,dy:null,edgeMode:null,editable:null,elevation:_e,enableBackground:null,end:null,event:null,exponent:_e,externalResourcesRequired:null,fill:null,fillOpacity:_e,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:_e,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:_e,horizOriginX:_e,horizOriginY:_e,id:null,ideographic:_e,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:_e,k:_e,k1:_e,k2:_e,k3:_e,k4:_e,kernelMatrix:Zn,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:_e,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:_e,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:_e,overlineThickness:_e,paintOrder:null,panose1:null,path:null,pathLength:_e,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Nt,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:_e,pointsAtY:_e,pointsAtZ:_e,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:_e,specularExponent:_e,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:_e,strikethroughThickness:_e,string:null,stroke:null,strokeDashArray:Zn,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:_e,strokeOpacity:_e,strokeWidth:null,style:null,surfaceScale:_e,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Zn,tabIndex:_e,tableValues:null,target:null,targetX:_e,targetY:_e,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:_e,underlineThickness:_e,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:_e,values:null,vAlphabetic:_e,vMathematical:_e,vectorEffect:null,vHanging:_e,vIdeographic:_e,version:null,vertAdvY:_e,vertOriginX:_e,vertOriginY:_e,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:_e,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:Qx}),Jx=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()}}),eB=Ro({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:Xx}),tB=Ro({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),Lq=/[A-Z]/g,$v=/-[a-z]/g,wq=/^data[-\w.:]+$/i;function Mq(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"&&wq.test(t)){if(t.charAt(4)==="-"){const o=t.slice(5).replace($v,Hq);r="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=t.slice(4);if(!$v.test(o)){let l=o.replace(Lq,Pq);l.charAt(0)!=="-"&&(l="-"+l),t="data"+l}}u=D_}return new u(r,t)}function Pq(e){return"-"+e.toLowerCase()}function Hq(e){return e.charAt(1).toUpperCase()}const Uq=Zx([qx,Fq,Jx,eB,tB],"html"),nB=Zx([qx,Oq,Jx,eB,tB],"svg"),Yv={}.hasOwnProperty;function kq(e,t){const n=t||{};function r(u,...o){let l=r.invalid;const c=r.handlers;if(u&&Yv.call(u,e)){const f=String(u[e]);l=Yv.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 Gq=/["&'<>`]/g,Vq=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,jq=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,zq=/[|\\{}()[\]^$+*?.]/g,Zv=new WeakMap;function Kq(e,t){if(e=e.replace(t.subset?$q(t.subset):Gq,r),t.subset||t.escapeOnly)return e;return e.replace(Vq,n).replace(jq,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 $q(e){let t=Zv.get(e);return t||(t=Yq(e),Zv.set(e,t)),t}function Yq(e){const t=[];let n=-1;for(;++n<e.length;)t.push(e[n].replace(zq,"\\$&"));return new RegExp("(?:"+t.join("|")+")","g")}const Zq=/[\dA-Fa-f]/;function Wq(e,t,n){const r="&#x"+e.toString(16).toUpperCase();return n&&t&&!Zq.test(String.fromCharCode(t))?r:r+";"}const qq=/\d/;function Qq(e,t,n){const r="&#"+String(e);return n&&t&&!qq.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:"€"},Jq=["cent","copy","divide","gt","lt","not","para","times"],rB={}.hasOwnProperty,Mg={};let V0;for(V0 in EE)rB.call(EE,V0)&&(Mg[EE[V0]]=V0);const eQ=/[^\dA-Za-z]/;function tQ(e,t,n,r){const u=String.fromCharCode(e);if(rB.call(Mg,u)){const o=Mg[u],l="&"+o;return n&&Xq.includes(o)&&!Jq.includes(o)&&(!r||t&&t!==61&&eQ.test(String.fromCharCode(t)))?l:l+";"}return""}function nQ(e,t,n){let r=Wq(e,t,n.omitOptionalSemicolons),u;if((n.useNamedReferences||n.useShortestReferences)&&(u=tQ(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 Qs(e,t){return Kq(e,Object.assign({format:nQ},t))}const rQ=/^>|^->|<!--|-->|--!>|<!-$/g,iQ=[">"],uQ=["<",">"];function aQ(e,t,n,r){return r.settings.bogusComments?"<?"+Qs(e.value,Object.assign({},r.settings.characterReferences,{subset:iQ}))+">":"<!--"+e.value.replace(rQ,u)+"-->";function u(o){return Qs(o,Object.assign({},r.settings.characterReferences,{subset:uQ}))}}function sQ(e,t,n,r){return"<!"+(r.settings.upperDoctype?"DOCTYPE":"doctype")+(r.settings.tightDoctype?"":" ")+"html>"}function Wv(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 oQ(e,t){const n=t||{};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}function lQ(e){return e.join(" ").trim()}const cQ=/[ \t\n\f\r]/g;function b_(e){return typeof e=="object"?e.type==="text"?qv(e.value):!1:qv(e)}function qv(e){return e.replace(cQ,"")===""}const Xt=uB(1),iB=uB(-1),dQ=[];function uB(e){return t;function t(n,r,u){const o=n?n.children:dQ;let l=(r||0)+e,c=o[l];if(!u)for(;c&&b_(c);)l+=e,c=o[l];return c}}const fQ={}.hasOwnProperty;function aB(e){return t;function t(n,r,u){return fQ.call(e,n.tagName)&&e[n.tagName](n,r,u)}}const x_=aB({body:AQ,caption:gE,colgroup:gE,dd:gQ,dt:EQ,head:gE,html:hQ,li:pQ,optgroup:_Q,option:SQ,p:mQ,rp:Qv,rt:Qv,tbody:IQ,td:Xv,tfoot:yQ,th:Xv,thead:NQ,tr:CQ});function gE(e,t,n){const r=Xt(n,t,!0);return!r||r.type!=="comment"&&!(r.type==="text"&&b_(r.value.charAt(0)))}function hQ(e,t,n){const r=Xt(n,t);return!r||r.type!=="comment"}function AQ(e,t,n){const r=Xt(n,t);return!r||r.type!=="comment"}function mQ(e,t,n){const r=Xt(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 pQ(e,t,n){const r=Xt(n,t);return!r||r.type==="element"&&r.tagName==="li"}function EQ(e,t,n){const r=Xt(n,t);return!!(r&&r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd"))}function gQ(e,t,n){const r=Xt(n,t);return!r||r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd")}function Qv(e,t,n){const r=Xt(n,t);return!r||r.type==="element"&&(r.tagName==="rp"||r.tagName==="rt")}function _Q(e,t,n){const r=Xt(n,t);return!r||r.type==="element"&&r.tagName==="optgroup"}function SQ(e,t,n){const r=Xt(n,t);return!r||r.type==="element"&&(r.tagName==="option"||r.tagName==="optgroup")}function NQ(e,t,n){const r=Xt(n,t);return!!(r&&r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot"))}function IQ(e,t,n){const r=Xt(n,t);return!r||r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot")}function yQ(e,t,n){return!Xt(n,t)}function CQ(e,t,n){const r=Xt(n,t);return!r||r.type==="element"&&r.tagName==="tr"}function Xv(e,t,n){const r=Xt(n,t);return!r||r.type==="element"&&(r.tagName==="td"||r.tagName==="th")}const vQ=aB({body:DQ,colgroup:bQ,head:TQ,html:RQ,tbody:xQ});function RQ(e){const t=Xt(e,-1);return!t||t.type!=="comment"}function TQ(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 DQ(e){const t=Xt(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 bQ(e,t,n){const r=iB(n,t),u=Xt(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 xQ(e,t,n){const r=iB(n,t),u=Xt(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 BQ(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=nB);const h=FQ(r,e.properties),m=r.all(u.space==="html"&&e.tagName==="template"?e.content:e);return r.schema=u,m&&(l=!1),(h||!o||!vQ(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 FQ(e,t){const n=[];let r=-1,u;if(t){for(u in t)if(t[u]!==null&&t[u]!==void 0){const o=OQ(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 OQ(e,t,n){const r=Mq(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=Qs(r.attribute,Object.assign({},e.settings.characterReferences,{subset:j0.name[u][o]}));return n===!0||(n=Array.isArray(n)?(r.commaSeparated?oQ:lQ)(n,{padLeft:!e.settings.tightCommaSeparatedLists}):String(n),e.settings.collapseEmptyAttributes&&!n)?f:(e.settings.preferUnquoted&&(c=Qs(n,Object.assign({},e.settings.characterReferences,{attribute:!0,subset:j0.unquoted[u][o]}))),c!==n&&(e.settings.quoteSmart&&Wv(n,l)>Wv(n,e.alternative)&&(l=e.alternative),c=l+Qs(n,Object.assign({},e.settings.characterReferences,{subset:(l==="'"?j0.single:j0.double)[u][o],attribute:!0}))+l),f+(c&&"="+c))}const LQ=["<","&"];function sB(e,t,n,r){return n&&n.type==="element"&&(n.tagName==="script"||n.tagName==="style")?e.value:Qs(e.value,Object.assign({},r.settings.characterReferences,{subset:LQ}))}function wQ(e,t,n,r){return r.settings.allowDangerousHtml?e.value:sB(e,t,n,r)}function MQ(e,t,n,r){return r.all(e)}const PQ=kq("type",{invalid:HQ,unknown:UQ,handlers:{comment:aQ,doctype:sQ,element:BQ,raw:wQ,root:MQ,text:sB}});function HQ(e){throw new Error("Expected node, not `"+e+"`")}function UQ(e){const t=e;throw new Error("Cannot compile unknown node `"+t.type+"`")}const kQ={},GQ={},VQ=[];function jQ(e,t){const n=kQ,r=n.quote||'"',u=r==='"'?"'":'"';if(r!=='"'&&r!=="'")throw new Error("Invalid quote `"+r+"`, expected `'` or `\"`");return{one:zQ,all:KQ,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||xq,characterReferences:n.characterReferences||GQ,closeSelfClosing:n.closeSelfClosing||!1,closeEmptyElements:n.closeEmptyElements||!1},schema:n.space==="svg"?nB:Uq,quote:r,alternative:u}.one(Array.isArray(e)?{type:"root",children:e}:e,void 0,void 0)}function zQ(e,t,n){return PQ(e,t,n,this)}function KQ(e){const t=[],n=e&&e.children||VQ;let r=-1;for(;++r<n.length;)t[r]=this.one(n[r],r,e);return t.join("")}function $Q(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 oB(e){return e==="ansi"||B_(e)}function F_(e){return e==="none"}function lB(e){return F_(e)}function cB(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 YQ(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 ZQ(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?YQ(u,o):u})):e}async function dB(e){return Promise.resolve(typeof e=="function"?e():e).then(t=>t.default||t)}function Xf(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 va(e,t){return e&&((t==null?void 0:t[e==null?void 0:e.toLowerCase()])||e)}function fB(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 WQ(e){return typeof e=="string"?e:Object.entries(e).map(([t,n])=>`${t}:${n}`).join(";")}function qQ(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 hB=new WeakMap;function Yh(e,t){hB.set(e,t)}function Lc(e){return hB.get(e)}class To{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 To(Object.fromEntries($Q(n).map(r=>[r,Og])),t)}getInternalStack(t=this.theme){return this._stacks[t]}get scopes(){return Jv(this._stacks[this.theme])}getScopes(t=this.theme){return Jv(this._stacks[t])}toJSON(){return{lang:this.lang,theme:this.theme,themes:this.themes,scopes:this.scopes}}}function Jv(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 QQ(e,t){if(!(e instanceof To))throw new xn("Invalid grammar state");return e.getInternalStack(t)}function XQ(){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=qQ(n.source),o=(n.options.decorations||[]).map(l=>({...l,start:r(l.start),end:r(l.end)}));JQ(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 ZQ(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,T=-1;if(g===0&&(R=0),_===0&&(T=0),_===Number.POSITIVE_INFINITY&&(T=C.children.length),R===-1||T===-1)for(let L=0;L<C.children.length;L++)v+=AB(C.children[L]),R===-1&&v.length===g&&(R=L+1),T===-1&&v.length===_&&(T=L+1);if(R===-1)throw new xn(`Failed to find start index for decoration ${JSON.stringify(S.start)}`);if(T===-1)throw new xn(`Failed to find end index for decoration ${JSON.stringify(S.end)}`);const b=C.children.slice(R,T);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&&cB(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 JQ(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 AB(e){return e.type==="text"?e.value:e.type==="element"?e.children.map(AB).join(""):""}const eX=[XQ()];function Jf(e){return[...e.transformers||[],...eX]}var Ra=["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 tX(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 eR(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 nX(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:Ra[u-30]}});else if(u===38){const[o,l]=eR(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:Ra[u-40]}});else if(u===48){const[o,l]=eR(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:Ra[u-90+8]}}):u>=100&&u<=107&&t.push({type:"setBackgroundColor",value:{type:"named",name:Ra[u-100+8]}})}return t}function rX(){let e=null,t=null,n=new Set;return{parse(r){const u=[];let o=0;do{const l=tX(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=nX(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 iX={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 uX(e=iX){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<Ra.length;h++)r.push(t(Ra[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 aX(e,t,n){const r=Xf(e,n),u=$h(t),o=uX(Object.fromEntries(Ra.map(c=>{var f;return[c,(f=e.colors)==null?void 0:f[`terminal.ansi${c[0].toUpperCase()}${c.substring(1)}`]]}))),l=rX();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=va(h,r),m=va(m,r),f.decorations.has("dim")&&(h=sX(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 sX(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 aX(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 lX(t,c,o,l,n)}function oX(...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 To(eh(n,f,l,c,r).stateStack,f.name,l.name)}function lX(e,t,n,r,u){const o=eh(e,t,n,r,u),l=new To(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=Xf(n,u),{tokenizeMaxLineLength:l=0,tokenizeTimeLimit:c=500}=u,f=$h(e);let h=u.grammarState?QQ(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,T;u.includeExplanation&&(v=t.tokenizeLine(S,h),R=v.tokens,T=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=va(r[oo.getForeground(H)],o),G=oo.getFontStyle(H),ce={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(/ /))})}ce.explanation=[];let de=0;for(;B+de<O;){const Z=R[T],te=S.substring(Z.startIndex,Z.endIndex);de+=te.length,ce.explanation.push({content:te,scopes:u.includeExplanation==="scopeName"?cX(Z.scopes):dX(ae,Z.scopes)}),T+=1}}m.push(ce)}E.push(m),m=[],h=b.ruleStack}return{tokens:E,stateStack:h}}function cX(e){return e.map(t=>({scopeName:t}))}function dX(e,t){const n=[];for(let r=0,u=t.length;r<u;r++){const o=t[r];n[r]={scopeName:o,themeMatches:hX(e,o,t.slice(0,r))}}return n}function tR(e,t){return e===t||t.substring(0,e.length)===e&&t[e.length]==="."}function fX(e,t,n){if(!tR(e[e.length-1],t))return!1;let r=e.length-2,u=n.length-1;for(;r>=0&&u>=0;)tR(e[r],n[u])&&(r-=1),u-=1;return r===-1}function hX(e,t,n){const r=[];for(const{selectors:u,settings:o}of e)for(const l of u)if(fX(l,t,n)){r.push(o);break}return r}function mB(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=AX(...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,...T}=_[h][E];g.variants[r[S].color]=T}),g})),c=u[0].state?new To(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 AX(...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=mB(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=>mX(R,S,m,h))),f&&Yh(o,f);const C=E.map(v=>Xf(v.theme,n));u=E.map((v,R)=>(R===0&&h?"":`${m+v.color}:`)+(va(_[R].fg,C[R])||"inherit")).join(";"),r=E.map((v,R)=>(R===0&&h?"":`${m+v.color}-bg:`)+(va(_[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=Xf(n.theme,n);o=O_(e,t,n);const m=e.getTheme(n.theme);r=va(m.bg,h),u=va(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 mX(e,t,n,r){const u={content:e.content,explanation:e.explanation,offset:e.offset},o=t.map(f=>fB(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=EX(o):E==="never"&&(o=gX(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 pX(o,{...n,fg:l,bg:c,themeName:f,rootStyle:h},g,m)}function pX(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:cB,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,T)=>{var x,B;T&&(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=WQ(O.htmlStyle||fB(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,T+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,T+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 EX(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 gX(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 _X(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=jQ(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 nR={light:"#333333",dark:"#bbbbbb"},rR={light:"#fffffe",dark:"#1e1e1e"},iR="__shiki_resolved";function L_(e){var c,f,h,m,E;if(e!=null&&e[iR])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"?nR.light:nR.dark),n||(n=t.type==="light"?rR.light:rR.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 T=l(g.settings.foreground);t.colorReplacements[T]=g.settings.foreground,C.settings.foreground=T}if(S){const T=l(g.settings.background);t.colorReplacements[T]=g.settings.background,C.settings.background=T}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,iR,{enumerable:!1,writable:!1,value:!0}),t}async function pB(e){return Array.from(new Set((await Promise.all(e.filter(t=>!oB(t)).map(async t=>await dB(t).then(n=>Array.isArray(n)?n:[n])))).flat()))}async function EB(e){return(await Promise.all(e.map(async n=>lB(n)?null:L_(await dB(n))))).filter(n=>!!n)}class SX extends bq{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 NX{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 IX(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 NX(e.engine,n),o=new SX(u,r,n,e.langAlias);let l;function c(T){v();const b=o.getGrammar(typeof T=="string"?T:T.name);if(!b)throw new xn(`Language \`${T}\` not found, you may need to load it first`);return b}function f(T){if(T==="none")return{bg:"",fg:"",name:"none",settings:[],type:"dark"};v();const b=o.getTheme(T);if(!b)throw new xn(`Theme \`${T}\` not found, you may need to load it first`);return b}function h(T){v();const b=f(T);l!==T&&(o.setTheme(b),l=T);const L=o.getColorMap();return{theme:b,colorMap:L}}function m(){return v(),o.getLoadedThemes()}function E(){return v(),o.getLoadedLanguages()}function g(...T){v(),o.loadLanguages(T.flat(1))}async function _(...T){return g(await pB(T))}function S(...T){v();for(const b of T.flat(1))o.loadTheme(b)}async function C(...T){return v(),S(await EB(T))}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 yX(e={}){e.loadWasm;const[t,n,r]=await Promise.all([EB(e.themes||[]),pB(e.langs||[]),e.engine||Fx(e.loadWasm||jW())]);return IX({...e,themes:t,langs:n,engine:r})}async function CX(e={}){const t=await yX(e);return{getLastGrammarState:(...n)=>oX(t,...n),codeToTokensBase:(n,r)=>O_(t,n,r),codeToTokensWithThemes:(n,r)=>mB(t,n,r),codeToTokens:(n,r)=>th(t,n,r),codeToHast:(n,r)=>nh(t,n,r),codeToHtml:(n,r)=>_X(t,n,r),...t,getInternalContext:()=>t}}function vX(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(oB(_))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(lB(_))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 CX({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 RX(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 TX(e){const t=RX(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 DX=[[/^(<!--)(.+)(-->)$/,!1],[/^(\/\*)(.+)(\*\/)$/,!1],[/^(\/\/|["'#]|;{1,2}|%{1,2}|--)(.*)$/,!0],[/^(\*)(.+)$/,!0]];function bX(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=xX(h.value,m);E&&(t&&!m&&c!==0?r.push({info:E,line:u,token:f,isJsxStyle:uR(o[c-1],"{")&&uR(o[c+1],"}")}):r.push({info:E,line:u,token:f,isJsxStyle:!1}))}}return r}function uR(e,t){if(e.type!=="element")return!1;const n=e.children[0];return n.type!=="text"?!1:n.value.trim()===t}function xX(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 DX){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 BX(e){const n=/(?:\/\/|["'#]|;{1,2}|%{1,2}|--)(.*)$/.exec(e);return n&&n[1].trim().length===0?e.slice(0,n.index):e}function gB(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=bX(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]=BX(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 FX(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 OX(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]=FX(this.options.meta.__raw)),(u[z0]??[]).includes(r)&&this.addClassToHast(n,t),n}}}function LX(e){return e?Array.from(e.matchAll(/\/((?:\\.|[^/])+)\//g)).map(n=>n[1].replace(/\\(.)/g,"$1")):[]}function wX(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=LX(this.options.meta.__raw);r.decorations||(r.decorations=[]);for(const l of u){const c=MX(n,l);for(const f of c)r.decorations.push({start:f,end:f+l.length,properties:{class:t}})}}}}function MX(e,t){const n=[];let r=-1;for(;(r=e.indexOf(t,r+1))!==-1;)n.push(r);return n}function PX(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function w_(e={},t="@shikijs/transformers:notation-map"){const{classMap:n={},classActivePre:r=void 0}=e;return gB(t,new RegExp(`\\s*\\[!code (${Object.keys(n).map(PX).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 HX(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 UX(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 kX(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 GX(e,t,n,r){const u=_B(e);let o=u.indexOf(n);for(;o!==-1;)VX.call(this,e.children,t,o,n.length,r),o=u.indexOf(n,o+1)}function _B(e){return e.type==="text"?e.value:e.type==="element"&&e.tagName==="span"?e.children.map(_B).join(""):""}function VX(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(jX([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=zX(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 jX(e,t){return e[0]<=t[1]&&e[1]>=t[0]}function zX(e,t,n,r){const u=t.value,o=l=>KX(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 KX(e,t){return{...e,properties:{...e.properties},...t}}function $X(e={}){const{classActiveWord:t="highlighted-word",classActivePre:n=void 0}=e;return gB("@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++)GX.call(this,f[E],c,u,t);return n&&this.addClassToHast(this.pre,n),!0},e.matchAlgorithm)}const YX="modulepreload",ZX=function(e){return"/"+e},aR={},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=ZX(f),f in aR)return;aR[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":YX,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)})},SB=[{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"),[])}],WX=Object.fromEntries(SB.map(e=>[e.id,e.import])),qX=Object.fromEntries(SB.flatMap(e=>{var t;return((t=e.aliases)==null?void 0:t.map(n=>[n,e.import]))||[]})),QX={...WX,...qX},XX=[{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"),[])}],JX=Object.fromEntries(XX.map(e=>[e.id,e.import])),eJ=vX({langs:QX,themes:JX,engine:()=>Fx(w(()=>import("./wasm-CG6Dc4jp.js"),[]))}),{codeToHtml:tJ}=TX(eJ),nJ=({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))})})}),rJ=({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:[HX(),kX(),$X(),UX(),OX(),wX()]}),[t,n]);return y.useEffect(()=>{tJ(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(nJ,{children:e})},iJ=({className:e,onChange:t,isEditable:n,...r})=>N.jsx(rJ,{className:Re("flex w-full",e),contentEditable:n,onInput:u=>t==null?void 0:t(u.currentTarget.textContent??""),...r}),NB=y.createContext({packageManager:"npm",setPackageManager:()=>{},codeFormat:"typescript",setCodeFormat:()=>{},contentDeclarationFormat:"typescript",setContentDeclarationFormat:()=>{}}),Zh=()=>y.useContext(NB),uJ=({children:e})=>{const[t,n]=rc("packageManager","npm"),[r,u]=rc("codeFormat","typescript"),[o,l]=rc("contentDeclarationFormat","typescript");return N.jsx(NB,{value:{packageManager:t,setPackageManager:n,codeFormat:r,setCodeFormat:u,contentDeclarationFormat:o,setContentDeclarationFormat:l},children:e})},aJ=({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,{})},sJ=()=>{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"})]})]})},oJ=()=>{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"})]})]})},lJ={key:"copy-button",content:{label:Ee({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:"Копировать содержимое"})}},IB=({content:e})=>{const[t,n]=y.useState(!1),{label:r}=sn(lJ),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?oP:cP,onClick:u,variant:"hoverable",color:"text",label:r.value,size:"icon-sm"})},cJ=()=>{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"})]})]})},dJ=({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(aJ,{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(cJ,{}),f&&N.jsx(sJ,{}),h&&N.jsx(oJ,{})]})]}),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(IB,{content:E})})})]}),N.jsx("div",{className:"grid size-full grid-cols-[0px] overflow-auto p-3",children:N.jsx(iJ,{lang:t,isDarkMode:n,children:E})})]})})},fJ=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"}}),hJ=({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}=Xe,_=hJ(e),S=typeof r=="string",C=_?"noopener noreferrer nofollow":void 0,v=_?"_blank":"_self",R=f?f===g.defaultLocale?"x-default":f:void 0,T=f&&m&&!_?e2(m,f):m;return N.jsxs("a",{href:T,hrefLang:R,"aria-label":u,rel:C,target:v,"aria-current":l?"page":void 0,className:Re(fJ({variant:t,color:n,underlined:c,className:o})),...E,children:[t==="button"?N.jsx("span",{children:r}):r,_&&S&&N.jsx(AP,{className:"ml-2 inline-block size-4"})]})},AJ=({children:e,isDarkMode:t,locale:n,options:r})=>{const{overrides:u,...o}=r??{};return N.jsx(uJ,{children:N.jsx(yW,{options:{overrides:{h1:l=>N.jsx(lY,{isClickable:!0,...l}),h2:l=>N.jsx(cY,{isClickable:!0,...l}),h3:l=>N.jsx(N_,{isClickable:!0,...l}),h4:l=>N.jsx(dY,{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(dJ,{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(vW,{}),N.jsx("div",{className:Re("flex flex-col gap-6 p-10",l),...c})]}),...o},children:e??""})})},mJ=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}},pJ=({value:e,onChange:t})=>{const{comparator:n,numberValue:r}=y.useMemo(()=>mJ(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:Ee({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:Ee({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:Ee({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:Ee({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:Ee({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:Ee({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:Ee({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:Ee({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:Ee({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:Ee({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:Ee({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:Ee({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:"Добавить новое условие"})}}},EJ=({keyPath:e,dictionary:t,...n})=>{const{editedContent:r,addEditedContent:u}=Fn(),o=ii(),{auditContentDeclarationField:l,isLoading:c}=RU();return N.jsx(gZ,{variant:"default",onContentChange:f=>u(t.key,f,e),additionalButtons:N.jsx(Et,{Icon:U9,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})},gJ=({keyPath:e,dictionary:t,...n})=>{const{addEditedContent:r}=Fn();return N.jsx(vg,{variant:"default",onContentChange:u=>r(t.key,u,e),...n})},_J=[{content:"False",value:!1},{content:"True",value:!0}],SJ=({dictionary:e,keyPath:t,...n})=>{const{addEditedContent:r}=Fn();return N.jsx(ed,{choices:_J,value:!0,onChange:u=>r(e.key,u,t),color:"text",size:"sm",...n})},NJ=({section:e,keyPath:t,dictionary:n,renderSection:r})=>{const{locale:u,defaultLocale:o}=e4(),{selectedLocales:l,availableLocales:c}=Ax(),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:Q0(_,u)}),N.jsx("tr",{children:N.jsx($a,{section:g[_]??_r(g[o]),keyPath:[...t,{type:$.Translation,key:_}],dictionary:n,renderSection:r})})]},_))})})},IJ=({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(pJ,{value:h,onChange:E=>{const g=e[$.Enumeration],_=AZ(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})]})},yJ=({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))})})},CJ=({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})]})},vJ=({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)})})})}),RJ=({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(AJ,{isDarkMode:r,children:m}):void 0,onContentChange:u})]})},TJ=({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})]})},bJ=({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(bJ,{dictionary:n,renderSection:r,keyPath:t,section:e}):l===$.Translation?N.jsx(NJ,{dictionary:n,renderSection:r,keyPath:t,section:e}):l===$.Enumeration?N.jsx(IJ,{dictionary:n,renderSection:r,keyPath:t,section:e}):l===$.Condition?N.jsx(yJ,{dictionary:n,renderSection:r,keyPath:t,section:e}):l===$.Insertion?N.jsx(TJ,{dictionary:n,renderSection:r,keyPath:t,section:e}):l===$.Markdown?N.jsx(RJ,{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(CJ,{dictionary:n,renderSection:r,keyPath:t,section:e}):l===$.Object?N.jsx(vJ,{dictionary:n,renderSection:r,keyPath:t,section:e}):l===$.Number?N.jsx("div",{className:"w-full p-2",children:N.jsx(gJ,{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(EJ,{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(SJ,{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=qR(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"},yB={key:"breadcrumb",content:{linkLabel:Ee({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:"Перейти на"})}},xJ=({href:e,lang:t,children:n,onClick:r,color:u,position:o,locale:l,...c})=>{const{linkLabel:f}=sn(yB);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()})]})},BJ=({children:e,onClick:t,color:n,position:r,...u})=>{const{linkLabel:o}=sn(yB);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()})]})},FJ=({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()})]}),OJ=({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(FJ,{position:c+1,"aria-current":g,children:_},_);h?S=N.jsx(xJ,{href:l.href,color:n,position:c+1,locale:r,"aria-current":g,children:_},_):m&&(S=N.jsx(BJ,{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})]},_)})})}),LJ=({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(OJ,{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}=Xe==null?void 0:Xe.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(tx,{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)]})},wJ=({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(LJ,{dictionaryKey:r,keyPath:c??[],onClickKeyPath:l}),N.jsx("div",{className:"flex items-center gap-2",children:N.jsx(hZ,{})})]}),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})]})]})},MJ={key:"dictionary-details",content:{titleInput:{label:Ee({en:"Title","en-GB":"Title",fr:"Titre",es:"Título",de:"Titel",ja:"タイトル",ko:"제목",zh:"标题",it:"Titolo",pt:"Título",hi:"शीर्षक",ar:"العنوان",ru:"Заголовок"}),description:Ee({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:Ee({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:Ee({en:"Key","en-GB":"Key",fr:"Clé",es:"Clave",de:"Schlüssel",ja:"キー",ko:"키",zh:"键",it:"Chiave",pt:"Chave",hi:"कुंजी",ar:"مفتاح",ru:"Ключ"}),description:Ee({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:Ee({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:Ee({en:"Description","en-GB":"Description",fr:"Description",es:"Descripción",de:"Beschreibung",ja:"説明",ko:"설명",zh:"描述",it:"Descrizione",pt:"Descrição",hi:"विवरण",ar:"الوصف",ru:"Описание"}),placeholder:Ee({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:Ee({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:Ee({en:"Projects","en-GB":"Projects",fr:"Projets",es:"Proyectos",de:"Projekte",ja:"プロジェクト",ko:"프로젝트",zh:"项目",it:"Progetti",pt:"Projetos",hi:"परियोजनाएँ",ar:"المشاريع",ru:"Проекты"}),description:Ee({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:Ee({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:Ee({en:"Tags","en-GB":"Tags",fr:"Tags",es:"Etiquetas",de:"Tags",ja:"タグ",ko:"태그",zh:"标签",it:"Tag",pt:"Tags",hi:"टैग",ar:"الوسوم",ru:"Теги"}),description:Ee({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:Ee({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:Ee({en:"Audit",fr:"Auditer",es:"Auditar","en-GB":"Audit",de:"Prüfen",ja:"監査",ko:"감사",zh:"审核",it:"Controllare",pt:"Auditar",hi:"ऑडिट",ar:"التدقيق",ru:"Отслеживание"}),text:Ee({en:"Audit",fr:"Auditer",es:"Auditar","en-GB":"Audit",de:"Prüfen",ja:"監査",ko:"감사",zh:"审核",it:"Controllare",pt:"Auditar",hi:"ऑडिट",ar:"التدقيق",ru:"Отслеживание"})}}},PJ={key:"dictionary-detail-schema",content:{titleRequiredError:Ee({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:Ee({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:Ee({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:Ee({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:Ee({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:Ee({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:Ee({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:Ee({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:Ee({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:Ee({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:Ee({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:Ee({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:"Пожалуйста, введите действительный тег"})}},HJ=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(PJ);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([])})},UJ=({dictionary:e})=>{var x,B;const{session:t}=$c(),{project:n}=t??{},{data:r,isLoading:u}=NU(),{data:o}=CU(),l=HJ(String(n==null?void 0:n._id)),{form:c,isSubmitting:f}=lj(l,{defaultValues:e}),{editedContent:h,setEditedDictionary:m}=Fn(),{titleInput:E,keyInput:g,descriptionInput:_,projectInput:S,tagsSelect:C,auditButton:v}=sn(MJ),{auditContentDeclaration:R,isLoading:T}=vU(),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(nt,{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(nt.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(nt.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(nt.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(nt.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(nt.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(nt.Button,{type:"button",label:v.label.value,Icon:U9,variant:"outline",color:"text",className:"max-md:w-full",onClick:L,disabled:f||T,isLoading:T,children:v.text})})]})})},kJ={key:"dictionary-field-editor",content:{returnToDictionaryList:{label:Ee({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:Ee({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 GJ(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function sR(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 oR(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?sR(Object(n),!0).forEach(function(r){GJ(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sR(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function VJ(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 jJ(e,t){if(e==null)return{};var n=VJ(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 zJ(e,t){return KJ(e)||$J(e,t)||YJ(e,t)||ZJ()}function KJ(e){if(Array.isArray(e))return e}function $J(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 YJ(e,t){if(e){if(typeof e=="string")return lR(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 lR(e,t)}}function lR(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 ZJ(){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 WJ(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function cR(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 dR(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?cR(Object(n),!0).forEach(function(r){WJ(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cR(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function qJ(){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 JJ(e,t){return rh(t)||Nu("changeType"),Object.keys(t).some(function(n){return!XJ(e,n)})&&Nu("changeField"),t}function eee(e){Mc(e)||Nu("selectorType")}function tee(e){Mc(e)||rh(e)||Nu("handlerType"),rh(e)&&Object.values(e).some(function(t){return!Mc(t)})&&Nu("handlersType")}function nee(e){e||Nu("initialIsRequired"),rh(e)||Nu("initialType"),QJ(e)&&Nu("initialContent")}function ree(e,t){throw new Error(e[t]||e.default)}var iee={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(ree)(iee),K0={changes:JJ,selector:eee,handler:tee,initial:nee};function uee(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};K0.initial(e),K0.handler(t);var n={current:e},r=Zl(oee)(n,t),u=Zl(see)(n),o=Zl(K0.changes)(e),l=Zl(aee)(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){qJ(r,u,o,l)(h)}return[c,f]}function aee(e,t){return Mc(t)?t(e.current):t}function see(e,t){return e.current=dR(dR({},e.current),t),t}function oee(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 lee={create:uee},cee={paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.52.2/min/vs"}};function dee(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 fee(e){return{}.toString.call(e).includes("Object")}function hee(e){return e||fR("configIsRequired"),fee(e)||fR("configType"),e.urls?(Aee(),{paths:{vs:e.urls.monacoBase}}):e}function Aee(){console.warn(CB.deprecation)}function mee(e,t){throw new Error(e[t]||e.default)}var CB={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
- `},fR=dee(mee)(CB),pee={config:hee},Eee=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 vB(e,t){return Object.keys(t).forEach(function(n){t[n]instanceof Object&&e[n]&&Object.assign(t[n],vB(e[n],t[n]))}),oR(oR({},e),t)}var gee={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(gee):r(o)}),e.catch(u)});return n.cancel=function(){return t=!0},n}var _ee=lee.create({config:cee,isInitialized:!1,resolve:null,reject:null,monaco:null}),RB=zJ(_ee,2),cd=RB[0],qh=RB[1];function See(e){var t=pee.config(e),n=t.monaco,r=jJ(t,["monaco"]);qh(function(u){return{config:vB(u.config,r),monaco:n}})}function Nee(){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 TB(window.monaco),e.resolve(window.monaco),SE(NE);Eee(Iee,Cee)(vee)}return SE(NE)}function Iee(e){return document.body.appendChild(e)}function yee(e){var t=document.createElement("script");return e&&(t.src=e),t}function Cee(e){var t=cd(function(r){var u=r.config,o=r.reject;return{config:u,reject:o}}),n=yee("".concat(t.config.paths.vs,"/loader.js"));return n.onload=function(){return e()},n.onerror=t.reject,n}function vee(){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){TB(n),e.resolve(n)},function(n){e.reject(n)})}function TB(e){cd().monaco||qh({monaco:e})}function Ree(){return cd(function(e){var t=e.monaco;return t})}var NE=new Promise(function(e,t){return qh({resolve:e,reject:t})}),DB={config:See,init:Nee,__getMonacoInstance:Ree},Tee={wrapper:{display:"flex",position:"relative",textAlign:"initial"},fullWidth:{width:"100%"},hide:{display:"none"}},IE=Tee,Dee={container:{display:"flex",height:"100%",width:"100%",justifyContent:"center",alignItems:"center"}},bee=Dee;function xee({children:e}){return $e.createElement("div",{style:bee.container},e)}var Bee=xee,Fee=Bee;function Oee({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(Fee,null,r),$e.createElement("div",{ref:u,style:{...IE.fullWidth,...!n&&IE.hide},className:o}))}var Lee=Oee,bB=y.memo(Lee);function wee(e){y.useEffect(e,[])}var xB=wee;function Mee(e,t,n=!0){let r=y.useRef(!0);y.useEffect(r.current||!n?()=>{r.current=!1}:e,t)}var Wn=Mee;function uc(){}function Ks(e,t,n,r){return Pee(e,r)||Hee(e,t,n,r)}function Pee(e,t){return e.editor.getModel(BB(e,t))}function Hee(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 Uee({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[T,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),ce=y.useRef(!1);xB(()=>{let te=DB.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],T),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],T),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],T),Wn(()=>{var te,V;(V=(te=B.current)==null?void 0:te.getModel())==null||V.original.setValue(e||"")},[e],T),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],T),Wn(()=>{var te;(te=O.current)==null||te.editor.setTheme(h)},[h],T),Wn(()=>{var te;(te=B.current)==null||te.updateOptions(E)},[E],T);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]),de=y.useCallback(()=>{var te;!ce.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),ce.current=!0)},[E,h,ae]);y.useEffect(()=>{T&&U.current(B.current,O.current)},[T]),y.useEffect(()=>{!L&&!T&&de()},[L,T,de]);function Z(){var V,ee,X,Ae;let te=(V=B.current)==null?void 0:V.getModel();c||((ee=te==null?void 0:te.original)==null||ee.dispose()),f||((X=te==null?void 0:te.modified)==null||X.dispose()),(Ae=B.current)==null||Ae.dispose()}return $e.createElement(bB,{width:_,height:g,isEditorReady:T,loading:m,_ref:H,className:S,wrapperProps:C})}var kee=Uee;y.memo(kee);function Gee(e){let t=y.useRef();return y.useEffect(()=>{t.current=e},[e]),t.current}var Vee=Gee,$0=new Map;function jee({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:T=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),ce=y.useRef(null),ae=y.useRef(T),de=y.useRef(R),Z=y.useRef(),te=y.useRef(r),V=Vee(o),ee=y.useRef(!1),X=y.useRef(!1);xB(()=>{let W=DB.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,fe;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&&((fe=G.current)==null||fe.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()&&(X.current=!0,G.current.executeEdits("",[{range:G.current.getModel().getFullModelRange(),text:r,forceMoveMarkers:!0}]),G.current.pushUndoStop(),X.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(!(!ce.current||!U.current)&&!ee.current){de.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(ce.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=>{X.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(fe=>fe.path===re.path)){let fe=U.current.editor.getModelMarkers({resource:re});L==null||L(fe)}});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(bB,{width:_,height:S,isEditorReady:x,loading:f,_ref:ce,className:C,wrapperProps:v})}var zee=jee,Kee=y.memo(zee);const $ee=({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(IB,{content:e})})}),N.jsx("div",{className:"z-0 grid size-full grid-cols-[0px] overflow-auto",ref:c,children:N.jsx(Kee,{...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"})})]})},Yee=({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($ee,{language:"json",onChange:l=>{u(l??"{}")&&n(e.key,JSON.parse(l??"{}"))},isDarkMode:t,children:JSON.stringify(o,null,2)})})},Zee={key:"node-type-selector",content:{triggerPlaceHolder:Ee({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:Ee({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:Ee({en:"Text","en-GB":"Text",fr:"Texte",es:"Texto",de:"Text",ja:"テキスト",ko:"텍스트",zh:"文本",it:"Testo",pt:"Texto",hi:"पाठ",ar:"نص",ru:"Текст"}),number:Ee({en:"Number","en-GB":"Number",fr:"Nombre",es:"Número",de:"Zahl",ja:"数字",ko:"숫자",zh:"数字",it:"Numero",pt:"Número",hi:"संख्या",ar:"رقم",ru:"Число"}),boolean:Ee({en:"Boolean","en-GB":"Boolean",fr:"Booléen",es:"Booleano",de:"Bool",ja:"ブール",ko:"불리언",zh:"布尔",it:"Booleano",pt:"Booleano",hi:"बूलियन",ar:"منطقي",ru:"Булево"}),node:Ee({en:"Object","en-GB":"Object",fr:"Objet",es:"Objeto",de:"Objekt",ja:"オブジェクト",ko:"객체",zh:"对象",it:"Oggetto",pt:"Objeto",hi:"ऑब्जेक्ट",ar:"كائن",ru:"Объект"}),array:Ee({en:"Array","en-GB":"Array",fr:"Tableau",es:"Arreglo",de:"Array",ja:"配列",ko:"배열",zh:"数组",it:"Array",pt:"Array",hi:"ऐरे",ar:"مصفوفة",ru:"Массив"}),enumeration:Ee({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:Ee({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:Ee({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:Ee({en:"Condition","en-GB":"Condition",fr:"Condition",es:"Condición",de:"Bedingung",ja:"条件",ko:"조건",zh:"条件",it:"Condizione",pt:"Condição",hi:"शर्त्ता",ar:"شرط",ru:"Условие"}),file:Ee({en:"File","en-GB":"File",fr:"Fichier",es:"Archivo",de:"Datei",ja:"ファイル",ko:"파일",zh:"文件",it:"File",pt:"Arquivo",hi:"फ़ाइल",ar:"ملف",ru:"Файл"}),markdown:Ee({en:"Markdown","en-GB":"Markdown",fr:"Markdown",es:"Markdown",de:"Markdown",ja:"マークダウン",ko:"마크다운",zh:"Markdown",it:"Markdown",pt:"Markdown",hi:"मार्कडाउन",ar:"مارك داون",ru:"Markdown"}),reactNode:Ee({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(Zee),v=co(e),[R,T]=y.useState(v),b=L=>{T(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})]})]})},FB={key:"editor-view",content:{titleInput:{placeholder:Ee({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:Ee({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:Ee({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:Ee({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=qR(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(qee,{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(FB),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(MT,{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)}})]})})},Wee=({section:e,keyPath:t,dictionaryKey:n})=>{const{addNodeButton:r}=sn(FB),{setFocusedContentKeyPath:u}=Qg(),{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})]})},qee=({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(Wee,{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(kJ),{setFocusedContent:f}=Qg(),{setLocaleDictionaries:h}=qg();return y.useEffect(()=>{f(m=>({...m??{},dictionaryKey:e.key})),h(m=>({...m,[e.key]:e}))},[]),N.jsx(fZ,{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:W8,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(UJ,{dictionary:e}),o===2&&N.jsx(Qee,{dictionary:e}),o===1&&N.jsx(wJ,{dictionary:e,isDarkMode:n}),o===3&&N.jsx(Yee,{dictionary:e,isDarkMode:n}),N.jsx(ex,{dictionary:e,mode:r})]})})},Jee=()=>{const{toasts:e}=fT();return N.jsxs(uU.Provider,{children:[e.map(({id:t,title:n,description:r,action:u,...o})=>N.jsxs(oU,{...o,children:[N.jsxs("div",{className:"grid gap-1",children:[n&&N.jsx(cU,{children:n}),r&&N.jsx(dU,{children:r})]}),u,N.jsx(lU,{})]},t)),N.jsx(aU,{})]})},OB=(...e)=>{const{localeDictionaries:t}=YR(),{data:n,isWaitingData:r}=IU(...e),u=y.useMemo(()=>((n==null?void 0:n.data)??[]).reduce((l,c)=>(l[c.key]=c,l),{}),[n]),o=y.useMemo(()=>BU(u??{},t),[u,t]);return{online:u,locale:t,all:o,isLoading:r}},ete=typeof window<"u",tte={useManualTiming:!1};function nte(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"],rte=40;function ite(e,t){let n=!1,r=!0;const u={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,l=Z0.reduce((R,T)=>(R[T]=nte(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,rte),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,T)=>{const b=l[T];return R[T]=(L,x=!1,B=!1)=>(n||S(),b.schedule(L,x,B)),R},{}),cancel:R=>{for(let T=0;T<Z0.length;T++)l[Z0[T]].cancel(R)},state:u,steps:l}}const{schedule:Mr,cancel:Hg,state:ih}=ite(typeof requestAnimationFrame<"u"?requestAnimationFrame:Qt,!0),ute=y.createContext({strict:!1}),hR={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 hR)Pc[e]={isEnabled:t=>hR[e].some(n=>!!t[n])};function AR(e){for(const t in e)Pc[t]={...Pc[t],...e[t]}}function ate({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,AR(l)}return y.useEffect(()=>{yE(t)&&t().then(({renderer:o,...l})=>{AR(l),u.current=o,r(!0)})},[]),N.jsx(ute.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 LB(e){return k_(e.animate)||V_.some(t=>U_(e[t]))}function ste(e){return!!(LB(e)||e.variants)}const j_=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),ote="framerAppearId",lte="data-"+j_(ote),cte=["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 dte(e){return typeof e!="string"||e.includes("-")?!1:!!(cte.indexOf(e)>-1||/[A-Z]/u.test(e))}function mR(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function wB(e,t,n,r){if(typeof t=="function"){const[u,o]=mR(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]=mR(r);t=t(n!==void 0?n:e.custom,u,o)}return t}const Ug=e=>Array.isArray(e),fte=e=>Ug(e)?e[e.length-1]||0:e,Sr=e=>!!(e&&e.getVelocity),Do=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],bo=new Set(Do),MB=e=>t=>typeof t=="string"&&t.startsWith(e),PB=MB("--"),hte=MB("var(--"),z_=e=>hte(e)?Ate.test(e.split("/*")[0].trim()):!1,Ate=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,HB=(e,t)=>t&&typeof e=="number"?t.transform(e):e,ka=(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=>ka(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"),Xs=dd("%"),je=dd("px"),mte=dd("vh"),pte=dd("vw"),pR={...Xs,parse:e=>Xs.parse(e)/100,transform:e=>Xs.transform(e*100)},Ete={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},gte={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:pR,originY:pR,originZ:je},ER={...xo,transform:Math.round},K_={...Ete,...gte,zIndex:ER,size:je,fillOpacity:Hc,strokeOpacity:Hc,numOctaves:ER},_te={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Ste=Do.length;function Nte(e,t,n){let r="",u=!0;for(let o=0;o<Ste;o++){const l=Do[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=HB(c,K_[l]);if(!f){u=!1;const m=_te[l]||l;r+=`${m}(${h}) `}n&&(t[l]=h)}}return r=r.trim(),n?r=n(t,u?"":r):u&&(r="none"),r}function UB(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(PB(f)){u[f]=h;continue}else{const m=HB(h,K_[f]);f.startsWith("origin")?(c=!0,o[f]=m):r[f]=m}}if(t.transform||(l||n?r.transform=Nte(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 Ite={offset:"stroke-dashoffset",array:"stroke-dasharray"},yte={offset:"strokeDashoffset",array:"strokeDasharray"};function Cte(e,t,n=1,r=0,u=!0){e.pathLength=1;const o=u?Ite:yte;e[o.offset]=je.transform(-r);const l=je.transform(t),c=je.transform(n);e[o.array]=`${l} ${c}`}function gR(e,t,n){return typeof e=="string"?e:je.transform(t+n*e)}function vte(e,t,n){const r=gR(t,e.x,e.width),u=gR(n,e.y,e.height);return`${r} ${u}`}function Rte(e,{attrX:t,attrY:n,attrScale:r,originX:u,originY:o,pathLength:l,pathSpacing:c=1,pathOffset:f=0,...h},m,E){if(UB(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=vte(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&&Cte(g,l,c,f,!1)}const Tte=e=>typeof e=="string"&&e.toLowerCase()==="svg";function kB(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 GB=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){kB(e,t,void 0,r);for(const u in t.attrs)e.setAttribute(GB.has(u)?u:j_(u),t.attrs[u])}const bte={};function xte(e,{layout:t,layoutId:n}){return bo.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!bte[e]||e==="opacity")}function VB(e,t,n){var r;const{style:u}=e,o={};for(const l in u)(Sr(u[l])||t.style&&Sr(t.style[l])||xte(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 Bte(e,t,n){const r=VB(e,t,n);for(const u in e)if(Sr(e[u])||Sr(t[u])){const o=Do.indexOf(u)!==-1?"attr"+u.charAt(0).toUpperCase()+u.substring(1):u;r[o]=e[u]}return r}function jB(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 Qh(e,t,n){const r=e.getProps();return wB(r,t,n!==void 0?n:r.custom,e)}const zB=new Set(["width","height","top","left","right","bottom",...Do]);let Af;function Fte(){Af=void 0}const Iu={now:()=>(Af===void 0&&Iu.set(ih.isProcessing||tte.useManualTiming?ih.timestamp:performance.now()),Af),set:e=>{Af=e,queueMicrotask(Fte)}};function Ote(e,t){e.indexOf(t)===-1&&e.push(t)}function Lte(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class KB{constructor(){this.subscriptions=[]}add(t){return Ote(this.subscriptions,t),()=>Lte(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 $B(e,t){return t?e*(1e3/t):0}const _R=30,wte=e=>!isNaN(parseFloat(e));class Mte{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=wte(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 KB);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>_R)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,_R);return $B(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 Mte(e,t)}function Pte(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,uh(n))}function Hte(e,t){const n=Qh(e,t);let{transitionEnd:r={},transition:u={},...o}=n||{};o={...o,...r};for(const l in o){const c=fte(o[l]);Pte(e,l,c)}}function Ute(e){return!!(Sr(e)&&e.add)}function kte(e,t){const n=e.getValue("willChange");if(Ute(n))return n.add(t)}function Gte(e){return e.props[lte]}const YB=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,Vte=1e-7,jte=12;function zte(e,t,n,r,u){let o,l,c=0;do l=t+(n-t)/2,o=YB(l,r,u)-e,o>0?n=l:t=l;while(Math.abs(o)>Vte&&++c<jte);return l}function fd(e,t,n,r){if(e===t&&n===r)return Qt;const u=o=>zte(o,0,1,e,n);return o=>o===0||o===1?o:YB(u(o),t,r)}const ZB=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,WB=e=>t=>1-e(1-t),qB=fd(.33,1.53,.69,.99),$_=WB(qB),QB=ZB($_),XB=e=>(e*=2)<1?.5*$_(e):.5*(2-Math.pow(2,-10*(e-1))),Y_=e=>1-Math.sin(Math.acos(e)),Kte=WB(Y_),JB=ZB(Y_),eF=e=>/^0[^.\s]+$/u.test(e);function $te(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||eF(e):!0}const ac=e=>Math.round(e*1e5)/1e5,Z_=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Yte(e){return e==null}const Zte=/^(?:#[\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"&&Zte.test(n)&&n.startsWith(e)||t&&!Yte(n)&&Object.prototype.hasOwnProperty.call(n,t)),tF=(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}},Wte=e=>ka(0,255,e),CE={...xo,transform:e=>Math.round(Wte(e))},Ta={test:W_("rgb","red"),parse:tF("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 qte(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:qte,transform:Ta.transform},$s={test:W_("hsl","hue"),parse:tF("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Xs.transform(ac(t))+", "+Xs.transform(ac(n))+", "+ac(Hc.transform(r))+")"},In={test:e=>Ta.test(e)||kg.test(e)||$s.test(e),parse:e=>Ta.test(e)?Ta.parse(e):$s.test(e)?$s.parse(e):kg.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Ta.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 nF="number",rF="color",Jte="var",ene="var(",SR="${}",tne=/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(tne,f=>(In.test(f)?(r.color.push(o),u.push(rF),n.push(In.parse(f))):f.startsWith(ene)?(r.var.push(o),u.push(Jte),n.push(f)):(r.number.push(o),u.push(nF),n.push(parseFloat(f))),++o,SR)).split(SR);return{values:n,split:c,indexes:r,types:u}}function iF(e){return Uc(e).values}function uF(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===nF?o+=ac(u[l]):c===rF?o+=In.transform(u[l]):o+=u[l]}return o}}const nne=e=>typeof e=="number"?0:e;function rne(e){const t=iF(e);return uF(e)(t.map(nne))}const Bo={test:Xte,parse:iF,createTransformer:uF,getAnimatableNone:rne},ine=new Set(["brightness","contrast","saturate","opacity"]);function une(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=ine.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+u+")"}const ane=/\b([a-z-]*)\(.*?\)/gu,Gg={...Bo,getAnimatableNone:e=>{const t=e.match(ane);return t?t.map(une).join(" "):e}},sne={...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=>sne[e];function aF(e,t){let n=q_(e);return n!==Gg&&(n=Bo),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const one=new Set(["auto","none","0"]);function lne(e,t,n){let r=0,u;for(;r<e.length&&!u;){const o=e[r];typeof o=="string"&&!one.has(o)&&Uc(o).values.length&&(u=e[r]),r++}if(u&&n)for(const o of t)e[o]=aF(n,u)}const NR=e=>e===xo||e===je,IR=(e,t)=>parseFloat(e.split(", ")[t]),yR=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const u=r.match(/^matrix3d\((.+)\)$/u);if(u)return IR(u[1],t);{const o=r.match(/^matrix\((.+)\)$/u);return o?IR(o[1],e):0}},cne=new Set(["x","y","z"]),dne=Do.filter(e=>!cne.has(e));function fne(e){const t=[];return dne.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:yR(4,13),y:yR(5,14)};lo.translateX=lo.x;lo.translateY=lo.y;const xa=new Set;let Vg=!1,jg=!1;function sF(){if(jg){const e=Array.from(xa).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const u=fne(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,xa.forEach(e=>e.complete()),xa.clear()}function oF(){xa.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(jg=!0)})}function hne(){oF(),sF()}class Q_{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?(xa.add(this),Vg||(Vg=!0,Mr.read(oF),Mr.resolveKeyframes(sF))):(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),xa.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,xa.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const lF=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),Ane=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function mne(e){const t=Ane.exec(e);if(!t)return[,];const[,n,r,u]=t;return[`--${n??r}`,u]}function cF(e,t,n=1){const[r,u]=mne(e);if(!r)return;const o=window.getComputedStyle(t).getPropertyValue(r);if(o){const l=o.trim();return lF(l)?parseFloat(l):l}return z_(u)?cF(u,t,n+1):u}const dF=e=>t=>t.test(e),pne={test:e=>e==="auto",parse:e=>e},fF=[xo,je,Xs,_u,pte,mte,pne],CR=e=>fF.find(dF(e));class hF extends Q_{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=cF(h,n.current);m!==void 0&&(t[f]=m),f===t.length-1&&(this.finalKeyframe=h)}}if(this.resolveNoneKeyframes(),!zB.has(r)||t.length!==2)return;const[u,o]=t,l=CR(u),c=CR(o);if(l!==c)if(NR(l)&&NR(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++)$te(t[u])&&r.push(u);r.length&&lne(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 vR=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Bo.test(e)||e==="0")&&!e.startsWith("url("));function Ene(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 gne(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=vR(u,t),c=vR(o,t);return!l||!c?!1:Ene(e)||(n==="spring"||Co(n))&&r}const _ne=e=>e!==null;function Xh(e,{repeat:t,repeatType:n="loop"},r){const u=e.filter(_ne),o=t&&n!=="loop"&&t%2===1?0:u.length-1;return!o||r===void 0?u[o]:r}const Sne=40;class AF{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>Sne?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&hne(),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&&!gne(t,r,u,o))if(l)this.options.duration=0;else{f&&f(Xh(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 Nne({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)},Ine=[kg,Ta,$s],yne=e=>Ine.find(t=>t.test(e));function RR(e){const t=yne(e);if(!t)return!1;let n=t.parse(e);return t===$s&&(n=Nne(n)),n}const TR=(e,t)=>{const n=RR(e),r=RR(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),Ta.transform(u))},Cne=(e,t)=>n=>t(e(n)),eA=(...e)=>e.reduce(Cne),zg=new Set(["none","hidden"]);function vne(e,t){return zg.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function Rne(e,t){return n=>Jh(e,t,n)}function X_(e){return typeof e=="number"?Rne:typeof e=="string"?z_(e)?ah:In.test(e)?TR:bne:Array.isArray(e)?mF:typeof e=="object"?In.test(e)?TR:Tne:ah}function mF(e,t){const n=[...e],r=n.length,u=e.map((o,l)=>X_(o)(o,t[l]));return o=>{for(let l=0;l<r;l++)n[l]=u[l](o);return n}}function Tne(e,t){const n={...e,...t},r={};for(const u in n)e[u]!==void 0&&t[u]!==void 0&&(r[u]=X_(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 bne=(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?vne(e,t):eA(mF(Dne(r,u),u.values),n):ah(e,t)};function pF(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?Jh(e,t,n):X_(e)(e,t)}const xne=5;function EF(e,t,n){const r=Math.max(t-xne,0);return $B(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 Bne({duration:e=wt.duration,bounce:t=wt.bounce,velocity:n=wt.velocity,mass:r=wt.mass}){let u,o,l=1-t;l=ka(wt.minDamping,wt.maxDamping,l),e=ka(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=One(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 Fne=12;function One(e,t,n){let r=n;for(let u=1;u<Fne;u++)r=r-e(r)/t(r);return r}function Kg(e,t){return e*Math.sqrt(1-t*t)}const Lne=["duration","bounce"],wne=["stiffness","damping","mass"];function bR(e,t){return t.some(n=>e[n]!==void 0)}function Mne(e){let t={velocity:wt.velocity,stiffness:wt.stiffness,damping:wt.damping,mass:wt.mass,isResolvedFromDuration:!1,...e};if(!bR(e,wne)&&bR(e,Lne))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),u=r*r,o=2*ka(.05,1,1-(e.bounce||0))*Math.sqrt(u);t={...t,mass:wt.mass,stiffness:u,damping:o}}else{const n=Bne(e);t={...t,...n,mass:wt.mass},t.isResolvedFromDuration=!0}return t}function gF(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:_}=Mne({...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)),T=Math.abs(v)<5;r||(r=T?wt.restSpeed.granular:wt.restSpeed.default),u||(u=T?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):EF(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 xR({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 T=H=>-C*Math.exp(-H/r),b=H=>R+T(H),L=H=>{const U=T(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=gF({keyframes:[g.value,S(g.value)],velocity:EF(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 Pne=fd(.42,0,1,1),Hne=fd(0,0,.58,1),_F=fd(.42,0,.58,1),Une=e=>Array.isArray(e)&&typeof e[0]!="number",kne={linear:Qt,easeIn:Pne,easeInOut:_F,easeOut:Hne,circIn:Y_,circInOut:JB,circOut:Kte,backIn:$_,backInOut:QB,backOut:qB,anticipate:XB},BR=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 kne[e];return e};function Gne(e,t,n){const r=[],u=n||pF,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]||Qt:t;c=eA(f,c)}r.push(c)}return r}function Vne(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=Gne(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(ka(e[0],e[o-1],m)):h}function jne(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 zne(e){const t=[0];return jne(t,e.length-1),t}function Kne(e,t){return e.map(n=>n*t)}function $ne(e,t){return e.map(()=>t||_F).splice(0,e.length-1)}function sh({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const u=Une(r)?r.map(BR):BR(r),o={done:!1,value:t[0]},l=Kne(n&&n.length===t.length?n:zne(t),e),c=Vne(l,t,{ease:Array.isArray(u)?u:$ne(t,u)});return{calculatedDuration:e,next:f=>(o.value=c(f),o.done=f>=e,o)}}const Yne=e=>{const t=({timestamp:n})=>e(n);return{start:()=>Mr.update(t,!0),stop:()=>Hg(t),now:()=>ih.isProcessing?ih.timestamp:Iu.now()}},Zne={decay:xR,inertia:xR,tween:sh,keyframes:sh,spring:gF},Wne=e=>e/100;class J_ extends AF{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)||Q_,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:Zne[n]||sh;let f,h;c!==sh&&typeof t[0]!="number"&&(f=eA(Wne,pF(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),T=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=ka(0,1,G)*E}const x=T?{done:!1,value:f[0]}:L.next(b);c&&(x.value=c(x.value));let{done:B}=x;!T&&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=Xh(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=Yne,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 qne=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,Jne=2e4;function ere(e){return Co(e.type)||e.type==="spring"||!i_(e.ease)}function tre(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<Jne;)r=n.sample(o),u.push(r.value),o+=oh;return{times:void 0,keyframes:u,duration:o-oh,ease:"linear"}}const SF={anticipate:XB,backInOut:QB,circInOut:JB};function nre(e){return e in SF}class FR extends AF{constructor(t){super(t);const{name:n,motionValue:r,element:u,keyframes:o}=this.options;this.resolver=new hF(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()&&nre(o)&&(o=SF[o]),ere(this.options)){const{onComplete:E,onUpdate:g,motionValue:_,element:S,...C}=this.options,v=tre(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(Xh(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 Qt;const{animation:r}=n;kf(r,t)}return Qt}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&&qne.has(r)&&!f&&!h&&!u&&o!=="mirror"&&l!==0&&c!=="inertia"}}const rre={type:"spring",stiffness:500,damping:25,restSpeed:10},ire=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),ure={type:"keyframes",duration:.8},are={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},sre=(e,{keyframes:t})=>t.length>2?ure:bo.has(e)?e.startsWith("scale")?ire(t[1]):rre:are;function ore({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 lre=(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};ore(c)||(m={...m,...sre(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=Xh(m.keyframes,c);if(g!==void 0)return Mr.update(()=>{m.onUpdate(g),m.onComplete()}),new $1([])}return!o&&FR.supports(m)?new FR(m):new J_(m)};function cre({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function NF(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&&cre(m,E))continue;const S={delay:n,...rd(l||{},E)};let C=!1;if(window.MotionHandoffAnimation){const R=Gte(e);if(R){const T=window.MotionHandoffAnimation(R,E,Mr);T!==null&&(S.startTime=T,C=!0)}}kte(e,E),g.start(lre(E,g,_,e.shouldReduceMotion&&zB.has(E)?{type:!1}:S,e,C));const v=g.animation;v&&h.push(v)}return c&&Promise.all(h).then(()=>{Mr.update(()=>{c&&Hte(e,c)})}),h}function $g(e,t,n={}){var r;const u=Qh(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(NF(e,u,n)):()=>Promise.resolve(),c=e.variantChildren&&e.variantChildren.size?(h=0)=>{const{delayChildren:m=0,staggerChildren:E,staggerDirection:g}=o;return dre(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 dre(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(fre).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 fre(e,t){return e.sortNodePosition(t)}function hre(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"?Qh(e,t,n.custom):t;r=Promise.all(NF(e,u,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}const Are=V_.length;function IF(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?IF(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<Are;n++){const r=V_[n],u=e.props[r];(U_(u)||u===!1)&&(t[r]=u)}return t}const mre=[...G_].reverse(),pre=G_.length;function Ere(e){return t=>Promise.all(t.map(({animation:n,options:r})=>hre(e,n,r)))}function gre(e){let t=Ere(e),n=OR(),r=!0;const u=f=>(h,m)=>{var E;const g=Qh(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=IF(e.parent)||{},E=[],g=new Set;let _={},S=1/0;for(let v=0;v<pre;v++){const R=mre[v],T=n[R],b=h[R]!==void 0?h[R]:m[R],L=U_(b),x=R===f?T.isActive:null;x===!1&&(S=v);let B=b===m[R]&&b!==h[R]&&L;if(B&&r&&e.manuallyAnimateOnMount&&(B=!1),T.protectedKeys={..._},!T.isActive&&x===null||!b&&!T.prevProp||k_(b)||typeof b=="boolean")continue;const O=_re(T.prevProp,b);let H=O||R===f&&T.isActive&&!B&&L||v>S&&L,U=!1;const G=Array.isArray(b)?b:[b];let ce=G.reduce(u(R),{});x===!1&&(ce={});const{prevResolvedValues:ae={}}=T,de={...ae,...ce},Z=ee=>{H=!0,g.has(ee)&&(U=!0,g.delete(ee)),T.needsAnimating[ee]=!0;const X=e.getValue(ee);X&&(X.liveStyle=!1)};for(const ee in de){const X=ce[ee],Ae=ae[ee];if(_.hasOwnProperty(ee))continue;let P=!1;Ug(X)&&Ug(Ae)?P=!jB(X,Ae):P=X!==Ae,P?X!=null?Z(ee):g.add(ee):X!==void 0&&g.has(ee)?Z(ee):T.protectedKeys[ee]=!0}T.prevProp=b,T.prevResolvedValues=ce,T.isActive&&(_={..._,...ce}),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 T=e.getBaseTarget(R),b=e.getValue(R);b&&(b.liveStyle=!0),v[R]=T??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=OR(),r=!0}}}function _re(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!jB(t,e):!1}function Ea(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function OR(){return{animate:Ea(!0),whileInView:Ea(),whileHover:Ea(),whileTap:Ea(),whileDrag:Ea(),whileFocus:Ea(),exit:Ea()}}class Fo{constructor(t){this.isMounted=!1,this.node=t}update(){}}class Sre extends Fo{constructor(t){super(t),t.animationState||(t.animationState=gre(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 Nre=0;class Ire extends Fo{constructor(){super(...arguments),this.id=Nre++}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 yre={animation:{Feature:Sre},exit:{Feature:Ire}};function LR(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function yF(e){return{point:{x:e.pageX,y:e.pageY}}}const wR=()=>({min:0,max:0}),CF=()=>({x:wR(),y:wR()});function Cre({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function vre(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 Rre(e,t){return Cre(vre(e.getBoundingClientRect(),t))}function MR(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,yF(t)))}class Tre extends Fo{mount(){const{current:t}=this.node;t&&(this.unmount=W1(t,n=>(MR(this.node,n,"Start"),r=>MR(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(LR(this.node.current,"focus",()=>this.onFocus()),LR(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function PR(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,yF(t)))}class bre extends Fo{mount(){const{current:t}=this.node;t&&(this.unmount=Q1(t,n=>(PR(this.node,n,"Start"),(r,{success:u})=>PR(this.node,r,u?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const Yg=new WeakMap,TE=new WeakMap,xre=e=>{const t=Yg.get(e.target);t&&t(e)},Bre=e=>{e.forEach(xre)};function Fre({root:e,...t}){const n=e||document;TE.has(n)||TE.set(n,{});const r=TE.get(n),u=JSON.stringify(t);return r[u]||(r[u]=new IntersectionObserver(Bre,{root:e,...t})),r[u]}function Ore(e,t,n){const r=Fre(t);return Yg.set(e,n),r.observe(e),()=>{Yg.delete(e),r.unobserve(e)}}const Lre={some:0,all:1};class wre 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:Lre[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 Ore(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(Mre(t,n))&&this.startObserver()}unmount(){}}function Mre({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const Pre={inView:{Feature:wre},tap:{Feature:bre},focus:{Feature:Dre},hover:{Feature:Tre}},Zg={current:null},vF={current:!1};function Hre(){if(vF.current=!0,!!ete)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Zg.current=e.matches;e.addListener(t),t()}else Zg.current=!1}const Ure=[...fF,In,Bo],kre=e=>Ure.find(dF(e)),HR=new WeakMap;function Gre(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 UR=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class Vre{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=Q_,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=LB(n),this.isVariantNode=ste(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,HR.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)),vF.current||Hre(),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(){HR.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):CF()}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<UR.length;r++){const u=UR[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=Gre(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"&&(lF(u)||eF(u))?u=parseFloat(u):!kre(u)&&Bo.test(n)&&(u=aF(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=wB(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 KB),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class RF extends Vre{constructor(){super(...arguments),this.KeyframeResolver=hF}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 jre(e){return window.getComputedStyle(e)}class zre extends RF{constructor(){super(...arguments),this.type="html",this.renderInstance=kB}readValueFromInstance(t,n){if(bo.has(n)){const r=q_(n);return r&&r.default||0}else{const r=jre(t),u=(PB(n)?r.getPropertyValue(n):r[n])||0;return typeof u=="string"?u.trim():u}}measureInstanceViewportBox(t,{transformPagePoint:n}){return Rre(t,n)}build(t,n,r){UB(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return VB(t,n,r)}}class Kre extends RF{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=CF}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(bo.has(n)){const r=q_(n);return r&&r.default||0}return n=GB.has(n)?n:j_(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return Bte(t,n,r)}build(t,n,r){Rte(t,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,n,r,u){Dte(t,n,r,u)}mount(t){this.isSVGTag=Tte(t.tagName),super.mount(t)}}const $re=(e,t)=>dte(e)?new Kre(t):new zre(t,{allowProjection:e!==y.Fragment}),Yre={renderer:$re,...yre,...Pre},Zre=({children:e})=>N.jsx(ate,{features:Yre,children:e}),Wre=({children:e})=>N.jsx(Zre,{children:N.jsxs(rH,{children:[N.jsx(Jee,{}),e]})}),qre=({children:e})=>N.jsx(YM,{children:N.jsx(CM,{children:N.jsx(_9,{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(),TF=(...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 Jre=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:TF("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 DF=(e,t)=>{const n=y.forwardRef(({className:r,...u},o)=>y.createElement(Jre,{ref:o,iconNode:t,className:TF(`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 eie=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],tie=DF("ChevronRight",eie);/**
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 nie=[["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"}]],rie=DF("Pencil",nie),Wg="dictionaryList",bF={key:"dictionary-edition-drawer",content:{openDictionaryEditor:{label:Ee({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:Ee({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:Ee({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:Ee({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}`,xF=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)}}},iie=({locale:e,identifier:t,handleOnBack:n,isDarkMode:r})=>{const{modalTitle:u,openDictionaryEditor:o}=sn(bF),[l,c]=y.useState(!1),{all:f}=OB(),{focusedContent:h}=xF(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(Jb,{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:rie,label:o.label.value,onClick:()=>c(!0)})]}),N.jsx(yY,{dictionary:g,locale:e,mode:["local","remote"]})]}):N.jsx(N.Fragment,{children:"No dictionary focused"})},uie=({locale:e,dictionaryKey:t,isDarkMode:n})=>{const{backButtonText:r}=sn(bF),u=eS(t),{focusedContent:o,close:l}=xF(t),{openDictionaryListDrawer:c}=ph(h=>({openDictionaryListDrawer:()=>h.open(Wg)})),f=()=>{l(),c()};return N.jsx($9,{identifier:u,backButton:{onBack:f,text:r.value},onClose:l,children:o&&N.jsx(iie,{focusedContent:o,locale:e,identifier:u,handleOnBack:f,isDarkMode:n})})},aie=({locale:e,isDarkMode:t})=>{const{focusedContent:n}=Ou(),r=n==null?void 0:n.dictionaryKey;return r?N.jsx(uie,{locale:e,dictionaryKey:r,isDarkMode:t}):N.jsx(N.Fragment,{})},sie=()=>{const{all:e}=OB(),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($9,{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:tie,size:"md",isFullWidth:!0,children:c(f)?`✎ ${f}`:f})},f))})},oie=({children:e})=>{const[t]=Ga("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(aie,{locale:t}),N.jsx(sie,{})]})},lie=()=>{const[e,t]=y.useState();return y.useEffect(()=>{fetch("/api/config").then(n=>n.json()).then(n=>t(n.data))},[]),e},cie=({children:e,iframeRef:t})=>{const n=lie(),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(f2,{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,{})},die=()=>{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},fie=(...e)=>w9(Ah(e)),hie={key:"no-application-url-view",content:{title:Ee({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:Ee({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:Ee({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:Ee({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:"查看如何配置编辑器"})}}},Aie=()=>{const{title:e,description:t,documentationLink:n}=sn(hie);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})]})},mie=({iframeRef:e,applicationPath:t})=>{const{editor:n}=ii(),r=()=>u(n.enabled),u=u2();r9(r),die(),m2();const[o,l]=y.useState(!1),[c]=h2(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:fie("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(Aie,{})})})},pie=()=>{const e=y.useRef(null),t=Lu();return N.jsx(cie,{iframeRef:e,children:N.jsx(S2,{disableEditor:!0,children:N.jsx(oie,{children:N.jsx(mie,{iframeRef:e,applicationPath:t.pathname})})})})},Eie=()=>N.jsx(qre,{children:N.jsx(Wre,{children:N.jsx(pie,{})})});iw.createRoot(document.getElementById("root")).render(N.jsx(y.StrictMode,{children:N.jsx(Eie,{})}));