intlayer-editor 5.2.9 → 5.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -0,0 +1,297 @@
|
|
|
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 fO=Object.defineProperty;var AO=(e,t,n)=>t in e?fO(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var oe=(e,t,n)=>AO(e,typeof t!="symbol"?t+"":t,n);function hO(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const a in r)if(a!=="default"&&!(a in e)){const o=Object.getOwnPropertyDescriptor(r,a);o&&Object.defineProperty(e,a,o.get?o:{enumerable:!0,get:()=>r[a]})}}}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 a of document.querySelectorAll('link[rel="modulepreload"]'))r(a);new MutationObserver(a=>{for(const o of a)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(a){const o={};return a.integrity&&(o.integrity=a.integrity),a.referrerPolicy&&(o.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?o.credentials="include":a.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(a){if(a.ep)return;a.ep=!0;const o=n(a);fetch(a.href,o)}})();function Rf(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var gm={exports:{}},ol={};/**
|
|
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 gS;function mO(){if(gS)return ol;gS=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,a,o){var l=null;if(o!==void 0&&(l=""+o),a.key!==void 0&&(l=""+a.key),"key"in a){o={};for(var d in a)d!=="key"&&(o[d]=a[d])}else o=a;return a=o.ref,{$$typeof:e,type:r,key:l,ref:a!==void 0?a:null,props:o}}return ol.Fragment=t,ol.jsx=n,ol.jsxs=n,ol}var _S;function pO(){return _S||(_S=1,gm.exports=mO()),gm.exports}var N=pO(),_m={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 NS;function EO(){if(NS)return qe;NS=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),o=Symbol.for("react.consumer"),l=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),A=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),E=Symbol.iterator;function g(H){return H===null||typeof H!="object"?null:(H=E&&H[E]||H["@@iterator"],typeof H=="function"?H:null)}var _={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},S=Object.assign,y={};function v(H,W,V){this.props=H,this.context=W,this.refs=y,this.updater=V||_}v.prototype.isReactComponent={},v.prototype.setState=function(H,W){if(typeof H!="object"&&typeof H!="function"&&H!=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,H,W,"setState")},v.prototype.forceUpdate=function(H){this.updater.enqueueForceUpdate(this,H,"forceUpdate")};function R(){}R.prototype=v.prototype;function D(H,W,V){this.props=H,this.context=W,this.refs=y,this.updater=V||_}var x=D.prototype=new R;x.constructor=D,S(x,v.prototype),x.isPureReactComponent=!0;var L=Array.isArray,b={H:null,A:null,T:null,S:null},O=Object.prototype.hasOwnProperty;function F(H,W,V,re,te,ce){return V=ce.ref,{$$typeof:e,type:H,key:W,ref:V!==void 0?V:null,props:ce}}function j(H,W){return F(H.type,W,void 0,void 0,void 0,H.props)}function G(H){return typeof H=="object"&&H!==null&&H.$$typeof===e}function K(H){var W={"=":"=0",":":"=2"};return"$"+H.replace(/[=:]/g,function(V){return W[V]})}var Ae=/\/+/g;function se(H,W){return typeof H=="object"&&H!==null&&H.key!=null?K(""+H.key):W.toString(36)}function de(){}function $(H){switch(H.status){case"fulfilled":return H.value;case"rejected":throw H.reason;default:switch(typeof H.status=="string"?H.then(de,de):(H.status="pending",H.then(function(W){H.status==="pending"&&(H.status="fulfilled",H.value=W)},function(W){H.status==="pending"&&(H.status="rejected",H.reason=W)})),H.status){case"fulfilled":return H.value;case"rejected":throw H.reason}}throw H}function J(H,W,V,re,te){var ce=typeof H;(ce==="undefined"||ce==="boolean")&&(H=null);var Ee=!1;if(H===null)Ee=!0;else switch(ce){case"bigint":case"string":case"number":Ee=!0;break;case"object":switch(H.$$typeof){case e:case t:Ee=!0;break;case m:return Ee=H._init,J(Ee(H._payload),W,V,re,te)}}if(Ee)return te=te(H),Ee=re===""?"."+se(H,0):re,L(te)?(V="",Ee!=null&&(V=Ee.replace(Ae,"$&/")+"/"),J(te,W,V,"",function(je){return je})):te!=null&&(G(te)&&(te=j(te,V+(te.key==null||H&&H.key===te.key?"":(""+te.key).replace(Ae,"$&/")+"/")+Ee)),W.push(te)),1;Ee=0;var me=re===""?".":re+":";if(L(H))for(var ve=0;ve<H.length;ve++)re=H[ve],ce=me+se(re,ve),Ee+=J(re,W,V,ce,te);else if(ve=g(H),typeof ve=="function")for(H=ve.call(H),ve=0;!(re=H.next()).done;)re=re.value,ce=me+se(re,ve++),Ee+=J(re,W,V,ce,te);else if(ce==="object"){if(typeof H.then=="function")return J($(H),W,V,re,te);throw W=String(H),Error("Objects are not valid as a React child (found: "+(W==="[object Object]"?"object with keys {"+Object.keys(H).join(", ")+"}":W)+"). If you meant to render a collection of children, use an array instead.")}return Ee}function k(H,W,V){if(H==null)return H;var re=[],te=0;return J(H,re,"","",function(ce){return W.call(V,ce,te++)}),re}function ne(H){if(H._status===-1){var W=H._result;W=W(),W.then(function(V){(H._status===0||H._status===-1)&&(H._status=1,H._result=V)},function(V){(H._status===0||H._status===-1)&&(H._status=2,H._result=V)}),H._status===-1&&(H._status=0,H._result=W)}if(H._status===1)return H._result.default;throw H._result}var ee=typeof reportError=="function"?reportError:function(H){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var W=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof H=="object"&&H!==null&&typeof H.message=="string"?String(H.message):String(H),error:H});if(!window.dispatchEvent(W))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",H);return}console.error(H)};function pe(){}return qe.Children={map:k,forEach:function(H,W,V){k(H,function(){W.apply(this,arguments)},V)},count:function(H){var W=0;return k(H,function(){W++}),W},toArray:function(H){return k(H,function(W){return W})||[]},only:function(H){if(!G(H))throw Error("React.Children.only expected to receive a single React element child.");return H}},qe.Component=v,qe.Fragment=n,qe.Profiler=a,qe.PureComponent=D,qe.StrictMode=r,qe.Suspense=f,qe.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=b,qe.act=function(){throw Error("act(...) is not supported in production builds of React.")},qe.cache=function(H){return function(){return H.apply(null,arguments)}},qe.cloneElement=function(H,W,V){if(H==null)throw Error("The argument must be a React element, but you passed "+H+".");var re=S({},H.props),te=H.key,ce=void 0;if(W!=null)for(Ee in W.ref!==void 0&&(ce=void 0),W.key!==void 0&&(te=""+W.key),W)!O.call(W,Ee)||Ee==="key"||Ee==="__self"||Ee==="__source"||Ee==="ref"&&W.ref===void 0||(re[Ee]=W[Ee]);var Ee=arguments.length-2;if(Ee===1)re.children=V;else if(1<Ee){for(var me=Array(Ee),ve=0;ve<Ee;ve++)me[ve]=arguments[ve+2];re.children=me}return F(H.type,te,void 0,void 0,ce,re)},qe.createContext=function(H){return H={$$typeof:l,_currentValue:H,_currentValue2:H,_threadCount:0,Provider:null,Consumer:null},H.Provider=H,H.Consumer={$$typeof:o,_context:H},H},qe.createElement=function(H,W,V){var re,te={},ce=null;if(W!=null)for(re in W.key!==void 0&&(ce=""+W.key),W)O.call(W,re)&&re!=="key"&&re!=="__self"&&re!=="__source"&&(te[re]=W[re]);var Ee=arguments.length-2;if(Ee===1)te.children=V;else if(1<Ee){for(var me=Array(Ee),ve=0;ve<Ee;ve++)me[ve]=arguments[ve+2];te.children=me}if(H&&H.defaultProps)for(re in Ee=H.defaultProps,Ee)te[re]===void 0&&(te[re]=Ee[re]);return F(H,ce,void 0,void 0,null,te)},qe.createRef=function(){return{current:null}},qe.forwardRef=function(H){return{$$typeof:d,render:H}},qe.isValidElement=G,qe.lazy=function(H){return{$$typeof:m,_payload:{_status:-1,_result:H},_init:ne}},qe.memo=function(H,W){return{$$typeof:A,type:H,compare:W===void 0?null:W}},qe.startTransition=function(H){var W=b.T,V={};b.T=V;try{var re=H(),te=b.S;te!==null&&te(V,re),typeof re=="object"&&re!==null&&typeof re.then=="function"&&re.then(pe,ee)}catch(ce){ee(ce)}finally{b.T=W}},qe.unstable_useCacheRefresh=function(){return b.H.useCacheRefresh()},qe.use=function(H){return b.H.use(H)},qe.useActionState=function(H,W,V){return b.H.useActionState(H,W,V)},qe.useCallback=function(H,W){return b.H.useCallback(H,W)},qe.useContext=function(H){return b.H.useContext(H)},qe.useDebugValue=function(){},qe.useDeferredValue=function(H,W){return b.H.useDeferredValue(H,W)},qe.useEffect=function(H,W){return b.H.useEffect(H,W)},qe.useId=function(){return b.H.useId()},qe.useImperativeHandle=function(H,W,V){return b.H.useImperativeHandle(H,W,V)},qe.useInsertionEffect=function(H,W){return b.H.useInsertionEffect(H,W)},qe.useLayoutEffect=function(H,W){return b.H.useLayoutEffect(H,W)},qe.useMemo=function(H,W){return b.H.useMemo(H,W)},qe.useOptimistic=function(H,W){return b.H.useOptimistic(H,W)},qe.useReducer=function(H,W,V){return b.H.useReducer(H,W,V)},qe.useRef=function(H){return b.H.useRef(H)},qe.useState=function(H){return b.H.useState(H)},qe.useSyncExternalStore=function(H,W,V){return b.H.useSyncExternalStore(H,W,V)},qe.useTransition=function(){return b.H.useTransition()},qe.version="19.0.0",qe}var IS;function pc(){return IS||(IS=1,_m.exports=EO()),_m.exports}var C=pc();const Ke=Rf(C),gO=hO({__proto__:null,default:Ke},[C]);var Nm={exports:{}},ll={},Im={exports:{}},Sm={};/**
|
|
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 SS;function _O(){return SS||(SS=1,function(e){function t(k,ne){var ee=k.length;k.push(ne);e:for(;0<ee;){var pe=ee-1>>>1,H=k[pe];if(0<a(H,ne))k[pe]=ne,k[ee]=H,ee=pe;else break e}}function n(k){return k.length===0?null:k[0]}function r(k){if(k.length===0)return null;var ne=k[0],ee=k.pop();if(ee!==ne){k[0]=ee;e:for(var pe=0,H=k.length,W=H>>>1;pe<W;){var V=2*(pe+1)-1,re=k[V],te=V+1,ce=k[te];if(0>a(re,ee))te<H&&0>a(ce,re)?(k[pe]=ce,k[te]=ee,pe=te):(k[pe]=re,k[V]=ee,pe=V);else if(te<H&&0>a(ce,ee))k[pe]=ce,k[te]=ee,pe=te;else break e}}return ne}function a(k,ne){var ee=k.sortIndex-ne.sortIndex;return ee!==0?ee:k.id-ne.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,d=l.now();e.unstable_now=function(){return l.now()-d}}var f=[],A=[],m=1,E=null,g=3,_=!1,S=!1,y=!1,v=typeof setTimeout=="function"?setTimeout:null,R=typeof clearTimeout=="function"?clearTimeout:null,D=typeof setImmediate<"u"?setImmediate:null;function x(k){for(var ne=n(A);ne!==null;){if(ne.callback===null)r(A);else if(ne.startTime<=k)r(A),ne.sortIndex=ne.expirationTime,t(f,ne);else break;ne=n(A)}}function L(k){if(y=!1,x(k),!S)if(n(f)!==null)S=!0,$();else{var ne=n(A);ne!==null&&J(L,ne.startTime-k)}}var b=!1,O=-1,F=5,j=-1;function G(){return!(e.unstable_now()-j<F)}function K(){if(b){var k=e.unstable_now();j=k;var ne=!0;try{e:{S=!1,y&&(y=!1,R(O),O=-1),_=!0;var ee=g;try{t:{for(x(k),E=n(f);E!==null&&!(E.expirationTime>k&&G());){var pe=E.callback;if(typeof pe=="function"){E.callback=null,g=E.priorityLevel;var H=pe(E.expirationTime<=k);if(k=e.unstable_now(),typeof H=="function"){E.callback=H,x(k),ne=!0;break t}E===n(f)&&r(f),x(k)}else r(f);E=n(f)}if(E!==null)ne=!0;else{var W=n(A);W!==null&&J(L,W.startTime-k),ne=!1}}break e}finally{E=null,g=ee,_=!1}ne=void 0}}finally{ne?Ae():b=!1}}}var Ae;if(typeof D=="function")Ae=function(){D(K)};else if(typeof MessageChannel<"u"){var se=new MessageChannel,de=se.port2;se.port1.onmessage=K,Ae=function(){de.postMessage(null)}}else Ae=function(){v(K,0)};function $(){b||(b=!0,Ae())}function J(k,ne){O=v(function(){k(e.unstable_now())},ne)}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(k){k.callback=null},e.unstable_continueExecution=function(){S||_||(S=!0,$())},e.unstable_forceFrameRate=function(k){0>k||125<k?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):F=0<k?Math.floor(1e3/k):5},e.unstable_getCurrentPriorityLevel=function(){return g},e.unstable_getFirstCallbackNode=function(){return n(f)},e.unstable_next=function(k){switch(g){case 1:case 2:case 3:var ne=3;break;default:ne=g}var ee=g;g=ne;try{return k()}finally{g=ee}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(k,ne){switch(k){case 1:case 2:case 3:case 4:case 5:break;default:k=3}var ee=g;g=k;try{return ne()}finally{g=ee}},e.unstable_scheduleCallback=function(k,ne,ee){var pe=e.unstable_now();switch(typeof ee=="object"&&ee!==null?(ee=ee.delay,ee=typeof ee=="number"&&0<ee?pe+ee:pe):ee=pe,k){case 1:var H=-1;break;case 2:H=250;break;case 5:H=1073741823;break;case 4:H=1e4;break;default:H=5e3}return H=ee+H,k={id:m++,callback:ne,priorityLevel:k,startTime:ee,expirationTime:H,sortIndex:-1},ee>pe?(k.sortIndex=ee,t(A,k),n(f)===null&&k===n(A)&&(y?(R(O),O=-1):y=!0,J(L,ee-pe))):(k.sortIndex=H,t(f,k),S||_||(S=!0,$())),k},e.unstable_shouldYield=G,e.unstable_wrapCallback=function(k){var ne=g;return function(){var ee=g;g=ne;try{return k.apply(this,arguments)}finally{g=ee}}}}(Sm)),Sm}var CS;function NO(){return CS||(CS=1,Im.exports=_O()),Im.exports}var Cm={exports:{}},An={};/**
|
|
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 yS;function IO(){if(yS)return An;yS=1;var e=pc();function t(f){var A="https://react.dev/errors/"+f;if(1<arguments.length){A+="?args[]="+encodeURIComponent(arguments[1]);for(var m=2;m<arguments.length;m++)A+="&args[]="+encodeURIComponent(arguments[m])}return"Minified React error #"+f+"; visit "+A+" 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},a=Symbol.for("react.portal");function o(f,A,m){var E=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:a,key:E==null?null:""+E,children:f,containerInfo:A,implementation:m}}var l=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function d(f,A){if(f==="font")return"";if(typeof A=="string")return A==="use-credentials"?A:""}return An.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,An.createPortal=function(f,A){var m=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!A||A.nodeType!==1&&A.nodeType!==9&&A.nodeType!==11)throw Error(t(299));return o(f,A,null,m)},An.flushSync=function(f){var A=l.T,m=r.p;try{if(l.T=null,r.p=2,f)return f()}finally{l.T=A,r.p=m,r.d.f()}},An.preconnect=function(f,A){typeof f=="string"&&(A?(A=A.crossOrigin,A=typeof A=="string"?A==="use-credentials"?A:"":void 0):A=null,r.d.C(f,A))},An.prefetchDNS=function(f){typeof f=="string"&&r.d.D(f)},An.preinit=function(f,A){if(typeof f=="string"&&A&&typeof A.as=="string"){var m=A.as,E=d(m,A.crossOrigin),g=typeof A.integrity=="string"?A.integrity:void 0,_=typeof A.fetchPriority=="string"?A.fetchPriority:void 0;m==="style"?r.d.S(f,typeof A.precedence=="string"?A.precedence:void 0,{crossOrigin:E,integrity:g,fetchPriority:_}):m==="script"&&r.d.X(f,{crossOrigin:E,integrity:g,fetchPriority:_,nonce:typeof A.nonce=="string"?A.nonce:void 0})}},An.preinitModule=function(f,A){if(typeof f=="string")if(typeof A=="object"&&A!==null){if(A.as==null||A.as==="script"){var m=d(A.as,A.crossOrigin);r.d.M(f,{crossOrigin:m,integrity:typeof A.integrity=="string"?A.integrity:void 0,nonce:typeof A.nonce=="string"?A.nonce:void 0})}}else A==null&&r.d.M(f)},An.preload=function(f,A){if(typeof f=="string"&&typeof A=="object"&&A!==null&&typeof A.as=="string"){var m=A.as,E=d(m,A.crossOrigin);r.d.L(f,m,{crossOrigin:E,integrity:typeof A.integrity=="string"?A.integrity:void 0,nonce:typeof A.nonce=="string"?A.nonce:void 0,type:typeof A.type=="string"?A.type:void 0,fetchPriority:typeof A.fetchPriority=="string"?A.fetchPriority:void 0,referrerPolicy:typeof A.referrerPolicy=="string"?A.referrerPolicy:void 0,imageSrcSet:typeof A.imageSrcSet=="string"?A.imageSrcSet:void 0,imageSizes:typeof A.imageSizes=="string"?A.imageSizes:void 0,media:typeof A.media=="string"?A.media:void 0})}},An.preloadModule=function(f,A){if(typeof f=="string")if(A){var m=d(A.as,A.crossOrigin);r.d.m(f,{as:typeof A.as=="string"&&A.as!=="script"?A.as:void 0,crossOrigin:m,integrity:typeof A.integrity=="string"?A.integrity:void 0})}else r.d.m(f)},An.requestFormReset=function(f){r.d.r(f)},An.unstable_batchedUpdates=function(f,A){return f(A)},An.useFormState=function(f,A,m){return l.H.useFormState(f,A,m)},An.useFormStatus=function(){return l.H.useHostTransitionStatus()},An.version="19.0.0",An}var vS;function Xy(){if(vS)return Cm.exports;vS=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(),Cm.exports=IO(),Cm.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 RS;function SO(){if(RS)return ll;RS=1;var e=NO(),t=pc(),n=Xy();function r(i){var s="https://react.dev/errors/"+i;if(1<arguments.length){s+="?args[]="+encodeURIComponent(arguments[1]);for(var c=2;c<arguments.length;c++)s+="&args[]="+encodeURIComponent(arguments[c])}return"Minified React error #"+i+"; visit "+s+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function a(i){return!(!i||i.nodeType!==1&&i.nodeType!==9&&i.nodeType!==11)}var o=Symbol.for("react.element"),l=Symbol.for("react.transitional.element"),d=Symbol.for("react.portal"),f=Symbol.for("react.fragment"),A=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"),y=Symbol.for("react.suspense"),v=Symbol.for("react.suspense_list"),R=Symbol.for("react.memo"),D=Symbol.for("react.lazy"),x=Symbol.for("react.offscreen"),L=Symbol.for("react.memo_cache_sentinel"),b=Symbol.iterator;function O(i){return i===null||typeof i!="object"?null:(i=b&&i[b]||i["@@iterator"],typeof i=="function"?i:null)}var F=Symbol.for("react.client.reference");function j(i){if(i==null)return null;if(typeof i=="function")return i.$$typeof===F?null:i.displayName||i.name||null;if(typeof i=="string")return i;switch(i){case f:return"Fragment";case d:return"Portal";case m:return"Profiler";case A:return"StrictMode";case y:return"Suspense";case v:return"SuspenseList"}if(typeof i=="object")switch(i.$$typeof){case _:return(i.displayName||"Context")+".Provider";case g:return(i._context.displayName||"Context")+".Consumer";case S:var s=i.render;return i=i.displayName,i||(i=s.displayName||s.name||"",i=i!==""?"ForwardRef("+i+")":"ForwardRef"),i;case R:return s=i.displayName||null,s!==null?s:j(i.type)||"Memo";case D:s=i._payload,i=i._init;try{return j(i(s))}catch{}}return null}var G=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,K=Object.assign,Ae,se;function de(i){if(Ae===void 0)try{throw Error()}catch(c){var s=c.stack.trim().match(/\n( *(at )?)/);Ae=s&&s[1]||"",se=-1<c.stack.indexOf(`
|
|
43
|
+
at`)?" (<anonymous>)":-1<c.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
44
|
+
`+Ae+i+se}var $=!1;function J(i,s){if(!i||$)return"";$=!0;var c=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var h={DetermineComponentFrameRoot:function(){try{if(s){var fe=function(){throw Error()};if(Object.defineProperty(fe.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(fe,[])}catch(ie){var X=ie}Reflect.construct(i,[],fe)}else{try{fe.call()}catch(ie){X=ie}i.call(fe.prototype)}}else{try{throw Error()}catch(ie){X=ie}(fe=i())&&typeof fe.catch=="function"&&fe.catch(function(){})}}catch(ie){if(ie&&X&&typeof ie.stack=="string")return[ie.stack,X.stack]}return[null,null]}};h.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var p=Object.getOwnPropertyDescriptor(h.DetermineComponentFrameRoot,"name");p&&p.configurable&&Object.defineProperty(h.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var I=h.DetermineComponentFrameRoot(),T=I[0],B=I[1];if(T&&B){var M=T.split(`
|
|
45
|
+
`),Y=B.split(`
|
|
46
|
+
`);for(p=h=0;h<M.length&&!M[h].includes("DetermineComponentFrameRoot");)h++;for(;p<Y.length&&!Y[p].includes("DetermineComponentFrameRoot");)p++;if(h===M.length||p===Y.length)for(h=M.length-1,p=Y.length-1;1<=h&&0<=p&&M[h]!==Y[p];)p--;for(;1<=h&&0<=p;h--,p--)if(M[h]!==Y[p]){if(h!==1||p!==1)do if(h--,p--,0>p||M[h]!==Y[p]){var ae=`
|
|
47
|
+
`+M[h].replace(" at new "," at ");return i.displayName&&ae.includes("<anonymous>")&&(ae=ae.replace("<anonymous>",i.displayName)),ae}while(1<=h&&0<=p);break}}}finally{$=!1,Error.prepareStackTrace=c}return(c=i?i.displayName||i.name:"")?de(c):""}function k(i){switch(i.tag){case 26:case 27:case 5:return de(i.type);case 16:return de("Lazy");case 13:return de("Suspense");case 19:return de("SuspenseList");case 0:case 15:return i=J(i.type,!1),i;case 11:return i=J(i.type.render,!1),i;case 1:return i=J(i.type,!0),i;default:return""}}function ne(i){try{var s="";do s+=k(i),i=i.return;while(i);return s}catch(c){return`
|
|
48
|
+
Error generating stack: `+c.message+`
|
|
49
|
+
`+c.stack}}function ee(i){var s=i,c=i;if(i.alternate)for(;s.return;)s=s.return;else{i=s;do s=i,(s.flags&4098)!==0&&(c=s.return),i=s.return;while(i)}return s.tag===3?c:null}function pe(i){if(i.tag===13){var s=i.memoizedState;if(s===null&&(i=i.alternate,i!==null&&(s=i.memoizedState)),s!==null)return s.dehydrated}return null}function H(i){if(ee(i)!==i)throw Error(r(188))}function W(i){var s=i.alternate;if(!s){if(s=ee(i),s===null)throw Error(r(188));return s!==i?null:i}for(var c=i,h=s;;){var p=c.return;if(p===null)break;var I=p.alternate;if(I===null){if(h=p.return,h!==null){c=h;continue}break}if(p.child===I.child){for(I=p.child;I;){if(I===c)return H(p),i;if(I===h)return H(p),s;I=I.sibling}throw Error(r(188))}if(c.return!==h.return)c=p,h=I;else{for(var T=!1,B=p.child;B;){if(B===c){T=!0,c=p,h=I;break}if(B===h){T=!0,h=p,c=I;break}B=B.sibling}if(!T){for(B=I.child;B;){if(B===c){T=!0,c=I,h=p;break}if(B===h){T=!0,h=I,c=p;break}B=B.sibling}if(!T)throw Error(r(189))}}if(c.alternate!==h)throw Error(r(190))}if(c.tag!==3)throw Error(r(188));return c.stateNode.current===c?i:s}function V(i){var s=i.tag;if(s===5||s===26||s===27||s===6)return i;for(i=i.child;i!==null;){if(s=V(i),s!==null)return s;i=i.sibling}return null}var re=Array.isArray,te=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ce={pending:!1,data:null,method:null,action:null},Ee=[],me=-1;function ve(i){return{current:i}}function je(i){0>me||(i.current=Ee[me],Ee[me]=null,me--)}function we(i,s){me++,Ee[me]=i.current,i.current=s}var Ze=ve(null),it=ve(null),It=ve(null),qt=ve(null);function Er(i,s){switch(we(It,s),we(it,i),we(Ze,null),i=s.nodeType,i){case 9:case 11:s=(s=s.documentElement)&&(s=s.namespaceURI)?ZI(s):0;break;default:if(i=i===8?s.parentNode:s,s=i.tagName,i=i.namespaceURI)i=ZI(i),s=WI(i,s);else switch(s){case"svg":s=1;break;case"math":s=2;break;default:s=0}}je(Ze),we(Ze,s)}function Ln(){je(Ze),je(it),je(It)}function Br(i){i.memoizedState!==null&&we(qt,i);var s=Ze.current,c=WI(s,i.type);s!==c&&(we(it,i),we(Ze,c))}function P(i){it.current===i&&(je(Ze),je(it)),qt.current===i&&(je(qt),rl._currentValue=ce)}var Q=Object.prototype.hasOwnProperty,ue=e.unstable_scheduleCallback,ye=e.unstable_cancelCallback,Se=e.unstable_shouldYield,Ne=e.unstable_requestPaint,Be=e.unstable_now,Xe=e.unstable_getCurrentPriorityLevel,Lt=e.unstable_ImmediatePriority,wt=e.unstable_UserBlockingPriority,wn=e.unstable_NormalPriority,dA=e.unstable_LowPriority,Fa=e.unstable_IdlePriority,fo=e.log,fA=e.unstable_setDisableYieldValue,Pu=null,Nn=null;function Gc(i){if(Nn&&typeof Nn.onCommitFiberRoot=="function")try{Nn.onCommitFiberRoot(Pu,i,void 0,(i.current.flags&128)===128)}catch{}}function Uu(i){if(typeof fo=="function"&&fA(i),Nn&&typeof Nn.setStrictMode=="function")try{Nn.setStrictMode(Pu,i)}catch{}}var Mn=Math.clz32?Math.clz32:Jx,Qx=Math.log,Xx=Math.LN2;function Jx(i){return i>>>=0,i===0?32:31-(Qx(i)/Xx|0)|0}var jc=128,Vc=4194304;function wi(i){var s=i&42;if(s!==0)return s;switch(i&-i){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 i&4194176;case 4194304:case 8388608:case 16777216:case 33554432:return i&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return i}}function zc(i,s){var c=i.pendingLanes;if(c===0)return 0;var h=0,p=i.suspendedLanes,I=i.pingedLanes,T=i.warmLanes;i=i.finishedLanes!==0;var B=c&134217727;return B!==0?(c=B&~p,c!==0?h=wi(c):(I&=B,I!==0?h=wi(I):i||(T=B&~T,T!==0&&(h=wi(T))))):(B=c&~p,B!==0?h=wi(B):I!==0?h=wi(I):i||(T=c&~T,T!==0&&(h=wi(T)))),h===0?0:s!==0&&s!==h&&(s&p)===0&&(p=h&-h,T=s&-s,p>=T||p===32&&(T&4194176)!==0)?s:h}function Ao(i,s){return(i.pendingLanes&~(i.suspendedLanes&~i.pingedLanes)&s)===0}function eb(i,s){switch(i){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 U4(){var i=jc;return jc<<=1,(jc&4194176)===0&&(jc=128),i}function k4(){var i=Vc;return Vc<<=1,(Vc&62914560)===0&&(Vc=4194304),i}function AA(i){for(var s=[],c=0;31>c;c++)s.push(i);return s}function ho(i,s){i.pendingLanes|=s,s!==268435456&&(i.suspendedLanes=0,i.pingedLanes=0,i.warmLanes=0)}function tb(i,s,c,h,p,I){var T=i.pendingLanes;i.pendingLanes=c,i.suspendedLanes=0,i.pingedLanes=0,i.warmLanes=0,i.expiredLanes&=c,i.entangledLanes&=c,i.errorRecoveryDisabledLanes&=c,i.shellSuspendCounter=0;var B=i.entanglements,M=i.expirationTimes,Y=i.hiddenUpdates;for(c=T&~c;0<c;){var ae=31-Mn(c),fe=1<<ae;B[ae]=0,M[ae]=-1;var X=Y[ae];if(X!==null)for(Y[ae]=null,ae=0;ae<X.length;ae++){var ie=X[ae];ie!==null&&(ie.lane&=-536870913)}c&=~fe}h!==0&&G4(i,h,0),I!==0&&p===0&&i.tag!==0&&(i.suspendedLanes|=I&~(T&~s))}function G4(i,s,c){i.pendingLanes|=s,i.suspendedLanes&=~s;var h=31-Mn(s);i.entangledLanes|=s,i.entanglements[h]=i.entanglements[h]|1073741824|c&4194218}function j4(i,s){var c=i.entangledLanes|=s;for(i=i.entanglements;c;){var h=31-Mn(c),p=1<<h;p&s|i[h]&s&&(i[h]|=s),c&=~p}}function V4(i){return i&=-i,2<i?8<i?(i&134217727)!==0?32:268435456:8:2}function z4(){var i=te.p;return i!==0?i:(i=window.event,i===void 0?32:fS(i.type))}function nb(i,s){var c=te.p;try{return te.p=i,s()}finally{te.p=c}}var ku=Math.random().toString(36).slice(2),dn="__reactFiber$"+ku,Rn="__reactProps$"+ku,La="__reactContainer$"+ku,hA="__reactEvents$"+ku,rb="__reactListeners$"+ku,ub="__reactHandles$"+ku,K4="__reactResources$"+ku,mo="__reactMarker$"+ku;function mA(i){delete i[dn],delete i[Rn],delete i[hA],delete i[rb],delete i[ub]}function Mi(i){var s=i[dn];if(s)return s;for(var c=i.parentNode;c;){if(s=c[La]||c[dn]){if(c=s.alternate,s.child!==null||c!==null&&c.child!==null)for(i=QI(i);i!==null;){if(c=i[dn])return c;i=QI(i)}return s}i=c,c=i.parentNode}return null}function wa(i){if(i=i[dn]||i[La]){var s=i.tag;if(s===5||s===6||s===13||s===26||s===27||s===3)return i}return null}function po(i){var s=i.tag;if(s===5||s===26||s===27||s===6)return i.stateNode;throw Error(r(33))}function Ma(i){var s=i[K4];return s||(s=i[K4]={hoistableStyles:new Map,hoistableScripts:new Map}),s}function Qt(i){i[mo]=!0}var Y4=new Set,Z4={};function Hi(i,s){Ha(i,s),Ha(i+"Capture",s)}function Ha(i,s){for(Z4[i]=s,i=0;i<s.length;i++)Y4.add(s[i])}var nu=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ib=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]*$"),W4={},$4={};function ab(i){return Q.call($4,i)?!0:Q.call(W4,i)?!1:ib.test(i)?$4[i]=!0:(W4[i]=!0,!1)}function Kc(i,s,c){if(ab(s))if(c===null)i.removeAttribute(s);else{switch(typeof c){case"undefined":case"function":case"symbol":i.removeAttribute(s);return;case"boolean":var h=s.toLowerCase().slice(0,5);if(h!=="data-"&&h!=="aria-"){i.removeAttribute(s);return}}i.setAttribute(s,""+c)}}function Yc(i,s,c){if(c===null)i.removeAttribute(s);else{switch(typeof c){case"undefined":case"function":case"symbol":case"boolean":i.removeAttribute(s);return}i.setAttribute(s,""+c)}}function ru(i,s,c,h){if(h===null)i.removeAttribute(c);else{switch(typeof h){case"undefined":case"function":case"symbol":case"boolean":i.removeAttribute(c);return}i.setAttributeNS(s,c,""+h)}}function Qn(i){switch(typeof i){case"bigint":case"boolean":case"number":case"string":case"undefined":return i;case"object":return i;default:return""}}function q4(i){var s=i.type;return(i=i.nodeName)&&i.toLowerCase()==="input"&&(s==="checkbox"||s==="radio")}function sb(i){var s=q4(i)?"checked":"value",c=Object.getOwnPropertyDescriptor(i.constructor.prototype,s),h=""+i[s];if(!i.hasOwnProperty(s)&&typeof c<"u"&&typeof c.get=="function"&&typeof c.set=="function"){var p=c.get,I=c.set;return Object.defineProperty(i,s,{configurable:!0,get:function(){return p.call(this)},set:function(T){h=""+T,I.call(this,T)}}),Object.defineProperty(i,s,{enumerable:c.enumerable}),{getValue:function(){return h},setValue:function(T){h=""+T},stopTracking:function(){i._valueTracker=null,delete i[s]}}}}function Zc(i){i._valueTracker||(i._valueTracker=sb(i))}function Q4(i){if(!i)return!1;var s=i._valueTracker;if(!s)return!0;var c=s.getValue(),h="";return i&&(h=q4(i)?i.checked?"true":"false":i.value),i=h,i!==c?(s.setValue(i),!0):!1}function Wc(i){if(i=i||(typeof document<"u"?document:void 0),typeof i>"u")return null;try{return i.activeElement||i.body}catch{return i.body}}var ob=/[\n"\\]/g;function Xn(i){return i.replace(ob,function(s){return"\\"+s.charCodeAt(0).toString(16)+" "})}function pA(i,s,c,h,p,I,T,B){i.name="",T!=null&&typeof T!="function"&&typeof T!="symbol"&&typeof T!="boolean"?i.type=T:i.removeAttribute("type"),s!=null?T==="number"?(s===0&&i.value===""||i.value!=s)&&(i.value=""+Qn(s)):i.value!==""+Qn(s)&&(i.value=""+Qn(s)):T!=="submit"&&T!=="reset"||i.removeAttribute("value"),s!=null?EA(i,T,Qn(s)):c!=null?EA(i,T,Qn(c)):h!=null&&i.removeAttribute("value"),p==null&&I!=null&&(i.defaultChecked=!!I),p!=null&&(i.checked=p&&typeof p!="function"&&typeof p!="symbol"),B!=null&&typeof B!="function"&&typeof B!="symbol"&&typeof B!="boolean"?i.name=""+Qn(B):i.removeAttribute("name")}function X4(i,s,c,h,p,I,T,B){if(I!=null&&typeof I!="function"&&typeof I!="symbol"&&typeof I!="boolean"&&(i.type=I),s!=null||c!=null){if(!(I!=="submit"&&I!=="reset"||s!=null))return;c=c!=null?""+Qn(c):"",s=s!=null?""+Qn(s):c,B||s===i.value||(i.value=s),i.defaultValue=s}h=h??p,h=typeof h!="function"&&typeof h!="symbol"&&!!h,i.checked=B?i.checked:!!h,i.defaultChecked=!!h,T!=null&&typeof T!="function"&&typeof T!="symbol"&&typeof T!="boolean"&&(i.name=T)}function EA(i,s,c){s==="number"&&Wc(i.ownerDocument)===i||i.defaultValue===""+c||(i.defaultValue=""+c)}function Pa(i,s,c,h){if(i=i.options,s){s={};for(var p=0;p<c.length;p++)s["$"+c[p]]=!0;for(c=0;c<i.length;c++)p=s.hasOwnProperty("$"+i[c].value),i[c].selected!==p&&(i[c].selected=p),p&&h&&(i[c].defaultSelected=!0)}else{for(c=""+Qn(c),s=null,p=0;p<i.length;p++){if(i[p].value===c){i[p].selected=!0,h&&(i[p].defaultSelected=!0);return}s!==null||i[p].disabled||(s=i[p])}s!==null&&(s.selected=!0)}}function J4(i,s,c){if(s!=null&&(s=""+Qn(s),s!==i.value&&(i.value=s),c==null)){i.defaultValue!==s&&(i.defaultValue=s);return}i.defaultValue=c!=null?""+Qn(c):""}function e_(i,s,c,h){if(s==null){if(h!=null){if(c!=null)throw Error(r(92));if(re(h)){if(1<h.length)throw Error(r(93));h=h[0]}c=h}c==null&&(c=""),s=c}c=Qn(s),i.defaultValue=c,h=i.textContent,h===c&&h!==""&&h!==null&&(i.value=h)}function Ua(i,s){if(s){var c=i.firstChild;if(c&&c===i.lastChild&&c.nodeType===3){c.nodeValue=s;return}}i.textContent=s}var lb=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 t_(i,s,c){var h=s.indexOf("--")===0;c==null||typeof c=="boolean"||c===""?h?i.setProperty(s,""):s==="float"?i.cssFloat="":i[s]="":h?i.setProperty(s,c):typeof c!="number"||c===0||lb.has(s)?s==="float"?i.cssFloat=c:i[s]=(""+c).trim():i[s]=c+"px"}function n_(i,s,c){if(s!=null&&typeof s!="object")throw Error(r(62));if(i=i.style,c!=null){for(var h in c)!c.hasOwnProperty(h)||s!=null&&s.hasOwnProperty(h)||(h.indexOf("--")===0?i.setProperty(h,""):h==="float"?i.cssFloat="":i[h]="");for(var p in s)h=s[p],s.hasOwnProperty(p)&&c[p]!==h&&t_(i,p,h)}else for(var I in s)s.hasOwnProperty(I)&&t_(i,I,s[I])}function gA(i){if(i.indexOf("-")===-1)return!1;switch(i){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 cb=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"]]),db=/^[\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 $c(i){return db.test(""+i)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":i}var _A=null;function NA(i){return i=i.target||i.srcElement||window,i.correspondingUseElement&&(i=i.correspondingUseElement),i.nodeType===3?i.parentNode:i}var ka=null,Ga=null;function r_(i){var s=wa(i);if(s&&(i=s.stateNode)){var c=i[Rn]||null;e:switch(i=s.stateNode,s.type){case"input":if(pA(i,c.value,c.defaultValue,c.defaultValue,c.checked,c.defaultChecked,c.type,c.name),s=c.name,c.type==="radio"&&s!=null){for(c=i;c.parentNode;)c=c.parentNode;for(c=c.querySelectorAll('input[name="'+Xn(""+s)+'"][type="radio"]'),s=0;s<c.length;s++){var h=c[s];if(h!==i&&h.form===i.form){var p=h[Rn]||null;if(!p)throw Error(r(90));pA(h,p.value,p.defaultValue,p.defaultValue,p.checked,p.defaultChecked,p.type,p.name)}}for(s=0;s<c.length;s++)h=c[s],h.form===i.form&&Q4(h)}break e;case"textarea":J4(i,c.value,c.defaultValue);break e;case"select":s=c.value,s!=null&&Pa(i,!!c.multiple,s,!1)}}}var IA=!1;function u_(i,s,c){if(IA)return i(s,c);IA=!0;try{var h=i(s);return h}finally{if(IA=!1,(ka!==null||Ga!==null)&&(Od(),ka&&(s=ka,i=Ga,Ga=ka=null,r_(s),i)))for(s=0;s<i.length;s++)r_(i[s])}}function Eo(i,s){var c=i.stateNode;if(c===null)return null;var h=c[Rn]||null;if(h===null)return null;c=h[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":(h=!h.disabled)||(i=i.type,h=!(i==="button"||i==="input"||i==="select"||i==="textarea")),i=!h;break e;default:i=!1}if(i)return null;if(c&&typeof c!="function")throw Error(r(231,s,typeof c));return c}var SA=!1;if(nu)try{var go={};Object.defineProperty(go,"passive",{get:function(){SA=!0}}),window.addEventListener("test",go,go),window.removeEventListener("test",go,go)}catch{SA=!1}var Gu=null,CA=null,qc=null;function i_(){if(qc)return qc;var i,s=CA,c=s.length,h,p="value"in Gu?Gu.value:Gu.textContent,I=p.length;for(i=0;i<c&&s[i]===p[i];i++);var T=c-i;for(h=1;h<=T&&s[c-h]===p[I-h];h++);return qc=p.slice(i,1<h?1-h:void 0)}function Qc(i){var s=i.keyCode;return"charCode"in i?(i=i.charCode,i===0&&s===13&&(i=13)):i=s,i===10&&(i=13),32<=i||i===13?i:0}function Xc(){return!0}function a_(){return!1}function Dn(i){function s(c,h,p,I,T){this._reactName=c,this._targetInst=p,this.type=h,this.nativeEvent=I,this.target=T,this.currentTarget=null;for(var B in i)i.hasOwnProperty(B)&&(c=i[B],this[B]=c?c(I):I[B]);return this.isDefaultPrevented=(I.defaultPrevented!=null?I.defaultPrevented:I.returnValue===!1)?Xc:a_,this.isPropagationStopped=a_,this}return K(s.prototype,{preventDefault:function(){this.defaultPrevented=!0;var c=this.nativeEvent;c&&(c.preventDefault?c.preventDefault():typeof c.returnValue!="unknown"&&(c.returnValue=!1),this.isDefaultPrevented=Xc)},stopPropagation:function(){var c=this.nativeEvent;c&&(c.stopPropagation?c.stopPropagation():typeof c.cancelBubble!="unknown"&&(c.cancelBubble=!0),this.isPropagationStopped=Xc)},persist:function(){},isPersistent:Xc}),s}var Pi={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(i){return i.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Jc=Dn(Pi),_o=K({},Pi,{view:0,detail:0}),fb=Dn(_o),yA,vA,No,ed=K({},_o,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:DA,button:0,buttons:0,relatedTarget:function(i){return i.relatedTarget===void 0?i.fromElement===i.srcElement?i.toElement:i.fromElement:i.relatedTarget},movementX:function(i){return"movementX"in i?i.movementX:(i!==No&&(No&&i.type==="mousemove"?(yA=i.screenX-No.screenX,vA=i.screenY-No.screenY):vA=yA=0,No=i),yA)},movementY:function(i){return"movementY"in i?i.movementY:vA}}),s_=Dn(ed),Ab=K({},ed,{dataTransfer:0}),hb=Dn(Ab),mb=K({},_o,{relatedTarget:0}),RA=Dn(mb),pb=K({},Pi,{animationName:0,elapsedTime:0,pseudoElement:0}),Eb=Dn(pb),gb=K({},Pi,{clipboardData:function(i){return"clipboardData"in i?i.clipboardData:window.clipboardData}}),_b=Dn(gb),Nb=K({},Pi,{data:0}),o_=Dn(Nb),Ib={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Sb={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"},Cb={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function yb(i){var s=this.nativeEvent;return s.getModifierState?s.getModifierState(i):(i=Cb[i])?!!s[i]:!1}function DA(){return yb}var vb=K({},_o,{key:function(i){if(i.key){var s=Ib[i.key]||i.key;if(s!=="Unidentified")return s}return i.type==="keypress"?(i=Qc(i),i===13?"Enter":String.fromCharCode(i)):i.type==="keydown"||i.type==="keyup"?Sb[i.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:DA,charCode:function(i){return i.type==="keypress"?Qc(i):0},keyCode:function(i){return i.type==="keydown"||i.type==="keyup"?i.keyCode:0},which:function(i){return i.type==="keypress"?Qc(i):i.type==="keydown"||i.type==="keyup"?i.keyCode:0}}),Rb=Dn(vb),Db=K({},ed,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),l_=Dn(Db),Tb=K({},_o,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:DA}),xb=Dn(Tb),bb=K({},Pi,{propertyName:0,elapsedTime:0,pseudoElement:0}),Bb=Dn(bb),Ob=K({},ed,{deltaX:function(i){return"deltaX"in i?i.deltaX:"wheelDeltaX"in i?-i.wheelDeltaX:0},deltaY:function(i){return"deltaY"in i?i.deltaY:"wheelDeltaY"in i?-i.wheelDeltaY:"wheelDelta"in i?-i.wheelDelta:0},deltaZ:0,deltaMode:0}),Fb=Dn(Ob),Lb=K({},Pi,{newState:0,oldState:0}),wb=Dn(Lb),Mb=[9,13,27,32],TA=nu&&"CompositionEvent"in window,Io=null;nu&&"documentMode"in document&&(Io=document.documentMode);var Hb=nu&&"TextEvent"in window&&!Io,c_=nu&&(!TA||Io&&8<Io&&11>=Io),d_=" ",f_=!1;function A_(i,s){switch(i){case"keyup":return Mb.indexOf(s.keyCode)!==-1;case"keydown":return s.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function h_(i){return i=i.detail,typeof i=="object"&&"data"in i?i.data:null}var ja=!1;function Pb(i,s){switch(i){case"compositionend":return h_(s);case"keypress":return s.which!==32?null:(f_=!0,d_);case"textInput":return i=s.data,i===d_&&f_?null:i;default:return null}}function Ub(i,s){if(ja)return i==="compositionend"||!TA&&A_(i,s)?(i=i_(),qc=CA=Gu=null,ja=!1,i):null;switch(i){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 c_&&s.locale!=="ko"?null:s.data;default:return null}}var kb={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 m_(i){var s=i&&i.nodeName&&i.nodeName.toLowerCase();return s==="input"?!!kb[i.type]:s==="textarea"}function p_(i,s,c,h){ka?Ga?Ga.push(h):Ga=[h]:ka=h,s=Hd(s,"onChange"),0<s.length&&(c=new Jc("onChange","change",null,c,h),i.push({event:c,listeners:s}))}var So=null,Co=null;function Gb(i){jI(i,0)}function td(i){var s=po(i);if(Q4(s))return i}function E_(i,s){if(i==="change")return s}var g_=!1;if(nu){var xA;if(nu){var bA="oninput"in document;if(!bA){var __=document.createElement("div");__.setAttribute("oninput","return;"),bA=typeof __.oninput=="function"}xA=bA}else xA=!1;g_=xA&&(!document.documentMode||9<document.documentMode)}function N_(){So&&(So.detachEvent("onpropertychange",I_),Co=So=null)}function I_(i){if(i.propertyName==="value"&&td(Co)){var s=[];p_(s,Co,i,NA(i)),u_(Gb,s)}}function jb(i,s,c){i==="focusin"?(N_(),So=s,Co=c,So.attachEvent("onpropertychange",I_)):i==="focusout"&&N_()}function Vb(i){if(i==="selectionchange"||i==="keyup"||i==="keydown")return td(Co)}function zb(i,s){if(i==="click")return td(s)}function Kb(i,s){if(i==="input"||i==="change")return td(s)}function Yb(i,s){return i===s&&(i!==0||1/i===1/s)||i!==i&&s!==s}var Hn=typeof Object.is=="function"?Object.is:Yb;function yo(i,s){if(Hn(i,s))return!0;if(typeof i!="object"||i===null||typeof s!="object"||s===null)return!1;var c=Object.keys(i),h=Object.keys(s);if(c.length!==h.length)return!1;for(h=0;h<c.length;h++){var p=c[h];if(!Q.call(s,p)||!Hn(i[p],s[p]))return!1}return!0}function S_(i){for(;i&&i.firstChild;)i=i.firstChild;return i}function C_(i,s){var c=S_(i);i=0;for(var h;c;){if(c.nodeType===3){if(h=i+c.textContent.length,i<=s&&h>=s)return{node:c,offset:s-i};i=h}e:{for(;c;){if(c.nextSibling){c=c.nextSibling;break e}c=c.parentNode}c=void 0}c=S_(c)}}function y_(i,s){return i&&s?i===s?!0:i&&i.nodeType===3?!1:s&&s.nodeType===3?y_(i,s.parentNode):"contains"in i?i.contains(s):i.compareDocumentPosition?!!(i.compareDocumentPosition(s)&16):!1:!1}function v_(i){i=i!=null&&i.ownerDocument!=null&&i.ownerDocument.defaultView!=null?i.ownerDocument.defaultView:window;for(var s=Wc(i.document);s instanceof i.HTMLIFrameElement;){try{var c=typeof s.contentWindow.location.href=="string"}catch{c=!1}if(c)i=s.contentWindow;else break;s=Wc(i.document)}return s}function BA(i){var s=i&&i.nodeName&&i.nodeName.toLowerCase();return s&&(s==="input"&&(i.type==="text"||i.type==="search"||i.type==="tel"||i.type==="url"||i.type==="password")||s==="textarea"||i.contentEditable==="true")}function Zb(i,s){var c=v_(s);s=i.focusedElem;var h=i.selectionRange;if(c!==s&&s&&s.ownerDocument&&y_(s.ownerDocument.documentElement,s)){if(h!==null&&BA(s)){if(i=h.start,c=h.end,c===void 0&&(c=i),"selectionStart"in s)s.selectionStart=i,s.selectionEnd=Math.min(c,s.value.length);else if(c=(i=s.ownerDocument||document)&&i.defaultView||window,c.getSelection){c=c.getSelection();var p=s.textContent.length,I=Math.min(h.start,p);h=h.end===void 0?I:Math.min(h.end,p),!c.extend&&I>h&&(p=h,h=I,I=p),p=C_(s,I);var T=C_(s,h);p&&T&&(c.rangeCount!==1||c.anchorNode!==p.node||c.anchorOffset!==p.offset||c.focusNode!==T.node||c.focusOffset!==T.offset)&&(i=i.createRange(),i.setStart(p.node,p.offset),c.removeAllRanges(),I>h?(c.addRange(i),c.extend(T.node,T.offset)):(i.setEnd(T.node,T.offset),c.addRange(i)))}}for(i=[],c=s;c=c.parentNode;)c.nodeType===1&&i.push({element:c,left:c.scrollLeft,top:c.scrollTop});for(typeof s.focus=="function"&&s.focus(),s=0;s<i.length;s++)c=i[s],c.element.scrollLeft=c.left,c.element.scrollTop=c.top}}var Wb=nu&&"documentMode"in document&&11>=document.documentMode,Va=null,OA=null,vo=null,FA=!1;function R_(i,s,c){var h=c.window===c?c.document:c.nodeType===9?c:c.ownerDocument;FA||Va==null||Va!==Wc(h)||(h=Va,"selectionStart"in h&&BA(h)?h={start:h.selectionStart,end:h.selectionEnd}:(h=(h.ownerDocument&&h.ownerDocument.defaultView||window).getSelection(),h={anchorNode:h.anchorNode,anchorOffset:h.anchorOffset,focusNode:h.focusNode,focusOffset:h.focusOffset}),vo&&yo(vo,h)||(vo=h,h=Hd(OA,"onSelect"),0<h.length&&(s=new Jc("onSelect","select",null,s,c),i.push({event:s,listeners:h}),s.target=Va)))}function Ui(i,s){var c={};return c[i.toLowerCase()]=s.toLowerCase(),c["Webkit"+i]="webkit"+s,c["Moz"+i]="moz"+s,c}var za={animationend:Ui("Animation","AnimationEnd"),animationiteration:Ui("Animation","AnimationIteration"),animationstart:Ui("Animation","AnimationStart"),transitionrun:Ui("Transition","TransitionRun"),transitionstart:Ui("Transition","TransitionStart"),transitioncancel:Ui("Transition","TransitionCancel"),transitionend:Ui("Transition","TransitionEnd")},LA={},D_={};nu&&(D_=document.createElement("div").style,"AnimationEvent"in window||(delete za.animationend.animation,delete za.animationiteration.animation,delete za.animationstart.animation),"TransitionEvent"in window||delete za.transitionend.transition);function ki(i){if(LA[i])return LA[i];if(!za[i])return i;var s=za[i],c;for(c in s)if(s.hasOwnProperty(c)&&c in D_)return LA[i]=s[c];return i}var T_=ki("animationend"),x_=ki("animationiteration"),b_=ki("animationstart"),$b=ki("transitionrun"),qb=ki("transitionstart"),Qb=ki("transitioncancel"),B_=ki("transitionend"),O_=new Map,F_="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 gr(i,s){O_.set(i,s),Hi(s,[i])}var Jn=[],Ka=0,wA=0;function nd(){for(var i=Ka,s=wA=Ka=0;s<i;){var c=Jn[s];Jn[s++]=null;var h=Jn[s];Jn[s++]=null;var p=Jn[s];Jn[s++]=null;var I=Jn[s];if(Jn[s++]=null,h!==null&&p!==null){var T=h.pending;T===null?p.next=p:(p.next=T.next,T.next=p),h.pending=p}I!==0&&L_(c,p,I)}}function rd(i,s,c,h){Jn[Ka++]=i,Jn[Ka++]=s,Jn[Ka++]=c,Jn[Ka++]=h,wA|=h,i.lanes|=h,i=i.alternate,i!==null&&(i.lanes|=h)}function MA(i,s,c,h){return rd(i,s,c,h),ud(i)}function ju(i,s){return rd(i,null,null,s),ud(i)}function L_(i,s,c){i.lanes|=c;var h=i.alternate;h!==null&&(h.lanes|=c);for(var p=!1,I=i.return;I!==null;)I.childLanes|=c,h=I.alternate,h!==null&&(h.childLanes|=c),I.tag===22&&(i=I.stateNode,i===null||i._visibility&1||(p=!0)),i=I,I=I.return;p&&s!==null&&i.tag===3&&(I=i.stateNode,p=31-Mn(c),I=I.hiddenUpdates,i=I[p],i===null?I[p]=[s]:i.push(s),s.lane=c|536870912)}function ud(i){if(50<qo)throw qo=0,jh=null,Error(r(185));for(var s=i.return;s!==null;)i=s,s=i.return;return i.tag===3?i.stateNode:null}var Ya={},w_=new WeakMap;function er(i,s){if(typeof i=="object"&&i!==null){var c=w_.get(i);return c!==void 0?c:(s={value:i,source:s,stack:ne(s)},w_.set(i,s),s)}return{value:i,source:s,stack:ne(s)}}var Za=[],Wa=0,id=null,ad=0,tr=[],nr=0,Gi=null,uu=1,iu="";function ji(i,s){Za[Wa++]=ad,Za[Wa++]=id,id=i,ad=s}function M_(i,s,c){tr[nr++]=uu,tr[nr++]=iu,tr[nr++]=Gi,Gi=i;var h=uu;i=iu;var p=32-Mn(h)-1;h&=~(1<<p),c+=1;var I=32-Mn(s)+p;if(30<I){var T=p-p%5;I=(h&(1<<T)-1).toString(32),h>>=T,p-=T,uu=1<<32-Mn(s)+p|c<<p|h,iu=I+i}else uu=1<<I|c<<p|h,iu=i}function HA(i){i.return!==null&&(ji(i,1),M_(i,1,0))}function PA(i){for(;i===id;)id=Za[--Wa],Za[Wa]=null,ad=Za[--Wa],Za[Wa]=null;for(;i===Gi;)Gi=tr[--nr],tr[nr]=null,iu=tr[--nr],tr[nr]=null,uu=tr[--nr],tr[nr]=null}var In=null,un=null,dt=!1,_r=null,Or=!1,UA=Error(r(519));function Vi(i){var s=Error(r(418,""));throw To(er(s,i)),UA}function H_(i){var s=i.stateNode,c=i.type,h=i.memoizedProps;switch(s[dn]=i,s[Rn]=h,c){case"dialog":st("cancel",s),st("close",s);break;case"iframe":case"object":case"embed":st("load",s);break;case"video":case"audio":for(c=0;c<Xo.length;c++)st(Xo[c],s);break;case"source":st("error",s);break;case"img":case"image":case"link":st("error",s),st("load",s);break;case"details":st("toggle",s);break;case"input":st("invalid",s),X4(s,h.value,h.defaultValue,h.checked,h.defaultChecked,h.type,h.name,!0),Zc(s);break;case"select":st("invalid",s);break;case"textarea":st("invalid",s),e_(s,h.value,h.defaultValue,h.children),Zc(s)}c=h.children,typeof c!="string"&&typeof c!="number"&&typeof c!="bigint"||s.textContent===""+c||h.suppressHydrationWarning===!0||YI(s.textContent,c)?(h.popover!=null&&(st("beforetoggle",s),st("toggle",s)),h.onScroll!=null&&st("scroll",s),h.onScrollEnd!=null&&st("scrollend",s),h.onClick!=null&&(s.onclick=Pd),s=!0):s=!1,s||Vi(i)}function P_(i){for(In=i.return;In;)switch(In.tag){case 3:case 27:Or=!0;return;case 5:case 13:Or=!1;return;default:In=In.return}}function Ro(i){if(i!==In)return!1;if(!dt)return P_(i),dt=!0,!1;var s=!1,c;if((c=i.tag!==3&&i.tag!==27)&&((c=i.tag===5)&&(c=i.type,c=!(c!=="form"&&c!=="button")||im(i.type,i.memoizedProps)),c=!c),c&&(s=!0),s&&un&&Vi(i),P_(i),i.tag===13){if(i=i.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(r(317));e:{for(i=i.nextSibling,s=0;i;){if(i.nodeType===8)if(c=i.data,c==="/$"){if(s===0){un=Ir(i.nextSibling);break e}s--}else c!=="$"&&c!=="$!"&&c!=="$?"||s++;i=i.nextSibling}un=null}}else un=In?Ir(i.stateNode.nextSibling):null;return!0}function Do(){un=In=null,dt=!1}function To(i){_r===null?_r=[i]:_r.push(i)}var xo=Error(r(460)),U_=Error(r(474)),kA={then:function(){}};function k_(i){return i=i.status,i==="fulfilled"||i==="rejected"}function sd(){}function G_(i,s,c){switch(c=i[c],c===void 0?i.push(s):c!==s&&(s.then(sd,sd),s=c),s.status){case"fulfilled":return s.value;case"rejected":throw i=s.reason,i===xo?Error(r(483)):i;default:if(typeof s.status=="string")s.then(sd,sd);else{if(i=gt,i!==null&&100<i.shellSuspendCounter)throw Error(r(482));i=s,i.status="pending",i.then(function(h){if(s.status==="pending"){var p=s;p.status="fulfilled",p.value=h}},function(h){if(s.status==="pending"){var p=s;p.status="rejected",p.reason=h}})}switch(s.status){case"fulfilled":return s.value;case"rejected":throw i=s.reason,i===xo?Error(r(483)):i}throw bo=s,xo}}var bo=null;function j_(){if(bo===null)throw Error(r(459));var i=bo;return bo=null,i}var $a=null,Bo=0;function od(i){var s=Bo;return Bo+=1,$a===null&&($a=[]),G_($a,i,s)}function Oo(i,s){s=s.props.ref,i.ref=s!==void 0?s:null}function ld(i,s){throw s.$$typeof===o?Error(r(525)):(i=Object.prototype.toString.call(s),Error(r(31,i==="[object Object]"?"object with keys {"+Object.keys(s).join(", ")+"}":i)))}function V_(i){var s=i._init;return s(i._payload)}function z_(i){function s(Z,z){if(i){var q=Z.deletions;q===null?(Z.deletions=[z],Z.flags|=16):q.push(z)}}function c(Z,z){if(!i)return null;for(;z!==null;)s(Z,z),z=z.sibling;return null}function h(Z){for(var z=new Map;Z!==null;)Z.key!==null?z.set(Z.key,Z):z.set(Z.index,Z),Z=Z.sibling;return z}function p(Z,z){return Z=ei(Z,z),Z.index=0,Z.sibling=null,Z}function I(Z,z,q){return Z.index=q,i?(q=Z.alternate,q!==null?(q=q.index,q<z?(Z.flags|=33554434,z):q):(Z.flags|=33554434,z)):(Z.flags|=1048576,z)}function T(Z){return i&&Z.alternate===null&&(Z.flags|=33554434),Z}function B(Z,z,q,le){return z===null||z.tag!==6?(z=Lh(q,Z.mode,le),z.return=Z,z):(z=p(z,q),z.return=Z,z)}function M(Z,z,q,le){var Te=q.type;return Te===f?ae(Z,z,q.props.children,le,q.key):z!==null&&(z.elementType===Te||typeof Te=="object"&&Te!==null&&Te.$$typeof===D&&V_(Te)===z.type)?(z=p(z,q.props),Oo(z,q),z.return=Z,z):(z=Dd(q.type,q.key,q.props,null,Z.mode,le),Oo(z,q),z.return=Z,z)}function Y(Z,z,q,le){return z===null||z.tag!==4||z.stateNode.containerInfo!==q.containerInfo||z.stateNode.implementation!==q.implementation?(z=wh(q,Z.mode,le),z.return=Z,z):(z=p(z,q.children||[]),z.return=Z,z)}function ae(Z,z,q,le,Te){return z===null||z.tag!==7?(z=Ji(q,Z.mode,le,Te),z.return=Z,z):(z=p(z,q),z.return=Z,z)}function fe(Z,z,q){if(typeof z=="string"&&z!==""||typeof z=="number"||typeof z=="bigint")return z=Lh(""+z,Z.mode,q),z.return=Z,z;if(typeof z=="object"&&z!==null){switch(z.$$typeof){case l:return q=Dd(z.type,z.key,z.props,null,Z.mode,q),Oo(q,z),q.return=Z,q;case d:return z=wh(z,Z.mode,q),z.return=Z,z;case D:var le=z._init;return z=le(z._payload),fe(Z,z,q)}if(re(z)||O(z))return z=Ji(z,Z.mode,q,null),z.return=Z,z;if(typeof z.then=="function")return fe(Z,od(z),q);if(z.$$typeof===_)return fe(Z,yd(Z,z),q);ld(Z,z)}return null}function X(Z,z,q,le){var Te=z!==null?z.key:null;if(typeof q=="string"&&q!==""||typeof q=="number"||typeof q=="bigint")return Te!==null?null:B(Z,z,""+q,le);if(typeof q=="object"&&q!==null){switch(q.$$typeof){case l:return q.key===Te?M(Z,z,q,le):null;case d:return q.key===Te?Y(Z,z,q,le):null;case D:return Te=q._init,q=Te(q._payload),X(Z,z,q,le)}if(re(q)||O(q))return Te!==null?null:ae(Z,z,q,le,null);if(typeof q.then=="function")return X(Z,z,od(q),le);if(q.$$typeof===_)return X(Z,z,yd(Z,q),le);ld(Z,q)}return null}function ie(Z,z,q,le,Te){if(typeof le=="string"&&le!==""||typeof le=="number"||typeof le=="bigint")return Z=Z.get(q)||null,B(z,Z,""+le,Te);if(typeof le=="object"&&le!==null){switch(le.$$typeof){case l:return Z=Z.get(le.key===null?q:le.key)||null,M(z,Z,le,Te);case d:return Z=Z.get(le.key===null?q:le.key)||null,Y(z,Z,le,Te);case D:var nt=le._init;return le=nt(le._payload),ie(Z,z,q,le,Te)}if(re(le)||O(le))return Z=Z.get(q)||null,ae(z,Z,le,Te,null);if(typeof le.then=="function")return ie(Z,z,q,od(le),Te);if(le.$$typeof===_)return ie(Z,z,q,yd(z,le),Te);ld(z,le)}return null}function Le(Z,z,q,le){for(var Te=null,nt=null,Me=z,Pe=z=0,en=null;Me!==null&&Pe<q.length;Pe++){Me.index>Pe?(en=Me,Me=null):en=Me.sibling;var ft=X(Z,Me,q[Pe],le);if(ft===null){Me===null&&(Me=en);break}i&&Me&&ft.alternate===null&&s(Z,Me),z=I(ft,z,Pe),nt===null?Te=ft:nt.sibling=ft,nt=ft,Me=en}if(Pe===q.length)return c(Z,Me),dt&&ji(Z,Pe),Te;if(Me===null){for(;Pe<q.length;Pe++)Me=fe(Z,q[Pe],le),Me!==null&&(z=I(Me,z,Pe),nt===null?Te=Me:nt.sibling=Me,nt=Me);return dt&&ji(Z,Pe),Te}for(Me=h(Me);Pe<q.length;Pe++)en=ie(Me,Z,Pe,q[Pe],le),en!==null&&(i&&en.alternate!==null&&Me.delete(en.key===null?Pe:en.key),z=I(en,z,Pe),nt===null?Te=en:nt.sibling=en,nt=en);return i&&Me.forEach(function(si){return s(Z,si)}),dt&&ji(Z,Pe),Te}function Ye(Z,z,q,le){if(q==null)throw Error(r(151));for(var Te=null,nt=null,Me=z,Pe=z=0,en=null,ft=q.next();Me!==null&&!ft.done;Pe++,ft=q.next()){Me.index>Pe?(en=Me,Me=null):en=Me.sibling;var si=X(Z,Me,ft.value,le);if(si===null){Me===null&&(Me=en);break}i&&Me&&si.alternate===null&&s(Z,Me),z=I(si,z,Pe),nt===null?Te=si:nt.sibling=si,nt=si,Me=en}if(ft.done)return c(Z,Me),dt&&ji(Z,Pe),Te;if(Me===null){for(;!ft.done;Pe++,ft=q.next())ft=fe(Z,ft.value,le),ft!==null&&(z=I(ft,z,Pe),nt===null?Te=ft:nt.sibling=ft,nt=ft);return dt&&ji(Z,Pe),Te}for(Me=h(Me);!ft.done;Pe++,ft=q.next())ft=ie(Me,Z,Pe,ft.value,le),ft!==null&&(i&&ft.alternate!==null&&Me.delete(ft.key===null?Pe:ft.key),z=I(ft,z,Pe),nt===null?Te=ft:nt.sibling=ft,nt=ft);return i&&Me.forEach(function(dO){return s(Z,dO)}),dt&&ji(Z,Pe),Te}function Ot(Z,z,q,le){if(typeof q=="object"&&q!==null&&q.type===f&&q.key===null&&(q=q.props.children),typeof q=="object"&&q!==null){switch(q.$$typeof){case l:e:{for(var Te=q.key;z!==null;){if(z.key===Te){if(Te=q.type,Te===f){if(z.tag===7){c(Z,z.sibling),le=p(z,q.props.children),le.return=Z,Z=le;break e}}else if(z.elementType===Te||typeof Te=="object"&&Te!==null&&Te.$$typeof===D&&V_(Te)===z.type){c(Z,z.sibling),le=p(z,q.props),Oo(le,q),le.return=Z,Z=le;break e}c(Z,z);break}else s(Z,z);z=z.sibling}q.type===f?(le=Ji(q.props.children,Z.mode,le,q.key),le.return=Z,Z=le):(le=Dd(q.type,q.key,q.props,null,Z.mode,le),Oo(le,q),le.return=Z,Z=le)}return T(Z);case d:e:{for(Te=q.key;z!==null;){if(z.key===Te)if(z.tag===4&&z.stateNode.containerInfo===q.containerInfo&&z.stateNode.implementation===q.implementation){c(Z,z.sibling),le=p(z,q.children||[]),le.return=Z,Z=le;break e}else{c(Z,z);break}else s(Z,z);z=z.sibling}le=wh(q,Z.mode,le),le.return=Z,Z=le}return T(Z);case D:return Te=q._init,q=Te(q._payload),Ot(Z,z,q,le)}if(re(q))return Le(Z,z,q,le);if(O(q)){if(Te=O(q),typeof Te!="function")throw Error(r(150));return q=Te.call(q),Ye(Z,z,q,le)}if(typeof q.then=="function")return Ot(Z,z,od(q),le);if(q.$$typeof===_)return Ot(Z,z,yd(Z,q),le);ld(Z,q)}return typeof q=="string"&&q!==""||typeof q=="number"||typeof q=="bigint"?(q=""+q,z!==null&&z.tag===6?(c(Z,z.sibling),le=p(z,q),le.return=Z,Z=le):(c(Z,z),le=Lh(q,Z.mode,le),le.return=Z,Z=le),T(Z)):c(Z,z)}return function(Z,z,q,le){try{Bo=0;var Te=Ot(Z,z,q,le);return $a=null,Te}catch(Me){if(Me===xo)throw Me;var nt=ar(29,Me,null,Z.mode);return nt.lanes=le,nt.return=Z,nt}finally{}}}var zi=z_(!0),K_=z_(!1),qa=ve(null),cd=ve(0);function Y_(i,s){i=pu,we(cd,i),we(qa,s),pu=i|s.baseLanes}function GA(){we(cd,pu),we(qa,qa.current)}function jA(){pu=cd.current,je(qa),je(cd)}var rr=ve(null),Fr=null;function Vu(i){var s=i.alternate;we(Kt,Kt.current&1),we(rr,i),Fr===null&&(s===null||qa.current!==null||s.memoizedState!==null)&&(Fr=i)}function Z_(i){if(i.tag===22){if(we(Kt,Kt.current),we(rr,i),Fr===null){var s=i.alternate;s!==null&&s.memoizedState!==null&&(Fr=i)}}else zu()}function zu(){we(Kt,Kt.current),we(rr,rr.current)}function au(i){je(rr),Fr===i&&(Fr=null),je(Kt)}var Kt=ve(0);function dd(i){for(var s=i;s!==null;){if(s.tag===13){var c=s.memoizedState;if(c!==null&&(c=c.dehydrated,c===null||c.data==="$?"||c.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===i)break;for(;s.sibling===null;){if(s.return===null||s.return===i)return null;s=s.return}s.sibling.return=s.return,s=s.sibling}return null}var Xb=typeof AbortController<"u"?AbortController:function(){var i=[],s=this.signal={aborted:!1,addEventListener:function(c,h){i.push(h)}};this.abort=function(){s.aborted=!0,i.forEach(function(c){return c()})}},Jb=e.unstable_scheduleCallback,eB=e.unstable_NormalPriority,Yt={$$typeof:_,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function VA(){return{controller:new Xb,data:new Map,refCount:0}}function Fo(i){i.refCount--,i.refCount===0&&Jb(eB,function(){i.controller.abort()})}var Lo=null,zA=0,Qa=0,Xa=null;function tB(i,s){if(Lo===null){var c=Lo=[];zA=0,Qa=qh(),Xa={status:"pending",value:void 0,then:function(h){c.push(h)}}}return zA++,s.then(W_,W_),s}function W_(){if(--zA===0&&Lo!==null){Xa!==null&&(Xa.status="fulfilled");var i=Lo;Lo=null,Qa=0,Xa=null;for(var s=0;s<i.length;s++)(0,i[s])()}}function nB(i,s){var c=[],h={status:"pending",value:null,reason:null,then:function(p){c.push(p)}};return i.then(function(){h.status="fulfilled",h.value=s;for(var p=0;p<c.length;p++)(0,c[p])(s)},function(p){for(h.status="rejected",h.reason=p,p=0;p<c.length;p++)(0,c[p])(void 0)}),h}var $_=G.S;G.S=function(i,s){typeof s=="object"&&s!==null&&typeof s.then=="function"&&tB(i,s),$_!==null&&$_(i,s)};var Ki=ve(null);function KA(){var i=Ki.current;return i!==null?i:gt.pooledCache}function fd(i,s){s===null?we(Ki,Ki.current):we(Ki,s.pool)}function q_(){var i=KA();return i===null?null:{parent:Yt._currentValue,pool:i}}var Ku=0,et=null,mt=null,kt=null,Ad=!1,Ja=!1,Yi=!1,hd=0,wo=0,es=null,rB=0;function Mt(){throw Error(r(321))}function YA(i,s){if(s===null)return!1;for(var c=0;c<s.length&&c<i.length;c++)if(!Hn(i[c],s[c]))return!1;return!0}function ZA(i,s,c,h,p,I){return Ku=I,et=s,s.memoizedState=null,s.updateQueue=null,s.lanes=0,G.H=i===null||i.memoizedState===null?Zi:Yu,Yi=!1,I=c(h,p),Yi=!1,Ja&&(I=X_(s,c,h,p)),Q_(i),I}function Q_(i){G.H=Lr;var s=mt!==null&&mt.next!==null;if(Ku=0,kt=mt=et=null,Ad=!1,wo=0,es=null,s)throw Error(r(300));i===null||Xt||(i=i.dependencies,i!==null&&Cd(i)&&(Xt=!0))}function X_(i,s,c,h){et=i;var p=0;do{if(Ja&&(es=null),wo=0,Ja=!1,25<=p)throw Error(r(301));if(p+=1,kt=mt=null,i.updateQueue!=null){var I=i.updateQueue;I.lastEffect=null,I.events=null,I.stores=null,I.memoCache!=null&&(I.memoCache.index=0)}G.H=Wi,I=s(c,h)}while(Ja);return I}function uB(){var i=G.H,s=i.useState()[0];return s=typeof s.then=="function"?Mo(s):s,i=i.useState()[0],(mt!==null?mt.memoizedState:null)!==i&&(et.flags|=1024),s}function WA(){var i=hd!==0;return hd=0,i}function $A(i,s,c){s.updateQueue=i.updateQueue,s.flags&=-2053,i.lanes&=~c}function qA(i){if(Ad){for(i=i.memoizedState;i!==null;){var s=i.queue;s!==null&&(s.pending=null),i=i.next}Ad=!1}Ku=0,kt=mt=et=null,Ja=!1,wo=hd=0,es=null}function Tn(){var i={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return kt===null?et.memoizedState=kt=i:kt=kt.next=i,kt}function Gt(){if(mt===null){var i=et.alternate;i=i!==null?i.memoizedState:null}else i=mt.next;var s=kt===null?et.memoizedState:kt.next;if(s!==null)kt=s,mt=i;else{if(i===null)throw et.alternate===null?Error(r(467)):Error(r(310));mt=i,i={memoizedState:mt.memoizedState,baseState:mt.baseState,baseQueue:mt.baseQueue,queue:mt.queue,next:null},kt===null?et.memoizedState=kt=i:kt=kt.next=i}return kt}var md;md=function(){return{lastEffect:null,events:null,stores:null,memoCache:null}};function Mo(i){var s=wo;return wo+=1,es===null&&(es=[]),i=G_(es,i,s),s=et,(kt===null?s.memoizedState:kt.next)===null&&(s=s.alternate,G.H=s===null||s.memoizedState===null?Zi:Yu),i}function pd(i){if(i!==null&&typeof i=="object"){if(typeof i.then=="function")return Mo(i);if(i.$$typeof===_)return fn(i)}throw Error(r(438,String(i)))}function QA(i){var s=null,c=et.updateQueue;if(c!==null&&(s=c.memoCache),s==null){var h=et.alternate;h!==null&&(h=h.updateQueue,h!==null&&(h=h.memoCache,h!=null&&(s={data:h.data.map(function(p){return p.slice()}),index:0})))}if(s==null&&(s={data:[],index:0}),c===null&&(c=md(),et.updateQueue=c),c.memoCache=s,c=s.data[s.index],c===void 0)for(c=s.data[s.index]=Array(i),h=0;h<i;h++)c[h]=L;return s.index++,c}function su(i,s){return typeof s=="function"?s(i):s}function Ed(i){var s=Gt();return XA(s,mt,i)}function XA(i,s,c){var h=i.queue;if(h===null)throw Error(r(311));h.lastRenderedReducer=c;var p=i.baseQueue,I=h.pending;if(I!==null){if(p!==null){var T=p.next;p.next=I.next,I.next=T}s.baseQueue=p=I,h.pending=null}if(I=i.baseState,p===null)i.memoizedState=I;else{s=p.next;var B=T=null,M=null,Y=s,ae=!1;do{var fe=Y.lane&-536870913;if(fe!==Y.lane?(lt&fe)===fe:(Ku&fe)===fe){var X=Y.revertLane;if(X===0)M!==null&&(M=M.next={lane:0,revertLane:0,action:Y.action,hasEagerState:Y.hasEagerState,eagerState:Y.eagerState,next:null}),fe===Qa&&(ae=!0);else if((Ku&X)===X){Y=Y.next,X===Qa&&(ae=!0);continue}else fe={lane:0,revertLane:Y.revertLane,action:Y.action,hasEagerState:Y.hasEagerState,eagerState:Y.eagerState,next:null},M===null?(B=M=fe,T=I):M=M.next=fe,et.lanes|=X,ti|=X;fe=Y.action,Yi&&c(I,fe),I=Y.hasEagerState?Y.eagerState:c(I,fe)}else X={lane:fe,revertLane:Y.revertLane,action:Y.action,hasEagerState:Y.hasEagerState,eagerState:Y.eagerState,next:null},M===null?(B=M=X,T=I):M=M.next=X,et.lanes|=fe,ti|=fe;Y=Y.next}while(Y!==null&&Y!==s);if(M===null?T=I:M.next=B,!Hn(I,i.memoizedState)&&(Xt=!0,ae&&(c=Xa,c!==null)))throw c;i.memoizedState=I,i.baseState=T,i.baseQueue=M,h.lastRenderedState=I}return p===null&&(h.lanes=0),[i.memoizedState,h.dispatch]}function JA(i){var s=Gt(),c=s.queue;if(c===null)throw Error(r(311));c.lastRenderedReducer=i;var h=c.dispatch,p=c.pending,I=s.memoizedState;if(p!==null){c.pending=null;var T=p=p.next;do I=i(I,T.action),T=T.next;while(T!==p);Hn(I,s.memoizedState)||(Xt=!0),s.memoizedState=I,s.baseQueue===null&&(s.baseState=I),c.lastRenderedState=I}return[I,h]}function J_(i,s,c){var h=et,p=Gt(),I=dt;if(I){if(c===void 0)throw Error(r(407));c=c()}else c=s();var T=!Hn((mt||p).memoizedState,c);if(T&&(p.memoizedState=c,Xt=!0),p=p.queue,nh(nN.bind(null,h,p,i),[i]),p.getSnapshot!==s||T||kt!==null&&kt.memoizedState.tag&1){if(h.flags|=2048,ts(9,tN.bind(null,h,p,c,s),{destroy:void 0},null),gt===null)throw Error(r(349));I||(Ku&60)!==0||eN(h,s,c)}return c}function eN(i,s,c){i.flags|=16384,i={getSnapshot:s,value:c},s=et.updateQueue,s===null?(s=md(),et.updateQueue=s,s.stores=[i]):(c=s.stores,c===null?s.stores=[i]:c.push(i))}function tN(i,s,c,h){s.value=c,s.getSnapshot=h,rN(s)&&uN(i)}function nN(i,s,c){return c(function(){rN(s)&&uN(i)})}function rN(i){var s=i.getSnapshot;i=i.value;try{var c=s();return!Hn(i,c)}catch{return!0}}function uN(i){var s=ju(i,2);s!==null&&Sn(s,i,2)}function eh(i){var s=Tn();if(typeof i=="function"){var c=i;if(i=c(),Yi){Uu(!0);try{c()}finally{Uu(!1)}}}return s.memoizedState=s.baseState=i,s.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:su,lastRenderedState:i},s}function iN(i,s,c,h){return i.baseState=c,XA(i,mt,typeof h=="function"?h:su)}function iB(i,s,c,h,p){if(Nd(i))throw Error(r(485));if(i=s.action,i!==null){var I={payload:p,action:i,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(T){I.listeners.push(T)}};G.T!==null?c(!0):I.isTransition=!1,h(I),c=s.pending,c===null?(I.next=s.pending=I,aN(s,I)):(I.next=c.next,s.pending=c.next=I)}}function aN(i,s){var c=s.action,h=s.payload,p=i.state;if(s.isTransition){var I=G.T,T={};G.T=T;try{var B=c(p,h),M=G.S;M!==null&&M(T,B),sN(i,s,B)}catch(Y){th(i,s,Y)}finally{G.T=I}}else try{I=c(p,h),sN(i,s,I)}catch(Y){th(i,s,Y)}}function sN(i,s,c){c!==null&&typeof c=="object"&&typeof c.then=="function"?c.then(function(h){oN(i,s,h)},function(h){return th(i,s,h)}):oN(i,s,c)}function oN(i,s,c){s.status="fulfilled",s.value=c,lN(s),i.state=c,s=i.pending,s!==null&&(c=s.next,c===s?i.pending=null:(c=c.next,s.next=c,aN(i,c)))}function th(i,s,c){var h=i.pending;if(i.pending=null,h!==null){h=h.next;do s.status="rejected",s.reason=c,lN(s),s=s.next;while(s!==h)}i.action=null}function lN(i){i=i.listeners;for(var s=0;s<i.length;s++)(0,i[s])()}function cN(i,s){return s}function dN(i,s){if(dt){var c=gt.formState;if(c!==null){e:{var h=et;if(dt){if(un){t:{for(var p=un,I=Or;p.nodeType!==8;){if(!I){p=null;break t}if(p=Ir(p.nextSibling),p===null){p=null;break t}}I=p.data,p=I==="F!"||I==="F"?p:null}if(p){un=Ir(p.nextSibling),h=p.data==="F!";break e}}Vi(h)}h=!1}h&&(s=c[0])}}return c=Tn(),c.memoizedState=c.baseState=s,h={pending:null,lanes:0,dispatch:null,lastRenderedReducer:cN,lastRenderedState:s},c.queue=h,c=xN.bind(null,et,h),h.dispatch=c,h=eh(!1),I=sh.bind(null,et,!1,h.queue),h=Tn(),p={state:s,dispatch:null,action:i,pending:null},h.queue=p,c=iB.bind(null,et,p,I,c),p.dispatch=c,h.memoizedState=i,[s,c,!1]}function fN(i){var s=Gt();return AN(s,mt,i)}function AN(i,s,c){s=XA(i,s,cN)[0],i=Ed(su)[0],s=typeof s=="object"&&s!==null&&typeof s.then=="function"?Mo(s):s;var h=Gt(),p=h.queue,I=p.dispatch;return c!==h.memoizedState&&(et.flags|=2048,ts(9,aB.bind(null,p,c),{destroy:void 0},null)),[s,I,i]}function aB(i,s){i.action=s}function hN(i){var s=Gt(),c=mt;if(c!==null)return AN(s,c,i);Gt(),s=s.memoizedState,c=Gt();var h=c.queue.dispatch;return c.memoizedState=i,[s,h,!1]}function ts(i,s,c,h){return i={tag:i,create:s,inst:c,deps:h,next:null},s=et.updateQueue,s===null&&(s=md(),et.updateQueue=s),c=s.lastEffect,c===null?s.lastEffect=i.next=i:(h=c.next,c.next=i,i.next=h,s.lastEffect=i),i}function mN(){return Gt().memoizedState}function gd(i,s,c,h){var p=Tn();et.flags|=i,p.memoizedState=ts(1|s,c,{destroy:void 0},h===void 0?null:h)}function _d(i,s,c,h){var p=Gt();h=h===void 0?null:h;var I=p.memoizedState.inst;mt!==null&&h!==null&&YA(h,mt.memoizedState.deps)?p.memoizedState=ts(s,c,I,h):(et.flags|=i,p.memoizedState=ts(1|s,c,I,h))}function pN(i,s){gd(8390656,8,i,s)}function nh(i,s){_d(2048,8,i,s)}function EN(i,s){return _d(4,2,i,s)}function gN(i,s){return _d(4,4,i,s)}function _N(i,s){if(typeof s=="function"){i=i();var c=s(i);return function(){typeof c=="function"?c():s(null)}}if(s!=null)return i=i(),s.current=i,function(){s.current=null}}function NN(i,s,c){c=c!=null?c.concat([i]):null,_d(4,4,_N.bind(null,s,i),c)}function rh(){}function IN(i,s){var c=Gt();s=s===void 0?null:s;var h=c.memoizedState;return s!==null&&YA(s,h[1])?h[0]:(c.memoizedState=[i,s],i)}function SN(i,s){var c=Gt();s=s===void 0?null:s;var h=c.memoizedState;if(s!==null&&YA(s,h[1]))return h[0];if(h=i(),Yi){Uu(!0);try{i()}finally{Uu(!1)}}return c.memoizedState=[h,s],h}function uh(i,s,c){return c===void 0||(Ku&1073741824)!==0?i.memoizedState=s:(i.memoizedState=c,i=yI(),et.lanes|=i,ti|=i,c)}function CN(i,s,c,h){return Hn(c,s)?c:qa.current!==null?(i=uh(i,c,h),Hn(i,s)||(Xt=!0),i):(Ku&42)===0?(Xt=!0,i.memoizedState=c):(i=yI(),et.lanes|=i,ti|=i,s)}function yN(i,s,c,h,p){var I=te.p;te.p=I!==0&&8>I?I:8;var T=G.T,B={};G.T=B,sh(i,!1,s,c);try{var M=p(),Y=G.S;if(Y!==null&&Y(B,M),M!==null&&typeof M=="object"&&typeof M.then=="function"){var ae=nB(M,h);Ho(i,s,ae,Gn(i))}else Ho(i,s,h,Gn(i))}catch(fe){Ho(i,s,{then:function(){},status:"rejected",reason:fe},Gn())}finally{te.p=I,G.T=T}}function sB(){}function ih(i,s,c,h){if(i.tag!==5)throw Error(r(476));var p=vN(i).queue;yN(i,p,s,ce,c===null?sB:function(){return RN(i),c(h)})}function vN(i){var s=i.memoizedState;if(s!==null)return s;s={memoizedState:ce,baseState:ce,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:su,lastRenderedState:ce},next:null};var c={};return s.next={memoizedState:c,baseState:c,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:su,lastRenderedState:c},next:null},i.memoizedState=s,i=i.alternate,i!==null&&(i.memoizedState=s),s}function RN(i){var s=vN(i).next.queue;Ho(i,s,{},Gn())}function ah(){return fn(rl)}function DN(){return Gt().memoizedState}function TN(){return Gt().memoizedState}function oB(i){for(var s=i.return;s!==null;){switch(s.tag){case 24:case 3:var c=Gn();i=$u(c);var h=qu(s,i,c);h!==null&&(Sn(h,s,c),ko(h,s,c)),s={cache:VA()},i.payload=s;return}s=s.return}}function lB(i,s,c){var h=Gn();c={lane:h,revertLane:0,action:c,hasEagerState:!1,eagerState:null,next:null},Nd(i)?bN(s,c):(c=MA(i,s,c,h),c!==null&&(Sn(c,i,h),BN(c,s,h)))}function xN(i,s,c){var h=Gn();Ho(i,s,c,h)}function Ho(i,s,c,h){var p={lane:h,revertLane:0,action:c,hasEagerState:!1,eagerState:null,next:null};if(Nd(i))bN(s,p);else{var I=i.alternate;if(i.lanes===0&&(I===null||I.lanes===0)&&(I=s.lastRenderedReducer,I!==null))try{var T=s.lastRenderedState,B=I(T,c);if(p.hasEagerState=!0,p.eagerState=B,Hn(B,T))return rd(i,s,p,0),gt===null&&nd(),!1}catch{}finally{}if(c=MA(i,s,p,h),c!==null)return Sn(c,i,h),BN(c,s,h),!0}return!1}function sh(i,s,c,h){if(h={lane:2,revertLane:qh(),action:h,hasEagerState:!1,eagerState:null,next:null},Nd(i)){if(s)throw Error(r(479))}else s=MA(i,c,h,2),s!==null&&Sn(s,i,2)}function Nd(i){var s=i.alternate;return i===et||s!==null&&s===et}function bN(i,s){Ja=Ad=!0;var c=i.pending;c===null?s.next=s:(s.next=c.next,c.next=s),i.pending=s}function BN(i,s,c){if((c&4194176)!==0){var h=s.lanes;h&=i.pendingLanes,c|=h,s.lanes=c,j4(i,c)}}var Lr={readContext:fn,use:pd,useCallback:Mt,useContext:Mt,useEffect:Mt,useImperativeHandle:Mt,useLayoutEffect:Mt,useInsertionEffect:Mt,useMemo:Mt,useReducer:Mt,useRef:Mt,useState:Mt,useDebugValue:Mt,useDeferredValue:Mt,useTransition:Mt,useSyncExternalStore:Mt,useId:Mt};Lr.useCacheRefresh=Mt,Lr.useMemoCache=Mt,Lr.useHostTransitionStatus=Mt,Lr.useFormState=Mt,Lr.useActionState=Mt,Lr.useOptimistic=Mt;var Zi={readContext:fn,use:pd,useCallback:function(i,s){return Tn().memoizedState=[i,s===void 0?null:s],i},useContext:fn,useEffect:pN,useImperativeHandle:function(i,s,c){c=c!=null?c.concat([i]):null,gd(4194308,4,_N.bind(null,s,i),c)},useLayoutEffect:function(i,s){return gd(4194308,4,i,s)},useInsertionEffect:function(i,s){gd(4,2,i,s)},useMemo:function(i,s){var c=Tn();s=s===void 0?null:s;var h=i();if(Yi){Uu(!0);try{i()}finally{Uu(!1)}}return c.memoizedState=[h,s],h},useReducer:function(i,s,c){var h=Tn();if(c!==void 0){var p=c(s);if(Yi){Uu(!0);try{c(s)}finally{Uu(!1)}}}else p=s;return h.memoizedState=h.baseState=p,i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:i,lastRenderedState:p},h.queue=i,i=i.dispatch=lB.bind(null,et,i),[h.memoizedState,i]},useRef:function(i){var s=Tn();return i={current:i},s.memoizedState=i},useState:function(i){i=eh(i);var s=i.queue,c=xN.bind(null,et,s);return s.dispatch=c,[i.memoizedState,c]},useDebugValue:rh,useDeferredValue:function(i,s){var c=Tn();return uh(c,i,s)},useTransition:function(){var i=eh(!1);return i=yN.bind(null,et,i.queue,!0,!1),Tn().memoizedState=i,[!1,i]},useSyncExternalStore:function(i,s,c){var h=et,p=Tn();if(dt){if(c===void 0)throw Error(r(407));c=c()}else{if(c=s(),gt===null)throw Error(r(349));(lt&60)!==0||eN(h,s,c)}p.memoizedState=c;var I={value:c,getSnapshot:s};return p.queue=I,pN(nN.bind(null,h,I,i),[i]),h.flags|=2048,ts(9,tN.bind(null,h,I,c,s),{destroy:void 0},null),c},useId:function(){var i=Tn(),s=gt.identifierPrefix;if(dt){var c=iu,h=uu;c=(h&~(1<<32-Mn(h)-1)).toString(32)+c,s=":"+s+"R"+c,c=hd++,0<c&&(s+="H"+c.toString(32)),s+=":"}else c=rB++,s=":"+s+"r"+c.toString(32)+":";return i.memoizedState=s},useCacheRefresh:function(){return Tn().memoizedState=oB.bind(null,et)}};Zi.useMemoCache=QA,Zi.useHostTransitionStatus=ah,Zi.useFormState=dN,Zi.useActionState=dN,Zi.useOptimistic=function(i){var s=Tn();s.memoizedState=s.baseState=i;var c={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return s.queue=c,s=sh.bind(null,et,!0,c),c.dispatch=s,[i,s]};var Yu={readContext:fn,use:pd,useCallback:IN,useContext:fn,useEffect:nh,useImperativeHandle:NN,useInsertionEffect:EN,useLayoutEffect:gN,useMemo:SN,useReducer:Ed,useRef:mN,useState:function(){return Ed(su)},useDebugValue:rh,useDeferredValue:function(i,s){var c=Gt();return CN(c,mt.memoizedState,i,s)},useTransition:function(){var i=Ed(su)[0],s=Gt().memoizedState;return[typeof i=="boolean"?i:Mo(i),s]},useSyncExternalStore:J_,useId:DN};Yu.useCacheRefresh=TN,Yu.useMemoCache=QA,Yu.useHostTransitionStatus=ah,Yu.useFormState=fN,Yu.useActionState=fN,Yu.useOptimistic=function(i,s){var c=Gt();return iN(c,mt,i,s)};var Wi={readContext:fn,use:pd,useCallback:IN,useContext:fn,useEffect:nh,useImperativeHandle:NN,useInsertionEffect:EN,useLayoutEffect:gN,useMemo:SN,useReducer:JA,useRef:mN,useState:function(){return JA(su)},useDebugValue:rh,useDeferredValue:function(i,s){var c=Gt();return mt===null?uh(c,i,s):CN(c,mt.memoizedState,i,s)},useTransition:function(){var i=JA(su)[0],s=Gt().memoizedState;return[typeof i=="boolean"?i:Mo(i),s]},useSyncExternalStore:J_,useId:DN};Wi.useCacheRefresh=TN,Wi.useMemoCache=QA,Wi.useHostTransitionStatus=ah,Wi.useFormState=hN,Wi.useActionState=hN,Wi.useOptimistic=function(i,s){var c=Gt();return mt!==null?iN(c,mt,i,s):(c.baseState=i,[i,c.queue.dispatch])};function oh(i,s,c,h){s=i.memoizedState,c=c(h,s),c=c==null?s:K({},s,c),i.memoizedState=c,i.lanes===0&&(i.updateQueue.baseState=c)}var lh={isMounted:function(i){return(i=i._reactInternals)?ee(i)===i:!1},enqueueSetState:function(i,s,c){i=i._reactInternals;var h=Gn(),p=$u(h);p.payload=s,c!=null&&(p.callback=c),s=qu(i,p,h),s!==null&&(Sn(s,i,h),ko(s,i,h))},enqueueReplaceState:function(i,s,c){i=i._reactInternals;var h=Gn(),p=$u(h);p.tag=1,p.payload=s,c!=null&&(p.callback=c),s=qu(i,p,h),s!==null&&(Sn(s,i,h),ko(s,i,h))},enqueueForceUpdate:function(i,s){i=i._reactInternals;var c=Gn(),h=$u(c);h.tag=2,s!=null&&(h.callback=s),s=qu(i,h,c),s!==null&&(Sn(s,i,c),ko(s,i,c))}};function ON(i,s,c,h,p,I,T){return i=i.stateNode,typeof i.shouldComponentUpdate=="function"?i.shouldComponentUpdate(h,I,T):s.prototype&&s.prototype.isPureReactComponent?!yo(c,h)||!yo(p,I):!0}function FN(i,s,c,h){i=s.state,typeof s.componentWillReceiveProps=="function"&&s.componentWillReceiveProps(c,h),typeof s.UNSAFE_componentWillReceiveProps=="function"&&s.UNSAFE_componentWillReceiveProps(c,h),s.state!==i&&lh.enqueueReplaceState(s,s.state,null)}function $i(i,s){var c=s;if("ref"in s){c={};for(var h in s)h!=="ref"&&(c[h]=s[h])}if(i=i.defaultProps){c===s&&(c=K({},c));for(var p in i)c[p]===void 0&&(c[p]=i[p])}return c}var Id=typeof reportError=="function"?reportError:function(i){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var s=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof i=="object"&&i!==null&&typeof i.message=="string"?String(i.message):String(i),error:i});if(!window.dispatchEvent(s))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",i);return}console.error(i)};function LN(i){Id(i)}function wN(i){console.error(i)}function MN(i){Id(i)}function Sd(i,s){try{var c=i.onUncaughtError;c(s.value,{componentStack:s.stack})}catch(h){setTimeout(function(){throw h})}}function HN(i,s,c){try{var h=i.onCaughtError;h(c.value,{componentStack:c.stack,errorBoundary:s.tag===1?s.stateNode:null})}catch(p){setTimeout(function(){throw p})}}function ch(i,s,c){return c=$u(c),c.tag=3,c.payload={element:null},c.callback=function(){Sd(i,s)},c}function PN(i){return i=$u(i),i.tag=3,i}function UN(i,s,c,h){var p=c.type.getDerivedStateFromError;if(typeof p=="function"){var I=h.value;i.payload=function(){return p(I)},i.callback=function(){HN(s,c,h)}}var T=c.stateNode;T!==null&&typeof T.componentDidCatch=="function"&&(i.callback=function(){HN(s,c,h),typeof p!="function"&&(ni===null?ni=new Set([this]):ni.add(this));var B=h.stack;this.componentDidCatch(h.value,{componentStack:B!==null?B:""})})}function cB(i,s,c,h,p){if(c.flags|=32768,h!==null&&typeof h=="object"&&typeof h.then=="function"){if(s=c.alternate,s!==null&&Uo(s,c,p,!0),c=rr.current,c!==null){switch(c.tag){case 13:return Fr===null?Kh():c.alternate===null&&Bt===0&&(Bt=3),c.flags&=-257,c.flags|=65536,c.lanes=p,h===kA?c.flags|=16384:(s=c.updateQueue,s===null?c.updateQueue=new Set([h]):s.add(h),Zh(i,h,p)),!1;case 22:return c.flags|=65536,h===kA?c.flags|=16384:(s=c.updateQueue,s===null?(s={transitions:null,markerInstances:null,retryQueue:new Set([h])},c.updateQueue=s):(c=s.retryQueue,c===null?s.retryQueue=new Set([h]):c.add(h)),Zh(i,h,p)),!1}throw Error(r(435,c.tag))}return Zh(i,h,p),Kh(),!1}if(dt)return s=rr.current,s!==null?((s.flags&65536)===0&&(s.flags|=256),s.flags|=65536,s.lanes=p,h!==UA&&(i=Error(r(422),{cause:h}),To(er(i,c)))):(h!==UA&&(s=Error(r(423),{cause:h}),To(er(s,c))),i=i.current.alternate,i.flags|=65536,p&=-p,i.lanes|=p,h=er(h,c),p=ch(i.stateNode,h,p),vh(i,p),Bt!==4&&(Bt=2)),!1;var I=Error(r(520),{cause:h});if(I=er(I,c),Wo===null?Wo=[I]:Wo.push(I),Bt!==4&&(Bt=2),s===null)return!0;h=er(h,c),c=s;do{switch(c.tag){case 3:return c.flags|=65536,i=p&-p,c.lanes|=i,i=ch(c.stateNode,h,i),vh(c,i),!1;case 1:if(s=c.type,I=c.stateNode,(c.flags&128)===0&&(typeof s.getDerivedStateFromError=="function"||I!==null&&typeof I.componentDidCatch=="function"&&(ni===null||!ni.has(I))))return c.flags|=65536,p&=-p,c.lanes|=p,p=PN(p),UN(p,i,c,h),vh(c,p),!1}c=c.return}while(c!==null);return!1}var kN=Error(r(461)),Xt=!1;function an(i,s,c,h){s.child=i===null?K_(s,null,c,h):zi(s,i.child,c,h)}function GN(i,s,c,h,p){c=c.render;var I=s.ref;if("ref"in h){var T={};for(var B in h)B!=="ref"&&(T[B]=h[B])}else T=h;return Qi(s),h=ZA(i,s,c,T,I,p),B=WA(),i!==null&&!Xt?($A(i,s,p),ou(i,s,p)):(dt&&B&&HA(s),s.flags|=1,an(i,s,h,p),s.child)}function jN(i,s,c,h,p){if(i===null){var I=c.type;return typeof I=="function"&&!Fh(I)&&I.defaultProps===void 0&&c.compare===null?(s.tag=15,s.type=I,VN(i,s,I,h,p)):(i=Dd(c.type,null,h,s,s.mode,p),i.ref=s.ref,i.return=s,s.child=i)}if(I=i.child,!_h(i,p)){var T=I.memoizedProps;if(c=c.compare,c=c!==null?c:yo,c(T,h)&&i.ref===s.ref)return ou(i,s,p)}return s.flags|=1,i=ei(I,h),i.ref=s.ref,i.return=s,s.child=i}function VN(i,s,c,h,p){if(i!==null){var I=i.memoizedProps;if(yo(I,h)&&i.ref===s.ref)if(Xt=!1,s.pendingProps=h=I,_h(i,p))(i.flags&131072)!==0&&(Xt=!0);else return s.lanes=i.lanes,ou(i,s,p)}return dh(i,s,c,h,p)}function zN(i,s,c){var h=s.pendingProps,p=h.children,I=(s.stateNode._pendingVisibility&2)!==0,T=i!==null?i.memoizedState:null;if(Po(i,s),h.mode==="hidden"||I){if((s.flags&128)!==0){if(h=T!==null?T.baseLanes|c:c,i!==null){for(p=s.child=i.child,I=0;p!==null;)I=I|p.lanes|p.childLanes,p=p.sibling;s.childLanes=I&~h}else s.childLanes=0,s.child=null;return KN(i,s,h,c)}if((c&536870912)!==0)s.memoizedState={baseLanes:0,cachePool:null},i!==null&&fd(s,T!==null?T.cachePool:null),T!==null?Y_(s,T):GA(),Z_(s);else return s.lanes=s.childLanes=536870912,KN(i,s,T!==null?T.baseLanes|c:c,c)}else T!==null?(fd(s,T.cachePool),Y_(s,T),zu(),s.memoizedState=null):(i!==null&&fd(s,null),GA(),zu());return an(i,s,p,c),s.child}function KN(i,s,c,h){var p=KA();return p=p===null?null:{parent:Yt._currentValue,pool:p},s.memoizedState={baseLanes:c,cachePool:p},i!==null&&fd(s,null),GA(),Z_(s),i!==null&&Uo(i,s,h,!0),null}function Po(i,s){var c=s.ref;if(c===null)i!==null&&i.ref!==null&&(s.flags|=2097664);else{if(typeof c!="function"&&typeof c!="object")throw Error(r(284));(i===null||i.ref!==c)&&(s.flags|=2097664)}}function dh(i,s,c,h,p){return Qi(s),c=ZA(i,s,c,h,void 0,p),h=WA(),i!==null&&!Xt?($A(i,s,p),ou(i,s,p)):(dt&&h&&HA(s),s.flags|=1,an(i,s,c,p),s.child)}function YN(i,s,c,h,p,I){return Qi(s),s.updateQueue=null,c=X_(s,h,c,p),Q_(i),h=WA(),i!==null&&!Xt?($A(i,s,I),ou(i,s,I)):(dt&&h&&HA(s),s.flags|=1,an(i,s,c,I),s.child)}function ZN(i,s,c,h,p){if(Qi(s),s.stateNode===null){var I=Ya,T=c.contextType;typeof T=="object"&&T!==null&&(I=fn(T)),I=new c(h,I),s.memoizedState=I.state!==null&&I.state!==void 0?I.state:null,I.updater=lh,s.stateNode=I,I._reactInternals=s,I=s.stateNode,I.props=h,I.state=s.memoizedState,I.refs={},Ch(s),T=c.contextType,I.context=typeof T=="object"&&T!==null?fn(T):Ya,I.state=s.memoizedState,T=c.getDerivedStateFromProps,typeof T=="function"&&(oh(s,c,T,h),I.state=s.memoizedState),typeof c.getDerivedStateFromProps=="function"||typeof I.getSnapshotBeforeUpdate=="function"||typeof I.UNSAFE_componentWillMount!="function"&&typeof I.componentWillMount!="function"||(T=I.state,typeof I.componentWillMount=="function"&&I.componentWillMount(),typeof I.UNSAFE_componentWillMount=="function"&&I.UNSAFE_componentWillMount(),T!==I.state&&lh.enqueueReplaceState(I,I.state,null),jo(s,h,I,p),Go(),I.state=s.memoizedState),typeof I.componentDidMount=="function"&&(s.flags|=4194308),h=!0}else if(i===null){I=s.stateNode;var B=s.memoizedProps,M=$i(c,B);I.props=M;var Y=I.context,ae=c.contextType;T=Ya,typeof ae=="object"&&ae!==null&&(T=fn(ae));var fe=c.getDerivedStateFromProps;ae=typeof fe=="function"||typeof I.getSnapshotBeforeUpdate=="function",B=s.pendingProps!==B,ae||typeof I.UNSAFE_componentWillReceiveProps!="function"&&typeof I.componentWillReceiveProps!="function"||(B||Y!==T)&&FN(s,I,h,T),Wu=!1;var X=s.memoizedState;I.state=X,jo(s,h,I,p),Go(),Y=s.memoizedState,B||X!==Y||Wu?(typeof fe=="function"&&(oh(s,c,fe,h),Y=s.memoizedState),(M=Wu||ON(s,c,M,h,X,Y,T))?(ae||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=h,s.memoizedState=Y),I.props=h,I.state=Y,I.context=T,h=M):(typeof I.componentDidMount=="function"&&(s.flags|=4194308),h=!1)}else{I=s.stateNode,yh(i,s),T=s.memoizedProps,ae=$i(c,T),I.props=ae,fe=s.pendingProps,X=I.context,Y=c.contextType,M=Ya,typeof Y=="object"&&Y!==null&&(M=fn(Y)),B=c.getDerivedStateFromProps,(Y=typeof B=="function"||typeof I.getSnapshotBeforeUpdate=="function")||typeof I.UNSAFE_componentWillReceiveProps!="function"&&typeof I.componentWillReceiveProps!="function"||(T!==fe||X!==M)&&FN(s,I,h,M),Wu=!1,X=s.memoizedState,I.state=X,jo(s,h,I,p),Go();var ie=s.memoizedState;T!==fe||X!==ie||Wu||i!==null&&i.dependencies!==null&&Cd(i.dependencies)?(typeof B=="function"&&(oh(s,c,B,h),ie=s.memoizedState),(ae=Wu||ON(s,c,ae,h,X,ie,M)||i!==null&&i.dependencies!==null&&Cd(i.dependencies))?(Y||typeof I.UNSAFE_componentWillUpdate!="function"&&typeof I.componentWillUpdate!="function"||(typeof I.componentWillUpdate=="function"&&I.componentWillUpdate(h,ie,M),typeof I.UNSAFE_componentWillUpdate=="function"&&I.UNSAFE_componentWillUpdate(h,ie,M)),typeof I.componentDidUpdate=="function"&&(s.flags|=4),typeof I.getSnapshotBeforeUpdate=="function"&&(s.flags|=1024)):(typeof I.componentDidUpdate!="function"||T===i.memoizedProps&&X===i.memoizedState||(s.flags|=4),typeof I.getSnapshotBeforeUpdate!="function"||T===i.memoizedProps&&X===i.memoizedState||(s.flags|=1024),s.memoizedProps=h,s.memoizedState=ie),I.props=h,I.state=ie,I.context=M,h=ae):(typeof I.componentDidUpdate!="function"||T===i.memoizedProps&&X===i.memoizedState||(s.flags|=4),typeof I.getSnapshotBeforeUpdate!="function"||T===i.memoizedProps&&X===i.memoizedState||(s.flags|=1024),h=!1)}return I=h,Po(i,s),h=(s.flags&128)!==0,I||h?(I=s.stateNode,c=h&&typeof c.getDerivedStateFromError!="function"?null:I.render(),s.flags|=1,i!==null&&h?(s.child=zi(s,i.child,null,p),s.child=zi(s,null,c,p)):an(i,s,c,p),s.memoizedState=I.state,i=s.child):i=ou(i,s,p),i}function WN(i,s,c,h){return Do(),s.flags|=256,an(i,s,c,h),s.child}var fh={dehydrated:null,treeContext:null,retryLane:0};function Ah(i){return{baseLanes:i,cachePool:q_()}}function hh(i,s,c){return i=i!==null?i.childLanes&~c:0,s&&(i|=sr),i}function $N(i,s,c){var h=s.pendingProps,p=!1,I=(s.flags&128)!==0,T;if((T=I)||(T=i!==null&&i.memoizedState===null?!1:(Kt.current&2)!==0),T&&(p=!0,s.flags&=-129),T=(s.flags&32)!==0,s.flags&=-33,i===null){if(dt){if(p?Vu(s):zu(),dt){var B=un,M;if(M=B){e:{for(M=B,B=Or;M.nodeType!==8;){if(!B){B=null;break e}if(M=Ir(M.nextSibling),M===null){B=null;break e}}B=M}B!==null?(s.memoizedState={dehydrated:B,treeContext:Gi!==null?{id:uu,overflow:iu}:null,retryLane:536870912},M=ar(18,null,null,0),M.stateNode=B,M.return=s,s.child=M,In=s,un=null,M=!0):M=!1}M||Vi(s)}if(B=s.memoizedState,B!==null&&(B=B.dehydrated,B!==null))return B.data==="$!"?s.lanes=16:s.lanes=536870912,null;au(s)}return B=h.children,h=h.fallback,p?(zu(),p=s.mode,B=ph({mode:"hidden",children:B},p),h=Ji(h,p,c,null),B.return=s,h.return=s,B.sibling=h,s.child=B,p=s.child,p.memoizedState=Ah(c),p.childLanes=hh(i,T,c),s.memoizedState=fh,h):(Vu(s),mh(s,B))}if(M=i.memoizedState,M!==null&&(B=M.dehydrated,B!==null)){if(I)s.flags&256?(Vu(s),s.flags&=-257,s=Eh(i,s,c)):s.memoizedState!==null?(zu(),s.child=i.child,s.flags|=128,s=null):(zu(),p=h.fallback,B=s.mode,h=ph({mode:"visible",children:h.children},B),p=Ji(p,B,c,null),p.flags|=2,h.return=s,p.return=s,h.sibling=p,s.child=h,zi(s,i.child,null,c),h=s.child,h.memoizedState=Ah(c),h.childLanes=hh(i,T,c),s.memoizedState=fh,s=p);else if(Vu(s),B.data==="$!"){if(T=B.nextSibling&&B.nextSibling.dataset,T)var Y=T.dgst;T=Y,h=Error(r(419)),h.stack="",h.digest=T,To({value:h,source:null,stack:null}),s=Eh(i,s,c)}else if(Xt||Uo(i,s,c,!1),T=(c&i.childLanes)!==0,Xt||T){if(T=gt,T!==null){if(h=c&-c,(h&42)!==0)h=1;else switch(h){case 2:h=1;break;case 8:h=4;break;case 32:h=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:h=64;break;case 268435456:h=134217728;break;default:h=0}if(h=(h&(T.suspendedLanes|c))!==0?0:h,h!==0&&h!==M.retryLane)throw M.retryLane=h,ju(i,h),Sn(T,i,h),kN}B.data==="$?"||Kh(),s=Eh(i,s,c)}else B.data==="$?"?(s.flags|=128,s.child=i.child,s=vB.bind(null,i),B._reactRetry=s,s=null):(i=M.treeContext,un=Ir(B.nextSibling),In=s,dt=!0,_r=null,Or=!1,i!==null&&(tr[nr++]=uu,tr[nr++]=iu,tr[nr++]=Gi,uu=i.id,iu=i.overflow,Gi=s),s=mh(s,h.children),s.flags|=4096);return s}return p?(zu(),p=h.fallback,B=s.mode,M=i.child,Y=M.sibling,h=ei(M,{mode:"hidden",children:h.children}),h.subtreeFlags=M.subtreeFlags&31457280,Y!==null?p=ei(Y,p):(p=Ji(p,B,c,null),p.flags|=2),p.return=s,h.return=s,h.sibling=p,s.child=h,h=p,p=s.child,B=i.child.memoizedState,B===null?B=Ah(c):(M=B.cachePool,M!==null?(Y=Yt._currentValue,M=M.parent!==Y?{parent:Y,pool:Y}:M):M=q_(),B={baseLanes:B.baseLanes|c,cachePool:M}),p.memoizedState=B,p.childLanes=hh(i,T,c),s.memoizedState=fh,h):(Vu(s),c=i.child,i=c.sibling,c=ei(c,{mode:"visible",children:h.children}),c.return=s,c.sibling=null,i!==null&&(T=s.deletions,T===null?(s.deletions=[i],s.flags|=16):T.push(i)),s.child=c,s.memoizedState=null,c)}function mh(i,s){return s=ph({mode:"visible",children:s},i.mode),s.return=i,i.child=s}function ph(i,s){return II(i,s,0,null)}function Eh(i,s,c){return zi(s,i.child,null,c),i=mh(s,s.pendingProps.children),i.flags|=2,s.memoizedState=null,i}function qN(i,s,c){i.lanes|=s;var h=i.alternate;h!==null&&(h.lanes|=s),Ih(i.return,s,c)}function gh(i,s,c,h,p){var I=i.memoizedState;I===null?i.memoizedState={isBackwards:s,rendering:null,renderingStartTime:0,last:h,tail:c,tailMode:p}:(I.isBackwards=s,I.rendering=null,I.renderingStartTime=0,I.last=h,I.tail=c,I.tailMode=p)}function QN(i,s,c){var h=s.pendingProps,p=h.revealOrder,I=h.tail;if(an(i,s,h.children,c),h=Kt.current,(h&2)!==0)h=h&1|2,s.flags|=128;else{if(i!==null&&(i.flags&128)!==0)e:for(i=s.child;i!==null;){if(i.tag===13)i.memoizedState!==null&&qN(i,c,s);else if(i.tag===19)qN(i,c,s);else if(i.child!==null){i.child.return=i,i=i.child;continue}if(i===s)break e;for(;i.sibling===null;){if(i.return===null||i.return===s)break e;i=i.return}i.sibling.return=i.return,i=i.sibling}h&=1}switch(we(Kt,h),p){case"forwards":for(c=s.child,p=null;c!==null;)i=c.alternate,i!==null&&dd(i)===null&&(p=c),c=c.sibling;c=p,c===null?(p=s.child,s.child=null):(p=c.sibling,c.sibling=null),gh(s,!1,p,c,I);break;case"backwards":for(c=null,p=s.child,s.child=null;p!==null;){if(i=p.alternate,i!==null&&dd(i)===null){s.child=p;break}i=p.sibling,p.sibling=c,c=p,p=i}gh(s,!0,c,null,I);break;case"together":gh(s,!1,null,null,void 0);break;default:s.memoizedState=null}return s.child}function ou(i,s,c){if(i!==null&&(s.dependencies=i.dependencies),ti|=s.lanes,(c&s.childLanes)===0)if(i!==null){if(Uo(i,s,c,!1),(c&s.childLanes)===0)return null}else return null;if(i!==null&&s.child!==i.child)throw Error(r(153));if(s.child!==null){for(i=s.child,c=ei(i,i.pendingProps),s.child=c,c.return=s;i.sibling!==null;)i=i.sibling,c=c.sibling=ei(i,i.pendingProps),c.return=s;c.sibling=null}return s.child}function _h(i,s){return(i.lanes&s)!==0?!0:(i=i.dependencies,!!(i!==null&&Cd(i)))}function dB(i,s,c){switch(s.tag){case 3:Er(s,s.stateNode.containerInfo),Zu(s,Yt,i.memoizedState.cache),Do();break;case 27:case 5:Br(s);break;case 4:Er(s,s.stateNode.containerInfo);break;case 10:Zu(s,s.type,s.memoizedProps.value);break;case 13:var h=s.memoizedState;if(h!==null)return h.dehydrated!==null?(Vu(s),s.flags|=128,null):(c&s.child.childLanes)!==0?$N(i,s,c):(Vu(s),i=ou(i,s,c),i!==null?i.sibling:null);Vu(s);break;case 19:var p=(i.flags&128)!==0;if(h=(c&s.childLanes)!==0,h||(Uo(i,s,c,!1),h=(c&s.childLanes)!==0),p){if(h)return QN(i,s,c);s.flags|=128}if(p=s.memoizedState,p!==null&&(p.rendering=null,p.tail=null,p.lastEffect=null),we(Kt,Kt.current),h)break;return null;case 22:case 23:return s.lanes=0,zN(i,s,c);case 24:Zu(s,Yt,i.memoizedState.cache)}return ou(i,s,c)}function XN(i,s,c){if(i!==null)if(i.memoizedProps!==s.pendingProps)Xt=!0;else{if(!_h(i,c)&&(s.flags&128)===0)return Xt=!1,dB(i,s,c);Xt=(i.flags&131072)!==0}else Xt=!1,dt&&(s.flags&1048576)!==0&&M_(s,ad,s.index);switch(s.lanes=0,s.tag){case 16:e:{i=s.pendingProps;var h=s.elementType,p=h._init;if(h=p(h._payload),s.type=h,typeof h=="function")Fh(h)?(i=$i(h,i),s.tag=1,s=ZN(null,s,h,i,c)):(s.tag=0,s=dh(null,s,h,i,c));else{if(h!=null){if(p=h.$$typeof,p===S){s.tag=11,s=GN(null,s,h,i,c);break e}else if(p===R){s.tag=14,s=jN(null,s,h,i,c);break e}}throw s=j(h)||h,Error(r(306,s,""))}}return s;case 0:return dh(i,s,s.type,s.pendingProps,c);case 1:return h=s.type,p=$i(h,s.pendingProps),ZN(i,s,h,p,c);case 3:e:{if(Er(s,s.stateNode.containerInfo),i===null)throw Error(r(387));var I=s.pendingProps;p=s.memoizedState,h=p.element,yh(i,s),jo(s,I,null,c);var T=s.memoizedState;if(I=T.cache,Zu(s,Yt,I),I!==p.cache&&Sh(s,[Yt],c,!0),Go(),I=T.element,p.isDehydrated)if(p={element:I,isDehydrated:!1,cache:T.cache},s.updateQueue.baseState=p,s.memoizedState=p,s.flags&256){s=WN(i,s,I,c);break e}else if(I!==h){h=er(Error(r(424)),s),To(h),s=WN(i,s,I,c);break e}else for(un=Ir(s.stateNode.containerInfo.firstChild),In=s,dt=!0,_r=null,Or=!0,c=K_(s,null,I,c),s.child=c;c;)c.flags=c.flags&-3|4096,c=c.sibling;else{if(Do(),I===h){s=ou(i,s,c);break e}an(i,s,I,c)}s=s.child}return s;case 26:return Po(i,s),i===null?(c=tS(s.type,null,s.pendingProps,null))?s.memoizedState=c:dt||(c=s.type,i=s.pendingProps,h=Ud(It.current).createElement(c),h[dn]=s,h[Rn]=i,sn(h,c,i),Qt(h),s.stateNode=h):s.memoizedState=tS(s.type,i.memoizedProps,s.pendingProps,i.memoizedState),null;case 27:return Br(s),i===null&&dt&&(h=s.stateNode=XI(s.type,s.pendingProps,It.current),In=s,Or=!0,un=Ir(h.firstChild)),h=s.pendingProps.children,i!==null||dt?an(i,s,h,c):s.child=zi(s,null,h,c),Po(i,s),s.child;case 5:return i===null&&dt&&((p=h=un)&&(h=GB(h,s.type,s.pendingProps,Or),h!==null?(s.stateNode=h,In=s,un=Ir(h.firstChild),Or=!1,p=!0):p=!1),p||Vi(s)),Br(s),p=s.type,I=s.pendingProps,T=i!==null?i.memoizedProps:null,h=I.children,im(p,I)?h=null:T!==null&&im(p,T)&&(s.flags|=32),s.memoizedState!==null&&(p=ZA(i,s,uB,null,null,c),rl._currentValue=p),Po(i,s),an(i,s,h,c),s.child;case 6:return i===null&&dt&&((i=c=un)&&(c=jB(c,s.pendingProps,Or),c!==null?(s.stateNode=c,In=s,un=null,i=!0):i=!1),i||Vi(s)),null;case 13:return $N(i,s,c);case 4:return Er(s,s.stateNode.containerInfo),h=s.pendingProps,i===null?s.child=zi(s,null,h,c):an(i,s,h,c),s.child;case 11:return GN(i,s,s.type,s.pendingProps,c);case 7:return an(i,s,s.pendingProps,c),s.child;case 8:return an(i,s,s.pendingProps.children,c),s.child;case 12:return an(i,s,s.pendingProps.children,c),s.child;case 10:return h=s.pendingProps,Zu(s,s.type,h.value),an(i,s,h.children,c),s.child;case 9:return p=s.type._context,h=s.pendingProps.children,Qi(s),p=fn(p),h=h(p),s.flags|=1,an(i,s,h,c),s.child;case 14:return jN(i,s,s.type,s.pendingProps,c);case 15:return VN(i,s,s.type,s.pendingProps,c);case 19:return QN(i,s,c);case 22:return zN(i,s,c);case 24:return Qi(s),h=fn(Yt),i===null?(p=KA(),p===null&&(p=gt,I=VA(),p.pooledCache=I,I.refCount++,I!==null&&(p.pooledCacheLanes|=c),p=I),s.memoizedState={parent:h,cache:p},Ch(s),Zu(s,Yt,p)):((i.lanes&c)!==0&&(yh(i,s),jo(s,null,null,c),Go()),p=i.memoizedState,I=s.memoizedState,p.parent!==h?(p={parent:h,cache:h},s.memoizedState=p,s.lanes===0&&(s.memoizedState=s.updateQueue.baseState=p),Zu(s,Yt,h)):(h=I.cache,Zu(s,Yt,h),h!==p.cache&&Sh(s,[Yt],c,!0))),an(i,s,s.pendingProps.children,c),s.child;case 29:throw s.pendingProps}throw Error(r(156,s.tag))}var Nh=ve(null),qi=null,lu=null;function Zu(i,s,c){we(Nh,s._currentValue),s._currentValue=c}function cu(i){i._currentValue=Nh.current,je(Nh)}function Ih(i,s,c){for(;i!==null;){var h=i.alternate;if((i.childLanes&s)!==s?(i.childLanes|=s,h!==null&&(h.childLanes|=s)):h!==null&&(h.childLanes&s)!==s&&(h.childLanes|=s),i===c)break;i=i.return}}function Sh(i,s,c,h){var p=i.child;for(p!==null&&(p.return=i);p!==null;){var I=p.dependencies;if(I!==null){var T=p.child;I=I.firstContext;e:for(;I!==null;){var B=I;I=p;for(var M=0;M<s.length;M++)if(B.context===s[M]){I.lanes|=c,B=I.alternate,B!==null&&(B.lanes|=c),Ih(I.return,c,i),h||(T=null);break e}I=B.next}}else if(p.tag===18){if(T=p.return,T===null)throw Error(r(341));T.lanes|=c,I=T.alternate,I!==null&&(I.lanes|=c),Ih(T,c,i),T=null}else T=p.child;if(T!==null)T.return=p;else for(T=p;T!==null;){if(T===i){T=null;break}if(p=T.sibling,p!==null){p.return=T.return,T=p;break}T=T.return}p=T}}function Uo(i,s,c,h){i=null;for(var p=s,I=!1;p!==null;){if(!I){if((p.flags&524288)!==0)I=!0;else if((p.flags&262144)!==0)break}if(p.tag===10){var T=p.alternate;if(T===null)throw Error(r(387));if(T=T.memoizedProps,T!==null){var B=p.type;Hn(p.pendingProps.value,T.value)||(i!==null?i.push(B):i=[B])}}else if(p===qt.current){if(T=p.alternate,T===null)throw Error(r(387));T.memoizedState.memoizedState!==p.memoizedState.memoizedState&&(i!==null?i.push(rl):i=[rl])}p=p.return}i!==null&&Sh(s,i,c,h),s.flags|=262144}function Cd(i){for(i=i.firstContext;i!==null;){if(!Hn(i.context._currentValue,i.memoizedValue))return!0;i=i.next}return!1}function Qi(i){qi=i,lu=null,i=i.dependencies,i!==null&&(i.firstContext=null)}function fn(i){return JN(qi,i)}function yd(i,s){return qi===null&&Qi(i),JN(i,s)}function JN(i,s){var c=s._currentValue;if(s={context:s,memoizedValue:c,next:null},lu===null){if(i===null)throw Error(r(308));lu=s,i.dependencies={lanes:0,firstContext:s},i.flags|=524288}else lu=lu.next=s;return c}var Wu=!1;function Ch(i){i.updateQueue={baseState:i.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function yh(i,s){i=i.updateQueue,s.updateQueue===i&&(s.updateQueue={baseState:i.baseState,firstBaseUpdate:i.firstBaseUpdate,lastBaseUpdate:i.lastBaseUpdate,shared:i.shared,callbacks:null})}function $u(i){return{lane:i,tag:0,payload:null,callback:null,next:null}}function qu(i,s,c){var h=i.updateQueue;if(h===null)return null;if(h=h.shared,(vt&2)!==0){var p=h.pending;return p===null?s.next=s:(s.next=p.next,p.next=s),h.pending=s,s=ud(i),L_(i,null,c),s}return rd(i,h,s,c),ud(i)}function ko(i,s,c){if(s=s.updateQueue,s!==null&&(s=s.shared,(c&4194176)!==0)){var h=s.lanes;h&=i.pendingLanes,c|=h,s.lanes=c,j4(i,c)}}function vh(i,s){var c=i.updateQueue,h=i.alternate;if(h!==null&&(h=h.updateQueue,c===h)){var p=null,I=null;if(c=c.firstBaseUpdate,c!==null){do{var T={lane:c.lane,tag:c.tag,payload:c.payload,callback:null,next:null};I===null?p=I=T:I=I.next=T,c=c.next}while(c!==null);I===null?p=I=s:I=I.next=s}else p=I=s;c={baseState:h.baseState,firstBaseUpdate:p,lastBaseUpdate:I,shared:h.shared,callbacks:h.callbacks},i.updateQueue=c;return}i=c.lastBaseUpdate,i===null?c.firstBaseUpdate=s:i.next=s,c.lastBaseUpdate=s}var Rh=!1;function Go(){if(Rh){var i=Xa;if(i!==null)throw i}}function jo(i,s,c,h){Rh=!1;var p=i.updateQueue;Wu=!1;var I=p.firstBaseUpdate,T=p.lastBaseUpdate,B=p.shared.pending;if(B!==null){p.shared.pending=null;var M=B,Y=M.next;M.next=null,T===null?I=Y:T.next=Y,T=M;var ae=i.alternate;ae!==null&&(ae=ae.updateQueue,B=ae.lastBaseUpdate,B!==T&&(B===null?ae.firstBaseUpdate=Y:B.next=Y,ae.lastBaseUpdate=M))}if(I!==null){var fe=p.baseState;T=0,ae=Y=M=null,B=I;do{var X=B.lane&-536870913,ie=X!==B.lane;if(ie?(lt&X)===X:(h&X)===X){X!==0&&X===Qa&&(Rh=!0),ae!==null&&(ae=ae.next={lane:0,tag:B.tag,payload:B.payload,callback:null,next:null});e:{var Le=i,Ye=B;X=s;var Ot=c;switch(Ye.tag){case 1:if(Le=Ye.payload,typeof Le=="function"){fe=Le.call(Ot,fe,X);break e}fe=Le;break e;case 3:Le.flags=Le.flags&-65537|128;case 0:if(Le=Ye.payload,X=typeof Le=="function"?Le.call(Ot,fe,X):Le,X==null)break e;fe=K({},fe,X);break e;case 2:Wu=!0}}X=B.callback,X!==null&&(i.flags|=64,ie&&(i.flags|=8192),ie=p.callbacks,ie===null?p.callbacks=[X]:ie.push(X))}else ie={lane:X,tag:B.tag,payload:B.payload,callback:B.callback,next:null},ae===null?(Y=ae=ie,M=fe):ae=ae.next=ie,T|=X;if(B=B.next,B===null){if(B=p.shared.pending,B===null)break;ie=B,B=ie.next,ie.next=null,p.lastBaseUpdate=ie,p.shared.pending=null}}while(!0);ae===null&&(M=fe),p.baseState=M,p.firstBaseUpdate=Y,p.lastBaseUpdate=ae,I===null&&(p.shared.lanes=0),ti|=T,i.lanes=T,i.memoizedState=fe}}function eI(i,s){if(typeof i!="function")throw Error(r(191,i));i.call(s)}function tI(i,s){var c=i.callbacks;if(c!==null)for(i.callbacks=null,i=0;i<c.length;i++)eI(c[i],s)}function Vo(i,s){try{var c=s.updateQueue,h=c!==null?c.lastEffect:null;if(h!==null){var p=h.next;c=p;do{if((c.tag&i)===i){h=void 0;var I=c.create,T=c.inst;h=I(),T.destroy=h}c=c.next}while(c!==p)}}catch(B){Et(s,s.return,B)}}function Qu(i,s,c){try{var h=s.updateQueue,p=h!==null?h.lastEffect:null;if(p!==null){var I=p.next;h=I;do{if((h.tag&i)===i){var T=h.inst,B=T.destroy;if(B!==void 0){T.destroy=void 0,p=s;var M=c;try{B()}catch(Y){Et(p,M,Y)}}}h=h.next}while(h!==I)}}catch(Y){Et(s,s.return,Y)}}function nI(i){var s=i.updateQueue;if(s!==null){var c=i.stateNode;try{tI(s,c)}catch(h){Et(i,i.return,h)}}}function rI(i,s,c){c.props=$i(i.type,i.memoizedProps),c.state=i.memoizedState;try{c.componentWillUnmount()}catch(h){Et(i,s,h)}}function Xi(i,s){try{var c=i.ref;if(c!==null){var h=i.stateNode;switch(i.tag){case 26:case 27:case 5:var p=h;break;default:p=h}typeof c=="function"?i.refCleanup=c(p):c.current=p}}catch(I){Et(i,s,I)}}function Pn(i,s){var c=i.ref,h=i.refCleanup;if(c!==null)if(typeof h=="function")try{h()}catch(p){Et(i,s,p)}finally{i.refCleanup=null,i=i.alternate,i!=null&&(i.refCleanup=null)}else if(typeof c=="function")try{c(null)}catch(p){Et(i,s,p)}else c.current=null}function uI(i){var s=i.type,c=i.memoizedProps,h=i.stateNode;try{e:switch(s){case"button":case"input":case"select":case"textarea":c.autoFocus&&h.focus();break e;case"img":c.src?h.src=c.src:c.srcSet&&(h.srcset=c.srcSet)}}catch(p){Et(i,i.return,p)}}function iI(i,s,c){try{var h=i.stateNode;MB(h,i.type,c,s),h[Rn]=s}catch(p){Et(i,i.return,p)}}function aI(i){return i.tag===5||i.tag===3||i.tag===26||i.tag===27||i.tag===4}function Dh(i){e:for(;;){for(;i.sibling===null;){if(i.return===null||aI(i.return))return null;i=i.return}for(i.sibling.return=i.return,i=i.sibling;i.tag!==5&&i.tag!==6&&i.tag!==27&&i.tag!==18;){if(i.flags&2||i.child===null||i.tag===4)continue e;i.child.return=i,i=i.child}if(!(i.flags&2))return i.stateNode}}function Th(i,s,c){var h=i.tag;if(h===5||h===6)i=i.stateNode,s?c.nodeType===8?c.parentNode.insertBefore(i,s):c.insertBefore(i,s):(c.nodeType===8?(s=c.parentNode,s.insertBefore(i,c)):(s=c,s.appendChild(i)),c=c._reactRootContainer,c!=null||s.onclick!==null||(s.onclick=Pd));else if(h!==4&&h!==27&&(i=i.child,i!==null))for(Th(i,s,c),i=i.sibling;i!==null;)Th(i,s,c),i=i.sibling}function vd(i,s,c){var h=i.tag;if(h===5||h===6)i=i.stateNode,s?c.insertBefore(i,s):c.appendChild(i);else if(h!==4&&h!==27&&(i=i.child,i!==null))for(vd(i,s,c),i=i.sibling;i!==null;)vd(i,s,c),i=i.sibling}var du=!1,bt=!1,xh=!1,sI=typeof WeakSet=="function"?WeakSet:Set,Jt=null,oI=!1;function fB(i,s){if(i=i.containerInfo,rm=Kd,i=v_(i),BA(i)){if("selectionStart"in i)var c={start:i.selectionStart,end:i.selectionEnd};else e:{c=(c=i.ownerDocument)&&c.defaultView||window;var h=c.getSelection&&c.getSelection();if(h&&h.rangeCount!==0){c=h.anchorNode;var p=h.anchorOffset,I=h.focusNode;h=h.focusOffset;try{c.nodeType,I.nodeType}catch{c=null;break e}var T=0,B=-1,M=-1,Y=0,ae=0,fe=i,X=null;t:for(;;){for(var ie;fe!==c||p!==0&&fe.nodeType!==3||(B=T+p),fe!==I||h!==0&&fe.nodeType!==3||(M=T+h),fe.nodeType===3&&(T+=fe.nodeValue.length),(ie=fe.firstChild)!==null;)X=fe,fe=ie;for(;;){if(fe===i)break t;if(X===c&&++Y===p&&(B=T),X===I&&++ae===h&&(M=T),(ie=fe.nextSibling)!==null)break;fe=X,X=fe.parentNode}fe=ie}c=B===-1||M===-1?null:{start:B,end:M}}else c=null}c=c||{start:0,end:0}}else c=null;for(um={focusedElem:i,selectionRange:c},Kd=!1,Jt=s;Jt!==null;)if(s=Jt,i=s.child,(s.subtreeFlags&1028)!==0&&i!==null)i.return=s,Jt=i;else for(;Jt!==null;){switch(s=Jt,I=s.alternate,i=s.flags,s.tag){case 0:break;case 11:case 15:break;case 1:if((i&1024)!==0&&I!==null){i=void 0,c=s,p=I.memoizedProps,I=I.memoizedState,h=c.stateNode;try{var Le=$i(c.type,p,c.elementType===c.type);i=h.getSnapshotBeforeUpdate(Le,I),h.__reactInternalSnapshotBeforeUpdate=i}catch(Ye){Et(c,c.return,Ye)}}break;case 3:if((i&1024)!==0){if(i=s.stateNode.containerInfo,c=i.nodeType,c===9)om(i);else if(c===1)switch(i.nodeName){case"HEAD":case"HTML":case"BODY":om(i);break;default:i.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((i&1024)!==0)throw Error(r(163))}if(i=s.sibling,i!==null){i.return=s.return,Jt=i;break}Jt=s.return}return Le=oI,oI=!1,Le}function lI(i,s,c){var h=c.flags;switch(c.tag){case 0:case 11:case 15:Au(i,c),h&4&&Vo(5,c);break;case 1:if(Au(i,c),h&4)if(i=c.stateNode,s===null)try{i.componentDidMount()}catch(B){Et(c,c.return,B)}else{var p=$i(c.type,s.memoizedProps);s=s.memoizedState;try{i.componentDidUpdate(p,s,i.__reactInternalSnapshotBeforeUpdate)}catch(B){Et(c,c.return,B)}}h&64&&nI(c),h&512&&Xi(c,c.return);break;case 3:if(Au(i,c),h&64&&(h=c.updateQueue,h!==null)){if(i=null,c.child!==null)switch(c.child.tag){case 27:case 5:i=c.child.stateNode;break;case 1:i=c.child.stateNode}try{tI(h,i)}catch(B){Et(c,c.return,B)}}break;case 26:Au(i,c),h&512&&Xi(c,c.return);break;case 27:case 5:Au(i,c),s===null&&h&4&&uI(c),h&512&&Xi(c,c.return);break;case 12:Au(i,c);break;case 13:Au(i,c),h&4&&fI(i,c);break;case 22:if(p=c.memoizedState!==null||du,!p){s=s!==null&&s.memoizedState!==null||bt;var I=du,T=bt;du=p,(bt=s)&&!T?Xu(i,c,(c.subtreeFlags&8772)!==0):Au(i,c),du=I,bt=T}h&512&&(c.memoizedProps.mode==="manual"?Xi(c,c.return):Pn(c,c.return));break;default:Au(i,c)}}function cI(i){var s=i.alternate;s!==null&&(i.alternate=null,cI(s)),i.child=null,i.deletions=null,i.sibling=null,i.tag===5&&(s=i.stateNode,s!==null&&mA(s)),i.stateNode=null,i.return=null,i.dependencies=null,i.memoizedProps=null,i.memoizedState=null,i.pendingProps=null,i.stateNode=null,i.updateQueue=null}var jt=null,Un=!1;function fu(i,s,c){for(c=c.child;c!==null;)dI(i,s,c),c=c.sibling}function dI(i,s,c){if(Nn&&typeof Nn.onCommitFiberUnmount=="function")try{Nn.onCommitFiberUnmount(Pu,c)}catch{}switch(c.tag){case 26:bt||Pn(c,s),fu(i,s,c),c.memoizedState?c.memoizedState.count--:c.stateNode&&(c=c.stateNode,c.parentNode.removeChild(c));break;case 27:bt||Pn(c,s);var h=jt,p=Un;for(jt=c.stateNode,fu(i,s,c),c=c.stateNode,s=c.attributes;s.length;)c.removeAttributeNode(s[0]);mA(c),jt=h,Un=p;break;case 5:bt||Pn(c,s);case 6:p=jt;var I=Un;if(jt=null,fu(i,s,c),jt=p,Un=I,jt!==null)if(Un)try{i=jt,h=c.stateNode,i.nodeType===8?i.parentNode.removeChild(h):i.removeChild(h)}catch(T){Et(c,s,T)}else try{jt.removeChild(c.stateNode)}catch(T){Et(c,s,T)}break;case 18:jt!==null&&(Un?(s=jt,c=c.stateNode,s.nodeType===8?sm(s.parentNode,c):s.nodeType===1&&sm(s,c),sl(s)):sm(jt,c.stateNode));break;case 4:h=jt,p=Un,jt=c.stateNode.containerInfo,Un=!0,fu(i,s,c),jt=h,Un=p;break;case 0:case 11:case 14:case 15:bt||Qu(2,c,s),bt||Qu(4,c,s),fu(i,s,c);break;case 1:bt||(Pn(c,s),h=c.stateNode,typeof h.componentWillUnmount=="function"&&rI(c,s,h)),fu(i,s,c);break;case 21:fu(i,s,c);break;case 22:bt||Pn(c,s),bt=(h=bt)||c.memoizedState!==null,fu(i,s,c),bt=h;break;default:fu(i,s,c)}}function fI(i,s){if(s.memoizedState===null&&(i=s.alternate,i!==null&&(i=i.memoizedState,i!==null&&(i=i.dehydrated,i!==null))))try{sl(i)}catch(c){Et(s,s.return,c)}}function AB(i){switch(i.tag){case 13:case 19:var s=i.stateNode;return s===null&&(s=i.stateNode=new sI),s;case 22:return i=i.stateNode,s=i._retryCache,s===null&&(s=i._retryCache=new sI),s;default:throw Error(r(435,i.tag))}}function bh(i,s){var c=AB(i);s.forEach(function(h){var p=RB.bind(null,i,h);c.has(h)||(c.add(h),h.then(p,p))})}function ur(i,s){var c=s.deletions;if(c!==null)for(var h=0;h<c.length;h++){var p=c[h],I=i,T=s,B=T;e:for(;B!==null;){switch(B.tag){case 27:case 5:jt=B.stateNode,Un=!1;break e;case 3:jt=B.stateNode.containerInfo,Un=!0;break e;case 4:jt=B.stateNode.containerInfo,Un=!0;break e}B=B.return}if(jt===null)throw Error(r(160));dI(I,T,p),jt=null,Un=!1,I=p.alternate,I!==null&&(I.return=null),p.return=null}if(s.subtreeFlags&13878)for(s=s.child;s!==null;)AI(s,i),s=s.sibling}var Nr=null;function AI(i,s){var c=i.alternate,h=i.flags;switch(i.tag){case 0:case 11:case 14:case 15:ur(s,i),ir(i),h&4&&(Qu(3,i,i.return),Vo(3,i),Qu(5,i,i.return));break;case 1:ur(s,i),ir(i),h&512&&(bt||c===null||Pn(c,c.return)),h&64&&du&&(i=i.updateQueue,i!==null&&(h=i.callbacks,h!==null&&(c=i.shared.hiddenCallbacks,i.shared.hiddenCallbacks=c===null?h:c.concat(h))));break;case 26:var p=Nr;if(ur(s,i),ir(i),h&512&&(bt||c===null||Pn(c,c.return)),h&4){var I=c!==null?c.memoizedState:null;if(h=i.memoizedState,c===null)if(h===null)if(i.stateNode===null){e:{h=i.type,c=i.memoizedProps,p=p.ownerDocument||p;t:switch(h){case"title":I=p.getElementsByTagName("title")[0],(!I||I[mo]||I[dn]||I.namespaceURI==="http://www.w3.org/2000/svg"||I.hasAttribute("itemprop"))&&(I=p.createElement(h),p.head.insertBefore(I,p.querySelector("head > title"))),sn(I,h,c),I[dn]=i,Qt(I),h=I;break e;case"link":var T=uS("link","href",p).get(h+(c.href||""));if(T){for(var B=0;B<T.length;B++)if(I=T[B],I.getAttribute("href")===(c.href==null?null:c.href)&&I.getAttribute("rel")===(c.rel==null?null:c.rel)&&I.getAttribute("title")===(c.title==null?null:c.title)&&I.getAttribute("crossorigin")===(c.crossOrigin==null?null:c.crossOrigin)){T.splice(B,1);break t}}I=p.createElement(h),sn(I,h,c),p.head.appendChild(I);break;case"meta":if(T=uS("meta","content",p).get(h+(c.content||""))){for(B=0;B<T.length;B++)if(I=T[B],I.getAttribute("content")===(c.content==null?null:""+c.content)&&I.getAttribute("name")===(c.name==null?null:c.name)&&I.getAttribute("property")===(c.property==null?null:c.property)&&I.getAttribute("http-equiv")===(c.httpEquiv==null?null:c.httpEquiv)&&I.getAttribute("charset")===(c.charSet==null?null:c.charSet)){T.splice(B,1);break t}}I=p.createElement(h),sn(I,h,c),p.head.appendChild(I);break;default:throw Error(r(468,h))}I[dn]=i,Qt(I),h=I}i.stateNode=h}else iS(p,i.type,i.stateNode);else i.stateNode=rS(p,h,i.memoizedProps);else I!==h?(I===null?c.stateNode!==null&&(c=c.stateNode,c.parentNode.removeChild(c)):I.count--,h===null?iS(p,i.type,i.stateNode):rS(p,h,i.memoizedProps)):h===null&&i.stateNode!==null&&iI(i,i.memoizedProps,c.memoizedProps)}break;case 27:if(h&4&&i.alternate===null){p=i.stateNode,I=i.memoizedProps;try{for(var M=p.firstChild;M;){var Y=M.nextSibling,ae=M.nodeName;M[mo]||ae==="HEAD"||ae==="BODY"||ae==="SCRIPT"||ae==="STYLE"||ae==="LINK"&&M.rel.toLowerCase()==="stylesheet"||p.removeChild(M),M=Y}for(var fe=i.type,X=p.attributes;X.length;)p.removeAttributeNode(X[0]);sn(p,fe,I),p[dn]=i,p[Rn]=I}catch(Le){Et(i,i.return,Le)}}case 5:if(ur(s,i),ir(i),h&512&&(bt||c===null||Pn(c,c.return)),i.flags&32){p=i.stateNode;try{Ua(p,"")}catch(Le){Et(i,i.return,Le)}}h&4&&i.stateNode!=null&&(p=i.memoizedProps,iI(i,p,c!==null?c.memoizedProps:p)),h&1024&&(xh=!0);break;case 6:if(ur(s,i),ir(i),h&4){if(i.stateNode===null)throw Error(r(162));h=i.memoizedProps,c=i.stateNode;try{c.nodeValue=h}catch(Le){Et(i,i.return,Le)}}break;case 3:if(jd=null,p=Nr,Nr=kd(s.containerInfo),ur(s,i),Nr=p,ir(i),h&4&&c!==null&&c.memoizedState.isDehydrated)try{sl(s.containerInfo)}catch(Le){Et(i,i.return,Le)}xh&&(xh=!1,hI(i));break;case 4:h=Nr,Nr=kd(i.stateNode.containerInfo),ur(s,i),ir(i),Nr=h;break;case 12:ur(s,i),ir(i);break;case 13:ur(s,i),ir(i),i.child.flags&8192&&i.memoizedState!==null!=(c!==null&&c.memoizedState!==null)&&(Uh=Be()),h&4&&(h=i.updateQueue,h!==null&&(i.updateQueue=null,bh(i,h)));break;case 22:if(h&512&&(bt||c===null||Pn(c,c.return)),M=i.memoizedState!==null,Y=c!==null&&c.memoizedState!==null,ae=du,fe=bt,du=ae||M,bt=fe||Y,ur(s,i),bt=fe,du=ae,ir(i),s=i.stateNode,s._current=i,s._visibility&=-3,s._visibility|=s._pendingVisibility&2,h&8192&&(s._visibility=M?s._visibility&-2:s._visibility|1,M&&(s=du||bt,c===null||Y||s||ns(i)),i.memoizedProps===null||i.memoizedProps.mode!=="manual"))e:for(c=null,s=i;;){if(s.tag===5||s.tag===26||s.tag===27){if(c===null){Y=c=s;try{if(p=Y.stateNode,M)I=p.style,typeof I.setProperty=="function"?I.setProperty("display","none","important"):I.display="none";else{T=Y.stateNode,B=Y.memoizedProps.style;var ie=B!=null&&B.hasOwnProperty("display")?B.display:null;T.style.display=ie==null||typeof ie=="boolean"?"":(""+ie).trim()}}catch(Le){Et(Y,Y.return,Le)}}}else if(s.tag===6){if(c===null){Y=s;try{Y.stateNode.nodeValue=M?"":Y.memoizedProps}catch(Le){Et(Y,Y.return,Le)}}}else if((s.tag!==22&&s.tag!==23||s.memoizedState===null||s===i)&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===i)break e;for(;s.sibling===null;){if(s.return===null||s.return===i)break e;c===s&&(c=null),s=s.return}c===s&&(c=null),s.sibling.return=s.return,s=s.sibling}h&4&&(h=i.updateQueue,h!==null&&(c=h.retryQueue,c!==null&&(h.retryQueue=null,bh(i,c))));break;case 19:ur(s,i),ir(i),h&4&&(h=i.updateQueue,h!==null&&(i.updateQueue=null,bh(i,h)));break;case 21:break;default:ur(s,i),ir(i)}}function ir(i){var s=i.flags;if(s&2){try{if(i.tag!==27){e:{for(var c=i.return;c!==null;){if(aI(c)){var h=c;break e}c=c.return}throw Error(r(160))}switch(h.tag){case 27:var p=h.stateNode,I=Dh(i);vd(i,I,p);break;case 5:var T=h.stateNode;h.flags&32&&(Ua(T,""),h.flags&=-33);var B=Dh(i);vd(i,B,T);break;case 3:case 4:var M=h.stateNode.containerInfo,Y=Dh(i);Th(i,Y,M);break;default:throw Error(r(161))}}}catch(ae){Et(i,i.return,ae)}i.flags&=-3}s&4096&&(i.flags&=-4097)}function hI(i){if(i.subtreeFlags&1024)for(i=i.child;i!==null;){var s=i;hI(s),s.tag===5&&s.flags&1024&&s.stateNode.reset(),i=i.sibling}}function Au(i,s){if(s.subtreeFlags&8772)for(s=s.child;s!==null;)lI(i,s.alternate,s),s=s.sibling}function ns(i){for(i=i.child;i!==null;){var s=i;switch(s.tag){case 0:case 11:case 14:case 15:Qu(4,s,s.return),ns(s);break;case 1:Pn(s,s.return);var c=s.stateNode;typeof c.componentWillUnmount=="function"&&rI(s,s.return,c),ns(s);break;case 26:case 27:case 5:Pn(s,s.return),ns(s);break;case 22:Pn(s,s.return),s.memoizedState===null&&ns(s);break;default:ns(s)}i=i.sibling}}function Xu(i,s,c){for(c=c&&(s.subtreeFlags&8772)!==0,s=s.child;s!==null;){var h=s.alternate,p=i,I=s,T=I.flags;switch(I.tag){case 0:case 11:case 15:Xu(p,I,c),Vo(4,I);break;case 1:if(Xu(p,I,c),h=I,p=h.stateNode,typeof p.componentDidMount=="function")try{p.componentDidMount()}catch(Y){Et(h,h.return,Y)}if(h=I,p=h.updateQueue,p!==null){var B=h.stateNode;try{var M=p.shared.hiddenCallbacks;if(M!==null)for(p.shared.hiddenCallbacks=null,p=0;p<M.length;p++)eI(M[p],B)}catch(Y){Et(h,h.return,Y)}}c&&T&64&&nI(I),Xi(I,I.return);break;case 26:case 27:case 5:Xu(p,I,c),c&&h===null&&T&4&&uI(I),Xi(I,I.return);break;case 12:Xu(p,I,c);break;case 13:Xu(p,I,c),c&&T&4&&fI(p,I);break;case 22:I.memoizedState===null&&Xu(p,I,c),Xi(I,I.return);break;default:Xu(p,I,c)}s=s.sibling}}function Bh(i,s){var c=null;i!==null&&i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(c=i.memoizedState.cachePool.pool),i=null,s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(i=s.memoizedState.cachePool.pool),i!==c&&(i!=null&&i.refCount++,c!=null&&Fo(c))}function Oh(i,s){i=null,s.alternate!==null&&(i=s.alternate.memoizedState.cache),s=s.memoizedState.cache,s!==i&&(s.refCount++,i!=null&&Fo(i))}function Ju(i,s,c,h){if(s.subtreeFlags&10256)for(s=s.child;s!==null;)mI(i,s,c,h),s=s.sibling}function mI(i,s,c,h){var p=s.flags;switch(s.tag){case 0:case 11:case 15:Ju(i,s,c,h),p&2048&&Vo(9,s);break;case 3:Ju(i,s,c,h),p&2048&&(i=null,s.alternate!==null&&(i=s.alternate.memoizedState.cache),s=s.memoizedState.cache,s!==i&&(s.refCount++,i!=null&&Fo(i)));break;case 12:if(p&2048){Ju(i,s,c,h),i=s.stateNode;try{var I=s.memoizedProps,T=I.id,B=I.onPostCommit;typeof B=="function"&&B(T,s.alternate===null?"mount":"update",i.passiveEffectDuration,-0)}catch(M){Et(s,s.return,M)}}else Ju(i,s,c,h);break;case 23:break;case 22:I=s.stateNode,s.memoizedState!==null?I._visibility&4?Ju(i,s,c,h):zo(i,s):I._visibility&4?Ju(i,s,c,h):(I._visibility|=4,rs(i,s,c,h,(s.subtreeFlags&10256)!==0)),p&2048&&Bh(s.alternate,s);break;case 24:Ju(i,s,c,h),p&2048&&Oh(s.alternate,s);break;default:Ju(i,s,c,h)}}function rs(i,s,c,h,p){for(p=p&&(s.subtreeFlags&10256)!==0,s=s.child;s!==null;){var I=i,T=s,B=c,M=h,Y=T.flags;switch(T.tag){case 0:case 11:case 15:rs(I,T,B,M,p),Vo(8,T);break;case 23:break;case 22:var ae=T.stateNode;T.memoizedState!==null?ae._visibility&4?rs(I,T,B,M,p):zo(I,T):(ae._visibility|=4,rs(I,T,B,M,p)),p&&Y&2048&&Bh(T.alternate,T);break;case 24:rs(I,T,B,M,p),p&&Y&2048&&Oh(T.alternate,T);break;default:rs(I,T,B,M,p)}s=s.sibling}}function zo(i,s){if(s.subtreeFlags&10256)for(s=s.child;s!==null;){var c=i,h=s,p=h.flags;switch(h.tag){case 22:zo(c,h),p&2048&&Bh(h.alternate,h);break;case 24:zo(c,h),p&2048&&Oh(h.alternate,h);break;default:zo(c,h)}s=s.sibling}}var Ko=8192;function us(i){if(i.subtreeFlags&Ko)for(i=i.child;i!==null;)pI(i),i=i.sibling}function pI(i){switch(i.tag){case 26:us(i),i.flags&Ko&&i.memoizedState!==null&&tO(Nr,i.memoizedState,i.memoizedProps);break;case 5:us(i);break;case 3:case 4:var s=Nr;Nr=kd(i.stateNode.containerInfo),us(i),Nr=s;break;case 22:i.memoizedState===null&&(s=i.alternate,s!==null&&s.memoizedState!==null?(s=Ko,Ko=16777216,us(i),Ko=s):us(i));break;default:us(i)}}function EI(i){var s=i.alternate;if(s!==null&&(i=s.child,i!==null)){s.child=null;do s=i.sibling,i.sibling=null,i=s;while(i!==null)}}function Yo(i){var s=i.deletions;if((i.flags&16)!==0){if(s!==null)for(var c=0;c<s.length;c++){var h=s[c];Jt=h,_I(h,i)}EI(i)}if(i.subtreeFlags&10256)for(i=i.child;i!==null;)gI(i),i=i.sibling}function gI(i){switch(i.tag){case 0:case 11:case 15:Yo(i),i.flags&2048&&Qu(9,i,i.return);break;case 3:Yo(i);break;case 12:Yo(i);break;case 22:var s=i.stateNode;i.memoizedState!==null&&s._visibility&4&&(i.return===null||i.return.tag!==13)?(s._visibility&=-5,Rd(i)):Yo(i);break;default:Yo(i)}}function Rd(i){var s=i.deletions;if((i.flags&16)!==0){if(s!==null)for(var c=0;c<s.length;c++){var h=s[c];Jt=h,_I(h,i)}EI(i)}for(i=i.child;i!==null;){switch(s=i,s.tag){case 0:case 11:case 15:Qu(8,s,s.return),Rd(s);break;case 22:c=s.stateNode,c._visibility&4&&(c._visibility&=-5,Rd(s));break;default:Rd(s)}i=i.sibling}}function _I(i,s){for(;Jt!==null;){var c=Jt;switch(c.tag){case 0:case 11:case 15:Qu(8,c,s);break;case 23:case 22:if(c.memoizedState!==null&&c.memoizedState.cachePool!==null){var h=c.memoizedState.cachePool.pool;h!=null&&h.refCount++}break;case 24:Fo(c.memoizedState.cache)}if(h=c.child,h!==null)h.return=c,Jt=h;else e:for(c=i;Jt!==null;){h=Jt;var p=h.sibling,I=h.return;if(cI(h),h===c){Jt=null;break e}if(p!==null){p.return=I,Jt=p;break e}Jt=I}}}function hB(i,s,c,h){this.tag=i,this.key=c,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=h,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ar(i,s,c,h){return new hB(i,s,c,h)}function Fh(i){return i=i.prototype,!(!i||!i.isReactComponent)}function ei(i,s){var c=i.alternate;return c===null?(c=ar(i.tag,s,i.key,i.mode),c.elementType=i.elementType,c.type=i.type,c.stateNode=i.stateNode,c.alternate=i,i.alternate=c):(c.pendingProps=s,c.type=i.type,c.flags=0,c.subtreeFlags=0,c.deletions=null),c.flags=i.flags&31457280,c.childLanes=i.childLanes,c.lanes=i.lanes,c.child=i.child,c.memoizedProps=i.memoizedProps,c.memoizedState=i.memoizedState,c.updateQueue=i.updateQueue,s=i.dependencies,c.dependencies=s===null?null:{lanes:s.lanes,firstContext:s.firstContext},c.sibling=i.sibling,c.index=i.index,c.ref=i.ref,c.refCleanup=i.refCleanup,c}function NI(i,s){i.flags&=31457282;var c=i.alternate;return c===null?(i.childLanes=0,i.lanes=s,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=c.childLanes,i.lanes=c.lanes,i.child=c.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=c.memoizedProps,i.memoizedState=c.memoizedState,i.updateQueue=c.updateQueue,i.type=c.type,s=c.dependencies,i.dependencies=s===null?null:{lanes:s.lanes,firstContext:s.firstContext}),i}function Dd(i,s,c,h,p,I){var T=0;if(h=i,typeof i=="function")Fh(i)&&(T=1);else if(typeof i=="string")T=JB(i,c,Ze.current)?26:i==="html"||i==="head"||i==="body"?27:5;else e:switch(i){case f:return Ji(c.children,p,I,s);case A:T=8,p|=24;break;case m:return i=ar(12,c,s,p|2),i.elementType=m,i.lanes=I,i;case y:return i=ar(13,c,s,p),i.elementType=y,i.lanes=I,i;case v:return i=ar(19,c,s,p),i.elementType=v,i.lanes=I,i;case x:return II(c,p,I,s);default:if(typeof i=="object"&&i!==null)switch(i.$$typeof){case E:case _:T=10;break e;case g:T=9;break e;case S:T=11;break e;case R:T=14;break e;case D:T=16,h=null;break e}T=29,c=Error(r(130,i===null?"null":typeof i,"")),h=null}return s=ar(T,c,s,p),s.elementType=i,s.type=h,s.lanes=I,s}function Ji(i,s,c,h){return i=ar(7,i,h,s),i.lanes=c,i}function II(i,s,c,h){i=ar(22,i,h,s),i.elementType=x,i.lanes=c;var p={_visibility:1,_pendingVisibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null,_current:null,detach:function(){var I=p._current;if(I===null)throw Error(r(456));if((p._pendingVisibility&2)===0){var T=ju(I,2);T!==null&&(p._pendingVisibility|=2,Sn(T,I,2))}},attach:function(){var I=p._current;if(I===null)throw Error(r(456));if((p._pendingVisibility&2)!==0){var T=ju(I,2);T!==null&&(p._pendingVisibility&=-3,Sn(T,I,2))}}};return i.stateNode=p,i}function Lh(i,s,c){return i=ar(6,i,null,s),i.lanes=c,i}function wh(i,s,c){return s=ar(4,i.children!==null?i.children:[],i.key,s),s.lanes=c,s.stateNode={containerInfo:i.containerInfo,pendingChildren:null,implementation:i.implementation},s}function hu(i){i.flags|=4}function SI(i,s){if(s.type!=="stylesheet"||(s.state.loading&4)!==0)i.flags&=-16777217;else if(i.flags|=16777216,!aS(s)){if(s=rr.current,s!==null&&((lt&4194176)===lt?Fr!==null:(lt&62914560)!==lt&&(lt&536870912)===0||s!==Fr))throw bo=kA,U_;i.flags|=8192}}function Td(i,s){s!==null&&(i.flags|=4),i.flags&16384&&(s=i.tag!==22?k4():536870912,i.lanes|=s,as|=s)}function Zo(i,s){if(!dt)switch(i.tailMode){case"hidden":s=i.tail;for(var c=null;s!==null;)s.alternate!==null&&(c=s),s=s.sibling;c===null?i.tail=null:c.sibling=null;break;case"collapsed":c=i.tail;for(var h=null;c!==null;)c.alternate!==null&&(h=c),c=c.sibling;h===null?s||i.tail===null?i.tail=null:i.tail.sibling=null:h.sibling=null}}function yt(i){var s=i.alternate!==null&&i.alternate.child===i.child,c=0,h=0;if(s)for(var p=i.child;p!==null;)c|=p.lanes|p.childLanes,h|=p.subtreeFlags&31457280,h|=p.flags&31457280,p.return=i,p=p.sibling;else for(p=i.child;p!==null;)c|=p.lanes|p.childLanes,h|=p.subtreeFlags,h|=p.flags,p.return=i,p=p.sibling;return i.subtreeFlags|=h,i.childLanes=c,s}function mB(i,s,c){var h=s.pendingProps;switch(PA(s),s.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return yt(s),null;case 1:return yt(s),null;case 3:return c=s.stateNode,h=null,i!==null&&(h=i.memoizedState.cache),s.memoizedState.cache!==h&&(s.flags|=2048),cu(Yt),Ln(),c.pendingContext&&(c.context=c.pendingContext,c.pendingContext=null),(i===null||i.child===null)&&(Ro(s)?hu(s):i===null||i.memoizedState.isDehydrated&&(s.flags&256)===0||(s.flags|=1024,_r!==null&&(Vh(_r),_r=null))),yt(s),null;case 26:return c=s.memoizedState,i===null?(hu(s),c!==null?(yt(s),SI(s,c)):(yt(s),s.flags&=-16777217)):c?c!==i.memoizedState?(hu(s),yt(s),SI(s,c)):(yt(s),s.flags&=-16777217):(i.memoizedProps!==h&&hu(s),yt(s),s.flags&=-16777217),null;case 27:P(s),c=It.current;var p=s.type;if(i!==null&&s.stateNode!=null)i.memoizedProps!==h&&hu(s);else{if(!h){if(s.stateNode===null)throw Error(r(166));return yt(s),null}i=Ze.current,Ro(s)?H_(s):(i=XI(p,h,c),s.stateNode=i,hu(s))}return yt(s),null;case 5:if(P(s),c=s.type,i!==null&&s.stateNode!=null)i.memoizedProps!==h&&hu(s);else{if(!h){if(s.stateNode===null)throw Error(r(166));return yt(s),null}if(i=Ze.current,Ro(s))H_(s);else{switch(p=Ud(It.current),i){case 1:i=p.createElementNS("http://www.w3.org/2000/svg",c);break;case 2:i=p.createElementNS("http://www.w3.org/1998/Math/MathML",c);break;default:switch(c){case"svg":i=p.createElementNS("http://www.w3.org/2000/svg",c);break;case"math":i=p.createElementNS("http://www.w3.org/1998/Math/MathML",c);break;case"script":i=p.createElement("div"),i.innerHTML="<script><\/script>",i=i.removeChild(i.firstChild);break;case"select":i=typeof h.is=="string"?p.createElement("select",{is:h.is}):p.createElement("select"),h.multiple?i.multiple=!0:h.size&&(i.size=h.size);break;default:i=typeof h.is=="string"?p.createElement(c,{is:h.is}):p.createElement(c)}}i[dn]=s,i[Rn]=h;e:for(p=s.child;p!==null;){if(p.tag===5||p.tag===6)i.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=i;e:switch(sn(i,c,h),c){case"button":case"input":case"select":case"textarea":i=!!h.autoFocus;break e;case"img":i=!0;break e;default:i=!1}i&&hu(s)}}return yt(s),s.flags&=-16777217,null;case 6:if(i&&s.stateNode!=null)i.memoizedProps!==h&&hu(s);else{if(typeof h!="string"&&s.stateNode===null)throw Error(r(166));if(i=It.current,Ro(s)){if(i=s.stateNode,c=s.memoizedProps,h=null,p=In,p!==null)switch(p.tag){case 27:case 5:h=p.memoizedProps}i[dn]=s,i=!!(i.nodeValue===c||h!==null&&h.suppressHydrationWarning===!0||YI(i.nodeValue,c)),i||Vi(s)}else i=Ud(i).createTextNode(h),i[dn]=s,s.stateNode=i}return yt(s),null;case 13:if(h=s.memoizedState,i===null||i.memoizedState!==null&&i.memoizedState.dehydrated!==null){if(p=Ro(s),h!==null&&h.dehydrated!==null){if(i===null){if(!p)throw Error(r(318));if(p=s.memoizedState,p=p!==null?p.dehydrated:null,!p)throw Error(r(317));p[dn]=s}else Do(),(s.flags&128)===0&&(s.memoizedState=null),s.flags|=4;yt(s),p=!1}else _r!==null&&(Vh(_r),_r=null),p=!0;if(!p)return s.flags&256?(au(s),s):(au(s),null)}if(au(s),(s.flags&128)!==0)return s.lanes=c,s;if(c=h!==null,i=i!==null&&i.memoizedState!==null,c){h=s.child,p=null,h.alternate!==null&&h.alternate.memoizedState!==null&&h.alternate.memoizedState.cachePool!==null&&(p=h.alternate.memoizedState.cachePool.pool);var I=null;h.memoizedState!==null&&h.memoizedState.cachePool!==null&&(I=h.memoizedState.cachePool.pool),I!==p&&(h.flags|=2048)}return c!==i&&c&&(s.child.flags|=8192),Td(s,s.updateQueue),yt(s),null;case 4:return Ln(),i===null&&em(s.stateNode.containerInfo),yt(s),null;case 10:return cu(s.type),yt(s),null;case 19:if(je(Kt),p=s.memoizedState,p===null)return yt(s),null;if(h=(s.flags&128)!==0,I=p.rendering,I===null)if(h)Zo(p,!1);else{if(Bt!==0||i!==null&&(i.flags&128)!==0)for(i=s.child;i!==null;){if(I=dd(i),I!==null){for(s.flags|=128,Zo(p,!1),i=I.updateQueue,s.updateQueue=i,Td(s,i),s.subtreeFlags=0,i=c,c=s.child;c!==null;)NI(c,i),c=c.sibling;return we(Kt,Kt.current&1|2),s.child}i=i.sibling}p.tail!==null&&Be()>xd&&(s.flags|=128,h=!0,Zo(p,!1),s.lanes=4194304)}else{if(!h)if(i=dd(I),i!==null){if(s.flags|=128,h=!0,i=i.updateQueue,s.updateQueue=i,Td(s,i),Zo(p,!0),p.tail===null&&p.tailMode==="hidden"&&!I.alternate&&!dt)return yt(s),null}else 2*Be()-p.renderingStartTime>xd&&c!==536870912&&(s.flags|=128,h=!0,Zo(p,!1),s.lanes=4194304);p.isBackwards?(I.sibling=s.child,s.child=I):(i=p.last,i!==null?i.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,i=Kt.current,we(Kt,h?i&1|2:i&1),s):(yt(s),null);case 22:case 23:return au(s),jA(),h=s.memoizedState!==null,i!==null?i.memoizedState!==null!==h&&(s.flags|=8192):h&&(s.flags|=8192),h?(c&536870912)!==0&&(s.flags&128)===0&&(yt(s),s.subtreeFlags&6&&(s.flags|=8192)):yt(s),c=s.updateQueue,c!==null&&Td(s,c.retryQueue),c=null,i!==null&&i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(c=i.memoizedState.cachePool.pool),h=null,s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(h=s.memoizedState.cachePool.pool),h!==c&&(s.flags|=2048),i!==null&&je(Ki),null;case 24:return c=null,i!==null&&(c=i.memoizedState.cache),s.memoizedState.cache!==c&&(s.flags|=2048),cu(Yt),yt(s),null;case 25:return null}throw Error(r(156,s.tag))}function pB(i,s){switch(PA(s),s.tag){case 1:return i=s.flags,i&65536?(s.flags=i&-65537|128,s):null;case 3:return cu(Yt),Ln(),i=s.flags,(i&65536)!==0&&(i&128)===0?(s.flags=i&-65537|128,s):null;case 26:case 27:case 5:return P(s),null;case 13:if(au(s),i=s.memoizedState,i!==null&&i.dehydrated!==null){if(s.alternate===null)throw Error(r(340));Do()}return i=s.flags,i&65536?(s.flags=i&-65537|128,s):null;case 19:return je(Kt),null;case 4:return Ln(),null;case 10:return cu(s.type),null;case 22:case 23:return au(s),jA(),i!==null&&je(Ki),i=s.flags,i&65536?(s.flags=i&-65537|128,s):null;case 24:return cu(Yt),null;case 25:return null;default:return null}}function CI(i,s){switch(PA(s),s.tag){case 3:cu(Yt),Ln();break;case 26:case 27:case 5:P(s);break;case 4:Ln();break;case 13:au(s);break;case 19:je(Kt);break;case 10:cu(s.type);break;case 22:case 23:au(s),jA(),i!==null&&je(Ki);break;case 24:cu(Yt)}}var EB={getCacheForType:function(i){var s=fn(Yt),c=s.data.get(i);return c===void 0&&(c=i(),s.data.set(i,c)),c}},gB=typeof WeakMap=="function"?WeakMap:Map,vt=0,gt=null,rt=null,lt=0,_t=0,kn=null,mu=!1,is=!1,Mh=!1,pu=0,Bt=0,ti=0,ea=0,Hh=0,sr=0,as=0,Wo=null,wr=null,Ph=!1,Uh=0,xd=1/0,bd=null,ni=null,Bd=!1,ta=null,$o=0,kh=0,Gh=null,qo=0,jh=null;function Gn(){if((vt&2)!==0&<!==0)return lt&-lt;if(G.T!==null){var i=Qa;return i!==0?i:qh()}return z4()}function yI(){sr===0&&(sr=(lt&536870912)===0||dt?U4():536870912);var i=rr.current;return i!==null&&(i.flags|=32),sr}function Sn(i,s,c){(i===gt&&_t===2||i.cancelPendingCommit!==null)&&(ss(i,0),Eu(i,lt,sr,!1)),ho(i,c),((vt&2)===0||i!==gt)&&(i===gt&&((vt&2)===0&&(ea|=c),Bt===4&&Eu(i,lt,sr,!1)),Mr(i))}function vI(i,s,c){if((vt&6)!==0)throw Error(r(327));var h=!c&&(s&60)===0&&(s&i.expiredLanes)===0||Ao(i,s),p=h?IB(i,s):Yh(i,s,!0),I=h;do{if(p===0){is&&!h&&Eu(i,s,0,!1);break}else if(p===6)Eu(i,s,0,!mu);else{if(c=i.current.alternate,I&&!_B(c)){p=Yh(i,s,!1),I=!1;continue}if(p===2){if(I=s,i.errorRecoveryDisabledLanes&I)var T=0;else T=i.pendingLanes&-536870913,T=T!==0?T:T&536870912?536870912:0;if(T!==0){s=T;e:{var B=i;p=Wo;var M=B.current.memoizedState.isDehydrated;if(M&&(ss(B,T).flags|=256),T=Yh(B,T,!1),T!==2){if(Mh&&!M){B.errorRecoveryDisabledLanes|=I,ea|=I,p=4;break e}I=wr,wr=p,I!==null&&Vh(I)}p=T}if(I=!1,p!==2)continue}}if(p===1){ss(i,0),Eu(i,s,0,!0);break}e:{switch(h=i,p){case 0:case 1:throw Error(r(345));case 4:if((s&4194176)===s){Eu(h,s,sr,!mu);break e}break;case 2:wr=null;break;case 3:case 5:break;default:throw Error(r(329))}if(h.finishedWork=c,h.finishedLanes=s,(s&62914560)===s&&(I=Uh+300-Be(),10<I)){if(Eu(h,s,sr,!mu),zc(h,0)!==0)break e;h.timeoutHandle=$I(RI.bind(null,h,c,wr,bd,Ph,s,sr,ea,as,mu,2,-0,0),I);break e}RI(h,c,wr,bd,Ph,s,sr,ea,as,mu,0,-0,0)}}break}while(!0);Mr(i)}function Vh(i){wr===null?wr=i:wr.push.apply(wr,i)}function RI(i,s,c,h,p,I,T,B,M,Y,ae,fe,X){var ie=s.subtreeFlags;if((ie&8192||(ie&16785408)===16785408)&&(nl={stylesheets:null,count:0,unsuspend:eO},pI(s),s=nO(),s!==null)){i.cancelPendingCommit=s(FI.bind(null,i,c,h,p,T,B,M,1,fe,X)),Eu(i,I,T,!Y);return}FI(i,c,h,p,T,B,M,ae,fe,X)}function _B(i){for(var s=i;;){var c=s.tag;if((c===0||c===11||c===15)&&s.flags&16384&&(c=s.updateQueue,c!==null&&(c=c.stores,c!==null)))for(var h=0;h<c.length;h++){var p=c[h],I=p.getSnapshot;p=p.value;try{if(!Hn(I(),p))return!1}catch{return!1}}if(c=s.child,s.subtreeFlags&16384&&c!==null)c.return=s,s=c;else{if(s===i)break;for(;s.sibling===null;){if(s.return===null||s.return===i)return!0;s=s.return}s.sibling.return=s.return,s=s.sibling}}return!0}function Eu(i,s,c,h){s&=~Hh,s&=~ea,i.suspendedLanes|=s,i.pingedLanes&=~s,h&&(i.warmLanes|=s),h=i.expirationTimes;for(var p=s;0<p;){var I=31-Mn(p),T=1<<I;h[I]=-1,p&=~T}c!==0&&G4(i,c,s)}function Od(){return(vt&6)===0?(Qo(0),!1):!0}function zh(){if(rt!==null){if(_t===0)var i=rt.return;else i=rt,lu=qi=null,qA(i),$a=null,Bo=0,i=rt;for(;i!==null;)CI(i.alternate,i),i=i.return;rt=null}}function ss(i,s){i.finishedWork=null,i.finishedLanes=0;var c=i.timeoutHandle;c!==-1&&(i.timeoutHandle=-1,PB(c)),c=i.cancelPendingCommit,c!==null&&(i.cancelPendingCommit=null,c()),zh(),gt=i,rt=c=ei(i.current,null),lt=s,_t=0,kn=null,mu=!1,is=Ao(i,s),Mh=!1,as=sr=Hh=ea=ti=Bt=0,wr=Wo=null,Ph=!1,(s&8)!==0&&(s|=s&32);var h=i.entangledLanes;if(h!==0)for(i=i.entanglements,h&=s;0<h;){var p=31-Mn(h),I=1<<p;s|=i[p],h&=~I}return pu=s,nd(),c}function DI(i,s){et=null,G.H=Lr,s===xo?(s=j_(),_t=3):s===U_?(s=j_(),_t=4):_t=s===kN?8:s!==null&&typeof s=="object"&&typeof s.then=="function"?6:1,kn=s,rt===null&&(Bt=1,Sd(i,er(s,i.current)))}function TI(){var i=G.H;return G.H=Lr,i===null?Lr:i}function xI(){var i=G.A;return G.A=EB,i}function Kh(){Bt=4,mu||(lt&4194176)!==lt&&rr.current!==null||(is=!0),(ti&134217727)===0&&(ea&134217727)===0||gt===null||Eu(gt,lt,sr,!1)}function Yh(i,s,c){var h=vt;vt|=2;var p=TI(),I=xI();(gt!==i||lt!==s)&&(bd=null,ss(i,s)),s=!1;var T=Bt;e:do try{if(_t!==0&&rt!==null){var B=rt,M=kn;switch(_t){case 8:zh(),T=6;break e;case 3:case 2:case 6:rr.current===null&&(s=!0);var Y=_t;if(_t=0,kn=null,os(i,B,M,Y),c&&is){T=0;break e}break;default:Y=_t,_t=0,kn=null,os(i,B,M,Y)}}NB(),T=Bt;break}catch(ae){DI(i,ae)}while(!0);return s&&i.shellSuspendCounter++,lu=qi=null,vt=h,G.H=p,G.A=I,rt===null&&(gt=null,lt=0,nd()),T}function NB(){for(;rt!==null;)bI(rt)}function IB(i,s){var c=vt;vt|=2;var h=TI(),p=xI();gt!==i||lt!==s?(bd=null,xd=Be()+500,ss(i,s)):is=Ao(i,s);e:do try{if(_t!==0&&rt!==null){s=rt;var I=kn;t:switch(_t){case 1:_t=0,kn=null,os(i,s,I,1);break;case 2:if(k_(I)){_t=0,kn=null,BI(s);break}s=function(){_t===2&>===i&&(_t=7),Mr(i)},I.then(s,s);break e;case 3:_t=7;break e;case 4:_t=5;break e;case 7:k_(I)?(_t=0,kn=null,BI(s)):(_t=0,kn=null,os(i,s,I,7));break;case 5:var T=null;switch(rt.tag){case 26:T=rt.memoizedState;case 5:case 27:var B=rt;if(!T||aS(T)){_t=0,kn=null;var M=B.sibling;if(M!==null)rt=M;else{var Y=B.return;Y!==null?(rt=Y,Fd(Y)):rt=null}break t}}_t=0,kn=null,os(i,s,I,5);break;case 6:_t=0,kn=null,os(i,s,I,6);break;case 8:zh(),Bt=6;break e;default:throw Error(r(462))}}SB();break}catch(ae){DI(i,ae)}while(!0);return lu=qi=null,G.H=h,G.A=p,vt=c,rt!==null?0:(gt=null,lt=0,nd(),Bt)}function SB(){for(;rt!==null&&!Se();)bI(rt)}function bI(i){var s=XN(i.alternate,i,pu);i.memoizedProps=i.pendingProps,s===null?Fd(i):rt=s}function BI(i){var s=i,c=s.alternate;switch(s.tag){case 15:case 0:s=YN(c,s,s.pendingProps,s.type,void 0,lt);break;case 11:s=YN(c,s,s.pendingProps,s.type.render,s.ref,lt);break;case 5:qA(s);default:CI(c,s),s=rt=NI(s,pu),s=XN(c,s,pu)}i.memoizedProps=i.pendingProps,s===null?Fd(i):rt=s}function os(i,s,c,h){lu=qi=null,qA(s),$a=null,Bo=0;var p=s.return;try{if(cB(i,p,s,c,lt)){Bt=1,Sd(i,er(c,i.current)),rt=null;return}}catch(I){if(p!==null)throw rt=p,I;Bt=1,Sd(i,er(c,i.current)),rt=null;return}s.flags&32768?(dt||h===1?i=!0:is||(lt&536870912)!==0?i=!1:(mu=i=!0,(h===2||h===3||h===6)&&(h=rr.current,h!==null&&h.tag===13&&(h.flags|=16384))),OI(s,i)):Fd(s)}function Fd(i){var s=i;do{if((s.flags&32768)!==0){OI(s,mu);return}i=s.return;var c=mB(s.alternate,s,pu);if(c!==null){rt=c;return}if(s=s.sibling,s!==null){rt=s;return}rt=s=i}while(s!==null);Bt===0&&(Bt=5)}function OI(i,s){do{var c=pB(i.alternate,i);if(c!==null){c.flags&=32767,rt=c;return}if(c=i.return,c!==null&&(c.flags|=32768,c.subtreeFlags=0,c.deletions=null),!s&&(i=i.sibling,i!==null)){rt=i;return}rt=i=c}while(i!==null);Bt=6,rt=null}function FI(i,s,c,h,p,I,T,B,M,Y){var ae=G.T,fe=te.p;try{te.p=2,G.T=null,CB(i,s,c,h,fe,p,I,T,B,M,Y)}finally{G.T=ae,te.p=fe}}function CB(i,s,c,h,p,I,T,B){do ls();while(ta!==null);if((vt&6)!==0)throw Error(r(327));var M=i.finishedWork;if(h=i.finishedLanes,M===null)return null;if(i.finishedWork=null,i.finishedLanes=0,M===i.current)throw Error(r(177));i.callbackNode=null,i.callbackPriority=0,i.cancelPendingCommit=null;var Y=M.lanes|M.childLanes;if(Y|=wA,tb(i,h,Y,I,T,B),i===gt&&(rt=gt=null,lt=0),(M.subtreeFlags&10256)===0&&(M.flags&10256)===0||Bd||(Bd=!0,kh=Y,Gh=c,DB(wn,function(){return ls(),null})),c=(M.flags&15990)!==0,(M.subtreeFlags&15990)!==0||c?(c=G.T,G.T=null,I=te.p,te.p=2,T=vt,vt|=4,fB(i,M),AI(M,i),Zb(um,i.containerInfo),Kd=!!rm,um=rm=null,i.current=M,lI(i,M.alternate,M),Ne(),vt=T,te.p=I,G.T=c):i.current=M,Bd?(Bd=!1,ta=i,$o=h):LI(i,Y),Y=i.pendingLanes,Y===0&&(ni=null),Gc(M.stateNode),Mr(i),s!==null)for(p=i.onRecoverableError,M=0;M<s.length;M++)Y=s[M],p(Y.value,{componentStack:Y.stack});return($o&3)!==0&&ls(),Y=i.pendingLanes,(h&4194218)!==0&&(Y&42)!==0?i===jh?qo++:(qo=0,jh=i):qo=0,Qo(0),null}function LI(i,s){(i.pooledCacheLanes&=s)===0&&(s=i.pooledCache,s!=null&&(i.pooledCache=null,Fo(s)))}function ls(){if(ta!==null){var i=ta,s=kh;kh=0;var c=V4($o),h=G.T,p=te.p;try{if(te.p=32>c?32:c,G.T=null,ta===null)var I=!1;else{c=Gh,Gh=null;var T=ta,B=$o;if(ta=null,$o=0,(vt&6)!==0)throw Error(r(331));var M=vt;if(vt|=4,gI(T.current),mI(T,T.current,B,c),vt=M,Qo(0,!1),Nn&&typeof Nn.onPostCommitFiberRoot=="function")try{Nn.onPostCommitFiberRoot(Pu,T)}catch{}I=!0}return I}finally{te.p=p,G.T=h,LI(i,s)}}return!1}function wI(i,s,c){s=er(c,s),s=ch(i.stateNode,s,2),i=qu(i,s,2),i!==null&&(ho(i,2),Mr(i))}function Et(i,s,c){if(i.tag===3)wI(i,i,c);else for(;s!==null;){if(s.tag===3){wI(s,i,c);break}else if(s.tag===1){var h=s.stateNode;if(typeof s.type.getDerivedStateFromError=="function"||typeof h.componentDidCatch=="function"&&(ni===null||!ni.has(h))){i=er(c,i),c=PN(2),h=qu(s,c,2),h!==null&&(UN(c,h,s,i),ho(h,2),Mr(h));break}}s=s.return}}function Zh(i,s,c){var h=i.pingCache;if(h===null){h=i.pingCache=new gB;var p=new Set;h.set(s,p)}else p=h.get(s),p===void 0&&(p=new Set,h.set(s,p));p.has(c)||(Mh=!0,p.add(c),i=yB.bind(null,i,s,c),s.then(i,i))}function yB(i,s,c){var h=i.pingCache;h!==null&&h.delete(s),i.pingedLanes|=i.suspendedLanes&c,i.warmLanes&=~c,gt===i&&(lt&c)===c&&(Bt===4||Bt===3&&(lt&62914560)===lt&&300>Be()-Uh?(vt&2)===0&&ss(i,0):Hh|=c,as===lt&&(as=0)),Mr(i)}function MI(i,s){s===0&&(s=k4()),i=ju(i,s),i!==null&&(ho(i,s),Mr(i))}function vB(i){var s=i.memoizedState,c=0;s!==null&&(c=s.retryLane),MI(i,c)}function RB(i,s){var c=0;switch(i.tag){case 13:var h=i.stateNode,p=i.memoizedState;p!==null&&(c=p.retryLane);break;case 19:h=i.stateNode;break;case 22:h=i.stateNode._retryCache;break;default:throw Error(r(314))}h!==null&&h.delete(s),MI(i,c)}function DB(i,s){return ue(i,s)}var Ld=null,cs=null,Wh=!1,wd=!1,$h=!1,na=0;function Mr(i){i!==cs&&i.next===null&&(cs===null?Ld=cs=i:cs=cs.next=i),wd=!0,Wh||(Wh=!0,xB(TB))}function Qo(i,s){if(!$h&&wd){$h=!0;do for(var c=!1,h=Ld;h!==null;){if(i!==0){var p=h.pendingLanes;if(p===0)var I=0;else{var T=h.suspendedLanes,B=h.pingedLanes;I=(1<<31-Mn(42|i)+1)-1,I&=p&~(T&~B),I=I&201326677?I&201326677|1:I?I|2:0}I!==0&&(c=!0,UI(h,I))}else I=lt,I=zc(h,h===gt?I:0),(I&3)===0||Ao(h,I)||(c=!0,UI(h,I));h=h.next}while(c);$h=!1}}function TB(){wd=Wh=!1;var i=0;na!==0&&(HB()&&(i=na),na=0);for(var s=Be(),c=null,h=Ld;h!==null;){var p=h.next,I=HI(h,s);I===0?(h.next=null,c===null?Ld=p:c.next=p,p===null&&(cs=c)):(c=h,(i!==0||(I&3)!==0)&&(wd=!0)),h=p}Qo(i)}function HI(i,s){for(var c=i.suspendedLanes,h=i.pingedLanes,p=i.expirationTimes,I=i.pendingLanes&-62914561;0<I;){var T=31-Mn(I),B=1<<T,M=p[T];M===-1?((B&c)===0||(B&h)!==0)&&(p[T]=eb(B,s)):M<=s&&(i.expiredLanes|=B),I&=~B}if(s=gt,c=lt,c=zc(i,i===s?c:0),h=i.callbackNode,c===0||i===s&&_t===2||i.cancelPendingCommit!==null)return h!==null&&h!==null&&ye(h),i.callbackNode=null,i.callbackPriority=0;if((c&3)===0||Ao(i,c)){if(s=c&-c,s===i.callbackPriority)return s;switch(h!==null&&ye(h),V4(c)){case 2:case 8:c=wt;break;case 32:c=wn;break;case 268435456:c=Fa;break;default:c=wn}return h=PI.bind(null,i),c=ue(c,h),i.callbackPriority=s,i.callbackNode=c,s}return h!==null&&h!==null&&ye(h),i.callbackPriority=2,i.callbackNode=null,2}function PI(i,s){var c=i.callbackNode;if(ls()&&i.callbackNode!==c)return null;var h=lt;return h=zc(i,i===gt?h:0),h===0?null:(vI(i,h,s),HI(i,Be()),i.callbackNode!=null&&i.callbackNode===c?PI.bind(null,i):null)}function UI(i,s){if(ls())return null;vI(i,s,!0)}function xB(i){UB(function(){(vt&6)!==0?ue(Lt,i):i()})}function qh(){return na===0&&(na=U4()),na}function kI(i){return i==null||typeof i=="symbol"||typeof i=="boolean"?null:typeof i=="function"?i:$c(""+i)}function GI(i,s){var c=s.ownerDocument.createElement("input");return c.name=s.name,c.value=s.value,i.id&&c.setAttribute("form",i.id),s.parentNode.insertBefore(c,s),i=new FormData(i),c.parentNode.removeChild(c),i}function bB(i,s,c,h,p){if(s==="submit"&&c&&c.stateNode===p){var I=kI((p[Rn]||null).action),T=h.submitter;T&&(s=(s=T[Rn]||null)?kI(s.formAction):T.getAttribute("formAction"),s!==null&&(I=s,T=null));var B=new Jc("action","action",null,h,p);i.push({event:B,listeners:[{instance:null,listener:function(){if(h.defaultPrevented){if(na!==0){var M=T?GI(p,T):new FormData(p);ih(c,{pending:!0,data:M,method:p.method,action:I},null,M)}}else typeof I=="function"&&(B.preventDefault(),M=T?GI(p,T):new FormData(p),ih(c,{pending:!0,data:M,method:p.method,action:I},I,M))},currentTarget:p}]})}}for(var Qh=0;Qh<F_.length;Qh++){var Xh=F_[Qh],BB=Xh.toLowerCase(),OB=Xh[0].toUpperCase()+Xh.slice(1);gr(BB,"on"+OB)}gr(T_,"onAnimationEnd"),gr(x_,"onAnimationIteration"),gr(b_,"onAnimationStart"),gr("dblclick","onDoubleClick"),gr("focusin","onFocus"),gr("focusout","onBlur"),gr($b,"onTransitionRun"),gr(qb,"onTransitionStart"),gr(Qb,"onTransitionCancel"),gr(B_,"onTransitionEnd"),Ha("onMouseEnter",["mouseout","mouseover"]),Ha("onMouseLeave",["mouseout","mouseover"]),Ha("onPointerEnter",["pointerout","pointerover"]),Ha("onPointerLeave",["pointerout","pointerover"]),Hi("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Hi("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Hi("onBeforeInput",["compositionend","keypress","textInput","paste"]),Hi("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Hi("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Hi("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Xo="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(" "),FB=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Xo));function jI(i,s){s=(s&4)!==0;for(var c=0;c<i.length;c++){var h=i[c],p=h.event;h=h.listeners;e:{var I=void 0;if(s)for(var T=h.length-1;0<=T;T--){var B=h[T],M=B.instance,Y=B.currentTarget;if(B=B.listener,M!==I&&p.isPropagationStopped())break e;I=B,p.currentTarget=Y;try{I(p)}catch(ae){Id(ae)}p.currentTarget=null,I=M}else for(T=0;T<h.length;T++){if(B=h[T],M=B.instance,Y=B.currentTarget,B=B.listener,M!==I&&p.isPropagationStopped())break e;I=B,p.currentTarget=Y;try{I(p)}catch(ae){Id(ae)}p.currentTarget=null,I=M}}}}function st(i,s){var c=s[hA];c===void 0&&(c=s[hA]=new Set);var h=i+"__bubble";c.has(h)||(VI(s,i,2,!1),c.add(h))}function Jh(i,s,c){var h=0;s&&(h|=4),VI(c,i,h,s)}var Md="_reactListening"+Math.random().toString(36).slice(2);function em(i){if(!i[Md]){i[Md]=!0,Y4.forEach(function(c){c!=="selectionchange"&&(FB.has(c)||Jh(c,!1,i),Jh(c,!0,i))});var s=i.nodeType===9?i:i.ownerDocument;s===null||s[Md]||(s[Md]=!0,Jh("selectionchange",!1,s))}}function VI(i,s,c,h){switch(fS(s)){case 2:var p=iO;break;case 8:p=aO;break;default:p=Am}c=p.bind(null,s,c,i),p=void 0,!SA||s!=="touchstart"&&s!=="touchmove"&&s!=="wheel"||(p=!0),h?p!==void 0?i.addEventListener(s,c,{capture:!0,passive:p}):i.addEventListener(s,c,!0):p!==void 0?i.addEventListener(s,c,{passive:p}):i.addEventListener(s,c,!1)}function tm(i,s,c,h,p){var I=h;if((s&1)===0&&(s&2)===0&&h!==null)e:for(;;){if(h===null)return;var T=h.tag;if(T===3||T===4){var B=h.stateNode.containerInfo;if(B===p||B.nodeType===8&&B.parentNode===p)break;if(T===4)for(T=h.return;T!==null;){var M=T.tag;if((M===3||M===4)&&(M=T.stateNode.containerInfo,M===p||M.nodeType===8&&M.parentNode===p))return;T=T.return}for(;B!==null;){if(T=Mi(B),T===null)return;if(M=T.tag,M===5||M===6||M===26||M===27){h=I=T;continue e}B=B.parentNode}}h=h.return}u_(function(){var Y=I,ae=NA(c),fe=[];e:{var X=O_.get(i);if(X!==void 0){var ie=Jc,Le=i;switch(i){case"keypress":if(Qc(c)===0)break e;case"keydown":case"keyup":ie=Rb;break;case"focusin":Le="focus",ie=RA;break;case"focusout":Le="blur",ie=RA;break;case"beforeblur":case"afterblur":ie=RA;break;case"click":if(c.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":ie=s_;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":ie=hb;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":ie=xb;break;case T_:case x_:case b_:ie=Eb;break;case B_:ie=Bb;break;case"scroll":case"scrollend":ie=fb;break;case"wheel":ie=Fb;break;case"copy":case"cut":case"paste":ie=_b;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":ie=l_;break;case"toggle":case"beforetoggle":ie=wb}var Ye=(s&4)!==0,Ot=!Ye&&(i==="scroll"||i==="scrollend"),Z=Ye?X!==null?X+"Capture":null:X;Ye=[];for(var z=Y,q;z!==null;){var le=z;if(q=le.stateNode,le=le.tag,le!==5&&le!==26&&le!==27||q===null||Z===null||(le=Eo(z,Z),le!=null&&Ye.push(Jo(z,le,q))),Ot)break;z=z.return}0<Ye.length&&(X=new ie(X,Le,null,c,ae),fe.push({event:X,listeners:Ye}))}}if((s&7)===0){e:{if(X=i==="mouseover"||i==="pointerover",ie=i==="mouseout"||i==="pointerout",X&&c!==_A&&(Le=c.relatedTarget||c.fromElement)&&(Mi(Le)||Le[La]))break e;if((ie||X)&&(X=ae.window===ae?ae:(X=ae.ownerDocument)?X.defaultView||X.parentWindow:window,ie?(Le=c.relatedTarget||c.toElement,ie=Y,Le=Le?Mi(Le):null,Le!==null&&(Ot=ee(Le),Ye=Le.tag,Le!==Ot||Ye!==5&&Ye!==27&&Ye!==6)&&(Le=null)):(ie=null,Le=Y),ie!==Le)){if(Ye=s_,le="onMouseLeave",Z="onMouseEnter",z="mouse",(i==="pointerout"||i==="pointerover")&&(Ye=l_,le="onPointerLeave",Z="onPointerEnter",z="pointer"),Ot=ie==null?X:po(ie),q=Le==null?X:po(Le),X=new Ye(le,z+"leave",ie,c,ae),X.target=Ot,X.relatedTarget=q,le=null,Mi(ae)===Y&&(Ye=new Ye(Z,z+"enter",Le,c,ae),Ye.target=q,Ye.relatedTarget=Ot,le=Ye),Ot=le,ie&&Le)t:{for(Ye=ie,Z=Le,z=0,q=Ye;q;q=ds(q))z++;for(q=0,le=Z;le;le=ds(le))q++;for(;0<z-q;)Ye=ds(Ye),z--;for(;0<q-z;)Z=ds(Z),q--;for(;z--;){if(Ye===Z||Z!==null&&Ye===Z.alternate)break t;Ye=ds(Ye),Z=ds(Z)}Ye=null}else Ye=null;ie!==null&&zI(fe,X,ie,Ye,!1),Le!==null&&Ot!==null&&zI(fe,Ot,Le,Ye,!0)}}e:{if(X=Y?po(Y):window,ie=X.nodeName&&X.nodeName.toLowerCase(),ie==="select"||ie==="input"&&X.type==="file")var Te=E_;else if(m_(X))if(g_)Te=Kb;else{Te=Vb;var nt=jb}else ie=X.nodeName,!ie||ie.toLowerCase()!=="input"||X.type!=="checkbox"&&X.type!=="radio"?Y&&gA(Y.elementType)&&(Te=E_):Te=zb;if(Te&&(Te=Te(i,Y))){p_(fe,Te,c,ae);break e}nt&&nt(i,X,Y),i==="focusout"&&Y&&X.type==="number"&&Y.memoizedProps.value!=null&&EA(X,"number",X.value)}switch(nt=Y?po(Y):window,i){case"focusin":(m_(nt)||nt.contentEditable==="true")&&(Va=nt,OA=Y,vo=null);break;case"focusout":vo=OA=Va=null;break;case"mousedown":FA=!0;break;case"contextmenu":case"mouseup":case"dragend":FA=!1,R_(fe,c,ae);break;case"selectionchange":if(Wb)break;case"keydown":case"keyup":R_(fe,c,ae)}var Me;if(TA)e:{switch(i){case"compositionstart":var Pe="onCompositionStart";break e;case"compositionend":Pe="onCompositionEnd";break e;case"compositionupdate":Pe="onCompositionUpdate";break e}Pe=void 0}else ja?A_(i,c)&&(Pe="onCompositionEnd"):i==="keydown"&&c.keyCode===229&&(Pe="onCompositionStart");Pe&&(c_&&c.locale!=="ko"&&(ja||Pe!=="onCompositionStart"?Pe==="onCompositionEnd"&&ja&&(Me=i_()):(Gu=ae,CA="value"in Gu?Gu.value:Gu.textContent,ja=!0)),nt=Hd(Y,Pe),0<nt.length&&(Pe=new o_(Pe,i,null,c,ae),fe.push({event:Pe,listeners:nt}),Me?Pe.data=Me:(Me=h_(c),Me!==null&&(Pe.data=Me)))),(Me=Hb?Pb(i,c):Ub(i,c))&&(Pe=Hd(Y,"onBeforeInput"),0<Pe.length&&(nt=new o_("onBeforeInput","beforeinput",null,c,ae),fe.push({event:nt,listeners:Pe}),nt.data=Me)),bB(fe,i,Y,c,ae)}jI(fe,s)})}function Jo(i,s,c){return{instance:i,listener:s,currentTarget:c}}function Hd(i,s){for(var c=s+"Capture",h=[];i!==null;){var p=i,I=p.stateNode;p=p.tag,p!==5&&p!==26&&p!==27||I===null||(p=Eo(i,c),p!=null&&h.unshift(Jo(i,p,I)),p=Eo(i,s),p!=null&&h.push(Jo(i,p,I))),i=i.return}return h}function ds(i){if(i===null)return null;do i=i.return;while(i&&i.tag!==5&&i.tag!==27);return i||null}function zI(i,s,c,h,p){for(var I=s._reactName,T=[];c!==null&&c!==h;){var B=c,M=B.alternate,Y=B.stateNode;if(B=B.tag,M!==null&&M===h)break;B!==5&&B!==26&&B!==27||Y===null||(M=Y,p?(Y=Eo(c,I),Y!=null&&T.unshift(Jo(c,Y,M))):p||(Y=Eo(c,I),Y!=null&&T.push(Jo(c,Y,M)))),c=c.return}T.length!==0&&i.push({event:s,listeners:T})}var LB=/\r\n?/g,wB=/\u0000|\uFFFD/g;function KI(i){return(typeof i=="string"?i:""+i).replace(LB,`
|
|
50
|
+
`).replace(wB,"")}function YI(i,s){return s=KI(s),KI(i)===s}function Pd(){}function pt(i,s,c,h,p,I){switch(c){case"children":typeof h=="string"?s==="body"||s==="textarea"&&h===""||Ua(i,h):(typeof h=="number"||typeof h=="bigint")&&s!=="body"&&Ua(i,""+h);break;case"className":Yc(i,"class",h);break;case"tabIndex":Yc(i,"tabindex",h);break;case"dir":case"role":case"viewBox":case"width":case"height":Yc(i,c,h);break;case"style":n_(i,h,I);break;case"data":if(s!=="object"){Yc(i,"data",h);break}case"src":case"href":if(h===""&&(s!=="a"||c!=="href")){i.removeAttribute(c);break}if(h==null||typeof h=="function"||typeof h=="symbol"||typeof h=="boolean"){i.removeAttribute(c);break}h=$c(""+h),i.setAttribute(c,h);break;case"action":case"formAction":if(typeof h=="function"){i.setAttribute(c,"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"&&(c==="formAction"?(s!=="input"&&pt(i,s,"name",p.name,p,null),pt(i,s,"formEncType",p.formEncType,p,null),pt(i,s,"formMethod",p.formMethod,p,null),pt(i,s,"formTarget",p.formTarget,p,null)):(pt(i,s,"encType",p.encType,p,null),pt(i,s,"method",p.method,p,null),pt(i,s,"target",p.target,p,null)));if(h==null||typeof h=="symbol"||typeof h=="boolean"){i.removeAttribute(c);break}h=$c(""+h),i.setAttribute(c,h);break;case"onClick":h!=null&&(i.onclick=Pd);break;case"onScroll":h!=null&&st("scroll",i);break;case"onScrollEnd":h!=null&&st("scrollend",i);break;case"dangerouslySetInnerHTML":if(h!=null){if(typeof h!="object"||!("__html"in h))throw Error(r(61));if(c=h.__html,c!=null){if(p.children!=null)throw Error(r(60));i.innerHTML=c}}break;case"multiple":i.multiple=h&&typeof h!="function"&&typeof h!="symbol";break;case"muted":i.muted=h&&typeof h!="function"&&typeof h!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(h==null||typeof h=="function"||typeof h=="boolean"||typeof h=="symbol"){i.removeAttribute("xlink:href");break}c=$c(""+h),i.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",c);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":h!=null&&typeof h!="function"&&typeof h!="symbol"?i.setAttribute(c,""+h):i.removeAttribute(c);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":h&&typeof h!="function"&&typeof h!="symbol"?i.setAttribute(c,""):i.removeAttribute(c);break;case"capture":case"download":h===!0?i.setAttribute(c,""):h!==!1&&h!=null&&typeof h!="function"&&typeof h!="symbol"?i.setAttribute(c,h):i.removeAttribute(c);break;case"cols":case"rows":case"size":case"span":h!=null&&typeof h!="function"&&typeof h!="symbol"&&!isNaN(h)&&1<=h?i.setAttribute(c,h):i.removeAttribute(c);break;case"rowSpan":case"start":h==null||typeof h=="function"||typeof h=="symbol"||isNaN(h)?i.removeAttribute(c):i.setAttribute(c,h);break;case"popover":st("beforetoggle",i),st("toggle",i),Kc(i,"popover",h);break;case"xlinkActuate":ru(i,"http://www.w3.org/1999/xlink","xlink:actuate",h);break;case"xlinkArcrole":ru(i,"http://www.w3.org/1999/xlink","xlink:arcrole",h);break;case"xlinkRole":ru(i,"http://www.w3.org/1999/xlink","xlink:role",h);break;case"xlinkShow":ru(i,"http://www.w3.org/1999/xlink","xlink:show",h);break;case"xlinkTitle":ru(i,"http://www.w3.org/1999/xlink","xlink:title",h);break;case"xlinkType":ru(i,"http://www.w3.org/1999/xlink","xlink:type",h);break;case"xmlBase":ru(i,"http://www.w3.org/XML/1998/namespace","xml:base",h);break;case"xmlLang":ru(i,"http://www.w3.org/XML/1998/namespace","xml:lang",h);break;case"xmlSpace":ru(i,"http://www.w3.org/XML/1998/namespace","xml:space",h);break;case"is":Kc(i,"is",h);break;case"innerText":case"textContent":break;default:(!(2<c.length)||c[0]!=="o"&&c[0]!=="O"||c[1]!=="n"&&c[1]!=="N")&&(c=cb.get(c)||c,Kc(i,c,h))}}function nm(i,s,c,h,p,I){switch(c){case"style":n_(i,h,I);break;case"dangerouslySetInnerHTML":if(h!=null){if(typeof h!="object"||!("__html"in h))throw Error(r(61));if(c=h.__html,c!=null){if(p.children!=null)throw Error(r(60));i.innerHTML=c}}break;case"children":typeof h=="string"?Ua(i,h):(typeof h=="number"||typeof h=="bigint")&&Ua(i,""+h);break;case"onScroll":h!=null&&st("scroll",i);break;case"onScrollEnd":h!=null&&st("scrollend",i);break;case"onClick":h!=null&&(i.onclick=Pd);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Z4.hasOwnProperty(c))e:{if(c[0]==="o"&&c[1]==="n"&&(p=c.endsWith("Capture"),s=c.slice(2,p?c.length-7:void 0),I=i[Rn]||null,I=I!=null?I[c]:null,typeof I=="function"&&i.removeEventListener(s,I,p),typeof h=="function")){typeof I!="function"&&I!==null&&(c in i?i[c]=null:i.hasAttribute(c)&&i.removeAttribute(c)),i.addEventListener(s,h,p);break e}c in i?i[c]=h:h===!0?i.setAttribute(c,""):Kc(i,c,h)}}}function sn(i,s,c){switch(s){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":st("error",i),st("load",i);var h=!1,p=!1,I;for(I in c)if(c.hasOwnProperty(I)){var T=c[I];if(T!=null)switch(I){case"src":h=!0;break;case"srcSet":p=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,s));default:pt(i,s,I,T,c,null)}}p&&pt(i,s,"srcSet",c.srcSet,c,null),h&&pt(i,s,"src",c.src,c,null);return;case"input":st("invalid",i);var B=I=T=p=null,M=null,Y=null;for(h in c)if(c.hasOwnProperty(h)){var ae=c[h];if(ae!=null)switch(h){case"name":p=ae;break;case"type":T=ae;break;case"checked":M=ae;break;case"defaultChecked":Y=ae;break;case"value":I=ae;break;case"defaultValue":B=ae;break;case"children":case"dangerouslySetInnerHTML":if(ae!=null)throw Error(r(137,s));break;default:pt(i,s,h,ae,c,null)}}X4(i,I,B,M,Y,T,p,!1),Zc(i);return;case"select":st("invalid",i),h=T=I=null;for(p in c)if(c.hasOwnProperty(p)&&(B=c[p],B!=null))switch(p){case"value":I=B;break;case"defaultValue":T=B;break;case"multiple":h=B;default:pt(i,s,p,B,c,null)}s=I,c=T,i.multiple=!!h,s!=null?Pa(i,!!h,s,!1):c!=null&&Pa(i,!!h,c,!0);return;case"textarea":st("invalid",i),I=p=h=null;for(T in c)if(c.hasOwnProperty(T)&&(B=c[T],B!=null))switch(T){case"value":h=B;break;case"defaultValue":p=B;break;case"children":I=B;break;case"dangerouslySetInnerHTML":if(B!=null)throw Error(r(91));break;default:pt(i,s,T,B,c,null)}e_(i,h,p,I),Zc(i);return;case"option":for(M in c)if(c.hasOwnProperty(M)&&(h=c[M],h!=null))switch(M){case"selected":i.selected=h&&typeof h!="function"&&typeof h!="symbol";break;default:pt(i,s,M,h,c,null)}return;case"dialog":st("cancel",i),st("close",i);break;case"iframe":case"object":st("load",i);break;case"video":case"audio":for(h=0;h<Xo.length;h++)st(Xo[h],i);break;case"image":st("error",i),st("load",i);break;case"details":st("toggle",i);break;case"embed":case"source":case"link":st("error",i),st("load",i);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(Y in c)if(c.hasOwnProperty(Y)&&(h=c[Y],h!=null))switch(Y){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,s));default:pt(i,s,Y,h,c,null)}return;default:if(gA(s)){for(ae in c)c.hasOwnProperty(ae)&&(h=c[ae],h!==void 0&&nm(i,s,ae,h,c,void 0));return}}for(B in c)c.hasOwnProperty(B)&&(h=c[B],h!=null&&pt(i,s,B,h,c,null))}function MB(i,s,c,h){switch(s){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var p=null,I=null,T=null,B=null,M=null,Y=null,ae=null;for(ie in c){var fe=c[ie];if(c.hasOwnProperty(ie)&&fe!=null)switch(ie){case"checked":break;case"value":break;case"defaultValue":M=fe;default:h.hasOwnProperty(ie)||pt(i,s,ie,null,h,fe)}}for(var X in h){var ie=h[X];if(fe=c[X],h.hasOwnProperty(X)&&(ie!=null||fe!=null))switch(X){case"type":I=ie;break;case"name":p=ie;break;case"checked":Y=ie;break;case"defaultChecked":ae=ie;break;case"value":T=ie;break;case"defaultValue":B=ie;break;case"children":case"dangerouslySetInnerHTML":if(ie!=null)throw Error(r(137,s));break;default:ie!==fe&&pt(i,s,X,ie,h,fe)}}pA(i,T,B,M,Y,ae,I,p);return;case"select":ie=T=B=X=null;for(I in c)if(M=c[I],c.hasOwnProperty(I)&&M!=null)switch(I){case"value":break;case"multiple":ie=M;default:h.hasOwnProperty(I)||pt(i,s,I,null,h,M)}for(p in h)if(I=h[p],M=c[p],h.hasOwnProperty(p)&&(I!=null||M!=null))switch(p){case"value":X=I;break;case"defaultValue":B=I;break;case"multiple":T=I;default:I!==M&&pt(i,s,p,I,h,M)}s=B,c=T,h=ie,X!=null?Pa(i,!!c,X,!1):!!h!=!!c&&(s!=null?Pa(i,!!c,s,!0):Pa(i,!!c,c?[]:"",!1));return;case"textarea":ie=X=null;for(B in c)if(p=c[B],c.hasOwnProperty(B)&&p!=null&&!h.hasOwnProperty(B))switch(B){case"value":break;case"children":break;default:pt(i,s,B,null,h,p)}for(T in h)if(p=h[T],I=c[T],h.hasOwnProperty(T)&&(p!=null||I!=null))switch(T){case"value":X=p;break;case"defaultValue":ie=p;break;case"children":break;case"dangerouslySetInnerHTML":if(p!=null)throw Error(r(91));break;default:p!==I&&pt(i,s,T,p,h,I)}J4(i,X,ie);return;case"option":for(var Le in c)if(X=c[Le],c.hasOwnProperty(Le)&&X!=null&&!h.hasOwnProperty(Le))switch(Le){case"selected":i.selected=!1;break;default:pt(i,s,Le,null,h,X)}for(M in h)if(X=h[M],ie=c[M],h.hasOwnProperty(M)&&X!==ie&&(X!=null||ie!=null))switch(M){case"selected":i.selected=X&&typeof X!="function"&&typeof X!="symbol";break;default:pt(i,s,M,X,h,ie)}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 c)X=c[Ye],c.hasOwnProperty(Ye)&&X!=null&&!h.hasOwnProperty(Ye)&&pt(i,s,Ye,null,h,X);for(Y in h)if(X=h[Y],ie=c[Y],h.hasOwnProperty(Y)&&X!==ie&&(X!=null||ie!=null))switch(Y){case"children":case"dangerouslySetInnerHTML":if(X!=null)throw Error(r(137,s));break;default:pt(i,s,Y,X,h,ie)}return;default:if(gA(s)){for(var Ot in c)X=c[Ot],c.hasOwnProperty(Ot)&&X!==void 0&&!h.hasOwnProperty(Ot)&&nm(i,s,Ot,void 0,h,X);for(ae in h)X=h[ae],ie=c[ae],!h.hasOwnProperty(ae)||X===ie||X===void 0&&ie===void 0||nm(i,s,ae,X,h,ie);return}}for(var Z in c)X=c[Z],c.hasOwnProperty(Z)&&X!=null&&!h.hasOwnProperty(Z)&&pt(i,s,Z,null,h,X);for(fe in h)X=h[fe],ie=c[fe],!h.hasOwnProperty(fe)||X===ie||X==null&&ie==null||pt(i,s,fe,X,h,ie)}var rm=null,um=null;function Ud(i){return i.nodeType===9?i:i.ownerDocument}function ZI(i){switch(i){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function WI(i,s){if(i===0)switch(s){case"svg":return 1;case"math":return 2;default:return 0}return i===1&&s==="foreignObject"?0:i}function im(i,s){return i==="textarea"||i==="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 am=null;function HB(){var i=window.event;return i&&i.type==="popstate"?i===am?!1:(am=i,!0):(am=null,!1)}var $I=typeof setTimeout=="function"?setTimeout:void 0,PB=typeof clearTimeout=="function"?clearTimeout:void 0,qI=typeof Promise=="function"?Promise:void 0,UB=typeof queueMicrotask=="function"?queueMicrotask:typeof qI<"u"?function(i){return qI.resolve(null).then(i).catch(kB)}:$I;function kB(i){setTimeout(function(){throw i})}function sm(i,s){var c=s,h=0;do{var p=c.nextSibling;if(i.removeChild(c),p&&p.nodeType===8)if(c=p.data,c==="/$"){if(h===0){i.removeChild(p),sl(s);return}h--}else c!=="$"&&c!=="$?"&&c!=="$!"||h++;c=p}while(c);sl(s)}function om(i){var s=i.firstChild;for(s&&s.nodeType===10&&(s=s.nextSibling);s;){var c=s;switch(s=s.nextSibling,c.nodeName){case"HTML":case"HEAD":case"BODY":om(c),mA(c);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(c.rel.toLowerCase()==="stylesheet")continue}i.removeChild(c)}}function GB(i,s,c,h){for(;i.nodeType===1;){var p=c;if(i.nodeName.toLowerCase()!==s.toLowerCase()){if(!h&&(i.nodeName!=="INPUT"||i.type!=="hidden"))break}else if(h){if(!i[mo])switch(s){case"meta":if(!i.hasAttribute("itemprop"))break;return i;case"link":if(I=i.getAttribute("rel"),I==="stylesheet"&&i.hasAttribute("data-precedence"))break;if(I!==p.rel||i.getAttribute("href")!==(p.href==null?null:p.href)||i.getAttribute("crossorigin")!==(p.crossOrigin==null?null:p.crossOrigin)||i.getAttribute("title")!==(p.title==null?null:p.title))break;return i;case"style":if(i.hasAttribute("data-precedence"))break;return i;case"script":if(I=i.getAttribute("src"),(I!==(p.src==null?null:p.src)||i.getAttribute("type")!==(p.type==null?null:p.type)||i.getAttribute("crossorigin")!==(p.crossOrigin==null?null:p.crossOrigin))&&I&&i.hasAttribute("async")&&!i.hasAttribute("itemprop"))break;return i;default:return i}}else if(s==="input"&&i.type==="hidden"){var I=p.name==null?null:""+p.name;if(p.type==="hidden"&&i.getAttribute("name")===I)return i}else return i;if(i=Ir(i.nextSibling),i===null)break}return null}function jB(i,s,c){if(s==="")return null;for(;i.nodeType!==3;)if((i.nodeType!==1||i.nodeName!=="INPUT"||i.type!=="hidden")&&!c||(i=Ir(i.nextSibling),i===null))return null;return i}function Ir(i){for(;i!=null;i=i.nextSibling){var s=i.nodeType;if(s===1||s===3)break;if(s===8){if(s=i.data,s==="$"||s==="$!"||s==="$?"||s==="F!"||s==="F")break;if(s==="/$")return null}}return i}function QI(i){i=i.previousSibling;for(var s=0;i;){if(i.nodeType===8){var c=i.data;if(c==="$"||c==="$!"||c==="$?"){if(s===0)return i;s--}else c==="/$"&&s++}i=i.previousSibling}return null}function XI(i,s,c){switch(s=Ud(c),i){case"html":if(i=s.documentElement,!i)throw Error(r(452));return i;case"head":if(i=s.head,!i)throw Error(r(453));return i;case"body":if(i=s.body,!i)throw Error(r(454));return i;default:throw Error(r(451))}}var or=new Map,JI=new Set;function kd(i){return typeof i.getRootNode=="function"?i.getRootNode():i.ownerDocument}var gu=te.d;te.d={f:VB,r:zB,D:KB,C:YB,L:ZB,m:WB,X:qB,S:$B,M:QB};function VB(){var i=gu.f(),s=Od();return i||s}function zB(i){var s=wa(i);s!==null&&s.tag===5&&s.type==="form"?RN(s):gu.r(i)}var fs=typeof document>"u"?null:document;function eS(i,s,c){var h=fs;if(h&&typeof s=="string"&&s){var p=Xn(s);p='link[rel="'+i+'"][href="'+p+'"]',typeof c=="string"&&(p+='[crossorigin="'+c+'"]'),JI.has(p)||(JI.add(p),i={rel:i,crossOrigin:c,href:s},h.querySelector(p)===null&&(s=h.createElement("link"),sn(s,"link",i),Qt(s),h.head.appendChild(s)))}}function KB(i){gu.D(i),eS("dns-prefetch",i,null)}function YB(i,s){gu.C(i,s),eS("preconnect",i,s)}function ZB(i,s,c){gu.L(i,s,c);var h=fs;if(h&&i&&s){var p='link[rel="preload"][as="'+Xn(s)+'"]';s==="image"&&c&&c.imageSrcSet?(p+='[imagesrcset="'+Xn(c.imageSrcSet)+'"]',typeof c.imageSizes=="string"&&(p+='[imagesizes="'+Xn(c.imageSizes)+'"]')):p+='[href="'+Xn(i)+'"]';var I=p;switch(s){case"style":I=As(i);break;case"script":I=hs(i)}or.has(I)||(i=K({rel:"preload",href:s==="image"&&c&&c.imageSrcSet?void 0:i,as:s},c),or.set(I,i),h.querySelector(p)!==null||s==="style"&&h.querySelector(el(I))||s==="script"&&h.querySelector(tl(I))||(s=h.createElement("link"),sn(s,"link",i),Qt(s),h.head.appendChild(s)))}}function WB(i,s){gu.m(i,s);var c=fs;if(c&&i){var h=s&&typeof s.as=="string"?s.as:"script",p='link[rel="modulepreload"][as="'+Xn(h)+'"][href="'+Xn(i)+'"]',I=p;switch(h){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":I=hs(i)}if(!or.has(I)&&(i=K({rel:"modulepreload",href:i},s),or.set(I,i),c.querySelector(p)===null)){switch(h){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(c.querySelector(tl(I)))return}h=c.createElement("link"),sn(h,"link",i),Qt(h),c.head.appendChild(h)}}}function $B(i,s,c){gu.S(i,s,c);var h=fs;if(h&&i){var p=Ma(h).hoistableStyles,I=As(i);s=s||"default";var T=p.get(I);if(!T){var B={loading:0,preload:null};if(T=h.querySelector(el(I)))B.loading=5;else{i=K({rel:"stylesheet",href:i,"data-precedence":s},c),(c=or.get(I))&&lm(i,c);var M=T=h.createElement("link");Qt(M),sn(M,"link",i),M._p=new Promise(function(Y,ae){M.onload=Y,M.onerror=ae}),M.addEventListener("load",function(){B.loading|=1}),M.addEventListener("error",function(){B.loading|=2}),B.loading|=4,Gd(T,s,h)}T={type:"stylesheet",instance:T,count:1,state:B},p.set(I,T)}}}function qB(i,s){gu.X(i,s);var c=fs;if(c&&i){var h=Ma(c).hoistableScripts,p=hs(i),I=h.get(p);I||(I=c.querySelector(tl(p)),I||(i=K({src:i,async:!0},s),(s=or.get(p))&&cm(i,s),I=c.createElement("script"),Qt(I),sn(I,"link",i),c.head.appendChild(I)),I={type:"script",instance:I,count:1,state:null},h.set(p,I))}}function QB(i,s){gu.M(i,s);var c=fs;if(c&&i){var h=Ma(c).hoistableScripts,p=hs(i),I=h.get(p);I||(I=c.querySelector(tl(p)),I||(i=K({src:i,async:!0,type:"module"},s),(s=or.get(p))&&cm(i,s),I=c.createElement("script"),Qt(I),sn(I,"link",i),c.head.appendChild(I)),I={type:"script",instance:I,count:1,state:null},h.set(p,I))}}function tS(i,s,c,h){var p=(p=It.current)?kd(p):null;if(!p)throw Error(r(446));switch(i){case"meta":case"title":return null;case"style":return typeof c.precedence=="string"&&typeof c.href=="string"?(s=As(c.href),c=Ma(p).hoistableStyles,h=c.get(s),h||(h={type:"style",instance:null,count:0,state:null},c.set(s,h)),h):{type:"void",instance:null,count:0,state:null};case"link":if(c.rel==="stylesheet"&&typeof c.href=="string"&&typeof c.precedence=="string"){i=As(c.href);var I=Ma(p).hoistableStyles,T=I.get(i);if(T||(p=p.ownerDocument||p,T={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},I.set(i,T),(I=p.querySelector(el(i)))&&!I._p&&(T.instance=I,T.state.loading=5),or.has(i)||(c={rel:"preload",as:"style",href:c.href,crossOrigin:c.crossOrigin,integrity:c.integrity,media:c.media,hrefLang:c.hrefLang,referrerPolicy:c.referrerPolicy},or.set(i,c),I||XB(p,i,c,T.state))),s&&h===null)throw Error(r(528,""));return T}if(s&&h!==null)throw Error(r(529,""));return null;case"script":return s=c.async,c=c.src,typeof c=="string"&&s&&typeof s!="function"&&typeof s!="symbol"?(s=hs(c),c=Ma(p).hoistableScripts,h=c.get(s),h||(h={type:"script",instance:null,count:0,state:null},c.set(s,h)),h):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,i))}}function As(i){return'href="'+Xn(i)+'"'}function el(i){return'link[rel="stylesheet"]['+i+"]"}function nS(i){return K({},i,{"data-precedence":i.precedence,precedence:null})}function XB(i,s,c,h){i.querySelector('link[rel="preload"][as="style"]['+s+"]")?h.loading=1:(s=i.createElement("link"),h.preload=s,s.addEventListener("load",function(){return h.loading|=1}),s.addEventListener("error",function(){return h.loading|=2}),sn(s,"link",c),Qt(s),i.head.appendChild(s))}function hs(i){return'[src="'+Xn(i)+'"]'}function tl(i){return"script[async]"+i}function rS(i,s,c){if(s.count++,s.instance===null)switch(s.type){case"style":var h=i.querySelector('style[data-href~="'+Xn(c.href)+'"]');if(h)return s.instance=h,Qt(h),h;var p=K({},c,{"data-href":c.href,"data-precedence":c.precedence,href:null,precedence:null});return h=(i.ownerDocument||i).createElement("style"),Qt(h),sn(h,"style",p),Gd(h,c.precedence,i),s.instance=h;case"stylesheet":p=As(c.href);var I=i.querySelector(el(p));if(I)return s.state.loading|=4,s.instance=I,Qt(I),I;h=nS(c),(p=or.get(p))&&lm(h,p),I=(i.ownerDocument||i).createElement("link"),Qt(I);var T=I;return T._p=new Promise(function(B,M){T.onload=B,T.onerror=M}),sn(I,"link",h),s.state.loading|=4,Gd(I,c.precedence,i),s.instance=I;case"script":return I=hs(c.src),(p=i.querySelector(tl(I)))?(s.instance=p,Qt(p),p):(h=c,(p=or.get(I))&&(h=K({},c),cm(h,p)),i=i.ownerDocument||i,p=i.createElement("script"),Qt(p),sn(p,"link",h),i.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&&(h=s.instance,s.state.loading|=4,Gd(h,c.precedence,i));return s.instance}function Gd(i,s,c){for(var h=c.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),p=h.length?h[h.length-1]:null,I=p,T=0;T<h.length;T++){var B=h[T];if(B.dataset.precedence===s)I=B;else if(I!==p)break}I?I.parentNode.insertBefore(i,I.nextSibling):(s=c.nodeType===9?c.head:c,s.insertBefore(i,s.firstChild))}function lm(i,s){i.crossOrigin==null&&(i.crossOrigin=s.crossOrigin),i.referrerPolicy==null&&(i.referrerPolicy=s.referrerPolicy),i.title==null&&(i.title=s.title)}function cm(i,s){i.crossOrigin==null&&(i.crossOrigin=s.crossOrigin),i.referrerPolicy==null&&(i.referrerPolicy=s.referrerPolicy),i.integrity==null&&(i.integrity=s.integrity)}var jd=null;function uS(i,s,c){if(jd===null){var h=new Map,p=jd=new Map;p.set(c,h)}else p=jd,h=p.get(c),h||(h=new Map,p.set(c,h));if(h.has(i))return h;for(h.set(i,null),c=c.getElementsByTagName(i),p=0;p<c.length;p++){var I=c[p];if(!(I[mo]||I[dn]||i==="link"&&I.getAttribute("rel")==="stylesheet")&&I.namespaceURI!=="http://www.w3.org/2000/svg"){var T=I.getAttribute(s)||"";T=i+T;var B=h.get(T);B?B.push(I):h.set(T,[I])}}return h}function iS(i,s,c){i=i.ownerDocument||i,i.head.insertBefore(c,s==="title"?i.querySelector("head > title"):null)}function JB(i,s,c){if(c===1||s.itemProp!=null)return!1;switch(i){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 i=s.disabled,typeof s.precedence=="string"&&i==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 aS(i){return!(i.type==="stylesheet"&&(i.state.loading&3)===0)}var nl=null;function eO(){}function tO(i,s,c){if(nl===null)throw Error(r(475));var h=nl;if(s.type==="stylesheet"&&(typeof c.media!="string"||matchMedia(c.media).matches!==!1)&&(s.state.loading&4)===0){if(s.instance===null){var p=As(c.href),I=i.querySelector(el(p));if(I){i=I._p,i!==null&&typeof i=="object"&&typeof i.then=="function"&&(h.count++,h=Vd.bind(h),i.then(h,h)),s.state.loading|=4,s.instance=I,Qt(I);return}I=i.ownerDocument||i,c=nS(c),(p=or.get(p))&&lm(c,p),I=I.createElement("link"),Qt(I);var T=I;T._p=new Promise(function(B,M){T.onload=B,T.onerror=M}),sn(I,"link",c),s.instance=I}h.stylesheets===null&&(h.stylesheets=new Map),h.stylesheets.set(s,i),(i=s.state.preload)&&(s.state.loading&3)===0&&(h.count++,s=Vd.bind(h),i.addEventListener("load",s),i.addEventListener("error",s))}}function nO(){if(nl===null)throw Error(r(475));var i=nl;return i.stylesheets&&i.count===0&&dm(i,i.stylesheets),0<i.count?function(s){var c=setTimeout(function(){if(i.stylesheets&&dm(i,i.stylesheets),i.unsuspend){var h=i.unsuspend;i.unsuspend=null,h()}},6e4);return i.unsuspend=s,function(){i.unsuspend=null,clearTimeout(c)}}:null}function Vd(){if(this.count--,this.count===0){if(this.stylesheets)dm(this,this.stylesheets);else if(this.unsuspend){var i=this.unsuspend;this.unsuspend=null,i()}}}var zd=null;function dm(i,s){i.stylesheets=null,i.unsuspend!==null&&(i.count++,zd=new Map,s.forEach(rO,i),zd=null,Vd.call(i))}function rO(i,s){if(!(s.state.loading&4)){var c=zd.get(i);if(c)var h=c.get(null);else{c=new Map,zd.set(i,c);for(var p=i.querySelectorAll("link[data-precedence],style[data-precedence]"),I=0;I<p.length;I++){var T=p[I];(T.nodeName==="LINK"||T.getAttribute("media")!=="not all")&&(c.set(T.dataset.precedence,T),h=T)}h&&c.set(null,h)}p=s.instance,T=p.getAttribute("data-precedence"),I=c.get(T)||h,I===h&&c.set(null,p),c.set(T,p),this.count++,h=Vd.bind(this),p.addEventListener("load",h),p.addEventListener("error",h),I?I.parentNode.insertBefore(p,I.nextSibling):(i=i.nodeType===9?i.head:i,i.insertBefore(p,i.firstChild)),s.state.loading|=4}}var rl={$$typeof:_,Provider:null,Consumer:null,_currentValue:ce,_currentValue2:ce,_threadCount:0};function uO(i,s,c,h,p,I,T,B){this.tag=1,this.containerInfo=i,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=AA(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.finishedLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=AA(0),this.hiddenUpdates=AA(null),this.identifierPrefix=h,this.onUncaughtError=p,this.onCaughtError=I,this.onRecoverableError=T,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=B,this.incompleteTransitions=new Map}function sS(i,s,c,h,p,I,T,B,M,Y,ae,fe){return i=new uO(i,s,c,T,B,M,Y,fe),s=1,I===!0&&(s|=24),I=ar(3,null,null,s),i.current=I,I.stateNode=i,s=VA(),s.refCount++,i.pooledCache=s,s.refCount++,I.memoizedState={element:h,isDehydrated:c,cache:s},Ch(I),i}function oS(i){return i?(i=Ya,i):Ya}function lS(i,s,c,h,p,I){p=oS(p),h.context===null?h.context=p:h.pendingContext=p,h=$u(s),h.payload={element:c},I=I===void 0?null:I,I!==null&&(h.callback=I),c=qu(i,h,s),c!==null&&(Sn(c,i,s),ko(c,i,s))}function cS(i,s){if(i=i.memoizedState,i!==null&&i.dehydrated!==null){var c=i.retryLane;i.retryLane=c!==0&&c<s?c:s}}function fm(i,s){cS(i,s),(i=i.alternate)&&cS(i,s)}function dS(i){if(i.tag===13){var s=ju(i,67108864);s!==null&&Sn(s,i,67108864),fm(i,67108864)}}var Kd=!0;function iO(i,s,c,h){var p=G.T;G.T=null;var I=te.p;try{te.p=2,Am(i,s,c,h)}finally{te.p=I,G.T=p}}function aO(i,s,c,h){var p=G.T;G.T=null;var I=te.p;try{te.p=8,Am(i,s,c,h)}finally{te.p=I,G.T=p}}function Am(i,s,c,h){if(Kd){var p=hm(h);if(p===null)tm(i,s,h,Yd,c),AS(i,h);else if(oO(p,i,s,c,h))h.stopPropagation();else if(AS(i,h),s&4&&-1<sO.indexOf(i)){for(;p!==null;){var I=wa(p);if(I!==null)switch(I.tag){case 3:if(I=I.stateNode,I.current.memoizedState.isDehydrated){var T=wi(I.pendingLanes);if(T!==0){var B=I;for(B.pendingLanes|=2,B.entangledLanes|=2;T;){var M=1<<31-Mn(T);B.entanglements[1]|=M,T&=~M}Mr(I),(vt&6)===0&&(xd=Be()+500,Qo(0))}}break;case 13:B=ju(I,2),B!==null&&Sn(B,I,2),Od(),fm(I,2)}if(I=hm(h),I===null&&tm(i,s,h,Yd,c),I===p)break;p=I}p!==null&&h.stopPropagation()}else tm(i,s,h,null,c)}}function hm(i){return i=NA(i),mm(i)}var Yd=null;function mm(i){if(Yd=null,i=Mi(i),i!==null){var s=ee(i);if(s===null)i=null;else{var c=s.tag;if(c===13){if(i=pe(s),i!==null)return i;i=null}else if(c===3){if(s.stateNode.current.memoizedState.isDehydrated)return s.tag===3?s.stateNode.containerInfo:null;i=null}else s!==i&&(i=null)}}return Yd=i,null}function fS(i){switch(i){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(Xe()){case Lt:return 2;case wt:return 8;case wn:case dA:return 32;case Fa:return 268435456;default:return 32}default:return 32}}var pm=!1,ri=null,ui=null,ii=null,ul=new Map,il=new Map,ai=[],sO="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 AS(i,s){switch(i){case"focusin":case"focusout":ri=null;break;case"dragenter":case"dragleave":ui=null;break;case"mouseover":case"mouseout":ii=null;break;case"pointerover":case"pointerout":ul.delete(s.pointerId);break;case"gotpointercapture":case"lostpointercapture":il.delete(s.pointerId)}}function al(i,s,c,h,p,I){return i===null||i.nativeEvent!==I?(i={blockedOn:s,domEventName:c,eventSystemFlags:h,nativeEvent:I,targetContainers:[p]},s!==null&&(s=wa(s),s!==null&&dS(s)),i):(i.eventSystemFlags|=h,s=i.targetContainers,p!==null&&s.indexOf(p)===-1&&s.push(p),i)}function oO(i,s,c,h,p){switch(s){case"focusin":return ri=al(ri,i,s,c,h,p),!0;case"dragenter":return ui=al(ui,i,s,c,h,p),!0;case"mouseover":return ii=al(ii,i,s,c,h,p),!0;case"pointerover":var I=p.pointerId;return ul.set(I,al(ul.get(I)||null,i,s,c,h,p)),!0;case"gotpointercapture":return I=p.pointerId,il.set(I,al(il.get(I)||null,i,s,c,h,p)),!0}return!1}function hS(i){var s=Mi(i.target);if(s!==null){var c=ee(s);if(c!==null){if(s=c.tag,s===13){if(s=pe(c),s!==null){i.blockedOn=s,nb(i.priority,function(){if(c.tag===13){var h=Gn(),p=ju(c,h);p!==null&&Sn(p,c,h),fm(c,h)}});return}}else if(s===3&&c.stateNode.current.memoizedState.isDehydrated){i.blockedOn=c.tag===3?c.stateNode.containerInfo:null;return}}}i.blockedOn=null}function Zd(i){if(i.blockedOn!==null)return!1;for(var s=i.targetContainers;0<s.length;){var c=hm(i.nativeEvent);if(c===null){c=i.nativeEvent;var h=new c.constructor(c.type,c);_A=h,c.target.dispatchEvent(h),_A=null}else return s=wa(c),s!==null&&dS(s),i.blockedOn=c,!1;s.shift()}return!0}function mS(i,s,c){Zd(i)&&c.delete(s)}function lO(){pm=!1,ri!==null&&Zd(ri)&&(ri=null),ui!==null&&Zd(ui)&&(ui=null),ii!==null&&Zd(ii)&&(ii=null),ul.forEach(mS),il.forEach(mS)}function Wd(i,s){i.blockedOn===s&&(i.blockedOn=null,pm||(pm=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,lO)))}var $d=null;function pS(i){$d!==i&&($d=i,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){$d===i&&($d=null);for(var s=0;s<i.length;s+=3){var c=i[s],h=i[s+1],p=i[s+2];if(typeof h!="function"){if(mm(h||c)===null)continue;break}var I=wa(c);I!==null&&(i.splice(s,3),s-=3,ih(I,{pending:!0,data:p,method:c.method,action:h},h,p))}}))}function sl(i){function s(M){return Wd(M,i)}ri!==null&&Wd(ri,i),ui!==null&&Wd(ui,i),ii!==null&&Wd(ii,i),ul.forEach(s),il.forEach(s);for(var c=0;c<ai.length;c++){var h=ai[c];h.blockedOn===i&&(h.blockedOn=null)}for(;0<ai.length&&(c=ai[0],c.blockedOn===null);)hS(c),c.blockedOn===null&&ai.shift();if(c=(i.ownerDocument||i).$$reactFormReplay,c!=null)for(h=0;h<c.length;h+=3){var p=c[h],I=c[h+1],T=p[Rn]||null;if(typeof I=="function")T||pS(c);else if(T){var B=null;if(I&&I.hasAttribute("formAction")){if(p=I,T=I[Rn]||null)B=T.formAction;else if(mm(p)!==null)continue}else B=T.action;typeof B=="function"?c[h+1]=B:(c.splice(h,3),h-=3),pS(c)}}}function Em(i){this._internalRoot=i}qd.prototype.render=Em.prototype.render=function(i){var s=this._internalRoot;if(s===null)throw Error(r(409));var c=s.current,h=Gn();lS(c,h,i,s,null,null)},qd.prototype.unmount=Em.prototype.unmount=function(){var i=this._internalRoot;if(i!==null){this._internalRoot=null;var s=i.containerInfo;i.tag===0&&ls(),lS(i.current,2,null,i,null,null),Od(),s[La]=null}};function qd(i){this._internalRoot=i}qd.prototype.unstable_scheduleHydration=function(i){if(i){var s=z4();i={blockedOn:null,target:i,priority:s};for(var c=0;c<ai.length&&s!==0&&s<ai[c].priority;c++);ai.splice(c,0,i),c===0&&hS(i)}};var ES=t.version;if(ES!=="19.0.0")throw Error(r(527,ES,"19.0.0"));te.findDOMNode=function(i){var s=i._reactInternals;if(s===void 0)throw typeof i.render=="function"?Error(r(188)):(i=Object.keys(i).join(","),Error(r(268,i)));return i=W(s),i=i!==null?V(i):null,i=i===null?null:i.stateNode,i};var cO={bundleType:0,version:"19.0.0",rendererPackageName:"react-dom",currentDispatcherRef:G,findFiberByHostInstance:Mi,reconcilerVersion:"19.0.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Qd=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Qd.isDisabled&&Qd.supportsFiber)try{Pu=Qd.inject(cO),Nn=Qd}catch{}}return ll.createRoot=function(i,s){if(!a(i))throw Error(r(299));var c=!1,h="",p=LN,I=wN,T=MN,B=null;return s!=null&&(s.unstable_strictMode===!0&&(c=!0),s.identifierPrefix!==void 0&&(h=s.identifierPrefix),s.onUncaughtError!==void 0&&(p=s.onUncaughtError),s.onCaughtError!==void 0&&(I=s.onCaughtError),s.onRecoverableError!==void 0&&(T=s.onRecoverableError),s.unstable_transitionCallbacks!==void 0&&(B=s.unstable_transitionCallbacks)),s=sS(i,1,!1,null,null,c,h,p,I,T,B,null),i[La]=s.current,em(i.nodeType===8?i.parentNode:i),new Em(s)},ll.hydrateRoot=function(i,s,c){if(!a(i))throw Error(r(299));var h=!1,p="",I=LN,T=wN,B=MN,M=null,Y=null;return c!=null&&(c.unstable_strictMode===!0&&(h=!0),c.identifierPrefix!==void 0&&(p=c.identifierPrefix),c.onUncaughtError!==void 0&&(I=c.onUncaughtError),c.onCaughtError!==void 0&&(T=c.onCaughtError),c.onRecoverableError!==void 0&&(B=c.onRecoverableError),c.unstable_transitionCallbacks!==void 0&&(M=c.unstable_transitionCallbacks),c.formState!==void 0&&(Y=c.formState)),s=sS(i,1,!0,s,c??null,h,p,I,T,B,M,Y),s.context=oS(null),c=s.current,h=Gn(),p=$u(h),p.callback=null,qu(c,p,h),s.current.lanes=h,ho(s,h),Mr(s),i[La]=s.current,em(i),new qd(s)},ll.version="19.0.0",ll}var DS;function CO(){if(DS)return Nm.exports;DS=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(),Nm.exports=SO(),Nm.exports}var yO=CO();const vO={locales:["en","en-GB","fr","es","de","ja","ko","zh","it","pt","hi","ar","ru"],requiredLocales:[],strictMode:"strict",defaultLocale:"en"},RO={headerName:"x-intlayer-locale",cookieName:"INTLAYER_LOCALE",prefixDefault:!1,basePath:"",serverSetCookie:"always",noPrefix:!1},DO={fileExtensions:[".content.ts",".content.js",".content.cjs",".content.mjs",".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.mjs","/**/*.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.mjs","/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"},TO={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},xO={mode:"default",prefix:"\x1B[90m[intlayer] \x1B[0m"},Qe={internationalization:vO,middleware:RO,content:DO,editor:TO,log:xO},ln=[];for(let e=0;e<256;++e)ln.push((e+256).toString(16).slice(1));function bO(e,t=0){return(ln[e[t+0]]+ln[e[t+1]]+ln[e[t+2]]+ln[e[t+3]]+"-"+ln[e[t+4]]+ln[e[t+5]]+"-"+ln[e[t+6]]+ln[e[t+7]]+"-"+ln[e[t+8]]+ln[e[t+9]]+"-"+ln[e[t+10]]+ln[e[t+11]]+ln[e[t+12]]+ln[e[t+13]]+ln[e[t+14]]+ln[e[t+15]]).toLowerCase()}let ym;const BO=new Uint8Array(16);function OO(){if(!ym){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");ym=crypto.getRandomValues.bind(crypto)}return ym(BO)}const FO=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),TS={randomUUID:FO};function LO(e,t,n){var a;if(TS.randomUUID&&!e)return TS.randomUUID();e=e||{};const r=e.random??((a=e.rng)==null?void 0:a.call(e))??OO();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,bO(r)}const{editor:_u}=Qe,Jy=C.createContext({postMessage:()=>null,allowedOrigins:[_u==null?void 0:_u.applicationURL,_u==null?void 0:_u.editorURL,_u==null?void 0:_u.cmsURL],senderId:""}),xS=({children:e,allowedOrigins:t,postMessage:n})=>{const r=C.useRef(LO()),a=C.useMemo(()=>({postMessage:n,allowedOrigins:t,senderId:r.current}),[n,t,r.current]);return N.jsx(Jy.Provider,{value:a,children:e})},ev=()=>C.useContext(Jy),wO=(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 a=n.pathname.replace(/\/$/,""),o=r.pathname.replace(/\/$/,"");return!(a!==""&&o!==""&&a!==o)}catch(n){return console.error("Invalid URL(s)",n),!1}},Ps=(e,t,n)=>{const{allowedOrigins:r,postMessage:a,senderId:o}=ev();return C.useEffect(()=>{if(t){const d=f=>{const{type:A,data:m,senderId:E}=f.data;A===e&&E!==o&&(typeof r>"u"||r!=null&&r.some(g=>wO(g,f.origin))||r!=null&&r.includes("*"))&&t(m)};return window.addEventListener("message",d),()=>window.removeEventListener("message",d)}},[r,a,o,n]),d=>{a({type:e,data:d,senderId:o})}},MO=(e,t)=>typeof e=="function"?e(t):e,Ta=(e,t,n)=>{const{postMessage:r,senderId:a}=ev(),{emit:o,receive:l}=n??{emit:!0,receive:!0},d=(_,S)=>{const y=MO(_,S);return o&&typeof r=="function"&&typeof y<"u"&&r({type:`${e}/post`,data:y,senderId:a}),y},f=()=>{typeof r=="function"&&r({type:`${e}/post`,data:A,senderId:a})},[A,m]=C.useState(()=>d(t)),E=_=>m(S=>d(_,S));Ps(`${e}/post`,l?_=>{m(_)}:void 0);const g=(_,S)=>{o&&typeof r=="function"&&S!==a&&(typeof A>"u"||r({type:`${e}/post`,data:A,senderId:a}))};return Ps(`${e}/get`,o?g:void 0,A),C.useEffect(()=>{l&&typeof r=="function"&&typeof A>"u"&&r({type:`${e}/get`,senderId:a})},[]),[A,E,f]},tv=C.createContext(void 0),HO=({children:e,configuration:t})=>N.jsx(tv.Provider,{value:t,children:e}),Xr=()=>C.useContext(tv),nv=C.createContext(void 0),rv=C.createContext(void 0),PO=({children:e})=>{const[t,n]=Ta("INTLAYER_LOCALE_DICTIONARIES_CHANGED",void 0),r=C.useMemo(()=>({localeDictionaries:t??{}}),[t]),a=C.useMemo(()=>({setLocaleDictionaries:n,setLocaleDictionary:o=>{n(l=>({...l,[o.key]:o}))}}),[n]);return N.jsx(nv.Provider,{value:r,children:N.jsx(rv.Provider,{value:a,children:e})})},ZE=()=>C.useContext(rv),uv=()=>{const e=ZE(),t=C.useContext(nv);if(!t)throw new Error("useDictionariesRecordStates must be used within a DictionariesRecordProvider");return{...t,...e}};var U=(e=>(e.Translation="translation",e.Enumeration="enumeration",e.Condition="condition",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))(U||{});const UO=(e,t,n)=>({...n,nodeType:e,[e]:t}),_e=e=>UO(U.Translation,e),kO=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)},iv=e=>{const t=e.split(/\r?\n/),n={};let r=!1;for(const a of t){if(a.trim()==="---"){if(r)break;r=!0;continue}if(r){const l=a.match(/^([^:]+)\s*:\s*(.*)$/);if(l){const d=l[1].trim(),f=l[2].trim();try{n[d]=kO(f)}catch{n[d]=f}}}}return n},bl=(e,t)=>{for(const r of t.plugins??[])if(r.canHandle(e))return r.transform(e,t,(a,o)=>bl(a,o));if(e===null||typeof e!="object")return e;if(Array.isArray(e))return e.map((r,a)=>{const o={...t,children:r,keyPath:[...t.keyPath,{type:U.Array,key:a}]};return bl(r,o)});const n={};for(const r in e){const a={...t,children:e[r],keyPath:[...t.keyPath,{type:U.Object,key:r}]};n[r]=bl(e[r],a)}return n},GO=(e,t)=>{const n=Object.keys(e),r=n[n.length-1];return e[`${t}`]??e.fallback??e[r]},jO=(e,t)=>{const n=Object.keys(e);for(const r of n){const a=!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)),d=r.startsWith("<")&&t<parseFloat(r.slice(1)),f=r.startsWith("<=")&&t<=parseFloat(r.slice(2));if(a||o||l||d||f)return r}},VO=(e,t)=>{const n=jO(e,t)??"fallback";return e[n]},bS={},zO=(e,t,n=Qe.internationalization.defaultLocale)=>{const r=[WO(n),$O,qO,QO,...t.plugins??[]];return bl(e,{...t,plugins:r})},av=(e,t,n)=>{const r={dictionaryKey:e.key,dictionaryPath:e.filePath,keyPath:[],plugins:n};return zO(e.content,r,t)},KO=(e,t,n)=>{const r=bS[e];if(!r)throw new Error(`Dictionary ${e} not found`,bS);return av(r,t,n)},YO=(e,t,n)=>{const r=KO(e,n==null?void 0:n.locale,n==null?void 0:n.plugins);if(typeof t=="string"){const a=t.split(".");let o=r;for(const l of a)if(o=o==null?void 0:o[l],o===void 0)return r;return o}return r},ZO=(e,t)=>{const{defaultLocale:n}=Qe==null?void 0:Qe.internationalization;return e[t??n]??e[n]},WO=e=>({canHandle:t=>typeof t=="object"&&(t==null?void 0:t.nodeType)===U.Translation,transform:(t,n,r)=>{const a=structuredClone(t.translation);for(const o in a){const l={...n,children:a[o],keyPath:[...n.keyPath,{type:U.Translation,key:o}]};a[o]=r(a[o],l)}return ZO(a,e)}}),$O={canHandle:e=>typeof e=="object"&&(e==null?void 0:e.nodeType)===U.Enumeration,transform:(e,t,n)=>{const r=structuredClone(e.enumeration);for(const a in r){const o=r[a],l={...t,children:o,keyPath:[...t.keyPath,{type:U.Enumeration,key:a}]};r[a]=n(o,l)}return a=>VO(r,a)}},qO={canHandle:e=>typeof e=="object"&&(e==null?void 0:e.nodeType)===U.Condition,transform:(e,t,n)=>{const r=structuredClone(e.condition);for(const a in r){const o=r[a],l={...t,children:o,keyPath:[...t.keyPath,{type:U.Condition,key:a}]};r[a]=n(o,l)}return a=>GO(r,a)}},QO={canHandle:e=>typeof e=="object"&&(e==null?void 0:e.nodeType)===U.Nested,transform:(e,t)=>YO(e.nested.dictionaryKey,e.nested.path,t)},BS={method:"GET",headers:{"Content-Type":"application/json"},credentials:"include"},XO=e=>(Object.keys(e).forEach(t=>{e[t]===void 0&&delete e[t]}),e),Xd=e=>e.reduce((t,n)=>{const r=t??{},a=XO(n??{});return typeof r=="object"&&typeof a=="object"?{...r,...a}:a??r},{}),Oe=async(e,...t)=>{const{signal:n}=new AbortController;let r="",a;const o=t.map(({body:_,params:S,headers:y,...v})=>v),l=Xd([BS,...o]),d=Xd([BS.headers,...t.map(_=>_.headers)]),f=Xd(t.map(_=>_.params)),A=l.method;if(A!=="GET"&&A!=="HEAD"){const _=Xd(t.map(S=>S.body));(d==null?void 0:d["Content-Type"])==="application/x-www-form-urlencoded"?a=new URLSearchParams(_).toString():a=JSON.stringify(_)}Object.entries(f).length>0&&(r=`?${new URLSearchParams(f).toString()}`);const m={...l,headers:d,body:a,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()},JO=(e={},t=Qe)=>{const{backendURL:n}=(t==null?void 0:t.editor)??{};if(!n)throw new Error("Backend URL is not defined in the Intlayer configuration.");const r=`${n}/api/ai`;return{auditContentDeclaration:async(m,E={})=>await Oe(`${r}/audit/dictionary`,e,E,{method:"POST",body:m}),auditContentDeclarationField:async(m,E={})=>await Oe(`${r}/audit/dictionary/field`,e,E,{method:"POST",body:m}),auditContentDeclarationMetadata:async(m,E={})=>await Oe(`${r}/audit/dictionary/metadata`,e,E,{method:"POST",body:m}),auditTag:async(m,E={})=>await Oe(`${r}/audit/tag`,e,E,{method:"POST",body:m}),askDocQuestion:async(m,E={})=>await Oe(`${r}/ask`,e,E,{method:"POST",body:m}),autocomplete:async(m,E={})=>await Oe(`${r}/autocomplete`,e,E,{method:"POST",body:m})}},eF=(e={},t=Qe)=>{const{backendURL:n,clientId:r,clientSecret:a}=(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(O,F={})=>await Oe(`${o}/login`,e,F,{method:"POST",body:O}),getLoginWithGitHubURL:O=>{const F=new URLSearchParams(O);return`${o}/login/github?${F.toString()}`},getLoginWithGoogleURL:O=>{const F=new URLSearchParams(O);return`${o}/login/google?${F.toString()}`},register:async(O,F={},j={})=>await Oe(`${o}/register`,e,j,{method:"POST",body:O,params:F}),logout:async(O={})=>await Oe(`${o}/logout`,e,O,{method:"POST"}),resetPassword:async(O,F={})=>await Oe(`${o}/password/reset`,e,F,{params:O,method:"POST"}),defineNewPassword:async(O,F={})=>await Oe(`${o}/password/define`,e,F,{method:"POST",body:O}),askResetPassword:async(O,F={})=>await Oe(`${o}/password/reset`,e,F,{method:"POST",body:{email:O}}),checkIfUserHasPassword:async(O={})=>await Oe(`${o}/password/has`,e,O,{method:"GET"}),verifyEmail:async({userId:O,secret:F},j={})=>await Oe(`${o}/active/${O}/${F}`,e,j,{method:"PUT"}),getVerifyEmailStatusURL:O=>`${o}/verify-email-status/${String(O)}`,changePassword:async(O,F={})=>await Oe(`${o}/password`,e,F,{method:"PUT",body:O}),createSession:async(O,F={})=>await Oe(`${o}/session`,e,F,{method:"POST",body:O}),getSession:async(O,F={})=>await Oe(`${n}/session`,e,F,{params:{session_token:O}}),getCSRFToken:async(O={})=>await Oe(`${n}/csrf-token`,e,O),getOAuth2AccessToken:async(O={})=>await Oe(`${n}/oauth2/token`,e,O,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:{grant_type:"client_credentials",client_id:r,client_secret:a}})}},tF=(e={},t=Qe)=>{const{backendURL:n}=(t==null?void 0:t.editor)??{};if(!n)throw new Error("Backend URL is not defined in the Intlayer configuration.");const r=`${n}/api/dictionary`;return{getDictionaries:async(E,g={})=>await Oe(r,e,g,{params:E}),getDictionariesKeys:async(E={})=>await Oe(`${r}/keys`,e,E),getDictionary:async(E,g,_={})=>await Oe(`${r}/${E}`,e,_,{params:g?{version:g.toString()}:void 0}),pushDictionaries:async(E,g={})=>await Oe(`${r}`,e,g,{method:"PATCH",body:{dictionaries:E}}),addDictionary:async(E,g={})=>await Oe(`${r}`,e,g,{method:"POST",body:E}),updateDictionary:async(E,g,_={})=>await Oe(`${r}/${E}`,e,_,{method:"PUT",body:g}),deleteDictionary:async(E,g={})=>await Oe(`${r}`,e,g,{method:"DELETE",body:{id:E}})}},nF=(e={},t=Qe)=>{const{editorURL:n}=(t==null?void 0:t.editor)??{};if(!n)throw new Error("Editor URL is not defined in the Intlayer configuration.");const r=`${n}/api`;return{getConfiguration:async(l={})=>(await Oe(`${r}/config`,e,l)).data,writeDictionary:async(l,d={})=>{await Oe(`${r}/dictionary`,e,d,{method:"POST",body:{dictionary:l}})}}},rF=(e={},t=Qe)=>{const{backendURL:n}=(t==null?void 0:t.editor)??{};if(!n)throw new Error("Backend URL is not defined in the Intlayer configuration--.");const r=`${n}/api/organization`;return{getOrganizations:async(_,S={})=>await Oe(r,e,S,{params:_}),getOrganization:async(_,S={})=>await Oe(`${r}/${String(_)}`,e,S),addOrganization:async(_,S={})=>await Oe(r,e,S,{method:"POST",body:_}),addOrganizationMember:async(_,S={})=>Oe(`${r}/member`,e,S,{method:"POST",body:_}),updateOrganization:async(_,S={})=>Oe(r,e,S,{method:"PUT",body:_}),updateOrganizationMembers:async(_,S={})=>Oe(`${r}/members`,e,S,{method:"PUT",body:_}),deleteOrganization:async(_={})=>await Oe(r,e,_,{method:"DELETE"}),selectOrganization:async(_,S={})=>await Oe(`${r}/${String(_)}`,e,S,{method:"PUT"}),unselectOrganization:async(_={})=>await Oe(`${r}/logout`,e,_,{method:"POST"})}},uF=(e={},t=Qe)=>{const{backendURL:n}=(t==null?void 0:t.editor)??{};if(!n)throw new Error("Backend URL is not defined in the Intlayer configuration.");const r=`${n}/api/project`;return{getProjects:async(y,v={})=>await Oe(r,e,v,{params:y}),addProject:async(y,v={})=>await Oe(`${r}`,e,v,{method:"POST",body:y}),updateProject:async(y,v={})=>await Oe(`${r}`,e,v,{method:"PUT",body:y}),updateProjectMembers:async(y,v={})=>await Oe(`${r}/members`,e,v,{method:"PUT",body:y}),pushProjectConfiguration:async(y,v={})=>await Oe(`${r}/configuration`,e,v,{method:"PUT",body:y}),deleteProject:async(y={})=>await Oe(`${r}`,e,y,{method:"DELETE"}),selectProject:async(y,v={})=>await Oe(`${r}/${String(y)}`,e,v,{method:"PUT"}),unselectProject:async(y={})=>await Oe(`${r}/logout`,e,y,{method:"POST"}),addNewAccessKey:async(y,v={})=>await Oe(`${r}/access_key`,e,v,{method:"POST",body:y}),deleteAccessKey:async(y,v={})=>await Oe(`${r}/access_key`,e,v,{method:"DELETE",body:{clientId:y}}),refreshAccessKey:async(y,v={})=>await Oe(`${r}/access_key`,e,v,{method:"PATCH",body:{clientId:y}})}},iF=(e={},t=Qe)=>{const{backendURL:n}=t.editor;if(!n)throw new Error("Backend URL is not defined in the Intlayer configuration.");const r=`${n}/api/stripe`;return{getPricing:async(d,f={})=>await Oe(`${r}/pricing`,e,f,{method:"POST",body:d}),getSubscription:async(d,f={})=>await Oe(`${r}/create-subscription`,e,f,{method:"POST",body:d}),cancelSubscription:async(d={})=>await Oe(`${r}/cancel-subscription`,e,d,{method:"POST"})}},aF=(e={},t=Qe)=>{const{backendURL:n}=(t==null?void 0:t.editor)??{};if(!n)throw new Error("Backend URL is not defined in the Intlayer configuration.");const r=`${n}/api/tag`;return{getTags:async(f,A={})=>await Oe(r,e,A,{params:f}),addTag:async(f,A={})=>await Oe(`${r}`,e,A,{method:"POST",body:f}),updateTag:async(f,A,m={})=>await Oe(`${r}/${f}`,e,m,{method:"PUT",body:A}),deleteTag:async(f,A={})=>await Oe(`${r}/${f}`,e,A,{method:"DELETE"})}},sF=(e={},t=Qe)=>{const{backendURL:n}=(t==null?void 0:t.editor)??{};if(!n)throw new Error("Backend URL is not defined in the Intlayer configuration.");const r=`${n}/api/user`;return{createUser:async(E,g={})=>await Oe(`${r}/`,e,g,{method:"POST",body:E}),getUsers:async(E,g={})=>await Oe(r,e,g,{params:E}),getUserById:async(E,g={})=>await Oe(`${r}/${E}`,e,g),getUserByAccount:async(E,g,_={})=>await Oe(`${r}/account/${g}/${E}`,e,_),getUserByEmail:async(E,g={})=>await Oe(`${r}/email/${E}`,e,g),updateUser:async(E,g={})=>await Oe(`${r}`,e,g,{method:"PUT",body:E}),deleteUser:async(E,g={})=>await Oe(`${r}/${E}`,e,g,{method:"DELETE"})}},Df=(e={},t)=>({organization:rF(e,t),project:uF(e,t),user:sF(e,t),auth:eF(e,t),dictionary:tF(e,t),stripe:iF(e,t),ai:JO(e,t),tag:aF(e,t),editor:nF(e,t)}),OS=(e,t,n)=>{let r=e,a=null,o=[];if(t.length===0)return n;for(let l=0;l<t.length;l++){const d=t[l];if(a=r,d.type===U.Object?(o=[d.key],(!r[d.key]||typeof r[d.key]!="object")&&(r[d.key]={}),r=r[d.key]):d.type===U.Array?(o=[d.key],(!r[d.key]||typeof r[d.key]!="object")&&(r[d.key]={}),r=r[d.key]):d.type===U.Translation?(o=[U.Translation,d.key],(!r[U.Translation]||typeof r[U.Translation]!="object")&&(r[U.Translation]={}),(!r[U.Translation][d.key]||typeof r[U.Translation][d.key]!="object")&&(r[U.Translation][d.key]={}),r=r[U.Translation][d.key]):d.type===U.Enumeration?(o=[U.Enumeration,d.key],(!r[U.Enumeration]||typeof r[U.Enumeration]!="object")&&(r[U.Enumeration]={}),(!r[U.Enumeration][d.key]||typeof r[U.Enumeration][d.key]!="object")&&(r[U.Enumeration][d.key]={}),r=r[U.Enumeration][d.key]):d.type===U.Condition?(o=[U.Condition,d.key],(!r[U.Condition]||typeof r[U.Condition]!="object")&&(r[U.Condition]={}),(!r[U.Condition][d.key]||typeof r[U.Condition][d.key]!="object")&&(r[U.Condition][d.key]={}),r=r[U.Condition][d.key]):d.type===U.Markdown?(o=[U.Markdown],(!r[U.Markdown]||typeof r[U.Markdown]!="object")&&(r[U.Markdown]=""),r=r[U.Markdown]):d.type===U.Nested&&(o=[U.Nested],(!r[U.Nested]||typeof r[U.Nested]!="object")&&(r[U.Nested]={}),r=r[U.Nested]),l===t.length-1&&a&&o.length>0){let f=a;for(const A of o.slice(0,-1))f=f[A];typeof n>"u"?delete f[o[o.length-1]]:f[o[o.length-1]]=n}}return e},Gr=(e,t)=>{let n=structuredClone(e);for(const r of t)r.type===U.Object||r.type===U.Array?n=n==null?void 0:n[r.key]:r.type===U.Translation?n=n==null?void 0:n[U.Translation][r.key]:r.type===U.Enumeration?n=n==null?void 0:n[U.Enumeration][r.key]:r.type===U.Condition?n=n==null?void 0:n[U.Condition]:r.type===U.Markdown&&(n=n==null?void 0:n[U.Markdown]);return n},sv=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===U.Translation||t.nodeType===U.Enumeration||t.nodeType===U.Condition){const r=Object.keys(n)[0];return n[r]}return t.nodeType===U.Nested?void 0:n}return!e||typeof e!="object"?e:Array.isArray(e)?e[0]:e},oF=(e,t,n)=>{let r=e,a=null,o=null;for(const l of n)a=r,l.type===U.Object||l.type===U.Array?(o=l.key,r=r[l.key]):l.type===U.Translation?(o=U.Translation,r=r[U.Translation][l.key]):l.type===U.Enumeration?(o=U.Enumeration,r=r[U.Enumeration][l.key]):l.type===U.Condition?(o=U.Condition,r=r[U.Condition]):l.type===U.Markdown?(o=U.Markdown,r=r[U.Markdown]):l.type===U.ReactNode&&(o=U.ReactNode,r=r[U.ReactNode]);if(a&&o!==null)if(Array.isArray(a))a[o]=r;else{const l={};for(const d of Object.keys(a))d===o&&typeof t<"u"?l[t]=r:l[d]=a[d];Object.keys(a).forEach(d=>delete a[d]),Object.assign(a,l)}return e},lF=e=>typeof e=="object"&&typeof(e==null?void 0:e.key)<"u"&&typeof(e==null?void 0:e.props)<"u",Ec=e=>typeof e=="string"?U.Text:(e==null?void 0:e.nodeType)===U.Translation?U.Translation:(e==null?void 0:e.nodeType)===U.Enumeration?U.Enumeration:(e==null?void 0:e.nodeType)===U.Condition?U.Condition:(e==null?void 0:e.nodeType)===U.Markdown?U.Markdown:(e==null?void 0:e.nodeType)===U.Nested?U.Nested:Array.isArray(e)?U.Array:lF(e)?U.ReactNode:typeof e=="number"?U.Number:typeof e=="boolean"?U.Boolean:e&&typeof e=="object"?U.Object:U.Unknown,cl=(e,t,n)=>{switch(e){case U.Translation:return{nodeType:U.Translation,[U.Translation]:Object.assign({},...t.map(r=>({[r]:n??""})))};case U.Enumeration:return{nodeType:U.Enumeration,[U.Enumeration]:{1:n??""}};case U.Condition:return{nodeType:U.Condition,[U.Condition]:{true:n??"",false:n??""}};case U.Nested:return{nodeType:U.Nested,[U.Nested]:{dictionaryKey:""}};case U.Markdown:return{nodeType:U.Markdown,[U.Markdown]:n??""};case U.Object:return{newKey:n??""};case U.Array:return[n??""];case U.Text:return n??"";case U.Number:return n??0;case U.Boolean:return n??!0;default:return n??""}},hr=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,a=r[r.nodeType];return r.nodeType===U.Translation||r.nodeType===U.Enumeration||r.nodeType===U.Condition?hr(a):r.nodeType===U.Nested?r:r.nodeType===U.Markdown?hr(r):a}if(!e||typeof e!="object")return e;if(Array.isArray(e))return e.map(hr);const t=Object.entries(e).map(([r,a])=>[r,hr(a)]);return Object.fromEntries(t)},gc=(e,t)=>e.every((n,r)=>t[r]&&t[r].key===n.key&&t[r].type===n.type),ov=e=>/^[a-zA-Z][a-zA-Z\d+\-.]*:/.test(e);var u=(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))(u||{});const on={[u.ENGLISH]:"",[u.FRENCH]:"",[u.SPANISH]:"",[u.PORTUGUESE]:"",[u.GERMAN]:"",[u.AFRIKAANS]:"",[u.ARABIC]:"",[u.AZERI_LATIN]:"",[u.BELARUSIAN]:"",[u.BULGARIAN]:"",[u.BOSNIAN]:"",[u.CATALAN]:"",[u.CZECH]:"",[u.WELSH]:"",[u.DANISH]:"",[u.DIVEHI]:"",[u.GREEK]:"",[u.ESPERANTO]:"",[u.ESTONIAN]:"",[u.BASQUE]:"",[u.FARSI]:"",[u.FINNISH]:"",[u.FAROESE]:"",[u.GALICIAN]:"",[u.GUJARATI]:"",[u.HEBREW]:"",[u.HINDI]:"",[u.CROATIAN]:"",[u.HUNGARIAN]:"",[u.ARMENIAN]:"",[u.INDONESIAN]:"",[u.ICELANDIC]:"",[u.ITALIAN]:"",[u.JAPANESE]:"",[u.GEORGIAN]:"",[u.KAZAKH]:"",[u.KANNADA]:"",[u.KOREAN]:"",[u.KONKANI]:"",[u.KYRGYZ]:"",[u.LITHUANIAN]:"",[u.LATVIAN]:"",[u.MAORI]:"",[u.FYRO_MACEDONIAN]:"",[u.MONGOLIAN]:"",[u.MARATHI]:"",[u.MALAY]:"",[u.MALTESE]:"",[u.NORWEGIAN_BOKMAL]:"",[u.DUTCH]:"",[u.NORTHERN_SOTHO]:"",[u.PUNJABI]:"",[u.POLISH]:"",[u.PASHTO]:"",[u.QUECHUA]:"",[u.ROMANIAN]:"",[u.RUSSIAN]:"",[u.SANSKRIT]:"",[u.SAMI_NORTHERN]:"",[u.SLOVAK]:"",[u.SLOVENIAN]:"",[u.ALBANIAN]:"",[u.SERBIAN_LATIN]:"",[u.SWEDISH]:"",[u.SWEDISH_FINLAND]:"",[u.SWEDISH_SWEDEN]:"",[u.SWAHILI]:"",[u.SYRIAC]:"",[u.TAMIL]:"",[u.TELUGU]:"",[u.THAI]:"",[u.TAGALOG]:"",[u.TSWANA]:"",[u.TURKISH]:"",[u.TATAR]:"",[u.UKRAINIAN]:"",[u.URDU]:"",[u.UZBEK_LATIN]:"",[u.VIETNAMESE]:"",[u.XHOSA]:"",[u.CHINESE]:"",[u.CHINESE_SIMPLIFIED]:"",[u.CHINESE_SIMPLIFIED_CHINA]:"",[u.CHINESE_TRADITIONAL]:"",[u.ZULU]:"",[u.AFRIKAANS_SOUTH_AFRICA]:"",[u.ARABIC_UNITED_ARAB_EMIRATES]:"",[u.ARABIC_BAHRAIN]:"",[u.ARABIC_ALGERIA]:"",[u.ARABIC_EGYPT]:"",[u.ARABIC_IRAQ]:"",[u.ARABIC_JORDAN]:"",[u.ARABIC_KUWAIT]:"",[u.ARABIC_LEBANON]:"",[u.ARABIC_LIBYA]:"",[u.ARABIC_MOROCCO]:"",[u.ARABIC_OMAN]:"",[u.ARABIC_QATAR]:"",[u.ARABIC_SAUDI_ARABIA]:"",[u.ARABIC_SYRIA]:"",[u.ARABIC_TUNISIA]:"",[u.ARABIC_YEMEN]:"",[u.AZERI_LATIN_AZERBAIJAN]:"",[u.BELARUSIAN_BELARUS]:"",[u.BULGARIAN_BULGARIA]:"",[u.BOSNIAN_BOSNIA_AND_HERZEGOVINA]:"",[u.CATALAN_SPAIN]:"",[u.CZECH_CZECH_REPUBLIC]:"",[u.WELSH_UNITED_KINGDOM]:"",[u.DANISH_DENMARK]:"",[u.GERMAN_AUSTRIA]:"",[u.GERMAN_SWITZERLAND]:"",[u.GERMAN_GERMANY]:"",[u.GERMAN_LIECHTENSTEIN]:"",[u.GERMAN_LUXEMBOURG]:"",[u.DIVEHI_MALDIVES]:"",[u.GREEK_GREECE]:"",[u.ENGLISH_AUSTRALIA]:"",[u.ENGLISH_BELIZE]:"",[u.ENGLISH_CANADA]:"",[u.ENGLISH_CARIBBEAN]:"",[u.ENGLISH_UNITED_KINGDOM]:"",[u.ENGLISH_IRELAND]:"",[u.ENGLISH_JAMAICA]:"",[u.ENGLISH_NEW_ZEALAND]:"",[u.ENGLISH_PHILIPPINES]:"",[u.ENGLISH_TRINIDAD_AND_TOBAGO]:"",[u.ENGLISH_UNITED_STATES]:"",[u.ENGLISH_SOUTH_AFRICA]:"",[u.ENGLISH_ZIMBABWE]:"",[u.SPANISH_ARGENTINA]:"",[u.SPANISH_BOLIVIA]:"",[u.SPANISH_CHILE]:"",[u.SPANISH_COLOMBIA]:"",[u.SPANISH_COSTA_RICA]:"",[u.SPANISH_DOMINICAN_REPUBLIC]:"",[u.SPANISH_ECUADOR]:"",[u.SPANISH_SPAIN]:"",[u.SPANISH_GUATEMALA]:"",[u.SPANISH_HONDURAS]:"",[u.SPANISH_MEXICO]:"",[u.SPANISH_NICARAGUA]:"",[u.SPANISH_PANAMA]:"",[u.SPANISH_PERU]:"",[u.SPANISH_PUERTO_RICO]:"",[u.SPANISH_PARAGUAY]:"",[u.SPANISH_EL_SALVADOR]:"",[u.SPANISH_URUGUAY]:"",[u.SPANISH_VENEZUELA]:"",[u.ESTONIAN_ESTONIA]:"",[u.BASQUE_SPAIN]:"",[u.FARSI_IRAN]:"",[u.FINNISH_FINLAND]:"",[u.FAROESE_FAROE_ISLANDS]:"",[u.FRENCH_BELGIUM]:"",[u.FRENCH_CANADA]:"",[u.FRENCH_SWITZERLAND]:"",[u.FRENCH_FRANCE]:"",[u.FRENCH_LUXEMBOURG]:"",[u.FRENCH_PRINCIPALITY_OF_MONACO]:"",[u.GALICIAN_SPAIN]:"",[u.GUJARATI_INDIA]:"",[u.HEBREW_ISRAEL]:"",[u.HINDI_INDIA]:"",[u.CROATIAN_BOSNIA_AND_HERZEGOVINA]:"",[u.CROATIAN_CROATIA]:"",[u.HUNGARIAN_HUNGARY]:"",[u.ARMENIAN_ARMENIA]:"",[u.INDONESIAN_INDONESIA]:"",[u.ICELANDIC_ICELAND]:"",[u.ITALIAN_SWITZERLAND]:"",[u.ITALIAN_ITALY]:"",[u.JAPANESE_JAPAN]:"",[u.GEORGIAN_GEORGIA]:"",[u.KAZAKH_KAZAKHSTAN]:"",[u.KANNADA_INDIA]:"",[u.KOREAN_KOREA]:"",[u.KONKANI_INDIA]:"",[u.KYRGYZ_KYRGYZSTAN]:"",[u.LITHUANIAN_LITHUANIA]:"",[u.LATVIAN_LATVIA]:"",[u.MAORI_NEW_ZEALAND]:"",[u.FYRO_MACEDONIAN_MACEDONIA]:"",[u.MONGOLIAN_MONGOLIA]:"",[u.MARATHI_INDIA]:"",[u.MALAY_BRUNEI_DARUSSALAM]:"",[u.MALAY_MALAYSIA]:"",[u.MALTESE_MALTA]:"",[u.NORWEGIAN_BOKMAL_NORWAY]:"",[u.DUTCH_BELGIUM]:"",[u.DUTCH_NETHERLANDS]:"",[u.NORWEGIAN_NYNORSK_NORWAY]:"",[u.NORTHERN_SOTHO_SOUTH_AFRICA]:"",[u.PUNJABI_INDIA]:"",[u.POLISH_POLAND]:"",[u.PASHTO_AFGHANISTAN]:"",[u.PORTUGUESE_BRAZIL]:"",[u.PORTUGUESE_PORTUGAL]:"",[u.QUECHUA_BOLIVIA]:"",[u.QUECHUA_ECUADOR]:"",[u.QUECHUA_PERU]:"",[u.ROMANIAN_ROMANIA]:"",[u.RUSSIAN_RUSSIA]:"",[u.SANSKRIT_INDIA]:"",[u.SAMI_NORTHERN_FINLAND]:"",[u.SAMI_NORTHERN_NORWAY]:"",[u.SAMI_NORTHERN_SWEDEN]:"",[u.SLOVAK_SLOVAKIA]:"",[u.SLOVENIAN_SLOVENIA]:"",[u.ALBANIAN_ALBANIA]:"",[u.SERBIAN_LATIN_BOSNIA_AND_HERZEGOVINA]:"",[u.SERBIAN_LATIN_SERBIA_AND_MONTENEGRO]:"",[u.SWAHILI_KENYA]:"",[u.SYRIAC_SYRIA]:"",[u.TAMIL_INDIA]:"",[u.TELUGU_INDIA]:"",[u.THAI_THAILAND]:"",[u.TAGALOG_PHILIPPINES]:"",[u.TSWANA_SOUTH_AFRICA]:"",[u.TURKISH_TURKEY]:"",[u.TATAR_RUSSIA]:"",[u.TSOGA]:"",[u.UKRAINIAN_UKRAINE]:"",[u.URDU_ISLAMIC_REPUBLIC_OF_PAKISTAN]:"",[u.UZBEK_LATIN_UZBEKISTAN]:"",[u.VIETNAMESE_VIET_NAM]:"",[u.XHOSA_SOUTH_AFRICA]:"",[u.CHINESE_HONG_KONG]:"",[u.CHINESE_MACAU]:"",[u.CHINESE_SINGAPORE]:"",[u.ZULU_SOUTH_AFRICA]:""},ms={[u.ENGLISH]:"Englisch",[u.FRENCH]:"Französisch",[u.SPANISH]:"Spanisch",[u.PORTUGUESE]:"Portugiesisch",[u.GERMAN]:"Deutsch",[u.AFRIKAANS]:"Afrikaans",[u.ARABIC]:"Arabisch",[u.AZERI_LATIN]:"Aserbaidschanisch Latein",[u.BELARUSIAN]:"Weißrussisch",[u.BULGARIAN]:"Bulgarisch",[u.BOSNIAN]:"Bosnisch",[u.CATALAN]:"Katalanisch",[u.CZECH]:"Tschechisch",[u.WELSH]:"Walisisch",[u.DANISH]:"Dänisch",[u.DIVEHI]:"Divehi",[u.GREEK]:"Griechisch",[u.ESPERANTO]:"Esperanto",[u.ESTONIAN]:"Estnisch",[u.BASQUE]:"Baskisch",[u.FARSI]:"Farsi",[u.FINNISH]:"Finnisch",[u.FAROESE]:"Färöisch",[u.GALICIAN]:"Galicisch",[u.GUJARATI]:"Gujarati",[u.HEBREW]:"Hebräisch",[u.HINDI]:"Hindi",[u.CROATIAN]:"Kroatisch",[u.HUNGARIAN]:"Ungarisch",[u.ARMENIAN]:"Armenisch",[u.INDONESIAN]:"Indonesisch",[u.ICELANDIC]:"Isländisch",[u.ITALIAN]:"Italienisch",[u.JAPANESE]:"Japanisch",[u.GEORGIAN]:"Georgisch",[u.KAZAKH]:"Kasachisch",[u.KANNADA]:"Kannada",[u.KOREAN]:"Koreanisch",[u.KONKANI]:"Konkani",[u.KYRGYZ]:"Kirgisisch",[u.LITHUANIAN]:"Litauisch",[u.LATVIAN]:"Lettisch",[u.MAORI]:"Maori",[u.FYRO_MACEDONIAN]:"FYRO Mazedonisch",[u.MONGOLIAN]:"Mongolisch",[u.MARATHI]:"Marathi",[u.MALAY]:"Malaiisch",[u.MALTESE]:"Maltisch",[u.NORWEGIAN_BOKMAL]:"Norwegisch Bokmål",[u.DUTCH]:"Niederländisch",[u.NORTHERN_SOTHO]:"Sotho (Nord)",[u.PUNJABI]:"Punjabi",[u.POLISH]:"Polnisch",[u.PASHTO]:"Paschtu",[u.QUECHUA]:"Quechua",[u.ROMANIAN]:"Rumänisch",[u.RUSSIAN]:"Russisch",[u.SANSKRIT]:"Sanskrit",[u.SAMI_NORTHERN]:"Sami (Nord)",[u.SLOVAK]:"Slowakisch",[u.SLOVENIAN]:"Slowenisch",[u.ALBANIAN]:"Albanisch",[u.SERBIAN_LATIN]:"Serbisch Latein",[u.SWEDISH]:"Schwedisch",[u.SWEDISH_FINLAND]:"Schwedisch (Finnland)",[u.SWEDISH_SWEDEN]:"Schwedisch (Schweden)",[u.SWAHILI]:"Suaheli",[u.SYRIAC]:"Syrisch",[u.TAMIL]:"Tamilisch",[u.TELUGU]:"Telugu",[u.THAI]:"Thailändisch",[u.TAGALOG]:"Tagalog",[u.TSWANA]:"Tswana",[u.TURKISH]:"Türkisch",[u.TATAR]:"Tatarisch",[u.UKRAINIAN]:"Ukrainisch",[u.URDU]:"Urdu",[u.UZBEK_LATIN]:"Usbekisch Latein",[u.VIETNAMESE]:"Vietnamesisch",[u.XHOSA]:"Xhosa",[u.CHINESE]:"Chinesisch",[u.CHINESE_SIMPLIFIED]:"Chinesisch (Vereinfacht)",[u.CHINESE_SIMPLIFIED_CHINA]:"Chinesisch (Vereinfacht, China)",[u.CHINESE_TRADITIONAL]:"Chinesisch (Traditionell)",[u.ZULU]:"Zulu",[u.AFRIKAANS_SOUTH_AFRICA]:"Afrikaans (Südafrika)",[u.ARABIC_UNITED_ARAB_EMIRATES]:"Arabisch (Vereinigte Arabische Emirate)",[u.ARABIC_BAHRAIN]:"Arabisch (Bahrain)",[u.ARABIC_ALGERIA]:"Arabisch (Algerien)",[u.ARABIC_EGYPT]:"Arabisch (Ägypten)",[u.ARABIC_IRAQ]:"Arabisch (Irak)",[u.ARABIC_JORDAN]:"Arabisch (Jordanien)",[u.ARABIC_KUWAIT]:"Arabisch (Kuwait)",[u.ARABIC_LEBANON]:"Arabisch (Libanon)",[u.ARABIC_LIBYA]:"Arabisch (Libyen)",[u.ARABIC_MOROCCO]:"Arabisch (Marokko)",[u.ARABIC_OMAN]:"Arabisch (Oman)",[u.ARABIC_QATAR]:"Arabisch (Katar)",[u.ARABIC_SAUDI_ARABIA]:"Arabisch (Saudi-Arabien)",[u.ARABIC_SYRIA]:"Arabisch (Syrien)",[u.ARABIC_TUNISIA]:"Arabisch (Tunesien)",[u.ARABIC_YEMEN]:"Arabisch (Jemen)",[u.AZERI_LATIN_AZERBAIJAN]:"Aserbaidschanisch Latein (Aserbaidschan)",[u.BELARUSIAN_BELARUS]:"Weißrussisch (Weißrussland)",[u.BULGARIAN_BULGARIA]:"Bulgarisch (Bulgarien)",[u.BOSNIAN_BOSNIA_AND_HERZEGOVINA]:"Bosnisch (Bosnien und Herzegowina)",[u.CATALAN_SPAIN]:"Katalanisch (Spanien)",[u.CZECH_CZECH_REPUBLIC]:"Tschechisch (Tschechische Republik)",[u.WELSH_UNITED_KINGDOM]:"Walisisch (Vereinigtes Königreich)",[u.DANISH_DENMARK]:"Dänisch (Dänemark)",[u.GERMAN_AUSTRIA]:"Deutsch (Österreich)",[u.GERMAN_SWITZERLAND]:"Deutsch (Schweiz)",[u.GERMAN_GERMANY]:"Deutsch (Deutschland)",[u.GERMAN_LIECHTENSTEIN]:"Deutsch (Liechtenstein)",[u.GERMAN_LUXEMBOURG]:"Deutsch (Luxemburg)",[u.DIVEHI_MALDIVES]:"Divehi (Malediven)",[u.GREEK_GREECE]:"Griechisch (Griechenland)",[u.ENGLISH_AUSTRALIA]:"Englisch (Australien)",[u.ENGLISH_BELIZE]:"Englisch (Belize)",[u.ENGLISH_CANADA]:"Englisch (Kanada)",[u.ENGLISH_CARIBBEAN]:"Englisch (Karibik)",[u.ENGLISH_UNITED_KINGDOM]:"Englisch (Vereinigtes Königreich)",[u.ENGLISH_IRELAND]:"Englisch (Irland)",[u.ENGLISH_JAMAICA]:"Englisch (Jamaika)",[u.ENGLISH_NEW_ZEALAND]:"Englisch (Neuseeland)",[u.ENGLISH_PHILIPPINES]:"Englisch (Philippinen)",[u.ENGLISH_TRINIDAD_AND_TOBAGO]:"Englisch (Trinidad und Tobago)",[u.ENGLISH_UNITED_STATES]:"Englisch (Vereinigte Staaten)",[u.ENGLISH_SOUTH_AFRICA]:"Englisch (Südafrika)",[u.ENGLISH_ZIMBABWE]:"Englisch (Simbabwe)",[u.SPANISH_ARGENTINA]:"Spanisch (Argentinien)",[u.SPANISH_BOLIVIA]:"Spanisch (Bolivien)",[u.SPANISH_CHILE]:"Spanisch (Chile)",[u.SPANISH_COLOMBIA]:"Spanisch (Kolumbien)",[u.SPANISH_COSTA_RICA]:"Spanisch (Costa Rica)",[u.SPANISH_DOMINICAN_REPUBLIC]:"Spanisch (Dominikanische Republik)",[u.SPANISH_ECUADOR]:"Spanisch (Ecuador)",[u.SPANISH_SPAIN]:"Spanisch (Spanien)",[u.SPANISH_GUATEMALA]:"Spanisch (Guatemala)",[u.SPANISH_HONDURAS]:"Spanisch (Honduras)",[u.SPANISH_MEXICO]:"Spanisch (Mexiko)",[u.SPANISH_NICARAGUA]:"Spanisch (Nicaragua)",[u.SPANISH_PANAMA]:"Spanisch (Panama)",[u.SPANISH_PERU]:"Spanisch (Peru)",[u.SPANISH_PUERTO_RICO]:"Spanisch (Puerto Rico)",[u.SPANISH_PARAGUAY]:"Spanisch (Paraguay)",[u.SPANISH_EL_SALVADOR]:"Spanisch (El Salvador)",[u.SPANISH_URUGUAY]:"Spanisch (Uruguay)",[u.SPANISH_VENEZUELA]:"Spanisch (Venezuela)",[u.ESTONIAN_ESTONIA]:"Estnisch (Estland)",[u.BASQUE_SPAIN]:"Baskisch (Spanien)",[u.FARSI_IRAN]:"Farsi (Iran)",[u.FINNISH_FINLAND]:"Finnisch (Finnland)",[u.FAROESE_FAROE_ISLANDS]:"Färöisch (Färöer)",[u.FRENCH_BELGIUM]:"Französisch (Belgien)",[u.FRENCH_CANADA]:"Französisch (Kanada)",[u.FRENCH_SWITZERLAND]:"Französisch (Schweiz)",[u.FRENCH_FRANCE]:"Französisch (Frankreich)",[u.FRENCH_LUXEMBOURG]:"Französisch (Luxemburg)",[u.FRENCH_PRINCIPALITY_OF_MONACO]:"Französisch (Fürstentum Monaco)",[u.GALICIAN_SPAIN]:"Galicisch (Spanien)",[u.GUJARATI_INDIA]:"Gujarati (Indien)",[u.HEBREW_ISRAEL]:"Hebräisch (Israel)",[u.HINDI_INDIA]:"Hindi (Indien)",[u.CROATIAN_BOSNIA_AND_HERZEGOVINA]:"Kroatisch (Bosnien und Herzegowina)",[u.CROATIAN_CROATIA]:"Kroatisch (Kroatien)",[u.HUNGARIAN_HUNGARY]:"Ungarisch (Ungarn)",[u.ARMENIAN_ARMENIA]:"Armenisch (Armenien)",[u.INDONESIAN_INDONESIA]:"Indonesisch (Indonesien)",[u.ICELANDIC_ICELAND]:"Isländisch (Island)",[u.ITALIAN_SWITZERLAND]:"Italienisch (Schweiz)",[u.ITALIAN_ITALY]:"Italienisch (Italien)",[u.JAPANESE_JAPAN]:"Japanisch (Japan)",[u.GEORGIAN_GEORGIA]:"Georgisch (Georgien)",[u.KAZAKH_KAZAKHSTAN]:"Kasachisch (Kasachstan)",[u.KANNADA_INDIA]:"Kannada (Indien)",[u.KOREAN_KOREA]:"Koreanisch (Korea)",[u.KONKANI_INDIA]:"Konkani (Indien)",[u.KYRGYZ_KYRGYZSTAN]:"Kirgisisch (Kirgisistan)",[u.LITHUANIAN_LITHUANIA]:"Litauisch (Litauen)",[u.LATVIAN_LATVIA]:"Lettisch (Lettland)",[u.MAORI_NEW_ZEALAND]:"Maori (Neuseeland)",[u.FYRO_MACEDONIAN_MACEDONIA]:"FYRO Mazedonisch (Mazedonien)",[u.MONGOLIAN_MONGOLIA]:"Mongolisch (Mongolei)",[u.MARATHI_INDIA]:"Marathi (Indien)",[u.MALAY_BRUNEI_DARUSSALAM]:"Malaiisch (Brunei Darussalam)",[u.MALAY_MALAYSIA]:"Malaiisch (Malaysia)",[u.MALTESE_MALTA]:"Maltisch (Malta)",[u.NORWEGIAN_BOKMAL_NORWAY]:"Norwegisch Bokmål (Norwegen)",[u.DUTCH_BELGIUM]:"Niederländisch (Belgien)",[u.DUTCH_NETHERLANDS]:"Niederländisch (Niederlande)",[u.NORWEGIAN_NYNORSK_NORWAY]:"Norwegisch Nynorsk (Norwegen)",[u.NORTHERN_SOTHO_SOUTH_AFRICA]:"Sotho (Nord) (Südafrika)",[u.PUNJABI_INDIA]:"Punjabi (Indien)",[u.POLISH_POLAND]:"Polnisch (Polen)",[u.PASHTO_AFGHANISTAN]:"Paschtu (Afghanistan)",[u.PORTUGUESE_BRAZIL]:"Portugiesisch (Brasilien)",[u.PORTUGUESE_PORTUGAL]:"Portugiesisch (Portugal)",[u.QUECHUA_BOLIVIA]:"Quechua (Bolivien)",[u.QUECHUA_ECUADOR]:"Quechua (Ecuador)",[u.QUECHUA_PERU]:"Quechua (Peru)",[u.ROMANIAN_ROMANIA]:"Rumänisch (Rumänien)",[u.RUSSIAN_RUSSIA]:"Russisch (Russland)",[u.SANSKRIT_INDIA]:"Sanskrit (Indien)",[u.SAMI_NORTHERN_FINLAND]:"Sami (Nord) (Finnland)",[u.SAMI_NORTHERN_NORWAY]:"Sami (Nord) (Norwegen)",[u.SAMI_NORTHERN_SWEDEN]:"Sami (Nord) (Schweden)",[u.SLOVAK_SLOVAKIA]:"Slowakisch (Slowakei)",[u.SLOVENIAN_SLOVENIA]:"Slowenisch (Slowenien)",[u.ALBANIAN_ALBANIA]:"Albanisch (Albanien)",[u.SERBIAN_LATIN_BOSNIA_AND_HERZEGOVINA]:"Serbisch Latein (Bosnien und Herzegowina)",[u.SERBIAN_LATIN_SERBIA_AND_MONTENEGRO]:"Serbisch Latein (Serbien und Montenegro)",[u.SWAHILI_KENYA]:"Suaheli (Kenia)",[u.SYRIAC_SYRIA]:"Syrisch (Syrien)",[u.TAMIL_INDIA]:"Tamilisch (Indien)",[u.TELUGU_INDIA]:"Telugu (Indien)",[u.THAI_THAILAND]:"Thailändisch (Thailand)",[u.TAGALOG_PHILIPPINES]:"Tagalog (Philippinen)",[u.TSWANA_SOUTH_AFRICA]:"Tswana (Südafrika)",[u.TURKISH_TURKEY]:"Türkisch (Türkei)",[u.TATAR_RUSSIA]:"Tatarisch (Russland)",[u.TSOGA]:"Tsoga",[u.UKRAINIAN_UKRAINE]:"Ukrainisch (Ukraine)",[u.URDU_ISLAMIC_REPUBLIC_OF_PAKISTAN]:"Urdu (Islamische Republik Pakistan)",[u.UZBEK_LATIN_UZBEKISTAN]:"Usbekisch Latein (Usbekistan)",[u.VIETNAMESE_VIET_NAM]:"Vietnamesisch (Vietnamesisches Reich)",[u.XHOSA_SOUTH_AFRICA]:"Xhosa (Südafrika)",[u.CHINESE_HONG_KONG]:"Chinesisch (Hongkong)",[u.CHINESE_MACAU]:"Chinesisch (Macao)",[u.CHINESE_SINGAPORE]:"Chinesisch (Singapur)",[u.ZULU_SOUTH_AFRICA]:"Zulu (Südafrika)"},xn={[u.ENGLISH]:"English",[u.FRENCH]:"French",[u.SPANISH]:"Spanish",[u.PORTUGUESE]:"Portuguese",[u.GERMAN]:"German",[u.AFRIKAANS]:"Afrikaans",[u.ARABIC]:"Arabic",[u.AZERI_LATIN]:"Azeri Latin",[u.BELARUSIAN]:"Belarusian",[u.BULGARIAN]:"Bulgarian",[u.BOSNIAN]:"Bosnian",[u.CATALAN]:"Catalan",[u.CZECH]:"Czech",[u.WELSH]:"Welsh",[u.DANISH]:"Danish",[u.DIVEHI]:"Divehi",[u.GREEK]:"Greek",[u.ESPERANTO]:"Esperanto",[u.ESTONIAN]:"Estonian",[u.BASQUE]:"Basque",[u.FARSI]:"Farsi",[u.FINNISH]:"Finnish",[u.FAROESE]:"Faroese",[u.GALICIAN]:"Galician",[u.GUJARATI]:"Gujarati",[u.HEBREW]:"Hebrew",[u.HINDI]:"Hindi",[u.CROATIAN]:"Croatian",[u.HUNGARIAN]:"Hungarian",[u.ARMENIAN]:"Armenian",[u.INDONESIAN]:"Indonesian",[u.ICELANDIC]:"Icelandic",[u.ITALIAN]:"Italian",[u.JAPANESE]:"Japanese",[u.GEORGIAN]:"Georgian",[u.KAZAKH]:"Kazakh",[u.KANNADA]:"Kannada",[u.KOREAN]:"Korean",[u.KONKANI]:"Konkani",[u.KYRGYZ]:"Kyrgyz",[u.LITHUANIAN]:"Lithuanian",[u.LATVIAN]:"Latvian",[u.MAORI]:"Maori",[u.FYRO_MACEDONIAN]:"FYRO Macedonian",[u.MONGOLIAN]:"Mongolian",[u.MARATHI]:"Marathi",[u.MALAY]:"Malay",[u.MALTESE]:"Maltese",[u.NORWEGIAN_BOKMAL]:"Norwegian Bokmål",[u.DUTCH]:"Dutch",[u.NORTHERN_SOTHO]:"Northern Sotho",[u.PUNJABI]:"Punjabi",[u.POLISH]:"Polish",[u.PASHTO]:"Pashto",[u.QUECHUA]:"Quechua",[u.ROMANIAN]:"Romanian",[u.RUSSIAN]:"Russian",[u.SANSKRIT]:"Sanskrit",[u.SAMI_NORTHERN]:"Sami Northern",[u.SLOVAK]:"Slovak",[u.SLOVENIAN]:"Slovenian",[u.ALBANIAN]:"Albanian",[u.SERBIAN_LATIN]:"Serbian Latin",[u.SWEDISH]:"Swedish",[u.SWEDISH_FINLAND]:"Swedish (Finland)",[u.SWEDISH_SWEDEN]:"Swedish (Sweden)",[u.SWAHILI]:"Swahili",[u.SYRIAC]:"Syriac",[u.TAMIL]:"Tamil",[u.TELUGU]:"Telugu",[u.THAI]:"Thai",[u.TAGALOG]:"Tagalog",[u.TSWANA]:"Tswana",[u.TURKISH]:"Turkish",[u.TATAR]:"Tatar",[u.UKRAINIAN]:"Ukrainian",[u.URDU]:"Urdu",[u.UZBEK_LATIN]:"Uzbek Latin",[u.VIETNAMESE]:"Vietnamese",[u.XHOSA]:"Xhosa",[u.CHINESE]:"Chinese",[u.CHINESE_SIMPLIFIED]:"Chinese Simplified",[u.CHINESE_SIMPLIFIED_CHINA]:"Chinese Simplified (China)",[u.CHINESE_TRADITIONAL]:"Chinese Traditional",[u.ZULU]:"Zulu",[u.AFRIKAANS_SOUTH_AFRICA]:"Afrikaans (South Africa)",[u.ARABIC_UNITED_ARAB_EMIRATES]:"Arabic (United Arab Emirates)",[u.ARABIC_BAHRAIN]:"Arabic (Bahrain)",[u.ARABIC_ALGERIA]:"Arabic (Algeria)",[u.ARABIC_EGYPT]:"Arabic (Egypt)",[u.ARABIC_IRAQ]:"Arabic (Iraq)",[u.ARABIC_JORDAN]:"Arabic (Jordan)",[u.ARABIC_KUWAIT]:"Arabic (Kuwait)",[u.ARABIC_LEBANON]:"Arabic (Lebanon)",[u.ARABIC_LIBYA]:"Arabic (Libya)",[u.ARABIC_MOROCCO]:"Arabic (Morocco)",[u.ARABIC_OMAN]:"Arabic (Oman)",[u.ARABIC_QATAR]:"Arabic (Qatar)",[u.ARABIC_SAUDI_ARABIA]:"Arabic (Saudi Arabia)",[u.ARABIC_SYRIA]:"Arabic (Syria)",[u.ARABIC_TUNISIA]:"Arabic (Tunisia)",[u.ARABIC_YEMEN]:"Arabic (Yemen)",[u.AZERI_LATIN_AZERBAIJAN]:"Azeri Latin (Azerbaijan)",[u.BELARUSIAN_BELARUS]:"Belarusian (Belarus)",[u.BULGARIAN_BULGARIA]:"Bulgarian (Bulgaria)",[u.BOSNIAN_BOSNIA_AND_HERZEGOVINA]:"Bosnian (Bosnia and Herzegovina)",[u.CATALAN_SPAIN]:"Catalan (Spain)",[u.CZECH_CZECH_REPUBLIC]:"Czech (Czech Republic)",[u.WELSH_UNITED_KINGDOM]:"Welsh (United Kingdom)",[u.DANISH_DENMARK]:"Danish (Denmark)",[u.GERMAN_AUSTRIA]:"German (Austria)",[u.GERMAN_SWITZERLAND]:"German (Switzerland)",[u.GERMAN_GERMANY]:"German (Germany)",[u.GERMAN_LIECHTENSTEIN]:"German (Liechtenstein)",[u.GERMAN_LUXEMBOURG]:"German (Luxembourg)",[u.DIVEHI_MALDIVES]:"Divehi (Maldives)",[u.GREEK_GREECE]:"Greek (Greece)",[u.ENGLISH_AUSTRALIA]:"English (Australia)",[u.ENGLISH_BELIZE]:"English (Belize)",[u.ENGLISH_CANADA]:"English (Canada)",[u.ENGLISH_CARIBBEAN]:"English (Caribbean)",[u.ENGLISH_UNITED_KINGDOM]:"English (United Kingdom)",[u.ENGLISH_IRELAND]:"English (Ireland)",[u.ENGLISH_JAMAICA]:"English (Jamaica)",[u.ENGLISH_NEW_ZEALAND]:"English (New Zealand)",[u.ENGLISH_PHILIPPINES]:"English (Philippines)",[u.ENGLISH_TRINIDAD_AND_TOBAGO]:"English (Trinidad and Tobago)",[u.ENGLISH_UNITED_STATES]:"English (United States)",[u.ENGLISH_SOUTH_AFRICA]:"English (South Africa)",[u.ENGLISH_ZIMBABWE]:"English (Zimbabwe)",[u.SPANISH_ARGENTINA]:"Spanish (Argentina)",[u.SPANISH_BOLIVIA]:"Spanish (Bolivia)",[u.SPANISH_CHILE]:"Spanish (Chile)",[u.SPANISH_COLOMBIA]:"Spanish (Colombia)",[u.SPANISH_COSTA_RICA]:"Spanish (Costa Rica)",[u.SPANISH_DOMINICAN_REPUBLIC]:"Spanish (Dominican Republic)",[u.SPANISH_ECUADOR]:"Spanish (Ecuador)",[u.SPANISH_SPAIN]:"Spanish (Spain)",[u.SPANISH_GUATEMALA]:"Spanish (Guatemala)",[u.SPANISH_HONDURAS]:"Spanish (Honduras)",[u.SPANISH_MEXICO]:"Spanish (Mexico)",[u.SPANISH_NICARAGUA]:"Spanish (Nicaragua)",[u.SPANISH_PANAMA]:"Spanish (Panama)",[u.SPANISH_PERU]:"Spanish (Peru)",[u.SPANISH_PUERTO_RICO]:"Spanish (Puerto Rico)",[u.SPANISH_PARAGUAY]:"Spanish (Paraguay)",[u.SPANISH_EL_SALVADOR]:"Spanish (El Salvador)",[u.SPANISH_URUGUAY]:"Spanish (Uruguay)",[u.SPANISH_VENEZUELA]:"Spanish (Venezuela)",[u.ESTONIAN_ESTONIA]:"Estonian (Estonia)",[u.BASQUE_SPAIN]:"Basque (Spain)",[u.FARSI_IRAN]:"Farsi (Iran)",[u.FINNISH_FINLAND]:"Finnish (Finland)",[u.FAROESE_FAROE_ISLANDS]:"Faroese (Faroe Islands)",[u.FRENCH_BELGIUM]:"French (Belgium)",[u.FRENCH_CANADA]:"French (Canada)",[u.FRENCH_SWITZERLAND]:"French (Switzerland)",[u.FRENCH_FRANCE]:"French (France)",[u.FRENCH_LUXEMBOURG]:"French (Luxembourg)",[u.FRENCH_PRINCIPALITY_OF_MONACO]:"French (Principality of Monaco)",[u.GALICIAN_SPAIN]:"Galician (Spain)",[u.GUJARATI_INDIA]:"Gujarati (India)",[u.HEBREW_ISRAEL]:"Hebrew (Israel)",[u.HINDI_INDIA]:"Hindi (India)",[u.CROATIAN_BOSNIA_AND_HERZEGOVINA]:"Croatian (Bosnia and Herzegovina)",[u.CROATIAN_CROATIA]:"Croatian (Croatia)",[u.HUNGARIAN_HUNGARY]:"Hungarian (Hungary)",[u.ARMENIAN_ARMENIA]:"Armenian (Armenia)",[u.INDONESIAN_INDONESIA]:"Indonesian (Indonesia)",[u.ICELANDIC_ICELAND]:"Icelandic (Iceland)",[u.ITALIAN_SWITZERLAND]:"Italian (Switzerland)",[u.ITALIAN_ITALY]:"Italian (Italy)",[u.JAPANESE_JAPAN]:"Japanese (Japan)",[u.GEORGIAN_GEORGIA]:"Georgian (Georgia)",[u.KAZAKH_KAZAKHSTAN]:"Kazakh (Kazakhstan)",[u.KANNADA_INDIA]:"Kannada (India)",[u.KOREAN_KOREA]:"Korean (Korea)",[u.KONKANI_INDIA]:"Konkani (India)",[u.KYRGYZ_KYRGYZSTAN]:"Kyrgyz (Kyrgyzstan)",[u.LITHUANIAN_LITHUANIA]:"Lithuanian (Lithuania)",[u.LATVIAN_LATVIA]:"Latvian (Latvia)",[u.MAORI_NEW_ZEALAND]:"Maori (New Zealand)",[u.FYRO_MACEDONIAN_MACEDONIA]:"FYRO Macedonian (Macedonia)",[u.MONGOLIAN_MONGOLIA]:"Mongolian (Mongolia)",[u.MARATHI_INDIA]:"Marathi (India)",[u.MALAY_BRUNEI_DARUSSALAM]:"Malay (Brunei Darussalam)",[u.MALAY_MALAYSIA]:"Malay (Malaysia)",[u.MALTESE_MALTA]:"Maltese (Malta)",[u.NORWEGIAN_BOKMAL_NORWAY]:"Norwegian Bokmål (Norway)",[u.DUTCH_BELGIUM]:"Dutch (Belgium)",[u.DUTCH_NETHERLANDS]:"Dutch (Netherlands)",[u.NORWEGIAN_NYNORSK_NORWAY]:"Norwegian Nynorsk (Norway)",[u.NORTHERN_SOTHO_SOUTH_AFRICA]:"Northern Sotho (South Africa)",[u.PUNJABI_INDIA]:"Punjabi (India)",[u.POLISH_POLAND]:"Polish (Poland)",[u.PASHTO_AFGHANISTAN]:"Pashto (Afghanistan)",[u.PORTUGUESE_BRAZIL]:"Portuguese (Brazil)",[u.PORTUGUESE_PORTUGAL]:"Portuguese (Portugal)",[u.QUECHUA_BOLIVIA]:"Quechua (Bolivia)",[u.QUECHUA_ECUADOR]:"Quechua (Ecuador)",[u.QUECHUA_PERU]:"Quechua (Peru)",[u.ROMANIAN_ROMANIA]:"Romanian (Romania)",[u.RUSSIAN_RUSSIA]:"Russian (Russia)",[u.SANSKRIT_INDIA]:"Sanskrit (India)",[u.SAMI_NORTHERN_FINLAND]:"Sami Northern (Finland)",[u.SAMI_NORTHERN_NORWAY]:"Sami Northern (Norway)",[u.SAMI_NORTHERN_SWEDEN]:"Sami Northern (Sweden)",[u.SLOVAK_SLOVAKIA]:"Slovak (Slovakia)",[u.SLOVENIAN_SLOVENIA]:"Slovenian (Slovenia)",[u.ALBANIAN_ALBANIA]:"Albanian (Albania)",[u.SERBIAN_LATIN_BOSNIA_AND_HERZEGOVINA]:"Serbian Latin (Bosnia and Herzegovina)",[u.SERBIAN_LATIN_SERBIA_AND_MONTENEGRO]:"Serbian Latin (Serbia and Montenegro)",[u.SWAHILI_KENYA]:"Swahili (Kenya)",[u.SYRIAC_SYRIA]:"Syriac (Syria)",[u.TAMIL_INDIA]:"Tamil (India)",[u.TELUGU_INDIA]:"Telugu (India)",[u.THAI_THAILAND]:"Thai (Thailand)",[u.TAGALOG_PHILIPPINES]:"Tagalog (Philippines)",[u.TSWANA_SOUTH_AFRICA]:"Tswana (South Africa)",[u.TURKISH_TURKEY]:"Turkish (Turkey)",[u.TATAR_RUSSIA]:"Tatar (Russia)",[u.TSOGA]:"Tsoga",[u.UKRAINIAN_UKRAINE]:"Ukrainian (Ukraine)",[u.URDU_ISLAMIC_REPUBLIC_OF_PAKISTAN]:"Urdu (Islamic Republic of Pakistan)",[u.UZBEK_LATIN_UZBEKISTAN]:"Uzbek Latin (Uzbekistan)",[u.VIETNAMESE_VIET_NAM]:"Vietnamese (Viet Nam)",[u.XHOSA_SOUTH_AFRICA]:"Xhosa (South Africa)",[u.CHINESE_HONG_KONG]:"Chinese (Hong Kong)",[u.CHINESE_MACAU]:"Chinese (Macau)",[u.CHINESE_SINGAPORE]:"Chinese (Singapore)",[u.ZULU_SOUTH_AFRICA]:"Zulu (South Africa)"},Vt={[u.ENGLISH]:"Inglés",[u.FRENCH]:"Francés",[u.SPANISH]:"Español",[u.PORTUGUESE]:"Portugués",[u.GERMAN]:"Alemán",[u.AFRIKAANS]:"Afrikaans",[u.ARABIC]:"Árabe",[u.AZERI_LATIN]:"Azerí Latín",[u.BELARUSIAN]:"Bielorruso",[u.BULGARIAN]:"Búlgaro",[u.BOSNIAN]:"Bosnio",[u.CATALAN]:"Catalán",[u.CZECH]:"Checo",[u.WELSH]:"Galés",[u.DANISH]:"Danés",[u.DIVEHI]:"Divehi",[u.GREEK]:"Griego",[u.ESPERANTO]:"Esperanto",[u.ESTONIAN]:"Estonio",[u.BASQUE]:"Vasco",[u.FARSI]:"Farsi",[u.FINNISH]:"Finés",[u.FAROESE]:"Feroés",[u.GALICIAN]:"Gallego",[u.GUJARATI]:"Gujarati",[u.HEBREW]:"Hebreo",[u.HINDI]:"Hindi",[u.CROATIAN]:"Croata",[u.HUNGARIAN]:"Húngaro",[u.ARMENIAN]:"Armenio",[u.INDONESIAN]:"Indonesio",[u.ICELANDIC]:"Islandés",[u.ITALIAN]:"Italiano",[u.JAPANESE]:"Japonés",[u.GEORGIAN]:"Georgiano",[u.KAZAKH]:"Kazajo",[u.KANNADA]:"Kannada",[u.KOREAN]:"Coreano",[u.KONKANI]:"Konkani",[u.KYRGYZ]:"Kirguís",[u.LITHUANIAN]:"Lituano",[u.LATVIAN]:"Letón",[u.MAORI]:"Maorí",[u.FYRO_MACEDONIAN]:"Macedonio FYRO",[u.MONGOLIAN]:"Mongol",[u.MARATHI]:"Marathi",[u.MALAY]:"Malayo",[u.MALTESE]:"Maltés",[u.NORWEGIAN_BOKMAL]:"Noruego Bokmål",[u.DUTCH]:"Neerlandés",[u.NORTHERN_SOTHO]:"Sotho del Norte",[u.PUNJABI]:"Panyabí",[u.POLISH]:"Polaco",[u.PASHTO]:"Pastún",[u.QUECHUA]:"Quechua",[u.ROMANIAN]:"Rumano",[u.RUSSIAN]:"Ruso",[u.SANSKRIT]:"Sánscrito",[u.SAMI_NORTHERN]:"Sami del Norte",[u.SLOVAK]:"Eslovaco",[u.SLOVENIAN]:"Esloveno",[u.ALBANIAN]:"Albanés",[u.SERBIAN_LATIN]:"Serbio Latín",[u.SWEDISH]:"Sueco",[u.SWEDISH_FINLAND]:"Sueco (Finlandia)",[u.SWEDISH_SWEDEN]:"Sueco (Suecia)",[u.SWAHILI]:"Swahili",[u.SYRIAC]:"Siríaco",[u.TAMIL]:"Tamil",[u.TELUGU]:"Telugu",[u.THAI]:"Tailandés",[u.TAGALOG]:"Tagalo",[u.TSWANA]:"Tswana",[u.TURKISH]:"Turco",[u.TATAR]:"Tártaro",[u.UKRAINIAN]:"Ucraniano",[u.URDU]:"Urdu",[u.UZBEK_LATIN]:"Uzbeco Latín",[u.VIETNAMESE]:"Vietnamita",[u.XHOSA]:"Xhosa",[u.CHINESE]:"Chino",[u.CHINESE_SIMPLIFIED]:"Chino Simplificado",[u.CHINESE_SIMPLIFIED_CHINA]:"Chino Simplificado (China)",[u.CHINESE_TRADITIONAL]:"Chino Tradicional",[u.ZULU]:"Zulú",[u.AFRIKAANS_SOUTH_AFRICA]:"Afrikaans (Sudáfrica)",[u.ARABIC_UNITED_ARAB_EMIRATES]:"Árabe (Emiratos Árabes Unidos)",[u.ARABIC_BAHRAIN]:"Árabe (Baréin)",[u.ARABIC_ALGERIA]:"Árabe (Argelia)",[u.ARABIC_EGYPT]:"Árabe (Egipto)",[u.ARABIC_IRAQ]:"Árabe (Irak)",[u.ARABIC_JORDAN]:"Árabe (Jordania)",[u.ARABIC_KUWAIT]:"Árabe (Kuwait)",[u.ARABIC_LEBANON]:"Árabe (Líbano)",[u.ARABIC_LIBYA]:"Árabe (Libia)",[u.ARABIC_MOROCCO]:"Árabe (Marruecos)",[u.ARABIC_OMAN]:"Árabe (Omán)",[u.ARABIC_QATAR]:"Árabe (Catar)",[u.ARABIC_SAUDI_ARABIA]:"Árabe (Arabia Saudita)",[u.ARABIC_SYRIA]:"Árabe (Siria)",[u.ARABIC_TUNISIA]:"Árabe (Túnez)",[u.ARABIC_YEMEN]:"Árabe (Yemen)",[u.AZERI_LATIN_AZERBAIJAN]:"Azerí Latín (Azerbaiyán)",[u.BELARUSIAN_BELARUS]:"Bielorruso (Bielorrusia)",[u.BULGARIAN_BULGARIA]:"Búlgaro (Bulgaria)",[u.BOSNIAN_BOSNIA_AND_HERZEGOVINA]:"Bosnio (Bosnia y Herzegovina)",[u.CATALAN_SPAIN]:"Catalán (España)",[u.CZECH_CZECH_REPUBLIC]:"Checo (República Checa)",[u.WELSH_UNITED_KINGDOM]:"Galés (Reino Unido)",[u.DANISH_DENMARK]:"Danés (Dinamarca)",[u.GERMAN_AUSTRIA]:"Alemán (Austria)",[u.GERMAN_SWITZERLAND]:"Alemán (Suiza)",[u.GERMAN_GERMANY]:"Alemán (Alemania)",[u.GERMAN_LIECHTENSTEIN]:"Alemán (Liechtenstein)",[u.GERMAN_LUXEMBOURG]:"Alemán (Luxemburgo)",[u.DIVEHI_MALDIVES]:"Divehi (Maldivas)",[u.GREEK_GREECE]:"Griego (Grecia)",[u.ENGLISH_AUSTRALIA]:"Inglés (Australia)",[u.ENGLISH_BELIZE]:"Inglés (Belice)",[u.ENGLISH_CANADA]:"Inglés (Canadá)",[u.ENGLISH_CARIBBEAN]:"Inglés (Caribe)",[u.ENGLISH_UNITED_KINGDOM]:"Inglés (Reino Unido)",[u.ENGLISH_IRELAND]:"Inglés (Irlanda)",[u.ENGLISH_JAMAICA]:"Inglés (Jamaica)",[u.ENGLISH_NEW_ZEALAND]:"Inglés (Nueva Zelanda)",[u.ENGLISH_PHILIPPINES]:"Inglés (Filipinas)",[u.ENGLISH_TRINIDAD_AND_TOBAGO]:"Inglés (Trinidad y Tobago)",[u.ENGLISH_UNITED_STATES]:"Inglés (Estados Unidos)",[u.ENGLISH_SOUTH_AFRICA]:"Inglés (Sudáfrica)",[u.ENGLISH_ZIMBABWE]:"Inglés (Zimbabue)",[u.SPANISH_ARGENTINA]:"Español (Argentina)",[u.SPANISH_BOLIVIA]:"Español (Bolivia)",[u.SPANISH_CHILE]:"Español (Chile)",[u.SPANISH_COLOMBIA]:"Español (Colombia)",[u.SPANISH_COSTA_RICA]:"Español (Costa Rica)",[u.SPANISH_DOMINICAN_REPUBLIC]:"Español (República Dominicana)",[u.SPANISH_ECUADOR]:"Español (Ecuador)",[u.SPANISH_SPAIN]:"Español (España)",[u.SPANISH_GUATEMALA]:"Español (Guatemala)",[u.SPANISH_HONDURAS]:"Español (Honduras)",[u.SPANISH_MEXICO]:"Español (México)",[u.SPANISH_NICARAGUA]:"Español (Nicaragua)",[u.SPANISH_PANAMA]:"Español (Panamá)",[u.SPANISH_PERU]:"Español (Perú)",[u.SPANISH_PUERTO_RICO]:"Español (Puerto Rico)",[u.SPANISH_PARAGUAY]:"Español (Paraguay)",[u.SPANISH_EL_SALVADOR]:"Español (El Salvador)",[u.SPANISH_URUGUAY]:"Español (Uruguay)",[u.SPANISH_VENEZUELA]:"Español (Venezuela)",[u.ESTONIAN_ESTONIA]:"Estonio (Estonia)",[u.BASQUE_SPAIN]:"Vasco (España)",[u.FARSI_IRAN]:"Farsi (Irán)",[u.FINNISH_FINLAND]:"Finés (Finlandia)",[u.FAROESE_FAROE_ISLANDS]:"Feroés (Islas Feroe)",[u.FRENCH_BELGIUM]:"Francés (Bélgica)",[u.FRENCH_CANADA]:"Francés (Canadá)",[u.FRENCH_SWITZERLAND]:"Francés (Suiza)",[u.FRENCH_FRANCE]:"Francés (Francia)",[u.FRENCH_LUXEMBOURG]:"Francés (Luxemburgo)",[u.FRENCH_PRINCIPALITY_OF_MONACO]:"Francés (Principado de Mónaco)",[u.GALICIAN_SPAIN]:"Gallego (España)",[u.GUJARATI_INDIA]:"Gujarati (India)",[u.HEBREW_ISRAEL]:"Hebreo (Israel)",[u.HINDI_INDIA]:"Hindi (India)",[u.CROATIAN_BOSNIA_AND_HERZEGOVINA]:"Croata (Bosnia y Herzegovina)",[u.CROATIAN_CROATIA]:"Croata (Croacia)",[u.HUNGARIAN_HUNGARY]:"Húngaro (Hungría)",[u.ARMENIAN_ARMENIA]:"Armenio (Armenia)",[u.INDONESIAN_INDONESIA]:"Indonesio (Indonesia)",[u.ICELANDIC_ICELAND]:"Islandés (Islandia)",[u.ITALIAN_SWITZERLAND]:"Italiano (Suiza)",[u.ITALIAN_ITALY]:"Italiano (Italia)",[u.JAPANESE_JAPAN]:"Japonés (Japón)",[u.GEORGIAN_GEORGIA]:"Georgiano (Georgia)",[u.KAZAKH_KAZAKHSTAN]:"Kazajo (Kazajistán)",[u.KANNADA_INDIA]:"Kannada (India)",[u.KOREAN_KOREA]:"Coreano (Corea)",[u.KONKANI_INDIA]:"Konkani (India)",[u.KYRGYZ_KYRGYZSTAN]:"Kirguís (Kirguistán)",[u.LITHUANIAN_LITHUANIA]:"Lituano (Lituania)",[u.LATVIAN_LATVIA]:"Letón (Letonia)",[u.MAORI_NEW_ZEALAND]:"Maorí (Nueva Zelanda)",[u.FYRO_MACEDONIAN_MACEDONIA]:"Macedonio FYRO (Macedonia)",[u.MONGOLIAN_MONGOLIA]:"Mongol (Mongolia)",[u.MARATHI_INDIA]:"Marathi (India)",[u.MALAY_BRUNEI_DARUSSALAM]:"Malayo (Brunéi Darussalam)",[u.MALAY_MALAYSIA]:"Malayo (Malasia)",[u.MALTESE_MALTA]:"Maltés (Malta)",[u.NORWEGIAN_BOKMAL_NORWAY]:"Noruego Bokmål (Noruega)",[u.DUTCH_BELGIUM]:"Neerlandés (Bélgica)",[u.DUTCH_NETHERLANDS]:"Neerlandés (Países Bajos)",[u.NORWEGIAN_NYNORSK_NORWAY]:"Noruego Nynorsk (Noruega)",[u.NORTHERN_SOTHO_SOUTH_AFRICA]:"Sotho del Norte (Sudáfrica)",[u.PUNJABI_INDIA]:"Panyabí (India)",[u.POLISH_POLAND]:"Polaco (Polonia)",[u.PASHTO_AFGHANISTAN]:"Pastún (Afganistán)",[u.PORTUGUESE_BRAZIL]:"Portugués (Brasil)",[u.PORTUGUESE_PORTUGAL]:"Portugués (Portugal)",[u.QUECHUA_BOLIVIA]:"Quechua (Bolivia)",[u.QUECHUA_ECUADOR]:"Quechua (Ecuador)",[u.QUECHUA_PERU]:"Quechua (Perú)",[u.ROMANIAN_ROMANIA]:"Rumano (Rumania)",[u.RUSSIAN_RUSSIA]:"Ruso (Rusia)",[u.SANSKRIT_INDIA]:"Sánscrito (India)",[u.SAMI_NORTHERN_FINLAND]:"Sami del Norte (Finlandia)",[u.SAMI_NORTHERN_NORWAY]:"Sami del Norte (Noruega)",[u.SAMI_NORTHERN_SWEDEN]:"Sami del Norte (Suecia)",[u.SLOVAK_SLOVAKIA]:"Eslovaco (Eslovaquia)",[u.SLOVENIAN_SLOVENIA]:"Esloveno (Eslovenia)",[u.ALBANIAN_ALBANIA]:"Albanés (Albania)",[u.SERBIAN_LATIN_BOSNIA_AND_HERZEGOVINA]:"Serbio Latín (Bosnia y Herzegovina)",[u.SERBIAN_LATIN_SERBIA_AND_MONTENEGRO]:"Serbio Latín (Serbia y Montenegro)",[u.SWAHILI_KENYA]:"Swahili (Kenia)",[u.SYRIAC_SYRIA]:"Siríaco (Siria)",[u.TAMIL_INDIA]:"Tamil (India)",[u.TELUGU_INDIA]:"Telugu (India)",[u.THAI_THAILAND]:"Tailandés (Tailandia)",[u.TAGALOG_PHILIPPINES]:"Tagalo (Filipinas)",[u.TSWANA_SOUTH_AFRICA]:"Tswana (Sudáfrica)",[u.TURKISH_TURKEY]:"Turco (Turquía)",[u.TATAR_RUSSIA]:"Tártaro (Rusia)",[u.TSOGA]:"Tsoga",[u.UKRAINIAN_UKRAINE]:"Ucraniano (Ucrania)",[u.URDU_ISLAMIC_REPUBLIC_OF_PAKISTAN]:"Urdu (República Islámica de Pakistán)",[u.UZBEK_LATIN_UZBEKISTAN]:"Uzbeco Latín (Uzbekistán)",[u.VIETNAMESE_VIET_NAM]:"Vietnamita (Vietnam)",[u.XHOSA_SOUTH_AFRICA]:"Xhosa (Sudáfrica)",[u.CHINESE_HONG_KONG]:"Chino (Hong Kong)",[u.CHINESE_MACAU]:"Chino (Macao)",[u.CHINESE_SINGAPORE]:"Chino (Singapur)",[u.ZULU_SOUTH_AFRICA]:"Zulú (Sudáfrica)"},ra={[u.ENGLISH]:"Anglais",[u.FRENCH]:"Français",[u.SPANISH]:"Espagnol",[u.PORTUGUESE]:"Portugais",[u.GERMAN]:"Allemand",[u.AFRIKAANS]:"Afrikaans",[u.ARABIC]:"Arabe",[u.AZERI_LATIN]:"Azéri Latin",[u.BELARUSIAN]:"Biélorusse",[u.BULGARIAN]:"Bulgare",[u.BOSNIAN]:"Bosniaque",[u.CATALAN]:"Catalan",[u.CZECH]:"Tchèque",[u.WELSH]:"Gallois",[u.DANISH]:"Danois",[u.DIVEHI]:"Divehi",[u.GREEK]:"Grec",[u.ESPERANTO]:"Espéranto",[u.ESTONIAN]:"Estonien",[u.BASQUE]:"Basque",[u.FARSI]:"Farsi",[u.FINNISH]:"Finnois",[u.FAROESE]:"Féroïen",[u.GALICIAN]:"Galicien",[u.GUJARATI]:"Gujarati",[u.HEBREW]:"Hébreu",[u.HINDI]:"Hindi",[u.CROATIAN]:"Croate",[u.HUNGARIAN]:"Hongrois",[u.ARMENIAN]:"Arménien",[u.INDONESIAN]:"Indonésien",[u.ICELANDIC]:"Islandais",[u.ITALIAN]:"Italien",[u.JAPANESE]:"Japonais",[u.GEORGIAN]:"Géorgien",[u.KAZAKH]:"Kazakh",[u.KANNADA]:"Kannada",[u.KOREAN]:"Coréen",[u.KONKANI]:"Konkani",[u.KYRGYZ]:"Kirghize",[u.LITHUANIAN]:"Lituanien",[u.LATVIAN]:"Letton",[u.MAORI]:"Maori",[u.FYRO_MACEDONIAN]:"Macédonien FYRO",[u.MONGOLIAN]:"Mongol",[u.MARATHI]:"Marathi",[u.MALAY]:"Malais",[u.MALTESE]:"Maltais",[u.NORWEGIAN_BOKMAL]:"Norvégien Bokmål",[u.DUTCH]:"Néerlandais",[u.NORTHERN_SOTHO]:"Sotho du Nord",[u.PUNJABI]:"Pendjabi",[u.POLISH]:"Polonais",[u.PASHTO]:"Pachto",[u.QUECHUA]:"Quechua",[u.ROMANIAN]:"Roumain",[u.RUSSIAN]:"Russe",[u.SANSKRIT]:"Sanskrit",[u.SAMI_NORTHERN]:"Sami du Nord",[u.SLOVAK]:"Slovaque",[u.SLOVENIAN]:"Slovène",[u.ALBANIAN]:"Albanais",[u.SERBIAN_LATIN]:"Serbe Latin",[u.SWEDISH]:"Suédois",[u.SWEDISH_FINLAND]:"Suédois (Finlande)",[u.SWEDISH_SWEDEN]:"Suédois (Suède)",[u.SWAHILI]:"Swahili",[u.SYRIAC]:"Syriaque",[u.TAMIL]:"Tamoul",[u.TELUGU]:"Télougou",[u.THAI]:"Thaï",[u.TAGALOG]:"Tagalog",[u.TSWANA]:"Tswana",[u.TURKISH]:"Turc",[u.TATAR]:"Tatar",[u.UKRAINIAN]:"Ukrainien",[u.URDU]:"Ourdou",[u.UZBEK_LATIN]:"Ouzbek Latin",[u.VIETNAMESE]:"Vietnamien",[u.XHOSA]:"Xhosa",[u.CHINESE]:"Chinois",[u.CHINESE_SIMPLIFIED]:"Chinois Simplifié",[u.CHINESE_SIMPLIFIED_CHINA]:"Chinois Simplifié (Chine)",[u.CHINESE_TRADITIONAL]:"Chinois Traditionnel",[u.ZULU]:"Zoulou",[u.AFRIKAANS_SOUTH_AFRICA]:"Afrikaans (Afrique du Sud)",[u.ARABIC_UNITED_ARAB_EMIRATES]:"Arabe (Émirats Arabes Unis)",[u.ARABIC_BAHRAIN]:"Arabe (Bahreïn)",[u.ARABIC_ALGERIA]:"Arabe (Algérie)",[u.ARABIC_EGYPT]:"Arabe (Égypte)",[u.ARABIC_IRAQ]:"Arabe (Irak)",[u.ARABIC_JORDAN]:"Arabe (Jordanie)",[u.ARABIC_KUWAIT]:"Arabe (Koweït)",[u.ARABIC_LEBANON]:"Arabe (Liban)",[u.ARABIC_LIBYA]:"Arabe (Libye)",[u.ARABIC_MOROCCO]:"Arabe (Maroc)",[u.ARABIC_OMAN]:"Arabe (Oman)",[u.ARABIC_QATAR]:"Arabe (Qatar)",[u.ARABIC_SAUDI_ARABIA]:"Arabe (Arabie Saoudite)",[u.ARABIC_SYRIA]:"Arabe (Syrie)",[u.ARABIC_TUNISIA]:"Arabe (Tunisie)",[u.ARABIC_YEMEN]:"Arabe (Yémen)",[u.AZERI_LATIN_AZERBAIJAN]:"Azéri Latin (Azerbaïdjan)",[u.BELARUSIAN_BELARUS]:"Biélorusse (Biélorussie)",[u.BULGARIAN_BULGARIA]:"Bulgare (Bulgarie)",[u.BOSNIAN_BOSNIA_AND_HERZEGOVINA]:"Bosniaque (Bosnie-Herzégovine)",[u.CATALAN_SPAIN]:"Catalan (Espagne)",[u.CZECH_CZECH_REPUBLIC]:"Tchèque (République Tchèque)",[u.WELSH_UNITED_KINGDOM]:"Gallois (Royaume-Uni)",[u.DANISH_DENMARK]:"Danois (Danemark)",[u.GERMAN_AUSTRIA]:"Allemand (Autriche)",[u.GERMAN_SWITZERLAND]:"Allemand (Suisse)",[u.GERMAN_GERMANY]:"Allemand (Allemagne)",[u.GERMAN_LIECHTENSTEIN]:"Allemand (Liechtenstein)",[u.GERMAN_LUXEMBOURG]:"Allemand (Luxembourg)",[u.DIVEHI_MALDIVES]:"Divehi (Maldives)",[u.GREEK_GREECE]:"Grec (Grèce)",[u.ENGLISH_AUSTRALIA]:"Anglais (Australie)",[u.ENGLISH_BELIZE]:"Anglais (Belize)",[u.ENGLISH_CANADA]:"Anglais (Canada)",[u.ENGLISH_CARIBBEAN]:"Anglais (Caraïbes)",[u.ENGLISH_UNITED_KINGDOM]:"Anglais (Royaume-Uni)",[u.ENGLISH_IRELAND]:"Anglais (Irlande)",[u.ENGLISH_JAMAICA]:"Anglais (Jamaïque)",[u.ENGLISH_NEW_ZEALAND]:"Anglais (Nouvelle-Zélande)",[u.ENGLISH_PHILIPPINES]:"Anglais (Philippines)",[u.ENGLISH_TRINIDAD_AND_TOBAGO]:"Anglais (Trinité-et-Tobago)",[u.ENGLISH_UNITED_STATES]:"Anglais (États-Unis)",[u.ENGLISH_SOUTH_AFRICA]:"Anglais (Afrique du Sud)",[u.ENGLISH_ZIMBABWE]:"Anglais (Zimbabwe)",[u.SPANISH_ARGENTINA]:"Espagnol (Argentine)",[u.SPANISH_BOLIVIA]:"Espagnol (Bolivie)",[u.SPANISH_CHILE]:"Espagnol (Chili)",[u.SPANISH_COLOMBIA]:"Espagnol (Colombie)",[u.SPANISH_COSTA_RICA]:"Espagnol (Costa Rica)",[u.SPANISH_DOMINICAN_REPUBLIC]:"Espagnol (République Dominicaine)",[u.SPANISH_ECUADOR]:"Espagnol (Équateur)",[u.SPANISH_SPAIN]:"Espagnol (Espagne)",[u.SPANISH_GUATEMALA]:"Espagnol (Guatemala)",[u.SPANISH_HONDURAS]:"Espagnol (Honduras)",[u.SPANISH_MEXICO]:"Espagnol (Mexique)",[u.SPANISH_NICARAGUA]:"Espagnol (Nicaragua)",[u.SPANISH_PANAMA]:"Espagnol (Panama)",[u.SPANISH_PERU]:"Espagnol (Pérou)",[u.SPANISH_PUERTO_RICO]:"Espagnol (Porto Rico)",[u.SPANISH_PARAGUAY]:"Espagnol (Paraguay)",[u.SPANISH_EL_SALVADOR]:"Espagnol (El Salvador)",[u.SPANISH_URUGUAY]:"Espagnol (Uruguay)",[u.SPANISH_VENEZUELA]:"Espagnol (Venezuela)",[u.ESTONIAN_ESTONIA]:"Estonien (Estonie)",[u.BASQUE_SPAIN]:"Basque (Espagne)",[u.FARSI_IRAN]:"Farsi (Iran)",[u.FINNISH_FINLAND]:"Finnois (Finlande)",[u.FAROESE_FAROE_ISLANDS]:"Féroïen (Îles Féroé)",[u.FRENCH_BELGIUM]:"Français (Belgique)",[u.FRENCH_CANADA]:"Français (Canada)",[u.FRENCH_SWITZERLAND]:"Français (Suisse)",[u.FRENCH_FRANCE]:"Français (France)",[u.FRENCH_LUXEMBOURG]:"Français (Luxembourg)",[u.FRENCH_PRINCIPALITY_OF_MONACO]:"Français (Principauté de Monaco)",[u.GALICIAN_SPAIN]:"Galicien (Espagne)",[u.GUJARATI_INDIA]:"Gujarati (Inde)",[u.HEBREW_ISRAEL]:"Hébreu (Israël)",[u.HINDI_INDIA]:"Hindi (Inde)",[u.CROATIAN_BOSNIA_AND_HERZEGOVINA]:"Croate (Bosnie-Herzégovine)",[u.CROATIAN_CROATIA]:"Croate (Croatie)",[u.HUNGARIAN_HUNGARY]:"Hongrois (Hongrie)",[u.ARMENIAN_ARMENIA]:"Arménien (Arménie)",[u.INDONESIAN_INDONESIA]:"Indonésien (Indonésie)",[u.ICELANDIC_ICELAND]:"Islandais (Islande)",[u.ITALIAN_SWITZERLAND]:"Italien (Suisse)",[u.ITALIAN_ITALY]:"Italien (Italie)",[u.JAPANESE_JAPAN]:"Japonais (Japon)",[u.GEORGIAN_GEORGIA]:"Géorgien (Géorgie)",[u.KAZAKH_KAZAKHSTAN]:"Kazakh (Kazakhstan)",[u.KANNADA_INDIA]:"Kannada (Inde)",[u.KOREAN_KOREA]:"Coréen (Corée)",[u.KONKANI_INDIA]:"Konkani (Inde)",[u.KYRGYZ_KYRGYZSTAN]:"Kirghize (Kirghizistan)",[u.LITHUANIAN_LITHUANIA]:"Lituanien (Lituanie)",[u.LATVIAN_LATVIA]:"Letton (Lettonie)",[u.MAORI_NEW_ZEALAND]:"Maori (Nouvelle-Zélande)",[u.FYRO_MACEDONIAN_MACEDONIA]:"Macédonien FYRO (Macédoine)",[u.MONGOLIAN_MONGOLIA]:"Mongol (Mongolie)",[u.MARATHI_INDIA]:"Marathi (Inde)",[u.MALAY_BRUNEI_DARUSSALAM]:"Malais (Brunei Darussalam)",[u.MALAY_MALAYSIA]:"Malais (Malaisie)",[u.MALTESE_MALTA]:"Maltais (Malte)",[u.NORWEGIAN_BOKMAL_NORWAY]:"Norvégien Bokmål (Norvège)",[u.DUTCH_BELGIUM]:"Néerlandais (Belgique)",[u.DUTCH_NETHERLANDS]:"Néerlandais (Pays-Bas)",[u.NORWEGIAN_NYNORSK_NORWAY]:"Norvégien Nynorsk (Norvège)",[u.NORTHERN_SOTHO_SOUTH_AFRICA]:"Sotho du Nord (Afrique du Sud)",[u.PUNJABI_INDIA]:"Pendjabi (Inde)",[u.POLISH_POLAND]:"Polonais (Pologne)",[u.PASHTO_AFGHANISTAN]:"Pachto (Afghanistan)",[u.PORTUGUESE_BRAZIL]:"Portugais (Brésil)",[u.PORTUGUESE_PORTUGAL]:"Portugais (Portugal)",[u.QUECHUA_BOLIVIA]:"Quechua (Bolivie)",[u.QUECHUA_ECUADOR]:"Quechua (Équateur)",[u.QUECHUA_PERU]:"Quechua (Pérou)",[u.ROMANIAN_ROMANIA]:"Roumain (Roumanie)",[u.RUSSIAN_RUSSIA]:"Russe (Russie)",[u.SANSKRIT_INDIA]:"Sanskrit (Inde)",[u.SAMI_NORTHERN_FINLAND]:"Sami du Nord (Finlande)",[u.SAMI_NORTHERN_NORWAY]:"Sami du Nord (Norvège)",[u.SAMI_NORTHERN_SWEDEN]:"Sami du Nord (Suède)",[u.SLOVAK_SLOVAKIA]:"Slovaque (Slovaquie)",[u.SLOVENIAN_SLOVENIA]:"Slovène (Slovénie)",[u.ALBANIAN_ALBANIA]:"Albanais (Albanie)",[u.SERBIAN_LATIN_BOSNIA_AND_HERZEGOVINA]:"Serbe Latin (Bosnie-Herzégovine)",[u.SERBIAN_LATIN_SERBIA_AND_MONTENEGRO]:"Serbe Latin (Serbie et Monténégro)",[u.SWAHILI_KENYA]:"Swahili (Kenya)",[u.SYRIAC_SYRIA]:"Syriaque (Syrie)",[u.TAMIL_INDIA]:"Tamoul (Inde)",[u.TELUGU_INDIA]:"Télougou (Inde)",[u.THAI_THAILAND]:"Thaï (Thaïlande)",[u.TAGALOG_PHILIPPINES]:"Tagalog (Philippines)",[u.TSWANA_SOUTH_AFRICA]:"Tswana (Afrique du Sud)",[u.TURKISH_TURKEY]:"Turc (Turquie)",[u.TATAR_RUSSIA]:"Tatar (Russie)",[u.TSOGA]:"Tsoga",[u.UKRAINIAN_UKRAINE]:"Ukrainien (Ukraine)",[u.URDU_ISLAMIC_REPUBLIC_OF_PAKISTAN]:"Ourdou (République Islamique du Pakistan)",[u.UZBEK_LATIN_UZBEKISTAN]:"Ouzbek Latin (Ouzbékistan)",[u.VIETNAMESE_VIET_NAM]:"Vietnamien (Viêt Nam)",[u.XHOSA_SOUTH_AFRICA]:"Xhosa (Afrique du Sud)",[u.CHINESE_HONG_KONG]:"Chinois (Hong Kong)",[u.CHINESE_MACAU]:"Chinois (Macao)",[u.CHINESE_SINGAPORE]:"Chinois (Singapour)",[u.ZULU_SOUTH_AFRICA]:"Zoulou (Afrique du Sud)"},cF={[u.ENGLISH]:"अंग्रेज़ी",[u.FRENCH]:"फ़्रेंच",[u.SPANISH]:"स्पेनिश",[u.PORTUGUESE]:"पुर्तगाली",[u.GERMAN]:"जर्मन",[u.AFRIKAANS]:"आफ्रिकान्स",[u.ARABIC]:"अरबी",[u.AZERI_LATIN]:"अज़रबैजानी (लैटिन)",[u.BELARUSIAN]:"बेलारूसी",[u.BULGARIAN]:"बुल्गारियाई",[u.BOSNIAN]:"बोस्नियाई",[u.CATALAN]:"कातालान",[u.CZECH]:"चेक",[u.WELSH]:"वेल्श",[u.DANISH]:"डेनिश",[u.DIVEHI]:"डिवेही",[u.GREEK]:"यूनानी",[u.ESPERANTO]:"एस्पेरांतो",[u.ESTONIAN]:"एस्टोनियाई",[u.BASQUE]:"बास्क",[u.FARSI]:"फ़ारसी",[u.FINNISH]:"फिनिश",[u.FAROESE]:"फ़ेरोश",[u.GALICIAN]:"गैलिशियन",[u.GUJARATI]:"गुजराती",[u.HEBREW]:"हिब्रू",[u.HINDI]:"हिंदी",[u.CROATIAN]:"क्रोएशियाई",[u.HUNGARIAN]:"हंगेरियाई",[u.ARMENIAN]:"आर्मेनियाई",[u.INDONESIAN]:"इंडोनेशियाई",[u.ICELANDIC]:"आइसलैंडिक",[u.ITALIAN]:"इटालियन",[u.JAPANESE]:"जापानी",[u.GEORGIAN]:"जॉर्जियाई",[u.KAZAKH]:"कज़ाख",[u.KANNADA]:"कन्नड़",[u.KOREAN]:"कोरियाई",[u.KONKANI]:"कोंकणी",[u.KYRGYZ]:"किरगिज़",[u.LITHUANIAN]:"लिथुआनियाई",[u.LATVIAN]:"लातवियाई",[u.MAORI]:"माओरी",[u.FYRO_MACEDONIAN]:"मैसेडोनियाई (पूर्व यूगोस्लाविया)",[u.MONGOLIAN]:"मंगोलियाई",[u.MARATHI]:"मराठी",[u.MALAY]:"मलय",[u.MALTESE]:"माल्टीज़",[u.NORWEGIAN_BOKMAL]:"नॉर्वेजियन (बोकमाल)",[u.DUTCH]:"डच",[u.NORTHERN_SOTHO]:"नॉर्दर्न सोटो",[u.PUNJABI]:"पंजाबी",[u.POLISH]:"पोलिश",[u.PASHTO]:"पश्तो",[u.QUECHUA]:"क्वेचुआ",[u.ROMANIAN]:"रोमानियाई",[u.RUSSIAN]:"रूसी",[u.SANSKRIT]:"संस्कृत",[u.SAMI_NORTHERN]:"सामी (उत्तर)",[u.SLOVAK]:"स्लोवाक",[u.SLOVENIAN]:"स्लोवेनियाई",[u.ALBANIAN]:"अल्बानियाई",[u.SERBIAN_LATIN]:"सेर्बियाई (लैटिन)",[u.SWEDISH]:"स्वीडिश",[u.SWEDISH_FINLAND]:"स्वीडिश (फिनलैंड)",[u.SWEDISH_SWEDEN]:"स्वीडिश (स्वीडन)",[u.SWAHILI]:"स्वाहिली",[u.SYRIAC]:"सीरियाई",[u.TAMIL]:"तमिल",[u.TELUGU]:"तेलुगू",[u.THAI]:"थाई",[u.TAGALOG]:"तागालोग",[u.TSWANA]:"त्सवाना",[u.TURKISH]:"तुर्की",[u.TATAR]:"तातार",[u.UKRAINIAN]:"यूक्रेनी",[u.URDU]:"उर्दू",[u.UZBEK_LATIN]:"उज़्बेक (लैटिन)",[u.VIETNAMESE]:"वियतनामी",[u.XHOSA]:"कोसा",[u.CHINESE]:"चीनी",[u.CHINESE_SIMPLIFIED]:"चीनी (सरलीकृत)",[u.CHINESE_SIMPLIFIED_CHINA]:"चीनी (सरलीकृत, चीन)",[u.CHINESE_TRADITIONAL]:"चीनी (परंपरागत)",[u.ZULU]:"ज़ुलू",[u.AFRIKAANS_SOUTH_AFRICA]:"आफ्रिकान्स (दक्षिण अफ्रीका)",[u.ARABIC_UNITED_ARAB_EMIRATES]:"अरबी (संयुक्त अरब अमीरात)",[u.ARABIC_BAHRAIN]:"अरबी (बहरीन)",[u.ARABIC_ALGERIA]:"अरबी (अल्जीरिया)",[u.ARABIC_EGYPT]:"अरबी (मिस्र)",[u.ARABIC_IRAQ]:"अरबी (इराक)",[u.ARABIC_JORDAN]:"अरबी (जोर्डन)",[u.ARABIC_KUWAIT]:"अरबी (कुवैत)",[u.ARABIC_LEBANON]:"अरबी (लेबनान)",[u.ARABIC_LIBYA]:"अरबी (लीबिया)",[u.ARABIC_MOROCCO]:"अरबी (मोरक्को)",[u.ARABIC_OMAN]:"अरबी (ओमान)",[u.ARABIC_QATAR]:"अरबी (कतार)",[u.ARABIC_SAUDI_ARABIA]:"अरबी (सऊदी अरब)",[u.ARABIC_SYRIA]:"अरबी (सीरिया)",[u.ARABIC_TUNISIA]:"अरबी (ट्यूनीशिया)",[u.ARABIC_YEMEN]:"अरबी (यमन)",[u.AZERI_LATIN_AZERBAIJAN]:"अज़रबैजानी (लैटिन, अज़रबैजान)",[u.BELARUSIAN_BELARUS]:"बेलारूसी (बेलारूस)",[u.BULGARIAN_BULGARIA]:"बुल्गारियाई (बुल्गारिया)",[u.BOSNIAN_BOSNIA_AND_HERZEGOVINA]:"बोस्नियाई (बोस्निया और हर्जेगोविना)",[u.CATALAN_SPAIN]:"कातालान (स्पेन)",[u.CZECH_CZECH_REPUBLIC]:"चेक (चेक गणराज्य)",[u.WELSH_UNITED_KINGDOM]:"वेल्श (संयुक्त राज्य)",[u.DANISH_DENMARK]:"डेनिश (डेनमार्क)",[u.GERMAN_AUSTRIA]:"जर्मन (ऑस्ट्रिया)",[u.GERMAN_SWITZERLAND]:"जर्मन (स्विट्जरलैंड)",[u.GERMAN_GERMANY]:"जर्मन (जर्मनी)",[u.GERMAN_LIECHTENSTEIN]:"जर्मन (लिचटेनस्टीन)",[u.GERMAN_LUXEMBOURG]:"जर्मन (लक्समबर्ग)",[u.DIVEHI_MALDIVES]:"डिवेही (मालदीव)",[u.GREEK_GREECE]:"यूनानी (ग्रीस)",[u.ENGLISH_AUSTRALIA]:"अंग्रेज़ी (ऑस्ट्रेलिया)",[u.ENGLISH_BELIZE]:"अंग्रेज़ी (बेलीज)",[u.ENGLISH_CANADA]:"अंग्रेज़ी (कनाडा)",[u.ENGLISH_CARIBBEAN]:"अंग्रेज़ी (कैरेबियन)",[u.ENGLISH_UNITED_KINGDOM]:"अंग्रेज़ी (संयुक्त राज्य)",[u.ENGLISH_IRELAND]:"अंग्रेज़ी (आयरलैंड)",[u.ENGLISH_JAMAICA]:"अंग्रेज़ी (जमैका)",[u.ENGLISH_NEW_ZEALAND]:"अंग्रेज़ी (न्यूज़ीलैंड)",[u.ENGLISH_PHILIPPINES]:"अंग्रेज़ी (फ़िलीपींस)",[u.ENGLISH_TRINIDAD_AND_TOBAGO]:"अंग्रेज़ी (त्रिनिदाद और टोबैगो)",[u.ENGLISH_UNITED_STATES]:"अंग्रेज़ी (संयुक्त राज्य अमेरिका)",[u.ENGLISH_SOUTH_AFRICA]:"अंग्रेज़ी (दक्षिण अफ्रीका)",[u.ENGLISH_ZIMBABWE]:"अंग्रेज़ी (ज़िम्बाब्वे)",[u.SPANISH_ARGENTINA]:"स्पेनिश (अर्जेंटीना)",[u.SPANISH_BOLIVIA]:"स्पेनिश (बोलीविया)",[u.SPANISH_CHILE]:"स्पेनिश (चिली)",[u.SPANISH_COLOMBIA]:"स्पेनिश (कोलंबिया)",[u.SPANISH_COSTA_RICA]:"स्पेनिश (कोस्टा रिका)",[u.SPANISH_DOMINICAN_REPUBLIC]:"स्पेनिश (डोमिनिकन गणराज्य)",[u.SPANISH_ECUADOR]:"स्पेनिश (एक्वाडोर)",[u.SPANISH_SPAIN]:"स्पेनिश (स्पेन)",[u.SPANISH_GUATEMALA]:"स्पेनिश (ग्वाटेमाला)",[u.SPANISH_HONDURAS]:"स्पेनिश (होंडूरास)",[u.SPANISH_MEXICO]:"स्पेनिश (मैक्सिको)",[u.SPANISH_NICARAGUA]:"स्पेनिश (निकारागुआ)",[u.SPANISH_PANAMA]:"स्पेनिश (पनामा)",[u.SPANISH_PERU]:"स्पेनिश (पेरू)",[u.SPANISH_PUERTO_RICO]:"स्पेनिश (पुएर्टो रिको)",[u.SPANISH_PARAGUAY]:"स्पेनिश (पराग्वे)",[u.SPANISH_EL_SALVADOR]:"स्पेनिश (एल साल्वाडोर)",[u.SPANISH_URUGUAY]:"स्पेनिश (उरुग्वे)",[u.SPANISH_VENEZUELA]:"स्पेनिश (वेनेज़ुएला)",[u.ESTONIAN_ESTONIA]:"एस्टोनियाई (एस्टोनिया)",[u.BASQUE_SPAIN]:"बास्क (स्पेन)",[u.FARSI_IRAN]:"फ़ारसी (ईरान)",[u.FINNISH_FINLAND]:"फिनिश (फिनलैंड)",[u.FAROESE_FAROE_ISLANDS]:"फ़ेरोश (फ़ेरो द्वीप)",[u.FRENCH_BELGIUM]:"फ़्रेंच (बेल्जियम)",[u.FRENCH_CANADA]:"फ़्रेंच (कनाडा)",[u.FRENCH_SWITZERLAND]:"फ़्रेंच (स्विट्जरलैंड)",[u.FRENCH_FRANCE]:"फ़्रेंच (फ्रांस)",[u.FRENCH_LUXEMBOURG]:"फ़्रेंच (लक्समबर्ग)",[u.FRENCH_PRINCIPALITY_OF_MONACO]:"फ़्रेंच (मोनाको प्रिंसिपलिटी)",[u.GALICIAN_SPAIN]:"गैलिशियन (स्पेन)",[u.GUJARATI_INDIA]:"गुजराती (भारत)",[u.HEBREW_ISRAEL]:"हिब्रू (इज़राइल)",[u.HINDI_INDIA]:"हिंदी (भारत)",[u.CROATIAN_BOSNIA_AND_HERZEGOVINA]:"क्रोएशियाई (बोस्निया और हर्जेगोविना)",[u.CROATIAN_CROATIA]:"क्रोएशियाई (क्रोएशिया)",[u.HUNGARIAN_HUNGARY]:"वेनगरियाई (वेनगेरिया)",[u.ARMENIAN_ARMENIA]:"आर्मेनियाई (आर्मेनिया)",[u.INDONESIAN_INDONESIA]:"इंडोनेशियाई (इंडोनेशिया)",[u.ICELANDIC_ICELAND]:"आइसलैंडिक (आइसलैंड)",[u.ITALIAN_SWITZERLAND]:"इटालियन (स्विट्जरलैंड)",[u.ITALIAN_ITALY]:"इटालियन (इटली)",[u.JAPANESE_JAPAN]:"जापानी (जापान)",[u.GEORGIAN_GEORGIA]:"जॉर्जियाई (जॉर्जिया)",[u.KAZAKH_KAZAKHSTAN]:"कज़ाख (कज़ाकिस्तान)",[u.KANNADA_INDIA]:"कन्नड़ (भारत)",[u.KOREAN_KOREA]:"कोरियाई (कोरिया)",[u.KONKANI_INDIA]:"कोंकणी (भारत)",[u.KYRGYZ_KYRGYZSTAN]:"किरगिज़ (किरगिज़स्तान)",[u.LITHUANIAN_LITHUANIA]:"लिथुआनियाई (लिथुआनिया)",[u.LATVIAN_LATVIA]:"लातवियाई (लातविया)",[u.MAORI_NEW_ZEALAND]:"माओरी (न्यूज़ीलैंड)",[u.FYRO_MACEDONIAN_MACEDONIA]:"मैसेडोनियाई (पूर्व यूगोस्लाविया, मैसेडोनिया)",[u.MONGOLIAN_MONGOLIA]:"मंगोलियाई (मंगोलिया)",[u.MARATHI_INDIA]:"मराठी (भारत)",[u.MALAY_BRUNEI_DARUSSALAM]:"मलय (ब्रुनेई दारूस्सलाम)",[u.MALAY_MALAYSIA]:"मलय (मलेशिया)",[u.MALTESE_MALTA]:"माल्टीज़ (माल्टा)",[u.NORWEGIAN_BOKMAL_NORWAY]:"नॉर्वेजियन (बोकमाल, नॉर्वे)",[u.DUTCH_BELGIUM]:"डच (बेल्जियम)",[u.DUTCH_NETHERLANDS]:"डच (नीदरलैंड्स)",[u.NORWEGIAN_NYNORSK_NORWAY]:"नॉर्वेजियन (न्योनोर्स्क, नॉर्वे)",[u.NORTHERN_SOTHO_SOUTH_AFRICA]:"नॉर्दर्न सोटो (दक्षिण अफ्रीका)",[u.PUNJABI_INDIA]:"पंजाबी (भारत)",[u.POLISH_POLAND]:"पोलिश (पोलैंड)",[u.PASHTO_AFGHANISTAN]:"पश्तो (अफगानिस्तान)",[u.PORTUGUESE_BRAZIL]:"पुर्तगाली (ब्राजील)",[u.PORTUGUESE_PORTUGAL]:"पुर्तगाली (पुर्तगाल)",[u.QUECHUA_BOLIVIA]:"क्वेचुआ (बोलिविया)",[u.QUECHUA_ECUADOR]:"क्वेचुआ (इक्वाडोर)",[u.QUECHUA_PERU]:"क्वेचुआ (पेरू)",[u.ROMANIAN_ROMANIA]:"रोमानियाई (रूमानिया)",[u.RUSSIAN_RUSSIA]:"रूसी (रूस)",[u.SANSKRIT_INDIA]:"संस्कृत (भारत)",[u.SAMI_NORTHERN_FINLAND]:"सामी (उत्तर, फिनलैंड)",[u.SAMI_NORTHERN_NORWAY]:"सामी (उत्तर, नॉर्वे)",[u.SAMI_NORTHERN_SWEDEN]:"सामी (उत्तर, स्वीडन)",[u.SLOVAK_SLOVAKIA]:"स्लोवाक (स्लोवाकिया)",[u.SLOVENIAN_SLOVENIA]:"स्लोवेनियाई (स्लोवेनिया)",[u.ALBANIAN_ALBANIA]:"अल्बानियाई (अल्बानिया)",[u.SERBIAN_LATIN_BOSNIA_AND_HERZEGOVINA]:"सेर्बियाई (लैटिन, बोस्निया और हर्जेगोविना)",[u.SERBIAN_LATIN_SERBIA_AND_MONTENEGRO]:"सेर्बियाई (लैटिन, सेर्बिया और मोंटेनेग्रो)",[u.SWAHILI_KENYA]:"स्वाहिली (केन्या)",[u.SYRIAC_SYRIA]:"सीरियाई (सीरिया)",[u.TAMIL_INDIA]:"तमिल (भारत)",[u.TELUGU_INDIA]:"तेलुगू (भारत)",[u.THAI_THAILAND]:"थाई (थाईलैंड)",[u.TAGALOG_PHILIPPINES]:"तागालोग (फ़िलीपींस)",[u.TSWANA_SOUTH_AFRICA]:"त्सवाना (दक्षिण अफ्रीका)",[u.TURKISH_TURKEY]:"तुर्की (तुर्की)",[u.TATAR_RUSSIA]:"तातार (रूस)",[u.TSOGA]:"त्सोगा",[u.UKRAINIAN_UKRAINE]:"यूक्रेनी (यूक्रेन)",[u.URDU_ISLAMIC_REPUBLIC_OF_PAKISTAN]:"उर्दू (इस्लामी गणराज्य पाकिस्तान)",[u.UZBEK_LATIN_UZBEKISTAN]:"उज़्बेक (लैटिन, उज़्बेकिस्तान)",[u.VIETNAMESE_VIET_NAM]:"वियतनामी (वियतनाम)",[u.XHOSA_SOUTH_AFRICA]:"कोसा (दक्षिण अफ्रीका)",[u.CHINESE_HONG_KONG]:"चीनी (हांगकांग)",[u.CHINESE_MACAU]:"चीनी (मकाऊ)",[u.CHINESE_SINGAPORE]:"चीनी (सिंगापुर)",[u.ZULU_SOUTH_AFRICA]:"ज़ुलू (दक्षिण अफ्रीका)"},vm={[u.ENGLISH]:"Inglese",[u.FRENCH]:"Francese",[u.SPANISH]:"Spagnolo",[u.PORTUGUESE]:"Portoghese",[u.GERMAN]:"Tedesco",[u.AFRIKAANS]:"Afrikaans",[u.ARABIC]:"Arabo",[u.AZERI_LATIN]:"Azerbaigiano Latino",[u.BELARUSIAN]:"Bielorusso",[u.BULGARIAN]:"Bulgaro",[u.BOSNIAN]:"Bosniaco",[u.CATALAN]:"Catalano",[u.CZECH]:"Ceco",[u.WELSH]:"Gallese",[u.DANISH]:"Danese",[u.DIVEHI]:"Divehi",[u.GREEK]:"Greco",[u.ESPERANTO]:"Esperanto",[u.ESTONIAN]:"Estone",[u.BASQUE]:"Basco",[u.FARSI]:"Farsi",[u.FINNISH]:"Finlandese",[u.FAROESE]:"Faroese",[u.GALICIAN]:"Galiziano",[u.GUJARATI]:"Gujarati",[u.HEBREW]:"Ebraico",[u.HINDI]:"Hindi",[u.CROATIAN]:"Croato",[u.HUNGARIAN]:"Ungherese",[u.ARMENIAN]:"Armeno",[u.INDONESIAN]:"Indonesiano",[u.ICELANDIC]:"Islandese",[u.ITALIAN]:"Italiano",[u.JAPANESE]:"Giapponese",[u.GEORGIAN]:"Georgiano",[u.KAZAKH]:"Kazako",[u.KANNADA]:"Kannada",[u.KOREAN]:"Coreano",[u.KONKANI]:"Konkani",[u.KYRGYZ]:"Kirghiso",[u.LITHUANIAN]:"Lituano",[u.LATVIAN]:"Lettone",[u.MAORI]:"Maori",[u.FYRO_MACEDONIAN]:"Macedone FYRO",[u.MONGOLIAN]:"Mongolo",[u.MARATHI]:"Marathi",[u.MALAY]:"Malese",[u.MALTESE]:"Maltese",[u.NORWEGIAN_BOKMAL]:"Norvegese Bokmål",[u.DUTCH]:"Olandese",[u.NORTHERN_SOTHO]:"Sotho del Nord",[u.PUNJABI]:"Punjabi",[u.POLISH]:"Polacco",[u.PASHTO]:"Pashto",[u.QUECHUA]:"Quechua",[u.ROMANIAN]:"Rumeno",[u.RUSSIAN]:"Russo",[u.SANSKRIT]:"Sanscrito",[u.SAMI_NORTHERN]:"Sami del Nord",[u.SLOVAK]:"Slovacco",[u.SLOVENIAN]:"Sloveno",[u.ALBANIAN]:"Albanese",[u.SERBIAN_LATIN]:"Serbo Latino",[u.SWEDISH]:"Svedese",[u.SWEDISH_FINLAND]:"Svedese (Finlandia)",[u.SWEDISH_SWEDEN]:"Svedese (Svezia)",[u.SWAHILI]:"Swahili",[u.SYRIAC]:"Siriaco",[u.TAMIL]:"Tamil",[u.TELUGU]:"Telugu",[u.THAI]:"Thai",[u.TAGALOG]:"Tagalog",[u.TSWANA]:"Tswana",[u.TURKISH]:"Turco",[u.TATAR]:"Tataro",[u.UKRAINIAN]:"Ucraino",[u.URDU]:"Urdu",[u.UZBEK_LATIN]:"Uzbeco Latino",[u.VIETNAMESE]:"Vietnamita",[u.XHOSA]:"Xhosa",[u.CHINESE]:"Cinese",[u.CHINESE_SIMPLIFIED]:"Cinese Semplificato",[u.CHINESE_SIMPLIFIED_CHINA]:"Cinese Semplificato (Cina)",[u.CHINESE_TRADITIONAL]:"Cinese Tradizionale",[u.ZULU]:"Zulu",[u.AFRIKAANS_SOUTH_AFRICA]:"Afrikaans (Sudafrica)",[u.ARABIC_UNITED_ARAB_EMIRATES]:"Arabo (Emirati Arabi Uniti)",[u.ARABIC_BAHRAIN]:"Arabo (Bahrein)",[u.ARABIC_ALGERIA]:"Arabo (Algeria)",[u.ARABIC_EGYPT]:"Arabo (Egitto)",[u.ARABIC_IRAQ]:"Arabo (Iraq)",[u.ARABIC_JORDAN]:"Arabo (Giordania)",[u.ARABIC_KUWAIT]:"Arabo (Kuwait)",[u.ARABIC_LEBANON]:"Arabo (Libano)",[u.ARABIC_LIBYA]:"Arabo (Libia)",[u.ARABIC_MOROCCO]:"Arabo (Marocco)",[u.ARABIC_OMAN]:"Arabo (Oman)",[u.ARABIC_QATAR]:"Arabo (Qatar)",[u.ARABIC_SAUDI_ARABIA]:"Arabo (Arabia Saudita)",[u.ARABIC_SYRIA]:"Arabo (Siria)",[u.ARABIC_TUNISIA]:"Arabo (Tunisia)",[u.ARABIC_YEMEN]:"Arabo (Yemen)",[u.AZERI_LATIN_AZERBAIJAN]:"Azerbaigiano Latino (Azerbaigian)",[u.BELARUSIAN_BELARUS]:"Bielorusso (Bielorussia)",[u.BULGARIAN_BULGARIA]:"Bulgaro (Bulgaria)",[u.BOSNIAN_BOSNIA_AND_HERZEGOVINA]:"Bosniaco (Bosnia ed Erzegovina)",[u.CATALAN_SPAIN]:"Catalano (Spagna)",[u.CZECH_CZECH_REPUBLIC]:"Ceco (Repubblica Ceca)",[u.WELSH_UNITED_KINGDOM]:"Gallese (Regno Unito)",[u.DANISH_DENMARK]:"Danese (Danimarca)",[u.GERMAN_AUSTRIA]:"Tedesco (Austria)",[u.GERMAN_SWITZERLAND]:"Tedesco (Svizzera)",[u.GERMAN_GERMANY]:"Tedesco (Germania)",[u.GERMAN_LIECHTENSTEIN]:"Tedesco (Liechtenstein)",[u.GERMAN_LUXEMBOURG]:"Tedesco (Lussemburgo)",[u.DIVEHI_MALDIVES]:"Divehi (Maldive)",[u.GREEK_GREECE]:"Greco (Grecia)",[u.ENGLISH_AUSTRALIA]:"Inglese (Australia)",[u.ENGLISH_BELIZE]:"Inglese (Belize)",[u.ENGLISH_CANADA]:"Inglese (Canada)",[u.ENGLISH_CARIBBEAN]:"Inglese (Caraibi)",[u.ENGLISH_UNITED_KINGDOM]:"Inglese (Regno Unito)",[u.ENGLISH_IRELAND]:"Inglese (Irlanda)",[u.ENGLISH_JAMAICA]:"Inglese (Giamaica)",[u.ENGLISH_NEW_ZEALAND]:"Inglese (Nuova Zelanda)",[u.ENGLISH_PHILIPPINES]:"Inglese (Filippine)",[u.ENGLISH_TRINIDAD_AND_TOBAGO]:"Inglese (Trinidad e Tobago)",[u.ENGLISH_UNITED_STATES]:"Inglese (Stati Uniti)",[u.ENGLISH_SOUTH_AFRICA]:"Inglese (Sudafrica)",[u.ENGLISH_ZIMBABWE]:"Inglese (Zimbabwe)",[u.SPANISH_ARGENTINA]:"Spagnolo (Argentina)",[u.SPANISH_BOLIVIA]:"Spagnolo (Bolivia)",[u.SPANISH_CHILE]:"Spagnolo (Cile)",[u.SPANISH_COLOMBIA]:"Spagnolo (Colombia)",[u.SPANISH_COSTA_RICA]:"Spagnolo (Costa Rica)",[u.SPANISH_DOMINICAN_REPUBLIC]:"Spagnolo (Repubblica Dominicana)",[u.SPANISH_ECUADOR]:"Spagnolo (Ecuador)",[u.SPANISH_SPAIN]:"Spagnolo (Spagna)",[u.SPANISH_GUATEMALA]:"Spagnolo (Guatemala)",[u.SPANISH_HONDURAS]:"Spagnolo (Honduras)",[u.SPANISH_MEXICO]:"Spagnolo (Messico)",[u.SPANISH_NICARAGUA]:"Spagnolo (Nicaragua)",[u.SPANISH_PANAMA]:"Spagnolo (Panama)",[u.SPANISH_PERU]:"Spagnolo (Perù)",[u.SPANISH_PUERTO_RICO]:"Spagnolo (Porto Rico)",[u.SPANISH_PARAGUAY]:"Spagnolo (Paraguay)",[u.SPANISH_EL_SALVADOR]:"Spagnolo (El Salvador)",[u.SPANISH_URUGUAY]:"Spagnolo (Uruguay)",[u.SPANISH_VENEZUELA]:"Spagnolo (Venezuela)",[u.ESTONIAN_ESTONIA]:"Estone (Estonia)",[u.BASQUE_SPAIN]:"Basco (Spagna)",[u.FARSI_IRAN]:"Farsi (Iran)",[u.FINNISH_FINLAND]:"Finlandese (Finlandia)",[u.FAROESE_FAROE_ISLANDS]:"Faroese (Isole Faroe)",[u.FRENCH_BELGIUM]:"Francese (Belgio)",[u.FRENCH_CANADA]:"Francese (Canada)",[u.FRENCH_SWITZERLAND]:"Francese (Svizzera)",[u.FRENCH_FRANCE]:"Francese (Francia)",[u.FRENCH_LUXEMBOURG]:"Francese (Lussemburgo)",[u.FRENCH_PRINCIPALITY_OF_MONACO]:"Francese (Principato di Monaco)",[u.GALICIAN_SPAIN]:"Galiziano (Spagna)",[u.GUJARATI_INDIA]:"Gujarati (India)",[u.HEBREW_ISRAEL]:"Ebraico (Israele)",[u.HINDI_INDIA]:"Hindi (India)",[u.CROATIAN_BOSNIA_AND_HERZEGOVINA]:"Croato (Bosnia ed Erzegovina)",[u.CROATIAN_CROATIA]:"Croato (Croazia)",[u.HUNGARIAN_HUNGARY]:"Ungherese (Ungheria)",[u.ARMENIAN_ARMENIA]:"Armeno (Armenia)",[u.INDONESIAN_INDONESIA]:"Indonesiano (Indonesia)",[u.ICELANDIC_ICELAND]:"Islandese (Islanda)",[u.ITALIAN_SWITZERLAND]:"Italiano (Svizzera)",[u.ITALIAN_ITALY]:"Italiano (Italia)",[u.JAPANESE_JAPAN]:"Giapponese (Giappone)",[u.GEORGIAN_GEORGIA]:"Georgiano (Georgia)",[u.KAZAKH_KAZAKHSTAN]:"Kazako (Kazakistan)",[u.KANNADA_INDIA]:"Kannada (India)",[u.KOREAN_KOREA]:"Coreano (Corea)",[u.KONKANI_INDIA]:"Konkani (India)",[u.KYRGYZ_KYRGYZSTAN]:"Kirghiso (Kirghizistan)",[u.LITHUANIAN_LITHUANIA]:"Lituano (Lituania)",[u.LATVIAN_LATVIA]:"Lettone (Lettonia)",[u.MAORI_NEW_ZEALAND]:"Maori (Nuova Zelanda)",[u.FYRO_MACEDONIAN_MACEDONIA]:"Macedone FYRO (Macedonia)",[u.MONGOLIAN_MONGOLIA]:"Mongolo (Mongolia)",[u.MARATHI_INDIA]:"Marathi (India)",[u.MALAY_BRUNEI_DARUSSALAM]:"Malese (Brunei Darussalam)",[u.MALAY_MALAYSIA]:"Malese (Malesia)",[u.MALTESE_MALTA]:"Maltese (Malta)",[u.NORWEGIAN_BOKMAL_NORWAY]:"Norvegese Bokmål (Norvegia)",[u.DUTCH_BELGIUM]:"Olandese (Belgio)",[u.DUTCH_NETHERLANDS]:"Olandese (Paesi Bassi)",[u.NORWEGIAN_NYNORSK_NORWAY]:"Norvegese Nynorsk (Norvegia)",[u.NORTHERN_SOTHO_SOUTH_AFRICA]:"Sotho del Nord (Sudafrica)",[u.PUNJABI_INDIA]:"Punjabi (India)",[u.POLISH_POLAND]:"Polacco (Polonia)",[u.PASHTO_AFGHANISTAN]:"Pashto (Afghanistan)",[u.PORTUGUESE_BRAZIL]:"Portoghese (Brasile)",[u.PORTUGUESE_PORTUGAL]:"Portoghese (Portogallo)",[u.QUECHUA_BOLIVIA]:"Quechua (Bolivia)",[u.QUECHUA_ECUADOR]:"Quechua (Ecuador)",[u.QUECHUA_PERU]:"Quechua (Perù)",[u.ROMANIAN_ROMANIA]:"Rumeno (Romania)",[u.RUSSIAN_RUSSIA]:"Russo (Russia)",[u.SANSKRIT_INDIA]:"Sanscrito (India)",[u.SAMI_NORTHERN_FINLAND]:"Sami del Nord (Finlandia)",[u.SAMI_NORTHERN_NORWAY]:"Sami del Nord (Norvegia)",[u.SAMI_NORTHERN_SWEDEN]:"Sami del Nord (Svezia)",[u.SLOVAK_SLOVAKIA]:"Slovacco (Slovacchia)",[u.SLOVENIAN_SLOVENIA]:"Sloveno (Slovenia)",[u.ALBANIAN_ALBANIA]:"Albanese (Albania)",[u.SERBIAN_LATIN_BOSNIA_AND_HERZEGOVINA]:"Serbo Latino (Bosnia ed Erzegovina)",[u.SERBIAN_LATIN_SERBIA_AND_MONTENEGRO]:"Serbo Latino (Serbia e Montenegro)",[u.SWAHILI_KENYA]:"Swahili (Kenya)",[u.SYRIAC_SYRIA]:"Siriaco (Siria)",[u.TAMIL_INDIA]:"Tamil (India)",[u.TELUGU_INDIA]:"Telugu (India)",[u.THAI_THAILAND]:"Thai (Thailandia)",[u.TAGALOG_PHILIPPINES]:"Tagalog (Filippine)",[u.TSWANA_SOUTH_AFRICA]:"Tswana (Sudafrica)",[u.TURKISH_TURKEY]:"Turco (Turchia)",[u.TATAR_RUSSIA]:"Tataro (Russia)",[u.TSOGA]:"Tsoga",[u.UKRAINIAN_UKRAINE]:"Ucraino (Ucraina)",[u.URDU_ISLAMIC_REPUBLIC_OF_PAKISTAN]:"Urdu (Repubblica Islamica del Pakistan)",[u.UZBEK_LATIN_UZBEKISTAN]:"Uzbeco Latino (Uzbekistan)",[u.VIETNAMESE_VIET_NAM]:"Vietnamita (Vietnam)",[u.XHOSA_SOUTH_AFRICA]:"Xhosa (Sudafrica)",[u.CHINESE_HONG_KONG]:"Cinese (Hong Kong)",[u.CHINESE_MACAU]:"Cinese (Macao)",[u.CHINESE_SINGAPORE]:"Cinese (Singapore)",[u.ZULU_SOUTH_AFRICA]:"Zulu (Sudafrica)"},FS={[u.ENGLISH]:"英語",[u.FRENCH]:"フランス語",[u.SPANISH]:"スペイン語",[u.PORTUGUESE]:"ポルトガル語",[u.GERMAN]:"ドイツ語",[u.AFRIKAANS]:"アフリカーンス語",[u.ARABIC]:"アラビア語",[u.AZERI_LATIN]:"アゼルバイジャン語(ラテン文字)",[u.BELARUSIAN]:"ベラルーシ語",[u.BULGARIAN]:"ブルガリア語",[u.BOSNIAN]:"ボスニア語",[u.CATALAN]:"カタルーニャ語",[u.CZECH]:"チェコ語",[u.WELSH]:"ウェールズ語",[u.DANISH]:"デンマーク語",[u.DIVEHI]:"ディヴェヒ語",[u.GREEK]:"ギリシャ語",[u.ESPERANTO]:"エスペラント語",[u.ESTONIAN]:"エストニア語",[u.BASQUE]:"バスク語",[u.FARSI]:"ペルシア語",[u.FINNISH]:"フィンランド語",[u.FAROESE]:"フェロー語",[u.GALICIAN]:"ガリシア語",[u.GUJARATI]:"グジャラート語",[u.HEBREW]:"ヘブライ語",[u.HINDI]:"ヒンディー語",[u.CROATIAN]:"クロアチア語",[u.HUNGARIAN]:"ハンガリー語",[u.ARMENIAN]:"アルメニア語",[u.INDONESIAN]:"インドネシア語",[u.ICELANDIC]:"アイスランド語",[u.ITALIAN]:"イタリア語",[u.JAPANESE]:"日本語",[u.GEORGIAN]:"ジョージア語",[u.KAZAKH]:"カザフ語",[u.KANNADA]:"カンナダ語",[u.KOREAN]:"韓国語",[u.KONKANI]:"コンカニ語",[u.KYRGYZ]:"キルギス語",[u.LITHUANIAN]:"リトアニア語",[u.LATVIAN]:"ラトビア語",[u.MAORI]:"マオリ語",[u.FYRO_MACEDONIAN]:"マケドニア語(旧ユーゴスラビア)",[u.MONGOLIAN]:"モンゴル語",[u.MARATHI]:"マラーティー語",[u.MALAY]:"マレー語",[u.MALTESE]:"マルタ語",[u.NORWEGIAN_BOKMAL]:"ノルウェー語(ブークモール)",[u.DUTCH]:"オランダ語",[u.NORTHERN_SOTHO]:"ノーザンソト語",[u.PUNJABI]:"パンジャブ語",[u.POLISH]:"ポーランド語",[u.PASHTO]:"パシュトー語",[u.QUECHUA]:"ケチュア語",[u.ROMANIAN]:"ルーマニア語",[u.RUSSIAN]:"ロシア語",[u.SANSKRIT]:"サンスクリット語",[u.SAMI_NORTHERN]:"サーミ語(北部)",[u.SLOVAK]:"スロバキア語",[u.SLOVENIAN]:"スロベニア語",[u.ALBANIAN]:"アルバニア語",[u.SERBIAN_LATIN]:"セルビア語(ラテン文字)",[u.SWEDISH]:"スウェーデン語",[u.SWEDISH_FINLAND]:"スウェーデン語(フィンランド)",[u.SWEDISH_SWEDEN]:"スウェーデン語(スウェーデン)",[u.SWAHILI]:"スワヒリ語",[u.SYRIAC]:"シリア語",[u.TAMIL]:"タミル語",[u.TELUGU]:"テルグ語",[u.THAI]:"タイ語",[u.TAGALOG]:"タガログ語",[u.TSWANA]:"ツワナ語",[u.TURKISH]:"トルコ語",[u.TATAR]:"タタール語",[u.UKRAINIAN]:"ウクライナ語",[u.URDU]:"ウルドゥー語",[u.UZBEK_LATIN]:"ウズベク語(ラテン文字)",[u.VIETNAMESE]:"ベトナム語",[u.XHOSA]:"コーサ語",[u.CHINESE]:"中国語",[u.CHINESE_SIMPLIFIED]:"中国語(簡体字)",[u.CHINESE_SIMPLIFIED_CHINA]:"中国語(簡体字、中国)",[u.CHINESE_TRADITIONAL]:"中国語(繁体字)",[u.ZULU]:"ズールー語",[u.AFRIKAANS_SOUTH_AFRICA]:"アフリカーンス語(南アフリカ)",[u.ARABIC_UNITED_ARAB_EMIRATES]:"アラビア語(アラブ首長国連邦)",[u.ARABIC_BAHRAIN]:"アラビア語(バーレーン)",[u.ARABIC_ALGERIA]:"アラビア語(アルジェリア)",[u.ARABIC_EGYPT]:"アラビア語(エジプト)",[u.ARABIC_IRAQ]:"アラビア語(イラク)",[u.ARABIC_JORDAN]:"アラビア語(ヨルダン)",[u.ARABIC_KUWAIT]:"アラビア語(クウェート)",[u.ARABIC_LEBANON]:"アラビア語(レバノン)",[u.ARABIC_LIBYA]:"アラビア語(リビア)",[u.ARABIC_MOROCCO]:"アラビア語(モロッコ)",[u.ARABIC_OMAN]:"アラビア語(オマーン)",[u.ARABIC_QATAR]:"アラビア語(カタール)",[u.ARABIC_SAUDI_ARABIA]:"アラビア語(サウジアラビア)",[u.ARABIC_SYRIA]:"アラビア語(シリア)",[u.ARABIC_TUNISIA]:"アラビア語(チュニジア)",[u.ARABIC_YEMEN]:"アラビア語(イエメン)",[u.AZERI_LATIN_AZERBAIJAN]:"アゼルバイジャン語(ラテン文字、アゼルバイジャン)",[u.BELARUSIAN_BELARUS]:"ベラルーシ語(ベラルーシ)",[u.BULGARIAN_BULGARIA]:"ブルガリア語(ブルガリア)",[u.BOSNIAN_BOSNIA_AND_HERZEGOVINA]:"ボスニア語(ボスニア・ヘルツェゴビナ)",[u.CATALAN_SPAIN]:"カタルーニャ語(スペイン)",[u.CZECH_CZECH_REPUBLIC]:"チェコ語(チェコ共和国)",[u.WELSH_UNITED_KINGDOM]:"ウェールズ語(イギリス)",[u.DANISH_DENMARK]:"デンマーク語(デンマーク)",[u.GERMAN_AUSTRIA]:"ドイツ語(オーストリア)",[u.GERMAN_SWITZERLAND]:"ドイツ語(スイス)",[u.GERMAN_GERMANY]:"ドイツ語(ドイツ)",[u.GERMAN_LIECHTENSTEIN]:"ドイツ語(リヒテンシュタイン)",[u.GERMAN_LUXEMBOURG]:"ドイツ語(ルクセンブルク)",[u.DIVEHI_MALDIVES]:"ディヴェヒ語(モルディブ)",[u.GREEK_GREECE]:"ギリシャ語(ギリシャ)",[u.ENGLISH_AUSTRALIA]:"英語(オーストラリア)",[u.ENGLISH_BELIZE]:"英語(ベリーズ)",[u.ENGLISH_CANADA]:"英語(カナダ)",[u.ENGLISH_CARIBBEAN]:"英語(カリブ)",[u.ENGLISH_UNITED_KINGDOM]:"英語(イギリス)",[u.ENGLISH_IRELAND]:"英語(アイルランド)",[u.ENGLISH_JAMAICA]:"英語(ジャマイカ)",[u.ENGLISH_NEW_ZEALAND]:"英語(ニュージーランド)",[u.ENGLISH_PHILIPPINES]:"英語(フィリピン)",[u.ENGLISH_TRINIDAD_AND_TOBAGO]:"英語(トリニダード・トバゴ)",[u.ENGLISH_UNITED_STATES]:"英語(アメリカ合衆国)",[u.ENGLISH_SOUTH_AFRICA]:"英語(南アフリカ)",[u.ENGLISH_ZIMBABWE]:"英語(ジンバブエ)",[u.SPANISH_ARGENTINA]:"スペイン語(アルゼンチン)",[u.SPANISH_BOLIVIA]:"スペイン語(ボリビア)",[u.SPANISH_CHILE]:"スペイン語(チリ)",[u.SPANISH_COLOMBIA]:"スペイン語(コロンビア)",[u.SPANISH_COSTA_RICA]:"スペイン語(コスタリカ)",[u.SPANISH_DOMINICAN_REPUBLIC]:"スペイン語(ドミニカ共和国)",[u.SPANISH_ECUADOR]:"スペイン語(エクアドル)",[u.SPANISH_SPAIN]:"スペイン語(スペイン)",[u.SPANISH_GUATEMALA]:"スペイン語(グアテマラ)",[u.SPANISH_HONDURAS]:"スペイン語(ホンジュラス)",[u.SPANISH_MEXICO]:"スペイン語(メキシコ)",[u.SPANISH_NICARAGUA]:"スペイン語(ニカラグア)",[u.SPANISH_PANAMA]:"スペイン語(パナマ)",[u.SPANISH_PERU]:"スペイン語(ペルー)",[u.SPANISH_PUERTO_RICO]:"スペイン語(プエルトリコ)",[u.SPANISH_PARAGUAY]:"スペイン語(パラグアイ)",[u.SPANISH_EL_SALVADOR]:"スペイン語(エルサルバドル)",[u.SPANISH_URUGUAY]:"スペイン語(ウルグアイ)",[u.SPANISH_VENEZUELA]:"スペイン語(ベネズエラ)",[u.ESTONIAN_ESTONIA]:"エストニア語(エストニア)",[u.BASQUE_SPAIN]:"バスク語(スペイン)",[u.FARSI_IRAN]:"ペルシア語(イラン)",[u.FINNISH_FINLAND]:"フィンランド語(フィンランド)",[u.FAROESE_FAROE_ISLANDS]:"フェロー語(フェロー諸島)",[u.FRENCH_BELGIUM]:"フランス語(ベルギー)",[u.FRENCH_CANADA]:"フランス語(カナダ)",[u.FRENCH_SWITZERLAND]:"フランス語(スイス)",[u.FRENCH_FRANCE]:"フランス語(フランス)",[u.FRENCH_LUXEMBOURG]:"フランス語(ルクセンブルク)",[u.FRENCH_PRINCIPALITY_OF_MONACO]:"フランス語(モナコ公国)",[u.GALICIAN_SPAIN]:"ガリシア語(スペイン)",[u.GUJARATI_INDIA]:"グジャラート語(インド)",[u.HEBREW_ISRAEL]:"ヘブライ語(イスラエル)",[u.HINDI_INDIA]:"ヒンディー語(インド)",[u.CROATIAN_BOSNIA_AND_HERZEGOVINA]:"クロアチア語(ボスニア・ヘルツェゴビナ)",[u.CROATIAN_CROATIA]:"クロアチア語(クロアチア)",[u.HUNGARIAN_HUNGARY]:"ハンガリー語(ハンガリー)",[u.ARMENIAN_ARMENIA]:"アルメニア語(アルメニア)",[u.INDONESIAN_INDONESIA]:"インドネシア語(インドネシア)",[u.ICELANDIC_ICELAND]:"アイスランド語(アイスランド)",[u.ITALIAN_SWITZERLAND]:"イタリア語(スイス)",[u.ITALIAN_ITALY]:"イタリア語(イタリア)",[u.JAPANESE_JAPAN]:"日本語(日本)",[u.GEORGIAN_GEORGIA]:"ジョージア語(ジョージア)",[u.KAZAKH_KAZAKHSTAN]:"カザフ語(カザフスタン)",[u.KANNADA_INDIA]:"カンナダ語(インド)",[u.KOREAN_KOREA]:"韓国語(韓国)",[u.KONKANI_INDIA]:"コンカニ語(インド)",[u.KYRGYZ_KYRGYZSTAN]:"キルギス語(キルギス)",[u.LITHUANIAN_LITHUANIA]:"リトアニア語(リトアニア)",[u.LATVIAN_LATVIA]:"ラトビア語(ラトビア)",[u.MAORI_NEW_ZEALAND]:"マオリ語(ニュージーランド)",[u.FYRO_MACEDONIAN_MACEDONIA]:"マケドニア語(旧ユーゴスラビア、マケドニア)",[u.MONGOLIAN_MONGOLIA]:"モンゴル語(モンゴル)",[u.MARATHI_INDIA]:"マラーティー語(インド)",[u.MALAY_BRUNEI_DARUSSALAM]:"マレー語(ブルネイ・ダルサラーム)",[u.MALAY_MALAYSIA]:"マレー語(マレーシア)",[u.MALTESE_MALTA]:"マルタ語(マルタ)",[u.NORWEGIAN_BOKMAL_NORWAY]:"ノルウェー語(ブークモール、ノルウェー)",[u.DUTCH_BELGIUM]:"オランダ語(ベルギー)",[u.DUTCH_NETHERLANDS]:"オランダ語(オランダ)",[u.NORWEGIAN_NYNORSK_NORWAY]:"ノルウェー語(ニーノルスク、ノルウェー)",[u.NORTHERN_SOTHO_SOUTH_AFRICA]:"ノーザンソト語(南アフリカ)",[u.PUNJABI_INDIA]:"パンジャブ語(インド)",[u.POLISH_POLAND]:"ポーランド語(ポーランド)",[u.PASHTO_AFGHANISTAN]:"パシュトー語(アフガニスタン)",[u.PORTUGUESE_BRAZIL]:"ポルトガル語(ブラジル)",[u.PORTUGUESE_PORTUGAL]:"ポルトガル語(ポルトガル)",[u.QUECHUA_BOLIVIA]:"ケチュア語(ボリビア)",[u.QUECHUA_ECUADOR]:"ケチュア語(エクアドル)",[u.QUECHUA_PERU]:"ケチュア語(ペルー)",[u.ROMANIAN_ROMANIA]:"ルーマニア語(ルーマニア)",[u.RUSSIAN_RUSSIA]:"ロシア語(ロシア)",[u.SANSKRIT_INDIA]:"サンスクリット語(インド)",[u.SAMI_NORTHERN_FINLAND]:"サーミ語(北部、フィンランド)",[u.SAMI_NORTHERN_NORWAY]:"サーミ語(北部、ノルウェー)",[u.SAMI_NORTHERN_SWEDEN]:"サーミ語(北部、スウェーデン)",[u.SLOVAK_SLOVAKIA]:"スロバキア語(スロバキア)",[u.SLOVENIAN_SLOVENIA]:"スロベニア語(スロベニア)",[u.ALBANIAN_ALBANIA]:"アルバニア語(アルバニア)",[u.SERBIAN_LATIN_BOSNIA_AND_HERZEGOVINA]:"セルビア語(ラテン文字、ボスニア・ヘルツェゴビナ)",[u.SERBIAN_LATIN_SERBIA_AND_MONTENEGRO]:"セルビア語(ラテン文字、セルビア・モンテネグロ)",[u.SWAHILI_KENYA]:"スワヒリ語(ケニア)",[u.SYRIAC_SYRIA]:"シリア語(シリア)",[u.TAMIL_INDIA]:"タミル語(インド)",[u.TELUGU_INDIA]:"テルグ語(インド)",[u.THAI_THAILAND]:"タイ語(タイ)",[u.TAGALOG_PHILIPPINES]:"タガログ語(フィリピン)",[u.TSWANA_SOUTH_AFRICA]:"ツワナ語(南アフリカ)",[u.TURKISH_TURKEY]:"トルコ語(トルコ)",[u.TATAR_RUSSIA]:"タタール語(ロシア)",[u.TSOGA]:"ツォガ語",[u.UKRAINIAN_UKRAINE]:"ウクライナ語(ウクライナ)",[u.URDU_ISLAMIC_REPUBLIC_OF_PAKISTAN]:"ウルドゥー語(パキスタン・イスラム共和国)",[u.UZBEK_LATIN_UZBEKISTAN]:"ウズベク語(ラテン文字、ウズベキスタン)",[u.VIETNAMESE_VIET_NAM]:"ベトナム語(ベトナム)",[u.XHOSA_SOUTH_AFRICA]:"コーサ語(南アフリカ)",[u.CHINESE_HONG_KONG]:"中国語(香港)",[u.CHINESE_MACAU]:"中国語(マカオ)",[u.CHINESE_SINGAPORE]:"中国語(シンガポール)",[u.ZULU_SOUTH_AFRICA]:"ズールー語(南アフリカ)"},LS={[u.ENGLISH]:"영어",[u.FRENCH]:"프랑스어",[u.SPANISH]:"스페인어",[u.PORTUGUESE]:"포르투갈어",[u.GERMAN]:"독일어",[u.AFRIKAANS]:"아프리칸스어",[u.ARABIC]:"아랍어",[u.AZERI_LATIN]:"아제르바이잔어 (라틴 문자)",[u.BELARUSIAN]:"벨라루스어",[u.BULGARIAN]:"불가리아어",[u.BOSNIAN]:"보스니아어",[u.CATALAN]:"카탈루냐어",[u.CZECH]:"체코어",[u.WELSH]:"웨일스어",[u.DANISH]:"덴마크어",[u.DIVEHI]:"디베히어",[u.GREEK]:"그리스어",[u.ESPERANTO]:"에스페란토어",[u.ESTONIAN]:"에스토니아어",[u.BASQUE]:"바스크어",[u.FARSI]:"페르시아어",[u.FINNISH]:"핀란드어",[u.FAROESE]:"페로어",[u.GALICIAN]:"갈리시아어",[u.GUJARATI]:"구자라티어",[u.HEBREW]:"히브리어",[u.HINDI]:"힌디어",[u.CROATIAN]:"크로아티아어",[u.HUNGARIAN]:"헝가리어",[u.ARMENIAN]:"아르메니아어",[u.INDONESIAN]:"인도네시아어",[u.ICELANDIC]:"아이슬란드어",[u.ITALIAN]:"이탈리아어",[u.JAPANESE]:"일본어",[u.GEORGIAN]:"조지아어",[u.KAZAKH]:"카자흐어",[u.KANNADA]:"칸나다어",[u.KOREAN]:"한국어",[u.KONKANI]:"콩카니어",[u.KYRGYZ]:"키르기스어",[u.LITHUANIAN]:"리투아니아어",[u.LATVIAN]:"라트비아어",[u.MAORI]:"마오리어",[u.FYRO_MACEDONIAN]:"마케도니아어 (구 유고슬라비아)",[u.MONGOLIAN]:"몽골어",[u.MARATHI]:"마라티어",[u.MALAY]:"말레이어",[u.MALTESE]:"몰타어",[u.NORWEGIAN_BOKMAL]:"노르웨이어 (보크말)",[u.DUTCH]:"네덜란드어",[u.NORTHERN_SOTHO]:"북 소토어",[u.PUNJABI]:"펀자브어",[u.POLISH]:"폴란드어",[u.PASHTO]:"파슈토어",[u.QUECHUA]:"케추아어",[u.ROMANIAN]:"루마니아어",[u.RUSSIAN]:"러시아어",[u.SANSKRIT]:"산스크리트어",[u.SAMI_NORTHERN]:"사미어 (북부)",[u.SLOVAK]:"슬로바키아어",[u.SLOVENIAN]:"슬로베니아어",[u.ALBANIAN]:"알바니아어",[u.SERBIAN_LATIN]:"세르비아어 (라틴 문자)",[u.SWEDISH]:"스웨덴어",[u.SWEDISH_FINLAND]:"스웨덴어 (핀란드)",[u.SWEDISH_SWEDEN]:"스웨덴어 (스웨덴)",[u.SWAHILI]:"스와힐리어",[u.SYRIAC]:"시리아어",[u.TAMIL]:"타밀어",[u.TELUGU]:"텔루구어",[u.THAI]:"태국어",[u.TAGALOG]:"타갈로그어",[u.TSWANA]:"츠와나어",[u.TURKISH]:"터키어",[u.TATAR]:"타타르어",[u.UKRAINIAN]:"우크라이나어",[u.URDU]:"우르두어",[u.UZBEK_LATIN]:"우즈벡어 (라틴 문자)",[u.VIETNAMESE]:"베트남어",[u.XHOSA]:"코사어",[u.CHINESE]:"중국어",[u.CHINESE_SIMPLIFIED]:"중국어 (간체)",[u.CHINESE_SIMPLIFIED_CHINA]:"중국어 (간체, 중국)",[u.CHINESE_TRADITIONAL]:"중국어 (번체)",[u.ZULU]:"줄루어",[u.AFRIKAANS_SOUTH_AFRICA]:"아프리칸스어 (남아프리카)",[u.ARABIC_UNITED_ARAB_EMIRATES]:"아랍어 (아랍에미리트)",[u.ARABIC_BAHRAIN]:"아랍어 (바레인)",[u.ARABIC_ALGERIA]:"아랍어 (알제리)",[u.ARABIC_EGYPT]:"아랍어 (이집트)",[u.ARABIC_IRAQ]:"아랍어 (이라크)",[u.ARABIC_JORDAN]:"아랍어 (요르단)",[u.ARABIC_KUWAIT]:"아랍어 (쿠웨이트)",[u.ARABIC_LEBANON]:"아랍어 (레바논)",[u.ARABIC_LIBYA]:"아랍어 (리비아)",[u.ARABIC_MOROCCO]:"아랍어 (모로코)",[u.ARABIC_OMAN]:"아랍어 (오만)",[u.ARABIC_QATAR]:"아랍어 (카타르)",[u.ARABIC_SAUDI_ARABIA]:"아랍어 (사우디아라비아)",[u.ARABIC_SYRIA]:"아랍어 (시리아)",[u.ARABIC_TUNISIA]:"아랍어 (튀니지)",[u.ARABIC_YEMEN]:"아랍어 (예멘)",[u.AZERI_LATIN_AZERBAIJAN]:"아제르바이잔어 (라틴 문자, 아제르바이잔)",[u.BELARUSIAN_BELARUS]:"벨라루스어 (벨라루스)",[u.BULGARIAN_BULGARIA]:"불가리아어 (불가리아)",[u.BOSNIAN_BOSNIA_AND_HERZEGOVINA]:"보스니아어 (보스니아 헤르체고비나)",[u.CATALAN_SPAIN]:"카탈루냐어 (스페인)",[u.CZECH_CZECH_REPUBLIC]:"체코어 (체코 공화국)",[u.WELSH_UNITED_KINGDOM]:"웨일스어 (영국)",[u.DANISH_DENMARK]:"덴마크어 (덴마크)",[u.GERMAN_AUSTRIA]:"독일어 (오스트리아)",[u.GERMAN_SWITZERLAND]:"독일어 (스위스)",[u.GERMAN_GERMANY]:"독일어 (독일)",[u.GERMAN_LIECHTENSTEIN]:"독일어 (리히텐슈타인)",[u.GERMAN_LUXEMBOURG]:"독일어 (룩셈부르크)",[u.DIVEHI_MALDIVES]:"디베히어 (몰디브)",[u.GREEK_GREECE]:"그리스어 (그리스)",[u.ENGLISH_AUSTRALIA]:"영어 (호주)",[u.ENGLISH_BELIZE]:"영어 (벨리즈)",[u.ENGLISH_CANADA]:"영어 (캐나다)",[u.ENGLISH_CARIBBEAN]:"영어 (카리브)",[u.ENGLISH_UNITED_KINGDOM]:"영어 (영국)",[u.ENGLISH_IRELAND]:"영어 (아일랜드)",[u.ENGLISH_JAMAICA]:"영어 (자메이카)",[u.ENGLISH_NEW_ZEALAND]:"영어 (뉴질랜드)",[u.ENGLISH_PHILIPPINES]:"영어 (필리핀)",[u.ENGLISH_TRINIDAD_AND_TOBAGO]:"영어 (트리니다드 토바고)",[u.ENGLISH_UNITED_STATES]:"영어 (미국)",[u.ENGLISH_SOUTH_AFRICA]:"영어 (남아프리카)",[u.ENGLISH_ZIMBABWE]:"영어 (짐바브웨)",[u.SPANISH_ARGENTINA]:"스페인어 (아르헨티나)",[u.SPANISH_BOLIVIA]:"스페인어 (볼리비아)",[u.SPANISH_CHILE]:"스페인어 (칠레)",[u.SPANISH_COLOMBIA]:"스페인어 (콜롬비아)",[u.SPANISH_COSTA_RICA]:"스페인어 (코스타리카)",[u.SPANISH_DOMINICAN_REPUBLIC]:"스페인어 (도미니카 공화국)",[u.SPANISH_ECUADOR]:"스페인어 (에콰도르)",[u.SPANISH_SPAIN]:"스페인어 (스페인)",[u.SPANISH_GUATEMALA]:"스페인어 (과테말라)",[u.SPANISH_HONDURAS]:"스페인어 (온두라스)",[u.SPANISH_MEXICO]:"스페인어 (멕시코)",[u.SPANISH_NICARAGUA]:"스페인어 (니카라과)",[u.SPANISH_PANAMA]:"스페인어 (파나마)",[u.SPANISH_PERU]:"스페인어 (페루)",[u.SPANISH_PUERTO_RICO]:"스페인어 (푸에르토리코)",[u.SPANISH_PARAGUAY]:"스페인어 (파라과이)",[u.SPANISH_EL_SALVADOR]:"스페인어 (엘살바도르)",[u.SPANISH_URUGUAY]:"스페인어 (우루과이)",[u.SPANISH_VENEZUELA]:"스페인어 (베네수엘라)",[u.ESTONIAN_ESTONIA]:"에스토니아어 (에스토니아)",[u.BASQUE_SPAIN]:"바스크어 (스페인)",[u.FARSI_IRAN]:"페르시아어 (이란)",[u.FINNISH_FINLAND]:"핀란드어 (핀란드)",[u.FAROESE_FAROE_ISLANDS]:"페로어 (페로 제도)",[u.FRENCH_BELGIUM]:"프랑스어 (벨기에)",[u.FRENCH_CANADA]:"프랑스어 (캐나다)",[u.FRENCH_SWITZERLAND]:"프랑스어 (스위스)",[u.FRENCH_FRANCE]:"프랑스어 (프랑스)",[u.FRENCH_LUXEMBOURG]:"프랑스어 (룩셈부르크)",[u.FRENCH_PRINCIPALITY_OF_MONACO]:"프랑스어 (모나코 공국)",[u.GALICIAN_SPAIN]:"갈리시아어 (스페인)",[u.GUJARATI_INDIA]:"구자라티어 (인도)",[u.HEBREW_ISRAEL]:"히브리어 (이스라엘)",[u.HINDI_INDIA]:"힌디어 (인도)",[u.CROATIAN_BOSNIA_AND_HERZEGOVINA]:"크로아티아어 (보스니아 헤르체고비나)",[u.CROATIAN_CROATIA]:"크로아티아어 (크로아티아)",[u.HUNGARIAN_HUNGARY]:"헝가리어 (헝가리)",[u.ARMENIAN_ARMENIA]:"아르메니아어 (아르메니아)",[u.INDONESIAN_INDONESIA]:"인도네시아어 (인도네시아)",[u.ICELANDIC_ICELAND]:"아이슬란드어 (아이슬란드)",[u.ITALIAN_SWITZERLAND]:"이탈리아어 (스위스)",[u.ITALIAN_ITALY]:"이탈리아어 (이탈리아)",[u.JAPANESE_JAPAN]:"일본어 (일본)",[u.GEORGIAN_GEORGIA]:"조지아어 (조지아)",[u.KAZAKH_KAZAKHSTAN]:"카자흐어 (카자흐스탄)",[u.KANNADA_INDIA]:"칸나다어 (인도)",[u.KOREAN_KOREA]:"한국어 (한국)",[u.KONKANI_INDIA]:"콩카니어 (인도)",[u.KYRGYZ_KYRGYZSTAN]:"키르기스어 (키르기스스탄)",[u.LITHUANIAN_LITHUANIA]:"리투아니아어 (리투아니아)",[u.LATVIAN_LATVIA]:"라트비아어 (라트비아)",[u.MAORI_NEW_ZEALAND]:"마오리어 (뉴질랜드)",[u.FYRO_MACEDONIAN_MACEDONIA]:"마케도니아어 (구 유고슬라비아, 마케도니아)",[u.MONGOLIAN_MONGOLIA]:"몽골어 (몽골)",[u.MARATHI_INDIA]:"마라티어 (인도)",[u.MALAY_BRUNEI_DARUSSALAM]:"말레이어 (브루나이 다루살람)",[u.MALAY_MALAYSIA]:"말레이어 (말레이시아)",[u.MALTESE_MALTA]:"몰타어 (몰타)",[u.NORWEGIAN_BOKMAL_NORWAY]:"노르웨이어 (보크말, 노르웨이)",[u.DUTCH_BELGIUM]:"네덜란드어 (벨기에)",[u.DUTCH_NETHERLANDS]:"네덜란드어 (네덜란드)",[u.NORWEGIAN_NYNORSK_NORWAY]:"노르웨이어 (니노르스크, 노르웨이)",[u.NORTHERN_SOTHO_SOUTH_AFRICA]:"북 소토어 (남아프리카)",[u.PUNJABI_INDIA]:"펀자브어 (인도)",[u.POLISH_POLAND]:"폴란드어 (폴란드)",[u.PASHTO_AFGHANISTAN]:"파슈토어 (아프가니스탄)",[u.PORTUGUESE_BRAZIL]:"포르투갈어 (브라질)",[u.PORTUGUESE_PORTUGAL]:"포르투갈어 (포르투갈)",[u.QUECHUA_BOLIVIA]:"케추아어 (볼리비아)",[u.QUECHUA_ECUADOR]:"케추아어 (에콰도르)",[u.QUECHUA_PERU]:"케추아어 (페루)",[u.ROMANIAN_ROMANIA]:"루마니아어 (루마니아)",[u.RUSSIAN_RUSSIA]:"러시아어 (러시아)",[u.SANSKRIT_INDIA]:"산스크리트어 (인도)",[u.SAMI_NORTHERN_FINLAND]:"사미어 (북부, 핀란드)",[u.SAMI_NORTHERN_NORWAY]:"사미어 (북부, 노르웨이)",[u.SAMI_NORTHERN_SWEDEN]:"사미어 (북부, 스웨덴)",[u.SLOVAK_SLOVAKIA]:"슬로바키아어 (슬로바키아)",[u.SLOVENIAN_SLOVENIA]:"슬로베니아어 (슬로베니아)",[u.ALBANIAN_ALBANIA]:"알바니아어 (알바니아)",[u.SERBIAN_LATIN_BOSNIA_AND_HERZEGOVINA]:"세르비아어 (라틴 문자, 보스니아 헤르체고비나)",[u.SERBIAN_LATIN_SERBIA_AND_MONTENEGRO]:"세르비아어 (라틴 문자, 세르비아 및 몬테네그로)",[u.SWAHILI_KENYA]:"스와힐리어 (케냐)",[u.SYRIAC_SYRIA]:"시리아어 (시리아)",[u.TAMIL_INDIA]:"타밀어 (인도)",[u.TELUGU_INDIA]:"텔루구어 (인도)",[u.THAI_THAILAND]:"태국어 (태국)",[u.TAGALOG_PHILIPPINES]:"타갈로그어 (필리핀)",[u.TSWANA_SOUTH_AFRICA]:"츠와나어 (남아프리카)",[u.TURKISH_TURKEY]:"터키어 (터키)",[u.TATAR_RUSSIA]:"타타르어 (러시아)",[u.TSOGA]:"츠오가어",[u.UKRAINIAN_UKRAINE]:"우크라이나어 (우크라이나)",[u.URDU_ISLAMIC_REPUBLIC_OF_PAKISTAN]:"우르두어 (파키스탄 이슬람 공화국)",[u.UZBEK_LATIN_UZBEKISTAN]:"우즈벡어 (라틴 문자, 우즈베키스탄)",[u.VIETNAMESE_VIET_NAM]:"베트남어 (베트남)",[u.XHOSA_SOUTH_AFRICA]:"코사어 (남아프리카)",[u.CHINESE_HONG_KONG]:"중국어 (홍콩)",[u.CHINESE_MACAU]:"중국어 (마카오)",[u.CHINESE_SINGAPORE]:"중국어 (싱가포르)",[u.ZULU_SOUTH_AFRICA]:"줄루어 (남아프리카)"},wS={[u.ENGLISH]:"English",[u.FRENCH]:"Français",[u.SPANISH]:"Español",[u.PORTUGUESE]:"Português",[u.GERMAN]:"Deutsch",[u.AFRIKAANS]:"Afrikaans",[u.ARABIC]:"العربية",[u.AZERI_LATIN]:"Azərbaycan",[u.BELARUSIAN]:"Беларуская",[u.BULGARIAN]:"Български",[u.BOSNIAN]:"Bosanski",[u.CATALAN]:"Català",[u.CZECH]:"Čeština",[u.WELSH]:"Cymraeg",[u.DANISH]:"Dansk",[u.DIVEHI]:"ދިވެހި",[u.GREEK]:"Ελληνικά",[u.ESPERANTO]:"Esperanto",[u.ESTONIAN]:"Eesti",[u.BASQUE]:"Euskara",[u.FARSI]:"فارسی",[u.FINNISH]:"Suomi",[u.FAROESE]:"Føroyskt",[u.GALICIAN]:"Galego",[u.GUJARATI]:"ગુજરાતી",[u.HEBREW]:"עברית",[u.HINDI]:"हिन्दी",[u.CROATIAN]:"Hrvatski",[u.HUNGARIAN]:"Magyar",[u.ARMENIAN]:"Հայերեն",[u.INDONESIAN]:"Bahasa Indonesia",[u.ICELANDIC]:"Íslenska",[u.ITALIAN]:"Italiano",[u.JAPANESE]:"日本語",[u.GEORGIAN]:"ქართული",[u.KAZAKH]:"Қазақ",[u.KANNADA]:"ಕನ್ನಡ",[u.KOREAN]:"한국어",[u.KONKANI]:"कोंकणी",[u.KYRGYZ]:"Кыргыз",[u.LITHUANIAN]:"Lietuvių",[u.LATVIAN]:"Latviešu",[u.MAORI]:"Māori",[u.FYRO_MACEDONIAN]:"Македонски",[u.MONGOLIAN]:"Монгол",[u.MARATHI]:"मराठी",[u.MALAY]:"Bahasa Melayu",[u.MALTESE]:"Malti",[u.NORWEGIAN_BOKMAL]:"Norsk Bokmål",[u.DUTCH]:"Nederlands",[u.NORTHERN_SOTHO]:"Sesotho sa Leboa",[u.PUNJABI]:"ਪੰਜਾਬੀ",[u.POLISH]:"Polski",[u.PASHTO]:"پښتو",[u.QUECHUA]:"Runasimi",[u.ROMANIAN]:"Română",[u.RUSSIAN]:"Русский",[u.SANSKRIT]:"संस्कृतम्",[u.SAMI_NORTHERN]:"Davvisámegiella",[u.SLOVAK]:"Slovenčina",[u.SLOVENIAN]:"Slovenščina",[u.ALBANIAN]:"Shqip",[u.SERBIAN_LATIN]:"Srpski",[u.SWEDISH]:"Svenska",[u.SWEDISH_FINLAND]:"Svenska (Finland)",[u.SWEDISH_SWEDEN]:"Svenska (Sverige)",[u.SWAHILI]:"Kiswahili",[u.SYRIAC]:"ܣܘܪܝܝܐ",[u.TAMIL]:"தமிழ்",[u.TELUGU]:"తెలుగు",[u.THAI]:"ไทย",[u.TAGALOG]:"Tagalog",[u.TSWANA]:"Setswana",[u.TURKISH]:"Türkçe",[u.TATAR]:"Xitsonga",[u.UKRAINIAN]:"Українська",[u.URDU]:"اردو",[u.UZBEK_LATIN]:"O‘zbekcha",[u.VIETNAMESE]:"Tiếng Việt",[u.XHOSA]:"isiXhosa",[u.CHINESE]:"中文",[u.CHINESE_SIMPLIFIED]:"简体中文",[u.CHINESE_SIMPLIFIED_CHINA]:"简体中文 (中国)",[u.CHINESE_TRADITIONAL]:"繁體中文",[u.ZULU]:"isiZulu",[u.AFRIKAANS_SOUTH_AFRICA]:"Afrikaans (Suid-Afrika)",[u.ARABIC_UNITED_ARAB_EMIRATES]:"العربية (الإمارات)",[u.ARABIC_BAHRAIN]:"العربية (البحرين)",[u.ARABIC_ALGERIA]:"العربية (الجزائر)",[u.ARABIC_EGYPT]:"العربية (مصر)",[u.ARABIC_IRAQ]:"العربية (العراق)",[u.ARABIC_JORDAN]:"العربية (الأردن)",[u.ARABIC_KUWAIT]:"العربية (الكويت)",[u.ARABIC_LEBANON]:"العربية (لبنان)",[u.ARABIC_LIBYA]:"العربية (ليبيا)",[u.ARABIC_MOROCCO]:"العربية (المغرب)",[u.ARABIC_OMAN]:"العربية (عمان)",[u.ARABIC_QATAR]:"العربية (قطر)",[u.ARABIC_SAUDI_ARABIA]:"العربية (السعودية)",[u.ARABIC_SYRIA]:"العربية (سوريا)",[u.ARABIC_TUNISIA]:"العربية (تونس)",[u.ARABIC_YEMEN]:"العربية (اليمن)",[u.AZERI_LATIN_AZERBAIJAN]:"Azərbaycan (Azərbaycan)",[u.BELARUSIAN_BELARUS]:"Беларуская (Беларусь)",[u.BULGARIAN_BULGARIA]:"Български (България)",[u.BOSNIAN_BOSNIA_AND_HERZEGOVINA]:"Bosanski (Bosna i Hercegovina)",[u.CATALAN_SPAIN]:"Català (Espanya)",[u.CZECH_CZECH_REPUBLIC]:"Čeština (Česká republika)",[u.WELSH_UNITED_KINGDOM]:"Cymraeg (Y Deyrnas Unedig)",[u.DANISH_DENMARK]:"Dansk (Danmark)",[u.GERMAN_AUSTRIA]:"Deutsch (Österreich)",[u.GERMAN_SWITZERLAND]:"Deutsch (Schweiz)",[u.GERMAN_GERMANY]:"Deutsch (Deutschland)",[u.GERMAN_LIECHTENSTEIN]:"Deutsch (Liechtenstein)",[u.GERMAN_LUXEMBOURG]:"Deutsch (Luxemburg)",[u.DIVEHI_MALDIVES]:"ދިވެހި (ދިވެހި ރާއްޖެ)",[u.GREEK_GREECE]:"Ελληνικά (Ελλάδα)",[u.ENGLISH_AUSTRALIA]:"English (Australia)",[u.ENGLISH_BELIZE]:"English (Belize)",[u.ENGLISH_CANADA]:"English (Canada)",[u.ENGLISH_CARIBBEAN]:"English (Caribbean)",[u.ENGLISH_UNITED_KINGDOM]:"English (United Kingdom)",[u.ENGLISH_IRELAND]:"English (Ireland)",[u.ENGLISH_JAMAICA]:"English (Jamaica)",[u.ENGLISH_NEW_ZEALAND]:"English (New Zealand)",[u.ENGLISH_PHILIPPINES]:"English (Philippines)",[u.ENGLISH_TRINIDAD_AND_TOBAGO]:"English (Trinidad and Tobago)",[u.ENGLISH_UNITED_STATES]:"English (United States)",[u.ENGLISH_SOUTH_AFRICA]:"English (South Africa)",[u.ENGLISH_ZIMBABWE]:"English (Zimbabwe)",[u.SPANISH_ARGENTINA]:"Español (Argentina)",[u.SPANISH_BOLIVIA]:"Español (Bolivia)",[u.SPANISH_CHILE]:"Español (Chile)",[u.SPANISH_COLOMBIA]:"Español (Colombia)",[u.SPANISH_COSTA_RICA]:"Español (Costa Rica)",[u.SPANISH_DOMINICAN_REPUBLIC]:"Español (República Dominicana)",[u.SPANISH_ECUADOR]:"Español (Ecuador)",[u.SPANISH_SPAIN]:"Español (España)",[u.SPANISH_GUATEMALA]:"Español (Guatemala)",[u.SPANISH_HONDURAS]:"Español (Honduras)",[u.SPANISH_MEXICO]:"Español (México)",[u.SPANISH_NICARAGUA]:"Español (Nicaragua)",[u.SPANISH_PANAMA]:"Español (Panamá)",[u.SPANISH_PERU]:"Español (Perú)",[u.SPANISH_PUERTO_RICO]:"Español (Puerto Rico)",[u.SPANISH_PARAGUAY]:"Español (Paraguay)",[u.SPANISH_EL_SALVADOR]:"Español (El Salvador)",[u.SPANISH_URUGUAY]:"Español (Uruguay)",[u.SPANISH_VENEZUELA]:"Español (Venezuela)",[u.ESTONIAN_ESTONIA]:"Eesti (Eesti)",[u.BASQUE_SPAIN]:"Euskara (Espainia)",[u.FARSI_IRAN]:"فارسی (ایران)",[u.FINNISH_FINLAND]:"Suomi (Suomi)",[u.FAROESE_FAROE_ISLANDS]:"Føroyskt (Føroyar)",[u.FRENCH_BELGIUM]:"Français (Belgique)",[u.FRENCH_CANADA]:"Français (Canada)",[u.FRENCH_SWITZERLAND]:"Français (Suisse)",[u.FRENCH_FRANCE]:"Français (France)",[u.FRENCH_LUXEMBOURG]:"Français (Luxembourg)",[u.FRENCH_PRINCIPALITY_OF_MONACO]:"Français (Monaco)",[u.GALICIAN_SPAIN]:"Galego (España)",[u.GUJARATI_INDIA]:"ગુજરાતી (ભારત)",[u.HEBREW_ISRAEL]:"עברית (ישראל)",[u.HINDI_INDIA]:"हिन्दी (भारत)",[u.CROATIAN_BOSNIA_AND_HERZEGOVINA]:"Hrvatski (Bosna i Hercegovina)",[u.CROATIAN_CROATIA]:"Hrvatski (Hrvatska)",[u.HUNGARIAN_HUNGARY]:"Magyar (Magyarország)",[u.ARMENIAN_ARMENIA]:"Հայերեն (Հայաստան)",[u.INDONESIAN_INDONESIA]:"Bahasa Indonesia (Indonesia)",[u.ICELANDIC_ICELAND]:"Íslenska (Ísland)",[u.ITALIAN_SWITZERLAND]:"Italiano (Svizzera)",[u.ITALIAN_ITALY]:"Italiano (Italia)",[u.JAPANESE_JAPAN]:"日本語 (日本)",[u.GEORGIAN_GEORGIA]:"ქართული (საქართველო)",[u.KAZAKH_KAZAKHSTAN]:"Қазақ (Қазақстан)",[u.KANNADA_INDIA]:"ಕನ್ನಡ (ಭಾರತ)",[u.KOREAN_KOREA]:"한국어 (대한민국)",[u.KONKANI_INDIA]:"कोंकणी (भारत)",[u.KYRGYZ_KYRGYZSTAN]:"Кыргыз (Кыргызстан)",[u.LITHUANIAN_LITHUANIA]:"Lietuvių (Lietuva)",[u.LATVIAN_LATVIA]:"Latviešu (Latvija)",[u.MAORI_NEW_ZEALAND]:"Māori (Aotearoa)",[u.FYRO_MACEDONIAN_MACEDONIA]:"Македонски (Македонија)",[u.MONGOLIAN_MONGOLIA]:"Монгол (Монгол)",[u.MARATHI_INDIA]:"मराठी (भारत)",[u.MALAY_BRUNEI_DARUSSALAM]:"Bahasa Melayu (Brunei)",[u.MALAY_MALAYSIA]:"Bahasa Melayu (Malaysia)",[u.MALTESE_MALTA]:"Malti (Malta)",[u.NORWEGIAN_BOKMAL_NORWAY]:"Norsk Bokmål (Norge)",[u.DUTCH_BELGIUM]:"Nederlands (België)",[u.DUTCH_NETHERLANDS]:"Nederlands (Nederland)",[u.NORWEGIAN_NYNORSK_NORWAY]:"Norsk Nynorsk (Norge)",[u.NORTHERN_SOTHO_SOUTH_AFRICA]:"Sesotho sa Leboa (South Africa)",[u.PUNJABI_INDIA]:"ਪੰਜਾਬੀ (ਭਾਰਤ)",[u.POLISH_POLAND]:"Polski (Polska)",[u.PASHTO_AFGHANISTAN]:"پښتو (افغانستان)",[u.PORTUGUESE_BRAZIL]:"Português (Brasil)",[u.PORTUGUESE_PORTUGAL]:"Português (Portugal)",[u.QUECHUA_BOLIVIA]:"Runasimi (Bolivia)",[u.QUECHUA_ECUADOR]:"Runasimi (Ecuador)",[u.QUECHUA_PERU]:"Runasimi (Perú)",[u.ROMANIAN_ROMANIA]:"Română (România)",[u.RUSSIAN_RUSSIA]:"Русский (Россия)",[u.SANSKRIT_INDIA]:"संस्कृतम् (भारत)",[u.SAMI_NORTHERN_FINLAND]:"Davvisámegiella (Suomi)",[u.SAMI_NORTHERN_NORWAY]:"Davvisámegiella (Norge)",[u.SAMI_NORTHERN_SWEDEN]:"Davvisámegiella (Sverige)",[u.SLOVAK_SLOVAKIA]:"Slovenčina (Slovensko)",[u.SLOVENIAN_SLOVENIA]:"Slovenščina (Slovenija)",[u.ALBANIAN_ALBANIA]:"Shqip (Shqipëria)",[u.SERBIAN_LATIN_BOSNIA_AND_HERZEGOVINA]:"Srpski (Bosna i Hercegovina)",[u.SERBIAN_LATIN_SERBIA_AND_MONTENEGRO]:"Srpski (Srbija i Crna Gora)",[u.SWAHILI_KENYA]:"Kiswahili (Kenya)",[u.SYRIAC_SYRIA]:"ܣܘܪܝܝܐ (ܣܘܪܝܐ)",[u.TAMIL_INDIA]:"தமிழ் (இந்தியா)",[u.TELUGU_INDIA]:"తెలుగు (భారతదేశం)",[u.THAI_THAILAND]:"ไทย (ประเทศไทย)",[u.TAGALOG_PHILIPPINES]:"Tagalog (Pilipinas)",[u.TSWANA_SOUTH_AFRICA]:"Setswana (Aforika Borwa)",[u.TURKISH_TURKEY]:"Türkçe (Türkiye)",[u.TATAR_RUSSIA]:"Татар (Россия)",[u.TSOGA]:"Xitsonga",[u.UKRAINIAN_UKRAINE]:"Українська (Україна)",[u.URDU_ISLAMIC_REPUBLIC_OF_PAKISTAN]:"اردو (پاکستان)",[u.UZBEK_LATIN_UZBEKISTAN]:"O‘zbekcha (O‘zbekiston)",[u.VIETNAMESE_VIET_NAM]:"Tiếng Việt (Việt Nam)",[u.XHOSA_SOUTH_AFRICA]:"isiXhosa (South Africa)",[u.CHINESE_HONG_KONG]:"中文 (香港)",[u.CHINESE_MACAU]:"中文 (澳門)",[u.CHINESE_SINGAPORE]:"中文 (新加坡)",[u.ZULU_SOUTH_AFRICA]:"isiZulu (South Africa)"},Rm={[u.ENGLISH]:"Inglês",[u.FRENCH]:"Francês",[u.SPANISH]:"Espanhol",[u.PORTUGUESE]:"Português",[u.GERMAN]:"Alemão",[u.AFRIKAANS]:"Afrikaans",[u.ARABIC]:"Árabe",[u.AZERI_LATIN]:"Azeri Latim",[u.BELARUSIAN]:"Bielorrusso",[u.BULGARIAN]:"Búlgaro",[u.BOSNIAN]:"Bósnio",[u.CATALAN]:"Catalão",[u.CZECH]:"Tcheco",[u.WELSH]:"Galês",[u.DANISH]:"Dinamarquês",[u.DIVEHI]:"Divehi",[u.GREEK]:"Grego",[u.ESPERANTO]:"Esperanto",[u.ESTONIAN]:"Estoniano",[u.BASQUE]:"Basco",[u.FARSI]:"Farsi",[u.FINNISH]:"Finlandês",[u.FAROESE]:"Feroês",[u.GALICIAN]:"Galego",[u.GUJARATI]:"Gujarati",[u.HEBREW]:"Hebraico",[u.HINDI]:"Hindi",[u.CROATIAN]:"Croata",[u.HUNGARIAN]:"Húngaro",[u.ARMENIAN]:"Armênio",[u.INDONESIAN]:"Indonésio",[u.ICELANDIC]:"Islandês",[u.ITALIAN]:"Italiano",[u.JAPANESE]:"Japonês",[u.GEORGIAN]:"Georgiano",[u.KAZAKH]:"Cazaque",[u.KANNADA]:"Kannada",[u.KOREAN]:"Coreano",[u.KONKANI]:"Konkani",[u.KYRGYZ]:"Quirguiz",[u.LITHUANIAN]:"Lituano",[u.LATVIAN]:"Letão",[u.MAORI]:"Maori",[u.FYRO_MACEDONIAN]:"Macedônio FYRO",[u.MONGOLIAN]:"Mongol",[u.MARATHI]:"Marathi",[u.MALAY]:"Malaio",[u.MALTESE]:"Maltês",[u.NORWEGIAN_BOKMAL]:"Norueguês Bokmål",[u.DUTCH]:"Holandês",[u.NORTHERN_SOTHO]:"Sotho do Norte",[u.PUNJABI]:"Panjabi",[u.POLISH]:"Polonês",[u.PASHTO]:"Pastó",[u.QUECHUA]:"Quíchua",[u.ROMANIAN]:"Romeno",[u.RUSSIAN]:"Russo",[u.SANSKRIT]:"Sânscrito",[u.SAMI_NORTHERN]:"Sami do Norte",[u.SLOVAK]:"Eslovaco",[u.SLOVENIAN]:"Esloveno",[u.ALBANIAN]:"Albanês",[u.SERBIAN_LATIN]:"Sérvio Latino",[u.SWEDISH]:"Sueco",[u.SWEDISH_FINLAND]:"Sueco (Finlândia)",[u.SWEDISH_SWEDEN]:"Sueco (Suécia)",[u.SWAHILI]:"Suaíli",[u.SYRIAC]:"Siríaco",[u.TAMIL]:"Tamil",[u.TELUGU]:"Telugu",[u.THAI]:"Tailandês",[u.TAGALOG]:"Tagalo",[u.TSWANA]:"Tswana",[u.TURKISH]:"Turco",[u.TATAR]:"Tártaro",[u.UKRAINIAN]:"Ucraniano",[u.URDU]:"Urdu",[u.UZBEK_LATIN]:"Uzbeque Latim",[u.VIETNAMESE]:"Vietnamita",[u.XHOSA]:"Xhosa",[u.CHINESE]:"Chinês",[u.CHINESE_SIMPLIFIED]:"Chinês Simplificado",[u.CHINESE_SIMPLIFIED_CHINA]:"Chinês Simplificado (China)",[u.CHINESE_TRADITIONAL]:"Chinês Tradicional",[u.ZULU]:"Zulu",[u.AFRIKAANS_SOUTH_AFRICA]:"Afrikaans (África do Sul)",[u.ARABIC_UNITED_ARAB_EMIRATES]:"Árabe (Emirados Árabes Unidos)",[u.ARABIC_BAHRAIN]:"Árabe (Bahrein)",[u.ARABIC_ALGERIA]:"Árabe (Argélia)",[u.ARABIC_EGYPT]:"Árabe (Egito)",[u.ARABIC_IRAQ]:"Árabe (Iraque)",[u.ARABIC_JORDAN]:"Árabe (Jordânia)",[u.ARABIC_KUWAIT]:"Árabe (Cuwait)",[u.ARABIC_LEBANON]:"Árabe (Líbano)",[u.ARABIC_LIBYA]:"Árabe (Líbia)",[u.ARABIC_MOROCCO]:"Árabe (Marrocos)",[u.ARABIC_OMAN]:"Árabe (Omã)",[u.ARABIC_QATAR]:"Árabe (Catar)",[u.ARABIC_SAUDI_ARABIA]:"Árabe (Arábia Saudita)",[u.ARABIC_SYRIA]:"Árabe (Síria)",[u.ARABIC_TUNISIA]:"Árabe (Tunísia)",[u.ARABIC_YEMEN]:"Árabe (Iêmen)",[u.AZERI_LATIN_AZERBAIJAN]:"Azeri Latim (Azerbaijão)",[u.BELARUSIAN_BELARUS]:"Bielorrusso (Bielorrússia)",[u.BULGARIAN_BULGARIA]:"Búlgaro (Bulgária)",[u.BOSNIAN_BOSNIA_AND_HERZEGOVINA]:"Bósnio (Bósnia e Herzegovina)",[u.CATALAN_SPAIN]:"Catalão (Espanha)",[u.CZECH_CZECH_REPUBLIC]:"Tcheco (República Tcheca)",[u.WELSH_UNITED_KINGDOM]:"Galês (Reino Unido)",[u.DANISH_DENMARK]:"Dinamarquês (Dinamarca)",[u.GERMAN_AUSTRIA]:"Alemão (Áustria)",[u.GERMAN_SWITZERLAND]:"Alemão (Suíça)",[u.GERMAN_GERMANY]:"Alemão (Alemanha)",[u.GERMAN_LIECHTENSTEIN]:"Alemão (Liechtenstein)",[u.GERMAN_LUXEMBOURG]:"Alemão (Luxemburgo)",[u.DIVEHI_MALDIVES]:"Divehi (Maldivas)",[u.GREEK_GREECE]:"Grego (Grécia)",[u.ENGLISH_AUSTRALIA]:"Inglês (Austrália)",[u.ENGLISH_BELIZE]:"Inglês (Belize)",[u.ENGLISH_CANADA]:"Inglês (Canadá)",[u.ENGLISH_CARIBBEAN]:"Inglês (Caribe)",[u.ENGLISH_UNITED_KINGDOM]:"Inglês (Reino Unido)",[u.ENGLISH_IRELAND]:"Inglês (Irlanda)",[u.ENGLISH_JAMAICA]:"Inglês (Jamaica)",[u.ENGLISH_NEW_ZEALAND]:"Inglês (Nova Zelândia)",[u.ENGLISH_PHILIPPINES]:"Inglês (Filipinas)",[u.ENGLISH_TRINIDAD_AND_TOBAGO]:"Inglês (Trinidad e Tobago)",[u.ENGLISH_UNITED_STATES]:"Inglês (Estados Unidos)",[u.ENGLISH_SOUTH_AFRICA]:"Inglês (África do Sul)",[u.ENGLISH_ZIMBABWE]:"Inglês (Zimbábue)",[u.SPANISH_ARGENTINA]:"Espanhol (Argentina)",[u.SPANISH_BOLIVIA]:"Espanhol (Bolívia)",[u.SPANISH_CHILE]:"Espanhol (Chile)",[u.SPANISH_COLOMBIA]:"Espanhol (Colômbia)",[u.SPANISH_COSTA_RICA]:"Espanhol (Costa Rica)",[u.SPANISH_DOMINICAN_REPUBLIC]:"Espanhol (República Dominicana)",[u.SPANISH_ECUADOR]:"Espanhol (Equador)",[u.SPANISH_SPAIN]:"Espanhol (Espanha)",[u.SPANISH_GUATEMALA]:"Espanhol (Guatemala)",[u.SPANISH_HONDURAS]:"Espanhol (Honduras)",[u.SPANISH_MEXICO]:"Espanhol (México)",[u.SPANISH_NICARAGUA]:"Espanhol (Nicarágua)",[u.SPANISH_PANAMA]:"Espanhol (Panamá)",[u.SPANISH_PERU]:"Espanhol (Peru)",[u.SPANISH_PUERTO_RICO]:"Espanhol (Porto Rico)",[u.SPANISH_PARAGUAY]:"Espanhol (Paraguai)",[u.SPANISH_EL_SALVADOR]:"Espanhol (El Salvador)",[u.SPANISH_URUGUAY]:"Espanhol (Uruguai)",[u.SPANISH_VENEZUELA]:"Espanhol (Venezuela)",[u.ESTONIAN_ESTONIA]:"Estoniano (Estônia)",[u.BASQUE_SPAIN]:"Basco (Espanha)",[u.FARSI_IRAN]:"Farsi (Irã)",[u.FINNISH_FINLAND]:"Finlandês (Finlândia)",[u.FAROESE_FAROE_ISLANDS]:"Feroês (Ilhas Faroe)",[u.FRENCH_BELGIUM]:"Francês (Bélgica)",[u.FRENCH_CANADA]:"Francês (Canadá)",[u.FRENCH_SWITZERLAND]:"Francês (Suíça)",[u.FRENCH_FRANCE]:"Francês (França)",[u.FRENCH_LUXEMBOURG]:"Francês (Luxemburgo)",[u.FRENCH_PRINCIPALITY_OF_MONACO]:"Francês (Principado de Mônaco)",[u.GALICIAN_SPAIN]:"Galego (Espanha)",[u.GUJARATI_INDIA]:"Gujarati (Índia)",[u.HEBREW_ISRAEL]:"Hebraico (Israel)",[u.HINDI_INDIA]:"Hindi (Índia)",[u.CROATIAN_BOSNIA_AND_HERZEGOVINA]:"Croata (Bósnia e Herzegovina)",[u.CROATIAN_CROATIA]:"Croata (Croácia)",[u.HUNGARIAN_HUNGARY]:"Húngaro (Hungria)",[u.ARMENIAN_ARMENIA]:"Armênio (Armênia)",[u.INDONESIAN_INDONESIA]:"Indonésio (Indonésia)",[u.ICELANDIC_ICELAND]:"Islandês (Islândia)",[u.ITALIAN_SWITZERLAND]:"Italiano (Suíça)",[u.ITALIAN_ITALY]:"Italiano (Itália)",[u.JAPANESE_JAPAN]:"Japonês (Japão)",[u.GEORGIAN_GEORGIA]:"Georgiano (Geórgia)",[u.KAZAKH_KAZAKHSTAN]:"Cazaque (Cazaquistão)",[u.KANNADA_INDIA]:"Kannada (Índia)",[u.KOREAN_KOREA]:"Coreano (Coreia)",[u.KONKANI_INDIA]:"Konkani (Índia)",[u.KYRGYZ_KYRGYZSTAN]:"Quirguiz (Quirguistão)",[u.LITHUANIAN_LITHUANIA]:"Lituano (Lituânia)",[u.LATVIAN_LATVIA]:"Letão (Letônia)",[u.MAORI_NEW_ZEALAND]:"Maori (Nova Zelândia)",[u.FYRO_MACEDONIAN_MACEDONIA]:"Macedônio FYRO (Macedônia)",[u.MONGOLIAN_MONGOLIA]:"Mongol (Mongólia)",[u.MARATHI_INDIA]:"Marathi (Índia)",[u.MALAY_BRUNEI_DARUSSALAM]:"Malaio (Brunei Darussalam)",[u.MALAY_MALAYSIA]:"Malaio (Malásia)",[u.MALTESE_MALTA]:"Maltês (Malta)",[u.NORWEGIAN_BOKMAL_NORWAY]:"Norueguês Bokmål (Noruega)",[u.DUTCH_BELGIUM]:"Holandês (Bélgica)",[u.DUTCH_NETHERLANDS]:"Holandês (Países Baixos)",[u.NORWEGIAN_NYNORSK_NORWAY]:"Norueguês Nynorsk (Noruega)",[u.NORTHERN_SOTHO_SOUTH_AFRICA]:"Sotho do Norte (África do Sul)",[u.PUNJABI_INDIA]:"Panjabi (Índia)",[u.POLISH_POLAND]:"Polonês (Polônia)",[u.PASHTO_AFGHANISTAN]:"Pastó (Afeganistão)",[u.PORTUGUESE_BRAZIL]:"Português (Brasil)",[u.PORTUGUESE_PORTUGAL]:"Português (Portugal)",[u.QUECHUA_BOLIVIA]:"Quíchua (Bolívia)",[u.QUECHUA_ECUADOR]:"Quíchua (Equador)",[u.QUECHUA_PERU]:"Quíchua (Peru)",[u.ROMANIAN_ROMANIA]:"Romeno (Romênia)",[u.RUSSIAN_RUSSIA]:"Russo (Rússia)",[u.SANSKRIT_INDIA]:"Sânscrito (Índia)",[u.SAMI_NORTHERN_FINLAND]:"Sami do Norte (Finlândia)",[u.SAMI_NORTHERN_NORWAY]:"Sami do Norte (Noruega)",[u.SAMI_NORTHERN_SWEDEN]:"Sami do Norte (Suécia)",[u.SLOVAK_SLOVAKIA]:"Eslovaco (Eslováquia)",[u.SLOVENIAN_SLOVENIA]:"Esloveno (Eslovênia)",[u.ALBANIAN_ALBANIA]:"Albanês (Albânia)",[u.SERBIAN_LATIN_BOSNIA_AND_HERZEGOVINA]:"Sérvio Latino (Bósnia e Herzegovina)",[u.SERBIAN_LATIN_SERBIA_AND_MONTENEGRO]:"Sérvio Latino (Sérvia e Montenegro)",[u.SWAHILI_KENYA]:"Suaíli (Quênia)",[u.SYRIAC_SYRIA]:"Siríaco (Síria)",[u.TAMIL_INDIA]:"Tamil (Índia)",[u.TELUGU_INDIA]:"Telugu (Índia)",[u.THAI_THAILAND]:"Tailandês (Tailândia)",[u.TAGALOG_PHILIPPINES]:"Tagalo (Filipinas)",[u.TSWANA_SOUTH_AFRICA]:"Tswana (África do Sul)",[u.TURKISH_TURKEY]:"Turco (Turquia)",[u.TATAR_RUSSIA]:"Tártaro (Rússia)",[u.TSOGA]:"Tsoga",[u.UKRAINIAN_UKRAINE]:"Ucraniano (Ucrânia)",[u.URDU_ISLAMIC_REPUBLIC_OF_PAKISTAN]:"Urdu (República Islâmica do Paquistão)",[u.UZBEK_LATIN_UZBEKISTAN]:"Uzbeque Latim (Uzbequistão)",[u.VIETNAMESE_VIET_NAM]:"Vietnamita (Vietnã)",[u.XHOSA_SOUTH_AFRICA]:"Xhosa (África do Sul)",[u.CHINESE_HONG_KONG]:"Chinês (Hong Kong)",[u.CHINESE_MACAU]:"Chinês (Macau)",[u.CHINESE_SINGAPORE]:"Chinês (Singapura)",[u.ZULU_SOUTH_AFRICA]:"Zulu (África do Sul)"},MS={[u.ENGLISH]:"Английский",[u.FRENCH]:"Французский",[u.SPANISH]:"Испанский",[u.PORTUGUESE]:"Португальский",[u.GERMAN]:"Немецкий",[u.AFRIKAANS]:"Африкаанс",[u.ARABIC]:"Арабский",[u.AZERI_LATIN]:"Азербайджанский (латиница)",[u.BELARUSIAN]:"Белорусский",[u.BULGARIAN]:"Болгарский",[u.BOSNIAN]:"Боснийский",[u.CATALAN]:"Каталанский",[u.CZECH]:"Чешский",[u.WELSH]:"Уэльский",[u.DANISH]:"Датский",[u.DIVEHI]:"Дивехи",[u.GREEK]:"Греческий",[u.ESPERANTO]:"Эсперанто",[u.ESTONIAN]:"Эстонский",[u.BASQUE]:"Баскский",[u.FARSI]:"Персидский",[u.FINNISH]:"Финский",[u.FAROESE]:"Фарерский",[u.GALICIAN]:"Галисийский",[u.GUJARATI]:"Гуджарати",[u.HEBREW]:"Иврит",[u.HINDI]:"Хинди",[u.CROATIAN]:"Хорватский",[u.HUNGARIAN]:"Венгерский",[u.ARMENIAN]:"Армянский",[u.INDONESIAN]:"Индонезийский",[u.ICELANDIC]:"Исландский",[u.ITALIAN]:"Итальянский",[u.JAPANESE]:"Японский",[u.GEORGIAN]:"Грузинский",[u.KAZAKH]:"Казахский",[u.KANNADA]:"Каннада",[u.KOREAN]:"Корейский",[u.KONKANI]:"Конкани",[u.KYRGYZ]:"Кыргызский",[u.LITHUANIAN]:"Литовский",[u.LATVIAN]:"Латвийский",[u.MAORI]:"Маори",[u.FYRO_MACEDONIAN]:"Македонский (бывшая Югославия)",[u.MONGOLIAN]:"Монгольский",[u.MARATHI]:"Марати",[u.MALAY]:"Малайский",[u.MALTESE]:"Мальтийский",[u.NORWEGIAN_BOKMAL]:"Норвежский (букмол)",[u.DUTCH]:"Нидерландский",[u.NORTHERN_SOTHO]:"Сото северный",[u.PUNJABI]:"Панджаби",[u.POLISH]:"Польский",[u.PASHTO]:"Пушту",[u.QUECHUA]:"Кечуа",[u.ROMANIAN]:"Румынский",[u.RUSSIAN]:"Русский",[u.SANSKRIT]:"Санскрит",[u.SAMI_NORTHERN]:"Саамский северный",[u.SLOVAK]:"Словацкий",[u.SLOVENIAN]:"Словенский",[u.ALBANIAN]:"Албанский",[u.SERBIAN_LATIN]:"Сербский (латиница)",[u.SWEDISH]:"Шведский",[u.SWEDISH_FINLAND]:"Шведский (Финляндия)",[u.SWEDISH_SWEDEN]:"Шведский (Швеция)",[u.SWAHILI]:"Свахили",[u.SYRIAC]:"Сирийский",[u.TAMIL]:"Тамильский",[u.TELUGU]:"Телугу",[u.THAI]:"Тайский",[u.TAGALOG]:"Тагальский",[u.TSWANA]:"Цвана",[u.TURKISH]:"Турецкий",[u.TATAR]:"Татарский",[u.UKRAINIAN]:"Украинский",[u.URDU]:"Урду",[u.UZBEK_LATIN]:"Узбекский (латиница)",[u.VIETNAMESE]:"Вьетнамский",[u.XHOSA]:"Коса",[u.CHINESE]:"Китайский",[u.CHINESE_SIMPLIFIED]:"Китайский (упрощенный)",[u.CHINESE_SIMPLIFIED_CHINA]:"Китайский (упрощенный, Китай)",[u.CHINESE_TRADITIONAL]:"Китайский (традиционный)",[u.ZULU]:"Зулу",[u.AFRIKAANS_SOUTH_AFRICA]:"Африкаанс (Южная Африка)",[u.ARABIC_UNITED_ARAB_EMIRATES]:"Арабский (Объединенные Арабские Эмираты)",[u.ARABIC_BAHRAIN]:"Арабский (Бахрейн)",[u.ARABIC_ALGERIA]:"Арабский (Алжир)",[u.ARABIC_EGYPT]:"Арабский (Египет)",[u.ARABIC_IRAQ]:"Арабский (Ирак)",[u.ARABIC_JORDAN]:"Арабский (Иордания)",[u.ARABIC_KUWAIT]:"Арабский (Кувейт)",[u.ARABIC_LEBANON]:"Арабский (Ливан)",[u.ARABIC_LIBYA]:"Арабский (Ливия)",[u.ARABIC_MOROCCO]:"Арабский (Марокко)",[u.ARABIC_OMAN]:"Арабский (Оман)",[u.ARABIC_QATAR]:"Арабский (Катар)",[u.ARABIC_SAUDI_ARABIA]:"Арабский (Саудовская Аравия)",[u.ARABIC_SYRIA]:"Арабский (Сирия)",[u.ARABIC_TUNISIA]:"Арабский (Тунис)",[u.ARABIC_YEMEN]:"Арабский (Йемен)",[u.AZERI_LATIN_AZERBAIJAN]:"Азербайджанский (латиница, Азербайджан)",[u.BELARUSIAN_BELARUS]:"Белорусский (Беларусь)",[u.BULGARIAN_BULGARIA]:"Болгарский (Болгария)",[u.BOSNIAN_BOSNIA_AND_HERZEGOVINA]:"Боснийский (Босния и Герцеговина)",[u.CATALAN_SPAIN]:"Каталанский (Испания)",[u.CZECH_CZECH_REPUBLIC]:"Чешский (Чешская Республика)",[u.WELSH_UNITED_KINGDOM]:"Уэльский (Великобритания)",[u.DANISH_DENMARK]:"Датский (Дания)",[u.GERMAN_AUSTRIA]:"Немецкий (Австрия)",[u.GERMAN_SWITZERLAND]:"Немецкий (Швейцария)",[u.GERMAN_GERMANY]:"Немецкий (Германия)",[u.GERMAN_LIECHTENSTEIN]:"Немецкий (Лихтенштейн)",[u.GERMAN_LUXEMBOURG]:"Немецкий (Люксембург)",[u.DIVEHI_MALDIVES]:"Дивехи (Мальдивы)",[u.GREEK_GREECE]:"Греческий (Греция)",[u.ENGLISH_AUSTRALIA]:"Английский (Австралия)",[u.ENGLISH_BELIZE]:"Английский (Белиз)",[u.ENGLISH_CANADA]:"Английский (Канада)",[u.ENGLISH_CARIBBEAN]:"Английский (Карибы)",[u.ENGLISH_UNITED_KINGDOM]:"Английский (Великобритания)",[u.ENGLISH_IRELAND]:"Английский (Ирландия)",[u.ENGLISH_JAMAICA]:"Английский (Ямайка)",[u.ENGLISH_NEW_ZEALAND]:"Английский (Новая Зеландия)",[u.ENGLISH_PHILIPPINES]:"Английский (Филиппины)",[u.ENGLISH_TRINIDAD_AND_TOBAGO]:"Английский (Тринидад и Тобаго)",[u.ENGLISH_UNITED_STATES]:"Английский (Соединенные Штаты)",[u.ENGLISH_SOUTH_AFRICA]:"Английский (Южная Африка)",[u.ENGLISH_ZIMBABWE]:"Английский (Зимбабве)",[u.SPANISH_ARGENTINA]:"Испанский (Аргентина)",[u.SPANISH_BOLIVIA]:"Испанский (Боливия)",[u.SPANISH_CHILE]:"Испанский (Чили)",[u.SPANISH_COLOMBIA]:"Испанский (Колумбия)",[u.SPANISH_COSTA_RICA]:"Испанский (Коста-Рика)",[u.SPANISH_DOMINICAN_REPUBLIC]:"Испанский (Доминиканская Республика)",[u.SPANISH_ECUADOR]:"Испанский (Эквадор)",[u.SPANISH_SPAIN]:"Испанский (Испания)",[u.SPANISH_GUATEMALA]:"Испанский (Гватемала)",[u.SPANISH_HONDURAS]:"Испанский (Гондурас)",[u.SPANISH_MEXICO]:"Испанский (Мексика)",[u.SPANISH_NICARAGUA]:"Испанский (Никарагуа)",[u.SPANISH_PANAMA]:"Испанский (Панама)",[u.SPANISH_PERU]:"Испанский (Перу)",[u.SPANISH_PUERTO_RICO]:"Испанский (Пуэрто-Рико)",[u.SPANISH_PARAGUAY]:"Испанский (Парагвай)",[u.SPANISH_EL_SALVADOR]:"Испанский (Сальвадор)",[u.SPANISH_URUGUAY]:"Испанский (Уругвай)",[u.SPANISH_VENEZUELA]:"Испанский (Венесуэла)",[u.ESTONIAN_ESTONIA]:"Эстонский (Эстония)",[u.BASQUE_SPAIN]:"Баскский (Испания)",[u.FARSI_IRAN]:"Персидский (Иран)",[u.FINNISH_FINLAND]:"Финский (Финляндия)",[u.FAROESE_FAROE_ISLANDS]:"Фарерский (Фарерские острова)",[u.FRENCH_BELGIUM]:"Французский (Бельгия)",[u.FRENCH_CANADA]:"Французский (Канада)",[u.FRENCH_SWITZERLAND]:"Французский (Швейцария)",[u.FRENCH_FRANCE]:"Французский (Франция)",[u.FRENCH_LUXEMBOURG]:"Французский (Люксембург)",[u.FRENCH_PRINCIPALITY_OF_MONACO]:"Французский (Монако)",[u.GALICIAN_SPAIN]:"Галисийский (Испания)",[u.GUJARATI_INDIA]:"Гуджарати (Индия)",[u.HEBREW_ISRAEL]:"Иврит (Израиль)",[u.HINDI_INDIA]:"Хинди (Индия)",[u.CROATIAN_BOSNIA_AND_HERZEGOVINA]:"Хорватский (Босния и Герцеговина)",[u.CROATIAN_CROATIA]:"Хорватский (Хорватия)",[u.HUNGARIAN_HUNGARY]:"Венгерский (Венгрия)",[u.ARMENIAN_ARMENIA]:"Армянский (Армения)",[u.INDONESIAN_INDONESIA]:"Индонезийский (Индонезия)",[u.ICELANDIC_ICELAND]:"Исландский (Исландия)",[u.ITALIAN_SWITZERLAND]:"Итальянский (Швейцария)",[u.ITALIAN_ITALY]:"Итальянский (Италия)",[u.JAPANESE_JAPAN]:"Японский (Япония)",[u.GEORGIAN_GEORGIA]:"Грузинский (Грузия)",[u.KAZAKH_KAZAKHSTAN]:"Казахский (Казахстан)",[u.KANNADA_INDIA]:"Каннада (Индия)",[u.KOREAN_KOREA]:"Корейский (Корея)",[u.KONKANI_INDIA]:"Конкани (Индия)",[u.KYRGYZ_KYRGYZSTAN]:"Кыргызский (Кыргызстан)",[u.LITHUANIAN_LITHUANIA]:"Литовский (Литва)",[u.LATVIAN_LATVIA]:"Латвийский (Латвия)",[u.MAORI_NEW_ZEALAND]:"Маори (Новая Зеландия)",[u.FYRO_MACEDONIAN_MACEDONIA]:"Македонский (бывшая Югославия, Македония)",[u.MONGOLIAN_MONGOLIA]:"Монгольский (Монголия)",[u.MARATHI_INDIA]:"Марати (Индия)",[u.MALAY_BRUNEI_DARUSSALAM]:"Малайский (Бруней-Даруссалам)",[u.MALAY_MALAYSIA]:"Малайский (Малайзия)",[u.MALTESE_MALTA]:"Мальтийский (Мальта)",[u.NORWEGIAN_BOKMAL_NORWAY]:"Норвежский (букмол, Норвегия)",[u.DUTCH_BELGIUM]:"Нидерландский (Бельгия)",[u.DUTCH_NETHERLANDS]:"Нидерландский (Нидерланды)",[u.NORWEGIAN_NYNORSK_NORWAY]:"Норвежский (нюнорск, Норвегия)",[u.NORTHERN_SOTHO_SOUTH_AFRICA]:"Сото северный (Южная Африка)",[u.PUNJABI_INDIA]:"Панджаби (Индия)",[u.POLISH_POLAND]:"Польский (Польша)",[u.PASHTO_AFGHANISTAN]:"Пушту (Афганистан)",[u.PORTUGUESE_BRAZIL]:"Португальский (Бразилия)",[u.PORTUGUESE_PORTUGAL]:"Португальский (Португалия)",[u.QUECHUA_BOLIVIA]:"Кечуа (Боливия)",[u.QUECHUA_ECUADOR]:"Кечуа (Эквадор)",[u.QUECHUA_PERU]:"Кечуа (Перу)",[u.ROMANIAN_ROMANIA]:"Румынский (Румыния)",[u.RUSSIAN_RUSSIA]:"Русский (Россия)",[u.SANSKRIT_INDIA]:"Санскрит (Индия)",[u.SAMI_NORTHERN_FINLAND]:"Саамский северный (Финляндия)",[u.SAMI_NORTHERN_NORWAY]:"Саамский северный (Норвегия)",[u.SAMI_NORTHERN_SWEDEN]:"Саамский северный (Швеция)",[u.SLOVAK_SLOVAKIA]:"Словацкий (Словакия)",[u.SLOVENIAN_SLOVENIA]:"Словенский (Словения)",[u.ALBANIAN_ALBANIA]:"Албанский (Албания)",[u.SERBIAN_LATIN_BOSNIA_AND_HERZEGOVINA]:"Сербский (латиница, Босния и Герцеговина)",[u.SERBIAN_LATIN_SERBIA_AND_MONTENEGRO]:"Сербский (латиница, Сербия и Черногория)",[u.SWAHILI_KENYA]:"Свахили (Кения)",[u.SYRIAC_SYRIA]:"Сирийский (Сирия)",[u.TAMIL_INDIA]:"Тамильский (Индия)",[u.TELUGU_INDIA]:"Телугу (Индия)",[u.THAI_THAILAND]:"Тайский (Таиланд)",[u.TAGALOG_PHILIPPINES]:"Тагальский (Филиппины)",[u.TSWANA_SOUTH_AFRICA]:"Цвана (Южная Африка)",[u.TURKISH_TURKEY]:"Турецкий (Турция)",[u.TATAR_RUSSIA]:"Татарский (Россия)",[u.TSOGA]:"Цога",[u.UKRAINIAN_UKRAINE]:"Украинский (Украина)",[u.URDU_ISLAMIC_REPUBLIC_OF_PAKISTAN]:"Урду (Исламская Республика Пакистан)",[u.UZBEK_LATIN_UZBEKISTAN]:"Узбекский (латиница, Узбекистан)",[u.VIETNAMESE_VIET_NAM]:"Вьетнамский (Вьетнам)",[u.XHOSA_SOUTH_AFRICA]:"Коса (Южная Африка)",[u.CHINESE_HONG_KONG]:"Китайский (Гонконг)",[u.CHINESE_MACAU]:"Китайский (Макао)",[u.CHINESE_SINGAPORE]:"Китайский (Сингапур)",[u.ZULU_SOUTH_AFRICA]:"Зулу (Южная Африка)"},ua={[u.ENGLISH]:"英语",[u.FRENCH]:"法语",[u.SPANISH]:"西班牙语",[u.PORTUGUESE]:"葡萄牙语",[u.GERMAN]:"德语",[u.AFRIKAANS]:"南非荷兰语",[u.ARABIC]:"阿拉伯语",[u.AZERI_LATIN]:"阿塞拜疆语(拉丁字母)",[u.BELARUSIAN]:"白俄罗斯语",[u.BULGARIAN]:"保加利亚语",[u.BOSNIAN]:"波斯尼亚语",[u.CATALAN]:"加泰罗尼亚语",[u.CZECH]:"捷克语",[u.WELSH]:"威尔士语",[u.DANISH]:"丹麦语",[u.DIVEHI]:"迪维希语",[u.GREEK]:"希腊语",[u.ESPERANTO]:"世界语",[u.ESTONIAN]:"爱沙尼亚语",[u.BASQUE]:"巴斯克语",[u.FARSI]:"波斯语",[u.FINNISH]:"芬兰语",[u.FAROESE]:"法罗语",[u.GALICIAN]:"加利西亚语",[u.GUJARATI]:"古吉拉特语",[u.HEBREW]:"希伯来语",[u.HINDI]:"印地语",[u.CROATIAN]:"克罗地亚语",[u.HUNGARIAN]:"匈牙利语",[u.ARMENIAN]:"亚美尼亚语",[u.INDONESIAN]:"印尼语",[u.ICELANDIC]:"冰岛语",[u.ITALIAN]:"意大利语",[u.JAPANESE]:"日语",[u.GEORGIAN]:"格鲁吉亚语",[u.KAZAKH]:"哈萨克语",[u.KANNADA]:"卡纳达语",[u.KOREAN]:"韩语",[u.KONKANI]:"孔卡尼语",[u.KYRGYZ]:"吉尔吉斯语",[u.LITHUANIAN]:"立陶宛语",[u.LATVIAN]:"拉脱维亚语",[u.MAORI]:"毛利语",[u.FYRO_MACEDONIAN]:"马其顿语(前南斯拉夫)",[u.MONGOLIAN]:"蒙古语",[u.MARATHI]:"马拉地语",[u.MALAY]:"马来语",[u.MALTESE]:"马耳他语",[u.NORWEGIAN_BOKMAL]:"挪威语博克马尔",[u.DUTCH]:"荷兰语",[u.NORTHERN_SOTHO]:"北索托语",[u.PUNJABI]:"旁遮普语",[u.POLISH]:"波兰语",[u.PASHTO]:"普什图语",[u.QUECHUA]:"克丘亚语",[u.ROMANIAN]:"罗马尼亚语",[u.RUSSIAN]:"俄语",[u.SANSKRIT]:"梵语",[u.SAMI_NORTHERN]:"北萨米语",[u.SLOVAK]:"斯洛伐克语",[u.SLOVENIAN]:"斯洛文尼亚语",[u.ALBANIAN]:"阿尔巴尼亚语",[u.SERBIAN_LATIN]:"塞尔维亚语(拉丁字母)",[u.SWEDISH]:"瑞典语",[u.SWEDISH_FINLAND]:"瑞典语(芬兰)",[u.SWEDISH_SWEDEN]:"瑞典语(瑞典)",[u.SWAHILI]:"斯瓦希里语",[u.SYRIAC]:"叙利亚语",[u.TAMIL]:"泰米尔语",[u.TELUGU]:"泰卢固语",[u.THAI]:"泰语",[u.TAGALOG]:"他加禄语",[u.TSWANA]:"茨瓦纳语",[u.TURKISH]:"土耳其语",[u.TATAR]:"鞑靼语",[u.UKRAINIAN]:"乌克兰语",[u.URDU]:"乌尔都语",[u.UZBEK_LATIN]:"乌兹别克语(拉丁字母)",[u.VIETNAMESE]:"越南语",[u.XHOSA]:"科萨语",[u.CHINESE]:"中文",[u.CHINESE_SIMPLIFIED]:"中文(简体)",[u.CHINESE_SIMPLIFIED_CHINA]:"中文(简体,中国)",[u.CHINESE_TRADITIONAL]:"中文(繁体)",[u.ZULU]:"祖鲁语",[u.AFRIKAANS_SOUTH_AFRICA]:"南非荷兰语(南非)",[u.ARABIC_UNITED_ARAB_EMIRATES]:"阿拉伯语(阿联酋)",[u.ARABIC_BAHRAIN]:"阿拉伯语(巴林)",[u.ARABIC_ALGERIA]:"阿拉伯语(阿尔及利亚)",[u.ARABIC_EGYPT]:"阿拉伯语(埃及)",[u.ARABIC_IRAQ]:"阿拉伯语(伊拉克)",[u.ARABIC_JORDAN]:"阿拉伯语(约旦)",[u.ARABIC_KUWAIT]:"阿拉伯语(科威特)",[u.ARABIC_LEBANON]:"阿拉伯语(黎巴嫩)",[u.ARABIC_LIBYA]:"阿拉伯语(利比亚)",[u.ARABIC_MOROCCO]:"阿拉伯语(摩洛哥)",[u.ARABIC_OMAN]:"阿拉伯语(阿曼)",[u.ARABIC_QATAR]:"阿拉伯语(卡塔尔)",[u.ARABIC_SAUDI_ARABIA]:"阿拉伯语(沙特阿拉伯)",[u.ARABIC_SYRIA]:"阿拉伯语(叙利亚)",[u.ARABIC_TUNISIA]:"阿拉伯语(突尼斯)",[u.ARABIC_YEMEN]:"阿拉伯语(也门)",[u.AZERI_LATIN_AZERBAIJAN]:"阿塞拜疆语(拉丁字母,阿塞拜疆)",[u.BELARUSIAN_BELARUS]:"白俄罗斯语(白俄罗斯)",[u.BULGARIAN_BULGARIA]:"保加利亚语(保加利亚)",[u.BOSNIAN_BOSNIA_AND_HERZEGOVINA]:"波斯尼亚语(波斯尼亚和黑塞哥维那)",[u.CATALAN_SPAIN]:"加泰罗尼亚语(西班牙)",[u.CZECH_CZECH_REPUBLIC]:"捷克语(捷克共和国)",[u.WELSH_UNITED_KINGDOM]:"威尔士语(英国)",[u.DANISH_DENMARK]:"丹麦语(丹麦)",[u.GERMAN_AUSTRIA]:"德语(奥地利)",[u.GERMAN_SWITZERLAND]:"德语(瑞士)",[u.GERMAN_GERMANY]:"德语(德国)",[u.GERMAN_LIECHTENSTEIN]:"德语(列支敦士登)",[u.GERMAN_LUXEMBOURG]:"德语(卢森堡)",[u.DIVEHI_MALDIVES]:"迪维希语(马尔代夫)",[u.GREEK_GREECE]:"希腊语(希腊)",[u.ENGLISH_AUSTRALIA]:"英语(澳大利亚)",[u.ENGLISH_BELIZE]:"英语(伯利兹)",[u.ENGLISH_CANADA]:"英语(加拿大)",[u.ENGLISH_CARIBBEAN]:"英语(加勒比)",[u.ENGLISH_UNITED_KINGDOM]:"英语(英国)",[u.ENGLISH_IRELAND]:"英语(爱尔兰)",[u.ENGLISH_JAMAICA]:"英语(牙买加)",[u.ENGLISH_NEW_ZEALAND]:"英语(新西兰)",[u.ENGLISH_PHILIPPINES]:"英语(菲律宾)",[u.ENGLISH_TRINIDAD_AND_TOBAGO]:"英语(特立尼达和多巴哥)",[u.ENGLISH_UNITED_STATES]:"英语(美国)",[u.ENGLISH_SOUTH_AFRICA]:"英语(南非)",[u.ENGLISH_ZIMBABWE]:"英语(津巴布韦)",[u.SPANISH_ARGENTINA]:"西班牙语(阿根廷)",[u.SPANISH_BOLIVIA]:"西班牙语(玻利维亚)",[u.SPANISH_CHILE]:"西班牙语(智利)",[u.SPANISH_COLOMBIA]:"西班牙语(哥伦比亚)",[u.SPANISH_COSTA_RICA]:"西班牙语(哥斯达黎加)",[u.SPANISH_DOMINICAN_REPUBLIC]:"西班牙语(多米尼加共和国)",[u.SPANISH_ECUADOR]:"西班牙语(厄瓜多尔)",[u.SPANISH_SPAIN]:"西班牙语(西班牙)",[u.SPANISH_GUATEMALA]:"西班牙语(危地马拉)",[u.SPANISH_HONDURAS]:"西班牙语(洪都拉斯)",[u.SPANISH_MEXICO]:"西班牙语(墨西哥)",[u.SPANISH_NICARAGUA]:"西班牙语(尼加拉瓜)",[u.SPANISH_PANAMA]:"西班牙语(巴拿马)",[u.SPANISH_PERU]:"西班牙语(秘鲁)",[u.SPANISH_PUERTO_RICO]:"西班牙语(波多黎各)",[u.SPANISH_PARAGUAY]:"西班牙语(巴拉圭)",[u.SPANISH_EL_SALVADOR]:"西班牙语(萨尔瓦多)",[u.SPANISH_URUGUAY]:"西班牙语(乌拉圭)",[u.SPANISH_VENEZUELA]:"西班牙语(委内瑞拉)",[u.ESTONIAN_ESTONIA]:"爱沙尼亚语(爱沙尼亚)",[u.BASQUE_SPAIN]:"巴斯克语(西班牙)",[u.FARSI_IRAN]:"波斯语(伊朗)",[u.FINNISH_FINLAND]:"芬兰语(芬兰)",[u.FAROESE_FAROE_ISLANDS]:"法罗语(法罗群岛)",[u.FRENCH_BELGIUM]:"法语(比利时)",[u.FRENCH_CANADA]:"法语(加拿大)",[u.FRENCH_SWITZERLAND]:"法语(瑞士)",[u.FRENCH_FRANCE]:"法语(法国)",[u.FRENCH_LUXEMBOURG]:"法语(卢森堡)",[u.FRENCH_PRINCIPALITY_OF_MONACO]:"法语(摩纳哥公国)",[u.GALICIAN_SPAIN]:"加利西亚语(西班牙)",[u.GUJARATI_INDIA]:"古吉拉特语(印度)",[u.HEBREW_ISRAEL]:"希伯来语(以色列)",[u.HINDI_INDIA]:"印地语(印度)",[u.CROATIAN_BOSNIA_AND_HERZEGOVINA]:"克罗地亚语(波斯尼亚和黑塞哥维那)",[u.CROATIAN_CROATIA]:"克罗地亚语(克罗地亚)",[u.HUNGARIAN_HUNGARY]:"匈牙利语(匈牙利)",[u.ARMENIAN_ARMENIA]:"亚美尼亚语(亚美尼亚)",[u.INDONESIAN_INDONESIA]:"印尼语(印度尼西亚)",[u.ICELANDIC_ICELAND]:"冰岛语(冰岛)",[u.ITALIAN_SWITZERLAND]:"意大利语(瑞士)",[u.ITALIAN_ITALY]:"意大利语(意大利)",[u.JAPANESE_JAPAN]:"日语(日本)",[u.GEORGIAN_GEORGIA]:"格鲁吉亚语(格鲁吉亚)",[u.KAZAKH_KAZAKHSTAN]:"哈萨克语(哈萨克斯坦)",[u.KANNADA_INDIA]:"卡纳达语(印度)",[u.KOREAN_KOREA]:"韩语(韩国)",[u.KONKANI_INDIA]:"孔卡尼语(印度)",[u.KYRGYZ_KYRGYZSTAN]:"吉尔吉斯语(吉尔吉斯斯坦)",[u.LITHUANIAN_LITHUANIA]:"立陶宛语(立陶宛)",[u.LATVIAN_LATVIA]:"拉脱维亚语(拉脱维亚)",[u.MAORI_NEW_ZEALAND]:"毛利语(新西兰)",[u.FYRO_MACEDONIAN_MACEDONIA]:"马其顿语(前南斯拉夫,马其顿)",[u.MONGOLIAN_MONGOLIA]:"蒙古语(蒙古)",[u.MARATHI_INDIA]:"马拉地语(印度)",[u.MALAY_BRUNEI_DARUSSALAM]:"马来语(文莱达鲁萨兰)",[u.MALAY_MALAYSIA]:"马来语(马来西亚)",[u.MALTESE_MALTA]:"马耳他语(马耳他)",[u.NORWEGIAN_BOKMAL_NORWAY]:"挪威语博克马尔(挪威)",[u.DUTCH_BELGIUM]:"荷兰语(比利时)",[u.DUTCH_NETHERLANDS]:"荷兰语(荷兰)",[u.NORWEGIAN_NYNORSK_NORWAY]:"挪威语尼诺斯克(挪威)",[u.NORTHERN_SOTHO_SOUTH_AFRICA]:"北索托语(南非)",[u.PUNJABI_INDIA]:"旁遮普语(印度)",[u.POLISH_POLAND]:"波兰语(波兰)",[u.PASHTO_AFGHANISTAN]:"普什图语(阿富汗)",[u.PORTUGUESE_BRAZIL]:"葡萄牙语(巴西)",[u.PORTUGUESE_PORTUGAL]:"葡萄牙语(葡萄牙)",[u.QUECHUA_BOLIVIA]:"克丘亚语(玻利维亚)",[u.QUECHUA_ECUADOR]:"克丘亚语(厄瓜多尔)",[u.QUECHUA_PERU]:"克丘亚语(秘鲁)",[u.ROMANIAN_ROMANIA]:"罗马尼亚语(罗马尼亚)",[u.RUSSIAN_RUSSIA]:"俄语(俄罗斯)",[u.SANSKRIT_INDIA]:"梵语(印度)",[u.SAMI_NORTHERN_FINLAND]:"北萨米语(芬兰)",[u.SAMI_NORTHERN_NORWAY]:"北萨米语(挪威)",[u.SAMI_NORTHERN_SWEDEN]:"北萨米语(瑞典)",[u.SLOVAK_SLOVAKIA]:"斯洛伐克语(斯洛伐克)",[u.SLOVENIAN_SLOVENIA]:"斯洛文尼亚语(斯洛文尼亚)",[u.ALBANIAN_ALBANIA]:"阿尔巴尼亚语(阿尔巴尼亚)",[u.SERBIAN_LATIN_BOSNIA_AND_HERZEGOVINA]:"塞尔维亚语(拉丁字母,波斯尼亚和黑塞哥维那)",[u.SERBIAN_LATIN_SERBIA_AND_MONTENEGRO]:"塞尔维亚语(拉丁字母,塞尔维亚和黑山)",[u.SWAHILI_KENYA]:"斯瓦希里语(肯尼亚)",[u.SYRIAC_SYRIA]:"叙利亚语(叙利亚)",[u.TAMIL_INDIA]:"泰米尔语(印度)",[u.TELUGU_INDIA]:"泰卢固语(印度)",[u.THAI_THAILAND]:"泰语(泰国)",[u.TAGALOG_PHILIPPINES]:"他加禄语(菲律宾)",[u.TSWANA_SOUTH_AFRICA]:"茨瓦纳语(南非)",[u.TURKISH_TURKEY]:"土耳其语(土耳其)",[u.TATAR_RUSSIA]:"鞑靼语(俄罗斯)",[u.TSOGA]:"索加语",[u.UKRAINIAN_UKRAINE]:"乌克兰语(乌克兰)",[u.URDU_ISLAMIC_REPUBLIC_OF_PAKISTAN]:"乌尔都语(巴基斯坦伊斯兰共和国)",[u.UZBEK_LATIN_UZBEKISTAN]:"乌兹别克语(拉丁字母,乌兹别克斯坦)",[u.VIETNAMESE_VIET_NAM]:"越南语(越南)",[u.XHOSA_SOUTH_AFRICA]:"科萨语(南非)",[u.CHINESE_HONG_KONG]:"中文(香港)",[u.CHINESE_MACAU]:"中文(澳门)",[u.CHINESE_SINGAPORE]:"中文(新加坡)",[u.ZULU_SOUTH_AFRICA]:"祖鲁语(南非)"},dF={[u.ENGLISH]:xn,[u.ENGLISH_AUSTRALIA]:xn,[u.ENGLISH_BELIZE]:xn,[u.ENGLISH_CANADA]:xn,[u.ENGLISH_CARIBBEAN]:xn,[u.ENGLISH_UNITED_KINGDOM]:xn,[u.ENGLISH_IRELAND]:xn,[u.ENGLISH_JAMAICA]:xn,[u.ENGLISH_NEW_ZEALAND]:xn,[u.ENGLISH_PHILIPPINES]:xn,[u.ENGLISH_TRINIDAD_AND_TOBAGO]:xn,[u.ENGLISH_UNITED_STATES]:xn,[u.ENGLISH_SOUTH_AFRICA]:xn,[u.ENGLISH_ZIMBABWE]:xn,[u.FRENCH]:ra,[u.FRENCH_BELGIUM]:ra,[u.FRENCH_CANADA]:ra,[u.FRENCH_SWITZERLAND]:ra,[u.FRENCH_FRANCE]:ra,[u.FRENCH_LUXEMBOURG]:ra,[u.FRENCH_PRINCIPALITY_OF_MONACO]:ra,[u.SPANISH]:Vt,[u.SPANISH_ARGENTINA]:Vt,[u.SPANISH_BOLIVIA]:Vt,[u.SPANISH_CHILE]:Vt,[u.SPANISH_COLOMBIA]:Vt,[u.SPANISH_COSTA_RICA]:Vt,[u.SPANISH_DOMINICAN_REPUBLIC]:Vt,[u.SPANISH_ECUADOR]:Vt,[u.SPANISH_SPAIN]:Vt,[u.SPANISH_GUATEMALA]:Vt,[u.SPANISH_HONDURAS]:Vt,[u.SPANISH_MEXICO]:Vt,[u.SPANISH_NICARAGUA]:Vt,[u.SPANISH_PANAMA]:Vt,[u.SPANISH_PERU]:Vt,[u.SPANISH_PUERTO_RICO]:Vt,[u.SPANISH_PARAGUAY]:Vt,[u.SPANISH_EL_SALVADOR]:Vt,[u.SPANISH_URUGUAY]:Vt,[u.SPANISH_VENEZUELA]:Vt,[u.PORTUGUESE]:Rm,[u.PORTUGUESE_BRAZIL]:Rm,[u.PORTUGUESE_PORTUGAL]:Rm,[u.ITALIAN]:vm,[u.ITALIAN_SWITZERLAND]:vm,[u.ITALIAN_ITALY]:vm,[u.GERMAN]:ms,[u.GERMAN_AUSTRIA]:ms,[u.GERMAN_SWITZERLAND]:ms,[u.GERMAN_GERMANY]:ms,[u.GERMAN_LIECHTENSTEIN]:ms,[u.GERMAN_LUXEMBOURG]:ms,[u.CHINESE]:ua,[u.CHINESE_HONG_KONG]:ua,[u.CHINESE_MACAU]:ua,[u.CHINESE_SINGAPORE]:ua,[u.CHINESE_SIMPLIFIED]:ua,[u.CHINESE_SIMPLIFIED_CHINA]:ua,[u.CHINESE_TRADITIONAL]:ua,[u.RUSSIAN]:MS,[u.RUSSIAN_RUSSIA]:MS,[u.ARABIC]:on,[u.ARABIC_UNITED_ARAB_EMIRATES]:on,[u.ARABIC_BAHRAIN]:on,[u.ARABIC_ALGERIA]:on,[u.ARABIC_EGYPT]:on,[u.ARABIC_IRAQ]:on,[u.ARABIC_JORDAN]:on,[u.ARABIC_KUWAIT]:on,[u.ARABIC_LEBANON]:on,[u.ARABIC_LIBYA]:on,[u.ARABIC_MOROCCO]:on,[u.ARABIC_OMAN]:on,[u.ARABIC_QATAR]:on,[u.ARABIC_SAUDI_ARABIA]:on,[u.ARABIC_SYRIA]:on,[u.ARABIC_TUNISIA]:on,[u.ARABIC_YEMEN]:on,[u.JAPANESE]:FS,[u.JAPANESE_JAPAN]:FS,[u.KOREAN]:LS,[u.KOREAN_KOREA]:LS,[u.HINDI]:cF,[u.DUTCH_BELGIUM]:void 0,[u.DUTCH_NETHERLANDS]:void 0,[u.DIVEHI_MALDIVES]:void 0,[u.AFRIKAANS]:void 0,[u.AZERI_LATIN]:void 0,[u.BELARUSIAN]:void 0,[u.BULGARIAN]:void 0,[u.BOSNIAN]:void 0,[u.CATALAN]:void 0,[u.CZECH]:void 0,[u.WELSH]:void 0,[u.DANISH]:void 0,[u.DIVEHI]:void 0,[u.GREEK]:void 0,[u.ESPERANTO]:void 0,[u.ESTONIAN]:void 0,[u.BASQUE]:void 0,[u.FARSI]:void 0,[u.FINNISH]:void 0,[u.FAROESE]:void 0,[u.GALICIAN]:void 0,[u.GUJARATI]:void 0,[u.HEBREW]:void 0,[u.CROATIAN]:void 0,[u.HUNGARIAN]:void 0,[u.ARMENIAN]:void 0,[u.INDONESIAN]:void 0,[u.ICELANDIC]:void 0,[u.GEORGIAN]:void 0,[u.KAZAKH]:void 0,[u.KANNADA]:void 0,[u.KONKANI]:void 0,[u.KYRGYZ]:void 0,[u.LITHUANIAN]:void 0,[u.LATVIAN]:void 0,[u.MAORI]:void 0,[u.FYRO_MACEDONIAN]:void 0,[u.MONGOLIAN]:void 0,[u.MARATHI]:void 0,[u.MALAY]:void 0,[u.MALTESE]:void 0,[u.NORWEGIAN_BOKMAL]:void 0,[u.DUTCH]:void 0,[u.NORTHERN_SOTHO]:void 0,[u.PUNJABI]:void 0,[u.POLISH]:void 0,[u.PASHTO]:void 0,[u.QUECHUA]:void 0,[u.ROMANIAN]:void 0,[u.SANSKRIT]:void 0,[u.SAMI_NORTHERN]:void 0,[u.SLOVAK]:void 0,[u.SLOVENIAN]:void 0,[u.ALBANIAN]:void 0,[u.SERBIAN_LATIN]:void 0,[u.SWEDISH]:void 0,[u.SWEDISH_FINLAND]:void 0,[u.SWEDISH_SWEDEN]:void 0,[u.SWAHILI]:void 0,[u.SYRIAC]:void 0,[u.TAMIL]:void 0,[u.TELUGU]:void 0,[u.THAI]:void 0,[u.TAGALOG]:void 0,[u.TSWANA]:void 0,[u.TURKISH]:void 0,[u.TATAR]:void 0,[u.UKRAINIAN]:void 0,[u.URDU]:void 0,[u.UZBEK_LATIN]:void 0,[u.VIETNAMESE]:void 0,[u.XHOSA]:void 0,[u.ZULU]:void 0,[u.AFRIKAANS_SOUTH_AFRICA]:void 0,[u.AZERI_LATIN_AZERBAIJAN]:void 0,[u.BELARUSIAN_BELARUS]:void 0,[u.BULGARIAN_BULGARIA]:void 0,[u.BOSNIAN_BOSNIA_AND_HERZEGOVINA]:void 0,[u.CATALAN_SPAIN]:void 0,[u.CZECH_CZECH_REPUBLIC]:void 0,[u.WELSH_UNITED_KINGDOM]:void 0,[u.DANISH_DENMARK]:void 0,[u.GREEK_GREECE]:void 0,[u.ESTONIAN_ESTONIA]:void 0,[u.BASQUE_SPAIN]:void 0,[u.FARSI_IRAN]:void 0,[u.FINNISH_FINLAND]:void 0,[u.FAROESE_FAROE_ISLANDS]:void 0,[u.GALICIAN_SPAIN]:void 0,[u.GUJARATI_INDIA]:void 0,[u.HEBREW_ISRAEL]:void 0,[u.HINDI_INDIA]:void 0,[u.CROATIAN_BOSNIA_AND_HERZEGOVINA]:void 0,[u.CROATIAN_CROATIA]:void 0,[u.HUNGARIAN_HUNGARY]:void 0,[u.ARMENIAN_ARMENIA]:void 0,[u.INDONESIAN_INDONESIA]:void 0,[u.ICELANDIC_ICELAND]:void 0,[u.GEORGIAN_GEORGIA]:void 0,[u.KAZAKH_KAZAKHSTAN]:void 0,[u.KANNADA_INDIA]:void 0,[u.KONKANI_INDIA]:void 0,[u.KYRGYZ_KYRGYZSTAN]:void 0,[u.LITHUANIAN_LITHUANIA]:void 0,[u.LATVIAN_LATVIA]:void 0,[u.MAORI_NEW_ZEALAND]:void 0,[u.FYRO_MACEDONIAN_MACEDONIA]:void 0,[u.MONGOLIAN_MONGOLIA]:void 0,[u.MARATHI_INDIA]:void 0,[u.MALAY_BRUNEI_DARUSSALAM]:void 0,[u.MALAY_MALAYSIA]:void 0,[u.MALTESE_MALTA]:void 0,[u.NORWEGIAN_BOKMAL_NORWAY]:void 0,[u.NORWEGIAN_NYNORSK_NORWAY]:void 0,[u.NORTHERN_SOTHO_SOUTH_AFRICA]:void 0,[u.PUNJABI_INDIA]:void 0,[u.POLISH_POLAND]:void 0,[u.PASHTO_AFGHANISTAN]:void 0,[u.QUECHUA_BOLIVIA]:void 0,[u.QUECHUA_ECUADOR]:void 0,[u.QUECHUA_PERU]:void 0,[u.ROMANIAN_ROMANIA]:void 0,[u.SANSKRIT_INDIA]:void 0,[u.SAMI_NORTHERN_FINLAND]:void 0,[u.SAMI_NORTHERN_NORWAY]:void 0,[u.SAMI_NORTHERN_SWEDEN]:void 0,[u.SLOVAK_SLOVAKIA]:void 0,[u.SLOVENIAN_SLOVENIA]:void 0,[u.ALBANIAN_ALBANIA]:void 0,[u.SERBIAN_LATIN_BOSNIA_AND_HERZEGOVINA]:void 0,[u.SERBIAN_LATIN_SERBIA_AND_MONTENEGRO]:void 0,[u.SWAHILI_KENYA]:void 0,[u.SYRIAC_SYRIA]:void 0,[u.TAMIL_INDIA]:void 0,[u.TELUGU_INDIA]:void 0,[u.THAI_THAILAND]:void 0,[u.TAGALOG_PHILIPPINES]:void 0,[u.TSWANA_SOUTH_AFRICA]:void 0,[u.TURKISH_TURKEY]:void 0,[u.TATAR_RUSSIA]:void 0,[u.TSOGA]:void 0,[u.UKRAINIAN_UKRAINE]:void 0,[u.URDU_ISLAMIC_REPUBLIC_OF_PAKISTAN]:void 0,[u.UZBEK_LATIN_UZBEKISTAN]:void 0,[u.VIETNAMESE_VIET_NAM]:void 0,[u.XHOSA_SOUTH_AFRICA]:void 0,[u.ZULU_SOUTH_AFRICA]:void 0},S0=(e,t)=>{var n;return t?((n=dF[t])==null?void 0:n[e])??wS[e]??"Unknown locale":wS[e]},fF=e=>{switch(e){case u.ENGLISH:case u.FRENCH:case u.SPANISH:case u.PORTUGUESE:case u.GERMAN:case u.AFRIKAANS:case u.AZERI_LATIN:case u.BELARUSIAN:case u.BULGARIAN:case u.BOSNIAN:case u.CATALAN:case u.CZECH:case u.WELSH:case u.DANISH:case u.ESPERANTO:case u.ESTONIAN:case u.BASQUE:case u.FINNISH:case u.FAROESE:case u.GALICIAN:case u.GREEK:case u.CROATIAN:case u.HUNGARIAN:case u.ARMENIAN:case u.INDONESIAN:case u.ICELANDIC:case u.ITALIAN:case u.JAPANESE:case u.GEORGIAN:case u.KAZAKH:case u.KANNADA:case u.KOREAN:case u.KONKANI:case u.KYRGYZ:case u.LITHUANIAN:case u.LATVIAN:case u.MAORI:case u.FYRO_MACEDONIAN:case u.MONGOLIAN:case u.MARATHI:case u.MALAY:case u.MALTESE:case u.NORWEGIAN_BOKMAL:case u.DUTCH:case u.NORTHERN_SOTHO:case u.PUNJABI:case u.POLISH:case u.QUECHUA:case u.ROMANIAN:case u.RUSSIAN:case u.SANSKRIT:case u.SAMI_NORTHERN:case u.SLOVAK:case u.SLOVENIAN:case u.ALBANIAN:case u.SERBIAN_LATIN:case u.SWEDISH:case u.SWAHILI:case u.TAMIL:case u.TELUGU:case u.THAI:case u.TAGALOG:case u.TSWANA:case u.TURKISH:case u.UKRAINIAN:case u.UZBEK_LATIN:case u.VIETNAMESE:case u.XHOSA:case u.CHINESE_SIMPLIFIED:case u.CHINESE_TRADITIONAL:case u.ZULU:case u.AFRIKAANS_SOUTH_AFRICA:case u.AZERI_LATIN_AZERBAIJAN:case u.BELARUSIAN_BELARUS:case u.BULGARIAN_BULGARIA:case u.BOSNIAN_BOSNIA_AND_HERZEGOVINA:case u.CATALAN_SPAIN:case u.CZECH_CZECH_REPUBLIC:case u.WELSH_UNITED_KINGDOM:case u.DANISH_DENMARK:case u.GERMAN_AUSTRIA:case u.GERMAN_SWITZERLAND:case u.GERMAN_GERMANY:case u.GERMAN_LIECHTENSTEIN:case u.GERMAN_LUXEMBOURG:case u.GREEK_GREECE:case u.ENGLISH_AUSTRALIA:case u.ENGLISH_BELIZE:case u.ENGLISH_CANADA:case u.ENGLISH_CARIBBEAN:case u.ENGLISH_UNITED_KINGDOM:case u.ENGLISH_IRELAND:case u.ENGLISH_JAMAICA:case u.ENGLISH_NEW_ZEALAND:case u.ENGLISH_PHILIPPINES:case u.ENGLISH_TRINIDAD_AND_TOBAGO:case u.ENGLISH_UNITED_STATES:case u.ENGLISH_SOUTH_AFRICA:case u.ENGLISH_ZIMBABWE:case u.SPANISH_ARGENTINA:case u.SPANISH_BOLIVIA:case u.SPANISH_CHILE:case u.SPANISH_COLOMBIA:case u.SPANISH_COSTA_RICA:case u.SPANISH_DOMINICAN_REPUBLIC:case u.SPANISH_ECUADOR:case u.SPANISH_SPAIN:case u.SPANISH_GUATEMALA:case u.SPANISH_HONDURAS:case u.SPANISH_MEXICO:case u.SPANISH_NICARAGUA:case u.SPANISH_PANAMA:case u.SPANISH_PERU:case u.SPANISH_PUERTO_RICO:case u.SPANISH_PARAGUAY:case u.SPANISH_EL_SALVADOR:case u.SPANISH_URUGUAY:case u.SPANISH_VENEZUELA:case u.ESTONIAN_ESTONIA:case u.BASQUE_SPAIN:case u.FINNISH_FINLAND:case u.FAROESE_FAROE_ISLANDS:case u.FRENCH_BELGIUM:case u.FRENCH_CANADA:case u.FRENCH_SWITZERLAND:case u.FRENCH_FRANCE:case u.FRENCH_LUXEMBOURG:case u.FRENCH_PRINCIPALITY_OF_MONACO:case u.GALICIAN_SPAIN:case u.GUJARATI_INDIA:case u.HEBREW_ISRAEL:case u.HINDI_INDIA:case u.CROATIAN_BOSNIA_AND_HERZEGOVINA:case u.CROATIAN_CROATIA:case u.HUNGARIAN_HUNGARY:case u.ARMENIAN_ARMENIA:case u.INDONESIAN_INDONESIA:case u.ICELANDIC_ICELAND:case u.ITALIAN_SWITZERLAND:case u.ITALIAN_ITALY:case u.JAPANESE_JAPAN:case u.GEORGIAN_GEORGIA:case u.KAZAKH_KAZAKHSTAN:case u.KANNADA_INDIA:case u.KOREAN_KOREA:case u.KONKANI_INDIA:case u.KYRGYZ_KYRGYZSTAN:case u.LITHUANIAN_LITHUANIA:case u.LATVIAN_LATVIA:case u.MAORI_NEW_ZEALAND:case u.FYRO_MACEDONIAN_MACEDONIA:case u.MONGOLIAN_MONGOLIA:case u.MARATHI_INDIA:case u.MALAY_BRUNEI_DARUSSALAM:case u.MALAY_MALAYSIA:case u.MALTESE_MALTA:case u.NORWEGIAN_BOKMAL_NORWAY:case u.DUTCH_BELGIUM:case u.DUTCH_NETHERLANDS:case u.NORWEGIAN_NYNORSK_NORWAY:case u.NORTHERN_SOTHO_SOUTH_AFRICA:case u.PUNJABI_INDIA:case u.POLISH_POLAND:case u.PORTUGUESE_BRAZIL:case u.PORTUGUESE_PORTUGAL:case u.QUECHUA_BOLIVIA:case u.QUECHUA_ECUADOR:case u.QUECHUA_PERU:case u.ROMANIAN_ROMANIA:case u.RUSSIAN_RUSSIA:case u.SANSKRIT_INDIA:case u.SAMI_NORTHERN_FINLAND:case u.SAMI_NORTHERN_NORWAY:case u.SAMI_NORTHERN_SWEDEN:case u.SLOVAK_SLOVAKIA:case u.SLOVENIAN_SLOVENIA:case u.ALBANIAN_ALBANIA:case u.SERBIAN_LATIN_BOSNIA_AND_HERZEGOVINA:case u.SERBIAN_LATIN_SERBIA_AND_MONTENEGRO:case u.SWAHILI_KENYA:case u.TAMIL_INDIA:case u.TELUGU_INDIA:case u.THAI_THAILAND:case u.TAGALOG_PHILIPPINES:case u.TSWANA_SOUTH_AFRICA:case u.TURKISH_TURKEY:case u.TATAR_RUSSIA:case u.TSOGA:case u.UKRAINIAN_UKRAINE:case u.UZBEK_LATIN_UZBEKISTAN:case u.VIETNAMESE_VIET_NAM:case u.XHOSA_SOUTH_AFRICA:case u.CHINESE_HONG_KONG:case u.CHINESE_MACAU:case u.CHINESE_SINGAPORE:case u.ZULU_SOUTH_AFRICA:return"ltr";case u.ARABIC:case u.FARSI:case u.URDU:case u.PASHTO:case u.SYRIAC:case u.ARABIC_UNITED_ARAB_EMIRATES:case u.ARABIC_BAHRAIN:case u.ARABIC_ALGERIA:case u.ARABIC_EGYPT:case u.ARABIC_IRAQ:case u.ARABIC_JORDAN:case u.ARABIC_KUWAIT:case u.ARABIC_LEBANON:case u.ARABIC_LIBYA:case u.ARABIC_MOROCCO:case u.ARABIC_OMAN:case u.ARABIC_QATAR:case u.ARABIC_SAUDI_ARABIA:case u.ARABIC_SYRIA:case u.ARABIC_TUNISIA:case u.ARABIC_YEMEN:case u.FARSI_IRAN:case u.URDU_ISLAMIC_REPUBLIC_OF_PAKISTAN:case u.PASHTO_AFGHANISTAN:case u.SYRIAC_SYRIA:return"rtl";default:return"auto"}},AF=[u.AFRIKAANS,u.AFRIKAANS_SOUTH_AFRICA,u.ARABIC,u.ARABIC_UNITED_ARAB_EMIRATES,u.ARABIC_BAHRAIN,u.ARABIC_ALGERIA,u.ARABIC_EGYPT,u.ARABIC_IRAQ,u.ARABIC_JORDAN,u.ARABIC_KUWAIT,u.ARABIC_LEBANON,u.ARABIC_LIBYA,u.ARABIC_MOROCCO,u.ARABIC_OMAN,u.ARABIC_QATAR,u.ARABIC_SAUDI_ARABIA,u.ARABIC_SYRIA,u.ARABIC_TUNISIA,u.ARABIC_YEMEN,u.AZERI_LATIN,u.AZERI_LATIN_AZERBAIJAN,u.BELARUSIAN,u.BELARUSIAN_BELARUS,u.BULGARIAN,u.BULGARIAN_BULGARIA,u.BOSNIAN_BOSNIA_AND_HERZEGOVINA,u.CATALAN,u.CATALAN_SPAIN,u.CZECH,u.CZECH_CZECH_REPUBLIC,u.WELSH,u.WELSH_UNITED_KINGDOM,u.DANISH,u.DANISH_DENMARK,u.GERMAN,u.GERMAN_AUSTRIA,u.GERMAN_SWITZERLAND,u.GERMAN_GERMANY,u.GERMAN_LIECHTENSTEIN,u.GERMAN_LUXEMBOURG,u.DIVEHI,u.DIVEHI_MALDIVES,u.GREEK,u.GREEK_GREECE,u.ENGLISH,u.ENGLISH_AUSTRALIA,u.ENGLISH_BELIZE,u.ENGLISH_CANADA,u.ENGLISH_CARIBBEAN,u.ENGLISH_UNITED_KINGDOM,u.ENGLISH_IRELAND,u.ENGLISH_JAMAICA,u.ENGLISH_NEW_ZEALAND,u.ENGLISH_PHILIPPINES,u.ENGLISH_TRINIDAD_AND_TOBAGO,u.ENGLISH_UNITED_STATES,u.ENGLISH_SOUTH_AFRICA,u.ENGLISH_ZIMBABWE,u.ESPERANTO,u.SPANISH,u.SPANISH_ARGENTINA,u.SPANISH_BOLIVIA,u.SPANISH_CHILE,u.SPANISH_COLOMBIA,u.SPANISH_COSTA_RICA,u.SPANISH_DOMINICAN_REPUBLIC,u.SPANISH_ECUADOR,u.SPANISH_SPAIN,u.SPANISH_GUATEMALA,u.SPANISH_HONDURAS,u.SPANISH_MEXICO,u.SPANISH_NICARAGUA,u.SPANISH_PANAMA,u.SPANISH_PERU,u.SPANISH_PUERTO_RICO,u.SPANISH_PARAGUAY,u.SPANISH_EL_SALVADOR,u.SPANISH_URUGUAY,u.SPANISH_VENEZUELA,u.ESTONIAN,u.ESTONIAN_ESTONIA,u.BASQUE,u.BASQUE_SPAIN,u.FARSI,u.FARSI_IRAN,u.FINNISH,u.FINNISH_FINLAND,u.FAROESE,u.FAROESE_FAROE_ISLANDS,u.FRENCH,u.FRENCH_BELGIUM,u.FRENCH_CANADA,u.FRENCH_SWITZERLAND,u.FRENCH_FRANCE,u.FRENCH_LUXEMBOURG,u.FRENCH_PRINCIPALITY_OF_MONACO,u.GALICIAN,u.GALICIAN_SPAIN,u.GUJARATI,u.GUJARATI_INDIA,u.HEBREW,u.HEBREW_ISRAEL,u.HINDI,u.HINDI_INDIA,u.CROATIAN,u.CROATIAN_BOSNIA_AND_HERZEGOVINA,u.CROATIAN_CROATIA,u.HUNGARIAN,u.HUNGARIAN_HUNGARY,u.ARMENIAN,u.ARMENIAN_ARMENIA,u.INDONESIAN,u.INDONESIAN_INDONESIA,u.ICELANDIC,u.ICELANDIC_ICELAND,u.ITALIAN,u.ITALIAN_SWITZERLAND,u.ITALIAN_ITALY,u.JAPANESE,u.JAPANESE_JAPAN,u.GEORGIAN,u.GEORGIAN_GEORGIA,u.KAZAKH,u.KAZAKH_KAZAKHSTAN,u.KANNADA,u.KANNADA_INDIA,u.KOREAN,u.KOREAN_KOREA,u.KONKANI,u.KONKANI_INDIA,u.KYRGYZ,u.KYRGYZ_KYRGYZSTAN,u.LITHUANIAN,u.LITHUANIAN_LITHUANIA,u.LATVIAN,u.LATVIAN_LATVIA,u.MAORI,u.MAORI_NEW_ZEALAND,u.FYRO_MACEDONIAN,u.FYRO_MACEDONIAN_MACEDONIA,u.MONGOLIAN,u.MONGOLIAN_MONGOLIA,u.MARATHI,u.MARATHI_INDIA,u.MALAY,u.MALAY_BRUNEI_DARUSSALAM,u.MALAY_MALAYSIA,u.MALTESE,u.MALTESE_MALTA,u.NORWEGIAN_BOKMAL,u.NORWEGIAN_BOKMAL_NORWAY,u.DUTCH,u.DUTCH_BELGIUM,u.DUTCH_NETHERLANDS,u.NORWEGIAN_NYNORSK_NORWAY,u.NORTHERN_SOTHO,u.NORTHERN_SOTHO_SOUTH_AFRICA,u.PUNJABI,u.PUNJABI_INDIA,u.POLISH,u.POLISH_POLAND,u.PASHTO,u.PASHTO_AFGHANISTAN,u.PORTUGUESE,u.PORTUGUESE_BRAZIL,u.PORTUGUESE_PORTUGAL,u.QUECHUA,u.QUECHUA_BOLIVIA,u.QUECHUA_ECUADOR,u.QUECHUA_PERU,u.ROMANIAN,u.ROMANIAN_ROMANIA,u.RUSSIAN,u.RUSSIAN_RUSSIA,u.SANSKRIT,u.SANSKRIT_INDIA,u.SAMI_NORTHERN,u.SAMI_NORTHERN_FINLAND,u.SAMI_NORTHERN_NORWAY,u.SAMI_NORTHERN_SWEDEN,u.SLOVAK,u.SLOVAK_SLOVAKIA,u.SLOVENIAN,u.SLOVENIAN_SLOVENIA,u.ALBANIAN,u.ALBANIAN_ALBANIA,u.SERBIAN_LATIN_BOSNIA_AND_HERZEGOVINA,u.SERBIAN_LATIN_SERBIA_AND_MONTENEGRO,u.SWEDISH,u.SWEDISH_FINLAND,u.SWEDISH_SWEDEN,u.SWAHILI_KENYA,u.SYRIAC_SYRIA,u.TAMIL,u.TAMIL_INDIA,u.TELUGU,u.TELUGU_INDIA,u.THAI,u.THAI_THAILAND,u.TAGALOG,u.TAGALOG_PHILIPPINES,u.TSWANA,u.TSWANA_SOUTH_AFRICA,u.TURKISH,u.TURKISH_TURKEY,u.TATAR,u.TATAR_RUSSIA,u.TSOGA,u.UKRAINIAN,u.UKRAINIAN_UKRAINE,u.URDU,u.URDU_ISLAMIC_REPUBLIC_OF_PAKISTAN,u.UZBEK_LATIN,u.UZBEK_LATIN_UZBEKISTAN,u.VIETNAMESE,u.VIETNAMESE_VIET_NAM,u.XHOSA,u.XHOSA_SOUTH_AFRICA,u.CHINESE,u.CHINESE_SIMPLIFIED,u.CHINESE_HONG_KONG,u.CHINESE_MACAU,u.CHINESE_SINGAPORE,u.CHINESE_TRADITIONAL,u.ZULU_SOUTH_AFRICA],hF=(e,t=Qe.internationalization.locales,n=Qe.internationalization.defaultLocale)=>{const r=[e].flat(),a=o=>o.trim().toLowerCase();try{for(const o of r){const l=a(o),d=t.find(m=>a(m)===l);if(d)return d;const[f]=l.split("-"),A=t.find(m=>a(m).split("-")[0]===f);if(A)return A}}catch{}return n},mF=(e,t=Qe.internationalization.locales)=>{const n=ov(e);let r=e;e.endsWith("/")&&(r=e.slice(0,-1));const a=n?new URL(r):new URL(r,"http://example.com"),o=a.pathname;o.startsWith("/")||(a.pathname=`/${o}`);const l=o.split("/"),d=l[1];if(t.includes(d)){l.splice(1,1);const f=l.join("/")??"/";a.pathname=f}return n?a.toString():a.toString().replace("http://example.com","")},pF=(e,t=Qe.internationalization.locales,n=Qe.internationalization.defaultLocale,r=Qe.middleware.prefixDefault)=>{const a=mF(e,t),o=ov(a),l=o?new URL(a):new URL(a,"http://example.com");let d=l.pathname;d.startsWith("/")||(d=`/${d}`);const f=o?`${l.protocol}//${l.host}`:"";return t.reduce((m,E)=>{const g=E.toString()===n.toString();let S=r||!g?`/${E}${d}`:d;S.length>1&&S.endsWith("/")&&(S=S.slice(0,-1));const y=o?`${f}${S}${l.search}${l.hash}`:`${S}${l.search}${l.hash}`;return m[E]=y,m},{})},EF=(e,t,n=Qe.internationalization.locales,r=Qe.internationalization.defaultLocale,a=Qe.middleware.prefixDefault)=>pF(e,n,r,a)[t],lv=C.createContext(void 0),gF=e=>Ps("INTLAYER_EDITED_CONTENT_CHANGED/get",e),cv=C.createContext(void 0),HS=(e,t)=>typeof e=="function"?e(t):e,_F=({children:e})=>{const{localeDictionaries:t}=uv(),[n,r]=Ta("INTLAYER_EDITED_CONTENT_CHANGED"),a=_=>{let S=HS(_);return r(y=>(S=HS(_,y==null?void 0:y[S.key]),{...y,[S.key]:S})),S},o=(_,S)=>{r(y=>({...y,[_]:{...y==null?void 0:y[_],content:S}}))},l=(_,S,y=[],v=!0)=>{r(R=>{var O,F;const D=(O=t[_])==null?void 0:O.content,x=structuredClone(((F=R==null?void 0:R[_])==null?void 0:F.content)??D);let L=y;if(!v){let j=0;const G=y.slice(0,-1),K=y[y.length-1];let Ae=K.key;for(;typeof Gr(x,L)<"u";)j++,Ae=j===0?K.key:`${K.key} (${j})`,L=[...G,{...K,key:Ae}]}const b=OS(x,L,S);return{...R,[_]:{...R==null?void 0:R[_],content:b}}})},d=(_,S,y=[])=>{r(v=>{var L,b;const R=(L=t[_])==null?void 0:L.content,D=structuredClone(((b=v==null?void 0:v[_])==null?void 0:b.content)??R),x=oF(D,S,y);return{...v,[_]:{...v==null?void 0:v[_],content:x}}})},f=(_,S)=>{r(y=>{var L,b;const v=(L=t[_])==null?void 0:L.content,R=structuredClone(((b=y==null?void 0:y[_])==null?void 0:b.content)??v),D=Gr(v,S),x=OS(R,S,D);return{...y,[_]:{...y==null?void 0:y[_],content:x}}})},A=_=>{r(S=>{const y={...S};return delete y[_],y})},m=_=>{r(S=>Object.entries(S).reduce((v,[R,D])=>R===_?v:{...v,[R]:D},{}))},E=()=>{r({})},g=(_,S)=>{var v;const y=((v=n==null?void 0:n[_])==null?void 0:v.content)??{};return Gr(y,S)};return N.jsx(lv.Provider,{value:{editedContent:n},children:N.jsx(cv.Provider,{value:{setEditedContentState:r,setEditedDictionary:a,setEditedContent:o,addEditedContent:l,renameEditedContent:d,removeEditedContent:f,restoreEditedContent:A,clearEditedDictionaryContent:m,clearEditedContent:E,getEditedContentValue:g},children:e})})},$s=()=>C.useContext(cv),On=()=>{const e=C.useContext(lv),t=$s();return{...e,...t}},dv=C.createContext(void 0),fv=C.createContext(void 0),NF=({children:e})=>{const[t,n]=Ta("INTLAYER_FOCUSED_CONTENT_CHANGED",null),r=a=>{n(o=>o&&{...o,keyPath:a})};return N.jsx(dv.Provider,{value:{focusedContent:t},children:N.jsx(fv.Provider,{value:{setFocusedContent:n,setFocusedContentKeyPath:r},children:e})})},WE=()=>{const e=C.useContext(fv);if(e===void 0)throw new Error("useFocusDictionaryActions must be used within a FocusDictionaryProvider");return e},vi=()=>{const e=WE(),t=C.useContext(dv);if(t===void 0)throw new Error("useFocusDictionaryState must be used within a FocusDictionaryProvider");return{...t,...e}},Av=C.createContext({enabled:!1}),IF=e=>Ta("INTLAYER_EDITOR_ENABLED",!1,e),SF=e=>Ps("INTLAYER_EDITOR_ENABLED/post",e),hv=e=>Ps("INTLAYER_EDITOR_ENABLED/get",e),CF=({children:e})=>{const[t]=IF({emit:!1,receive:!0});return N.jsx(Av.Provider,{value:{enabled:t},children:e})},mv=()=>C.useContext(Av),yF=C.createContext(void 0),vF=C.createContext(void 0),RF=({children:e})=>{const[t,n]=C.useState({}),r=(a,o)=>{n(l=>({...l,[a]:{...l==null?void 0:l[a],content:o}}))};return N.jsx(yF.Provider,{value:{changedContent:t},children:N.jsx(vF.Provider,{value:{setChangedContent:r},children:e})})},PS=({children:e})=>{const t=gF();return C.useEffect(()=>{t()},[]),N.jsx(PO,{children:N.jsx(_F,{children:N.jsx(NF,{children:e})})})},DF=({children:e,fallback:t})=>{const n=hv(),{enabled:r}=mv();return C.useEffect(()=>{r||n()},[r]),r?e:t},TF=({children:e,fallback:t})=>{const[n,r]=C.useState(!1);return C.useEffect(()=>{r(window.self!==window.top)},[]),n?e:t},xF=({children:e,configuration:t,...n})=>N.jsx(RF,{children:N.jsx(CF,{children:N.jsx(HO,{configuration:t,children:n.mode==="editor"?N.jsx(xS,{...n,children:N.jsx(PS,{children:e})}):N.jsx(TF,{fallback:e,children:N.jsx(xS,{...n,children:N.jsx(DF,{fallback:e,children:N.jsx(PS,{children:e})})})})})})}),bF=(e,t)=>Ta("INTLAYER_URL_CHANGE",e,t),BF=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)},OF=()=>Ps("INTLAYER_IFRAME_CLICKED",BF);/*! js-cookie v3.0.5 | MIT */function Jd(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 FF={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 Lp(e,t){function n(a,o,l){if(!(typeof document>"u")){l=Jd({},t,l),typeof l.expires=="number"&&(l.expires=new Date(Date.now()+l.expires*864e5)),l.expires&&(l.expires=l.expires.toUTCString()),a=encodeURIComponent(a).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var d="";for(var f in l)l[f]&&(d+="; "+f,l[f]!==!0&&(d+="="+l[f].split(";")[0]));return document.cookie=a+"="+e.write(o,a)+d}}function r(a){if(!(typeof document>"u"||arguments.length&&!a)){for(var o=document.cookie?document.cookie.split("; "):[],l={},d=0;d<o.length;d++){var f=o[d].split("="),A=f.slice(1).join("=");try{var m=decodeURIComponent(f[0]);if(l[m]=e.read(A,m),a===m)break}catch{}}return a?l[a]:l}}return Object.create({set:n,get:r,remove:function(a,o){n(a,"",Jd({},o,{expires:-1}))},withAttributes:function(a){return Lp(this.converter,Jd({},this.attributes,a))},withConverter:function(a){return Lp(Jd({},this.converter,a),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(e)}})}var pv=Lp(FF,{path:"/"});const{cookieName:Ev}=Qe.middleware,LF={path:"/",expires:void 0,domain:void 0,secure:!1,sameSite:"strict"},$E=pv.get(Ev),gv=e=>{pv.set(Ev,e,LF)},wF=()=>({localeCookie:$E,setLocaleCookie:gv});var Qy;const Tf=C.createContext({locale:$E??((Qy=Qe==null?void 0:Qe.internationalization)==null?void 0:Qy.defaultLocale),setLocale:()=>null,disableEditor:!1}),MF=()=>C.useContext(Tf),HF=({locale:e,defaultLocale:t,children:n,setLocale:r,disableEditor:a})=>{const{internationalization:o}=Qe??{},{defaultLocale:l,locales:d}=o??{},f=e??$E??t??l,[A,m]=Ta("INTLAYER_CURRENT_LOCALE",f),g=r??(S=>{if(A.toString()!==S.toString()){if(!(d!=null&&d.map(String).includes(S))){console.error(`Locale ${S} is not available`);return}m(S),gv(S)}}),_=hF(e??A);return N.jsx(Tf.Provider,{value:{locale:_,setLocale:g,disableEditor:a},children:n})},H0=({children:e,value:t,additionalProps:n})=>{const r=C.isValidElement(e)?e:N.jsx(N.Fragment,{children:e});return new Proxy(r,{get(a,o,l){return o==="value"?t:n&&Object.keys(n).includes(o)?n[o]:Reflect.get(a,o,l)}})},qE=({dictionaryKey:e,keyPath:t,children:n})=>{const r=$s();return r?r.getEditedContentValue(e,t)??n:n},PF=e=>qE(e),UF=250,kF=({children:e,onPress:t,onClickOutside:n,pressDuration:r=UF,isSelecting:a,...o})=>{const l=C.useRef(null),[d,f]=C.useState(!1),[A,m]=C.useState(a),E=C.useRef(null),g=typeof e=="string",_=()=>{m(!0),t()},S=()=>{E.current=setTimeout(()=>{_()},r)},y=()=>{E.current&&(clearTimeout(E.current),E.current=null)},v=()=>{y(),S()},R=()=>{f(!0)},D=()=>{f(!1),y()},x=C.useCallback(O=>{l.current&&!l.current.contains(O.target)&&(m(!1),n==null||n())},[n]);C.useEffect(()=>(document.addEventListener("mousedown",x),()=>{document.removeEventListener("mousedown",x)}),[x]);const L=O=>{A&&(O.preventDefault(),O.stopPropagation())},b=()=>{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:a||A||d?"inherit":"transparent",transition:"all 100ms 50ms ease-in-out"},role:"button",tabIndex:0,onKeyUp:()=>null,onClick:L,onMouseDown:v,onMouseUp:D,onMouseLeave:D,onTouchStart:v,onTouchEnd:D,onTouchCancel:D,onBlur:b,onMouseEnter:R,ref:l,...o,children:e})},GF=({children:e,dictionaryKey:t,keyPath:n})=>{const{focusedContent:r,setFocusedContent:a}=vi(),o=C.useCallback(()=>a({dictionaryKey:t,keyPath:n}),[t,n]),l=C.useMemo(()=>{var d;return((r==null?void 0:r.dictionaryKey)===t&&(((d=r==null?void 0:r.keyPath)==null?void 0:d.length)??0)>0&&gc((r==null?void 0:r.keyPath)??[],n))??!1},[r,n,t]);return N.jsx(kF,{onPress:o,isSelecting:l,children:e})},P0=({children:e,...t})=>{const{enabled:n}=mv(),{disableEditor:r}=MF();return n&&!r?N.jsx(GF,{...t,children:e}):e},jF=C.createContext({renderMarkdown:e=>e}),VF=()=>C.useContext(jF),zF=({dictionaryKey:e,keyPath:t,children:n})=>{const{renderMarkdown:r}=VF(),a=qE({dictionaryKey:e,keyPath:t,children:n});return r(a)},KF=({dictionaryKey:e,keyPath:t,children:n,metadataKeyPath:r})=>{const a=qE({dictionaryKey:e,keyPath:t,children:n}),o=iv(a);return Gr(o,r)},YF={canHandle:e=>typeof e=="bigint"||typeof e=="string"||typeof e=="number",transform:(e,{plugins:t,...n})=>H0({...n,value:n.children,children:N.jsx(P0,{...n,children:N.jsx(PF,{...n,children:n.children})})})},ZF={canHandle:e=>typeof e=="object"&&typeof e.props<"u"&&typeof e.key<"u",transform:(e,{plugins:t,...n})=>H0({...n,value:"[[react-element]]",children:N.jsx(P0,{...n,children:"renderReactElement(node)"})})},WF={canHandle:e=>typeof e=="object"&&(e==null?void 0:e.nodeType)===U.Markdown,transform:(e,t)=>{const{plugins:n,...r}=t,a=[...t.keyPath,{type:U.Markdown}],o=e[U.Markdown],l=iv(o),f=bl(l,{plugins:[{canHandle:A=>typeof A=="string"||typeof A=="number"||typeof A=="boolean"||!A,transform:(A,m)=>H0({...m,value:A,children:N.jsx(P0,{...r,keyPath:a,children:N.jsx(KF,{...r,keyPath:a,metadataKeyPath:m.keyPath,children:o})})})}],dictionaryKey:r.dictionaryKey,keyPath:[]});return H0({...t,value:o,children:N.jsx(P0,{...r,keyPath:a,children:N.jsx(zF,{...r,keyPath:a,children:o})}),additionalProps:{metadata:f}})}},$F=(e,t,n)=>av(e,t,[YF,ZF,WF]),rn=(e,t)=>{const{locale:n}=C.useContext(Tf);return $F(e,n)},QE=({onLocaleChange:e}={})=>{const{prefixDefault:t}=(Qe==null?void 0:Qe.middleware)??{},{defaultLocale:n,locales:r}=(Qe==null?void 0:Qe.internationalization)??{},{locale:a,setLocale:o}=C.useContext(Tf),{setLocaleCookie:l}=wF();return{locale:a,defaultLocale:n,availableLocales:r,localeList:AF,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 dl={},US;function qF(){if(US)return dl;US=1,Object.defineProperty(dl,"__esModule",{value:!0}),dl.parse=l,dl.serialize=A;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]*$/,a=Object.prototype.toString,o=(()=>{const g=function(){};return g.prototype=Object.create(null),g})();function l(g,_){const S=new o,y=g.length;if(y<2)return S;const v=(_==null?void 0:_.decode)||m;let R=0;do{const D=g.indexOf("=",R);if(D===-1)break;const x=g.indexOf(";",R),L=x===-1?y:x;if(D>L){R=g.lastIndexOf(";",D-1)+1;continue}const b=d(g,R,D),O=f(g,D,b),F=g.slice(b,O);if(S[F]===void 0){let j=d(g,D+1,L),G=f(g,L,j);const K=v(g.slice(j,G));S[F]=K}R=L+1}while(R<y);return S}function d(g,_,S){do{const y=g.charCodeAt(_);if(y!==32&&y!==9)return _}while(++_<S);return S}function f(g,_,S){for(;_>S;){const y=g.charCodeAt(--_);if(y!==32&&y!==9)return _+1}return S}function A(g,_,S){const y=(S==null?void 0:S.encode)||encodeURIComponent;if(!e.test(g))throw new TypeError(`argument name is invalid: ${g}`);const v=y(_);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 a.call(g)==="[object Date]"}return dl}qF();/**
|
|
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 kS="popstate";function QF(e={}){function t(r,a){let{pathname:o,search:l,hash:d}=r.location;return wp("",{pathname:o,search:l,hash:d},a.state&&a.state.usr||null,a.state&&a.state.key||"default")}function n(r,a){return typeof a=="string"?a:jl(a)}return JF(t,n,null,e)}function Tt(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Wr(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function XF(){return Math.random().toString(36).substring(2,10)}function GS(e,t){return{usr:e.state,key:e.key,idx:t}}function wp(e,t,n=null,r){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?qs(t):t,state:n,key:t&&t.key||r||XF()}}function jl({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 qs(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 JF(e,t,n,r={}){let{window:a=document.defaultView,v5Compat:o=!1}=r,l=a.history,d="POP",f=null,A=m();A==null&&(A=0,l.replaceState({...l.state,idx:A},""));function m(){return(l.state||{idx:null}).idx}function E(){d="POP";let v=m(),R=v==null?null:v-A;A=v,f&&f({action:d,location:y.location,delta:R})}function g(v,R){d="PUSH";let D=wp(y.location,v,R);A=m()+1;let x=GS(D,A),L=y.createHref(D);try{l.pushState(x,"",L)}catch(b){if(b instanceof DOMException&&b.name==="DataCloneError")throw b;a.location.assign(L)}o&&f&&f({action:d,location:y.location,delta:1})}function _(v,R){d="REPLACE";let D=wp(y.location,v,R);A=m();let x=GS(D,A),L=y.createHref(D);l.replaceState(x,"",L),o&&f&&f({action:d,location:y.location,delta:0})}function S(v){let R=a.location.origin!=="null"?a.location.origin:a.location.href,D=typeof v=="string"?v:jl(v);return D=D.replace(/ $/,"%20"),Tt(R,`No window.location.(origin|href) available to create URL for href: ${D}`),new URL(D,R)}let y={get action(){return d},get location(){return e(a,l)},listen(v){if(f)throw new Error("A history only accepts one active listener");return a.addEventListener(kS,E),f=v,()=>{a.removeEventListener(kS,E),f=null}},createHref(v){return t(a,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 y}function _v(e,t,n="/"){return eL(e,t,n,!1)}function eL(e,t,n,r){let a=typeof t=="string"?qs(t):t,o=bu(a.pathname||"/",n);if(o==null)return null;let l=Nv(e);tL(l);let d=null;for(let f=0;d==null&&f<l.length;++f){let A=fL(o);d=cL(l[f],A,r)}return d}function Nv(e,t=[],n=[],r=""){let a=(o,l,d)=>{let f={relativePath:d===void 0?o.path||"":d,caseSensitive:o.caseSensitive===!0,childrenIndex:l,route:o};f.relativePath.startsWith("/")&&(Tt(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 A=Ru([r,f.relativePath]),m=n.concat(f);o.children&&o.children.length>0&&(Tt(o.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${A}".`),Nv(o.children,t,m,A)),!(o.path==null&&!o.index)&&t.push({path:A,score:oL(A,o.index),routesMeta:m})};return e.forEach((o,l)=>{var d;if(o.path===""||!((d=o.path)!=null&&d.includes("?")))a(o,l);else for(let f of Iv(o.path))a(o,l,f)}),t}function Iv(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,a=n.endsWith("?"),o=n.replace(/\?$/,"");if(r.length===0)return a?[o,""]:[o];let l=Iv(r.join("/")),d=[];return d.push(...l.map(f=>f===""?o:[o,f].join("/"))),a&&d.push(...l),d.map(f=>e.startsWith("/")&&f===""?"/":f)}function tL(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:lL(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}var nL=/^:[\w-]+$/,rL=3,uL=2,iL=1,aL=10,sL=-2,jS=e=>e==="*";function oL(e,t){let n=e.split("/"),r=n.length;return n.some(jS)&&(r+=sL),t&&(r+=uL),n.filter(a=>!jS(a)).reduce((a,o)=>a+(nL.test(o)?rL:o===""?iL:aL),r)}function lL(e,t){return e.length===t.length&&e.slice(0,-1).every((r,a)=>r===t[a])?e[e.length-1]-t[t.length-1]:0}function cL(e,t,n=!1){let{routesMeta:r}=e,a={},o="/",l=[];for(let d=0;d<r.length;++d){let f=r[d],A=d===r.length-1,m=o==="/"?t:t.slice(o.length)||"/",E=U0({path:f.relativePath,caseSensitive:f.caseSensitive,end:A},m),g=f.route;if(!E&&A&&n&&!r[r.length-1].route.index&&(E=U0({path:f.relativePath,caseSensitive:f.caseSensitive,end:!1},m)),!E)return null;Object.assign(a,E.params),l.push({params:a,pathname:Ru([o,E.pathname]),pathnameBase:pL(Ru([o,E.pathnameBase])),route:g}),E.pathnameBase!=="/"&&(o=Ru([o,E.pathnameBase]))}return l}function U0(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=dL(e.path,e.caseSensitive,e.end),a=t.match(n);if(!a)return null;let o=a[0],l=o.replace(/(.)\/+$/,"$1"),d=a.slice(1);return{params:r.reduce((A,{paramName:m,isOptional:E},g)=>{if(m==="*"){let S=d[g]||"";l=o.slice(0,o.length-S.length).replace(/(.)\/+$/,"$1")}const _=d[g];return E&&!_?A[m]=void 0:A[m]=(_||"").replace(/%2F/g,"/"),A},{}),pathname:o,pathnameBase:l,pattern:e}}function dL(e,t=!1,n=!0){Wr(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=[],a="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(l,d,f)=>(r.push({paramName:d,isOptional:f!=null}),f?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),a+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?a+="\\/*$":e!==""&&e!=="/"&&(a+="(?:(?=\\/|$))"),[new RegExp(a,t?void 0:"i"),r]}function fL(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Wr(!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 bu(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 AL(e,t="/"){let{pathname:n,search:r="",hash:a=""}=typeof e=="string"?qs(e):e;return{pathname:n?n.startsWith("/")?n:hL(n,t):t,search:EL(r),hash:gL(a)}}function hL(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(a=>{a===".."?n.length>1&&n.pop():a!=="."&&n.push(a)}),n.length>1?n.join("/"):"/"}function Dm(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 mL(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Sv(e){let t=mL(e);return t.map((n,r)=>r===t.length-1?n.pathname:n.pathnameBase)}function Cv(e,t,n,r=!1){let a;typeof e=="string"?a=qs(e):(a={...e},Tt(!a.pathname||!a.pathname.includes("?"),Dm("?","pathname","search",a)),Tt(!a.pathname||!a.pathname.includes("#"),Dm("#","pathname","hash",a)),Tt(!a.search||!a.search.includes("#"),Dm("#","search","hash",a)));let o=e===""||a.pathname==="",l=o?"/":a.pathname,d;if(l==null)d=n;else{let E=t.length-1;if(!r&&l.startsWith("..")){let g=l.split("/");for(;g[0]==="..";)g.shift(),E-=1;a.pathname=g.join("/")}d=E>=0?t[E]:"/"}let f=AL(a,d),A=l&&l!=="/"&&l.endsWith("/"),m=(o||l===".")&&n.endsWith("/");return!f.pathname.endsWith("/")&&(A||m)&&(f.pathname+="/"),f}var Ru=e=>e.join("/").replace(/\/\/+/g,"/"),pL=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),EL=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,gL=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function _L(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}var yv=["POST","PUT","PATCH","DELETE"];new Set(yv);var NL=["GET",...yv];new Set(NL);var Qs=C.createContext(null);Qs.displayName="DataRouter";var xf=C.createContext(null);xf.displayName="DataRouterState";var vv=C.createContext({isTransitioning:!1});vv.displayName="ViewTransition";var IL=C.createContext(new Map);IL.displayName="Fetchers";var SL=C.createContext(null);SL.displayName="Await";var Jr=C.createContext(null);Jr.displayName="Navigation";var _c=C.createContext(null);_c.displayName="Location";var Mu=C.createContext({outlet:null,matches:[],isDataRoute:!1});Mu.displayName="Route";var XE=C.createContext(null);XE.displayName="RouteError";function CL(e,{relative:t}={}){Tt(Nc(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=C.useContext(Jr),{hash:a,pathname:o,search:l}=Ic(e,{relative:t}),d=o;return n!=="/"&&(d=o==="/"?n:Ru([n,o])),r.createHref({pathname:d,search:l,hash:a})}function Nc(){return C.useContext(_c)!=null}function Ri(){return Tt(Nc(),"useLocation() may be used only in the context of a <Router> component."),C.useContext(_c).location}var Rv="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Dv(e){C.useContext(Jr).static||C.useLayoutEffect(e)}function yL(){let{isDataRoute:e}=C.useContext(Mu);return e?HL():vL()}function vL(){Tt(Nc(),"useNavigate() may be used only in the context of a <Router> component.");let e=C.useContext(Qs),{basename:t,navigator:n}=C.useContext(Jr),{matches:r}=C.useContext(Mu),{pathname:a}=Ri(),o=JSON.stringify(Sv(r)),l=C.useRef(!1);return Dv(()=>{l.current=!0}),C.useCallback((f,A={})=>{if(Wr(l.current,Rv),!l.current)return;if(typeof f=="number"){n.go(f);return}let m=Cv(f,JSON.parse(o),a,A.relative==="path");e==null&&t!=="/"&&(m.pathname=m.pathname==="/"?t:Ru([t,m.pathname])),(A.replace?n.replace:n.push)(m,A.state,A)},[t,n,o,a,e])}C.createContext(null);function Ic(e,{relative:t}={}){let{matches:n}=C.useContext(Mu),{pathname:r}=Ri(),a=JSON.stringify(Sv(n));return C.useMemo(()=>Cv(e,JSON.parse(a),r,t==="path"),[e,a,r,t])}function RL(e,t){return Tv(e,t)}function Tv(e,t,n,r){var D;Tt(Nc(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:a,static:o}=C.useContext(Jr),{matches:l}=C.useContext(Mu),d=l[l.length-1],f=d?d.params:{},A=d?d.pathname:"/",m=d?d.pathnameBase:"/",E=d&&d.route;{let x=E&&E.path||"";xv(A,!E||x.endsWith("*")||x.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${A}" (under <Route path="${x}">) 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="${x}"> to <Route path="${x==="/"?"*":`${x}/*`}">.`)}let g=Ri(),_;if(t){let x=typeof t=="string"?qs(t):t;Tt(m==="/"||((D=x.pathname)==null?void 0:D.startsWith(m)),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${m}" but pathname "${x.pathname}" was given in the \`location\` prop.`),_=x}else _=g;let S=_.pathname||"/",y=S;if(m!=="/"){let x=m.replace(/^\//,"").split("/");y="/"+S.replace(/^\//,"").split("/").slice(x.length).join("/")}let v=!o&&n&&n.matches&&n.matches.length>0?n.matches:_v(e,{pathname:y});Wr(E||v!=null,`No routes matched location "${_.pathname}${_.search}${_.hash}" `),Wr(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=BL(v&&v.map(x=>Object.assign({},x,{params:Object.assign({},f,x.params),pathname:Ru([m,a.encodeLocation?a.encodeLocation(x.pathname).pathname:x.pathname]),pathnameBase:x.pathnameBase==="/"?m:Ru([m,a.encodeLocation?a.encodeLocation(x.pathnameBase).pathname:x.pathnameBase])})),l,n,r);return t&&R?C.createElement(_c.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",..._},navigationType:"POP"}},R):R}function DL(){let e=ML(),t=_L(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)",a={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=C.createElement(C.Fragment,null,C.createElement("p",null,"💿 Hey developer 👋"),C.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",C.createElement("code",{style:o},"ErrorBoundary")," or"," ",C.createElement("code",{style:o},"errorElement")," prop on your route.")),C.createElement(C.Fragment,null,C.createElement("h2",null,"Unexpected Application Error!"),C.createElement("h3",{style:{fontStyle:"italic"}},t),n?C.createElement("pre",{style:a},n):null,l)}var TL=C.createElement(DL,null),xL=class extends C.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?C.createElement(Mu.Provider,{value:this.props.routeContext},C.createElement(XE.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function bL({routeContext:e,match:t,children:n}){let r=C.useContext(Qs);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),C.createElement(Mu.Provider,{value:e},n)}function BL(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 a=e,o=n==null?void 0:n.errors;if(o!=null){let f=a.findIndex(A=>A.route.id&&(o==null?void 0:o[A.route.id])!==void 0);Tt(f>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(o).join(",")}`),a=a.slice(0,Math.min(a.length,f+1))}let l=!1,d=-1;if(n)for(let f=0;f<a.length;f++){let A=a[f];if((A.route.HydrateFallback||A.route.hydrateFallbackElement)&&(d=f),A.route.id){let{loaderData:m,errors:E}=n,g=A.route.loader&&!m.hasOwnProperty(A.route.id)&&(!E||E[A.route.id]===void 0);if(A.route.lazy||g){l=!0,d>=0?a=a.slice(0,d+1):a=[a[0]];break}}}return a.reduceRight((f,A,m)=>{let E,g=!1,_=null,S=null;n&&(E=o&&A.route.id?o[A.route.id]:void 0,_=A.route.errorElement||TL,l&&(d<0&&m===0?(xv("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),g=!0,S=null):d===m&&(g=!0,S=A.route.hydrateFallbackElement||null)));let y=t.concat(a.slice(0,m+1)),v=()=>{let R;return E?R=_:g?R=S:A.route.Component?R=C.createElement(A.route.Component,null):A.route.element?R=A.route.element:R=f,C.createElement(bL,{match:A,routeContext:{outlet:f,matches:y,isDataRoute:n!=null},children:R})};return n&&(A.route.ErrorBoundary||A.route.errorElement||m===0)?C.createElement(xL,{location:n.location,revalidation:n.revalidation,component:_,error:E,children:v(),routeContext:{outlet:null,matches:y,isDataRoute:!0}}):v()},null)}function JE(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function OL(e){let t=C.useContext(Qs);return Tt(t,JE(e)),t}function FL(e){let t=C.useContext(xf);return Tt(t,JE(e)),t}function LL(e){let t=C.useContext(Mu);return Tt(t,JE(e)),t}function eg(e){let t=LL(e),n=t.matches[t.matches.length-1];return Tt(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function wL(){return eg("useRouteId")}function ML(){var r;let e=C.useContext(XE),t=FL("useRouteError"),n=eg("useRouteError");return e!==void 0?e:(r=t.errors)==null?void 0:r[n]}function HL(){let{router:e}=OL("useNavigate"),t=eg("useNavigate"),n=C.useRef(!1);return Dv(()=>{n.current=!0}),C.useCallback(async(a,o={})=>{Wr(n.current,Rv),n.current&&(typeof a=="number"?e.navigate(a):await e.navigate(a,{fromRouteId:t,...o}))},[e,t])}var VS={};function xv(e,t,n){!t&&!VS[e]&&(VS[e]=!0,Wr(!1,n))}C.memo(PL);function PL({routes:e,future:t,state:n}){return Tv(e,void 0,n,t)}function bv(e){Tt(!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 UL({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:a,static:o=!1}){Tt(!Nc(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let l=e.replace(/^\/*/,"/"),d=C.useMemo(()=>({basename:l,navigator:a,static:o,future:{}}),[l,a,o]);typeof n=="string"&&(n=qs(n));let{pathname:f="/",search:A="",hash:m="",state:E=null,key:g="default"}=n,_=C.useMemo(()=>{let S=bu(f,l);return S==null?null:{location:{pathname:S,search:A,hash:m,state:E,key:g},navigationType:r}},[l,f,A,m,E,g,r]);return Wr(_!=null,`<Router basename="${l}"> is not able to match the URL "${f}${A}${m}" because it does not start with the basename, so the <Router> won't render anything.`),_==null?null:C.createElement(Jr.Provider,{value:d},C.createElement(_c.Provider,{children:t,value:_}))}function kL({children:e,location:t}){return RL(Mp(e),t)}function Mp(e,t=[]){let n=[];return C.Children.forEach(e,(r,a)=>{if(!C.isValidElement(r))return;let o=[...t,a];if(r.type===C.Fragment){n.push.apply(n,Mp(r.props.children,o));return}Tt(r.type===bv,`[${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>`),Tt(!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=Mp(r.props.children,o)),n.push(l)}),n}var C0="get",y0="application/x-www-form-urlencoded";function bf(e){return e!=null&&typeof e.tagName=="string"}function GL(e){return bf(e)&&e.tagName.toLowerCase()==="button"}function jL(e){return bf(e)&&e.tagName.toLowerCase()==="form"}function VL(e){return bf(e)&&e.tagName.toLowerCase()==="input"}function zL(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function KL(e,t){return e.button===0&&(!t||t==="_self")&&!zL(e)}var e0=null;function YL(){if(e0===null)try{new FormData(document.createElement("form"),0),e0=!1}catch{e0=!0}return e0}var ZL=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Tm(e){return e!=null&&!ZL.has(e)?(Wr(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${y0}"`),null):e}function WL(e,t){let n,r,a,o,l;if(jL(e)){let d=e.getAttribute("action");r=d?bu(d,t):null,n=e.getAttribute("method")||C0,a=Tm(e.getAttribute("enctype"))||y0,o=new FormData(e)}else if(GL(e)||VL(e)&&(e.type==="submit"||e.type==="image")){let d=e.form;if(d==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let f=e.getAttribute("formaction")||d.getAttribute("action");if(r=f?bu(f,t):null,n=e.getAttribute("formmethod")||d.getAttribute("method")||C0,a=Tm(e.getAttribute("formenctype"))||Tm(d.getAttribute("enctype"))||y0,o=new FormData(d,e),!YL()){let{name:A,type:m,value:E}=e;if(m==="image"){let g=A?`${A}.`:"";o.append(`${g}x`,"0"),o.append(`${g}y`,"0")}else A&&o.append(A,E)}}else{if(bf(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=C0,r=null,a=y0,l=e}return o&&a==="text/plain"&&(l=o,o=void 0),{action:r,method:n.toLowerCase(),encType:a,formData:o,body:l}}function tg(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}async function $L(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 qL(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 QL(e,t,n){let r=await Promise.all(e.map(async a=>{let o=t.routes[a.route.id];if(o){let l=await $L(o,n);return l.links?l.links():[]}return[]}));return tw(r.flat(1).filter(qL).filter(a=>a.rel==="stylesheet"||a.rel==="preload").map(a=>a.rel==="stylesheet"?{...a,rel:"prefetch",as:"style"}:{...a,rel:"prefetch"}))}function zS(e,t,n,r,a,o){let l=(f,A)=>n[A]?f.route.id!==n[A].route.id:!0,d=(f,A)=>{var m;return n[A].pathname!==f.pathname||((m=n[A].route.path)==null?void 0:m.endsWith("*"))&&n[A].params["*"]!==f.params["*"]};return o==="assets"?t.filter((f,A)=>l(f,A)||d(f,A)):o==="data"?t.filter((f,A)=>{var E;let m=r.routes[f.route.id];if(!m||!m.hasLoader)return!1;if(l(f,A)||d(f,A))return!0;if(f.route.shouldRevalidate){let g=f.route.shouldRevalidate({currentUrl:new URL(a.pathname+a.search+a.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 XL(e,t,{includeHydrateFallback:n}={}){return JL(e.map(r=>{let a=t.routes[r.route.id];if(!a)return[];let o=[a.module];return a.clientActionModule&&(o=o.concat(a.clientActionModule)),a.clientLoaderModule&&(o=o.concat(a.clientLoaderModule)),n&&a.hydrateFallbackModule&&(o=o.concat(a.hydrateFallbackModule)),a.imports&&(o=o.concat(a.imports)),o}).flat(1))}function JL(e){return[...new Set(e)]}function ew(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function tw(e,t){let n=new Set;return new Set(t),e.reduce((r,a)=>{let o=JSON.stringify(ew(a));return n.has(o)||(n.add(o),r.push({key:o,link:a})),r},[])}function nw(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&&bu(n.pathname,t)==="/"?n.pathname=`${t.replace(/\/$/,"")}/_root.data`:n.pathname=`${n.pathname.replace(/\/$/,"")}.data`,n}function Bv(){let e=C.useContext(Qs);return tg(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function rw(){let e=C.useContext(xf);return tg(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var ng=C.createContext(void 0);ng.displayName="FrameworkContext";function Ov(){let e=C.useContext(ng);return tg(e,"You must render this element inside a <HydratedRouter> element"),e}function uw(e,t){let n=C.useContext(ng),[r,a]=C.useState(!1),[o,l]=C.useState(!1),{onFocus:d,onBlur:f,onMouseEnter:A,onMouseLeave:m,onTouchStart:E}=t,g=C.useRef(null);C.useEffect(()=>{if(e==="render"&&l(!0),e==="viewport"){let y=R=>{R.forEach(D=>{l(D.isIntersecting)})},v=new IntersectionObserver(y,{threshold:.5});return g.current&&v.observe(g.current),()=>{v.disconnect()}}},[e]),C.useEffect(()=>{if(r){let y=setTimeout(()=>{l(!0)},100);return()=>{clearTimeout(y)}}},[r]);let _=()=>{a(!0)},S=()=>{a(!1),l(!1)};return n?e!=="intent"?[o,g,{}]:[o,g,{onFocus:fl(d,_),onBlur:fl(f,S),onMouseEnter:fl(A,_),onMouseLeave:fl(m,S),onTouchStart:fl(E,_)}]:[!1,g,{}]}function fl(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function iw({page:e,...t}){let{router:n}=Bv(),r=C.useMemo(()=>_v(n.routes,e,n.basename),[n.routes,e,n.basename]);return r?C.createElement(sw,{page:e,matches:r,...t}):null}function aw(e){let{manifest:t,routeModules:n}=Ov(),[r,a]=C.useState([]);return C.useEffect(()=>{let o=!1;return QL(e,t,n).then(l=>{o||a(l)}),()=>{o=!0}},[e,t,n]),r}function sw({page:e,matches:t,...n}){let r=Ri(),{manifest:a,routeModules:o}=Ov(),{basename:l}=Bv(),{loaderData:d,matches:f}=rw(),A=C.useMemo(()=>zS(e,t,f,a,r,"data"),[e,t,f,a,r]),m=C.useMemo(()=>zS(e,t,f,a,r,"assets"),[e,t,f,a,r]),E=C.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let S=new Set,y=!1;if(t.forEach(R=>{var x;let D=a.routes[R.route.id];!D||!D.hasLoader||(!A.some(L=>L.route.id===R.route.id)&&R.route.id in d&&((x=o[R.route.id])!=null&&x.shouldRevalidate)||D.hasClientLoader?y=!0:S.add(R.route.id))}),S.size===0)return[];let v=nw(e,l);return y&&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,d,r,a,A,t,e,o]),g=C.useMemo(()=>XL(m,a),[m,a]),_=aw(m);return C.createElement(C.Fragment,null,E.map(S=>C.createElement("link",{key:S,rel:"prefetch",as:"fetch",href:S,...n})),g.map(S=>C.createElement("link",{key:S,rel:"modulepreload",href:S,...n})),_.map(({key:S,link:y})=>C.createElement("link",{key:S,...y})))}function ow(...e){return t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})}}var Fv=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{Fv&&(window.__reactRouterVersion="7.3.0")}catch{}function lw({basename:e,children:t,window:n}){let r=C.useRef();r.current==null&&(r.current=QF({window:n,v5Compat:!0}));let a=r.current,[o,l]=C.useState({action:a.action,location:a.location}),d=C.useCallback(f=>{C.startTransition(()=>l(f))},[l]);return C.useLayoutEffect(()=>a.listen(d),[a,d]),C.createElement(UL,{basename:e,children:t,location:o.location,navigationType:o.action,navigator:a})}var Lv=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,wv=C.forwardRef(function({onClick:t,discover:n="render",prefetch:r="none",relative:a,reloadDocument:o,replace:l,state:d,target:f,to:A,preventScrollReset:m,viewTransition:E,...g},_){let{basename:S}=C.useContext(Jr),y=typeof A=="string"&&Lv.test(A),v,R=!1;if(typeof A=="string"&&y&&(v=A,Fv))try{let G=new URL(window.location.href),K=A.startsWith("//")?new URL(G.protocol+A):new URL(A),Ae=bu(K.pathname,S);K.origin===G.origin&&Ae!=null?A=Ae+K.search+K.hash:R=!0}catch{Wr(!1,`<Link to="${A}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let D=CL(A,{relative:a}),[x,L,b]=uw(r,g),O=Aw(A,{replace:l,state:d,target:f,preventScrollReset:m,relative:a,viewTransition:E});function F(G){t&&t(G),G.defaultPrevented||O(G)}let j=C.createElement("a",{...g,...b,href:v||D,onClick:R||o?t:F,ref:ow(_,L),target:f,"data-discover":!y&&n==="render"?"true":void 0});return x&&!y?C.createElement(C.Fragment,null,j,C.createElement(iw,{page:D})):j});wv.displayName="Link";var cw=C.forwardRef(function({"aria-current":t="page",caseSensitive:n=!1,className:r="",end:a=!1,style:o,to:l,viewTransition:d,children:f,...A},m){let E=Ic(l,{relative:A.relative}),g=Ri(),_=C.useContext(xf),{navigator:S,basename:y}=C.useContext(Jr),v=_!=null&&gw(E)&&d===!0,R=S.encodeLocation?S.encodeLocation(E).pathname:E.pathname,D=g.pathname,x=_&&_.navigation&&_.navigation.location?_.navigation.location.pathname:null;n||(D=D.toLowerCase(),x=x?x.toLowerCase():null,R=R.toLowerCase()),x&&y&&(x=bu(x,y)||x);const L=R!=="/"&&R.endsWith("/")?R.length-1:R.length;let b=D===R||!a&&D.startsWith(R)&&D.charAt(L)==="/",O=x!=null&&(x===R||!a&&x.startsWith(R)&&x.charAt(R.length)==="/"),F={isActive:b,isPending:O,isTransitioning:v},j=b?t:void 0,G;typeof r=="function"?G=r(F):G=[r,b?"active":null,O?"pending":null,v?"transitioning":null].filter(Boolean).join(" ");let K=typeof o=="function"?o(F):o;return C.createElement(wv,{...A,"aria-current":j,className:G,ref:m,style:K,to:l,viewTransition:d},typeof f=="function"?f(F):f)});cw.displayName="NavLink";var dw=C.forwardRef(({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:r,replace:a,state:o,method:l=C0,action:d,onSubmit:f,relative:A,preventScrollReset:m,viewTransition:E,...g},_)=>{let S=pw(),y=Ew(d,{relative:A}),v=l.toLowerCase()==="get"?"get":"post",R=typeof d=="string"&&Lv.test(d),D=x=>{if(f&&f(x),x.defaultPrevented)return;x.preventDefault();let L=x.nativeEvent.submitter,b=(L==null?void 0:L.getAttribute("formmethod"))||l;S(L||x.currentTarget,{fetcherKey:t,method:b,navigate:n,replace:a,state:o,relative:A,preventScrollReset:m,viewTransition:E})};return C.createElement("form",{ref:_,method:v,action:y,onSubmit:r?f:D,...g,"data-discover":!R&&e==="render"?"true":void 0})});dw.displayName="Form";function fw(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Mv(e){let t=C.useContext(Qs);return Tt(t,fw(e)),t}function Aw(e,{target:t,replace:n,state:r,preventScrollReset:a,relative:o,viewTransition:l}={}){let d=yL(),f=Ri(),A=Ic(e,{relative:o});return C.useCallback(m=>{if(KL(m,t)){m.preventDefault();let E=n!==void 0?n:jl(f)===jl(A);d(e,{replace:E,state:r,preventScrollReset:a,relative:o,viewTransition:l})}},[f,d,A,n,r,t,e,a,o,l])}var hw=0,mw=()=>`__${String(++hw)}__`;function pw(){let{router:e}=Mv("useSubmit"),{basename:t}=C.useContext(Jr),n=wL();return C.useCallback(async(r,a={})=>{let{action:o,method:l,encType:d,formData:f,body:A}=WL(r,t);if(a.navigate===!1){let m=a.fetcherKey||mw();await e.fetch(m,n,a.action||o,{preventScrollReset:a.preventScrollReset,formData:f,body:A,formMethod:a.method||l,formEncType:a.encType||d,flushSync:a.flushSync})}else await e.navigate(a.action||o,{preventScrollReset:a.preventScrollReset,formData:f,body:A,formMethod:a.method||l,formEncType:a.encType||d,replace:a.replace,state:a.state,fromRouteId:n,flushSync:a.flushSync,viewTransition:a.viewTransition})},[e,t,n])}function Ew(e,{relative:t}={}){let{basename:n}=C.useContext(Jr),r=C.useContext(Mu);Tt(r,"useFormAction must be used inside a RouteContext");let[a]=r.matches.slice(-1),o={...Ic(e||".",{relative:t})},l=Ri();if(e==null){o.search=l.search;let d=new URLSearchParams(o.search),f=d.getAll("index");if(f.some(m=>m==="")){d.delete("index"),f.filter(E=>E).forEach(E=>d.append("index",E));let m=d.toString();o.search=m?`?${m}`:""}}return(!e||e===".")&&a.route.index&&(o.search=o.search?o.search.replace(/^\?/,"?index&"):"?index"),n!=="/"&&(o.pathname=o.pathname==="/"?n:Ru([n,o.pathname])),jl(o)}function gw(e,t={}){let n=C.useContext(vv);Tt(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=Mv("useViewTransitionState"),a=Ic(e,{relative:t.relative});if(!n.isTransitioning)return!1;let o=bu(n.currentLocation.pathname,r)||n.currentLocation.pathname,l=bu(n.nextLocation.pathname,r)||n.nextLocation.pathname;return U0(a.pathname,l)!=null||U0(a.pathname,o)!=null}new TextEncoder;var xa=Xy();const _w=Rf(xa);function Hv(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(n=Hv(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Bf(){for(var e,t,n=0,r="",a=arguments.length;n<a;n++)(e=arguments[n])&&(t=Hv(e))&&(r&&(r+=" "),r+=t);return r}const rg="-",Nw=e=>{const t=Sw(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:l=>{const d=l.split(rg);return d[0]===""&&d.length!==1&&d.shift(),Pv(d,t)||Iw(l)},getConflictingClassGroupIds:(l,d)=>{const f=n[l]||[];return d&&r[l]?[...f,...r[l]]:f}}},Pv=(e,t)=>{var l;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),a=r?Pv(e.slice(1),r):void 0;if(a)return a;if(t.validators.length===0)return;const o=e.join(rg);return(l=t.validators.find(({validator:d})=>d(o)))==null?void 0:l.classGroupId},KS=/^\[(.+)\]$/,Iw=e=>{if(KS.test(e)){const t=KS.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},Sw=e=>{const{theme:t,classGroups:n}=e,r={nextPart:new Map,validators:[]};for(const a in n)Hp(n[a],r,a,t);return r},Hp=(e,t,n,r)=>{e.forEach(a=>{if(typeof a=="string"){const o=a===""?t:YS(t,a);o.classGroupId=n;return}if(typeof a=="function"){if(Cw(a)){Hp(a(r),t,n,r);return}t.validators.push({validator:a,classGroupId:n});return}Object.entries(a).forEach(([o,l])=>{Hp(l,YS(t,o),n,r)})})},YS=(e,t)=>{let n=e;return t.split(rg).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},Cw=e=>e.isThemeGetter,yw=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const a=(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 a(o,l),l},set(o,l){n.has(o)?n.set(o,l):a(o,l)}}},Pp="!",Up=":",vw=Up.length,Rw=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=a=>{const o=[];let l=0,d=0,f=0,A;for(let S=0;S<a.length;S++){let y=a[S];if(l===0&&d===0){if(y===Up){o.push(a.slice(f,S)),f=S+vw;continue}if(y==="/"){A=S;continue}}y==="["?l++:y==="]"?l--:y==="("?d++:y===")"&&d--}const m=o.length===0?a:a.substring(f),E=Dw(m),g=E!==m,_=A&&A>f?A-f:void 0;return{modifiers:o,hasImportantModifier:g,baseClassName:E,maybePostfixModifierPosition:_}};if(t){const a=t+Up,o=r;r=l=>l.startsWith(a)?o(l.substring(a.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:l,maybePostfixModifierPosition:void 0}}if(n){const a=r;r=o=>n({className:o,parseClassName:a})}return r},Dw=e=>e.endsWith(Pp)?e.substring(0,e.length-1):e.startsWith(Pp)?e.substring(1):e,Tw=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(r=>[r,!0]));return r=>{if(r.length<=1)return r;const a=[];let o=[];return r.forEach(l=>{l[0]==="["||t[l]?(a.push(...o.sort(),l),o=[]):o.push(l)}),a.push(...o.sort()),a}},xw=e=>({cache:yw(e.cacheSize),parseClassName:Rw(e),sortModifiers:Tw(e),...Nw(e)}),bw=/\s+/,Bw=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:a,sortModifiers:o}=t,l=[],d=e.trim().split(bw);let f="";for(let A=d.length-1;A>=0;A-=1){const m=d[A],{isExternal:E,modifiers:g,hasImportantModifier:_,baseClassName:S,maybePostfixModifierPosition:y}=n(m);if(E){f=m+(f.length>0?" "+f:f);continue}let v=!!y,R=r(v?S.substring(0,y):S);if(!R){if(!v){f=m+(f.length>0?" "+f:f);continue}if(R=r(S),!R){f=m+(f.length>0?" "+f:f);continue}v=!1}const D=o(g).join(":"),x=_?D+Pp:D,L=x+R;if(l.includes(L))continue;l.push(L);const b=a(R,v);for(let O=0;O<b.length;++O){const F=b[O];l.push(x+F)}f=m+(f.length>0?" "+f:f)}return f};function Ow(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=Uv(t))&&(r&&(r+=" "),r+=n);return r}const Uv=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=Uv(e[r]))&&(n&&(n+=" "),n+=t);return n};function Fw(e,...t){let n,r,a,o=l;function l(f){const A=t.reduce((m,E)=>E(m),e());return n=xw(A),r=n.cache.get,a=n.cache.set,o=d,d(f)}function d(f){const A=r(f);if(A)return A;const m=Bw(f,n);return a(f,m),m}return function(){return o(Ow.apply(null,arguments))}}const tn=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},kv=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Gv=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Lw=/^\d+\/\d+$/,ww=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Mw=/\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$/,Hw=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Pw=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Uw=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ps=e=>Lw.test(e),at=e=>!!e&&!Number.isNaN(Number(e)),ia=e=>!!e&&Number.isInteger(Number(e)),ZS=e=>e.endsWith("%")&&at(e.slice(0,-1)),oi=e=>ww.test(e),kw=()=>!0,Gw=e=>Mw.test(e)&&!Hw.test(e),ug=()=>!1,jw=e=>Pw.test(e),Vw=e=>Uw.test(e),zw=e=>!xe(e)&&!be(e),Kw=e=>Xs(e,zv,ug),xe=e=>kv.test(e),aa=e=>Xs(e,Kv,Gw),xm=e=>Xs(e,n2,at),Yw=e=>Xs(e,jv,ug),Zw=e=>Xs(e,Vv,Vw),Ww=e=>Xs(e,ug,jw),be=e=>Gv.test(e),t0=e=>Js(e,Kv),$w=e=>Js(e,r2),qw=e=>Js(e,jv),Qw=e=>Js(e,zv),Xw=e=>Js(e,Vv),Jw=e=>Js(e,u2,!0),Xs=(e,t,n)=>{const r=kv.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},Js=(e,t,n=!1)=>{const r=Gv.exec(e);return r?r[1]?t(r[1]):n:!1},jv=e=>e==="position",e2=new Set(["image","url"]),Vv=e=>e2.has(e),t2=new Set(["length","size","percentage"]),zv=e=>t2.has(e),Kv=e=>e==="length",n2=e=>e==="number",r2=e=>e==="family-name",u2=e=>e==="shadow",i2=()=>{const e=tn("color"),t=tn("font"),n=tn("text"),r=tn("font-weight"),a=tn("tracking"),o=tn("leading"),l=tn("breakpoint"),d=tn("container"),f=tn("spacing"),A=tn("radius"),m=tn("shadow"),E=tn("inset-shadow"),g=tn("drop-shadow"),_=tn("blur"),S=tn("perspective"),y=tn("aspect"),v=tn("ease"),R=tn("animate"),D=()=>["auto","avoid","all","avoid-page","page","left","right","column"],x=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],L=()=>["auto","hidden","clip","visible","scroll"],b=()=>["auto","contain","none"],O=()=>[be,xe,f],F=()=>[ps,"full","auto",...O()],j=()=>[ia,"none","subgrid",be,xe],G=()=>["auto",{span:["full",ia,be,xe]},be,xe],K=()=>[ia,"auto",be,xe],Ae=()=>["auto","min","max","fr",be,xe],se=()=>["start","end","center","between","around","evenly","stretch","baseline"],de=()=>["start","end","center","stretch"],$=()=>["auto",...O()],J=()=>[ps,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...O()],k=()=>[e,be,xe],ne=()=>[ZS,aa],ee=()=>["","none","full",A,be,xe],pe=()=>["",at,t0,aa],H=()=>["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"],V=()=>["","none",_,be,xe],re=()=>["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",be,xe],te=()=>["none",at,be,xe],ce=()=>["none",at,be,xe],Ee=()=>[at,be,xe],me=()=>[ps,"full",...O()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[oi],breakpoint:[oi],color:[kw],container:[oi],"drop-shadow":[oi],ease:["in","out","in-out"],font:[zw],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[oi],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[oi],shadow:[oi],spacing:["px",at],text:[oi],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",ps,xe,be,y]}],container:["container"],columns:[{columns:[at,xe,be,d]}],"break-after":[{"break-after":D()}],"break-before":[{"break-before":D()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...x(),xe,be]}],overflow:[{overflow:L()}],"overflow-x":[{"overflow-x":L()}],"overflow-y":[{"overflow-y":L()}],overscroll:[{overscroll:b()}],"overscroll-x":[{"overscroll-x":b()}],"overscroll-y":[{"overscroll-y":b()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:F()}],"inset-x":[{"inset-x":F()}],"inset-y":[{"inset-y":F()}],start:[{start:F()}],end:[{end:F()}],top:[{top:F()}],right:[{right:F()}],bottom:[{bottom:F()}],left:[{left:F()}],visibility:["visible","invisible","collapse"],z:[{z:[ia,"auto",be,xe]}],basis:[{basis:[ps,"full","auto",d,...O()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[at,ps,"auto","initial","none",xe]}],grow:[{grow:["",at,be,xe]}],shrink:[{shrink:["",at,be,xe]}],order:[{order:[ia,"first","last","none",be,xe]}],"grid-cols":[{"grid-cols":j()}],"col-start-end":[{col:G()}],"col-start":[{"col-start":K()}],"col-end":[{"col-end":K()}],"grid-rows":[{"grid-rows":j()}],"row-start-end":[{row:G()}],"row-start":[{"row-start":K()}],"row-end":[{"row-end":K()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":Ae()}],"auto-rows":[{"auto-rows":Ae()}],gap:[{gap:O()}],"gap-x":[{"gap-x":O()}],"gap-y":[{"gap-y":O()}],"justify-content":[{justify:[...se(),"normal"]}],"justify-items":[{"justify-items":[...de(),"normal"]}],"justify-self":[{"justify-self":["auto",...de()]}],"align-content":[{content:["normal",...se()]}],"align-items":[{items:[...de(),"baseline"]}],"align-self":[{self:["auto",...de(),"baseline"]}],"place-content":[{"place-content":se()}],"place-items":[{"place-items":[...de(),"baseline"]}],"place-self":[{"place-self":["auto",...de()]}],p:[{p:O()}],px:[{px:O()}],py:[{py:O()}],ps:[{ps:O()}],pe:[{pe:O()}],pt:[{pt:O()}],pr:[{pr:O()}],pb:[{pb:O()}],pl:[{pl:O()}],m:[{m:$()}],mx:[{mx:$()}],my:[{my:$()}],ms:[{ms:$()}],me:[{me:$()}],mt:[{mt:$()}],mr:[{mr:$()}],mb:[{mb:$()}],ml:[{ml:$()}],"space-x":[{"space-x":O()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":O()}],"space-y-reverse":["space-y-reverse"],size:[{size:J()}],w:[{w:[d,"screen",...J()]}],"min-w":[{"min-w":[d,"screen","none",...J()]}],"max-w":[{"max-w":[d,"screen","none","prose",{screen:[l]},...J()]}],h:[{h:["screen",...J()]}],"min-h":[{"min-h":["screen","none",...J()]}],"max-h":[{"max-h":["screen",...J()]}],"font-size":[{text:["base",n,t0,aa]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,be,xm]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",ZS,xe]}],"font-family":[{font:[$w,xe,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:[a,be,xe]}],"line-clamp":[{"line-clamp":[at,"none",be,xm]}],leading:[{leading:[o,...O()]}],"list-image":[{"list-image":["none",be,xe]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",be,xe]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:k()}],"text-color":[{text:k()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...H(),"wavy"]}],"text-decoration-thickness":[{decoration:[at,"from-font","auto",be,aa]}],"text-decoration-color":[{decoration:k()}],"underline-offset":[{"underline-offset":[at,"auto",be,xe]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:O()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",be,xe]}],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",be,xe]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...x(),qw,Yw]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","space","round"]}]}],"bg-size":[{bg:["auto","cover","contain",Qw,Kw]}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},ia,be,xe],radial:["",be,xe],conic:[ia,be,xe]},Xw,Zw]}],"bg-color":[{bg:k()}],"gradient-from-pos":[{from:ne()}],"gradient-via-pos":[{via:ne()}],"gradient-to-pos":[{to:ne()}],"gradient-from":[{from:k()}],"gradient-via":[{via:k()}],"gradient-to":[{to:k()}],rounded:[{rounded:ee()}],"rounded-s":[{"rounded-s":ee()}],"rounded-e":[{"rounded-e":ee()}],"rounded-t":[{"rounded-t":ee()}],"rounded-r":[{"rounded-r":ee()}],"rounded-b":[{"rounded-b":ee()}],"rounded-l":[{"rounded-l":ee()}],"rounded-ss":[{"rounded-ss":ee()}],"rounded-se":[{"rounded-se":ee()}],"rounded-ee":[{"rounded-ee":ee()}],"rounded-es":[{"rounded-es":ee()}],"rounded-tl":[{"rounded-tl":ee()}],"rounded-tr":[{"rounded-tr":ee()}],"rounded-br":[{"rounded-br":ee()}],"rounded-bl":[{"rounded-bl":ee()}],"border-w":[{border:pe()}],"border-w-x":[{"border-x":pe()}],"border-w-y":[{"border-y":pe()}],"border-w-s":[{"border-s":pe()}],"border-w-e":[{"border-e":pe()}],"border-w-t":[{"border-t":pe()}],"border-w-r":[{"border-r":pe()}],"border-w-b":[{"border-b":pe()}],"border-w-l":[{"border-l":pe()}],"divide-x":[{"divide-x":pe()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":pe()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...H(),"hidden","none"]}],"divide-style":[{divide:[...H(),"hidden","none"]}],"border-color":[{border:k()}],"border-color-x":[{"border-x":k()}],"border-color-y":[{"border-y":k()}],"border-color-s":[{"border-s":k()}],"border-color-e":[{"border-e":k()}],"border-color-t":[{"border-t":k()}],"border-color-r":[{"border-r":k()}],"border-color-b":[{"border-b":k()}],"border-color-l":[{"border-l":k()}],"divide-color":[{divide:k()}],"outline-style":[{outline:[...H(),"none","hidden"]}],"outline-offset":[{"outline-offset":[at,be,xe]}],"outline-w":[{outline:["",at,t0,aa]}],"outline-color":[{outline:[e]}],shadow:[{shadow:["","none",m,Jw,Ww]}],"shadow-color":[{shadow:k()}],"inset-shadow":[{"inset-shadow":["none",be,xe,E]}],"inset-shadow-color":[{"inset-shadow":k()}],"ring-w":[{ring:pe()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:k()}],"ring-offset-w":[{"ring-offset":[at,aa]}],"ring-offset-color":[{"ring-offset":k()}],"inset-ring-w":[{"inset-ring":pe()}],"inset-ring-color":[{"inset-ring":k()}],opacity:[{opacity:[at,be,xe]}],"mix-blend":[{"mix-blend":[...W(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":W()}],filter:[{filter:["","none",be,xe]}],blur:[{blur:V()}],brightness:[{brightness:[at,be,xe]}],contrast:[{contrast:[at,be,xe]}],"drop-shadow":[{"drop-shadow":["","none",g,be,xe]}],grayscale:[{grayscale:["",at,be,xe]}],"hue-rotate":[{"hue-rotate":[at,be,xe]}],invert:[{invert:["",at,be,xe]}],saturate:[{saturate:[at,be,xe]}],sepia:[{sepia:["",at,be,xe]}],"backdrop-filter":[{"backdrop-filter":["","none",be,xe]}],"backdrop-blur":[{"backdrop-blur":V()}],"backdrop-brightness":[{"backdrop-brightness":[at,be,xe]}],"backdrop-contrast":[{"backdrop-contrast":[at,be,xe]}],"backdrop-grayscale":[{"backdrop-grayscale":["",at,be,xe]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[at,be,xe]}],"backdrop-invert":[{"backdrop-invert":["",at,be,xe]}],"backdrop-opacity":[{"backdrop-opacity":[at,be,xe]}],"backdrop-saturate":[{"backdrop-saturate":[at,be,xe]}],"backdrop-sepia":[{"backdrop-sepia":["",at,be,xe]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":O()}],"border-spacing-x":[{"border-spacing-x":O()}],"border-spacing-y":[{"border-spacing-y":O()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",be,xe]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[at,"initial",be,xe]}],ease:[{ease:["linear","initial",v,be,xe]}],delay:[{delay:[at,be,xe]}],animate:[{animate:["none",R,be,xe]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[S,be,xe]}],"perspective-origin":[{"perspective-origin":re()}],rotate:[{rotate:te()}],"rotate-x":[{"rotate-x":te()}],"rotate-y":[{"rotate-y":te()}],"rotate-z":[{"rotate-z":te()}],scale:[{scale:ce()}],"scale-x":[{"scale-x":ce()}],"scale-y":[{"scale-y":ce()}],"scale-z":[{"scale-z":ce()}],"scale-3d":["scale-3d"],skew:[{skew:Ee()}],"skew-x":[{"skew-x":Ee()}],"skew-y":[{"skew-y":Ee()}],transform:[{transform:[be,xe,"","none","gpu","cpu"]}],"transform-origin":[{origin:re()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:me()}],"translate-x":[{"translate-x":me()}],"translate-y":[{"translate-y":me()}],"translate-z":[{"translate-z":me()}],"translate-none":["translate-none"],accent:[{accent:k()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:k()}],"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",be,xe]}],"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":O()}],"scroll-mx":[{"scroll-mx":O()}],"scroll-my":[{"scroll-my":O()}],"scroll-ms":[{"scroll-ms":O()}],"scroll-me":[{"scroll-me":O()}],"scroll-mt":[{"scroll-mt":O()}],"scroll-mr":[{"scroll-mr":O()}],"scroll-mb":[{"scroll-mb":O()}],"scroll-ml":[{"scroll-ml":O()}],"scroll-p":[{"scroll-p":O()}],"scroll-px":[{"scroll-px":O()}],"scroll-py":[{"scroll-py":O()}],"scroll-ps":[{"scroll-ps":O()}],"scroll-pe":[{"scroll-pe":O()}],"scroll-pt":[{"scroll-pt":O()}],"scroll-pr":[{"scroll-pr":O()}],"scroll-pb":[{"scroll-pb":O()}],"scroll-pl":[{"scroll-pl":O()}],"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",be,xe]}],fill:[{fill:["none",...k()]}],"stroke-w":[{stroke:[at,t0,aa,xm]}],stroke:[{stroke:["none",...k()]}],"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","*","**"]}},Yv=Fw(i2),Re=(...e)=>Yv(Bf(e)),Zv=({children:e,isHidden:t,className:n="",isOverable:r=!1,isFocusable:a=!1,minHeight:o=0,...l})=>N.jsx("div",{"aria-hidden":a?t:void 0,tabIndex:a?0:void 0,role:a?"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",a&&"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",a&&"group-focus/height-smoother:visible",n),children:e})}),a2=({children:e,isHidden:t,minWidth:n=0,align:r="left",className:a,...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]",a),"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 s2=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Wv=(...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 o2={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 l2=C.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:a="",children:o,iconNode:l,...d},f)=>C.createElement("svg",{ref:f,...o2,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:Wv("lucide",a),...d},[...l.map(([A,m])=>C.createElement(A,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=C.forwardRef(({className:r,...a},o)=>C.createElement(l2,{ref:o,iconNode:t,className:Wv(`lucide-${s2(e)}`,r),...a}));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 c2=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],d2=Ct("ArrowLeft",c2);/**
|
|
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 f2=[["path",{d:"m18 9-6-6-6 6",key:"kcunyi"}],["path",{d:"M12 3v14",key:"7cf3v8"}],["path",{d:"M5 21h14",key:"11awu3"}]],A2=Ct("ArrowUpFromLine",f2);/**
|
|
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 h2=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],eo=Ct("Check",h2);/**
|
|
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 m2=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],$v=Ct("ChevronDown",m2);/**
|
|
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 p2=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],E2=Ct("ChevronLeft",p2);/**
|
|
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 g2=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],ys=Ct("ChevronRight",g2);/**
|
|
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 _2=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],N2=Ct("ChevronUp",_2);/**
|
|
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 I2=[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]],S2=Ct("ChevronsUpDown",I2);/**
|
|
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 C2=[["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"}]],y2=Ct("CopyCheck",C2);/**
|
|
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 v2=[["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"}]],R2=Ct("Copy",v2);/**
|
|
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 D2=[["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"}]],T2=Ct("Download",D2);/**
|
|
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 x2=[["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"}]],b2=Ct("ExternalLink",x2);/**
|
|
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 B2=[["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"}]],O2=Ct("EyeOff",B2);/**
|
|
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 F2=[["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"}]],L2=Ct("Eye",F2);/**
|
|
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 w2=[["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"}]],M2=Ct("Globe",w2);/**
|
|
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 H2=[["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"}]],P2=Ct("MoveVertical",H2);/**
|
|
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 U2=[["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"}]],qv=Ct("Pencil",U2);/**
|
|
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 k2=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],Of=Ct("Plus",k2);/**
|
|
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 G2=[["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"}]],j2=Ct("RotateCcw",G2);/**
|
|
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 V2=[["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"}]],z2=Ct("Save",V2);/**
|
|
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 K2=[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]],Y2=Ct("Search",K2);/**
|
|
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 Z2=[["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"}]],ig=Ct("Trash",Z2);/**
|
|
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 W2=[["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"}]],Qv=Ct("WandSparkles",W2);/**
|
|
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 $2=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],ba=Ct("X",$2),Xv=e=>{const[t,n]=C.useState(e);return C.useEffect(()=>{n(e??window.document.body)},[e]),t},q2={},WS=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,_))}},a=()=>t,f={setState:r,getState:a,getInitialState:()=>A,subscribe:m=>(n.add(m),()=>n.delete(m)),destroy:()=>{(q2?"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()}},A=t=e(r,a,f);return f},Q2=e=>e?WS(e):WS;var bm={exports:{}},Bm={},Om={exports:{}},Fm={};/**
|
|
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 $S;function X2(){if($S)return Fm;$S=1;var e=pc();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,a=e.useEffect,o=e.useLayoutEffect,l=e.useDebugValue;function d(E,g){var _=g(),S=r({inst:{value:_,getSnapshot:g}}),y=S[0].inst,v=S[1];return o(function(){y.value=_,y.getSnapshot=g,f(y)&&v({inst:y})},[E,_,g]),a(function(){return f(y)&&v({inst:y}),E(function(){f(y)&&v({inst:y})})},[E]),l(_),_}function f(E){var g=E.getSnapshot;E=E.value;try{var _=g();return!n(E,_)}catch{return!0}}function A(E,g){return g()}var m=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?A:d;return Fm.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:m,Fm}var qS;function Jv(){return qS||(qS=1,Om.exports=X2()),Om.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 QS;function J2(){if(QS)return Bm;QS=1;var e=pc(),t=Jv();function n(A,m){return A===m&&(A!==0||1/A===1/m)||A!==A&&m!==m}var r=typeof Object.is=="function"?Object.is:n,a=t.useSyncExternalStore,o=e.useRef,l=e.useEffect,d=e.useMemo,f=e.useDebugValue;return Bm.useSyncExternalStoreWithSelector=function(A,m,E,g,_){var S=o(null);if(S.current===null){var y={hasValue:!1,value:null};S.current=y}else y=S.current;S=d(function(){function R(O){if(!D){if(D=!0,x=O,O=g(O),_!==void 0&&y.hasValue){var F=y.value;if(_(F,O))return L=F}return L=O}if(F=L,r(x,O))return F;var j=g(O);return _!==void 0&&_(F,j)?(x=O,F):(x=O,L=j)}var D=!1,x,L,b=E===void 0?null:E;return[function(){return R(m())},b===null?void 0:function(){return R(b())}]},[m,E,g,_]);var v=a(A,S[0],S[1]);return l(function(){y.hasValue=!0,y.value=v},[v]),f(v),v},Bm}var XS;function e8(){return XS||(XS=1,bm.exports=J2()),bm.exports}var t8=e8();const n8=Rf(t8),eR={},{useDebugValue:r8}=Ke,{useSyncExternalStoreWithSelector:u8}=n8;let JS=!1;const i8=e=>e;function a8(e,t=i8,n){(eR?"production":void 0)!=="production"&&n&&!JS&&(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"),JS=!0);const r=u8(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,n);return r8(r),r}const e3=e=>{(eR?"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"?Q2(e):e,n=(r,a)=>a8(t,r,a);return Object.assign(n,t),n},tR=e=>e?e3(e):e3,s8=tR((e,t)=>({scrollBlockers:[],addBlockage:(n,r)=>e(a=>{const o=a.scrollBlockers,l=o.find(d=>d.element===r);if(l){const f=l.blockers.includes(n)?l.blockers:[...l.blockers,n];return{scrollBlockers:o.map(A=>A.element===r?{...A,blockers:f}:A)}}return r.style.overflowY="hidden",r.style.overflowX="hidden",{scrollBlockers:[...o,{element:r,blockers:[n]}]}}),removeBlockage:(n,r)=>e(a=>{const o=a.scrollBlockers,l=o.find(d=>d.element===r);return l?l.blockers.length>1?{scrollBlockers:o.map(d=>d.element===r?{...d,blockers:d.blockers.filter(f=>f!==n)}:d)}:(r.style.overflowY="auto",{scrollBlockers:o.filter(d=>d.element!==r)}):{scrollBlockers:o}}),isElementScrollBlocked:n=>t().scrollBlockers.some(r=>r.element===n)}));function o8(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,a]of e)if(!Object.is(a,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:l8}=Ke;function nR(e){const t=l8();return n=>{const r=e(n);return o8(t.current,r)?t.current:t.current=r}}const rR=e=>{const{disableScroll:t=!1,element:n,key:r="unnamed_blocker"}=e??{},{isElementScrollBlocked:a,addBlockage:o,removeBlockage:l}=s8(nR(A=>({isElementScrollBlocked:A.isElementScrollBlocked,addBlockage:A.addBlockage,removeBlockage:A.removeBlockage}))),d=Xv(n);return C.useEffect(()=>{const A=n??window.document.body;t?o(r,A):l(r,A)},[o,t,n,r,l]),{isScrollBlocked:d?a(d):!1}},c8=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}},d8=()=>{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)},f8=e=>{if(!(typeof window>"u"))return((window==null?void 0:window.innerWidth)??0)<=e},t3=e=>{const t=c8(e),n=d8(),r=f8(t);return{isMobileScreen:r,isMobileUserAgent:n,isMobile:r??n}},A8=(e="md")=>{const[t,n]=C.useState(t3(e));return C.useEffect(()=>{const r=()=>{n(t3(e))};return window.addEventListener("resize",r),()=>window.removeEventListener("resize",r)},[e]),t},h8=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,d=document.elementFromPoint(o,l);return e===d||e.contains(d)}return!1},n3=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,r3=Bf,pr=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return r3(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:a,defaultVariants:o}=t,l=Object.keys(a).map(A=>{const m=n==null?void 0:n[A],E=o==null?void 0:o[A];if(m===null)return null;const g=n3(m)||n3(E);return a[A][g]}),d=n&&Object.entries(n).reduce((A,m)=>{let[E,g]=m;return g===void 0||(A[E]=g),A},{}),f=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((A,m)=>{let{class:E,className:g,..._}=m;return Object.entries(_).every(S=>{let[y,v]=S;return Array.isArray(v)?v.includes({...o,...d}[y]):{...o,...d}[y]===v})?[...A,E,g]:A},[]);return r3(e,l,f,n==null?void 0:n.class,n==null?void 0:n.className)},m8=({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"})]})]})}),Us=({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(m8,{className:"size-10 max-h-full max-w-full"})}):e??N.jsx(N.Fragment,{})}),Lm=pr("",{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"}}),p8=pr("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}}),ht=({variant:e,size:t,color:n,children:r,Icon:a,IconRight:o,iconClassName:l,isLoading:d,isActive:f,isFullWidth:A=!1,textAlign:m,disabled:E,label:g,className:_,type:S="button",...y})=>{const v=e==="link"||e==="invisible-link";return N.jsxs("button",{disabled:d||E,"aria-current":f?"page":void 0,"aria-label":g,"aria-busy":d,role:v?"link":void 0,type:S,className:p8({variant:e,size:t,color:n,isFullWidth:A,textAlign:m??(o?"left":"center"),hasIconLeft:typeof r<"u"&&(typeof a<"u"||typeof d<"u"),hasIconRight:typeof r<"u"&&typeof o<"u",className:_}),...y,children:[a&&!d&&N.jsx(a,{className:Lm({size:t,className:l,position:"left"})}),N.jsx(Us,{className:Lm({size:t,className:l,position:"left"}),isLoading:d??!1}),N.jsx("span",{children:r}),o&&N.jsx(o,{className:Lm({size:t,className:l,position:"right"})})]})},E8=pr("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"}}),eu=({children:e,roundedSize:t,padding:n,transparency:r,separator:a,className:o,border:l,borderColor:d,background:f,...A})=>N.jsx("div",{className:Re(E8({roundedSize:t,transparency:r,padding:n,separator:a,border:typeof l=="boolean"?l?"with":"none":void 0,background:f,borderColor:d,className:o})),...A,children:e}),Ff=tR((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})),uR=({title:e,identifier:t,children:n,header:r,closeOnOutsideClick:a=!0,backButton:o,isOpen:l,onClose:d})=>{const{isMobile:f}=A8("md"),A=C.useRef(null),m=C.useRef(null),{close:E,open:g,isOpen:_}=Ff(nR(y=>({close:()=>y.close(t),open:()=>y.open(t),isOpen:y.isOpen(t)})));rR({disableScroll:_,key:t?`right_drawer_${t}`:"right_drawer"}),C.useEffect(()=>{const y=v=>{try{if(!A.current)return;const R=_&&a,D=v.target&&!A.current.contains(v.target),x=h8(A.current);(R&&D&&x||!v.target)&&(E(),d==null||d())}catch{E(),d==null||d()}};return window.addEventListener("mousedown",y),()=>window.removeEventListener("mousedown",y)},[_,E,d,a,t]),C.useEffect(()=>{l!==void 0&&(l?g():(E(),d==null||d()))},[E,g,d,l,t]);const S=y=>{y.target===y.currentTarget&&f&&(E(),d==null||d())};return N.jsx("div",{className:"fixed right-0 top-0 z-50 flex h-full justify-end",children:N.jsx(a2,{isHidden:!_,align:"right",children:N.jsxs(eu,{className:"text-text relative flex h-screen w-screen flex-col md:w-[400px]",ref:A,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(ht,{variant:"hoverable",color:"text",label:o.text??"Go back",onClick:o.onBack,Icon:E2,children:o==null?void 0:o.text})}),N.jsx("div",{children:N.jsx(ht,{variant:"hoverable",color:"text",label:"Close",className:"ml-auto",onClick:E,Icon:ba,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})})]})})})},Is=()=>({isFetched:!1,fetchedDateTime:null,isLoading:!1,isInvalidated:!1,error:null,isSuccess:!1,data:null,errorCount:0,isEnabled:!0}),wm=(e,t)=>t.filter(n=>e.includes(n.split("/")[0])),g8=(e,t)=>{var n;switch(t.type){case"SET_QUERY_STATE":{const{key:r,value:a}=t;return{...e,states:{...e.states,[r]:{...e.states[r]??Is(),...a}}}}case"MAKE_QUERY_IN_ERROR":{const{key:r,error:a}=t;return{...e,states:{...e.states,[r]:{...e.states[r]??Is(),error:a,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:a}=t,o=[r].flat(),l=Object.keys(e.states),d=wm(o,l);if(d.length===0)return e;const f=structuredClone(e.states);return d.forEach(A=>{f[A]={...e.states[A]??Is(),...a}}),{...e,states:f}}case"RESET_KEY_STATE":{const{keys:r}=t,a=[r].flat();if(a.length===0)return e;const o=Object.keys(e.states),l=wm(a,o);if(l.length===0)return e;const d={...e.states};return l.forEach(f=>{d[f]=Is()}),{...e,states:d}}case"RESET_STATE":{const r=[t.excludeKeys].flat(),a=Object.keys(e.states),o=wm(r,a),l={};return a.forEach(d=>{l[d]=o.includes(d)?e.states[d]:Is()}),{...e,states:l}}default:return e}},iR=C.createContext(null),_8=({children:e})=>{const[t,n]=C.useReducer(g8,{states:{}}),r=A=>t.states[A]??Is(),a=(A,m)=>{n({type:"SET_QUERY_STATE",key:A,value:m})},o=(A,m)=>{n({type:"SET_QUERIES_STATE",keys:A,value:m})},l=(A,m)=>{n({type:"MAKE_QUERY_IN_ERROR",key:A,error:m})},d=A=>{n({type:"RESET_KEY_STATE",keys:A})},f=A=>{n({type:"RESET_STATE",excludeKeys:A})};return N.jsx(iR.Provider,{value:{getStates:r,setQueryState:a,setQueriesState:o,makeQueryInError:l,resetKeyState:d,resetState:f},children:e})},N8=()=>{const e=C.useContext(iR);if(!e)throw new Error("useAsyncState must be used within an AsyncStateProvider");return e},n0=new Map,I8=!1,S8=!1,C8=!0,y8=!1,v8=1,R8=!1,D8=5*60*1e3,T8=5*60*1e3,kp=e=>e?Array.isArray(e)?e:[e]:[],u3=(e,t)=>kp(t).length>0?`${e}/${JSON.stringify(t)}`:e,Sc=(e,t,n)=>{const r=(n==null?void 0:n.retryLimit)??v8,a=(n==null?void 0:n.autoFetch)??y8,o=(n==null?void 0:n.retryTime)??T8,l=(n==null?void 0:n.cache)??I8,d=(n==null?void 0:n.store)??S8,f=(n==null?void 0:n.enable)??C8,A=(n==null?void 0:n.revalidation)??R8,m=(n==null?void 0:n.revalidateTime)??D8,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,y=kp((n==null?void 0:n.args)??[]),{getStates:v,setQueryState:R,setQueriesState:D,makeQueryInError:x}=N8(),L=C.useRef(y),b=C.useRef(null),O=u3(e,L.current),{isFetched:F,fetchedDateTime:j,isLoading:G,isEnabled:K,error:Ae,isSuccess:se,isInvalidated:de,data:$,errorCount:J}=v(O),k=async(...W)=>{const V=u3(e,W);b.current&&b.current.abort();const re=new AbortController;if(b.current=re,n0.has(V))return n0.get(V);const te=(async()=>{R(V,{isLoading:!0});let ce=null;return await t(...W).then(Ee=>{ce=Ee,R(V,{data:Ee,errorCount:0,isLoading:!1,isFetched:!0,fetchedDateTime:new Date,isSuccess:!0,isInvalidated:!1,error:null}),_==null||_(Ee),g.length>0&&D(g,{isInvalidated:!0}),E.length>0&&D(E,{data:Ee}),d&&localStorage.setItem(V,JSON.stringify(Ee))}).catch(Ee=>{const me=Ee instanceof Error?Ee.message:String(Ee);x(V,me),S==null||S(Ee.message)}).finally(()=>{n0.delete(V)}),ce})();return n0.set(V,te),await te},ne=async(...W)=>{if(!(!K||!f))return W&&(L.current=kp(W)),await k(...L.current)},ee=async(...W)=>!K||!f||G?void 0:!de&&se&&l&&$?$:await ne(...W);C.useEffect(()=>{f!==K&&R(O,{isEnabled:K})},[f,K,O]),C.useEffect(()=>{if(!K||!f||!d||de||F||$)return;const W=localStorage.getItem(O);try{W&&R(O,{data:JSON.parse(W)})}catch(V){console.error(V)}},[d,O,F,de,K,f,$]),C.useEffect(()=>{a&&(!K||!f||F&&!de||G||k(...L.current))},[a,K,f,F,de,G,k]),C.useEffect(()=>{const W=J>0&&r>0,V=J>r;if(!K||!f||!W||V||!(l||d)||G||se)return;const re=setTimeout(()=>{k(...L.current)},o);return()=>clearTimeout(re)},[K,J,r,f,o,l,d,se,G,k]),C.useEffect(()=>{if(!A||m<=0||!K||!f||G||!se||!j||!(l||d))return;const W=setTimeout(()=>{k(...L.current)},m);return()=>clearTimeout(W)},[A,m,l,d,se,j,G,K,f,k]);const pe=W=>{R(O,{data:W})},H={isFetched:F,isInvalidated:de,error:Ae,data:$,errorCount:J,isSuccess:se,isEnabled:K,isDisabled:!K,isLoading:G,isWaitingData:G&&!F&&!$,isRevalidating:G&&F,[e]:ee,revalidate:ne,setData:pe};return C.useEffect(()=>()=>{b.current&&b.current.abort()},[]),H},x8=e=>{var d;const t=Xr(),r=Df(void 0,e??t??Qe),{data:a,isFetched:o}=Sc("getCSRFToken",r.auth.getCSRFToken,{cache:!0,autoFetch:!0});return{csrfToken:(d=a==null?void 0:a.data)==null?void 0:d.csrf_token,csrfTokenFetched:o}},b8=e=>{const t=Xr(),n=e??t??Qe,r=Df(void 0,n),{data:a}=Sc("getOAuth2AccessToken",()=>r.auth.getOAuth2AccessToken(),{cache:!0,autoFetch:!0,enable:!!(n.editor.clientId&&n.editor.clientSecret)});return{oAuth2AccessToken:a==null?void 0:a.data}},B8=(e,t)=>{const n=Xr(),a=Df(void 0,t??n??Qe),{getSession:o,revalidate:l,data:d,setData:f,isFetched:A}=Sc("getSession",async()=>{try{const E=await a.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:C.useMemo(()=>d??(A?null:void 0),[d,A]),fetchSession:o,revalidateSession:l,setSession:f}},Cc=({session:e,intlayerConfiguration:t}={})=>{const{csrfToken:n,csrfTokenFetched:r}=x8(t),{session:a,fetchSession:o,revalidateSession:l,setSession:d}=B8(e,t),{oAuth2AccessToken:f}=b8(t);return{session:a,fetchSession:o,setSession:d,revalidateSession:l,csrfToken:n,csrfTokenFetched:r,oAuth2AccessToken:f,isAuthenticated:!!(a||f),isProjectAdmin:a==null?void 0:a.isProjectAdmin,isOrganizationAdmin:a==null?void 0:a.isOrganizationAdmin}};function ot(e,t,{checkForDefaultPrevented:n=!0}={}){return function(a){if(e==null||e(a),n===!1||!a.defaultPrevented)return t==null?void 0:t(a)}}function i3(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function aR(...e){return t=>{let n=!1;const r=e.map(a=>{const o=i3(a,t);return!n&&typeof o=="function"&&(n=!0),o});if(n)return()=>{for(let a=0;a<r.length;a++){const o=r[a];typeof o=="function"?o():i3(e[a],null)}}}}function xt(...e){return C.useCallback(aR(...e),e)}function O8(e,t){const n=C.createContext(t),r=o=>{const{children:l,...d}=o,f=C.useMemo(()=>d,Object.values(d));return N.jsx(n.Provider,{value:f,children:l})};r.displayName=e+"Provider";function a(o){const l=C.useContext(n);if(l)return l;if(t!==void 0)return t;throw new Error(`\`${o}\` must be used within \`${e}\``)}return[r,a]}function yc(e,t=[]){let n=[];function r(o,l){const d=C.createContext(l),f=n.length;n=[...n,l];const A=E=>{var R;const{scope:g,children:_,...S}=E,y=((R=g==null?void 0:g[e])==null?void 0:R[f])||d,v=C.useMemo(()=>S,Object.values(S));return N.jsx(y.Provider,{value:v,children:_})};A.displayName=o+"Provider";function m(E,g){var y;const _=((y=g==null?void 0:g[e])==null?void 0:y[f])||d,S=C.useContext(_);if(S)return S;if(l!==void 0)return l;throw new Error(`\`${E}\` must be used within \`${o}\``)}return[A,m]}const a=()=>{const o=n.map(l=>C.createContext(l));return function(d){const f=(d==null?void 0:d[e])||o;return C.useMemo(()=>({[`__scope${e}`]:{...d,[e]:f}}),[d,f])}};return a.scopeName=e,[r,F8(a,...t)]}function F8(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(a=>({useScope:a(),scopeName:a.scopeName}));return function(o){const l=r.reduce((d,{useScope:f,scopeName:A})=>{const E=f(o)[`__scope${A}`];return{...d,...E}},{});return C.useMemo(()=>({[`__scope${t.scopeName}`]:l}),[l])}};return n.scopeName=t.scopeName,n}var _a=C.forwardRef((e,t)=>{const{children:n,...r}=e,a=C.Children.toArray(n),o=a.find(w8);if(o){const l=o.props.children,d=a.map(f=>f===o?C.Children.count(l)>1?C.Children.only(null):C.isValidElement(l)?l.props.children:null:f);return N.jsx(Gp,{...r,ref:t,children:C.isValidElement(l)?C.cloneElement(l,void 0,d):null})}return N.jsx(Gp,{...r,ref:t,children:n})});_a.displayName="Slot";var Gp=C.forwardRef((e,t)=>{const{children:n,...r}=e;if(C.isValidElement(n)){const a=H8(n),o=M8(r,n.props);return n.type!==C.Fragment&&(o.ref=t?aR(t,a):a),C.cloneElement(n,o)}return C.Children.count(n)>1?C.Children.only(null):null});Gp.displayName="SlotClone";var L8=({children:e})=>N.jsx(N.Fragment,{children:e});function w8(e){return C.isValidElement(e)&&e.type===L8}function M8(e,t){const n={...t};for(const r in t){const a=e[r],o=t[r];/^on[A-Z]/.test(r)?a&&o?n[r]=(...d)=>{o(...d),a(...d)}:a&&(n[r]=a):r==="style"?n[r]={...a,...o}:r==="className"&&(n[r]=[a,o].filter(Boolean).join(" "))}return{...e,...n}}function H8(e){var r,a;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=(a=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:a.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function sR(e){const t=e+"CollectionProvider",[n,r]=yc(t),[a,o]=n(t,{collectionRef:{current:null},itemMap:new Map}),l=_=>{const{scope:S,children:y}=_,v=Ke.useRef(null),R=Ke.useRef(new Map).current;return N.jsx(a,{scope:S,itemMap:R,collectionRef:v,children:y})};l.displayName=t;const d=e+"CollectionSlot",f=Ke.forwardRef((_,S)=>{const{scope:y,children:v}=_,R=o(d,y),D=xt(S,R.collectionRef);return N.jsx(_a,{ref:D,children:v})});f.displayName=d;const A=e+"CollectionItemSlot",m="data-radix-collection-item",E=Ke.forwardRef((_,S)=>{const{scope:y,children:v,...R}=_,D=Ke.useRef(null),x=xt(S,D),L=o(A,y);return Ke.useEffect(()=>(L.itemMap.set(D,{ref:D,...R}),()=>void L.itemMap.delete(D))),N.jsx(_a,{[m]:"",ref:x,children:v})});E.displayName=A;function g(_){const S=o(e+"CollectionConsumer",_);return Ke.useCallback(()=>{const v=S.collectionRef.current;if(!v)return[];const R=Array.from(v.querySelectorAll(`[${m}]`));return Array.from(S.itemMap.values()).sort((L,b)=>R.indexOf(L.ref.current)-R.indexOf(b.ref.current))},[S.collectionRef,S.itemMap])}return[{Provider:l,Slot:f,ItemSlot:E},g,r]}var P8=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],tt=P8.reduce((e,t)=>{const n=C.forwardRef((r,a)=>{const{asChild:o,...l}=r,d=o?_a:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),N.jsx(d,{...l,ref:a})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function oR(e,t){e&&xa.flushSync(()=>e.dispatchEvent(t))}function $n(e){const t=C.useRef(e);return C.useEffect(()=>{t.current=e}),C.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function U8(e,t=globalThis==null?void 0:globalThis.document){const n=$n(e);C.useEffect(()=>{const r=a=>{a.key==="Escape"&&n(a)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var k8="DismissableLayer",jp="dismissableLayer.update",G8="dismissableLayer.pointerDownOutside",j8="dismissableLayer.focusOutside",a3,lR=C.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Lf=C.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:a,onFocusOutside:o,onInteractOutside:l,onDismiss:d,...f}=e,A=C.useContext(lR),[m,E]=C.useState(null),g=(m==null?void 0:m.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,_]=C.useState({}),S=xt(t,F=>E(F)),y=Array.from(A.layers),[v]=[...A.layersWithOutsidePointerEventsDisabled].slice(-1),R=y.indexOf(v),D=m?y.indexOf(m):-1,x=A.layersWithOutsidePointerEventsDisabled.size>0,L=D>=R,b=z8(F=>{const j=F.target,G=[...A.branches].some(K=>K.contains(j));!L||G||(a==null||a(F),l==null||l(F),F.defaultPrevented||d==null||d())},g),O=K8(F=>{const j=F.target;[...A.branches].some(K=>K.contains(j))||(o==null||o(F),l==null||l(F),F.defaultPrevented||d==null||d())},g);return U8(F=>{D===A.layers.size-1&&(r==null||r(F),!F.defaultPrevented&&d&&(F.preventDefault(),d()))},g),C.useEffect(()=>{if(m)return n&&(A.layersWithOutsidePointerEventsDisabled.size===0&&(a3=g.body.style.pointerEvents,g.body.style.pointerEvents="none"),A.layersWithOutsidePointerEventsDisabled.add(m)),A.layers.add(m),s3(),()=>{n&&A.layersWithOutsidePointerEventsDisabled.size===1&&(g.body.style.pointerEvents=a3)}},[m,g,n,A]),C.useEffect(()=>()=>{m&&(A.layers.delete(m),A.layersWithOutsidePointerEventsDisabled.delete(m),s3())},[m,A]),C.useEffect(()=>{const F=()=>_({});return document.addEventListener(jp,F),()=>document.removeEventListener(jp,F)},[]),N.jsx(tt.div,{...f,ref:S,style:{pointerEvents:x?L?"auto":"none":void 0,...e.style},onFocusCapture:ot(e.onFocusCapture,O.onFocusCapture),onBlurCapture:ot(e.onBlurCapture,O.onBlurCapture),onPointerDownCapture:ot(e.onPointerDownCapture,b.onPointerDownCapture)})});Lf.displayName=k8;var V8="DismissableLayerBranch",cR=C.forwardRef((e,t)=>{const n=C.useContext(lR),r=C.useRef(null),a=xt(t,r);return C.useEffect(()=>{const o=r.current;if(o)return n.branches.add(o),()=>{n.branches.delete(o)}},[n.branches]),N.jsx(tt.div,{...e,ref:a})});cR.displayName=V8;function z8(e,t=globalThis==null?void 0:globalThis.document){const n=$n(e),r=C.useRef(!1),a=C.useRef(()=>{});return C.useEffect(()=>{const o=d=>{if(d.target&&!r.current){let f=function(){dR(G8,n,A,{discrete:!0})};const A={originalEvent:d};d.pointerType==="touch"?(t.removeEventListener("click",a.current),a.current=f,t.addEventListener("click",a.current,{once:!0})):f()}else t.removeEventListener("click",a.current);r.current=!1},l=window.setTimeout(()=>{t.addEventListener("pointerdown",o)},0);return()=>{window.clearTimeout(l),t.removeEventListener("pointerdown",o),t.removeEventListener("click",a.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function K8(e,t=globalThis==null?void 0:globalThis.document){const n=$n(e),r=C.useRef(!1);return C.useEffect(()=>{const a=o=>{o.target&&!r.current&&dR(j8,n,{originalEvent:o},{discrete:!1})};return t.addEventListener("focusin",a),()=>t.removeEventListener("focusin",a)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function s3(){const e=new CustomEvent(jp);document.dispatchEvent(e)}function dR(e,t,n,{discrete:r}){const a=n.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&a.addEventListener(e,t,{once:!0}),r?oR(a,o):a.dispatchEvent(o)}var Y8=Lf,Z8=cR,gn=globalThis!=null&&globalThis.document?C.useLayoutEffect:()=>{},W8="Portal",wf=C.forwardRef((e,t)=>{var d;const{container:n,...r}=e,[a,o]=C.useState(!1);gn(()=>o(!0),[]);const l=n||a&&((d=globalThis==null?void 0:globalThis.document)==null?void 0:d.body);return l?_w.createPortal(N.jsx(tt.div,{...r,ref:t}),l):null});wf.displayName=W8;function $8(e,t){return C.useReducer((n,r)=>t[n][r]??n,e)}var vc=e=>{const{present:t,children:n}=e,r=q8(t),a=typeof n=="function"?n({present:r.isPresent}):C.Children.only(n),o=xt(r.ref,Q8(a));return typeof n=="function"||r.isPresent?C.cloneElement(a,{ref:o}):null};vc.displayName="Presence";function q8(e){const[t,n]=C.useState(),r=C.useRef({}),a=C.useRef(e),o=C.useRef("none"),l=e?"mounted":"unmounted",[d,f]=$8(l,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return C.useEffect(()=>{const A=r0(r.current);o.current=d==="mounted"?A:"none"},[d]),gn(()=>{const A=r.current,m=a.current;if(m!==e){const g=o.current,_=r0(A);e?f("MOUNT"):_==="none"||(A==null?void 0:A.display)==="none"?f("UNMOUNT"):f(m&&g!==_?"ANIMATION_OUT":"UNMOUNT"),a.current=e}},[e,f]),gn(()=>{if(t){let A;const m=t.ownerDocument.defaultView??window,E=_=>{const y=r0(r.current).includes(_.animationName);if(_.target===t&&y&&(f("ANIMATION_END"),!a.current)){const v=t.style.animationFillMode;t.style.animationFillMode="forwards",A=m.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=v)})}},g=_=>{_.target===t&&(o.current=r0(r.current))};return t.addEventListener("animationstart",g),t.addEventListener("animationcancel",E),t.addEventListener("animationend",E),()=>{m.clearTimeout(A),t.removeEventListener("animationstart",g),t.removeEventListener("animationcancel",E),t.removeEventListener("animationend",E)}}else f("ANIMATION_END")},[t,f]),{isPresent:["mounted","unmountSuspended"].includes(d),ref:C.useCallback(A=>{A&&(r.current=getComputedStyle(A)),n(A)},[])}}function r0(e){return(e==null?void 0:e.animationName)||"none"}function Q8(e){var r,a;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=(a=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:a.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function k0({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,a]=X8({defaultProp:t,onChange:n}),o=e!==void 0,l=o?e:r,d=$n(n),f=C.useCallback(A=>{if(o){const E=typeof A=="function"?A(e):A;E!==e&&d(E)}else a(A)},[o,e,a,d]);return[l,f]}function X8({defaultProp:e,onChange:t}){const n=C.useState(e),[r]=n,a=C.useRef(r),o=$n(t);return C.useEffect(()=>{a.current!==r&&(o(r),a.current=r)},[r,a,o]),n}var J8="VisuallyHidden",Mf=C.forwardRef((e,t)=>N.jsx(tt.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}}));Mf.displayName=J8;var ag="ToastProvider",[sg,eM,tM]=sR("Toast"),[fR,nM]=yc("Toast",[tM]),[rM,Hf]=fR(ag),og=e=>{const{__scopeToast:t,label:n="Notification",duration:r=5e3,swipeDirection:a="right",swipeThreshold:o=50,children:l}=e,[d,f]=C.useState(null),[A,m]=C.useState(0),E=C.useRef(!1),g=C.useRef(!1);return n.trim()||console.error(`Invalid prop \`label\` supplied to \`${ag}\`. Expected non-empty \`string\`.`),N.jsx(sg.Provider,{scope:t,children:N.jsx(rM,{scope:t,label:n,duration:r,swipeDirection:a,swipeThreshold:o,toastCount:A,viewport:d,onViewportChange:f,onToastAdd:C.useCallback(()=>m(_=>_+1),[]),onToastRemove:C.useCallback(()=>m(_=>_-1),[]),isFocusedToastEscapeKeyDownRef:E,isClosePausedRef:g,children:l})})};og.displayName=ag;var AR="ToastViewport",uM=["F8"],Vp="toast.viewportPause",zp="toast.viewportResume",lg=C.forwardRef((e,t)=>{const{__scopeToast:n,hotkey:r=uM,label:a="Notifications ({hotkey})",...o}=e,l=Hf(AR,n),d=eM(n),f=C.useRef(null),A=C.useRef(null),m=C.useRef(null),E=C.useRef(null),g=xt(t,E,l.onViewportChange),_=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),S=l.toastCount>0;C.useEffect(()=>{const v=R=>{var x;r.length!==0&&r.every(L=>R[L]||R.code===L)&&((x=E.current)==null||x.focus())};return document.addEventListener("keydown",v),()=>document.removeEventListener("keydown",v)},[r]),C.useEffect(()=>{const v=f.current,R=E.current;if(S&&v&&R){const D=()=>{if(!l.isClosePausedRef.current){const O=new CustomEvent(Vp);R.dispatchEvent(O),l.isClosePausedRef.current=!0}},x=()=>{if(l.isClosePausedRef.current){const O=new CustomEvent(zp);R.dispatchEvent(O),l.isClosePausedRef.current=!1}},L=O=>{!v.contains(O.relatedTarget)&&x()},b=()=>{v.contains(document.activeElement)||x()};return v.addEventListener("focusin",D),v.addEventListener("focusout",L),v.addEventListener("pointermove",D),v.addEventListener("pointerleave",b),window.addEventListener("blur",D),window.addEventListener("focus",x),()=>{v.removeEventListener("focusin",D),v.removeEventListener("focusout",L),v.removeEventListener("pointermove",D),v.removeEventListener("pointerleave",b),window.removeEventListener("blur",D),window.removeEventListener("focus",x)}}},[S,l.isClosePausedRef]);const y=C.useCallback(({tabbingDirection:v})=>{const D=d().map(x=>{const L=x.ref.current,b=[L,...EM(L)];return v==="forwards"?b:b.reverse()});return(v==="forwards"?D.reverse():D).flat()},[d]);return C.useEffect(()=>{const v=E.current;if(v){const R=D=>{var b,O,F;const x=D.altKey||D.ctrlKey||D.metaKey;if(D.key==="Tab"&&!x){const j=document.activeElement,G=D.shiftKey;if(D.target===v&&G){(b=A.current)==null||b.focus();return}const se=y({tabbingDirection:G?"backwards":"forwards"}),de=se.findIndex($=>$===j);Mm(se.slice(de+1))?D.preventDefault():G?(O=A.current)==null||O.focus():(F=m.current)==null||F.focus()}};return v.addEventListener("keydown",R),()=>v.removeEventListener("keydown",R)}},[d,y]),N.jsxs(Z8,{ref:f,role:"region","aria-label":a.replace("{hotkey}",_),tabIndex:-1,style:{pointerEvents:S?void 0:"none"},children:[S&&N.jsx(Kp,{ref:A,onFocusFromOutsideViewport:()=>{const v=y({tabbingDirection:"forwards"});Mm(v)}}),N.jsx(sg.Slot,{scope:n,children:N.jsx(tt.ol,{tabIndex:-1,...o,ref:g})}),S&&N.jsx(Kp,{ref:m,onFocusFromOutsideViewport:()=>{const v=y({tabbingDirection:"backwards"});Mm(v)}})]})});lg.displayName=AR;var hR="ToastFocusProxy",Kp=C.forwardRef((e,t)=>{const{__scopeToast:n,onFocusFromOutsideViewport:r,...a}=e,o=Hf(hR,n);return N.jsx(Mf,{"aria-hidden":!0,tabIndex:0,...a,ref:t,style:{position:"fixed"},onFocus:l=>{var A;const d=l.relatedTarget;!((A=o.viewport)!=null&&A.contains(d))&&r()}})});Kp.displayName=hR;var Pf="Toast",iM="toast.swipeStart",aM="toast.swipeMove",sM="toast.swipeCancel",oM="toast.swipeEnd",cg=C.forwardRef((e,t)=>{const{forceMount:n,open:r,defaultOpen:a,onOpenChange:o,...l}=e,[d=!0,f]=k0({prop:r,defaultProp:a,onChange:o});return N.jsx(vc,{present:n||d,children:N.jsx(dM,{open:d,...l,ref:t,onClose:()=>f(!1),onPause:$n(e.onPause),onResume:$n(e.onResume),onSwipeStart:ot(e.onSwipeStart,A=>{A.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:ot(e.onSwipeMove,A=>{const{x:m,y:E}=A.detail.delta;A.currentTarget.setAttribute("data-swipe","move"),A.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${m}px`),A.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${E}px`)}),onSwipeCancel:ot(e.onSwipeCancel,A=>{A.currentTarget.setAttribute("data-swipe","cancel"),A.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),A.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),A.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),A.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:ot(e.onSwipeEnd,A=>{const{x:m,y:E}=A.detail.delta;A.currentTarget.setAttribute("data-swipe","end"),A.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),A.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),A.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${m}px`),A.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${E}px`),f(!1)})})})});cg.displayName=Pf;var[lM,cM]=fR(Pf,{onClose(){}}),dM=C.forwardRef((e,t)=>{const{__scopeToast:n,type:r="foreground",duration:a,open:o,onClose:l,onEscapeKeyDown:d,onPause:f,onResume:A,onSwipeStart:m,onSwipeMove:E,onSwipeCancel:g,onSwipeEnd:_,...S}=e,y=Hf(Pf,n),[v,R]=C.useState(null),D=xt(t,$=>R($)),x=C.useRef(null),L=C.useRef(null),b=a||y.duration,O=C.useRef(0),F=C.useRef(b),j=C.useRef(0),{onToastAdd:G,onToastRemove:K}=y,Ae=$n(()=>{var J;(v==null?void 0:v.contains(document.activeElement))&&((J=y.viewport)==null||J.focus()),l()}),se=C.useCallback($=>{!$||$===1/0||(window.clearTimeout(j.current),O.current=new Date().getTime(),j.current=window.setTimeout(Ae,$))},[Ae]);C.useEffect(()=>{const $=y.viewport;if($){const J=()=>{se(F.current),A==null||A()},k=()=>{const ne=new Date().getTime()-O.current;F.current=F.current-ne,window.clearTimeout(j.current),f==null||f()};return $.addEventListener(Vp,k),$.addEventListener(zp,J),()=>{$.removeEventListener(Vp,k),$.removeEventListener(zp,J)}}},[y.viewport,b,f,A,se]),C.useEffect(()=>{o&&!y.isClosePausedRef.current&&se(b)},[o,b,y.isClosePausedRef,se]),C.useEffect(()=>(G(),()=>K()),[G,K]);const de=C.useMemo(()=>v?gR(v):null,[v]);return y.viewport?N.jsxs(N.Fragment,{children:[de&&N.jsx(fM,{__scopeToast:n,role:"status","aria-live":r==="foreground"?"assertive":"polite","aria-atomic":!0,children:de}),N.jsx(lM,{scope:n,onClose:Ae,children:xa.createPortal(N.jsx(sg.ItemSlot,{scope:n,children:N.jsx(Y8,{asChild:!0,onEscapeKeyDown:ot(d,()=>{y.isFocusedToastEscapeKeyDownRef.current||Ae(),y.isFocusedToastEscapeKeyDownRef.current=!1}),children:N.jsx(tt.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":o?"open":"closed","data-swipe-direction":y.swipeDirection,...S,ref:D,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:ot(e.onKeyDown,$=>{$.key==="Escape"&&(d==null||d($.nativeEvent),$.nativeEvent.defaultPrevented||(y.isFocusedToastEscapeKeyDownRef.current=!0,Ae()))}),onPointerDown:ot(e.onPointerDown,$=>{$.button===0&&(x.current={x:$.clientX,y:$.clientY})}),onPointerMove:ot(e.onPointerMove,$=>{if(!x.current)return;const J=$.clientX-x.current.x,k=$.clientY-x.current.y,ne=!!L.current,ee=["left","right"].includes(y.swipeDirection),pe=["left","up"].includes(y.swipeDirection)?Math.min:Math.max,H=ee?pe(0,J):0,W=ee?0:pe(0,k),V=$.pointerType==="touch"?10:2,re={x:H,y:W},te={originalEvent:$,delta:re};ne?(L.current=re,u0(aM,E,te,{discrete:!1})):o3(re,y.swipeDirection,V)?(L.current=re,u0(iM,m,te,{discrete:!1}),$.target.setPointerCapture($.pointerId)):(Math.abs(J)>V||Math.abs(k)>V)&&(x.current=null)}),onPointerUp:ot(e.onPointerUp,$=>{const J=L.current,k=$.target;if(k.hasPointerCapture($.pointerId)&&k.releasePointerCapture($.pointerId),L.current=null,x.current=null,J){const ne=$.currentTarget,ee={originalEvent:$,delta:J};o3(J,y.swipeDirection,y.swipeThreshold)?u0(oM,_,ee,{discrete:!0}):u0(sM,g,ee,{discrete:!0}),ne.addEventListener("click",pe=>pe.preventDefault(),{once:!0})}})})})}),y.viewport)})]}):null}),fM=e=>{const{__scopeToast:t,children:n,...r}=e,a=Hf(Pf,t),[o,l]=C.useState(!1),[d,f]=C.useState(!1);return mM(()=>l(!0)),C.useEffect(()=>{const A=window.setTimeout(()=>f(!0),1e3);return()=>window.clearTimeout(A)},[]),d?null:N.jsx(wf,{asChild:!0,children:N.jsx(Mf,{...r,children:o&&N.jsxs(N.Fragment,{children:[a.label," ",n]})})})},AM="ToastTitle",dg=C.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return N.jsx(tt.div,{...r,ref:t})});dg.displayName=AM;var hM="ToastDescription",fg=C.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return N.jsx(tt.div,{...r,ref:t})});fg.displayName=hM;var mR="ToastAction",Ag=C.forwardRef((e,t)=>{const{altText:n,...r}=e;return n.trim()?N.jsx(ER,{altText:n,asChild:!0,children:N.jsx(Uf,{...r,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${mR}\`. Expected non-empty \`string\`.`),null)});Ag.displayName=mR;var pR="ToastClose",Uf=C.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e,a=cM(pR,n);return N.jsx(ER,{asChild:!0,children:N.jsx(tt.button,{type:"button",...r,ref:t,onClick:ot(e.onClick,a.onClose)})})});Uf.displayName=pR;var ER=C.forwardRef((e,t)=>{const{__scopeToast:n,altText:r,...a}=e;return N.jsx(tt.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0,...a,ref:t})});function gR(e){const t=[];return Array.from(e.childNodes).forEach(r=>{if(r.nodeType===r.TEXT_NODE&&r.textContent&&t.push(r.textContent),pM(r)){const a=r.ariaHidden||r.hidden||r.style.display==="none",o=r.dataset.radixToastAnnounceExclude==="";if(!a)if(o){const l=r.dataset.radixToastAnnounceAlt;l&&t.push(l)}else t.push(...gR(r))}}),t}function u0(e,t,n,{discrete:r}){const a=n.originalEvent.currentTarget,o=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});t&&a.addEventListener(e,t,{once:!0}),r?oR(a,o):a.dispatchEvent(o)}var o3=(e,t,n=0)=>{const r=Math.abs(e.x),a=Math.abs(e.y),o=r>a;return t==="left"||t==="right"?o&&r>n:!o&&a>n};function mM(e=()=>{}){const t=$n(e);gn(()=>{let n=0,r=0;return n=window.requestAnimationFrame(()=>r=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(n),window.cancelAnimationFrame(r)}},[t])}function pM(e){return e.nodeType===e.ELEMENT_NODE}function EM(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const a=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||a?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Mm(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}var gM=og,_R=lg,NR=cg,IR=dg,SR=fg,_M=Ag,CR=Uf;const NM=Object.freeze(Object.defineProperty({__proto__:null,Action:_M,Close:CR,Description:SR,Provider:gM,Root:NR,Title:IR,Toast:cg,ToastAction:Ag,ToastClose:Uf,ToastDescription:fg,ToastProvider:og,ToastTitle:dg,ToastViewport:lg,Viewport:_R,createToastScope:nM},Symbol.toStringTag,{value:"Module"})),IM=NM,SM=({className:e,...t})=>N.jsx(_R,{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}),CM=pr("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"}}),yM=({className:e,variant:t,...n})=>N.jsx(NR,{className:Re(CM({variant:t}),e),...n}),vM=({className:e,...t})=>N.jsx(CR,{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(ba,{className:"size-5"})}),RM=({className:e,...t})=>N.jsx(IR,{className:Re("text-sm font-semibold [&+div]:text-xs",e),...t}),DM=({className:e,...t})=>N.jsx(SR,{className:Re("text-sm opacity-90",e),...t}),TM=1,xM=15*60*1e3;let Hm=0;const bM=()=>(Hm=(Hm+1)%Number.MAX_SAFE_INTEGER,Hm.toString()),Pm=new Map,l3=e=>{if(Pm.has(e))return;const t=setTimeout(()=>{Pm.delete(e),Bl({type:"REMOVE_TOAST",toastId:e})},xM);Pm.set(e,t)},BM=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,TM)};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?l3(n):e.toasts.forEach(r=>{l3(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)}}},v0=[];let R0={toasts:[]};const Bl=e=>{R0=BM(R0,e),v0.forEach(t=>{t(R0)})},OM=({...e})=>{const t=bM(),n=a=>Bl({type:"UPDATE_TOAST",toast:{...a,id:t}}),r=()=>Bl({type:"DISMISS_TOAST",toastId:t});return Bl({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:a=>{a||r()}}}),{id:t,dismiss:r,update:n}},yR=()=>{const[e,t]=C.useState(R0);return C.useEffect(()=>(v0.push(t),()=>{const n=v0.indexOf(t);n>-1&&v0.splice(n,1)}),[e]),{...e,toast:OM,dismiss:n=>Bl({type:"DISMISS_TOAST",toastId:n})}},Hu=e=>{const t=Xr(),{csrfToken:n,oAuth2AccessToken:r}=Cc(),a=r!=null&&r.accessToken?{Authorization:`Bearer ${r.accessToken}`}:void 0;return Df({headers:a,body:n?{csrf_token:n}:void 0},t)};var FM={};const vR=e=>{const{toast:t}=yR();return{...e,onError:n=>{var a;let r;try{if(typeof n>"u")return;r=JSON.parse(n)}catch{r=n}[r].flatMap(o=>o).forEach(o=>t({title:(FM.NODE_ENV==="production"?o.title:o.code)??"Error",description:o.message??n??"An error occurred",variant:"error"})),(a=e.onError)==null||a.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)}}},LM=(e,{requireUser:t,requireProject:n,requireOrganization:r}={})=>{const a=Xr(),{csrfToken:o,oAuth2AccessToken:l,session:d}=Cc({intlayerConfiguration:a}),f=(e==null?void 0:e.enable)??!0,A=d?d.user:l==null?void 0:l.user,m=d?d.organization:l==null?void 0:l.organization,E=d?d.project:l==null?void 0:l.project;return{...e,enable:f&&(t?!!A:!0)&&(n?!!E:!0)&&(r?!!m:!0)&&(!!o||!d&&!!l)}},Di=(e,t,n,r)=>{const a=LM(n??{},r),o=vR(a);return Sc(e,t,o)},wM=(e,t,n)=>{const r=vR({});return Sc(e,t,r)},MM=e=>Di("logout",Hu().auth.logout,{invalidateQueries:["getSession"],...e}),HM=e=>Di("getProjects",Hu().project.getProjects,{cache:!0,store:!0,retryLimit:3,autoFetch:!0,revalidation:!0,revalidateTime:5*60*1e3,...e},{requireUser:!0,requireOrganization:!0}),PM=e=>Di("getDictionaries",Hu().dictionary.getDictionaries,{cache:!0,store:!0,retryLimit:3,autoFetch:!0,revalidation:!0,revalidateTime:5*60*1e3,...e},{requireUser:!0,requireOrganization:!0,requireProject:!0}),UM=e=>Di("pushDictionaries",Hu().dictionary.pushDictionaries,{invalidateQueries:["getDictionaries","getDictionary","getDictionariesKeys"],...e}),kM=e=>Di("getTags",Hu().tag.getTags,{cache:!0,store:!0,retryLimit:3,autoFetch:!0,revalidation:!0,revalidateTime:5*60*1e3,...e},{requireUser:!0,requireOrganization:!0}),GM=e=>Di("auditContentDeclaration",Hu().ai.auditContentDeclarationMetadata,e,{requireUser:!0,requireOrganization:!0,requireProject:!0}),jM=e=>Di("auditContentDeclarationField",Hu().ai.auditContentDeclarationField,e,{requireUser:!0,requireOrganization:!0,requireProject:!0}),VM=e=>Di("autocomplete",Hu().ai.autocomplete,e),zM=e=>wM("writeDictionary",Hu().editor.writeDictionary);var Um,c3;function KM(){if(c3)return Um;c3=1;var e=function(D){return t(D)&&!n(D)};function t(R){return!!R&&typeof R=="object"}function n(R){var D=Object.prototype.toString.call(R);return D==="[object RegExp]"||D==="[object Date]"||o(R)}var r=typeof Symbol=="function"&&Symbol.for,a=r?Symbol.for("react.element"):60103;function o(R){return R.$$typeof===a}function l(R){return Array.isArray(R)?[]:{}}function d(R,D){return D.clone!==!1&&D.isMergeableObject(R)?y(l(R),R,D):R}function f(R,D,x){return R.concat(D).map(function(L){return d(L,x)})}function A(R,D){if(!D.customMerge)return y;var x=D.customMerge(R);return typeof x=="function"?x:y}function m(R){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(R).filter(function(D){return Object.propertyIsEnumerable.call(R,D)}):[]}function E(R){return Object.keys(R).concat(m(R))}function g(R,D){try{return D in R}catch{return!1}}function _(R,D){return g(R,D)&&!(Object.hasOwnProperty.call(R,D)&&Object.propertyIsEnumerable.call(R,D))}function S(R,D,x){var L={};return x.isMergeableObject(R)&&E(R).forEach(function(b){L[b]=d(R[b],x)}),E(D).forEach(function(b){_(R,b)||(g(R,b)&&x.isMergeableObject(D[b])?L[b]=A(b,x)(R[b],D[b],x):L[b]=d(D[b],x))}),L}function y(R,D,x){x=x||{},x.arrayMerge=x.arrayMerge||f,x.isMergeableObject=x.isMergeableObject||e,x.cloneUnlessOtherwiseSpecified=d;var L=Array.isArray(D),b=Array.isArray(R),O=L===b;return O?L?x.arrayMerge(R,D,x):S(R,D,x):d(D,x)}y.all=function(D,x){if(!Array.isArray(D))throw new Error("first argument should be an array");return D.reduce(function(L,b){return y(L,b,x)},{})};var v=y;return Um=v,Um}var YM=KM();const ZM=Rf(YM);var Rc=e=>e.type==="checkbox",Aa=e=>e instanceof Date,Cn=e=>e==null;const RR=e=>typeof e=="object";var Ut=e=>!Cn(e)&&!Array.isArray(e)&&RR(e)&&!Aa(e),DR=e=>Ut(e)&&e.target?Rc(e.target)?e.target.checked:e.target.value:e,WM=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,TR=(e,t)=>e.has(WM(t)),$M=e=>{const t=e.constructor&&e.constructor.prototype;return Ut(t)&&t.hasOwnProperty("isPrototypeOf")},hg=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function bn(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(!(hg&&(e instanceof Blob||r))&&(n||Ut(e)))if(t=n?[]:{},!n&&!$M(e))t=e;else for(const a in e)e.hasOwnProperty(a)&&(t[a]=bn(e[a]));else return e;return t}var kf=e=>Array.isArray(e)?e.filter(Boolean):[],Pt=e=>e===void 0,Ie=(e,t,n)=>{if(!t||!Ut(e))return n;const r=kf(t.split(/[,[\].]+?/)).reduce((a,o)=>Cn(a)?a:a[o],e);return Pt(r)||r===e?Pt(e[t])?n:e[t]:r},fr=e=>typeof e=="boolean",mg=e=>/^\w*$/.test(e),xR=e=>kf(e.replace(/["|']|\]/g,"").split(/\.|\[/)),At=(e,t,n)=>{let r=-1;const a=mg(t)?[t]:xR(t),o=a.length,l=o-1;for(;++r<o;){const d=a[r];let f=n;if(r!==l){const A=e[d];f=Ut(A)||Array.isArray(A)?A:isNaN(+a[r+1])?{}:[]}if(d==="__proto__"||d==="constructor"||d==="prototype")return;e[d]=f,e=e[d]}return e};const G0={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},yr={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},Nu={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},bR=Ke.createContext(null),Ti=()=>Ke.useContext(bR),qM=e=>{const{children:t,...n}=e;return Ke.createElement(bR.Provider,{value:n},t)};var BR=(e,t,n,r=!0)=>{const a={defaultValues:t._defaultValues};for(const o in e)Object.defineProperty(a,o,{get:()=>{const l=o;return t._proxyFormState[l]!==yr.all&&(t._proxyFormState[l]=!r||yr.all),n&&(n[l]=!0),e[l]}});return a},Bn=e=>Ut(e)&&!Object.keys(e).length,OR=(e,t,n,r)=>{n(e);const{name:a,...o}=e;return Bn(o)||Object.keys(o).length>=Object.keys(t).length||Object.keys(o).find(l=>t[l]===(!r||yr.all))},Ol=e=>Array.isArray(e)?e:[e],FR=(e,t,n)=>!e||!t||e===t||Ol(e).some(r=>r&&(n?r===t:r.startsWith(t)||t.startsWith(r)));function pg(e){const t=Ke.useRef(e);t.current=e,Ke.useEffect(()=>{const n=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{n&&n.unsubscribe()}},[e.disabled])}function QM(e){const t=Ti(),{control:n=t.control,disabled:r,name:a,exact:o}=e||{},[l,d]=Ke.useState(n._formState),f=Ke.useRef(!0),A=Ke.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1}),m=Ke.useRef(a);return m.current=a,pg({disabled:r,next:E=>f.current&&FR(m.current,E.name,o)&&OR(E,A.current,n._updateFormState)&&d({...n._formState,...E}),subject:n._subjects.state}),Ke.useEffect(()=>(f.current=!0,A.current.isValid&&n._updateValid(!0),()=>{f.current=!1}),[n]),Ke.useMemo(()=>BR(l,n,A.current,!1),[l,n])}var jr=e=>typeof e=="string",LR=(e,t,n,r,a)=>jr(e)?(r&&t.watch.add(e),Ie(n,e,a)):Array.isArray(e)?e.map(o=>(r&&t.watch.add(o),Ie(n,o))):(r&&(t.watchAll=!0),n);function XM(e){const t=Ti(),{control:n=t.control,name:r,defaultValue:a,disabled:o,exact:l}=e||{},d=Ke.useRef(r);d.current=r,pg({disabled:o,subject:n._subjects.values,next:m=>{FR(d.current,m.name,l)&&A(bn(LR(d.current,n._names,m.values||n._formValues,!1,a)))}});const[f,A]=Ke.useState(n._getWatch(r,a));return Ke.useEffect(()=>n._removeUnmounted()),f}function JM(e){const t=Ti(),{name:n,disabled:r,control:a=t.control,shouldUnregister:o}=e,l=TR(a._names.array,n),d=XM({control:a,name:n,defaultValue:Ie(a._formValues,n,Ie(a._defaultValues,n,e.defaultValue)),exact:!0}),f=QM({control:a,name:n,exact:!0}),A=Ke.useRef(a.register(n,{...e.rules,value:d,...fr(e.disabled)?{disabled:e.disabled}:{}})),m=Ke.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!Ie(f.errors,n)},isDirty:{enumerable:!0,get:()=>!!Ie(f.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!Ie(f.touchedFields,n)},isValidating:{enumerable:!0,get:()=>!!Ie(f.validatingFields,n)},error:{enumerable:!0,get:()=>Ie(f.errors,n)}}),[f,n]),E=Ke.useMemo(()=>({name:n,value:d,...fr(r)||f.disabled?{disabled:f.disabled||r}:{},onChange:g=>A.current.onChange({target:{value:DR(g),name:n},type:G0.CHANGE}),onBlur:()=>A.current.onBlur({target:{value:Ie(a._formValues,n),name:n},type:G0.BLUR}),ref:g=>{const _=Ie(a._fields,n);_&&g&&(_._f.ref={focus:()=>g.focus(),select:()=>g.select(),setCustomValidity:S=>g.setCustomValidity(S),reportValidity:()=>g.reportValidity()})}}),[n,a._formValues,r,f.disabled,d,a._fields]);return Ke.useEffect(()=>{const g=a._options.shouldUnregister||o,_=(S,y)=>{const v=Ie(a._fields,S);v&&v._f&&(v._f.mount=y)};if(_(n,!0),g){const S=bn(Ie(a._options.defaultValues,n));At(a._defaultValues,n,S),Pt(Ie(a._formValues,n))&&At(a._formValues,n,S)}return!l&&a.register(n),()=>{(l?g&&!a._state.action:g)?a.unregister(n):_(n,!1)}},[n,a,l,o]),Ke.useEffect(()=>{a._updateDisabledField({disabled:r,fields:a._fields,name:n})},[r,n,a]),Ke.useMemo(()=>({field:E,formState:f,fieldState:m}),[E,f,m])}const eH=e=>e.render(JM(e));var wR=(e,t,n,r,a)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:a||!0}}:{},d3=e=>({isOnSubmit:!e||e===yr.onSubmit,isOnBlur:e===yr.onBlur,isOnChange:e===yr.onChange,isOnAll:e===yr.all,isOnTouch:e===yr.onTouched}),f3=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(r=>e.startsWith(r)&&/^\.\w+/.test(e.slice(r.length))));const Fl=(e,t,n,r)=>{for(const a of n||Object.keys(e)){const o=Ie(e,a);if(o){const{_f:l,...d}=o;if(l){if(l.refs&&l.refs[0]&&t(l.refs[0],a)&&!r)return!0;if(l.ref&&t(l.ref,l.name)&&!r)return!0;if(Fl(d,t))break}else if(Ut(d)&&Fl(d,t))break}}};var tH=(e,t,n)=>{const r=Ol(Ie(e,n));return At(r,"root",t[n]),At(e,n,r),e},Eg=e=>e.type==="file",Ur=e=>typeof e=="function",j0=e=>{if(!hg)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},D0=e=>jr(e),gg=e=>e.type==="radio",V0=e=>e instanceof RegExp;const A3={value:!1,isValid:!1},h3={value:!0,isValid:!0};var MR=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&&!Pt(e[0].attributes.value)?Pt(e[0].value)||e[0].value===""?h3:{value:e[0].value,isValid:!0}:h3:A3}return A3};const m3={isValid:!1,value:null};var HR=e=>Array.isArray(e)?e.reduce((t,n)=>n&&n.checked&&!n.disabled?{isValid:!0,value:n.value}:t,m3):m3;function p3(e,t,n="validate"){if(D0(e)||Array.isArray(e)&&e.every(D0)||fr(e)&&!e)return{type:n,message:D0(e)?e:"",ref:t}}var Es=e=>Ut(e)&&!V0(e)?e:{value:e,message:""},E3=async(e,t,n,r,a,o)=>{const{ref:l,refs:d,required:f,maxLength:A,minLength:m,min:E,max:g,pattern:_,validate:S,name:y,valueAsNumber:v,mount:R}=e._f,D=Ie(n,y);if(!R||t.has(y))return{};const x=d?d[0]:l,L=se=>{a&&x.reportValidity&&(x.setCustomValidity(fr(se)?"":se||""),x.reportValidity())},b={},O=gg(l),F=Rc(l),j=O||F,G=(v||Eg(l))&&Pt(l.value)&&Pt(D)||j0(l)&&l.value===""||D===""||Array.isArray(D)&&!D.length,K=wR.bind(null,y,r,b),Ae=(se,de,$,J=Nu.maxLength,k=Nu.minLength)=>{const ne=se?de:$;b[y]={type:se?J:k,message:ne,ref:l,...K(se?J:k,ne)}};if(o?!Array.isArray(D)||!D.length:f&&(!j&&(G||Cn(D))||fr(D)&&!D||F&&!MR(d).isValid||O&&!HR(d).isValid)){const{value:se,message:de}=D0(f)?{value:!!f,message:f}:Es(f);if(se&&(b[y]={type:Nu.required,message:de,ref:x,...K(Nu.required,de)},!r))return L(de),b}if(!G&&(!Cn(E)||!Cn(g))){let se,de;const $=Es(g),J=Es(E);if(!Cn(D)&&!isNaN(D)){const k=l.valueAsNumber||D&&+D;Cn($.value)||(se=k>$.value),Cn(J.value)||(de=k<J.value)}else{const k=l.valueAsDate||new Date(D),ne=H=>new Date(new Date().toDateString()+" "+H),ee=l.type=="time",pe=l.type=="week";jr($.value)&&D&&(se=ee?ne(D)>ne($.value):pe?D>$.value:k>new Date($.value)),jr(J.value)&&D&&(de=ee?ne(D)<ne(J.value):pe?D<J.value:k<new Date(J.value))}if((se||de)&&(Ae(!!se,$.message,J.message,Nu.max,Nu.min),!r))return L(b[y].message),b}if((A||m)&&!G&&(jr(D)||o&&Array.isArray(D))){const se=Es(A),de=Es(m),$=!Cn(se.value)&&D.length>+se.value,J=!Cn(de.value)&&D.length<+de.value;if(($||J)&&(Ae($,se.message,de.message),!r))return L(b[y].message),b}if(_&&!G&&jr(D)){const{value:se,message:de}=Es(_);if(V0(se)&&!D.match(se)&&(b[y]={type:Nu.pattern,message:de,ref:l,...K(Nu.pattern,de)},!r))return L(de),b}if(S){if(Ur(S)){const se=await S(D,n),de=p3(se,x);if(de&&(b[y]={...de,...K(Nu.validate,de.message)},!r))return L(de.message),b}else if(Ut(S)){let se={};for(const de in S){if(!Bn(se)&&!r)break;const $=p3(await S[de](D,n),x,de);$&&(se={...$,...K(de,$.message)},L($.message),r&&(b[y]=se))}if(!Bn(se)&&(b[y]={ref:x,...se},!r))return b}}return L(!0),b};function nH(e,t){const n=t.slice(0,-1).length;let r=0;for(;r<n;)e=Pt(e)?r++:e[t[r++]];return e}function rH(e){for(const t in e)if(e.hasOwnProperty(t)&&!Pt(e[t]))return!1;return!0}function Zt(e,t){const n=Array.isArray(t)?t:mg(t)?[t]:xR(t),r=n.length===1?e:nH(e,n),a=n.length-1,o=n[a];return r&&delete r[o],a!==0&&(Ut(r)&&Bn(r)||Array.isArray(r)&&rH(r))&&Zt(e,n.slice(0,-1)),e}var km=()=>{let e=[];return{get observers(){return e},next:a=>{for(const o of e)o.next&&o.next(a)},subscribe:a=>(e.push(a),{unsubscribe:()=>{e=e.filter(o=>o!==a)}}),unsubscribe:()=>{e=[]}}},Yp=e=>Cn(e)||!RR(e);function hi(e,t){if(Yp(e)||Yp(t))return e===t;if(Aa(e)&&Aa(t))return e.getTime()===t.getTime();const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(const a of n){const o=e[a];if(!r.includes(a))return!1;if(a!=="ref"){const l=t[a];if(Aa(o)&&Aa(l)||Ut(o)&&Ut(l)||Array.isArray(o)&&Array.isArray(l)?!hi(o,l):o!==l)return!1}}return!0}var PR=e=>e.type==="select-multiple",uH=e=>gg(e)||Rc(e),Gm=e=>j0(e)&&e.isConnected,UR=e=>{for(const t in e)if(Ur(e[t]))return!0;return!1};function z0(e,t={}){const n=Array.isArray(e);if(Ut(e)||n)for(const r in e)Array.isArray(e[r])||Ut(e[r])&&!UR(e[r])?(t[r]=Array.isArray(e[r])?[]:{},z0(e[r],t[r])):Cn(e[r])||(t[r]=!0);return t}function kR(e,t,n){const r=Array.isArray(e);if(Ut(e)||r)for(const a in e)Array.isArray(e[a])||Ut(e[a])&&!UR(e[a])?Pt(t)||Yp(n[a])?n[a]=Array.isArray(e[a])?z0(e[a],[]):{...z0(e[a])}:kR(e[a],Cn(t)?{}:t[a],n[a]):n[a]=!hi(e[a],t[a]);return n}var Al=(e,t)=>kR(e,t,z0(t)),GR=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>Pt(e)?e:t?e===""?NaN:e&&+e:n&&jr(e)?new Date(e):r?r(e):e;function jm(e){const t=e.ref;return Eg(t)?t.files:gg(t)?HR(e.refs).value:PR(t)?[...t.selectedOptions].map(({value:n})=>n):Rc(t)?MR(e.refs).value:GR(Pt(t.value)?e.ref.value:t.value,e)}var iH=(e,t,n,r)=>{const a={};for(const o of e){const l=Ie(t,o);l&&At(a,o,l._f)}return{criteriaMode:n,names:[...e],fields:a,shouldUseNativeValidation:r}},hl=e=>Pt(e)?e:V0(e)?e.source:Ut(e)?V0(e.value)?e.value.source:e.value:e;const g3="AsyncFunction";var aH=e=>!!e&&!!e.validate&&!!(Ur(e.validate)&&e.validate.constructor.name===g3||Ut(e.validate)&&Object.values(e.validate).find(t=>t.constructor.name===g3)),sH=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function _3(e,t,n){const r=Ie(e,n);if(r||mg(n))return{error:r,name:n};const a=n.split(".");for(;a.length;){const o=a.join("."),l=Ie(t,o),d=Ie(e,o);if(l&&!Array.isArray(l)&&n!==o)return{name:n};if(d&&d.type)return{name:o,error:d};a.pop()}return{name:n}}var oH=(e,t,n,r,a)=>a.isOnAll?!1:!n&&a.isOnTouch?!(t||e):(n?r.isOnBlur:a.isOnBlur)?!e:(n?r.isOnChange:a.isOnChange)?e:!0,lH=(e,t)=>!kf(Ie(e,t)).length&&Zt(e,t);const cH={mode:yr.onSubmit,reValidateMode:yr.onChange,shouldFocusError:!0};function dH(e={}){let t={...cH,...e},n={submitCount:0,isDirty:!1,isLoading:Ur(t.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:t.errors||{},disabled:t.disabled||!1},r={},a=Ut(t.defaultValues)||Ut(t.values)?bn(t.defaultValues||t.values)||{}:{},o=t.shouldUnregister?{}:bn(a),l={action:!1,mount:!1,watch:!1},d={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set},f,A=0;const m={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},E={values:km(),array:km(),state:km()},g=d3(t.mode),_=d3(t.reValidateMode),S=t.criteriaMode===yr.all,y=P=>Q=>{clearTimeout(A),A=setTimeout(P,Q)},v=async P=>{if(!t.disabled&&(m.isValid||P)){const Q=t.resolver?Bn((await j()).errors):await K(r,!0);Q!==n.isValid&&E.state.next({isValid:Q})}},R=(P,Q)=>{!t.disabled&&(m.isValidating||m.validatingFields)&&((P||Array.from(d.mount)).forEach(ue=>{ue&&(Q?At(n.validatingFields,ue,Q):Zt(n.validatingFields,ue))}),E.state.next({validatingFields:n.validatingFields,isValidating:!Bn(n.validatingFields)}))},D=(P,Q=[],ue,ye,Se=!0,Ne=!0)=>{if(ye&&ue&&!t.disabled){if(l.action=!0,Ne&&Array.isArray(Ie(r,P))){const Be=ue(Ie(r,P),ye.argA,ye.argB);Se&&At(r,P,Be)}if(Ne&&Array.isArray(Ie(n.errors,P))){const Be=ue(Ie(n.errors,P),ye.argA,ye.argB);Se&&At(n.errors,P,Be),lH(n.errors,P)}if(m.touchedFields&&Ne&&Array.isArray(Ie(n.touchedFields,P))){const Be=ue(Ie(n.touchedFields,P),ye.argA,ye.argB);Se&&At(n.touchedFields,P,Be)}m.dirtyFields&&(n.dirtyFields=Al(a,o)),E.state.next({name:P,isDirty:se(P,Q),dirtyFields:n.dirtyFields,errors:n.errors,isValid:n.isValid})}else At(o,P,Q)},x=(P,Q)=>{At(n.errors,P,Q),E.state.next({errors:n.errors})},L=P=>{n.errors=P,E.state.next({errors:n.errors,isValid:!1})},b=(P,Q,ue,ye)=>{const Se=Ie(r,P);if(Se){const Ne=Ie(o,P,Pt(ue)?Ie(a,P):ue);Pt(Ne)||ye&&ye.defaultChecked||Q?At(o,P,Q?Ne:jm(Se._f)):J(P,Ne),l.mount&&v()}},O=(P,Q,ue,ye,Se)=>{let Ne=!1,Be=!1;const Xe={name:P};if(!t.disabled){const Lt=!!(Ie(r,P)&&Ie(r,P)._f&&Ie(r,P)._f.disabled);if(!ue||ye){m.isDirty&&(Be=n.isDirty,n.isDirty=Xe.isDirty=se(),Ne=Be!==Xe.isDirty);const wt=Lt||hi(Ie(a,P),Q);Be=!!(!Lt&&Ie(n.dirtyFields,P)),wt||Lt?Zt(n.dirtyFields,P):At(n.dirtyFields,P,!0),Xe.dirtyFields=n.dirtyFields,Ne=Ne||m.dirtyFields&&Be!==!wt}if(ue){const wt=Ie(n.touchedFields,P);wt||(At(n.touchedFields,P,ue),Xe.touchedFields=n.touchedFields,Ne=Ne||m.touchedFields&&wt!==ue)}Ne&&Se&&E.state.next(Xe)}return Ne?Xe:{}},F=(P,Q,ue,ye)=>{const Se=Ie(n.errors,P),Ne=m.isValid&&fr(Q)&&n.isValid!==Q;if(t.delayError&&ue?(f=y(()=>x(P,ue)),f(t.delayError)):(clearTimeout(A),f=null,ue?At(n.errors,P,ue):Zt(n.errors,P)),(ue?!hi(Se,ue):Se)||!Bn(ye)||Ne){const Be={...ye,...Ne&&fr(Q)?{isValid:Q}:{},errors:n.errors,name:P};n={...n,...Be},E.state.next(Be)}},j=async P=>{R(P,!0);const Q=await t.resolver(o,t.context,iH(P||d.mount,r,t.criteriaMode,t.shouldUseNativeValidation));return R(P),Q},G=async P=>{const{errors:Q}=await j(P);if(P)for(const ue of P){const ye=Ie(Q,ue);ye?At(n.errors,ue,ye):Zt(n.errors,ue)}else n.errors=Q;return Q},K=async(P,Q,ue={valid:!0})=>{for(const ye in P){const Se=P[ye];if(Se){const{_f:Ne,...Be}=Se;if(Ne){const Xe=d.array.has(Ne.name),Lt=Se._f&&aH(Se._f);Lt&&m.validatingFields&&R([ye],!0);const wt=await E3(Se,d.disabled,o,S,t.shouldUseNativeValidation&&!Q,Xe);if(Lt&&m.validatingFields&&R([ye]),wt[Ne.name]&&(ue.valid=!1,Q))break;!Q&&(Ie(wt,Ne.name)?Xe?tH(n.errors,wt,Ne.name):At(n.errors,Ne.name,wt[Ne.name]):Zt(n.errors,Ne.name))}!Bn(Be)&&await K(Be,Q,ue)}}return ue.valid},Ae=()=>{for(const P of d.unMount){const Q=Ie(r,P);Q&&(Q._f.refs?Q._f.refs.every(ue=>!Gm(ue)):!Gm(Q._f.ref))&&Ee(P)}d.unMount=new Set},se=(P,Q)=>!t.disabled&&(P&&Q&&At(o,P,Q),!hi(W(),a)),de=(P,Q,ue)=>LR(P,d,{...l.mount?o:Pt(Q)?a:jr(P)?{[P]:Q}:Q},ue,Q),$=P=>kf(Ie(l.mount?o:a,P,t.shouldUnregister?Ie(a,P,[]):[])),J=(P,Q,ue={})=>{const ye=Ie(r,P);let Se=Q;if(ye){const Ne=ye._f;Ne&&(!Ne.disabled&&At(o,P,GR(Q,Ne)),Se=j0(Ne.ref)&&Cn(Q)?"":Q,PR(Ne.ref)?[...Ne.ref.options].forEach(Be=>Be.selected=Se.includes(Be.value)):Ne.refs?Rc(Ne.ref)?Ne.refs.length>1?Ne.refs.forEach(Be=>(!Be.defaultChecked||!Be.disabled)&&(Be.checked=Array.isArray(Se)?!!Se.find(Xe=>Xe===Be.value):Se===Be.value)):Ne.refs[0]&&(Ne.refs[0].checked=!!Se):Ne.refs.forEach(Be=>Be.checked=Be.value===Se):Eg(Ne.ref)?Ne.ref.value="":(Ne.ref.value=Se,Ne.ref.type||E.values.next({name:P,values:{...o}})))}(ue.shouldDirty||ue.shouldTouch)&&O(P,Se,ue.shouldTouch,ue.shouldDirty,!0),ue.shouldValidate&&H(P)},k=(P,Q,ue)=>{for(const ye in Q){const Se=Q[ye],Ne=`${P}.${ye}`,Be=Ie(r,Ne);(d.array.has(P)||Ut(Se)||Be&&!Be._f)&&!Aa(Se)?k(Ne,Se,ue):J(Ne,Se,ue)}},ne=(P,Q,ue={})=>{const ye=Ie(r,P),Se=d.array.has(P),Ne=bn(Q);At(o,P,Ne),Se?(E.array.next({name:P,values:{...o}}),(m.isDirty||m.dirtyFields)&&ue.shouldDirty&&E.state.next({name:P,dirtyFields:Al(a,o),isDirty:se(P,Ne)})):ye&&!ye._f&&!Cn(Ne)?k(P,Ne,ue):J(P,Ne,ue),f3(P,d)&&E.state.next({...n}),E.values.next({name:l.mount?P:void 0,values:{...o}})},ee=async P=>{l.mount=!0;const Q=P.target;let ue=Q.name,ye=!0;const Se=Ie(r,ue),Ne=()=>Q.type?jm(Se._f):DR(P),Be=Xe=>{ye=Number.isNaN(Xe)||Aa(Xe)&&isNaN(Xe.getTime())||hi(Xe,Ie(o,ue,Xe))};if(Se){let Xe,Lt;const wt=Ne(),wn=P.type===G0.BLUR||P.type===G0.FOCUS_OUT,dA=!sH(Se._f)&&!t.resolver&&!Ie(n.errors,ue)&&!Se._f.deps||oH(wn,Ie(n.touchedFields,ue),n.isSubmitted,_,g),Fa=f3(ue,d,wn);At(o,ue,wt),wn?(Se._f.onBlur&&Se._f.onBlur(P),f&&f(0)):Se._f.onChange&&Se._f.onChange(P);const fo=O(ue,wt,wn,!1),fA=!Bn(fo)||Fa;if(!wn&&E.values.next({name:ue,type:P.type,values:{...o}}),dA)return m.isValid&&(t.mode==="onBlur"&&wn?v():wn||v()),fA&&E.state.next({name:ue,...Fa?{}:fo});if(!wn&&Fa&&E.state.next({...n}),t.resolver){const{errors:Pu}=await j([ue]);if(Be(wt),ye){const Nn=_3(n.errors,r,ue),Gc=_3(Pu,r,Nn.name||ue);Xe=Gc.error,ue=Gc.name,Lt=Bn(Pu)}}else R([ue],!0),Xe=(await E3(Se,d.disabled,o,S,t.shouldUseNativeValidation))[ue],R([ue]),Be(wt),ye&&(Xe?Lt=!1:m.isValid&&(Lt=await K(r,!0)));ye&&(Se._f.deps&&H(Se._f.deps),F(ue,Lt,Xe,fo))}},pe=(P,Q)=>{if(Ie(n.errors,Q)&&P.focus)return P.focus(),1},H=async(P,Q={})=>{let ue,ye;const Se=Ol(P);if(t.resolver){const Ne=await G(Pt(P)?P:Se);ue=Bn(Ne),ye=P?!Se.some(Be=>Ie(Ne,Be)):ue}else P?(ye=(await Promise.all(Se.map(async Ne=>{const Be=Ie(r,Ne);return await K(Be&&Be._f?{[Ne]:Be}:Be)}))).every(Boolean),!(!ye&&!n.isValid)&&v()):ye=ue=await K(r);return E.state.next({...!jr(P)||m.isValid&&ue!==n.isValid?{}:{name:P},...t.resolver||!P?{isValid:ue}:{},errors:n.errors}),Q.shouldFocus&&!ye&&Fl(r,pe,P?Se:d.mount),ye},W=P=>{const Q={...l.mount?o:a};return Pt(P)?Q:jr(P)?Ie(Q,P):P.map(ue=>Ie(Q,ue))},V=(P,Q)=>({invalid:!!Ie((Q||n).errors,P),isDirty:!!Ie((Q||n).dirtyFields,P),error:Ie((Q||n).errors,P),isValidating:!!Ie(n.validatingFields,P),isTouched:!!Ie((Q||n).touchedFields,P)}),re=P=>{P&&Ol(P).forEach(Q=>Zt(n.errors,Q)),E.state.next({errors:P?n.errors:{}})},te=(P,Q,ue)=>{const ye=(Ie(r,P,{_f:{}})._f||{}).ref,Se=Ie(n.errors,P)||{},{ref:Ne,message:Be,type:Xe,...Lt}=Se;At(n.errors,P,{...Lt,...Q,ref:ye}),E.state.next({name:P,errors:n.errors,isValid:!1}),ue&&ue.shouldFocus&&ye&&ye.focus&&ye.focus()},ce=(P,Q)=>Ur(P)?E.values.subscribe({next:ue=>P(de(void 0,Q),ue)}):de(P,Q,!0),Ee=(P,Q={})=>{for(const ue of P?Ol(P):d.mount)d.mount.delete(ue),d.array.delete(ue),Q.keepValue||(Zt(r,ue),Zt(o,ue)),!Q.keepError&&Zt(n.errors,ue),!Q.keepDirty&&Zt(n.dirtyFields,ue),!Q.keepTouched&&Zt(n.touchedFields,ue),!Q.keepIsValidating&&Zt(n.validatingFields,ue),!t.shouldUnregister&&!Q.keepDefaultValue&&Zt(a,ue);E.values.next({values:{...o}}),E.state.next({...n,...Q.keepDirty?{isDirty:se()}:{}}),!Q.keepIsValid&&v()},me=({disabled:P,name:Q,field:ue,fields:ye})=>{(fr(P)&&l.mount||P||d.disabled.has(Q))&&(P?d.disabled.add(Q):d.disabled.delete(Q),O(Q,jm(ue?ue._f:Ie(ye,Q)._f),!1,!1,!0))},ve=(P,Q={})=>{let ue=Ie(r,P);const ye=fr(Q.disabled)||fr(t.disabled);return At(r,P,{...ue||{},_f:{...ue&&ue._f?ue._f:{ref:{name:P}},name:P,mount:!0,...Q}}),d.mount.add(P),ue?me({field:ue,disabled:fr(Q.disabled)?Q.disabled:t.disabled,name:P}):b(P,!0,Q.value),{...ye?{disabled:Q.disabled||t.disabled}:{},...t.progressive?{required:!!Q.required,min:hl(Q.min),max:hl(Q.max),minLength:hl(Q.minLength),maxLength:hl(Q.maxLength),pattern:hl(Q.pattern)}:{},name:P,onChange:ee,onBlur:ee,ref:Se=>{if(Se){ve(P,Q),ue=Ie(r,P);const Ne=Pt(Se.value)&&Se.querySelectorAll&&Se.querySelectorAll("input,select,textarea")[0]||Se,Be=uH(Ne),Xe=ue._f.refs||[];if(Be?Xe.find(Lt=>Lt===Ne):Ne===ue._f.ref)return;At(r,P,{_f:{...ue._f,...Be?{refs:[...Xe.filter(Gm),Ne,...Array.isArray(Ie(a,P))?[{}]:[]],ref:{type:Ne.type,name:P}}:{ref:Ne}}}),b(P,!1,void 0,Ne)}else ue=Ie(r,P,{}),ue._f&&(ue._f.mount=!1),(t.shouldUnregister||Q.shouldUnregister)&&!(TR(d.array,P)&&l.action)&&d.unMount.add(P)}}},je=()=>t.shouldFocusError&&Fl(r,pe,d.mount),we=P=>{fr(P)&&(E.state.next({disabled:P}),Fl(r,(Q,ue)=>{const ye=Ie(r,ue);ye&&(Q.disabled=ye._f.disabled||P,Array.isArray(ye._f.refs)&&ye._f.refs.forEach(Se=>{Se.disabled=ye._f.disabled||P}))},0,!1))},Ze=(P,Q)=>async ue=>{let ye;ue&&(ue.preventDefault&&ue.preventDefault(),ue.persist&&ue.persist());let Se=bn(o);if(d.disabled.size)for(const Ne of d.disabled)At(Se,Ne,void 0);if(E.state.next({isSubmitting:!0}),t.resolver){const{errors:Ne,values:Be}=await j();n.errors=Ne,Se=Be}else await K(r);if(Zt(n.errors,"root"),Bn(n.errors)){E.state.next({errors:{}});try{await P(Se,ue)}catch(Ne){ye=Ne}}else Q&&await Q({...n.errors},ue),je(),setTimeout(je);if(E.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:Bn(n.errors)&&!ye,submitCount:n.submitCount+1,errors:n.errors}),ye)throw ye},it=(P,Q={})=>{Ie(r,P)&&(Pt(Q.defaultValue)?ne(P,bn(Ie(a,P))):(ne(P,Q.defaultValue),At(a,P,bn(Q.defaultValue))),Q.keepTouched||Zt(n.touchedFields,P),Q.keepDirty||(Zt(n.dirtyFields,P),n.isDirty=Q.defaultValue?se(P,bn(Ie(a,P))):se()),Q.keepError||(Zt(n.errors,P),m.isValid&&v()),E.state.next({...n}))},It=(P,Q={})=>{const ue=P?bn(P):a,ye=bn(ue),Se=Bn(P),Ne=Se?a:ye;if(Q.keepDefaultValues||(a=ue),!Q.keepValues){if(Q.keepDirtyValues){const Be=new Set([...d.mount,...Object.keys(Al(a,o))]);for(const Xe of Array.from(Be))Ie(n.dirtyFields,Xe)?At(Ne,Xe,Ie(o,Xe)):ne(Xe,Ie(Ne,Xe))}else{if(hg&&Pt(P))for(const Be of d.mount){const Xe=Ie(r,Be);if(Xe&&Xe._f){const Lt=Array.isArray(Xe._f.refs)?Xe._f.refs[0]:Xe._f.ref;if(j0(Lt)){const wt=Lt.closest("form");if(wt){wt.reset();break}}}}r={}}o=t.shouldUnregister?Q.keepDefaultValues?bn(a):{}:bn(Ne),E.array.next({values:{...Ne}}),E.values.next({values:{...Ne}})}d={mount:Q.keepDirtyValues?d.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:Se?!1:Q.keepDirty?n.isDirty:!!(Q.keepDefaultValues&&!hi(P,a)),isSubmitted:Q.keepIsSubmitted?n.isSubmitted:!1,dirtyFields:Se?{}:Q.keepDirtyValues?Q.keepDefaultValues&&o?Al(a,o):n.dirtyFields:Q.keepDefaultValues&&P?Al(a,P):Q.keepDirty?n.dirtyFields:{},touchedFields:Q.keepTouched?n.touchedFields:{},errors:Q.keepErrors?n.errors:{},isSubmitSuccessful:Q.keepIsSubmitSuccessful?n.isSubmitSuccessful:!1,isSubmitting:!1})},qt=(P,Q)=>It(Ur(P)?P(o):P,Q);return{control:{register:ve,unregister:Ee,getFieldState:V,handleSubmit:Ze,setError:te,_executeSchema:j,_getWatch:de,_getDirty:se,_updateValid:v,_removeUnmounted:Ae,_updateFieldArray:D,_updateDisabledField:me,_getFieldArray:$,_reset:It,_resetDefaultValues:()=>Ur(t.defaultValues)&&t.defaultValues().then(P=>{qt(P,t.resetOptions),E.state.next({isLoading:!1})}),_updateFormState:P=>{n={...n,...P}},_disableForm:we,_subjects:E,_proxyFormState:m,_setErrors:L,get _fields(){return r},get _formValues(){return o},get _state(){return l},set _state(P){l=P},get _defaultValues(){return a},get _names(){return d},set _names(P){d=P},get _formState(){return n},set _formState(P){n=P},get _options(){return t},set _options(P){t={...t,...P}}},trigger:H,register:ve,handleSubmit:Ze,watch:ce,setValue:ne,getValues:W,reset:qt,resetField:it,clearErrors:re,unregister:Ee,setError:te,setFocus:(P,Q={})=>{const ue=Ie(r,P),ye=ue&&ue._f;if(ye){const Se=ye.refs?ye.refs[0]:ye.ref;Se.focus&&(Se.focus(),Q.shouldSelect&&Ur(Se.select)&&Se.select())}},getFieldState:V}}function fH(e={}){const t=Ke.useRef(void 0),n=Ke.useRef(void 0),[r,a]=Ke.useState({isDirty:!1,isValidating:!1,isLoading:Ur(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,defaultValues:Ur(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...dH(e),formState:r});const o=t.current.control;return o._options=e,pg({subject:o._subjects.state,next:l=>{OR(l,o._proxyFormState,o._updateFormState,!0)&&a({...o._formState})}}),Ke.useEffect(()=>o._disableForm(e.disabled),[o,e.disabled]),Ke.useEffect(()=>{if(o._proxyFormState.isDirty){const l=o._getDirty();l!==r.isDirty&&o._subjects.state.next({isDirty:l})}},[o,r.isDirty]),Ke.useEffect(()=>{e.values&&!hi(e.values,n.current)?(o._reset(e.values,o._options.resetOptions),n.current=e.values,a(l=>({...l}))):o._resetDefaultValues()},[e.values,o]),Ke.useEffect(()=>{e.errors&&o._setErrors(e.errors)},[e.errors,o]),Ke.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()}),Ke.useEffect(()=>{e.shouldUnregister&&o._subjects.values.next({values:o._getWatch()})},[e.shouldUnregister,o]),t.current.formState=BR(r,o),t.current}const N3=(e,t,n)=>{if(e&&"reportValidity"in e){const r=Ie(n,t);e.setCustomValidity(r&&r.message||""),e.reportValidity()}},jR=(e,t)=>{for(const n in t.fields){const r=t.fields[n];r&&r.ref&&"reportValidity"in r.ref?N3(r.ref,n,e):r.refs&&r.refs.forEach(a=>N3(a,n,e))}},AH=(e,t)=>{t.shouldUseNativeValidation&&jR(e,t);const n={};for(const r in e){const a=Ie(t.fields,r),o=Object.assign(e[r]||{},{ref:a&&a.ref});if(hH(t.names||Object.keys(e),r)){const l=Object.assign({},Ie(n,r));At(l,"root",o),At(n,r,l)}else At(n,r,o)}return n},hH=(e,t)=>e.some(n=>n.startsWith(t+".")),mH=e=>{const t=C.useId(),n=C.useMemo(()=>({id:t}),[t]);return N.jsx(VR,{value:n,children:N.jsx("div",{className:"flex flex-col gap-2 p-2",...e})})},VR=C.createContext({}),zR=C.createContext({}),pH=({...e})=>{const t=C.useMemo(()=>({name:e.name}),[e.name]);return N.jsx(zR,{value:t,children:N.jsx(eH,{...e})})},xi=()=>{const e=C.useContext(zR),t=C.useContext(VR),{getFieldState:n,formState:r}=Ti(),a=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`,...a}},KR=pr("",{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"}}),to=({validationStyleEnabled:e=!1,variant:t,size:n,className:r,...a})=>N.jsx("input",{className:KR({variant:t,size:n,validationStyleEnabled:e?"enabled":"disabled",className:r}),...a}),EH=pr("",{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"}}),gH=({validationStyleEnabled:e=!1,label:t,size:n,color:r,variant:a,className:o,...l})=>{const d=C.useId();return N.jsxs(N.Fragment,{children:[N.jsx("input",{type:"checkbox",className:EH({variant:a,size:n,color:r,validationStyleEnabled:e?"enabled":"disabled",className:o}),id:d,...l}),N.jsx("label",{htmlFor:d,children:t})]})},_H=e=>{const[t,n]=C.useState(!1),r=o=>{o.preventDefault(),o.stopPropagation(),n(l=>!l)},a=t?L2:O2;return N.jsxs("div",{className:"relative",children:[N.jsx(to,{...e,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(a,{className:"text-neutral mr-2 inline-block",size:20})})]})},YR=({className:e,variant:t,validationStyleEnabled:n=!1,...r})=>N.jsx("textarea",{className:Re("resize-none",KR({variant:t,validationStyleEnabled:n?"enabled":"disabled",className:e})),...r}),ZR=({value:e="",onCancel:t,onSave:n,onClick:r,children:a,isDisabled:o,...l})=>{const[d,f]=C.useState(!1),A=C.useRef(null),m=S=>{S.stopPropagation(),f(!1),n()},E=S=>{S.stopPropagation(),f(!1),t()},g=!e||e===""?"-":e,_=C.useCallback(S=>{const y=window.getSelection();y&&y.toString().trim()!==""||A.current&&!A.current.contains(S.target)&&(f(!1),n())},[n]);return C.useEffect(()=>(d?document.addEventListener("click",_):document.removeEventListener("click",_),()=>document.removeEventListener("click",_)),[_,d]),N.jsxs("span",{className:"group/editable-field flex gap-2",role:"button",tabIndex:0,onClick:S=>{f(!0),r==null||r(S)},ref:A,...l,children:[N.jsxs("div",{className:Re("flex flex-1 gap-2",d?"display":"hidden"),children:[a,N.jsx(ht,{label:"Save",variant:"hoverable",size:"icon-sm",color:"text",Icon:eo,onClick:m,disabled:o,className:"!text-current"}),N.jsx(ht,{label:"Cancel",color:"text",variant:"hoverable",className:"!text-current",size:"icon-sm",Icon:ba,onClick:E,disabled:o})]},String(d)),N.jsxs("div",{className:Re("flex flex-1 gap-2",d?"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(ht,{label:"Edit",Icon:qv,color:"text",variant:"hoverable",size:"icon-sm",className:"invisible !text-current group-hover/editable-field:visible",disabled:o,onClick:S=>{S.stopPropagation(),f(!0)}})]})]})},WR=({onSave:e,onCancel:t,ref:n,...r})=>{var f;const a=C.useRef(null),o=()=>{var A;e==null||e(((A=a.current)==null?void 0:A.value)??"")},l=()=>{a.current&&(a.current.value=a.current.defaultValue??""),t==null||t()};C.useImperativeHandle(n,()=>a.current);const d=C.useMemo(()=>{var A;return r.value??((A=a.current)==null?void 0:A.value)??r.defaultValue},[r.value,r.defaultValue,(f=a.current)==null?void 0:f.value]);return N.jsx(ZR,{value:d,onCancel:l,onSave:o,children:N.jsx(to,{ref:a,...r})})},I3=24,S3=12,_g=({className:e,autoSize:t=!0,onChange:n,maxRows:r=999,ref:a,...o})=>{const l=C.useRef(null);C.useImperativeHandle(a,()=>l.current);const d=C.useCallback(()=>{const m=l.current;if(!m||!t)return;const E=m.style;E.height="auto";const g=m.scrollHeight,_=I3*r+S3,S=I3+S3;E.height=Math.max(Math.min(g,_),S)+"px"},[t,r]);C.useEffect(()=>{d()},[o.value,o.defaultValue,d]);const f=m=>{n==null||n(m),d()},A=C.useCallback(m=>{l.current=m,m&&d()},[d]);return N.jsx(YR,{ref:A,onChange:f,className:Re("overflow-y-scroll",t?"resize-none":"",e),...o})},$R=({onSave:e,onCancel:t,ref:n,...r})=>{var f;const a=C.useRef(null);C.useImperativeHandle(n,()=>a.current);const o=()=>{var A;e==null||e(((A=a.current)==null?void 0:A.value)??"")},l=()=>{a.current&&(a.current.value=a.current.defaultValue??""),t==null||t()},d=r.value??((f=a.current)==null?void 0:f.value)??r.defaultValue??"";return N.jsx(ZR,{value:d,onCancel:l,onSave:o,onClick:A=>{A.preventDefault(),A.stopPropagation()},children:N.jsx(_g,{className:"leading-6",ref:a,onClick:A=>{A.preventDefault(),A.stopPropagation()},...r})})},NH=pr("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"}}),IH=({className:e,variant:t,color:n,...r})=>N.jsx("div",{className:Re(NH({variant:t,color:n}),e),...r});var SH=gO.useId||(()=>{}),CH=0;function mr(e){const[t,n]=C.useState(SH());return gn(()=>{n(r=>r??String(CH++))},[e]),t?`radix-${t}`:""}var Vm="focusScope.autoFocusOnMount",zm="focusScope.autoFocusOnUnmount",C3={bubbles:!1,cancelable:!0},yH="FocusScope",Ng=C.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:a,onUnmountAutoFocus:o,...l}=e,[d,f]=C.useState(null),A=$n(a),m=$n(o),E=C.useRef(null),g=xt(t,y=>f(y)),_=C.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;C.useEffect(()=>{if(r){let y=function(x){if(_.paused||!d)return;const L=x.target;d.contains(L)?E.current=L:fi(E.current,{select:!0})},v=function(x){if(_.paused||!d)return;const L=x.relatedTarget;L!==null&&(d.contains(L)||fi(E.current,{select:!0}))},R=function(x){if(document.activeElement===document.body)for(const b of x)b.removedNodes.length>0&&fi(d)};document.addEventListener("focusin",y),document.addEventListener("focusout",v);const D=new MutationObserver(R);return d&&D.observe(d,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",y),document.removeEventListener("focusout",v),D.disconnect()}}},[r,d,_.paused]),C.useEffect(()=>{if(d){v3.add(_);const y=document.activeElement;if(!d.contains(y)){const R=new CustomEvent(Vm,C3);d.addEventListener(Vm,A),d.dispatchEvent(R),R.defaultPrevented||(vH(bH(qR(d)),{select:!0}),document.activeElement===y&&fi(d))}return()=>{d.removeEventListener(Vm,A),setTimeout(()=>{const R=new CustomEvent(zm,C3);d.addEventListener(zm,m),d.dispatchEvent(R),R.defaultPrevented||fi(y??document.body,{select:!0}),d.removeEventListener(zm,m),v3.remove(_)},0)}}},[d,A,m,_]);const S=C.useCallback(y=>{if(!n&&!r||_.paused)return;const v=y.key==="Tab"&&!y.altKey&&!y.ctrlKey&&!y.metaKey,R=document.activeElement;if(v&&R){const D=y.currentTarget,[x,L]=RH(D);x&&L?!y.shiftKey&&R===L?(y.preventDefault(),n&&fi(x,{select:!0})):y.shiftKey&&R===x&&(y.preventDefault(),n&&fi(L,{select:!0})):R===D&&y.preventDefault()}},[n,r,_.paused]);return N.jsx(tt.div,{tabIndex:-1,...l,ref:g,onKeyDown:S})});Ng.displayName=yH;function vH(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(fi(r,{select:t}),document.activeElement!==n)return}function RH(e){const t=qR(e),n=y3(t,e),r=y3(t.reverse(),e);return[n,r]}function qR(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const a=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||a?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function y3(e,t){for(const n of e)if(!DH(n,{upTo:t}))return n}function DH(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 TH(e){return e instanceof HTMLInputElement&&"select"in e}function fi(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&TH(e)&&t&&e.select()}}var v3=xH();function xH(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=R3(e,t),e.unshift(t)},remove(t){var n;e=R3(e,t),(n=e[0])==null||n.resume()}}}function R3(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function bH(e){return e.filter(t=>t.tagName!=="A")}var Km=0;function QR(){C.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??D3()),document.body.insertAdjacentElement("beforeend",e[1]??D3()),Km++,()=>{Km===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Km--}},[])}function D3(){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 kr=function(){return kr=Object.assign||function(t){for(var n,r=1,a=arguments.length;r<a;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},kr.apply(this,arguments)};function XR(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 a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n}function BH(e,t,n){if(n||arguments.length===2)for(var r=0,a=t.length,o;r<a;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 T0="right-scroll-bar-position",x0="width-before-scroll-bar",OH="with-scroll-bars-hidden",FH="--removed-body-scroll-bar-size";function Ym(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function LH(e,t){var n=C.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var a=n.value;a!==r&&(n.value=r,n.callback(r,a))}}}})[0];return n.callback=t,n.facade}var wH=typeof window<"u"?C.useLayoutEffect:C.useEffect,T3=new WeakMap;function MH(e,t){var n=LH(null,function(r){return e.forEach(function(a){return Ym(a,r)})});return wH(function(){var r=T3.get(n);if(r){var a=new Set(r),o=new Set(e),l=n.current;a.forEach(function(d){o.has(d)||Ym(d,null)}),o.forEach(function(d){a.has(d)||Ym(d,l)})}T3.set(n,e)},[e]),n}function HH(e){return e}function PH(e,t){t===void 0&&(t=HH);var n=[],r=!1,a={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(d){return d!==l})}},assignSyncMedium:function(o){for(r=!0;n.length;){var l=n;n=[],l.forEach(o)}n={push:function(d){return o(d)},filter:function(){return n}}},assignMedium:function(o){r=!0;var l=[];if(n.length){var d=n;n=[],d.forEach(o),l=n}var f=function(){var m=l;l=[],m.forEach(o)},A=function(){return Promise.resolve().then(f)};A(),n={push:function(m){l.push(m),A()},filter:function(m){return l=l.filter(m),n}}}};return a}function UH(e){e===void 0&&(e={});var t=PH(null);return t.options=kr({async:!0,ssr:!1},e),t}var JR=function(e){var t=e.sideCar,n=XR(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 C.createElement(r,kr({},n))};JR.isSideCarExport=!0;function kH(e,t){return e.useMedium(t),JR}var e9=UH(),Zm=function(){},Gf=C.forwardRef(function(e,t){var n=C.useRef(null),r=C.useState({onScrollCapture:Zm,onWheelCapture:Zm,onTouchMoveCapture:Zm}),a=r[0],o=r[1],l=e.forwardProps,d=e.children,f=e.className,A=e.removeScrollBar,m=e.enabled,E=e.shards,g=e.sideCar,_=e.noIsolation,S=e.inert,y=e.allowPinchZoom,v=e.as,R=v===void 0?"div":v,D=e.gapMode,x=XR(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),L=g,b=MH([n,t]),O=kr(kr({},x),a);return C.createElement(C.Fragment,null,m&&C.createElement(L,{sideCar:e9,removeScrollBar:A,shards:E,noIsolation:_,inert:S,setCallbacks:o,allowPinchZoom:!!y,lockRef:n,gapMode:D}),l?C.cloneElement(C.Children.only(d),kr(kr({},O),{ref:b})):C.createElement(R,kr({},O,{className:f,ref:b}),d))});Gf.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Gf.classNames={fullWidth:x0,zeroRight:T0};var GH=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function jH(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=GH();return t&&e.setAttribute("nonce",t),e}function VH(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function zH(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var KH=function(){var e=0,t=null;return{add:function(n){e==0&&(t=jH())&&(VH(t,n),zH(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},YH=function(){var e=KH();return function(t,n){C.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},t9=function(){var e=YH(),t=function(n){var r=n.styles,a=n.dynamic;return e(r,a),null};return t},ZH={left:0,top:0,right:0,gap:0},Wm=function(e){return parseInt(e||"",10)||0},WH=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],a=t[e==="padding"?"paddingRight":"marginRight"];return[Wm(n),Wm(r),Wm(a)]},$H=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return ZH;var t=WH(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])}},qH=t9(),Fs="data-scroll-locked",QH=function(e,t,n,r){var a=e.left,o=e.top,l=e.right,d=e.gap;return n===void 0&&(n="margin"),`
|
|
218
|
+
.`.concat(OH,` {
|
|
219
|
+
overflow: hidden `).concat(r,`;
|
|
220
|
+
padding-right: `).concat(d,"px ").concat(r,`;
|
|
221
|
+
}
|
|
222
|
+
body[`).concat(Fs,`] {
|
|
223
|
+
overflow: hidden `).concat(r,`;
|
|
224
|
+
overscroll-behavior: contain;
|
|
225
|
+
`).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
|
|
226
|
+
padding-left: `.concat(a,`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(d,"px ").concat(r,`;
|
|
232
|
+
`),n==="padding"&&"padding-right: ".concat(d,"px ").concat(r,";")].filter(Boolean).join(""),`
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
.`).concat(T0,` {
|
|
236
|
+
right: `).concat(d,"px ").concat(r,`;
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
.`).concat(x0,` {
|
|
240
|
+
margin-right: `).concat(d,"px ").concat(r,`;
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
.`).concat(T0," .").concat(T0,` {
|
|
244
|
+
right: 0 `).concat(r,`;
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
.`).concat(x0," .").concat(x0,` {
|
|
248
|
+
margin-right: 0 `).concat(r,`;
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
body[`).concat(Fs,`] {
|
|
252
|
+
`).concat(FH,": ").concat(d,`px;
|
|
253
|
+
}
|
|
254
|
+
`)},x3=function(){var e=parseInt(document.body.getAttribute(Fs)||"0",10);return isFinite(e)?e:0},XH=function(){C.useEffect(function(){return document.body.setAttribute(Fs,(x3()+1).toString()),function(){var e=x3()-1;e<=0?document.body.removeAttribute(Fs):document.body.setAttribute(Fs,e.toString())}},[])},JH=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,a=r===void 0?"margin":r;XH();var o=C.useMemo(function(){return $H(a)},[a]);return C.createElement(qH,{styles:QH(o,!t,a,n?"":"!important")})},Zp=!1;if(typeof window<"u")try{var i0=Object.defineProperty({},"passive",{get:function(){return Zp=!0,!0}});window.addEventListener("test",i0,i0),window.removeEventListener("test",i0,i0)}catch{Zp=!1}var gs=Zp?{passive:!1}:!1,eP=function(e){return e.tagName==="TEXTAREA"},n9=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!eP(e)&&n[t]==="visible")},tP=function(e){return n9(e,"overflowY")},nP=function(e){return n9(e,"overflowX")},b3=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var a=r9(e,r);if(a){var o=u9(e,r),l=o[1],d=o[2];if(l>d)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},rP=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},uP=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},r9=function(e,t){return e==="v"?tP(t):nP(t)},u9=function(e,t){return e==="v"?rP(t):uP(t)},iP=function(e,t){return e==="h"&&t==="rtl"?-1:1},aP=function(e,t,n,r,a){var o=iP(e,window.getComputedStyle(t).direction),l=o*r,d=n.target,f=t.contains(d),A=!1,m=l>0,E=0,g=0;do{var _=u9(e,d),S=_[0],y=_[1],v=_[2],R=y-v-o*S;(S||R)&&r9(e,d)&&(E+=R,g+=S),d instanceof ShadowRoot?d=d.host:d=d.parentNode}while(!f&&d!==document.body||f&&(t.contains(d)||t===d));return(m&&Math.abs(E)<1||!m&&Math.abs(g)<1)&&(A=!0),A},a0=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},B3=function(e){return[e.deltaX,e.deltaY]},O3=function(e){return e&&"current"in e?e.current:e},sP=function(e,t){return e[0]===t[0]&&e[1]===t[1]},oP=function(e){return`
|
|
255
|
+
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
|
256
|
+
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
|
257
|
+
`)},lP=0,_s=[];function cP(e){var t=C.useRef([]),n=C.useRef([0,0]),r=C.useRef(),a=C.useState(lP++)[0],o=C.useState(t9)[0],l=C.useRef(e);C.useEffect(function(){l.current=e},[e]),C.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(a));var y=BH([e.lockRef.current],(e.shards||[]).map(O3),!0).filter(Boolean);return y.forEach(function(v){return v.classList.add("allow-interactivity-".concat(a))}),function(){document.body.classList.remove("block-interactivity-".concat(a)),y.forEach(function(v){return v.classList.remove("allow-interactivity-".concat(a))})}}},[e.inert,e.lockRef.current,e.shards]);var d=C.useCallback(function(y,v){if("touches"in y&&y.touches.length===2||y.type==="wheel"&&y.ctrlKey)return!l.current.allowPinchZoom;var R=a0(y),D=n.current,x="deltaX"in y?y.deltaX:D[0]-R[0],L="deltaY"in y?y.deltaY:D[1]-R[1],b,O=y.target,F=Math.abs(x)>Math.abs(L)?"h":"v";if("touches"in y&&F==="h"&&O.type==="range")return!1;var j=b3(F,O);if(!j)return!0;if(j?b=F:(b=F==="v"?"h":"v",j=b3(F,O)),!j)return!1;if(!r.current&&"changedTouches"in y&&(x||L)&&(r.current=b),!b)return!0;var G=r.current||b;return aP(G,v,y,G==="h"?x:L)},[]),f=C.useCallback(function(y){var v=y;if(!(!_s.length||_s[_s.length-1]!==o)){var R="deltaY"in v?B3(v):a0(v),D=t.current.filter(function(b){return b.name===v.type&&(b.target===v.target||v.target===b.shadowParent)&&sP(b.delta,R)})[0];if(D&&D.should){v.cancelable&&v.preventDefault();return}if(!D){var x=(l.current.shards||[]).map(O3).filter(Boolean).filter(function(b){return b.contains(v.target)}),L=x.length>0?d(v,x[0]):!l.current.noIsolation;L&&v.cancelable&&v.preventDefault()}}},[]),A=C.useCallback(function(y,v,R,D){var x={name:y,delta:v,target:R,should:D,shadowParent:dP(R)};t.current.push(x),setTimeout(function(){t.current=t.current.filter(function(L){return L!==x})},1)},[]),m=C.useCallback(function(y){n.current=a0(y),r.current=void 0},[]),E=C.useCallback(function(y){A(y.type,B3(y),y.target,d(y,e.lockRef.current))},[]),g=C.useCallback(function(y){A(y.type,a0(y),y.target,d(y,e.lockRef.current))},[]);C.useEffect(function(){return _s.push(o),e.setCallbacks({onScrollCapture:E,onWheelCapture:E,onTouchMoveCapture:g}),document.addEventListener("wheel",f,gs),document.addEventListener("touchmove",f,gs),document.addEventListener("touchstart",m,gs),function(){_s=_s.filter(function(y){return y!==o}),document.removeEventListener("wheel",f,gs),document.removeEventListener("touchmove",f,gs),document.removeEventListener("touchstart",m,gs)}},[]);var _=e.removeScrollBar,S=e.inert;return C.createElement(C.Fragment,null,S?C.createElement(o,{styles:oP(a)}):null,_?C.createElement(JH,{gapMode:e.gapMode}):null)}function dP(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const fP=kH(e9,cP);var Ig=C.forwardRef(function(e,t){return C.createElement(Gf,kr({},e,{ref:t,sideCar:fP}))});Ig.classNames=Gf.classNames;var AP=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Ns=new WeakMap,s0=new WeakMap,o0={},$m=0,i9=function(e){return e&&(e.host||i9(e.parentNode))},hP=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=i9(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})},mP=function(e,t,n,r){var a=hP(t,Array.isArray(e)?e:[e]);o0[n]||(o0[n]=new WeakMap);var o=o0[n],l=[],d=new Set,f=new Set(a),A=function(E){!E||d.has(E)||(d.add(E),A(E.parentNode))};a.forEach(A);var m=function(E){!E||f.has(E)||Array.prototype.forEach.call(E.children,function(g){if(d.has(g))m(g);else try{var _=g.getAttribute(r),S=_!==null&&_!=="false",y=(Ns.get(g)||0)+1,v=(o.get(g)||0)+1;Ns.set(g,y),o.set(g,v),l.push(g),y===1&&S&&s0.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),d.clear(),$m++,function(){l.forEach(function(E){var g=Ns.get(E)-1,_=o.get(E)-1;Ns.set(E,g),o.set(E,_),g||(s0.has(E)||E.removeAttribute(r),s0.delete(E)),_||E.removeAttribute(n)}),$m--,$m||(Ns=new WeakMap,Ns=new WeakMap,s0=new WeakMap,o0={})}},a9=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),a=AP(e);return a?(r.push.apply(r,Array.from(a.querySelectorAll("[aria-live]"))),mP(r,a,n,"aria-hidden")):function(){return null}},Sg="Dialog",[s9,BX]=yc(Sg),[pP,br]=s9(Sg),o9=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:a,onOpenChange:o,modal:l=!0}=e,d=C.useRef(null),f=C.useRef(null),[A=!1,m]=k0({prop:r,defaultProp:a,onChange:o});return N.jsx(pP,{scope:t,triggerRef:d,contentRef:f,contentId:mr(),titleId:mr(),descriptionId:mr(),open:A,onOpenChange:m,onOpenToggle:C.useCallback(()=>m(E=>!E),[m]),modal:l,children:n})};o9.displayName=Sg;var l9="DialogTrigger",EP=C.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,a=br(l9,n),o=xt(t,a.triggerRef);return N.jsx(tt.button,{type:"button","aria-haspopup":"dialog","aria-expanded":a.open,"aria-controls":a.contentId,"data-state":vg(a.open),...r,ref:o,onClick:ot(e.onClick,a.onOpenToggle)})});EP.displayName=l9;var Cg="DialogPortal",[gP,c9]=s9(Cg,{forceMount:void 0}),d9=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:a}=e,o=br(Cg,t);return N.jsx(gP,{scope:t,forceMount:n,children:C.Children.map(r,l=>N.jsx(vc,{present:n||o.open,children:N.jsx(wf,{asChild:!0,container:a,children:l})}))})};d9.displayName=Cg;var K0="DialogOverlay",f9=C.forwardRef((e,t)=>{const n=c9(K0,e.__scopeDialog),{forceMount:r=n.forceMount,...a}=e,o=br(K0,e.__scopeDialog);return o.modal?N.jsx(vc,{present:r||o.open,children:N.jsx(_P,{...a,ref:t})}):null});f9.displayName=K0;var _P=C.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,a=br(K0,n);return N.jsx(Ig,{as:_a,allowPinchZoom:!0,shards:[a.contentRef],children:N.jsx(tt.div,{"data-state":vg(a.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),Na="DialogContent",A9=C.forwardRef((e,t)=>{const n=c9(Na,e.__scopeDialog),{forceMount:r=n.forceMount,...a}=e,o=br(Na,e.__scopeDialog);return N.jsx(vc,{present:r||o.open,children:o.modal?N.jsx(NP,{...a,ref:t}):N.jsx(IP,{...a,ref:t})})});A9.displayName=Na;var NP=C.forwardRef((e,t)=>{const n=br(Na,e.__scopeDialog),r=C.useRef(null),a=xt(t,n.contentRef,r);return C.useEffect(()=>{const o=r.current;if(o)return a9(o)},[]),N.jsx(h9,{...e,ref:a,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:ot(e.onCloseAutoFocus,o=>{var l;o.preventDefault(),(l=n.triggerRef.current)==null||l.focus()}),onPointerDownOutside:ot(e.onPointerDownOutside,o=>{const l=o.detail.originalEvent,d=l.button===0&&l.ctrlKey===!0;(l.button===2||d)&&o.preventDefault()}),onFocusOutside:ot(e.onFocusOutside,o=>o.preventDefault())})}),IP=C.forwardRef((e,t)=>{const n=br(Na,e.__scopeDialog),r=C.useRef(!1),a=C.useRef(!1);return N.jsx(h9,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:o=>{var l,d;(l=e.onCloseAutoFocus)==null||l.call(e,o),o.defaultPrevented||(r.current||(d=n.triggerRef.current)==null||d.focus(),o.preventDefault()),r.current=!1,a.current=!1},onInteractOutside:o=>{var f,A;(f=e.onInteractOutside)==null||f.call(e,o),o.defaultPrevented||(r.current=!0,o.detail.originalEvent.type==="pointerdown"&&(a.current=!0));const l=o.target;((A=n.triggerRef.current)==null?void 0:A.contains(l))&&o.preventDefault(),o.detail.originalEvent.type==="focusin"&&a.current&&o.preventDefault()}})}),h9=C.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:a,onCloseAutoFocus:o,...l}=e,d=br(Na,n),f=C.useRef(null),A=xt(t,f);return QR(),N.jsxs(N.Fragment,{children:[N.jsx(Ng,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:a,onUnmountAutoFocus:o,children:N.jsx(Lf,{role:"dialog",id:d.contentId,"aria-describedby":d.descriptionId,"aria-labelledby":d.titleId,"data-state":vg(d.open),...l,ref:A,onDismiss:()=>d.onOpenChange(!1)})}),N.jsxs(N.Fragment,{children:[N.jsx(vP,{titleId:d.titleId}),N.jsx(DP,{contentRef:f,descriptionId:d.descriptionId})]})]})}),yg="DialogTitle",SP=C.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,a=br(yg,n);return N.jsx(tt.h2,{id:a.titleId,...r,ref:t})});SP.displayName=yg;var m9="DialogDescription",CP=C.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,a=br(m9,n);return N.jsx(tt.p,{id:a.descriptionId,...r,ref:t})});CP.displayName=m9;var p9="DialogClose",yP=C.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,a=br(p9,n);return N.jsx(tt.button,{type:"button",...r,ref:t,onClick:ot(e.onClick,()=>a.onOpenChange(!1))})});yP.displayName=p9;function vg(e){return e?"open":"closed"}var E9="DialogTitleWarning",[OX,g9]=O8(E9,{contentName:Na,titleName:yg,docsSlug:"dialog"}),vP=({titleId:e})=>{const t=g9(E9),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 C.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},RP="DialogDescriptionWarning",DP=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${g9(RP).contentName}}.`;return C.useEffect(()=>{var o;const a=(o=e.current)==null?void 0:o.getAttribute("aria-describedby");t&&a&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},TP=o9,xP=d9,bP=f9,BP=A9,F3=1,OP=.9,FP=.8,LP=.17,qm=.1,Qm=.999,wP=.9999,MP=.99,HP=/[\\\/_+.#"@\[\(\{&]/,PP=/[\\\/_+.#"@\[\(\{&]/g,UP=/[\s-]/,_9=/[\s-]/g;function Wp(e,t,n,r,a,o,l){if(o===t.length)return a===e.length?F3:MP;var d=`${a},${o}`;if(l[d]!==void 0)return l[d];for(var f=r.charAt(o),A=n.indexOf(f,a),m=0,E,g,_,S;A>=0;)E=Wp(e,t,n,r,A+1,o+1,l),E>m&&(A===a?E*=F3:HP.test(e.charAt(A-1))?(E*=FP,_=e.slice(a,A-1).match(PP),_&&a>0&&(E*=Math.pow(Qm,_.length))):UP.test(e.charAt(A-1))?(E*=OP,S=e.slice(a,A-1).match(_9),S&&a>0&&(E*=Math.pow(Qm,S.length))):(E*=LP,a>0&&(E*=Math.pow(Qm,A-a))),e.charAt(A)!==t.charAt(o)&&(E*=wP)),(E<qm&&n.charAt(A-1)===r.charAt(o+1)||r.charAt(o+1)===r.charAt(o)&&n.charAt(A-1)!==r.charAt(o))&&(g=Wp(e,t,n,r,A+1,o+2,l),g*qm>E&&(E=g*qm)),E>m&&(m=E),A=n.indexOf(f,A+1);return l[d]=m,m}function L3(e){return e.toLowerCase().replace(_9," ")}function kP(e,t,n){return e=n&&n.length>0?`${e+" "+n.join(" ")}`:e,Wp(e,t,L3(e),L3(t),0,0,{})}var GP=Jv(),ml='[cmdk-group=""]',Xm='[cmdk-group-items=""]',jP='[cmdk-group-heading=""]',Rg='[cmdk-item=""]',w3=`${Rg}:not([aria-disabled="true"])`,$p="cmdk-item-select",ca="data-value",VP=(e,t,n)=>kP(e,t,n),N9=C.createContext(void 0),Dc=()=>C.useContext(N9),I9=C.createContext(void 0),Dg=()=>C.useContext(I9),S9=C.createContext(void 0),C9=C.forwardRef((e,t)=>{let n=Ss(()=>{var V,re;return{search:"",value:(re=(V=e.value)!=null?V:e.defaultValue)!=null?re:"",filtered:{count:0,items:new Map,groups:new Set}}}),r=Ss(()=>new Set),a=Ss(()=>new Map),o=Ss(()=>new Map),l=Ss(()=>new Set),d=y9(e),{label:f,children:A,value:m,onValueChange:E,filter:g,shouldFilter:_,loop:S,disablePointerSelection:y=!1,vimBindings:v=!0,...R}=e,D=mr(),x=mr(),L=mr(),b=C.useRef(null),O=eU();Ia(()=>{if(m!==void 0){let V=m.trim();n.current.value=V,F.emit()}},[m]),Ia(()=>{O(6,de)},[]);let F=C.useMemo(()=>({subscribe:V=>(l.current.add(V),()=>l.current.delete(V)),snapshot:()=>n.current,setState:(V,re,te)=>{var ce,Ee,me;if(!Object.is(n.current[V],re)){if(n.current[V]=re,V==="search")se(),K(),O(1,Ae);else if(V==="value"&&(te||O(5,de),((ce=d.current)==null?void 0:ce.value)!==void 0)){let ve=re??"";(me=(Ee=d.current).onValueChange)==null||me.call(Ee,ve);return}F.emit()}},emit:()=>{l.current.forEach(V=>V())}}),[]),j=C.useMemo(()=>({value:(V,re,te)=>{var ce;re!==((ce=o.current.get(V))==null?void 0:ce.value)&&(o.current.set(V,{value:re,keywords:te}),n.current.filtered.items.set(V,G(re,te)),O(2,()=>{K(),F.emit()}))},item:(V,re)=>(r.current.add(V),re&&(a.current.has(re)?a.current.get(re).add(V):a.current.set(re,new Set([V]))),O(3,()=>{se(),K(),n.current.value||Ae(),F.emit()}),()=>{o.current.delete(V),r.current.delete(V),n.current.filtered.items.delete(V);let te=$();O(4,()=>{se(),(te==null?void 0:te.getAttribute("id"))===V&&Ae(),F.emit()})}),group:V=>(a.current.has(V)||a.current.set(V,new Set),()=>{o.current.delete(V),a.current.delete(V)}),filter:()=>d.current.shouldFilter,label:f||e["aria-label"],getDisablePointerSelection:()=>d.current.disablePointerSelection,listId:D,inputId:L,labelId:x,listInnerRef:b}),[]);function G(V,re){var te,ce;let Ee=(ce=(te=d.current)==null?void 0:te.filter)!=null?ce:VP;return V?Ee(V,n.current.search,re):0}function K(){if(!n.current.search||d.current.shouldFilter===!1)return;let V=n.current.filtered.items,re=[];n.current.filtered.groups.forEach(ce=>{let Ee=a.current.get(ce),me=0;Ee.forEach(ve=>{let je=V.get(ve);me=Math.max(je,me)}),re.push([ce,me])});let te=b.current;J().sort((ce,Ee)=>{var me,ve;let je=ce.getAttribute("id"),we=Ee.getAttribute("id");return((me=V.get(we))!=null?me:0)-((ve=V.get(je))!=null?ve:0)}).forEach(ce=>{let Ee=ce.closest(Xm);Ee?Ee.appendChild(ce.parentElement===Ee?ce:ce.closest(`${Xm} > *`)):te.appendChild(ce.parentElement===te?ce:ce.closest(`${Xm} > *`))}),re.sort((ce,Ee)=>Ee[1]-ce[1]).forEach(ce=>{var Ee;let me=(Ee=b.current)==null?void 0:Ee.querySelector(`${ml}[${ca}="${encodeURIComponent(ce[0])}"]`);me==null||me.parentElement.appendChild(me)})}function Ae(){let V=J().find(te=>te.getAttribute("aria-disabled")!=="true"),re=V==null?void 0:V.getAttribute(ca);F.setState("value",re||void 0)}function se(){var V,re,te,ce;if(!n.current.search||d.current.shouldFilter===!1){n.current.filtered.count=r.current.size;return}n.current.filtered.groups=new Set;let Ee=0;for(let me of r.current){let ve=(re=(V=o.current.get(me))==null?void 0:V.value)!=null?re:"",je=(ce=(te=o.current.get(me))==null?void 0:te.keywords)!=null?ce:[],we=G(ve,je);n.current.filtered.items.set(me,we),we>0&&Ee++}for(let[me,ve]of a.current)for(let je of ve)if(n.current.filtered.items.get(je)>0){n.current.filtered.groups.add(me);break}n.current.filtered.count=Ee}function de(){var V,re,te;let ce=$();ce&&(((V=ce.parentElement)==null?void 0:V.firstChild)===ce&&((te=(re=ce.closest(ml))==null?void 0:re.querySelector(jP))==null||te.scrollIntoView({block:"nearest"})),ce.scrollIntoView({block:"nearest"}))}function $(){var V;return(V=b.current)==null?void 0:V.querySelector(`${Rg}[aria-selected="true"]`)}function J(){var V;return Array.from(((V=b.current)==null?void 0:V.querySelectorAll(w3))||[])}function k(V){let re=J()[V];re&&F.setState("value",re.getAttribute(ca))}function ne(V){var re;let te=$(),ce=J(),Ee=ce.findIndex(ve=>ve===te),me=ce[Ee+V];(re=d.current)!=null&&re.loop&&(me=Ee+V<0?ce[ce.length-1]:Ee+V===ce.length?ce[0]:ce[Ee+V]),me&&F.setState("value",me.getAttribute(ca))}function ee(V){let re=$(),te=re==null?void 0:re.closest(ml),ce;for(;te&&!ce;)te=V>0?XP(te,ml):JP(te,ml),ce=te==null?void 0:te.querySelector(w3);ce?F.setState("value",ce.getAttribute(ca)):ne(V)}let pe=()=>k(J().length-1),H=V=>{V.preventDefault(),V.metaKey?pe():V.altKey?ee(1):ne(1)},W=V=>{V.preventDefault(),V.metaKey?k(0):V.altKey?ee(-1):ne(-1)};return C.createElement(tt.div,{ref:t,tabIndex:-1,...R,"cmdk-root":"",onKeyDown:V=>{var re;if((re=R.onKeyDown)==null||re.call(R,V),!V.defaultPrevented)switch(V.key){case"n":case"j":{v&&V.ctrlKey&&H(V);break}case"ArrowDown":{H(V);break}case"p":case"k":{v&&V.ctrlKey&&W(V);break}case"ArrowUp":{W(V);break}case"Home":{V.preventDefault(),k(0);break}case"End":{V.preventDefault(),pe();break}case"Enter":if(!V.nativeEvent.isComposing&&V.keyCode!==229){V.preventDefault();let te=$();if(te){let ce=new Event($p);te.dispatchEvent(ce)}}}}},C.createElement("label",{"cmdk-label":"",htmlFor:j.inputId,id:j.labelId,style:nU},f),jf(e,V=>C.createElement(I9.Provider,{value:F},C.createElement(N9.Provider,{value:j},V))))}),zP=C.forwardRef((e,t)=>{var n,r;let a=mr(),o=C.useRef(null),l=C.useContext(S9),d=Dc(),f=y9(e),A=(r=(n=f.current)==null?void 0:n.forceMount)!=null?r:l==null?void 0:l.forceMount;Ia(()=>{if(!A)return d.item(a,l==null?void 0:l.id)},[A]);let m=v9(a,o,[e.value,e.children,o],e.keywords),E=Dg(),g=Sa(O=>O.value&&O.value===m.current),_=Sa(O=>A||d.filter()===!1?!0:O.search?O.filtered.items.get(a)>0:!0);C.useEffect(()=>{let O=o.current;if(!(!O||e.disabled))return O.addEventListener($p,S),()=>O.removeEventListener($p,S)},[_,e.onSelect,e.disabled]);function S(){var O,F;y(),(F=(O=f.current).onSelect)==null||F.call(O,m.current)}function y(){E.setState("value",m.current,!0)}if(!_)return null;let{disabled:v,value:R,onSelect:D,forceMount:x,keywords:L,...b}=e;return C.createElement(tt.div,{ref:Vl([o,t]),...b,id:a,"cmdk-item":"",role:"option","aria-disabled":!!v,"aria-selected":!!g,"data-disabled":!!v,"data-selected":!!g,onPointerMove:v||d.getDisablePointerSelection()?void 0:y,onClick:v?void 0:S},e.children)}),KP=C.forwardRef((e,t)=>{let{heading:n,children:r,forceMount:a,...o}=e,l=mr(),d=C.useRef(null),f=C.useRef(null),A=mr(),m=Dc(),E=Sa(_=>a||m.filter()===!1?!0:_.search?_.filtered.groups.has(l):!0);Ia(()=>m.group(l),[]),v9(l,d,[e.value,e.heading,f]);let g=C.useMemo(()=>({id:l,forceMount:a}),[a]);return C.createElement(tt.div,{ref:Vl([d,t]),...o,"cmdk-group":"",role:"presentation",hidden:E?void 0:!0},n&&C.createElement("div",{ref:f,"cmdk-group-heading":"","aria-hidden":!0,id:A},n),jf(e,_=>C.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":n?A:void 0},C.createElement(S9.Provider,{value:g},_))))}),YP=C.forwardRef((e,t)=>{let{alwaysRender:n,...r}=e,a=C.useRef(null),o=Sa(l=>!l.search);return!n&&!o?null:C.createElement(tt.div,{ref:Vl([a,t]),...r,"cmdk-separator":"",role:"separator"})}),ZP=C.forwardRef((e,t)=>{let{onValueChange:n,...r}=e,a=e.value!=null,o=Dg(),l=Sa(m=>m.search),d=Sa(m=>m.value),f=Dc(),A=C.useMemo(()=>{var m;let E=(m=f.listInnerRef.current)==null?void 0:m.querySelector(`${Rg}[${ca}="${encodeURIComponent(d)}"]`);return E==null?void 0:E.getAttribute("id")},[]);return C.useEffect(()=>{e.value!=null&&o.setState("search",e.value)},[e.value]),C.createElement(tt.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":A,id:f.inputId,type:"text",value:a?e.value:l,onChange:m=>{a||o.setState("search",m.target.value),n==null||n(m.target.value)}})}),WP=C.forwardRef((e,t)=>{let{children:n,label:r="Suggestions",...a}=e,o=C.useRef(null),l=C.useRef(null),d=Dc();return C.useEffect(()=>{if(l.current&&o.current){let f=l.current,A=o.current,m,E=new ResizeObserver(()=>{m=requestAnimationFrame(()=>{let g=f.offsetHeight;A.style.setProperty("--cmdk-list-height",g.toFixed(1)+"px")})});return E.observe(f),()=>{cancelAnimationFrame(m),E.unobserve(f)}}},[]),C.createElement(tt.div,{ref:Vl([o,t]),...a,"cmdk-list":"",role:"listbox","aria-label":r,id:d.listId},jf(e,f=>C.createElement("div",{ref:Vl([l,d.listInnerRef]),"cmdk-list-sizer":""},f)))}),$P=C.forwardRef((e,t)=>{let{open:n,onOpenChange:r,overlayClassName:a,contentClassName:o,container:l,...d}=e;return C.createElement(TP,{open:n,onOpenChange:r},C.createElement(xP,{container:l},C.createElement(bP,{"cmdk-overlay":"",className:a}),C.createElement(BP,{"aria-label":e.label,"cmdk-dialog":"",className:o},C.createElement(C9,{ref:t,...d}))))}),qP=C.forwardRef((e,t)=>Sa(n=>n.filtered.count===0)?C.createElement(tt.div,{ref:t,...e,"cmdk-empty":"",role:"presentation"}):null),QP=C.forwardRef((e,t)=>{let{progress:n,children:r,label:a="Loading...",...o}=e;return C.createElement(tt.div,{ref:t,...o,"cmdk-loading":"",role:"progressbar","aria-valuenow":n,"aria-valuemin":0,"aria-valuemax":100,"aria-label":a},jf(e,l=>C.createElement("div",{"aria-hidden":!0},l)))}),Tc=Object.assign(C9,{List:WP,Item:zP,Input:ZP,Group:KP,Separator:YP,Dialog:$P,Empty:qP,Loading:QP});function XP(e,t){let n=e.nextElementSibling;for(;n;){if(n.matches(t))return n;n=n.nextElementSibling}}function JP(e,t){let n=e.previousElementSibling;for(;n;){if(n.matches(t))return n;n=n.previousElementSibling}}function y9(e){let t=C.useRef(e);return Ia(()=>{t.current=e}),t}var Ia=typeof window>"u"?C.useEffect:C.useLayoutEffect;function Ss(e){let t=C.useRef();return t.current===void 0&&(t.current=e()),t}function Vl(e){return t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})}}function Sa(e){let t=Dg(),n=()=>e(t.snapshot());return GP.useSyncExternalStore(t.subscribe,n,n)}function v9(e,t,n,r=[]){let a=C.useRef(),o=Dc();return Ia(()=>{var l;let d=(()=>{var A;for(let m of n){if(typeof m=="string")return m.trim();if(typeof m=="object"&&"current"in m)return m.current?(A=m.current.textContent)==null?void 0:A.trim():a.current}})(),f=r.map(A=>A.trim());o.value(e,d,f),(l=t.current)==null||l.setAttribute(ca,d),a.current=d}),a}var eU=()=>{let[e,t]=C.useState(),n=Ss(()=>new Map);return Ia(()=>{n.current.forEach(r=>r()),n.current=new Map},[e]),(r,a)=>{n.current.set(r,a),t({})}};function tU(e){let t=e.type;return typeof t=="function"?t(e.props):"render"in t?t.render(e.props):e}function jf({asChild:e,children:t},n){return e&&C.isValidElement(t)?C.cloneElement(tU(t),{ref:t.ref},n(t.props.children)):n(t)}var nU={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};const R9=({className:e,...t})=>N.jsx(Tc,{className:Re("flex size-full flex-col overflow-hidden rounded-md",e),...t}),rU=({className:e,...t})=>N.jsxs("div",{className:"flex w-full items-center","cmdk-input-wrapper":"",children:[N.jsx(Y2,{className:"mr-2 size-4 shrink-0 opacity-50"}),N.jsx(Tc.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})]}),uU=({className:e,...t})=>N.jsx(Tc.List,{className:Re("max-h-[300px] overflow-y-auto overflow-x-hidden",e),...t}),iU=e=>N.jsx(Tc.Empty,{className:"py-6 text-center text-sm",...e}),aU=({className:e,...t})=>N.jsx(Tc.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}),Y0={...R9,Input:rU,List:uU,Empty:iU,Item:aU},D9=C.createContext(null),Vf=()=>{const e=C.useContext(D9);if(!e)throw new Error("useMultiSelect must be used within MultiSelectProvider");return e},sU=({values:e,defaultValues:t,onValueChange:n,loop:r=!1,className:a,children:o,dir:l,...d})=>{const[f,A]=C.useState(t??[]),[m,E]=C.useState(""),[g,_]=C.useState(!1),[S,y]=C.useState(-1),v=C.useRef(null),[R,D]=C.useState(!1),[x,L]=C.useState("");C.useEffect(()=>{e&&A(e)},[e]);const b=C.useCallback(G=>{if(f.includes(G)){const K=f.filter(Ae=>Ae!==G);A(K),n==null||n(K)}else{const K=[...f,G];A(K),n==null||n(K)}},[f]),O=C.useCallback(G=>{G.preventDefault();const K=G.currentTarget,Ae=K.value.substring(K.selectionStart??0,K.selectionEnd??0);L(Ae),D(Ae===m)},[m]),F=C.useCallback(G=>{G.stopPropagation();const K=v.current;if(!K)return;const Ae=()=>{const $=S+1;y($>f.length-1?r?0:-1:$)},se=()=>{const $=S-1;y($<0?f.length-1:$)},de=()=>{const $=S-1<=0?f.length-1===0?-1:0:S-1;y($)};switch(G.key){case"ArrowLeft":l==="rtl"?f.length>0&&(S!==-1||r)&&Ae():f.length>0&&K.selectionStart===0&&se();break;case"ArrowRight":l==="rtl"?f.length>0&&K.selectionStart===0&&se():f.length>0&&(S!==-1||r)&&Ae();break;case"Backspace":case"Delete":f.length>0&&(S!==-1&&S<f.length?(b(f[S]),de()):(K.selectionStart===0&&x===m||R)&&b(f[f.length-1]));break;case"Enter":_(!0);break;case"Escape":S!==-1?y(-1):g&&_(!1);break}},[f,m,S,r]),j=C.useMemo(()=>({value:f,onValueChange:b,open:g,setOpen:_,inputValue:m,setInputValue:E,activeIndex:S,setActiveIndex:y,ref:v,handleSelect:O}),[f,b,g,_,m,E,S,y,v,O]);return N.jsx(D9,{value:j,children:N.jsx(R9,{onKeyDown:F,className:Re("flex w-full flex-col gap-2 overflow-visible bg-transparent",a),dir:l,...d,children:o})})},oU=({className:e,getBadgeValue:t=o=>o,validationStyleEnabled:n=!1,children:r,...a})=>{const{value:o,onValueChange:l,activeIndex:d}=Vf(),f=C.useCallback(A=>{A.preventDefault(),A.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),...a,children:[o.length>0&&N.jsx("div",{className:"flex w-full flex-wrap gap-1",children:o.map((A,m)=>N.jsxs(IH,{className:Re("flex items-center gap-1 rounded-xl px-1",d===m&&"ring-muted-foreground ring-2"),color:"text",children:[N.jsx("span",{className:"text-xs",children:t(A)}),N.jsxs("button",{"aria-label":`Remove ${A} option`,"aria-roledescription":"button to remove option",onMouseDown:f,onClick:()=>l(A),children:[N.jsxs("span",{className:"sr-only",children:["Remove ",A," option"]}),N.jsx(ba,{className:"size-4 cursor-pointer"})]})]},A))}),r]})},lU=({className:e,...t})=>{const{setOpen:n,inputValue:r,setInputValue:a,activeIndex:o,setActiveIndex:l,handleSelect:d,ref:f}=Vf();return N.jsx(Y0.Input,{...t,tabIndex:0,ref:f,value:r,onValueChange:o===-1?a:void 0,onSelect:d,onBlur:()=>n(!1),onFocus:()=>n(!0),onClick:()=>l(-1),className:Re("outline-hidden ml-2 flex-1 cursor-pointer",e,o!==-1&&"caret-transparent")})},cU=({children:e})=>{const{open:t}=Vf();return N.jsx("div",{className:"relative",children:t&&e})},dU=({className:e,children:t})=>N.jsxs(Y0.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(Y0.Empty,{children:N.jsx("span",{className:"text-muted-foreground",children:"No results found"})})]}),fU=({className:e,value:t,children:n,...r})=>{const{value:a,onValueChange:o,setInputValue:l}=Vf(),d=C.useCallback(A=>{A.preventDefault(),A.stopPropagation()},[]),f=a.includes(t);return N.jsxs(Y0.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:d,children:[n,f&&N.jsx(eo,{className:"size-4"})]})},mn=sU;mn.Trigger=oU;mn.Input=lU;mn.Content=cU;mn.List=dU;mn.Item=fU;const AU=({className:e,children:t,...n})=>N.jsxs("i",{className:Re("text-xs text-neutral-400",e),...n,children:["ⓘ ",t]}),qp=({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}),hU=({className:e,...t})=>{const{error:n,formItemId:r}=xi();return N.jsx(qp,{className:Re("mb-2",n&&"text-error",e),htmlFor:r,...t})},mU=({isRequired:e})=>e?N.jsx("span",{"aria-label":"Asterisk meaning the field is required",children:"*"}):N.jsx(N.Fragment,{}),T9=({children:e,isRequired:t,info:n,htmlFor:r,className:a})=>N.jsxs("div",{className:"ml-1 flex gap-1 align-middle text-base leading-none",children:[e&&N.jsxs(hU,{htmlFor:r,className:Bf("font-bold",a),children:[e,N.jsx(mU,{isRequired:t})]}),n&&N.jsx(AU,{content:n})]});function M3(e,[t,n]){return Math.min(n,Math.max(t,e))}var pU=C.createContext(void 0);function EU(e){const t=C.useContext(pU);return e||t||"ltr"}const gU=["top","right","bottom","left"],pi=Math.min,zn=Math.max,Z0=Math.round,l0=Math.floor,zr=e=>({x:e,y:e}),_U={left:"right",right:"left",bottom:"top",top:"bottom"},NU={start:"end",end:"start"};function Qp(e,t,n){return zn(e,pi(t,n))}function Bu(e,t){return typeof e=="function"?e(t):e}function Ou(e){return e.split("-")[0]}function no(e){return e.split("-")[1]}function Tg(e){return e==="x"?"y":"x"}function xg(e){return e==="y"?"height":"width"}function Ei(e){return["top","bottom"].includes(Ou(e))?"y":"x"}function bg(e){return Tg(Ei(e))}function IU(e,t,n){n===void 0&&(n=!1);const r=no(e),a=bg(e),o=xg(a);let l=a==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(l=W0(l)),[l,W0(l)]}function SU(e){const t=W0(e);return[Xp(e),t,Xp(t)]}function Xp(e){return e.replace(/start|end/g,t=>NU[t])}function CU(e,t,n){const r=["left","right"],a=["right","left"],o=["top","bottom"],l=["bottom","top"];switch(e){case"top":case"bottom":return n?t?a:r:t?r:a;case"left":case"right":return t?o:l;default:return[]}}function yU(e,t,n,r){const a=no(e);let o=CU(Ou(e),n==="start",r);return a&&(o=o.map(l=>l+"-"+a),t&&(o=o.concat(o.map(Xp)))),o}function W0(e){return e.replace(/left|right|bottom|top/g,t=>_U[t])}function vU(e){return{top:0,right:0,bottom:0,left:0,...e}}function x9(e){return typeof e!="number"?vU(e):{top:e,right:e,bottom:e,left:e}}function $0(e){const{x:t,y:n,width:r,height:a}=e;return{width:r,height:a,top:n,left:t,right:t+r,bottom:n+a,x:t,y:n}}function H3(e,t,n){let{reference:r,floating:a}=e;const o=Ei(t),l=bg(t),d=xg(l),f=Ou(t),A=o==="y",m=r.x+r.width/2-a.width/2,E=r.y+r.height/2-a.height/2,g=r[d]/2-a[d]/2;let _;switch(f){case"top":_={x:m,y:r.y-a.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-a.width,y:E};break;default:_={x:r.x,y:r.y}}switch(no(t)){case"start":_[l]-=g*(n&&A?-1:1);break;case"end":_[l]+=g*(n&&A?-1:1);break}return _}const RU=async(e,t,n)=>{const{placement:r="bottom",strategy:a="absolute",middleware:o=[],platform:l}=n,d=o.filter(Boolean),f=await(l.isRTL==null?void 0:l.isRTL(t));let A=await l.getElementRects({reference:e,floating:t,strategy:a}),{x:m,y:E}=H3(A,r,f),g=r,_={},S=0;for(let y=0;y<d.length;y++){const{name:v,fn:R}=d[y],{x:D,y:x,data:L,reset:b}=await R({x:m,y:E,initialPlacement:r,placement:g,strategy:a,middlewareData:_,rects:A,platform:l,elements:{reference:e,floating:t}});m=D??m,E=x??E,_={..._,[v]:{..._[v],...L}},b&&S<=50&&(S++,typeof b=="object"&&(b.placement&&(g=b.placement),b.rects&&(A=b.rects===!0?await l.getElementRects({reference:e,floating:t,strategy:a}):b.rects),{x:m,y:E}=H3(A,g,f)),y=-1)}return{x:m,y:E,placement:g,strategy:a,middlewareData:_}};async function zl(e,t){var n;t===void 0&&(t={});const{x:r,y:a,platform:o,rects:l,elements:d,strategy:f}=e,{boundary:A="clippingAncestors",rootBoundary:m="viewport",elementContext:E="floating",altBoundary:g=!1,padding:_=0}=Bu(t,e),S=x9(_),v=d[g?E==="floating"?"reference":"floating":E],R=$0(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(d.floating)),boundary:A,rootBoundary:m,strategy:f})),D=E==="floating"?{x:r,y:a,width:l.floating.width,height:l.floating.height}:l.reference,x=await(o.getOffsetParent==null?void 0:o.getOffsetParent(d.floating)),L=await(o.isElement==null?void 0:o.isElement(x))?await(o.getScale==null?void 0:o.getScale(x))||{x:1,y:1}:{x:1,y:1},b=$0(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:d,rect:D,offsetParent:x,strategy:f}):D);return{top:(R.top-b.top+S.top)/L.y,bottom:(b.bottom-R.bottom+S.bottom)/L.y,left:(R.left-b.left+S.left)/L.x,right:(b.right-R.right+S.right)/L.x}}const DU=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:a,rects:o,platform:l,elements:d,middlewareData:f}=t,{element:A,padding:m=0}=Bu(e,t)||{};if(A==null)return{};const E=x9(m),g={x:n,y:r},_=bg(a),S=xg(_),y=await l.getDimensions(A),v=_==="y",R=v?"top":"left",D=v?"bottom":"right",x=v?"clientHeight":"clientWidth",L=o.reference[S]+o.reference[_]-g[_]-o.floating[S],b=g[_]-o.reference[_],O=await(l.getOffsetParent==null?void 0:l.getOffsetParent(A));let F=O?O[x]:0;(!F||!await(l.isElement==null?void 0:l.isElement(O)))&&(F=d.floating[x]||o.floating[S]);const j=L/2-b/2,G=F/2-y[S]/2-1,K=pi(E[R],G),Ae=pi(E[D],G),se=K,de=F-y[S]-Ae,$=F/2-y[S]/2+j,J=Qp(se,$,de),k=!f.arrow&&no(a)!=null&&$!==J&&o.reference[S]/2-($<se?K:Ae)-y[S]/2<0,ne=k?$<se?$-se:$-de:0;return{[_]:g[_]+ne,data:{[_]:J,centerOffset:$-J-ne,...k&&{alignmentOffset:ne}},reset:k}}}),TU=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:a,middlewareData:o,rects:l,initialPlacement:d,platform:f,elements:A}=t,{mainAxis:m=!0,crossAxis:E=!0,fallbackPlacements:g,fallbackStrategy:_="bestFit",fallbackAxisSideDirection:S="none",flipAlignment:y=!0,...v}=Bu(e,t);if((n=o.arrow)!=null&&n.alignmentOffset)return{};const R=Ou(a),D=Ei(d),x=Ou(d)===d,L=await(f.isRTL==null?void 0:f.isRTL(A.floating)),b=g||(x||!y?[W0(d)]:SU(d)),O=S!=="none";!g&&O&&b.push(...yU(d,y,S,L));const F=[d,...b],j=await zl(t,v),G=[];let K=((r=o.flip)==null?void 0:r.overflows)||[];if(m&&G.push(j[R]),E){const $=IU(a,l,L);G.push(j[$[0]],j[$[1]])}if(K=[...K,{placement:a,overflows:G}],!G.every($=>$<=0)){var Ae,se;const $=(((Ae=o.flip)==null?void 0:Ae.index)||0)+1,J=F[$];if(J)return{data:{index:$,overflows:K},reset:{placement:J}};let k=(se=K.filter(ne=>ne.overflows[0]<=0).sort((ne,ee)=>ne.overflows[1]-ee.overflows[1])[0])==null?void 0:se.placement;if(!k)switch(_){case"bestFit":{var de;const ne=(de=K.filter(ee=>{if(O){const pe=Ei(ee.placement);return pe===D||pe==="y"}return!0}).map(ee=>[ee.placement,ee.overflows.filter(pe=>pe>0).reduce((pe,H)=>pe+H,0)]).sort((ee,pe)=>ee[1]-pe[1])[0])==null?void 0:de[0];ne&&(k=ne);break}case"initialPlacement":k=d;break}if(a!==k)return{reset:{placement:k}}}return{}}}};function P3(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function U3(e){return gU.some(t=>e[t]>=0)}const xU=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...a}=Bu(e,t);switch(r){case"referenceHidden":{const o=await zl(t,{...a,elementContext:"reference"}),l=P3(o,n.reference);return{data:{referenceHiddenOffsets:l,referenceHidden:U3(l)}}}case"escaped":{const o=await zl(t,{...a,altBoundary:!0}),l=P3(o,n.floating);return{data:{escapedOffsets:l,escaped:U3(l)}}}default:return{}}}}};async function bU(e,t){const{placement:n,platform:r,elements:a}=e,o=await(r.isRTL==null?void 0:r.isRTL(a.floating)),l=Ou(n),d=no(n),f=Ei(n)==="y",A=["left","top"].includes(l)?-1:1,m=o&&f?-1:1,E=Bu(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 d&&typeof S=="number"&&(_=d==="end"?S*-1:S),f?{x:_*m,y:g*A}:{x:g*A,y:_*m}}const BU=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:a,y:o,placement:l,middlewareData:d}=t,f=await bU(t,e);return l===((n=d.offset)==null?void 0:n.placement)&&(r=d.arrow)!=null&&r.alignmentOffset?{}:{x:a+f.x,y:o+f.y,data:{...f,placement:l}}}}},OU=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:a}=t,{mainAxis:o=!0,crossAxis:l=!1,limiter:d={fn:v=>{let{x:R,y:D}=v;return{x:R,y:D}}},...f}=Bu(e,t),A={x:n,y:r},m=await zl(t,f),E=Ei(Ou(a)),g=Tg(E);let _=A[g],S=A[E];if(o){const v=g==="y"?"top":"left",R=g==="y"?"bottom":"right",D=_+m[v],x=_-m[R];_=Qp(D,_,x)}if(l){const v=E==="y"?"top":"left",R=E==="y"?"bottom":"right",D=S+m[v],x=S-m[R];S=Qp(D,S,x)}const y=d.fn({...t,[g]:_,[E]:S});return{...y,data:{x:y.x-n,y:y.y-r,enabled:{[g]:o,[E]:l}}}}}},FU=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:a,rects:o,middlewareData:l}=t,{offset:d=0,mainAxis:f=!0,crossAxis:A=!0}=Bu(e,t),m={x:n,y:r},E=Ei(a),g=Tg(E);let _=m[g],S=m[E];const y=Bu(d,t),v=typeof y=="number"?{mainAxis:y,crossAxis:0}:{mainAxis:0,crossAxis:0,...y};if(f){const x=g==="y"?"height":"width",L=o.reference[g]-o.floating[x]+v.mainAxis,b=o.reference[g]+o.reference[x]-v.mainAxis;_<L?_=L:_>b&&(_=b)}if(A){var R,D;const x=g==="y"?"width":"height",L=["top","left"].includes(Ou(a)),b=o.reference[E]-o.floating[x]+(L&&((R=l.offset)==null?void 0:R[E])||0)+(L?0:v.crossAxis),O=o.reference[E]+o.reference[x]+(L?0:((D=l.offset)==null?void 0:D[E])||0)-(L?v.crossAxis:0);S<b?S=b:S>O&&(S=O)}return{[g]:_,[E]:S}}}},LU=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:a,rects:o,platform:l,elements:d}=t,{apply:f=()=>{},...A}=Bu(e,t),m=await zl(t,A),E=Ou(a),g=no(a),_=Ei(a)==="y",{width:S,height:y}=o.floating;let v,R;E==="top"||E==="bottom"?(v=E,R=g===(await(l.isRTL==null?void 0:l.isRTL(d.floating))?"start":"end")?"left":"right"):(R=E,v=g==="end"?"top":"bottom");const D=y-m.top-m.bottom,x=S-m.left-m.right,L=pi(y-m[v],D),b=pi(S-m[R],x),O=!t.middlewareData.shift;let F=L,j=b;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(j=x),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(F=D),O&&!g){const K=zn(m.left,0),Ae=zn(m.right,0),se=zn(m.top,0),de=zn(m.bottom,0);_?j=S-2*(K!==0||Ae!==0?K+Ae:zn(m.left,m.right)):F=y-2*(se!==0||de!==0?se+de:zn(m.top,m.bottom))}await f({...t,availableWidth:j,availableHeight:F});const G=await l.getDimensions(d.floating);return S!==G.width||y!==G.height?{reset:{rects:!0}}:{}}}};function zf(){return typeof window<"u"}function ro(e){return b9(e)?(e.nodeName||"").toLowerCase():"#document"}function Yn(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function tu(e){var t;return(t=(b9(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function b9(e){return zf()?e instanceof Node||e instanceof Yn(e).Node:!1}function Dr(e){return zf()?e instanceof Element||e instanceof Yn(e).Element:!1}function $r(e){return zf()?e instanceof HTMLElement||e instanceof Yn(e).HTMLElement:!1}function k3(e){return!zf()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Yn(e).ShadowRoot}function xc(e){const{overflow:t,overflowX:n,overflowY:r,display:a}=Tr(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(a)}function wU(e){return["table","td","th"].includes(ro(e))}function Kf(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function Bg(e){const t=Og(),n=Dr(e)?Tr(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 MU(e){let t=gi(e);for(;$r(t)&&!ks(t);){if(Bg(t))return t;if(Kf(t))return null;t=gi(t)}return null}function Og(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function ks(e){return["html","body","#document"].includes(ro(e))}function Tr(e){return Yn(e).getComputedStyle(e)}function Yf(e){return Dr(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function gi(e){if(ro(e)==="html")return e;const t=e.assignedSlot||e.parentNode||k3(e)&&e.host||tu(e);return k3(t)?t.host:t}function B9(e){const t=gi(e);return ks(t)?e.ownerDocument?e.ownerDocument.body:e.body:$r(t)&&xc(t)?t:B9(t)}function Kl(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const a=B9(e),o=a===((r=e.ownerDocument)==null?void 0:r.body),l=Yn(a);if(o){const d=Jp(l);return t.concat(l,l.visualViewport||[],xc(a)?a:[],d&&n?Kl(d):[])}return t.concat(a,Kl(a,[],n))}function Jp(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function O9(e){const t=Tr(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const a=$r(e),o=a?e.offsetWidth:n,l=a?e.offsetHeight:r,d=Z0(n)!==o||Z0(r)!==l;return d&&(n=o,r=l),{width:n,height:r,$:d}}function Fg(e){return Dr(e)?e:e.contextElement}function Ls(e){const t=Fg(e);if(!$r(t))return zr(1);const n=t.getBoundingClientRect(),{width:r,height:a,$:o}=O9(t);let l=(o?Z0(n.width):n.width)/r,d=(o?Z0(n.height):n.height)/a;return(!l||!Number.isFinite(l))&&(l=1),(!d||!Number.isFinite(d))&&(d=1),{x:l,y:d}}const HU=zr(0);function F9(e){const t=Yn(e);return!Og()||!t.visualViewport?HU:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function PU(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Yn(e)?!1:t}function Ca(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const a=e.getBoundingClientRect(),o=Fg(e);let l=zr(1);t&&(r?Dr(r)&&(l=Ls(r)):l=Ls(e));const d=PU(o,n,r)?F9(o):zr(0);let f=(a.left+d.x)/l.x,A=(a.top+d.y)/l.y,m=a.width/l.x,E=a.height/l.y;if(o){const g=Yn(o),_=r&&Dr(r)?Yn(r):r;let S=g,y=Jp(S);for(;y&&r&&_!==S;){const v=Ls(y),R=y.getBoundingClientRect(),D=Tr(y),x=R.left+(y.clientLeft+parseFloat(D.paddingLeft))*v.x,L=R.top+(y.clientTop+parseFloat(D.paddingTop))*v.y;f*=v.x,A*=v.y,m*=v.x,E*=v.y,f+=x,A+=L,S=Yn(y),y=Jp(S)}}return $0({width:m,height:E,x:f,y:A})}function Lg(e,t){const n=Yf(e).scrollLeft;return t?t.left+n:Ca(tu(e)).left+n}function L9(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),a=r.left+t.scrollLeft-(n?0:Lg(e,r)),o=r.top+t.scrollTop;return{x:a,y:o}}function UU(e){let{elements:t,rect:n,offsetParent:r,strategy:a}=e;const o=a==="fixed",l=tu(r),d=t?Kf(t.floating):!1;if(r===l||d&&o)return n;let f={scrollLeft:0,scrollTop:0},A=zr(1);const m=zr(0),E=$r(r);if((E||!E&&!o)&&((ro(r)!=="body"||xc(l))&&(f=Yf(r)),$r(r))){const _=Ca(r);A=Ls(r),m.x=_.x+r.clientLeft,m.y=_.y+r.clientTop}const g=l&&!E&&!o?L9(l,f,!0):zr(0);return{width:n.width*A.x,height:n.height*A.y,x:n.x*A.x-f.scrollLeft*A.x+m.x+g.x,y:n.y*A.y-f.scrollTop*A.y+m.y+g.y}}function kU(e){return Array.from(e.getClientRects())}function GU(e){const t=tu(e),n=Yf(e),r=e.ownerDocument.body,a=zn(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=zn(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let l=-n.scrollLeft+Lg(e);const d=-n.scrollTop;return Tr(r).direction==="rtl"&&(l+=zn(t.clientWidth,r.clientWidth)-a),{width:a,height:o,x:l,y:d}}function jU(e,t){const n=Yn(e),r=tu(e),a=n.visualViewport;let o=r.clientWidth,l=r.clientHeight,d=0,f=0;if(a){o=a.width,l=a.height;const A=Og();(!A||A&&t==="fixed")&&(d=a.offsetLeft,f=a.offsetTop)}return{width:o,height:l,x:d,y:f}}function VU(e,t){const n=Ca(e,!0,t==="fixed"),r=n.top+e.clientTop,a=n.left+e.clientLeft,o=$r(e)?Ls(e):zr(1),l=e.clientWidth*o.x,d=e.clientHeight*o.y,f=a*o.x,A=r*o.y;return{width:l,height:d,x:f,y:A}}function G3(e,t,n){let r;if(t==="viewport")r=jU(e,n);else if(t==="document")r=GU(tu(e));else if(Dr(t))r=VU(t,n);else{const a=F9(e);r={x:t.x-a.x,y:t.y-a.y,width:t.width,height:t.height}}return $0(r)}function w9(e,t){const n=gi(e);return n===t||!Dr(n)||ks(n)?!1:Tr(n).position==="fixed"||w9(n,t)}function zU(e,t){const n=t.get(e);if(n)return n;let r=Kl(e,[],!1).filter(d=>Dr(d)&&ro(d)!=="body"),a=null;const o=Tr(e).position==="fixed";let l=o?gi(e):e;for(;Dr(l)&&!ks(l);){const d=Tr(l),f=Bg(l);!f&&d.position==="fixed"&&(a=null),(o?!f&&!a:!f&&d.position==="static"&&!!a&&["absolute","fixed"].includes(a.position)||xc(l)&&!f&&w9(e,l))?r=r.filter(m=>m!==l):a=d,l=gi(l)}return t.set(e,r),r}function KU(e){let{element:t,boundary:n,rootBoundary:r,strategy:a}=e;const l=[...n==="clippingAncestors"?Kf(t)?[]:zU(t,this._c):[].concat(n),r],d=l[0],f=l.reduce((A,m)=>{const E=G3(t,m,a);return A.top=zn(E.top,A.top),A.right=pi(E.right,A.right),A.bottom=pi(E.bottom,A.bottom),A.left=zn(E.left,A.left),A},G3(t,d,a));return{width:f.right-f.left,height:f.bottom-f.top,x:f.left,y:f.top}}function YU(e){const{width:t,height:n}=O9(e);return{width:t,height:n}}function ZU(e,t,n){const r=$r(t),a=tu(t),o=n==="fixed",l=Ca(e,!0,o,t);let d={scrollLeft:0,scrollTop:0};const f=zr(0);if(r||!r&&!o)if((ro(t)!=="body"||xc(a))&&(d=Yf(t)),r){const g=Ca(t,!0,o,t);f.x=g.x+t.clientLeft,f.y=g.y+t.clientTop}else a&&(f.x=Lg(a));const A=a&&!r&&!o?L9(a,d):zr(0),m=l.left+d.scrollLeft-f.x-A.x,E=l.top+d.scrollTop-f.y-A.y;return{x:m,y:E,width:l.width,height:l.height}}function Jm(e){return Tr(e).position==="static"}function j3(e,t){if(!$r(e)||Tr(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return tu(e)===n&&(n=n.ownerDocument.body),n}function M9(e,t){const n=Yn(e);if(Kf(e))return n;if(!$r(e)){let a=gi(e);for(;a&&!ks(a);){if(Dr(a)&&!Jm(a))return a;a=gi(a)}return n}let r=j3(e,t);for(;r&&wU(r)&&Jm(r);)r=j3(r,t);return r&&ks(r)&&Jm(r)&&!Bg(r)?n:r||MU(e)||n}const WU=async function(e){const t=this.getOffsetParent||M9,n=this.getDimensions,r=await n(e.floating);return{reference:ZU(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function $U(e){return Tr(e).direction==="rtl"}const qU={convertOffsetParentRelativeRectToViewportRelativeRect:UU,getDocumentElement:tu,getClippingRect:KU,getOffsetParent:M9,getElementRects:WU,getClientRects:kU,getDimensions:YU,getScale:Ls,isElement:Dr,isRTL:$U};function H9(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function QU(e,t){let n=null,r;const a=tu(e);function o(){var d;clearTimeout(r),(d=n)==null||d.disconnect(),n=null}function l(d,f){d===void 0&&(d=!1),f===void 0&&(f=1),o();const A=e.getBoundingClientRect(),{left:m,top:E,width:g,height:_}=A;if(d||t(),!g||!_)return;const S=l0(E),y=l0(a.clientWidth-(m+g)),v=l0(a.clientHeight-(E+_)),R=l0(m),x={rootMargin:-S+"px "+-y+"px "+-v+"px "+-R+"px",threshold:zn(0,pi(1,f))||1};let L=!0;function b(O){const F=O[0].intersectionRatio;if(F!==f){if(!L)return l();F?l(!1,F):r=setTimeout(()=>{l(!1,1e-7)},1e3)}F===1&&!H9(A,e.getBoundingClientRect())&&l(),L=!1}try{n=new IntersectionObserver(b,{...x,root:a.ownerDocument})}catch{n=new IntersectionObserver(b,x)}n.observe(e)}return l(!0),o}function XU(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:a=!0,ancestorResize:o=!0,elementResize:l=typeof ResizeObserver=="function",layoutShift:d=typeof IntersectionObserver=="function",animationFrame:f=!1}=r,A=Fg(e),m=a||o?[...A?Kl(A):[],...Kl(t)]:[];m.forEach(R=>{a&&R.addEventListener("scroll",n,{passive:!0}),o&&R.addEventListener("resize",n)});const E=A&&d?QU(A,n):null;let g=-1,_=null;l&&(_=new ResizeObserver(R=>{let[D]=R;D&&D.target===A&&_&&(_.unobserve(t),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var x;(x=_)==null||x.observe(t)})),n()}),A&&!f&&_.observe(A),_.observe(t));let S,y=f?Ca(e):null;f&&v();function v(){const R=Ca(e);y&&!H9(y,R)&&n(),y=R,S=requestAnimationFrame(v)}return n(),()=>{var R;m.forEach(D=>{a&&D.removeEventListener("scroll",n),o&&D.removeEventListener("resize",n)}),E==null||E(),(R=_)==null||R.disconnect(),_=null,f&&cancelAnimationFrame(S)}}const JU=BU,e5=OU,t5=TU,n5=LU,r5=xU,V3=DU,u5=FU,i5=(e,t,n)=>{const r=new Map,a={platform:qU,...n},o={...a.platform,_c:r};return RU(e,t,{...a,platform:o})};var b0=typeof document<"u"?C.useLayoutEffect:C.useEffect;function q0(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,a;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(!q0(e[r],t[r]))return!1;return!0}if(a=Object.keys(e),n=a.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,a[r]))return!1;for(r=n;r--!==0;){const o=a[r];if(!(o==="_owner"&&e.$$typeof)&&!q0(e[o],t[o]))return!1}return!0}return e!==e&&t!==t}function P9(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function z3(e,t){const n=P9(e);return Math.round(t*n)/n}function ep(e){const t=C.useRef(e);return b0(()=>{t.current=e}),t}function a5(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:a,elements:{reference:o,floating:l}={},transform:d=!0,whileElementsMounted:f,open:A}=e,[m,E]=C.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[g,_]=C.useState(r);q0(g,r)||_(r);const[S,y]=C.useState(null),[v,R]=C.useState(null),D=C.useCallback(ee=>{ee!==O.current&&(O.current=ee,y(ee))},[]),x=C.useCallback(ee=>{ee!==F.current&&(F.current=ee,R(ee))},[]),L=o||S,b=l||v,O=C.useRef(null),F=C.useRef(null),j=C.useRef(m),G=f!=null,K=ep(f),Ae=ep(a),se=ep(A),de=C.useCallback(()=>{if(!O.current||!F.current)return;const ee={placement:t,strategy:n,middleware:g};Ae.current&&(ee.platform=Ae.current),i5(O.current,F.current,ee).then(pe=>{const H={...pe,isPositioned:se.current!==!1};$.current&&!q0(j.current,H)&&(j.current=H,xa.flushSync(()=>{E(H)}))})},[g,t,n,Ae,se]);b0(()=>{A===!1&&j.current.isPositioned&&(j.current.isPositioned=!1,E(ee=>({...ee,isPositioned:!1})))},[A]);const $=C.useRef(!1);b0(()=>($.current=!0,()=>{$.current=!1}),[]),b0(()=>{if(L&&(O.current=L),b&&(F.current=b),L&&b){if(K.current)return K.current(L,b,de);de()}},[L,b,de,K,G]);const J=C.useMemo(()=>({reference:O,floating:F,setReference:D,setFloating:x}),[D,x]),k=C.useMemo(()=>({reference:L,floating:b}),[L,b]),ne=C.useMemo(()=>{const ee={position:n,left:0,top:0};if(!k.floating)return ee;const pe=z3(k.floating,m.x),H=z3(k.floating,m.y);return d?{...ee,transform:"translate("+pe+"px, "+H+"px)",...P9(k.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:pe,top:H}},[n,d,k.floating,m.x,m.y]);return C.useMemo(()=>({...m,update:de,refs:J,elements:k,floatingStyles:ne}),[m,de,J,k,ne])}const s5=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:a}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?V3({element:r.current,padding:a}).fn(n):{}:r?V3({element:r,padding:a}).fn(n):{}}}},o5=(e,t)=>({...JU(e),options:[e,t]}),l5=(e,t)=>({...e5(e),options:[e,t]}),c5=(e,t)=>({...u5(e),options:[e,t]}),d5=(e,t)=>({...t5(e),options:[e,t]}),f5=(e,t)=>({...n5(e),options:[e,t]}),A5=(e,t)=>({...r5(e),options:[e,t]}),h5=(e,t)=>({...s5(e),options:[e,t]});var m5="Arrow",U9=C.forwardRef((e,t)=>{const{children:n,width:r=10,height:a=5,...o}=e;return N.jsx(tt.svg,{...o,ref:t,width:r,height:a,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:N.jsx("polygon",{points:"0,0 30,0 15,10"})})});U9.displayName=m5;var p5=U9;function E5(e){const[t,n]=C.useState(void 0);return gn(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(a=>{if(!Array.isArray(a)||!a.length)return;const o=a[0];let l,d;if("borderBoxSize"in o){const f=o.borderBoxSize,A=Array.isArray(f)?f[0]:f;l=A.inlineSize,d=A.blockSize}else l=e.offsetWidth,d=e.offsetHeight;n({width:l,height:d})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var wg="Popper",[k9,G9]=yc(wg),[g5,j9]=k9(wg),V9=e=>{const{__scopePopper:t,children:n}=e,[r,a]=C.useState(null);return N.jsx(g5,{scope:t,anchor:r,onAnchorChange:a,children:n})};V9.displayName=wg;var z9="PopperAnchor",K9=C.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...a}=e,o=j9(z9,n),l=C.useRef(null),d=xt(t,l);return C.useEffect(()=>{o.onAnchorChange((r==null?void 0:r.current)||l.current)}),r?null:N.jsx(tt.div,{...a,ref:d})});K9.displayName=z9;var Mg="PopperContent",[_5,N5]=k9(Mg),Y9=C.forwardRef((e,t)=>{var me,ve,je,we,Ze,it;const{__scopePopper:n,side:r="bottom",sideOffset:a=0,align:o="center",alignOffset:l=0,arrowPadding:d=0,avoidCollisions:f=!0,collisionBoundary:A=[],collisionPadding:m=0,sticky:E="partial",hideWhenDetached:g=!1,updatePositionStrategy:_="optimized",onPlaced:S,...y}=e,v=j9(Mg,n),[R,D]=C.useState(null),x=xt(t,It=>D(It)),[L,b]=C.useState(null),O=E5(L),F=(O==null?void 0:O.width)??0,j=(O==null?void 0:O.height)??0,G=r+(o!=="center"?"-"+o:""),K=typeof m=="number"?m:{top:0,right:0,bottom:0,left:0,...m},Ae=Array.isArray(A)?A:[A],se=Ae.length>0,de={padding:K,boundary:Ae.filter(S5),altBoundary:se},{refs:$,floatingStyles:J,placement:k,isPositioned:ne,middlewareData:ee}=a5({strategy:"fixed",placement:G,whileElementsMounted:(...It)=>XU(...It,{animationFrame:_==="always"}),elements:{reference:v.anchor},middleware:[o5({mainAxis:a+j,alignmentAxis:l}),f&&l5({mainAxis:!0,crossAxis:!1,limiter:E==="partial"?c5():void 0,...de}),f&&d5({...de}),f5({...de,apply:({elements:It,rects:qt,availableWidth:Er,availableHeight:Ln})=>{const{width:Br,height:P}=qt.reference,Q=It.floating.style;Q.setProperty("--radix-popper-available-width",`${Er}px`),Q.setProperty("--radix-popper-available-height",`${Ln}px`),Q.setProperty("--radix-popper-anchor-width",`${Br}px`),Q.setProperty("--radix-popper-anchor-height",`${P}px`)}}),L&&h5({element:L,padding:d}),C5({arrowWidth:F,arrowHeight:j}),g&&A5({strategy:"referenceHidden",...de})]}),[pe,H]=$9(k),W=$n(S);gn(()=>{ne&&(W==null||W())},[ne,W]);const V=(me=ee.arrow)==null?void 0:me.x,re=(ve=ee.arrow)==null?void 0:ve.y,te=((je=ee.arrow)==null?void 0:je.centerOffset)!==0,[ce,Ee]=C.useState();return gn(()=>{R&&Ee(window.getComputedStyle(R).zIndex)},[R]),N.jsx("div",{ref:$.setFloating,"data-radix-popper-content-wrapper":"",style:{...J,transform:ne?J.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ce,"--radix-popper-transform-origin":[(we=ee.transformOrigin)==null?void 0:we.x,(Ze=ee.transformOrigin)==null?void 0:Ze.y].join(" "),...((it=ee.hide)==null?void 0:it.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:N.jsx(_5,{scope:n,placedSide:pe,onArrowChange:b,arrowX:V,arrowY:re,shouldHideArrow:te,children:N.jsx(tt.div,{"data-side":pe,"data-align":H,...y,ref:x,style:{...y.style,animation:ne?void 0:"none"}})})})});Y9.displayName=Mg;var Z9="PopperArrow",I5={top:"bottom",right:"left",bottom:"top",left:"right"},W9=C.forwardRef(function(t,n){const{__scopePopper:r,...a}=t,o=N5(Z9,r),l=I5[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(p5,{...a,ref:n,style:{...a.style,display:"block"}})})});W9.displayName=Z9;function S5(e){return e!==null}var C5=e=>({name:"transformOrigin",options:e,fn(t){var v,R,D;const{placement:n,rects:r,middlewareData:a}=t,l=((v=a.arrow)==null?void 0:v.centerOffset)!==0,d=l?0:e.arrowWidth,f=l?0:e.arrowHeight,[A,m]=$9(n),E={start:"0%",center:"50%",end:"100%"}[m],g=(((R=a.arrow)==null?void 0:R.x)??0)+d/2,_=(((D=a.arrow)==null?void 0:D.y)??0)+f/2;let S="",y="";return A==="bottom"?(S=l?E:`${g}px`,y=`${-f}px`):A==="top"?(S=l?E:`${g}px`,y=`${r.floating.height+f}px`):A==="right"?(S=`${-f}px`,y=l?E:`${_}px`):A==="left"&&(S=`${r.floating.width+f}px`,y=l?E:`${_}px`),{data:{x:S,y}}}});function $9(e){const[t,n="center"]=e.split("-");return[t,n]}var y5=V9,v5=K9,R5=Y9,D5=W9;function T5(e){const t=C.useRef({value:e,previous:e});return C.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var x5=[" ","Enter","ArrowUp","ArrowDown"],b5=[" ","Enter"],bc="Select",[Zf,Wf,B5]=sR(bc),[uo,FX]=yc(bc,[B5,G9]),$f=G9(),[O5,bi]=uo(bc),[F5,L5]=uo(bc),q9=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:a,onOpenChange:o,value:l,defaultValue:d,onValueChange:f,dir:A,name:m,autoComplete:E,disabled:g,required:_,form:S}=e,y=$f(t),[v,R]=C.useState(null),[D,x]=C.useState(null),[L,b]=C.useState(!1),O=EU(A),[F=!1,j]=k0({prop:r,defaultProp:a,onChange:o}),[G,K]=k0({prop:l,defaultProp:d,onChange:f}),Ae=C.useRef(null),se=v?S||!!v.closest("form"):!0,[de,$]=C.useState(new Set),J=Array.from(de).map(k=>k.props.value).join(";");return N.jsx(y5,{...y,children:N.jsxs(O5,{required:_,scope:t,trigger:v,onTriggerChange:R,valueNode:D,onValueNodeChange:x,valueNodeHasChildren:L,onValueNodeHasChildrenChange:b,contentId:mr(),value:G,onValueChange:K,open:F,onOpenChange:j,dir:O,triggerPointerDownPosRef:Ae,disabled:g,children:[N.jsx(Zf.Provider,{scope:t,children:N.jsx(F5,{scope:e.__scopeSelect,onNativeOptionAdd:C.useCallback(k=>{$(ne=>new Set(ne).add(k))},[]),onNativeOptionRemove:C.useCallback(k=>{$(ne=>{const ee=new Set(ne);return ee.delete(k),ee})},[]),children:n})}),se?N.jsxs(SD,{"aria-hidden":!0,required:_,tabIndex:-1,name:m,autoComplete:E,value:G,onChange:k=>K(k.target.value),disabled:g,form:S,children:[G===void 0?N.jsx("option",{value:""}):null,Array.from(de)]},J):null]})})};q9.displayName=bc;var Q9="SelectTrigger",X9=C.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...a}=e,o=$f(n),l=bi(Q9,n),d=l.disabled||r,f=xt(t,l.onTriggerChange),A=Wf(n),m=C.useRef("touch"),[E,g,_]=CD(y=>{const v=A().filter(x=>!x.disabled),R=v.find(x=>x.value===l.value),D=yD(v,y,R);D!==void 0&&l.onValueChange(D.value)}),S=y=>{d||(l.onOpenChange(!0),_()),y&&(l.triggerPointerDownPosRef.current={x:Math.round(y.pageX),y:Math.round(y.pageY)})};return N.jsx(v5,{asChild:!0,...o,children:N.jsx(tt.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:d,"data-disabled":d?"":void 0,"data-placeholder":ID(l.value)?"":void 0,...a,ref:f,onClick:ot(a.onClick,y=>{y.currentTarget.focus(),m.current!=="mouse"&&S(y)}),onPointerDown:ot(a.onPointerDown,y=>{m.current=y.pointerType;const v=y.target;v.hasPointerCapture(y.pointerId)&&v.releasePointerCapture(y.pointerId),y.button===0&&y.ctrlKey===!1&&y.pointerType==="mouse"&&(S(y),y.preventDefault())}),onKeyDown:ot(a.onKeyDown,y=>{const v=E.current!=="";!(y.ctrlKey||y.altKey||y.metaKey)&&y.key.length===1&&g(y.key),!(v&&y.key===" ")&&x5.includes(y.key)&&(S(),y.preventDefault())})})})});X9.displayName=Q9;var J9="SelectValue",eD=C.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:a,children:o,placeholder:l="",...d}=e,f=bi(J9,n),{onValueNodeHasChildrenChange:A}=f,m=o!==void 0,E=xt(t,f.onValueNodeChange);return gn(()=>{A(m)},[A,m]),N.jsx(tt.span,{...d,ref:E,style:{pointerEvents:"none"},children:ID(f.value)?N.jsx(N.Fragment,{children:l}):o})});eD.displayName=J9;var w5="SelectIcon",tD=C.forwardRef((e,t)=>{const{__scopeSelect:n,children:r,...a}=e;return N.jsx(tt.span,{"aria-hidden":!0,...a,ref:t,children:r||"▼"})});tD.displayName=w5;var M5="SelectPortal",nD=e=>N.jsx(wf,{asChild:!0,...e});nD.displayName=M5;var ya="SelectContent",rD=C.forwardRef((e,t)=>{const n=bi(ya,e.__scopeSelect),[r,a]=C.useState();if(gn(()=>{a(new DocumentFragment)},[]),!n.open){const o=r;return o?xa.createPortal(N.jsx(uD,{scope:e.__scopeSelect,children:N.jsx(Zf.Slot,{scope:e.__scopeSelect,children:N.jsx("div",{children:e.children})})}),o):null}return N.jsx(iD,{...e,ref:t})});rD.displayName=ya;var Sr=10,[uD,Bi]=uo(ya),H5="SelectContentImpl",iD=C.forwardRef((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:a,onEscapeKeyDown:o,onPointerDownOutside:l,side:d,sideOffset:f,align:A,alignOffset:m,arrowPadding:E,collisionBoundary:g,collisionPadding:_,sticky:S,hideWhenDetached:y,avoidCollisions:v,...R}=e,D=bi(ya,n),[x,L]=C.useState(null),[b,O]=C.useState(null),F=xt(t,me=>L(me)),[j,G]=C.useState(null),[K,Ae]=C.useState(null),se=Wf(n),[de,$]=C.useState(!1),J=C.useRef(!1);C.useEffect(()=>{if(x)return a9(x)},[x]),QR();const k=C.useCallback(me=>{const[ve,...je]=se().map(it=>it.ref.current),[we]=je.slice(-1),Ze=document.activeElement;for(const it of me)if(it===Ze||(it==null||it.scrollIntoView({block:"nearest"}),it===ve&&b&&(b.scrollTop=0),it===we&&b&&(b.scrollTop=b.scrollHeight),it==null||it.focus(),document.activeElement!==Ze))return},[se,b]),ne=C.useCallback(()=>k([j,x]),[k,j,x]);C.useEffect(()=>{de&&ne()},[de,ne]);const{onOpenChange:ee,triggerPointerDownPosRef:pe}=D;C.useEffect(()=>{if(x){let me={x:0,y:0};const ve=we=>{var Ze,it;me={x:Math.abs(Math.round(we.pageX)-(((Ze=pe.current)==null?void 0:Ze.x)??0)),y:Math.abs(Math.round(we.pageY)-(((it=pe.current)==null?void 0:it.y)??0))}},je=we=>{me.x<=10&&me.y<=10?we.preventDefault():x.contains(we.target)||ee(!1),document.removeEventListener("pointermove",ve),pe.current=null};return pe.current!==null&&(document.addEventListener("pointermove",ve),document.addEventListener("pointerup",je,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",ve),document.removeEventListener("pointerup",je,{capture:!0})}}},[x,ee,pe]),C.useEffect(()=>{const me=()=>ee(!1);return window.addEventListener("blur",me),window.addEventListener("resize",me),()=>{window.removeEventListener("blur",me),window.removeEventListener("resize",me)}},[ee]);const[H,W]=CD(me=>{const ve=se().filter(Ze=>!Ze.disabled),je=ve.find(Ze=>Ze.ref.current===document.activeElement),we=yD(ve,me,je);we&&setTimeout(()=>we.ref.current.focus())}),V=C.useCallback((me,ve,je)=>{const we=!J.current&&!je;(D.value!==void 0&&D.value===ve||we)&&(G(me),we&&(J.current=!0))},[D.value]),re=C.useCallback(()=>x==null?void 0:x.focus(),[x]),te=C.useCallback((me,ve,je)=>{const we=!J.current&&!je;(D.value!==void 0&&D.value===ve||we)&&Ae(me)},[D.value]),ce=r==="popper"?eE:aD,Ee=ce===eE?{side:d,sideOffset:f,align:A,alignOffset:m,arrowPadding:E,collisionBoundary:g,collisionPadding:_,sticky:S,hideWhenDetached:y,avoidCollisions:v}:{};return N.jsx(uD,{scope:n,content:x,viewport:b,onViewportChange:O,itemRefCallback:V,selectedItem:j,onItemLeave:re,itemTextRefCallback:te,focusSelectedItem:ne,selectedItemText:K,position:r,isPositioned:de,searchRef:H,children:N.jsx(Ig,{as:_a,allowPinchZoom:!0,children:N.jsx(Ng,{asChild:!0,trapped:D.open,onMountAutoFocus:me=>{me.preventDefault()},onUnmountAutoFocus:ot(a,me=>{var ve;(ve=D.trigger)==null||ve.focus({preventScroll:!0}),me.preventDefault()}),children:N.jsx(Lf,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:o,onPointerDownOutside:l,onFocusOutside:me=>me.preventDefault(),onDismiss:()=>D.onOpenChange(!1),children:N.jsx(ce,{role:"listbox",id:D.contentId,"data-state":D.open?"open":"closed",dir:D.dir,onContextMenu:me=>me.preventDefault(),...R,...Ee,onPlaced:()=>$(!0),ref:F,style:{display:"flex",flexDirection:"column",outline:"none",...R.style},onKeyDown:ot(R.onKeyDown,me=>{const ve=me.ctrlKey||me.altKey||me.metaKey;if(me.key==="Tab"&&me.preventDefault(),!ve&&me.key.length===1&&W(me.key),["ArrowUp","ArrowDown","Home","End"].includes(me.key)){let we=se().filter(Ze=>!Ze.disabled).map(Ze=>Ze.ref.current);if(["ArrowUp","End"].includes(me.key)&&(we=we.slice().reverse()),["ArrowUp","ArrowDown"].includes(me.key)){const Ze=me.target,it=we.indexOf(Ze);we=we.slice(it+1)}setTimeout(()=>k(we)),me.preventDefault()}})})})})})})});iD.displayName=H5;var P5="SelectItemAlignedPosition",aD=C.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:r,...a}=e,o=bi(ya,n),l=Bi(ya,n),[d,f]=C.useState(null),[A,m]=C.useState(null),E=xt(t,F=>m(F)),g=Wf(n),_=C.useRef(!1),S=C.useRef(!0),{viewport:y,selectedItem:v,selectedItemText:R,focusSelectedItem:D}=l,x=C.useCallback(()=>{if(o.trigger&&o.valueNode&&d&&A&&y&&v&&R){const F=o.trigger.getBoundingClientRect(),j=A.getBoundingClientRect(),G=o.valueNode.getBoundingClientRect(),K=R.getBoundingClientRect();if(o.dir!=="rtl"){const Ze=K.left-j.left,it=G.left-Ze,It=F.left-it,qt=F.width+It,Er=Math.max(qt,j.width),Ln=window.innerWidth-Sr,Br=M3(it,[Sr,Math.max(Sr,Ln-Er)]);d.style.minWidth=qt+"px",d.style.left=Br+"px"}else{const Ze=j.right-K.right,it=window.innerWidth-G.right-Ze,It=window.innerWidth-F.right-it,qt=F.width+It,Er=Math.max(qt,j.width),Ln=window.innerWidth-Sr,Br=M3(it,[Sr,Math.max(Sr,Ln-Er)]);d.style.minWidth=qt+"px",d.style.right=Br+"px"}const Ae=g(),se=window.innerHeight-Sr*2,de=y.scrollHeight,$=window.getComputedStyle(A),J=parseInt($.borderTopWidth,10),k=parseInt($.paddingTop,10),ne=parseInt($.borderBottomWidth,10),ee=parseInt($.paddingBottom,10),pe=J+k+de+ee+ne,H=Math.min(v.offsetHeight*5,pe),W=window.getComputedStyle(y),V=parseInt(W.paddingTop,10),re=parseInt(W.paddingBottom,10),te=F.top+F.height/2-Sr,ce=se-te,Ee=v.offsetHeight/2,me=v.offsetTop+Ee,ve=J+k+me,je=pe-ve;if(ve<=te){const Ze=Ae.length>0&&v===Ae[Ae.length-1].ref.current;d.style.bottom="0px";const it=A.clientHeight-y.offsetTop-y.offsetHeight,It=Math.max(ce,Ee+(Ze?re:0)+it+ne),qt=ve+It;d.style.height=qt+"px"}else{const Ze=Ae.length>0&&v===Ae[0].ref.current;d.style.top="0px";const It=Math.max(te,J+y.offsetTop+(Ze?V:0)+Ee)+je;d.style.height=It+"px",y.scrollTop=ve-te+y.offsetTop}d.style.margin=`${Sr}px 0`,d.style.minHeight=H+"px",d.style.maxHeight=se+"px",r==null||r(),requestAnimationFrame(()=>_.current=!0)}},[g,o.trigger,o.valueNode,d,A,y,v,R,o.dir,r]);gn(()=>x(),[x]);const[L,b]=C.useState();gn(()=>{A&&b(window.getComputedStyle(A).zIndex)},[A]);const O=C.useCallback(F=>{F&&S.current===!0&&(x(),D==null||D(),S.current=!1)},[x,D]);return N.jsx(k5,{scope:n,contentWrapper:d,shouldExpandOnScrollRef:_,onScrollButtonChange:O,children:N.jsx("div",{ref:f,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:L},children:N.jsx(tt.div,{...a,ref:E,style:{boxSizing:"border-box",maxHeight:"100%",...a.style}})})})});aD.displayName=P5;var U5="SelectPopperPosition",eE=C.forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:a=Sr,...o}=e,l=$f(n);return N.jsx(R5,{...l,...o,ref:t,align:r,collisionPadding:a,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)"}})});eE.displayName=U5;var[k5,Hg]=uo(ya,{}),tE="SelectViewport",sD=C.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:r,...a}=e,o=Bi(tE,n),l=Hg(tE,n),d=xt(t,o.onViewportChange),f=C.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(Zf.Slot,{scope:n,children:N.jsx(tt.div,{"data-radix-select-viewport":"",role:"presentation",...a,ref:d,style:{position:"relative",flex:1,overflow:"hidden auto",...a.style},onScroll:ot(a.onScroll,A=>{const m=A.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-Sr*2,y=parseFloat(E.style.minHeight),v=parseFloat(E.style.height),R=Math.max(y,v);if(R<S){const D=R+_,x=Math.min(S,D),L=D-x;E.style.height=x+"px",E.style.bottom==="0px"&&(m.scrollTop=L>0?L:0,E.style.justifyContent="flex-end")}}}f.current=m.scrollTop})})})]})});sD.displayName=tE;var oD="SelectGroup",[G5,j5]=uo(oD),lD=C.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,a=mr();return N.jsx(G5,{scope:n,id:a,children:N.jsx(tt.div,{role:"group","aria-labelledby":a,...r,ref:t})})});lD.displayName=oD;var cD="SelectLabel",dD=C.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,a=j5(cD,n);return N.jsx(tt.div,{id:a.id,...r,ref:t})});dD.displayName=cD;var Q0="SelectItem",[V5,fD]=uo(Q0),AD=C.forwardRef((e,t)=>{const{__scopeSelect:n,value:r,disabled:a=!1,textValue:o,...l}=e,d=bi(Q0,n),f=Bi(Q0,n),A=d.value===r,[m,E]=C.useState(o??""),[g,_]=C.useState(!1),S=xt(t,D=>{var x;return(x=f.itemRefCallback)==null?void 0:x.call(f,D,r,a)}),y=mr(),v=C.useRef("touch"),R=()=>{a||(d.onValueChange(r),d.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(V5,{scope:n,value:r,disabled:a,textId:y,isSelected:A,onItemTextChange:C.useCallback(D=>{E(x=>x||((D==null?void 0:D.textContent)??"").trim())},[]),children:N.jsx(Zf.ItemSlot,{scope:n,value:r,disabled:a,textValue:m,children:N.jsx(tt.div,{role:"option","aria-labelledby":y,"data-highlighted":g?"":void 0,"aria-selected":A&&g,"data-state":A?"checked":"unchecked","aria-disabled":a||void 0,"data-disabled":a?"":void 0,tabIndex:a?void 0:-1,...l,ref:S,onFocus:ot(l.onFocus,()=>_(!0)),onBlur:ot(l.onBlur,()=>_(!1)),onClick:ot(l.onClick,()=>{v.current!=="mouse"&&R()}),onPointerUp:ot(l.onPointerUp,()=>{v.current==="mouse"&&R()}),onPointerDown:ot(l.onPointerDown,D=>{v.current=D.pointerType}),onPointerMove:ot(l.onPointerMove,D=>{var x;v.current=D.pointerType,a?(x=f.onItemLeave)==null||x.call(f):v.current==="mouse"&&D.currentTarget.focus({preventScroll:!0})}),onPointerLeave:ot(l.onPointerLeave,D=>{var x;D.currentTarget===document.activeElement&&((x=f.onItemLeave)==null||x.call(f))}),onKeyDown:ot(l.onKeyDown,D=>{var L;((L=f.searchRef)==null?void 0:L.current)!==""&&D.key===" "||(b5.includes(D.key)&&R(),D.key===" "&&D.preventDefault())})})})})});AD.displayName=Q0;var Nl="SelectItemText",hD=C.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:a,...o}=e,l=bi(Nl,n),d=Bi(Nl,n),f=fD(Nl,n),A=L5(Nl,n),[m,E]=C.useState(null),g=xt(t,R=>E(R),f.onItemTextChange,R=>{var D;return(D=d.itemTextRefCallback)==null?void 0:D.call(d,R,f.value,f.disabled)}),_=m==null?void 0:m.textContent,S=C.useMemo(()=>N.jsx("option",{value:f.value,disabled:f.disabled,children:_},f.value),[f.disabled,f.value,_]),{onNativeOptionAdd:y,onNativeOptionRemove:v}=A;return gn(()=>(y(S),()=>v(S)),[y,v,S]),N.jsxs(N.Fragment,{children:[N.jsx(tt.span,{id:f.textId,...o,ref:g}),f.isSelected&&l.valueNode&&!l.valueNodeHasChildren?xa.createPortal(o.children,l.valueNode):null]})});hD.displayName=Nl;var mD="SelectItemIndicator",pD=C.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return fD(mD,n).isSelected?N.jsx(tt.span,{"aria-hidden":!0,...r,ref:t}):null});pD.displayName=mD;var nE="SelectScrollUpButton",ED=C.forwardRef((e,t)=>{const n=Bi(nE,e.__scopeSelect),r=Hg(nE,e.__scopeSelect),[a,o]=C.useState(!1),l=xt(t,r.onScrollButtonChange);return gn(()=>{if(n.viewport&&n.isPositioned){let d=function(){const A=f.scrollTop>0;o(A)};const f=n.viewport;return d(),f.addEventListener("scroll",d),()=>f.removeEventListener("scroll",d)}},[n.viewport,n.isPositioned]),a?N.jsx(_D,{...e,ref:l,onAutoScroll:()=>{const{viewport:d,selectedItem:f}=n;d&&f&&(d.scrollTop=d.scrollTop-f.offsetHeight)}}):null});ED.displayName=nE;var rE="SelectScrollDownButton",gD=C.forwardRef((e,t)=>{const n=Bi(rE,e.__scopeSelect),r=Hg(rE,e.__scopeSelect),[a,o]=C.useState(!1),l=xt(t,r.onScrollButtonChange);return gn(()=>{if(n.viewport&&n.isPositioned){let d=function(){const A=f.scrollHeight-f.clientHeight,m=Math.ceil(f.scrollTop)<A;o(m)};const f=n.viewport;return d(),f.addEventListener("scroll",d),()=>f.removeEventListener("scroll",d)}},[n.viewport,n.isPositioned]),a?N.jsx(_D,{...e,ref:l,onAutoScroll:()=>{const{viewport:d,selectedItem:f}=n;d&&f&&(d.scrollTop=d.scrollTop+f.offsetHeight)}}):null});gD.displayName=rE;var _D=C.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...a}=e,o=Bi("SelectScrollButton",n),l=C.useRef(null),d=Wf(n),f=C.useCallback(()=>{l.current!==null&&(window.clearInterval(l.current),l.current=null)},[]);return C.useEffect(()=>()=>f(),[f]),gn(()=>{var m;const A=d().find(E=>E.ref.current===document.activeElement);(m=A==null?void 0:A.ref.current)==null||m.scrollIntoView({block:"nearest"})},[d]),N.jsx(tt.div,{"aria-hidden":!0,...a,ref:t,style:{flexShrink:0,...a.style},onPointerDown:ot(a.onPointerDown,()=>{l.current===null&&(l.current=window.setInterval(r,50))}),onPointerMove:ot(a.onPointerMove,()=>{var A;(A=o.onItemLeave)==null||A.call(o),l.current===null&&(l.current=window.setInterval(r,50))}),onPointerLeave:ot(a.onPointerLeave,()=>{f()})})}),z5="SelectSeparator",ND=C.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return N.jsx(tt.div,{"aria-hidden":!0,...r,ref:t})});ND.displayName=z5;var uE="SelectArrow",K5=C.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,a=$f(n),o=bi(uE,n),l=Bi(uE,n);return o.open&&l.position==="popper"?N.jsx(D5,{...a,...r,ref:t}):null});K5.displayName=uE;function ID(e){return e===""||e===void 0}var SD=C.forwardRef((e,t)=>{const{value:n,...r}=e,a=C.useRef(null),o=xt(t,a),l=T5(n);return C.useEffect(()=>{const d=a.current,f=window.HTMLSelectElement.prototype,m=Object.getOwnPropertyDescriptor(f,"value").set;if(l!==n&&m){const E=new Event("change",{bubbles:!0});m.call(d,n),d.dispatchEvent(E)}},[l,n]),N.jsx(Mf,{asChild:!0,children:N.jsx("select",{...r,ref:o,defaultValue:n})})});SD.displayName="BubbleSelect";function CD(e){const t=$n(e),n=C.useRef(""),r=C.useRef(0),a=C.useCallback(l=>{const d=n.current+l;t(d),function f(A){n.current=A,window.clearTimeout(r.current),A!==""&&(r.current=window.setTimeout(()=>f(""),1e3))}(d)},[t]),o=C.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return C.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,a,o]}function yD(e,t,n){const a=t.length>1&&Array.from(t).every(A=>A===t[0])?t[0]:t,o=n?e.indexOf(n):-1;let l=Y5(e,Math.max(o,0));a.length===1&&(l=l.filter(A=>A!==n));const f=l.find(A=>A.textValue.toLowerCase().startsWith(a.toLowerCase()));return f!==n?f:void 0}function Y5(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var Z5=q9,W5=X9,$5=eD,q5=tD,Q5=nD,X5=rD,J5=sD,ek=lD,tk=dD,nk=AD,rk=hD,uk=pD,ik=ED,ak=gD,sk=ND;const ok=Z5,lk=ek,ck=$5,dk=({validationStyleEnabled:e=!1,className:t,children:n,...r})=>N.jsxs(W5,{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(q5,{asChild:!0,children:N.jsx(S2,{className:"size-4 opacity-50"})})]}),vD=({className:e,...t})=>N.jsx(ik,{className:Re("flex cursor-default items-center justify-center py-1",e),...t,children:N.jsx(N2,{})}),RD=({className:e,...t})=>N.jsx(ak,{className:Re("flex cursor-default items-center justify-center py-1",e),...t,children:N.jsx($v,{})}),fk=({className:e,children:t,position:n="popper",...r})=>N.jsx(Q5,{children:N.jsxs(X5,{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(vD,{}),N.jsx(J5,{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(RD,{})]})}),Ak=({className:e,...t})=>N.jsx(tk,{className:Re("px-1 py-0.5 text-sm font-semibold",e),...t}),hk=({className:e,children:t,...n})=>N.jsxs(nk,{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(uk,{children:N.jsx(eo,{className:"size-4"})})}),N.jsx(rk,{children:t})]}),mk=({className:e,...t})=>N.jsx(sk,{className:Re("-mx-1 my-1 h-px bg-red-300",e),...t}),He=ok;He.Group=lk;He.Value=ck;He.Trigger=dk;He.ScrollUpButton=vD;He.ScrollDownButton=RD;He.Content=fk;He.Label=Ak;He.Item=hk;He.Separator=mk;const pk=e=>(e==null?void 0:e.getAttribute("aria-selected"))==="true",Ek=(e,t=pk,n=!1)=>{const[r,a]=C.useState(null),[o,l]=C.useState(null),d=e.current.length;return C.useEffect(()=>{const f=()=>{let y=null;if(o?y=o:y=e.current.find(t)??null,!y){a(D=>({left:0,width:0,...D,opacity:0}));return}const v=y.offsetLeft,R=y.offsetWidth;a({left:v,width:R,opacity:1})};f(),window.addEventListener("resize",f),window.addEventListener("DOMContentLoaded",f);const A=[];e.current.forEach(y=>{if(y){const v=new MutationObserver(R=>{for(const D of R)if(D.type==="attributes"&&D.attributeName==="aria-selected"){f();break}});v.observe(y,{attributes:!0,attributeFilter:["aria-selected"]}),A.push(v)}});const m=[],E=y=>{if(!y)return;const v=new ResizeObserver(()=>{f()});v.observe(y),m.push(v)},g=e.current.find(t)??null;g&&E(g),o&&E(o);const _=y=>{l(y.currentTarget)},S=()=>{l(null)};return n&&e.current.forEach(y=>{y==null||y.addEventListener("mouseenter",_),y==null||y.addEventListener("mouseleave",S)}),()=>{window.removeEventListener("resize",f),window.removeEventListener("DOMContentLoaded",f),A.forEach(y=>y.disconnect()),m.forEach(y=>y.disconnect()),e.current.forEach(y=>{y==null||y.removeEventListener("mouseenter",_),y==null||y.removeEventListener("mouseleave",S)})}},[e,t,o,d]),{choiceIndicatorPosition:r}},gk=[{content:"Off",value:!1},{content:"On",value:!0}],_k=pr("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"}}),Nk=pr("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"}}),Ik=pr("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"}}}),Bc=({choices:e=gk,value:t,defaultValue:n,onChange:r,color:a="primary",size:o="md",className:l})=>{const[d,f]=C.useState(t??n??e[0].value),A=C.useRef([]),m=C.useRef(null),{choiceIndicatorPosition:E}=Ek(A),g=_=>{f(_),r==null||r(_)};return C.useEffect(()=>{t!==void 0&&f(t)},[t]),N.jsx("div",{className:_k({color:a,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:y,value:v,...R}=_,D=typeof v=="string"||typeof v=="number",x=v===d;return C.createElement("button",{...R,className:Re(Nk({size:o})),key:D?v:S,role:"tab",onClick:()=>g(v),"aria-selected":x,disabled:x,ref:L=>{A.current[S]=L}},y)}),E&&N.jsx("div",{className:Re(Ik({color:a})),style:E,ref:m})]})})};var Sk=function(e,t){for(var n={};e.length;){var r=e[0],a=r.code,o=r.message,l=r.path.join(".");if(!n[l])if("unionErrors"in r){var d=r.unionErrors[0].errors[0];n[l]={message:d.message,type:d.code}}else n[l]={message:o,type:a};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,A=f&&f[r.code];n[l]=wR(l,t,n,a,A?[].concat(A,r.message):r.message)}e.shift()}return n},Ck=function(e,t,n){return n===void 0&&(n={}),function(r,a,o){try{return Promise.resolve(function(l,d){try{var f=Promise.resolve(e[n.mode==="sync"?"parse":"parseAsync"](r,t)).then(function(A){return o.shouldUseNativeValidation&&jR({},o),{errors:{},values:n.raw?r:A}})}catch(A){return d(A)}return f&&f.then?f.then(void 0,d):f}(0,function(l){if(function(d){return Array.isArray(d==null?void 0:d.errors)}(l))return{values:{},errors:AH(Sk(l.errors,!o.shouldUseNativeValidation&&o.criteriaMode==="all"),o)};throw l}))}catch(l){return Promise.reject(l)}}};const tp=async e=>e&&typeof e.then=="function"?await e:e,yk=({schema:e,onSubmit:t,onSubmitSuccess:n,onSubmitError:r,className:a,children:o,autoComplete:l,...d})=>{const f=async A=>{const m=(e==null?void 0:e.safeParse(A))??{success:!0,data:void 0};await tp(t==null?void 0:t(A)),m.success?await tp(n==null?void 0:n(m.data)):await tp(r==null?void 0:r(new Error(m.error.errors.map(E=>E.message).join(", "))))};return N.jsx(qM,{...d,children:N.jsx("form",{className:Re("flex size-full flex-col gap-y-6",a),onSubmit:d.handleSubmit(f),autoComplete:l?"on":"off",children:o})})},vk=(e,t)=>{const n=fH({resolver:Ck(e),...t}),r=n.formState.isSubmitting,a=n.formState.isSubmitted,o=n.formState.isLoading,l=n.formState.isValid;return{form:n,isSubmitting:r,isSubmitted:a,isLoading:o,isValid:l}},Rk=e=>{const{error:t,formItemId:n,formDescriptionId:r,formMessageId:a}=xi();return N.jsx(_a,{id:n,"aria-describedby":t?`${r} ${a}`:`${r}`,"aria-invalid":!!t,...e})},Dk=e=>{const{formDescriptionId:t}=xi();return N.jsx("p",{className:"text-neutral text-sm",id:t,...e})},Tk=({children:e,...t})=>{const{error:n,formMessageId:r}=xi(),a=n?String((n==null?void 0:n.message)??""):e;return a?N.jsx("p",{className:"text-error text-xs font-medium",role:"alert",id:r,...t,children:a}):null},qf=({label:e,description:t,isRequired:n,info:r,children:a,showErrorMessage:o=!0,htmlFor:l})=>N.jsxs(ut.Item,{className:"flex w-full flex-col gap-2 p-2",children:[(t||e)&&N.jsxs("div",{className:"flex flex-col gap-1 p-1 leading-none",children:[e&&N.jsx(T9,{isRequired:n,info:r,htmlFor:l,children:e}),t&&N.jsx(ut.Description,{children:t})]}),N.jsx(ut.Control,{children:a}),o&&N.jsx(ut.Message,{"data-testid":"error-message"})]}),xk=({field:e,name:t,label:n,Element:r,isRequired:a=!1,info:o,description:l,showErrorMessage:d=!0,...f})=>{const{error:A}=xi();return N.jsx(qf,{htmlFor:t,label:n,description:l,isRequired:a,info:o,showErrorMessage:d,"aria-invalid":!!A,children:N.jsx(r,{"data-testid":"element",id:t,...e,...f,children:f.children})})},Oi=e=>{const{control:t}=Ti();return N.jsx(ut.Field,{control:t,name:e.name,render:({field:n})=>N.jsx(xk,{...e,field:n})})},bk=e=>N.jsx(Oi,{id:e.name,"data-testid":e.name,Element:to,...e}),Bk=({autoComplete:e,...t})=>N.jsx(Oi,{Element:_H,id:t.name,"data-testid":t.name,autoComplete:e,minLength:6,maxLength:255,...t}),Ok=e=>N.jsx(Oi,{Element:YR,id:e.name,"data-testid":e.name,...e}),Fk=e=>N.jsx(Oi,{id:e.name,"data-testid":e.name,Element:WR,...e}),Lk=e=>N.jsx(Oi,{id:e.name,"data-testid":e.name,Element:$R,...e}),wk=e=>N.jsx(Oi,{Element:_g,id:e.name,"data-testid":e.name,...e}),Mk=({inputLabel:e,...t})=>N.jsx(gH,{...t,label:e}),Hk=({autoComplete:e,...t})=>N.jsx(Oi,{Element:Mk,id:t.name,"data-testid":t.name,autoComplete:e,minLength:6,maxLength:255,...t}),Pk=({name:e,description:t,label:n,isRequired:r,info:a,showErrorMessage:o,children:l,...d})=>{const{control:f}=Ti();return N.jsx(ut.Field,{control:f,name:e,render:({field:A})=>{const{error:m}=xi();return N.jsx(qf,{htmlFor:e,label:n,description:t,isRequired:r,info:a,showErrorMessage:o,"aria-invalid":!!m,children:N.jsx(mn,{onValueChange:A.onChange,values:A.value,...d,children:l})})}})},Uk=({name:e,description:t,label:n,isRequired:r,info:a,showErrorMessage:o,children:l,...d})=>{const{control:f}=Ti();return N.jsx(ut.Field,{control:f,name:e,render:({field:A})=>{const{error:m}=xi();return N.jsx(qf,{htmlFor:e,label:n,description:t,isRequired:r,info:a,showErrorMessage:o,"aria-invalid":!!m,children:N.jsx(He,{onValueChange:A.onChange,defaultValue:A.value,...d,children:l})})}})},kk=({name:e,description:t,label:n,isRequired:r,info:a,showErrorMessage:o,children:l,...d})=>{const{control:f}=Ti();return N.jsx(ut.Field,{control:f,name:e,render:({field:A})=>{const{error:m}=xi();return N.jsx(qf,{htmlFor:e,label:n,description:t,isRequired:r,info:a,showErrorMessage:o,"aria-invalid":!!m,children:N.jsx(Bc,{...A,...d,children:l})})}})},ut=yk;ut.Description=Dk;ut.Control=Rk;ut.Field=pH;ut.Item=mH;ut.Label=T9;ut.Message=Tk;ut.Element=Oi;ut.Input=bk;ut.InputPassword=Bk;ut.Checkbox=Hk;ut.TextArea=Ok;ut.AutoSizedTextArea=wk;ut.Button=ht;ut.Select=Uk;ut.MultiSelect=Pk;ut.EditableFieldInput=Fk;ut.EditableFieldTextArea=Lk;ut.SwitchSelector=kk;var ct;(function(e){e.assertEqual=a=>a;function t(a){}e.assertIs=t;function n(a){throw new Error}e.assertNever=n,e.arrayToEnum=a=>{const o={};for(const l of a)o[l]=l;return o},e.getValidEnumValues=a=>{const o=e.objectKeys(a).filter(d=>typeof a[a[d]]!="number"),l={};for(const d of o)l[d]=a[d];return e.objectValues(l)},e.objectValues=a=>e.objectKeys(a).map(function(o){return a[o]}),e.objectKeys=typeof Object.keys=="function"?a=>Object.keys(a):a=>{const o=[];for(const l in a)Object.prototype.hasOwnProperty.call(a,l)&&o.push(l);return o},e.find=(a,o)=>{for(const l of a)if(o(l))return l},e.isInteger=typeof Number.isInteger=="function"?a=>Number.isInteger(a):a=>typeof a=="number"&&isFinite(a)&&Math.floor(a)===a;function r(a,o=" | "){return a.map(l=>typeof l=="string"?`'${l}'`:l).join(o)}e.joinValues=r,e.jsonStringifyReplacer=(a,o)=>typeof o=="bigint"?o.toString():o})(ct||(ct={}));var iE;(function(e){e.mergeShapes=(t,n)=>({...t,...n})})(iE||(iE={}));const De=ct.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),Cu=e=>{switch(typeof e){case"undefined":return De.undefined;case"string":return De.string;case"number":return isNaN(e)?De.nan:De.number;case"boolean":return De.boolean;case"function":return De.function;case"bigint":return De.bigint;case"symbol":return De.symbol;case"object":return Array.isArray(e)?De.array:e===null?De.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?De.promise:typeof Map<"u"&&e instanceof Map?De.map:typeof Set<"u"&&e instanceof Set?De.set:typeof Date<"u"&&e instanceof Date?De.date:De.object;default:return De.unknown}},he=ct.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"]),Gk=e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:");class Zn 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:[]},a=o=>{for(const l of o.issues)if(l.code==="invalid_union")l.unionErrors.map(a);else if(l.code==="invalid_return_type")a(l.returnTypeError);else if(l.code==="invalid_arguments")a(l.argumentsError);else if(l.path.length===0)r._errors.push(n(l));else{let d=r,f=0;for(;f<l.path.length;){const A=l.path[f];f===l.path.length-1?(d[A]=d[A]||{_errors:[]},d[A]._errors.push(n(l))):d[A]=d[A]||{_errors:[]},d=d[A],f++}}};return a(this),r}static assert(t){if(!(t instanceof Zn))throw new Error(`Not a ZodError: ${t}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,ct.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(t=n=>n.message){const n={},r=[];for(const a of this.issues)a.path.length>0?(n[a.path[0]]=n[a.path[0]]||[],n[a.path[0]].push(t(a))):r.push(t(a));return{formErrors:r,fieldErrors:n}}get formErrors(){return this.flatten()}}Zn.create=e=>new Zn(e);const Gs=(e,t)=>{let n;switch(e.code){case he.invalid_type:e.received===De.undefined?n="Required":n=`Expected ${e.expected}, received ${e.received}`;break;case he.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,ct.jsonStringifyReplacer)}`;break;case he.unrecognized_keys:n=`Unrecognized key(s) in object: ${ct.joinValues(e.keys,", ")}`;break;case he.invalid_union:n="Invalid input";break;case he.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${ct.joinValues(e.options)}`;break;case he.invalid_enum_value:n=`Invalid enum value. Expected ${ct.joinValues(e.options)}, received '${e.received}'`;break;case he.invalid_arguments:n="Invalid function arguments";break;case he.invalid_return_type:n="Invalid function return type";break;case he.invalid_date:n="Invalid date";break;case he.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}"`:ct.assertNever(e.validation):e.validation!=="regex"?n=`Invalid ${e.validation}`:n="Invalid";break;case he.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 he.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 he.custom:n="Invalid input";break;case he.invalid_intersection_types:n="Intersection results could not be merged";break;case he.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case he.not_finite:n="Number must be finite";break;default:n=t.defaultError,ct.assertNever(e)}return{message:n}};let DD=Gs;function jk(e){DD=e}function X0(){return DD}const J0=e=>{const{data:t,path:n,errorMaps:r,issueData:a}=e,o=[...n,...a.path||[]],l={...a,path:o};if(a.message!==void 0)return{...a,path:o,message:a.message};let d="";const f=r.filter(A=>!!A).slice().reverse();for(const A of f)d=A(l,{data:t,defaultError:d}).message;return{...a,path:o,message:d}},Vk=[];function Ce(e,t){const n=X0(),r=J0({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,n,n===Gs?void 0:Gs].filter(a=>!!a)});e.common.issues.push(r)}class _n{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 a of n){if(a.status==="aborted")return ze;a.status==="dirty"&&t.dirty(),r.push(a.value)}return{status:t.value,value:r}}static async mergeObjectAsync(t,n){const r=[];for(const a of n){const o=await a.key,l=await a.value;r.push({key:o,value:l})}return _n.mergeObjectSync(t,r)}static mergeObjectSync(t,n){const r={};for(const a of n){const{key:o,value:l}=a;if(o.status==="aborted"||l.status==="aborted")return ze;o.status==="dirty"&&t.dirty(),l.status==="dirty"&&t.dirty(),o.value!=="__proto__"&&(typeof l.value<"u"||a.alwaysSet)&&(r[o.value]=l.value)}return{status:t.value,value:r}}}const ze=Object.freeze({status:"aborted"}),vs=e=>({status:"dirty",value:e}),vn=e=>({status:"valid",value:e}),aE=e=>e.status==="aborted",sE=e=>e.status==="dirty",va=e=>e.status==="valid",Yl=e=>typeof Promise<"u"&&e instanceof Promise;function ef(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 TD(e,t,n,r,a){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 Fe;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t==null?void 0:t.message})(Fe||(Fe={}));var Il,Sl;class qr{constructor(t,n,r,a){this._cachedPath=[],this.parent=t,this.data=n,this._path=r,this._key=a}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 K3=(e,t)=>{if(va(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 Zn(e.common.issues);return this._error=n,this._error}}};function $e(e){if(!e)return{};const{errorMap:t,invalid_type_error:n,required_error:r,description:a}=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:a}:{errorMap:(l,d)=>{var f,A;const{message:m}=e;return l.code==="invalid_enum_value"?{message:m??d.defaultError}:typeof d.data>"u"?{message:(f=m??r)!==null&&f!==void 0?f:d.defaultError}:l.code!=="invalid_type"?{message:d.defaultError}:{message:(A=m??n)!==null&&A!==void 0?A:d.defaultError}},description:a}}class Je{get description(){return this._def.description}_getType(t){return Cu(t.data)}_getOrReturnCtx(t,n){return n||{common:t.parent.common,data:t.data,parsedType:Cu(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new _n,ctx:{common:t.parent.common,data:t.data,parsedType:Cu(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){const n=this._parse(t);if(Yl(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 a={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:Cu(t)},o=this._parseSync({data:t,path:a.path,parent:a});return K3(a,o)}"~validate"(t){var n,r;const a={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Cu(t)};if(!this["~standard"].async)try{const o=this._parseSync({data:t,path:[],parent:a});return va(o)?{value:o.value}:{issues:a.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),a.common={issues:[],async:!0}}return this._parseAsync({data:t,path:[],parent:a}).then(o=>va(o)?{value:o.value}:{issues:a.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:Cu(t)},a=this._parse({data:t,path:r.path,parent:r}),o=await(Yl(a)?a:Promise.resolve(a));return K3(r,o)}refine(t,n){const r=a=>typeof n=="string"||typeof n>"u"?{message:n}:typeof n=="function"?n(a):n;return this._refinement((a,o)=>{const l=t(a),d=()=>o.addIssue({code:he.custom,...r(a)});return typeof Promise<"u"&&l instanceof Promise?l.then(f=>f?!0:(d(),!1)):l?!0:(d(),!1)})}refinement(t,n){return this._refinement((r,a)=>t(r)?!0:(a.addIssue(typeof n=="function"?n(r,a):n),!1))}_refinement(t){return new xr({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 Kr.create(this,this._def)}nullable(){return Si.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Rr.create(this)}promise(){return Vs.create(this,this._def)}or(t){return ql.create([this,t],this._def)}and(t){return Ql.create(this,t,this._def)}transform(t){return new xr({...$e(this._def),schema:this,typeName:Ge.ZodEffects,effect:{type:"transform",transform:t}})}default(t){const n=typeof t=="function"?t:()=>t;return new nc({...$e(this._def),innerType:this,defaultValue:n,typeName:Ge.ZodDefault})}brand(){return new Pg({typeName:Ge.ZodBranded,type:this,...$e(this._def)})}catch(t){const n=typeof t=="function"?t:()=>t;return new rc({...$e(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 Oc.create(this,t)}readonly(){return uc.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const zk=/^c[^\s-]{8,}$/i,Kk=/^[0-9a-z]+$/,Yk=/^[0-9A-HJKMNP-TV-Z]{26}$/i,Zk=/^[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,Wk=/^[a-z0-9_-]{21}$/i,$k=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,qk=/^[-+]?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)?)??$/,Qk=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,Xk="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let np;const Jk=/^(?:(?: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])$/,eG=/^(?:(?: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])$/,tG=/^(([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]))$/,nG=/^(([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])$/,rG=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,uG=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,xD="((\\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])))",iG=new RegExp(`^${xD}$`);function bD(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 aG(e){return new RegExp(`^${bD(e)}$`)}function BD(e){let t=`${xD}T${bD(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 sG(e,t){return!!((t==="v4"||!t)&&Jk.test(e)||(t==="v6"||!t)&&tG.test(e))}function oG(e,t){if(!$k.test(e))return!1;try{const[n]=e.split("."),r=n.replace(/-/g,"+").replace(/_/g,"/").padEnd(n.length+(4-n.length%4)%4,"="),a=JSON.parse(atob(r));return!(typeof a!="object"||a===null||!a.typ||!a.alg||t&&a.alg!==t)}catch{return!1}}function lG(e,t){return!!((t==="v4"||!t)&&eG.test(e)||(t==="v6"||!t)&&nG.test(e))}class vr extends Je{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==De.string){const o=this._getOrReturnCtx(t);return Ce(o,{code:he.invalid_type,expected:De.string,received:o.parsedType}),ze}const r=new _n;let a;for(const o of this._def.checks)if(o.kind==="min")t.data.length<o.value&&(a=this._getOrReturnCtx(t,a),Ce(a,{code:he.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&&(a=this._getOrReturnCtx(t,a),Ce(a,{code:he.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,d=t.data.length<o.value;(l||d)&&(a=this._getOrReturnCtx(t,a),l?Ce(a,{code:he.too_big,maximum:o.value,type:"string",inclusive:!0,exact:!0,message:o.message}):d&&Ce(a,{code:he.too_small,minimum:o.value,type:"string",inclusive:!0,exact:!0,message:o.message}),r.dirty())}else if(o.kind==="email")Qk.test(t.data)||(a=this._getOrReturnCtx(t,a),Ce(a,{validation:"email",code:he.invalid_string,message:o.message}),r.dirty());else if(o.kind==="emoji")np||(np=new RegExp(Xk,"u")),np.test(t.data)||(a=this._getOrReturnCtx(t,a),Ce(a,{validation:"emoji",code:he.invalid_string,message:o.message}),r.dirty());else if(o.kind==="uuid")Zk.test(t.data)||(a=this._getOrReturnCtx(t,a),Ce(a,{validation:"uuid",code:he.invalid_string,message:o.message}),r.dirty());else if(o.kind==="nanoid")Wk.test(t.data)||(a=this._getOrReturnCtx(t,a),Ce(a,{validation:"nanoid",code:he.invalid_string,message:o.message}),r.dirty());else if(o.kind==="cuid")zk.test(t.data)||(a=this._getOrReturnCtx(t,a),Ce(a,{validation:"cuid",code:he.invalid_string,message:o.message}),r.dirty());else if(o.kind==="cuid2")Kk.test(t.data)||(a=this._getOrReturnCtx(t,a),Ce(a,{validation:"cuid2",code:he.invalid_string,message:o.message}),r.dirty());else if(o.kind==="ulid")Yk.test(t.data)||(a=this._getOrReturnCtx(t,a),Ce(a,{validation:"ulid",code:he.invalid_string,message:o.message}),r.dirty());else if(o.kind==="url")try{new URL(t.data)}catch{a=this._getOrReturnCtx(t,a),Ce(a,{validation:"url",code:he.invalid_string,message:o.message}),r.dirty()}else o.kind==="regex"?(o.regex.lastIndex=0,o.regex.test(t.data)||(a=this._getOrReturnCtx(t,a),Ce(a,{validation:"regex",code:he.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)||(a=this._getOrReturnCtx(t,a),Ce(a,{code:he.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)||(a=this._getOrReturnCtx(t,a),Ce(a,{code:he.invalid_string,validation:{startsWith:o.value},message:o.message}),r.dirty()):o.kind==="endsWith"?t.data.endsWith(o.value)||(a=this._getOrReturnCtx(t,a),Ce(a,{code:he.invalid_string,validation:{endsWith:o.value},message:o.message}),r.dirty()):o.kind==="datetime"?BD(o).test(t.data)||(a=this._getOrReturnCtx(t,a),Ce(a,{code:he.invalid_string,validation:"datetime",message:o.message}),r.dirty()):o.kind==="date"?iG.test(t.data)||(a=this._getOrReturnCtx(t,a),Ce(a,{code:he.invalid_string,validation:"date",message:o.message}),r.dirty()):o.kind==="time"?aG(o).test(t.data)||(a=this._getOrReturnCtx(t,a),Ce(a,{code:he.invalid_string,validation:"time",message:o.message}),r.dirty()):o.kind==="duration"?qk.test(t.data)||(a=this._getOrReturnCtx(t,a),Ce(a,{validation:"duration",code:he.invalid_string,message:o.message}),r.dirty()):o.kind==="ip"?sG(t.data,o.version)||(a=this._getOrReturnCtx(t,a),Ce(a,{validation:"ip",code:he.invalid_string,message:o.message}),r.dirty()):o.kind==="jwt"?oG(t.data,o.alg)||(a=this._getOrReturnCtx(t,a),Ce(a,{validation:"jwt",code:he.invalid_string,message:o.message}),r.dirty()):o.kind==="cidr"?lG(t.data,o.version)||(a=this._getOrReturnCtx(t,a),Ce(a,{validation:"cidr",code:he.invalid_string,message:o.message}),r.dirty()):o.kind==="base64"?rG.test(t.data)||(a=this._getOrReturnCtx(t,a),Ce(a,{validation:"base64",code:he.invalid_string,message:o.message}),r.dirty()):o.kind==="base64url"?uG.test(t.data)||(a=this._getOrReturnCtx(t,a),Ce(a,{validation:"base64url",code:he.invalid_string,message:o.message}),r.dirty()):ct.assertNever(o);return{status:r.value,value:t.data}}_regex(t,n,r){return this.refinement(a=>t.test(a),{validation:n,code:he.invalid_string,...Fe.errToObj(r)})}_addCheck(t){return new vr({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...Fe.errToObj(t)})}url(t){return this._addCheck({kind:"url",...Fe.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...Fe.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...Fe.errToObj(t)})}nanoid(t){return this._addCheck({kind:"nanoid",...Fe.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...Fe.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...Fe.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...Fe.errToObj(t)})}base64(t){return this._addCheck({kind:"base64",...Fe.errToObj(t)})}base64url(t){return this._addCheck({kind:"base64url",...Fe.errToObj(t)})}jwt(t){return this._addCheck({kind:"jwt",...Fe.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...Fe.errToObj(t)})}cidr(t){return this._addCheck({kind:"cidr",...Fe.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,...Fe.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,...Fe.errToObj(t==null?void 0:t.message)})}duration(t){return this._addCheck({kind:"duration",...Fe.errToObj(t)})}regex(t,n){return this._addCheck({kind:"regex",regex:t,...Fe.errToObj(n)})}includes(t,n){return this._addCheck({kind:"includes",value:t,position:n==null?void 0:n.position,...Fe.errToObj(n==null?void 0:n.message)})}startsWith(t,n){return this._addCheck({kind:"startsWith",value:t,...Fe.errToObj(n)})}endsWith(t,n){return this._addCheck({kind:"endsWith",value:t,...Fe.errToObj(n)})}min(t,n){return this._addCheck({kind:"min",value:t,...Fe.errToObj(n)})}max(t,n){return this._addCheck({kind:"max",value:t,...Fe.errToObj(n)})}length(t,n){return this._addCheck({kind:"length",value:t,...Fe.errToObj(n)})}nonempty(t){return this.min(1,Fe.errToObj(t))}trim(){return new vr({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new vr({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new vr({...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}}vr.create=e=>{var t;return new vr({checks:[],typeName:Ge.ZodString,coerce:(t=e==null?void 0:e.coerce)!==null&&t!==void 0?t:!1,...$e(e)})};function cG(e,t){const n=(e.toString().split(".")[1]||"").length,r=(t.toString().split(".")[1]||"").length,a=n>r?n:r,o=parseInt(e.toFixed(a).replace(".","")),l=parseInt(t.toFixed(a).replace(".",""));return o%l/Math.pow(10,a)}class _i extends Je{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(t){if(this._def.coerce&&(t.data=Number(t.data)),this._getType(t)!==De.number){const o=this._getOrReturnCtx(t);return Ce(o,{code:he.invalid_type,expected:De.number,received:o.parsedType}),ze}let r;const a=new _n;for(const o of this._def.checks)o.kind==="int"?ct.isInteger(t.data)||(r=this._getOrReturnCtx(t,r),Ce(r,{code:he.invalid_type,expected:"integer",received:"float",message:o.message}),a.dirty()):o.kind==="min"?(o.inclusive?t.data<o.value:t.data<=o.value)&&(r=this._getOrReturnCtx(t,r),Ce(r,{code:he.too_small,minimum:o.value,type:"number",inclusive:o.inclusive,exact:!1,message:o.message}),a.dirty()):o.kind==="max"?(o.inclusive?t.data>o.value:t.data>=o.value)&&(r=this._getOrReturnCtx(t,r),Ce(r,{code:he.too_big,maximum:o.value,type:"number",inclusive:o.inclusive,exact:!1,message:o.message}),a.dirty()):o.kind==="multipleOf"?cG(t.data,o.value)!==0&&(r=this._getOrReturnCtx(t,r),Ce(r,{code:he.not_multiple_of,multipleOf:o.value,message:o.message}),a.dirty()):o.kind==="finite"?Number.isFinite(t.data)||(r=this._getOrReturnCtx(t,r),Ce(r,{code:he.not_finite,message:o.message}),a.dirty()):ct.assertNever(o);return{status:a.value,value:t.data}}gte(t,n){return this.setLimit("min",t,!0,Fe.toString(n))}gt(t,n){return this.setLimit("min",t,!1,Fe.toString(n))}lte(t,n){return this.setLimit("max",t,!0,Fe.toString(n))}lt(t,n){return this.setLimit("max",t,!1,Fe.toString(n))}setLimit(t,n,r,a){return new _i({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:Fe.toString(a)}]})}_addCheck(t){return new _i({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:Fe.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:Fe.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:Fe.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:Fe.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:Fe.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:Fe.toString(n)})}finite(t){return this._addCheck({kind:"finite",message:Fe.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:Fe.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:Fe.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"&&ct.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)}}_i.create=e=>new _i({checks:[],typeName:Ge.ZodNumber,coerce:(e==null?void 0:e.coerce)||!1,...$e(e)});class Ni extends Je{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(t){if(this._def.coerce)try{t.data=BigInt(t.data)}catch{return this._getInvalidInput(t)}if(this._getType(t)!==De.bigint)return this._getInvalidInput(t);let r;const a=new _n;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),Ce(r,{code:he.too_small,type:"bigint",minimum:o.value,inclusive:o.inclusive,message:o.message}),a.dirty()):o.kind==="max"?(o.inclusive?t.data>o.value:t.data>=o.value)&&(r=this._getOrReturnCtx(t,r),Ce(r,{code:he.too_big,type:"bigint",maximum:o.value,inclusive:o.inclusive,message:o.message}),a.dirty()):o.kind==="multipleOf"?t.data%o.value!==BigInt(0)&&(r=this._getOrReturnCtx(t,r),Ce(r,{code:he.not_multiple_of,multipleOf:o.value,message:o.message}),a.dirty()):ct.assertNever(o);return{status:a.value,value:t.data}}_getInvalidInput(t){const n=this._getOrReturnCtx(t);return Ce(n,{code:he.invalid_type,expected:De.bigint,received:n.parsedType}),ze}gte(t,n){return this.setLimit("min",t,!0,Fe.toString(n))}gt(t,n){return this.setLimit("min",t,!1,Fe.toString(n))}lte(t,n){return this.setLimit("max",t,!0,Fe.toString(n))}lt(t,n){return this.setLimit("max",t,!1,Fe.toString(n))}setLimit(t,n,r,a){return new Ni({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:Fe.toString(a)}]})}_addCheck(t){return new Ni({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:Fe.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:Fe.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:Fe.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:Fe.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:Fe.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}}Ni.create=e=>{var t;return new Ni({checks:[],typeName:Ge.ZodBigInt,coerce:(t=e==null?void 0:e.coerce)!==null&&t!==void 0?t:!1,...$e(e)})};class Zl extends Je{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==De.boolean){const r=this._getOrReturnCtx(t);return Ce(r,{code:he.invalid_type,expected:De.boolean,received:r.parsedType}),ze}return vn(t.data)}}Zl.create=e=>new Zl({typeName:Ge.ZodBoolean,coerce:(e==null?void 0:e.coerce)||!1,...$e(e)});class Ra extends Je{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==De.date){const o=this._getOrReturnCtx(t);return Ce(o,{code:he.invalid_type,expected:De.date,received:o.parsedType}),ze}if(isNaN(t.data.getTime())){const o=this._getOrReturnCtx(t);return Ce(o,{code:he.invalid_date}),ze}const r=new _n;let a;for(const o of this._def.checks)o.kind==="min"?t.data.getTime()<o.value&&(a=this._getOrReturnCtx(t,a),Ce(a,{code:he.too_small,message:o.message,inclusive:!0,exact:!1,minimum:o.value,type:"date"}),r.dirty()):o.kind==="max"?t.data.getTime()>o.value&&(a=this._getOrReturnCtx(t,a),Ce(a,{code:he.too_big,message:o.message,inclusive:!0,exact:!1,maximum:o.value,type:"date"}),r.dirty()):ct.assertNever(o);return{status:r.value,value:new Date(t.data.getTime())}}_addCheck(t){return new Ra({...this._def,checks:[...this._def.checks,t]})}min(t,n){return this._addCheck({kind:"min",value:t.getTime(),message:Fe.toString(n)})}max(t,n){return this._addCheck({kind:"max",value:t.getTime(),message:Fe.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}}Ra.create=e=>new Ra({checks:[],coerce:(e==null?void 0:e.coerce)||!1,typeName:Ge.ZodDate,...$e(e)});class tf extends Je{_parse(t){if(this._getType(t)!==De.symbol){const r=this._getOrReturnCtx(t);return Ce(r,{code:he.invalid_type,expected:De.symbol,received:r.parsedType}),ze}return vn(t.data)}}tf.create=e=>new tf({typeName:Ge.ZodSymbol,...$e(e)});class Wl extends Je{_parse(t){if(this._getType(t)!==De.undefined){const r=this._getOrReturnCtx(t);return Ce(r,{code:he.invalid_type,expected:De.undefined,received:r.parsedType}),ze}return vn(t.data)}}Wl.create=e=>new Wl({typeName:Ge.ZodUndefined,...$e(e)});class $l extends Je{_parse(t){if(this._getType(t)!==De.null){const r=this._getOrReturnCtx(t);return Ce(r,{code:he.invalid_type,expected:De.null,received:r.parsedType}),ze}return vn(t.data)}}$l.create=e=>new $l({typeName:Ge.ZodNull,...$e(e)});class js extends Je{constructor(){super(...arguments),this._any=!0}_parse(t){return vn(t.data)}}js.create=e=>new js({typeName:Ge.ZodAny,...$e(e)});class Ea extends Je{constructor(){super(...arguments),this._unknown=!0}_parse(t){return vn(t.data)}}Ea.create=e=>new Ea({typeName:Ge.ZodUnknown,...$e(e)});class Fu extends Je{_parse(t){const n=this._getOrReturnCtx(t);return Ce(n,{code:he.invalid_type,expected:De.never,received:n.parsedType}),ze}}Fu.create=e=>new Fu({typeName:Ge.ZodNever,...$e(e)});class nf extends Je{_parse(t){if(this._getType(t)!==De.undefined){const r=this._getOrReturnCtx(t);return Ce(r,{code:he.invalid_type,expected:De.void,received:r.parsedType}),ze}return vn(t.data)}}nf.create=e=>new nf({typeName:Ge.ZodVoid,...$e(e)});class Rr extends Je{_parse(t){const{ctx:n,status:r}=this._processInputParams(t),a=this._def;if(n.parsedType!==De.array)return Ce(n,{code:he.invalid_type,expected:De.array,received:n.parsedType}),ze;if(a.exactLength!==null){const l=n.data.length>a.exactLength.value,d=n.data.length<a.exactLength.value;(l||d)&&(Ce(n,{code:l?he.too_big:he.too_small,minimum:d?a.exactLength.value:void 0,maximum:l?a.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:a.exactLength.message}),r.dirty())}if(a.minLength!==null&&n.data.length<a.minLength.value&&(Ce(n,{code:he.too_small,minimum:a.minLength.value,type:"array",inclusive:!0,exact:!1,message:a.minLength.message}),r.dirty()),a.maxLength!==null&&n.data.length>a.maxLength.value&&(Ce(n,{code:he.too_big,maximum:a.maxLength.value,type:"array",inclusive:!0,exact:!1,message:a.maxLength.message}),r.dirty()),n.common.async)return Promise.all([...n.data].map((l,d)=>a.type._parseAsync(new qr(n,l,n.path,d)))).then(l=>_n.mergeArray(r,l));const o=[...n.data].map((l,d)=>a.type._parseSync(new qr(n,l,n.path,d)));return _n.mergeArray(r,o)}get element(){return this._def.type}min(t,n){return new Rr({...this._def,minLength:{value:t,message:Fe.toString(n)}})}max(t,n){return new Rr({...this._def,maxLength:{value:t,message:Fe.toString(n)}})}length(t,n){return new Rr({...this._def,exactLength:{value:t,message:Fe.toString(n)}})}nonempty(t){return this.min(1,t)}}Rr.create=(e,t)=>new Rr({type:e,minLength:null,maxLength:null,exactLength:null,typeName:Ge.ZodArray,...$e(t)});function Cs(e){if(e instanceof Rt){const t={};for(const n in e.shape){const r=e.shape[n];t[n]=Kr.create(Cs(r))}return new Rt({...e._def,shape:()=>t})}else return e instanceof Rr?new Rr({...e._def,type:Cs(e.element)}):e instanceof Kr?Kr.create(Cs(e.unwrap())):e instanceof Si?Si.create(Cs(e.unwrap())):e instanceof Qr?Qr.create(e.items.map(t=>Cs(t))):e}class Rt extends Je{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=ct.objectKeys(t);return this._cached={shape:t,keys:n}}_parse(t){if(this._getType(t)!==De.object){const A=this._getOrReturnCtx(t);return Ce(A,{code:he.invalid_type,expected:De.object,received:A.parsedType}),ze}const{status:r,ctx:a}=this._processInputParams(t),{shape:o,keys:l}=this._getCached(),d=[];if(!(this._def.catchall instanceof Fu&&this._def.unknownKeys==="strip"))for(const A in a.data)l.includes(A)||d.push(A);const f=[];for(const A of l){const m=o[A],E=a.data[A];f.push({key:{status:"valid",value:A},value:m._parse(new qr(a,E,a.path,A)),alwaysSet:A in a.data})}if(this._def.catchall instanceof Fu){const A=this._def.unknownKeys;if(A==="passthrough")for(const m of d)f.push({key:{status:"valid",value:m},value:{status:"valid",value:a.data[m]}});else if(A==="strict")d.length>0&&(Ce(a,{code:he.unrecognized_keys,keys:d}),r.dirty());else if(A!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const A=this._def.catchall;for(const m of d){const E=a.data[m];f.push({key:{status:"valid",value:m},value:A._parse(new qr(a,E,a.path,m)),alwaysSet:m in a.data})}}return a.common.async?Promise.resolve().then(async()=>{const A=[];for(const m of f){const E=await m.key,g=await m.value;A.push({key:E,value:g,alwaysSet:m.alwaysSet})}return A}).then(A=>_n.mergeObjectSync(r,A)):_n.mergeObjectSync(r,f)}get shape(){return this._def.shape()}strict(t){return Fe.errToObj,new Rt({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(n,r)=>{var a,o,l,d;const f=(l=(o=(a=this._def).errorMap)===null||o===void 0?void 0:o.call(a,n,r).message)!==null&&l!==void 0?l:r.defaultError;return n.code==="unrecognized_keys"?{message:(d=Fe.errToObj(t).message)!==null&&d!==void 0?d:f}:{message:f}}}:{}})}strip(){return new Rt({...this._def,unknownKeys:"strip"})}passthrough(){return new Rt({...this._def,unknownKeys:"passthrough"})}extend(t){return new Rt({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new Rt({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 Rt({...this._def,catchall:t})}pick(t){const n={};return ct.objectKeys(t).forEach(r=>{t[r]&&this.shape[r]&&(n[r]=this.shape[r])}),new Rt({...this._def,shape:()=>n})}omit(t){const n={};return ct.objectKeys(this.shape).forEach(r=>{t[r]||(n[r]=this.shape[r])}),new Rt({...this._def,shape:()=>n})}deepPartial(){return Cs(this)}partial(t){const n={};return ct.objectKeys(this.shape).forEach(r=>{const a=this.shape[r];t&&!t[r]?n[r]=a:n[r]=a.optional()}),new Rt({...this._def,shape:()=>n})}required(t){const n={};return ct.objectKeys(this.shape).forEach(r=>{if(t&&!t[r])n[r]=this.shape[r];else{let o=this.shape[r];for(;o instanceof Kr;)o=o._def.innerType;n[r]=o}}),new Rt({...this._def,shape:()=>n})}keyof(){return OD(ct.objectKeys(this.shape))}}Rt.create=(e,t)=>new Rt({shape:()=>e,unknownKeys:"strip",catchall:Fu.create(),typeName:Ge.ZodObject,...$e(t)});Rt.strictCreate=(e,t)=>new Rt({shape:()=>e,unknownKeys:"strict",catchall:Fu.create(),typeName:Ge.ZodObject,...$e(t)});Rt.lazycreate=(e,t)=>new Rt({shape:e,unknownKeys:"strip",catchall:Fu.create(),typeName:Ge.ZodObject,...$e(t)});class ql extends Je{_parse(t){const{ctx:n}=this._processInputParams(t),r=this._def.options;function a(o){for(const d of o)if(d.result.status==="valid")return d.result;for(const d of o)if(d.result.status==="dirty")return n.common.issues.push(...d.ctx.common.issues),d.result;const l=o.map(d=>new Zn(d.ctx.common.issues));return Ce(n,{code:he.invalid_union,unionErrors:l}),ze}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(a);{let o;const l=[];for(const f of r){const A={...n,common:{...n.common,issues:[]},parent:null},m=f._parseSync({data:n.data,path:n.path,parent:A});if(m.status==="valid")return m;m.status==="dirty"&&!o&&(o={result:m,ctx:A}),A.common.issues.length&&l.push(A.common.issues)}if(o)return n.common.issues.push(...o.ctx.common.issues),o.result;const d=l.map(f=>new Zn(f));return Ce(n,{code:he.invalid_union,unionErrors:d}),ze}}get options(){return this._def.options}}ql.create=(e,t)=>new ql({options:e,typeName:Ge.ZodUnion,...$e(t)});const Su=e=>e instanceof Jl?Su(e.schema):e instanceof xr?Su(e.innerType()):e instanceof ec?[e.value]:e instanceof Ii?e.options:e instanceof tc?ct.objectValues(e.enum):e instanceof nc?Su(e._def.innerType):e instanceof Wl?[void 0]:e instanceof $l?[null]:e instanceof Kr?[void 0,...Su(e.unwrap())]:e instanceof Si?[null,...Su(e.unwrap())]:e instanceof Pg||e instanceof uc?Su(e.unwrap()):e instanceof rc?Su(e._def.innerType):[];class Qf extends Je{_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==De.object)return Ce(n,{code:he.invalid_type,expected:De.object,received:n.parsedType}),ze;const r=this.discriminator,a=n.data[r],o=this.optionsMap.get(a);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}):(Ce(n,{code:he.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[r]}),ze)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(t,n,r){const a=new Map;for(const o of n){const l=Su(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 d of l){if(a.has(d))throw new Error(`Discriminator property ${String(t)} has duplicate value ${String(d)}`);a.set(d,o)}}return new Qf({typeName:Ge.ZodDiscriminatedUnion,discriminator:t,options:n,optionsMap:a,...$e(r)})}}function oE(e,t){const n=Cu(e),r=Cu(t);if(e===t)return{valid:!0,data:e};if(n===De.object&&r===De.object){const a=ct.objectKeys(t),o=ct.objectKeys(e).filter(d=>a.indexOf(d)!==-1),l={...e,...t};for(const d of o){const f=oE(e[d],t[d]);if(!f.valid)return{valid:!1};l[d]=f.data}return{valid:!0,data:l}}else if(n===De.array&&r===De.array){if(e.length!==t.length)return{valid:!1};const a=[];for(let o=0;o<e.length;o++){const l=e[o],d=t[o],f=oE(l,d);if(!f.valid)return{valid:!1};a.push(f.data)}return{valid:!0,data:a}}else return n===De.date&&r===De.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}class Ql extends Je{_parse(t){const{status:n,ctx:r}=this._processInputParams(t),a=(o,l)=>{if(aE(o)||aE(l))return ze;const d=oE(o.value,l.value);return d.valid?((sE(o)||sE(l))&&n.dirty(),{status:n.value,value:d.data}):(Ce(r,{code:he.invalid_intersection_types}),ze)};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])=>a(o,l)):a(this._def.left._parseSync({data:r.data,path:r.path,parent:r}),this._def.right._parseSync({data:r.data,path:r.path,parent:r}))}}Ql.create=(e,t,n)=>new Ql({left:e,right:t,typeName:Ge.ZodIntersection,...$e(n)});class Qr extends Je{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==De.array)return Ce(r,{code:he.invalid_type,expected:De.array,received:r.parsedType}),ze;if(r.data.length<this._def.items.length)return Ce(r,{code:he.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),ze;!this._def.rest&&r.data.length>this._def.items.length&&(Ce(r,{code:he.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),n.dirty());const o=[...r.data].map((l,d)=>{const f=this._def.items[d]||this._def.rest;return f?f._parse(new qr(r,l,r.path,d)):null}).filter(l=>!!l);return r.common.async?Promise.all(o).then(l=>_n.mergeArray(n,l)):_n.mergeArray(n,o)}get items(){return this._def.items}rest(t){return new Qr({...this._def,rest:t})}}Qr.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new Qr({items:e,typeName:Ge.ZodTuple,rest:null,...$e(t)})};class Xl extends Je{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==De.object)return Ce(r,{code:he.invalid_type,expected:De.object,received:r.parsedType}),ze;const a=[],o=this._def.keyType,l=this._def.valueType;for(const d in r.data)a.push({key:o._parse(new qr(r,d,r.path,d)),value:l._parse(new qr(r,r.data[d],r.path,d)),alwaysSet:d in r.data});return r.common.async?_n.mergeObjectAsync(n,a):_n.mergeObjectSync(n,a)}get element(){return this._def.valueType}static create(t,n,r){return n instanceof Je?new Xl({keyType:t,valueType:n,typeName:Ge.ZodRecord,...$e(r)}):new Xl({keyType:vr.create(),valueType:t,typeName:Ge.ZodRecord,...$e(n)})}}class rf extends Je{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==De.map)return Ce(r,{code:he.invalid_type,expected:De.map,received:r.parsedType}),ze;const a=this._def.keyType,o=this._def.valueType,l=[...r.data.entries()].map(([d,f],A)=>({key:a._parse(new qr(r,d,r.path,[A,"key"])),value:o._parse(new qr(r,f,r.path,[A,"value"]))}));if(r.common.async){const d=new Map;return Promise.resolve().then(async()=>{for(const f of l){const A=await f.key,m=await f.value;if(A.status==="aborted"||m.status==="aborted")return ze;(A.status==="dirty"||m.status==="dirty")&&n.dirty(),d.set(A.value,m.value)}return{status:n.value,value:d}})}else{const d=new Map;for(const f of l){const A=f.key,m=f.value;if(A.status==="aborted"||m.status==="aborted")return ze;(A.status==="dirty"||m.status==="dirty")&&n.dirty(),d.set(A.value,m.value)}return{status:n.value,value:d}}}}rf.create=(e,t,n)=>new rf({valueType:t,keyType:e,typeName:Ge.ZodMap,...$e(n)});class Da extends Je{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==De.set)return Ce(r,{code:he.invalid_type,expected:De.set,received:r.parsedType}),ze;const a=this._def;a.minSize!==null&&r.data.size<a.minSize.value&&(Ce(r,{code:he.too_small,minimum:a.minSize.value,type:"set",inclusive:!0,exact:!1,message:a.minSize.message}),n.dirty()),a.maxSize!==null&&r.data.size>a.maxSize.value&&(Ce(r,{code:he.too_big,maximum:a.maxSize.value,type:"set",inclusive:!0,exact:!1,message:a.maxSize.message}),n.dirty());const o=this._def.valueType;function l(f){const A=new Set;for(const m of f){if(m.status==="aborted")return ze;m.status==="dirty"&&n.dirty(),A.add(m.value)}return{status:n.value,value:A}}const d=[...r.data.values()].map((f,A)=>o._parse(new qr(r,f,r.path,A)));return r.common.async?Promise.all(d).then(f=>l(f)):l(d)}min(t,n){return new Da({...this._def,minSize:{value:t,message:Fe.toString(n)}})}max(t,n){return new Da({...this._def,maxSize:{value:t,message:Fe.toString(n)}})}size(t,n){return this.min(t,n).max(t,n)}nonempty(t){return this.min(1,t)}}Da.create=(e,t)=>new Da({valueType:e,minSize:null,maxSize:null,typeName:Ge.ZodSet,...$e(t)});class ws extends Je{constructor(){super(...arguments),this.validate=this.implement}_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==De.function)return Ce(n,{code:he.invalid_type,expected:De.function,received:n.parsedType}),ze;function r(d,f){return J0({data:d,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,X0(),Gs].filter(A=>!!A),issueData:{code:he.invalid_arguments,argumentsError:f}})}function a(d,f){return J0({data:d,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,X0(),Gs].filter(A=>!!A),issueData:{code:he.invalid_return_type,returnTypeError:f}})}const o={errorMap:n.common.contextualErrorMap},l=n.data;if(this._def.returns instanceof Vs){const d=this;return vn(async function(...f){const A=new Zn([]),m=await d._def.args.parseAsync(f,o).catch(_=>{throw A.addIssue(r(f,_)),A}),E=await Reflect.apply(l,this,m);return await d._def.returns._def.type.parseAsync(E,o).catch(_=>{throw A.addIssue(a(E,_)),A})})}else{const d=this;return vn(function(...f){const A=d._def.args.safeParse(f,o);if(!A.success)throw new Zn([r(f,A.error)]);const m=Reflect.apply(l,this,A.data),E=d._def.returns.safeParse(m,o);if(!E.success)throw new Zn([a(m,E.error)]);return E.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...t){return new ws({...this._def,args:Qr.create(t).rest(Ea.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||Qr.create([]).rest(Ea.create()),returns:n||Ea.create(),typeName:Ge.ZodFunction,...$e(r)})}}class Jl extends Je{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})}}Jl.create=(e,t)=>new Jl({getter:e,typeName:Ge.ZodLazy,...$e(t)});class ec extends Je{_parse(t){if(t.data!==this._def.value){const n=this._getOrReturnCtx(t);return Ce(n,{received:n.data,code:he.invalid_literal,expected:this._def.value}),ze}return{status:"valid",value:t.data}}get value(){return this._def.value}}ec.create=(e,t)=>new ec({value:e,typeName:Ge.ZodLiteral,...$e(t)});function OD(e,t){return new Ii({values:e,typeName:Ge.ZodEnum,...$e(t)})}class Ii extends Je{constructor(){super(...arguments),Il.set(this,void 0)}_parse(t){if(typeof t.data!="string"){const n=this._getOrReturnCtx(t),r=this._def.values;return Ce(n,{expected:ct.joinValues(r),received:n.parsedType,code:he.invalid_type}),ze}if(ef(this,Il)||TD(this,Il,new Set(this._def.values)),!ef(this,Il).has(t.data)){const n=this._getOrReturnCtx(t),r=this._def.values;return Ce(n,{received:n.data,code:he.invalid_enum_value,options:r}),ze}return vn(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 Ii.create(t,{...this._def,...n})}exclude(t,n=this._def){return Ii.create(this.options.filter(r=>!t.includes(r)),{...this._def,...n})}}Il=new WeakMap;Ii.create=OD;class tc extends Je{constructor(){super(...arguments),Sl.set(this,void 0)}_parse(t){const n=ct.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(t);if(r.parsedType!==De.string&&r.parsedType!==De.number){const a=ct.objectValues(n);return Ce(r,{expected:ct.joinValues(a),received:r.parsedType,code:he.invalid_type}),ze}if(ef(this,Sl)||TD(this,Sl,new Set(ct.getValidEnumValues(this._def.values))),!ef(this,Sl).has(t.data)){const a=ct.objectValues(n);return Ce(r,{received:r.data,code:he.invalid_enum_value,options:a}),ze}return vn(t.data)}get enum(){return this._def.values}}Sl=new WeakMap;tc.create=(e,t)=>new tc({values:e,typeName:Ge.ZodNativeEnum,...$e(t)});class Vs extends Je{unwrap(){return this._def.type}_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==De.promise&&n.common.async===!1)return Ce(n,{code:he.invalid_type,expected:De.promise,received:n.parsedType}),ze;const r=n.parsedType===De.promise?n.data:Promise.resolve(n.data);return vn(r.then(a=>this._def.type.parseAsync(a,{path:n.path,errorMap:n.common.contextualErrorMap})))}}Vs.create=(e,t)=>new Vs({type:e,typeName:Ge.ZodPromise,...$e(t)});class xr extends Je{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),a=this._def.effect||null,o={addIssue:l=>{Ce(r,l),l.fatal?n.abort():n.dirty()},get path(){return r.path}};if(o.addIssue=o.addIssue.bind(o),a.type==="preprocess"){const l=a.transform(r.data,o);if(r.common.async)return Promise.resolve(l).then(async d=>{if(n.value==="aborted")return ze;const f=await this._def.schema._parseAsync({data:d,path:r.path,parent:r});return f.status==="aborted"?ze:f.status==="dirty"||n.value==="dirty"?vs(f.value):f});{if(n.value==="aborted")return ze;const d=this._def.schema._parseSync({data:l,path:r.path,parent:r});return d.status==="aborted"?ze:d.status==="dirty"||n.value==="dirty"?vs(d.value):d}}if(a.type==="refinement"){const l=d=>{const f=a.refinement(d,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 d};if(r.common.async===!1){const d=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});return d.status==="aborted"?ze:(d.status==="dirty"&&n.dirty(),l(d.value),{status:n.value,value:d.value})}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(d=>d.status==="aborted"?ze:(d.status==="dirty"&&n.dirty(),l(d.value).then(()=>({status:n.value,value:d.value}))))}if(a.type==="transform")if(r.common.async===!1){const l=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if(!va(l))return l;const d=a.transform(l.value,o);if(d instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:n.value,value:d}}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(l=>va(l)?Promise.resolve(a.transform(l.value,o)).then(d=>({status:n.value,value:d})):l);ct.assertNever(a)}}xr.create=(e,t,n)=>new xr({schema:e,typeName:Ge.ZodEffects,effect:t,...$e(n)});xr.createWithPreprocess=(e,t,n)=>new xr({schema:t,effect:{type:"preprocess",transform:e},typeName:Ge.ZodEffects,...$e(n)});class Kr extends Je{_parse(t){return this._getType(t)===De.undefined?vn(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}Kr.create=(e,t)=>new Kr({innerType:e,typeName:Ge.ZodOptional,...$e(t)});class Si extends Je{_parse(t){return this._getType(t)===De.null?vn(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}Si.create=(e,t)=>new Si({innerType:e,typeName:Ge.ZodNullable,...$e(t)});class nc extends Je{_parse(t){const{ctx:n}=this._processInputParams(t);let r=n.data;return n.parsedType===De.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:n.path,parent:n})}removeDefault(){return this._def.innerType}}nc.create=(e,t)=>new nc({innerType:e,typeName:Ge.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...$e(t)});class rc extends Je{_parse(t){const{ctx:n}=this._processInputParams(t),r={...n,common:{...n.common,issues:[]}},a=this._def.innerType._parse({data:r.data,path:r.path,parent:{...r}});return Yl(a)?a.then(o=>({status:"valid",value:o.status==="valid"?o.value:this._def.catchValue({get error(){return new Zn(r.common.issues)},input:r.data})})):{status:"valid",value:a.status==="valid"?a.value:this._def.catchValue({get error(){return new Zn(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}}rc.create=(e,t)=>new rc({innerType:e,typeName:Ge.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...$e(t)});class uf extends Je{_parse(t){if(this._getType(t)!==De.nan){const r=this._getOrReturnCtx(t);return Ce(r,{code:he.invalid_type,expected:De.nan,received:r.parsedType}),ze}return{status:"valid",value:t.data}}}uf.create=e=>new uf({typeName:Ge.ZodNaN,...$e(e)});const dG=Symbol("zod_brand");class Pg extends Je{_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 Oc extends Je{_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"?ze:o.status==="dirty"?(n.dirty(),vs(o.value)):this._def.out._parseAsync({data:o.value,path:r.path,parent:r})})();{const a=this._def.in._parseSync({data:r.data,path:r.path,parent:r});return a.status==="aborted"?ze:a.status==="dirty"?(n.dirty(),{status:"dirty",value:a.value}):this._def.out._parseSync({data:a.value,path:r.path,parent:r})}}static create(t,n){return new Oc({in:t,out:n,typeName:Ge.ZodPipeline})}}class uc extends Je{_parse(t){const n=this._def.innerType._parse(t),r=a=>(va(a)&&(a.value=Object.freeze(a.value)),a);return Yl(n)?n.then(a=>r(a)):r(n)}unwrap(){return this._def.innerType}}uc.create=(e,t)=>new uc({innerType:e,typeName:Ge.ZodReadonly,...$e(t)});function Y3(e,t){const n=typeof e=="function"?e(t):typeof e=="string"?{message:e}:e;return typeof n=="string"?{message:n}:n}function FD(e,t={},n){return e?js.create().superRefine((r,a)=>{var o,l;const d=e(r);if(d instanceof Promise)return d.then(f=>{var A,m;if(!f){const E=Y3(t,r),g=(m=(A=E.fatal)!==null&&A!==void 0?A:n)!==null&&m!==void 0?m:!0;a.addIssue({code:"custom",...E,fatal:g})}});if(!d){const f=Y3(t,r),A=(l=(o=f.fatal)!==null&&o!==void 0?o:n)!==null&&l!==void 0?l:!0;a.addIssue({code:"custom",...f,fatal:A})}}):js.create()}const fG={object:Rt.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 AG=(e,t={message:`Input not instance of ${e.name}`})=>FD(n=>n instanceof e,t),LD=vr.create,wD=_i.create,hG=uf.create,mG=Ni.create,MD=Zl.create,pG=Ra.create,EG=tf.create,gG=Wl.create,_G=$l.create,NG=js.create,IG=Ea.create,SG=Fu.create,CG=nf.create,yG=Rr.create,vG=Rt.create,RG=Rt.strictCreate,DG=ql.create,TG=Qf.create,xG=Ql.create,bG=Qr.create,BG=Xl.create,OG=rf.create,FG=Da.create,LG=ws.create,wG=Jl.create,MG=ec.create,HG=Ii.create,PG=tc.create,UG=Vs.create,Z3=xr.create,kG=Kr.create,GG=Si.create,jG=xr.createWithPreprocess,VG=Oc.create,zG=()=>LD().optional(),KG=()=>wD().optional(),YG=()=>MD().optional(),ZG={string:e=>vr.create({...e,coerce:!0}),number:e=>_i.create({...e,coerce:!0}),boolean:e=>Zl.create({...e,coerce:!0}),bigint:e=>Ni.create({...e,coerce:!0}),date:e=>Ra.create({...e,coerce:!0})},WG=ze;var li=Object.freeze({__proto__:null,defaultErrorMap:Gs,setErrorMap:jk,getErrorMap:X0,makeIssue:J0,EMPTY_PATH:Vk,addIssueToContext:Ce,ParseStatus:_n,INVALID:ze,DIRTY:vs,OK:vn,isAborted:aE,isDirty:sE,isValid:va,isAsync:Yl,get util(){return ct},get objectUtil(){return iE},ZodParsedType:De,getParsedType:Cu,ZodType:Je,datetimeRegex:BD,ZodString:vr,ZodNumber:_i,ZodBigInt:Ni,ZodBoolean:Zl,ZodDate:Ra,ZodSymbol:tf,ZodUndefined:Wl,ZodNull:$l,ZodAny:js,ZodUnknown:Ea,ZodNever:Fu,ZodVoid:nf,ZodArray:Rr,ZodObject:Rt,ZodUnion:ql,ZodDiscriminatedUnion:Qf,ZodIntersection:Ql,ZodTuple:Qr,ZodRecord:Xl,ZodMap:rf,ZodSet:Da,ZodFunction:ws,ZodLazy:Jl,ZodLiteral:ec,ZodEnum:Ii,ZodNativeEnum:tc,ZodPromise:Vs,ZodEffects:xr,ZodTransformer:xr,ZodOptional:Kr,ZodNullable:Si,ZodDefault:nc,ZodCatch:rc,ZodNaN:uf,BRAND:dG,ZodBranded:Pg,ZodPipeline:Oc,ZodReadonly:uc,custom:FD,Schema:Je,ZodSchema:Je,late:fG,get ZodFirstPartyTypeKind(){return Ge},coerce:ZG,any:NG,array:yG,bigint:mG,boolean:MD,date:pG,discriminatedUnion:TG,effect:Z3,enum:HG,function:LG,instanceof:AG,intersection:xG,lazy:wG,literal:MG,map:OG,nan:hG,nativeEnum:PG,never:SG,null:_G,nullable:GG,number:wD,object:vG,oboolean:YG,onumber:KG,optional:kG,ostring:zG,pipeline:VG,preprocess:jG,promise:UG,record:BG,set:FG,strictObject:RG,string:LD,symbol:EG,transformer:Z3,tuple:bG,undefined:gG,union:DG,unknown:IG,void:CG,NEVER:WG,ZodIssueCode:he,quotelessJson:Gk,ZodError:Zn});const HD=C.createContext({});function $G(e){const t=C.useRef(null);return t.current===null&&(t.current=e()),t.current}const Ug=C.createContext(null),PD=C.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function qG(e=!0){const t=C.useContext(Ug);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:a}=t,o=C.useId();C.useEffect(()=>{e&&a(o)},[e]);const l=C.useCallback(()=>e&&r&&r(o),[o,r,e]);return!n&&r?[!1,l]:[!0]}const kg=typeof window<"u",QG=kg?C.useLayoutEffect:C.useEffect,Wn=e=>e;let UD=Wn;function Gg(e){let t;return()=>(t===void 0&&(t=e()),t)}const zs=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},Du=e=>e*1e3,Tu=e=>e/1e3,XG={useManualTiming:!1};function JG(e){let t=new Set,n=new Set,r=!1,a=!1;const o=new WeakSet;let l={delta:0,timestamp:0,isProcessing:!1};function d(A){o.has(A)&&(f.schedule(A),e()),A(l)}const f={schedule:(A,m=!1,E=!1)=>{const _=E&&r?t:n;return m&&o.add(A),_.has(A)||_.add(A),A},cancel:A=>{n.delete(A),o.delete(A)},process:A=>{if(l=A,r){a=!0;return}r=!0,[t,n]=[n,t],t.forEach(d),t.clear(),r=!1,a&&(a=!1,f.process(A))}};return f}const c0=["read","resolveKeyframes","update","preRender","render","postRender"],ej=40;function kD(e,t){let n=!1,r=!0;const a={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,l=c0.reduce((R,D)=>(R[D]=JG(o),R),{}),{read:d,resolveKeyframes:f,update:A,preRender:m,render:E,postRender:g}=l,_=()=>{const R=performance.now();n=!1,a.delta=r?1e3/60:Math.max(Math.min(R-a.timestamp,ej),1),a.timestamp=R,a.isProcessing=!0,d.process(a),f.process(a),A.process(a),m.process(a),E.process(a),g.process(a),a.isProcessing=!1,n&&t&&(r=!1,e(_))},S=()=>{n=!0,r=!0,a.isProcessing||e(_)};return{schedule:c0.reduce((R,D)=>{const x=l[D];return R[D]=(L,b=!1,O=!1)=>(n||S(),x.schedule(L,b,O)),R},{}),cancel:R=>{for(let D=0;D<c0.length;D++)l[c0[D]].cancel(R)},state:a,steps:l}}const{schedule:St,cancel:Ci,state:cn,steps:rp}=kD(typeof requestAnimationFrame<"u"?requestAnimationFrame:Wn,!0),jg=C.createContext({strict:!1}),W3={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"]},Ks={};for(const e in W3)Ks[e]={isEnabled:t=>W3[e].some(n=>!!t[n])};function lE(e){for(const t in e)Ks[t]={...Ks[t],...e[t]}}function tj({children:e,features:t,strict:n=!1}){const[,r]=C.useState(!up(t)),a=C.useRef(void 0);if(!up(t)){const{renderer:o,...l}=t;a.current=o,lE(l)}return C.useEffect(()=>{up(t)&&t().then(({renderer:o,...l})=>{lE(l),a.current=o,r(!0)})},[]),N.jsx(jg.Provider,{value:{renderer:a.current,strict:n},children:e})}function up(e){return typeof e=="function"}const nj=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 af(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||nj.has(e)}let GD=e=>!af(e);function rj(e){e&&(GD=t=>t.startsWith("on")?!af(t):e(t))}try{rj(require("@emotion/is-prop-valid").default)}catch{}function uj(e,t,n){const r={};for(const a in e)a==="values"&&typeof e.values=="object"||(GD(a)||n===!0&&af(a)||!t&&!af(a)||e.draggable&&a.startsWith("onDrag"))&&(r[a]=e[a]);return r}function ij(e){if(typeof Proxy>"u")return e;const t=new Map,n=(...r)=>e(...r);return new Proxy(n,{get:(r,a)=>a==="create"?e:(t.has(a)||t.set(a,e(a)),t.get(a))})}const Xf=C.createContext({});function ic(e){return typeof e=="string"||Array.isArray(e)}function Jf(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const Vg=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],zg=["initial",...Vg];function eA(e){return Jf(e.animate)||zg.some(t=>ic(e[t]))}function jD(e){return!!(eA(e)||e.variants)}function aj(e,t){if(eA(e)){const{initial:n,animate:r}=e;return{initial:n===!1||ic(n)?n:void 0,animate:ic(r)?r:void 0}}return e.inherit!==!1?t:{}}function sj(e){const{initial:t,animate:n}=aj(e,C.useContext(Xf));return C.useMemo(()=>({initial:t,animate:n}),[$3(t),$3(n)])}function $3(e){return Array.isArray(e)?e.join(" "):e}const oj=Symbol.for("motionComponentSymbol");function Rs(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function lj(e,t,n){return C.useCallback(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):Rs(n)&&(n.current=r))},[t])}const Kg=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),cj="framerAppearId",VD="data-"+Kg(cj),{schedule:Yg}=kD(queueMicrotask,!1),zD=C.createContext({});function dj(e,t,n,r,a){var o,l;const{visualElement:d}=C.useContext(Xf),f=C.useContext(jg),A=C.useContext(Ug),m=C.useContext(PD).reducedMotion,E=C.useRef(null);r=r||f.renderer,!E.current&&r&&(E.current=r(e,{visualState:t,parent:d,props:n,presenceContext:A,blockInitialAnimation:A?A.initial===!1:!1,reducedMotionConfig:m}));const g=E.current,_=C.useContext(zD);g&&!g.projection&&a&&(g.type==="html"||g.type==="svg")&&fj(E.current,n,a,_);const S=C.useRef(!1);C.useInsertionEffect(()=>{g&&S.current&&g.update(n,A)});const y=n[VD],v=C.useRef(!!y&&!(!((o=window.MotionHandoffIsComplete)===null||o===void 0)&&o.call(window,y))&&((l=window.MotionHasOptimisedAnimation)===null||l===void 0?void 0:l.call(window,y)));return QG(()=>{g&&(S.current=!0,window.MotionIsMounted=!0,g.updateFeatures(),Yg.render(g.render),v.current&&g.animationState&&g.animationState.animateChanges())}),C.useEffect(()=>{g&&(!v.current&&g.animationState&&g.animationState.animateChanges(),v.current&&(queueMicrotask(()=>{var R;(R=window.MotionHandoffMarkAsComplete)===null||R===void 0||R.call(window,y)}),v.current=!1))}),g}function fj(e,t,n,r){const{layoutId:a,layout:o,drag:l,dragConstraints:d,layoutScroll:f,layoutRoot:A}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:KD(e.parent)),e.projection.setOptions({layoutId:a,layout:o,alwaysMeasureLayout:!!l||d&&Rs(d),visualElement:e,animationType:typeof o=="string"?o:"both",initialPromotionConfig:r,layoutScroll:f,layoutRoot:A})}function KD(e){if(e)return e.options.allowProjection!==!1?e.projection:KD(e.parent)}function Aj({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:a}){var o,l;e&&lE(e);function d(A,m){let E;const g={...C.useContext(PD),...A,layoutId:hj(A)},{isStatic:_}=g,S=sj(A),y=r(A,_);if(!_&&kg){mj();const v=pj(g);E=v.MeasureLayout,S.visualElement=dj(a,y,g,t,v.ProjectionNode)}return N.jsxs(Xf.Provider,{value:S,children:[E&&S.visualElement?N.jsx(E,{visualElement:S.visualElement,...g}):null,n(a,A,lj(y,S.visualElement,m),y,_,S.visualElement)]})}d.displayName=`motion.${typeof a=="string"?a:`create(${(l=(o=a.displayName)!==null&&o!==void 0?o:a.name)!==null&&l!==void 0?l:""})`}`;const f=C.forwardRef(d);return f[oj]=a,f}function hj({layoutId:e}){const t=C.useContext(HD).id;return t&&e!==void 0?t+"-"+e:e}function mj(e,t){C.useContext(jg).strict}function pj(e){const{drag:t,layout:n}=Ks;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 Ej=["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 Zg(e){return typeof e!="string"||e.includes("-")?!1:!!(Ej.indexOf(e)>-1||/[A-Z]/u.test(e))}function q3(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function Wg(e,t,n,r){if(typeof t=="function"){const[a,o]=q3(r);t=t(n!==void 0?n:e.custom,a,o)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[a,o]=q3(r);t=t(n!==void 0?n:e.custom,a,o)}return t}const cE=e=>Array.isArray(e),gj=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),_j=e=>cE(e)?e[e.length-1]||0:e,En=e=>!!(e&&e.getVelocity);function B0(e){const t=En(e)?e.get():e;return gj(t)?t.toValue():t}function Nj({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:n},r,a,o){const l={latestValues:Ij(r,a,o,e),renderState:t()};return n&&(l.onMount=d=>n({props:r,current:d,...l}),l.onUpdate=d=>n(d)),l}const YD=e=>(t,n)=>{const r=C.useContext(Xf),a=C.useContext(Ug),o=()=>Nj(e,t,r,a);return n?o():$G(o)};function Ij(e,t,n,r){const a={},o=r(e,{});for(const g in o)a[g]=B0(o[g]);let{initial:l,animate:d}=e;const f=eA(e),A=jD(e);t&&A&&!f&&e.inherit!==!1&&(l===void 0&&(l=t.initial),d===void 0&&(d=t.animate));let m=n?n.initial===!1:!1;m=m||l===!1;const E=m?d:l;if(E&&typeof E!="boolean"&&!Jf(E)){const g=Array.isArray(E)?E:[E];for(let _=0;_<g.length;_++){const S=Wg(e,g[_]);if(S){const{transitionEnd:y,transition:v,...R}=S;for(const D in R){let x=R[D];if(Array.isArray(x)){const L=m?x.length-1:0;x=x[L]}x!==null&&(a[D]=x)}for(const D in y)a[D]=y[D]}}}return a}const io=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Ba=new Set(io),ZD=e=>t=>typeof t=="string"&&t.startsWith(e),WD=ZD("--"),Sj=ZD("var(--"),$g=e=>Sj(e)?Cj.test(e.split("/*")[0].trim()):!1,Cj=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,$D=(e,t)=>t&&typeof e=="number"?t.transform(e):e,Lu=(e,t,n)=>n>t?t:n<e?e:n,ao={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},ac={...ao,transform:e=>Lu(0,1,e)},d0={...ao,default:1},Fc=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Ai=Fc("deg"),Yr=Fc("%"),Ue=Fc("px"),yj=Fc("vh"),vj=Fc("vw"),Q3={...Yr,parse:e=>Yr.parse(e)/100,transform:e=>Yr.transform(e*100)},Rj={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},Dj={rotate:Ai,rotateX:Ai,rotateY:Ai,rotateZ:Ai,scale:d0,scaleX:d0,scaleY:d0,scaleZ:d0,skew:Ai,skewX:Ai,skewY:Ai,distance:Ue,translateX:Ue,translateY:Ue,translateZ:Ue,x:Ue,y:Ue,z:Ue,perspective:Ue,transformPerspective:Ue,opacity:ac,originX:Q3,originY:Q3,originZ:Ue},X3={...ao,transform:Math.round},qg={...Rj,...Dj,zIndex:X3,size:Ue,fillOpacity:ac,strokeOpacity:ac,numOctaves:X3},Tj={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},xj=io.length;function bj(e,t,n){let r="",a=!0;for(let o=0;o<xj;o++){const l=io[o],d=e[l];if(d===void 0)continue;let f=!0;if(typeof d=="number"?f=d===(l.startsWith("scale")?1:0):f=parseFloat(d)===0,!f||n){const A=$D(d,qg[l]);if(!f){a=!1;const m=Tj[l]||l;r+=`${m}(${A}) `}n&&(t[l]=A)}}return r=r.trim(),n?r=n(t,a?"":r):a&&(r="none"),r}function Qg(e,t,n){const{style:r,vars:a,transformOrigin:o}=e;let l=!1,d=!1;for(const f in t){const A=t[f];if(Ba.has(f)){l=!0;continue}else if(WD(f)){a[f]=A;continue}else{const m=$D(A,qg[f]);f.startsWith("origin")?(d=!0,o[f]=m):r[f]=m}}if(t.transform||(l||n?r.transform=bj(t,e.transform,n):r.transform&&(r.transform="none")),d){const{originX:f="50%",originY:A="50%",originZ:m=0}=o;r.transformOrigin=`${f} ${A} ${m}`}}const Bj={offset:"stroke-dashoffset",array:"stroke-dasharray"},Oj={offset:"strokeDashoffset",array:"strokeDasharray"};function Fj(e,t,n=1,r=0,a=!0){e.pathLength=1;const o=a?Bj:Oj;e[o.offset]=Ue.transform(-r);const l=Ue.transform(t),d=Ue.transform(n);e[o.array]=`${l} ${d}`}function J3(e,t,n){return typeof e=="string"?e:Ue.transform(t+n*e)}function Lj(e,t,n){const r=J3(t,e.x,e.width),a=J3(n,e.y,e.height);return`${r} ${a}`}function Xg(e,{attrX:t,attrY:n,attrScale:r,originX:a,originY:o,pathLength:l,pathSpacing:d=1,pathOffset:f=0,...A},m,E){if(Qg(e,A,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&&(a!==void 0||o!==void 0||_.transform)&&(_.transformOrigin=Lj(S,a!==void 0?a:.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&&Fj(g,l,d,f,!1)}const Jg=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),qD=()=>({...Jg(),attrs:{}}),e4=e=>typeof e=="string"&&e.toLowerCase()==="svg";function QD(e,{style:t,vars:n},r,a){Object.assign(e.style,t,a&&a.getProjectionStyles(r));for(const o in n)e.style.setProperty(o,n[o])}const XD=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 JD(e,t,n,r){QD(e,t,void 0,r);for(const a in t.attrs)e.setAttribute(XD.has(a)?a:Kg(a),t.attrs[a])}const sf={};function wj(e){Object.assign(sf,e)}function eT(e,{layout:t,layoutId:n}){return Ba.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!sf[e]||e==="opacity")}function t4(e,t,n){var r;const{style:a}=e,o={};for(const l in a)(En(a[l])||t.style&&En(t.style[l])||eT(l,e)||((r=n==null?void 0:n.getValue(l))===null||r===void 0?void 0:r.liveStyle)!==void 0)&&(o[l]=a[l]);return o}function tT(e,t,n){const r=t4(e,t,n);for(const a in e)if(En(e[a])||En(t[a])){const o=io.indexOf(a)!==-1?"attr"+a.charAt(0).toUpperCase()+a.substring(1):a;r[o]=e[a]}return r}function Mj(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"],Hj={useVisualState:YD({scrapeMotionValuesFromProps:tT,createRenderState:qD,onUpdate:({props:e,prevProps:t,current:n,renderState:r,latestValues:a})=>{if(!n)return;let o=!!e.drag;if(!o){for(const d in a)if(Ba.has(d)){o=!0;break}}if(!o)return;let l=!t;if(t)for(let d=0;d<eC.length;d++){const f=eC[d];e[f]!==t[f]&&(l=!0)}l&&St.read(()=>{Mj(n,r),St.render(()=>{Xg(r,a,e4(n.tagName),e.transformTemplate),JD(n,r)})})}})},Pj={useVisualState:YD({scrapeMotionValuesFromProps:t4,createRenderState:Jg})};function nT(e,t,n){for(const r in t)!En(t[r])&&!eT(r,n)&&(e[r]=t[r])}function Uj({transformTemplate:e},t){return C.useMemo(()=>{const n=Jg();return Qg(n,t,e),Object.assign({},n.vars,n.style)},[t])}function kj(e,t){const n=e.style||{},r={};return nT(r,n,e),Object.assign(r,Uj(e,t)),r}function Gj(e,t){const n={},r=kj(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 jj(e,t,n,r){const a=C.useMemo(()=>{const o=qD();return Xg(o,t,e4(r),e.transformTemplate),{...o.attrs,style:{...o.style}}},[t]);if(e.style){const o={};nT(o,e.style,e),a.style={...o,...a.style}}return a}function Vj(e=!1){return(n,r,a,{latestValues:o},l)=>{const f=(Zg(n)?jj:Gj)(r,o,l,n),A=uj(r,typeof n=="string",e),m=n!==C.Fragment?{...A,...f,ref:a}:{},{children:E}=r,g=C.useMemo(()=>En(E)?E.get():E,[E]);return C.createElement(n,{...m,children:g})}}function zj(e,t){return function(r,{forwardMotionProps:a}={forwardMotionProps:!1}){const l={...Zg(r)?Hj:Pj,preloadedFeatures:e,useRender:Vj(a),createVisualElement:t,Component:r};return Aj(l)}}function rT(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 tA(e,t,n){const r=e.getProps();return Wg(r,t,n!==void 0?n:r.custom,e)}const Kj=Gg(()=>window.ScrollTimeline!==void 0);class Yj{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(a=>{if(Kj()&&a.attachTimeline)return a.attachTimeline(t);if(typeof n=="function")return n(a)});return()=>{r.forEach((a,o)=>{a&&a(),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 Zj extends Yj{then(t,n){return Promise.all(this.animations).then(t).catch(n)}}function n4(e,t){return e?e[t]||e.default||e:void 0}const dE=2e4;function uT(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<dE;)t+=n,r=e.next(t);return t>=dE?1/0:t}function r4(e){return typeof e=="function"}function tC(e,t){e.timeline=t,e.onfinish=null}const u4=e=>Array.isArray(e)&&typeof e[0]=="number",Wj={linearEasing:void 0};function $j(e,t){const n=Gg(e);return()=>{var r;return(r=Wj[t])!==null&&r!==void 0?r:n()}}const of=$j(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),iT=(e,t,n=10)=>{let r="";const a=Math.max(Math.round(t/n),2);for(let o=0;o<a;o++)r+=e(zs(0,a-1,o))+", ";return`linear(${r.substring(0,r.length-2)})`};function aT(e){return!!(typeof e=="function"&&of()||!e||typeof e=="string"&&(e in fE||of())||u4(e)||Array.isArray(e)&&e.every(aT))}const Cl=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,fE={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Cl([0,.65,.55,1]),circOut:Cl([.55,0,1,.45]),backIn:Cl([.31,.01,.66,-.59]),backOut:Cl([.33,1.53,.69,.99])};function sT(e,t){if(e)return typeof e=="function"&&of()?iT(e,t):u4(e)?Cl(e):Array.isArray(e)?e.map(n=>sT(n,t)||fE.easeOut):fE[e]}const Cr={x:!1,y:!1};function oT(){return Cr.x||Cr.y}function qj(e,t,n){var r;if(e instanceof Element)return[e];if(typeof e=="string"){let a=document;const o=(r=void 0)!==null&&r!==void 0?r:a.querySelectorAll(e);return o?Array.from(o):[]}return Array.from(e)}function lT(e,t){const n=qj(e),r=new AbortController,a={passive:!0,...t,signal:r.signal};return[n,a,()=>r.abort()]}function nC(e){return t=>{t.pointerType==="touch"||oT()||e(t)}}function Qj(e,t,n={}){const[r,a,o]=lT(e,n),l=nC(d=>{const{target:f}=d,A=t(d);if(typeof A!="function"||!f)return;const m=nC(E=>{A(E),f.removeEventListener("pointerleave",m)});f.addEventListener("pointerleave",m,a)});return r.forEach(d=>{d.addEventListener("pointerenter",l,a)}),o}const cT=(e,t)=>t?e===t?!0:cT(e,t.parentElement):!1,i4=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,Xj=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function Jj(e){return Xj.has(e.tagName)||e.tabIndex!==-1}const yl=new WeakSet;function rC(e){return t=>{t.key==="Enter"&&e(t)}}function ip(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const e7=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=rC(()=>{if(yl.has(n))return;ip(n,"down");const a=rC(()=>{ip(n,"up")}),o=()=>ip(n,"cancel");n.addEventListener("keyup",a,t),n.addEventListener("blur",o,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function uC(e){return i4(e)&&!oT()}function t7(e,t,n={}){const[r,a,o]=lT(e,n),l=d=>{const f=d.currentTarget;if(!uC(d)||yl.has(f))return;yl.add(f);const A=t(d),m=(_,S)=>{window.removeEventListener("pointerup",E),window.removeEventListener("pointercancel",g),!(!uC(_)||!yl.has(f))&&(yl.delete(f),typeof A=="function"&&A(_,{success:S}))},E=_=>{m(_,n.useGlobalTarget||cT(f,_.target))},g=_=>{m(_,!1)};window.addEventListener("pointerup",E,a),window.addEventListener("pointercancel",g,a)};return r.forEach(d=>{!Jj(d)&&d.getAttribute("tabindex")===null&&(d.tabIndex=0),(n.useGlobalTarget?window:d).addEventListener("pointerdown",l,a),d.addEventListener("focus",A=>e7(A,a),a)}),o}function n7(e){return e==="x"||e==="y"?Cr[e]?null:(Cr[e]=!0,()=>{Cr[e]=!1}):Cr.x||Cr.y?null:(Cr.x=Cr.y=!0,()=>{Cr.x=Cr.y=!1})}const dT=new Set(["width","height","top","left","right","bottom",...io]);let O0;function r7(){O0=void 0}const Zr={now:()=>(O0===void 0&&Zr.set(cn.isProcessing||XG.useManualTiming?cn.timestamp:performance.now()),O0),set:e=>{O0=e,queueMicrotask(r7)}};function a4(e,t){e.indexOf(t)===-1&&e.push(t)}function s4(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class o4{constructor(){this.subscriptions=[]}add(t){return a4(this.subscriptions,t),()=>s4(this.subscriptions,t)}notify(t,n,r){const a=this.subscriptions.length;if(a)if(a===1)this.subscriptions[0](t,n,r);else for(let o=0;o<a;o++){const l=this.subscriptions[o];l&&l(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function fT(e,t){return t?e*(1e3/t):0}const iC=30,u7=e=>!isNaN(parseFloat(e));class i7{constructor(t,n={}){this.version="11.18.2",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,a=!0)=>{const o=Zr.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),a&&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=Zr.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=u7(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 o4);const r=this.events[t].add(n);return t==="change"?()=>{r(),St.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=Zr.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>iC)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,iC);return fT(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 sc(e,t){return new i7(e,t)}function a7(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,sc(n))}function s7(e,t){const n=tA(e,t);let{transitionEnd:r={},transition:a={},...o}=n||{};o={...o,...r};for(const l in o){const d=_j(o[l]);a7(e,l,d)}}function o7(e){return!!(En(e)&&e.add)}function AE(e,t){const n=e.getValue("willChange");if(o7(n))return n.add(t)}function AT(e){return e.props[VD]}const hT=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,l7=1e-7,c7=12;function d7(e,t,n,r,a){let o,l,d=0;do l=t+(n-t)/2,o=hT(l,r,a)-e,o>0?n=l:t=l;while(Math.abs(o)>l7&&++d<c7);return l}function Lc(e,t,n,r){if(e===t&&n===r)return Wn;const a=o=>d7(o,0,1,e,n);return o=>o===0||o===1?o:hT(a(o),t,r)}const mT=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,pT=e=>t=>1-e(1-t),ET=Lc(.33,1.53,.69,.99),l4=pT(ET),gT=mT(l4),_T=e=>(e*=2)<1?.5*l4(e):.5*(2-Math.pow(2,-10*(e-1))),c4=e=>1-Math.sin(Math.acos(e)),NT=pT(c4),IT=mT(c4),ST=e=>/^0[^.\s]+$/u.test(e);function f7(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||ST(e):!0}const Ll=e=>Math.round(e*1e5)/1e5,d4=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function A7(e){return e==null}const h7=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,f4=(e,t)=>n=>!!(typeof n=="string"&&h7.test(n)&&n.startsWith(e)||t&&!A7(n)&&Object.prototype.hasOwnProperty.call(n,t)),CT=(e,t,n)=>r=>{if(typeof r!="string")return r;const[a,o,l,d]=r.match(d4);return{[e]:parseFloat(a),[t]:parseFloat(o),[n]:parseFloat(l),alpha:d!==void 0?parseFloat(d):1}},m7=e=>Lu(0,255,e),ap={...ao,transform:e=>Math.round(m7(e))},ha={test:f4("rgb","red"),parse:CT("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+ap.transform(e)+", "+ap.transform(t)+", "+ap.transform(n)+", "+Ll(ac.transform(r))+")"};function p7(e){let t="",n="",r="",a="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),a=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),a=e.substring(4,5),t+=t,n+=n,r+=r,a+=a),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:a?parseInt(a,16)/255:1}}const hE={test:f4("#"),parse:p7,transform:ha.transform},Ds={test:f4("hsl","hue"),parse:CT("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Yr.transform(Ll(t))+", "+Yr.transform(Ll(n))+", "+Ll(ac.transform(r))+")"},pn={test:e=>ha.test(e)||hE.test(e)||Ds.test(e),parse:e=>ha.test(e)?ha.parse(e):Ds.test(e)?Ds.parse(e):hE.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?ha.transform(e):Ds.transform(e)},E7=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function g7(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(d4))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(E7))===null||n===void 0?void 0:n.length)||0)>0}const yT="number",vT="color",_7="var",N7="var(",aC="${}",I7=/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 oc(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},a=[];let o=0;const d=t.replace(I7,f=>(pn.test(f)?(r.color.push(o),a.push(vT),n.push(pn.parse(f))):f.startsWith(N7)?(r.var.push(o),a.push(_7),n.push(f)):(r.number.push(o),a.push(yT),n.push(parseFloat(f))),++o,aC)).split(aC);return{values:n,split:d,indexes:r,types:a}}function RT(e){return oc(e).values}function DT(e){const{split:t,types:n}=oc(e),r=t.length;return a=>{let o="";for(let l=0;l<r;l++)if(o+=t[l],a[l]!==void 0){const d=n[l];d===yT?o+=Ll(a[l]):d===vT?o+=pn.transform(a[l]):o+=a[l]}return o}}const S7=e=>typeof e=="number"?0:e;function C7(e){const t=RT(e);return DT(e)(t.map(S7))}const yi={test:g7,parse:RT,createTransformer:DT,getAnimatableNone:C7},y7=new Set(["brightness","contrast","saturate","opacity"]);function v7(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(d4)||[];if(!r)return e;const a=n.replace(r,"");let o=y7.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+a+")"}const R7=/\b([a-z-]*)\(.*?\)/gu,mE={...yi,getAnimatableNone:e=>{const t=e.match(R7);return t?t.map(v7).join(" "):e}},D7={...qg,color:pn,backgroundColor:pn,outlineColor:pn,fill:pn,stroke:pn,borderColor:pn,borderTopColor:pn,borderRightColor:pn,borderBottomColor:pn,borderLeftColor:pn,filter:mE,WebkitFilter:mE},A4=e=>D7[e];function TT(e,t){let n=A4(e);return n!==mE&&(n=yi),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const T7=new Set(["auto","none","0"]);function x7(e,t,n){let r=0,a;for(;r<e.length&&!a;){const o=e[r];typeof o=="string"&&!T7.has(o)&&oc(o).values.length&&(a=e[r]),r++}if(a&&n)for(const o of t)e[o]=TT(n,a)}const sC=e=>e===ao||e===Ue,oC=(e,t)=>parseFloat(e.split(", ")[t]),lC=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const a=r.match(/^matrix3d\((.+)\)$/u);if(a)return oC(a[1],t);{const o=r.match(/^matrix\((.+)\)$/u);return o?oC(o[1],e):0}},b7=new Set(["x","y","z"]),B7=io.filter(e=>!b7.has(e));function O7(e){const t=[];return B7.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const Ys={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:lC(4,13),y:lC(5,14)};Ys.translateX=Ys.x;Ys.translateY=Ys.y;const ga=new Set;let pE=!1,EE=!1;function xT(){if(EE){const e=Array.from(ga).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const a=O7(r);a.length&&(n.set(r,a),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const a=n.get(r);a&&a.forEach(([o,l])=>{var d;(d=r.getValue(o))===null||d===void 0||d.set(l)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}EE=!1,pE=!1,ga.forEach(e=>e.complete()),ga.clear()}function bT(){ga.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(EE=!0)})}function F7(){bT(),xT()}class h4{constructor(t,n,r,a,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=a,this.element=o,this.isAsync=l}scheduleResolve(){this.isScheduled=!0,this.isAsync?(ga.add(this),pE||(pE=!0,St.read(bT),St.resolveKeyframes(xT))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:a}=this;for(let o=0;o<t.length;o++)if(t[o]===null)if(o===0){const l=a==null?void 0:a.get(),d=t[t.length-1];if(l!==void 0)t[0]=l;else if(r&&n){const f=r.readValue(n,d);f!=null&&(t[0]=f)}t[0]===void 0&&(t[0]=d),a&&l===void 0&&a.set(t[0])}else t[o]=t[o-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),ga.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,ga.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const BT=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),L7=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function w7(e){const t=L7.exec(e);if(!t)return[,];const[,n,r,a]=t;return[`--${n??r}`,a]}function OT(e,t,n=1){const[r,a]=w7(e);if(!r)return;const o=window.getComputedStyle(t).getPropertyValue(r);if(o){const l=o.trim();return BT(l)?parseFloat(l):l}return $g(a)?OT(a,t,n+1):a}const FT=e=>t=>t.test(e),M7={test:e=>e==="auto",parse:e=>e},LT=[ao,Ue,Yr,Ai,vj,yj,M7],cC=e=>LT.find(FT(e));class wT extends h4{constructor(t,n,r,a,o){super(t,n,r,a,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 A=t[f];if(typeof A=="string"&&(A=A.trim(),$g(A))){const m=OT(A,n.current);m!==void 0&&(t[f]=m),f===t.length-1&&(this.finalKeyframe=A)}}if(this.resolveNoneKeyframes(),!dT.has(r)||t.length!==2)return;const[a,o]=t,l=cC(a),d=cC(o);if(l!==d)if(sC(l)&&sC(d))for(let f=0;f<t.length;f++){const A=t[f];typeof A=="string"&&(t[f]=parseFloat(A))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let a=0;a<t.length;a++)f7(t[a])&&r.push(a);r.length&&x7(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=Ys[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const a=n[n.length-1];a!==void 0&&t.getValue(r,a).jump(a,!1)}measureEndState(){var t;const{element:n,name:r,unresolvedKeyframes:a}=this;if(!n||!n.current)return;const o=n.getValue(r);o&&o.jump(this.measuredOrigin,!1);const l=a.length-1,d=a[l];a[l]=Ys[r](n.measureViewportBox(),window.getComputedStyle(n.current)),d!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=d),!((t=this.removedTransforms)===null||t===void 0)&&t.length&&this.removedTransforms.forEach(([f,A])=>{n.getValue(f).set(A)}),this.resolveNoneKeyframes()}}const dC=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(yi.test(e)||e==="0")&&!e.startsWith("url("));function H7(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 P7(e,t,n,r){const a=e[0];if(a===null)return!1;if(t==="display"||t==="visibility")return!0;const o=e[e.length-1],l=dC(a,t),d=dC(o,t);return!l||!d?!1:H7(e)||(n==="spring"||r4(n))&&r}const U7=e=>e!==null;function nA(e,{repeat:t,repeatType:n="loop"},r){const a=e.filter(U7),o=t&&n!=="loop"&&t%2===1?0:a.length-1;return!o||r===void 0?a[o]:r}const k7=40;class MT{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:a=0,repeatDelay:o=0,repeatType:l="loop",...d}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=Zr.now(),this.options={autoplay:t,delay:n,type:r,repeat:a,repeatDelay:o,repeatType:l,...d},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>k7?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&F7(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=Zr.now(),this.hasAttemptedResolve=!0;const{name:r,type:a,velocity:o,delay:l,onComplete:d,onUpdate:f,isGenerator:A}=this.options;if(!A&&!P7(t,r,a,o))if(l)this.options.duration=0;else{f&&f(nA(t,this.options,n)),d&&d(),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 sp(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 G7({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let a=0,o=0,l=0;if(!t)a=o=l=n;else{const d=n<.5?n*(1+t):n+t-n*t,f=2*n-d;a=sp(f,d,e+1/3),o=sp(f,d,e),l=sp(f,d,e-1/3)}return{red:Math.round(a*255),green:Math.round(o*255),blue:Math.round(l*255),alpha:r}}function lf(e,t){return n=>n>0?t:e}const op=(e,t,n)=>{const r=e*e,a=n*(t*t-r)+r;return a<0?0:Math.sqrt(a)},j7=[hE,ha,Ds],V7=e=>j7.find(t=>t.test(e));function fC(e){const t=V7(e);if(!t)return!1;let n=t.parse(e);return t===Ds&&(n=G7(n)),n}const AC=(e,t)=>{const n=fC(e),r=fC(t);if(!n||!r)return lf(e,t);const a={...n};return o=>(a.red=op(n.red,r.red,o),a.green=op(n.green,r.green,o),a.blue=op(n.blue,r.blue,o),a.alpha=Dt(n.alpha,r.alpha,o),ha.transform(a))},z7=(e,t)=>n=>t(e(n)),wc=(...e)=>e.reduce(z7),gE=new Set(["none","hidden"]);function K7(e,t){return gE.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function Y7(e,t){return n=>Dt(e,t,n)}function m4(e){return typeof e=="number"?Y7:typeof e=="string"?$g(e)?lf:pn.test(e)?AC:$7:Array.isArray(e)?HT:typeof e=="object"?pn.test(e)?AC:Z7:lf}function HT(e,t){const n=[...e],r=n.length,a=e.map((o,l)=>m4(o)(o,t[l]));return o=>{for(let l=0;l<r;l++)n[l]=a[l](o);return n}}function Z7(e,t){const n={...e,...t},r={};for(const a in n)e[a]!==void 0&&t[a]!==void 0&&(r[a]=m4(e[a])(e[a],t[a]));return a=>{for(const o in r)n[o]=r[o](a);return n}}function W7(e,t){var n;const r=[],a={color:0,var:0,number:0};for(let o=0;o<t.values.length;o++){const l=t.types[o],d=e.indexes[l][a[l]],f=(n=e.values[d])!==null&&n!==void 0?n:0;r[o]=f,a[l]++}return r}const $7=(e,t)=>{const n=yi.createTransformer(t),r=oc(e),a=oc(t);return r.indexes.var.length===a.indexes.var.length&&r.indexes.color.length===a.indexes.color.length&&r.indexes.number.length>=a.indexes.number.length?gE.has(e)&&!a.values.length||gE.has(t)&&!r.values.length?K7(e,t):wc(HT(W7(r,a),a.values),n):lf(e,t)};function PT(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?Dt(e,t,n):m4(e)(e,t)}const q7=5;function UT(e,t,n){const r=Math.max(t-q7,0);return fT(n-e(r),t-r)}const Ft={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},hC=.001;function Q7({duration:e=Ft.duration,bounce:t=Ft.bounce,velocity:n=Ft.velocity,mass:r=Ft.mass}){let a,o,l=1-t;l=Lu(Ft.minDamping,Ft.maxDamping,l),e=Lu(Ft.minDuration,Ft.maxDuration,Tu(e)),l<1?(a=A=>{const m=A*l,E=m*e,g=m-n,_=_E(A,l),S=Math.exp(-E);return hC-g/_*S},o=A=>{const E=A*l*e,g=E*n+n,_=Math.pow(l,2)*Math.pow(A,2)*e,S=Math.exp(-E),y=_E(Math.pow(A,2),l);return(-a(A)+hC>0?-1:1)*((g-_)*S)/y}):(a=A=>{const m=Math.exp(-A*e),E=(A-n)*e+1;return-.001+m*E},o=A=>{const m=Math.exp(-A*e),E=(n-A)*(e*e);return m*E});const d=5/e,f=J7(a,o,d);if(e=Du(e),isNaN(f))return{stiffness:Ft.stiffness,damping:Ft.damping,duration:e};{const A=Math.pow(f,2)*r;return{stiffness:A,damping:l*2*Math.sqrt(r*A),duration:e}}}const X7=12;function J7(e,t,n){let r=n;for(let a=1;a<X7;a++)r=r-e(r)/t(r);return r}function _E(e,t){return e*Math.sqrt(1-t*t)}const e6=["duration","bounce"],t6=["stiffness","damping","mass"];function mC(e,t){return t.some(n=>e[n]!==void 0)}function n6(e){let t={velocity:Ft.velocity,stiffness:Ft.stiffness,damping:Ft.damping,mass:Ft.mass,isResolvedFromDuration:!1,...e};if(!mC(e,t6)&&mC(e,e6))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),a=r*r,o=2*Lu(.05,1,1-(e.bounce||0))*Math.sqrt(a);t={...t,mass:Ft.mass,stiffness:a,damping:o}}else{const n=Q7(e);t={...t,...n,mass:Ft.mass},t.isResolvedFromDuration=!0}return t}function kT(e=Ft.visualDuration,t=Ft.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:a}=n;const o=n.keyframes[0],l=n.keyframes[n.keyframes.length-1],d={done:!1,value:o},{stiffness:f,damping:A,mass:m,duration:E,velocity:g,isResolvedFromDuration:_}=n6({...n,velocity:-Tu(n.velocity||0)}),S=g||0,y=A/(2*Math.sqrt(f*m)),v=l-o,R=Tu(Math.sqrt(f/m)),D=Math.abs(v)<5;r||(r=D?Ft.restSpeed.granular:Ft.restSpeed.default),a||(a=D?Ft.restDelta.granular:Ft.restDelta.default);let x;if(y<1){const b=_E(R,y);x=O=>{const F=Math.exp(-y*R*O);return l-F*((S+y*R*v)/b*Math.sin(b*O)+v*Math.cos(b*O))}}else if(y===1)x=b=>l-Math.exp(-R*b)*(v+(S+R*v)*b);else{const b=R*Math.sqrt(y*y-1);x=O=>{const F=Math.exp(-y*R*O),j=Math.min(b*O,300);return l-F*((S+y*R*v)*Math.sinh(j)+b*v*Math.cosh(j))/b}}const L={calculatedDuration:_&&E||null,next:b=>{const O=x(b);if(_)d.done=b>=E;else{let F=0;y<1&&(F=b===0?Du(S):UT(x,b,O));const j=Math.abs(F)<=r,G=Math.abs(l-O)<=a;d.done=j&&G}return d.value=d.done?l:O,d},toString:()=>{const b=Math.min(uT(L),dE),O=iT(F=>L.next(b*F).value,b,30);return b+"ms "+O}};return L}function pC({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:a=10,bounceStiffness:o=500,modifyTarget:l,min:d,max:f,restDelta:A=.5,restSpeed:m}){const E=e[0],g={done:!1,value:E},_=j=>d!==void 0&&j<d||f!==void 0&&j>f,S=j=>d===void 0?f:f===void 0||Math.abs(d-j)<Math.abs(f-j)?d:f;let y=n*t;const v=E+y,R=l===void 0?v:l(v);R!==v&&(y=R-E);const D=j=>-y*Math.exp(-j/r),x=j=>R+D(j),L=j=>{const G=D(j),K=x(j);g.done=Math.abs(G)<=A,g.value=g.done?R:K};let b,O;const F=j=>{_(g.value)&&(b=j,O=kT({keyframes:[g.value,S(g.value)],velocity:UT(x,j,g.value),damping:a,stiffness:o,restDelta:A,restSpeed:m}))};return F(0),{calculatedDuration:null,next:j=>{let G=!1;return!O&&b===void 0&&(G=!0,L(j),F(j)),b!==void 0&&j>=b?O.next(j-b):(!G&&L(j),g)}}}const r6=Lc(.42,0,1,1),u6=Lc(0,0,.58,1),GT=Lc(.42,0,.58,1),i6=e=>Array.isArray(e)&&typeof e[0]!="number",a6={linear:Wn,easeIn:r6,easeInOut:GT,easeOut:u6,circIn:c4,circInOut:IT,circOut:NT,backIn:l4,backInOut:gT,backOut:ET,anticipate:_T},EC=e=>{if(u4(e)){UD(e.length===4);const[t,n,r,a]=e;return Lc(t,n,r,a)}else if(typeof e=="string")return a6[e];return e};function s6(e,t,n){const r=[],a=n||PT,o=e.length-1;for(let l=0;l<o;l++){let d=a(e[l],e[l+1]);if(t){const f=Array.isArray(t)?t[l]||Wn:t;d=wc(f,d)}r.push(d)}return r}function o6(e,t,{clamp:n=!0,ease:r,mixer:a}={}){const o=e.length;if(UD(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 d=s6(t,r,a),f=d.length,A=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=zs(e[E],e[E+1],m);return d[E](g)};return n?m=>A(Lu(e[0],e[o-1],m)):A}function l6(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const a=zs(0,t,r);e.push(Dt(n,1,a))}}function c6(e){const t=[0];return l6(t,e.length-1),t}function d6(e,t){return e.map(n=>n*t)}function f6(e,t){return e.map(()=>t||GT).splice(0,e.length-1)}function cf({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const a=i6(r)?r.map(EC):EC(r),o={done:!1,value:t[0]},l=d6(n&&n.length===t.length?n:c6(t),e),d=o6(l,t,{ease:Array.isArray(a)?a:f6(t,a)});return{calculatedDuration:e,next:f=>(o.value=d(f),o.done=f>=e,o)}}const A6=e=>{const t=({timestamp:n})=>e(n);return{start:()=>St.update(t,!0),stop:()=>Ci(t),now:()=>cn.isProcessing?cn.timestamp:Zr.now()}},h6={decay:pC,inertia:pC,tween:cf,keyframes:cf,spring:kT},m6=e=>e/100;class p4 extends MT{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:a,keyframes:o}=this.options,l=(a==null?void 0:a.KeyframeResolver)||h4,d=(f,A)=>this.onKeyframesResolved(f,A);this.resolver=new l(o,d,n,r,a),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:a=0,repeatType:o,velocity:l=0}=this.options,d=r4(n)?n:h6[n]||cf;let f,A;d!==cf&&typeof t[0]!="number"&&(f=wc(m6,PT(t[0],t[1])),t=[0,100]);const m=d({...this.options,keyframes:t});o==="mirror"&&(A=d({...this.options,keyframes:[...t].reverse(),velocity:-l})),m.calculatedDuration===null&&(m.calculatedDuration=uT(m));const{calculatedDuration:E}=m,g=E+a,_=g*(r+1)-a;return{generator:m,mirroredGenerator:A,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:j}=this.options;return{done:!0,value:j[j.length-1]}}const{finalKeyframe:a,generator:o,mirroredGenerator:l,mapPercentToKeyframes:d,keyframes:f,calculatedDuration:A,totalDuration:m,resolvedDuration:E}=r;if(this.startTime===null)return o.next(0);const{delay:g,repeat:_,repeatType:S,repeatDelay:y,onUpdate:v}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-m/this.speed,this.startTime)),n?this.currentTime=t:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;const R=this.currentTime-g*(this.speed>=0?1:-1),D=this.speed>=0?R<0:R>m;this.currentTime=Math.max(R,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=m);let x=this.currentTime,L=o;if(_){const j=Math.min(this.currentTime,m)/E;let G=Math.floor(j),K=j%1;!K&&j>=1&&(K=1),K===1&&G--,G=Math.min(G,_+1),!!(G%2)&&(S==="reverse"?(K=1-K,y&&(K-=y/E)):S==="mirror"&&(L=l)),x=Lu(0,1,K)*E}const b=D?{done:!1,value:f[0]}:L.next(x);d&&(b.value=d(b.value));let{done:O}=b;!D&&A!==null&&(O=this.speed>=0?this.currentTime>=m:this.currentTime<=0);const F=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&O);return F&&a!==void 0&&(b.value=nA(f,this.options,a)),v&&v(b.value),F&&this.finish(),b}get duration(){const{resolved:t}=this;return t?Tu(t.calculatedDuration):0}get time(){return Tu(this.currentTime)}set time(t){t=Du(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=Tu(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=A6,onPlay:n,startTime:r}=this.options;this.driver||(this.driver=t(o=>this.tick(o))),n&&n();const a=this.driver.now();this.holdTime!==null?this.startTime=a-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=a):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 p6=new Set(["opacity","clipPath","filter","transform"]);function E6(e,t,n,{delay:r=0,duration:a=300,repeat:o=0,repeatType:l="loop",ease:d="easeInOut",times:f}={}){const A={[t]:n};f&&(A.offset=f);const m=sT(d,a);return Array.isArray(m)&&(A.easing=m),e.animate(A,{delay:r,duration:a,easing:Array.isArray(m)?"linear":m,fill:"both",iterations:o+1,direction:l==="reverse"?"alternate":"normal"})}const g6=Gg(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),df=10,_6=2e4;function N6(e){return r4(e.type)||e.type==="spring"||!aT(e.ease)}function I6(e,t){const n=new p4({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:e[0]};const a=[];let o=0;for(;!r.done&&o<_6;)r=n.sample(o),a.push(r.value),o+=df;return{times:void 0,keyframes:a,duration:o-df,ease:"linear"}}const jT={anticipate:_T,backInOut:gT,circInOut:IT};function S6(e){return e in jT}class gC extends MT{constructor(t){super(t);const{name:n,motionValue:r,element:a,keyframes:o}=this.options;this.resolver=new wT(o,(l,d)=>this.onKeyframesResolved(l,d),n,r,a),this.resolver.scheduleResolve()}initPlayback(t,n){let{duration:r=300,times:a,ease:o,type:l,motionValue:d,name:f,startTime:A}=this.options;if(!d.owner||!d.owner.current)return!1;if(typeof o=="string"&&of()&&S6(o)&&(o=jT[o]),N6(this.options)){const{onComplete:E,onUpdate:g,motionValue:_,element:S,...y}=this.options,v=I6(t,y);t=v.keyframes,t.length===1&&(t[1]=t[0]),r=v.duration,a=v.times,o=v.ease,l="keyframes"}const m=E6(d.owner.current,f,t,{...this.options,duration:r,times:a,ease:o});return m.startTime=A??this.calcStartTime(),this.pendingTimeline?(tC(m,this.pendingTimeline),this.pendingTimeline=void 0):m.onfinish=()=>{const{onComplete:E}=this.options;d.set(nA(t,this.options,n)),E&&E(),this.cancel(),this.resolveFinishedPromise()},{animation:m,duration:r,times:a,type:l,ease:o,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return Tu(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return Tu(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=Du(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 Wn;const{animation:r}=n;tC(r,t)}return Wn}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:a,type:o,ease:l,times:d}=t;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:A,onUpdate:m,onComplete:E,element:g,..._}=this.options,S=new p4({..._,keyframes:r,duration:a,type:o,ease:l,times:d,isGenerator:!0}),y=Du(this.time);A.setWithVelocity(S.sample(y-df).value,S.sample(y).value,df)}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:a,repeatType:o,damping:l,type:d}=t;if(!n||!n.owner||!(n.owner.current instanceof HTMLElement))return!1;const{onUpdate:f,transformTemplate:A}=n.owner.getProps();return g6()&&r&&p6.has(r)&&!f&&!A&&!a&&o!=="mirror"&&l!==0&&d!=="inertia"}}const C6={type:"spring",stiffness:500,damping:25,restSpeed:10},y6=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),v6={type:"keyframes",duration:.8},R6={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},D6=(e,{keyframes:t})=>t.length>2?v6:Ba.has(e)?e.startsWith("scale")?y6(t[1]):C6:R6;function T6({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:a,repeat:o,repeatType:l,repeatDelay:d,from:f,elapsed:A,...m}){return!!Object.keys(m).length}const E4=(e,t,n,r={},a,o)=>l=>{const d=n4(r,e)||{},f=d.delay||r.delay||0;let{elapsed:A=0}=r;A=A-Du(f);let m={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...d,delay:-A,onUpdate:g=>{t.set(g),d.onUpdate&&d.onUpdate(g)},onComplete:()=>{l(),d.onComplete&&d.onComplete()},name:e,motionValue:t,element:o?void 0:a};T6(d)||(m={...m,...D6(e,m)}),m.duration&&(m.duration=Du(m.duration)),m.repeatDelay&&(m.repeatDelay=Du(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=nA(m.keyframes,d);if(g!==void 0)return St.update(()=>{m.onUpdate(g),m.onComplete()}),new Zj([])}return!o&&gC.supports(m)?new gC(m):new p4(m)};function x6({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function VT(e,t,{delay:n=0,transitionOverride:r,type:a}={}){var o;let{transition:l=e.getDefaultTransition(),transitionEnd:d,...f}=t;r&&(l=r);const A=[],m=a&&e.animationState&&e.animationState.getState()[a];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&&x6(m,E))continue;const S={delay:n,...n4(l||{},E)};let y=!1;if(window.MotionHandoffAnimation){const R=AT(e);if(R){const D=window.MotionHandoffAnimation(R,E,St);D!==null&&(S.startTime=D,y=!0)}}AE(e,E),g.start(E4(E,g,_,e.shouldReduceMotion&&dT.has(E)?{type:!1}:S,e,y));const v=g.animation;v&&A.push(v)}return d&&Promise.all(A).then(()=>{St.update(()=>{d&&s7(e,d)})}),A}function NE(e,t,n={}){var r;const a=tA(e,t,n.type==="exit"?(r=e.presenceContext)===null||r===void 0?void 0:r.custom:void 0);let{transition:o=e.getDefaultTransition()||{}}=a||{};n.transitionOverride&&(o=n.transitionOverride);const l=a?()=>Promise.all(VT(e,a,n)):()=>Promise.resolve(),d=e.variantChildren&&e.variantChildren.size?(A=0)=>{const{delayChildren:m=0,staggerChildren:E,staggerDirection:g}=o;return b6(e,t,m+A,E,g,n)}:()=>Promise.resolve(),{when:f}=o;if(f){const[A,m]=f==="beforeChildren"?[l,d]:[d,l];return A().then(()=>m())}else return Promise.all([l(),d(n.delay)])}function b6(e,t,n=0,r=0,a=1,o){const l=[],d=(e.variantChildren.size-1)*r,f=a===1?(A=0)=>A*r:(A=0)=>d-A*r;return Array.from(e.variantChildren).sort(B6).forEach((A,m)=>{A.notify("AnimationStart",t),l.push(NE(A,t,{...o,delay:n+f(m)}).then(()=>A.notify("AnimationComplete",t)))}),Promise.all(l)}function B6(e,t){return e.sortNodePosition(t)}function O6(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const a=t.map(o=>NE(e,o,n));r=Promise.all(a)}else if(typeof t=="string")r=NE(e,t,n);else{const a=typeof t=="function"?tA(e,t,n.custom):t;r=Promise.all(VT(e,a,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}const F6=zg.length;function zT(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?zT(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<F6;n++){const r=zg[n],a=e.props[r];(ic(a)||a===!1)&&(t[r]=a)}return t}const L6=[...Vg].reverse(),w6=Vg.length;function M6(e){return t=>Promise.all(t.map(({animation:n,options:r})=>O6(e,n,r)))}function H6(e){let t=M6(e),n=_C(),r=!0;const a=f=>(A,m)=>{var E;const g=tA(e,m,f==="exit"?(E=e.presenceContext)===null||E===void 0?void 0:E.custom:void 0);if(g){const{transition:_,transitionEnd:S,...y}=g;A={...A,...y,...S}}return A};function o(f){t=f(e)}function l(f){const{props:A}=e,m=zT(e.parent)||{},E=[],g=new Set;let _={},S=1/0;for(let v=0;v<w6;v++){const R=L6[v],D=n[R],x=A[R]!==void 0?A[R]:m[R],L=ic(x),b=R===f?D.isActive:null;b===!1&&(S=v);let O=x===m[R]&&x!==A[R]&&L;if(O&&r&&e.manuallyAnimateOnMount&&(O=!1),D.protectedKeys={..._},!D.isActive&&b===null||!x&&!D.prevProp||Jf(x)||typeof x=="boolean")continue;const F=P6(D.prevProp,x);let j=F||R===f&&D.isActive&&!O&&L||v>S&&L,G=!1;const K=Array.isArray(x)?x:[x];let Ae=K.reduce(a(R),{});b===!1&&(Ae={});const{prevResolvedValues:se={}}=D,de={...se,...Ae},$=ne=>{j=!0,g.has(ne)&&(G=!0,g.delete(ne)),D.needsAnimating[ne]=!0;const ee=e.getValue(ne);ee&&(ee.liveStyle=!1)};for(const ne in de){const ee=Ae[ne],pe=se[ne];if(_.hasOwnProperty(ne))continue;let H=!1;cE(ee)&&cE(pe)?H=!rT(ee,pe):H=ee!==pe,H?ee!=null?$(ne):g.add(ne):ee!==void 0&&g.has(ne)?$(ne):D.protectedKeys[ne]=!0}D.prevProp=x,D.prevResolvedValues=Ae,D.isActive&&(_={..._,...Ae}),r&&e.blockInitialAnimation&&(j=!1),j&&(!(O&&F)||G)&&E.push(...K.map(ne=>({animation:ne,options:{type:R}})))}if(g.size){const v={};g.forEach(R=>{const D=e.getBaseTarget(R),x=e.getValue(R);x&&(x.liveStyle=!0),v[R]=D??null}),E.push({animation:v})}let y=!!E.length;return r&&(A.initial===!1||A.initial===A.animate)&&!e.manuallyAnimateOnMount&&(y=!1),r=!1,y?t(E):Promise.resolve()}function d(f,A){var m;if(n[f].isActive===A)return Promise.resolve();(m=e.variantChildren)===null||m===void 0||m.forEach(g=>{var _;return(_=g.animationState)===null||_===void 0?void 0:_.setActive(f,A)}),n[f].isActive=A;const E=l(f);for(const g in n)n[g].protectedKeys={};return E}return{animateChanges:l,setActive:d,setAnimateFunction:o,getState:()=>n,reset:()=>{n=_C(),r=!0}}}function P6(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!rT(t,e):!1}function sa(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function _C(){return{animate:sa(!0),whileInView:sa(),whileHover:sa(),whileTap:sa(),whileDrag:sa(),whileFocus:sa(),exit:sa()}}class Fi{constructor(t){this.isMounted=!1,this.node=t}update(){}}class U6 extends Fi{constructor(t){super(t),t.animationState||(t.animationState=H6(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Jf(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 k6=0;class G6 extends Fi{constructor(){super(...arguments),this.id=k6++}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 a=this.node.animationState.setActive("exit",!t);n&&!t&&a.then(()=>n(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const KT={animation:{Feature:U6},exit:{Feature:G6}};function lc(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function Mc(e){return{point:{x:e.pageX,y:e.pageY}}}const j6=e=>t=>i4(t)&&e(t,Mc(t));function wl(e,t,n,r){return lc(e,t,j6(n),r)}const NC=(e,t)=>Math.abs(e-t);function V6(e,t){const n=NC(e.x,t.x),r=NC(e.y,t.y);return Math.sqrt(n**2+r**2)}class YT{constructor(t,n,{transformPagePoint:r,contextWindow:a,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=cp(this.lastMoveEventInfo,this.history),g=this.startEvent!==null,_=V6(E.offset,{x:0,y:0})>=3;if(!g&&!_)return;const{point:S}=E,{timestamp:y}=cn;this.history.push({...S,timestamp:y});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=lp(g,this.transformPagePoint),St.update(this.updatePoint,!0)},this.handlePointerUp=(E,g)=>{this.end();const{onEnd:_,onSessionEnd:S,resumeAnimation:y}=this.handlers;if(this.dragSnapToOrigin&&y&&y(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const v=cp(E.type==="pointercancel"?this.lastMoveEventInfo:lp(g,this.transformPagePoint),this.history);this.startEvent&&_&&_(E,v),S&&S(E,v)},!i4(t))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=r,this.contextWindow=a||window;const l=Mc(t),d=lp(l,this.transformPagePoint),{point:f}=d,{timestamp:A}=cn;this.history=[{...f,timestamp:A}];const{onSessionStart:m}=n;m&&m(t,cp(d,this.history)),this.removeListeners=wc(wl(this.contextWindow,"pointermove",this.handlePointerMove),wl(this.contextWindow,"pointerup",this.handlePointerUp),wl(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Ci(this.updatePoint)}}function lp(e,t){return t?{point:t(e.point)}:e}function IC(e,t){return{x:e.x-t.x,y:e.y-t.y}}function cp({point:e},t){return{point:e,delta:IC(e,ZT(t)),offset:IC(e,z6(t)),velocity:K6(t,.1)}}function z6(e){return e[0]}function ZT(e){return e[e.length-1]}function K6(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const a=ZT(e);for(;n>=0&&(r=e[n],!(a.timestamp-r.timestamp>Du(t)));)n--;if(!r)return{x:0,y:0};const o=Tu(a.timestamp-r.timestamp);if(o===0)return{x:0,y:0};const l={x:(a.x-r.x)/o,y:(a.y-r.y)/o};return l.x===1/0&&(l.x=0),l.y===1/0&&(l.y=0),l}const WT=1e-4,Y6=1-WT,Z6=1+WT,$T=.01,W6=0-$T,$6=0+$T;function qn(e){return e.max-e.min}function q6(e,t,n){return Math.abs(e-t)<=n}function SC(e,t,n,r=.5){e.origin=r,e.originPoint=Dt(t.min,t.max,e.origin),e.scale=qn(n)/qn(t),e.translate=Dt(n.min,n.max,e.origin)-e.originPoint,(e.scale>=Y6&&e.scale<=Z6||isNaN(e.scale))&&(e.scale=1),(e.translate>=W6&&e.translate<=$6||isNaN(e.translate))&&(e.translate=0)}function Ml(e,t,n,r){SC(e.x,t.x,n.x,r?r.originX:void 0),SC(e.y,t.y,n.y,r?r.originY:void 0)}function CC(e,t,n){e.min=n.min+t.min,e.max=e.min+qn(t)}function Q6(e,t,n){CC(e.x,t.x,n.x),CC(e.y,t.y,n.y)}function yC(e,t,n){e.min=t.min-n.min,e.max=e.min+qn(t)}function Hl(e,t,n){yC(e.x,t.x,n.x),yC(e.y,t.y,n.y)}function X6(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 vC(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 J6(e,{top:t,left:n,bottom:r,right:a}){return{x:vC(e.x,n,a),y:vC(e.y,t,r)}}function RC(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 eV(e,t){return{x:RC(e.x,t.x),y:RC(e.y,t.y)}}function tV(e,t){let n=.5;const r=qn(e),a=qn(t);return a>r?n=zs(t.min,t.max-r,e.min):r>a&&(n=zs(e.min,e.max-a,t.min)),Lu(0,1,n)}function nV(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 IE=.35;function rV(e=IE){return e===!1?e=0:e===!0&&(e=IE),{x:DC(e,"left","right"),y:DC(e,"top","bottom")}}function DC(e,t,n){return{min:TC(e,t),max:TC(e,n)}}function TC(e,t){return typeof e=="number"?e:e[t]||0}const xC=()=>({translate:0,scale:1,origin:0,originPoint:0}),Ts=()=>({x:xC(),y:xC()}),bC=()=>({min:0,max:0}),Ht=()=>({x:bC(),y:bC()});function dr(e){return[e("x"),e("y")]}function qT({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function uV({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function iV(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 dp(e){return e===void 0||e===1}function SE({scale:e,scaleX:t,scaleY:n}){return!dp(e)||!dp(t)||!dp(n)}function oa(e){return SE(e)||QT(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function QT(e){return BC(e.x)||BC(e.y)}function BC(e){return e&&e!=="0%"}function ff(e,t,n){const r=e-n,a=t*r;return n+a}function OC(e,t,n,r,a){return a!==void 0&&(e=ff(e,a,r)),ff(e,n,r)+t}function CE(e,t=0,n=1,r,a){e.min=OC(e.min,t,n,r,a),e.max=OC(e.max,t,n,r,a)}function XT(e,{x:t,y:n}){CE(e.x,t.translate,t.scale,t.originPoint),CE(e.y,n.translate,n.scale,n.originPoint)}const FC=.999999999999,LC=1.0000000000001;function aV(e,t,n,r=!1){const a=n.length;if(!a)return;t.x=t.y=1;let o,l;for(let d=0;d<a;d++){o=n[d],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&&bs(e,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),l&&(t.x*=l.x.scale,t.y*=l.y.scale,XT(e,l)),r&&oa(o.latestValues)&&bs(e,o.latestValues))}t.x<LC&&t.x>FC&&(t.x=1),t.y<LC&&t.y>FC&&(t.y=1)}function xs(e,t){e.min=e.min+t,e.max=e.max+t}function wC(e,t,n,r,a=.5){const o=Dt(e.min,e.max,a);CE(e,t,n,o,r)}function bs(e,t){wC(e.x,t.x,t.scaleX,t.scale,t.originX),wC(e.y,t.y,t.scaleY,t.scale,t.originY)}function JT(e,t){return qT(iV(e.getBoundingClientRect(),t))}function sV(e,t,n){const r=JT(e,n),{scroll:a}=t;return a&&(xs(r.x,a.offset.x),xs(r.y,a.offset.y)),r}const e1=({current:e})=>e?e.ownerDocument.defaultView:null,oV=new WeakMap;class lV{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=Ht(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const a=m=>{const{dragSnapToOrigin:E}=this.getProps();E?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(Mc(m).point)},o=(m,E)=>{const{drag:g,dragPropagation:_,onDragStart:S}=this.getProps();if(g&&!_&&(this.openDragLock&&this.openDragLock(),this.openDragLock=n7(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),dr(v=>{let R=this.getAxisMotionValue(v).get()||0;if(Yr.test(R)){const{projection:D}=this.visualElement;if(D&&D.layout){const x=D.layout.layoutBox[v];x&&(R=qn(x)*(parseFloat(R)/100))}}this.originPoint[v]=R}),S&&St.postRender(()=>S(m,E)),AE(this.visualElement,"transform");const{animationState:y}=this.visualElement;y&&y.setActive("whileDrag",!0)},l=(m,E)=>{const{dragPropagation:g,dragDirectionLock:_,onDirectionLock:S,onDrag:y}=this.getProps();if(!g&&!this.openDragLock)return;const{offset:v}=E;if(_&&this.currentDirection===null){this.currentDirection=cV(v),this.currentDirection!==null&&S&&S(this.currentDirection);return}this.updateAxis("x",E.point,v),this.updateAxis("y",E.point,v),this.visualElement.render(),y&&y(m,E)},d=(m,E)=>this.stop(m,E),f=()=>dr(m=>{var E;return this.getAnimationState(m)==="paused"&&((E=this.getAxisMotionValue(m).animation)===null||E===void 0?void 0:E.play())}),{dragSnapToOrigin:A}=this.getProps();this.panSession=new YT(t,{onSessionStart:a,onStart:o,onMove:l,onSessionEnd:d,resumeAnimation:f},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:A,contextWindow:e1(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:a}=n;this.startAnimation(a);const{onDragEnd:o}=this.getProps();o&&St.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:a}=this.getProps();if(!r||!f0(t,a,this.currentDirection))return;const o=this.getAxisMotionValue(t);let l=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(l=X6(l,this.constraints[t],this.elastic[t])),o.set(l)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:r}=this.getProps(),a=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&&Rs(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&a?this.constraints=J6(a.layoutBox,n):this.constraints=!1,this.elastic=rV(r),o!==this.constraints&&a&&this.constraints&&!this.hasMutatedConstraints&&dr(l=>{this.constraints!==!1&&this.getAxisMotionValue(l)&&(this.constraints[l]=nV(a.layoutBox[l],this.constraints[l]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Rs(t))return!1;const r=t.current,{projection:a}=this.visualElement;if(!a||!a.layout)return!1;const o=sV(r,a.root,this.visualElement.getTransformPagePoint());let l=eV(a.layout.layoutBox,o);if(n){const d=n(uV(l));this.hasMutatedConstraints=!!d,d&&(l=qT(d))}return l}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:a,dragTransition:o,dragSnapToOrigin:l,onDragTransitionEnd:d}=this.getProps(),f=this.constraints||{},A=dr(m=>{if(!f0(m,n,this.currentDirection))return;let E=f&&f[m]||{};l&&(E={min:0,max:0});const g=a?200:1e6,_=a?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(A).then(d)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return AE(this.visualElement,t),r.start(E4(t,r,0,n,this.visualElement,!1))}stopAnimation(){dr(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){dr(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(),a=r[n];return a||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){dr(n=>{const{drag:r}=this.getProps();if(!f0(n,r,this.currentDirection))return;const{projection:a}=this.visualElement,o=this.getAxisMotionValue(n);if(a&&a.layout){const{min:l,max:d}=a.layout.layoutBox[n];o.set(t[n]-Dt(l,d,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!Rs(n)||!r||!this.constraints)return;this.stopAnimation();const a={x:0,y:0};dr(l=>{const d=this.getAxisMotionValue(l);if(d&&this.constraints!==!1){const f=d.get();a[l]=tV({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(),dr(l=>{if(!f0(l,t,null))return;const d=this.getAxisMotionValue(l),{min:f,max:A}=this.constraints[l];d.set(Dt(f,A,a[l]))})}addListeners(){if(!this.visualElement.current)return;oV.set(this.visualElement,this);const t=this.visualElement.current,n=wl(t,"pointerdown",f=>{const{drag:A,dragListener:m=!0}=this.getProps();A&&m&&this.start(f)}),r=()=>{const{dragConstraints:f}=this.getProps();Rs(f)&&f.current&&(this.constraints=this.resolveRefConstraints())},{projection:a}=this.visualElement,o=a.addEventListener("measure",r);a&&!a.layout&&(a.root&&a.root.updateScroll(),a.updateLayout()),St.read(r);const l=lc(window,"resize",()=>this.scalePositionWithinConstraints()),d=a.addEventListener("didUpdate",({delta:f,hasLayoutChanged:A})=>{this.isDragging&&A&&(dr(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(),d&&d()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:a=!1,dragConstraints:o=!1,dragElastic:l=IE,dragMomentum:d=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:a,dragConstraints:o,dragElastic:l,dragMomentum:d}}}function f0(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function cV(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class dV extends Fi{constructor(t){super(t),this.removeGroupControls=Wn,this.removeListeners=Wn,this.controls=new lV(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Wn}unmount(){this.removeGroupControls(),this.removeListeners()}}const MC=e=>(t,n)=>{e&&St.postRender(()=>e(t,n))};class fV extends Fi{constructor(){super(...arguments),this.removePointerDownListener=Wn}onPointerDown(t){this.session=new YT(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:e1(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:a}=this.node.getProps();return{onSessionStart:MC(t),onStart:MC(n),onMove:r,onEnd:(o,l)=>{delete this.session,a&&St.postRender(()=>a(o,l))}}}mount(){this.removePointerDownListener=wl(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 F0={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function HC(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=HC(e,t.target.x),r=HC(e,t.target.y);return`${n}% ${r}%`}},AV={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,a=yi.parse(e);if(a.length>5)return r;const o=yi.createTransformer(e),l=typeof a[0]!="number"?1:0,d=n.x.scale*t.x,f=n.y.scale*t.y;a[0+l]/=d,a[1+l]/=f;const A=Dt(d,f,.5);return typeof a[2+l]=="number"&&(a[2+l]/=A),typeof a[3+l]=="number"&&(a[3+l]/=A),o(a)}};class hV extends C.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:a}=this.props,{projection:o}=t;wj(mV),o&&(n.group&&n.group.add(o),r&&r.register&&a&&r.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),F0.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:a,isPresent:o}=this.props,l=r.projection;return l&&(l.isPresent=o,a||t.layoutDependency!==n||n===void 0?l.willUpdate():this.safeToRemove(),t.isPresent!==o&&(o?l.promote():l.relegate()||St.postRender(()=>{const d=l.getStack();(!d||!d.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),Yg.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:a}=t;a&&(a.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(a),r&&r.deregister&&r.deregister(a))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function t1(e){const[t,n]=qG(),r=C.useContext(HD);return N.jsx(hV,{...e,layoutGroup:r,switchLayoutGroup:C.useContext(zD),isPresent:t,safeToRemove:n})}const mV={borderRadius:{...pl,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:pl,borderTopRightRadius:pl,borderBottomLeftRadius:pl,borderBottomRightRadius:pl,boxShadow:AV};function pV(e,t,n){const r=En(e)?e:sc(e);return r.start(E4("",r,t,n)),r.animation}function EV(e){return e instanceof SVGElement&&e.tagName!=="svg"}const gV=(e,t)=>e.depth-t.depth;class _V{constructor(){this.children=[],this.isDirty=!1}add(t){a4(this.children,t),this.isDirty=!0}remove(t){s4(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(gV),this.isDirty=!1,this.children.forEach(t)}}function NV(e,t){const n=Zr.now(),r=({timestamp:a})=>{const o=a-n;o>=t&&(Ci(r),e(o-t))};return St.read(r,!0),()=>Ci(r)}const n1=["TopLeft","TopRight","BottomLeft","BottomRight"],IV=n1.length,PC=e=>typeof e=="string"?parseFloat(e):e,UC=e=>typeof e=="number"||Ue.test(e);function SV(e,t,n,r,a,o){a?(e.opacity=Dt(0,n.opacity!==void 0?n.opacity:1,CV(r)),e.opacityExit=Dt(t.opacity!==void 0?t.opacity:1,0,yV(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<IV;l++){const d=`border${n1[l]}Radius`;let f=kC(t,d),A=kC(n,d);if(f===void 0&&A===void 0)continue;f||(f=0),A||(A=0),f===0||A===0||UC(f)===UC(A)?(e[d]=Math.max(Dt(PC(f),PC(A),r),0),(Yr.test(A)||Yr.test(f))&&(e[d]+="%")):e[d]=A}(t.rotate||n.rotate)&&(e.rotate=Dt(t.rotate||0,n.rotate||0,r))}function kC(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const CV=r1(0,.5,NT),yV=r1(.5,.95,Wn);function r1(e,t,n){return r=>r<e?0:r>t?1:n(zs(e,t,r))}function GC(e,t){e.min=t.min,e.max=t.max}function lr(e,t){GC(e.x,t.x),GC(e.y,t.y)}function jC(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function VC(e,t,n,r,a){return e-=t,e=ff(e,1/n,r),a!==void 0&&(e=ff(e,1/a,r)),e}function vV(e,t=0,n=1,r=.5,a,o=e,l=e){if(Yr.test(t)&&(t=parseFloat(t),t=Dt(l.min,l.max,t/100)-l.min),typeof t!="number")return;let d=Dt(o.min,o.max,r);e===o&&(d-=t),e.min=VC(e.min,t,n,d,a),e.max=VC(e.max,t,n,d,a)}function zC(e,t,[n,r,a],o,l){vV(e,t[n],t[r],t[a],t.scale,o,l)}const RV=["x","scaleX","originX"],DV=["y","scaleY","originY"];function KC(e,t,n,r){zC(e.x,t,RV,n?n.x:void 0,r?r.x:void 0),zC(e.y,t,DV,n?n.y:void 0,r?r.y:void 0)}function YC(e){return e.translate===0&&e.scale===1}function u1(e){return YC(e.x)&&YC(e.y)}function ZC(e,t){return e.min===t.min&&e.max===t.max}function TV(e,t){return ZC(e.x,t.x)&&ZC(e.y,t.y)}function WC(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function i1(e,t){return WC(e.x,t.x)&&WC(e.y,t.y)}function $C(e){return qn(e.x)/qn(e.y)}function qC(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class xV{constructor(){this.members=[]}add(t){a4(this.members,t),t.scheduleRender()}remove(t){if(s4(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(a=>t===a);if(n===0)return!1;let r;for(let a=n;a>=0;a--){const o=this.members[a];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:a}=t.options;a===!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 bV(e,t,n){let r="";const a=e.x.translate/t.x,o=e.y.translate/t.y,l=(n==null?void 0:n.z)||0;if((a||o||l)&&(r=`translate3d(${a}px, ${o}px, ${l}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:A,rotate:m,rotateX:E,rotateY:g,skewX:_,skewY:S}=n;A&&(r=`perspective(${A}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 d=e.x.scale*t.x,f=e.y.scale*t.y;return(d!==1||f!==1)&&(r+=`scale(${d}, ${f})`),r||"none"}const la={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},vl=typeof window<"u"&&window.MotionDebug!==void 0,fp=["","X","Y","Z"],BV={visibility:"hidden"},QC=1e3;let OV=0;function Ap(e,t,n,r){const{latestValues:a}=t;a[e]&&(n[e]=a[e],t.setStaticValue(e,0),r&&(r[e]=0))}function a1(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=AT(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:a,layoutId:o}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",St,!(a||o))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&a1(r)}function s1({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:a}){return class{constructor(l={},d=t==null?void 0:t()){this.id=OV++,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,vl&&(la.totalNodes=la.resolvedTargetDeltas=la.recalculatedProjection=0),this.nodes.forEach(wV),this.nodes.forEach(kV),this.nodes.forEach(GV),this.nodes.forEach(MV),vl&&window.MotionDebug.record(la)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=l,this.root=d?d.root||d:this,this.path=d?[...d.path,d]:[],this.parent=d,this.depth=d?d.depth+1:0;for(let f=0;f<this.path.length;f++)this.path[f].shouldResetTransform=!0;this.root===this&&(this.nodes=new _V)}addEventListener(l,d){return this.eventHandlers.has(l)||this.eventHandlers.set(l,new o4),this.eventHandlers.get(l).add(d)}notifyListeners(l,...d){const f=this.eventHandlers.get(l);f&&f.notify(...d)}hasListeners(l){return this.eventHandlers.has(l)}mount(l,d=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=EV(l),this.instance=l;const{layoutId:f,layout:A,visualElement:m}=this.options;if(m&&!m.current&&m.mount(l),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),d&&(A||f)&&(this.isLayoutDirty=!0),e){let E;const g=()=>this.root.updateBlockedByResize=!1;e(l,()=>{this.root.updateBlockedByResize=!0,E&&E(),E=NV(g,250),F0.hasAnimatedSinceResize&&(F0.hasAnimatedSinceResize=!1,this.nodes.forEach(JC))})}f&&this.root.registerSharedNode(f,this),this.options.animate!==!1&&m&&(f||A)&&this.addEventListener("didUpdate",({delta:E,hasLayoutChanged:g,hasRelativeTargetChanged:_,layout:S})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const y=this.options.transition||m.getDefaultTransition()||YV,{onLayoutAnimationStart:v,onLayoutAnimationComplete:R}=m.getProps(),D=!this.targetLayout||!i1(this.targetLayout,S)||_,x=!g&&_;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||x||g&&(D||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(E,x);const L={...n4(y,"layout"),onPlay:v,onComplete:R};(m.shouldReduceMotion||this.options.layoutRoot)&&(L.delay=0,L.type=!1),this.startAnimation(L)}else g||JC(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,Ci(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(jV),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&&a1(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:d,layout:f}=this.options;if(d===void 0&&!f)return;const A=this.getTransformTemplate();this.prevTransformTemplateValue=A?A(this.latestValues,""):void 0,this.updateSnapshot(),l&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(XC);return}this.isUpdating||this.nodes.forEach(PV),this.isUpdating=!1,this.nodes.forEach(UV),this.nodes.forEach(FV),this.nodes.forEach(LV),this.clearAllSnapshots();const d=Zr.now();cn.delta=Lu(0,1e3/60,d-cn.timestamp),cn.timestamp=d,cn.isProcessing=!0,rp.update.process(cn),rp.preRender.process(cn),rp.render.process(cn),cn.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Yg.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(HV),this.sharedNodes.forEach(VV)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,St.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){St.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=Ht(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:d}=this.options;d&&d.notify("LayoutMeasure",this.layout.layoutBox,l?l.layoutBox:void 0)}updateScroll(l="measure"){let d=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===l&&(d=!1),d){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(!a)return;const l=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,d=this.projectionDelta&&!u1(this.projectionDelta),f=this.getTransformTemplate(),A=f?f(this.latestValues,""):void 0,m=A!==this.prevTransformTemplateValue;l&&(d||oa(this.latestValues)||m)&&(a(this.instance,A),this.shouldResetTransform=!1,this.scheduleRender())}measure(l=!0){const d=this.measurePageBox();let f=this.removeElementScroll(d);return l&&(f=this.removeTransform(f)),ZV(f),{animationId:this.root.animationId,measuredBox:d,layoutBox:f,latestValues:{},source:this.id}}measurePageBox(){var l;const{visualElement:d}=this.options;if(!d)return Ht();const f=d.measureViewportBox();if(!(((l=this.scroll)===null||l===void 0?void 0:l.wasRoot)||this.path.some(WV))){const{scroll:m}=this.root;m&&(xs(f.x,m.offset.x),xs(f.y,m.offset.y))}return f}removeElementScroll(l){var d;const f=Ht();if(lr(f,l),!((d=this.scroll)===null||d===void 0)&&d.wasRoot)return f;for(let A=0;A<this.path.length;A++){const m=this.path[A],{scroll:E,options:g}=m;m!==this.root&&E&&g.layoutScroll&&(E.wasRoot&&lr(f,l),xs(f.x,E.offset.x),xs(f.y,E.offset.y))}return f}applyTransform(l,d=!1){const f=Ht();lr(f,l);for(let A=0;A<this.path.length;A++){const m=this.path[A];!d&&m.options.layoutScroll&&m.scroll&&m!==m.root&&bs(f,{x:-m.scroll.offset.x,y:-m.scroll.offset.y}),oa(m.latestValues)&&bs(f,m.latestValues)}return oa(this.latestValues)&&bs(f,this.latestValues),f}removeTransform(l){const d=Ht();lr(d,l);for(let f=0;f<this.path.length;f++){const A=this.path[f];if(!A.instance||!oa(A.latestValues))continue;SE(A.latestValues)&&A.updateSnapshot();const m=Ht(),E=A.measurePageBox();lr(m,E),KC(d,A.latestValues,A.snapshot?A.snapshot.layoutBox:void 0,m)}return oa(this.latestValues)&&KC(d,this.latestValues),d}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!==cn.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(l=!1){var d;const f=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=f.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=f.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=f.isSharedProjectionDirty);const A=!!this.resumingFrom||this!==f;if(!(l||A&&this.isSharedProjectionDirty||this.isProjectionDirty||!((d=this.parent)===null||d===void 0)&&d.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:E,layoutId:g}=this.options;if(!(!this.layout||!(E||g))){if(this.resolvedRelativeTargetAt=cn.timestamp,!this.targetDelta&&!this.relativeTarget){const _=this.getClosestProjectingParent();_&&_.layout&&this.animationProgress!==1?(this.relativeParent=_,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Ht(),this.relativeTargetOrigin=Ht(),Hl(this.relativeTargetOrigin,this.layout.layoutBox,_.layout.layoutBox),lr(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=Ht(),this.targetWithTransforms=Ht()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),Q6(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):lr(this.target,this.layout.layoutBox),XT(this.target,this.targetDelta)):lr(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=Ht(),this.relativeTargetOrigin=Ht(),Hl(this.relativeTargetOrigin,this.target,_.target),lr(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}vl&&la.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||SE(this.parent.latestValues)||QT(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 d=this.getLead(),f=!!this.resumingFrom||this!==d;let A=!0;if((this.isProjectionDirty||!((l=this.parent)===null||l===void 0)&&l.isProjectionDirty)&&(A=!1),f&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(A=!1),this.resolvedRelativeTargetAt===cn.timestamp&&(A=!1),A)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;lr(this.layoutCorrected,this.layout.layoutBox);const g=this.treeScale.x,_=this.treeScale.y;aV(this.layoutCorrected,this.treeScale,this.path,f),d.layout&&!d.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(d.target=d.layout.layoutBox,d.targetWithTransforms=Ht());const{target:S}=d;if(!S){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(jC(this.prevProjectionDelta.x,this.projectionDelta.x),jC(this.prevProjectionDelta.y,this.projectionDelta.y)),Ml(this.projectionDelta,this.layoutCorrected,S,this.latestValues),(this.treeScale.x!==g||this.treeScale.y!==_||!qC(this.projectionDelta.x,this.prevProjectionDelta.x)||!qC(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",S)),vl&&la.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(l=!0){var d;if((d=this.options.visualElement)===null||d===void 0||d.scheduleRender(),l){const f=this.getStack();f&&f.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Ts(),this.projectionDelta=Ts(),this.projectionDeltaWithTransform=Ts()}setAnimationOrigin(l,d=!1){const f=this.snapshot,A=f?f.latestValues:{},m={...this.latestValues},E=Ts();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!d;const g=Ht(),_=f?f.source:void 0,S=this.layout?this.layout.source:void 0,y=_!==S,v=this.getStack(),R=!v||v.members.length<=1,D=!!(y&&!R&&this.options.crossfade===!0&&!this.path.some(KV));this.animationProgress=0;let x;this.mixTargetDelta=L=>{const b=L/1e3;ey(E.x,l.x,b),ey(E.y,l.y,b),this.setTargetDelta(E),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Hl(g,this.layout.layoutBox,this.relativeParent.layout.layoutBox),zV(this.relativeTarget,this.relativeTargetOrigin,g,b),x&&TV(this.relativeTarget,x)&&(this.isProjectionDirty=!1),x||(x=Ht()),lr(x,this.relativeTarget)),y&&(this.animationValues=m,SV(m,A,this.latestValues,b,D,R)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=b},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&&(Ci(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=St.update(()=>{F0.hasAnimatedSinceResize=!0,this.currentAnimation=pV(0,QC,{...l,onUpdate:d=>{this.mixTargetDelta(d),l.onUpdate&&l.onUpdate(d)},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(QC),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const l=this.getLead();let{targetWithTransforms:d,target:f,layout:A,latestValues:m}=l;if(!(!d||!f||!A)){if(this!==l&&this.layout&&A&&o1(this.options.animationType,this.layout.layoutBox,A.layoutBox)){f=this.target||Ht();const E=qn(this.layout.layoutBox.x);f.x.min=l.target.x.min,f.x.max=f.x.min+E;const g=qn(this.layout.layoutBox.y);f.y.min=l.target.y.min,f.y.max=f.y.min+g}lr(d,f),bs(d,m),Ml(this.projectionDeltaWithTransform,this.layoutCorrected,d,m)}}registerSharedNode(l,d){this.sharedNodes.has(l)||this.sharedNodes.set(l,new xV),this.sharedNodes.get(l).add(d);const A=d.options.initialPromotionConfig;d.promote({transition:A?A.transition:void 0,preserveFollowOpacity:A&&A.shouldPreserveFollowOpacity?A.shouldPreserveFollowOpacity(d):void 0})}isLead(){const l=this.getStack();return l?l.lead===this:!0}getLead(){var l;const{layoutId:d}=this.options;return d?((l=this.getStack())===null||l===void 0?void 0:l.lead)||this:this}getPrevLead(){var l;const{layoutId:d}=this.options;return d?(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:d,preserveFollowOpacity:f}={}){const A=this.getStack();A&&A.promote(this,f),l&&(this.projectionDelta=void 0,this.needsReset=!0),d&&this.setOptions({transition:d})}relegate(){const l=this.getStack();return l?l.relegate(this):!1}resetSkewAndRotation(){const{visualElement:l}=this.options;if(!l)return;let d=!1;const{latestValues:f}=l;if((f.z||f.rotate||f.rotateX||f.rotateY||f.rotateZ||f.skewX||f.skewY)&&(d=!0),!d)return;const A={};f.z&&Ap("z",l,A,this.animationValues);for(let m=0;m<fp.length;m++)Ap(`rotate${fp[m]}`,l,A,this.animationValues),Ap(`skew${fp[m]}`,l,A,this.animationValues);l.render();for(const m in A)l.setStaticValue(m,A[m]),this.animationValues&&(this.animationValues[m]=A[m]);l.scheduleRender()}getProjectionStyles(l){var d,f;if(!this.instance||this.isSVG)return;if(!this.isVisible)return BV;const A={visibility:""},m=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,A.opacity="",A.pointerEvents=B0(l==null?void 0:l.pointerEvents)||"",A.transform=m?m(this.latestValues,""):"none",A;const E=this.getLead();if(!this.projectionDelta||!this.layout||!E.target){const y={};return this.options.layoutId&&(y.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,y.pointerEvents=B0(l==null?void 0:l.pointerEvents)||""),this.hasProjected&&!oa(this.latestValues)&&(y.transform=m?m({},""):"none",this.hasProjected=!1),y}const g=E.animationValues||E.latestValues;this.applyTransformsToTarget(),A.transform=bV(this.projectionDeltaWithTransform,this.treeScale,g),m&&(A.transform=m(g,A.transform));const{x:_,y:S}=this.projectionDelta;A.transformOrigin=`${_.origin*100}% ${S.origin*100}% 0`,E.animationValues?A.opacity=E===this?(f=(d=g.opacity)!==null&&d!==void 0?d:this.latestValues.opacity)!==null&&f!==void 0?f:1:this.preserveOpacity?this.latestValues.opacity:g.opacityExit:A.opacity=E===this?g.opacity!==void 0?g.opacity:"":g.opacityExit!==void 0?g.opacityExit:0;for(const y in sf){if(g[y]===void 0)continue;const{correct:v,applyTo:R}=sf[y],D=A.transform==="none"?g[y]:v(g[y],E);if(R){const x=R.length;for(let L=0;L<x;L++)A[R[L]]=D}else A[y]=D}return this.options.layoutId&&(A.pointerEvents=E===this?B0(l==null?void 0:l.pointerEvents)||"":"none"),A}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(l=>{var d;return(d=l.currentAnimation)===null||d===void 0?void 0:d.stop()}),this.root.nodes.forEach(XC),this.root.sharedNodes.clear()}}}function FV(e){e.updateLayout()}function LV(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:a}=e.layout,{animationType:o}=e.options,l=n.source!==e.layout.source;o==="size"?dr(E=>{const g=l?n.measuredBox[E]:n.layoutBox[E],_=qn(g);g.min=r[E].min,g.max=g.min+_}):o1(o,n.layoutBox,r)&&dr(E=>{const g=l?n.measuredBox[E]:n.layoutBox[E],_=qn(r[E]);g.max=g.min+_,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[E].max=e.relativeTarget[E].min+_)});const d=Ts();Ml(d,r,n.layoutBox);const f=Ts();l?Ml(f,e.applyTransform(a,!0),n.measuredBox):Ml(f,r,n.layoutBox);const A=!u1(d);let m=!1;if(!e.resumeFrom){const E=e.getClosestProjectingParent();if(E&&!E.resumeFrom){const{snapshot:g,layout:_}=E;if(g&&_){const S=Ht();Hl(S,n.layoutBox,g.layoutBox);const y=Ht();Hl(y,r,_.layoutBox),i1(S,y)||(m=!0),E.options.layoutRoot&&(e.relativeTarget=y,e.relativeTargetOrigin=S,e.relativeParent=E)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:f,layoutDelta:d,hasLayoutChanged:A,hasRelativeTargetChanged:m})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function wV(e){vl&&la.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 MV(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function HV(e){e.clearSnapshot()}function XC(e){e.clearMeasurements()}function PV(e){e.isLayoutDirty=!1}function UV(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function JC(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function kV(e){e.resolveTargetDelta()}function GV(e){e.calcProjection()}function jV(e){e.resetSkewAndRotation()}function VV(e){e.removeLeadSnapshot()}function ey(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 ty(e,t,n,r){e.min=Dt(t.min,n.min,r),e.max=Dt(t.max,n.max,r)}function zV(e,t,n,r){ty(e.x,t.x,n.x,r),ty(e.y,t.y,n.y,r)}function KV(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const YV={duration:.45,ease:[.4,0,.1,1]},ny=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),ry=ny("applewebkit/")&&!ny("chrome/")?Math.round:Wn;function uy(e){e.min=ry(e.min),e.max=ry(e.max)}function ZV(e){uy(e.x),uy(e.y)}function o1(e,t,n){return e==="position"||e==="preserve-aspect"&&!q6($C(t),$C(n),.2)}function WV(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const $V=s1({attachResizeListener:(e,t)=>lc(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),hp={current:void 0},l1=s1({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!hp.current){const e=new $V({});e.mount(window),e.setOptions({layoutScroll:!0}),hp.current=e}return hp.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),qV={pan:{Feature:fV},drag:{Feature:dV,ProjectionNode:l1,MeasureLayout:t1}};function iy(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const a="onHover"+n,o=r[a];o&&St.postRender(()=>o(t,Mc(t)))}class QV extends Fi{mount(){const{current:t}=this.node;t&&(this.unmount=Qj(t,n=>(iy(this.node,n,"Start"),r=>iy(this.node,r,"End"))))}unmount(){}}class XV extends Fi{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=wc(lc(this.node.current,"focus",()=>this.onFocus()),lc(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function ay(e,t,n){const{props:r}=e;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const a="onTap"+(n==="End"?"":n),o=r[a];o&&St.postRender(()=>o(t,Mc(t)))}class JV extends Fi{mount(){const{current:t}=this.node;t&&(this.unmount=t7(t,n=>(ay(this.node,n,"Start"),(r,{success:a})=>ay(this.node,r,a?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const yE=new WeakMap,mp=new WeakMap,ez=e=>{const t=yE.get(e.target);t&&t(e)},tz=e=>{e.forEach(ez)};function nz({root:e,...t}){const n=e||document;mp.has(n)||mp.set(n,{});const r=mp.get(n),a=JSON.stringify(t);return r[a]||(r[a]=new IntersectionObserver(tz,{root:e,...t})),r[a]}function rz(e,t,n){const r=nz(t);return yE.set(e,n),r.observe(e),()=>{yE.delete(e),r.unobserve(e)}}const uz={some:0,all:1};class iz extends Fi{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:a="some",once:o}=t,l={root:n?n.current:void 0,rootMargin:r,threshold:typeof a=="number"?a:uz[a]},d=f=>{const{isIntersecting:A}=f;if(this.isInView===A||(this.isInView=A,o&&!A&&this.hasEnteredView))return;A&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",A);const{onViewportEnter:m,onViewportLeave:E}=this.node.getProps(),g=A?m:E;g&&g(f)};return rz(this.node.current,l,d)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(az(t,n))&&this.startObserver()}unmount(){}}function az({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const c1={inView:{Feature:iz},tap:{Feature:JV},focus:{Feature:XV},hover:{Feature:QV}},sz={layout:{ProjectionNode:l1,MeasureLayout:t1}},vE={current:null},d1={current:!1};function oz(){if(d1.current=!0,!!kg)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>vE.current=e.matches;e.addListener(t),t()}else vE.current=!1}const lz=[...LT,pn,yi],cz=e=>lz.find(FT(e)),sy=new WeakMap;function dz(e,t,n){for(const r in t){const a=t[r],o=n[r];if(En(a))e.addValue(r,a);else if(En(o))e.addValue(r,sc(a,{owner:e}));else if(o!==a)if(e.hasValue(r)){const l=e.getValue(r);l.liveStyle===!0?l.jump(a):l.hasAnimated||l.set(a)}else{const l=e.getStaticValue(r);e.addValue(r,sc(l!==void 0?l:a,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const oy=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class fz{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:a,blockInitialAnimation:o,visualState:l},d={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=h4,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 _=Zr.now();this.renderScheduledAt<_&&(this.renderScheduledAt=_,St.render(this.render,!1,!0))};const{latestValues:f,renderState:A,onUpdate:m}=l;this.onUpdate=m,this.latestValues=f,this.baseTarget={...f},this.initialValues=n.initial?{...f}:{},this.renderState=A,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=a,this.options=d,this.blockInitialAnimation=!!o,this.isControllingVariants=eA(n),this.isVariantNode=jD(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&&En(S)&&S.set(f[_],!1)}}mount(t){this.current=t,sy.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)),d1.current||oz(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:vE.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){sy.delete(this.current),this.projection&&this.projection.unmount(),Ci(this.notifyUpdate),Ci(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=Ba.has(t),a=n.on("change",d=>{this.latestValues[t]=d,this.props.onUpdate&&St.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,()=>{a(),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 Ks){const n=Ks[t];if(!n)continue;const{isEnabled:r,Feature:a}=n;if(!this.features[t]&&a&&r(this.props)&&(this.features[t]=new a(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):Ht()}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<oy.length;r++){const a=oy[r];this.propEventSubscriptions[a]&&(this.propEventSubscriptions[a](),delete this.propEventSubscriptions[a]);const o="on"+a,l=t[o];l&&(this.propEventSubscriptions[a]=this.on(a,l))}this.prevMotionValues=dz(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=sc(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){var r;let a=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 a!=null&&(typeof a=="string"&&(BT(a)||ST(a))?a=parseFloat(a):!cz(a)&&yi.test(n)&&(a=TT(t,n)),this.setBaseTarget(t,En(a)?a.get():a)),En(a)?a.get():a}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props;let a;if(typeof r=="string"||typeof r=="object"){const l=Wg(this.props,r,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);l&&(a=l[t])}if(r&&a!==void 0)return a;const o=this.getBaseTargetFromProps(this.props,t);return o!==void 0&&!En(o)?o:this.initialValues[t]!==void 0&&a===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new o4),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class f1 extends fz{constructor(){super(...arguments),this.KeyframeResolver=wT}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;En(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function Az(e){return window.getComputedStyle(e)}class hz extends f1{constructor(){super(...arguments),this.type="html",this.renderInstance=QD}readValueFromInstance(t,n){if(Ba.has(n)){const r=A4(n);return r&&r.default||0}else{const r=Az(t),a=(WD(n)?r.getPropertyValue(n):r[n])||0;return typeof a=="string"?a.trim():a}}measureInstanceViewportBox(t,{transformPagePoint:n}){return JT(t,n)}build(t,n,r){Qg(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return t4(t,n,r)}}class mz extends f1{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Ht}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Ba.has(n)){const r=A4(n);return r&&r.default||0}return n=XD.has(n)?n:Kg(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return tT(t,n,r)}build(t,n,r){Xg(t,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,n,r,a){JD(t,n,r,a)}mount(t){this.isSVGTag=e4(t.tagName),super.mount(t)}}const A1=(e,t)=>Zg(e)?new mz(t):new hz(t,{allowProjection:e!==C.Fragment}),pz=zj({...KT,...c1,...qV,...sz},A1),h1=ij(pz),Ez={renderer:A1,...KT,...c1},g4="relative scroll-mb-8 scroll-mt-[30vh] scroll-p-8",gz="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",_z=({className:e,...t})=>N.jsx("h1",{className:Re("mt-5 text-2xl font-bold",e),...t}),Nz=({className:e,...t})=>N.jsx("h2",{className:Re("mt-5 text-2xl font-bold",g4,e),...t}),Iz=({className:e,...t})=>N.jsx("h3",{className:Re("mt-3 text-xl font-bold",g4,e),...t}),Sz=({className:e,...t})=>N.jsx("h4",{className:Re("mt-3 text-lg font-bold",g4,e),...t}),Cz=e=>String(e).normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(/\s+/g,"-").toLowerCase(),yz=e=>{var a;const t=document.getElementById(e),r=(((a=t==null?void 0:t.getBoundingClientRect())==null?void 0:a.top)??0)+window.scrollY-150;window.scrollTo({top:r,behavior:"smooth"})},vz=(e,t)=>{const n=e.getBoundingClientRect().left,r=e.getBoundingClientRect().top,a=window.getComputedStyle(e,":after"),o=n+parseInt(a.getPropertyValue("left"),10),l=o+parseInt(a.width,10),d=r+parseInt(a.getPropertyValue("top"),10),f=d+parseInt(a.height,10),A=t.clientX,m=t.clientY;return A>=o&&A<=l&&m>=d&&m<=f},_4=({H:e,children:t,className:n,isClickable:r,...a})=>{const o=typeof t=="string"?Cz(t):void 0,l=d=>{const{id:f}=d.currentTarget;if(vz(d.currentTarget,d)&&typeof f=="string"){const E=`${window.location.href.split("#")[0]}#${f}`;navigator.clipboard.writeText(E),yz(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&&gz,n),...a,children:t})},Rz=({isClickable:e,...t})=>N.jsx(_z,{...t}),Dz=({isClickable:e=!1,...t})=>N.jsx(_4,{H:Nz,isClickable:e,...t}),N4=({isClickable:e=!1,...t})=>N.jsx(_4,{H:Iz,isClickable:e,...t}),Tz=({isClickable:e=!1,...t})=>N.jsx(_4,{H:Sz,isClickable:e,...t}),xz=pr("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"}}),bz=h1.create(eu),Bz=({children:e,isOpen:t,container:n,disableScroll:r=!1,onClose:a,hasCloseButton:o=!1,title:l,size:d="md",className:f,...A})=>{const m=Xv(n);if(rR({key:"modal",disableScroll:t&&r}),!m)return N.jsx(N.Fragment,{});const E=typeof l=="string";return xa.createPortal(N.jsx(h1.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(),a==null||a()},"aria-hidden":!t,children:N.jsx("div",{className:"flex justify-center p-4",children:N.jsxs(bz,{onClick:g=>g.stopPropagation(),initial:{scale:t?.5:1},animate:{scale:t?1:.5},transition:{duration:.3},className:xz({size:d,className:f}),role:"dialog","aria-modal":!0,roundedSize:"2xl",...A,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(N4,{className:"ml-4 flex items-center justify-center text-lg font-bold",children:l}),o&&N.jsx(ht,{variant:"hoverable",color:"text",label:"Close modal",className:"ml-auto",onClick:g=>{g.stopPropagation(),a==null||a()},Icon:ba,size:"icon-md"})]}),N.jsx("div",{className:"flex flex-1 flex-col items-center overflow-auto",children:e})]})})}),m)},Oz={key:"save-dictionary-details",content:{resetButton:{text:_e({en:"Reset all changes","en-GB":"Reset all changes",fr:"Réinitialiser toutes les modifications",es:"Restablecer todas las modificaciones",de:"Alle Änderungen zurücksetzen",ja:"すべての変更をリセット",ko:"모든 변경 사항 초기화",zh:"重置所有更改",it:"Reimposta tutte le modifiche",pt:"Redefinir todas as alterações",hi:"सभी परिवर्तनों को रीसेट करें",ar:"إعادة تعيين جميع التغييرات",ru:"Сбросить все изменения"}),label:_e({en:"Click to reset all the changes","en-GB":"Click to reset all the changes",fr:"Cliquez pour réinitialiser toutes les modifications",es:"Haga clic para restablecer todas las modificaciones",de:"Klicken Sie, um alle Änderungen zurückzusetzen",ja:"すべての変更をリセットするにはクリックしてください",ko:"모든 변경 사항을 초기화하려면 클릭하세요",zh:"单击以重置所有更改",it:"Fai clic per ripristinare tutte le modifiche",pt:"Clique para redefinir todas as alterações",hi:"सभी परिवर्तनों को रीसेट करने के लिए क्लिक करें",ar:"انقر لإعادة تعيين جميع التغييرات",ru:"Нажмите, чтобы сбросить все изменения"})},saveButton:{text:_e({en:"Save changes","en-GB":"Save changes",fr:"Enregistrer les modifications",es:"Guardar cambios",de:"Änderungen speichern",ja:"変更を保存",ko:"변경 사항 저장",zh:"保存更改",it:"Salva le modifiche",pt:"Salvar alterações",hi:"परिवर्तनों को सहेजें",ar:"احفظ التغييرات",ru:"Сохранить изменения"}),label:_e({en:"Click to save changes","en-GB":"Click to save changes",fr:"Cliquez pour enregistrer les modifications",es:"Haga clic para guardar cambios",de:"Klicken Sie, um Änderungen zu speichern",ja:"変更を保存するにはクリックしてください",ko:"변경 사항을 저장하려면 클릭하세요",zh:"单击保存更改",it:"Fai clic per salvare le modifiche",pt:"Clique para salvar alterações",hi:"परिवर्तनों को सहेजने के लिए क्लिक करें",ar:"انقر لحفظ التغييرات",ru:"Нажмите, чтобы сохранить изменения"})},publishButton:{text:_e({en:"Publish dictionary","en-GB":"Publish dictionary",fr:"Publier dictionnaire",es:"Publicar diccionario",de:"Wörterbuch veröffentlichen",ja:"辞書を公開",ko:"사전을 게시합니다",zh:"发布字典",it:"Pubblica dizionario",pt:"Publicar dicionário",hi:"शब्दकोश प्रकाशित करें",ar:"نشر القاموس",ru:"Опубликовать словарь"}),label:_e({en:"Click to publish dictionary","en-GB":"Click to publish dictionary",fr:"Cliquez pour publier dictionnaire",es:"Haga clic para publicar diccionario",de:"Klicken Sie, um das Wörterbuch zu veröffentlichen",ja:"辞書を公開するにはクリックしてください",ko:"사전을 게시하려면 클릭하세요",zh:"单击以发布字典",it:"Fai clic per pubblicare il dizionario",pt:"Clique para publicar dicionário",hi:"शब्दकोश प्रकाशित करने के लिए क्लिक करें",ar:"انقر لنشر القاموس",ru:"Нажмите, чтобы опубликовать словарь"})},downloadButton:{text:_e({en:"Download","en-GB":"Download",fr:"Télécharger",es:"Descargar",de:"Herunterladen",ja:"ダウンロード",ko:"다운로드",zh:"下载",it:"Scarica",pt:"Baixar",hi:"डाउनलोड",ar:"تنزيل",ru:"Скачать"}),label:_e({en:"Click to download","en-GB":"Click to download",fr:"Cliquez pour télécharger",es:"Haga clic para descargar",de:"Klicken Sie, um herunterzuladen",ja:"ダウンロードするにはクリックしてください",ko:"다운로드를 클릭하세요",zh:"单击下载",it:"Fai clic per scaricare",pt:"Clique para baixar",hi:"डाउनलोड करने के लिए क्लिक करें",ar:"انقر لتنزيل",ru:"Нажмите, чтобы скачать"})}}},m1=({dictionary:e,mode:t,className:n,...r})=>{const{setLocaleDictionary:a}=ZE(),{writeDictionary:o,isLoading:l}=zM(),{pushDictionaries:d,isLoading:f}=UM(),A=l||f,{editedContent:m,restoreEditedContent:E}=On(),{resetButton:g,saveButton:_,publishButton:S,downloadButton:y}=rn(Oz),{isAuthenticated:v}=Cc(),R=C.useMemo(()=>m==null?void 0:m[e.key],[m,e.key]),D=C.useMemo(()=>R&&JSON.stringify(R)!==JSON.stringify(e),[R,e,t]),x=C.useMemo(()=>typeof(e==null?void 0:e._id)>"u",[e]),L=async()=>{if(!(m!=null&&m[e.key]))return;const O={...e,...m==null?void 0:m[e.key]};await o(O).then(()=>{a(m==null?void 0:m[e.key]),E(e.key)})},b=async()=>{if(!(m!=null&&m[e.key]))return;const O={...e,...m==null?void 0:m[e.key]};await d([O]).then(F=>{F&&(a(m==null?void 0:m[e.key]),E(e.key))})};return N.jsxs("form",{className:Re("flex justify-end gap-2 max-md:flex-col",n),...r,children:[D&&N.jsx(ut.Button,{label:g.label.value,disabled:!D,Icon:j2,variant:"outline",color:"text",className:"max-md:w-full",onClick:()=>E(e.key),children:g.text}),t.includes("local")&&N.jsx(ut.Button,{label:y.label.value,disabled:!D||A,Icon:T2,color:"text",variant:v?"outline":"default",className:"max-md:w-full",isLoading:l,onClick:L,children:y.text}),t.includes("remote")&&v&&x&&N.jsx(ut.Button,{label:S.label.value,disabled:A,Icon:A2,color:"text",className:"max-md:w-full",isLoading:f,onClick:b,children:S.text}),t.includes("remote")&&v&&!x&&D&&N.jsx(ut.Button,{label:_.label.value,disabled:!D||A,Icon:z2,color:"text",className:"max-md:w-full",isLoading:f,onClick:b,children:_.text})]})},Rl=({children:e,header:t,isOpen:n=!1,onClick:r,...a})=>{const[o,l]=C.useState(n),d=o==null?void 0:!o;return C.useEffect(()=>{n!=null&&l(n)},[n]),N.jsxs("div",{className:"w-full",children:[N.jsx(ht,{variant:"hoverable",color:"text",onClick:f=>{l(A=>!A),r==null||r(f)},isFullWidth:!0,className:"flex items-center justify-between gap-2",IconRight:$v,iconClassName:Re("transform transition-transform duration-500 ease-in-out",o?"rotate-0":"-rotate-180"),...a,children:t}),N.jsx(Zv,{tabIndex:d!==!1?void 0:-1,isHidden:d,children:e})]})},p1=({level:e,title:t,description:n,children:r,rightParam:a,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(Rl,{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}),a&&N.jsx("div",{className:"flex w-auto items-center justify-between p-3",children:a})]}),n&&N.jsx("p",{className:"text-card pl-3 text-sm",children:n})]}),children:r})}),E1=({keyPath:e,section:t,editedContent:n,onContentChange:r,onFocusKeyPath:a})=>{const o=Gr(n,e);if(o&&typeof o!="string")return N.jsx(N.Fragment,{children:"Error loading section - Edited content Incoherence with the original content format"});const l=e.length,d=o??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",l===2&&"hover:bg-card/30",l>=3&&""),onClick:f=>{f.stopPropagation(),a(e)},children:N.jsx($R,{defaultValue:String(d),onSave:f=>r({keyPath:e,newValue:f}),onCancel:()=>null})})},Fz=e=>{const{keyPath:t,section:n}=e,r=[...t,{type:U.Markdown}],a=n[U.Markdown];return N.jsx("div",{className:"ml-2 grid grid-cols-[auto,1fr] gap-2",children:N.jsx(E1,{...e,keyPath:r,section:a})})},Lz=e=>{const{keyPath:t,section:n,onFocusKeyPath:r,focusedKeyPath:a=[]}=e;return n.map((o,l)=>{const d={key:l,type:U.Array},f=[...t,d];return N.jsx(p1,{level:t.length,title:`${l}`,description:"",isSelected:gc(f,a),onClick:A=>{A.stopPropagation(),r(f)},children:N.jsx(so,{...e,keyPath:f,section:o})},JSON.stringify(o))})},wz=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=>!I4.includes(r)).map(r=>{const a={type:U.Condition,key:r},o=[...t,a],l=n[U.Condition][r];return N.jsxs(N.Fragment,{children:[N.jsx("span",{className:"flex items-center font-bold",children:r}),C.createElement(so,{...e,key:r,keyPath:o,section:l})]})})})},Mz=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=>!I4.includes(r)).map(r=>{const a={type:U.Enumeration,key:r},o=[...t,a],l=n[U.Enumeration][r];return N.jsxs(N.Fragment,{children:[N.jsx("span",{className:"flex items-center font-bold",children:r}),C.createElement(so,{...e,key:r,keyPath:o,section:l})]})})})},Hz=e=>{const{keyPath:t,section:n,focusedKeyPath:r=[],onFocusKeyPath:a}=e;return Object.keys(n).filter(o=>!I4.includes(o)).map(o=>{const l={key:o,type:U.Object},d=[...t,l];return N.jsx(p1,{level:t.length,title:o,description:"",isSelected:gc(d,r),onClick:f=>{f.stopPropagation(),a(d)},children:N.jsx(so,{...e,keyPath:d,section:n[o]})},o)})},Pz=e=>{const{keyPath:t,section:n,locale:r}=e,a={type:U.Translation,key:r},o=[...t,a],l=n.translation[r];return N.jsx(so,{...e,keyPath:o,section:l})},I4=["filePath","id","nodeType"],so=e=>{const{section:t}=e,n=Ec(t);if(typeof t=="object")return n===U.ReactNode?N.jsx("span",{className:"text-neutral text-xs",children:"React node not editable"}):n===U.Nested?N.jsx("div",{className:"ml-2 grid grid-cols-[auto,1fr] gap-2",children:"[Nested] Dictionary"}):n===U.Markdown?N.jsx(Fz,{...e,section:t}):n===U.Translation?N.jsx(Pz,{...e,section:t}):n===U.Enumeration?N.jsx(Mz,{...e,section:t}):n===U.Condition?N.jsx(wz,{...e,section:t}):n===U.Array?N.jsx(Lz,{...e,section:t}):N.jsx(Hz,{...e,section:t});if(typeof t=="string")return N.jsx(E1,{...e,section:t})},Uz=({dictionary:e,mode:t,...n})=>{var f;const{editedContent:r,addEditedContent:a}=On(),{focusedContent:o,setFocusedContentKeyPath:l}=vi(),d=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:C.createElement(so,{...n,keyPath:[],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:d,section:e.content,onContentChange:A=>{a(e.key,A.newValue,A.keyPath)},onFocusKeyPath:l})}),N.jsx(m1,{dictionary:e,mode:t,className:"mb-4 flex-col"})]})};function wu(e){return Array.isArray?Array.isArray(e):N1(e)==="[object Array]"}function kz(e){if(typeof e=="string")return e;let t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function Gz(e){return e==null?"":kz(e)}function Vr(e){return typeof e=="string"}function g1(e){return typeof e=="number"}function jz(e){return e===!0||e===!1||Vz(e)&&N1(e)=="[object Boolean]"}function _1(e){return typeof e=="object"}function Vz(e){return _1(e)&&e!==null}function Kn(e){return e!=null}function pp(e){return!e.trim().length}function N1(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}const zz="Incorrect 'index' type",Kz=e=>`Invalid value for key ${e}`,Yz=e=>`Pattern length exceeds max of ${e}.`,Zz=e=>`Missing ${e} property in key`,Wz=e=>`Property 'weight' in key '${e}' must be a positive integer`,ly=Object.prototype.hasOwnProperty;class $z{constructor(t){this._keys=[],this._keyMap={};let n=0;t.forEach(r=>{let a=I1(r);this._keys.push(a),this._keyMap[a.id]=a,n+=a.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 I1(e){let t=null,n=null,r=null,a=1,o=null;if(Vr(e)||wu(e))r=e,t=cy(e),n=RE(e);else{if(!ly.call(e,"name"))throw new Error(Zz("name"));const l=e.name;if(r=l,ly.call(e,"weight")&&(a=e.weight,a<=0))throw new Error(Wz(l));t=cy(l),n=RE(l),o=e.getFn}return{path:t,id:n,weight:a,src:r,getFn:o}}function cy(e){return wu(e)?e:e.split(".")}function RE(e){return wu(e)?e.join("."):e}function qz(e,t){let n=[],r=!1;const a=(o,l,d)=>{if(Kn(o))if(!l[d])n.push(o);else{let f=l[d];const A=o[f];if(!Kn(A))return;if(d===l.length-1&&(Vr(A)||g1(A)||jz(A)))n.push(Gz(A));else if(wu(A)){r=!0;for(let m=0,E=A.length;m<E;m+=1)a(A[m],l,d+1)}else l.length&&a(A,l,d+1)}};return a(e,Vr(t)?t.split("."):t,0),r?n:n[0]}const Qz={includeMatches:!1,findAllMatches:!1,minMatchCharLength:1},Xz={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},Jz={location:0,threshold:.6,distance:100},eK={useExtendedSearch:!1,getFn:qz,ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1};var Ve={...Xz,...Qz,...Jz,...eK};const tK=/[^ ]+/g;function nK(e=1,t=3){const n=new Map,r=Math.pow(10,t);return{get(a){const o=a.match(tK).length;if(n.has(o))return n.get(o);const l=1/Math.pow(o,.5*e),d=parseFloat(Math.round(l*r)/r);return n.set(o,d),d},clear(){n.clear()}}}class S4{constructor({getFn:t=Ve.getFn,fieldNormWeight:n=Ve.fieldNormWeight}={}){this.norm=nK(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,Vr(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();Vr(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(!Kn(t)||pp(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((a,o)=>{let l=a.getFn?a.getFn(t):this.getFn(t,a.path);if(Kn(l)){if(wu(l)){let d=[];const f=[{nestedArrIndex:-1,value:l}];for(;f.length;){const{nestedArrIndex:A,value:m}=f.pop();if(Kn(m))if(Vr(m)&&!pp(m)){let E={v:m,i:A,n:this.norm.get(m)};d.push(E)}else wu(m)&&m.forEach((E,g)=>{f.push({nestedArrIndex:g,value:E})})}r.$[o]=d}else if(Vr(l)&&!pp(l)){let d={v:l,n:this.norm.get(l)};r.$[o]=d}}}),this.records.push(r)}toJSON(){return{keys:this.keys,records:this.records}}}function S1(e,t,{getFn:n=Ve.getFn,fieldNormWeight:r=Ve.fieldNormWeight}={}){const a=new S4({getFn:n,fieldNormWeight:r});return a.setKeys(e.map(I1)),a.setSources(t),a.create(),a}function rK(e,{getFn:t=Ve.getFn,fieldNormWeight:n=Ve.fieldNormWeight}={}){const{keys:r,records:a}=e,o=new S4({getFn:t,fieldNormWeight:n});return o.setKeys(r),o.setIndexRecords(a),o}function A0(e,{errors:t=0,currentLocation:n=0,expectedLocation:r=0,distance:a=Ve.distance,ignoreLocation:o=Ve.ignoreLocation}={}){const l=t/e.length;if(o)return l;const d=Math.abs(r-n);return a?l+d/a:d?1:l}function uK(e=[],t=Ve.minMatchCharLength){let n=[],r=-1,a=-1,o=0;for(let l=e.length;o<l;o+=1){let d=e[o];d&&r===-1?r=o:!d&&r!==-1&&(a=o-1,a-r+1>=t&&n.push([r,a]),r=-1)}return e[o-1]&&o-r>=t&&n.push([r,o-1]),n}const da=32;function iK(e,t,n,{location:r=Ve.location,distance:a=Ve.distance,threshold:o=Ve.threshold,findAllMatches:l=Ve.findAllMatches,minMatchCharLength:d=Ve.minMatchCharLength,includeMatches:f=Ve.includeMatches,ignoreLocation:A=Ve.ignoreLocation}={}){if(t.length>da)throw new Error(Yz(da));const m=t.length,E=e.length,g=Math.max(0,Math.min(r,E));let _=o,S=g;const y=d>1||f,v=y?Array(E):[];let R;for(;(R=e.indexOf(t,S))>-1;){let F=A0(t,{currentLocation:R,expectedLocation:g,distance:a,ignoreLocation:A});if(_=Math.min(F,_),S=R+m,y){let j=0;for(;j<m;)v[R+j]=1,j+=1}}S=-1;let D=[],x=1,L=m+E;const b=1<<m-1;for(let F=0;F<m;F+=1){let j=0,G=L;for(;j<G;)A0(t,{errors:F,currentLocation:g+G,expectedLocation:g,distance:a,ignoreLocation:A})<=_?j=G:L=G,G=Math.floor((L-j)/2+j);L=G;let K=Math.max(1,g-G+1),Ae=l?E:Math.min(g+G,E)+m,se=Array(Ae+2);se[Ae+1]=(1<<F)-1;for(let $=Ae;$>=K;$-=1){let J=$-1,k=n[e.charAt(J)];if(y&&(v[J]=+!!k),se[$]=(se[$+1]<<1|1)&k,F&&(se[$]|=(D[$+1]|D[$])<<1|1|D[$+1]),se[$]&b&&(x=A0(t,{errors:F,currentLocation:J,expectedLocation:g,distance:a,ignoreLocation:A}),x<=_)){if(_=x,S=J,S<=g)break;K=Math.max(1,2*g-S)}}if(A0(t,{errors:F+1,currentLocation:g,expectedLocation:g,distance:a,ignoreLocation:A})>_)break;D=se}const O={isMatch:S>=0,score:Math.max(.001,x)};if(y){const F=uK(v,d);F.length?f&&(O.indices=F):O.isMatch=!1}return O}function aK(e){let t={};for(let n=0,r=e.length;n<r;n+=1){const a=e.charAt(n);t[a]=(t[a]||0)|1<<r-n-1}return t}const Af=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 C1{constructor(t,{location:n=Ve.location,threshold:r=Ve.threshold,distance:a=Ve.distance,includeMatches:o=Ve.includeMatches,findAllMatches:l=Ve.findAllMatches,minMatchCharLength:d=Ve.minMatchCharLength,isCaseSensitive:f=Ve.isCaseSensitive,ignoreDiacritics:A=Ve.ignoreDiacritics,ignoreLocation:m=Ve.ignoreLocation}={}){if(this.options={location:n,threshold:r,distance:a,includeMatches:o,findAllMatches:l,minMatchCharLength:d,isCaseSensitive:f,ignoreDiacritics:A,ignoreLocation:m},t=f?t:t.toLowerCase(),t=A?Af(t):t,this.pattern=t,this.chunks=[],!this.pattern.length)return;const E=(_,S)=>{this.chunks.push({pattern:_,alphabet:aK(_),startIndex:S})},g=this.pattern.length;if(g>da){let _=0;const S=g%da,y=g-S;for(;_<y;)E(this.pattern.substr(_,da),_),_+=da;if(S){const v=g-da;E(this.pattern.substr(v),v)}}else E(this.pattern,0)}searchIn(t){const{isCaseSensitive:n,ignoreDiacritics:r,includeMatches:a}=this.options;if(t=n?t:t.toLowerCase(),t=r?Af(t):t,this.pattern===t){let y={isMatch:!0,score:0};return a&&(y.indices=[[0,t.length-1]]),y}const{location:o,distance:l,threshold:d,findAllMatches:f,minMatchCharLength:A,ignoreLocation:m}=this.options;let E=[],g=0,_=!1;this.chunks.forEach(({pattern:y,alphabet:v,startIndex:R})=>{const{isMatch:D,score:x,indices:L}=iK(t,y,v,{location:o+R,distance:l,threshold:d,findAllMatches:f,minMatchCharLength:A,includeMatches:a,ignoreLocation:m});D&&(_=!0),g+=x,D&&L&&(E=[...E,...L])});let S={isMatch:_,score:_?g/this.chunks.length:1};return _&&a&&(S.indices=E),S}}class Li{constructor(t){this.pattern=t}static isMultiMatch(t){return dy(t,this.multiRegex)}static isSingleMatch(t){return dy(t,this.singleRegex)}search(){}}function dy(e,t){const n=e.match(t);return n?n[1]:null}class sK extends Li{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 oK extends Li{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 lK extends Li{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 cK extends Li{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 dK extends Li{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 fK extends Li{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 y1 extends Li{constructor(t,{location:n=Ve.location,threshold:r=Ve.threshold,distance:a=Ve.distance,includeMatches:o=Ve.includeMatches,findAllMatches:l=Ve.findAllMatches,minMatchCharLength:d=Ve.minMatchCharLength,isCaseSensitive:f=Ve.isCaseSensitive,ignoreDiacritics:A=Ve.ignoreDiacritics,ignoreLocation:m=Ve.ignoreLocation}={}){super(t),this._bitapSearch=new C1(t,{location:n,threshold:r,distance:a,includeMatches:o,findAllMatches:l,minMatchCharLength:d,isCaseSensitive:f,ignoreDiacritics:A,ignoreLocation:m})}static get type(){return"fuzzy"}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(t){return this._bitapSearch.searchIn(t)}}class v1 extends Li{constructor(t){super(t)}static get type(){return"include"}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(t){let n=0,r;const a=[],o=this.pattern.length;for(;(r=t.indexOf(this.pattern,n))>-1;)n=r+o,a.push([r,n-1]);const l=!!a.length;return{isMatch:l,score:l?0:1,indices:a}}}const DE=[sK,v1,lK,cK,fK,dK,oK,y1],fy=DE.length,AK=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/,hK="|";function mK(e,t={}){return e.split(hK).map(n=>{let r=n.trim().split(AK).filter(o=>o&&!!o.trim()),a=[];for(let o=0,l=r.length;o<l;o+=1){const d=r[o];let f=!1,A=-1;for(;!f&&++A<fy;){const m=DE[A];let E=m.isMultiMatch(d);E&&(a.push(new m(E,t)),f=!0)}if(!f)for(A=-1;++A<fy;){const m=DE[A];let E=m.isSingleMatch(d);if(E){a.push(new m(E,t));break}}}return a})}const pK=new Set([y1.type,v1.type]);class EK{constructor(t,{isCaseSensitive:n=Ve.isCaseSensitive,ignoreDiacritics:r=Ve.ignoreDiacritics,includeMatches:a=Ve.includeMatches,minMatchCharLength:o=Ve.minMatchCharLength,ignoreLocation:l=Ve.ignoreLocation,findAllMatches:d=Ve.findAllMatches,location:f=Ve.location,threshold:A=Ve.threshold,distance:m=Ve.distance}={}){this.query=null,this.options={isCaseSensitive:n,ignoreDiacritics:r,includeMatches:a,minMatchCharLength:o,findAllMatches:d,ignoreLocation:l,location:f,threshold:A,distance:m},t=n?t:t.toLowerCase(),t=r?Af(t):t,this.pattern=t,this.query=mK(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:a,ignoreDiacritics:o}=this.options;t=a?t:t.toLowerCase(),t=o?Af(t):t;let l=0,d=[],f=0;for(let A=0,m=n.length;A<m;A+=1){const E=n[A];d.length=0,l=0;for(let g=0,_=E.length;g<_;g+=1){const S=E[g],{isMatch:y,indices:v,score:R}=S.search(t);if(y){if(l+=1,f+=R,r){const D=S.constructor.type;pK.has(D)?d=[...d,...v]:d.push(v)}}else{f=0,l=0,d.length=0;break}}if(l){let g={isMatch:!0,score:f/l};return r&&(g.indices=d),g}}return{isMatch:!1,score:1}}}const TE=[];function gK(...e){TE.push(...e)}function xE(e,t){for(let n=0,r=TE.length;n<r;n+=1){let a=TE[n];if(a.condition(e,t))return new a(e,t)}return new C1(e,t)}const hf={AND:"$and",OR:"$or"},bE={PATH:"$path",PATTERN:"$val"},BE=e=>!!(e[hf.AND]||e[hf.OR]),_K=e=>!!e[bE.PATH],NK=e=>!wu(e)&&_1(e)&&!BE(e),Ay=e=>({[hf.AND]:Object.keys(e).map(t=>({[t]:e[t]}))});function R1(e,t,{auto:n=!0}={}){const r=a=>{let o=Object.keys(a);const l=_K(a);if(!l&&o.length>1&&!BE(a))return r(Ay(a));if(NK(a)){const f=l?a[bE.PATH]:o[0],A=l?a[bE.PATTERN]:a[f];if(!Vr(A))throw new Error(Kz(f));const m={keyId:RE(f),pattern:A};return n&&(m.searcher=xE(A,t)),m}let d={children:[],operator:o[0]};return o.forEach(f=>{const A=a[f];wu(A)&&A.forEach(m=>{d.children.push(r(m))})}),d};return BE(e)||(e=Ay(e)),r(e)}function IK(e,{ignoreFieldNorm:t=Ve.ignoreFieldNorm}){e.forEach(n=>{let r=1;n.matches.forEach(({key:a,norm:o,score:l})=>{const d=a?a.weight:null;r*=Math.pow(l===0&&d?Number.EPSILON:l,(d||1)*(t?1:o))}),n.score=r})}function SK(e,t){const n=e.matches;t.matches=[],Kn(n)&&n.forEach(r=>{if(!Kn(r.indices)||!r.indices.length)return;const{indices:a,value:o}=r;let l={indices:a,value:o};r.key&&(l.key=r.key.src),r.idx>-1&&(l.refIndex=r.idx),t.matches.push(l)})}function CK(e,t){t.score=e.score}function yK(e,t,{includeMatches:n=Ve.includeMatches,includeScore:r=Ve.includeScore}={}){const a=[];return n&&a.push(SK),r&&a.push(CK),e.map(o=>{const{idx:l}=o,d={item:t[l],refIndex:l};return a.length&&a.forEach(f=>{f(o,d)}),d})}class oo{constructor(t,n={},r){this.options={...Ve,...n},this.options.useExtendedSearch,this._keyStore=new $z(this.options.keys),this.setCollection(t,r)}setCollection(t,n){if(this._docs=t,n&&!(n instanceof S4))throw new Error(zz);this._myIndex=n||S1(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(t){Kn(t)&&(this._docs.push(t),this._myIndex.add(t))}remove(t=()=>!1){const n=[];for(let r=0,a=this._docs.length;r<a;r+=1){const o=this._docs[r];t(o,r)&&(this.removeAt(r),r-=1,a-=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:a,shouldSort:o,sortFn:l,ignoreFieldNorm:d}=this.options;let f=Vr(t)?Vr(this._docs[0])?this._searchStringList(t):this._searchObjectList(t):this._searchLogical(t);return IK(f,{ignoreFieldNorm:d}),o&&f.sort(l),g1(n)&&n>-1&&(f=f.slice(0,n)),yK(f,this._docs,{includeMatches:r,includeScore:a})}_searchStringList(t){const n=xE(t,this.options),{records:r}=this._myIndex,a=[];return r.forEach(({v:o,i:l,n:d})=>{if(!Kn(o))return;const{isMatch:f,score:A,indices:m}=n.searchIn(o);f&&a.push({item:o,idx:l,matches:[{score:A,value:o,norm:d,indices:m}]})}),a}_searchLogical(t){const n=R1(t,this.options),r=(d,f,A)=>{if(!d.children){const{keyId:E,searcher:g}=d,_=this._findMatches({key:this._keyStore.get(E),value:this._myIndex.getValueForItemAtKeyId(f,E),searcher:g});return _&&_.length?[{idx:A,item:f,matches:_}]:[]}const m=[];for(let E=0,g=d.children.length;E<g;E+=1){const _=d.children[E],S=r(_,f,A);if(S.length)m.push(...S);else if(d.operator===hf.AND)return[]}return m},a=this._myIndex.records,o={},l=[];return a.forEach(({$:d,i:f})=>{if(Kn(d)){let A=r(n,d,f);A.length&&(o[f]||(o[f]={idx:f,item:d,matches:[]},l.push(o[f])),A.forEach(({matches:m})=>{o[f].matches.push(...m)}))}}),l}_searchObjectList(t){const n=xE(t,this.options),{keys:r,records:a}=this._myIndex,o=[];return a.forEach(({$:l,i:d})=>{if(!Kn(l))return;let f=[];r.forEach((A,m)=>{f.push(...this._findMatches({key:A,value:l[m],searcher:n}))}),f.length&&o.push({idx:d,item:l,matches:f})}),o}_findMatches({key:t,value:n,searcher:r}){if(!Kn(n))return[];let a=[];if(wu(n))n.forEach(({v:o,i:l,n:d})=>{if(!Kn(o))return;const{isMatch:f,score:A,indices:m}=r.searchIn(o);f&&a.push({score:A,key:t,value:o,idx:l,norm:d,indices:m})});else{const{v:o,n:l}=n,{isMatch:d,score:f,indices:A}=r.searchIn(o);d&&a.push({score:f,key:t,value:o,norm:l,indices:A})}return a}}oo.version="7.1.0";oo.createIndex=S1;oo.parseIndex=rK;oo.config=Ve;oo.parseQuery=R1;gK(EK);const Pl=({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}),vK=({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}),RK=({children:e,isHidden:t=void 0,isOverable:n=!1,isFocusable:r=!1,align:a="start",identifier:o,className:l,...d})=>N.jsx("div",{className:Re("absolute top-[calc(100%+0.5rem)] z-[1000] min-w-full",a==="start"&&"left-0",a==="end"&&"right-0",l),"aria-hidden":t,role:"region","aria-labelledby":`unrollable-panel-button-${o}`,id:`unrollable-panel-${o}`,children:N.jsx(Zv,{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]"),...d,children:e})});Pl.Trigger=vK;Pl.Panel=RK;const DK={key:"locale-switcher-content",content:{localeSwitcherLabel:_e({en:"Language switcher","en-GB":"Language switcher",fr:"Changer de langue",es:"Cambiar idioma",de:"Sprachwechsler",ja:"言語スイッチャー",ko:"언어 스위치",zh:"语言切换器",it:"Cambia lingua",pt:"Mudar idioma",hi:"भाषा स्विचर",ar:"مبدل اللغة",ru:"Переключатель языка"}),languageListLabel:_e({en:"Language list","en-GB":"Language list",fr:"Liste des langues",es:"Lista de idiomas",de:"Sprachliste",ja:"言語リスト",ko:"언어 목록",zh:"语言列表",it:"Elenco lingue",pt:"Lista de idiomas",hi:"भाषा सूची",ar:"قائمة اللغات",ru:"Список языков"}),switchTo:_e({en:"Switch to",fr:"Passer à",es:"Cambiar a","en-GB":"Switch to",de:"Wechseln Sie zu",ja:"に切り替える",ko:"전환",zh:"切换到",it:"Passa a",pt:"Mudar para",hi:"स्विच करें",ar:"التبديل إلى",ru:"Переключиться на"}),searchInput:{text:_e({en:"Search Locale","en-GB":"Search Locale",fr:"Rechercher la locale",es:"Buscar idioma",de:"Sprache durchsuchen",ja:"ロケールを検索",ko:"언어 검색",zh:"搜索语言",it:"Cerca lingua",pt:"Pesquisar idioma",hi:"भाषा खोजें",ar:"بحث اللغة",ru:"Поиск языка"}),placeholder:_e({en:"Search a locale","en-GB":"Search a locale",fr:"Rechercher une locale",es:"Buscar un idioma",de:"Sprache suchen",ja:"ロケールを検索",ko:"언어 검색",zh:"搜索语言",it:"Cerca una lingua",pt:"Pesquisar um idioma",hi:"भाषा खोजें",ar:"بحث اللغة",ru:"Поиск языка"})},seeAllLocalesSwitch:{true:_e({en:"See all locales","en-GB":"See all locales",fr:"Voir toutes les langues",es:"Ver todos los idiomas",de:"Alle Sprachen anzeigen",ja:"すべての言語を表示",ko:"모든 언어 보기",zh:"查看所有语言",it:"Vedi tutte le lingue",pt:"Ver todos os idiomas",hi:"सभी भाषाओं को देखें",ar:"عرض جميع اللغات",ru:"Показать все языки"}),false:_e({en:"See only selected locales","en-GB":"See only selected locales",fr:"Voir seulement les langues sélectionnées",es:"Ver solo los idiomas seleccionados",de:"Nur ausgewählte Sprachen anzeigen",ja:"選択された言語のみを表示",ko:"선택한 언어만 보기",zh:"仅查看选定的语言",it:"Vedi solo le lingue selezionate",pt:"Ver apenas os idiomas selecionados",hi:"केवल चुने गए भाषाओं को देखें",ar:"عرض اللغات المحددة فقط",ru:"Показать только выбранные языки"})}}},Ul=(e,t)=>{const[n,r]=C.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(d){console.error(d)}return o}});C.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 a=C.useCallback(o=>{r(l=>{const d=typeof o=="function"?o(l):o;return localStorage==null||localStorage.setItem(e,JSON.stringify(d)),d})},[e,r]);return C.useMemo(()=>[n,a],[n,a])},D1=C.createContext({availableLocales:[],selectedLocales:[],setSelectedLocales:()=>{}}),T1=()=>C.useContext(D1),TK=({availableLocales:e,defaultSelectedLocales:t,children:n})=>{const{locale:r}=QE(),[a,o]=Ul("locale-content-selector-selected-locales",t??[r]);return N.jsx(D1,{value:{availableLocales:e,selectedLocales:a,setSelectedLocales:o},children:n})},Ep="locale-switcher-content",xK=({panelProps:e,isMultilingual:t=!0})=>{const{switchTo:n,searchInput:r,localeSwitcherLabel:a,languageListLabel:o,seeAllLocalesSwitch:l}=rn(DK),d=C.useRef(null),{locale:f}=QE(),{availableLocales:A,selectedLocales:m,setSelectedLocales:E}=T1(),g=C.useMemo(()=>A.map(b=>{const O=S0(b,u.ENGLISH),F=S0(b,f),j=S0(b);return{locale:b,englishName:O,currentLocaleName:F,ownLocaleName:j}}),[A,f]),[_,S]=C.useState(g),[y,v]=Ul("locale-content-selector-see-all-locales",!1),R=C.useMemo(()=>{const b={keys:[{name:"ownLocaleName",weight:.4},{name:"englishName",weight:.2},{name:"currentLocaleName",weight:.2},{name:"locale",weight:.2}],threshold:.02};return new oo(g,b)},[g]),D=C.useCallback(b=>{if(b){const O=R.search(b).map(F=>F.item);S(O)}else S(g)},[R,g]),x=b=>{t?m.includes(b)?m.length>1&&E(O=>O.filter(F=>F!==b)):E(O=>[...O,b]):E([b])},L=b=>{v(b),E(b?A:[f])};return N.jsx("div",{className:"border-text text-text rounded-xl border transition-colors","aria-label":a.value,children:N.jsxs(Pl,{identifier:Ep,children:[N.jsx(Pl.Trigger,{identifier:Ep,children:N.jsxs("div",{className:"flex w-full items-center justify-between",children:[N.jsx("div",{className:"px-2 py-1",children:N.jsx(M2,{size:18})}),N.jsx(P2,{className:"self-center",size:18})]})}),N.jsx(Pl.Panel,{identifier:Ep,isOverable:!0,isFocusable:!0,className:"left-auto right-0",...e,children:N.jsxs(eu,{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(Bc,{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&&y)&&N.jsxs(N.Fragment,{children:[N.jsx("div",{className:"p-3",children:N.jsx(to,{type:"search",placeholder:r.placeholder.value,onChange:b=>D(b.target.value),ref:d})}),N.jsx("ol",{className:"divide-text/20 divide-y divide-dashed overflow-y-auto p-1",children:_.map(({locale:b,currentLocaleName:O,ownLocaleName:F})=>N.jsx("li",{className:"px-1.5 py-1",children:N.jsx(ht,{onClick:()=>x(b),label:`${n} ${O}`,disabled:!(A??A).includes(b),isActive:m.includes(b),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(b)&&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:fF(b),lang:b,children:F}),N.jsx("span",{className:"text-neutral text-xs",children:O})]}),N.jsx("span",{className:"text-neutral text-sm",children:b.toUpperCase()})]})]})})},b))})]})]})})]})})},bK=(e,t,n)=>{const r={...e};for(const a of Object.keys(e))a===t?(r[n]=e[t],delete r[t]):r[a]=e[a];return r},OE=({children:e,onContentChange:t,disabled:n,validate:r,additionalButtons:a,...o})=>{const[l,d]=C.useState(e),[f,A]=C.useState(0),m=l!==e,E=()=>{d(e),A(y=>y+1)},g=()=>{t(l)},_=y=>{d(y.currentTarget.value)};C.useEffect(()=>{d(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(to,{onChange:_,variant:"invisible",className:"size-full",defaultValue:e,...o},f),(m||a)&&N.jsxs("div",{className:"flex w-full items-center justify-end gap-2",children:[m&&N.jsxs(N.Fragment,{children:[N.jsx(ht,{Icon:eo,label:"Validate",variant:"hoverable",color:"text",size:"icon-sm",className:"cursor-pointer hover:scale-110",disabled:n||!S,onClick:g}),N.jsx(ht,{Icon:ba,label:"Cancel",variant:"hoverable",size:"icon-sm",color:"text",className:"cursor-pointer hover:scale-110",onClick:E})]}),a]})]},String(e))},BK=(e,t)=>{const[n,r]=C.useState(e);return C.useEffect(()=>{const a=setTimeout(()=>{r(e)},t);return()=>clearTimeout(a)},[e,t]),n},OK=({isActive:e=!0,suggestion:t,...n})=>{const r=String(n.value??n.defaultValue??""),{autocomplete:a}=VM(),o=Xr(),[l,d]=C.useState(!1),[f,A]=C.useState(r),[m,E]=C.useState(""),g=BK(f,200);C.useEffect(()=>{typeof n.value>"u"||A(r)},[n.value,n.defaultValue]),C.useEffect(()=>{if(!e||!l)return;const S=async()=>{var y;try{const v=await a({text:g,openAiApiKey:o.editor.openAiApiKey,model:o.editor.openAiApiModel,temperature:o.editor.openAiApiTemperature}),R=((y=v==null?void 0:v.data)==null?void 0:y.autocompletion)??"";if(R.startsWith(g)){const D=R.slice(g.length);return E(D)}return E(R)}catch(v){console.error("Autocomplete error:",v)}};g.length>3?(E(""),S()):E("")},[g,e]);const _=()=>{A(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(_g,{...n,value:f,onChange:S=>{var y;d(!0),A(S.target.value),(y=n.onChange)==null||y.call(n,S)},onKeyDown:S=>{var y;S.key==="Tab"&&m&&(S.preventDefault(),_()),(y=n.onKeyDown)==null||y.call(n,S)}})]})},FK=()=>{const{session:e,revalidateSession:t,setSession:n}=Cc(),{logout:r}=MM(),a=e!=null&&e.user?"authenticated":"unauthenticated",o=a==="authenticated",l=a==="unauthenticated",d=e==null?void 0:e.user;return{isAuthenticated:o,isUnauthenticated:l,user:d,revalidateSession:t,logout:async()=>{n(null),await r()}}},LK=({children:e,onContentChange:t,disabled:n,validate:r,additionalButtons:a,...o})=>{const{isAuthenticated:l}=FK(),[d,f]=C.useState(e),[A,m]=C.useState(0),E=d!==e,g=()=>{f(e),m(v=>v+1)},_=()=>{t(d)},S=v=>f(v.currentTarget.value??"");C.useEffect(()=>{f(e)},[e]);const y=(r==null?void 0:r(d))??!0;return N.jsxs("div",{className:"flex size-full flex-col items-center justify-between gap-2",children:[N.jsx(OK,{onChange:S,variant:"invisible",className:"size-full",defaultValue:e,isActive:l,...o},A),(E||a)&&N.jsxs("div",{className:"flex w-full items-center justify-end gap-2",children:[E&&N.jsxs(N.Fragment,{children:[N.jsx(ht,{Icon:eo,label:"Validate",variant:"hoverable",color:"text",size:"icon-sm",className:"cursor-pointer hover:scale-110",disabled:n||!y,onClick:_}),N.jsx(ht,{Icon:ba,label:"Cancel",variant:"hoverable",size:"icon-sm",color:"text",className:"cursor-pointer hover:scale-110",onClick:g})]}),a]})]},e)};function fa(){return fa=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},fa.apply(this,arguments)}const wK=["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 hy;(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"})(hy||(hy={}));const my=["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"}),py={amp:"&",apos:"'",gt:">",lt:"<",nbsp:" ",quot:"“"},MK=["style","script"],HK=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,PK=/mailto:/i,UK=/\n{2,}$/,x1=/^(\s*>[\s\S]*?)(?=\n\n|$)/,kK=/^ *> ?/gm,GK=/^(?:\[!([^\]]*)\]\n)?([\s\S]*)/,jK=/^ {2,}\n/,VK=/^(?:( *[-*_])){3,} *(?:\n *)+\n/,b1=/^(?: {1,3})?(`{3,}|~{3,}) *(\S+)? *([^\n]*?)?\n([\s\S]*?)(?:\1\n?|$)/,B1=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,zK=/^(`+)((?:\\`|[^`])+)\1/,KK=/^(?:\n *)*\n/,YK=/\r\n?/g,ZK=/^\[\^([^\]]+)](:(.*)((\n+ {4,}.*)|(\n(?!\[\^).+))*)/,WK=/^\[\^([^\]]+)]/,$K=/\f/g,qK=/^---[ \t]*\n(.|\n)*\n---[ \t]*\n/,QK=/^\s*?\[(x|\s)\]/,O1=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,F1=/^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,L1=/^([^\n]+)\n *(=|-){3,} *(?:\n *)+\n/,FE=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?((?:[^>]*[^/])?)>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1\b)[\s\S])*?)<\/\1>(?!<\/\1>)\n*/i,XK=/&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi,w1=/^<!--[\s\S]*?(?:-->)/,JK=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,LE=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,eY=/^\{.*\}$/,tY=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,nY=/^<([^ >]+@[^ >]+)>/,rY=/^<([^ >]+:\/[^ >]+)>/,uY=/-([a-z])?/gi,M1=/^(\|.*)\n(?: *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*))?\n?/,iY=/^\[([^\]]*)\]:\s+<?([^\s>]+)>?\s*("([^"]*)")?/,aY=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,sY=/^\[([^\]]*)\] ?\[([^\]]*)\]/,oY=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,lY=/\t/g,cY=/(^ *\||\| *$)/g,dY=/^ *:-+: *$/,fY=/^ *:-+ *$/,AY=/^ *-+: *$/,rA="((?:\\[.*?\\][([].*?[)\\]]|<.*?>(?:.*?<.*?>)?|`.*?`|\\\\\\1|[\\s\\S])+?)",hY=new RegExp(`^([*_])\\1${rA}\\1\\1(?!\\1)`),mY=new RegExp(`^([*_])${rA}\\1(?!\\1)`),pY=new RegExp(`^(==)${rA}\\1`),EY=new RegExp(`^(~~)${rA}\\1`),gY=/^\\([^0-9A-Za-z\s])/,gp=/\\([^0-9A-Za-z\s])/g,_Y=/^([\s\S](?:(?! |[0-9]\.)[^*_~\-\n<`\\\[!])*)/,NY=/^\n+/,IY=/^([ \t]*)/,SY=/\\([^\\])/g,CY=/(?:^|\n)( *)$/,C4="(?:\\d+\\.)",y4="(?:[*+-])";function H1(e){return"( *)("+(e===1?C4:y4)+") +"}const P1=H1(1),U1=H1(2);function k1(e){return new RegExp("^"+(e===1?P1:U1))}const yY=k1(1),vY=k1(2);function G1(e){return new RegExp("^"+(e===1?P1:U1)+"[^\\n]*(?:\\n(?!\\1"+(e===1?C4:y4)+" )[^\\n]*)*(\\n|$)","gm")}const RY=G1(1),DY=G1(2);function j1(e){const t=e===1?C4:y4;return new RegExp("^( *)("+t+") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1"+t+" (?!"+t+" ))\\n*|\\s*\\n*$)")}const V1=j1(1),z1=j1(2);function Ey(e,t){const n=t===1,r=n?V1:z1,a=n?RY:DY,o=n?yY:vY;return{match:Zs(function(l,d){const f=CY.exec(d.prevCapture);return f&&(d.list||!d.inline&&!d.simple)?r.exec(l=f[1]+l):null}),order:1,parse(l,d,f){const A=n?+l[2]:void 0,m=l[0].replace(UK,`
|
|
262
|
+
`).match(a);let E=!1;return{items:m.map(function(g,_){const S=o.exec(g)[0].length,y=new RegExp("^ {1,"+S+"}","gm"),v=g.replace(y,"").replace(o,""),R=_===m.length-1,D=v.indexOf(`
|
|
263
|
+
|
|
264
|
+
`)!==-1||R&&E;E=D;const x=f.inline,L=f.list;let b;f.list=!0,D?(f.inline=!1,b=cc(v)+`
|
|
265
|
+
|
|
266
|
+
`):(f.inline=!0,b=cc(v));const O=d(b,f);return f.inline=x,f.list=L,O}),ordered:n,start:A}},render:(l,d,f)=>e(l.ordered?"ol":"ul",{key:f.key,start:l.type===ke.orderedList?l.start:void 0},l.items.map(function(A,m){return e("li",{key:m},d(A,f))}))}}const TY=new RegExp(`^\\[((?:\\[[^\\]]*\\]|[^\\[\\]]|\\](?=[^\\[]*\\]))*)\\]\\(\\s*<?((?:\\([^)]*\\)|[^\\s\\\\]|\\\\.)*?)>?(?:\\s+['"]([\\s\\S]*?)['"])?\\s*\\)`),xY=/^!\[(.*?)\]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/,K1=[x1,b1,B1,O1,L1,F1,M1,V1,z1],bY=[...K1,/^[^\n]+(?: \n|\n{2,})/,FE,w1,LE];function cc(e){let t=e.length;for(;t>0&&e[t-1]<=" ";)t--;return e.slice(0,t)}function El(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 BY(e){return AY.test(e)?"right":dY.test(e)?"center":fY.test(e)?"left":null}function gy(e,t,n,r){const a=n.inTable;n.inTable=!0;let o=[[]],l="";function d(){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,A,m)=>{f.trim()==="|"&&(d(),r)?A!==0&&A!==m.length-1&&o.push([]):l+=f}),d(),n.inTable=a,o}function OY(e,t,n){n.inline=!0;const r=e[2]?e[2].replace(cY,"").split("|").map(BY):[],a=e[3]?function(l,d,f){return l.trim().split(`
|
|
267
|
+
`).map(function(A){return gy(A,d,f,!0)})}(e[3],t,n):[],o=gy(e[1],t,n,!!a.length);return n.inline=!1,a.length?{align:r,cells:a,header:o,type:ke.table}:{children:o,type:ke.paragraph}}function _y(e,t){return e.align[t]==null?{}:{textAlign:e.align[t]}}function Zs(e){return e.inline=1,e}function ci(e){return Zs(function(t,n){return n.inline?e.exec(t):null})}function di(e){return Zs(function(t,n){return n.inline||n.simple?e.exec(t):null})}function Iu(e){return function(t,n){return n.inline||n.simple?null:e.exec(t)}}function gl(e){return Zs(function(t){return e.exec(t)})}function FY(e,t){if(t.inline||t.simple)return null;let n="";e.split(`
|
|
268
|
+
`).every(a=>(a+=`
|
|
269
|
+
`,!K1.some(o=>o.test(a))&&(n+=a,!!a.trim())));const r=cc(n);return r==""?null:[n,,r]}function LY(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 Ny(e){return e.replace(SY,"$1")}function L0(e,t,n){const r=n.inline||!1,a=n.simple||!1;n.inline=!0,n.simple=!0;const o=e(t,n);return n.inline=r,n.simple=a,o}function wY(e,t,n){const r=n.inline||!1,a=n.simple||!1;n.inline=!1,n.simple=!0;const o=e(t,n);return n.inline=r,n.simple=a,o}function MY(e,t,n){const r=n.inline||!1;n.inline=!1;const a=e(t,n);return n.inline=r,a}const _p=(e,t,n)=>({children:L0(t,e[2],n)});function Np(){return{}}function Ip(){return null}function HY(...e){return e.filter(Boolean).join(" ")}function Sp(e,t,n){let r=e;const a=t.split(".");for(;a.length&&(r=r[a[0]],r!==void 0);)a.shift();return r||n}function PY(e="",t={}){function n(g,_,...S){const y=Sp(t.overrides,`${g}.props`,{});return t.createElement(function(v,R){const D=Sp(R,v);return D?typeof D=="function"||typeof D=="object"&&"render"in D?D:Sp(R,`${v}.component`,v):v}(g,t.overrides),fa({},_,y,{className:HY(_==null?void 0:_.className,y.className)||void 0}),...S)}function r(g){g=g.replace(qK,"");let _=!1;t.forceInline?_=!0:t.forceBlock||(_=oY.test(g)===!1);const S=A(f(_?g:`${cc(g).replace(NY,"")}
|
|
270
|
+
|
|
271
|
+
`,{inline:_}));for(;typeof S[S.length-1]=="string"&&!S[S.length-1].trim();)S.pop();if(t.wrapper===null)return S;const y=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(y,{key:"outer"},v)}function a(g,_){const S=_.match(HK);return S?S.reduce(function(y,v){const R=v.indexOf("=");if(R!==-1){const D=function(O){return O.indexOf("-")!==-1&&O.match(JK)===null&&(O=O.replace(uY,function(F,j){return j.toUpperCase()})),O}(v.slice(0,R)).trim(),x=function(O){const F=O[0];return(F==='"'||F==="'")&&O.length>=2&&O[O.length-1]===F?O.slice(1,-1):O}(v.slice(R+1).trim()),L=my[D]||D;if(L==="ref")return y;const b=y[L]=function(O,F,j,G){return F==="style"?j.split(/;\s?/).reduce(function(K,Ae){const se=Ae.slice(0,Ae.indexOf(":"));return K[se.trim().replace(/(-[a-z])/g,de=>de[1].toUpperCase())]=Ae.slice(se.length+1).trim(),K},{}):F==="href"||F==="src"?G(j,O,F):(j.match(eY)&&(j=j.slice(1,j.length-1)),j==="true"||j!=="false"&&j)}(g,D,x,t.sanitizer);typeof b=="string"&&(FE.test(b)||LE.test(b))&&(y[L]=r(b.trim()))}else v!=="style"&&(y[my[v]||v]=!0);return y},{}):null}t.overrides=t.overrides||{},t.sanitizer=t.sanitizer||LY,t.slugify=t.slugify||El,t.namedCodesToUnicode=t.namedCodesToUnicode?fa({},py,t.namedCodesToUnicode):py,t.createElement=t.createElement||C.createElement;const o=[],l={},d={[ke.blockQuote]:{match:Iu(x1),order:1,parse(g,_,S){const[,y,v]=g[0].replace(kK,"").match(GK);return{alert:y,children:_(v,S)}},render(g,_,S){const y={key:S.key};return g.alert&&(y.className="markdown-alert-"+t.slugify(g.alert.toLowerCase(),El),g.children.unshift({attrs:{},children:[{type:ke.text,text:g.alert}],noInnerParse:!0,type:ke.htmlBlock,tag:"header"})),n("blockquote",y,_(g.children,S))}},[ke.breakLine]:{match:gl(jK),order:1,parse:Np,render:(g,_,S)=>n("br",{key:S.key})},[ke.breakThematic]:{match:Iu(VK),order:1,parse:Np,render:(g,_,S)=>n("hr",{key:S.key})},[ke.codeBlock]:{match:Iu(B1),order:0,parse:g=>({lang:void 0,text:cc(g[0].replace(/^ {4}/gm,"")).replace(gp,"$1")}),render:(g,_,S)=>n("pre",{key:S.key},n("code",fa({},g.attrs,{className:g.lang?`lang-${g.lang}`:""}),g.text))},[ke.codeFenced]:{match:Iu(b1),order:0,parse:g=>({attrs:a("code",g[3]||""),lang:g[2]||void 0,text:g[4].replace(gp,"$1"),type:ke.codeBlock})},[ke.codeInline]:{match:di(zK),order:3,parse:g=>({text:g[2].replace(gp,"$1")}),render:(g,_,S)=>n("code",{key:S.key},g.text)},[ke.footnote]:{match:Iu(ZK),order:0,parse:g=>(o.push({footnote:g[2],identifier:g[1]}),{}),render:Ip},[ke.footnoteReference]:{match:ci(WK),order:1,parse:g=>({target:`#${t.slugify(g[1],El)}`,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:ci(QK),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:Iu(t.enforceAtxHeadings?F1:O1),order:1,parse:(g,_,S)=>({children:L0(_,g[2],S),id:t.slugify(g[2],El),level:g[1].length}),render:(g,_,S)=>n(`h${g.level}`,{id:g.id,key:S.key},_(g.children,S))},[ke.headingSetext]:{match:Iu(L1),order:0,parse:(g,_,S)=>({children:L0(_,g[1],S),level:g[2]==="="?1:2,type:ke.heading})},[ke.htmlBlock]:{match:gl(FE),order:1,parse(g,_,S){const[,y]=g[3].match(IY),v=new RegExp(`^${y}`,"gm"),R=g[3].replace(v,""),D=(x=R,bY.some(j=>j.test(x))?MY:L0);var x;const L=g[1].toLowerCase(),b=MK.indexOf(L)!==-1,O=(b?L:g[1]).trim(),F={attrs:a(O,g[2]),noInnerParse:b,tag:O};return S.inAnchor=S.inAnchor||L==="a",b?F.text=g[3]:F.children=D(_,R,S),S.inAnchor=!1,F},render:(g,_,S)=>n(g.tag,fa({key:S.key},g.attrs),g.text||(g.children?_(g.children,S):""))},[ke.htmlSelfClosing]:{match:gl(LE),order:1,parse(g){const _=g[1].trim();return{attrs:a(_,g[2]||""),tag:_}},render:(g,_,S)=>n(g.tag,fa({},g.attrs,{key:S.key}))},[ke.htmlComment]:{match:gl(w1),order:1,parse:()=>({}),render:Ip},[ke.image]:{match:di(xY),order:1,parse:g=>({alt:g[1],target:Ny(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:ci(TY),order:3,parse:(g,_,S)=>({children:wY(_,g[1],S),target:Ny(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:ci(rY),order:0,parse:g=>({children:[{text:g[1],type:ke.text}],target:g[1],type:ke.link})},[ke.linkBareUrlDetector]:{match:Zs((g,_)=>_.inAnchor||t.disableAutoLink?null:ci(tY)(g,_)),order:0,parse:g=>({children:[{text:g[1],type:ke.text}],target:g[1],title:void 0,type:ke.link})},[ke.linkMailtoDetector]:{match:ci(nY),order:0,parse(g){let _=g[1],S=g[1];return PK.test(S)||(S="mailto:"+S),{children:[{text:_.replace("mailto:",""),type:ke.text}],target:S,type:ke.link}}},[ke.orderedList]:Ey(n,1),[ke.unorderedList]:Ey(n,2),[ke.newlineCoalescer]:{match:Iu(KK),order:3,parse:Np,render:()=>`
|
|
272
|
+
`},[ke.paragraph]:{match:Zs(FY),order:3,parse:_p,render:(g,_,S)=>n("p",{key:S.key},_(g.children,S))},[ke.ref]:{match:ci(iY),order:0,parse:g=>(l[g[1]]={target:g[2],title:g[4]},{}),render:Ip},[ke.refImage]:{match:di(aY),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:ci(sY),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:Iu(M1),order:1,parse:OY,render(g,_,S){const y=g;return n("table",{key:S.key},n("thead",null,n("tr",null,y.header.map(function(v,R){return n("th",{key:R,style:_y(y,R)},_(v,S))}))),n("tbody",null,y.cells.map(function(v,R){return n("tr",{key:R},v.map(function(D,x){return n("td",{key:x,style:_y(y,x)},_(D,S))}))})))}},[ke.text]:{match:gl(_Y),order:4,parse:g=>({text:g[0].replace(XK,(_,S)=>t.namedCodesToUnicode[S]?t.namedCodesToUnicode[S]:_)}),render:g=>g.text},[ke.textBolded]:{match:di(hY),order:2,parse:(g,_,S)=>({children:_(g[2],S)}),render:(g,_,S)=>n("strong",{key:S.key},_(g.children,S))},[ke.textEmphasized]:{match:di(mY),order:3,parse:(g,_,S)=>({children:_(g[2],S)}),render:(g,_,S)=>n("em",{key:S.key},_(g.children,S))},[ke.textEscaped]:{match:di(gY),order:1,parse:g=>({text:g[1],type:ke.text})},[ke.textMarked]:{match:di(pY),order:3,parse:_p,render:(g,_,S)=>n("mark",{key:S.key},_(g.children,S))},[ke.textStrikethroughed]:{match:di(EY),order:3,parse:_p,render:(g,_,S)=>n("del",{key:S.key},_(g.children,S))}};t.disableParsingRawHTML===!0&&(delete d[ke.htmlBlock],delete d[ke.htmlSelfClosing]);const f=function(g){let _=Object.keys(g);function S(y,v){let R,D,x=[],L="",b="";for(v.prevCapture=v.prevCapture||"";y;){let O=0;for(;O<_.length;){if(L=_[O],R=g[L],v.inline&&!R.match.inline){O++;continue}const F=R.match(y,v);if(F){b=F[0],v.prevCapture+=b,y=y.substring(b.length),D=R.parse(F,S,v),D.type==null&&(D.type=L),x.push(D);break}O++}}return v.prevCapture="",x}return _.sort(function(y,v){let R=g[y].order,D=g[v].order;return R!==D?R-D:y<v?-1:1}),function(y,v){return S(function(R){return R.replace(YK,`
|
|
273
|
+
`).replace($K,"").replace(lY," ")}(y),v)}}(d),A=(m=function(g,_){return function(S,y,v){const R=g[S.type].render;return _?_(()=>R(S,y,v),S,y,v):R(S,y,v)}}(d,t.renderRule),function g(_,S={}){if(Array.isArray(_)){const y=S.key,v=[];let R=!1;for(let D=0;D<_.length;D++){S.key=D;const x=g(_[D],S),L=typeof x=="string";L&&R?v[v.length-1]+=x:x!==null&&v.push(x),R=L}return S.key=y,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,El),key:g.identifier},g.identifier,A(f(g.footnote,{inline:!0})))}))):E}const UY=e=>{let{children:t="",options:n}=e,r=function(a,o){if(a==null)return{};var l,d,f={},A=Object.keys(a);for(d=0;d<A.length;d++)o.indexOf(l=A[d])>=0||(f[l]=a[l]);return f}(e,wK);return C.cloneElement(PY(t,n),r)},kY=e=>{var a;const t=document.getElementById(e),r=(((a=t==null?void 0:t.getBoundingClientRect())==null?void 0:a.top)??0)+window.scrollY-150;window.scrollTo({top:r,behavior:"smooth"})},GY=()=>{const[e,t]=C.useState(),n=()=>{t(window.location.hash.slice(1))};return C.useEffect(()=>(t(window.location.hash.slice(1)),window.addEventListener("hashchange",n),()=>window.removeEventListener("hashchange",n)),[]),C.useEffect(()=>{e&&kY(e)},[e]),null};let xu=class extends Error{constructor(t){super(t),this.name="ShikiError"}},v4=class extends Error{constructor(t){super(t),this.name="ShikiError"}};function jY(){return 2147483648}function VY(){return typeof performance<"u"?performance.now():Date.now()}const zY=(e,t)=>e+(t-e%t)%t;async function KY(e){let t,n;const r={};function a(_){n=_,r.HEAPU8=new Uint8Array(_),r.HEAPU32=new Uint32Array(_)}function o(_,S,y){r.HEAPU8.copyWithin(_,S,S+y)}function l(_){try{return t.grow(_-n.byteLength+65535>>>16),a(t.buffer),1}catch{}}function d(_){const S=r.HEAPU8.length;_=_>>>0;const y=jY();if(_>y)return!1;for(let v=1;v<=4;v*=2){let R=S*(1+.2/v);R=Math.min(R,_+100663296);const D=Math.min(y,zY(Math.max(_,R),65536));if(l(D))return!0}return!1}const f=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0;function A(_,S,y=1024){const v=S+y;let R=S;for(;_[R]&&!(R>=v);)++R;if(R-S>16&&_.buffer&&f)return f.decode(_.subarray(S,R));let D="";for(;S<R;){let x=_[S++];if(!(x&128)){D+=String.fromCharCode(x);continue}const L=_[S++]&63;if((x&224)===192){D+=String.fromCharCode((x&31)<<6|L);continue}const b=_[S++]&63;if((x&240)===224?x=(x&15)<<12|L<<6|b:x=(x&7)<<18|L<<12|b<<6|_[S++]&63,x<65536)D+=String.fromCharCode(x);else{const O=x-65536;D+=String.fromCharCode(55296|O>>10,56320|O&1023)}}return D}function m(_,S){return _?A(r.HEAPU8,_,S):""}const E={emscripten_get_now:VY,emscripten_memcpy_big:o,emscripten_resize_heap:d,fd_write:()=>0};async function g(){const S=await e({env:E,wasi_snapshot_preview1:E});t=S.memory,a(t.buffer),Object.assign(r,S),r.UTF8ToString=m}return await g(),r}var YY=Object.defineProperty,ZY=(e,t,n)=>t in e?YY(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Wt=(e,t,n)=>(ZY(e,typeof t!="symbol"?t+"":t,n),n);let nn=null;function WY(e){throw new v4(e.UTF8ToString(e.getLastOnigError()))}class uA{constructor(t){Wt(this,"utf16Length"),Wt(this,"utf8Length"),Wt(this,"utf16Value"),Wt(this,"utf8Value"),Wt(this,"utf16OffsetToUtf8"),Wt(this,"utf8OffsetToUtf16");const n=t.length,r=uA._utf8ByteLength(t),a=r!==n,o=a?new Uint32Array(n+1):null;a&&(o[n]=r);const l=a?new Uint32Array(r+1):null;a&&(l[r]=n);const d=new Uint8Array(r);let f=0;for(let A=0;A<n;A++){const m=t.charCodeAt(A);let E=m,g=!1;if(m>=55296&&m<=56319&&A+1<n){const _=t.charCodeAt(A+1);_>=56320&&_<=57343&&(E=(m-55296<<10)+65536|_-56320,g=!0)}a&&(o[A]=f,g&&(o[A+1]=f),E<=127?l[f+0]=A:E<=2047?(l[f+0]=A,l[f+1]=A):E<=65535?(l[f+0]=A,l[f+1]=A,l[f+2]=A):(l[f+0]=A,l[f+1]=A,l[f+2]=A,l[f+3]=A)),E<=127?d[f++]=E:E<=2047?(d[f++]=192|(E&1984)>>>6,d[f++]=128|(E&63)>>>0):E<=65535?(d[f++]=224|(E&61440)>>>12,d[f++]=128|(E&4032)>>>6,d[f++]=128|(E&63)>>>0):(d[f++]=240|(E&1835008)>>>18,d[f++]=128|(E&258048)>>>12,d[f++]=128|(E&4032)>>>6,d[f++]=128|(E&63)>>>0),g&&A++}this.utf16Length=n,this.utf8Length=r,this.utf16Value=t,this.utf8Value=d,this.utf16OffsetToUtf8=o,this.utf8OffsetToUtf16=l}static _utf8ByteLength(t){let n=0;for(let r=0,a=t.length;r<a;r++){const o=t.charCodeAt(r);let l=o,d=!1;if(o>=55296&&o<=56319&&r+1<a){const f=t.charCodeAt(r+1);f>=56320&&f<=57343&&(l=(o-55296<<10)+65536|f-56320,d=!0)}l<=127?n+=1:l<=2047?n+=2:l<=65535?n+=3:n+=4,d&&r++}return n}createString(t){const n=t.omalloc(this.utf8Length);return t.HEAPU8.set(this.utf8Value,n),n}}const Hr=class{constructor(e){if(Wt(this,"id",++Hr.LAST_ID),Wt(this,"_onigBinding"),Wt(this,"content"),Wt(this,"utf16Length"),Wt(this,"utf8Length"),Wt(this,"utf16OffsetToUtf8"),Wt(this,"utf8OffsetToUtf16"),Wt(this,"ptr"),!nn)throw new v4("Must invoke loadWasm first.");this._onigBinding=nn,this.content=e;const t=new uA(e);this.utf16Length=t.utf16Length,this.utf8Length=t.utf8Length,this.utf16OffsetToUtf8=t.utf16OffsetToUtf8,this.utf8OffsetToUtf16=t.utf8OffsetToUtf16,this.utf8Length<1e4&&!Hr._sharedPtrInUse?(Hr._sharedPtr||(Hr._sharedPtr=nn.omalloc(1e4)),Hr._sharedPtrInUse=!0,nn.HEAPU8.set(t.utf8Value,Hr._sharedPtr),this.ptr=Hr._sharedPtr):this.ptr=t.createString(nn)}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===Hr._sharedPtr?Hr._sharedPtrInUse=!1:this._onigBinding.ofree(this.ptr)}};let Hc=Hr;Wt(Hc,"LAST_ID",0);Wt(Hc,"_sharedPtr",0);Wt(Hc,"_sharedPtrInUse",!1);class $Y{constructor(t){if(Wt(this,"_onigBinding"),Wt(this,"_ptr"),!nn)throw new v4("Must invoke loadWasm first.");const n=[],r=[];for(let d=0,f=t.length;d<f;d++){const A=new uA(t[d]);n[d]=A.createString(nn),r[d]=A.utf8Length}const a=nn.omalloc(4*t.length);nn.HEAPU32.set(n,a/4);const o=nn.omalloc(4*t.length);nn.HEAPU32.set(r,o/4);const l=nn.createOnigScanner(a,o,t.length);for(let d=0,f=t.length;d<f;d++)nn.ofree(n[d]);nn.ofree(o),nn.ofree(a),l===0&&WY(nn),this._onigBinding=nn,this._ptr=l}dispose(){this._onigBinding.freeOnigScanner(this._ptr)}findNextMatchSync(t,n,r){let a=0;if(typeof r=="number"&&(a=r),typeof t=="string"){t=new Hc(t);const o=this._findNextMatchSync(t,n,!1,a);return t.dispose(),o}return this._findNextMatchSync(t,n,!1,a)}_findNextMatchSync(t,n,r,a){const o=this._onigBinding,l=o.findNextOnigScannerMatch(this._ptr,t.id,t.ptr,t.utf8Length,t.convertUtf16OffsetToUtf8(n),a);if(l===0)return null;const d=o.HEAPU32;let f=l/4;const A=d[f++],m=d[f++],E=[];for(let g=0;g<m;g++){const _=t.convertUtf8OffsetToUtf16(d[f++]),S=t.convertUtf8OffsetToUtf16(d[f++]);E[g]={start:_,end:S,length:S-_}}return{index:A,captureIndices:E}}}function qY(e){return typeof e.instantiator=="function"}function QY(e){return typeof e.default=="function"}function XY(e){return typeof e.data<"u"}function JY(e){return typeof Response<"u"&&e instanceof Response}function eZ(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 h0;function tZ(e){if(h0)return h0;async function t(){nn=await KY(async n=>{let r=e;return r=await r,typeof r=="function"&&(r=await r(n)),typeof r=="function"&&(r=await r(n)),qY(r)?r=await r.instantiator(n):QY(r)?r=await r.default(n):(XY(r)&&(r=r.data),JY(r)?typeof WebAssembly.instantiateStreaming=="function"?r=await nZ(r)(n):r=await rZ(r)(n):eZ(r)?r=await Cp(r)(n):r instanceof WebAssembly.Module?r=await Cp(r)(n):"default"in r&&r.default instanceof WebAssembly.Module&&(r=await Cp(r.default)(n))),"instance"in r&&(r=r.instance),"exports"in r&&(r=r.exports),r})}return h0=t(),h0}function Cp(e){return t=>WebAssembly.instantiate(e,t)}function nZ(e){return t=>WebAssembly.instantiateStreaming(e,t)}function rZ(e){return async t=>{const n=await e.arrayBuffer();return WebAssembly.instantiate(n,t)}}let uZ;function iZ(){return uZ}async function Y1(e){return e&&await tZ(e),{createScanner(t){return new $Y(t.map(n=>typeof n=="string"?n:n.source))},createString(t){return new Hc(t)}}}function aZ(e){return R4(e)}function R4(e){return Array.isArray(e)?sZ(e):e instanceof RegExp?e:typeof e=="object"?oZ(e):e}function sZ(e){let t=[];for(let n=0,r=e.length;n<r;n++)t[n]=R4(e[n]);return t}function oZ(e){let t={};for(let n in e)t[n]=R4(e[n]);return t}function Z1(e,...t){return t.forEach(n=>{for(let r in n)e[r]=n[r]}),e}function W1(e){const t=~e.lastIndexOf("/")||~e.lastIndexOf("\\");return t===0?e:~t===e.length-1?W1(e.substring(0,e.length-1)):e.substr(~t+1)}var yp=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,m0=class{static hasCaptures(e){return e===null?!1:(yp.lastIndex=0,yp.test(e))}static replaceCaptures(e,t,n){return e.replace(yp,(r,a,o,l)=>{let d=n[parseInt(a||o,10)];if(d){let f=t.substring(d.start,d.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 $1(e,t){return e<t?-1:e>t?1:0}function q1(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 a=0;a<n;a++){let o=$1(e[a],t[a]);if(o!==0)return o}return 0}return n-r}function Iy(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 Q1(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")}var X1=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}},mf=class{constructor(e,t,n){oe(this,"_cachedMatchRoot",new X1(e=>this._root.match(e)));this._colorMap=e,this._defaults=t,this._root=n}static createFromRawTheme(e,t){return this.createFromParsedTheme(dZ(e),t)}static createFromParsedTheme(e,t){return AZ(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(a=>lZ(e.parent,a.parentScopes));return r?new J1(r.fontStyle,r.foreground,r.background):null}},vp=class w0{constructor(t,n){this.parent=t,this.scopeName=n}static push(t,n){for(const r of n)t=new w0(t,r);return t}static from(...t){let n=null;for(let r=0;r<t.length;r++)n=new w0(n,t[r]);return n}push(t){return new w0(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 lZ(e,t){if(t.length===0)return!0;for(let n=0;n<t.length;n++){let r=t[n],a=!1;if(r===">"){if(n===t.length-1)return!1;r=t[++n],a=!0}for(;e&&!cZ(e.scopeName,r);){if(a)return!1;e=e.parent}if(!e)return!1;e=e.parent}return!0}function cZ(e,t){return t===e||e.startsWith(t)&&e[t.length]==="."}var J1=class{constructor(e,t,n){this.fontStyle=e,this.foregroundId=t,this.backgroundId=n}};function dZ(e){if(!e)return[];if(!e.settings||!Array.isArray(e.settings))return[];let t=e.settings,n=[],r=0;for(let a=0,o=t.length;a<o;a++){let l=t[a];if(!l.settings)continue;let d;if(typeof l.scope=="string"){let E=l.scope;E=E.replace(/^[,]+/,""),E=E.replace(/[,]+$/,""),d=E.split(",")}else Array.isArray(l.scope)?d=l.scope:d=[""];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 A=null;typeof l.settings.foreground=="string"&&Iy(l.settings.foreground)&&(A=l.settings.foreground);let m=null;typeof l.settings.background=="string"&&Iy(l.settings.background)&&(m=l.settings.background);for(let E=0,g=d.length;E<g;E++){let S=d[E].trim().split(" "),y=S[S.length-1],v=null;S.length>1&&(v=S.slice(0,S.length-1),v.reverse()),n[r++]=new fZ(y,v,a,f,A,m)}}return n}var fZ=class{constructor(e,t,n,r,a,o){this.scope=e,this.parentScopes=t,this.index=n,this.fontStyle=r,this.foreground=a,this.background=o}},vu=(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))(vu||{});function AZ(e,t){e.sort((f,A)=>{let m=$1(f.scope,A.scope);return m!==0||(m=q1(f.parentScopes,A.parentScopes),m!==0)?m:f.index-A.index});let n=0,r="#000000",a="#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&&(a=f.background)}let o=new hZ(t),l=new J1(n,o.getId(r),o.getId(a)),d=new pZ(new wE(0,null,-1,0,0),[]);for(let f=0,A=e.length;f<A;f++){let m=e[f];d.insert(0,m.scope,m.parentScopes,m.fontStyle,o.getId(m.foreground),o.getId(m.background))}return new mf(o,l,d)}var hZ=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)}},mZ=Object.freeze([]),wE=class ex{constructor(t,n,r,a,o){oe(this,"scopeDepth");oe(this,"parentScopes");oe(this,"fontStyle");oe(this,"foreground");oe(this,"background");this.scopeDepth=t,this.parentScopes=n||mZ,this.fontStyle=r,this.foreground=a,this.background=o}clone(){return new ex(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(t){let n=[];for(let r=0,a=t.length;r<a;r++)n[r]=t[r].clone();return n}acceptOverwrite(t,n,r,a){this.scopeDepth>t?console.log("how did this happen?"):this.scopeDepth=t,n!==-1&&(this.fontStyle=n),r!==0&&(this.foreground=r),a!==0&&(this.background=a)}},pZ=class ME{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,a=0;for(;t.parentScopes[r]===">"&&r++,n.parentScopes[a]===">"&&a++,!(r>=t.parentScopes.length||a>=n.parentScopes.length);){const o=n.parentScopes[a].length-t.parentScopes[r].length;if(o!==0)return o;r++,a++}return n.parentScopes.length-t.parentScopes.length}match(t){if(t!==""){let r=t.indexOf("."),a,o;if(r===-1?(a=t,o=""):(a=t.substring(0,r),o=t.substring(r+1)),this._children.hasOwnProperty(a))return this._children[a].match(o)}const n=this._rulesWithParentScopes.concat(this._mainRule);return n.sort(ME._cmpBySpecificity),n}insert(t,n,r,a,o,l){if(n===""){this._doInsertHere(t,r,a,o,l);return}let d=n.indexOf("."),f,A;d===-1?(f=n,A=""):(f=n.substring(0,d),A=n.substring(d+1));let m;this._children.hasOwnProperty(f)?m=this._children[f]:(m=new ME(this._mainRule.clone(),wE.cloneArr(this._rulesWithParentScopes)),this._children[f]=m),m.insert(t+1,A,r,a,o,l)}_doInsertHere(t,n,r,a,o){if(n===null){this._mainRule.acceptOverwrite(t,r,a,o);return}for(let l=0,d=this._rulesWithParentScopes.length;l<d;l++){let f=this._rulesWithParentScopes[l];if(q1(f.parentScopes,n)===0){f.acceptOverwrite(t,r,a,o);return}}r===-1&&(r=this._mainRule.fontStyle),a===0&&(a=this._mainRule.foreground),o===0&&(o=this._mainRule.background),this._rulesWithParentScopes.push(new wE(t,n,r,a,o))}},Ws=class cr{static toBinaryStr(t){return t.toString(2).padStart(32,"0")}static print(t){const n=cr.getLanguageId(t),r=cr.getTokenType(t),a=cr.getFontStyle(t),o=cr.getForeground(t),l=cr.getBackground(t);console.log({languageId:n,tokenType:r,fontStyle:a,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,a,o,l,d){let f=cr.getLanguageId(t),A=cr.getTokenType(t),m=cr.containsBalancedBrackets(t)?1:0,E=cr.getFontStyle(t),g=cr.getForeground(t),_=cr.getBackground(t);return n!==0&&(f=n),r!==8&&(A=r),a!==null&&(m=a?1:0),o!==-1&&(E=o),l!==0&&(g=l),d!==0&&(_=d),(f<<0|A<<8|m<<10|E<<11|g<<15|_<<24)>>>0}};function pf(e,t){const n=[],r=EZ(e);let a=r.next();for(;a!==null;){let f=0;if(a.length===2&&a.charAt(1)===":"){switch(a.charAt(0)){case"R":f=1;break;case"L":f=-1;break;default:console.log(`Unknown priority ${a} in scope selector`)}a=r.next()}let A=l();if(n.push({matcher:A,priority:f}),a!==",")break;a=r.next()}return n;function o(){if(a==="-"){a=r.next();const f=o();return A=>!!f&&!f(A)}if(a==="("){a=r.next();const f=d();return a===")"&&(a=r.next()),f}if(Sy(a)){const f=[];do f.push(a),a=r.next();while(Sy(a));return A=>t(f,A)}return null}function l(){const f=[];let A=o();for(;A;)f.push(A),A=o();return m=>f.every(E=>E(m))}function d(){const f=[];let A=l();for(;A&&(f.push(A),a==="|"||a===",");){do a=r.next();while(a==="|"||a===",");A=l()}return m=>f.some(E=>E(m))}}function Sy(e){return!!e&&!!e.match(/[\w\.:]+/)}function EZ(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 tx(e){typeof e.dispose=="function"&&e.dispose()}var dc=class{constructor(e){this.scopeName=e}toKey(){return this.scopeName}},gZ=class{constructor(e,t){this.scopeName=e,this.ruleName=t}toKey(){return`${this.scopeName}#${this.ruleName}`}},_Z=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))}},NZ=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 dc(this.initialScopeName)]}processQueue(){const e=this.Q;this.Q=[];const t=new _Z;for(const n of e)IZ(n,this.initialScopeName,this.repo,t);for(const n of t.references)if(n instanceof dc){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 IZ(e,t,n,r){const a=n.lookup(e.scopeName);if(!a){if(e.scopeName===t)throw new Error(`No grammar provided for <${t}>`);return}const o=n.lookup(t);e instanceof dc?M0({baseGrammar:o,selfGrammar:a},r):HE(e.ruleName,{baseGrammar:o,selfGrammar:a,repository:a.repository},r);const l=n.injections(e.scopeName);if(l)for(const d of l)r.add(new dc(d))}function HE(e,t,n){if(t.repository&&t.repository[e]){const r=t.repository[e];Ef([r],t,n)}}function M0(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&Ef(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},t),e.selfGrammar.injections&&Ef(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}function Ef(e,t,n){for(const r of e){if(n.visitedRule.has(r))continue;n.visitedRule.add(r);const a=r.repository?Z1({},t.repository,r.repository):t.repository;Array.isArray(r.patterns)&&Ef(r.patterns,{...t,repository:a},n);const o=r.include;if(!o)continue;const l=nx(o);switch(l.kind){case 0:M0({...t,selfGrammar:t.baseGrammar},n);break;case 1:M0(t,n);break;case 2:HE(l.ruleName,{...t,repository:a},n);break;case 3:case 4:const d=l.scopeName===t.selfGrammar.scopeName?t.selfGrammar:l.scopeName===t.baseGrammar.scopeName?t.baseGrammar:void 0;if(d){const f={baseGrammar:t.baseGrammar,selfGrammar:d,repository:a};l.kind===4?HE(l.ruleName,f,n):M0(f,n)}else l.kind===4?n.add(new gZ(l.scopeName,l.ruleName)):n.add(new dc(l.scopeName));break}}}var SZ=class{constructor(){oe(this,"kind",0)}},CZ=class{constructor(){oe(this,"kind",1)}},yZ=class{constructor(e){oe(this,"kind",2);this.ruleName=e}},vZ=class{constructor(e){oe(this,"kind",3);this.scopeName=e}},RZ=class{constructor(e,t){oe(this,"kind",4);this.scopeName=e,this.ruleName=t}};function nx(e){if(e==="$base")return new SZ;if(e==="$self")return new CZ;const t=e.indexOf("#");if(t===-1)return new vZ(e);if(t===0)return new yZ(e.substring(1));{const n=e.substring(0,t),r=e.substring(t+1);return new RZ(n,r)}}var DZ=/\\(\d+)/,Cy=/\\(\d+)/g,TZ=-1,rx=-2;var Pc=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=m0.hasCaptures(this._name),this._contentName=r||null,this._contentNameIsCapturing=m0.hasCaptures(this._contentName)}get debugName(){const e=this.$location?`${W1(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:m0.replaceCaptures(this._name,e,t)}getContentName(e,t){return!this._contentNameIsCapturing||this._contentName===null?this._contentName:m0.replaceCaptures(this._contentName,e,t)}},xZ=class extends Pc{constructor(t,n,r,a,o){super(t,n,r,a);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,a){throw new Error("Not supported!")}},bZ=class extends Pc{constructor(t,n,r,a,o){super(t,n,r,null);oe(this,"_match");oe(this,"captures");oe(this,"_cachedCompiledPatterns");this._match=new fc(a,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,a){return this._getCachedCompiledPatterns(t).compileAG(t,r,a)}_getCachedCompiledPatterns(t){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new Ac,this.collectPatterns(t,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},yy=class extends Pc{constructor(t,n,r,a,o){super(t,n,r,a);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,a){return this._getCachedCompiledPatterns(t).compileAG(t,r,a)}_getCachedCompiledPatterns(t){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new Ac,this.collectPatterns(t,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},PE=class extends Pc{constructor(t,n,r,a,o,l,d,f,A,m){super(t,n,r,a);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(d||"",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=f,this.applyEndPatternLast=A||!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,a){return this._getCachedCompiledPatterns(t,n).compileAG(t,r,a)}_getCachedCompiledPatterns(t,n){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new Ac;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}},gf=class extends Pc{constructor(t,n,r,a,o,l,d,f,A){super(t,n,r,a);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(d,rx),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=A.patterns,this.hasMissingPatterns=A.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,a){return this._getCachedCompiledPatterns(t).compileAG(t,r,a)}_getCachedCompiledPatterns(t){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new Ac;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,a){return this._getCachedCompiledWhilePatterns(t,n).compileAG(t,r,a)}_getCachedCompiledWhilePatterns(t,n){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new Ac,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,n||""),this._cachedCompiledWhilePatterns}},ux=class hn{static createCaptureRule(t,n,r,a,o){return t.registerRule(l=>new xZ(n,l,r,a,o))}static getCompiledRuleId(t,n,r){return t.id||n.registerRule(a=>{if(t.id=a,t.match)return new bZ(t.$vscodeTextmateLocation,t.id,t.name,t.match,hn._compileCaptures(t.captures,n,r));if(typeof t.begin>"u"){t.repository&&(r=Z1({},r,t.repository));let o=t.patterns;return typeof o>"u"&&t.include&&(o=[{include:t.include}]),new yy(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,hn._compilePatterns(o,n,r))}return t.while?new gf(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,hn._compileCaptures(t.beginCaptures||t.captures,n,r),t.while,hn._compileCaptures(t.whileCaptures||t.captures,n,r),hn._compilePatterns(t.patterns,n,r)):new PE(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,hn._compileCaptures(t.beginCaptures||t.captures,n,r),t.end,hn._compileCaptures(t.endCaptures||t.captures,n,r),t.applyEndPatternLast,hn._compilePatterns(t.patterns,n,r))}),t.id}static _compileCaptures(t,n,r){let a=[];if(t){let o=0;for(const l in t){if(l==="$vscodeTextmateLocation")continue;const d=parseInt(l,10);d>o&&(o=d)}for(let l=0;l<=o;l++)a[l]=null;for(const l in t){if(l==="$vscodeTextmateLocation")continue;const d=parseInt(l,10);let f=0;t[l].patterns&&(f=hn.getCompiledRuleId(t[l],n,r)),a[d]=hn.createCaptureRule(n,t[l].$vscodeTextmateLocation,t[l].name,t[l].contentName,f)}}return a}static _compilePatterns(t,n,r){let a=[];if(t)for(let o=0,l=t.length;o<l;o++){const d=t[o];let f=-1;if(d.include){const A=nx(d.include);switch(A.kind){case 0:case 1:f=hn.getCompiledRuleId(r[d.include],n,r);break;case 2:let m=r[A.ruleName];m&&(f=hn.getCompiledRuleId(m,n,r));break;case 3:case 4:const E=A.scopeName,g=A.kind===4?A.ruleName:null,_=n.getExternalGrammar(E,r);if(_)if(g){let S=_.repository[g];S&&(f=hn.getCompiledRuleId(S,n,_.repository))}else f=hn.getCompiledRuleId(_.repository.$self,n,_.repository);break}}else f=hn.getCompiledRuleId(d,n,r);if(f!==-1){const A=n.getRule(f);let m=!1;if((A instanceof yy||A instanceof PE||A instanceof gf)&&A.hasMissingPatterns&&A.patterns.length===0&&(m=!0),m)continue;a.push(f)}}return{patterns:a,hasMissingPatterns:(t?t.length:0)!==a.length}}},fc=class ix{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 a=0,o=[],l=!1;for(let d=0;d<r;d++)if(t.charAt(d)==="\\"&&d+1<r){const A=t.charAt(d+1);A==="z"?(o.push(t.substring(a,d)),o.push("$(?!\\n)(?<!\\n)"),a=d+2):(A==="A"||A==="G")&&(l=!0),d++}this.hasAnchor=l,a===0?this.source=t:(o.push(t.substring(a,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=DZ.test(this.source):this.hasBackReferences=!1}clone(){return new ix(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(a=>t.substring(a.start,a.end));return Cy.lastIndex=0,this.source.replace(Cy,(a,o)=>Q1(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=[],a=[],o,l,d,f;for(o=0,l=this.source.length;o<l;o++)d=this.source.charAt(o),t[o]=d,n[o]=d,r[o]=d,a[o]=d,d==="\\"&&o+1<l&&(f=this.source.charAt(o+1),f==="A"?(t[o+1]="",n[o+1]="",r[o+1]="A",a[o+1]="A"):f==="G"?(t[o+1]="",n[o+1]="G",r[o+1]="",a[o+1]="G"):(t[o+1]=f,n[o+1]=f,r[o+1]=f,a[o+1]=f),o++);return{A0_G0:t.join(""),A0_G1:n.join(""),A1_G0:r.join(""),A1_G1:a.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}},Ac=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 vy(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(a=>a.resolveAnchors(t,n));return new vy(e,r,this._items.map(a=>a.ruleId))}},vy=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}},Rp=class{constructor(e,t){this.languageId=e,this.tokenType=t}},yu,BZ=(yu=class{constructor(t,n){oe(this,"_defaultAttributes");oe(this,"_embeddedLanguagesMatcher");oe(this,"_getBasicScopeAttributes",new X1(t=>{const n=this._scopeToLanguage(t),r=this._toStandardTokenType(t);return new Rp(n,r)}));this._defaultAttributes=new Rp(t,8),this._embeddedLanguagesMatcher=new OZ(Object.entries(n||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(t){return t===null?yu._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(t)}_scopeToLanguage(t){return this._embeddedLanguagesMatcher.match(t)||0}_toStandardTokenType(t){const n=t.match(yu.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(yu,"_NULL_SCOPE_METADATA",new Rp(0,0)),oe(yu,"STANDARD_TOKEN_TYPE_REGEXP",/\b(comment|string|regex|meta\.embedded)\b/),yu),OZ=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])=>Q1(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])}},Ry=class{constructor(e,t){this.stack=e,this.stoppedEarly=t}};function ax(e,t,n,r,a,o,l,d){const f=t.content.length;let A=!1,m=-1;if(l){const _=FZ(e,t,n,r,a,o);a=_.stack,r=_.linePos,n=_.isFirstLine,m=_.anchorPosition}const E=Date.now();for(;!A;){if(d!==0&&Date.now()-E>d)return new Ry(a,!0);g()}return new Ry(a,!1);function g(){const _=LZ(e,t,n,r,a,m);if(!_){o.produce(a,f),A=!0;return}const S=_.captureIndices,y=_.matchedRuleId,v=S&&S.length>0?S[0].end>r:!1;if(y===TZ){const R=a.getRule(e);o.produce(a,S[0].start),a=a.withContentNameScopesList(a.nameScopesList),Dl(e,t,n,a,o,R.endCaptures,S),o.produce(a,S[0].end);const D=a;if(a=a.parent,m=D.getAnchorPos(),!v&&D.getEnterPos()===r){a=D,o.produce(a,f),A=!0;return}}else{const R=e.getRule(y);o.produce(a,S[0].start);const D=a,x=R.getName(t.content,S),L=a.contentNameScopesList.pushAttributed(x,e);if(a=a.push(y,r,m,S[0].end===f,null,L,L),R instanceof PE){const b=R;Dl(e,t,n,a,o,b.beginCaptures,S),o.produce(a,S[0].end),m=S[0].end;const O=b.getContentName(t.content,S),F=L.pushAttributed(O,e);if(a=a.withContentNameScopesList(F),b.endHasBackReferences&&(a=a.withEndRule(b.getEndWithResolvedBackReferences(t.content,S))),!v&&D.hasSameRuleAs(a)){a=a.pop(),o.produce(a,f),A=!0;return}}else if(R instanceof gf){const b=R;Dl(e,t,n,a,o,b.beginCaptures,S),o.produce(a,S[0].end),m=S[0].end;const O=b.getContentName(t.content,S),F=L.pushAttributed(O,e);if(a=a.withContentNameScopesList(F),b.whileHasBackReferences&&(a=a.withEndRule(b.getWhileWithResolvedBackReferences(t.content,S))),!v&&D.hasSameRuleAs(a)){a=a.pop(),o.produce(a,f),A=!0;return}}else if(Dl(e,t,n,a,o,R.captures,S),o.produce(a,S[0].end),a=a.pop(),!v){a=a.safePop(),o.produce(a,f),A=!0;return}}S[0].end>r&&(r=S[0].end,n=!1)}}function FZ(e,t,n,r,a,o){let l=a.beginRuleCapturedEOL?0:-1;const d=[];for(let f=a;f;f=f.pop()){const A=f.getRule(e);A instanceof gf&&d.push({rule:A,stack:f})}for(let f=d.pop();f;f=d.pop()){const{ruleScanner:A,findOptions:m}=HZ(f.rule,e,f.stack.endRule,n,r===l),E=A.findNextMatchSync(t,r,m);if(E){if(E.ruleId!==rx){a=f.stack.pop();break}E.captureIndices&&E.captureIndices.length&&(o.produce(f.stack,E.captureIndices[0].start),Dl(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{a=f.stack.pop();break}}return{stack:a,linePos:r,anchorPosition:l,isFirstLine:n}}function LZ(e,t,n,r,a,o){const l=wZ(e,t,n,r,a,o),d=e.getInjections();if(d.length===0)return l;const f=MZ(d,e,t,n,r,a,o);if(!f)return l;if(!l)return f;const A=l.captureIndices[0].start,m=f.captureIndices[0].start;return m<A||f.priorityMatch&&m===A?f:l}function wZ(e,t,n,r,a,o){const l=a.getRule(e),{ruleScanner:d,findOptions:f}=sx(l,e,a.endRule,n,r===o),A=d.findNextMatchSync(t,r,f);return A?{captureIndices:A.captureIndices,matchedRuleId:A.ruleId}:null}function MZ(e,t,n,r,a,o,l){let d=Number.MAX_VALUE,f=null,A,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 y=t.getRule(S.ruleId),{ruleScanner:v,findOptions:R}=sx(y,t,null,r,a===l),D=v.findNextMatchSync(n,a,R);if(!D)continue;const x=D.captureIndices[0].start;if(!(x>=d)&&(d=x,f=D.captureIndices,A=D.ruleId,m=S.priority,d===a))break}return f?{priorityMatch:m===-1,captureIndices:f,matchedRuleId:A}:null}function sx(e,t,n,r,a){return{ruleScanner:e.compileAG(t,n,r,a),findOptions:0}}function HZ(e,t,n,r,a){return{ruleScanner:e.compileWhileAG(t,n,r,a),findOptions:0}}function Dl(e,t,n,r,a,o,l){if(o.length===0)return;const d=t.content,f=Math.min(o.length,l.length),A=[],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(;A.length>0&&A[A.length-1].endPos<=_.start;)a.produceFromScopes(A[A.length-1].scopes,A[A.length-1].endPos),A.pop();if(A.length>0?a.produceFromScopes(A[A.length-1].scopes,_.start):a.produce(r,_.start),g.retokenizeCapturedWithRuleId){const y=g.getName(d,l),v=r.contentNameScopesList.pushAttributed(y,e),R=g.getContentName(d,l),D=v.pushAttributed(R,e),x=r.push(g.retokenizeCapturedWithRuleId,_.start,-1,!1,null,v,D),L=e.createOnigString(d.substring(0,_.end));ax(e,L,n&&_.start===0,_.start,x,a,!1,0),tx(L);continue}const S=g.getName(d,l);if(S!==null){const v=(A.length>0?A[A.length-1].scopes:r.contentNameScopesList).pushAttributed(S,e);A.push(new PZ(v,_.end))}}for(;A.length>0;)a.produceFromScopes(A[A.length-1].scopes,A[A.length-1].endPos),A.pop()}var PZ=class{constructor(e,t){oe(this,"scopes");oe(this,"endPos");this.scopes=e,this.endPos=t}};function UZ(e,t,n,r,a,o,l,d){return new GZ(e,t,n,r,a,o,l,d)}function Dy(e,t,n,r,a){const o=pf(t,_f),l=ux.getCompiledRuleId(n,r,a.repository);for(const d of o)e.push({debugSelector:t,matcher:d.matcher,ruleId:l,grammar:a,priority:d.priority})}function _f(e,t){if(t.length<e.length)return!1;let n=0;return e.every(r=>{for(let a=n;a<t.length;a++)if(kZ(t[a],r))return n=a+1,!0;return!1})}function kZ(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 GZ=class{constructor(e,t,n,r,a,o,l,d){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=d,this._basicScopeAttributesProvider=new BZ(n,r),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=l,this._grammar=Ty(t,null),this._injections=null,this._tokenTypeMatchers=[],a)for(const f of Object.keys(a)){const A=pf(f,_f);for(const m of A)this._tokenTypeMatchers.push({matcher:m.matcher,type:a[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:a=>a===this._rootScopeName?this._grammar:this.getExternalGrammar(a),injections:a=>this._grammarRepository.injections(a)},t=[],n=this._rootScopeName,r=e.lookup(n);if(r){const a=r.injections;if(a)for(let l in a)Dy(t,l,a[l],this,r);const o=this._grammarRepository.injections(n);o&&o.forEach(l=>{const d=this.getExternalGrammar(l);if(d){const f=d.injectionSelector;f&&Dy(t,f,d,this,d)}})}return t.sort((a,o)=>a.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]=Ty(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=ux.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections());let a;if(!t||t===UE.NULL){a=!0;const A=this._basicScopeAttributesProvider.getDefaultAttributes(),m=this.themeProvider.getDefaults(),E=Ws.set(0,A.languageId,A.tokenType,null,m.fontStyle,m.foregroundId,m.backgroundId),g=this.getRule(this._rootId).getName(null,null);let _;g?_=kl.createRootAndLookUpScopeName(g,E,this):_=kl.createRoot("unknown",E),t=new UE(null,this._rootId,-1,-1,!1,null,_,_)}else a=!1,t.reset();e=e+`
|
|
275
|
+
`;const o=this.createOnigString(e),l=o.content.length,d=new VZ(n,e,this._tokenTypeMatchers,this.balancedBracketSelectors),f=ax(this,o,a,0,t,d,!0,r);return tx(o),{lineLength:l,lineTokens:d,ruleStack:f.stack,stoppedEarly:f.stoppedEarly}}};function Ty(e,t){return e=aZ(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 kl=class Pr{constructor(t,n,r){this.parent=t,this.scopePath=n,this.tokenAttributes=r}static fromExtension(t,n){let r=t,a=(t==null?void 0:t.scopePath)??null;for(const o of n)a=vp.push(a,o.scopeNames),r=new Pr(r,a,o.encodedTokenAttributes);return r}static createRoot(t,n){return new Pr(null,new vp(null,t),n)}static createRootAndLookUpScopeName(t,n,r){const a=r.getMetadataForScope(t),o=new vp(null,t),l=r.themeProvider.themeMatch(o),d=Pr.mergeAttributes(n,a,l);return new Pr(null,o,d)}get scopeName(){return this.scopePath.scopeName}toString(){return this.getScopeNames().join(" ")}equals(t){return Pr.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 a=-1,o=0,l=0;return r!==null&&(a=r.fontStyle,o=r.foregroundId,l=r.backgroundId),Ws.set(t,n.languageId,n.tokenType,null,a,o,l)}pushAttributed(t,n){if(t===null)return this;if(t.indexOf(" ")===-1)return Pr._pushAttributed(this,t,n);const r=t.split(/ /g);let a=this;for(const o of r)a=Pr._pushAttributed(a,o,n);return a}static _pushAttributed(t,n,r){const a=r.getMetadataForScope(n),o=t.scopePath.push(n),l=r.themeProvider.themeMatch(o),d=Pr.mergeAttributes(t.tokenAttributes,a,l);return new Pr(t,o,d)}getScopeNames(){return this.scopePath.getSegments()}getExtensionIfDefined(t){var a;const n=[];let r=this;for(;r&&r!==t;)n.push({encodedTokenAttributes:r.tokenAttributes,scopeNames:r.scopePath.getExtensionIfDefined(((a=r.parent)==null?void 0:a.scopePath)??null)}),r=r.parent;return r===t?n.reverse():void 0}},Ar,UE=(Ar=class{constructor(t,n,r,a,o,l,d,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=d,this.contentNameScopesList=f,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=r,this._anchorPos=a}equals(t){return t===null?!1:Ar._equals(this,t)}static _equals(t,n){return t===n?!0:this._structuralEquals(t,n)?kl.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(){Ar._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(t,n,r,a,o,l,d){return new Ar(this,t,n,r,a,o,l,d)}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,a;return this.parent&&(n=this.parent._writeString(t,n)),t[n++]=`(${this.ruleId}, ${(r=this.nameScopesList)==null?void 0:r.toString()}, ${(a=this.contentNameScopesList)==null?void 0:a.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 Ar(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=kl.fromExtension((t==null?void 0:t.nameScopesList)??null,n.nameScopesList);return new Ar(t,n.ruleId,n.enterPos??-1,n.anchorPos??-1,n.beginRuleCapturedEOL,n.endRule,r,kl.fromExtension(r,n.contentNameScopesList))}},oe(Ar,"NULL",new Ar(null,0,0,0,!1,null,null,null)),Ar),jZ=class{constructor(e,t){oe(this,"balancedBracketScopes");oe(this,"unbalancedBracketScopes");oe(this,"allowAny",!1);this.balancedBracketScopes=e.flatMap(n=>n==="*"?(this.allowAny=!0,[]):pf(n,_f).map(r=>r.matcher)),this.unbalancedBracketScopes=t.flatMap(n=>pf(n,_f).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}},VZ=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 a=(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 d of this._tokenTypeOverrides)d.matcher(l)&&(a=Ws.set(a,0,d.type,null,-1,0,0));this.balancedBracketSelectors&&(o=this.balancedBracketSelectors.match(l))}if(o&&(a=Ws.set(a,0,8,o,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===a){this._lastTokenEndIndex=t;return}this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(a),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,a=this._binaryTokens.length;r<a;r++)n[r]=this._binaryTokens[r];return n}},zZ=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,a){if(!this._grammars.has(e)){let o=this._rawGrammars.get(e);if(!o)return null;this._grammars.set(e,UZ(e,o,t,n,r,a,this,this._onigLib))}return this._grammars.get(e)}},KZ=class{constructor(t){oe(this,"_options");oe(this,"_syncRegistry");oe(this,"_ensureGrammarCache");this._options=t,this._syncRegistry=new zZ(mf.createFromRawTheme(t.theme,t.colorMap),t.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(t,n){this._syncRegistry.setTheme(mf.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 jZ(r.balancedBracketSelectors||[],r.unbalancedBracketSelectors||[]))}loadGrammar(t){return this._loadGrammar(t,0,null,null,null)}_loadGrammar(t,n,r,a,o){const l=new NZ(this._syncRegistry,t);for(;l.Q.length>0;)l.Q.map(d=>this._loadSingleGrammar(d.scopeName)),l.processQueue();return this._grammarForScopeName(t,n,r,a,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,a=null){return this._syncRegistry.addGrammar(t,n),this._grammarForScopeName(t.scopeName,r,a)}_grammarForScopeName(t,n=0,r=null,a=null,o=null){return this._syncRegistry.grammarForScopeName(t,n,r,a,o)}},kE=UE.NULL;const YZ=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"];class Uc{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}}Uc.prototype.normal={};Uc.prototype.property={};Uc.prototype.space=void 0;function ox(e,t){const n={},r={};for(const a of e)Object.assign(n,a.property),Object.assign(r,a.normal);return new Uc(n,r,t)}function GE(e){return e.toLowerCase()}class Fn{constructor(t,n){this.attribute=n,this.property=t}}Fn.prototype.attribute="";Fn.prototype.booleanish=!1;Fn.prototype.boolean=!1;Fn.prototype.commaOrSpaceSeparated=!1;Fn.prototype.commaSeparated=!1;Fn.prototype.defined=!1;Fn.prototype.mustUseProperty=!1;Fn.prototype.number=!1;Fn.prototype.overloadedBoolean=!1;Fn.prototype.property="";Fn.prototype.spaceSeparated=!1;Fn.prototype.space=void 0;let ZZ=0;const We=Oa(),zt=Oa(),lx=Oa(),ge=Oa(),Nt=Oa(),Ms=Oa(),jn=Oa();function Oa(){return 2**++ZZ}const jE=Object.freeze(Object.defineProperty({__proto__:null,boolean:We,booleanish:zt,commaOrSpaceSeparated:jn,commaSeparated:Ms,number:ge,overloadedBoolean:lx,spaceSeparated:Nt},Symbol.toStringTag,{value:"Module"})),Dp=Object.keys(jE);class D4 extends Fn{constructor(t,n,r,a){let o=-1;if(super(t,n),xy(this,"space",a),typeof r=="number")for(;++o<Dp.length;){const l=Dp[o];xy(this,Dp[o],(r&jE[l])===jE[l])}}}D4.prototype.defined=!0;function xy(e,t,n){n&&(e[t]=n)}function lo(e){const t={},n={};for(const[r,a]of Object.entries(e.properties)){const o=new D4(r,e.transform(e.attributes||{},r),a,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(o.mustUseProperty=!0),t[r]=o,n[GE(r)]=r,n[GE(o.attribute)]=r}return new Uc(t,n,e.space)}const cx=lo({properties:{ariaActiveDescendant:null,ariaAtomic:zt,ariaAutoComplete:null,ariaBusy:zt,ariaChecked:zt,ariaColCount:ge,ariaColIndex:ge,ariaColSpan:ge,ariaControls:Nt,ariaCurrent:null,ariaDescribedBy:Nt,ariaDetails:null,ariaDisabled:zt,ariaDropEffect:Nt,ariaErrorMessage:null,ariaExpanded:zt,ariaFlowTo:Nt,ariaGrabbed:zt,ariaHasPopup:null,ariaHidden:zt,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Nt,ariaLevel:ge,ariaLive:null,ariaModal:zt,ariaMultiLine:zt,ariaMultiSelectable:zt,ariaOrientation:null,ariaOwns:Nt,ariaPlaceholder:null,ariaPosInSet:ge,ariaPressed:zt,ariaReadOnly:zt,ariaRelevant:null,ariaRequired:zt,ariaRoleDescription:Nt,ariaRowCount:ge,ariaRowIndex:ge,ariaRowSpan:ge,ariaSelected:zt,ariaSetSize:ge,ariaSort:null,ariaValueMax:ge,ariaValueMin:ge,ariaValueNow:ge,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function dx(e,t){return t in e?e[t]:t}function fx(e,t){return dx(e,t.toLowerCase())}const WZ=lo({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Ms,acceptCharset:Nt,accessKey:Nt,action:null,allow:null,allowFullScreen:We,allowPaymentRequest:We,allowUserMedia:We,alt:null,as:null,async:We,autoCapitalize:null,autoComplete:Nt,autoFocus:We,autoPlay:We,blocking:Nt,capture:null,charSet:null,checked:We,cite:null,className:Nt,cols:ge,colSpan:null,content:null,contentEditable:zt,controls:We,controlsList:Nt,coords:ge|Ms,crossOrigin:null,data:null,dateTime:null,decoding:null,default:We,defer:We,dir:null,dirName:null,disabled:We,download:lx,draggable:zt,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:We,formTarget:null,headers:Nt,height:ge,hidden:We,high:ge,href:null,hrefLang:null,htmlFor:Nt,httpEquiv:Nt,id:null,imageSizes:null,imageSrcSet:null,inert:We,inputMode:null,integrity:null,is:null,isMap:We,itemId:null,itemProp:Nt,itemRef:Nt,itemScope:We,itemType:Nt,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:We,low:ge,manifest:null,max:null,maxLength:ge,media:null,method:null,min:null,minLength:ge,multiple:We,muted:We,name:null,nonce:null,noModule:We,noValidate:We,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:We,optimum:ge,pattern:null,ping:Nt,placeholder:null,playsInline:We,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:We,referrerPolicy:null,rel:Nt,required:We,reversed:We,rows:ge,rowSpan:ge,sandbox:Nt,scope:null,scoped:We,seamless:We,selected:We,shadowRootClonable:We,shadowRootDelegatesFocus:We,shadowRootMode:null,shape:null,size:ge,sizes:null,slot:null,span:ge,spellCheck:zt,src:null,srcDoc:null,srcLang:null,srcSet:null,start:ge,step:null,style:null,tabIndex:ge,target:null,title:null,translate:null,type:null,typeMustMatch:We,useMap:null,value:zt,width:ge,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Nt,axis:null,background:null,bgColor:null,border:ge,borderColor:null,bottomMargin:ge,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:We,declare:We,event:null,face:null,frame:null,frameBorder:null,hSpace:ge,leftMargin:ge,link:null,longDesc:null,lowSrc:null,marginHeight:ge,marginWidth:ge,noResize:We,noHref:We,noShade:We,noWrap:We,object:null,profile:null,prompt:null,rev:null,rightMargin:ge,rules:null,scheme:null,scrolling:zt,standby:null,summary:null,text:null,topMargin:ge,valueType:null,version:null,vAlign:null,vLink:null,vSpace:ge,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:We,disableRemotePlayback:We,prefix:null,property:null,results:ge,security:null,unselectable:null},space:"html",transform:fx}),$Z=lo({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:jn,accentHeight:ge,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:ge,amplitude:ge,arabicForm:null,ascent:ge,attributeName:null,attributeType:null,azimuth:ge,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:ge,by:null,calcMode:null,capHeight:ge,className:Nt,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:ge,diffuseConstant:ge,direction:null,display:null,dur:null,divisor:ge,dominantBaseline:null,download:We,dx:null,dy:null,edgeMode:null,editable:null,elevation:ge,enableBackground:null,end:null,event:null,exponent:ge,externalResourcesRequired:null,fill:null,fillOpacity:ge,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Ms,g2:Ms,glyphName:Ms,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:ge,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:ge,horizOriginX:ge,horizOriginY:ge,id:null,ideographic:ge,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:ge,k:ge,k1:ge,k2:ge,k3:ge,k4:ge,kernelMatrix:jn,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:ge,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:ge,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:ge,overlineThickness:ge,paintOrder:null,panose1:null,path:null,pathLength:ge,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Nt,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:ge,pointsAtY:ge,pointsAtZ:ge,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:jn,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:jn,rev:jn,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:jn,requiredFeatures:jn,requiredFonts:jn,requiredFormats:jn,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:ge,specularExponent:ge,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:ge,strikethroughThickness:ge,string:null,stroke:null,strokeDashArray:jn,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:ge,strokeOpacity:ge,strokeWidth:null,style:null,surfaceScale:ge,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:jn,tabIndex:ge,tableValues:null,target:null,targetX:ge,targetY:ge,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:jn,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:ge,underlineThickness:ge,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:ge,values:null,vAlphabetic:ge,vMathematical:ge,vectorEffect:null,vHanging:ge,vIdeographic:ge,version:null,vertAdvY:ge,vertOriginX:ge,vertOriginY:ge,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:ge,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:dx}),Ax=lo({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()}}),hx=lo({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:fx}),mx=lo({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),qZ=/[A-Z]/g,by=/-[a-z]/g,QZ=/^data[-\w.:]+$/i;function XZ(e,t){const n=GE(t);let r=t,a=Fn;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&QZ.test(t)){if(t.charAt(4)==="-"){const o=t.slice(5).replace(by,eW);r="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=t.slice(4);if(!by.test(o)){let l=o.replace(qZ,JZ);l.charAt(0)!=="-"&&(l="-"+l),t="data"+l}}a=D4}return new a(r,t)}function JZ(e){return"-"+e.toLowerCase()}function eW(e){return e.charAt(1).toUpperCase()}const tW=ox([cx,WZ,Ax,hx,mx],"html"),px=ox([cx,$Z,Ax,hx,mx],"svg"),By={}.hasOwnProperty;function nW(e,t){const n=t||{};function r(a,...o){let l=r.invalid;const d=r.handlers;if(a&&By.call(a,e)){const f=String(a[e]);l=By.call(d,f)?d[f]:r.unknown}if(l)return l.call(this,a,...o)}return r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r}const rW=/["&'<>`]/g,uW=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,iW=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,aW=/[|\\{}()[\]^$+*?.]/g,Oy=new WeakMap;function sW(e,t){if(e=e.replace(t.subset?oW(t.subset):rW,r),t.subset||t.escapeOnly)return e;return e.replace(uW,n).replace(iW,r);function n(a,o,l){return t.format((a.charCodeAt(0)-55296)*1024+a.charCodeAt(1)-56320+65536,l.charCodeAt(o+2),t)}function r(a,o,l){return t.format(a.charCodeAt(0),l.charCodeAt(o+1),t)}}function oW(e){let t=Oy.get(e);return t||(t=lW(e),Oy.set(e,t)),t}function lW(e){const t=[];let n=-1;for(;++n<e.length;)t.push(e[n].replace(aW,"\\$&"));return new RegExp("(?:"+t.join("|")+")","g")}const cW=/[\dA-Fa-f]/;function dW(e,t,n){const r="&#x"+e.toString(16).toUpperCase();return n&&t&&!cW.test(String.fromCharCode(t))?r:r+";"}const fW=/\d/;function AW(e,t,n){const r="&#"+String(e);return n&&t&&!fW.test(String.fromCharCode(t))?r:r+";"}const hW=["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"],Tp={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:"€"},mW=["cent","copy","divide","gt","lt","not","para","times"],Ex={}.hasOwnProperty,VE={};let p0;for(p0 in Tp)Ex.call(Tp,p0)&&(VE[Tp[p0]]=p0);const pW=/[^\dA-Za-z]/;function EW(e,t,n,r){const a=String.fromCharCode(e);if(Ex.call(VE,a)){const o=VE[a],l="&"+o;return n&&hW.includes(o)&&!mW.includes(o)&&(!r||t&&t!==61&&pW.test(String.fromCharCode(t)))?l:l+";"}return""}function gW(e,t,n){let r=dW(e,t,n.omitOptionalSemicolons),a;if((n.useNamedReferences||n.useShortestReferences)&&(a=EW(e,t,n.omitOptionalSemicolons,n.attribute)),(n.useShortestReferences||!a)&&n.useShortestReferences){const o=AW(e,t,n.omitOptionalSemicolons);o.length<r.length&&(r=o)}return a&&(!n.useShortestReferences||a.length<r.length)?a:r}function Hs(e,t){return sW(e,Object.assign({format:gW},t))}const _W=/^>|^->|<!--|-->|--!>|<!-$/g,NW=[">"],IW=["<",">"];function SW(e,t,n,r){return r.settings.bogusComments?"<?"+Hs(e.value,Object.assign({},r.settings.characterReferences,{subset:NW}))+">":"<!--"+e.value.replace(_W,a)+"-->";function a(o){return Hs(o,Object.assign({},r.settings.characterReferences,{subset:IW}))}}function CW(e,t,n,r){return"<!"+(r.settings.upperDoctype?"DOCTYPE":"doctype")+(r.settings.tightDoctype?"":" ")+"html>"}function Fy(e,t){const n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let r=0,a=n.indexOf(t);for(;a!==-1;)r++,a=n.indexOf(t,a+t.length);return r}function yW(e,t){const n=t||{};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}function vW(e){return e.join(" ").trim()}const RW=/[ \t\n\f\r]/g;function T4(e){return typeof e=="object"?e.type==="text"?Ly(e.value):!1:Ly(e)}function Ly(e){return e.replace(RW,"")===""}const $t=_x(1),gx=_x(-1),DW=[];function _x(e){return t;function t(n,r,a){const o=n?n.children:DW;let l=(r||0)+e,d=o[l];if(!a)for(;d&&T4(d);)l+=e,d=o[l];return d}}const TW={}.hasOwnProperty;function Nx(e){return t;function t(n,r,a){return TW.call(e,n.tagName)&&e[n.tagName](n,r,a)}}const x4=Nx({body:bW,caption:xp,colgroup:xp,dd:LW,dt:FW,head:xp,html:xW,li:OW,optgroup:wW,option:MW,p:BW,rp:wy,rt:wy,tbody:PW,td:My,tfoot:UW,th:My,thead:HW,tr:kW});function xp(e,t,n){const r=$t(n,t,!0);return!r||r.type!=="comment"&&!(r.type==="text"&&T4(r.value.charAt(0)))}function xW(e,t,n){const r=$t(n,t);return!r||r.type!=="comment"}function bW(e,t,n){const r=$t(n,t);return!r||r.type!=="comment"}function BW(e,t,n){const r=$t(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 OW(e,t,n){const r=$t(n,t);return!r||r.type==="element"&&r.tagName==="li"}function FW(e,t,n){const r=$t(n,t);return!!(r&&r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd"))}function LW(e,t,n){const r=$t(n,t);return!r||r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd")}function wy(e,t,n){const r=$t(n,t);return!r||r.type==="element"&&(r.tagName==="rp"||r.tagName==="rt")}function wW(e,t,n){const r=$t(n,t);return!r||r.type==="element"&&r.tagName==="optgroup"}function MW(e,t,n){const r=$t(n,t);return!r||r.type==="element"&&(r.tagName==="option"||r.tagName==="optgroup")}function HW(e,t,n){const r=$t(n,t);return!!(r&&r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot"))}function PW(e,t,n){const r=$t(n,t);return!r||r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot")}function UW(e,t,n){return!$t(n,t)}function kW(e,t,n){const r=$t(n,t);return!r||r.type==="element"&&r.tagName==="tr"}function My(e,t,n){const r=$t(n,t);return!r||r.type==="element"&&(r.tagName==="td"||r.tagName==="th")}const GW=Nx({body:zW,colgroup:KW,head:VW,html:jW,tbody:YW});function jW(e){const t=$t(e,-1);return!t||t.type!=="comment"}function VW(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 zW(e){const t=$t(e,-1,!0);return!t||t.type!=="comment"&&!(t.type==="text"&&T4(t.value.charAt(0)))&&!(t.type==="element"&&(t.tagName==="meta"||t.tagName==="link"||t.tagName==="script"||t.tagName==="style"||t.tagName==="template"))}function KW(e,t,n){const r=gx(n,t),a=$t(e,-1,!0);return n&&r&&r.type==="element"&&r.tagName==="colgroup"&&x4(r,n.children.indexOf(r),n)?!1:!!(a&&a.type==="element"&&a.tagName==="col")}function YW(e,t,n){const r=gx(n,t),a=$t(e,-1);return n&&r&&r.type==="element"&&(r.tagName==="thead"||r.tagName==="tbody")&&x4(r,n.children.indexOf(r),n)?!1:!!(a&&a.type==="element"&&a.tagName==="tr")}const E0={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 ZW(e,t,n,r){const a=r.schema,o=a.space==="svg"?!1:r.settings.omitOptionalTags;let l=a.space==="svg"?r.settings.closeEmptyElements:r.settings.voids.includes(e.tagName.toLowerCase());const d=[];let f;a.space==="html"&&e.tagName==="svg"&&(r.schema=px);const A=WW(r,e.properties),m=r.all(a.space==="html"&&e.tagName==="template"?e.content:e);return r.schema=a,m&&(l=!1),(A||!o||!GW(e,t,n))&&(d.push("<",e.tagName,A?" "+A:""),l&&(a.space==="svg"||r.settings.closeSelfClosing)&&(f=A.charAt(A.length-1),(!r.settings.tightSelfClosing||f==="/"||f&&f!=='"'&&f!=="'")&&d.push(" "),d.push("/")),d.push(">")),d.push(m),!l&&(!o||!x4(e,t,n))&&d.push("</"+e.tagName+">"),d.join("")}function WW(e,t){const n=[];let r=-1,a;if(t){for(a in t)if(t[a]!==null&&t[a]!==void 0){const o=$W(e,a,t[a]);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 $W(e,t,n){const r=XZ(e.schema,t),a=e.settings.allowParseErrors&&e.schema.space==="html"?0:1,o=e.settings.allowDangerousCharacters?0:1;let l=e.quote,d;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=Hs(r.attribute,Object.assign({},e.settings.characterReferences,{subset:E0.name[a][o]}));return n===!0||(n=Array.isArray(n)?(r.commaSeparated?yW:vW)(n,{padLeft:!e.settings.tightCommaSeparatedLists}):String(n),e.settings.collapseEmptyAttributes&&!n)?f:(e.settings.preferUnquoted&&(d=Hs(n,Object.assign({},e.settings.characterReferences,{attribute:!0,subset:E0.unquoted[a][o]}))),d!==n&&(e.settings.quoteSmart&&Fy(n,l)>Fy(n,e.alternative)&&(l=e.alternative),d=l+Hs(n,Object.assign({},e.settings.characterReferences,{subset:(l==="'"?E0.single:E0.double)[a][o],attribute:!0}))+l),f+(d&&"="+d))}const qW=["<","&"];function Ix(e,t,n,r){return n&&n.type==="element"&&(n.tagName==="script"||n.tagName==="style")?e.value:Hs(e.value,Object.assign({},r.settings.characterReferences,{subset:qW}))}function QW(e,t,n,r){return r.settings.allowDangerousHtml?e.value:Ix(e,t,n,r)}function XW(e,t,n,r){return r.all(e)}const JW=nW("type",{invalid:e$,unknown:t$,handlers:{comment:SW,doctype:CW,element:ZW,raw:QW,root:XW,text:Ix}});function e$(e){throw new Error("Expected node, not `"+e+"`")}function t$(e){const t=e;throw new Error("Cannot compile unknown node `"+t.type+"`")}const n$={},r$={},u$=[];function i$(e,t){const n=n$,r=n.quote||'"',a=r==='"'?"'":'"';if(r!=='"'&&r!=="'")throw new Error("Invalid quote `"+r+"`, expected `'` or `\"`");return{one:a$,all:s$,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||YZ,characterReferences:n.characterReferences||r$,closeSelfClosing:n.closeSelfClosing||!1,closeEmptyElements:n.closeEmptyElements||!1},schema:n.space==="svg"?px:tW,quote:r,alternative:a}.one(Array.isArray(e)?{type:"root",children:e}:e,void 0,void 0)}function a$(e,t,n){return JW(e,t,n,this)}function s$(e){const t=[],n=e&&e.children||u$;let r=-1;for(;++r<n.length;)t[r]=this.one(n[r],r,e);return t.join("")}function o$(e){return Array.isArray(e)?e:[e]}function iA(e,t=!1){var o;const n=e.split(/(\r?\n)/g);let r=0;const a=[];for(let l=0;l<n.length;l+=2){const d=t?n[l]+(n[l+1]||""):n[l];a.push([d,r]),r+=n[l].length,r+=((o=n[l+1])==null?void 0:o.length)||0}return a}function b4(e){return!e||["plaintext","txt","text","plain"].includes(e)}function Sx(e){return e==="ansi"||b4(e)}function B4(e){return e==="none"}function Cx(e){return B4(e)}function yx(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 a of n)a&&!e.properties.class.includes(a)&&e.properties.class.push(a);return e}function l$(e,t){let n=0;const r=[];for(const a of t)a>n&&r.push({...e,content:e.content.slice(n,a),offset:e.offset+n}),n=a;return n<e.content.length&&r.push({...e,content:e.content.slice(n),offset:e.offset+n}),r}function c$(e,t){const n=Array.from(t instanceof Set?t:new Set(t)).sort((r,a)=>r-a);return n.length?e.map(r=>r.flatMap(a=>{const o=n.filter(l=>a.offset<l&&l<a.offset+a.content.length).map(l=>l-a.offset).sort((l,d)=>l-d);return o.length?l$(a,o):a})):e}async function vx(e){return Promise.resolve(typeof e=="function"?e():e).then(t=>t.default||t)}function Nf(e,t){const n=typeof e=="string"?{}:{...e.colorReplacements},r=typeof e=="string"?e:e.name;for(const[a,o]of Object.entries((t==null?void 0:t.colorReplacements)||{}))typeof o=="string"?n[a]=o:a===r&&Object.assign(n,o);return n}function ma(e,t){return e&&((t==null?void 0:t[e==null?void 0:e.toLowerCase()])||e)}function Rx(e){const t={};return e.color&&(t.color=e.color),e.bgColor&&(t["background-color"]=e.bgColor),e.fontStyle&&(e.fontStyle&vu.Italic&&(t["font-style"]="italic"),e.fontStyle&vu.Bold&&(t["font-weight"]="bold"),e.fontStyle&vu.Underline&&(t["text-decoration"]="underline")),t}function d$(e){return typeof e=="string"?e:Object.entries(e).map(([t,n])=>`${t}:${n}`).join(";")}function f$(e){const t=iA(e,!0).map(([a])=>a);function n(a){if(a===e.length)return{line:t.length-1,character:t[t.length-1].length};let o=a,l=0;for(const d of t){if(o<d.length)break;o-=d.length,l++}return{line:l,character:o}}function r(a,o){let l=0;for(let d=0;d<a;d++)l+=t[d].length;return l+=o,l}return{lines:t,indexToPos:n,posToIndex:r}}class yn extends Error{constructor(t){super(t),this.name="ShikiError"}}const Dx=new WeakMap;function aA(e,t){Dx.set(e,t)}function hc(e){return Dx.get(e)}class co{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,a]=t;this.lang=r,this._stacks={[a]: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 co(Object.fromEntries(o$(n).map(r=>[r,kE])),t)}getInternalStack(t=this.theme){return this._stacks[t]}get scopes(){return Hy(this._stacks[this.theme])}getScopes(t=this.theme){return Hy(this._stacks[t])}toJSON(){return{lang:this.lang,theme:this.theme,themes:this.themes,scopes:this.scopes}}}function Hy(e){const t=[],n=new Set;function r(a){var l;if(n.has(a))return;n.add(a);const o=(l=a==null?void 0:a.nameScopesList)==null?void 0:l.scopeName;o&&t.push(o),a.parent&&r(a.parent)}return r(e),t}function A$(e,t){if(!(e instanceof co))throw new yn("Invalid grammar state");return e.getInternalStack(t)}function h$(){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 yn(`Invalid decoration offset: ${l}. Code length: ${n.source.length}`);return{...a.indexToPos(l),offset:l}}else{const d=a.lines[l.line];if(d===void 0)throw new yn(`Invalid decoration position ${JSON.stringify(l)}. Lines length: ${a.lines.length}`);if(l.character<0||l.character>d.length)throw new yn(`Invalid decoration position ${JSON.stringify(l)}. Line ${l.line} length: ${d.length}`);return{...l,offset:a.posToIndex(l.line,l.character)}}};const a=f$(n.source),o=(n.options.decorations||[]).map(l=>({...l,start:r(l.start),end:r(l.end)}));m$(o),e.set(n.meta,{decorations:o,converter:a,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 a=t(this).decorations.flatMap(d=>[d.start.offset,d.end.offset]);return c$(n,a)},code(n){var m;if(!((m=this.options.decorations)!=null&&m.length))return;const r=t(this),a=Array.from(n.children).filter(E=>E.type==="element"&&E.tagName==="span");if(a.length!==r.converter.lines.length)throw new yn(`Number of lines in code element (${a.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 y=a[E];let v="",R=-1,D=-1;if(g===0&&(R=0),_===0&&(D=0),_===Number.POSITIVE_INFINITY&&(D=y.children.length),R===-1||D===-1)for(let L=0;L<y.children.length;L++)v+=Tx(y.children[L]),R===-1&&v.length===g&&(R=L+1),D===-1&&v.length===_&&(D=L+1);if(R===-1)throw new yn(`Failed to find start index for decoration ${JSON.stringify(S.start)}`);if(D===-1)throw new yn(`Failed to find end index for decoration ${JSON.stringify(S.end)}`);const x=y.children.slice(R,D);if(!S.alwaysWrap&&x.length===y.children.length)d(y,S,"line");else if(!S.alwaysWrap&&x.length===1&&x[0].type==="element")d(x[0],S,"token");else{const L={type:"element",tagName:"span",properties:{},children:x};d(L,S,"wrapper"),y.children.splice(R,x.length,L)}}function l(E,g){a[E]=d(a[E],g,"line")}function d(E,g,_){var v;const S=g.properties||{},y=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&&yx(E,g.properties.class),E=y(E,_)||E,E}const f=[],A=r.decorations.sort((E,g)=>g.start.offset-E.start.offset);for(const E of A){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 m$(e){for(let t=0;t<e.length;t++){const n=e[t];if(n.start.offset>n.end.offset)throw new yn(`Invalid decoration range: ${JSON.stringify(n.start)} - ${JSON.stringify(n.end)}`);for(let r=t+1;r<e.length;r++){const a=e[r],o=n.start.offset<a.start.offset&&a.start.offset<n.end.offset,l=n.start.offset<a.end.offset&&a.end.offset<n.end.offset,d=a.start.offset<n.start.offset&&n.start.offset<a.end.offset,f=a.start.offset<n.end.offset&&n.end.offset<a.end.offset;if(o||l||d||f){if(l&&l||d&&f)continue;throw new yn(`Decorations ${JSON.stringify(n.start)} and ${JSON.stringify(a.start)} intersect.`)}}}}function Tx(e){return e.type==="text"?e.value:e.type==="element"?e.children.map(Tx).join(""):""}const p$=[h$()];function If(e){return[...e.transformers||[],...p$]}var pa=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],bp={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",9:"strikethrough"};function E$(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 Py(e,t){let n=1;const r=e[t+n++];let a;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))&&(a={type:"rgb",rgb:o})}else if(r==="5"){const o=Number.parseInt(e[t+n]);Number.isNaN(o)||(a={type:"table",index:Number(o)})}return[n,a]}function g$(e){const t=[];for(let n=0;n<e.length;n++){const r=e[n],a=Number.parseInt(r);if(!Number.isNaN(a))if(a===0)t.push({type:"resetAll"});else if(a<=9)bp[a]&&t.push({type:"setDecoration",value:bp[a]});else if(a<=29){const o=bp[a-20];o&&t.push({type:"resetDecoration",value:o})}else if(a<=37)t.push({type:"setForegroundColor",value:{type:"named",name:pa[a-30]}});else if(a===38){const[o,l]=Py(e,n);l&&t.push({type:"setForegroundColor",value:l}),n+=o}else if(a===39)t.push({type:"resetForegroundColor"});else if(a<=47)t.push({type:"setBackgroundColor",value:{type:"named",name:pa[a-40]}});else if(a===48){const[o,l]=Py(e,n);l&&t.push({type:"setBackgroundColor",value:l}),n+=o}else a===49?t.push({type:"resetBackgroundColor"}):a>=90&&a<=97?t.push({type:"setForegroundColor",value:{type:"named",name:pa[a-90+8]}}):a>=100&&a<=107&&t.push({type:"setBackgroundColor",value:{type:"named",name:pa[a-100+8]}})}return t}function _$(){let e=null,t=null,n=new Set;return{parse(r){const a=[];let o=0;do{const l=E$(r,o),d=l.sequence?r.substring(o,l.startPosition):r.substring(o);if(d.length>0&&a.push({value:d,foreground:e,background:t,decorations:new Set(n)}),l.sequence){const f=g$(l.sequence);for(const A of f)A.type==="resetAll"?(e=null,t=null,n.clear()):A.type==="resetForegroundColor"?e=null:A.type==="resetBackgroundColor"?t=null:A.type==="resetDecoration"&&n.delete(A.value);for(const A of f)A.type==="setForegroundColor"?e=A.value:A.type==="setBackgroundColor"?t=A.value:A.type==="setDecoration"&&n.add(A.value)}o=l.position}while(o<r.length);return a}}}var N$={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 I$(e=N$){function t(d){return e[d]}function n(d){return`#${d.map(f=>Math.max(0,Math.min(f,255)).toString(16).padStart(2,"0")).join("")}`}let r;function a(){if(r)return r;r=[];for(let A=0;A<pa.length;A++)r.push(t(pa[A]));let d=[0,95,135,175,215,255];for(let A=0;A<6;A++)for(let m=0;m<6;m++)for(let E=0;E<6;E++)r.push(n([d[A],d[m],d[E]]));let f=8;for(let A=0;A<24;A++,f+=10)r.push(n([f,f,f]));return r}function o(d){return a()[d]}function l(d){switch(d.type){case"named":return t(d.name);case"rgb":return n(d.rgb);case"table":return o(d.index)}}return{value:l}}function S$(e,t,n){const r=Nf(e,n),a=iA(t),o=I$(Object.fromEntries(pa.map(d=>{var f;return[d,(f=e.colors)==null?void 0:f[`terminal.ansi${d[0].toUpperCase()}${d.substring(1)}`]]}))),l=_$();return a.map(d=>l.parse(d[0]).map(f=>{let A,m;f.decorations.has("reverse")?(A=f.background?o.value(f.background):e.bg,m=f.foreground?o.value(f.foreground):e.fg):(A=f.foreground?o.value(f.foreground):e.fg,m=f.background?o.value(f.background):void 0),A=ma(A,r),m=ma(m,r),f.decorations.has("dim")&&(A=C$(A));let E=vu.None;return f.decorations.has("bold")&&(E|=vu.Bold),f.decorations.has("italic")&&(E|=vu.Italic),f.decorations.has("underline")&&(E|=vu.Underline),{content:f.value,offset:d[1],color:A,bgColor:m,fontStyle:E}}))}function C$(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 O4(e,t,n={}){const{lang:r="text",theme:a=e.getLoadedThemes()[0]}=n;if(b4(r)||B4(a))return iA(t).map(f=>[{content:f[0],offset:f[1]}]);const{theme:o,colorMap:l}=e.setTheme(a);if(r==="ansi")return S$(o,t,n);const d=e.getLanguage(r);if(n.grammarState){if(n.grammarState.lang!==d.name)throw new xu(`Grammar state language "${n.grammarState.lang}" does not match highlight language "${d.name}"`);if(!n.grammarState.themes.includes(o.name))throw new xu(`Grammar state themes "${n.grammarState.themes}" do not contain highlight theme "${o.name}"`)}return v$(t,d,o,l,n)}function y$(...e){if(e.length===2)return hc(e[1]);const[t,n,r={}]=e,{lang:a="text",theme:o=t.getLoadedThemes()[0]}=r;if(b4(a)||B4(o))throw new xu("Plain language does not have grammar state");if(a==="ansi")throw new xu("ANSI language does not have grammar state");const{theme:l,colorMap:d}=t.setTheme(o),f=t.getLanguage(a);return new co(Sf(n,f,l,d,r).stateStack,f.name,l.name)}function v$(e,t,n,r,a){const o=Sf(e,t,n,r,a),l=new co(Sf(e,t,n,r,a).stateStack,t.name,n.name);return aA(o.tokens,l),o.tokens}function Sf(e,t,n,r,a){const o=Nf(n,a),{tokenizeMaxLineLength:l=0,tokenizeTimeLimit:d=500}=a,f=iA(e);let A=a.grammarState?A$(a.grammarState,n.name)??kE:a.grammarContextCode!=null?Sf(a.grammarContextCode,t,n,r,{...a,grammarState:void 0,grammarContextCode:void 0}).stateStack:kE,m=[];const E=[];for(let g=0,_=f.length;g<_;g++){const[S,y]=f[g];if(S===""){m=[],E.push([]);continue}if(l>0&&S.length>=l){m=[],E.push([{content:S,offset:y,color:"",fontStyle:0}]);continue}let v,R,D;a.includeExplanation&&(v=t.tokenizeLine(S,A),R=v.tokens,D=0);const x=t.tokenizeLine2(S,A,d),L=x.tokens.length/2;for(let b=0;b<L;b++){const O=x.tokens[2*b],F=b+1<L?x.tokens[2*b+2]:S.length;if(O===F)continue;const j=x.tokens[2*b+1],G=ma(r[Ws.getForeground(j)],o),K=Ws.getFontStyle(j),Ae={content:S.substring(O,F),offset:y+O,color:G,fontStyle:K};if(a.includeExplanation){const se=[];if(a.includeExplanation!=="scopeName")for(const $ of n.settings){let J;switch(typeof $.scope){case"string":J=$.scope.split(/,/).map(k=>k.trim());break;case"object":J=$.scope;break;default:continue}se.push({settings:$,selectors:J.map(k=>k.split(/ /))})}Ae.explanation=[];let de=0;for(;O+de<F;){const $=R[D],J=S.substring($.startIndex,$.endIndex);de+=J.length,Ae.explanation.push({content:J,scopes:a.includeExplanation==="scopeName"?R$($.scopes):D$(se,$.scopes)}),D+=1}}m.push(Ae)}E.push(m),m=[],A=x.ruleStack}return{tokens:E,stateStack:A}}function R$(e){return e.map(t=>({scopeName:t}))}function D$(e,t){const n=[];for(let r=0,a=t.length;r<a;r++){const o=t[r];n[r]={scopeName:o,themeMatches:x$(e,o,t.slice(0,r))}}return n}function Uy(e,t){return e===t||t.substring(0,e.length)===e&&t[e.length]==="."}function T$(e,t,n){if(!Uy(e[e.length-1],t))return!1;let r=e.length-2,a=n.length-1;for(;r>=0&&a>=0;)Uy(e[r],n[a])&&(r-=1),a-=1;return r===-1}function x$(e,t,n){const r=[];for(const{selectors:a,settings:o}of e)for(const l of a)if(T$(l,t,n)){r.push(o);break}return r}function xx(e,t,n){const r=Object.entries(n.themes).filter(f=>f[1]).map(f=>({color:f[0],theme:f[1]})),a=r.map(f=>{const A=O4(e,t,{...n,theme:f.theme}),m=hc(A),E=typeof f.theme=="string"?f.theme:f.theme.name;return{tokens:A,state:m,theme:E}}),o=b$(...a.map(f=>f.tokens)),l=o[0].map((f,A)=>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:y,explanation:v,offset:R,...D}=_[A][E];g.variants[r[S].color]=D}),g})),d=a[0].state?new co(Object.fromEntries(a.map(f=>{var A;return[f.theme,(A=f.state)==null?void 0:A.getInternalStack(f.theme)]})),a[0].state.lang):void 0;return d&&aA(l,d),l}function b$(...e){const t=e.map(()=>[]),n=e.length;for(let r=0;r<e[0].length;r++){const a=e.map(f=>f[r]),o=t.map(()=>[]);t.forEach((f,A)=>f.push(o[A]));const l=a.map(()=>0),d=a.map(f=>f[0]);for(;d.every(f=>f);){const f=Math.min(...d.map(A=>A.content.length));for(let A=0;A<n;A++){const m=d[A];m.content.length===f?(o[A].push(m),l[A]+=1,d[A]=a[A][l[A]]):(o[A].push({...m,content:m.content.slice(0,f)}),d[A]={...m,content:m.content.slice(f),offset:m.offset+f})}}}return t}function Cf(e,t,n){let r,a,o,l,d,f;if("themes"in n){const{defaultColor:A="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===A?-1:R.color===A?1:0);if(E.length===0)throw new xu("`themes` option must not be empty");const g=xx(e,t,n);if(f=hc(g),A&&!E.find(v=>v.color===A))throw new xu(`\`themes\` option must contain the defaultColor key \`${A}\``);const _=E.map(v=>e.getTheme(v.theme)),S=E.map(v=>v.color);o=g.map(v=>v.map(R=>B$(R,S,m,A))),f&&aA(o,f);const y=E.map(v=>Nf(v.theme,n));a=E.map((v,R)=>(R===0&&A?"":`${m+v.color}:`)+(ma(_[R].fg,y[R])||"inherit")).join(";"),r=E.map((v,R)=>(R===0&&A?"":`${m+v.color}-bg:`)+(ma(_[R].bg,y[R])||"inherit")).join(";"),l=`shiki-themes ${_.map(v=>v.name).join(" ")}`,d=A?void 0:[a,r].join(";")}else if("theme"in n){const A=Nf(n.theme,n);o=O4(e,t,n);const m=e.getTheme(n.theme);r=ma(m.bg,A),a=ma(m.fg,A),l=m.name,f=hc(o)}else throw new xu("Invalid options, either `theme` or `themes` must be provided");return{tokens:o,fg:a,bg:r,themeName:l,rootStyle:d,grammarState:f}}function B$(e,t,n,r){const a={content:e.content,explanation:e.explanation,offset:e.offset},o=t.map(f=>Rx(e.variants[f])),l=new Set(o.flatMap(f=>Object.keys(f))),d={};return o.forEach((f,A)=>{for(const m of l){const E=f[m]||"inherit";if(A===0&&r)d[m]=E;else{const g=m==="color"?"":m==="background-color"?"-bg":`-${m}`,_=n+t[A]+(m==="color"?"":g);d[_]=E}}}),a.htmlStyle=d,a}function yf(e,t,n,r={meta:{},options:n,codeToHast:(a,o)=>yf(e,a,o),codeToTokens:(a,o)=>Cf(e,a,o)}){var _,S;let a=t;for(const y of If(n))a=((_=y.preprocess)==null?void 0:_.call(r,a,n))||a;let{tokens:o,fg:l,bg:d,themeName:f,rootStyle:A,grammarState:m}=Cf(e,a,n);const{mergeWhitespaces:E=!0}=n;E===!0?o=F$(o):E==="never"&&(o=L$(o));const g={...r,get source(){return a}};for(const y of If(n))o=((S=y.tokens)==null?void 0:S.call(g,o))||o;return O$(o,{...n,fg:l,bg:d,themeName:f,rootStyle:A},g,m)}function O$(e,t,n,r=hc(e)){var S,y,v;const a=If(t),o=[],l={type:"root",children:[]},{structure:d="classic",tabindex:f="0"}=t;let A={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:d,addClassToHast:yx,get source(){return n.source},get tokens(){return e},get options(){return t},get root(){return l},get pre(){return A},get code(){return m},get lines(){return E}};if(e.forEach((R,D)=>{var b,O;D&&(d==="inline"?l.children.push({type:"element",tagName:"br",properties:{},children:[]}):d==="classic"&&o.push({type:"text",value:`
|
|
284
|
+
`}));let x={type:"element",tagName:"span",properties:{class:"line"},children:[]},L=0;for(const F of R){let j={type:"element",tagName:"span",properties:{...F.htmlAttrs},children:[{type:"text",value:F.content}]};F.htmlStyle;const G=d$(F.htmlStyle||Rx(F));G&&(j.properties.style=G);for(const K of a)j=((b=K==null?void 0:K.span)==null?void 0:b.call(g,j,D+1,L,x,F))||j;d==="inline"?l.children.push(j):d==="classic"&&x.children.push(j),L+=F.content.length}if(d==="classic"){for(const F of a)x=((O=F==null?void 0:F.line)==null?void 0:O.call(g,x,D+1))||x;E.push(x),o.push(x)}}),d==="classic"){for(const R of a)m=((S=R==null?void 0:R.code)==null?void 0:S.call(g,m))||m;A.children.push(m);for(const R of a)A=((y=R==null?void 0:R.pre)==null?void 0:y.call(g,A))||A;l.children.push(A)}let _=l;for(const R of a)_=((v=R==null?void 0:R.root)==null?void 0:v.call(g,_))||_;return r&&aA(_,r),_}function F$(e){return e.map(t=>{const n=[];let r="",a=0;return t.forEach((o,l)=>{const f=!(o.fontStyle&&o.fontStyle&vu.Underline);f&&o.content.match(/^\s+$/)&&t[l+1]?(a||(a=o.offset),r+=o.content):r?(f?n.push({...o,offset:a,content:r+o.content}):n.push({content:r,offset:a},o),a=0,r=""):n.push(o)}),n})}function L$(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[,a,o,l]=r;if(!a&&!l)return n;const d=[{...n,offset:n.offset+a.length,content:o}];return a&&d.unshift({content:a,offset:n.offset}),l&&d.push({content:l,offset:n.offset+a.length+o.length}),d}))}function w$(e,t,n){var o;const r={meta:{},options:n,codeToHast:(l,d)=>yf(e,l,d),codeToTokens:(l,d)=>Cf(e,l,d)};let a=i$(yf(e,t,n,r));for(const l of If(n))a=((o=l.postprocess)==null?void 0:o.call(r,a,n))||a;return a}const ky={light:"#333333",dark:"#bbbbbb"},Gy={light:"#fffffe",dark:"#1e1e1e"},jy="__shiki_resolved";function F4(e){var d,f,A,m,E;if(e!=null&&e[jy])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;(d=g==null?void 0:g.settings)!=null&&d.foreground&&(r=g.settings.foreground),(f=g==null?void 0:g.settings)!=null&&f.background&&(n=g.settings.background),!r&&((A=t==null?void 0:t.colors)!=null&&A["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"?ky.light:ky.dark),n||(n=t.type==="light"?Gy.light:Gy.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 a=0;const o=new Map;function l(g){var S;if(o.has(g))return o.get(g);a+=1;const _=`#${a.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 y={...g,settings:{...g.settings}};if(_){const D=l(g.settings.foreground);t.colorReplacements[D]=g.settings.foreground,y.settings.foreground=D}if(S){const D=l(g.settings.background);t.colorReplacements[D]=g.settings.background,y.settings.background=D}return y});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,jy,{enumerable:!1,writable:!1,value:!0}),t}async function bx(e){return Array.from(new Set((await Promise.all(e.filter(t=>!Sx(t)).map(async t=>await vx(t).then(n=>Array.isArray(n)?n:[n])))).flat()))}async function Bx(e){return(await Promise.all(e.map(async n=>Cx(n)?null:F4(await vx(n))))).filter(n=>!!n)}class M$ extends KZ{constructor(n,r,a,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=a,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=F4(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=mf.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 yn(`Circular alias \`${Array.from(r).join(" -> ")} -> ${n}\``);r.add(n)}}return this._resolvedGrammars.get(n)}loadLanguage(n){var l,d,f,A;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 a={balancedBracketSelectors:n.balancedBracketSelectors||["*"],unbalancedBracketSelectors:n.unbalancedBracketSelectors||[]};this._syncRegistry._rawGrammars.set(n.scopeName,n);const o=this.loadGrammarWithConfiguration(n.scopeName,1,a);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,(d=(l=this._syncRegistry)==null?void 0:l._injectionGrammars)==null||d.delete(m.scopeName),(A=(f=this._syncRegistry)==null?void 0:f._grammars)==null||A.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()),a=r.filter(([o,l])=>!l);if(a.length){const o=r.filter(([l,d])=>{var f;return d&&((f=d.embeddedLangs)==null?void 0:f.some(A=>a.map(([m])=>m).includes(A)))}).filter(l=>!a.includes(l));throw new yn(`Missing languages ${a.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 H${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 a=1;a<=n.length;a++){const o=n.slice(0,a).join(".");r=[...r,...this._injections.get(o)||[]]}return r}}let _l=0;function P$(e){_l+=1,e.warnings!==!1&&_l>=10&&_l%10===0&&console.warn(`[Shiki] ${_l} 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 yn("`engine` option is required for synchronous mode");const n=(e.langs||[]).flat(1),r=(e.themes||[]).flat(1).map(F4),a=new H$(e.engine,n),o=new M$(a,r,n,e.langAlias);let l;function d(D){v();const x=o.getGrammar(typeof D=="string"?D:D.name);if(!x)throw new yn(`Language \`${D}\` not found, you may need to load it first`);return x}function f(D){if(D==="none")return{bg:"",fg:"",name:"none",settings:[],type:"dark"};v();const x=o.getTheme(D);if(!x)throw new yn(`Theme \`${D}\` not found, you may need to load it first`);return x}function A(D){v();const x=f(D);l!==D&&(o.setTheme(x),l=D);const L=o.getColorMap();return{theme:x,colorMap:L}}function m(){return v(),o.getLoadedThemes()}function E(){return v(),o.getLoadedLanguages()}function g(...D){v(),o.loadLanguages(D.flat(1))}async function _(...D){return g(await bx(D))}function S(...D){v();for(const x of D.flat(1))o.loadTheme(x)}async function y(...D){return v(),S(await Bx(D))}function v(){if(t)throw new yn("Shiki instance has been disposed")}function R(){t||(t=!0,o.dispose(),_l-=1)}return{setTheme:A,getTheme:f,getLanguage:d,getLoadedThemes:m,getLoadedLanguages:E,loadLanguage:_,loadLanguageSync:g,loadTheme:y,loadThemeSync:S,dispose:R,[Symbol.dispose]:R}}async function U$(e={}){e.loadWasm;const[t,n,r]=await Promise.all([Bx(e.themes||[]),bx(e.langs||[]),e.engine||Y1(e.loadWasm||iZ())]);return P$({...e,themes:t,langs:n,engine:r})}async function k$(e={}){const t=await U$(e);return{getLastGrammarState:(...n)=>y$(t,...n),codeToTokensBase:(n,r)=>O4(t,n,r),codeToTokensWithThemes:(n,r)=>xx(t,n,r),codeToTokens:(n,r)=>Cf(t,n,r),codeToHast:(n,r)=>yf(t,n,r),codeToHtml:(n,r)=>w$(t,n,r),...t,getInternalContext:()=>t}}function G$(e,t,n){let r,a,o;{const d=e;r=d.langs,a=d.themes,o=d.engine}async function l(d){function f(_){if(typeof _=="string"){if(Sx(_))return[];const S=r[_];if(!S)throw new xu(`Language \`${_}\` is not included in this bundle. You may want to load it from external source.`);return S}return _}function A(_){if(Cx(_))return"none";if(typeof _=="string"){const S=a[_];if(!S)throw new xu(`Theme \`${_}\` is not included in this bundle. You may want to load it from external source.`);return S}return _}const m=(d.themes??[]).map(_=>A(_)),E=(d.langs??[]).map(_=>f(_)),g=await k$({engine:d.engine??o(),...d,themes:m,langs:E});return{...g,loadLanguage(..._){return g.loadLanguage(..._.map(f))},loadTheme(..._){return g.loadTheme(..._.map(A))}}}return l}function j$(e){let t;async function n(r={}){if(t){const a=await t;return await Promise.all([a.loadTheme(...r.themes||[]),a.loadLanguage(...r.langs||[])]),a}else return t=e({...r,themes:r.themes||[],langs:r.langs||[]}),t}return n}function V$(e){const t=j$(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 z$=[[/^(<!--)(.+)(-->)$/,!1],[/^(\/\*)(.+)(\*\/)$/,!1],[/^(\/\/|["'#]|;{1,2}|%{1,2}|--)(.*)$/,!0],[/^(\*)(.+)$/,!0]];function K$(e,t,n){const r=[];for(const a of e){const o=a.children;let l=o.length-1;n==="v1"?l=0:t&&(l=o.length-2);for(let d=Math.max(l,0);d<o.length;d++){const f=o[d];if(f.type!=="element")continue;const A=f.children.at(0);if((A==null?void 0:A.type)!=="text")continue;const m=d===o.length-1,E=Y$(A.value,m);E&&(t&&!m&&d!==0?r.push({info:E,line:a,token:f,isJsxStyle:Vy(o[d-1],"{")&&Vy(o[d+1],"}")}):r.push({info:E,line:a,token:f,isJsxStyle:!1}))}}return r}function Vy(e,t){if(e.type!=="element")return!1;const n=e.children[0];return n.type!=="text"?!1:n.value.trim()===t}function Y$(e,t){let n=e.trimStart();const r=e.length-n.length;n=n.trimEnd();const a=e.length-n.length-r;for(const[o,l]of z$){if(l&&!t)continue;const d=o.exec(n);if(d)return[" ".repeat(r)+d[1],d[2],d[3]?d[3]+" ".repeat(a):void 0]}}function Z$(e){const n=/(?:\/\/|["'#]|;{1,2}|%{1,2}|--)(.*)$/.exec(e);return n&&n[1].trim().length===0?e.slice(0,n.index):e}function Ox(e,t,n,r="v1"){return{name:e,code(a){const o=a.children.filter(A=>A.type==="element"),l=[];a.data??(a.data={});const d=a.data;d._shiki_notation??(d._shiki_notation=K$(o,["jsx","tsx"].includes(this.options.lang),r));const f=d._shiki_notation;for(const A of f){if(A.info[1].length===0)continue;const m=A.line.children.length===(A.isJsxStyle?3:1);let E=o.indexOf(A.line);m&&r!=="v1"&&E++;let g=!1;if(A.info[1]=A.info[1].replace(t,(...S)=>n.call(this,S,A.line,A.token,o,E)?(g=!0,""):S[0]),!g)continue;r==="v1"&&(A.info[1]=Z$(A.info[1]));const _=A.info[1].trim().length===0;if(_&&(A.info[1]=""),_&&m)l.push(A.line);else if(_&&A.isJsxStyle)A.line.children.splice(A.line.children.indexOf(A.token)-1,3);else if(_)A.line.children.splice(A.line.children.indexOf(A.token),1);else{const S=A.token.children[0];S.type==="text"&&(S.value=A.info.join(""))}}for(const A of l)a.children.splice(a.children.indexOf(A),1)}}}function W$(e){if(!e)return null;const t=e.match(/\{([\d,-]+)\}/);return t?t[1].split(",").flatMap(r=>{const a=r.split("-").map(o=>Number.parseInt(o,10));return a.length===1?[a[0]]:Array.from({length:a[1]-a[0]+1},(o,l)=>l+a[0])}):null}const g0=Symbol("highlighted-lines");function $$(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 a=this.meta;return a[g0]??(a[g0]=W$(this.options.meta.__raw)),(a[g0]??[]).includes(r)&&this.addClassToHast(n,t),n}}}function q$(e){return e?Array.from(e.matchAll(/\/((?:\\.|[^/])+)\//g)).map(n=>n[1].replace(/\\(.)/g,"$1")):[]}function Q$(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 a=q$(this.options.meta.__raw);r.decorations||(r.decorations=[]);for(const l of a){const d=X$(n,l);for(const f of d)r.decorations.push({start:f,end:f+l.length,properties:{class:t}})}}}}function X$(e,t){const n=[];let r=-1;for(;(r=e.indexOf(t,r+1))!==-1;)n.push(r);return n}function J$(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function L4(e={},t="@shikijs/transformers:notation-map"){const{classMap:n={},classActivePre:r=void 0}=e;return Ox(t,new RegExp(`\\s*\\[!code (${Object.keys(n).map(J$).join("|")})(:\\d+)?\\]`),function([a,o,l=":1"],d,f,A,m){const E=Number.parseInt(l.slice(1),10);for(let g=m;g<Math.min(m+E,A.length);g++)this.addClassToHast(A[g],n[o]);return r&&this.addClassToHast(this.pre,r),!0},e.matchAlgorithm)}function eq(e={}){const{classLineAdd:t="diff add",classLineRemove:n="diff remove",classActivePre:r="has-diff"}=e;return L4({classMap:{"++":t,"--":n},classActivePre:r,matchAlgorithm:e.matchAlgorithm},"@shikijs/transformers:notation-diff")}function tq(e={}){const{classMap:t={error:["highlighted","error"],warning:["highlighted","warning"]},classActivePre:n="has-highlighted"}=e;return L4({classMap:t,classActivePre:n,matchAlgorithm:e.matchAlgorithm},"@shikijs/transformers:notation-error-level")}function nq(e={}){const{classActiveLine:t="highlighted",classActivePre:n="has-highlighted"}=e;return L4({classMap:{highlight:t,hl:t},classActivePre:n,matchAlgorithm:e.matchAlgorithm},"@shikijs/transformers:notation-highlight")}function rq(e,t,n,r){const a=Fx(e);let o=a.indexOf(n);for(;o!==-1;)uq.call(this,e.children,t,o,n.length,r),o=a.indexOf(n,o+1)}function Fx(e){return e.type==="text"?e.value:e.type==="element"&&e.tagName==="span"?e.children.map(Fx).join(""):""}function uq(e,t,n,r,a){let o=0;for(let l=0;l<e.length;l++){const d=e[l];if(d.type!=="element"||d.tagName!=="span"||d===t)continue;const f=d.children[0];if(f.type==="text"){if(iq([o,o+f.value.length-1],[n,n+r])){const A=Math.max(0,n-o),m=r-Math.max(0,o-n);if(m===0)continue;const E=aq(d,f,A,m);this.addClassToHast(E[1],a);const g=E.filter(Boolean);e.splice(l,1,...g),l+=g.length-1}o+=f.value.length}}}function iq(e,t){return e[0]<=t[1]&&e[1]>=t[0]}function aq(e,t,n,r){const a=t.value,o=l=>sq(e,{children:[{type:"text",value:l}]});return[n>0?o(a.slice(0,n)):void 0,o(a.slice(n,n+r)),n+r<a.length?o(a.slice(n+r)):void 0]}function sq(e,t){return{...e,properties:{...e.properties},...t}}function oq(e={}){const{classActiveWord:t="highlighted-word",classActivePre:n=void 0}=e;return Ox("@shikijs/transformers:notation-highlight-word",/\s*\[!code word:((?:\\.|[^:\]])+)(:\d+)?\]/,function([r,a,o],l,d,f,A){const m=o?Number.parseInt(o.slice(1),10):f.length;a=a.replace(/\\(.)/g,"$1");for(let E=A;E<Math.min(A+m,f.length);E++)rq.call(this,f[E],d,a,t);return n&&this.addClassToHast(this.pre,n),!0},e.matchAlgorithm)}const lq="modulepreload",cq=function(e){return"/"+e},zy={},w=function(t,n,r){let a=Promise.resolve();if(n&&n.length>0){document.getElementsByTagName("link");const l=document.querySelector("meta[property=csp-nonce]"),d=(l==null?void 0:l.nonce)||(l==null?void 0:l.getAttribute("nonce"));a=Promise.allSettled(n.map(f=>{if(f=cq(f),f in zy)return;zy[f]=!0;const A=f.endsWith(".css"),m=A?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${f}"]${m}`))return;const E=document.createElement("link");if(E.rel=A?"stylesheet":lq,A||(E.as="script"),E.crossOrigin="",E.href=f,d&&E.setAttribute("nonce",d),document.head.appendChild(E),A)return new Promise((g,_)=>{E.addEventListener("load",g),E.addEventListener("error",()=>_(new Error(`Unable to preload CSS for ${f}`)))})}))}function o(l){const d=new Event("vite:preloadError",{cancelable:!0});if(d.payload=l,window.dispatchEvent(d),!d.defaultPrevented)throw l}return a.then(l=>{for(const d of l||[])d.status==="rejected"&&o(d.reason);return t().catch(o)})},Lx=[{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"),[])}],dq=Object.fromEntries(Lx.map(e=>[e.id,e.import])),fq=Object.fromEntries(Lx.flatMap(e=>{var t;return((t=e.aliases)==null?void 0:t.map(n=>[n,e.import]))||[]})),Aq={...dq,...fq},hq=[{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"),[])}],mq=Object.fromEntries(hq.map(e=>[e.id,e.import])),pq=G$({langs:Aq,themes:mq,engine:()=>Y1(w(()=>import("./wasm-CG6Dc4jp.js"),[]))}),{codeToHtml:Eq}=V$(pq),gq=({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))})})}),_q=({children:e,lang:t,isDarkMode:n,onChange:r,...a})=>{const[o,l]=C.useState(null),d=C.useMemo(()=>({lang:t,theme:n?"github-dark":"github-light",transformers:[eq(),nq(),oq(),tq(),$$(),Q$()]}),[t,n]);return C.useEffect(()=>{Eq(e,d).then(f=>l(f)).catch(f=>console.error(f))},[d,e]),o?N.jsx("div",{dangerouslySetInnerHTML:{__html:o},...a,style:{backgroundColor:"transparent"}}):N.jsx(gq,{children:e})},Nq=({className:e,onChange:t,isEditable:n,...r})=>N.jsx(_q,{className:Re("flex w-full",e),contentEditable:n,onInput:a=>t==null?void 0:t(a.currentTarget.textContent??""),...r}),wx=C.createContext({packageManager:"npm",setPackageManager:()=>{},codeFormat:"typescript",setCodeFormat:()=>{},contentDeclarationFormat:"typescript",setContentDeclarationFormat:()=>{}}),sA=()=>C.useContext(wx),Iq=({children:e})=>{const[t,n]=Ul("packageManager","npm"),[r,a]=Ul("codeFormat","typescript"),[o,l]=Ul("contentDeclarationFormat","typescript");return N.jsx(wx,{value:{packageManager:t,setPackageManager:n,codeFormat:r,setCodeFormat:a,contentDeclarationFormat:o,setContentDeclarationFormat:l},children:e})},Sq=({children:e,...t})=>{const{packageManager:n,codeFormat:r,contentDeclarationFormat:a}=sA(),o=typeof t.packageManager>"u",l=n===t.packageManager,d=typeof t.codeFormat>"u",f=r===t.codeFormat,A=typeof t.contentDeclarationFormat>"u",m=a===t.contentDeclarationFormat;return(o||l)&&(d||f)&&(A||m)?e:N.jsx(N.Fragment,{})},Cq=()=>{const{codeFormat:e,setCodeFormat:t,setContentDeclarationFormat:n}=sA();return N.jsxs(He,{value:e,onValueChange:r=>{t(r),n(r)},children:[N.jsx(He.Trigger,{children:N.jsx(He.Value,{placeholder:"Code Format"})}),N.jsxs(He.Content,{children:[N.jsx(He.Item,{value:"typescript",children:"TypeScript"}),N.jsx(He.Item,{value:"esm",children:"ESM"}),N.jsx(He.Item,{value:"commonjs",children:"CommonJS"})]})]})},yq=()=>{const{contentDeclarationFormat:e,setContentDeclarationFormat:t}=sA();return N.jsxs(He,{value:e,onValueChange:t,children:[N.jsx(He.Trigger,{children:N.jsx(He.Value,{placeholder:"Dictionary Format"})}),N.jsxs(He.Content,{children:[N.jsx(He.Item,{value:"typescript",children:"TypeScript"}),N.jsx(He.Item,{value:"commonjs",children:"CommonJS"}),N.jsx(He.Item,{value:"esm",children:"ESM"}),N.jsx(He.Item,{value:"json",children:"JSON"})]})]})},vq={key:"copy-button",content:{label:_e({en:"Copy content",fr:"Copier le contenu",es:"Copiar contenido","en-GB":"Copy content",de:"Inhalt kopieren",ja:"コンテンツをコピー",ko:"콘텐츠 복사",zh:"复制内容",it:"Copia contenuto",pt:"Copiar conteúdo",hi:"सामग्री कॉपी करें",ar:"نسخ المحتوى",ru:"Копировать содержимое"})}},Mx=({content:e})=>{const[t,n]=C.useState(!1),{label:r}=rn(vq),a=async()=>{try{await navigator.clipboard.writeText(e),n(!0)}catch(o){console.error("Failed to copy text: ",o)}};return C.useEffect(()=>{const o=setTimeout(()=>{n(!1)},1e3);return()=>clearTimeout(o)},[t]),N.jsx(ht,{Icon:t?y2:R2,onClick:a,variant:"hoverable",color:"text",label:r.value,size:"icon-sm"})},Rq=()=>{const{packageManager:e,setPackageManager:t}=sA();return N.jsxs(He,{value:e,onValueChange:t,children:[N.jsx(He.Trigger,{children:N.jsx(He.Value,{placeholder:"Package Manager"})}),N.jsxs(He.Content,{children:[N.jsx(He.Item,{value:"npm",children:"npm"}),N.jsx(He.Item,{value:"pnpm",children:"pnpm"}),N.jsx(He.Item,{value:"yarn",children:"yarn"})]})]})},Dq=({children:e,language:t,isDarkMode:n,showHeader:r=!0,showLineNumbers:a=!0,className:o,fileName:l,packageManager:d,codeFormat:f,contentDeclarationFormat:A,...m})=>{const E=e.endsWith(`
|
|
286
|
+
`)?e.slice(0,-1):e,g=d||f||A;return N.jsx(Sq,{packageManager:d,codeFormat:f,contentDeclarationFormat:A,children:N.jsxs(eu,{className:Re("relative text-sm leading-6",a&&"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:[d&&N.jsx(Rq,{}),f&&N.jsx(Cq,{}),A&&N.jsx(yq,{})]})]}),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(Mx,{content:E})})})]}),N.jsx("div",{className:"grid size-full grid-cols-[0px] overflow-auto p-3",children:N.jsx(Nq,{lang:t,isDarkMode:n,children:E})})]})})},Tq=pr("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"}}),xq=({href:e,isExternalLink:t})=>{const n=typeof e=="string"&&e.trim()!=="";return t===!0||typeof t>"u"&&n&&/^https?:\/\//.test(e)},w4=e=>{const{variant:t="default",color:n="primary",children:r,label:a,className:o,isActive:l,underlined:d,locale:f,isExternalLink:A,href:m,...E}=e,{internationalization:g}=Qe,_=xq(e),S=typeof r=="string",y=_?"noopener noreferrer nofollow":void 0,v=_?"_blank":"_self",R=f?f===g.defaultLocale?"x-default":f:void 0,D=f&&m&&!_?EF(m,f):m;return N.jsxs("a",{href:D,hrefLang:R,"aria-label":a,rel:y,target:v,"aria-current":l?"page":void 0,className:Re(Tq({variant:t,color:n,underlined:d,className:o})),...E,children:[t==="button"?N.jsx("span",{children:r}):r,_&&S&&N.jsx(b2,{className:"ml-2 inline-block size-4"})]})},bq=({children:e,isDarkMode:t,locale:n,options:r})=>{const{overrides:a,...o}=r??{};return N.jsx(Iq,{children:N.jsx(UY,{options:{overrides:{h1:l=>N.jsx(Rz,{isClickable:!0,...l}),h2:l=>N.jsx(Dz,{isClickable:!0,...l}),h3:l=>N.jsx(N4,{isClickable:!0,...l}),h4:l=>N.jsx(Tz,{isClickable:!0,...l}),code:l=>{var d;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(Dq,{isDarkMode:t,language:(d=l.className)==null?void 0:d.replace("lang-",""),...l})},blockquote:({className:l,...d})=>N.jsx("blockquote",{className:Re("border-card text-neutral mt-5 flex flex-col gap-3 border-l-4 pl-5",l),...d}),ul:({className:l,...d})=>N.jsx("ul",{className:Re("mt-5 flex flex-col gap-3 pl-5",l),...d}),ol:({className:l,...d})=>N.jsx("ol",{className:Re("mt-5 flex flex-col gap-3 pl-5",l),...d}),li:({className:l,...d})=>N.jsx("li",{className:Re("list-disc",l),...d}),img:({className:l,...d})=>N.jsx("img",{...d,loading:"lazy",className:Re("max-w-full rounded-md",l),src:`${d.src}?raw=true`}),a:l=>{var d;return N.jsx(w4,{color:"neutral",isExternalLink:(d=l.href)==null?void 0:d.startsWith("http"),underlined:!0,locale:n,...l})},pre:l=>l.children,table:({className:l,...d})=>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),...d})}),th:({className:l,...d})=>N.jsx("th",{className:Re("border-neutral bg-neutral/10 border-b p-4",l),...d}),tr:({className:l,...d})=>N.jsx("tr",{className:Re("hover:bg-neutral/10 hover:/10",l),...d}),td:({className:l,...d})=>N.jsx("td",{className:Re("border-b border-neutral-500/50 p-4",l),...d}),...a},wrapper:({className:l,...d})=>N.jsxs(N.Fragment,{children:[N.jsx(GY,{}),N.jsx("div",{className:Re("flex flex-col gap-6 p-10",l),...d})]}),...o},children:e??""})})},Bq=e=>{let t,n;if(typeof e=="number"||!isNaN(Number(e)))t="=",n=e.toString();else if(typeof e=="string"){const a=["<=",">=","<",">","="].find(o=>e.startsWith(o));a&&(t=a,n=e.slice(a.length))}return{comparator:t,numberValue:n}},Oq=({value:e,onChange:t})=>{const{comparator:n,numberValue:r}=C.useMemo(()=>Bq(e),[e]),[a,o]=C.useState(n??null),[l,d]=C.useState(r??null);return C.useEffect(()=>{if(a&&l&&(a!==n||l!==r)){const f=`${a}${l}`;t(f)}},[a,n,r,l,t]),N.jsxs("div",{className:"flex gap-1",children:[N.jsxs(He,{onValueChange:o,defaultValue:n,children:[N.jsx(He.Trigger,{className:"w-20",children:N.jsx(He.Value,{placeholder:"Select a comparator"})}),N.jsxs(He.Content,{children:[N.jsx(He.Item,{value:"<",children:"<"}),N.jsx(He.Item,{value:"<=",children:"<="}),N.jsx(He.Item,{value:"=",children:"="}),N.jsx(He.Item,{value:">=",children:">="}),N.jsx(He.Item,{value:">",children:">"})]})]}),N.jsx(to,{type:"number",defaultValue:l??void 0,onChange:f=>d(f.target.value),className:"min-w-4"})]})},oA={key:"navigation-view",content:{tsxNotEditable:_e({en:"React node is not editable","en-GB":"React node is not editable",fr:"Node React non éditable",es:"Nodo React no editable",de:"React-Knoten ist nicht bearbeitbar",ja:"編集できないReactノードです",ko:"편집할 수 없는 React 노드입니다",zh:"不可编辑的 React 节点",it:"Node React non modificabile",pt:"Nó React não editável",hi:"सम्पादित न करने योग्य React नोड",ar:"عقدة React غير قابلة للتحرير",ru:"React-узел не редактируемый"}),goToField:{label:_e({en:"Go to field","en-GB":"Go to field",fr:"Aller au champ",es:"Ir al campo",de:"Zum Feld gehen",ja:"フィールドに移動",ko:"필드로 이동",zh:"转到字段",it:"Vai al campo",pt:"Ir para o campo",hi:"फ़ील्ड पर जाएं",ar:"اذهب إلى الحقل",ru:"Перейти к полю"})},goToElement:{label:_e({en:"Go to element","en-GB":"Go to element",fr:"Aller à l'élément",es:"Ir al elemento",de:"Zum Element gehen",ja:"要素に移動",ko:"요소로 이동",zh:"转到元素",it:"Vai all’elemento",pt:"Ir para o elemento",hi:"तत्व पर जाएं",ar:"اذهب إلى العنصر",ru:"Перейти к элементу"})},addNewElement:{label:_e({en:"Click to add element","en-GB":"Click to add element",fr:"Cliquez pour ajouter un élément",es:"Haga clic para agregar un elemento",de:"Klicken Sie, um ein Element hinzuzufügen",ja:"要素を追加するにはクリック",ko:"요소를 추가하려면 클릭하세요",zh:"点击添加元素",it:"Clicca per aggiungere un elemento",pt:"Clique para adicionar um elemento",hi:"तत्व जोड़ने के लिए क्लिक करें",ar:"انقر لإضافة عنصر",ru:"Нажмите, чтобы добавить элемент"}),text:_e({en:"Add new element","en-GB":"Add new element",fr:"Ajouter un nouvel élément",es:"Agregar nuevo elemento",de:"Neues Element hinzufügen",ja:"新しい要素を追加",ko:"새 요소 추가",zh:"添加新元素",it:"Aggiungi nuovo elemento",pt:"Adicionar novo elemento",hi:"नया तत्व जोड़ें",ar:"أضف عنصرًا جديدًا",ru:"Добавить новый элемент"})},removeElement:{label:_e({en:"Click to remove element","en-GB":"Click to remove element",fr:"Cliquez pour supprimer un élément",es:"Haga clic para eliminar un elemento",de:"Klicken Sie, um ein Element zu entfernen",ja:"要素を削除するにはクリック",ko:"요소를 제거하려면 클릭하세요",zh:"点击删除元素",it:"Clicca per rimuovere un elemento",pt:"Clique para remover um elemento",hi:"तत्व निकालने के लिए क्लिक करें",ar:"انقر لإزالة عنصر",ru:"Нажмите, чтобы удалить элемент"}),text:_e({en:"Remove element","en-GB":"Remove element",fr:"Supprimer l’élément",es:"Eliminar elemento",de:"Element entfernen",ja:"要素を削除",ko:"요소 제거",zh:"删除元素",it:"Rimuovi elemento",pt:"Remover elemento",hi:"तत्व निकालें",ar:"إزالة عنصر",ru:"Удалить элемент"})},goToTranslation:{label:_e({en:"Go to translation","en-GB":"Go to translation",fr:"Aller à la traduction",es:"Ir a la traducción",de:"Zur Übersetzung gehen",ja:"翻訳に移動",ko:"번역으로 이동",zh:"转到翻译",it:"Vai alla traduzione",pt:"Ir para a tradução",hi:"अनुवाद पर जाएं",ar:"اذهب إلى الترجمة",ru:"Перейти к переводу"})},goToEnumeration:{label:_e({en:"Go to enumeration","en-GB":"Go to enumeration",fr:"Aller à l'énumération",es:"Ir a la enumeración",de:"Zur Aufzählung gehen",ja:"列挙に移動",ko:"열거로 이동",zh:"转到枚举",it:"Vai all ENUMERAZIONE",pt:"Ir para a enumeração",hi:"सूची में जाएं",ar:"اذهب إلى التعداد",ru:"Перейти к перечислению"})},addNewEnumeration:{label:_e({en:"Click to add enumeration","en-GB":"Click to add enumeration",fr:"Cliquez pour ajouter une énumération",es:"Haga clic para agregar una enumeración",de:"Klicken Sie, um eine Aufzählung hinzuzufügen",ja:"列挙を追加するにはクリック",ko:"열거를 추가하려면 클릭하세요",zh:"点击添加枚举",it:"Clicca per aggiungere un enumerazione",pt:"Clique para adicionar uma enumeração",hi:"सूची जोड़ने के लिए क्लिक करें",ar:"انقر لإضافة تعداد",ru:"Нажмите, чтобы добавить перечисление"}),text:_e({en:"Add new enumeration","en-GB":"Add new enumeration",fr:"Ajouter une nouvelle énumération",es:"Agregar nueva enumeración",de:"Neue Aufzählung hinzufügen",ja:"新しい列挙を追加",ko:"새 목록 추가",zh:"添加新枚举",it:"Aggiungi nuova enumerazione",pt:"Adicionar nova enumeração",hi:"नया सूची जोड़ें",ar:"أضف تعدادًا جديدًا",ru:"Добавить новое перечисление"})},removeEnumeration:{label:_e({en:"Click to remove enumeration","en-GB":"Click to remove enumeration",fr:"Cliquez pour supprimer une énumération",es:"Haga clic para eliminar una enumeración",de:"Klicken Sie, um eine Aufzählung zu entfernen",ja:"列挙を削除するにはクリック",ko:"목록을 제거하려면 클릭하세요",zh:"点击删除枚举",it:"Clicca per rimuovere un'enumerazione",pt:"Clique para remover uma enumeração",hi:"सूची निकालने के लिए क्लिक करें",ar:"انقر لإزالة تعداد",ru:"Нажмите, чтобы удалить перечисление"}),text:_e({en:"Remove enumeration","en-GB":"Remove enumeration",fr:"Supprimer l’énumération",es:"Eliminar enumeración",de:"Aufzählung entfernen",ja:"列挙を削除",ko:"목록 제거",zh:"删除枚举",it:"Rimuovi enumerazione",pt:"Remover enumeração",hi:"सूची निकालें",ar:"إزالة تعداد",ru:"Удалить перечисление"})},addNewCondition:{label:_e({en:"Click to add condition","en-GB":"Click to add condition",fr:"Cliquez pour ajouter une condition",es:"Haga clic para agregar una condición",de:"Klicken Sie, um eine Bedingung hinzuzufügen",ja:"条件を追加するにはクリック",ko:"조건을 추가하려면 클릭하세요",zh:"点击添加条件",it:"Clicca per aggiungere una condizione",pt:"Clique para adicionar uma condição",hi:"शर्ते जोड़ने के लिए क्लिक करें",ar:"انقر لإضافة شرط",ru:"Нажмите, чтобы добавить условие"}),text:_e({en:"Add new condition","en-GB":"Add new condition",fr:"Ajouter une nouvelle condition",es:"Agregar nueva condición",de:"Neue Bedingung hinzufügen",ja:"新しい条件を追加",ko:"새 조건 추가",zh:"添加新条件",it:"Aggiungi nuova condizione",pt:"Adicionar nova condição",hi:"नया शर्ते जोड़ें",ar:"أضف شرطًا جديدًا",ru:"Добавить новое условие"})}}},Hx=({keyPath:e,dictionary:t,...n})=>{const{editedContent:r,addEditedContent:a}=On(),o=Xr(),{auditContentDeclarationField:l,isLoading:d}=jM();return N.jsx(LK,{variant:"default",onContentChange:f=>a(t.key,f,e),additionalButtons:N.jsx(ht,{Icon:Qv,label:"Audit",variant:"hoverable",size:"icon-sm",color:"text",className:"cursor-pointer hover:scale-110",isLoading:d,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 A=f.data.fileContent;a(t.key,A,e)}catch(A){console.error(A)}})}}),...n})},Fq=({keyPath:e,dictionary:t,...n})=>{const{addEditedContent:r}=On();return N.jsx(OE,{variant:"default",onContentChange:a=>r(t.key,a,e),...n})},Lq=[{content:"False",value:!1},{content:"True",value:!0}],wq=({dictionary:e,keyPath:t,...n})=>{const{addEditedContent:r}=On();return N.jsx(Bc,{choices:Lq,value:!0,onChange:a=>r(e.key,a,t),color:"text",size:"sm",...n})},Mq=({section:e,keyPath:t,dictionary:n})=>{const{locale:r,defaultLocale:a}=QE(),{selectedLocales:o,availableLocales:l}=T1(),d=e[U.Translation],f=Object.keys(d),m=l.length>o.length?o:[...new Set([...l,...f])],E=e[U.Translation];return N.jsx("table",{className:"w-full",children:N.jsx("tbody",{className:"flex w-full flex-col gap-2",children:m.map(g=>N.jsxs(C.Fragment,{children:[N.jsx("tr",{className:"mt-2 w-full p-2 text-xs",children:S0(g,r)}),N.jsx("tr",{children:N.jsx(lA,{section:E[g]??hr(E[a]),keyPath:[...t,{type:U.Translation,key:g}],dictionary:n})})]},g))})})},Hq=({section:e,keyPath:t,dictionary:n})=>{const{addEditedContent:r}=On(),{addNewEnumeration:a,removeEnumeration:o}=rn(oA),l=e[U.Enumeration],d=Object.keys(l)[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[U.Enumeration]).map(f=>{const A=[...t,{type:U.Enumeration}];return N.jsxs(C.Fragment,{children:[N.jsx("tr",{className:"mt-2 w-full",children:N.jsx("div",{className:"flex flex-1",children:N.jsx(ht,{label:o.label.value,variant:"hoverable",color:"text",Icon:ig,className:"ml-auto",onClick:()=>r(n.key,void 0,A),children:o.text})})}),N.jsx("tr",{className:"w-full p-2",children:N.jsx(Oq,{value:f,onChange:m=>{const E=e[U.Enumeration],g=bK(E,f,m),_={...e,[U.Enumeration]:g};r(n.key,_,t)}})}),N.jsx("tr",{className:"block w-full",children:N.jsx(M4,{section:l[f]??hr(l[d]),keyPath:A,dictionary:n})})]},f)})})}),N.jsx(ht,{label:a.label.value,variant:"hoverable",color:"neutral",textAlign:"left",isFullWidth:!0,onClick:()=>r(n.key,hr(l[d])??"",[...t,{type:U.Enumeration,key:"unknown"}]),Icon:Of,className:"m-2",children:a.text})]})},Pq=({section:e,keyPath:t,dictionary:n})=>{const r=e[U.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(a=>N.jsxs(C.Fragment,{children:[N.jsx("tr",{className:"mt-2 block w-full p-2 text-xs",children:String(a)},a),N.jsx("tr",{className:"block w-full",children:N.jsx(lA,{section:r[a]??hr(r.true),keyPath:[...t,{type:U.Condition,key:a}],dictionary:n})},a)]},a))})})},Uq=({section:e,keyPath:t,dictionary:n})=>{const{addEditedContent:r}=On(),{addNewElement:a,removeElement:o}=rn(oA);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((l,d)=>N.jsxs(C.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(d)}),N.jsx(ht,{label:o.label.value,variant:"hoverable",color:"neutral",className:"ml-auto",textAlign:"left",onClick:()=>{const f=[...t,{type:U.Array,key:e.length}];r(n.key,void 0,f)},Icon:ig,children:o.text})]}),N.jsx("tr",{className:"block w-full",children:N.jsx(lA,{section:l??hr(e[0]),keyPath:[...t,{type:U.Array,key:d}],dictionary:n})})]},JSON.stringify(l)))})}),N.jsx(ht,{label:a.label.value,variant:"hoverable",color:"neutral",textAlign:"left",isFullWidth:!0,onClick:()=>{const l=[...t,{type:U.Array,key:e.length}];r(n.key,hr(e[0])??"",l,!1)},Icon:Of,children:a.text})]})},kq=({section:e,keyPath:t,dictionary:n})=>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(r=>{const a=[...t,{type:U.Object,key:r}],o=e,l=Object.keys(o)[0],d=o[r]??hr(o[l]);return N.jsxs(C.Fragment,{children:[N.jsx("tr",{className:"mt-2 p-2 text-xs",children:String(r)},JSON.stringify(d)),N.jsx("tr",{className:"block w-full",children:N.jsx(M4,{section:d,keyPath:a,dictionary:n})},JSON.stringify(d))]},r)})})})}),Gq=({section:e,keyPath:t,dictionary:n,isDarkMode:r})=>{const[a,o]=C.useState(0),l=[{content:"Edit",value:0},{content:"Preview",value:1}],d=e[U.Markdown];return N.jsxs("div",{className:"flex w-full flex-col justify-center gap-6 p-2",children:[N.jsx(Bc,{choices:l,value:a,onChange:o,color:"text",size:"sm",className:"ml-auto"}),a===0&&N.jsx(Hx,{variant:"default","aria-label":"Edit field",keyPath:[...t,{type:U.Markdown}],dictionary:n,children:d}),a===1&&N.jsx(bq,{isDarkMode:r,children:d})]})},jq=({keyPath:e,dictionary:t,section:n,...r})=>{const{addEditedContent:a}=On(),o=n[U.Nested],l=[...e,{type:U.Nested}];return N.jsxs("div",{className:"w-full p-2",children:[N.jsx(qp,{children:"Dictionary key"}),N.jsx(OE,{"aria-label":"Edit field",type:"text",variant:"default",onContentChange:d=>{a(t.key,{...o,dictionaryKey:String(d)},l)},...r,children:o.dictionaryKey??""}),N.jsx(qp,{children:"Path (optional)"}),N.jsx(OE,{"aria-label":"Edit field",type:"text",variant:"default",onContentChange:d=>{a(t.key,{...o,path:d!==""?d:void 0},l)},...r,children:o.path??""})]})},M4=({section:e,keyPath:t,dictionary:n,isDarkMode:r})=>{const{tsxNotEditable:a}=rn(oA),o=Ec(e);return o===U.ReactNode?N.jsxs(N.Fragment,{children:[N.jsx("span",{children:"[React Node]"}),N.jsx("span",{className:"text-neutral text-xs",children:a})]}):o===U.Nested?N.jsx(jq,{dictionary:n,keyPath:t,section:e}):o===U.Translation?N.jsx(Mq,{dictionary:n,keyPath:t,section:e}):o===U.Enumeration?N.jsx(Hq,{dictionary:n,keyPath:t,section:e}):o===U.Condition?N.jsx(Pq,{dictionary:n,keyPath:t,section:e}):o===U.Markdown?N.jsx(Gq,{dictionary:n,keyPath:t,section:e,isDarkMode:r}):o===U.Array?N.jsx(Uq,{dictionary:n,keyPath:t,section:e}):o===U.Object?N.jsx(kq,{dictionary:n,keyPath:t,section:e}):o===U.Number?N.jsx("div",{className:"w-full p-2",children:N.jsx(Fq,{dictionary:n,keyPath:t,type:"number","aria-label":"Edit field",children:e})}):o===U.Text?N.jsx("div",{className:"w-full p-2",children:N.jsx(Hx,{variant:"default","aria-label":"Edit field",keyPath:t,dictionary:n,children:e})}):o===U.Boolean?N.jsx("div",{className:"w-full p-2",children:N.jsx(wq,{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 : ",o]})},lA=e=>N.jsx(eu,{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(M4,{...e})}),Bs=e=>{const t=sv(e);return typeof t=="string"||typeof t=="number"||typeof t=="boolean"||typeof t>"u"||(t==null?void 0:t.nodeType)===U.Markdown},Px={key:"breadcrumb",content:{linkLabel:_e({en:"Go to",fr:"Aller à",es:"Ir a","en-GB":"Go to",de:"Gehe zu",ja:"に移動",ko:"로 이동",zh:"转到",it:"Vai a",pt:"Ir para",hi:"कर जाएं",ar:"اذهب إلى",ru:"Перейти на"})}},Vq=({href:e,lang:t,children:n,onClick:r,color:a,position:o,locale:l,...d})=>{const{linkLabel:f}=rn(Px);return N.jsxs(N.Fragment,{children:[N.jsx(w4,{href:e,locale:l,color:a,onClick:r,itemProp:"item",itemScope:!0,itemType:"https://schema.org/WebPage",...d,label:`${f} ${n}`,itemID:e,children:N.jsx("span",{itemProp:"name",children:n})}),N.jsx("meta",{itemProp:"position",content:o.toString()})]})},zq=({children:e,onClick:t,color:n,position:r,...a})=>{const{linkLabel:o}=rn(Px);return N.jsxs(N.Fragment,{children:[N.jsx(ht,{onClick:t,variant:"link",label:`${o} ${e}`,color:n,itemProp:"item",...a,children:N.jsx("span",{itemProp:"name",children:e})}),N.jsx("meta",{itemProp:"position",content:r.toString()})]})},Kq=({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()})]}),Yq=({links:e,className:t,color:n="text",locale:r,elementType:a="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,d)=>{const f=d===e.length-1,A=typeof l=="object"&&typeof l.href=="string",m=typeof l=="object"&&typeof l.onClick=="function",g=d===e.length-1?a:void 0,_=l.text??l;let S=N.jsx(Kq,{position:d+1,"aria-current":g,children:_},_);A?S=N.jsx(Vq,{href:l.href,color:n,position:d+1,locale:r,"aria-current":g,children:_},_):m&&(S=N.jsx(zq,{onClick:l.onClick,color:n,position:d+1,"aria-current":g,children:_},_));const y=N.jsx("li",{itemProp:"itemListElement",itemScope:!0,itemType:"https://schema.org/ListItem",children:S},_);return f?y:N.jsxs(C.Fragment,{children:[y,N.jsx(ys,{size:10})]},_)})})}),Zq=({keyPath:e,dictionaryKey:t,onClickKeyPath:n,locale:r})=>{const a=[{text:t,onClick:()=>n([])},...e.map((o,l)=>{var d;return{onClick:()=>n(e.slice(0,l+1)),text:((d=o.key)==null?void 0:d.toString())??""}})];return N.jsx(Yq,{links:a,locale:r,elementType:"location"})},zE=e=>e.replace(/([A-Z])/g," $1").toLowerCase().trim(),Tl=({section:e,keyPath:t,dictionaryKey:n})=>{const{locales:r}=Qe==null?void 0:Qe.internationalization,a=Gr(e,t),{addEditedContent:o}=$s(),{setFocusedContentKeyPath:l,focusedContent:d}=vi(),{addNewElement:f,goToElement:A,goToField:m,goToEnumeration:E,goToTranslation:g}=rn(oA),_=Ec(a),S=y=>{var v;return(((v=d==null?void 0:d.keyPath)==null?void 0:v.length)??0)>0&&gc(y,(d==null?void 0:d.keyPath)??[])};if(!a)return N.jsx(N.Fragment,{});if(typeof a=="object"){if(_===U.ReactNode)return N.jsx(N.Fragment,{children:"React Node"});if(_===U.Translation)return N.jsx("div",{className:"flex flex-col justify-between gap-2",children:r.map(v=>{const R=[...t,{type:U.Translation,key:v}],D=Gr(e,R);return Bs(D)?N.jsx(ht,{label:`${g.label.value} ${v}`,isActive:S(R),variant:"hoverable",color:"text",className:"w-full",onClick:()=>l(R),IconRight:ys,children:v},v):N.jsx(Rl,{label:`${g.label.value} ${v}`,isActive:S(R),onClick:()=>l(R),header:v,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(Tl,{keyPath:R,section:e,dictionaryKey:n})})})},v)})});if(_===U.Enumeration||_===U.Condition)return N.jsx("div",{className:"flex flex-col justify-between gap-2",children:Object.keys(a[_]).map(v=>{const R=[...t,{type:_,key:v}],D=Gr(e,R);return Bs(D)?N.jsx(ht,{label:`${E.label.value} ${v}`,isActive:S(R),variant:"hoverable",color:"text",className:"w-full",onClick:()=>l(R),IconRight:ys,children:v},v):N.jsx(Rl,{label:`${E.label.value} ${v}`,isActive:S(R),onClick:()=>l(R),header:v,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(Tl,{keyPath:R,section:e,dictionaryKey:n})})})},v)})});if(_===U.Array)return N.jsxs("div",{className:"flex flex-col justify-between gap-2",children:[a.map((v,R)=>{const D=[...t,{type:U.Array,key:R}];return Bs(v)?N.jsx(ht,{label:`${A.label.value} ${R}`,isActive:S(D),variant:"hoverable",color:"text",className:"w-full",onClick:()=>l(D),IconRight:ys,children:R},`${R}`):N.jsx(Rl,{label:`${A.label.value} ${R}`,isActive:S(D),onClick:()=>l(D),header:R,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(Tl,{keyPath:D,section:e,dictionaryKey:n})})})},`${R}`)}),N.jsx(ht,{label:f.label.value,variant:"hoverable",color:"neutral",textAlign:"left",onClick:()=>{const v=[...t,{type:U.Array,key:a.length}],R=a,D=hr(R[R.length-1])??"";o(n,D,v,!1),l(v)},Icon:Of,children:f.text})]});const y=Object.keys(a);return N.jsx("div",{className:"flex w-full max-w-full flex-col justify-between gap-2",children:y.map(v=>{const R=[...t,{type:U.Object,key:v}],D=Gr(e,R);return Bs(D)?N.jsx(ht,{label:`${m.label.value} ${v}`,isActive:S(R),variant:"hoverable",color:"text",className:"w-full",onClick:()=>l(R),IconRight:ys,children:zE(v)},v):N.jsx(Rl,{label:`${m.label.value} ${v}`,isActive:S(R),onClick:()=>l(R),header:zE(v),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(Tl,{keyPath:R,section:e,dictionaryKey:n})})})},v)})})}return N.jsxs(N.Fragment,{children:["Error loading section --",_,"--",JSON.stringify(a),"--",JSON.stringify(t)]})},Wq=({dictionary:e,isDarkMode:t})=>{var g,_;const{content:n,key:r}=e,{editedContent:a}=On(),{focusedContent:o,setFocusedContentKeyPath:l}=vi(),d=o==null?void 0:o.keyPath,f=typeof((g=a==null?void 0:a[e.key])==null?void 0:g.content)>"u"?n:(_=a==null?void 0:a[r])==null?void 0:_.content,A=Gr(f,d??[]),m=Bs(f),E=Bs(A);return C.useEffect(()=>{var S;typeof A>"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(Zq,{dictionaryKey:r,keyPath:d??[],onClickKeyPath:l}),N.jsx("div",{className:"flex items-center gap-2",children:N.jsx(xK,{})})]}),N.jsxs("div",{className:"flex gap-2 max-md:flex-col",children:[typeof f=="object"&&f&&!m&&Object.keys(f).length>0&&N.jsx(eu,{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(Tl,{keyPath:[],section:f,dictionaryKey:r})}),(E||(d??[]).length>0)&&N.jsx(lA,{keyPath:d??[],section:A,dictionary:e,isDarkMode:t})]})]})},$q={key:"dictionary-details",content:{titleInput:{label:_e({en:"Title","en-GB":"Title",fr:"Titre",es:"Título",de:"Titel",ja:"タイトル",ko:"제목",zh:"标题",it:"Titolo",pt:"Título",hi:"शीर्षक",ar:"العنوان",ru:"Заголовок"}),description:_e({en:"The title of your dictionary allows you to easily identify it","en-GB":"The title of your dictionary allows you to easily identify it",fr:"Le titre de votre dictionnaire permet de l'identifier facilement",es:"El título de su diccionario le permite identificar fácilmente",de:"Der Titel Ihres Wörterbuchs ermöglicht es Ihnen, es leicht zu identifizieren",ja:"辞書のタイトルは、それを簡単に識別することができます",ko:"사전의 제목은 이를 쉽게 식별할 수 있게 해줍니다",zh:"字典的标题使您能够轻松识别它",it:"Il titolo del tuo dizionario ti consente di identificarlo facilmente",pt:"O título do seu dicionário permite que você o identifique facilmente",hi:"आपके शब्दकोश का शीर्षक इसे आसानी से पहचानने में मदद करता है",ar:"يتيح لك عنوان القاموس الخاص بك التعرف عليه بسهولة",ru:"Название вашего словаря позволяет легко его идентифицировать"}),placeholder:_e({en:"Enter the title of your dictionary","en-GB":"Enter the title of your dictionary",fr:"Entrez le titre de votre dictionnaire",es:"Ingrese el título de su diccionario",de:"Geben Sie den Titel Ihres Wörterbuchs ein",ja:"辞書のタイトルを入力してください",ko:"사전의 제목을 입력하세요",zh:"输入字典的标题",it:"Inserisci il titolo del tuo dizionario",pt:"Insira o título do seu dicionário",hi:"आपके शब्दकोश का शीर्षक दर्ज करें",ar:"أدخل عنوان القاموس الخاص بك",ru:"Введите название вашего словаря"})},keyInput:{label:_e({en:"Key","en-GB":"Key",fr:"Clé",es:"Clave",de:"Schlüssel",ja:"キー",ko:"키",zh:"键",it:"Chiave",pt:"Chave",hi:"कुंजी",ar:"مفتاح",ru:"Ключ"}),description:_e({en:"The key of your dictionary is used to identify it in the application","en-GB":"The key of your dictionary is used to identify it in the application",fr:"La clé de votre dictionnaire est utilisée pour l'identifier dans l'application",es:"La clave de su diccionario se utiliza para identificarla en la aplicación",de:"Der Schlüssel Ihres Wörterbuchs wird verwendet, um es in der Anwendung zu identifizieren",ja:"辞書のキーは、アプリケーション内でそれを識別するために使用されます",ko:"사전의 키는 애플리케이션에서 이를 식별하는 데 사용됩니다",zh:"字典的键用于在应用程序中识别它",it:"La chiave del tuo dizionario viene utilizzata per identificarlo nell'applicazione",pt:"A chave do seu dicionário é usada para identificá-lo no aplicativo",hi:"आपके शब्दकोश की कुंजी इसे एप्लिकेशन में पहचानने के लिए उपयोग की जाती है",ar:"مفتاح القاموس الخاص بك يُستخدم لتحديده في التطبيق",ru:"Ключ вашего словаря используется для его идентификации в приложении"}),placeholder:_e({en:"Enter the key of your dictionary","en-GB":"Enter the key of your dictionary",fr:"Entrez la clé de votre dictionnaire",es:"Ingrese la clave de su diccionario",de:"Geben Sie den Schlüssel Ihres Wörterbuchs ein",ja:"辞書のキーを入力してください",ko:"사전의 키를 입력하세요",zh:"输入字典的键",it:"Inserisci la chiave del tuo dizionario",pt:"Insira a chave do seu dicionário",hi:"अपने शब्दकोश की कुंजी दर्ज करें",ar:"أدخل مفتاح القاموس الخاص بك",ru:"Введите ключ вашего словаря"})},descriptionInput:{label:_e({en:"Description","en-GB":"Description",fr:"Description",es:"Descripción",de:"Beschreibung",ja:"説明",ko:"설명",zh:"描述",it:"Descrizione",pt:"Descrição",hi:"विवरण",ar:"الوصف",ru:"Описание"}),placeholder:_e({en:"Enter the description of your dictionary","en-GB":"Enter the description of your dictionary",fr:"Entrez la description de votre dictionnaire",es:"Ingrese la descripción de su diccionario",de:"Geben Sie die Beschreibung Ihres Wörterbuchs ein",ja:"辞書の説明を入力してください",ko:"사전의 설명을 입력하세요",zh:"输入字典的描述",it:"Inserisci la descrizione del tuo dizionario",pt:"Insira a descrição do seu dicionário",hi:"अपने शब्दकोश का विवरण दर्ज करें",ar:"أدخل وصف القاموس الخاص بك",ru:"Введите описание вашего словаря"}),description:_e({en:"The description of your dictionary allows you to easily identify it using keywords. It is also used to search for your dictionary, and to assist the AI in understanding your dictionary.","en-GB":"The description of your dictionary allows you to easily identify it using keywords. It is also used to search for your dictionary, and to assist the AI in understanding your dictionary.",fr:"La description de votre dictionnaire permet d'identifier facilement l'utilisateur en utilisant des mots-clés. Elle est également utilisée pour rechercher votre dictionnaire et pour aider l'IA à comprendre votre dictionnaire.",es:"La descripción de su diccionario le permite identificar fácilmente el usuario utilizando palabras clave. También se utiliza para buscar su diccionario y para ayudar a la IA a entender su diccionario.",de:"Die Beschreibung Ihres Wörterbuchs ermöglicht es Ihnen, es mit Schlüsselwörtern leicht zu identifizieren. Sie wird auch verwendet, um nach Ihrem Wörterbuch zu suchen und der KI zu helfen, Ihr Wörterbuch zu verstehen.",ja:"辞書の説明は、キーワードを使用して簡単に識別できます。また、辞書を検索するために使用され、AIが辞書を理解するのを助けます。",ko:"사전의 설명은 키워드를 사용하여 쉽게 식별할 수 있습니다. 또한 사전을 검색하고 AI가 사전을 이해하는 데 도움을 줍니다.",zh:"您字典的描述使您能够使用关键字轻松地识别它。它还用于搜索您的字典,以及帮助 AI 理解您的字典。",it:"La descrizione del tuo dizionario ti consente di identificarlo facilmente utilizzando parole chiave. Viene anche utilizzata per cercare il tuo dizionario e per assistere l'IA nella comprensione del tuo dizionario.",pt:"A descrição do seu dicionário permite que você o identifique facilmente usando palavras-chave. Também é usada para pesquisar seu dicionário e para ajudar a IA a entender seu dicionário.",hi:"आपके शब्दकोश का विवरण आपको कुंजीशब्दों का उपयोग करके इसे आसानी से पहचानने की अनुमति देता है। इसका उपयोग आपके शब्दकोश की खोज करने और AI को आपके शब्दकोश को समझने में मदद करने के लिए भी किया जाता है।",ar:"يتيح لك وصف القاموس الخاص بك التعرف عليه بسهولة باستخدام الكلمات الرئيسية. كما أنه يستخدم للبحث عن القاموس الخاص بك ، ولمساعدة الذكاء الاصطناعي على فهم القاموس الخاص بك.",ru:"Описание вашего словаря позволяет легко его идентифицировать с помощью ключевых слов. Оно также используется для поиска вашего словаря и для помощи ИИ в понимании вашего словаря."})},projectInput:{label:_e({en:"Projects","en-GB":"Projects",fr:"Projets",es:"Proyectos",de:"Projekte",ja:"プロジェクト",ko:"프로젝트",zh:"项目",it:"Progetti",pt:"Projetos",hi:"परियोजनाएँ",ar:"المشاريع",ru:"Проекты"}),description:_e({en:"A dictionary can be associated with one or more projects. This allows you load the dictionary on different applications, and share it across different teams.","en-GB":"A dictionary can be associated with one or more projects. This allows you to load the dictionary on different applications, and share it across different teams.",fr:"Un dictionnaire peut être associé à un ou plusieurs projets. Cela permet de charger le dictionnaire sur différentes applications et de le partager entre différentes équipes.",es:"Un diccionario puede estar asociado con uno o más proyectos. Esto permite cargar el diccionario en diferentes aplicaciones y compartirlo entre diferentes equipos.",de:"Ein Wörterbuch kann mit einem oder mehreren Projekten verknüpft werden. Dies ermöglicht es Ihnen, das Wörterbuch in verschiedenen Anwendungen zu laden und es in verschiedenen Teams zu teilen.",ja:"辞書は1つ以上のプロジェクトに関連付けることができます。これにより、辞書を異なるアプリケーションにロードし、異なるチーム間で共有できます。",ko:"사전은 하나 이상의 프로젝트와 연결할 수 있습니다. 이를 통해 사전을 다양한 애플리케이션에 로드하고 다양한 팀 간에 공유할 수 있습니다.",zh:"字典可以与一个或多个项目关联。这使您能够在不同的应用程序中加载字典,并在不同的团队之间共享。",it:"Un dizionario può essere associato a uno o più progetti. Questo ti consente di caricare il dizionario in diverse applicazioni e condividerlo tra diversi team.",pt:"Um dicionário pode ser associado a um ou mais projetos. Isso permite que você carregue o dicionário em diferentes aplicativos e o compartilhe entre diferentes equipes.",hi:"एक शब्दकोश को एक या अधिक परियोजनाओं से जोड़ा जा सकता है। यह आपको विभिन्न अनुप्रयोगों में शब्दकोश लोड करने और विभिन्न टीमों के बीच साझा करने की अनुमति देता है।",ar:"يمكن ربط قاموس بواحد أو أكثر من المشاريع. وهذا يتيح لك تحميل القاموس على تطبيقات مختلفة ومشاركته عبر فرق مختلفة.",ru:"Словарь можно ассоциировать с одним или несколькими проектами. Это позволяет загружать словарь в различных приложениях и делиться им между разными командами."}),placeholder:_e({en:"Select one or more projects to associate with your dictionary","en-GB":"Select one or more projects to associate with your dictionary",fr:"Sélectionnez un ou plusieurs projets à associer à votre dictionnaire",es:"Seleccione uno o más proyectos para asociar con su diccionario",de:"Wählen Sie ein oder mehrere Projekte aus, um sie mit Ihrem Wörterbuch zu verknüpfen",ja:"辞書に関連付けるプロジェクトを1つ以上選択してください",ko:"사전과 연결할 하나 이상의 프로젝트를 선택하세요",zh:"选择一个或多个项目以与您的字典关联",it:"Seleziona uno o più progetti da associare al tuo dizionario",pt:"Selecione um ou mais projetos para associar ao seu dicionário",hi:"अपने शब्दकोश से जोड़ने के लिए एक या अधिक परियोजनाएँ चुनें",ar:"حدد مشروعًا أو أكثر لربطه بقاموسك",ru:"Выберите один или несколько проектов, чтобы связать их с вашим словарем"})},tagsSelect:{label:_e({en:"Tags","en-GB":"Tags",fr:"Tags",es:"Etiquetas",de:"Tags",ja:"タグ",ko:"태그",zh:"标签",it:"Tag",pt:"Tags",hi:"टैग",ar:"الوسوم",ru:"Теги"}),description:_e({en:"A dictionary can be associated with one or more tags. This allows you to load the dictionary on different applications, and share it across different teams.","en-GB":"A dictionary can be associated with one or more tags. This allows you to load the dictionary on different applications, and share it across different teams.",fr:"Un dictionnaire peut être associé à un ou plusieurs tags. Cela permet de charger le dictionnaire dans différentes applications et de le partager entre différentes équipes.",es:"Un diccionario puede estar asociado con uno o más tags. Esto permite cargar el diccionario en diferentes aplicaciones y compartirlo entre diferentes equipos.",de:"Ein Wörterbuch kann mit einem oder mehreren Tags verknüpft werden. Dies ermöglicht es Ihnen, das Wörterbuch in verschiedenen Anwendungen zu laden und es in verschiedenen Teams zu teilen.",ja:"辞書は1つ以上のタグに関連付けることができます。これにより、辞書を異なるアプリケーションにロードし、異なるチーム間で共有できます。",ko:"사전은 태그를 하나 이상의 태그로 연결할 수 있습니다. 이를 통해 사전을 다양한 애플리케이션에 로드하고 다양한 팀 간에 공유할 수 있습니다.",zh:"字典可以与一个或多个标签关联。这使您能够在不同的应用程序中加载字典,并在不同的团队之间共享。",it:"Un dizionario può essere associato a uno o più tag. Questo ti consente di caricare il dizionario in diverse applicazioni e condividerlo tra diversi team.",pt:"Um dicionário pode ser associado a um ou mais tags. Isso permite que você carregue o dicionário em diferentes aplicativos e o compartilhe entre diferentes equipes."}),placeholder:_e({en:"Select the tags to associate with your dictionary","en-GB":"Select the tags to associate with your dictionary",fr:"Sélectionnez les tags à associer à votre dictionnaire",es:"Seleccione los tags para asociar con su diccionario",de:"Wählen Sie die Tags, die mit Ihrem Wörterbuch verknüpft werden sollen",ja:"辞書に関連付けるタグを選択してください",ko:"사전과 연결할 태그를 선택하세요",zh:"选择与您的字典相关的标签",it:"Seleziona i tag da associare al tuo dizionario",pt:"Selecione os tags para associar ao seu dicionário",hi:"अपने शब्दकोश से जोड़ने के लिए टैग का चयन करें",ar:"حدد الوسوم التي تريد ربطها بقاموسك",ru:"Выберите теги, которые нужно связать с словарем"})},auditButton:{label:_e({en:"Audit",fr:"Auditer",es:"Auditar","en-GB":"Audit",de:"Prüfen",ja:"監査",ko:"감사",zh:"审核",it:"Controllare",pt:"Auditar",hi:"ऑडिट",ar:"التدقيق",ru:"Отслеживание"}),text:_e({en:"Audit",fr:"Auditer",es:"Auditar","en-GB":"Audit",de:"Prüfen",ja:"監査",ko:"감사",zh:"审核",it:"Controllare",pt:"Auditar",hi:"ऑडिट",ar:"التدقيق",ru:"Отслеживание"})}}},qq={key:"dictionary-detail-schema",content:{titleRequiredError:_e({en:"Please enter a name for your organization.","en-GB":"Please enter a name for your organization.",fr:"Veuillez saisir un nom pour votre organisation.",es:"Por favor, ingrese un nombre para su organización.",de:"Bitte geben Sie einen Namen für Ihre Organisation ein.",ja:"あなたの組織の名前を入力してください。",ko:"조직 이름을 입력하세요.",zh:"请输入您组织的名称。",it:"Si prega di inserire un nome per la propria organizzazione.",pt:"Por favor, insira um nome para sua organização.",hi:"कृपया अपने संगठन का नाम दर्ज करें।",ar:"يرجى إدخال اسم منظمتك.",ru:"Пожалуйста, введите название вашей организации."}),titleInvalidTypeError:_e({en:"The organization name must be a valid string.","en-GB":"The organization name must be a valid string.",fr:"Le nom de votre organisation doit être une chaîne valide.",es:"El nombre de su organización debe ser una cadena válida.",de:"Der Name der Organisation muss eine gültige Zeichenfolge sein.",ja:"組織名は有効な文字列である必要があります。",ko:"조직 이름은 유효한 문자열이어야 합니다.",zh:"组织名称必须是有效的字符串。",it:"Il nome dell'organizzazione deve essere una stringa valida.",pt:"O nome da organização deve ser uma string válida.",hi:"संगठन का नाम एक वैध स्ट्रिंग होना चाहिए।",ar:"يجب أن يكون اسم المنظمة سلسلة صحيحة.",ru:"Имя организации должно быть правильной строкой."}),titleMinLengthError:_e({en:"The organization name must be at least 4 characters long.","en-GB":"The organization name must be at least 4 characters long.",fr:"Le nom de votre organisation doit comporter au moins 4 caractères.",es:"El nombre de su organización debe tener al menos 4 caracteres.",de:"Der Name der Organisation muss mindestens 4 Zeichen lang sein.",ja:"組織名は4文字以上でなければなりません。",ko:"조직 이름은 4자 이상이어야 합니다.",zh:"组织名称必须至少4个字符。",it:"Il nome dell'organizzazione deve essere lungo almeno 4 caratteri.",pt:"O nome da organização deve ter pelo menos 4 caracteres.",hi:"संगठन का नाम कम से कम 4 वर्ण का होना चाहिए।",ar:"يجب أن يكون اسم المنظمة مكونًا من 4 أحرف على الأقل.",ru:"Имя организации должно содержать не менее 4 символов."}),keyRequiredError:_e({en:"Please enter a key for your organization.","en-GB":"Please enter a key for your organization.",fr:"Veuillez saisir une clé pour votre organisation.",es:"Por favor, ingrese una clave para su organización.",de:"Bitte geben Sie einen Schlüssel für Ihre Organisation ein.",ja:"あなたの組織のためにキーを入力してください。",ko:"조직에 대한 키를 입력하세요.",zh:"请输入您组织的键。",it:"Si prega di inserire una chiave per la propria organizzazione.",pt:"Por favor, insira uma chave para sua organização.",hi:"कृपया अपने संगठन के लिए एक कुंजी दर्ज करें।",ar:"يرجى إدخال مفتاح لمنظمتك.",ru:"Пожалуйста, введите ключ для вашей организации."}),keyInvalidTypeError:_e({en:"The key must be a valid string.","en-GB":"The key must be a valid string.",fr:"La clé doit être une chaîne valide.",es:"La clave debe ser una cadena válida.",de:"Der Schlüssel muss eine gültige Zeichenfolge sein.",ja:"キーは有効な文字列である必要があります。",ko:"키는 유효한 문자열이어야 합니다.",zh:"关键字必须是有效的字符串。",it:"La chiave deve essere una stringa valida.",pt:"A chave deve ser uma string válida.",hi:"कुंजी एक वैध स्ट्रिंग होनी चाहिए।",ar:"يجب أن يكون المفتاح سلسلة صحيحة.",ru:"Ключ должен быть правильной строкой."}),keySpaceError:_e({en:"The key cannot contain spaces or special characters.","en-GB":"The key cannot contain spaces or special characters.",fr:"La clé ne peut pas contenir d'espaces ou de caractères spéciaux.",es:"La clave no puede contener espacios o caracteres especiales.",de:"Der Schlüssel darf keine Leerzeichen oder Sonderzeichen enthalten.",ja:"キーにはスペースや特殊文字を含めることはできません。",ko:"키에는 공백이나 특수 문자가 포함될 수 없습니다.",zh:"关键字不能包含空格或特殊字符。",it:"La chiave non può contenere spazi o caratteri speciali.",pt:"A chave não pode conter espaços ou caracteres especiais.",hi:"कुंजी में स्पेस या विशेष वर्ण नहीं हो सकते।",ar:"لا يمكن أن يحتوي المفتاح على مسافات أو أحرف خاصة.",ru:"Ключ не может содержать пробелы или специальные символы."}),keyMinLengthError:_e({en:"The key must be at least 4 characters long.","en-GB":"The key must be at least 4 characters long.",fr:"La clé doit comporter au moins 4 caractères.",es:"La clave debe tener al menos 4 caracteres.",de:"Der Schlüssel muss mindestens 4 Zeichen lang sein.",ja:"キーは4文字以上でなければなりません。",ko:"키는 4자 이상이어야 합니다.",zh:"键必须至少为4个字符。",it:"La chiave deve essere lunga almeno 4 caratteri.",pt:"A chave deve ter pelo menos 4 caracteres.",hi:"कुंजी में कम से कम 4 वर्ण होने चाहिए।",ar:"يجب أن يكون المفتاح مكونًا من 4 أحرف على الأقل.",ru:"Ключ должен содержать не менее 4 символов."}),descriptionRequiredError:_e({en:"Please enter a description for your organization.","en-GB":"Please enter a description for your organization.",fr:"Veuillez saisir une description pour votre organisation.",es:"Por favor, ingrese una descripción para su organización.",de:"Bitte geben Sie eine Beschreibung für Ihre Organisation ein.",ja:"あなたの組織の説明を入力してください。",ko:"조직에 대한 설명을 입력하세요.",zh:"请输入您组织的描述。",it:"Si prega di inserire una descrizione per la propria organizzazione.",pt:"Por favor, insira uma descrição para sua organização.",hi:"कृपया अपने संगठन का विवरण दर्ज करें।",ar:"يرجى إدخال وصف لمنظمتك.",ru:"Пожалуйста, введите описание вашей организации."}),descriptionInvalidTypeError:_e({en:"The description must be a valid string.","en-GB":"The description must be a valid string.",fr:"La description doit être une chaîne valide.",es:"La descripción debe ser una cadena válida.",de:"Die Beschreibung muss eine gültige Zeichenfolge sein.",ja:"説明は有効な文字列である必要があります。",ko:"설명은 유효한 문자열이어야 합니다.",zh:"描述必须是有效的字符串。",it:"La descrizione deve essere una stringa valida.",pt:"A descrição deve ser uma string válida.",hi:"विवरण एक वैध स्ट्रिंग होना चाहिए।",ar:"يجب أن يكون الوصف سلسلة صحيحة.",ru:"Описание должно быть правильной строкой."}),requiredErrorProjectId:_e({en:"Please select a project","en-GB":"Please select a project",fr:"Veuillez sélectionner un projet",es:"Por favor, seleccione un proyecto",de:"Bitte wählen Sie ein Projekt aus",ja:"プロジェクトを選択してください",ko:"프로젝트를 선택하세요",zh:"请选择一个项目",it:"Si prega di selezionare un progetto",pt:"Por favor, selecione um projeto",hi:"कृपया एक प्रोजेक्ट चुनें",ar:"يرجى اختيار مشروع",ru:"Пожалуйста, выберите проект"}),invalidTypeErrorProjectId:_e({en:"Please select a valid project","en-GB":"Please select a valid project",fr:"Veuillez sélectionner un projet valide",es:"Por favor, seleccione un proyecto válido",de:"Bitte wählen Sie ein gültiges Projekt aus",ja:"有効なプロジェクトを選択してください",ko:"유효한 프로젝트를 선택하세요",zh:"请选择有效的项目",it:"Si prega di selezionare un progetto valido",pt:"Por favor, selecione um projeto válido",hi:"कृपया एक वैध परियोजना चुनें",ar:"يرجى اختيار مشروع صالح",ru:"Пожалуйста, выберите действительный проект"}),invalidTypeErrorTags:_e({en:"Please enter a valid tag","en-GB":"Please enter a valid tag",fr:"Veuillez saisir un tag valide",es:"Por favor, ingrese un tag válido",de:"Bitte geben Sie einen gültigen Tag ein",ja:"有効なタグを入力してください",ko:"유효한 태그를 입력하세요",zh:"请输入有效的标签",it:"Si prega di inserire un tag valido",pt:"Por favor, insira um tag válido",hi:"कृपया एक वैध टैग दर्ज करें",ar:"يرجى إدخال وسم صالح",ru:"Пожалуйста, введите действительный тег"})}},Qq=e=>{const{titleRequiredError:t,titleInvalidTypeError:n,titleMinLengthError:r,keyRequiredError:a,keyInvalidTypeError:o,keySpaceError:l,keyMinLengthError:d,descriptionRequiredError:f,descriptionInvalidTypeError:A,requiredErrorProjectId:m,invalidTypeErrorProjectId:E,invalidTypeErrorTags:g}=rn(qq);return li.object({title:li.string({required_error:t.value,invalid_type_error:n.value}).refine(_=>_.length===0||_.length>=4,{message:r.value}).optional(),key:li.string({required_error:a.value,invalid_type_error:o.value}).min(4,{message:d.value}).regex(/^[a-zA-Z0-9-_]+$/,{message:l.value}).default(""),description:li.string({required_error:f.value,invalid_type_error:A.value}).optional(),projectIds:li.array(li.string({required_error:m.value,invalid_type_error:E.value})).default([e]),tags:li.array(li.string({invalid_type_error:g.value})).default([])})},Xq=({dictionary:e})=>{var b,O;const{session:t}=Cc(),{project:n}=t??{},{data:r,isLoading:a}=HM(),{data:o}=kM(),l=Qq(String(n==null?void 0:n._id)),{form:d,isSubmitting:f}=vk(l,{defaultValues:e}),{editedContent:A,setEditedDictionary:m}=On(),{titleInput:E,keyInput:g,descriptionInput:_,projectInput:S,tagsSelect:y,auditButton:v}=rn($q),{auditContentDeclaration:R,isLoading:D}=GM(),x=A==null?void 0:A[e.key];C.useEffect(()=>{d.reset(e)},[e,d==null?void 0:d.reset]),C.useEffect(()=>{typeof x>"u"&&d.reset(e)},[x]);const L=async()=>{const F={...e,...x};await R({fileContent:JSON.stringify(F)}).then(j=>{if(j!=null&&j.data)try{const G=JSON.parse(j.data.fileContent);m(K=>({...K,...F,...G})),d.reset({...F,...G})}catch(G){console.error(G)}})};return N.jsx(eu,{background:"none",border:!0,roundedSize:"2xl",className:"w-full px-5 pb-3 pt-5",children:N.jsxs(ut,{className:"flex w-full flex-col gap-8",...d,schema:l,onChange:F=>m(j=>({...j,...F})),children:[N.jsxs("div",{className:"flex w-full flex-1 gap-8 max-md:flex-col",children:[N.jsx(ut.EditableFieldInput,{name:"key",label:g.label,placeholder:g.label.value,description:g.description,disabled:f,isRequired:!0,onSave:F=>{d.setValue("key",F),m(j=>({...e,...j??{},key:F}))}}),N.jsx(ut.EditableFieldInput,{name:"title",label:E.label,placeholder:E.placeholder.value,description:E.description,disabled:f,onSave:F=>{d.setValue("title",F),m(j=>({...e,...j??{},title:F}))}})]}),N.jsx(ut.EditableFieldTextArea,{name:"description",label:_.label,placeholder:_.placeholder.value,description:_.description,disabled:f,onSave:F=>{d.setValue("description",F),m(j=>({...e,...j??{},description:F}))}}),N.jsxs("div",{className:"flex size-full flex-1 gap-8 max-md:flex-col",children:[N.jsxs(ut.MultiSelect,{name:"projectIds",label:S.label.value,description:S.description.value,onValueChange:F=>{const j=[F].flat();d.setValue("projectIds",j),m(G=>({...e,...G??{},projectIds:j}))},children:[N.jsx(mn.Trigger,{getBadgeValue:F=>{var j,G;return((G=(j=r==null?void 0:r.data)==null?void 0:j.find(K=>String(K._id)===F))==null?void 0:G.name)??F},children:N.jsx(mn.Input,{placeholder:S.placeholder.value})}),N.jsx(mn.Content,{children:N.jsx(Us,{isLoading:a,children:N.jsx(mn.List,{children:(b=r==null?void 0:r.data)==null?void 0:b.map(F=>N.jsx(mn.Item,{value:String(F._id),children:F.name},String(F._id)))})})})]}),N.jsxs(ut.MultiSelect,{name:"tags",label:y.label.value,description:y.description.value,onValueChange:F=>{d.setValue("tags",[F].flat()),m(j=>({...e,...j??{},tags:[F].flat()}))},children:[N.jsx(mn.Trigger,{getBadgeValue:F=>{var j,G;return((G=(j=r==null?void 0:r.data)==null?void 0:j.find(K=>String(K._id)===F))==null?void 0:G.name)??F},children:N.jsx(mn.Input,{placeholder:y.placeholder.value})}),N.jsx(mn.Content,{children:N.jsx(Us,{isLoading:a,children:N.jsx(mn.List,{children:(O=o==null?void 0:o.data)==null?void 0:O.map(F=>N.jsx(mn.Item,{value:String(F.key),children:F.name??F.key},String(F.key)))})})})]})]}),N.jsx("div",{className:"flex flex-wrap items-center justify-end gap-2 max-md:flex-col",children:N.jsx(ut.Button,{type:"button",label:v.label.value,Icon:Qv,variant:"outline",color:"text",className:"max-md:w-full",onClick:L,disabled:f||D,isLoading:D,children:v.text})})]})})},Jq={key:"dictionary-field-editor",content:{returnToDictionaryList:{label:_e({en:"Return to dictionary list","en-GB":"Return to dictionary list",fr:"Retourner à la liste des dictionnaires",es:"Volver a la lista de diccionarios",de:"Zurück zur Wörterbuchliste",ja:"辞書リストに戻る",ko:"사전 목록으로 돌아가기",zh:"返回字典列表",it:"Torna all'elenco dei dizionari",pt:"Voltar à lista de dicionários",hi:"शब्दकोश सूची में वापस जाएं",ar:"العودة إلى قائمة المعاجم",ru:"Вернуться к списку словарей"}),text:_e({en:"Dictionary list","en-GB":"Dictionary list",fr:"Liste des dictionnaires",es:"Lista de diccionarios",de:"Wörterbuchliste",ja:"辞書リスト",ko:"사전 목록",zh:"字典列表",it:"Elenco dei dizionari",pt:"Lista de dicionários",hi:"शब्दकोश सूची",ar:"قائمة المعاجم",ru:"Список словарей"})}}};function eQ(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ky(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Yy(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Ky(Object(n),!0).forEach(function(r){eQ(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ky(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function tQ(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,o;for(o=0;o<r.length;o++)a=r[o],!(t.indexOf(a)>=0)&&(n[a]=e[a]);return n}function nQ(e,t){if(e==null)return{};var n=tQ(e,t),r,a;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)r=o[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function rQ(e,t){return uQ(e)||iQ(e,t)||aQ(e,t)||sQ()}function uQ(e){if(Array.isArray(e))return e}function iQ(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var n=[],r=!0,a=!1,o=void 0;try{for(var l=e[Symbol.iterator](),d;!(r=(d=l.next()).done)&&(n.push(d.value),!(t&&n.length===t));r=!0);}catch(f){a=!0,o=f}finally{try{!r&&l.return!=null&&l.return()}finally{if(a)throw o}}return n}}function aQ(e,t){if(e){if(typeof e=="string")return Zy(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 Zy(e,t)}}function Zy(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 sQ(){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 oQ(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Wy(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function $y(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Wy(Object(n),!0).forEach(function(r){oQ(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Wy(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function lQ(){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(a,o){return o(a)},r)}}function xl(e){return function t(){for(var n=this,r=arguments.length,a=new Array(r),o=0;o<r;o++)a[o]=arguments[o];return a.length>=e.length?e.apply(this,a):function(){for(var l=arguments.length,d=new Array(l),f=0;f<l;f++)d[f]=arguments[f];return t.apply(n,[].concat(a,d))}}}function vf(e){return{}.toString.call(e).includes("Object")}function cQ(e){return!Object.keys(e).length}function mc(e){return typeof e=="function"}function dQ(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function fQ(e,t){return vf(t)||mi("changeType"),Object.keys(t).some(function(n){return!dQ(e,n)})&&mi("changeField"),t}function AQ(e){mc(e)||mi("selectorType")}function hQ(e){mc(e)||vf(e)||mi("handlerType"),vf(e)&&Object.values(e).some(function(t){return!mc(t)})&&mi("handlersType")}function mQ(e){e||mi("initialIsRequired"),vf(e)||mi("initialType"),cQ(e)&&mi("initialContent")}function pQ(e,t){throw new Error(e[t]||e.default)}var EQ={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"},mi=xl(pQ)(EQ),_0={changes:fQ,selector:AQ,handler:hQ,initial:mQ};function gQ(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};_0.initial(e),_0.handler(t);var n={current:e},r=xl(IQ)(n,t),a=xl(NQ)(n),o=xl(_0.changes)(e),l=xl(_Q)(n);function d(){var A=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(m){return m};return _0.selector(A),A(n.current)}function f(A){lQ(r,a,o,l)(A)}return[d,f]}function _Q(e,t){return mc(t)?t(e.current):t}function NQ(e,t){return e.current=$y($y({},e.current),t),t}function IQ(e,t,n){return mc(t)?t(e.current):Object.keys(n).forEach(function(r){var a;return(a=t[r])===null||a===void 0?void 0:a.call(t,e.current[r])}),n}var SQ={create:gQ},CQ={paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.52.2/min/vs"}};function yQ(e){return function t(){for(var n=this,r=arguments.length,a=new Array(r),o=0;o<r;o++)a[o]=arguments[o];return a.length>=e.length?e.apply(this,a):function(){for(var l=arguments.length,d=new Array(l),f=0;f<l;f++)d[f]=arguments[f];return t.apply(n,[].concat(a,d))}}}function vQ(e){return{}.toString.call(e).includes("Object")}function RQ(e){return e||qy("configIsRequired"),vQ(e)||qy("configType"),e.urls?(DQ(),{paths:{vs:e.urls.monacoBase}}):e}function DQ(){console.warn(Ux.deprecation)}function TQ(e,t){throw new Error(e[t]||e.default)}var Ux={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
|
+
`},qy=yQ(TQ)(Ux),xQ={config:RQ},bQ=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return function(a){return n.reduceRight(function(o,l){return l(o)},a)}};function kx(e,t){return Object.keys(t).forEach(function(n){t[n]instanceof Object&&e[n]&&Object.assign(t[n],kx(e[n],t[n]))}),Yy(Yy({},e),t)}var BQ={type:"cancelation",msg:"operation is manually canceled"};function Bp(e){var t=!1,n=new Promise(function(r,a){e.then(function(o){return t?a(BQ):r(o)}),e.catch(a)});return n.cancel=function(){return t=!0},n}var OQ=SQ.create({config:CQ,isInitialized:!1,resolve:null,reject:null,monaco:null}),Gx=rQ(OQ,2),kc=Gx[0],cA=Gx[1];function FQ(e){var t=xQ.config(e),n=t.monaco,r=nQ(t,["monaco"]);cA(function(a){return{config:kx(a.config,r),monaco:n}})}function LQ(){var e=kc(function(t){var n=t.monaco,r=t.isInitialized,a=t.resolve;return{monaco:n,isInitialized:r,resolve:a}});if(!e.isInitialized){if(cA({isInitialized:!0}),e.monaco)return e.resolve(e.monaco),Bp(Op);if(window.monaco&&window.monaco.editor)return jx(window.monaco),e.resolve(window.monaco),Bp(Op);bQ(wQ,HQ)(PQ)}return Bp(Op)}function wQ(e){return document.body.appendChild(e)}function MQ(e){var t=document.createElement("script");return e&&(t.src=e),t}function HQ(e){var t=kc(function(r){var a=r.config,o=r.reject;return{config:a,reject:o}}),n=MQ("".concat(t.config.paths.vs,"/loader.js"));return n.onload=function(){return e()},n.onerror=t.reject,n}function PQ(){var e=kc(function(n){var r=n.config,a=n.resolve,o=n.reject;return{config:r,resolve:a,reject:o}}),t=window.require;t.config(e.config),t(["vs/editor/editor.main"],function(n){jx(n),e.resolve(n)},function(n){e.reject(n)})}function jx(e){kc().monaco||cA({monaco:e})}function UQ(){return kc(function(e){var t=e.monaco;return t})}var Op=new Promise(function(e,t){return cA({resolve:e,reject:t})}),Vx={config:FQ,init:LQ,__getMonacoInstance:UQ},kQ={wrapper:{display:"flex",position:"relative",textAlign:"initial"},fullWidth:{width:"100%"},hide:{display:"none"}},Fp=kQ,GQ={container:{display:"flex",height:"100%",width:"100%",justifyContent:"center",alignItems:"center"}},jQ=GQ;function VQ({children:e}){return Ke.createElement("div",{style:jQ.container},e)}var zQ=VQ,KQ=zQ;function YQ({width:e,height:t,isEditorReady:n,loading:r,_ref:a,className:o,wrapperProps:l}){return Ke.createElement("section",{style:{...Fp.wrapper,width:e,height:t},...l},!n&&Ke.createElement(KQ,null,r),Ke.createElement("div",{ref:a,style:{...Fp.fullWidth,...!n&&Fp.hide},className:o}))}var ZQ=YQ,zx=C.memo(ZQ);function WQ(e){C.useEffect(e,[])}var Kx=WQ;function $Q(e,t,n=!0){let r=C.useRef(!0);C.useEffect(r.current||!n?()=>{r.current=!1}:e,t)}var Vn=$Q;function Gl(){}function Os(e,t,n,r){return qQ(e,r)||QQ(e,t,n,r)}function qQ(e,t){return e.editor.getModel(Yx(e,t))}function QQ(e,t,n,r){return e.editor.createModel(t,n,r?Yx(e,r):void 0)}function Yx(e,t){return e.Uri.parse(t)}function XQ({original:e,modified:t,language:n,originalLanguage:r,modifiedLanguage:a,originalModelPath:o,modifiedModelPath:l,keepCurrentOriginalModel:d=!1,keepCurrentModifiedModel:f=!1,theme:A="light",loading:m="Loading...",options:E={},height:g="100%",width:_="100%",className:S,wrapperProps:y={},beforeMount:v=Gl,onMount:R=Gl}){let[D,x]=C.useState(!1),[L,b]=C.useState(!0),O=C.useRef(null),F=C.useRef(null),j=C.useRef(null),G=C.useRef(R),K=C.useRef(v),Ae=C.useRef(!1);Kx(()=>{let J=Vx.init();return J.then(k=>(F.current=k)&&b(!1)).catch(k=>(k==null?void 0:k.type)!=="cancelation"&&console.error("Monaco initialization: error:",k)),()=>O.current?$():J.cancel()}),Vn(()=>{if(O.current&&F.current){let J=O.current.getOriginalEditor(),k=Os(F.current,e||"",r||n||"text",o||"");k!==J.getModel()&&J.setModel(k)}},[o],D),Vn(()=>{if(O.current&&F.current){let J=O.current.getModifiedEditor(),k=Os(F.current,t||"",a||n||"text",l||"");k!==J.getModel()&&J.setModel(k)}},[l],D),Vn(()=>{let J=O.current.getModifiedEditor();J.getOption(F.current.editor.EditorOption.readOnly)?J.setValue(t||""):t!==J.getValue()&&(J.executeEdits("",[{range:J.getModel().getFullModelRange(),text:t||"",forceMoveMarkers:!0}]),J.pushUndoStop())},[t],D),Vn(()=>{var J,k;(k=(J=O.current)==null?void 0:J.getModel())==null||k.original.setValue(e||"")},[e],D),Vn(()=>{let{original:J,modified:k}=O.current.getModel();F.current.editor.setModelLanguage(J,r||n||"text"),F.current.editor.setModelLanguage(k,a||n||"text")},[n,r,a],D),Vn(()=>{var J;(J=F.current)==null||J.editor.setTheme(A)},[A],D),Vn(()=>{var J;(J=O.current)==null||J.updateOptions(E)},[E],D);let se=C.useCallback(()=>{var ne;if(!F.current)return;K.current(F.current);let J=Os(F.current,e||"",r||n||"text",o||""),k=Os(F.current,t||"",a||n||"text",l||"");(ne=O.current)==null||ne.setModel({original:J,modified:k})},[n,t,a,e,r,o,l]),de=C.useCallback(()=>{var J;!Ae.current&&j.current&&(O.current=F.current.editor.createDiffEditor(j.current,{automaticLayout:!0,...E}),se(),(J=F.current)==null||J.editor.setTheme(A),x(!0),Ae.current=!0)},[E,A,se]);C.useEffect(()=>{D&&G.current(O.current,F.current)},[D]),C.useEffect(()=>{!L&&!D&&de()},[L,D,de]);function $(){var k,ne,ee,pe;let J=(k=O.current)==null?void 0:k.getModel();d||((ne=J==null?void 0:J.original)==null||ne.dispose()),f||((ee=J==null?void 0:J.modified)==null||ee.dispose()),(pe=O.current)==null||pe.dispose()}return Ke.createElement(zx,{width:_,height:g,isEditorReady:D,loading:m,_ref:j,className:S,wrapperProps:y})}var JQ=XQ;C.memo(JQ);function eX(e){let t=C.useRef();return C.useEffect(()=>{t.current=e},[e]),t.current}var tX=eX,N0=new Map;function nX({defaultValue:e,defaultLanguage:t,defaultPath:n,value:r,language:a,path:o,theme:l="light",line:d,loading:f="Loading...",options:A={},overrideServices:m={},saveViewState:E=!0,keepCurrentModel:g=!1,width:_="100%",height:S="100%",className:y,wrapperProps:v={},beforeMount:R=Gl,onMount:D=Gl,onChange:x,onValidate:L=Gl}){let[b,O]=C.useState(!1),[F,j]=C.useState(!0),G=C.useRef(null),K=C.useRef(null),Ae=C.useRef(null),se=C.useRef(D),de=C.useRef(R),$=C.useRef(),J=C.useRef(r),k=tX(o),ne=C.useRef(!1),ee=C.useRef(!1);Kx(()=>{let W=Vx.init();return W.then(V=>(G.current=V)&&j(!1)).catch(V=>(V==null?void 0:V.type)!=="cancelation"&&console.error("Monaco initialization: error:",V)),()=>K.current?H():W.cancel()}),Vn(()=>{var V,re,te,ce;let W=Os(G.current,e||r||"",t||a||"",o||n||"");W!==((V=K.current)==null?void 0:V.getModel())&&(E&&N0.set(k,(re=K.current)==null?void 0:re.saveViewState()),(te=K.current)==null||te.setModel(W),E&&((ce=K.current)==null||ce.restoreViewState(N0.get(o))))},[o],b),Vn(()=>{var W;(W=K.current)==null||W.updateOptions(A)},[A],b),Vn(()=>{!K.current||r===void 0||(K.current.getOption(G.current.editor.EditorOption.readOnly)?K.current.setValue(r):r!==K.current.getValue()&&(ee.current=!0,K.current.executeEdits("",[{range:K.current.getModel().getFullModelRange(),text:r,forceMoveMarkers:!0}]),K.current.pushUndoStop(),ee.current=!1))},[r],b),Vn(()=>{var V,re;let W=(V=K.current)==null?void 0:V.getModel();W&&a&&((re=G.current)==null||re.editor.setModelLanguage(W,a))},[a],b),Vn(()=>{var W;d!==void 0&&((W=K.current)==null||W.revealLine(d))},[d],b),Vn(()=>{var W;(W=G.current)==null||W.editor.setTheme(l)},[l],b);let pe=C.useCallback(()=>{var W;if(!(!Ae.current||!G.current)&&!ne.current){de.current(G.current);let V=o||n,re=Os(G.current,r||e||"",t||a||"",V||"");K.current=(W=G.current)==null?void 0:W.editor.create(Ae.current,{model:re,automaticLayout:!0,...A},m),E&&K.current.restoreViewState(N0.get(V)),G.current.editor.setTheme(l),d!==void 0&&K.current.revealLine(d),O(!0),ne.current=!0}},[e,t,n,r,a,o,A,m,E,l,d]);C.useEffect(()=>{b&&se.current(K.current,G.current)},[b]),C.useEffect(()=>{!F&&!b&&pe()},[F,b,pe]),J.current=r,C.useEffect(()=>{var W,V;b&&x&&((W=$.current)==null||W.dispose(),$.current=(V=K.current)==null?void 0:V.onDidChangeModelContent(re=>{ee.current||x(K.current.getValue(),re)}))},[b,x]),C.useEffect(()=>{if(b){let W=G.current.editor.onDidChangeMarkers(V=>{var te;let re=(te=K.current.getModel())==null?void 0:te.uri;if(re&&V.find(ce=>ce.path===re.path)){let ce=G.current.editor.getModelMarkers({resource:re});L==null||L(ce)}});return()=>{W==null||W.dispose()}}return()=>{}},[b,L]);function H(){var W,V;(W=$.current)==null||W.dispose(),g?E&&N0.set(o,K.current.saveViewState()):(V=K.current.getModel())==null||V.dispose(),K.current.dispose()}return Ke.createElement(zx,{width:_,height:S,isEditorReady:b,loading:f,_ref:Ae,className:y,wrapperProps:v})}var rX=nX,uX=C.memo(rX);const iX=({children:e,language:t,isDarkMode:n,showLineNumbers:r,showCopyButton:a=!0,isReadOnly:o=!1,onChange:l})=>{const d=C.useRef(null),f=C.useRef(null),[A,m]=C.useState({height:0,width:0}),E=C.useMemo(()=>n?"vs-dark-transparent":"hc-light-theme",[n]),g=(S,y)=>{var R;f.current=S;const v=(S.getContentHeight()??0)+25;y.editor.defineTheme("vs-dark-transparent",{base:"vs-dark",inherit:!0,rules:[],colors:{"editor.background":"#00000000"}}),y.editor.defineTheme("hc-light-theme",{base:"vs",inherit:!0,rules:[],colors:{"editor.background":"#00000000"}}),y.editor.setTheme(E),y.languages.typescript.typescriptDefaults.setDiagnosticsOptions({noSemanticValidation:!0,noSyntaxValidation:!0}),y.languages.typescript.javascriptDefaults.setDiagnosticsOptions({noSemanticValidation:!0,noSyntaxValidation:!0}),y.languages.typescript.typescriptDefaults.setCompilerOptions({noLib:!0,allowNonTsExtensions:!0}),y.languages.typescript.javascriptDefaults.setCompilerOptions({noLib:!0,allowNonTsExtensions:!0}),m({height:v,width:((R=d.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:[a&&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(Mx,{content:e})})}),N.jsx("div",{className:"z-0 grid size-full grid-cols-[0px] overflow-auto",ref:d,children:N.jsx(uX,{...A,defaultLanguage:"typescript",language:t,loading:N.jsx(Us,{}),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"})})]})},aX=({dictionary:e,isDarkMode:t})=>{const{setEditedContent:n,editedContent:r}=On(),a=l=>{try{return JSON.parse(l),!0}catch{return!1}},o=C.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(eu,{background:"none",border:!0,roundedSize:"xl",className:"w-full overflow-hidden p-3",children:N.jsx(iX,{language:"json",onChange:l=>{a(l??"{}")&&n(e.key,JSON.parse(l??"{}"))},isDarkMode:t,children:JSON.stringify(o,null,2)})})},sX={key:"node-type-selector",content:{triggerPlaceHolder:_e({en:"Node type","en-GB":"Node type",fr:"Type du Nœud",es:"Tipo del nodo",de:"Knotentyp",ja:"ノードタイプ",ko:"노드 유형",zh:"节点类型",it:"Tipo di nodo",pt:"Tipo de nó",hi:"नोड प्रकार",ar:"نوع العقدة",ru:"Тип узла"}),multilingual:_e({en:"Multilingual content","en-GB":"Multilingual content",fr:"Contenu Multilingue",es:"Contenido multilingüe",de:"Mehrsprachiger Inhalt",ja:"複数言語コンテンツ",ko:"다중 언어 콘텐츠",zh:"多语言内容",it:"Contenuto multilingue",pt:"Conteúdo multilíngue",hi:"बहुभाषी सामग्री",ar:"محتوى متعدد اللغات",ru:"Многоязычный контент"}),text:_e({en:"Text","en-GB":"Text",fr:"Texte",es:"Texto",de:"Text",ja:"テキスト",ko:"텍스트",zh:"文本",it:"Testo",pt:"Texto",hi:"पाठ",ar:"نص",ru:"Текст"}),number:_e({en:"Number","en-GB":"Number",fr:"Nombre",es:"Número",de:"Zahl",ja:"数字",ko:"숫자",zh:"数字",it:"Numero",pt:"Número",hi:"संख्या",ar:"رقم",ru:"Число"}),boolean:_e({en:"Boolean","en-GB":"Boolean",fr:"Booléen",es:"Booleano",de:"Bool",ja:"ブール",ko:"불리언",zh:"布尔",it:"Booleano",pt:"Booleano",hi:"बूलियन",ar:"منطقي",ru:"Булево"}),node:_e({en:"Object","en-GB":"Object",fr:"Objet",es:"Objeto",de:"Objekt",ja:"オブジェクト",ko:"객체",zh:"对象",it:"Oggetto",pt:"Objeto",hi:"ऑब्जेक्ट",ar:"كائن",ru:"Объект"}),array:_e({en:"Array","en-GB":"Array",fr:"Tableau",es:"Arreglo",de:"Array",ja:"配列",ko:"배열",zh:"数组",it:"Array",pt:"Array",hi:"ऐरे",ar:"مصفوفة",ru:"Массив"}),enumeration:_e({en:"Enumeration","en-GB":"Enumeration",fr:"Énumération",es:"Enumeración",de:"Enumeration",ja:"列挙",ko:"열거",zh:"枚举",it:"Enumerazione",pt:"Enumeração",hi:"गणना",ar:"تعداد",ru:"Перечисление"}),nest:_e({en:"Nesting","en-GB":"Nesting",fr:"Imbriquation",es:"Anidación",de:"Vererbung",ja:"ネスト",ko:"중첩",zh:"嵌套",it:"Nidificazione",pt:"Nido",hi:"नेस्टेंस",ar:"مستوى",ru:"Вложенность",nl:"Nest"}),condition:_e({en:"Condition","en-GB":"Condition",fr:"Condition",es:"Condición",de:"Bedingung",ja:"条件",ko:"조건",zh:"条件",it:"Condizione",pt:"Condição",hi:"शर्त्ता",ar:"شرط",ru:"Условие"}),markdown:_e({en:"Markdown","en-GB":"Markdown",fr:"Markdown",es:"Markdown",de:"Markdown",ja:"マークダウン",ko:"마크다운",zh:"Markdown",it:"Markdown",pt:"Markdown",hi:"मार्कडाउन",ar:"مارك داون",ru:"Markdown"}),reactNode:_e({en:"React Node","en-GB":"React Node",fr:"Node React",es:"Nodo React",de:"React-Knoten",ja:"リアル・ノード",ko:"리액 노드",zh:"React 节点",it:"Nodo React",pt:"Nó React",hi:"रेड नोड",ar:"عقدة رياكت",ru:"Реакт узел"})}},I0=({section:e,onValueChange:t})=>{const{multilingual:n,text:r,number:a,boolean:o,node:l,array:d,enumeration:f,triggerPlaceHolder:A,nest:m,condition:E,markdown:g,reactNode:_}=rn(sX),S=Ec(e),[y,v]=C.useState(S),R=D=>{v(D),t(D)};return C.useEffect(()=>{v(S)},[S]),N.jsxs(He,{value:y,onValueChange:R,children:[N.jsx(He.Trigger,{children:N.jsx(He.Value,{placeholder:A})}),N.jsxs(He.Content,{children:[N.jsx(He.Item,{value:U.Translation,children:n}),N.jsx(He.Item,{value:U.Text,children:r}),N.jsx(He.Item,{value:U.Number,children:a}),N.jsx(He.Item,{value:U.Boolean,children:o}),N.jsx(He.Item,{value:U.Object,children:l}),N.jsx(He.Item,{value:U.Array,children:d}),N.jsx(He.Item,{value:U.Enumeration,children:f}),N.jsx(He.Item,{value:U.Markdown,children:g}),N.jsx(He.Item,{value:U.Nested,children:m}),N.jsx(He.Item,{value:U.Condition,children:E}),N.jsx(He.Item,{value:U.ReactNode,disabled:!0,children:_})]})]})},Zx={key:"editor-view",content:{titleInput:{placeholder:_e({en:"Enter the key of your node","en-GB":"Enter the key of your node",fr:"Entrez la clé de votre nœud",es:"Ingrese la clave de su nodo",de:"Geben Sie den Schlüssel Ihres Knotens ein",ja:"ノードのキーを入力してください",ko:"노드의 키를 입력하세요",zh:"输入您节点的键",it:"Inserisci la chiave del tuo nodo",pt:"Insira a chave do seu nó",hi:"अपनी नोड की कुंजी दर्ज करें",ar:"أدخل مفتاح العقدة الخاص بك",ru:"Введите ключ вашего узла"})},deleteButton:{label:_e({en:"Remove node from section","en-GB":"Remove node from section",fr:"Supprimer le nœud de la section",es:"Eliminar el nodo de la sección",de:"Knoten aus dem Abschnitt entfernen",ja:"セクションからノードを削除",ko:"섹션에서 노드를 제거",zh:"从部分中移除节点",it:"Rimuovi nodo dalla sezione",pt:"Remover nó da seção",hi:"सेक्शन से नोड हटाएं",ar:"إزالة العقدة من القسم",ru:"Удалить узел из секции"})},addNodeButton:{label:_e({en:"Click to add a new node","en-GB":"Click to add a new node",fr:"Cliquez pour ajouter un nouveau nœud",es:"Haga clic para agregar un nuevo nodo",de:"Klicken, um einen neuen Knoten hinzuzufügen",ja:"新しいノードを追加するにはクリックしてください",ko:"새 노드를 추가하려면 클릭하세요",zh:"点击添加新节点",it:"Fai clic per aggiungere un nuovo nodo",pt:"Clique para adicionar um novo nó",hi:"नया नोड जोड़ने के लिए क्लिक करें",ar:"انقر لإضافة عقدة جديدة",ru:"Нажмите, чтобы добавить новый узел"}),text:_e({en:"Add a new node","en-GB":"Add a new node",fr:"Ajouter un nouveau nœud",es:"Agregar un nuevo nodo",de:"Neuen Knoten hinzufügen",ja:"新しいノードを追加",ko:"새 노드 추가",zh:"添加新节点",it:"Aggiungi un nuovo nodo",pt:"Adicionar um novo nó",hi:"नया नोड जोड़ें",ar:"إضافة عقدة جديدة",ru:"Добавить новый узел"})}}},KE=({section:e,dictionaryKey:t,keyPath:n,onNodeTypeChange:r})=>{var f;const a=((f=Xr())==null?void 0:f.internationalization.locales)??[],o=Ec(e),l=sv(e),d=A=>{const m=cl(o,a,A);r(m)};if(o===U.Translation||o===U.Condition||o===U.Enumeration){const A=Object.keys(e[o])[0],m=[...n,{type:o,key:A}];return N.jsxs("div",{className:"flex w-full flex-col gap-1",children:[N.jsx(I0,{section:e,onValueChange:E=>r(cl(E,a))}),N.jsx(KE,{section:l,keyPath:m,dictionaryKey:t,onNodeTypeChange:d})]})}if(o===U.Array){const A=[...n,{type:o,key:0}];return N.jsxs("div",{className:"flex w-full flex-col gap-1",children:[N.jsx(I0,{section:e,onValueChange:m=>r(cl(m,a))}),N.jsx(KE,{section:l,keyPath:A,dictionaryKey:t,onNodeTypeChange:d})]})}return o===U.Object?N.jsxs(N.Fragment,{children:[N.jsx(I0,{section:e,onValueChange:A=>r(cl(A,a))}),N.jsx("div",{className:"ml-10 mt-6",children:N.jsx(lX,{keyPath:n,section:e,dictionaryKey:t})})]}):N.jsx(I0,{section:e,onValueChange:A=>r(cl(A,a))})},H4=({sectionKey:e,section:t,keyPath:n,dictionaryKey:r})=>{const{focusedContent:a,setFocusedContentKeyPath:o}=vi(),{renameEditedContent:l,addEditedContent:d}=$s(),{titleInput:f,deleteButton:A}=rn(Zx),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(eu,{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,(a==null?void 0:a.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(WR,{name:"key","aria-label":"Key",placeholder:f.placeholder.value,defaultValue:e,onSave:E=>m(E),variant:"invisible"}),N.jsx(ht,{label:A.label.value,variant:"hoverable",size:"icon-sm",color:"text",className:"translate-x-2",Icon:ig,onClick:()=>{d(r,void 0,n);const E=n.slice(0,-1);o(E)}})]}),N.jsxs("span",{className:"text-neutral ml-3 text-sm",children:["( ",zE(e)," )"]})]}),N.jsx(KE,{keyPath:n,dictionaryKey:r,section:t,onNodeTypeChange:E=>{d(r,E,n)}})]})})},oX=({section:e,keyPath:t,dictionaryKey:n})=>{const{addNodeButton:r}=rn(Zx),{setFocusedContentKeyPath:a}=WE(),{addEditedContent:o}=$s();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(H4,{sectionKey:l,section:e==null?void 0:e[l],keyPath:[...t,{type:U.Object,key:l}],dictionaryKey:n})},l))}),N.jsx(ht,{label:r.label.value,variant:"hoverable",size:"md",color:"text",Icon:Of,className:"flex-1",onClick:()=>{const d=[...t,{type:U.Object,key:"newKey"}];o(n,"",d),a(d)},children:r.text})]})},lX=({section:e,keyPath:t,dictionaryKey:n})=>!e||typeof e!="object"||typeof e.nodeType=="string"?N.jsx(H4,{sectionKey:"content",section:e,keyPath:t,dictionaryKey:n}):N.jsx(oX,{section:e,keyPath:t,dictionaryKey:n}),cX=({dictionary:e})=>{var o,l;const{content:t,key:n}=e,{editedContent:r}=On(),a=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(H4,{section:a,keyPath:[],dictionaryKey:e.key})},dX=({dictionary:e,onClickDictionaryList:t,isDarkMode:n,mode:r})=>{const a=Xr(),[o,l]=C.useState(1),{returnToDictionaryList:d}=rn(Jq),{setFocusedContent:f}=WE(),{setLocaleDictionaries:A}=ZE();return C.useEffect(()=>{f(m=>({...m??{},dictionaryKey:e.key})),A(m=>({...m,[e.key]:e}))},[]),N.jsx(TK,{availableLocales:(a==null?void 0:a.internationalization.locales)??[],children:N.jsxs("div",{className:"flex size-full flex-col gap-6 px-2",children:[N.jsx(ht,{onClick:t,variant:"hoverable",className:"z-10 ml-5 mr-auto",color:"text",Icon:d2,label:d.label.value,children:d.text}),N.jsx(Bc,{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(Xq,{dictionary:e}),o===2&&N.jsx(cX,{dictionary:e}),o===1&&N.jsx(Wq,{dictionary:e,isDarkMode:n}),o===3&&N.jsx(aX,{dictionary:e,isDarkMode:n}),N.jsx(m1,{dictionary:e,mode:r})]})})},fX=()=>{const{toasts:e}=yR();return N.jsxs(IM.Provider,{children:[e.map(({id:t,title:n,description:r,action:a,...o})=>N.jsxs(yM,{...o,children:[N.jsxs("div",{className:"grid gap-1",children:[n&&N.jsx(RM,{children:n}),r&&N.jsx(DM,{children:r})]}),a,N.jsx(vM,{})]},t)),N.jsx(SM,{})]})},Wx=(...e)=>{const{localeDictionaries:t}=uv(),{data:n,isWaitingData:r}=PM(...e),a=C.useMemo(()=>((n==null?void 0:n.data)??[]).reduce((l,d)=>(l[d.key]=d,l),{}),[n]),o=C.useMemo(()=>ZM(a??{},t),[a,t]);return{online:a,locale:t,all:o,isLoading:r}},AX=({children:e})=>N.jsx(tj,{features:Ez,children:e}),hX=({children:e})=>N.jsx(AX,{children:N.jsxs(_8,{children:[N.jsx(fX,{}),e]})}),mX=({children:e})=>N.jsx(lw,{children:N.jsx(kL,{children:N.jsx(bv,{path:"*",element:e})})}),YE="dictionaryList",$x={key:"dictionary-edition-drawer",content:{openDictionaryEditor:{label:_e({en:"Click to open the dictionary in the editor",fr:"Cliquez pour ouvrir le dictionnaire dans l’éditeur",es:"Haga clic para abrir el diccionario en el editor",de:"Klicken Sie hier, um das Wörterbuch im Editor zu öffnen",ja:"エディターで辞書を開く",ko:"편집기에서 사전 열기",zh:"点击打开词典到编辑器",it:"Fai clic per aprire il dizionario nell’editor",pt:"Clique para abrir o dicionário no editor",hi:"एडिटर में शब्दकोश खोलने के लिए क्लिक करें",ar:"انقر لفتح قاموس في المحرر",ru:"Нажмите, чтобы открыть словарь в редакторе","en-GB":"Click to open the dictionary in the editor"})},backButtonText:_e({en:"Dictionary list",fr:"Liste des dictionnaires",es:"Lista de diccionarios",de:"Wörterbuchliste",ja:"辞書リスト",ko:"사전 목록",zh:"词典列表",it:"Elenco di dizionari",pt:"Lista de dicionários",hi:"शब्दकोश सूची",ar:"قائمة القوامل",ru:"Список словарей","en-GB":"Dictionary list"}),modalTitle:_e({en:"Edit dictionary",fr:"Modifier le dictionnaire",es:"Editar el diccionario",de:"Wörterbuch bearbeiten",ja:"辞書を編集",ko:"사전 편집",zh:"编辑词典",it:"Modifica dizionario",pt:"Editar dicionário",hi:"शब्दकोश संपादित करें",ar:"تحرير قاموس",ru:"Редактировать словарь","en-GB":"Edit dictionary"}),noDictionaryFocused:_e({en:"No dictionary focused",fr:"Aucun dictionnaire sélectionné",es:"No hay diccionario enfocado",de:"Kein Wörterbuch ausgewählt",ja:"フォーカスされた辞書がありません",ko:"포커스가 있는 사전이 없습니다",zh:"没有聚焦的词典",it:"Nessun dizionario selezionato",pt:"Nenhum dicionário focalizado",hi:"कोई फोकस शब्दकोश नहीं है",ar:"لا يوجد قاموس مرتبط",ru:"Нет фокусированного словаря","en-GB":"No dictionary focused"})}},P4=e=>`dictionary_edition_${e}`,qx=e=>{const t=P4(e),{isOpen:n,open:r,close:a}=Ff(),{getEditedContentValue:o}=$s(),{focusedContent:l,setFocusedContent:d}=vi();return C.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:()=>{a(t),d(f=>f!=null&&f.dictionaryKey?{...f,keyPath:[]}:f)}}},pX=({locale:e,identifier:t,handleOnBack:n,isDarkMode:r})=>{const{modalTitle:a,openDictionaryEditor:o}=rn($x),[l,d]=C.useState(!1),{all:f}=Wx(),{focusedContent:A}=qx(t),m=C.useCallback(()=>{d(!1),n()},[n]),E=A==null?void 0:A.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(Bz,{isOpen:l,onClose:()=>d(!1),hasCloseButton:!0,title:a.value,size:"xl",transparency:"lg",children:N.jsx("div",{className:"size-full px-3 pt-5",children:N.jsx(dX,{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(ht,{variant:"hoverable",color:"text",size:"icon-md",IconRight:qv,label:o.label.value,onClick:()=>d(!0)})]}),N.jsx(Uz,{dictionary:g,locale:e,mode:["local","remote"]})]}):N.jsx(N.Fragment,{children:"No dictionary focused"})},EX=({locale:e,dictionaryKey:t,isDarkMode:n})=>{const{backButtonText:r}=rn($x),a=P4(t),{focusedContent:o,close:l}=qx(t),{openDictionaryListDrawer:d}=Ff(A=>({openDictionaryListDrawer:()=>A.open(YE)})),f=()=>{l(),d()};return N.jsx(uR,{identifier:a,backButton:{onBack:f,text:r.value},onClose:l,children:o&&N.jsx(pX,{focusedContent:o,locale:e,identifier:a,handleOnBack:f,isDarkMode:n})})},gX=({locale:e,isDarkMode:t})=>{const{focusedContent:n}=vi(),r=n==null?void 0:n.dictionaryKey;return r?N.jsx(EX,{locale:e,dictionaryKey:r,isDarkMode:t}):N.jsx(N.Fragment,{})},_X=()=>{const{all:e}=Wx(),t=C.useMemo(()=>Object.keys(e),[e]),{close:n,open:r}=Ff(),{editedContent:a}=On(),{setFocusedContent:o}=vi(),l=f=>{n(YE);const{filePath:A}=e[f];o({dictionaryKey:f,dictionaryPath:A}),r(P4(f))},d=C.useCallback(f=>Object.keys(a??{}).includes(f),[a]);return N.jsx(uR,{title:"Dictionary list",identifier:YE,children:t.map(f=>N.jsx("div",{children:N.jsx(ht,{label:`Open dictionary editor ${f}`,onClick:()=>l(f),variant:"hoverable",color:"text",IconRight:ys,size:"md",isFullWidth:!0,children:d(f)?`✎ ${f}`:f})},f))})},NX=({children:e})=>{const[t]=Ta("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(gX,{locale:t}),N.jsx(_X,{})]})},IX=()=>{const[e,t]=C.useState();return C.useEffect(()=>{fetch("/api/config").then(n=>n.json()).then(n=>t(n.data))},[]),e},SX=({children:e,iframeRef:t})=>{const n=IX(),r=n!=null&&n.editor.applicationURL?n==null?void 0:n.editor.applicationURL:"*",a=(n==null?void 0:n.editor.editorURL)??"*";return n?N.jsx(xF,{postMessage:o=>{var l,d;window==null||window.postMessage(o,a),(d=(l=t.current)==null?void 0:l.contentWindow)==null||d.postMessage(o,r)},allowedOrigins:[r,a],mode:"editor",configuration:n,children:e}):N.jsx(Us,{})},CX=()=>{const{editedContent:e,setEditedContentState:t}=On(),n=()=>{const r=localStorage==null?void 0:localStorage.getItem("INTLAYER_EDITED_CONTENT_CHANGED");if(r)try{const a=JSON.parse(r);t(a)}catch(a){console.error(a)}};return C.useEffect(()=>{typeof e>"u"||localStorage==null||localStorage.setItem("INTLAYER_EDITED_CONTENT_CHANGED",JSON.stringify(e))},[e]),C.useEffect(()=>{typeof e<"u"||n()},[]),n},yX=(...e)=>Yv(Bf(e)),vX={key:"no-application-url-view",content:{title:_e({en:"Your project configuration do not includes application URL","en-GB":"Your project configuration do not includes application URL",fr:"Votre configuration de projet ne comprend pas l’URL de l’application",es:"Su configuración de proyecto no incluye la URL de la aplicación",de:"Ihre Projektkonfiguration enthält keine Anwendungs-URL",ja:"あなたのプロジェクト構成にはアプリケーション URL が含まれていません",ko:"당신의 프로젝트 구성에 앱 URL이 포함되어 있지 않습니다.",zh:"您的项目配置未包含应用程序 URL",pt:"Sua configuração do projeto não inclui a URL do aplicativo",ru:"Ваша конфигурация проекта не включает URL-адрес приложения",ar:"تم إنشاء مشروعك بدون تضمين عنوان URL التطبيق",hi:"आपके प्रोजेक्ट कॉन्फ़िगरेशन में ऐप का URL शामिल नहीं है",it:"La configurazione del progetto non include l’URL dell’applicazione"}),description:_e({en:"To use the editor, you need to add the URL of the application to access to the configuration file.","en-GB":"To use the editor, you need to add the URL of the application to access to the configuration file.",fr:"Pour utiliser l’éditeur, vous devez ajouter l’URL de l’application pour accéder au fichier de configuration.",es:"Para usar el editor, debe agregar la URL de la aplicación para acceder al archivo de configuración.",de:"Um den Editor zu verwenden, müssen Sie die URL der Anwendung hinzufügen, um auf die Konfigurationsdatei zuzugreifen.",ja:"エディターを使用するには、アプリケーションの URL を設定ファイルに追加する必要があります。",ko:"에디터를 사용하려면 설정 파일에 앱 URL을 추가해야 합니다.",zh:"要使用编辑器,您需要将应用程序 URL 添加到访问配置文件。",pt:"Para usar o editor, você precisa adicionar a URL do aplicativo para acessar o arquivo de configuração.",ru:"Чтобы использовать редактор, вам необходимо добавить URL-адрес приложения для доступа к файлу конфигурации.",ar:"لاستخدام المحرر، يجب عليك إضافة عنوان URL التطبيق للوصول إلى ملف التكوين.",hi:"एडिटर का उपयोग करने के लिए, आपको कॉन्फ़िगरेशन फ़ाइल तक ऐप का URL को जोड़ना होगा।",it:"Per utilizzare l’editor, è necessario aggiungere l’URL dell’applicazione per accedere al file di configurazione."}),documentationLink:{label:_e({en:"Click to go to the editor documentation","en-GB":"Click to go to the editor documentation",fr:"Cliquez ici pour accéder à la documentation de l’éditeur",es:"Haga clic aquí para acceder a la documentación del editor",de:"Klicken Sie hier, um die Editor-Dokumentation zu besuchen",ja:"エディターのドキュメントに移動するには、ここをクリックしてください",ko:"에디터 문서로 이동하려면 여기를 클릭하십시오.",zh:"点击此处访问编辑器文档",pt:"Clique aqui para acessar a documentação do editor",ru:"Нажмите, чтобы перейти к документации редактора",ar:"انقر هنا للوصول إلى وثائق المحرر",hi:"एडिटर को डॉक्यूमेंट पर जाए रखना चाहते हैं?",it:"Fai clic qui per accedere alla documentazione dell’editor"}),text:_e({en:"See how to configure the editor","en-GB":"See how to configure the editor",fr:"Voir comment configurer l’éditeur",de:"Siehe, wie man den Editor konfiguriert",ar:"انظر كيفية تكوين المحرر",hi:"एडिटर को काने के बारे में देखें",it:"Vedi come configurare l’editor",ja:"エディターの設定方法を見る",ru:"Смотрите, как настроить редактор",es:"Vea cómo configurar el editor",pt:"Veja como configurar o editor",ko:"에디터 설정 방법을 보십시오",zh:"查看如何配置编辑器"})}}},RX=()=>{const{title:e,description:t,documentationLink:n}=rn(vX);return N.jsxs("div",{className:"flex flex-col gap-6",children:[N.jsx(N4,{className:"mb-8",children:e}),N.jsx("strong",{className:"text-neutral block",children:t}),N.jsx(w4,{label:n.label.value,href:"https://intlayer.org/doc/concept/configuration#editor-configuration",color:"text",children:n.text})]})},DX=({iframeRef:e,applicationPath:t})=>{const{editor:n}=Xr(),r=()=>a(n.enabled),a=SF();hv(r),CX(),OF();const[o,l]=C.useState(!1),[d]=bF(void 0,{receive:!0,emit:!1});return C.useEffect(()=>{typeof d=="string"&&window.history.replaceState({},"",d)},[d]),n.applicationURL?N.jsxs("div",{className:"size-full overflow-hidden rounded-lg",children:[N.jsx(Us,{isLoading:o}),N.jsx("iframe",{src:`${n.applicationURL}${t}`,title:"Intlayer Application",className:yX("size-full",o&&"hidden"),ref:e,onLoad:()=>{l(!1),r()}})]}):N.jsx("div",{className:"flex size-full items-center justify-center",children:N.jsx(eu,{className:"flex max-w-xl flex-col gap-4 p-6",children:N.jsx(RX,{})})})},TX=()=>{const e=C.useRef(null),t=Ri();return N.jsx(SX,{iframeRef:e,children:N.jsx(HF,{disableEditor:!0,children:N.jsx(NX,{children:N.jsx(DX,{iframeRef:e,applicationPath:t.pathname})})})})},xX=()=>N.jsx(mX,{children:N.jsx(hX,{children:N.jsx(TX,{})})});yO.createRoot(document.getElementById("root")).render(N.jsx(C.StrictMode,{children:N.jsx(xX,{})}));
|