intlayer-editor 6.1.3 → 6.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,338 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/angular-html-Bbf3ZyxA.js","assets/html-B8pBdPMQ.js","assets/javascript-BMMyXqK5.js","assets/css-DPfMkruS.js","assets/angular-ts-C26w9mnW.js","assets/scss-OYdSNvt2.js","assets/apl-e980N3t4.js","assets/xml-sdJ4AIDG.js","assets/java-CylS5w8V.js","assets/json-Cp-IABpG.js","assets/astro-CjFzhNUq.js","assets/typescript-DlfHMoPT.js","assets/postcss-CXtECtnM.js","assets/tsx-COt5Ahok.js","assets/blade-B2ZbN0F_.js","assets/html-derivative-ZQ8onl8Z.js","assets/sql-BLtJtn59.js","assets/bsl-BO_Y6i37.js","assets/sdbl-DVxCFoDh.js","assets/cairo-KRGpt6FW.js","assets/python-B6aJPvgy.js","assets/cobol-DwXMNnPA.js","assets/coffee-JUOWOZUj.js","assets/cpp-CofmeUqb.js","assets/regexp-CDVJQ6XC.js","assets/glsl-DplSGwfg.js","assets/c-BIGW1oBm.js","assets/crystal-DVs0tusA.js","assets/shellscript-Yzrsuije.js","assets/edge-CKszZCnI.js","assets/elixir-Cc7HHYVZ.js","assets/elm-DbKCFpqz.js","assets/erb-C7QrGF_t.js","assets/ruby-W1VRIm2Q.js","assets/haml-AZXGPtNI.js","assets/graphql-Caa12_AY.js","assets/jsx-g9-lgVsj.js","assets/lua-BbnMAYS6.js","assets/yaml-Buea-lGh.js","assets/erlang-DsQrWhSR.js","assets/markdown-Cvjx9yec.js","assets/fortran-fixed-form-BZjJHVRy.js","assets/fortran-free-form-D22FLkUw.js","assets/fsharp-CufqaIoK.js","assets/gdresource-B7Tvp0Sc.js","assets/gdshader-DkwncUOv.js","assets/gdscript-DTMYz4Jt.js","assets/git-commit-F4YmCXRG.js","assets/diff-D97Zzqfu.js","assets/git-rebase-r7XF79zn.js","assets/glimmer-js-Dz9X99Cm.js","assets/glimmer-ts-aQ3p29eY.js","assets/hack-D_o3P2UH.js","assets/handlebars-YebKLiTq.js","assets/http-C38VWM-o.js","assets/hxml-Bvhsp5Yf.js","assets/haxe-CzTSHFRz.js","assets/jinja-BJmZiE_F.js","assets/jison-BCRtk9Os.js","assets/julia-353pQ8cl.js","assets/r-DiinP2Uv.js","assets/latex-CPEt12BK.js","assets/tex-B5i3u9ba.js","assets/liquid-DFk8BABL.js","assets/marko-BM38lbjI.js","assets/less-B1dDrJ26.js","assets/mdc-DvHMhoCT.js","assets/nginx-DknmC5AR.js","assets/nim-BZI_8mFl.js","assets/perl-g0D2lH3a.js","assets/php-Gk5eUrPQ.js","assets/pug-Ch9lOoSd.js","assets/qml-CHzV51_b.js","assets/razor-CNXmhs1n.js","assets/csharp-CHadp7IV.js","assets/rst-DKdxLoXm.js","assets/cmake-D1j8_8rp.js","assets/sas-cz2c8ADy.js","assets/shaderlab-Dg9Lc6iA.js","assets/hlsl-D3lLCCz7.js","assets/shellsession-BADoaaVG.js","assets/soy-B_7ge1HE.js","assets/sparql-rVzFXLq3.js","assets/turtle-BsS91CYL.js","assets/stata-BH5u7GGu.js","assets/svelte-Dt5jNKfG.js","assets/templ-0CNLO7il.js","assets/go-Dn2_MT6a.js","assets/ts-tags-B9XN6NYQ.js","assets/twig-B_ULif71.js","assets/vue-BEetzCYT.js","assets/vue-html-BsD9fJC1.js","assets/vue-vine-CCdTUzyM.js","assets/stylus-BEDo0Tqx.js","assets/xsl-CtQFsRM5.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
function vM(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 s=Object.getOwnPropertyDescriptor(r,a);s&&Object.defineProperty(e,a,s.get?s:{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 s of a)if(s.type==="childList")for(const l of s.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&r(l)}).observe(document,{childList:!0,subtree:!0});function n(a){const s={};return a.integrity&&(s.integrity=a.integrity),a.referrerPolicy&&(s.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?s.credentials="include":a.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(a){if(a.ep)return;a.ep=!0;const s=n(a);fetch(a.href,s)}})();function ib(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var cg={exports:{}},Wl={};/**
|
|
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 aA;function bM(){if(aA)return Wl;aA=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,a,s){var l=null;if(s!==void 0&&(l=""+s),a.key!==void 0&&(l=""+a.key),"key"in a){s={};for(var u in a)u!=="key"&&(s[u]=a[u])}else s=a;return a=s.ref,{$$typeof:e,type:r,key:l,ref:a!==void 0?a:null,props:s}}return Wl.Fragment=t,Wl.jsx=n,Wl.jsxs=n,Wl}var oA;function _M(){return oA||(oA=1,cg.exports=bM()),cg.exports}var v=_M(),ug={exports:{}},Ue={};/**
|
|
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 sA;function EM(){if(sA)return Ue;sA=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"),s=Symbol.for("react.consumer"),l=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),f=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),g=Symbol.iterator;function y(P){return P===null||typeof P!="object"?null:(P=g&&P[g]||P["@@iterator"],typeof P=="function"?P:null)}var _={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},S=Object.assign,A={};function C(P,ie,F){this.props=P,this.context=ie,this.refs=A,this.updater=F||_}C.prototype.isReactComponent={},C.prototype.setState=function(P,ie){if(typeof P!="object"&&typeof P!="function"&&P!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,P,ie,"setState")},C.prototype.forceUpdate=function(P){this.updater.enqueueForceUpdate(this,P,"forceUpdate")};function w(){}w.prototype=C.prototype;function x(P,ie,F){this.props=P,this.context=ie,this.refs=A,this.updater=F||_}var T=x.prototype=new w;T.constructor=x,S(T,C.prototype),T.isPureReactComponent=!0;var N=Array.isArray,R={H:null,A:null,T:null,S:null,V:null},I=Object.prototype.hasOwnProperty;function D(P,ie,F,J,se,he){return F=he.ref,{$$typeof:e,type:P,key:ie,ref:F!==void 0?F:null,props:he}}function L(P,ie){return D(P.type,ie,void 0,void 0,void 0,P.props)}function H(P){return typeof P=="object"&&P!==null&&P.$$typeof===e}function Z(P){var ie={"=":"=0",":":"=2"};return"$"+P.replace(/[=:]/g,function(F){return ie[F]})}var q=/\/+/g;function te(P,ie){return typeof P=="object"&&P!==null&&P.key!=null?Z(""+P.key):ie.toString(36)}function ce(){}function W(P){switch(P.status){case"fulfilled":return P.value;case"rejected":throw P.reason;default:switch(typeof P.status=="string"?P.then(ce,ce):(P.status="pending",P.then(function(ie){P.status==="pending"&&(P.status="fulfilled",P.value=ie)},function(ie){P.status==="pending"&&(P.status="rejected",P.reason=ie)})),P.status){case"fulfilled":return P.value;case"rejected":throw P.reason}}throw P}function ae(P,ie,F,J,se){var he=typeof P;(he==="undefined"||he==="boolean")&&(P=null);var ye=!1;if(P===null)ye=!0;else switch(he){case"bigint":case"string":case"number":ye=!0;break;case"object":switch(P.$$typeof){case e:case t:ye=!0;break;case p:return ye=P._init,ae(ye(P._payload),ie,F,J,se)}}if(ye)return se=se(P),ye=J===""?"."+te(P,0):J,N(se)?(F="",ye!=null&&(F=ye.replace(q,"$&/")+"/"),ae(se,ie,F,"",function(je){return je})):se!=null&&(H(se)&&(se=L(se,F+(se.key==null||P&&P.key===se.key?"":(""+se.key).replace(q,"$&/")+"/")+ye)),ie.push(se)),1;ye=0;var fe=J===""?".":J+":";if(N(P))for(var xe=0;xe<P.length;xe++)J=P[xe],he=fe+te(J,xe),ye+=ae(J,ie,F,he,se);else if(xe=y(P),typeof xe=="function")for(P=xe.call(P),xe=0;!(J=P.next()).done;)J=J.value,he=fe+te(J,xe++),ye+=ae(J,ie,F,he,se);else if(he==="object"){if(typeof P.then=="function")return ae(W(P),ie,F,J,se);throw ie=String(P),Error("Objects are not valid as a React child (found: "+(ie==="[object Object]"?"object with keys {"+Object.keys(P).join(", ")+"}":ie)+"). If you meant to render a collection of children, use an array instead.")}return ye}function M(P,ie,F){if(P==null)return P;var J=[],se=0;return ae(P,J,"","",function(he){return ie.call(F,he,se++)}),J}function X(P){if(P._status===-1){var ie=P._result;ie=ie(),ie.then(function(F){(P._status===0||P._status===-1)&&(P._status=1,P._result=F)},function(F){(P._status===0||P._status===-1)&&(P._status=2,P._result=F)}),P._status===-1&&(P._status=0,P._result=ie)}if(P._status===1)return P._result.default;throw P._result}var G=typeof reportError=="function"?reportError:function(P){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var ie=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof P=="object"&&P!==null&&typeof P.message=="string"?String(P.message):String(P),error:P});if(!window.dispatchEvent(ie))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",P);return}console.error(P)};function ge(){}return Ue.Children={map:M,forEach:function(P,ie,F){M(P,function(){ie.apply(this,arguments)},F)},count:function(P){var ie=0;return M(P,function(){ie++}),ie},toArray:function(P){return M(P,function(ie){return ie})||[]},only:function(P){if(!H(P))throw Error("React.Children.only expected to receive a single React element child.");return P}},Ue.Component=C,Ue.Fragment=n,Ue.Profiler=a,Ue.PureComponent=x,Ue.StrictMode=r,Ue.Suspense=d,Ue.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=R,Ue.__COMPILER_RUNTIME={__proto__:null,c:function(P){return R.H.useMemoCache(P)}},Ue.cache=function(P){return function(){return P.apply(null,arguments)}},Ue.cloneElement=function(P,ie,F){if(P==null)throw Error("The argument must be a React element, but you passed "+P+".");var J=S({},P.props),se=P.key,he=void 0;if(ie!=null)for(ye in ie.ref!==void 0&&(he=void 0),ie.key!==void 0&&(se=""+ie.key),ie)!I.call(ie,ye)||ye==="key"||ye==="__self"||ye==="__source"||ye==="ref"&&ie.ref===void 0||(J[ye]=ie[ye]);var ye=arguments.length-2;if(ye===1)J.children=F;else if(1<ye){for(var fe=Array(ye),xe=0;xe<ye;xe++)fe[xe]=arguments[xe+2];J.children=fe}return D(P.type,se,void 0,void 0,he,J)},Ue.createContext=function(P){return P={$$typeof:l,_currentValue:P,_currentValue2:P,_threadCount:0,Provider:null,Consumer:null},P.Provider=P,P.Consumer={$$typeof:s,_context:P},P},Ue.createElement=function(P,ie,F){var J,se={},he=null;if(ie!=null)for(J in ie.key!==void 0&&(he=""+ie.key),ie)I.call(ie,J)&&J!=="key"&&J!=="__self"&&J!=="__source"&&(se[J]=ie[J]);var ye=arguments.length-2;if(ye===1)se.children=F;else if(1<ye){for(var fe=Array(ye),xe=0;xe<ye;xe++)fe[xe]=arguments[xe+2];se.children=fe}if(P&&P.defaultProps)for(J in ye=P.defaultProps,ye)se[J]===void 0&&(se[J]=ye[J]);return D(P,he,void 0,void 0,null,se)},Ue.createRef=function(){return{current:null}},Ue.forwardRef=function(P){return{$$typeof:u,render:P}},Ue.isValidElement=H,Ue.lazy=function(P){return{$$typeof:p,_payload:{_status:-1,_result:P},_init:X}},Ue.memo=function(P,ie){return{$$typeof:f,type:P,compare:ie===void 0?null:ie}},Ue.startTransition=function(P){var ie=R.T,F={};R.T=F;try{var J=P(),se=R.S;se!==null&&se(F,J),typeof J=="object"&&J!==null&&typeof J.then=="function"&&J.then(ge,G)}catch(he){G(he)}finally{R.T=ie}},Ue.unstable_useCacheRefresh=function(){return R.H.useCacheRefresh()},Ue.use=function(P){return R.H.use(P)},Ue.useActionState=function(P,ie,F){return R.H.useActionState(P,ie,F)},Ue.useCallback=function(P,ie){return R.H.useCallback(P,ie)},Ue.useContext=function(P){return R.H.useContext(P)},Ue.useDebugValue=function(){},Ue.useDeferredValue=function(P,ie){return R.H.useDeferredValue(P,ie)},Ue.useEffect=function(P,ie,F){var J=R.H;if(typeof F=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return J.useEffect(P,ie)},Ue.useId=function(){return R.H.useId()},Ue.useImperativeHandle=function(P,ie,F){return R.H.useImperativeHandle(P,ie,F)},Ue.useInsertionEffect=function(P,ie){return R.H.useInsertionEffect(P,ie)},Ue.useLayoutEffect=function(P,ie){return R.H.useLayoutEffect(P,ie)},Ue.useMemo=function(P,ie){return R.H.useMemo(P,ie)},Ue.useOptimistic=function(P,ie){return R.H.useOptimistic(P,ie)},Ue.useReducer=function(P,ie,F){return R.H.useReducer(P,ie,F)},Ue.useRef=function(P){return R.H.useRef(P)},Ue.useState=function(P){return R.H.useState(P)},Ue.useSyncExternalStore=function(P,ie,F){return R.H.useSyncExternalStore(P,ie,F)},Ue.useTransition=function(){return R.H.useTransition()},Ue.version="19.1.1",Ue}var lA;function Wc(){return lA||(lA=1,ug.exports=EM()),ug.exports}var E=Wc();const Oe=ib(E),jR=vM({__proto__:null,default:Oe},[E]);var dg={exports:{}},Zl={},fg={exports:{}},hg={};/**
|
|
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 cA;function SM(){return cA||(cA=1,(function(e){function t(M,X){var G=M.length;M.push(X);e:for(;0<G;){var ge=G-1>>>1,P=M[ge];if(0<a(P,X))M[ge]=X,M[G]=P,G=ge;else break e}}function n(M){return M.length===0?null:M[0]}function r(M){if(M.length===0)return null;var X=M[0],G=M.pop();if(G!==X){M[0]=G;e:for(var ge=0,P=M.length,ie=P>>>1;ge<ie;){var F=2*(ge+1)-1,J=M[F],se=F+1,he=M[se];if(0>a(J,G))se<P&&0>a(he,J)?(M[ge]=he,M[se]=G,ge=se):(M[ge]=J,M[F]=G,ge=F);else if(se<P&&0>a(he,G))M[ge]=he,M[se]=G,ge=se;else break e}}return X}function a(M,X){var G=M.sortIndex-X.sortIndex;return G!==0?G:M.id-X.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var l=Date,u=l.now();e.unstable_now=function(){return l.now()-u}}var d=[],f=[],p=1,g=null,y=3,_=!1,S=!1,A=!1,C=!1,w=typeof setTimeout=="function"?setTimeout:null,x=typeof clearTimeout=="function"?clearTimeout:null,T=typeof setImmediate<"u"?setImmediate:null;function N(M){for(var X=n(f);X!==null;){if(X.callback===null)r(f);else if(X.startTime<=M)r(f),X.sortIndex=X.expirationTime,t(d,X);else break;X=n(f)}}function R(M){if(A=!1,N(M),!S)if(n(d)!==null)S=!0,I||(I=!0,te());else{var X=n(f);X!==null&&ae(R,X.startTime-M)}}var I=!1,D=-1,L=5,H=-1;function Z(){return C?!0:!(e.unstable_now()-H<L)}function q(){if(C=!1,I){var M=e.unstable_now();H=M;var X=!0;try{e:{S=!1,A&&(A=!1,x(D),D=-1),_=!0;var G=y;try{t:{for(N(M),g=n(d);g!==null&&!(g.expirationTime>M&&Z());){var ge=g.callback;if(typeof ge=="function"){g.callback=null,y=g.priorityLevel;var P=ge(g.expirationTime<=M);if(M=e.unstable_now(),typeof P=="function"){g.callback=P,N(M),X=!0;break t}g===n(d)&&r(d),N(M)}else r(d);g=n(d)}if(g!==null)X=!0;else{var ie=n(f);ie!==null&&ae(R,ie.startTime-M),X=!1}}break e}finally{g=null,y=G,_=!1}X=void 0}}finally{X?te():I=!1}}}var te;if(typeof T=="function")te=function(){T(q)};else if(typeof MessageChannel<"u"){var ce=new MessageChannel,W=ce.port2;ce.port1.onmessage=q,te=function(){W.postMessage(null)}}else te=function(){w(q,0)};function ae(M,X){D=w(function(){M(e.unstable_now())},X)}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(M){M.callback=null},e.unstable_forceFrameRate=function(M){0>M||125<M?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):L=0<M?Math.floor(1e3/M):5},e.unstable_getCurrentPriorityLevel=function(){return y},e.unstable_next=function(M){switch(y){case 1:case 2:case 3:var X=3;break;default:X=y}var G=y;y=X;try{return M()}finally{y=G}},e.unstable_requestPaint=function(){C=!0},e.unstable_runWithPriority=function(M,X){switch(M){case 1:case 2:case 3:case 4:case 5:break;default:M=3}var G=y;y=M;try{return X()}finally{y=G}},e.unstable_scheduleCallback=function(M,X,G){var ge=e.unstable_now();switch(typeof G=="object"&&G!==null?(G=G.delay,G=typeof G=="number"&&0<G?ge+G:ge):G=ge,M){case 1:var P=-1;break;case 2:P=250;break;case 5:P=1073741823;break;case 4:P=1e4;break;default:P=5e3}return P=G+P,M={id:p++,callback:X,priorityLevel:M,startTime:G,expirationTime:P,sortIndex:-1},G>ge?(M.sortIndex=G,t(f,M),n(d)===null&&M===n(f)&&(A?(x(D),D=-1):A=!0,ae(R,G-ge))):(M.sortIndex=P,t(d,M),S||_||(S=!0,I||(I=!0,te()))),M},e.unstable_shouldYield=Z,e.unstable_wrapCallback=function(M){var X=y;return function(){var G=y;y=X;try{return M.apply(this,arguments)}finally{y=G}}}})(hg)),hg}var uA;function xM(){return uA||(uA=1,fg.exports=SM()),fg.exports}var pg={exports:{}},hn={};/**
|
|
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 dA;function AM(){if(dA)return hn;dA=1;var e=Wc();function t(d){var f="https://react.dev/errors/"+d;if(1<arguments.length){f+="?args[]="+encodeURIComponent(arguments[1]);for(var p=2;p<arguments.length;p++)f+="&args[]="+encodeURIComponent(arguments[p])}return"Minified React error #"+d+"; visit "+f+" 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 s(d,f,p){var g=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:a,key:g==null?null:""+g,children:d,containerInfo:f,implementation:p}}var l=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function u(d,f){if(d==="font")return"";if(typeof f=="string")return f==="use-credentials"?f:""}return hn.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,hn.createPortal=function(d,f){var p=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!f||f.nodeType!==1&&f.nodeType!==9&&f.nodeType!==11)throw Error(t(299));return s(d,f,null,p)},hn.flushSync=function(d){var f=l.T,p=r.p;try{if(l.T=null,r.p=2,d)return d()}finally{l.T=f,r.p=p,r.d.f()}},hn.preconnect=function(d,f){typeof d=="string"&&(f?(f=f.crossOrigin,f=typeof f=="string"?f==="use-credentials"?f:"":void 0):f=null,r.d.C(d,f))},hn.prefetchDNS=function(d){typeof d=="string"&&r.d.D(d)},hn.preinit=function(d,f){if(typeof d=="string"&&f&&typeof f.as=="string"){var p=f.as,g=u(p,f.crossOrigin),y=typeof f.integrity=="string"?f.integrity:void 0,_=typeof f.fetchPriority=="string"?f.fetchPriority:void 0;p==="style"?r.d.S(d,typeof f.precedence=="string"?f.precedence:void 0,{crossOrigin:g,integrity:y,fetchPriority:_}):p==="script"&&r.d.X(d,{crossOrigin:g,integrity:y,fetchPriority:_,nonce:typeof f.nonce=="string"?f.nonce:void 0})}},hn.preinitModule=function(d,f){if(typeof d=="string")if(typeof f=="object"&&f!==null){if(f.as==null||f.as==="script"){var p=u(f.as,f.crossOrigin);r.d.M(d,{crossOrigin:p,integrity:typeof f.integrity=="string"?f.integrity:void 0,nonce:typeof f.nonce=="string"?f.nonce:void 0})}}else f==null&&r.d.M(d)},hn.preload=function(d,f){if(typeof d=="string"&&typeof f=="object"&&f!==null&&typeof f.as=="string"){var p=f.as,g=u(p,f.crossOrigin);r.d.L(d,p,{crossOrigin:g,integrity:typeof f.integrity=="string"?f.integrity:void 0,nonce:typeof f.nonce=="string"?f.nonce:void 0,type:typeof f.type=="string"?f.type:void 0,fetchPriority:typeof f.fetchPriority=="string"?f.fetchPriority:void 0,referrerPolicy:typeof f.referrerPolicy=="string"?f.referrerPolicy:void 0,imageSrcSet:typeof f.imageSrcSet=="string"?f.imageSrcSet:void 0,imageSizes:typeof f.imageSizes=="string"?f.imageSizes:void 0,media:typeof f.media=="string"?f.media:void 0})}},hn.preloadModule=function(d,f){if(typeof d=="string")if(f){var p=u(f.as,f.crossOrigin);r.d.m(d,{as:typeof f.as=="string"&&f.as!=="script"?f.as:void 0,crossOrigin:p,integrity:typeof f.integrity=="string"?f.integrity:void 0})}else r.d.m(d)},hn.requestFormReset=function(d){r.d.r(d)},hn.unstable_batchedUpdates=function(d,f){return d(f)},hn.useFormState=function(d,f,p){return l.H.useFormState(d,f,p)},hn.useFormStatus=function(){return l.H.useHostTransitionStatus()},hn.version="19.1.1",hn}var fA;function LR(){if(fA)return pg.exports;fA=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(),pg.exports=AM(),pg.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 hA;function wM(){if(hA)return Zl;hA=1;var e=xM(),t=Wc(),n=LR();function r(i){var o="https://react.dev/errors/"+i;if(1<arguments.length){o+="?args[]="+encodeURIComponent(arguments[1]);for(var c=2;c<arguments.length;c++)o+="&args[]="+encodeURIComponent(arguments[c])}return"Minified React error #"+i+"; visit "+o+" 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)}function s(i){var o=i,c=i;if(i.alternate)for(;o.return;)o=o.return;else{i=o;do o=i,(o.flags&4098)!==0&&(c=o.return),i=o.return;while(i)}return o.tag===3?c:null}function l(i){if(i.tag===13){var o=i.memoizedState;if(o===null&&(i=i.alternate,i!==null&&(o=i.memoizedState)),o!==null)return o.dehydrated}return null}function u(i){if(s(i)!==i)throw Error(r(188))}function d(i){var o=i.alternate;if(!o){if(o=s(i),o===null)throw Error(r(188));return o!==i?null:i}for(var c=i,h=o;;){var m=c.return;if(m===null)break;var b=m.alternate;if(b===null){if(h=m.return,h!==null){c=h;continue}break}if(m.child===b.child){for(b=m.child;b;){if(b===c)return u(m),i;if(b===h)return u(m),o;b=b.sibling}throw Error(r(188))}if(c.return!==h.return)c=m,h=b;else{for(var k=!1,O=m.child;O;){if(O===c){k=!0,c=m,h=b;break}if(O===h){k=!0,h=m,c=b;break}O=O.sibling}if(!k){for(O=b.child;O;){if(O===c){k=!0,c=b,h=m;break}if(O===h){k=!0,h=b,c=m;break}O=O.sibling}if(!k)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:o}function f(i){var o=i.tag;if(o===5||o===26||o===27||o===6)return i;for(i=i.child;i!==null;){if(o=f(i),o!==null)return o;i=i.sibling}return null}var p=Object.assign,g=Symbol.for("react.element"),y=Symbol.for("react.transitional.element"),_=Symbol.for("react.portal"),S=Symbol.for("react.fragment"),A=Symbol.for("react.strict_mode"),C=Symbol.for("react.profiler"),w=Symbol.for("react.provider"),x=Symbol.for("react.consumer"),T=Symbol.for("react.context"),N=Symbol.for("react.forward_ref"),R=Symbol.for("react.suspense"),I=Symbol.for("react.suspense_list"),D=Symbol.for("react.memo"),L=Symbol.for("react.lazy"),H=Symbol.for("react.activity"),Z=Symbol.for("react.memo_cache_sentinel"),q=Symbol.iterator;function te(i){return i===null||typeof i!="object"?null:(i=q&&i[q]||i["@@iterator"],typeof i=="function"?i:null)}var ce=Symbol.for("react.client.reference");function W(i){if(i==null)return null;if(typeof i=="function")return i.$$typeof===ce?null:i.displayName||i.name||null;if(typeof i=="string")return i;switch(i){case S:return"Fragment";case C:return"Profiler";case A:return"StrictMode";case R:return"Suspense";case I:return"SuspenseList";case H:return"Activity"}if(typeof i=="object")switch(i.$$typeof){case _:return"Portal";case T:return(i.displayName||"Context")+".Provider";case x:return(i._context.displayName||"Context")+".Consumer";case N:var o=i.render;return i=i.displayName,i||(i=o.displayName||o.name||"",i=i!==""?"ForwardRef("+i+")":"ForwardRef"),i;case D:return o=i.displayName||null,o!==null?o:W(i.type)||"Memo";case L:o=i._payload,i=i._init;try{return W(i(o))}catch{}}return null}var ae=Array.isArray,M=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,X=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,G={pending:!1,data:null,method:null,action:null},ge=[],P=-1;function ie(i){return{current:i}}function F(i){0>P||(i.current=ge[P],ge[P]=null,P--)}function J(i,o){P++,ge[P]=i.current,i.current=o}var se=ie(null),he=ie(null),ye=ie(null),fe=ie(null);function xe(i,o){switch(J(ye,o),J(he,i),J(se,null),o.nodeType){case 9:case 11:i=(i=o.documentElement)&&(i=i.namespaceURI)?Dx(i):0;break;default:if(i=o.tagName,o=o.namespaceURI)o=Dx(o),i=jx(o,i);else switch(i){case"svg":i=1;break;case"math":i=2;break;default:i=0}}F(se),J(se,i)}function je(){F(se),F(he),F(ye)}function Be(i){i.memoizedState!==null&&J(fe,i);var o=se.current,c=jx(o,i.type);o!==c&&(J(he,i),J(se,c))}function Ye(i){he.current===i&&(F(se),F(he)),fe.current===i&&(F(fe),$l._currentValue=G)}var et=Object.prototype.hasOwnProperty,Zt=e.unstable_scheduleCallback,An=e.unstable_cancelCallback,Ai=e.unstable_shouldYield,Sa=e.unstable_requestPaint,un=e.unstable_now,m_=e.unstable_getCurrentPriorityLevel,Qs=e.unstable_ImmediatePriority,V=e.unstable_UserBlockingPriority,ee=e.unstable_NormalPriority,oe=e.unstable_LowPriority,Se=e.unstable_IdlePriority,be=e.log,ve=e.unstable_setDisableYieldValue,Ce=null,Ve=null;function Xe(i){if(typeof be=="function"&&ve(i),Ve&&typeof Ve.setStrictMode=="function")try{Ve.setStrictMode(Ce,i)}catch{}}var pt=Math.clz32?Math.clz32:Xh,vo=Math.log,Cr=Math.LN2;function Xh(i){return i>>>=0,i===0?32:31-(vo(i)/Cr|0)|0}var wi=256,Ti=4194304;function Zr(i){var o=i&42;if(o!==0)return o;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:return 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&4194048;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 xa(i,o,c){var h=i.pendingLanes;if(h===0)return 0;var m=0,b=i.suspendedLanes,k=i.pingedLanes;i=i.warmLanes;var O=h&134217727;return O!==0?(h=O&~b,h!==0?m=Zr(h):(k&=O,k!==0?m=Zr(k):c||(c=O&~i,c!==0&&(m=Zr(c))))):(O=h&~b,O!==0?m=Zr(O):k!==0?m=Zr(k):c||(c=h&~i,c!==0&&(m=Zr(c)))),m===0?0:o!==0&&o!==m&&(o&b)===0&&(b=m&-m,c=o&-o,b>=c||b===32&&(c&4194048)!==0)?o:m}function Aa(i,o){return(i.pendingLanes&~(i.suspendedLanes&~i.pingedLanes)&o)===0}function _u(i,o){switch(i){case 1:case 2:case 4:case 8:case 64:return o+250;case 16:case 32: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 o+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 g_(){var i=wi;return wi<<=1,(wi&4194048)===0&&(wi=256),i}function y_(){var i=Ti;return Ti<<=1,(Ti&62914560)===0&&(Ti=4194304),i}function Qh(i){for(var o=[],c=0;31>c;c++)o.push(i);return o}function Js(i,o){i.pendingLanes|=o,o!==268435456&&(i.suspendedLanes=0,i.pingedLanes=0,i.warmLanes=0)}function oL(i,o,c,h,m,b){var k=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 O=i.entanglements,z=i.expirationTimes,Q=i.hiddenUpdates;for(c=k&~c;0<c;){var le=31-pt(c),de=1<<le;O[le]=0,z[le]=-1;var ne=Q[le];if(ne!==null)for(Q[le]=null,le=0;le<ne.length;le++){var re=ne[le];re!==null&&(re.lane&=-536870913)}c&=~de}h!==0&&v_(i,h,0),b!==0&&m===0&&i.tag!==0&&(i.suspendedLanes|=b&~(k&~o))}function v_(i,o,c){i.pendingLanes|=o,i.suspendedLanes&=~o;var h=31-pt(o);i.entangledLanes|=o,i.entanglements[h]=i.entanglements[h]|1073741824|c&4194090}function b_(i,o){var c=i.entangledLanes|=o;for(i=i.entanglements;c;){var h=31-pt(c),m=1<<h;m&o|i[h]&o&&(i[h]|=o),c&=~m}}function Jh(i){switch(i){case 2:i=1;break;case 8:i=4;break;case 32:i=16;break;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:i=128;break;case 268435456:i=134217728;break;default:i=0}return i}function ep(i){return i&=-i,2<i?8<i?(i&134217727)!==0?32:268435456:8:2}function __(){var i=X.p;return i!==0?i:(i=window.event,i===void 0?32:Jx(i.type))}function sL(i,o){var c=X.p;try{return X.p=i,o()}finally{X.p=c}}var Ci=Math.random().toString(36).slice(2),dn="__reactFiber$"+Ci,wn="__reactProps$"+Ci,bo="__reactContainer$"+Ci,tp="__reactEvents$"+Ci,lL="__reactListeners$"+Ci,cL="__reactHandles$"+Ci,E_="__reactResources$"+Ci,el="__reactMarker$"+Ci;function np(i){delete i[dn],delete i[wn],delete i[tp],delete i[lL],delete i[cL]}function _o(i){var o=i[dn];if(o)return o;for(var c=i.parentNode;c;){if(o=c[bo]||c[dn]){if(c=o.alternate,o.child!==null||c!==null&&c.child!==null)for(i=zx(i);i!==null;){if(c=i[dn])return c;i=zx(i)}return o}i=c,c=i.parentNode}return null}function Eo(i){if(i=i[dn]||i[bo]){var o=i.tag;if(o===5||o===6||o===13||o===26||o===27||o===3)return i}return null}function tl(i){var o=i.tag;if(o===5||o===26||o===27||o===6)return i.stateNode;throw Error(r(33))}function So(i){var o=i[E_];return o||(o=i[E_]={hoistableStyles:new Map,hoistableScripts:new Map}),o}function Yt(i){i[el]=!0}var S_=new Set,x_={};function wa(i,o){xo(i,o),xo(i+"Capture",o)}function xo(i,o){for(x_[i]=o,i=0;i<o.length;i++)S_.add(o[i])}var uL=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]*$"),A_={},w_={};function dL(i){return et.call(w_,i)?!0:et.call(A_,i)?!1:uL.test(i)?w_[i]=!0:(A_[i]=!0,!1)}function Eu(i,o,c){if(dL(o))if(c===null)i.removeAttribute(o);else{switch(typeof c){case"undefined":case"function":case"symbol":i.removeAttribute(o);return;case"boolean":var h=o.toLowerCase().slice(0,5);if(h!=="data-"&&h!=="aria-"){i.removeAttribute(o);return}}i.setAttribute(o,""+c)}}function Su(i,o,c){if(c===null)i.removeAttribute(o);else{switch(typeof c){case"undefined":case"function":case"symbol":case"boolean":i.removeAttribute(o);return}i.setAttribute(o,""+c)}}function Yr(i,o,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(o,c,""+h)}}var rp,T_;function Ao(i){if(rp===void 0)try{throw Error()}catch(c){var o=c.stack.trim().match(/\n( *(at )?)/);rp=o&&o[1]||"",T_=-1<c.stack.indexOf(`
|
|
43
|
-
at`)?" (<anonymous>)":-1<c.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
44
|
-
`+rp+i+T_}var ip=!1;function ap(i,o){if(!i||ip)return"";ip=!0;var c=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var h={DetermineComponentFrameRoot:function(){try{if(o){var de=function(){throw Error()};if(Object.defineProperty(de.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(de,[])}catch(re){var ne=re}Reflect.construct(i,[],de)}else{try{de.call()}catch(re){ne=re}i.call(de.prototype)}}else{try{throw Error()}catch(re){ne=re}(de=i())&&typeof de.catch=="function"&&de.catch(function(){})}}catch(re){if(re&&ne&&typeof re.stack=="string")return[re.stack,ne.stack]}return[null,null]}};h.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var m=Object.getOwnPropertyDescriptor(h.DetermineComponentFrameRoot,"name");m&&m.configurable&&Object.defineProperty(h.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var b=h.DetermineComponentFrameRoot(),k=b[0],O=b[1];if(k&&O){var z=k.split(`
|
|
45
|
-
`),Q=O.split(`
|
|
46
|
-
`);for(m=h=0;h<z.length&&!z[h].includes("DetermineComponentFrameRoot");)h++;for(;m<Q.length&&!Q[m].includes("DetermineComponentFrameRoot");)m++;if(h===z.length||m===Q.length)for(h=z.length-1,m=Q.length-1;1<=h&&0<=m&&z[h]!==Q[m];)m--;for(;1<=h&&0<=m;h--,m--)if(z[h]!==Q[m]){if(h!==1||m!==1)do if(h--,m--,0>m||z[h]!==Q[m]){var le=`
|
|
47
|
-
`+z[h].replace(" at new "," at ");return i.displayName&&le.includes("<anonymous>")&&(le=le.replace("<anonymous>",i.displayName)),le}while(1<=h&&0<=m);break}}}finally{ip=!1,Error.prepareStackTrace=c}return(c=i?i.displayName||i.name:"")?Ao(c):""}function fL(i){switch(i.tag){case 26:case 27:case 5:return Ao(i.type);case 16:return Ao("Lazy");case 13:return Ao("Suspense");case 19:return Ao("SuspenseList");case 0:case 15:return ap(i.type,!1);case 11:return ap(i.type.render,!1);case 1:return ap(i.type,!0);case 31:return Ao("Activity");default:return""}}function C_(i){try{var o="";do o+=fL(i),i=i.return;while(i);return o}catch(c){return`
|
|
48
|
-
Error generating stack: `+c.message+`
|
|
49
|
-
`+c.stack}}function Zn(i){switch(typeof i){case"bigint":case"boolean":case"number":case"string":case"undefined":return i;case"object":return i;default:return""}}function R_(i){var o=i.type;return(i=i.nodeName)&&i.toLowerCase()==="input"&&(o==="checkbox"||o==="radio")}function hL(i){var o=R_(i)?"checked":"value",c=Object.getOwnPropertyDescriptor(i.constructor.prototype,o),h=""+i[o];if(!i.hasOwnProperty(o)&&typeof c<"u"&&typeof c.get=="function"&&typeof c.set=="function"){var m=c.get,b=c.set;return Object.defineProperty(i,o,{configurable:!0,get:function(){return m.call(this)},set:function(k){h=""+k,b.call(this,k)}}),Object.defineProperty(i,o,{enumerable:c.enumerable}),{getValue:function(){return h},setValue:function(k){h=""+k},stopTracking:function(){i._valueTracker=null,delete i[o]}}}}function xu(i){i._valueTracker||(i._valueTracker=hL(i))}function k_(i){if(!i)return!1;var o=i._valueTracker;if(!o)return!0;var c=o.getValue(),h="";return i&&(h=R_(i)?i.checked?"true":"false":i.value),i=h,i!==c?(o.setValue(i),!0):!1}function Au(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 pL=/[\n"\\]/g;function Yn(i){return i.replace(pL,function(o){return"\\"+o.charCodeAt(0).toString(16)+" "})}function op(i,o,c,h,m,b,k,O){i.name="",k!=null&&typeof k!="function"&&typeof k!="symbol"&&typeof k!="boolean"?i.type=k:i.removeAttribute("type"),o!=null?k==="number"?(o===0&&i.value===""||i.value!=o)&&(i.value=""+Zn(o)):i.value!==""+Zn(o)&&(i.value=""+Zn(o)):k!=="submit"&&k!=="reset"||i.removeAttribute("value"),o!=null?sp(i,k,Zn(o)):c!=null?sp(i,k,Zn(c)):h!=null&&i.removeAttribute("value"),m==null&&b!=null&&(i.defaultChecked=!!b),m!=null&&(i.checked=m&&typeof m!="function"&&typeof m!="symbol"),O!=null&&typeof O!="function"&&typeof O!="symbol"&&typeof O!="boolean"?i.name=""+Zn(O):i.removeAttribute("name")}function N_(i,o,c,h,m,b,k,O){if(b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"&&(i.type=b),o!=null||c!=null){if(!(b!=="submit"&&b!=="reset"||o!=null))return;c=c!=null?""+Zn(c):"",o=o!=null?""+Zn(o):c,O||o===i.value||(i.value=o),i.defaultValue=o}h=h??m,h=typeof h!="function"&&typeof h!="symbol"&&!!h,i.checked=O?i.checked:!!h,i.defaultChecked=!!h,k!=null&&typeof k!="function"&&typeof k!="symbol"&&typeof k!="boolean"&&(i.name=k)}function sp(i,o,c){o==="number"&&Au(i.ownerDocument)===i||i.defaultValue===""+c||(i.defaultValue=""+c)}function wo(i,o,c,h){if(i=i.options,o){o={};for(var m=0;m<c.length;m++)o["$"+c[m]]=!0;for(c=0;c<i.length;c++)m=o.hasOwnProperty("$"+i[c].value),i[c].selected!==m&&(i[c].selected=m),m&&h&&(i[c].defaultSelected=!0)}else{for(c=""+Zn(c),o=null,m=0;m<i.length;m++){if(i[m].value===c){i[m].selected=!0,h&&(i[m].defaultSelected=!0);return}o!==null||i[m].disabled||(o=i[m])}o!==null&&(o.selected=!0)}}function O_(i,o,c){if(o!=null&&(o=""+Zn(o),o!==i.value&&(i.value=o),c==null)){i.defaultValue!==o&&(i.defaultValue=o);return}i.defaultValue=c!=null?""+Zn(c):""}function I_(i,o,c,h){if(o==null){if(h!=null){if(c!=null)throw Error(r(92));if(ae(h)){if(1<h.length)throw Error(r(93));h=h[0]}c=h}c==null&&(c=""),o=c}c=Zn(o),i.defaultValue=c,h=i.textContent,h===c&&h!==""&&h!==null&&(i.value=h)}function To(i,o){if(o){var c=i.firstChild;if(c&&c===i.lastChild&&c.nodeType===3){c.nodeValue=o;return}}i.textContent=o}var mL=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 D_(i,o,c){var h=o.indexOf("--")===0;c==null||typeof c=="boolean"||c===""?h?i.setProperty(o,""):o==="float"?i.cssFloat="":i[o]="":h?i.setProperty(o,c):typeof c!="number"||c===0||mL.has(o)?o==="float"?i.cssFloat=c:i[o]=(""+c).trim():i[o]=c+"px"}function j_(i,o,c){if(o!=null&&typeof o!="object")throw Error(r(62));if(i=i.style,c!=null){for(var h in c)!c.hasOwnProperty(h)||o!=null&&o.hasOwnProperty(h)||(h.indexOf("--")===0?i.setProperty(h,""):h==="float"?i.cssFloat="":i[h]="");for(var m in o)h=o[m],o.hasOwnProperty(m)&&c[m]!==h&&D_(i,m,h)}else for(var b in o)o.hasOwnProperty(b)&&D_(i,b,o[b])}function lp(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 gL=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"]]),yL=/^[\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 wu(i){return yL.test(""+i)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":i}var cp=null;function up(i){return i=i.target||i.srcElement||window,i.correspondingUseElement&&(i=i.correspondingUseElement),i.nodeType===3?i.parentNode:i}var Co=null,Ro=null;function L_(i){var o=Eo(i);if(o&&(i=o.stateNode)){var c=i[wn]||null;e:switch(i=o.stateNode,o.type){case"input":if(op(i,c.value,c.defaultValue,c.defaultValue,c.checked,c.defaultChecked,c.type,c.name),o=c.name,c.type==="radio"&&o!=null){for(c=i;c.parentNode;)c=c.parentNode;for(c=c.querySelectorAll('input[name="'+Yn(""+o)+'"][type="radio"]'),o=0;o<c.length;o++){var h=c[o];if(h!==i&&h.form===i.form){var m=h[wn]||null;if(!m)throw Error(r(90));op(h,m.value,m.defaultValue,m.defaultValue,m.checked,m.defaultChecked,m.type,m.name)}}for(o=0;o<c.length;o++)h=c[o],h.form===i.form&&k_(h)}break e;case"textarea":O_(i,c.value,c.defaultValue);break e;case"select":o=c.value,o!=null&&wo(i,!!c.multiple,o,!1)}}}var dp=!1;function P_(i,o,c){if(dp)return i(o,c);dp=!0;try{var h=i(o);return h}finally{if(dp=!1,(Co!==null||Ro!==null)&&(ud(),Co&&(o=Co,i=Ro,Ro=Co=null,L_(o),i)))for(o=0;o<i.length;o++)L_(i[o])}}function nl(i,o){var c=i.stateNode;if(c===null)return null;var h=c[wn]||null;if(h===null)return null;c=h[o];e:switch(o){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,o,typeof c));return c}var Xr=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),fp=!1;if(Xr)try{var rl={};Object.defineProperty(rl,"passive",{get:function(){fp=!0}}),window.addEventListener("test",rl,rl),window.removeEventListener("test",rl,rl)}catch{fp=!1}var Ri=null,hp=null,Tu=null;function M_(){if(Tu)return Tu;var i,o=hp,c=o.length,h,m="value"in Ri?Ri.value:Ri.textContent,b=m.length;for(i=0;i<c&&o[i]===m[i];i++);var k=c-i;for(h=1;h<=k&&o[c-h]===m[b-h];h++);return Tu=m.slice(i,1<h?1-h:void 0)}function Cu(i){var o=i.keyCode;return"charCode"in i?(i=i.charCode,i===0&&o===13&&(i=13)):i=o,i===10&&(i=13),32<=i||i===13?i:0}function Ru(){return!0}function z_(){return!1}function Tn(i){function o(c,h,m,b,k){this._reactName=c,this._targetInst=m,this.type=h,this.nativeEvent=b,this.target=k,this.currentTarget=null;for(var O in i)i.hasOwnProperty(O)&&(c=i[O],this[O]=c?c(b):b[O]);return this.isDefaultPrevented=(b.defaultPrevented!=null?b.defaultPrevented:b.returnValue===!1)?Ru:z_,this.isPropagationStopped=z_,this}return p(o.prototype,{preventDefault:function(){this.defaultPrevented=!0;var c=this.nativeEvent;c&&(c.preventDefault?c.preventDefault():typeof c.returnValue!="unknown"&&(c.returnValue=!1),this.isDefaultPrevented=Ru)},stopPropagation:function(){var c=this.nativeEvent;c&&(c.stopPropagation?c.stopPropagation():typeof c.cancelBubble!="unknown"&&(c.cancelBubble=!0),this.isPropagationStopped=Ru)},persist:function(){},isPersistent:Ru}),o}var Ta={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(i){return i.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ku=Tn(Ta),il=p({},Ta,{view:0,detail:0}),vL=Tn(il),pp,mp,al,Nu=p({},il,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:yp,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!==al&&(al&&i.type==="mousemove"?(pp=i.screenX-al.screenX,mp=i.screenY-al.screenY):mp=pp=0,al=i),pp)},movementY:function(i){return"movementY"in i?i.movementY:mp}}),B_=Tn(Nu),bL=p({},Nu,{dataTransfer:0}),_L=Tn(bL),EL=p({},il,{relatedTarget:0}),gp=Tn(EL),SL=p({},Ta,{animationName:0,elapsedTime:0,pseudoElement:0}),xL=Tn(SL),AL=p({},Ta,{clipboardData:function(i){return"clipboardData"in i?i.clipboardData:window.clipboardData}}),wL=Tn(AL),TL=p({},Ta,{data:0}),V_=Tn(TL),CL={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},RL={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"},kL={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function NL(i){var o=this.nativeEvent;return o.getModifierState?o.getModifierState(i):(i=kL[i])?!!o[i]:!1}function yp(){return NL}var OL=p({},il,{key:function(i){if(i.key){var o=CL[i.key]||i.key;if(o!=="Unidentified")return o}return i.type==="keypress"?(i=Cu(i),i===13?"Enter":String.fromCharCode(i)):i.type==="keydown"||i.type==="keyup"?RL[i.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:yp,charCode:function(i){return i.type==="keypress"?Cu(i):0},keyCode:function(i){return i.type==="keydown"||i.type==="keyup"?i.keyCode:0},which:function(i){return i.type==="keypress"?Cu(i):i.type==="keydown"||i.type==="keyup"?i.keyCode:0}}),IL=Tn(OL),DL=p({},Nu,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),U_=Tn(DL),jL=p({},il,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:yp}),LL=Tn(jL),PL=p({},Ta,{propertyName:0,elapsedTime:0,pseudoElement:0}),ML=Tn(PL),zL=p({},Nu,{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}),BL=Tn(zL),VL=p({},Ta,{newState:0,oldState:0}),UL=Tn(VL),FL=[9,13,27,32],vp=Xr&&"CompositionEvent"in window,ol=null;Xr&&"documentMode"in document&&(ol=document.documentMode);var $L=Xr&&"TextEvent"in window&&!ol,F_=Xr&&(!vp||ol&&8<ol&&11>=ol),$_=" ",H_=!1;function G_(i,o){switch(i){case"keyup":return FL.indexOf(o.keyCode)!==-1;case"keydown":return o.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function K_(i){return i=i.detail,typeof i=="object"&&"data"in i?i.data:null}var ko=!1;function HL(i,o){switch(i){case"compositionend":return K_(o);case"keypress":return o.which!==32?null:(H_=!0,$_);case"textInput":return i=o.data,i===$_&&H_?null:i;default:return null}}function GL(i,o){if(ko)return i==="compositionend"||!vp&&G_(i,o)?(i=M_(),Tu=hp=Ri=null,ko=!1,i):null;switch(i){case"paste":return null;case"keypress":if(!(o.ctrlKey||o.altKey||o.metaKey)||o.ctrlKey&&o.altKey){if(o.char&&1<o.char.length)return o.char;if(o.which)return String.fromCharCode(o.which)}return null;case"compositionend":return F_&&o.locale!=="ko"?null:o.data;default:return null}}var KL={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 q_(i){var o=i&&i.nodeName&&i.nodeName.toLowerCase();return o==="input"?!!KL[i.type]:o==="textarea"}function W_(i,o,c,h){Co?Ro?Ro.push(h):Ro=[h]:Co=h,o=gd(o,"onChange"),0<o.length&&(c=new ku("onChange","change",null,c,h),i.push({event:c,listeners:o}))}var sl=null,ll=null;function qL(i){Rx(i,0)}function Ou(i){var o=tl(i);if(k_(o))return i}function Z_(i,o){if(i==="change")return o}var Y_=!1;if(Xr){var bp;if(Xr){var _p="oninput"in document;if(!_p){var X_=document.createElement("div");X_.setAttribute("oninput","return;"),_p=typeof X_.oninput=="function"}bp=_p}else bp=!1;Y_=bp&&(!document.documentMode||9<document.documentMode)}function Q_(){sl&&(sl.detachEvent("onpropertychange",J_),ll=sl=null)}function J_(i){if(i.propertyName==="value"&&Ou(ll)){var o=[];W_(o,ll,i,up(i)),P_(qL,o)}}function WL(i,o,c){i==="focusin"?(Q_(),sl=o,ll=c,sl.attachEvent("onpropertychange",J_)):i==="focusout"&&Q_()}function ZL(i){if(i==="selectionchange"||i==="keyup"||i==="keydown")return Ou(ll)}function YL(i,o){if(i==="click")return Ou(o)}function XL(i,o){if(i==="input"||i==="change")return Ou(o)}function QL(i,o){return i===o&&(i!==0||1/i===1/o)||i!==i&&o!==o}var Dn=typeof Object.is=="function"?Object.is:QL;function cl(i,o){if(Dn(i,o))return!0;if(typeof i!="object"||i===null||typeof o!="object"||o===null)return!1;var c=Object.keys(i),h=Object.keys(o);if(c.length!==h.length)return!1;for(h=0;h<c.length;h++){var m=c[h];if(!et.call(o,m)||!Dn(i[m],o[m]))return!1}return!0}function eE(i){for(;i&&i.firstChild;)i=i.firstChild;return i}function tE(i,o){var c=eE(i);i=0;for(var h;c;){if(c.nodeType===3){if(h=i+c.textContent.length,i<=o&&h>=o)return{node:c,offset:o-i};i=h}e:{for(;c;){if(c.nextSibling){c=c.nextSibling;break e}c=c.parentNode}c=void 0}c=eE(c)}}function nE(i,o){return i&&o?i===o?!0:i&&i.nodeType===3?!1:o&&o.nodeType===3?nE(i,o.parentNode):"contains"in i?i.contains(o):i.compareDocumentPosition?!!(i.compareDocumentPosition(o)&16):!1:!1}function rE(i){i=i!=null&&i.ownerDocument!=null&&i.ownerDocument.defaultView!=null?i.ownerDocument.defaultView:window;for(var o=Au(i.document);o instanceof i.HTMLIFrameElement;){try{var c=typeof o.contentWindow.location.href=="string"}catch{c=!1}if(c)i=o.contentWindow;else break;o=Au(i.document)}return o}function Ep(i){var o=i&&i.nodeName&&i.nodeName.toLowerCase();return o&&(o==="input"&&(i.type==="text"||i.type==="search"||i.type==="tel"||i.type==="url"||i.type==="password")||o==="textarea"||i.contentEditable==="true")}var JL=Xr&&"documentMode"in document&&11>=document.documentMode,No=null,Sp=null,ul=null,xp=!1;function iE(i,o,c){var h=c.window===c?c.document:c.nodeType===9?c:c.ownerDocument;xp||No==null||No!==Au(h)||(h=No,"selectionStart"in h&&Ep(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}),ul&&cl(ul,h)||(ul=h,h=gd(Sp,"onSelect"),0<h.length&&(o=new ku("onSelect","select",null,o,c),i.push({event:o,listeners:h}),o.target=No)))}function Ca(i,o){var c={};return c[i.toLowerCase()]=o.toLowerCase(),c["Webkit"+i]="webkit"+o,c["Moz"+i]="moz"+o,c}var Oo={animationend:Ca("Animation","AnimationEnd"),animationiteration:Ca("Animation","AnimationIteration"),animationstart:Ca("Animation","AnimationStart"),transitionrun:Ca("Transition","TransitionRun"),transitionstart:Ca("Transition","TransitionStart"),transitioncancel:Ca("Transition","TransitionCancel"),transitionend:Ca("Transition","TransitionEnd")},Ap={},aE={};Xr&&(aE=document.createElement("div").style,"AnimationEvent"in window||(delete Oo.animationend.animation,delete Oo.animationiteration.animation,delete Oo.animationstart.animation),"TransitionEvent"in window||delete Oo.transitionend.transition);function Ra(i){if(Ap[i])return Ap[i];if(!Oo[i])return i;var o=Oo[i],c;for(c in o)if(o.hasOwnProperty(c)&&c in aE)return Ap[i]=o[c];return i}var oE=Ra("animationend"),sE=Ra("animationiteration"),lE=Ra("animationstart"),eP=Ra("transitionrun"),tP=Ra("transitionstart"),nP=Ra("transitioncancel"),cE=Ra("transitionend"),uE=new Map,wp="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 toggle touchMove waiting wheel".split(" ");wp.push("scrollEnd");function hr(i,o){uE.set(i,o),wa(o,[i])}var dE=new WeakMap;function Xn(i,o){if(typeof i=="object"&&i!==null){var c=dE.get(i);return c!==void 0?c:(o={value:i,source:o,stack:C_(o)},dE.set(i,o),o)}return{value:i,source:o,stack:C_(o)}}var Qn=[],Io=0,Tp=0;function Iu(){for(var i=Io,o=Tp=Io=0;o<i;){var c=Qn[o];Qn[o++]=null;var h=Qn[o];Qn[o++]=null;var m=Qn[o];Qn[o++]=null;var b=Qn[o];if(Qn[o++]=null,h!==null&&m!==null){var k=h.pending;k===null?m.next=m:(m.next=k.next,k.next=m),h.pending=m}b!==0&&fE(c,m,b)}}function Du(i,o,c,h){Qn[Io++]=i,Qn[Io++]=o,Qn[Io++]=c,Qn[Io++]=h,Tp|=h,i.lanes|=h,i=i.alternate,i!==null&&(i.lanes|=h)}function Cp(i,o,c,h){return Du(i,o,c,h),ju(i)}function Do(i,o){return Du(i,null,null,o),ju(i)}function fE(i,o,c){i.lanes|=c;var h=i.alternate;h!==null&&(h.lanes|=c);for(var m=!1,b=i.return;b!==null;)b.childLanes|=c,h=b.alternate,h!==null&&(h.childLanes|=c),b.tag===22&&(i=b.stateNode,i===null||i._visibility&1||(m=!0)),i=b,b=b.return;return i.tag===3?(b=i.stateNode,m&&o!==null&&(m=31-pt(c),i=b.hiddenUpdates,h=i[m],h===null?i[m]=[o]:h.push(o),o.lane=c|536870912),b):null}function ju(i){if(50<Ll)throw Ll=0,Dm=null,Error(r(185));for(var o=i.return;o!==null;)i=o,o=i.return;return i.tag===3?i.stateNode:null}var jo={};function rP(i,o,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=o,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 jn(i,o,c,h){return new rP(i,o,c,h)}function Rp(i){return i=i.prototype,!(!i||!i.isReactComponent)}function Qr(i,o){var c=i.alternate;return c===null?(c=jn(i.tag,o,i.key,i.mode),c.elementType=i.elementType,c.type=i.type,c.stateNode=i.stateNode,c.alternate=i,i.alternate=c):(c.pendingProps=o,c.type=i.type,c.flags=0,c.subtreeFlags=0,c.deletions=null),c.flags=i.flags&65011712,c.childLanes=i.childLanes,c.lanes=i.lanes,c.child=i.child,c.memoizedProps=i.memoizedProps,c.memoizedState=i.memoizedState,c.updateQueue=i.updateQueue,o=i.dependencies,c.dependencies=o===null?null:{lanes:o.lanes,firstContext:o.firstContext},c.sibling=i.sibling,c.index=i.index,c.ref=i.ref,c.refCleanup=i.refCleanup,c}function hE(i,o){i.flags&=65011714;var c=i.alternate;return c===null?(i.childLanes=0,i.lanes=o,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,o=c.dependencies,i.dependencies=o===null?null:{lanes:o.lanes,firstContext:o.firstContext}),i}function Lu(i,o,c,h,m,b){var k=0;if(h=i,typeof i=="function")Rp(i)&&(k=1);else if(typeof i=="string")k=aM(i,c,se.current)?26:i==="html"||i==="head"||i==="body"?27:5;else e:switch(i){case H:return i=jn(31,c,o,m),i.elementType=H,i.lanes=b,i;case S:return ka(c.children,m,b,o);case A:k=8,m|=24;break;case C:return i=jn(12,c,o,m|2),i.elementType=C,i.lanes=b,i;case R:return i=jn(13,c,o,m),i.elementType=R,i.lanes=b,i;case I:return i=jn(19,c,o,m),i.elementType=I,i.lanes=b,i;default:if(typeof i=="object"&&i!==null)switch(i.$$typeof){case w:case T:k=10;break e;case x:k=9;break e;case N:k=11;break e;case D:k=14;break e;case L:k=16,h=null;break e}k=29,c=Error(r(130,i===null?"null":typeof i,"")),h=null}return o=jn(k,c,o,m),o.elementType=i,o.type=h,o.lanes=b,o}function ka(i,o,c,h){return i=jn(7,i,h,o),i.lanes=c,i}function kp(i,o,c){return i=jn(6,i,null,o),i.lanes=c,i}function Np(i,o,c){return o=jn(4,i.children!==null?i.children:[],i.key,o),o.lanes=c,o.stateNode={containerInfo:i.containerInfo,pendingChildren:null,implementation:i.implementation},o}var Lo=[],Po=0,Pu=null,Mu=0,Jn=[],er=0,Na=null,Jr=1,ei="";function Oa(i,o){Lo[Po++]=Mu,Lo[Po++]=Pu,Pu=i,Mu=o}function pE(i,o,c){Jn[er++]=Jr,Jn[er++]=ei,Jn[er++]=Na,Na=i;var h=Jr;i=ei;var m=32-pt(h)-1;h&=~(1<<m),c+=1;var b=32-pt(o)+m;if(30<b){var k=m-m%5;b=(h&(1<<k)-1).toString(32),h>>=k,m-=k,Jr=1<<32-pt(o)+m|c<<m|h,ei=b+i}else Jr=1<<b|c<<m|h,ei=i}function Op(i){i.return!==null&&(Oa(i,1),pE(i,1,0))}function Ip(i){for(;i===Pu;)Pu=Lo[--Po],Lo[Po]=null,Mu=Lo[--Po],Lo[Po]=null;for(;i===Na;)Na=Jn[--er],Jn[er]=null,ei=Jn[--er],Jn[er]=null,Jr=Jn[--er],Jn[er]=null}var vn=null,Ct=null,nt=!1,Ia=null,Rr=!1,Dp=Error(r(519));function Da(i){var o=Error(r(418,""));throw hl(Xn(o,i)),Dp}function mE(i){var o=i.stateNode,c=i.type,h=i.memoizedProps;switch(o[dn]=i,o[wn]=h,c){case"dialog":Ze("cancel",o),Ze("close",o);break;case"iframe":case"object":case"embed":Ze("load",o);break;case"video":case"audio":for(c=0;c<Ml.length;c++)Ze(Ml[c],o);break;case"source":Ze("error",o);break;case"img":case"image":case"link":Ze("error",o),Ze("load",o);break;case"details":Ze("toggle",o);break;case"input":Ze("invalid",o),N_(o,h.value,h.defaultValue,h.checked,h.defaultChecked,h.type,h.name,!0),xu(o);break;case"select":Ze("invalid",o);break;case"textarea":Ze("invalid",o),I_(o,h.value,h.defaultValue,h.children),xu(o)}c=h.children,typeof c!="string"&&typeof c!="number"&&typeof c!="bigint"||o.textContent===""+c||h.suppressHydrationWarning===!0||Ix(o.textContent,c)?(h.popover!=null&&(Ze("beforetoggle",o),Ze("toggle",o)),h.onScroll!=null&&Ze("scroll",o),h.onScrollEnd!=null&&Ze("scrollend",o),h.onClick!=null&&(o.onclick=yd),o=!0):o=!1,o||Da(i)}function gE(i){for(vn=i.return;vn;)switch(vn.tag){case 5:case 13:Rr=!1;return;case 27:case 3:Rr=!0;return;default:vn=vn.return}}function dl(i){if(i!==vn)return!1;if(!nt)return gE(i),nt=!0,!1;var o=i.tag,c;if((c=o!==3&&o!==27)&&((c=o===5)&&(c=i.type,c=!(c!=="form"&&c!=="button")||Zm(i.type,i.memoizedProps)),c=!c),c&&Ct&&Da(i),gE(i),o===13){if(i=i.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(r(317));e:{for(i=i.nextSibling,o=0;i;){if(i.nodeType===8)if(c=i.data,c==="/$"){if(o===0){Ct=mr(i.nextSibling);break e}o--}else c!=="$"&&c!=="$!"&&c!=="$?"||o++;i=i.nextSibling}Ct=null}}else o===27?(o=Ct,Hi(i.type)?(i=Jm,Jm=null,Ct=i):Ct=o):Ct=vn?mr(i.stateNode.nextSibling):null;return!0}function fl(){Ct=vn=null,nt=!1}function yE(){var i=Ia;return i!==null&&(kn===null?kn=i:kn.push.apply(kn,i),Ia=null),i}function hl(i){Ia===null?Ia=[i]:Ia.push(i)}var jp=ie(null),ja=null,ti=null;function ki(i,o,c){J(jp,o._currentValue),o._currentValue=c}function ni(i){i._currentValue=jp.current,F(jp)}function Lp(i,o,c){for(;i!==null;){var h=i.alternate;if((i.childLanes&o)!==o?(i.childLanes|=o,h!==null&&(h.childLanes|=o)):h!==null&&(h.childLanes&o)!==o&&(h.childLanes|=o),i===c)break;i=i.return}}function Pp(i,o,c,h){var m=i.child;for(m!==null&&(m.return=i);m!==null;){var b=m.dependencies;if(b!==null){var k=m.child;b=b.firstContext;e:for(;b!==null;){var O=b;b=m;for(var z=0;z<o.length;z++)if(O.context===o[z]){b.lanes|=c,O=b.alternate,O!==null&&(O.lanes|=c),Lp(b.return,c,i),h||(k=null);break e}b=O.next}}else if(m.tag===18){if(k=m.return,k===null)throw Error(r(341));k.lanes|=c,b=k.alternate,b!==null&&(b.lanes|=c),Lp(k,c,i),k=null}else k=m.child;if(k!==null)k.return=m;else for(k=m;k!==null;){if(k===i){k=null;break}if(m=k.sibling,m!==null){m.return=k.return,k=m;break}k=k.return}m=k}}function pl(i,o,c,h){i=null;for(var m=o,b=!1;m!==null;){if(!b){if((m.flags&524288)!==0)b=!0;else if((m.flags&262144)!==0)break}if(m.tag===10){var k=m.alternate;if(k===null)throw Error(r(387));if(k=k.memoizedProps,k!==null){var O=m.type;Dn(m.pendingProps.value,k.value)||(i!==null?i.push(O):i=[O])}}else if(m===fe.current){if(k=m.alternate,k===null)throw Error(r(387));k.memoizedState.memoizedState!==m.memoizedState.memoizedState&&(i!==null?i.push($l):i=[$l])}m=m.return}i!==null&&Pp(o,i,c,h),o.flags|=262144}function zu(i){for(i=i.firstContext;i!==null;){if(!Dn(i.context._currentValue,i.memoizedValue))return!0;i=i.next}return!1}function La(i){ja=i,ti=null,i=i.dependencies,i!==null&&(i.firstContext=null)}function fn(i){return vE(ja,i)}function Bu(i,o){return ja===null&&La(i),vE(i,o)}function vE(i,o){var c=o._currentValue;if(o={context:o,memoizedValue:c,next:null},ti===null){if(i===null)throw Error(r(308));ti=o,i.dependencies={lanes:0,firstContext:o},i.flags|=524288}else ti=ti.next=o;return c}var iP=typeof AbortController<"u"?AbortController:function(){var i=[],o=this.signal={aborted:!1,addEventListener:function(c,h){i.push(h)}};this.abort=function(){o.aborted=!0,i.forEach(function(c){return c()})}},aP=e.unstable_scheduleCallback,oP=e.unstable_NormalPriority,Ft={$$typeof:T,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Mp(){return{controller:new iP,data:new Map,refCount:0}}function ml(i){i.refCount--,i.refCount===0&&aP(oP,function(){i.controller.abort()})}var gl=null,zp=0,Mo=0,zo=null;function sP(i,o){if(gl===null){var c=gl=[];zp=0,Mo=Vm(),zo={status:"pending",value:void 0,then:function(h){c.push(h)}}}return zp++,o.then(bE,bE),o}function bE(){if(--zp===0&&gl!==null){zo!==null&&(zo.status="fulfilled");var i=gl;gl=null,Mo=0,zo=null;for(var o=0;o<i.length;o++)(0,i[o])()}}function lP(i,o){var c=[],h={status:"pending",value:null,reason:null,then:function(m){c.push(m)}};return i.then(function(){h.status="fulfilled",h.value=o;for(var m=0;m<c.length;m++)(0,c[m])(o)},function(m){for(h.status="rejected",h.reason=m,m=0;m<c.length;m++)(0,c[m])(void 0)}),h}var _E=M.S;M.S=function(i,o){typeof o=="object"&&o!==null&&typeof o.then=="function"&&sP(i,o),_E!==null&&_E(i,o)};var Pa=ie(null);function Bp(){var i=Pa.current;return i!==null?i:mt.pooledCache}function Vu(i,o){o===null?J(Pa,Pa.current):J(Pa,o.pool)}function EE(){var i=Bp();return i===null?null:{parent:Ft._currentValue,pool:i}}var yl=Error(r(460)),SE=Error(r(474)),Uu=Error(r(542)),Vp={then:function(){}};function xE(i){return i=i.status,i==="fulfilled"||i==="rejected"}function Fu(){}function AE(i,o,c){switch(c=i[c],c===void 0?i.push(o):c!==o&&(o.then(Fu,Fu),o=c),o.status){case"fulfilled":return o.value;case"rejected":throw i=o.reason,TE(i),i;default:if(typeof o.status=="string")o.then(Fu,Fu);else{if(i=mt,i!==null&&100<i.shellSuspendCounter)throw Error(r(482));i=o,i.status="pending",i.then(function(h){if(o.status==="pending"){var m=o;m.status="fulfilled",m.value=h}},function(h){if(o.status==="pending"){var m=o;m.status="rejected",m.reason=h}})}switch(o.status){case"fulfilled":return o.value;case"rejected":throw i=o.reason,TE(i),i}throw vl=o,yl}}var vl=null;function wE(){if(vl===null)throw Error(r(459));var i=vl;return vl=null,i}function TE(i){if(i===yl||i===Uu)throw Error(r(483))}var Ni=!1;function Up(i){i.updateQueue={baseState:i.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Fp(i,o){i=i.updateQueue,o.updateQueue===i&&(o.updateQueue={baseState:i.baseState,firstBaseUpdate:i.firstBaseUpdate,lastBaseUpdate:i.lastBaseUpdate,shared:i.shared,callbacks:null})}function Oi(i){return{lane:i,tag:0,payload:null,callback:null,next:null}}function Ii(i,o,c){var h=i.updateQueue;if(h===null)return null;if(h=h.shared,(st&2)!==0){var m=h.pending;return m===null?o.next=o:(o.next=m.next,m.next=o),h.pending=o,o=ju(i),fE(i,null,c),o}return Du(i,h,o,c),ju(i)}function bl(i,o,c){if(o=o.updateQueue,o!==null&&(o=o.shared,(c&4194048)!==0)){var h=o.lanes;h&=i.pendingLanes,c|=h,o.lanes=c,b_(i,c)}}function $p(i,o){var c=i.updateQueue,h=i.alternate;if(h!==null&&(h=h.updateQueue,c===h)){var m=null,b=null;if(c=c.firstBaseUpdate,c!==null){do{var k={lane:c.lane,tag:c.tag,payload:c.payload,callback:null,next:null};b===null?m=b=k:b=b.next=k,c=c.next}while(c!==null);b===null?m=b=o:b=b.next=o}else m=b=o;c={baseState:h.baseState,firstBaseUpdate:m,lastBaseUpdate:b,shared:h.shared,callbacks:h.callbacks},i.updateQueue=c;return}i=c.lastBaseUpdate,i===null?c.firstBaseUpdate=o:i.next=o,c.lastBaseUpdate=o}var Hp=!1;function _l(){if(Hp){var i=zo;if(i!==null)throw i}}function El(i,o,c,h){Hp=!1;var m=i.updateQueue;Ni=!1;var b=m.firstBaseUpdate,k=m.lastBaseUpdate,O=m.shared.pending;if(O!==null){m.shared.pending=null;var z=O,Q=z.next;z.next=null,k===null?b=Q:k.next=Q,k=z;var le=i.alternate;le!==null&&(le=le.updateQueue,O=le.lastBaseUpdate,O!==k&&(O===null?le.firstBaseUpdate=Q:O.next=Q,le.lastBaseUpdate=z))}if(b!==null){var de=m.baseState;k=0,le=Q=z=null,O=b;do{var ne=O.lane&-536870913,re=ne!==O.lane;if(re?(Je&ne)===ne:(h&ne)===ne){ne!==0&&ne===Mo&&(Hp=!0),le!==null&&(le=le.next={lane:0,tag:O.tag,payload:O.payload,callback:null,next:null});e:{var Le=i,Ie=O;ne=o;var ft=c;switch(Ie.tag){case 1:if(Le=Ie.payload,typeof Le=="function"){de=Le.call(ft,de,ne);break e}de=Le;break e;case 3:Le.flags=Le.flags&-65537|128;case 0:if(Le=Ie.payload,ne=typeof Le=="function"?Le.call(ft,de,ne):Le,ne==null)break e;de=p({},de,ne);break e;case 2:Ni=!0}}ne=O.callback,ne!==null&&(i.flags|=64,re&&(i.flags|=8192),re=m.callbacks,re===null?m.callbacks=[ne]:re.push(ne))}else re={lane:ne,tag:O.tag,payload:O.payload,callback:O.callback,next:null},le===null?(Q=le=re,z=de):le=le.next=re,k|=ne;if(O=O.next,O===null){if(O=m.shared.pending,O===null)break;re=O,O=re.next,re.next=null,m.lastBaseUpdate=re,m.shared.pending=null}}while(!0);le===null&&(z=de),m.baseState=z,m.firstBaseUpdate=Q,m.lastBaseUpdate=le,b===null&&(m.shared.lanes=0),Vi|=k,i.lanes=k,i.memoizedState=de}}function CE(i,o){if(typeof i!="function")throw Error(r(191,i));i.call(o)}function RE(i,o){var c=i.callbacks;if(c!==null)for(i.callbacks=null,i=0;i<c.length;i++)CE(c[i],o)}var Bo=ie(null),$u=ie(0);function kE(i,o){i=ci,J($u,i),J(Bo,o),ci=i|o.baseLanes}function Gp(){J($u,ci),J(Bo,Bo.current)}function Kp(){ci=$u.current,F(Bo),F($u)}var Di=0,Ge=null,ut=null,jt=null,Hu=!1,Vo=!1,Ma=!1,Gu=0,Sl=0,Uo=null,cP=0;function Nt(){throw Error(r(321))}function qp(i,o){if(o===null)return!1;for(var c=0;c<o.length&&c<i.length;c++)if(!Dn(i[c],o[c]))return!1;return!0}function Wp(i,o,c,h,m,b){return Di=b,Ge=o,o.memoizedState=null,o.updateQueue=null,o.lanes=0,M.H=i===null||i.memoizedState===null?fS:hS,Ma=!1,b=c(h,m),Ma=!1,Vo&&(b=OE(o,c,h,m)),NE(i),b}function NE(i){M.H=Xu;var o=ut!==null&&ut.next!==null;if(Di=0,jt=ut=Ge=null,Hu=!1,Sl=0,Uo=null,o)throw Error(r(300));i===null||Xt||(i=i.dependencies,i!==null&&zu(i)&&(Xt=!0))}function OE(i,o,c,h){Ge=i;var m=0;do{if(Vo&&(Uo=null),Sl=0,Vo=!1,25<=m)throw Error(r(301));if(m+=1,jt=ut=null,i.updateQueue!=null){var b=i.updateQueue;b.lastEffect=null,b.events=null,b.stores=null,b.memoCache!=null&&(b.memoCache.index=0)}M.H=gP,b=o(c,h)}while(Vo);return b}function uP(){var i=M.H,o=i.useState()[0];return o=typeof o.then=="function"?xl(o):o,i=i.useState()[0],(ut!==null?ut.memoizedState:null)!==i&&(Ge.flags|=1024),o}function Zp(){var i=Gu!==0;return Gu=0,i}function Yp(i,o,c){o.updateQueue=i.updateQueue,o.flags&=-2053,i.lanes&=~c}function Xp(i){if(Hu){for(i=i.memoizedState;i!==null;){var o=i.queue;o!==null&&(o.pending=null),i=i.next}Hu=!1}Di=0,jt=ut=Ge=null,Vo=!1,Sl=Gu=0,Uo=null}function Cn(){var i={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return jt===null?Ge.memoizedState=jt=i:jt=jt.next=i,jt}function Lt(){if(ut===null){var i=Ge.alternate;i=i!==null?i.memoizedState:null}else i=ut.next;var o=jt===null?Ge.memoizedState:jt.next;if(o!==null)jt=o,ut=i;else{if(i===null)throw Ge.alternate===null?Error(r(467)):Error(r(310));ut=i,i={memoizedState:ut.memoizedState,baseState:ut.baseState,baseQueue:ut.baseQueue,queue:ut.queue,next:null},jt===null?Ge.memoizedState=jt=i:jt=jt.next=i}return jt}function Qp(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function xl(i){var o=Sl;return Sl+=1,Uo===null&&(Uo=[]),i=AE(Uo,i,o),o=Ge,(jt===null?o.memoizedState:jt.next)===null&&(o=o.alternate,M.H=o===null||o.memoizedState===null?fS:hS),i}function Ku(i){if(i!==null&&typeof i=="object"){if(typeof i.then=="function")return xl(i);if(i.$$typeof===T)return fn(i)}throw Error(r(438,String(i)))}function Jp(i){var o=null,c=Ge.updateQueue;if(c!==null&&(o=c.memoCache),o==null){var h=Ge.alternate;h!==null&&(h=h.updateQueue,h!==null&&(h=h.memoCache,h!=null&&(o={data:h.data.map(function(m){return m.slice()}),index:0})))}if(o==null&&(o={data:[],index:0}),c===null&&(c=Qp(),Ge.updateQueue=c),c.memoCache=o,c=o.data[o.index],c===void 0)for(c=o.data[o.index]=Array(i),h=0;h<i;h++)c[h]=Z;return o.index++,c}function ri(i,o){return typeof o=="function"?o(i):o}function qu(i){var o=Lt();return em(o,ut,i)}function em(i,o,c){var h=i.queue;if(h===null)throw Error(r(311));h.lastRenderedReducer=c;var m=i.baseQueue,b=h.pending;if(b!==null){if(m!==null){var k=m.next;m.next=b.next,b.next=k}o.baseQueue=m=b,h.pending=null}if(b=i.baseState,m===null)i.memoizedState=b;else{o=m.next;var O=k=null,z=null,Q=o,le=!1;do{var de=Q.lane&-536870913;if(de!==Q.lane?(Je&de)===de:(Di&de)===de){var ne=Q.revertLane;if(ne===0)z!==null&&(z=z.next={lane:0,revertLane:0,action:Q.action,hasEagerState:Q.hasEagerState,eagerState:Q.eagerState,next:null}),de===Mo&&(le=!0);else if((Di&ne)===ne){Q=Q.next,ne===Mo&&(le=!0);continue}else de={lane:0,revertLane:Q.revertLane,action:Q.action,hasEagerState:Q.hasEagerState,eagerState:Q.eagerState,next:null},z===null?(O=z=de,k=b):z=z.next=de,Ge.lanes|=ne,Vi|=ne;de=Q.action,Ma&&c(b,de),b=Q.hasEagerState?Q.eagerState:c(b,de)}else ne={lane:de,revertLane:Q.revertLane,action:Q.action,hasEagerState:Q.hasEagerState,eagerState:Q.eagerState,next:null},z===null?(O=z=ne,k=b):z=z.next=ne,Ge.lanes|=de,Vi|=de;Q=Q.next}while(Q!==null&&Q!==o);if(z===null?k=b:z.next=O,!Dn(b,i.memoizedState)&&(Xt=!0,le&&(c=zo,c!==null)))throw c;i.memoizedState=b,i.baseState=k,i.baseQueue=z,h.lastRenderedState=b}return m===null&&(h.lanes=0),[i.memoizedState,h.dispatch]}function tm(i){var o=Lt(),c=o.queue;if(c===null)throw Error(r(311));c.lastRenderedReducer=i;var h=c.dispatch,m=c.pending,b=o.memoizedState;if(m!==null){c.pending=null;var k=m=m.next;do b=i(b,k.action),k=k.next;while(k!==m);Dn(b,o.memoizedState)||(Xt=!0),o.memoizedState=b,o.baseQueue===null&&(o.baseState=b),c.lastRenderedState=b}return[b,h]}function IE(i,o,c){var h=Ge,m=Lt(),b=nt;if(b){if(c===void 0)throw Error(r(407));c=c()}else c=o();var k=!Dn((ut||m).memoizedState,c);k&&(m.memoizedState=c,Xt=!0),m=m.queue;var O=LE.bind(null,h,m,i);if(Al(2048,8,O,[i]),m.getSnapshot!==o||k||jt!==null&&jt.memoizedState.tag&1){if(h.flags|=2048,Fo(9,Wu(),jE.bind(null,h,m,c,o),null),mt===null)throw Error(r(349));b||(Di&124)!==0||DE(h,o,c)}return c}function DE(i,o,c){i.flags|=16384,i={getSnapshot:o,value:c},o=Ge.updateQueue,o===null?(o=Qp(),Ge.updateQueue=o,o.stores=[i]):(c=o.stores,c===null?o.stores=[i]:c.push(i))}function jE(i,o,c,h){o.value=c,o.getSnapshot=h,PE(o)&&ME(i)}function LE(i,o,c){return c(function(){PE(o)&&ME(i)})}function PE(i){var o=i.getSnapshot;i=i.value;try{var c=o();return!Dn(i,c)}catch{return!0}}function ME(i){var o=Do(i,2);o!==null&&Bn(o,i,2)}function nm(i){var o=Cn();if(typeof i=="function"){var c=i;if(i=c(),Ma){Xe(!0);try{c()}finally{Xe(!1)}}}return o.memoizedState=o.baseState=i,o.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ri,lastRenderedState:i},o}function zE(i,o,c,h){return i.baseState=c,em(i,ut,typeof h=="function"?h:ri)}function dP(i,o,c,h,m){if(Yu(i))throw Error(r(485));if(i=o.action,i!==null){var b={payload:m,action:i,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(k){b.listeners.push(k)}};M.T!==null?c(!0):b.isTransition=!1,h(b),c=o.pending,c===null?(b.next=o.pending=b,BE(o,b)):(b.next=c.next,o.pending=c.next=b)}}function BE(i,o){var c=o.action,h=o.payload,m=i.state;if(o.isTransition){var b=M.T,k={};M.T=k;try{var O=c(m,h),z=M.S;z!==null&&z(k,O),VE(i,o,O)}catch(Q){rm(i,o,Q)}finally{M.T=b}}else try{b=c(m,h),VE(i,o,b)}catch(Q){rm(i,o,Q)}}function VE(i,o,c){c!==null&&typeof c=="object"&&typeof c.then=="function"?c.then(function(h){UE(i,o,h)},function(h){return rm(i,o,h)}):UE(i,o,c)}function UE(i,o,c){o.status="fulfilled",o.value=c,FE(o),i.state=c,o=i.pending,o!==null&&(c=o.next,c===o?i.pending=null:(c=c.next,o.next=c,BE(i,c)))}function rm(i,o,c){var h=i.pending;if(i.pending=null,h!==null){h=h.next;do o.status="rejected",o.reason=c,FE(o),o=o.next;while(o!==h)}i.action=null}function FE(i){i=i.listeners;for(var o=0;o<i.length;o++)(0,i[o])()}function $E(i,o){return o}function HE(i,o){if(nt){var c=mt.formState;if(c!==null){e:{var h=Ge;if(nt){if(Ct){t:{for(var m=Ct,b=Rr;m.nodeType!==8;){if(!b){m=null;break t}if(m=mr(m.nextSibling),m===null){m=null;break t}}b=m.data,m=b==="F!"||b==="F"?m:null}if(m){Ct=mr(m.nextSibling),h=m.data==="F!";break e}}Da(h)}h=!1}h&&(o=c[0])}}return c=Cn(),c.memoizedState=c.baseState=o,h={pending:null,lanes:0,dispatch:null,lastRenderedReducer:$E,lastRenderedState:o},c.queue=h,c=cS.bind(null,Ge,h),h.dispatch=c,h=nm(!1),b=lm.bind(null,Ge,!1,h.queue),h=Cn(),m={state:o,dispatch:null,action:i,pending:null},h.queue=m,c=dP.bind(null,Ge,m,b,c),m.dispatch=c,h.memoizedState=i,[o,c,!1]}function GE(i){var o=Lt();return KE(o,ut,i)}function KE(i,o,c){if(o=em(i,o,$E)[0],i=qu(ri)[0],typeof o=="object"&&o!==null&&typeof o.then=="function")try{var h=xl(o)}catch(k){throw k===yl?Uu:k}else h=o;o=Lt();var m=o.queue,b=m.dispatch;return c!==o.memoizedState&&(Ge.flags|=2048,Fo(9,Wu(),fP.bind(null,m,c),null)),[h,b,i]}function fP(i,o){i.action=o}function qE(i){var o=Lt(),c=ut;if(c!==null)return KE(o,c,i);Lt(),o=o.memoizedState,c=Lt();var h=c.queue.dispatch;return c.memoizedState=i,[o,h,!1]}function Fo(i,o,c,h){return i={tag:i,create:c,deps:h,inst:o,next:null},o=Ge.updateQueue,o===null&&(o=Qp(),Ge.updateQueue=o),c=o.lastEffect,c===null?o.lastEffect=i.next=i:(h=c.next,c.next=i,i.next=h,o.lastEffect=i),i}function Wu(){return{destroy:void 0,resource:void 0}}function WE(){return Lt().memoizedState}function Zu(i,o,c,h){var m=Cn();h=h===void 0?null:h,Ge.flags|=i,m.memoizedState=Fo(1|o,Wu(),c,h)}function Al(i,o,c,h){var m=Lt();h=h===void 0?null:h;var b=m.memoizedState.inst;ut!==null&&h!==null&&qp(h,ut.memoizedState.deps)?m.memoizedState=Fo(o,b,c,h):(Ge.flags|=i,m.memoizedState=Fo(1|o,b,c,h))}function ZE(i,o){Zu(8390656,8,i,o)}function YE(i,o){Al(2048,8,i,o)}function XE(i,o){return Al(4,2,i,o)}function QE(i,o){return Al(4,4,i,o)}function JE(i,o){if(typeof o=="function"){i=i();var c=o(i);return function(){typeof c=="function"?c():o(null)}}if(o!=null)return i=i(),o.current=i,function(){o.current=null}}function eS(i,o,c){c=c!=null?c.concat([i]):null,Al(4,4,JE.bind(null,o,i),c)}function im(){}function tS(i,o){var c=Lt();o=o===void 0?null:o;var h=c.memoizedState;return o!==null&&qp(o,h[1])?h[0]:(c.memoizedState=[i,o],i)}function nS(i,o){var c=Lt();o=o===void 0?null:o;var h=c.memoizedState;if(o!==null&&qp(o,h[1]))return h[0];if(h=i(),Ma){Xe(!0);try{i()}finally{Xe(!1)}}return c.memoizedState=[h,o],h}function am(i,o,c){return c===void 0||(Di&1073741824)!==0?i.memoizedState=o:(i.memoizedState=c,i=ax(),Ge.lanes|=i,Vi|=i,c)}function rS(i,o,c,h){return Dn(c,o)?c:Bo.current!==null?(i=am(i,c,h),Dn(i,o)||(Xt=!0),i):(Di&42)===0?(Xt=!0,i.memoizedState=c):(i=ax(),Ge.lanes|=i,Vi|=i,o)}function iS(i,o,c,h,m){var b=X.p;X.p=b!==0&&8>b?b:8;var k=M.T,O={};M.T=O,lm(i,!1,o,c);try{var z=m(),Q=M.S;if(Q!==null&&Q(O,z),z!==null&&typeof z=="object"&&typeof z.then=="function"){var le=lP(z,h);wl(i,o,le,zn(i))}else wl(i,o,h,zn(i))}catch(de){wl(i,o,{then:function(){},status:"rejected",reason:de},zn())}finally{X.p=b,M.T=k}}function hP(){}function om(i,o,c,h){if(i.tag!==5)throw Error(r(476));var m=aS(i).queue;iS(i,m,o,G,c===null?hP:function(){return oS(i),c(h)})}function aS(i){var o=i.memoizedState;if(o!==null)return o;o={memoizedState:G,baseState:G,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ri,lastRenderedState:G},next:null};var c={};return o.next={memoizedState:c,baseState:c,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ri,lastRenderedState:c},next:null},i.memoizedState=o,i=i.alternate,i!==null&&(i.memoizedState=o),o}function oS(i){var o=aS(i).next.queue;wl(i,o,{},zn())}function sm(){return fn($l)}function sS(){return Lt().memoizedState}function lS(){return Lt().memoizedState}function pP(i){for(var o=i.return;o!==null;){switch(o.tag){case 24:case 3:var c=zn();i=Oi(c);var h=Ii(o,i,c);h!==null&&(Bn(h,o,c),bl(h,o,c)),o={cache:Mp()},i.payload=o;return}o=o.return}}function mP(i,o,c){var h=zn();c={lane:h,revertLane:0,action:c,hasEagerState:!1,eagerState:null,next:null},Yu(i)?uS(o,c):(c=Cp(i,o,c,h),c!==null&&(Bn(c,i,h),dS(c,o,h)))}function cS(i,o,c){var h=zn();wl(i,o,c,h)}function wl(i,o,c,h){var m={lane:h,revertLane:0,action:c,hasEagerState:!1,eagerState:null,next:null};if(Yu(i))uS(o,m);else{var b=i.alternate;if(i.lanes===0&&(b===null||b.lanes===0)&&(b=o.lastRenderedReducer,b!==null))try{var k=o.lastRenderedState,O=b(k,c);if(m.hasEagerState=!0,m.eagerState=O,Dn(O,k))return Du(i,o,m,0),mt===null&&Iu(),!1}catch{}finally{}if(c=Cp(i,o,m,h),c!==null)return Bn(c,i,h),dS(c,o,h),!0}return!1}function lm(i,o,c,h){if(h={lane:2,revertLane:Vm(),action:h,hasEagerState:!1,eagerState:null,next:null},Yu(i)){if(o)throw Error(r(479))}else o=Cp(i,c,h,2),o!==null&&Bn(o,i,2)}function Yu(i){var o=i.alternate;return i===Ge||o!==null&&o===Ge}function uS(i,o){Vo=Hu=!0;var c=i.pending;c===null?o.next=o:(o.next=c.next,c.next=o),i.pending=o}function dS(i,o,c){if((c&4194048)!==0){var h=o.lanes;h&=i.pendingLanes,c|=h,o.lanes=c,b_(i,c)}}var Xu={readContext:fn,use:Ku,useCallback:Nt,useContext:Nt,useEffect:Nt,useImperativeHandle:Nt,useLayoutEffect:Nt,useInsertionEffect:Nt,useMemo:Nt,useReducer:Nt,useRef:Nt,useState:Nt,useDebugValue:Nt,useDeferredValue:Nt,useTransition:Nt,useSyncExternalStore:Nt,useId:Nt,useHostTransitionStatus:Nt,useFormState:Nt,useActionState:Nt,useOptimistic:Nt,useMemoCache:Nt,useCacheRefresh:Nt},fS={readContext:fn,use:Ku,useCallback:function(i,o){return Cn().memoizedState=[i,o===void 0?null:o],i},useContext:fn,useEffect:ZE,useImperativeHandle:function(i,o,c){c=c!=null?c.concat([i]):null,Zu(4194308,4,JE.bind(null,o,i),c)},useLayoutEffect:function(i,o){return Zu(4194308,4,i,o)},useInsertionEffect:function(i,o){Zu(4,2,i,o)},useMemo:function(i,o){var c=Cn();o=o===void 0?null:o;var h=i();if(Ma){Xe(!0);try{i()}finally{Xe(!1)}}return c.memoizedState=[h,o],h},useReducer:function(i,o,c){var h=Cn();if(c!==void 0){var m=c(o);if(Ma){Xe(!0);try{c(o)}finally{Xe(!1)}}}else m=o;return h.memoizedState=h.baseState=m,i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:i,lastRenderedState:m},h.queue=i,i=i.dispatch=mP.bind(null,Ge,i),[h.memoizedState,i]},useRef:function(i){var o=Cn();return i={current:i},o.memoizedState=i},useState:function(i){i=nm(i);var o=i.queue,c=cS.bind(null,Ge,o);return o.dispatch=c,[i.memoizedState,c]},useDebugValue:im,useDeferredValue:function(i,o){var c=Cn();return am(c,i,o)},useTransition:function(){var i=nm(!1);return i=iS.bind(null,Ge,i.queue,!0,!1),Cn().memoizedState=i,[!1,i]},useSyncExternalStore:function(i,o,c){var h=Ge,m=Cn();if(nt){if(c===void 0)throw Error(r(407));c=c()}else{if(c=o(),mt===null)throw Error(r(349));(Je&124)!==0||DE(h,o,c)}m.memoizedState=c;var b={value:c,getSnapshot:o};return m.queue=b,ZE(LE.bind(null,h,b,i),[i]),h.flags|=2048,Fo(9,Wu(),jE.bind(null,h,b,c,o),null),c},useId:function(){var i=Cn(),o=mt.identifierPrefix;if(nt){var c=ei,h=Jr;c=(h&~(1<<32-pt(h)-1)).toString(32)+c,o="«"+o+"R"+c,c=Gu++,0<c&&(o+="H"+c.toString(32)),o+="»"}else c=cP++,o="«"+o+"r"+c.toString(32)+"»";return i.memoizedState=o},useHostTransitionStatus:sm,useFormState:HE,useActionState:HE,useOptimistic:function(i){var o=Cn();o.memoizedState=o.baseState=i;var c={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return o.queue=c,o=lm.bind(null,Ge,!0,c),c.dispatch=o,[i,o]},useMemoCache:Jp,useCacheRefresh:function(){return Cn().memoizedState=pP.bind(null,Ge)}},hS={readContext:fn,use:Ku,useCallback:tS,useContext:fn,useEffect:YE,useImperativeHandle:eS,useInsertionEffect:XE,useLayoutEffect:QE,useMemo:nS,useReducer:qu,useRef:WE,useState:function(){return qu(ri)},useDebugValue:im,useDeferredValue:function(i,o){var c=Lt();return rS(c,ut.memoizedState,i,o)},useTransition:function(){var i=qu(ri)[0],o=Lt().memoizedState;return[typeof i=="boolean"?i:xl(i),o]},useSyncExternalStore:IE,useId:sS,useHostTransitionStatus:sm,useFormState:GE,useActionState:GE,useOptimistic:function(i,o){var c=Lt();return zE(c,ut,i,o)},useMemoCache:Jp,useCacheRefresh:lS},gP={readContext:fn,use:Ku,useCallback:tS,useContext:fn,useEffect:YE,useImperativeHandle:eS,useInsertionEffect:XE,useLayoutEffect:QE,useMemo:nS,useReducer:tm,useRef:WE,useState:function(){return tm(ri)},useDebugValue:im,useDeferredValue:function(i,o){var c=Lt();return ut===null?am(c,i,o):rS(c,ut.memoizedState,i,o)},useTransition:function(){var i=tm(ri)[0],o=Lt().memoizedState;return[typeof i=="boolean"?i:xl(i),o]},useSyncExternalStore:IE,useId:sS,useHostTransitionStatus:sm,useFormState:qE,useActionState:qE,useOptimistic:function(i,o){var c=Lt();return ut!==null?zE(c,ut,i,o):(c.baseState=i,[i,c.queue.dispatch])},useMemoCache:Jp,useCacheRefresh:lS},$o=null,Tl=0;function Qu(i){var o=Tl;return Tl+=1,$o===null&&($o=[]),AE($o,i,o)}function Cl(i,o){o=o.props.ref,i.ref=o!==void 0?o:null}function Ju(i,o){throw o.$$typeof===g?Error(r(525)):(i=Object.prototype.toString.call(o),Error(r(31,i==="[object Object]"?"object with keys {"+Object.keys(o).join(", ")+"}":i)))}function pS(i){var o=i._init;return o(i._payload)}function mS(i){function o(K,U){if(i){var Y=K.deletions;Y===null?(K.deletions=[U],K.flags|=16):Y.push(U)}}function c(K,U){if(!i)return null;for(;U!==null;)o(K,U),U=U.sibling;return null}function h(K){for(var U=new Map;K!==null;)K.key!==null?U.set(K.key,K):U.set(K.index,K),K=K.sibling;return U}function m(K,U){return K=Qr(K,U),K.index=0,K.sibling=null,K}function b(K,U,Y){return K.index=Y,i?(Y=K.alternate,Y!==null?(Y=Y.index,Y<U?(K.flags|=67108866,U):Y):(K.flags|=67108866,U)):(K.flags|=1048576,U)}function k(K){return i&&K.alternate===null&&(K.flags|=67108866),K}function O(K,U,Y,ue){return U===null||U.tag!==6?(U=kp(Y,K.mode,ue),U.return=K,U):(U=m(U,Y),U.return=K,U)}function z(K,U,Y,ue){var Ae=Y.type;return Ae===S?le(K,U,Y.props.children,ue,Y.key):U!==null&&(U.elementType===Ae||typeof Ae=="object"&&Ae!==null&&Ae.$$typeof===L&&pS(Ae)===U.type)?(U=m(U,Y.props),Cl(U,Y),U.return=K,U):(U=Lu(Y.type,Y.key,Y.props,null,K.mode,ue),Cl(U,Y),U.return=K,U)}function Q(K,U,Y,ue){return U===null||U.tag!==4||U.stateNode.containerInfo!==Y.containerInfo||U.stateNode.implementation!==Y.implementation?(U=Np(Y,K.mode,ue),U.return=K,U):(U=m(U,Y.children||[]),U.return=K,U)}function le(K,U,Y,ue,Ae){return U===null||U.tag!==7?(U=ka(Y,K.mode,ue,Ae),U.return=K,U):(U=m(U,Y),U.return=K,U)}function de(K,U,Y){if(typeof U=="string"&&U!==""||typeof U=="number"||typeof U=="bigint")return U=kp(""+U,K.mode,Y),U.return=K,U;if(typeof U=="object"&&U!==null){switch(U.$$typeof){case y:return Y=Lu(U.type,U.key,U.props,null,K.mode,Y),Cl(Y,U),Y.return=K,Y;case _:return U=Np(U,K.mode,Y),U.return=K,U;case L:var ue=U._init;return U=ue(U._payload),de(K,U,Y)}if(ae(U)||te(U))return U=ka(U,K.mode,Y,null),U.return=K,U;if(typeof U.then=="function")return de(K,Qu(U),Y);if(U.$$typeof===T)return de(K,Bu(K,U),Y);Ju(K,U)}return null}function ne(K,U,Y,ue){var Ae=U!==null?U.key:null;if(typeof Y=="string"&&Y!==""||typeof Y=="number"||typeof Y=="bigint")return Ae!==null?null:O(K,U,""+Y,ue);if(typeof Y=="object"&&Y!==null){switch(Y.$$typeof){case y:return Y.key===Ae?z(K,U,Y,ue):null;case _:return Y.key===Ae?Q(K,U,Y,ue):null;case L:return Ae=Y._init,Y=Ae(Y._payload),ne(K,U,Y,ue)}if(ae(Y)||te(Y))return Ae!==null?null:le(K,U,Y,ue,null);if(typeof Y.then=="function")return ne(K,U,Qu(Y),ue);if(Y.$$typeof===T)return ne(K,U,Bu(K,Y),ue);Ju(K,Y)}return null}function re(K,U,Y,ue,Ae){if(typeof ue=="string"&&ue!==""||typeof ue=="number"||typeof ue=="bigint")return K=K.get(Y)||null,O(U,K,""+ue,Ae);if(typeof ue=="object"&&ue!==null){switch(ue.$$typeof){case y:return K=K.get(ue.key===null?Y:ue.key)||null,z(U,K,ue,Ae);case _:return K=K.get(ue.key===null?Y:ue.key)||null,Q(U,K,ue,Ae);case L:var qe=ue._init;return ue=qe(ue._payload),re(K,U,Y,ue,Ae)}if(ae(ue)||te(ue))return K=K.get(Y)||null,le(U,K,ue,Ae,null);if(typeof ue.then=="function")return re(K,U,Y,Qu(ue),Ae);if(ue.$$typeof===T)return re(K,U,Y,Bu(U,ue),Ae);Ju(U,ue)}return null}function Le(K,U,Y,ue){for(var Ae=null,qe=null,ke=U,De=U=0,Jt=null;ke!==null&&De<Y.length;De++){ke.index>De?(Jt=ke,ke=null):Jt=ke.sibling;var tt=ne(K,ke,Y[De],ue);if(tt===null){ke===null&&(ke=Jt);break}i&&ke&&tt.alternate===null&&o(K,ke),U=b(tt,U,De),qe===null?Ae=tt:qe.sibling=tt,qe=tt,ke=Jt}if(De===Y.length)return c(K,ke),nt&&Oa(K,De),Ae;if(ke===null){for(;De<Y.length;De++)ke=de(K,Y[De],ue),ke!==null&&(U=b(ke,U,De),qe===null?Ae=ke:qe.sibling=ke,qe=ke);return nt&&Oa(K,De),Ae}for(ke=h(ke);De<Y.length;De++)Jt=re(ke,K,De,Y[De],ue),Jt!==null&&(i&&Jt.alternate!==null&&ke.delete(Jt.key===null?De:Jt.key),U=b(Jt,U,De),qe===null?Ae=Jt:qe.sibling=Jt,qe=Jt);return i&&ke.forEach(function(Zi){return o(K,Zi)}),nt&&Oa(K,De),Ae}function Ie(K,U,Y,ue){if(Y==null)throw Error(r(151));for(var Ae=null,qe=null,ke=U,De=U=0,Jt=null,tt=Y.next();ke!==null&&!tt.done;De++,tt=Y.next()){ke.index>De?(Jt=ke,ke=null):Jt=ke.sibling;var Zi=ne(K,ke,tt.value,ue);if(Zi===null){ke===null&&(ke=Jt);break}i&&ke&&Zi.alternate===null&&o(K,ke),U=b(Zi,U,De),qe===null?Ae=Zi:qe.sibling=Zi,qe=Zi,ke=Jt}if(tt.done)return c(K,ke),nt&&Oa(K,De),Ae;if(ke===null){for(;!tt.done;De++,tt=Y.next())tt=de(K,tt.value,ue),tt!==null&&(U=b(tt,U,De),qe===null?Ae=tt:qe.sibling=tt,qe=tt);return nt&&Oa(K,De),Ae}for(ke=h(ke);!tt.done;De++,tt=Y.next())tt=re(ke,K,De,tt.value,ue),tt!==null&&(i&&tt.alternate!==null&&ke.delete(tt.key===null?De:tt.key),U=b(tt,U,De),qe===null?Ae=tt:qe.sibling=tt,qe=tt);return i&&ke.forEach(function(yM){return o(K,yM)}),nt&&Oa(K,De),Ae}function ft(K,U,Y,ue){if(typeof Y=="object"&&Y!==null&&Y.type===S&&Y.key===null&&(Y=Y.props.children),typeof Y=="object"&&Y!==null){switch(Y.$$typeof){case y:e:{for(var Ae=Y.key;U!==null;){if(U.key===Ae){if(Ae=Y.type,Ae===S){if(U.tag===7){c(K,U.sibling),ue=m(U,Y.props.children),ue.return=K,K=ue;break e}}else if(U.elementType===Ae||typeof Ae=="object"&&Ae!==null&&Ae.$$typeof===L&&pS(Ae)===U.type){c(K,U.sibling),ue=m(U,Y.props),Cl(ue,Y),ue.return=K,K=ue;break e}c(K,U);break}else o(K,U);U=U.sibling}Y.type===S?(ue=ka(Y.props.children,K.mode,ue,Y.key),ue.return=K,K=ue):(ue=Lu(Y.type,Y.key,Y.props,null,K.mode,ue),Cl(ue,Y),ue.return=K,K=ue)}return k(K);case _:e:{for(Ae=Y.key;U!==null;){if(U.key===Ae)if(U.tag===4&&U.stateNode.containerInfo===Y.containerInfo&&U.stateNode.implementation===Y.implementation){c(K,U.sibling),ue=m(U,Y.children||[]),ue.return=K,K=ue;break e}else{c(K,U);break}else o(K,U);U=U.sibling}ue=Np(Y,K.mode,ue),ue.return=K,K=ue}return k(K);case L:return Ae=Y._init,Y=Ae(Y._payload),ft(K,U,Y,ue)}if(ae(Y))return Le(K,U,Y,ue);if(te(Y)){if(Ae=te(Y),typeof Ae!="function")throw Error(r(150));return Y=Ae.call(Y),Ie(K,U,Y,ue)}if(typeof Y.then=="function")return ft(K,U,Qu(Y),ue);if(Y.$$typeof===T)return ft(K,U,Bu(K,Y),ue);Ju(K,Y)}return typeof Y=="string"&&Y!==""||typeof Y=="number"||typeof Y=="bigint"?(Y=""+Y,U!==null&&U.tag===6?(c(K,U.sibling),ue=m(U,Y),ue.return=K,K=ue):(c(K,U),ue=kp(Y,K.mode,ue),ue.return=K,K=ue),k(K)):c(K,U)}return function(K,U,Y,ue){try{Tl=0;var Ae=ft(K,U,Y,ue);return $o=null,Ae}catch(ke){if(ke===yl||ke===Uu)throw ke;var qe=jn(29,ke,null,K.mode);return qe.lanes=ue,qe.return=K,qe}finally{}}}var Ho=mS(!0),gS=mS(!1),tr=ie(null),kr=null;function ji(i){var o=i.alternate;J($t,$t.current&1),J(tr,i),kr===null&&(o===null||Bo.current!==null||o.memoizedState!==null)&&(kr=i)}function yS(i){if(i.tag===22){if(J($t,$t.current),J(tr,i),kr===null){var o=i.alternate;o!==null&&o.memoizedState!==null&&(kr=i)}}else Li()}function Li(){J($t,$t.current),J(tr,tr.current)}function ii(i){F(tr),kr===i&&(kr=null),F($t)}var $t=ie(0);function ed(i){for(var o=i;o!==null;){if(o.tag===13){var c=o.memoizedState;if(c!==null&&(c=c.dehydrated,c===null||c.data==="$?"||Qm(c)))return o}else if(o.tag===19&&o.memoizedProps.revealOrder!==void 0){if((o.flags&128)!==0)return o}else if(o.child!==null){o.child.return=o,o=o.child;continue}if(o===i)break;for(;o.sibling===null;){if(o.return===null||o.return===i)return null;o=o.return}o.sibling.return=o.return,o=o.sibling}return null}function cm(i,o,c,h){o=i.memoizedState,c=c(h,o),c=c==null?o:p({},o,c),i.memoizedState=c,i.lanes===0&&(i.updateQueue.baseState=c)}var um={enqueueSetState:function(i,o,c){i=i._reactInternals;var h=zn(),m=Oi(h);m.payload=o,c!=null&&(m.callback=c),o=Ii(i,m,h),o!==null&&(Bn(o,i,h),bl(o,i,h))},enqueueReplaceState:function(i,o,c){i=i._reactInternals;var h=zn(),m=Oi(h);m.tag=1,m.payload=o,c!=null&&(m.callback=c),o=Ii(i,m,h),o!==null&&(Bn(o,i,h),bl(o,i,h))},enqueueForceUpdate:function(i,o){i=i._reactInternals;var c=zn(),h=Oi(c);h.tag=2,o!=null&&(h.callback=o),o=Ii(i,h,c),o!==null&&(Bn(o,i,c),bl(o,i,c))}};function vS(i,o,c,h,m,b,k){return i=i.stateNode,typeof i.shouldComponentUpdate=="function"?i.shouldComponentUpdate(h,b,k):o.prototype&&o.prototype.isPureReactComponent?!cl(c,h)||!cl(m,b):!0}function bS(i,o,c,h){i=o.state,typeof o.componentWillReceiveProps=="function"&&o.componentWillReceiveProps(c,h),typeof o.UNSAFE_componentWillReceiveProps=="function"&&o.UNSAFE_componentWillReceiveProps(c,h),o.state!==i&&um.enqueueReplaceState(o,o.state,null)}function za(i,o){var c=o;if("ref"in o){c={};for(var h in o)h!=="ref"&&(c[h]=o[h])}if(i=i.defaultProps){c===o&&(c=p({},c));for(var m in i)c[m]===void 0&&(c[m]=i[m])}return c}var td=typeof reportError=="function"?reportError:function(i){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var o=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(o))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",i);return}console.error(i)};function _S(i){td(i)}function ES(i){console.error(i)}function SS(i){td(i)}function nd(i,o){try{var c=i.onUncaughtError;c(o.value,{componentStack:o.stack})}catch(h){setTimeout(function(){throw h})}}function xS(i,o,c){try{var h=i.onCaughtError;h(c.value,{componentStack:c.stack,errorBoundary:o.tag===1?o.stateNode:null})}catch(m){setTimeout(function(){throw m})}}function dm(i,o,c){return c=Oi(c),c.tag=3,c.payload={element:null},c.callback=function(){nd(i,o)},c}function AS(i){return i=Oi(i),i.tag=3,i}function wS(i,o,c,h){var m=c.type.getDerivedStateFromError;if(typeof m=="function"){var b=h.value;i.payload=function(){return m(b)},i.callback=function(){xS(o,c,h)}}var k=c.stateNode;k!==null&&typeof k.componentDidCatch=="function"&&(i.callback=function(){xS(o,c,h),typeof m!="function"&&(Ui===null?Ui=new Set([this]):Ui.add(this));var O=h.stack;this.componentDidCatch(h.value,{componentStack:O!==null?O:""})})}function yP(i,o,c,h,m){if(c.flags|=32768,h!==null&&typeof h=="object"&&typeof h.then=="function"){if(o=c.alternate,o!==null&&pl(o,c,m,!0),c=tr.current,c!==null){switch(c.tag){case 13:return kr===null?Lm():c.alternate===null&&Rt===0&&(Rt=3),c.flags&=-257,c.flags|=65536,c.lanes=m,h===Vp?c.flags|=16384:(o=c.updateQueue,o===null?c.updateQueue=new Set([h]):o.add(h),Mm(i,h,m)),!1;case 22:return c.flags|=65536,h===Vp?c.flags|=16384:(o=c.updateQueue,o===null?(o={transitions:null,markerInstances:null,retryQueue:new Set([h])},c.updateQueue=o):(c=o.retryQueue,c===null?o.retryQueue=new Set([h]):c.add(h)),Mm(i,h,m)),!1}throw Error(r(435,c.tag))}return Mm(i,h,m),Lm(),!1}if(nt)return o=tr.current,o!==null?((o.flags&65536)===0&&(o.flags|=256),o.flags|=65536,o.lanes=m,h!==Dp&&(i=Error(r(422),{cause:h}),hl(Xn(i,c)))):(h!==Dp&&(o=Error(r(423),{cause:h}),hl(Xn(o,c))),i=i.current.alternate,i.flags|=65536,m&=-m,i.lanes|=m,h=Xn(h,c),m=dm(i.stateNode,h,m),$p(i,m),Rt!==4&&(Rt=2)),!1;var b=Error(r(520),{cause:h});if(b=Xn(b,c),jl===null?jl=[b]:jl.push(b),Rt!==4&&(Rt=2),o===null)return!0;h=Xn(h,c),c=o;do{switch(c.tag){case 3:return c.flags|=65536,i=m&-m,c.lanes|=i,i=dm(c.stateNode,h,i),$p(c,i),!1;case 1:if(o=c.type,b=c.stateNode,(c.flags&128)===0&&(typeof o.getDerivedStateFromError=="function"||b!==null&&typeof b.componentDidCatch=="function"&&(Ui===null||!Ui.has(b))))return c.flags|=65536,m&=-m,c.lanes|=m,m=AS(m),wS(m,i,c,h),$p(c,m),!1}c=c.return}while(c!==null);return!1}var TS=Error(r(461)),Xt=!1;function nn(i,o,c,h){o.child=i===null?gS(o,null,c,h):Ho(o,i.child,c,h)}function CS(i,o,c,h,m){c=c.render;var b=o.ref;if("ref"in h){var k={};for(var O in h)O!=="ref"&&(k[O]=h[O])}else k=h;return La(o),h=Wp(i,o,c,k,b,m),O=Zp(),i!==null&&!Xt?(Yp(i,o,m),ai(i,o,m)):(nt&&O&&Op(o),o.flags|=1,nn(i,o,h,m),o.child)}function RS(i,o,c,h,m){if(i===null){var b=c.type;return typeof b=="function"&&!Rp(b)&&b.defaultProps===void 0&&c.compare===null?(o.tag=15,o.type=b,kS(i,o,b,h,m)):(i=Lu(c.type,null,h,o,o.mode,m),i.ref=o.ref,i.return=o,o.child=i)}if(b=i.child,!bm(i,m)){var k=b.memoizedProps;if(c=c.compare,c=c!==null?c:cl,c(k,h)&&i.ref===o.ref)return ai(i,o,m)}return o.flags|=1,i=Qr(b,h),i.ref=o.ref,i.return=o,o.child=i}function kS(i,o,c,h,m){if(i!==null){var b=i.memoizedProps;if(cl(b,h)&&i.ref===o.ref)if(Xt=!1,o.pendingProps=h=b,bm(i,m))(i.flags&131072)!==0&&(Xt=!0);else return o.lanes=i.lanes,ai(i,o,m)}return fm(i,o,c,h,m)}function NS(i,o,c){var h=o.pendingProps,m=h.children,b=i!==null?i.memoizedState:null;if(h.mode==="hidden"){if((o.flags&128)!==0){if(h=b!==null?b.baseLanes|c:c,i!==null){for(m=o.child=i.child,b=0;m!==null;)b=b|m.lanes|m.childLanes,m=m.sibling;o.childLanes=b&~h}else o.childLanes=0,o.child=null;return OS(i,o,h,c)}if((c&536870912)!==0)o.memoizedState={baseLanes:0,cachePool:null},i!==null&&Vu(o,b!==null?b.cachePool:null),b!==null?kE(o,b):Gp(),yS(o);else return o.lanes=o.childLanes=536870912,OS(i,o,b!==null?b.baseLanes|c:c,c)}else b!==null?(Vu(o,b.cachePool),kE(o,b),Li(),o.memoizedState=null):(i!==null&&Vu(o,null),Gp(),Li());return nn(i,o,m,c),o.child}function OS(i,o,c,h){var m=Bp();return m=m===null?null:{parent:Ft._currentValue,pool:m},o.memoizedState={baseLanes:c,cachePool:m},i!==null&&Vu(o,null),Gp(),yS(o),i!==null&&pl(i,o,h,!0),null}function rd(i,o){var c=o.ref;if(c===null)i!==null&&i.ref!==null&&(o.flags|=4194816);else{if(typeof c!="function"&&typeof c!="object")throw Error(r(284));(i===null||i.ref!==c)&&(o.flags|=4194816)}}function fm(i,o,c,h,m){return La(o),c=Wp(i,o,c,h,void 0,m),h=Zp(),i!==null&&!Xt?(Yp(i,o,m),ai(i,o,m)):(nt&&h&&Op(o),o.flags|=1,nn(i,o,c,m),o.child)}function IS(i,o,c,h,m,b){return La(o),o.updateQueue=null,c=OE(o,h,c,m),NE(i),h=Zp(),i!==null&&!Xt?(Yp(i,o,b),ai(i,o,b)):(nt&&h&&Op(o),o.flags|=1,nn(i,o,c,b),o.child)}function DS(i,o,c,h,m){if(La(o),o.stateNode===null){var b=jo,k=c.contextType;typeof k=="object"&&k!==null&&(b=fn(k)),b=new c(h,b),o.memoizedState=b.state!==null&&b.state!==void 0?b.state:null,b.updater=um,o.stateNode=b,b._reactInternals=o,b=o.stateNode,b.props=h,b.state=o.memoizedState,b.refs={},Up(o),k=c.contextType,b.context=typeof k=="object"&&k!==null?fn(k):jo,b.state=o.memoizedState,k=c.getDerivedStateFromProps,typeof k=="function"&&(cm(o,c,k,h),b.state=o.memoizedState),typeof c.getDerivedStateFromProps=="function"||typeof b.getSnapshotBeforeUpdate=="function"||typeof b.UNSAFE_componentWillMount!="function"&&typeof b.componentWillMount!="function"||(k=b.state,typeof b.componentWillMount=="function"&&b.componentWillMount(),typeof b.UNSAFE_componentWillMount=="function"&&b.UNSAFE_componentWillMount(),k!==b.state&&um.enqueueReplaceState(b,b.state,null),El(o,h,b,m),_l(),b.state=o.memoizedState),typeof b.componentDidMount=="function"&&(o.flags|=4194308),h=!0}else if(i===null){b=o.stateNode;var O=o.memoizedProps,z=za(c,O);b.props=z;var Q=b.context,le=c.contextType;k=jo,typeof le=="object"&&le!==null&&(k=fn(le));var de=c.getDerivedStateFromProps;le=typeof de=="function"||typeof b.getSnapshotBeforeUpdate=="function",O=o.pendingProps!==O,le||typeof b.UNSAFE_componentWillReceiveProps!="function"&&typeof b.componentWillReceiveProps!="function"||(O||Q!==k)&&bS(o,b,h,k),Ni=!1;var ne=o.memoizedState;b.state=ne,El(o,h,b,m),_l(),Q=o.memoizedState,O||ne!==Q||Ni?(typeof de=="function"&&(cm(o,c,de,h),Q=o.memoizedState),(z=Ni||vS(o,c,z,h,ne,Q,k))?(le||typeof b.UNSAFE_componentWillMount!="function"&&typeof b.componentWillMount!="function"||(typeof b.componentWillMount=="function"&&b.componentWillMount(),typeof b.UNSAFE_componentWillMount=="function"&&b.UNSAFE_componentWillMount()),typeof b.componentDidMount=="function"&&(o.flags|=4194308)):(typeof b.componentDidMount=="function"&&(o.flags|=4194308),o.memoizedProps=h,o.memoizedState=Q),b.props=h,b.state=Q,b.context=k,h=z):(typeof b.componentDidMount=="function"&&(o.flags|=4194308),h=!1)}else{b=o.stateNode,Fp(i,o),k=o.memoizedProps,le=za(c,k),b.props=le,de=o.pendingProps,ne=b.context,Q=c.contextType,z=jo,typeof Q=="object"&&Q!==null&&(z=fn(Q)),O=c.getDerivedStateFromProps,(Q=typeof O=="function"||typeof b.getSnapshotBeforeUpdate=="function")||typeof b.UNSAFE_componentWillReceiveProps!="function"&&typeof b.componentWillReceiveProps!="function"||(k!==de||ne!==z)&&bS(o,b,h,z),Ni=!1,ne=o.memoizedState,b.state=ne,El(o,h,b,m),_l();var re=o.memoizedState;k!==de||ne!==re||Ni||i!==null&&i.dependencies!==null&&zu(i.dependencies)?(typeof O=="function"&&(cm(o,c,O,h),re=o.memoizedState),(le=Ni||vS(o,c,le,h,ne,re,z)||i!==null&&i.dependencies!==null&&zu(i.dependencies))?(Q||typeof b.UNSAFE_componentWillUpdate!="function"&&typeof b.componentWillUpdate!="function"||(typeof b.componentWillUpdate=="function"&&b.componentWillUpdate(h,re,z),typeof b.UNSAFE_componentWillUpdate=="function"&&b.UNSAFE_componentWillUpdate(h,re,z)),typeof b.componentDidUpdate=="function"&&(o.flags|=4),typeof b.getSnapshotBeforeUpdate=="function"&&(o.flags|=1024)):(typeof b.componentDidUpdate!="function"||k===i.memoizedProps&&ne===i.memoizedState||(o.flags|=4),typeof b.getSnapshotBeforeUpdate!="function"||k===i.memoizedProps&&ne===i.memoizedState||(o.flags|=1024),o.memoizedProps=h,o.memoizedState=re),b.props=h,b.state=re,b.context=z,h=le):(typeof b.componentDidUpdate!="function"||k===i.memoizedProps&&ne===i.memoizedState||(o.flags|=4),typeof b.getSnapshotBeforeUpdate!="function"||k===i.memoizedProps&&ne===i.memoizedState||(o.flags|=1024),h=!1)}return b=h,rd(i,o),h=(o.flags&128)!==0,b||h?(b=o.stateNode,c=h&&typeof c.getDerivedStateFromError!="function"?null:b.render(),o.flags|=1,i!==null&&h?(o.child=Ho(o,i.child,null,m),o.child=Ho(o,null,c,m)):nn(i,o,c,m),o.memoizedState=b.state,i=o.child):i=ai(i,o,m),i}function jS(i,o,c,h){return fl(),o.flags|=256,nn(i,o,c,h),o.child}var hm={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function pm(i){return{baseLanes:i,cachePool:EE()}}function mm(i,o,c){return i=i!==null?i.childLanes&~c:0,o&&(i|=nr),i}function LS(i,o,c){var h=o.pendingProps,m=!1,b=(o.flags&128)!==0,k;if((k=b)||(k=i!==null&&i.memoizedState===null?!1:($t.current&2)!==0),k&&(m=!0,o.flags&=-129),k=(o.flags&32)!==0,o.flags&=-33,i===null){if(nt){if(m?ji(o):Li(),nt){var O=Ct,z;if(z=O){e:{for(z=O,O=Rr;z.nodeType!==8;){if(!O){O=null;break e}if(z=mr(z.nextSibling),z===null){O=null;break e}}O=z}O!==null?(o.memoizedState={dehydrated:O,treeContext:Na!==null?{id:Jr,overflow:ei}:null,retryLane:536870912,hydrationErrors:null},z=jn(18,null,null,0),z.stateNode=O,z.return=o,o.child=z,vn=o,Ct=null,z=!0):z=!1}z||Da(o)}if(O=o.memoizedState,O!==null&&(O=O.dehydrated,O!==null))return Qm(O)?o.lanes=32:o.lanes=536870912,null;ii(o)}return O=h.children,h=h.fallback,m?(Li(),m=o.mode,O=id({mode:"hidden",children:O},m),h=ka(h,m,c,null),O.return=o,h.return=o,O.sibling=h,o.child=O,m=o.child,m.memoizedState=pm(c),m.childLanes=mm(i,k,c),o.memoizedState=hm,h):(ji(o),gm(o,O))}if(z=i.memoizedState,z!==null&&(O=z.dehydrated,O!==null)){if(b)o.flags&256?(ji(o),o.flags&=-257,o=ym(i,o,c)):o.memoizedState!==null?(Li(),o.child=i.child,o.flags|=128,o=null):(Li(),m=h.fallback,O=o.mode,h=id({mode:"visible",children:h.children},O),m=ka(m,O,c,null),m.flags|=2,h.return=o,m.return=o,h.sibling=m,o.child=h,Ho(o,i.child,null,c),h=o.child,h.memoizedState=pm(c),h.childLanes=mm(i,k,c),o.memoizedState=hm,o=m);else if(ji(o),Qm(O)){if(k=O.nextSibling&&O.nextSibling.dataset,k)var Q=k.dgst;k=Q,h=Error(r(419)),h.stack="",h.digest=k,hl({value:h,source:null,stack:null}),o=ym(i,o,c)}else if(Xt||pl(i,o,c,!1),k=(c&i.childLanes)!==0,Xt||k){if(k=mt,k!==null&&(h=c&-c,h=(h&42)!==0?1:Jh(h),h=(h&(k.suspendedLanes|c))!==0?0:h,h!==0&&h!==z.retryLane))throw z.retryLane=h,Do(i,h),Bn(k,i,h),TS;O.data==="$?"||Lm(),o=ym(i,o,c)}else O.data==="$?"?(o.flags|=192,o.child=i.child,o=null):(i=z.treeContext,Ct=mr(O.nextSibling),vn=o,nt=!0,Ia=null,Rr=!1,i!==null&&(Jn[er++]=Jr,Jn[er++]=ei,Jn[er++]=Na,Jr=i.id,ei=i.overflow,Na=o),o=gm(o,h.children),o.flags|=4096);return o}return m?(Li(),m=h.fallback,O=o.mode,z=i.child,Q=z.sibling,h=Qr(z,{mode:"hidden",children:h.children}),h.subtreeFlags=z.subtreeFlags&65011712,Q!==null?m=Qr(Q,m):(m=ka(m,O,c,null),m.flags|=2),m.return=o,h.return=o,h.sibling=m,o.child=h,h=m,m=o.child,O=i.child.memoizedState,O===null?O=pm(c):(z=O.cachePool,z!==null?(Q=Ft._currentValue,z=z.parent!==Q?{parent:Q,pool:Q}:z):z=EE(),O={baseLanes:O.baseLanes|c,cachePool:z}),m.memoizedState=O,m.childLanes=mm(i,k,c),o.memoizedState=hm,h):(ji(o),c=i.child,i=c.sibling,c=Qr(c,{mode:"visible",children:h.children}),c.return=o,c.sibling=null,i!==null&&(k=o.deletions,k===null?(o.deletions=[i],o.flags|=16):k.push(i)),o.child=c,o.memoizedState=null,c)}function gm(i,o){return o=id({mode:"visible",children:o},i.mode),o.return=i,i.child=o}function id(i,o){return i=jn(22,i,null,o),i.lanes=0,i.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},i}function ym(i,o,c){return Ho(o,i.child,null,c),i=gm(o,o.pendingProps.children),i.flags|=2,o.memoizedState=null,i}function PS(i,o,c){i.lanes|=o;var h=i.alternate;h!==null&&(h.lanes|=o),Lp(i.return,o,c)}function vm(i,o,c,h,m){var b=i.memoizedState;b===null?i.memoizedState={isBackwards:o,rendering:null,renderingStartTime:0,last:h,tail:c,tailMode:m}:(b.isBackwards=o,b.rendering=null,b.renderingStartTime=0,b.last=h,b.tail=c,b.tailMode=m)}function MS(i,o,c){var h=o.pendingProps,m=h.revealOrder,b=h.tail;if(nn(i,o,h.children,c),h=$t.current,(h&2)!==0)h=h&1|2,o.flags|=128;else{if(i!==null&&(i.flags&128)!==0)e:for(i=o.child;i!==null;){if(i.tag===13)i.memoizedState!==null&&PS(i,c,o);else if(i.tag===19)PS(i,c,o);else if(i.child!==null){i.child.return=i,i=i.child;continue}if(i===o)break e;for(;i.sibling===null;){if(i.return===null||i.return===o)break e;i=i.return}i.sibling.return=i.return,i=i.sibling}h&=1}switch(J($t,h),m){case"forwards":for(c=o.child,m=null;c!==null;)i=c.alternate,i!==null&&ed(i)===null&&(m=c),c=c.sibling;c=m,c===null?(m=o.child,o.child=null):(m=c.sibling,c.sibling=null),vm(o,!1,m,c,b);break;case"backwards":for(c=null,m=o.child,o.child=null;m!==null;){if(i=m.alternate,i!==null&&ed(i)===null){o.child=m;break}i=m.sibling,m.sibling=c,c=m,m=i}vm(o,!0,c,null,b);break;case"together":vm(o,!1,null,null,void 0);break;default:o.memoizedState=null}return o.child}function ai(i,o,c){if(i!==null&&(o.dependencies=i.dependencies),Vi|=o.lanes,(c&o.childLanes)===0)if(i!==null){if(pl(i,o,c,!1),(c&o.childLanes)===0)return null}else return null;if(i!==null&&o.child!==i.child)throw Error(r(153));if(o.child!==null){for(i=o.child,c=Qr(i,i.pendingProps),o.child=c,c.return=o;i.sibling!==null;)i=i.sibling,c=c.sibling=Qr(i,i.pendingProps),c.return=o;c.sibling=null}return o.child}function bm(i,o){return(i.lanes&o)!==0?!0:(i=i.dependencies,!!(i!==null&&zu(i)))}function vP(i,o,c){switch(o.tag){case 3:xe(o,o.stateNode.containerInfo),ki(o,Ft,i.memoizedState.cache),fl();break;case 27:case 5:Be(o);break;case 4:xe(o,o.stateNode.containerInfo);break;case 10:ki(o,o.type,o.memoizedProps.value);break;case 13:var h=o.memoizedState;if(h!==null)return h.dehydrated!==null?(ji(o),o.flags|=128,null):(c&o.child.childLanes)!==0?LS(i,o,c):(ji(o),i=ai(i,o,c),i!==null?i.sibling:null);ji(o);break;case 19:var m=(i.flags&128)!==0;if(h=(c&o.childLanes)!==0,h||(pl(i,o,c,!1),h=(c&o.childLanes)!==0),m){if(h)return MS(i,o,c);o.flags|=128}if(m=o.memoizedState,m!==null&&(m.rendering=null,m.tail=null,m.lastEffect=null),J($t,$t.current),h)break;return null;case 22:case 23:return o.lanes=0,NS(i,o,c);case 24:ki(o,Ft,i.memoizedState.cache)}return ai(i,o,c)}function zS(i,o,c){if(i!==null)if(i.memoizedProps!==o.pendingProps)Xt=!0;else{if(!bm(i,c)&&(o.flags&128)===0)return Xt=!1,vP(i,o,c);Xt=(i.flags&131072)!==0}else Xt=!1,nt&&(o.flags&1048576)!==0&&pE(o,Mu,o.index);switch(o.lanes=0,o.tag){case 16:e:{i=o.pendingProps;var h=o.elementType,m=h._init;if(h=m(h._payload),o.type=h,typeof h=="function")Rp(h)?(i=za(h,i),o.tag=1,o=DS(null,o,h,i,c)):(o.tag=0,o=fm(null,o,h,i,c));else{if(h!=null){if(m=h.$$typeof,m===N){o.tag=11,o=CS(null,o,h,i,c);break e}else if(m===D){o.tag=14,o=RS(null,o,h,i,c);break e}}throw o=W(h)||h,Error(r(306,o,""))}}return o;case 0:return fm(i,o,o.type,o.pendingProps,c);case 1:return h=o.type,m=za(h,o.pendingProps),DS(i,o,h,m,c);case 3:e:{if(xe(o,o.stateNode.containerInfo),i===null)throw Error(r(387));h=o.pendingProps;var b=o.memoizedState;m=b.element,Fp(i,o),El(o,h,null,c);var k=o.memoizedState;if(h=k.cache,ki(o,Ft,h),h!==b.cache&&Pp(o,[Ft],c,!0),_l(),h=k.element,b.isDehydrated)if(b={element:h,isDehydrated:!1,cache:k.cache},o.updateQueue.baseState=b,o.memoizedState=b,o.flags&256){o=jS(i,o,h,c);break e}else if(h!==m){m=Xn(Error(r(424)),o),hl(m),o=jS(i,o,h,c);break e}else{switch(i=o.stateNode.containerInfo,i.nodeType){case 9:i=i.body;break;default:i=i.nodeName==="HTML"?i.ownerDocument.body:i}for(Ct=mr(i.firstChild),vn=o,nt=!0,Ia=null,Rr=!0,c=gS(o,null,h,c),o.child=c;c;)c.flags=c.flags&-3|4096,c=c.sibling}else{if(fl(),h===m){o=ai(i,o,c);break e}nn(i,o,h,c)}o=o.child}return o;case 26:return rd(i,o),i===null?(c=Fx(o.type,null,o.pendingProps,null))?o.memoizedState=c:nt||(c=o.type,i=o.pendingProps,h=vd(ye.current).createElement(c),h[dn]=o,h[wn]=i,an(h,c,i),Yt(h),o.stateNode=h):o.memoizedState=Fx(o.type,i.memoizedProps,o.pendingProps,i.memoizedState),null;case 27:return Be(o),i===null&&nt&&(h=o.stateNode=Bx(o.type,o.pendingProps,ye.current),vn=o,Rr=!0,m=Ct,Hi(o.type)?(Jm=m,Ct=mr(h.firstChild)):Ct=m),nn(i,o,o.pendingProps.children,c),rd(i,o),i===null&&(o.flags|=4194304),o.child;case 5:return i===null&&nt&&((m=h=Ct)&&(h=KP(h,o.type,o.pendingProps,Rr),h!==null?(o.stateNode=h,vn=o,Ct=mr(h.firstChild),Rr=!1,m=!0):m=!1),m||Da(o)),Be(o),m=o.type,b=o.pendingProps,k=i!==null?i.memoizedProps:null,h=b.children,Zm(m,b)?h=null:k!==null&&Zm(m,k)&&(o.flags|=32),o.memoizedState!==null&&(m=Wp(i,o,uP,null,null,c),$l._currentValue=m),rd(i,o),nn(i,o,h,c),o.child;case 6:return i===null&&nt&&((i=c=Ct)&&(c=qP(c,o.pendingProps,Rr),c!==null?(o.stateNode=c,vn=o,Ct=null,i=!0):i=!1),i||Da(o)),null;case 13:return LS(i,o,c);case 4:return xe(o,o.stateNode.containerInfo),h=o.pendingProps,i===null?o.child=Ho(o,null,h,c):nn(i,o,h,c),o.child;case 11:return CS(i,o,o.type,o.pendingProps,c);case 7:return nn(i,o,o.pendingProps,c),o.child;case 8:return nn(i,o,o.pendingProps.children,c),o.child;case 12:return nn(i,o,o.pendingProps.children,c),o.child;case 10:return h=o.pendingProps,ki(o,o.type,h.value),nn(i,o,h.children,c),o.child;case 9:return m=o.type._context,h=o.pendingProps.children,La(o),m=fn(m),h=h(m),o.flags|=1,nn(i,o,h,c),o.child;case 14:return RS(i,o,o.type,o.pendingProps,c);case 15:return kS(i,o,o.type,o.pendingProps,c);case 19:return MS(i,o,c);case 31:return h=o.pendingProps,c=o.mode,h={mode:h.mode,children:h.children},i===null?(c=id(h,c),c.ref=o.ref,o.child=c,c.return=o,o=c):(c=Qr(i.child,h),c.ref=o.ref,o.child=c,c.return=o,o=c),o;case 22:return NS(i,o,c);case 24:return La(o),h=fn(Ft),i===null?(m=Bp(),m===null&&(m=mt,b=Mp(),m.pooledCache=b,b.refCount++,b!==null&&(m.pooledCacheLanes|=c),m=b),o.memoizedState={parent:h,cache:m},Up(o),ki(o,Ft,m)):((i.lanes&c)!==0&&(Fp(i,o),El(o,null,null,c),_l()),m=i.memoizedState,b=o.memoizedState,m.parent!==h?(m={parent:h,cache:h},o.memoizedState=m,o.lanes===0&&(o.memoizedState=o.updateQueue.baseState=m),ki(o,Ft,h)):(h=b.cache,ki(o,Ft,h),h!==m.cache&&Pp(o,[Ft],c,!0))),nn(i,o,o.pendingProps.children,c),o.child;case 29:throw o.pendingProps}throw Error(r(156,o.tag))}function oi(i){i.flags|=4}function BS(i,o){if(o.type!=="stylesheet"||(o.state.loading&4)!==0)i.flags&=-16777217;else if(i.flags|=16777216,!qx(o)){if(o=tr.current,o!==null&&((Je&4194048)===Je?kr!==null:(Je&62914560)!==Je&&(Je&536870912)===0||o!==kr))throw vl=Vp,SE;i.flags|=8192}}function ad(i,o){o!==null&&(i.flags|=4),i.flags&16384&&(o=i.tag!==22?y_():536870912,i.lanes|=o,Wo|=o)}function Rl(i,o){if(!nt)switch(i.tailMode){case"hidden":o=i.tail;for(var c=null;o!==null;)o.alternate!==null&&(c=o),o=o.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?o||i.tail===null?i.tail=null:i.tail.sibling=null:h.sibling=null}}function St(i){var o=i.alternate!==null&&i.alternate.child===i.child,c=0,h=0;if(o)for(var m=i.child;m!==null;)c|=m.lanes|m.childLanes,h|=m.subtreeFlags&65011712,h|=m.flags&65011712,m.return=i,m=m.sibling;else for(m=i.child;m!==null;)c|=m.lanes|m.childLanes,h|=m.subtreeFlags,h|=m.flags,m.return=i,m=m.sibling;return i.subtreeFlags|=h,i.childLanes=c,o}function bP(i,o,c){var h=o.pendingProps;switch(Ip(o),o.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return St(o),null;case 1:return St(o),null;case 3:return c=o.stateNode,h=null,i!==null&&(h=i.memoizedState.cache),o.memoizedState.cache!==h&&(o.flags|=2048),ni(Ft),je(),c.pendingContext&&(c.context=c.pendingContext,c.pendingContext=null),(i===null||i.child===null)&&(dl(o)?oi(o):i===null||i.memoizedState.isDehydrated&&(o.flags&256)===0||(o.flags|=1024,yE())),St(o),null;case 26:return c=o.memoizedState,i===null?(oi(o),c!==null?(St(o),BS(o,c)):(St(o),o.flags&=-16777217)):c?c!==i.memoizedState?(oi(o),St(o),BS(o,c)):(St(o),o.flags&=-16777217):(i.memoizedProps!==h&&oi(o),St(o),o.flags&=-16777217),null;case 27:Ye(o),c=ye.current;var m=o.type;if(i!==null&&o.stateNode!=null)i.memoizedProps!==h&&oi(o);else{if(!h){if(o.stateNode===null)throw Error(r(166));return St(o),null}i=se.current,dl(o)?mE(o):(i=Bx(m,h,c),o.stateNode=i,oi(o))}return St(o),null;case 5:if(Ye(o),c=o.type,i!==null&&o.stateNode!=null)i.memoizedProps!==h&&oi(o);else{if(!h){if(o.stateNode===null)throw Error(r(166));return St(o),null}if(i=se.current,dl(o))mE(o);else{switch(m=vd(ye.current),i){case 1:i=m.createElementNS("http://www.w3.org/2000/svg",c);break;case 2:i=m.createElementNS("http://www.w3.org/1998/Math/MathML",c);break;default:switch(c){case"svg":i=m.createElementNS("http://www.w3.org/2000/svg",c);break;case"math":i=m.createElementNS("http://www.w3.org/1998/Math/MathML",c);break;case"script":i=m.createElement("div"),i.innerHTML="<script><\/script>",i=i.removeChild(i.firstChild);break;case"select":i=typeof h.is=="string"?m.createElement("select",{is:h.is}):m.createElement("select"),h.multiple?i.multiple=!0:h.size&&(i.size=h.size);break;default:i=typeof h.is=="string"?m.createElement(c,{is:h.is}):m.createElement(c)}}i[dn]=o,i[wn]=h;e:for(m=o.child;m!==null;){if(m.tag===5||m.tag===6)i.appendChild(m.stateNode);else if(m.tag!==4&&m.tag!==27&&m.child!==null){m.child.return=m,m=m.child;continue}if(m===o)break e;for(;m.sibling===null;){if(m.return===null||m.return===o)break e;m=m.return}m.sibling.return=m.return,m=m.sibling}o.stateNode=i;e:switch(an(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&&oi(o)}}return St(o),o.flags&=-16777217,null;case 6:if(i&&o.stateNode!=null)i.memoizedProps!==h&&oi(o);else{if(typeof h!="string"&&o.stateNode===null)throw Error(r(166));if(i=ye.current,dl(o)){if(i=o.stateNode,c=o.memoizedProps,h=null,m=vn,m!==null)switch(m.tag){case 27:case 5:h=m.memoizedProps}i[dn]=o,i=!!(i.nodeValue===c||h!==null&&h.suppressHydrationWarning===!0||Ix(i.nodeValue,c)),i||Da(o)}else i=vd(i).createTextNode(h),i[dn]=o,o.stateNode=i}return St(o),null;case 13:if(h=o.memoizedState,i===null||i.memoizedState!==null&&i.memoizedState.dehydrated!==null){if(m=dl(o),h!==null&&h.dehydrated!==null){if(i===null){if(!m)throw Error(r(318));if(m=o.memoizedState,m=m!==null?m.dehydrated:null,!m)throw Error(r(317));m[dn]=o}else fl(),(o.flags&128)===0&&(o.memoizedState=null),o.flags|=4;St(o),m=!1}else m=yE(),i!==null&&i.memoizedState!==null&&(i.memoizedState.hydrationErrors=m),m=!0;if(!m)return o.flags&256?(ii(o),o):(ii(o),null)}if(ii(o),(o.flags&128)!==0)return o.lanes=c,o;if(c=h!==null,i=i!==null&&i.memoizedState!==null,c){h=o.child,m=null,h.alternate!==null&&h.alternate.memoizedState!==null&&h.alternate.memoizedState.cachePool!==null&&(m=h.alternate.memoizedState.cachePool.pool);var b=null;h.memoizedState!==null&&h.memoizedState.cachePool!==null&&(b=h.memoizedState.cachePool.pool),b!==m&&(h.flags|=2048)}return c!==i&&c&&(o.child.flags|=8192),ad(o,o.updateQueue),St(o),null;case 4:return je(),i===null&&Hm(o.stateNode.containerInfo),St(o),null;case 10:return ni(o.type),St(o),null;case 19:if(F($t),m=o.memoizedState,m===null)return St(o),null;if(h=(o.flags&128)!==0,b=m.rendering,b===null)if(h)Rl(m,!1);else{if(Rt!==0||i!==null&&(i.flags&128)!==0)for(i=o.child;i!==null;){if(b=ed(i),b!==null){for(o.flags|=128,Rl(m,!1),i=b.updateQueue,o.updateQueue=i,ad(o,i),o.subtreeFlags=0,i=c,c=o.child;c!==null;)hE(c,i),c=c.sibling;return J($t,$t.current&1|2),o.child}i=i.sibling}m.tail!==null&&un()>ld&&(o.flags|=128,h=!0,Rl(m,!1),o.lanes=4194304)}else{if(!h)if(i=ed(b),i!==null){if(o.flags|=128,h=!0,i=i.updateQueue,o.updateQueue=i,ad(o,i),Rl(m,!0),m.tail===null&&m.tailMode==="hidden"&&!b.alternate&&!nt)return St(o),null}else 2*un()-m.renderingStartTime>ld&&c!==536870912&&(o.flags|=128,h=!0,Rl(m,!1),o.lanes=4194304);m.isBackwards?(b.sibling=o.child,o.child=b):(i=m.last,i!==null?i.sibling=b:o.child=b,m.last=b)}return m.tail!==null?(o=m.tail,m.rendering=o,m.tail=o.sibling,m.renderingStartTime=un(),o.sibling=null,i=$t.current,J($t,h?i&1|2:i&1),o):(St(o),null);case 22:case 23:return ii(o),Kp(),h=o.memoizedState!==null,i!==null?i.memoizedState!==null!==h&&(o.flags|=8192):h&&(o.flags|=8192),h?(c&536870912)!==0&&(o.flags&128)===0&&(St(o),o.subtreeFlags&6&&(o.flags|=8192)):St(o),c=o.updateQueue,c!==null&&ad(o,c.retryQueue),c=null,i!==null&&i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(c=i.memoizedState.cachePool.pool),h=null,o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(h=o.memoizedState.cachePool.pool),h!==c&&(o.flags|=2048),i!==null&&F(Pa),null;case 24:return c=null,i!==null&&(c=i.memoizedState.cache),o.memoizedState.cache!==c&&(o.flags|=2048),ni(Ft),St(o),null;case 25:return null;case 30:return null}throw Error(r(156,o.tag))}function _P(i,o){switch(Ip(o),o.tag){case 1:return i=o.flags,i&65536?(o.flags=i&-65537|128,o):null;case 3:return ni(Ft),je(),i=o.flags,(i&65536)!==0&&(i&128)===0?(o.flags=i&-65537|128,o):null;case 26:case 27:case 5:return Ye(o),null;case 13:if(ii(o),i=o.memoizedState,i!==null&&i.dehydrated!==null){if(o.alternate===null)throw Error(r(340));fl()}return i=o.flags,i&65536?(o.flags=i&-65537|128,o):null;case 19:return F($t),null;case 4:return je(),null;case 10:return ni(o.type),null;case 22:case 23:return ii(o),Kp(),i!==null&&F(Pa),i=o.flags,i&65536?(o.flags=i&-65537|128,o):null;case 24:return ni(Ft),null;case 25:return null;default:return null}}function VS(i,o){switch(Ip(o),o.tag){case 3:ni(Ft),je();break;case 26:case 27:case 5:Ye(o);break;case 4:je();break;case 13:ii(o);break;case 19:F($t);break;case 10:ni(o.type);break;case 22:case 23:ii(o),Kp(),i!==null&&F(Pa);break;case 24:ni(Ft)}}function kl(i,o){try{var c=o.updateQueue,h=c!==null?c.lastEffect:null;if(h!==null){var m=h.next;c=m;do{if((c.tag&i)===i){h=void 0;var b=c.create,k=c.inst;h=b(),k.destroy=h}c=c.next}while(c!==m)}}catch(O){ht(o,o.return,O)}}function Pi(i,o,c){try{var h=o.updateQueue,m=h!==null?h.lastEffect:null;if(m!==null){var b=m.next;h=b;do{if((h.tag&i)===i){var k=h.inst,O=k.destroy;if(O!==void 0){k.destroy=void 0,m=o;var z=c,Q=O;try{Q()}catch(le){ht(m,z,le)}}}h=h.next}while(h!==b)}}catch(le){ht(o,o.return,le)}}function US(i){var o=i.updateQueue;if(o!==null){var c=i.stateNode;try{RE(o,c)}catch(h){ht(i,i.return,h)}}}function FS(i,o,c){c.props=za(i.type,i.memoizedProps),c.state=i.memoizedState;try{c.componentWillUnmount()}catch(h){ht(i,o,h)}}function Nl(i,o){try{var c=i.ref;if(c!==null){switch(i.tag){case 26:case 27:case 5:var h=i.stateNode;break;case 30:h=i.stateNode;break;default:h=i.stateNode}typeof c=="function"?i.refCleanup=c(h):c.current=h}}catch(m){ht(i,o,m)}}function Nr(i,o){var c=i.ref,h=i.refCleanup;if(c!==null)if(typeof h=="function")try{h()}catch(m){ht(i,o,m)}finally{i.refCleanup=null,i=i.alternate,i!=null&&(i.refCleanup=null)}else if(typeof c=="function")try{c(null)}catch(m){ht(i,o,m)}else c.current=null}function $S(i){var o=i.type,c=i.memoizedProps,h=i.stateNode;try{e:switch(o){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(m){ht(i,i.return,m)}}function _m(i,o,c){try{var h=i.stateNode;UP(h,i.type,c,o),h[wn]=o}catch(m){ht(i,i.return,m)}}function HS(i){return i.tag===5||i.tag===3||i.tag===26||i.tag===27&&Hi(i.type)||i.tag===4}function Em(i){e:for(;;){for(;i.sibling===null;){if(i.return===null||HS(i.return))return null;i=i.return}for(i.sibling.return=i.return,i=i.sibling;i.tag!==5&&i.tag!==6&&i.tag!==18;){if(i.tag===27&&Hi(i.type)||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 Sm(i,o,c){var h=i.tag;if(h===5||h===6)i=i.stateNode,o?(c.nodeType===9?c.body:c.nodeName==="HTML"?c.ownerDocument.body:c).insertBefore(i,o):(o=c.nodeType===9?c.body:c.nodeName==="HTML"?c.ownerDocument.body:c,o.appendChild(i),c=c._reactRootContainer,c!=null||o.onclick!==null||(o.onclick=yd));else if(h!==4&&(h===27&&Hi(i.type)&&(c=i.stateNode,o=null),i=i.child,i!==null))for(Sm(i,o,c),i=i.sibling;i!==null;)Sm(i,o,c),i=i.sibling}function od(i,o,c){var h=i.tag;if(h===5||h===6)i=i.stateNode,o?c.insertBefore(i,o):c.appendChild(i);else if(h!==4&&(h===27&&Hi(i.type)&&(c=i.stateNode),i=i.child,i!==null))for(od(i,o,c),i=i.sibling;i!==null;)od(i,o,c),i=i.sibling}function GS(i){var o=i.stateNode,c=i.memoizedProps;try{for(var h=i.type,m=o.attributes;m.length;)o.removeAttributeNode(m[0]);an(o,h,c),o[dn]=i,o[wn]=c}catch(b){ht(i,i.return,b)}}var si=!1,Ot=!1,xm=!1,KS=typeof WeakSet=="function"?WeakSet:Set,Qt=null;function EP(i,o){if(i=i.containerInfo,qm=Ad,i=rE(i),Ep(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 m=h.anchorOffset,b=h.focusNode;h=h.focusOffset;try{c.nodeType,b.nodeType}catch{c=null;break e}var k=0,O=-1,z=-1,Q=0,le=0,de=i,ne=null;t:for(;;){for(var re;de!==c||m!==0&&de.nodeType!==3||(O=k+m),de!==b||h!==0&&de.nodeType!==3||(z=k+h),de.nodeType===3&&(k+=de.nodeValue.length),(re=de.firstChild)!==null;)ne=de,de=re;for(;;){if(de===i)break t;if(ne===c&&++Q===m&&(O=k),ne===b&&++le===h&&(z=k),(re=de.nextSibling)!==null)break;de=ne,ne=de.parentNode}de=re}c=O===-1||z===-1?null:{start:O,end:z}}else c=null}c=c||{start:0,end:0}}else c=null;for(Wm={focusedElem:i,selectionRange:c},Ad=!1,Qt=o;Qt!==null;)if(o=Qt,i=o.child,(o.subtreeFlags&1024)!==0&&i!==null)i.return=o,Qt=i;else for(;Qt!==null;){switch(o=Qt,b=o.alternate,i=o.flags,o.tag){case 0:break;case 11:case 15:break;case 1:if((i&1024)!==0&&b!==null){i=void 0,c=o,m=b.memoizedProps,b=b.memoizedState,h=c.stateNode;try{var Le=za(c.type,m,c.elementType===c.type);i=h.getSnapshotBeforeUpdate(Le,b),h.__reactInternalSnapshotBeforeUpdate=i}catch(Ie){ht(c,c.return,Ie)}}break;case 3:if((i&1024)!==0){if(i=o.stateNode.containerInfo,c=i.nodeType,c===9)Xm(i);else if(c===1)switch(i.nodeName){case"HEAD":case"HTML":case"BODY":Xm(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=o.sibling,i!==null){i.return=o.return,Qt=i;break}Qt=o.return}}function qS(i,o,c){var h=c.flags;switch(c.tag){case 0:case 11:case 15:Mi(i,c),h&4&&kl(5,c);break;case 1:if(Mi(i,c),h&4)if(i=c.stateNode,o===null)try{i.componentDidMount()}catch(k){ht(c,c.return,k)}else{var m=za(c.type,o.memoizedProps);o=o.memoizedState;try{i.componentDidUpdate(m,o,i.__reactInternalSnapshotBeforeUpdate)}catch(k){ht(c,c.return,k)}}h&64&&US(c),h&512&&Nl(c,c.return);break;case 3:if(Mi(i,c),h&64&&(i=c.updateQueue,i!==null)){if(o=null,c.child!==null)switch(c.child.tag){case 27:case 5:o=c.child.stateNode;break;case 1:o=c.child.stateNode}try{RE(i,o)}catch(k){ht(c,c.return,k)}}break;case 27:o===null&&h&4&&GS(c);case 26:case 5:Mi(i,c),o===null&&h&4&&$S(c),h&512&&Nl(c,c.return);break;case 12:Mi(i,c);break;case 13:Mi(i,c),h&4&&YS(i,c),h&64&&(i=c.memoizedState,i!==null&&(i=i.dehydrated,i!==null&&(c=NP.bind(null,c),WP(i,c))));break;case 22:if(h=c.memoizedState!==null||si,!h){o=o!==null&&o.memoizedState!==null||Ot,m=si;var b=Ot;si=h,(Ot=o)&&!b?zi(i,c,(c.subtreeFlags&8772)!==0):Mi(i,c),si=m,Ot=b}break;case 30:break;default:Mi(i,c)}}function WS(i){var o=i.alternate;o!==null&&(i.alternate=null,WS(o)),i.child=null,i.deletions=null,i.sibling=null,i.tag===5&&(o=i.stateNode,o!==null&&np(o)),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 vt=null,Rn=!1;function li(i,o,c){for(c=c.child;c!==null;)ZS(i,o,c),c=c.sibling}function ZS(i,o,c){if(Ve&&typeof Ve.onCommitFiberUnmount=="function")try{Ve.onCommitFiberUnmount(Ce,c)}catch{}switch(c.tag){case 26:Ot||Nr(c,o),li(i,o,c),c.memoizedState?c.memoizedState.count--:c.stateNode&&(c=c.stateNode,c.parentNode.removeChild(c));break;case 27:Ot||Nr(c,o);var h=vt,m=Rn;Hi(c.type)&&(vt=c.stateNode,Rn=!1),li(i,o,c),Bl(c.stateNode),vt=h,Rn=m;break;case 5:Ot||Nr(c,o);case 6:if(h=vt,m=Rn,vt=null,li(i,o,c),vt=h,Rn=m,vt!==null)if(Rn)try{(vt.nodeType===9?vt.body:vt.nodeName==="HTML"?vt.ownerDocument.body:vt).removeChild(c.stateNode)}catch(b){ht(c,o,b)}else try{vt.removeChild(c.stateNode)}catch(b){ht(c,o,b)}break;case 18:vt!==null&&(Rn?(i=vt,Mx(i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i,c.stateNode),ql(i)):Mx(vt,c.stateNode));break;case 4:h=vt,m=Rn,vt=c.stateNode.containerInfo,Rn=!0,li(i,o,c),vt=h,Rn=m;break;case 0:case 11:case 14:case 15:Ot||Pi(2,c,o),Ot||Pi(4,c,o),li(i,o,c);break;case 1:Ot||(Nr(c,o),h=c.stateNode,typeof h.componentWillUnmount=="function"&&FS(c,o,h)),li(i,o,c);break;case 21:li(i,o,c);break;case 22:Ot=(h=Ot)||c.memoizedState!==null,li(i,o,c),Ot=h;break;default:li(i,o,c)}}function YS(i,o){if(o.memoizedState===null&&(i=o.alternate,i!==null&&(i=i.memoizedState,i!==null&&(i=i.dehydrated,i!==null))))try{ql(i)}catch(c){ht(o,o.return,c)}}function SP(i){switch(i.tag){case 13:case 19:var o=i.stateNode;return o===null&&(o=i.stateNode=new KS),o;case 22:return i=i.stateNode,o=i._retryCache,o===null&&(o=i._retryCache=new KS),o;default:throw Error(r(435,i.tag))}}function Am(i,o){var c=SP(i);o.forEach(function(h){var m=OP.bind(null,i,h);c.has(h)||(c.add(h),h.then(m,m))})}function Ln(i,o){var c=o.deletions;if(c!==null)for(var h=0;h<c.length;h++){var m=c[h],b=i,k=o,O=k;e:for(;O!==null;){switch(O.tag){case 27:if(Hi(O.type)){vt=O.stateNode,Rn=!1;break e}break;case 5:vt=O.stateNode,Rn=!1;break e;case 3:case 4:vt=O.stateNode.containerInfo,Rn=!0;break e}O=O.return}if(vt===null)throw Error(r(160));ZS(b,k,m),vt=null,Rn=!1,b=m.alternate,b!==null&&(b.return=null),m.return=null}if(o.subtreeFlags&13878)for(o=o.child;o!==null;)XS(o,i),o=o.sibling}var pr=null;function XS(i,o){var c=i.alternate,h=i.flags;switch(i.tag){case 0:case 11:case 14:case 15:Ln(o,i),Pn(i),h&4&&(Pi(3,i,i.return),kl(3,i),Pi(5,i,i.return));break;case 1:Ln(o,i),Pn(i),h&512&&(Ot||c===null||Nr(c,c.return)),h&64&&si&&(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 m=pr;if(Ln(o,i),Pn(i),h&512&&(Ot||c===null||Nr(c,c.return)),h&4){var b=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,m=m.ownerDocument||m;t:switch(h){case"title":b=m.getElementsByTagName("title")[0],(!b||b[el]||b[dn]||b.namespaceURI==="http://www.w3.org/2000/svg"||b.hasAttribute("itemprop"))&&(b=m.createElement(h),m.head.insertBefore(b,m.querySelector("head > title"))),an(b,h,c),b[dn]=i,Yt(b),h=b;break e;case"link":var k=Gx("link","href",m).get(h+(c.href||""));if(k){for(var O=0;O<k.length;O++)if(b=k[O],b.getAttribute("href")===(c.href==null||c.href===""?null:c.href)&&b.getAttribute("rel")===(c.rel==null?null:c.rel)&&b.getAttribute("title")===(c.title==null?null:c.title)&&b.getAttribute("crossorigin")===(c.crossOrigin==null?null:c.crossOrigin)){k.splice(O,1);break t}}b=m.createElement(h),an(b,h,c),m.head.appendChild(b);break;case"meta":if(k=Gx("meta","content",m).get(h+(c.content||""))){for(O=0;O<k.length;O++)if(b=k[O],b.getAttribute("content")===(c.content==null?null:""+c.content)&&b.getAttribute("name")===(c.name==null?null:c.name)&&b.getAttribute("property")===(c.property==null?null:c.property)&&b.getAttribute("http-equiv")===(c.httpEquiv==null?null:c.httpEquiv)&&b.getAttribute("charset")===(c.charSet==null?null:c.charSet)){k.splice(O,1);break t}}b=m.createElement(h),an(b,h,c),m.head.appendChild(b);break;default:throw Error(r(468,h))}b[dn]=i,Yt(b),h=b}i.stateNode=h}else Kx(m,i.type,i.stateNode);else i.stateNode=Hx(m,h,i.memoizedProps);else b!==h?(b===null?c.stateNode!==null&&(c=c.stateNode,c.parentNode.removeChild(c)):b.count--,h===null?Kx(m,i.type,i.stateNode):Hx(m,h,i.memoizedProps)):h===null&&i.stateNode!==null&&_m(i,i.memoizedProps,c.memoizedProps)}break;case 27:Ln(o,i),Pn(i),h&512&&(Ot||c===null||Nr(c,c.return)),c!==null&&h&4&&_m(i,i.memoizedProps,c.memoizedProps);break;case 5:if(Ln(o,i),Pn(i),h&512&&(Ot||c===null||Nr(c,c.return)),i.flags&32){m=i.stateNode;try{To(m,"")}catch(re){ht(i,i.return,re)}}h&4&&i.stateNode!=null&&(m=i.memoizedProps,_m(i,m,c!==null?c.memoizedProps:m)),h&1024&&(xm=!0);break;case 6:if(Ln(o,i),Pn(i),h&4){if(i.stateNode===null)throw Error(r(162));h=i.memoizedProps,c=i.stateNode;try{c.nodeValue=h}catch(re){ht(i,i.return,re)}}break;case 3:if(Ed=null,m=pr,pr=bd(o.containerInfo),Ln(o,i),pr=m,Pn(i),h&4&&c!==null&&c.memoizedState.isDehydrated)try{ql(o.containerInfo)}catch(re){ht(i,i.return,re)}xm&&(xm=!1,QS(i));break;case 4:h=pr,pr=bd(i.stateNode.containerInfo),Ln(o,i),Pn(i),pr=h;break;case 12:Ln(o,i),Pn(i);break;case 13:Ln(o,i),Pn(i),i.child.flags&8192&&i.memoizedState!==null!=(c!==null&&c.memoizedState!==null)&&(Nm=un()),h&4&&(h=i.updateQueue,h!==null&&(i.updateQueue=null,Am(i,h)));break;case 22:m=i.memoizedState!==null;var z=c!==null&&c.memoizedState!==null,Q=si,le=Ot;if(si=Q||m,Ot=le||z,Ln(o,i),Ot=le,si=Q,Pn(i),h&8192)e:for(o=i.stateNode,o._visibility=m?o._visibility&-2:o._visibility|1,m&&(c===null||z||si||Ot||Ba(i)),c=null,o=i;;){if(o.tag===5||o.tag===26){if(c===null){z=c=o;try{if(b=z.stateNode,m)k=b.style,typeof k.setProperty=="function"?k.setProperty("display","none","important"):k.display="none";else{O=z.stateNode;var de=z.memoizedProps.style,ne=de!=null&&de.hasOwnProperty("display")?de.display:null;O.style.display=ne==null||typeof ne=="boolean"?"":(""+ne).trim()}}catch(re){ht(z,z.return,re)}}}else if(o.tag===6){if(c===null){z=o;try{z.stateNode.nodeValue=m?"":z.memoizedProps}catch(re){ht(z,z.return,re)}}}else if((o.tag!==22&&o.tag!==23||o.memoizedState===null||o===i)&&o.child!==null){o.child.return=o,o=o.child;continue}if(o===i)break e;for(;o.sibling===null;){if(o.return===null||o.return===i)break e;c===o&&(c=null),o=o.return}c===o&&(c=null),o.sibling.return=o.return,o=o.sibling}h&4&&(h=i.updateQueue,h!==null&&(c=h.retryQueue,c!==null&&(h.retryQueue=null,Am(i,c))));break;case 19:Ln(o,i),Pn(i),h&4&&(h=i.updateQueue,h!==null&&(i.updateQueue=null,Am(i,h)));break;case 30:break;case 21:break;default:Ln(o,i),Pn(i)}}function Pn(i){var o=i.flags;if(o&2){try{for(var c,h=i.return;h!==null;){if(HS(h)){c=h;break}h=h.return}if(c==null)throw Error(r(160));switch(c.tag){case 27:var m=c.stateNode,b=Em(i);od(i,b,m);break;case 5:var k=c.stateNode;c.flags&32&&(To(k,""),c.flags&=-33);var O=Em(i);od(i,O,k);break;case 3:case 4:var z=c.stateNode.containerInfo,Q=Em(i);Sm(i,Q,z);break;default:throw Error(r(161))}}catch(le){ht(i,i.return,le)}i.flags&=-3}o&4096&&(i.flags&=-4097)}function QS(i){if(i.subtreeFlags&1024)for(i=i.child;i!==null;){var o=i;QS(o),o.tag===5&&o.flags&1024&&o.stateNode.reset(),i=i.sibling}}function Mi(i,o){if(o.subtreeFlags&8772)for(o=o.child;o!==null;)qS(i,o.alternate,o),o=o.sibling}function Ba(i){for(i=i.child;i!==null;){var o=i;switch(o.tag){case 0:case 11:case 14:case 15:Pi(4,o,o.return),Ba(o);break;case 1:Nr(o,o.return);var c=o.stateNode;typeof c.componentWillUnmount=="function"&&FS(o,o.return,c),Ba(o);break;case 27:Bl(o.stateNode);case 26:case 5:Nr(o,o.return),Ba(o);break;case 22:o.memoizedState===null&&Ba(o);break;case 30:Ba(o);break;default:Ba(o)}i=i.sibling}}function zi(i,o,c){for(c=c&&(o.subtreeFlags&8772)!==0,o=o.child;o!==null;){var h=o.alternate,m=i,b=o,k=b.flags;switch(b.tag){case 0:case 11:case 15:zi(m,b,c),kl(4,b);break;case 1:if(zi(m,b,c),h=b,m=h.stateNode,typeof m.componentDidMount=="function")try{m.componentDidMount()}catch(Q){ht(h,h.return,Q)}if(h=b,m=h.updateQueue,m!==null){var O=h.stateNode;try{var z=m.shared.hiddenCallbacks;if(z!==null)for(m.shared.hiddenCallbacks=null,m=0;m<z.length;m++)CE(z[m],O)}catch(Q){ht(h,h.return,Q)}}c&&k&64&&US(b),Nl(b,b.return);break;case 27:GS(b);case 26:case 5:zi(m,b,c),c&&h===null&&k&4&&$S(b),Nl(b,b.return);break;case 12:zi(m,b,c);break;case 13:zi(m,b,c),c&&k&4&&YS(m,b);break;case 22:b.memoizedState===null&&zi(m,b,c),Nl(b,b.return);break;case 30:break;default:zi(m,b,c)}o=o.sibling}}function wm(i,o){var c=null;i!==null&&i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(c=i.memoizedState.cachePool.pool),i=null,o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(i=o.memoizedState.cachePool.pool),i!==c&&(i!=null&&i.refCount++,c!=null&&ml(c))}function Tm(i,o){i=null,o.alternate!==null&&(i=o.alternate.memoizedState.cache),o=o.memoizedState.cache,o!==i&&(o.refCount++,i!=null&&ml(i))}function Or(i,o,c,h){if(o.subtreeFlags&10256)for(o=o.child;o!==null;)JS(i,o,c,h),o=o.sibling}function JS(i,o,c,h){var m=o.flags;switch(o.tag){case 0:case 11:case 15:Or(i,o,c,h),m&2048&&kl(9,o);break;case 1:Or(i,o,c,h);break;case 3:Or(i,o,c,h),m&2048&&(i=null,o.alternate!==null&&(i=o.alternate.memoizedState.cache),o=o.memoizedState.cache,o!==i&&(o.refCount++,i!=null&&ml(i)));break;case 12:if(m&2048){Or(i,o,c,h),i=o.stateNode;try{var b=o.memoizedProps,k=b.id,O=b.onPostCommit;typeof O=="function"&&O(k,o.alternate===null?"mount":"update",i.passiveEffectDuration,-0)}catch(z){ht(o,o.return,z)}}else Or(i,o,c,h);break;case 13:Or(i,o,c,h);break;case 23:break;case 22:b=o.stateNode,k=o.alternate,o.memoizedState!==null?b._visibility&2?Or(i,o,c,h):Ol(i,o):b._visibility&2?Or(i,o,c,h):(b._visibility|=2,Go(i,o,c,h,(o.subtreeFlags&10256)!==0)),m&2048&&wm(k,o);break;case 24:Or(i,o,c,h),m&2048&&Tm(o.alternate,o);break;default:Or(i,o,c,h)}}function Go(i,o,c,h,m){for(m=m&&(o.subtreeFlags&10256)!==0,o=o.child;o!==null;){var b=i,k=o,O=c,z=h,Q=k.flags;switch(k.tag){case 0:case 11:case 15:Go(b,k,O,z,m),kl(8,k);break;case 23:break;case 22:var le=k.stateNode;k.memoizedState!==null?le._visibility&2?Go(b,k,O,z,m):Ol(b,k):(le._visibility|=2,Go(b,k,O,z,m)),m&&Q&2048&&wm(k.alternate,k);break;case 24:Go(b,k,O,z,m),m&&Q&2048&&Tm(k.alternate,k);break;default:Go(b,k,O,z,m)}o=o.sibling}}function Ol(i,o){if(o.subtreeFlags&10256)for(o=o.child;o!==null;){var c=i,h=o,m=h.flags;switch(h.tag){case 22:Ol(c,h),m&2048&&wm(h.alternate,h);break;case 24:Ol(c,h),m&2048&&Tm(h.alternate,h);break;default:Ol(c,h)}o=o.sibling}}var Il=8192;function Ko(i){if(i.subtreeFlags&Il)for(i=i.child;i!==null;)ex(i),i=i.sibling}function ex(i){switch(i.tag){case 26:Ko(i),i.flags&Il&&i.memoizedState!==null&&sM(pr,i.memoizedState,i.memoizedProps);break;case 5:Ko(i);break;case 3:case 4:var o=pr;pr=bd(i.stateNode.containerInfo),Ko(i),pr=o;break;case 22:i.memoizedState===null&&(o=i.alternate,o!==null&&o.memoizedState!==null?(o=Il,Il=16777216,Ko(i),Il=o):Ko(i));break;default:Ko(i)}}function tx(i){var o=i.alternate;if(o!==null&&(i=o.child,i!==null)){o.child=null;do o=i.sibling,i.sibling=null,i=o;while(i!==null)}}function Dl(i){var o=i.deletions;if((i.flags&16)!==0){if(o!==null)for(var c=0;c<o.length;c++){var h=o[c];Qt=h,rx(h,i)}tx(i)}if(i.subtreeFlags&10256)for(i=i.child;i!==null;)nx(i),i=i.sibling}function nx(i){switch(i.tag){case 0:case 11:case 15:Dl(i),i.flags&2048&&Pi(9,i,i.return);break;case 3:Dl(i);break;case 12:Dl(i);break;case 22:var o=i.stateNode;i.memoizedState!==null&&o._visibility&2&&(i.return===null||i.return.tag!==13)?(o._visibility&=-3,sd(i)):Dl(i);break;default:Dl(i)}}function sd(i){var o=i.deletions;if((i.flags&16)!==0){if(o!==null)for(var c=0;c<o.length;c++){var h=o[c];Qt=h,rx(h,i)}tx(i)}for(i=i.child;i!==null;){switch(o=i,o.tag){case 0:case 11:case 15:Pi(8,o,o.return),sd(o);break;case 22:c=o.stateNode,c._visibility&2&&(c._visibility&=-3,sd(o));break;default:sd(o)}i=i.sibling}}function rx(i,o){for(;Qt!==null;){var c=Qt;switch(c.tag){case 0:case 11:case 15:Pi(8,c,o);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:ml(c.memoizedState.cache)}if(h=c.child,h!==null)h.return=c,Qt=h;else e:for(c=i;Qt!==null;){h=Qt;var m=h.sibling,b=h.return;if(WS(h),h===c){Qt=null;break e}if(m!==null){m.return=b,Qt=m;break e}Qt=b}}}var xP={getCacheForType:function(i){var o=fn(Ft),c=o.data.get(i);return c===void 0&&(c=i(),o.data.set(i,c)),c}},AP=typeof WeakMap=="function"?WeakMap:Map,st=0,mt=null,We=null,Je=0,lt=0,Mn=null,Bi=!1,qo=!1,Cm=!1,ci=0,Rt=0,Vi=0,Va=0,Rm=0,nr=0,Wo=0,jl=null,kn=null,km=!1,Nm=0,ld=1/0,cd=null,Ui=null,rn=0,Fi=null,Zo=null,Yo=0,Om=0,Im=null,ix=null,Ll=0,Dm=null;function zn(){if((st&2)!==0&&Je!==0)return Je&-Je;if(M.T!==null){var i=Mo;return i!==0?i:Vm()}return __()}function ax(){nr===0&&(nr=(Je&536870912)===0||nt?g_():536870912);var i=tr.current;return i!==null&&(i.flags|=32),nr}function Bn(i,o,c){(i===mt&&(lt===2||lt===9)||i.cancelPendingCommit!==null)&&(Xo(i,0),$i(i,Je,nr,!1)),Js(i,c),((st&2)===0||i!==mt)&&(i===mt&&((st&2)===0&&(Va|=c),Rt===4&&$i(i,Je,nr,!1)),Ir(i))}function ox(i,o,c){if((st&6)!==0)throw Error(r(327));var h=!c&&(o&124)===0&&(o&i.expiredLanes)===0||Aa(i,o),m=h?CP(i,o):Pm(i,o,!0),b=h;do{if(m===0){qo&&!h&&$i(i,o,0,!1);break}else{if(c=i.current.alternate,b&&!wP(c)){m=Pm(i,o,!1),b=!1;continue}if(m===2){if(b=o,i.errorRecoveryDisabledLanes&b)var k=0;else k=i.pendingLanes&-536870913,k=k!==0?k:k&536870912?536870912:0;if(k!==0){o=k;e:{var O=i;m=jl;var z=O.current.memoizedState.isDehydrated;if(z&&(Xo(O,k).flags|=256),k=Pm(O,k,!1),k!==2){if(Cm&&!z){O.errorRecoveryDisabledLanes|=b,Va|=b,m=4;break e}b=kn,kn=m,b!==null&&(kn===null?kn=b:kn.push.apply(kn,b))}m=k}if(b=!1,m!==2)continue}}if(m===1){Xo(i,0),$i(i,o,0,!0);break}e:{switch(h=i,b=m,b){case 0:case 1:throw Error(r(345));case 4:if((o&4194048)!==o)break;case 6:$i(h,o,nr,!Bi);break e;case 2:kn=null;break;case 3:case 5:break;default:throw Error(r(329))}if((o&62914560)===o&&(m=Nm+300-un(),10<m)){if($i(h,o,nr,!Bi),xa(h,0,!0)!==0)break e;h.timeoutHandle=Lx(sx.bind(null,h,c,kn,cd,km,o,nr,Va,Wo,Bi,b,2,-0,0),m);break e}sx(h,c,kn,cd,km,o,nr,Va,Wo,Bi,b,0,-0,0)}}break}while(!0);Ir(i)}function sx(i,o,c,h,m,b,k,O,z,Q,le,de,ne,re){if(i.timeoutHandle=-1,de=o.subtreeFlags,(de&8192||(de&16785408)===16785408)&&(Fl={stylesheets:null,count:0,unsuspend:oM},ex(o),de=lM(),de!==null)){i.cancelPendingCommit=de(px.bind(null,i,o,b,c,h,m,k,O,z,le,1,ne,re)),$i(i,b,k,!Q);return}px(i,o,b,c,h,m,k,O,z)}function wP(i){for(var o=i;;){var c=o.tag;if((c===0||c===11||c===15)&&o.flags&16384&&(c=o.updateQueue,c!==null&&(c=c.stores,c!==null)))for(var h=0;h<c.length;h++){var m=c[h],b=m.getSnapshot;m=m.value;try{if(!Dn(b(),m))return!1}catch{return!1}}if(c=o.child,o.subtreeFlags&16384&&c!==null)c.return=o,o=c;else{if(o===i)break;for(;o.sibling===null;){if(o.return===null||o.return===i)return!0;o=o.return}o.sibling.return=o.return,o=o.sibling}}return!0}function $i(i,o,c,h){o&=~Rm,o&=~Va,i.suspendedLanes|=o,i.pingedLanes&=~o,h&&(i.warmLanes|=o),h=i.expirationTimes;for(var m=o;0<m;){var b=31-pt(m),k=1<<b;h[b]=-1,m&=~k}c!==0&&v_(i,c,o)}function ud(){return(st&6)===0?(Pl(0),!1):!0}function jm(){if(We!==null){if(lt===0)var i=We.return;else i=We,ti=ja=null,Xp(i),$o=null,Tl=0,i=We;for(;i!==null;)VS(i.alternate,i),i=i.return;We=null}}function Xo(i,o){var c=i.timeoutHandle;c!==-1&&(i.timeoutHandle=-1,$P(c)),c=i.cancelPendingCommit,c!==null&&(i.cancelPendingCommit=null,c()),jm(),mt=i,We=c=Qr(i.current,null),Je=o,lt=0,Mn=null,Bi=!1,qo=Aa(i,o),Cm=!1,Wo=nr=Rm=Va=Vi=Rt=0,kn=jl=null,km=!1,(o&8)!==0&&(o|=o&32);var h=i.entangledLanes;if(h!==0)for(i=i.entanglements,h&=o;0<h;){var m=31-pt(h),b=1<<m;o|=i[m],h&=~b}return ci=o,Iu(),c}function lx(i,o){Ge=null,M.H=Xu,o===yl||o===Uu?(o=wE(),lt=3):o===SE?(o=wE(),lt=4):lt=o===TS?8:o!==null&&typeof o=="object"&&typeof o.then=="function"?6:1,Mn=o,We===null&&(Rt=1,nd(i,Xn(o,i.current)))}function cx(){var i=M.H;return M.H=Xu,i===null?Xu:i}function ux(){var i=M.A;return M.A=xP,i}function Lm(){Rt=4,Bi||(Je&4194048)!==Je&&tr.current!==null||(qo=!0),(Vi&134217727)===0&&(Va&134217727)===0||mt===null||$i(mt,Je,nr,!1)}function Pm(i,o,c){var h=st;st|=2;var m=cx(),b=ux();(mt!==i||Je!==o)&&(cd=null,Xo(i,o)),o=!1;var k=Rt;e:do try{if(lt!==0&&We!==null){var O=We,z=Mn;switch(lt){case 8:jm(),k=6;break e;case 3:case 2:case 9:case 6:tr.current===null&&(o=!0);var Q=lt;if(lt=0,Mn=null,Qo(i,O,z,Q),c&&qo){k=0;break e}break;default:Q=lt,lt=0,Mn=null,Qo(i,O,z,Q)}}TP(),k=Rt;break}catch(le){lx(i,le)}while(!0);return o&&i.shellSuspendCounter++,ti=ja=null,st=h,M.H=m,M.A=b,We===null&&(mt=null,Je=0,Iu()),k}function TP(){for(;We!==null;)dx(We)}function CP(i,o){var c=st;st|=2;var h=cx(),m=ux();mt!==i||Je!==o?(cd=null,ld=un()+500,Xo(i,o)):qo=Aa(i,o);e:do try{if(lt!==0&&We!==null){o=We;var b=Mn;t:switch(lt){case 1:lt=0,Mn=null,Qo(i,o,b,1);break;case 2:case 9:if(xE(b)){lt=0,Mn=null,fx(o);break}o=function(){lt!==2&<!==9||mt!==i||(lt=7),Ir(i)},b.then(o,o);break e;case 3:lt=7;break e;case 4:lt=5;break e;case 7:xE(b)?(lt=0,Mn=null,fx(o)):(lt=0,Mn=null,Qo(i,o,b,7));break;case 5:var k=null;switch(We.tag){case 26:k=We.memoizedState;case 5:case 27:var O=We;if(!k||qx(k)){lt=0,Mn=null;var z=O.sibling;if(z!==null)We=z;else{var Q=O.return;Q!==null?(We=Q,dd(Q)):We=null}break t}}lt=0,Mn=null,Qo(i,o,b,5);break;case 6:lt=0,Mn=null,Qo(i,o,b,6);break;case 8:jm(),Rt=6;break e;default:throw Error(r(462))}}RP();break}catch(le){lx(i,le)}while(!0);return ti=ja=null,M.H=h,M.A=m,st=c,We!==null?0:(mt=null,Je=0,Iu(),Rt)}function RP(){for(;We!==null&&!Ai();)dx(We)}function dx(i){var o=zS(i.alternate,i,ci);i.memoizedProps=i.pendingProps,o===null?dd(i):We=o}function fx(i){var o=i,c=o.alternate;switch(o.tag){case 15:case 0:o=IS(c,o,o.pendingProps,o.type,void 0,Je);break;case 11:o=IS(c,o,o.pendingProps,o.type.render,o.ref,Je);break;case 5:Xp(o);default:VS(c,o),o=We=hE(o,ci),o=zS(c,o,ci)}i.memoizedProps=i.pendingProps,o===null?dd(i):We=o}function Qo(i,o,c,h){ti=ja=null,Xp(o),$o=null,Tl=0;var m=o.return;try{if(yP(i,m,o,c,Je)){Rt=1,nd(i,Xn(c,i.current)),We=null;return}}catch(b){if(m!==null)throw We=m,b;Rt=1,nd(i,Xn(c,i.current)),We=null;return}o.flags&32768?(nt||h===1?i=!0:qo||(Je&536870912)!==0?i=!1:(Bi=i=!0,(h===2||h===9||h===3||h===6)&&(h=tr.current,h!==null&&h.tag===13&&(h.flags|=16384))),hx(o,i)):dd(o)}function dd(i){var o=i;do{if((o.flags&32768)!==0){hx(o,Bi);return}i=o.return;var c=bP(o.alternate,o,ci);if(c!==null){We=c;return}if(o=o.sibling,o!==null){We=o;return}We=o=i}while(o!==null);Rt===0&&(Rt=5)}function hx(i,o){do{var c=_P(i.alternate,i);if(c!==null){c.flags&=32767,We=c;return}if(c=i.return,c!==null&&(c.flags|=32768,c.subtreeFlags=0,c.deletions=null),!o&&(i=i.sibling,i!==null)){We=i;return}We=i=c}while(i!==null);Rt=6,We=null}function px(i,o,c,h,m,b,k,O,z){i.cancelPendingCommit=null;do fd();while(rn!==0);if((st&6)!==0)throw Error(r(327));if(o!==null){if(o===i.current)throw Error(r(177));if(b=o.lanes|o.childLanes,b|=Tp,oL(i,c,b,k,O,z),i===mt&&(We=mt=null,Je=0),Zo=o,Fi=i,Yo=c,Om=b,Im=m,ix=h,(o.subtreeFlags&10256)!==0||(o.flags&10256)!==0?(i.callbackNode=null,i.callbackPriority=0,IP(ee,function(){return bx(),null})):(i.callbackNode=null,i.callbackPriority=0),h=(o.flags&13878)!==0,(o.subtreeFlags&13878)!==0||h){h=M.T,M.T=null,m=X.p,X.p=2,k=st,st|=4;try{EP(i,o,c)}finally{st=k,X.p=m,M.T=h}}rn=1,mx(),gx(),yx()}}function mx(){if(rn===1){rn=0;var i=Fi,o=Zo,c=(o.flags&13878)!==0;if((o.subtreeFlags&13878)!==0||c){c=M.T,M.T=null;var h=X.p;X.p=2;var m=st;st|=4;try{XS(o,i);var b=Wm,k=rE(i.containerInfo),O=b.focusedElem,z=b.selectionRange;if(k!==O&&O&&O.ownerDocument&&nE(O.ownerDocument.documentElement,O)){if(z!==null&&Ep(O)){var Q=z.start,le=z.end;if(le===void 0&&(le=Q),"selectionStart"in O)O.selectionStart=Q,O.selectionEnd=Math.min(le,O.value.length);else{var de=O.ownerDocument||document,ne=de&&de.defaultView||window;if(ne.getSelection){var re=ne.getSelection(),Le=O.textContent.length,Ie=Math.min(z.start,Le),ft=z.end===void 0?Ie:Math.min(z.end,Le);!re.extend&&Ie>ft&&(k=ft,ft=Ie,Ie=k);var K=tE(O,Ie),U=tE(O,ft);if(K&&U&&(re.rangeCount!==1||re.anchorNode!==K.node||re.anchorOffset!==K.offset||re.focusNode!==U.node||re.focusOffset!==U.offset)){var Y=de.createRange();Y.setStart(K.node,K.offset),re.removeAllRanges(),Ie>ft?(re.addRange(Y),re.extend(U.node,U.offset)):(Y.setEnd(U.node,U.offset),re.addRange(Y))}}}}for(de=[],re=O;re=re.parentNode;)re.nodeType===1&&de.push({element:re,left:re.scrollLeft,top:re.scrollTop});for(typeof O.focus=="function"&&O.focus(),O=0;O<de.length;O++){var ue=de[O];ue.element.scrollLeft=ue.left,ue.element.scrollTop=ue.top}}Ad=!!qm,Wm=qm=null}finally{st=m,X.p=h,M.T=c}}i.current=o,rn=2}}function gx(){if(rn===2){rn=0;var i=Fi,o=Zo,c=(o.flags&8772)!==0;if((o.subtreeFlags&8772)!==0||c){c=M.T,M.T=null;var h=X.p;X.p=2;var m=st;st|=4;try{qS(i,o.alternate,o)}finally{st=m,X.p=h,M.T=c}}rn=3}}function yx(){if(rn===4||rn===3){rn=0,Sa();var i=Fi,o=Zo,c=Yo,h=ix;(o.subtreeFlags&10256)!==0||(o.flags&10256)!==0?rn=5:(rn=0,Zo=Fi=null,vx(i,i.pendingLanes));var m=i.pendingLanes;if(m===0&&(Ui=null),ep(c),o=o.stateNode,Ve&&typeof Ve.onCommitFiberRoot=="function")try{Ve.onCommitFiberRoot(Ce,o,void 0,(o.current.flags&128)===128)}catch{}if(h!==null){o=M.T,m=X.p,X.p=2,M.T=null;try{for(var b=i.onRecoverableError,k=0;k<h.length;k++){var O=h[k];b(O.value,{componentStack:O.stack})}}finally{M.T=o,X.p=m}}(Yo&3)!==0&&fd(),Ir(i),m=i.pendingLanes,(c&4194090)!==0&&(m&42)!==0?i===Dm?Ll++:(Ll=0,Dm=i):Ll=0,Pl(0)}}function vx(i,o){(i.pooledCacheLanes&=o)===0&&(o=i.pooledCache,o!=null&&(i.pooledCache=null,ml(o)))}function fd(i){return mx(),gx(),yx(),bx()}function bx(){if(rn!==5)return!1;var i=Fi,o=Om;Om=0;var c=ep(Yo),h=M.T,m=X.p;try{X.p=32>c?32:c,M.T=null,c=Im,Im=null;var b=Fi,k=Yo;if(rn=0,Zo=Fi=null,Yo=0,(st&6)!==0)throw Error(r(331));var O=st;if(st|=4,nx(b.current),JS(b,b.current,k,c),st=O,Pl(0,!1),Ve&&typeof Ve.onPostCommitFiberRoot=="function")try{Ve.onPostCommitFiberRoot(Ce,b)}catch{}return!0}finally{X.p=m,M.T=h,vx(i,o)}}function _x(i,o,c){o=Xn(c,o),o=dm(i.stateNode,o,2),i=Ii(i,o,2),i!==null&&(Js(i,2),Ir(i))}function ht(i,o,c){if(i.tag===3)_x(i,i,c);else for(;o!==null;){if(o.tag===3){_x(o,i,c);break}else if(o.tag===1){var h=o.stateNode;if(typeof o.type.getDerivedStateFromError=="function"||typeof h.componentDidCatch=="function"&&(Ui===null||!Ui.has(h))){i=Xn(c,i),c=AS(2),h=Ii(o,c,2),h!==null&&(wS(c,h,o,i),Js(h,2),Ir(h));break}}o=o.return}}function Mm(i,o,c){var h=i.pingCache;if(h===null){h=i.pingCache=new AP;var m=new Set;h.set(o,m)}else m=h.get(o),m===void 0&&(m=new Set,h.set(o,m));m.has(c)||(Cm=!0,m.add(c),i=kP.bind(null,i,o,c),o.then(i,i))}function kP(i,o,c){var h=i.pingCache;h!==null&&h.delete(o),i.pingedLanes|=i.suspendedLanes&c,i.warmLanes&=~c,mt===i&&(Je&c)===c&&(Rt===4||Rt===3&&(Je&62914560)===Je&&300>un()-Nm?(st&2)===0&&Xo(i,0):Rm|=c,Wo===Je&&(Wo=0)),Ir(i)}function Ex(i,o){o===0&&(o=y_()),i=Do(i,o),i!==null&&(Js(i,o),Ir(i))}function NP(i){var o=i.memoizedState,c=0;o!==null&&(c=o.retryLane),Ex(i,c)}function OP(i,o){var c=0;switch(i.tag){case 13:var h=i.stateNode,m=i.memoizedState;m!==null&&(c=m.retryLane);break;case 19:h=i.stateNode;break;case 22:h=i.stateNode._retryCache;break;default:throw Error(r(314))}h!==null&&h.delete(o),Ex(i,c)}function IP(i,o){return Zt(i,o)}var hd=null,Jo=null,zm=!1,pd=!1,Bm=!1,Ua=0;function Ir(i){i!==Jo&&i.next===null&&(Jo===null?hd=Jo=i:Jo=Jo.next=i),pd=!0,zm||(zm=!0,jP())}function Pl(i,o){if(!Bm&&pd){Bm=!0;do for(var c=!1,h=hd;h!==null;){if(i!==0){var m=h.pendingLanes;if(m===0)var b=0;else{var k=h.suspendedLanes,O=h.pingedLanes;b=(1<<31-pt(42|i)+1)-1,b&=m&~(k&~O),b=b&201326741?b&201326741|1:b?b|2:0}b!==0&&(c=!0,wx(h,b))}else b=Je,b=xa(h,h===mt?b:0,h.cancelPendingCommit!==null||h.timeoutHandle!==-1),(b&3)===0||Aa(h,b)||(c=!0,wx(h,b));h=h.next}while(c);Bm=!1}}function DP(){Sx()}function Sx(){pd=zm=!1;var i=0;Ua!==0&&(FP()&&(i=Ua),Ua=0);for(var o=un(),c=null,h=hd;h!==null;){var m=h.next,b=xx(h,o);b===0?(h.next=null,c===null?hd=m:c.next=m,m===null&&(Jo=c)):(c=h,(i!==0||(b&3)!==0)&&(pd=!0)),h=m}Pl(i)}function xx(i,o){for(var c=i.suspendedLanes,h=i.pingedLanes,m=i.expirationTimes,b=i.pendingLanes&-62914561;0<b;){var k=31-pt(b),O=1<<k,z=m[k];z===-1?((O&c)===0||(O&h)!==0)&&(m[k]=_u(O,o)):z<=o&&(i.expiredLanes|=O),b&=~O}if(o=mt,c=Je,c=xa(i,i===o?c:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),h=i.callbackNode,c===0||i===o&&(lt===2||lt===9)||i.cancelPendingCommit!==null)return h!==null&&h!==null&&An(h),i.callbackNode=null,i.callbackPriority=0;if((c&3)===0||Aa(i,c)){if(o=c&-c,o===i.callbackPriority)return o;switch(h!==null&&An(h),ep(c)){case 2:case 8:c=V;break;case 32:c=ee;break;case 268435456:c=Se;break;default:c=ee}return h=Ax.bind(null,i),c=Zt(c,h),i.callbackPriority=o,i.callbackNode=c,o}return h!==null&&h!==null&&An(h),i.callbackPriority=2,i.callbackNode=null,2}function Ax(i,o){if(rn!==0&&rn!==5)return i.callbackNode=null,i.callbackPriority=0,null;var c=i.callbackNode;if(fd()&&i.callbackNode!==c)return null;var h=Je;return h=xa(i,i===mt?h:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),h===0?null:(ox(i,h,o),xx(i,un()),i.callbackNode!=null&&i.callbackNode===c?Ax.bind(null,i):null)}function wx(i,o){if(fd())return null;ox(i,o,!0)}function jP(){HP(function(){(st&6)!==0?Zt(Qs,DP):Sx()})}function Vm(){return Ua===0&&(Ua=g_()),Ua}function Tx(i){return i==null||typeof i=="symbol"||typeof i=="boolean"?null:typeof i=="function"?i:wu(""+i)}function Cx(i,o){var c=o.ownerDocument.createElement("input");return c.name=o.name,c.value=o.value,i.id&&c.setAttribute("form",i.id),o.parentNode.insertBefore(c,o),i=new FormData(i),c.parentNode.removeChild(c),i}function LP(i,o,c,h,m){if(o==="submit"&&c&&c.stateNode===m){var b=Tx((m[wn]||null).action),k=h.submitter;k&&(o=(o=k[wn]||null)?Tx(o.formAction):k.getAttribute("formAction"),o!==null&&(b=o,k=null));var O=new ku("action","action",null,h,m);i.push({event:O,listeners:[{instance:null,listener:function(){if(h.defaultPrevented){if(Ua!==0){var z=k?Cx(m,k):new FormData(m);om(c,{pending:!0,data:z,method:m.method,action:b},null,z)}}else typeof b=="function"&&(O.preventDefault(),z=k?Cx(m,k):new FormData(m),om(c,{pending:!0,data:z,method:m.method,action:b},b,z))},currentTarget:m}]})}}for(var Um=0;Um<wp.length;Um++){var Fm=wp[Um],PP=Fm.toLowerCase(),MP=Fm[0].toUpperCase()+Fm.slice(1);hr(PP,"on"+MP)}hr(oE,"onAnimationEnd"),hr(sE,"onAnimationIteration"),hr(lE,"onAnimationStart"),hr("dblclick","onDoubleClick"),hr("focusin","onFocus"),hr("focusout","onBlur"),hr(eP,"onTransitionRun"),hr(tP,"onTransitionStart"),hr(nP,"onTransitionCancel"),hr(cE,"onTransitionEnd"),xo("onMouseEnter",["mouseout","mouseover"]),xo("onMouseLeave",["mouseout","mouseover"]),xo("onPointerEnter",["pointerout","pointerover"]),xo("onPointerLeave",["pointerout","pointerover"]),wa("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),wa("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),wa("onBeforeInput",["compositionend","keypress","textInput","paste"]),wa("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),wa("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),wa("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ml="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(" "),zP=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Ml));function Rx(i,o){o=(o&4)!==0;for(var c=0;c<i.length;c++){var h=i[c],m=h.event;h=h.listeners;e:{var b=void 0;if(o)for(var k=h.length-1;0<=k;k--){var O=h[k],z=O.instance,Q=O.currentTarget;if(O=O.listener,z!==b&&m.isPropagationStopped())break e;b=O,m.currentTarget=Q;try{b(m)}catch(le){td(le)}m.currentTarget=null,b=z}else for(k=0;k<h.length;k++){if(O=h[k],z=O.instance,Q=O.currentTarget,O=O.listener,z!==b&&m.isPropagationStopped())break e;b=O,m.currentTarget=Q;try{b(m)}catch(le){td(le)}m.currentTarget=null,b=z}}}}function Ze(i,o){var c=o[tp];c===void 0&&(c=o[tp]=new Set);var h=i+"__bubble";c.has(h)||(kx(o,i,2,!1),c.add(h))}function $m(i,o,c){var h=0;o&&(h|=4),kx(c,i,h,o)}var md="_reactListening"+Math.random().toString(36).slice(2);function Hm(i){if(!i[md]){i[md]=!0,S_.forEach(function(c){c!=="selectionchange"&&(zP.has(c)||$m(c,!1,i),$m(c,!0,i))});var o=i.nodeType===9?i:i.ownerDocument;o===null||o[md]||(o[md]=!0,$m("selectionchange",!1,o))}}function kx(i,o,c,h){switch(Jx(o)){case 2:var m=dM;break;case 8:m=fM;break;default:m=ig}c=m.bind(null,o,c,i),m=void 0,!fp||o!=="touchstart"&&o!=="touchmove"&&o!=="wheel"||(m=!0),h?m!==void 0?i.addEventListener(o,c,{capture:!0,passive:m}):i.addEventListener(o,c,!0):m!==void 0?i.addEventListener(o,c,{passive:m}):i.addEventListener(o,c,!1)}function Gm(i,o,c,h,m){var b=h;if((o&1)===0&&(o&2)===0&&h!==null)e:for(;;){if(h===null)return;var k=h.tag;if(k===3||k===4){var O=h.stateNode.containerInfo;if(O===m)break;if(k===4)for(k=h.return;k!==null;){var z=k.tag;if((z===3||z===4)&&k.stateNode.containerInfo===m)return;k=k.return}for(;O!==null;){if(k=_o(O),k===null)return;if(z=k.tag,z===5||z===6||z===26||z===27){h=b=k;continue e}O=O.parentNode}}h=h.return}P_(function(){var Q=b,le=up(c),de=[];e:{var ne=uE.get(i);if(ne!==void 0){var re=ku,Le=i;switch(i){case"keypress":if(Cu(c)===0)break e;case"keydown":case"keyup":re=IL;break;case"focusin":Le="focus",re=gp;break;case"focusout":Le="blur",re=gp;break;case"beforeblur":case"afterblur":re=gp;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":re=B_;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":re=_L;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":re=LL;break;case oE:case sE:case lE:re=xL;break;case cE:re=ML;break;case"scroll":case"scrollend":re=vL;break;case"wheel":re=BL;break;case"copy":case"cut":case"paste":re=wL;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":re=U_;break;case"toggle":case"beforetoggle":re=UL}var Ie=(o&4)!==0,ft=!Ie&&(i==="scroll"||i==="scrollend"),K=Ie?ne!==null?ne+"Capture":null:ne;Ie=[];for(var U=Q,Y;U!==null;){var ue=U;if(Y=ue.stateNode,ue=ue.tag,ue!==5&&ue!==26&&ue!==27||Y===null||K===null||(ue=nl(U,K),ue!=null&&Ie.push(zl(U,ue,Y))),ft)break;U=U.return}0<Ie.length&&(ne=new re(ne,Le,null,c,le),de.push({event:ne,listeners:Ie}))}}if((o&7)===0){e:{if(ne=i==="mouseover"||i==="pointerover",re=i==="mouseout"||i==="pointerout",ne&&c!==cp&&(Le=c.relatedTarget||c.fromElement)&&(_o(Le)||Le[bo]))break e;if((re||ne)&&(ne=le.window===le?le:(ne=le.ownerDocument)?ne.defaultView||ne.parentWindow:window,re?(Le=c.relatedTarget||c.toElement,re=Q,Le=Le?_o(Le):null,Le!==null&&(ft=s(Le),Ie=Le.tag,Le!==ft||Ie!==5&&Ie!==27&&Ie!==6)&&(Le=null)):(re=null,Le=Q),re!==Le)){if(Ie=B_,ue="onMouseLeave",K="onMouseEnter",U="mouse",(i==="pointerout"||i==="pointerover")&&(Ie=U_,ue="onPointerLeave",K="onPointerEnter",U="pointer"),ft=re==null?ne:tl(re),Y=Le==null?ne:tl(Le),ne=new Ie(ue,U+"leave",re,c,le),ne.target=ft,ne.relatedTarget=Y,ue=null,_o(le)===Q&&(Ie=new Ie(K,U+"enter",Le,c,le),Ie.target=Y,Ie.relatedTarget=ft,ue=Ie),ft=ue,re&&Le)t:{for(Ie=re,K=Le,U=0,Y=Ie;Y;Y=es(Y))U++;for(Y=0,ue=K;ue;ue=es(ue))Y++;for(;0<U-Y;)Ie=es(Ie),U--;for(;0<Y-U;)K=es(K),Y--;for(;U--;){if(Ie===K||K!==null&&Ie===K.alternate)break t;Ie=es(Ie),K=es(K)}Ie=null}else Ie=null;re!==null&&Nx(de,ne,re,Ie,!1),Le!==null&&ft!==null&&Nx(de,ft,Le,Ie,!0)}}e:{if(ne=Q?tl(Q):window,re=ne.nodeName&&ne.nodeName.toLowerCase(),re==="select"||re==="input"&&ne.type==="file")var Ae=Z_;else if(q_(ne))if(Y_)Ae=XL;else{Ae=ZL;var qe=WL}else re=ne.nodeName,!re||re.toLowerCase()!=="input"||ne.type!=="checkbox"&&ne.type!=="radio"?Q&&lp(Q.elementType)&&(Ae=Z_):Ae=YL;if(Ae&&(Ae=Ae(i,Q))){W_(de,Ae,c,le);break e}qe&&qe(i,ne,Q),i==="focusout"&&Q&&ne.type==="number"&&Q.memoizedProps.value!=null&&sp(ne,"number",ne.value)}switch(qe=Q?tl(Q):window,i){case"focusin":(q_(qe)||qe.contentEditable==="true")&&(No=qe,Sp=Q,ul=null);break;case"focusout":ul=Sp=No=null;break;case"mousedown":xp=!0;break;case"contextmenu":case"mouseup":case"dragend":xp=!1,iE(de,c,le);break;case"selectionchange":if(JL)break;case"keydown":case"keyup":iE(de,c,le)}var ke;if(vp)e:{switch(i){case"compositionstart":var De="onCompositionStart";break e;case"compositionend":De="onCompositionEnd";break e;case"compositionupdate":De="onCompositionUpdate";break e}De=void 0}else ko?G_(i,c)&&(De="onCompositionEnd"):i==="keydown"&&c.keyCode===229&&(De="onCompositionStart");De&&(F_&&c.locale!=="ko"&&(ko||De!=="onCompositionStart"?De==="onCompositionEnd"&&ko&&(ke=M_()):(Ri=le,hp="value"in Ri?Ri.value:Ri.textContent,ko=!0)),qe=gd(Q,De),0<qe.length&&(De=new V_(De,i,null,c,le),de.push({event:De,listeners:qe}),ke?De.data=ke:(ke=K_(c),ke!==null&&(De.data=ke)))),(ke=$L?HL(i,c):GL(i,c))&&(De=gd(Q,"onBeforeInput"),0<De.length&&(qe=new V_("onBeforeInput","beforeinput",null,c,le),de.push({event:qe,listeners:De}),qe.data=ke)),LP(de,i,Q,c,le)}Rx(de,o)})}function zl(i,o,c){return{instance:i,listener:o,currentTarget:c}}function gd(i,o){for(var c=o+"Capture",h=[];i!==null;){var m=i,b=m.stateNode;if(m=m.tag,m!==5&&m!==26&&m!==27||b===null||(m=nl(i,c),m!=null&&h.unshift(zl(i,m,b)),m=nl(i,o),m!=null&&h.push(zl(i,m,b))),i.tag===3)return h;i=i.return}return[]}function es(i){if(i===null)return null;do i=i.return;while(i&&i.tag!==5&&i.tag!==27);return i||null}function Nx(i,o,c,h,m){for(var b=o._reactName,k=[];c!==null&&c!==h;){var O=c,z=O.alternate,Q=O.stateNode;if(O=O.tag,z!==null&&z===h)break;O!==5&&O!==26&&O!==27||Q===null||(z=Q,m?(Q=nl(c,b),Q!=null&&k.unshift(zl(c,Q,z))):m||(Q=nl(c,b),Q!=null&&k.push(zl(c,Q,z)))),c=c.return}k.length!==0&&i.push({event:o,listeners:k})}var BP=/\r\n?/g,VP=/\u0000|\uFFFD/g;function Ox(i){return(typeof i=="string"?i:""+i).replace(BP,`
|
|
50
|
-
`).replace(VP,"")}function Ix(i,o){return o=Ox(o),Ox(i)===o}function yd(){}function dt(i,o,c,h,m,b){switch(c){case"children":typeof h=="string"?o==="body"||o==="textarea"&&h===""||To(i,h):(typeof h=="number"||typeof h=="bigint")&&o!=="body"&&To(i,""+h);break;case"className":Su(i,"class",h);break;case"tabIndex":Su(i,"tabindex",h);break;case"dir":case"role":case"viewBox":case"width":case"height":Su(i,c,h);break;case"style":j_(i,h,b);break;case"data":if(o!=="object"){Su(i,"data",h);break}case"src":case"href":if(h===""&&(o!=="a"||c!=="href")){i.removeAttribute(c);break}if(h==null||typeof h=="function"||typeof h=="symbol"||typeof h=="boolean"){i.removeAttribute(c);break}h=wu(""+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 b=="function"&&(c==="formAction"?(o!=="input"&&dt(i,o,"name",m.name,m,null),dt(i,o,"formEncType",m.formEncType,m,null),dt(i,o,"formMethod",m.formMethod,m,null),dt(i,o,"formTarget",m.formTarget,m,null)):(dt(i,o,"encType",m.encType,m,null),dt(i,o,"method",m.method,m,null),dt(i,o,"target",m.target,m,null)));if(h==null||typeof h=="symbol"||typeof h=="boolean"){i.removeAttribute(c);break}h=wu(""+h),i.setAttribute(c,h);break;case"onClick":h!=null&&(i.onclick=yd);break;case"onScroll":h!=null&&Ze("scroll",i);break;case"onScrollEnd":h!=null&&Ze("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(m.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=wu(""+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":Ze("beforetoggle",i),Ze("toggle",i),Eu(i,"popover",h);break;case"xlinkActuate":Yr(i,"http://www.w3.org/1999/xlink","xlink:actuate",h);break;case"xlinkArcrole":Yr(i,"http://www.w3.org/1999/xlink","xlink:arcrole",h);break;case"xlinkRole":Yr(i,"http://www.w3.org/1999/xlink","xlink:role",h);break;case"xlinkShow":Yr(i,"http://www.w3.org/1999/xlink","xlink:show",h);break;case"xlinkTitle":Yr(i,"http://www.w3.org/1999/xlink","xlink:title",h);break;case"xlinkType":Yr(i,"http://www.w3.org/1999/xlink","xlink:type",h);break;case"xmlBase":Yr(i,"http://www.w3.org/XML/1998/namespace","xml:base",h);break;case"xmlLang":Yr(i,"http://www.w3.org/XML/1998/namespace","xml:lang",h);break;case"xmlSpace":Yr(i,"http://www.w3.org/XML/1998/namespace","xml:space",h);break;case"is":Eu(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=gL.get(c)||c,Eu(i,c,h))}}function Km(i,o,c,h,m,b){switch(c){case"style":j_(i,h,b);break;case"dangerouslySetInnerHTML":if(h!=null){if(typeof h!="object"||!("__html"in h))throw Error(r(61));if(c=h.__html,c!=null){if(m.children!=null)throw Error(r(60));i.innerHTML=c}}break;case"children":typeof h=="string"?To(i,h):(typeof h=="number"||typeof h=="bigint")&&To(i,""+h);break;case"onScroll":h!=null&&Ze("scroll",i);break;case"onScrollEnd":h!=null&&Ze("scrollend",i);break;case"onClick":h!=null&&(i.onclick=yd);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!x_.hasOwnProperty(c))e:{if(c[0]==="o"&&c[1]==="n"&&(m=c.endsWith("Capture"),o=c.slice(2,m?c.length-7:void 0),b=i[wn]||null,b=b!=null?b[c]:null,typeof b=="function"&&i.removeEventListener(o,b,m),typeof h=="function")){typeof b!="function"&&b!==null&&(c in i?i[c]=null:i.hasAttribute(c)&&i.removeAttribute(c)),i.addEventListener(o,h,m);break e}c in i?i[c]=h:h===!0?i.setAttribute(c,""):Eu(i,c,h)}}}function an(i,o,c){switch(o){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Ze("error",i),Ze("load",i);var h=!1,m=!1,b;for(b in c)if(c.hasOwnProperty(b)){var k=c[b];if(k!=null)switch(b){case"src":h=!0;break;case"srcSet":m=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,o));default:dt(i,o,b,k,c,null)}}m&&dt(i,o,"srcSet",c.srcSet,c,null),h&&dt(i,o,"src",c.src,c,null);return;case"input":Ze("invalid",i);var O=b=k=m=null,z=null,Q=null;for(h in c)if(c.hasOwnProperty(h)){var le=c[h];if(le!=null)switch(h){case"name":m=le;break;case"type":k=le;break;case"checked":z=le;break;case"defaultChecked":Q=le;break;case"value":b=le;break;case"defaultValue":O=le;break;case"children":case"dangerouslySetInnerHTML":if(le!=null)throw Error(r(137,o));break;default:dt(i,o,h,le,c,null)}}N_(i,b,O,z,Q,k,m,!1),xu(i);return;case"select":Ze("invalid",i),h=k=b=null;for(m in c)if(c.hasOwnProperty(m)&&(O=c[m],O!=null))switch(m){case"value":b=O;break;case"defaultValue":k=O;break;case"multiple":h=O;default:dt(i,o,m,O,c,null)}o=b,c=k,i.multiple=!!h,o!=null?wo(i,!!h,o,!1):c!=null&&wo(i,!!h,c,!0);return;case"textarea":Ze("invalid",i),b=m=h=null;for(k in c)if(c.hasOwnProperty(k)&&(O=c[k],O!=null))switch(k){case"value":h=O;break;case"defaultValue":m=O;break;case"children":b=O;break;case"dangerouslySetInnerHTML":if(O!=null)throw Error(r(91));break;default:dt(i,o,k,O,c,null)}I_(i,h,m,b),xu(i);return;case"option":for(z in c)if(c.hasOwnProperty(z)&&(h=c[z],h!=null))switch(z){case"selected":i.selected=h&&typeof h!="function"&&typeof h!="symbol";break;default:dt(i,o,z,h,c,null)}return;case"dialog":Ze("beforetoggle",i),Ze("toggle",i),Ze("cancel",i),Ze("close",i);break;case"iframe":case"object":Ze("load",i);break;case"video":case"audio":for(h=0;h<Ml.length;h++)Ze(Ml[h],i);break;case"image":Ze("error",i),Ze("load",i);break;case"details":Ze("toggle",i);break;case"embed":case"source":case"link":Ze("error",i),Ze("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(Q in c)if(c.hasOwnProperty(Q)&&(h=c[Q],h!=null))switch(Q){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,o));default:dt(i,o,Q,h,c,null)}return;default:if(lp(o)){for(le in c)c.hasOwnProperty(le)&&(h=c[le],h!==void 0&&Km(i,o,le,h,c,void 0));return}}for(O in c)c.hasOwnProperty(O)&&(h=c[O],h!=null&&dt(i,o,O,h,c,null))}function UP(i,o,c,h){switch(o){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var m=null,b=null,k=null,O=null,z=null,Q=null,le=null;for(re in c){var de=c[re];if(c.hasOwnProperty(re)&&de!=null)switch(re){case"checked":break;case"value":break;case"defaultValue":z=de;default:h.hasOwnProperty(re)||dt(i,o,re,null,h,de)}}for(var ne in h){var re=h[ne];if(de=c[ne],h.hasOwnProperty(ne)&&(re!=null||de!=null))switch(ne){case"type":b=re;break;case"name":m=re;break;case"checked":Q=re;break;case"defaultChecked":le=re;break;case"value":k=re;break;case"defaultValue":O=re;break;case"children":case"dangerouslySetInnerHTML":if(re!=null)throw Error(r(137,o));break;default:re!==de&&dt(i,o,ne,re,h,de)}}op(i,k,O,z,Q,le,b,m);return;case"select":re=k=O=ne=null;for(b in c)if(z=c[b],c.hasOwnProperty(b)&&z!=null)switch(b){case"value":break;case"multiple":re=z;default:h.hasOwnProperty(b)||dt(i,o,b,null,h,z)}for(m in h)if(b=h[m],z=c[m],h.hasOwnProperty(m)&&(b!=null||z!=null))switch(m){case"value":ne=b;break;case"defaultValue":O=b;break;case"multiple":k=b;default:b!==z&&dt(i,o,m,b,h,z)}o=O,c=k,h=re,ne!=null?wo(i,!!c,ne,!1):!!h!=!!c&&(o!=null?wo(i,!!c,o,!0):wo(i,!!c,c?[]:"",!1));return;case"textarea":re=ne=null;for(O in c)if(m=c[O],c.hasOwnProperty(O)&&m!=null&&!h.hasOwnProperty(O))switch(O){case"value":break;case"children":break;default:dt(i,o,O,null,h,m)}for(k in h)if(m=h[k],b=c[k],h.hasOwnProperty(k)&&(m!=null||b!=null))switch(k){case"value":ne=m;break;case"defaultValue":re=m;break;case"children":break;case"dangerouslySetInnerHTML":if(m!=null)throw Error(r(91));break;default:m!==b&&dt(i,o,k,m,h,b)}O_(i,ne,re);return;case"option":for(var Le in c)if(ne=c[Le],c.hasOwnProperty(Le)&&ne!=null&&!h.hasOwnProperty(Le))switch(Le){case"selected":i.selected=!1;break;default:dt(i,o,Le,null,h,ne)}for(z in h)if(ne=h[z],re=c[z],h.hasOwnProperty(z)&&ne!==re&&(ne!=null||re!=null))switch(z){case"selected":i.selected=ne&&typeof ne!="function"&&typeof ne!="symbol";break;default:dt(i,o,z,ne,h,re)}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 Ie in c)ne=c[Ie],c.hasOwnProperty(Ie)&&ne!=null&&!h.hasOwnProperty(Ie)&&dt(i,o,Ie,null,h,ne);for(Q in h)if(ne=h[Q],re=c[Q],h.hasOwnProperty(Q)&&ne!==re&&(ne!=null||re!=null))switch(Q){case"children":case"dangerouslySetInnerHTML":if(ne!=null)throw Error(r(137,o));break;default:dt(i,o,Q,ne,h,re)}return;default:if(lp(o)){for(var ft in c)ne=c[ft],c.hasOwnProperty(ft)&&ne!==void 0&&!h.hasOwnProperty(ft)&&Km(i,o,ft,void 0,h,ne);for(le in h)ne=h[le],re=c[le],!h.hasOwnProperty(le)||ne===re||ne===void 0&&re===void 0||Km(i,o,le,ne,h,re);return}}for(var K in c)ne=c[K],c.hasOwnProperty(K)&&ne!=null&&!h.hasOwnProperty(K)&&dt(i,o,K,null,h,ne);for(de in h)ne=h[de],re=c[de],!h.hasOwnProperty(de)||ne===re||ne==null&&re==null||dt(i,o,de,ne,h,re)}var qm=null,Wm=null;function vd(i){return i.nodeType===9?i:i.ownerDocument}function Dx(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 jx(i,o){if(i===0)switch(o){case"svg":return 1;case"math":return 2;default:return 0}return i===1&&o==="foreignObject"?0:i}function Zm(i,o){return i==="textarea"||i==="noscript"||typeof o.children=="string"||typeof o.children=="number"||typeof o.children=="bigint"||typeof o.dangerouslySetInnerHTML=="object"&&o.dangerouslySetInnerHTML!==null&&o.dangerouslySetInnerHTML.__html!=null}var Ym=null;function FP(){var i=window.event;return i&&i.type==="popstate"?i===Ym?!1:(Ym=i,!0):(Ym=null,!1)}var Lx=typeof setTimeout=="function"?setTimeout:void 0,$P=typeof clearTimeout=="function"?clearTimeout:void 0,Px=typeof Promise=="function"?Promise:void 0,HP=typeof queueMicrotask=="function"?queueMicrotask:typeof Px<"u"?function(i){return Px.resolve(null).then(i).catch(GP)}:Lx;function GP(i){setTimeout(function(){throw i})}function Hi(i){return i==="head"}function Mx(i,o){var c=o,h=0,m=0;do{var b=c.nextSibling;if(i.removeChild(c),b&&b.nodeType===8)if(c=b.data,c==="/$"){if(0<h&&8>h){c=h;var k=i.ownerDocument;if(c&1&&Bl(k.documentElement),c&2&&Bl(k.body),c&4)for(c=k.head,Bl(c),k=c.firstChild;k;){var O=k.nextSibling,z=k.nodeName;k[el]||z==="SCRIPT"||z==="STYLE"||z==="LINK"&&k.rel.toLowerCase()==="stylesheet"||c.removeChild(k),k=O}}if(m===0){i.removeChild(b),ql(o);return}m--}else c==="$"||c==="$?"||c==="$!"?m++:h=c.charCodeAt(0)-48;else h=0;c=b}while(c);ql(o)}function Xm(i){var o=i.firstChild;for(o&&o.nodeType===10&&(o=o.nextSibling);o;){var c=o;switch(o=o.nextSibling,c.nodeName){case"HTML":case"HEAD":case"BODY":Xm(c),np(c);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(c.rel.toLowerCase()==="stylesheet")continue}i.removeChild(c)}}function KP(i,o,c,h){for(;i.nodeType===1;){var m=c;if(i.nodeName.toLowerCase()!==o.toLowerCase()){if(!h&&(i.nodeName!=="INPUT"||i.type!=="hidden"))break}else if(h){if(!i[el])switch(o){case"meta":if(!i.hasAttribute("itemprop"))break;return i;case"link":if(b=i.getAttribute("rel"),b==="stylesheet"&&i.hasAttribute("data-precedence"))break;if(b!==m.rel||i.getAttribute("href")!==(m.href==null||m.href===""?null:m.href)||i.getAttribute("crossorigin")!==(m.crossOrigin==null?null:m.crossOrigin)||i.getAttribute("title")!==(m.title==null?null:m.title))break;return i;case"style":if(i.hasAttribute("data-precedence"))break;return i;case"script":if(b=i.getAttribute("src"),(b!==(m.src==null?null:m.src)||i.getAttribute("type")!==(m.type==null?null:m.type)||i.getAttribute("crossorigin")!==(m.crossOrigin==null?null:m.crossOrigin))&&b&&i.hasAttribute("async")&&!i.hasAttribute("itemprop"))break;return i;default:return i}}else if(o==="input"&&i.type==="hidden"){var b=m.name==null?null:""+m.name;if(m.type==="hidden"&&i.getAttribute("name")===b)return i}else return i;if(i=mr(i.nextSibling),i===null)break}return null}function qP(i,o,c){if(o==="")return null;for(;i.nodeType!==3;)if((i.nodeType!==1||i.nodeName!=="INPUT"||i.type!=="hidden")&&!c||(i=mr(i.nextSibling),i===null))return null;return i}function Qm(i){return i.data==="$!"||i.data==="$?"&&i.ownerDocument.readyState==="complete"}function WP(i,o){var c=i.ownerDocument;if(i.data!=="$?"||c.readyState==="complete")o();else{var h=function(){o(),c.removeEventListener("DOMContentLoaded",h)};c.addEventListener("DOMContentLoaded",h),i._reactRetry=h}}function mr(i){for(;i!=null;i=i.nextSibling){var o=i.nodeType;if(o===1||o===3)break;if(o===8){if(o=i.data,o==="$"||o==="$!"||o==="$?"||o==="F!"||o==="F")break;if(o==="/$")return null}}return i}var Jm=null;function zx(i){i=i.previousSibling;for(var o=0;i;){if(i.nodeType===8){var c=i.data;if(c==="$"||c==="$!"||c==="$?"){if(o===0)return i;o--}else c==="/$"&&o++}i=i.previousSibling}return null}function Bx(i,o,c){switch(o=vd(c),i){case"html":if(i=o.documentElement,!i)throw Error(r(452));return i;case"head":if(i=o.head,!i)throw Error(r(453));return i;case"body":if(i=o.body,!i)throw Error(r(454));return i;default:throw Error(r(451))}}function Bl(i){for(var o=i.attributes;o.length;)i.removeAttributeNode(o[0]);np(i)}var rr=new Map,Vx=new Set;function bd(i){return typeof i.getRootNode=="function"?i.getRootNode():i.nodeType===9?i:i.ownerDocument}var ui=X.d;X.d={f:ZP,r:YP,D:XP,C:QP,L:JP,m:eM,X:nM,S:tM,M:rM};function ZP(){var i=ui.f(),o=ud();return i||o}function YP(i){var o=Eo(i);o!==null&&o.tag===5&&o.type==="form"?oS(o):ui.r(i)}var ts=typeof document>"u"?null:document;function Ux(i,o,c){var h=ts;if(h&&typeof o=="string"&&o){var m=Yn(o);m='link[rel="'+i+'"][href="'+m+'"]',typeof c=="string"&&(m+='[crossorigin="'+c+'"]'),Vx.has(m)||(Vx.add(m),i={rel:i,crossOrigin:c,href:o},h.querySelector(m)===null&&(o=h.createElement("link"),an(o,"link",i),Yt(o),h.head.appendChild(o)))}}function XP(i){ui.D(i),Ux("dns-prefetch",i,null)}function QP(i,o){ui.C(i,o),Ux("preconnect",i,o)}function JP(i,o,c){ui.L(i,o,c);var h=ts;if(h&&i&&o){var m='link[rel="preload"][as="'+Yn(o)+'"]';o==="image"&&c&&c.imageSrcSet?(m+='[imagesrcset="'+Yn(c.imageSrcSet)+'"]',typeof c.imageSizes=="string"&&(m+='[imagesizes="'+Yn(c.imageSizes)+'"]')):m+='[href="'+Yn(i)+'"]';var b=m;switch(o){case"style":b=ns(i);break;case"script":b=rs(i)}rr.has(b)||(i=p({rel:"preload",href:o==="image"&&c&&c.imageSrcSet?void 0:i,as:o},c),rr.set(b,i),h.querySelector(m)!==null||o==="style"&&h.querySelector(Vl(b))||o==="script"&&h.querySelector(Ul(b))||(o=h.createElement("link"),an(o,"link",i),Yt(o),h.head.appendChild(o)))}}function eM(i,o){ui.m(i,o);var c=ts;if(c&&i){var h=o&&typeof o.as=="string"?o.as:"script",m='link[rel="modulepreload"][as="'+Yn(h)+'"][href="'+Yn(i)+'"]',b=m;switch(h){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":b=rs(i)}if(!rr.has(b)&&(i=p({rel:"modulepreload",href:i},o),rr.set(b,i),c.querySelector(m)===null)){switch(h){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(c.querySelector(Ul(b)))return}h=c.createElement("link"),an(h,"link",i),Yt(h),c.head.appendChild(h)}}}function tM(i,o,c){ui.S(i,o,c);var h=ts;if(h&&i){var m=So(h).hoistableStyles,b=ns(i);o=o||"default";var k=m.get(b);if(!k){var O={loading:0,preload:null};if(k=h.querySelector(Vl(b)))O.loading=5;else{i=p({rel:"stylesheet",href:i,"data-precedence":o},c),(c=rr.get(b))&&eg(i,c);var z=k=h.createElement("link");Yt(z),an(z,"link",i),z._p=new Promise(function(Q,le){z.onload=Q,z.onerror=le}),z.addEventListener("load",function(){O.loading|=1}),z.addEventListener("error",function(){O.loading|=2}),O.loading|=4,_d(k,o,h)}k={type:"stylesheet",instance:k,count:1,state:O},m.set(b,k)}}}function nM(i,o){ui.X(i,o);var c=ts;if(c&&i){var h=So(c).hoistableScripts,m=rs(i),b=h.get(m);b||(b=c.querySelector(Ul(m)),b||(i=p({src:i,async:!0},o),(o=rr.get(m))&&tg(i,o),b=c.createElement("script"),Yt(b),an(b,"link",i),c.head.appendChild(b)),b={type:"script",instance:b,count:1,state:null},h.set(m,b))}}function rM(i,o){ui.M(i,o);var c=ts;if(c&&i){var h=So(c).hoistableScripts,m=rs(i),b=h.get(m);b||(b=c.querySelector(Ul(m)),b||(i=p({src:i,async:!0,type:"module"},o),(o=rr.get(m))&&tg(i,o),b=c.createElement("script"),Yt(b),an(b,"link",i),c.head.appendChild(b)),b={type:"script",instance:b,count:1,state:null},h.set(m,b))}}function Fx(i,o,c,h){var m=(m=ye.current)?bd(m):null;if(!m)throw Error(r(446));switch(i){case"meta":case"title":return null;case"style":return typeof c.precedence=="string"&&typeof c.href=="string"?(o=ns(c.href),c=So(m).hoistableStyles,h=c.get(o),h||(h={type:"style",instance:null,count:0,state:null},c.set(o,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=ns(c.href);var b=So(m).hoistableStyles,k=b.get(i);if(k||(m=m.ownerDocument||m,k={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},b.set(i,k),(b=m.querySelector(Vl(i)))&&!b._p&&(k.instance=b,k.state.loading=5),rr.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},rr.set(i,c),b||iM(m,i,c,k.state))),o&&h===null)throw Error(r(528,""));return k}if(o&&h!==null)throw Error(r(529,""));return null;case"script":return o=c.async,c=c.src,typeof c=="string"&&o&&typeof o!="function"&&typeof o!="symbol"?(o=rs(c),c=So(m).hoistableScripts,h=c.get(o),h||(h={type:"script",instance:null,count:0,state:null},c.set(o,h)),h):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,i))}}function ns(i){return'href="'+Yn(i)+'"'}function Vl(i){return'link[rel="stylesheet"]['+i+"]"}function $x(i){return p({},i,{"data-precedence":i.precedence,precedence:null})}function iM(i,o,c,h){i.querySelector('link[rel="preload"][as="style"]['+o+"]")?h.loading=1:(o=i.createElement("link"),h.preload=o,o.addEventListener("load",function(){return h.loading|=1}),o.addEventListener("error",function(){return h.loading|=2}),an(o,"link",c),Yt(o),i.head.appendChild(o))}function rs(i){return'[src="'+Yn(i)+'"]'}function Ul(i){return"script[async]"+i}function Hx(i,o,c){if(o.count++,o.instance===null)switch(o.type){case"style":var h=i.querySelector('style[data-href~="'+Yn(c.href)+'"]');if(h)return o.instance=h,Yt(h),h;var m=p({},c,{"data-href":c.href,"data-precedence":c.precedence,href:null,precedence:null});return h=(i.ownerDocument||i).createElement("style"),Yt(h),an(h,"style",m),_d(h,c.precedence,i),o.instance=h;case"stylesheet":m=ns(c.href);var b=i.querySelector(Vl(m));if(b)return o.state.loading|=4,o.instance=b,Yt(b),b;h=$x(c),(m=rr.get(m))&&eg(h,m),b=(i.ownerDocument||i).createElement("link"),Yt(b);var k=b;return k._p=new Promise(function(O,z){k.onload=O,k.onerror=z}),an(b,"link",h),o.state.loading|=4,_d(b,c.precedence,i),o.instance=b;case"script":return b=rs(c.src),(m=i.querySelector(Ul(b)))?(o.instance=m,Yt(m),m):(h=c,(m=rr.get(b))&&(h=p({},c),tg(h,m)),i=i.ownerDocument||i,m=i.createElement("script"),Yt(m),an(m,"link",h),i.head.appendChild(m),o.instance=m);case"void":return null;default:throw Error(r(443,o.type))}else o.type==="stylesheet"&&(o.state.loading&4)===0&&(h=o.instance,o.state.loading|=4,_d(h,c.precedence,i));return o.instance}function _d(i,o,c){for(var h=c.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),m=h.length?h[h.length-1]:null,b=m,k=0;k<h.length;k++){var O=h[k];if(O.dataset.precedence===o)b=O;else if(b!==m)break}b?b.parentNode.insertBefore(i,b.nextSibling):(o=c.nodeType===9?c.head:c,o.insertBefore(i,o.firstChild))}function eg(i,o){i.crossOrigin==null&&(i.crossOrigin=o.crossOrigin),i.referrerPolicy==null&&(i.referrerPolicy=o.referrerPolicy),i.title==null&&(i.title=o.title)}function tg(i,o){i.crossOrigin==null&&(i.crossOrigin=o.crossOrigin),i.referrerPolicy==null&&(i.referrerPolicy=o.referrerPolicy),i.integrity==null&&(i.integrity=o.integrity)}var Ed=null;function Gx(i,o,c){if(Ed===null){var h=new Map,m=Ed=new Map;m.set(c,h)}else m=Ed,h=m.get(c),h||(h=new Map,m.set(c,h));if(h.has(i))return h;for(h.set(i,null),c=c.getElementsByTagName(i),m=0;m<c.length;m++){var b=c[m];if(!(b[el]||b[dn]||i==="link"&&b.getAttribute("rel")==="stylesheet")&&b.namespaceURI!=="http://www.w3.org/2000/svg"){var k=b.getAttribute(o)||"";k=i+k;var O=h.get(k);O?O.push(b):h.set(k,[b])}}return h}function Kx(i,o,c){i=i.ownerDocument||i,i.head.insertBefore(c,o==="title"?i.querySelector("head > title"):null)}function aM(i,o,c){if(c===1||o.itemProp!=null)return!1;switch(i){case"meta":case"title":return!0;case"style":if(typeof o.precedence!="string"||typeof o.href!="string"||o.href==="")break;return!0;case"link":if(typeof o.rel!="string"||typeof o.href!="string"||o.href===""||o.onLoad||o.onError)break;switch(o.rel){case"stylesheet":return i=o.disabled,typeof o.precedence=="string"&&i==null;default:return!0}case"script":if(o.async&&typeof o.async!="function"&&typeof o.async!="symbol"&&!o.onLoad&&!o.onError&&o.src&&typeof o.src=="string")return!0}return!1}function qx(i){return!(i.type==="stylesheet"&&(i.state.loading&3)===0)}var Fl=null;function oM(){}function sM(i,o,c){if(Fl===null)throw Error(r(475));var h=Fl;if(o.type==="stylesheet"&&(typeof c.media!="string"||matchMedia(c.media).matches!==!1)&&(o.state.loading&4)===0){if(o.instance===null){var m=ns(c.href),b=i.querySelector(Vl(m));if(b){i=b._p,i!==null&&typeof i=="object"&&typeof i.then=="function"&&(h.count++,h=Sd.bind(h),i.then(h,h)),o.state.loading|=4,o.instance=b,Yt(b);return}b=i.ownerDocument||i,c=$x(c),(m=rr.get(m))&&eg(c,m),b=b.createElement("link"),Yt(b);var k=b;k._p=new Promise(function(O,z){k.onload=O,k.onerror=z}),an(b,"link",c),o.instance=b}h.stylesheets===null&&(h.stylesheets=new Map),h.stylesheets.set(o,i),(i=o.state.preload)&&(o.state.loading&3)===0&&(h.count++,o=Sd.bind(h),i.addEventListener("load",o),i.addEventListener("error",o))}}function lM(){if(Fl===null)throw Error(r(475));var i=Fl;return i.stylesheets&&i.count===0&&ng(i,i.stylesheets),0<i.count?function(o){var c=setTimeout(function(){if(i.stylesheets&&ng(i,i.stylesheets),i.unsuspend){var h=i.unsuspend;i.unsuspend=null,h()}},6e4);return i.unsuspend=o,function(){i.unsuspend=null,clearTimeout(c)}}:null}function Sd(){if(this.count--,this.count===0){if(this.stylesheets)ng(this,this.stylesheets);else if(this.unsuspend){var i=this.unsuspend;this.unsuspend=null,i()}}}var xd=null;function ng(i,o){i.stylesheets=null,i.unsuspend!==null&&(i.count++,xd=new Map,o.forEach(cM,i),xd=null,Sd.call(i))}function cM(i,o){if(!(o.state.loading&4)){var c=xd.get(i);if(c)var h=c.get(null);else{c=new Map,xd.set(i,c);for(var m=i.querySelectorAll("link[data-precedence],style[data-precedence]"),b=0;b<m.length;b++){var k=m[b];(k.nodeName==="LINK"||k.getAttribute("media")!=="not all")&&(c.set(k.dataset.precedence,k),h=k)}h&&c.set(null,h)}m=o.instance,k=m.getAttribute("data-precedence"),b=c.get(k)||h,b===h&&c.set(null,m),c.set(k,m),this.count++,h=Sd.bind(this),m.addEventListener("load",h),m.addEventListener("error",h),b?b.parentNode.insertBefore(m,b.nextSibling):(i=i.nodeType===9?i.head:i,i.insertBefore(m,i.firstChild)),o.state.loading|=4}}var $l={$$typeof:T,Provider:null,Consumer:null,_currentValue:G,_currentValue2:G,_threadCount:0};function uM(i,o,c,h,m,b,k,O){this.tag=1,this.containerInfo=i,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=Qh(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Qh(0),this.hiddenUpdates=Qh(null),this.identifierPrefix=h,this.onUncaughtError=m,this.onCaughtError=b,this.onRecoverableError=k,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=O,this.incompleteTransitions=new Map}function Wx(i,o,c,h,m,b,k,O,z,Q,le,de){return i=new uM(i,o,c,k,O,z,Q,de),o=1,b===!0&&(o|=24),b=jn(3,null,null,o),i.current=b,b.stateNode=i,o=Mp(),o.refCount++,i.pooledCache=o,o.refCount++,b.memoizedState={element:h,isDehydrated:c,cache:o},Up(b),i}function Zx(i){return i?(i=jo,i):jo}function Yx(i,o,c,h,m,b){m=Zx(m),h.context===null?h.context=m:h.pendingContext=m,h=Oi(o),h.payload={element:c},b=b===void 0?null:b,b!==null&&(h.callback=b),c=Ii(i,h,o),c!==null&&(Bn(c,i,o),bl(c,i,o))}function Xx(i,o){if(i=i.memoizedState,i!==null&&i.dehydrated!==null){var c=i.retryLane;i.retryLane=c!==0&&c<o?c:o}}function rg(i,o){Xx(i,o),(i=i.alternate)&&Xx(i,o)}function Qx(i){if(i.tag===13){var o=Do(i,67108864);o!==null&&Bn(o,i,67108864),rg(i,67108864)}}var Ad=!0;function dM(i,o,c,h){var m=M.T;M.T=null;var b=X.p;try{X.p=2,ig(i,o,c,h)}finally{X.p=b,M.T=m}}function fM(i,o,c,h){var m=M.T;M.T=null;var b=X.p;try{X.p=8,ig(i,o,c,h)}finally{X.p=b,M.T=m}}function ig(i,o,c,h){if(Ad){var m=ag(h);if(m===null)Gm(i,o,h,wd,c),eA(i,h);else if(pM(m,i,o,c,h))h.stopPropagation();else if(eA(i,h),o&4&&-1<hM.indexOf(i)){for(;m!==null;){var b=Eo(m);if(b!==null)switch(b.tag){case 3:if(b=b.stateNode,b.current.memoizedState.isDehydrated){var k=Zr(b.pendingLanes);if(k!==0){var O=b;for(O.pendingLanes|=2,O.entangledLanes|=2;k;){var z=1<<31-pt(k);O.entanglements[1]|=z,k&=~z}Ir(b),(st&6)===0&&(ld=un()+500,Pl(0))}}break;case 13:O=Do(b,2),O!==null&&Bn(O,b,2),ud(),rg(b,2)}if(b=ag(h),b===null&&Gm(i,o,h,wd,c),b===m)break;m=b}m!==null&&h.stopPropagation()}else Gm(i,o,h,null,c)}}function ag(i){return i=up(i),og(i)}var wd=null;function og(i){if(wd=null,i=_o(i),i!==null){var o=s(i);if(o===null)i=null;else{var c=o.tag;if(c===13){if(i=l(o),i!==null)return i;i=null}else if(c===3){if(o.stateNode.current.memoizedState.isDehydrated)return o.tag===3?o.stateNode.containerInfo:null;i=null}else o!==i&&(i=null)}}return wd=i,null}function Jx(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(m_()){case Qs:return 2;case V:return 8;case ee:case oe:return 32;case Se:return 268435456;default:return 32}default:return 32}}var sg=!1,Gi=null,Ki=null,qi=null,Hl=new Map,Gl=new Map,Wi=[],hM="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 eA(i,o){switch(i){case"focusin":case"focusout":Gi=null;break;case"dragenter":case"dragleave":Ki=null;break;case"mouseover":case"mouseout":qi=null;break;case"pointerover":case"pointerout":Hl.delete(o.pointerId);break;case"gotpointercapture":case"lostpointercapture":Gl.delete(o.pointerId)}}function Kl(i,o,c,h,m,b){return i===null||i.nativeEvent!==b?(i={blockedOn:o,domEventName:c,eventSystemFlags:h,nativeEvent:b,targetContainers:[m]},o!==null&&(o=Eo(o),o!==null&&Qx(o)),i):(i.eventSystemFlags|=h,o=i.targetContainers,m!==null&&o.indexOf(m)===-1&&o.push(m),i)}function pM(i,o,c,h,m){switch(o){case"focusin":return Gi=Kl(Gi,i,o,c,h,m),!0;case"dragenter":return Ki=Kl(Ki,i,o,c,h,m),!0;case"mouseover":return qi=Kl(qi,i,o,c,h,m),!0;case"pointerover":var b=m.pointerId;return Hl.set(b,Kl(Hl.get(b)||null,i,o,c,h,m)),!0;case"gotpointercapture":return b=m.pointerId,Gl.set(b,Kl(Gl.get(b)||null,i,o,c,h,m)),!0}return!1}function tA(i){var o=_o(i.target);if(o!==null){var c=s(o);if(c!==null){if(o=c.tag,o===13){if(o=l(c),o!==null){i.blockedOn=o,sL(i.priority,function(){if(c.tag===13){var h=zn();h=Jh(h);var m=Do(c,h);m!==null&&Bn(m,c,h),rg(c,h)}});return}}else if(o===3&&c.stateNode.current.memoizedState.isDehydrated){i.blockedOn=c.tag===3?c.stateNode.containerInfo:null;return}}}i.blockedOn=null}function Td(i){if(i.blockedOn!==null)return!1;for(var o=i.targetContainers;0<o.length;){var c=ag(i.nativeEvent);if(c===null){c=i.nativeEvent;var h=new c.constructor(c.type,c);cp=h,c.target.dispatchEvent(h),cp=null}else return o=Eo(c),o!==null&&Qx(o),i.blockedOn=c,!1;o.shift()}return!0}function nA(i,o,c){Td(i)&&c.delete(o)}function mM(){sg=!1,Gi!==null&&Td(Gi)&&(Gi=null),Ki!==null&&Td(Ki)&&(Ki=null),qi!==null&&Td(qi)&&(qi=null),Hl.forEach(nA),Gl.forEach(nA)}function Cd(i,o){i.blockedOn===o&&(i.blockedOn=null,sg||(sg=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,mM)))}var Rd=null;function rA(i){Rd!==i&&(Rd=i,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){Rd===i&&(Rd=null);for(var o=0;o<i.length;o+=3){var c=i[o],h=i[o+1],m=i[o+2];if(typeof h!="function"){if(og(h||c)===null)continue;break}var b=Eo(c);b!==null&&(i.splice(o,3),o-=3,om(b,{pending:!0,data:m,method:c.method,action:h},h,m))}}))}function ql(i){function o(z){return Cd(z,i)}Gi!==null&&Cd(Gi,i),Ki!==null&&Cd(Ki,i),qi!==null&&Cd(qi,i),Hl.forEach(o),Gl.forEach(o);for(var c=0;c<Wi.length;c++){var h=Wi[c];h.blockedOn===i&&(h.blockedOn=null)}for(;0<Wi.length&&(c=Wi[0],c.blockedOn===null);)tA(c),c.blockedOn===null&&Wi.shift();if(c=(i.ownerDocument||i).$$reactFormReplay,c!=null)for(h=0;h<c.length;h+=3){var m=c[h],b=c[h+1],k=m[wn]||null;if(typeof b=="function")k||rA(c);else if(k){var O=null;if(b&&b.hasAttribute("formAction")){if(m=b,k=b[wn]||null)O=k.formAction;else if(og(m)!==null)continue}else O=k.action;typeof O=="function"?c[h+1]=O:(c.splice(h,3),h-=3),rA(c)}}}function lg(i){this._internalRoot=i}kd.prototype.render=lg.prototype.render=function(i){var o=this._internalRoot;if(o===null)throw Error(r(409));var c=o.current,h=zn();Yx(c,h,i,o,null,null)},kd.prototype.unmount=lg.prototype.unmount=function(){var i=this._internalRoot;if(i!==null){this._internalRoot=null;var o=i.containerInfo;Yx(i.current,2,null,i,null,null),ud(),o[bo]=null}};function kd(i){this._internalRoot=i}kd.prototype.unstable_scheduleHydration=function(i){if(i){var o=__();i={blockedOn:null,target:i,priority:o};for(var c=0;c<Wi.length&&o!==0&&o<Wi[c].priority;c++);Wi.splice(c,0,i),c===0&&tA(i)}};var iA=t.version;if(iA!=="19.1.1")throw Error(r(527,iA,"19.1.1"));X.findDOMNode=function(i){var o=i._reactInternals;if(o===void 0)throw typeof i.render=="function"?Error(r(188)):(i=Object.keys(i).join(","),Error(r(268,i)));return i=d(o),i=i!==null?f(i):null,i=i===null?null:i.stateNode,i};var gM={bundleType:0,version:"19.1.1",rendererPackageName:"react-dom",currentDispatcherRef:M,reconcilerVersion:"19.1.1"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Nd=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Nd.isDisabled&&Nd.supportsFiber)try{Ce=Nd.inject(gM),Ve=Nd}catch{}}return Zl.createRoot=function(i,o){if(!a(i))throw Error(r(299));var c=!1,h="",m=_S,b=ES,k=SS,O=null;return o!=null&&(o.unstable_strictMode===!0&&(c=!0),o.identifierPrefix!==void 0&&(h=o.identifierPrefix),o.onUncaughtError!==void 0&&(m=o.onUncaughtError),o.onCaughtError!==void 0&&(b=o.onCaughtError),o.onRecoverableError!==void 0&&(k=o.onRecoverableError),o.unstable_transitionCallbacks!==void 0&&(O=o.unstable_transitionCallbacks)),o=Wx(i,1,!1,null,null,c,h,m,b,k,O,null),i[bo]=o.current,Hm(i),new lg(o)},Zl.hydrateRoot=function(i,o,c){if(!a(i))throw Error(r(299));var h=!1,m="",b=_S,k=ES,O=SS,z=null,Q=null;return c!=null&&(c.unstable_strictMode===!0&&(h=!0),c.identifierPrefix!==void 0&&(m=c.identifierPrefix),c.onUncaughtError!==void 0&&(b=c.onUncaughtError),c.onCaughtError!==void 0&&(k=c.onCaughtError),c.onRecoverableError!==void 0&&(O=c.onRecoverableError),c.unstable_transitionCallbacks!==void 0&&(z=c.unstable_transitionCallbacks),c.formState!==void 0&&(Q=c.formState)),o=Wx(i,1,!0,o,c??null,h,m,b,k,O,z,Q),o.context=Zx(null),c=o.current,h=zn(),h=Jh(h),m=Oi(h),m.callback=null,Ii(c,m,h),c=h,o.current.lanes=c,Js(o,c),Ir(o),i[bo]=o.current,Hm(i),new kd(o)},Zl.version="19.1.1",Zl}var pA;function TM(){if(pA)return dg.exports;pA=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(),dg.exports=wM(),dg.exports}var CM=TM();const RM={locales:["en","en-GB","fr","es","de","ja","ko","zh","it","pt","hi","ar","ru"],defaultLocale:"en"},kM={cookieName:"INTLAYER_LOCALE",prefixDefault:!1},NM={applicationURL:"",editorURL:"http://localhost:8000",cmsURL:"https://intlayer.org",backendURL:"https://back.intlayer.org",port:8e3,enabled:!0,dictionaryPriorityStrategy:"local_first",liveSync:!0,liveSyncPort:4e3,liveSyncURL:"http://localhost:4000"},rt={internationalization:RM,middleware:kM,editor:NM};var B=(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.BENGALI="bn",e.BENGALI_BANGLADESH="bn-BD",e.BENGALI_INDIA="bn-IN",e.BENGALI_MYANMAR="bn-MM",e.BURMESE="my",e.BURMESE_MYANMAR="my-MM",e.KHMER="km",e.KHMER_CAMBODIA="km-KH",e.LAO="lo",e.LAO_LAOS="lo-LA",e.YORUBA="yo",e.YORUBA_NIGERIA="yo-NG",e.AMHARIC="am",e.AMHARIC_ETHIOPIA="am-ET",e.NEPALI="ne",e.NEPALI_NEPAL="ne-NP",e.SINHALA="si",e.SINHALA_SRI_LANKA="si-LK",e.SERBIAN_CYRILLIC="sr-Cyrl",e.SERBIAN_CYRILLIC_SERBIA="sr-RS",e.SERBIAN_CYRILLIC_BOSNIA_AND_HERZEGOVINA="sr-BA",e.ENGLISH_INDIA="en-IN",e.ENGLISH_SINGAPORE="en-SG",e.ENGLISH_HONG_KONG="en-HK",e.ENGLISH_NIGERIA="en-NG",e.ENGLISH_PAKISTAN="en-PK",e.ENGLISH_MALAYSIA="en-MY",e.ENGLISH_BOTSWANA="en-BW",e.ENGLISH_KENYA="en-KE",e.ENGLISH_TANZANIA="en-TZ",e.ENGLISH_GHANA="en-GH",e.ENGLISH_UGANDA="en-UG",e.SPANISH_CUBA="es-CU",e.SPANISH_UNITED_STATES="es-US",e.PORTUGUESE_GUINEA_BISSAU="pt-GW",e.PORTUGUESE_MOZAMBIQUE="pt-MZ",e.PORTUGUESE_SAO_TOME_AND_PRINCIPE="pt-ST",e.PORTUGUESE_CAPE_VERDE="pt-CV",e.PORTUGUESE_TIMOR_LESTE="pt-TL",e.PORTUGUESE_MACAU="pt-MO",e.CHINESE_TAIWAN="zh-TW",e.ARABIC_MAURITANIA="ar-MR",e.ARABIC_PALESTINE="ar-PS",e.ARABIC_SUDAN="ar-SD",e.ARABIC_DJIBOUTI="ar-DJ",e.ARABIC_SOMALIA="ar-SO",e.ARABIC_CHAD="ar-TD",e.ARABIC_COMOROS="ar-KM",e))(B||{}),$=(e=>(e.Translation="translation",e.Enumeration="enumeration",e.Condition="condition",e.Insertion="insertion",e.File="file",e.Object="object",e.Array="array",e.Nested="nested",e.ReactNode="reactNode",e.Markdown="markdown",e.Text="text",e.Number="number",e.Boolean="boolean",e.Gender="gender",e.Unknown="unknown",e))($||{});const lf=(e,t)=>{for(const r of t.plugins??[])if(r.canHandle(e))return r.transform(e,t,(a,s)=>lf(a,s));if(e===null||typeof e!="object")return e;if(Array.isArray(e))return e.map((r,a)=>{const s={...t,children:r,keyPath:[...t.keyPath,{type:$.Array,key:a}]};return lf(r,s)});const n={};for(const r in e){const a={...t,children:e[r],keyPath:[...t.keyPath,{type:$.Object,key:r}]};n[r]=lf(e[r],a)}return n},OM=(e,t)=>{const n=Object.keys(e),r=n[n.length-1];return e[`${t}`]??e.fallback??e[r]},IM=(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,s=r.startsWith(">")&&t>parseFloat(r.slice(1)),l=r.startsWith(">=")&&t>=parseFloat(r.slice(2)),u=r.startsWith("<")&&t<parseFloat(r.slice(1)),d=r.startsWith("<=")&&t<=parseFloat(r.slice(2));if(a||s||l||u||d)return r}},DM=(e,t)=>{const n=IM(e,t)??"fallback";return e[n]},jM=(e,t)=>e.replace(/\{\{(.*?)\}\}/g,(n,r)=>(t[r]??"").toString()),LM="breadcrumb",PM={linkLabel:{nodeType:"translation",translation:{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:"Перейти на",tr:"Git"}}},MM=["breadcrumb::local::../@intlayer/design-system/src/components/Breadcrumb/breadcrumb.content.ts"],zM={key:LM,content:PM,localIds:MM},BM="code",VM={title:{nodeType:"translation",translation:{en:"Copy code",es:"Copiar código",pt:"Copiar código",fr:"Copier le code",de:"Code kopieren",it:"Copiare il codice",ja:"コードをコピー",ko:"코드 복사",zh:"复制代码",hi:"कोड कॉपी करें","en-GB":"Copy code",ru:"Копировать код",ar:"نسخ الكود",tr:"Kodu kopyala"}},description:{nodeType:"translation",translation:{en:"Copy the code to the clipboard",es:"Copiar el código al portapapeles",pt:"Copiar o código para a área de transferência",fr:"Copier le code dans le presse-papiers",de:"Kopieren Sie den Code in die Zwischenablage",it:"Copiare il codice nella clipboard",ja:"コードをクリップボードにコピー",ko:"코드를 클립보드에 복사",zh:"复制代码到剪贴板",hi:"कोड को क्लिपबोर्ड पर कॉपी करें","en-GB":"Copy the code to the clipboard",ru:"Копировать код в буфер обмена",ar:"نسخ الكود إلى الحافظة",tr:"Kodu panoya kopyala"}}},UM=["code::local::../@intlayer/design-system/src/components/IDE/code.content.ts","code::local::../@intlayer/design-system/src/components/IDE/copyCode.content.ts"],FM={key:BM,content:VM,localIds:UM},$M="copy-button",HM={label:{nodeType:"translation",translation:{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:"Копировать содержимое",tr:"İçeriği kopyala"}}},GM=["copy-button::local::../@intlayer/design-system/src/components/CopyButton/CopyButton.content.ts"],KM={key:$M,content:HM,localIds:GM},qM="dictionary-detail-schema",WM={titleRequiredError:{nodeType:"translation",translation:{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:"Пожалуйста, введите название вашей организации.",tr:"Lütfen organizasyonunuz için bir isim girin."}},titleInvalidTypeError:{nodeType:"translation",translation:{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:"Имя организации должно быть правильной строкой.",tr:"Organizasyon adı geçerli bir dize olmalıdır."}},titleMinLengthError:{nodeType:"translation",translation:{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 символов.",tr:"Organizasyon adı en az 4 karakter uzunluğunda olmalıdır."}},keyRequiredError:{nodeType:"translation",translation:{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:"Пожалуйста, введите ключ для вашей организации.",tr:"Lütfen organizasyonunuz için bir anahtar girin."}},keyInvalidTypeError:{nodeType:"translation",translation:{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:"Ключ должен быть правильной строкой.",tr:"Anahtar geçerli bir dize olmalıdır."}},keySpaceError:{nodeType:"translation",translation:{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:"Ключ не может содержать пробелы или специальные символы.",tr:"Anahtar boşluk veya özel karakterler içeremez."}},keyMinLengthError:{nodeType:"translation",translation:{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 символов.",tr:"Anahtar en az 4 karakter uzunluğunda olmalıdır."}},descriptionRequiredError:{nodeType:"translation",translation:{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:"Пожалуйста, введите описание вашей организации.",tr:"Lütfen organizasyonunuz için bir açıklama girin."}},descriptionInvalidTypeError:{nodeType:"translation",translation:{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:"Описание должно быть правильной строкой.",tr:"Açıklama geçerli bir dize olmalıdır."}},requiredErrorProjectId:{nodeType:"translation",translation:{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:"Пожалуйста, выберите проект",tr:"Lütfen bir proje seçin"}},invalidTypeErrorProjectId:{nodeType:"translation",translation:{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:"Пожалуйста, выберите действительный проект",tr:"Lütfen geçerli bir proje seçin"}},invalidTypeErrorTags:{nodeType:"translation",translation:{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:"Пожалуйста, введите действительный тег",tr:"Lütfen geçerli bir etiket girin"}}},ZM=["dictionary-detail-schema::local::../@intlayer/design-system/src/components/DictionaryFieldEditor/DictionaryDetails/useDictionaryDetailsSchema.content.ts"],YM={key:qM,content:WM,localIds:ZM},XM="dictionary-details",QM=JSON.parse(`{"titleInput":{"label":{"nodeType":"translation","translation":{"en":"Title","en-GB":"Title","fr":"Titre","es":"Título","de":"Titel","ja":"タイトル","ko":"제목","zh":"标题","it":"Titolo","pt":"Título","hi":"शीर्षक","ar":"العنوان","ru":"Заголовок","tr":"Başlık"}},"description":{"nodeType":"translation","translation":{"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":"Название вашего словаря позволяет легко его идентифицировать","tr":"Sözlüğünüzün başlığı, onu kolayca tanımlamanızı sağlar"}},"placeholder":{"nodeType":"translation","translation":{"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":"Введите название вашего словаря","tr":"Sözlüğünüzün başlığını girin"}}},"keyInput":{"label":{"nodeType":"translation","translation":{"en":"Key","en-GB":"Key","fr":"Clé","es":"Clave","de":"Schlüssel","ja":"キー","ko":"키","zh":"键","it":"Chiave","pt":"Chave","hi":"कुंजी","ar":"مفتاح","ru":"Ключ","tr":"Anahtar"}},"description":{"nodeType":"translation","translation":{"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":"Ключ вашего словаря используется для его идентификации в приложении","tr":"Sözlüğünüzün anahtarı, uygulamada onu tanımlamak için kullanılır"}},"placeholder":{"nodeType":"translation","translation":{"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":"Введите ключ вашего словаря","tr":"Sözlüğünüzün anahtarını girin"}}},"descriptionInput":{"label":{"nodeType":"translation","translation":{"en":"Description","en-GB":"Description","fr":"Description","es":"Descripción","de":"Beschreibung","ja":"説明","ko":"설명","zh":"描述","it":"Descrizione","pt":"Descrição","hi":"विवरण","ar":"الوصف","ru":"Описание","tr":"Açıklama"}},"placeholder":{"nodeType":"translation","translation":{"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":"Введите описание вашего словаря","tr":"Sözlüğünüzün açıklamasını girin"}},"description":{"nodeType":"translation","translation":{"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":"Описание вашего словаря позволяет легко его идентифицировать с помощью ключевых слов. Оно также используется для поиска вашего словаря и для помощи ИИ в понимании вашего словаря.","tr":"Sözlüğünüzün açıklaması, anahtar kelimeleri kullanarak onu kolayca tanımlamanızı sağlar. Ayrıca sözlüğünüzü aramak ve AI'nın sözlüğünüzü anlamasına yardımcı olmak için de kullanılır."}}},"projectInput":{"label":{"nodeType":"translation","translation":{"en":"Projects","en-GB":"Projects","fr":"Projets","es":"Proyectos","de":"Projekte","ja":"プロジェクト","ko":"프로젝트","zh":"项目","it":"Progetti","pt":"Projetos","hi":"परियोजनाएँ","ar":"المشاريع","ru":"Проекты","tr":"Projeler"}},"description":{"nodeType":"translation","translation":{"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":"Словарь можно ассоциировать с одним или несколькими проектами. Это позволяет загружать словарь в различных приложениях и делиться им между разными командами.","tr":"Sözlük, bir veya daha fazla projeyle ilişkilendirilebilir. Bu, sözlüğü farklı uygulamalarda yüklemenize ve farklı ekipler arasında paylaşmanıza olanak tanır."}},"placeholder":{"nodeType":"translation","translation":{"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":"Выберите один или несколько проектов, чтобы связать их с вашим словарем","tr":"Sözlüğünüzle ilişkilendirmek için bir veya daha fazla proje seçin"}}},"tagsSelect":{"label":{"nodeType":"translation","translation":{"en":"Tags","en-GB":"Tags","fr":"Tags","es":"Etiquetas","de":"Tags","ja":"タグ","ko":"태그","zh":"标签","it":"Tag","pt":"Tags","hi":"टैग","ar":"الوسوم","ru":"Теги","tr":"Etiketler"}},"description":{"nodeType":"translation","translation":{"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.","hi":"एक शब्दकोश को एक या अधिक टैग से जोड़ा जा सकता है। यह आपको विभिन्न अनुप्रयोगों में शब्दकोश लोड करने और विभिन्न टीमों के बीच साझा करने की अनुमति देता है।","ar":"يمكن ربط قاموس بواحد أو أكثر من الوسوم. يتيح لك تحميل القاموس في تطبيقات مختلفة ومشاركته بين فرق مختلفة.","ru":"Словарь можно связать с одним или несколькими тегами. Это позволяет загружать словарь в различных приложениях и делиться им между различными командами.","tr":"Sözlük, bir veya daha fazla etiketle ilişkilendirilebilir. Bu, sözlüğü farklı uygulamalarda yüklemenize ve farklı ekipler arasında paylaşmanıza olanak tanır."}},"placeholder":{"nodeType":"translation","translation":{"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":"Выберите теги, которые нужно связать с словарем","tr":"Sözlüğünüzle ilişkilendirmek için etiketleri seçin"}}},"auditButton":{"label":{"nodeType":"translation","translation":{"en":"Audit","fr":"Auditer","es":"Auditar","en-GB":"Audit","de":"Prüfen","ja":"監査","ko":"감사","zh":"审核","it":"Controllare","pt":"Auditar","hi":"ऑडिट","ar":"التدقيق","ru":"Отслеживание","tr":"Denetle"}},"text":{"nodeType":"translation","translation":{"en":"Audit","fr":"Auditer","es":"Auditar","en-GB":"Audit","de":"Prüfen","ja":"監査","ko":"감사","zh":"审核","it":"Controllare","pt":"Auditar","hi":"ऑडिट","ar":"التدقيق","ru":"Отслеживание","tr":"Denetle"}}}}`),JM=["dictionary-details::local::../@intlayer/design-system/src/components/DictionaryFieldEditor/DictionaryDetails/dictionaryDetails.content.tsx"],ez={key:XM,content:QM,localIds:JM},tz="dictionary-edition-drawer",nz={openDictionaryEditor:{label:{nodeType:"translation",translation:{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:{nodeType:"translation",translation:{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:{nodeType:"translation",translation:{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:{nodeType:"translation",translation:{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"}},focusedDictionaryNotFound:{nodeType:"translation",translation:{en:"Focused dictionary not found",fr:"Dictionnaire focalisé non trouvé",es:"Diccionario enfocado no encontrado",de:"Ausgewähltes Wörterbuch nicht gefunden",ja:"フォーカスされた辞書が見つかりません",ko:"포커스가 있는 사전이 없습니다",zh:"没有聚焦的词典",it:"Nessun dizionario selezionato",pt:"Nenhum dicionário focalizado",hi:"कोई फोकस शब्दकोश नहीं है",ar:"لا يوجد قاموس مرتبط",ru:"Нет фокусированного словаря","en-GB":"Focused dictionary not found"}}},rz=["dictionary-edition-drawer::local::client/src/components/Editor/DictionaryEditionDrawer/dictionaryEditionDrawer.content.ts"],ab={key:tz,content:nz,localIds:rz},iz="dictionary-field-editor",az={returnToDictionaryList:{label:{nodeType:"translation",translation:{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:"辞書リストに戻る",it:"Torna alla lista dei dizionari",pt:"Retornar à lista de dicionários",hi:"शब्दकोश सूची पर वापस जाएं",ar:"العودة إلى قائمة القوامل",ko:"사전 목록으로 돌아가기",zh:"返回字典列表",ru:"Вернуться к списку словарей",tr:"Sözlük listesine dön"}},text:{nodeType:"translation",translation:{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:"Список словарей",tr:"Sözlük listesi"}}}},oz=["dictionary-field-editor::local::../@intlayer/design-system/src/components/DictionaryFieldEditor/dictionaryFieldEditor.content.ts"],sz={key:iz,content:az,localIds:oz},lz="dictionary-form-schema",cz={requiredErrorName:{nodeType:"translation",translation:{en:"Please enter a key for your dictionary","en-GB":"Please enter a key for your dictionary",fr:"Veuillez saisir une clef pour votre dictionaire",es:"Por favor, ingrese un clave para su diccionario",de:"Bitte geben Sie einen Schlüssel für Ihr Wörterbuch ein",ja:"辞書のキーを入力してください",ko:"사전 키를 입력해 주세요",zh:"请输入字典的键",it:"Si prega di inserire una chiave per il proprio dizionario",pt:"Por favor, insira uma chave para seu dicionário",hi:"कृपया अपने शब्दकोश के लिए एक कुंजी दर्ज करें",ar:"الرجاء إدخال مفتاح لقاموسك",ru:"Пожалуйста, введите ключ для вашего словаря",tr:"Lütfen sözlüğünüz için bir anahtar girin"}},invalidTypeErrorName:{nodeType:"translation",translation:{en:"Please enter a valid key for your dictionary","en-GB":"Please enter a valid key for your dictionary",fr:"Veuillez saisir une clée valide pour votre dictionaire",es:"Por favor, ingrese un clave válido para su diccionario",de:"Bitte geben Sie einen gültigen Schlüssel für Ihr Wörterbuch ein",ja:"辞書の有効なキーを入力してください",ko:"유효한 사전 키를 입력해 주세요",zh:"请输入字典的有效键",it:"Si prega di inserire una chiave valida per il proprio dizionario",pt:"Por favor, insira uma chave válida para seu dicionário",hi:"कृपया अपने शब्दकोश के लिए एक मान्य कुंजी दर्ज करें",ar:"الرجاء إدخال مفتاح صالح لقاموسك",ru:"Пожалуйста, введите действительный ключ для вашего словаря",tr:"Lütfen sözlüğünüz için geçerli bir anahtar girin"}},requiredErrorProjectId:{nodeType:"translation",translation:{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:"Пожалуйста, выберите проект",tr:"Lütfen bir proje seçin"}},invalidTypeErrorProjectId:{nodeType:"translation",translation:{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:"Пожалуйста, выберите действительный проект",tr:"Lütfen geçerli bir proje seçin"}}},uz=["dictionary-form-schema::local::../@intlayer/design-system/src/components/DictionaryFieldEditor/DictionaryCreationForm/useDictionaryFormSchema.content.ts"],dz={key:lz,content:cz,localIds:uz},fz="dictionary-form",hz={keyInput:{label:{nodeType:"translation",translation:{en:"Key","en-GB":"Key",fr:"Clé",es:"Clave",de:"Schlüssel",ja:"キー",ko:"키",zh:"键",it:"Chiave",pt:"Chave",hi:"की",ar:"مفتاح",ru:"Ключ",tr:"Anahtar"}},placeholder:{nodeType:"translation",translation:{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:"Введите ключ вашего словаря",tr:"Sözlüğünüzün anahtarını girin"}}},projectInput:{label:{nodeType:"translation",translation:{en:"Projects","en-GB":"Projects",fr:"Projets",es:"Proyectos",de:"Projekte",ja:"プロジェクト",ko:"프로젝트",zh:"项目",it:"Progetti",pt:"Projetos",hi:"प्रोजेक्ट",ar:"مشاريع",ru:"Проекты",tr:"Projeler"}},placeholder:{nodeType:"translation",translation:{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:"Выберите один или несколько проектов для связывания со словарем",tr:"Sözlüğünüzle ilişkilendirmek için bir veya daha fazla proje seçin"}}},noDictionaryView:{title:{nodeType:"translation",translation:{en:"No dictionary","en-GB":"No dictionary",fr:"Aucun dictionnaire",es:"Sin diccionario",de:"Kein Wörterbuch",ja:"辞書がありません",ko:"사전이 없습니다",zh:"没有字典",it:"Nessun dizionario",pt:"Nenhum dicionário",hi:"कोई शब्दकोश नहीं",ar:"لا يوجد قاموس",ru:"Нет словаря",tr:"Hiç sözlük yok"}},description:{nodeType:"translation",translation:{en:"Create your first dictionary to start using Intlayer","en-GB":"Create your first dictionary to start using Intlayer",fr:"Créez votre premier dictionnaire pour commencer à utiliser Intlayer",es:"Cree su primer diccionario para comenzar a usar Intlayer",de:"Erstellen Sie Ihr erstes Wörterbuch, um Intlayer zu verwenden",ja:"Intlayerを使用するために最初の辞書を作成してください",ko:"Intlayer를 사용하려면 첫 번째 사전을 만들어주세요",zh:"创建您的第一个字典以开始使用Intlayer",it:"Crea il tuo primo dizionario per iniziare a usare Intlayer",pt:"Crie seu primeiro dicionário para começar a usar o Intlayer",hi:"Intlayer का उपयोग करने के लिए अपना पहला शब्दकोश बनाएं",ar:"أنشئ قاموسك الأول لبدء استخدام Intlayer",ru:"Создайте свой первый словарь, чтобы начать использовать Intlayer",tr:"Intlayer'ı kullanmaya başlamak için ilk sözlüğünüzü oluşturun"}}},dictionaryList:{title:{nodeType:"translation",translation:{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:"Список словарей",tr:"Sözlük listesi"}}},createDictionaryTitle:{nodeType:"translation",translation:{en:"No dictionary","en-GB":"No dictionary",fr:"Aucun dictionnaire",es:"Sin diccionario",de:"Kein Wörterbuch",ja:"辞書がありません",ko:"사전이 없습니다",zh:"没有字典",it:"Nessun dizionario",pt:"Nenhum dicionário",hi:"कोई शब्दकोश नहीं",ar:"لا يوجد قاموس",ru:"Нет словаря",tr:"Hiç sözlük yok"}},createDictionaryDescription:{nodeType:"translation",translation:{en:"Create your first dictionary to start using Intlayer","en-GB":"Create your first dictionary to start using Intlayer",fr:"Créez votre premier dictionnaire pour commencer à utiliser Intlayer",es:"Cree su primer diccionario para comenzar a usar Intlayer",de:"Erstellen Sie Ihr erstes Wörterbuch, um Intlayer zu verwenden",ja:"Intlayerを使用するために最初の辞書を作成してください",ko:"Intlayer를 사용하려면 첫 번째 사전을 만들어주세요",zh:"创建您的第一个字典以开始使用Intlayer",it:"Crea il tuo primo dizionario per iniziare a usare Intlayer",pt:"Crie seu primeiro dicionário para começar a usar o Intlayer",hi:"Intlayer का उपयोग करने के लिए अपना पहला शब्दकोश बनाएं",ar:"أنشئ قاموسك الأول لبدء استخدام Intlayer",ru:"Создайте свой первый словарь, чтобы начать использовать Intlayer",tr:"Intlayer'ı kullanmaya başlamak için ilk sözlüğünüzü oluşturun"}},createDictionaryButton:{text:{nodeType:"translation",translation:{en:"Create dictionary","en-GB":"Create dictionary",fr:"Créer un dictionnaire",es:"Crear un diccionario",de:"Wörterbuch erstellen",ja:"辞書を作成",ko:"사전 만들기",zh:"创建字典",it:"Crea dizionario",pt:"Criar dicionário",hi:"शब्दकोश बनाएँ",ar:"إنشاء قاموس",ru:"Создать словарь",tr:"Sözlük oluştur"}},ariaLabel:{nodeType:"translation",translation:{en:"Click to create dictionary","en-GB":"Click to create dictionary",fr:"Cliquez pour créer un dictionnaire",es:"Haga clic para crear un diccionario",de:"Klicken Sie, um ein Wörterbuch zu erstellen",ja:"辞書を作成するにはクリックしてください",ko:"사전을 만들려면 클릭하세요",zh:"点击创建字典",it:"Clicca per creare un dizionario",pt:"Clique para criar dicionário",hi:"शब्दकोश बनाने के लिए क्लिक करें",ar:"انقر لإنشاء قاموس",ru:"Нажмите, чтобы создать словарь",tr:"Sözlük oluşturmak için tıklayın"}}},editButton:{text:{nodeType:"translation",translation:{en:"Edit dictionary","en-GB":"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:"Редактировать словарь",tr:"Sözlüğü düzenle"}},ariaLabel:{nodeType:"translation",translation:{en:"Click to edit","en-GB":"Click to edit",fr:"Cliquez pour modifier",es:"Haga clic para editar",de:"Klicken Sie, um zu bearbeiten",ja:"編集するにはクリックしてください",ko:"편집하려면 클릭하세요",zh:"点击编辑",it:"Clicca per modificare",pt:"Clique para editar",hi:"संपादित करने के लिए क्लिक करें",ar:"انقر لتعديل",ru:"Нажмите, чтобы отредактировать",tr:"Düzenlemek için tıklayın"}}}},pz=["dictionary-form::local::../@intlayer/design-system/src/components/DictionaryFieldEditor/DictionaryCreationForm/dictionaryCreationForm.content.ts"],mz={key:fz,content:hz,localIds:pz},gz="dictionary-list-drawer",yz={drawerTitle:{label:{nodeType:"translation",translation:{en:"Dictionary list","en-GB":"Dictionary list",fr:"Liste des dictionnaires",es:"Lista de diccionarios",de:"Wörterbuchliste",it:"Lista dei dizionari",pt:"Lista de dicionários",ru:"Список словарей",ja:"辞書リスト",ko:"사전 목록",zh:"字典列表",ar:"قائمة القواميس",hi:"शब्दकोश सूची"}}},buttonLabel:{label:{fields:["dictionaryLocalId","dictionaryLocalId","dictionaryLocalId","dictionaryLocalId","dictionaryLocalId","dictionaryLocalId","dictionaryLocalId","dictionaryLocalId","dictionaryLocalId","dictionaryLocalId","dictionaryLocalId","dictionaryLocalId","dictionaryLocalId"],nodeType:"insertion",insertion:{nodeType:"translation",translation:{en:"Open dictionary editor {{dictionaryLocalId}}","en-GB":"Open dictionary editor {{dictionaryLocalId}}",fr:"Ouvrir le dictionnaire dans l'éditeur {{dictionaryLocalId}}",es:"Abrir el diccionario en el editor {{dictionaryLocalId}}",de:"Wörterbuch-Editor öffnen {{dictionaryLocalId}}",it:"Apri editor dizionario {{dictionaryLocalId}}",pt:"Abrir editor de dicionário {{dictionaryLocalId}}",ru:"Открыть редактор словаря {{dictionaryLocalId}}",ja:"辞書エディタを開く {{dictionaryLocalId}}",ko:"사전 편집기 열기 {{dictionaryLocalId}}",zh:"打开字典编辑器 {{dictionaryLocalId}}",ar:"فتح محرر القاموس {{dictionaryLocalId}}",hi:"शब्दकोश संपादक खोलें {{dictionaryLocalId}}"}}}}},vz=["dictionary-list-drawer::local::client/src/components/Editor/DictionaryListDrawer/dictionaryListDrawer.content.ts"],PR={key:gz,content:yz,localIds:vz},bz="expand-collapse",_z={expandCollapseContent:{nodeType:"condition",condition:{true:{nodeType:"translation",translation:{en:"Show all",fr:"Afficher tout",es:"Mostrar todo","en-GB":"Show all",de:"Mehr anzeigen",ja:"すべて表示",ko:"모두 보기",zh:"显示全部",it:"Mostra tutto",pt:"Mostrar tudo",hi:"सभी दिखाएँ",ar:"عرض الكل",ru:"Показать все",tr:"Hepsini göster"}},false:{nodeType:"translation",translation:{en:"Show less",fr:"Afficher moins",es:"Mostrar menos","en-GB":"Show less",de:"Weniger anzeigen",ja:"表示を減らす",ko:"간략히 보기",zh:"显示较少",it:"Mostra meno",pt:"Mostrar menos",hi:"कम दिखाएँ",ar:"عرض أقل",ru:"Показать меньше",tr:"Daha az göster"}}}}},Ez=["expand-collapse::local::../@intlayer/design-system/src/components/ExpandCollapse/expandCollapse.content.ts"],Sz={key:bz,content:_z,localIds:Ez},xz="loader",Az={label:{nodeType:"translation",translation:{en:"Animated icon, meaning that the website is processing","en-GB":"Animated icon, meaning that the website is processing",fr:"Icône animée, signifiant que le site Web est en cours de traitement",es:"Icono animado, significa que el sitio web está procesando",de:"Animiertes Icon, das heißt, dass die Website in Bearbeitung ist",ja:"アニメーションアイコン、ウェブサイトが処理していることを意味する",ko:"애니메이션 아이콘, 웹 사이트가 처리 중인 의미",zh:"动画图标,意味着网站正在处理",it:"Icona animata, che significa che il sito web è in fase di elaborazione",pt:"Ícone animado, o que significa que o site está processando",hi:"एनिमेटेड आइकन, जो कि वेबसाइट को प्रसंस्करण हो रहा है इसका मतलब है",ar:"رمز متحرك، مما يعني أن الموقع الإلكتروني يتم التحميل",ru:"Анимационный значок, что означает, что сайт обрабатывается",tr:"Web sitesinin işlemde olduğunu belirten animasyonlu simge"}}},wz=["loader::local::../@intlayer/design-system/src/components/Loader/index.content.ts"],Tz={key:xz,content:Az,localIds:wz},Cz="locale-switcher-content",Rz={localeSwitcherLabel:{nodeType:"translation",translation:{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:"Переключатель языка",tr:"Dil değiştirici"}},languageListLabel:{nodeType:"translation",translation:{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:"Список языков",tr:"Dil listesi"}},switchTo:{nodeType:"translation",translation:{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:"Переключиться на",tr:"Geçiş yap"}},searchInput:{text:{nodeType:"translation",translation:{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:"Поиск языка",tr:"Dil ara"}},placeholder:{nodeType:"translation",translation:{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:"Поиск языка",tr:"Dil ara"}},ariaLabel:{nodeType:"translation",translation:{en:"Language search","en-GB":"Language search",fr:"Recherche de langue",es:"Búsqueda de idioma",de:"Sprachsuche",ja:"言語検索",ko:"언어 검색",zh:"语言搜索",it:"Ricerca lingua",pt:"Pesquisa de idioma",hi:"भाषा खोजें",ar:"بحث اللغة",ru:"Поиск языка",tr:"Dil ara"}}},seeAllLocalesSwitch:{true:{nodeType:"translation",translation:{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:"Показать все языки",tr:"Tüm dilleri göster"}},false:{nodeType:"translation",translation:{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:"Показать только выбранные языки",tr:"Yalnızca seçilen dilleri göster"}}}},kz=["locale-switcher-content::local::../@intlayer/design-system/src/components/LocaleSwitcherContentDropDown/localeSwitcher.content.ts"],Nz={key:Cz,content:Rz,localIds:kz},Oz="locale-switcher",Iz={localeSwitcherLabel:{nodeType:"translation",translation:{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:"Переключатель языка",tr:"Dil değiştirici"}},languageListLabel:{nodeType:"translation",translation:{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:"Список языков",tr:"Dil listesi"}},switchTo:{nodeType:"translation",translation:{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:"Переключиться на",tr:"Geçiş yap"}},searchInput:{text:{nodeType:"translation",translation:{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:"Поиск языка",tr:"Dil ara"}},placeholder:{nodeType:"translation",translation:{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:"Поиск языка",tr:"Dil ara"}},ariaLabel:{nodeType:"translation",translation:{en:"Language search","en-GB":"Language search",fr:"Recherche de langue",es:"Búsqueda de idioma",de:"Sprachsuche",ja:"言語検索",ko:"언어 검색",zh:"语言搜索",it:"Ricerca lingua",pt:"Pesquisa de idioma",hi:"भाषा खोजें",ar:"بحث اللغة",ru:"Поиск языка",tr:"Dil ara"}}}},Dz=["locale-switcher::local::../@intlayer/design-system/src/components/LocaleSwitcherDropDown/localeSwitcher.content.ts"],jz={key:Oz,content:Iz,localIds:Dz},Lz="long-press-message",Pz={message:{fields:["dictionaryKey","dictionaryKey","dictionaryKey","dictionaryKey","dictionaryKey","dictionaryKey","dictionaryKey","dictionaryKey","dictionaryKey","dictionaryKey","dictionaryKey","dictionaryKey","dictionaryKey"],nodeType:"insertion",insertion:{nodeType:"translation",translation:{en:'Long press to edit the "{{dictionaryKey}}" dictionary',fr:'Long press pour éditer le dictionnaire "{{dictionaryKey}}"',es:'Presiona largo para editar el diccionario "{{dictionaryKey}}"',de:'Lang press für Bearbeitung des Wörterbuchs "{{dictionaryKey}}"',it:'Premi a lungo per modificare il dizionario "{{dictionaryKey}}"',pt:'Pressione longa para editar o dicionário "{{dictionaryKey}}"',ru:'Длительное нажатие для редактирования словаря "{{dictionaryKey}}"',ja:'長押しして編集 "{{dictionaryKey}}" 辞書',ko:'길게 눌러 편집 "{{dictionaryKey}}" 사전',zh:'长按编辑 "{{dictionaryKey}}" 字典',"en-GB":'Long press to edit the "{{dictionaryKey}}" dictionary',ar:'اضغط طويلاً للتعديل "{{dictionaryKey}}"',hi:'लंग प्रेस करें टू एडिट "{{dictionaryKey}}"'}}}},Mz=["long-press-message::local::client/src/components/Editor/LongPressMessage/index.content.ts"],MR={key:Lz,content:Pz,localIds:Mz},zz="navigation-view",Bz={tsxNotEditable:{nodeType:"translation",translation:{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-узел не редактируемый",tr:"React düğümü düzenlenemez"}},goToField:{label:{nodeType:"translation",translation:{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:"Перейти к полю",tr:"Alana git"}}},addNewElement:{label:{nodeType:"translation",translation:{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:"Нажмите, чтобы добавить элемент",tr:"Eleman eklemek için tıklayın"}},text:{nodeType:"translation",translation:{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:"Добавить новый элемент",tr:"Yeni eleman ekle"}}},removeElement:{label:{nodeType:"translation",translation:{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:"Нажмите, чтобы удалить элемент",tr:"Elemanı kaldırmak için tıklayın"}},text:{nodeType:"translation",translation:{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:"Удалить элемент",tr:"Elemanı kaldır"}}},addNewEnumeration:{label:{nodeType:"translation",translation:{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:"Нажмите, чтобы добавить перечисление",tr:"Numaralandırma eklemek için tıklayın"}},text:{nodeType:"translation",translation:{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:"Добавить новое перечисление",tr:"Yeni numaralandırma ekle"}}},removeEnumeration:{label:{nodeType:"translation",translation:{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:"Нажмите, чтобы удалить перечисление",tr:"Numaralandırmayı kaldırmak için tıklayın"}},text:{nodeType:"translation",translation:{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:"Удалить перечисление",tr:"Numaralandırmayı kaldır"}}},addNewCondition:{label:{nodeType:"translation",translation:{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:"Нажмите, чтобы добавить условие",tr:"Koşul eklemek için tıklayın"}},text:{nodeType:"translation",translation:{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:"Добавить новое условие",tr:"Yeni koşul ekle"}}}},Vz=["navigation-view::local::../@intlayer/design-system/src/components/DictionaryFieldEditor/NavigationView/navigationViewNode.content.ts"],Uz={key:zz,content:Bz,localIds:Vz},Fz="no-application-url-view",$z={title:{nodeType:"translation",translation:{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:{nodeType:"translation",translation:{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:{nodeType:"translation",translation:{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:{nodeType:"translation",translation:{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:"查看如何配置编辑器"}}}},Hz=["no-application-url-view::local::client/src/components/Editor/NoApplicationURLView/noApplicationURLView.content.ts"],zR={key:Fz,content:$z,localIds:Hz},Gz="node-type-selector",Kz={triggerPlaceHolder:{nodeType:"translation",translation:{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:"Тип узла",tr:"Düğüm türü"}},multilingual:{nodeType:"translation",translation:{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:"Многоязычный контент",tr:"Çok dilli içerik"}},text:{nodeType:"translation",translation:{en:"Text","en-GB":"Text",fr:"Texte",es:"Texto",de:"Text",ja:"テキスト",ko:"텍스트",zh:"文本",it:"Testo",pt:"Texto",hi:"पाठ",ar:"نص",ru:"Текст",tr:"Metin"}},number:{nodeType:"translation",translation:{en:"Number","en-GB":"Number",fr:"Nombre",es:"Número",de:"Zahl",ja:"数字",ko:"숫자",zh:"数字",it:"Numero",pt:"Número",hi:"संख्या",ar:"رقم",ru:"Число",tr:"Sayı"}},boolean:{nodeType:"translation",translation:{en:"Boolean","en-GB":"Boolean",fr:"Booléen",es:"Booleano",de:"Bool",ja:"ブール",ko:"불리언",zh:"布尔",it:"Booleano",pt:"Booleano",hi:"बूलियन",ar:"منطقي",ru:"Булево",tr:"Boolean"}},node:{nodeType:"translation",translation:{en:"Object","en-GB":"Object",fr:"Objet",es:"Objeto",de:"Objekt",ja:"オブジェクト",ko:"객체",zh:"对象",it:"Oggetto",pt:"Objeto",hi:"ऑब्जेक्ट",ar:"كائن",ru:"Объект",tr:"Nesne"}},array:{nodeType:"translation",translation:{en:"Array","en-GB":"Array",fr:"Tableau",es:"Arreglo",de:"Array",ja:"配列",ko:"배열",zh:"数组",it:"Array",pt:"Array",hi:"ऐरे",ar:"مصفوفة",ru:"Массив",tr:"Dizi"}},enumeration:{nodeType:"translation",translation:{en:"Enumeration","en-GB":"Enumeration",fr:"Énumération",es:"Enumeración",de:"Enumeration",ja:"列挙",ko:"열거",zh:"枚举",it:"Enumerazione",pt:"Enumeração",hi:"गणना",ar:"تعداد",ru:"Перечисление",tr:"Numaralandırma"}},nest:{nodeType:"translation",translation:{en:"Nesting","en-GB":"Nesting",fr:"Imbriquation",es:"Anidación",de:"Vererbung",ja:"ネスト",ko:"중첩",zh:"嵌套",it:"Nidificazione",pt:"Nido",hi:"नेस्टेंस",ar:"مستوى",ru:"Вложенность",tr:"İç içe geçme"}},insertion:{nodeType:"translation",translation:{en:"Insertion","en-GB":"Insertion",fr:"Insertion",es:"Inserción",de:"Einfügung",ja:"挿入",ko:"삽입",zh:"插入",it:"Inserimento",pt:"Inserção",hi:"सम्मिलन",ar:"إدراج",ru:"Вставка",tr:"Ekleme"}},condition:{nodeType:"translation",translation:{en:"Condition","en-GB":"Condition",fr:"Condition",es:"Condición",de:"Bedingung",ja:"条件",ko:"조건",zh:"条件",it:"Condizione",pt:"Condição",hi:"शर्त्ता",ar:"شرط",ru:"Условие",tr:"Koşul"}},file:{nodeType:"translation",translation:{en:"File","en-GB":"File",fr:"Fichier",es:"Archivo",de:"Datei",ja:"ファイル",ko:"파일",zh:"文件",it:"File",pt:"Arquivo",hi:"फ़ाइल",ar:"ملف",ru:"Файл",tr:"Dosya"}},markdown:{nodeType:"translation",translation:{en:"Markdown","en-GB":"Markdown",fr:"Markdown",es:"Markdown",de:"Markdown",ja:"マークダウン",ko:"마크다운",zh:"Markdown",it:"Markdown",pt:"Markdown",hi:"मार्कडाउन",ar:"مارك داون",ru:"Markdown",tr:"Markdown"}},reactNode:{nodeType:"translation",translation:{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:"Реакт узел",tr:"React Node"}}},qz=["node-type-selector::local::../@intlayer/design-system/src/components/DictionaryFieldEditor/nodeTypeSelector.content.ts"],Wz={key:Gz,content:Kz,localIds:qz},Zz="save-dictionary-details",Yz={deleteButton:{text:{nodeType:"translation",translation:{en:"Delete dictionary","en-GB":"Delete dictionary",fr:"Supprimer le dictionnaire",es:"Eliminar diccionario",de:"Wörterbuch löschen",ja:"辞書を削除",ko:"사전 삭제",zh:"删除字典",it:"Elimina dizionario",pt:"Excluir dicionário",hi:"शब्दकोश हटाएं",ar:"حذف القاموس",ru:"Удалить словарь",tr:"Sözlüğü sil"}},label:{nodeType:"translation",translation:{en:"Click to delete dictionary","en-GB":"Click to delete dictionary",fr:"Cliquez pour supprimer le dictionnaire",es:"Haga clic para eliminar el diccionario",de:"Klicken Sie, um das Wörterbuch zu löschen",ja:"辞書を削除するにはクリックしてください",ko:"사전을 삭제하려면 클릭하세요",zh:"单击以删除字典",it:"Fai clic per eliminare il dizionario",pt:"Clique para excluir o dicionário",hi:"शब्दकोश हटाने के लिए क्लिक करें",ar:"انقر لحذف القاموس",ru:"Нажмите, чтобы удалить словарь",tr:"Sözlüğü silmek için tıklayın"}}},resetButton:{text:{nodeType:"translation",translation:{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:"Сбросить все изменения",tr:"Tüm değişiklikleri sıfırla"}},label:{nodeType:"translation",translation:{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:"Нажмите, чтобы сбросить все изменения",tr:"Tüm değişiklikleri sıfırlamak için tıklayın"}}},saveButton:{text:{nodeType:"translation",translation:{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:"Сохранить изменения",tr:"Değişiklikleri kaydet"}},label:{nodeType:"translation",translation:{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:"Нажмите, чтобы сохранить изменения",tr:"Değişiklikleri kaydetmek için tıklayın"}}},publishButton:{text:{nodeType:"translation",translation:{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:"Опубликовать словарь",tr:"Sözlüğü yayınla"}},label:{nodeType:"translation",translation:{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:"Нажмите, чтобы опубликовать словарь",tr:"Sözlüğü yayınlamak için tıklayın"}}},downloadButton:{text:{nodeType:"translation",translation:{en:"Download","en-GB":"Download",fr:"Télécharger",es:"Descargar",de:"Herunterladen",ja:"ダウンロード",ko:"다운로드",zh:"下载",it:"Scarica",pt:"Baixar",hi:"डाउनलोड",ar:"تنزيل",ru:"Скачать",tr:"İndir"}},label:{nodeType:"translation",translation:{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:"Нажмите, чтобы скачать",tr:"İndirmek için tıklayın"}}},confirmation:{title:{nodeType:"translation",translation:{en:"Confirmation","en-GB":"Confirmation",fr:"Confirmation",es:"Confirmation",de:"Confirmation",ja:"確認",ko:"확인",zh:"确认",it:"Conferma",pt:"Confirmação",hi:"पुष्टि करें",ar:"تأكيد",ru:"Подтверждение",tr:"Onay"}},message:{nodeType:"translation",translation:{en:"This will overwrite the existing dictionary. Are you sure you want to continue?","en-GB":"This will overwrite the existing dictionary. Are you sure you want to continue?",fr:"Cela remplacera le dictionnaire existant. Êtes-vous sûr de vouloir continuer?",es:"Esto sobrescribirá el diccionario existente. ¿Estás seguro de que quieres continuar?",de:"Dies wird das existierende Wörterbuch überschreiben. Sind Sie sicher, dass Sie fortfahren möchten?",ja:"既存の辞書を上書きします。続行しますか?",ko:"이는 기존 사전을 덮어 쓸 것입니다. 계속하시겠습니까?",zh:"这将覆盖现有的字典。你确定要继续吗?",it:"Questo sovrascriverà il dizionario esistente. Sei sicuro di voler continuare?",pt:"Isso sobrescreverá o dicionário existente. Você tem certeza de que deseja continuar?",hi:"यह मौजूदा शब्दकोश को ओवरराइट करने जारी है। आप क्या आप जारी रखना चाहते हैं?",ar:"سيتم الكتابة على القاموس الحالي. هل أنت متأكد من أنك تريد المتابعة؟",ru:"Это перезапишет существующий словарь. Вы уверены, что хотите продолжить?",tr:"Bu, mevcut sözlüğün üzerine yazacaktır. Devam etmek istediğinizden emin misiniz?"}},confirmButton:{text:{nodeType:"translation",translation:{en:"Confirm","en-GB":"Confirm",fr:"Confirmer",es:"Confirmar",de:"Bestätigen",ja:"確認",ko:"확인",zh:"确认",it:"Conferma",pt:"Confirmar",hi:"पुष्टि करें",ar:"تأكيد",ru:"Подтвердить",tr:"Onayla"}},label:{nodeType:"translation",translation:{en:"Click to confirm","en-GB":"Click to confirm",fr:"Cliquez pour confirmer",es:"Haga clic para confirmar",de:"Klicken Sie, um zu bestätigen",ja:"確認するにはクリックしてください",ko:"확인을 클릭하세요",zh:"单击确认",it:"Fai clic per confermare",pt:"Clique para confirmar",hi:"पुष्टि करने के लिए क्लिक करें",ar:"انقر لتأكيد",ru:"Нажмите, чтобы подтвердить",tr:"Onaylamak için tıklayın"}}},cancelButton:{text:{nodeType:"translation",translation:{en:"Cancel","en-GB":"Cancel",fr:"Annuler",es:"Cancelar",de:"Abbrechen",ja:"キャンセル",ko:"취소",zh:"取消",it:"Annulla",pt:"Cancelar",hi:"रद्द करें",ar:"إلغاء",ru:"Отмена",tr:"İptal"}},label:{nodeType:"translation",translation:{en:"Click to cancel","en-GB":"Click to cancel",fr:"Cliquez pour annuler",es:"Haga clic para cancelar",de:"Klicken Sie, um abzubrechen",ja:"キャンセルするにはクリックしてください",ko:"취소를 클릭하세요",zh:"单击取消",it:"Fai clic per annullare",pt:"Clique para cancelar",hi:"रद्द करने के लिए क्लिक करें",ar:"انقر لإلغاء",ru:"Нажмите, чтобы отменить",tr:"İptal etmek için tıklayın"}}}}},Xz=["save-dictionary-details::local::../@intlayer/design-system/src/components/DictionaryFieldEditor/SaveForm/saveForm.content.tsx"],Qz={key:Zz,content:Yz,localIds:Xz},Jz="structure-view",eB={titleInput:{placeholder:{nodeType:"translation",translation:{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:"Введите ключ вашего узла",tr:"Düğümünüzün anahtarını girin"}}},deleteButton:{label:{nodeType:"translation",translation:{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:"Удалить узел из секции",tr:"Düğümü bölümden kaldır"}}},addNodeButton:{label:{nodeType:"translation",translation:{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:"Нажмите, чтобы добавить новый узел",tr:"Yeni bir düğüm eklemek için tıklayın"}},text:{nodeType:"translation",translation:{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:"Добавить новый узел",tr:"Yeni bir düğüm ekle"}}}},tB=["structure-view::local::../@intlayer/design-system/src/components/DictionaryFieldEditor/StructureView/structureView.content.ts"],nB={key:Jz,content:eB,localIds:tB},rB="table",iB={show:{nodeType:"translation",translation:{en:"Show all table content",fr:"Afficher tout le contenu du tableau",es:"Mostrar todo el contenido de la tabla","en-GB":"Show all table content",de:"Alle Tabellendaten anzeigen",ja:"テーブルのすべての内容を表示",ko:"테이블의 모든 내용 표시",zh:"显示表格的所有内容",it:"Mostra tutto il contenuto della tabella",pt:"Mostrar todo o conteúdo da tabela",hi:"सभी तालिका सामग्री दिखाएं",ar:"اظهار جميع محتويات الجدول",ru:"Показать все данные таблицы",tr:"Tüm tablo içeriğini göster"}}},aB=["table::local::../@intlayer/design-system/src/components/Table/table.content.ts"],oB={key:rB,content:iB,localIds:aB},sB="version-switcher",lB={versionSwitcherLabel:{nodeType:"translation",translation:{en:"Version selector","en-GB":"Version selector",fr:"Sélecteur de version",es:"Selector de versión",de:"Version wähler",ja:"バージョンセレクター",ko:"버전 선택기",zh:"版本选择器",it:"Selettore di versione",pt:"Seletor de versão",hi:"संस्करण चयनकर्ता",ar:"منتقي الإصدار",ru:"Выбор версии",tr:"Sürüm seçici"}},versionListLabel:{nodeType:"translation",translation:{en:"Version list","en-GB":"Version list",fr:"Liste des versions",es:"Lista de versiones",de:"Versionsliste",ja:"バージョンリスト",ko:"버전 목록",zh:"版本列表",it:"Elenco delle versioni",pt:"Lista de versões",hi:"संस्करण सूची",ar:"قائمة الإصدارات",ru:"Список версий",tr:"Sürüm listesi"}},switchTo:{nodeType:"translation",translation:{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:"Переключиться на",tr:"Geçiş yap"}}},cB=["version-switcher::local::../@intlayer/design-system/src/components/DictionaryFieldEditor/VersionSwitcherDropDown/versionSwitcherDropDown.content.ts"],uB={key:sB,content:lB,localIds:cB},mA={breadcrumb:zM,code:FM,"copy-button":KM,"dictionary-detail-schema":YM,"dictionary-details":ez,"dictionary-edition-drawer":ab,"dictionary-field-editor":sz,"dictionary-form-schema":dz,"dictionary-form":mz,"dictionary-list-drawer":PR,"expand-collapse":Sz,loader:Tz,"locale-switcher-content":Nz,"locale-switcher":jz,"long-press-message":MR,"navigation-view":Uz,"no-application-url-view":zR,"node-type-selector":Wz,"save-dictionary-details":Qz,"structure-view":nB,table:oB,"version-switcher":uB},BR=(e,t,n)=>{const r={dictionaryKey:e.key,dictionaryPath:e.filePath,keyPath:[],plugins:n};return ob(e.content,r,t)},VR=(e,t,n)=>{const r=mA[e];if(!r)throw new Error(`Dictionary ${e} not found`,mA);return BR(r,t,n)},dB=(e,t,n)=>{const r=VR(e,n?.locale,n?.plugins);if(typeof t=="string"){const a=t.split(".");let s=r;for(const l of a)if(s=s?.[l],s===void 0)return r;return s}return r},fB=(e,t,n)=>e[t??n],hB=(e,t)=>({id:"translation-plugin",canHandle:n=>typeof n=="object"&&n?.nodeType===$.Translation,transform:(n,r,a)=>{const s=structuredClone(n[$.Translation]);for(const l in s){const u={...r,children:s[l],keyPath:[...r.keyPath,{type:$.Translation,key:l}]};s[l]=a(s[l],u)}return fB(s,e,t)}}),pB={id:"enumeration-plugin",canHandle:e=>typeof e=="object"&&e?.nodeType===$.Enumeration,transform:(e,t,n)=>{const r=structuredClone(e[$.Enumeration]);for(const a in r){const s=r[a],l={...t,children:s,keyPath:[...t.keyPath,{type:$.Enumeration,key:a}]};r[a]=n(s,l)}return a=>DM(r,a)}},mB={id:"condition-plugin",canHandle:e=>typeof e=="object"&&e?.nodeType===$.Condition,transform:(e,t,n)=>{const r=structuredClone(e[$.Condition]);for(const a in r){const s=r[a],l={...t,children:s,keyPath:[...t.keyPath,{type:$.Condition,key:a}]};r[a]=n(s,l)}return a=>OM(r,a)}},gB={id:"insertion-plugin",canHandle:e=>typeof e=="object"&&e?.nodeType===$.Insertion,transform:(e,t,n)=>{const r=[...t.keyPath,{type:$.Insertion}],a=e[$.Insertion];return n(a,{...t,children:a,keyPath:r,plugins:[{id:"insertion-string-plugin",canHandle:l=>typeof l=="string",transform:(l,u,d)=>{const f=d(l,{...u,children:l,plugins:[...(t.plugins??[]).filter(p=>p.id!=="intlayer-node-plugin")]});return p=>{const g=jM(f,p);return d(g,{...u,plugins:t.plugins,children:g})}}},...t.plugins??[]]})}},yB={id:"nested-plugin",canHandle:e=>typeof e=="object"&&e?.nodeType===$.Nested,transform:(e,t)=>dB(e.nested.dictionaryKey,e.nested.path,t)},vB={id:"file-plugin",canHandle:e=>typeof e=="object"&&e?.nodeType===$.File,transform:(e,t,n)=>n(e.content,{...t,children:e.content})},ob=(e,t,n=rt?.internationalization.defaultLocale)=>{const r=[gB,hB(n),pB,mB,yB,vB,...t.plugins??[]];return lf(e,{...t,plugins:r})},gA={method:"GET",headers:{"Content-Type":"application/json"},credentials:"include"},bB=e=>(Object.keys(e).forEach(t=>{e[t]===void 0&&delete e[t]}),e),Od=e=>e.reduce((t,n)=>{const r=t??{},a=bB(n??{});return typeof r=="object"&&typeof a=="object"?{...r,...a}:a??r},{}),Ne=async(e,...t)=>{const{signal:n}=new AbortController;let r="",a;const s=t.map(({body:_,params:S,headers:A,...C})=>C),l=Od([gA,...s]),u=Od([gA.headers,...t.map(_=>_.headers)]),d=Od(t.map(_=>_.params)),f=l.method;if(f!=="GET"&&f!=="HEAD"){const _=Od(t.map(S=>S.body));u?.["Content-Type"]==="application/x-www-form-urlencoded"?a=new URLSearchParams(_).toString():a=JSON.stringify(_)}Object.entries(d).length>0&&(r=`?${new URLSearchParams(d).toString()}`);const p={...l,headers:u,body:a,signal:n},g=`${e}${r}`,y=await fetch(g,p);if(!y.ok){const _=await y.json();throw new Error(JSON.stringify(_.error)??"An error occurred")}return await y.json()},_B=(e={},t)=>{const n=t?.editor?.backendURL??rt.editor?.backendURL;if(!n)throw new Error("Backend URL is not defined in the Intlayer configuration.");const r=`${n}/api/ai`;return{customQuery:async(y,_={})=>await Ne(r,e,_,{method:"POST",body:y}),translateJSON:async(y,_={})=>await Ne(`${r}/translate/json`,e,_,{method:"POST",body:y}),auditContentDeclaration:async(y,_={})=>await Ne(`${r}/audit/dictionary`,e,_,{method:"POST",body:y}),auditContentDeclarationField:async(y,_={})=>await Ne(`${r}/audit/dictionary/field`,e,_,{method:"POST",body:y}),auditContentDeclarationMetadata:async(y,_={})=>await Ne(`${r}/audit/dictionary/metadata`,e,_,{method:"POST",body:y}),auditTag:async(y,_={})=>await Ne(`${r}/audit/tag`,e,_,{method:"POST",body:y}),askDocQuestion:async(y,_={})=>{if(!y)return;const{onMessage:S,onDone:A,...C}=y,w=new AbortController;try{const x=await fetch(`${r}/ask`,{method:"POST",headers:{"Content-Type":"application/json",...e.headers,..._.headers},body:JSON.stringify({...C,...e.body,..._.body}),signal:w.signal,credentials:"include"});if(!x.ok){let I="An error occurred";try{const D=await x.json();I=JSON.stringify(D.error)??"An error occurred"}catch{try{const D=await x.text();D&&(I=D)}catch{}}throw new Error(I)}const T=x.body?.getReader();if(!T)throw new Error("No reader available");const N=new TextDecoder;let R="";for(;;){const{done:I,value:D}=await T.read();if(I)break;R+=N.decode(D,{stream:!0});const L=R.split(`
|
|
51
|
-
`);R=L.pop()??"";for(const H of L)if(H.startsWith("data: "))try{const Z=JSON.parse(H.slice(6));Z.chunk&&S?.(Z.chunk),Z.done&&Z.response&&A?.(Z.response)}catch(Z){console.error("Failed to parse SSE data:",Z)}}}catch(x){throw console.error("Error in askDocQuestion:",x),x}},autocomplete:async(y,_={})=>await Ne(`${r}/autocomplete`,e,_,{method:"POST",body:y})}},EB=(e={},t)=>{const n=t?.editor?.backendURL??rt.editor?.backendURL;if(!n)throw new Error("Backend URL is not defined in the Intlayer configuration.");const r=`${n}/api/dictionary`;return{getDictionaries:async(y,_={})=>await Ne(r,e,_,{params:y}),getDictionariesKeys:async(y={})=>await Ne(`${r}/keys`,e,y),getDictionariesUpdateTimestamp:async(y={})=>await Ne(`${r}/update`,e,y),getDictionary:async(y,_,S={})=>await Ne(`${r}/${y}`,e,S,{params:_?{version:_.toString()}:void 0}),pushDictionaries:async(y,_={})=>await Ne(`${r}`,e,_,{method:"PATCH",body:{dictionaries:y}}),addDictionary:async(y,_={})=>await Ne(`${r}`,e,_,{method:"POST",body:y}),updateDictionary:async(y,_={})=>await Ne(`${r}/${y.id}`,e,_,{method:"PUT",body:y}),deleteDictionary:async(y,_={})=>await Ne(`${r}/${y}`,e,_,{method:"DELETE"})}},SB=(e={},t)=>{const n=t?.editor?.editorURL??rt.editor?.editorURL;if(!n)throw new Error("Editor URL is not defined in the Intlayer configuration.");const r=`${n}/api`;return{getDictionaries:async(u={})=>(await Ne(`${r}/dictionary`,e,u)).data,getConfiguration:async(u={})=>(await Ne(`${r}/config`,e,u)).data,writeDictionary:async(u,d={})=>await Ne(`${r}/dictionary`,e,d,{method:"POST",body:u})}},xB=(e={},t)=>{const n=t?.editor?.backendURL??rt.editor?.backendURL;if(!n)throw new Error("Backend URL is not defined in the Intlayer configuration.");const r=`${n}/api/newsletter`;return{subscribeToNewsletter:async(u,d={})=>await Ne(`${r}/subscribe`,e,d,{method:"POST",body:u}),unsubscribeFromNewsletter:async(u,d={})=>await Ne(`${r}/unsubscribe`,e,d,{method:"POST",body:u}),getNewsletterStatus:async(u={})=>await Ne(`${r}/status`,e,u,{method:"GET"})}},UR=e=>{const t=e?.editor?.backendURL??rt.editor?.backendURL,{clientId:n,clientSecret:r}=e?.editor??{};if(!t)throw new Error("Backend URL is not defined in the Intlayer configuration.");return{getOAuth2AccessToken:async(s={})=>await Ne(`${t}/oauth2/token`,{},s,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:{grant_type:"client_credentials",client_id:n,client_secret:r}})}},AB=(e={},t)=>{const n=t?.editor?.backendURL??rt.editor?.backendURL;if(!n)throw new Error("Backend URL is not defined in the Intlayer configuration--.");const r=`${n}/api/organization`;return{getOrganizations:async(_,S={})=>await Ne(r,e,S,{params:_}),getOrganization:async(_,S={})=>await Ne(`${r}/${String(_)}`,e,S),addOrganization:async(_,S={})=>await Ne(r,e,S,{method:"POST",body:_}),addOrganizationMember:async(_,S={})=>Ne(`${r}/member`,e,S,{method:"POST",body:_}),updateOrganization:async(_,S={})=>Ne(r,e,S,{method:"PUT",body:_}),updateOrganizationMembers:async(_,S={})=>Ne(`${r}/members`,e,S,{method:"PUT",body:_}),deleteOrganization:async(_={})=>await Ne(r,e,_,{method:"DELETE"}),selectOrganization:async(_,S={})=>await Ne(`${r}/${String(_)}`,e,S,{method:"PUT"}),unselectOrganization:async(_={})=>await Ne(`${r}/logout`,e,_,{method:"POST"})}},wB=(e={},t)=>{const n=t?.editor?.backendURL??rt.editor?.backendURL;if(!n)throw new Error("Backend URL is not defined in the Intlayer configuration.");const r=`${n}/api/project`;return{getProjects:async(A,C={})=>await Ne(r,e,C,{params:A}),addProject:async(A,C={})=>await Ne(`${r}`,e,C,{method:"POST",body:A}),updateProject:async(A,C={})=>await Ne(`${r}`,e,C,{method:"PUT",body:A}),updateProjectMembers:async(A,C={})=>await Ne(`${r}/members`,e,C,{method:"PUT",body:A}),pushProjectConfiguration:async(A,C={})=>await Ne(`${r}/configuration`,e,C,{method:"PUT",body:A}),deleteProject:async(A={})=>await Ne(`${r}`,e,A,{method:"DELETE"}),selectProject:async(A,C={})=>await Ne(`${r}/${String(A)}`,e,C,{method:"PUT"}),unselectProject:async(A={})=>await Ne(`${r}/logout`,e,A,{method:"POST"}),addNewAccessKey:async(A,C={})=>await Ne(`${r}/access_key`,e,C,{method:"POST",body:A}),deleteAccessKey:async(A,C={})=>await Ne(`${r}/access_key`,e,C,{method:"DELETE",body:{clientId:A}}),refreshAccessKey:async(A,C={})=>await Ne(`${r}/access_key`,e,C,{method:"PATCH",body:{clientId:A}})}},TB=(e={},t)=>{const n=t?.editor?.backendURL??rt.editor?.backendURL;if(!n)throw new Error("Backend URL is not defined in the Intlayer configuration.");const r=`${n}/api/search`;return{searchDoc:async(s,l={})=>await Ne(`${r}/doc`,e,l,{method:"GET",params:s})}},CB=(e={},t)=>{const n=t?.editor?.backendURL??rt.editor?.backendURL;if(!n)throw new Error("Backend URL is not defined in the Intlayer configuration.");const r=`${n}/api/stripe`;return{getPricing:async(u,d={})=>await Ne(`${r}/pricing`,e,d,{method:"POST",body:u}),getSubscription:async(u,d={})=>await Ne(`${r}/create-subscription`,e,d,{method:"POST",body:u}),cancelSubscription:async(u={})=>await Ne(`${r}/cancel-subscription`,e,u,{method:"POST"})}},RB=(e={},t)=>{const n=t?.editor?.backendURL??rt.editor?.backendURL;if(!n)throw new Error("Backend URL is not defined in the Intlayer configuration.");const r=`${n}/api/tag`;return{getTags:async(d,f={})=>await Ne(r,e,f,{params:d}),addTag:async(d,f={})=>await Ne(`${r}`,e,f,{method:"POST",body:d}),updateTag:async(d,f,p={})=>await Ne(`${r}/${d}`,e,p,{method:"PUT",body:f}),deleteTag:async(d,f={})=>await Ne(`${r}/${d}`,e,f,{method:"DELETE"})}},kB=(e={},t)=>{const n=t?.editor?.backendURL??rt.editor?.backendURL;if(!n)throw new Error("Backend URL is not defined in the Intlayer configuration.");const r=`${n}/api/user`;return{createUser:async(y,_={})=>await Ne(`${r}/`,e,_,{method:"POST",body:y}),getUsers:async(y,_={})=>await Ne(r,e,_,{params:y}),getUserById:async(y,_={})=>await Ne(`${r}/${y}`,e,_),getUserByAccount:async(y,_,S={})=>await Ne(`${r}/account/${_}/${y}`,e,S),getUserByEmail:async(y,_={})=>await Ne(`${r}/email/${y}`,e,_),updateUser:async(y,_={})=>await Ne(`${r}`,e,_,{method:"PUT",body:y}),deleteUser:async(y,_={})=>await Ne(`${r}/${y}`,e,_,{method:"DELETE"}),getVerifyEmailStatusURL:y=>`${r}/verify-email-status/${String(y)}`}},NB=(e={},t)=>({organization:AB(e,t),project:wB(e,t),user:kB(e,t),oAuth:UR(t),dictionary:EB(e,t),stripe:CB(e,t),ai:_B(e,t),tag:RB(e,t),search:TB(e,t),editor:SB(e,t),newsletter:xB(e,t)}),yA=(e,t,n)=>{let r=e,a=null,s=[];if(t.length===0)return n;for(let l=0;l<t.length;l++){const u=t[l];if(a=r,(u.type===$.Object||u.type===$.Array)&&(s=[u.key],(!r[u.key]||typeof r[u.key]!="object")&&(r[u.key]={}),r=r[u.key]),(u.type===$.Translation||u.type===$.Enumeration)&&(s=[u.type,u.key],(!r[u.type]||typeof r[u.type]!="object")&&(r[u.type]={}),(!r[u.type][u.key]||typeof r[u.type][u.key]!="object")&&(r[u.type][u.key]={}),r=r[u.type][u.key]),(u.type===$.Enumeration||u.type===$.Condition)&&(s=[u.type,u.key],(!r[u.type]||typeof r[u.type]!="object")&&(r[u.type]={}),(!r[u.type][u.key]||typeof r[u.type][u.key]!="object")&&(r[u.type][u.key]={}),r=r[u.type][u.key]),(u.type===$.Markdown||u.type===$.Insertion)&&(s=[u.type],(!r[u.type]||typeof r[u.type]!="object")&&(r[u.type]=""),r=r[u.type]),u.type===$.File&&(s=["content"],r=r.content),u.type&&(r=r),l===t.length-1&&a&&s.length>0){let d=a;for(const f of s.slice(0,-1))d=d[f];typeof n>"u"?delete d[s[s.length-1]]:d[s[s.length-1]]=n}}return e},lr=(e,t)=>{let n=structuredClone(e);for(const r of t)r.type===$.Object||r.type===$.Array?n=n?.[r.key]:r.type===$.Translation||r.type===$.Condition||r.type===$.Enumeration?n=n?.[r.type][r.key]:(r.type===$.Markdown||r.type===$.Insertion||r.type===$.File)&&(n=n?.[r.type]);return n},Yl=(e,t,n)=>{const r=structuredClone(n);switch(e){case $.Translation:return{nodeType:$.Translation,[$.Translation]:Object.assign({},...t.map(a=>({[a]:structuredClone(r)??""})))};case $.Enumeration:return{nodeType:$.Enumeration,[$.Enumeration]:{1:r??""}};case $.Condition:return{nodeType:$.Condition,[$.Condition]:{true:r??"",false:r??""}};case $.Insertion:return{nodeType:$.Insertion,[$.Insertion]:{insertion:r??""}};case $.Nested:return{nodeType:$.Nested,[$.Nested]:{dictionaryKey:""}};case $.Markdown:return{nodeType:$.Markdown,[$.Markdown]:r??""};case $.File:return{nodeType:$.File,[$.File]:r??""};case $.Object:return{newKey:r??""};case $.Array:return[r??""];case $.Text:return r??"";case $.Number:return r??0;case $.Boolean:return r??!0;default:return r??""}},Kn=e=>{if(typeof e=="string")return"";if(typeof e=="number")return 0;if(typeof e=="boolean")return!0;if(typeof e?.nodeType=="string"){const r=e,a=r[r.nodeType];return r.nodeType===$.Translation||r.nodeType===$.Enumeration||r.nodeType===$.Condition||r.nodeType===$.Insertion?Kn(a):r.nodeType===$.Nested?"dictionary-key":r.nodeType===$.File?"file/path":r.nodeType===$.Markdown?Kn(r):a}if(!e||typeof e!="object")return e;if(Array.isArray(e))return e.map(Kn);const t=Object.entries(e).map(([r,a])=>[r,Kn(a)]);return Object.fromEntries(t)},FR=e=>{if(typeof e=="string"||typeof e=="number"||typeof e=="boolean")return e;if(typeof e?.nodeType=="string"){const t=e,n=t[t.nodeType];if(t.nodeType===$.Translation||t.nodeType===$.Enumeration||t.nodeType===$.Condition||t.nodeType===$.Insertion||t.nodeType===$.Gender||t.nodeType===$.File||t.nodeType===$.Markdown){const r=Object.keys(n)[0];return n[r]}return t.nodeType===$.Nested?void 0:n}return!e||typeof e!="object"?e:Array.isArray(e)?e[0]:e},OB=e=>typeof e=="object"&&typeof e?.key<"u"&&typeof e?.props<"u",js=e=>typeof e=="string"?$.Text:typeof e?.nodeType=="string"?e.nodeType:Array.isArray(e)?$.Array:OB(e)?$.ReactNode:typeof e=="number"?$.Number:typeof e=="boolean"?$.Boolean:e&&typeof e=="object"?$.Object:$.Unknown,IB=[{key:"breadcrumb",autoFill:"./{{key}}.content.json",content:{linkLabel:{nodeType:"translation",translation:{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:"Перейти на",tr:"Git"}}},localId:"breadcrumb::local::../@intlayer/design-system/src/components/Breadcrumb/breadcrumb.content.ts",location:"locale",filePath:"../@intlayer/design-system/src/components/Breadcrumb/breadcrumb.content.ts"}],DB=[{key:"code",autoFill:"./{{key}}.content.json",content:{title:{nodeType:"translation",translation:{en:"Copy code",es:"Copiar código",pt:"Copiar código",fr:"Copier le code",de:"Code kopieren",it:"Copiare il codice",ja:"コードをコピー",ko:"코드 복사",zh:"复制代码",hi:"कोड कॉपी करें","en-GB":"Copy code",ru:"Копировать код",ar:"نسخ الكود",tr:"Kodu kopyala"}},description:{nodeType:"translation",translation:{en:"Copy the code to the clipboard",es:"Copiar el código al portapapeles",pt:"Copiar o código para a área de transferência",fr:"Copier le code dans le presse-papiers",de:"Kopieren Sie den Code in die Zwischenablage",it:"Copiare il codice nella clipboard",ja:"コードをクリップボードにコピー",ko:"코드를 클립보드에 복사",zh:"复制代码到剪贴板",hi:"कोड को क्लिपबोर्ड पर कॉपी करें","en-GB":"Copy the code to the clipboard",ru:"Копировать код в буфер обмена",ar:"نسخ الكود إلى الحافظة",tr:"Kodu panoya kopyala"}}},localId:"code::local::../@intlayer/design-system/src/components/IDE/code.content.ts",location:"locale",filePath:"../@intlayer/design-system/src/components/IDE/code.content.ts"},{key:"code",autoFill:"./{{key}}.content.json",content:{title:{nodeType:"translation",translation:{en:"Copy code",es:"Copiar código",pt:"Copiar código",fr:"Copier le code",de:"Code kopieren",it:"Copiare il codice",ja:"コードをコピー",ko:"코드 복사",zh:"复制代码",hi:"कोड कॉपी करें","en-GB":"Copy code",ru:"Копировать код",ar:"نسخ الكود",tr:"Kodu kopyala"}},description:{nodeType:"translation",translation:{en:"Copy the code to the clipboard",es:"Copiar el código al portapapeles",pt:"Copiar o código para a área de transferência",fr:"Copier le code dans le presse-papiers",de:"Kopieren Sie den Code in die Zwischenablage",it:"Copiare il codice nella clipboard",ja:"コードをクリップボードにコピー",ko:"코드를 클립보드에 복사",zh:"复制代码到剪贴板",hi:"कोड को क्लिपबोर्ड पर कॉपी करें","en-GB":"Copy the code to the clipboard",ru:"Копировать код в буфер обмена",ar:"نسخ الكود إلى الحافظة",tr:"Kodu panoya kopyala"}}},localId:"code::local::../@intlayer/design-system/src/components/IDE/copyCode.content.ts",location:"locale",filePath:"../@intlayer/design-system/src/components/IDE/copyCode.content.ts"}],jB=[{key:"copy-button",autoFill:"./{{key}}.content.json",content:{label:{nodeType:"translation",translation:{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:"Копировать содержимое",tr:"İçeriği kopyala"}}},localId:"copy-button::local::../@intlayer/design-system/src/components/CopyButton/CopyButton.content.ts",location:"locale",filePath:"../@intlayer/design-system/src/components/CopyButton/CopyButton.content.ts"}],LB=[{key:"dictionary-detail-schema",autoFill:"./{{key}}.content.json",content:{titleRequiredError:{nodeType:"translation",translation:{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:"Пожалуйста, введите название вашей организации.",tr:"Lütfen organizasyonunuz için bir isim girin."}},titleInvalidTypeError:{nodeType:"translation",translation:{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:"Имя организации должно быть правильной строкой.",tr:"Organizasyon adı geçerli bir dize olmalıdır."}},titleMinLengthError:{nodeType:"translation",translation:{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 символов.",tr:"Organizasyon adı en az 4 karakter uzunluğunda olmalıdır."}},keyRequiredError:{nodeType:"translation",translation:{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:"Пожалуйста, введите ключ для вашей организации.",tr:"Lütfen organizasyonunuz için bir anahtar girin."}},keyInvalidTypeError:{nodeType:"translation",translation:{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:"Ключ должен быть правильной строкой.",tr:"Anahtar geçerli bir dize olmalıdır."}},keySpaceError:{nodeType:"translation",translation:{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:"Ключ не может содержать пробелы или специальные символы.",tr:"Anahtar boşluk veya özel karakterler içeremez."}},keyMinLengthError:{nodeType:"translation",translation:{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 символов.",tr:"Anahtar en az 4 karakter uzunluğunda olmalıdır."}},descriptionRequiredError:{nodeType:"translation",translation:{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:"Пожалуйста, введите описание вашей организации.",tr:"Lütfen organizasyonunuz için bir açıklama girin."}},descriptionInvalidTypeError:{nodeType:"translation",translation:{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:"Описание должно быть правильной строкой.",tr:"Açıklama geçerli bir dize olmalıdır."}},requiredErrorProjectId:{nodeType:"translation",translation:{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:"Пожалуйста, выберите проект",tr:"Lütfen bir proje seçin"}},invalidTypeErrorProjectId:{nodeType:"translation",translation:{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:"Пожалуйста, выберите действительный проект",tr:"Lütfen geçerli bir proje seçin"}},invalidTypeErrorTags:{nodeType:"translation",translation:{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:"Пожалуйста, введите действительный тег",tr:"Lütfen geçerli bir etiket girin"}}},localId:"dictionary-detail-schema::local::../@intlayer/design-system/src/components/DictionaryFieldEditor/DictionaryDetails/useDictionaryDetailsSchema.content.ts",location:"locale",filePath:"../@intlayer/design-system/src/components/DictionaryFieldEditor/DictionaryDetails/useDictionaryDetailsSchema.content.ts"}],PB=JSON.parse(`[{"key":"dictionary-details","content":{"titleInput":{"label":{"nodeType":"translation","translation":{"en":"Title","en-GB":"Title","fr":"Titre","es":"Título","de":"Titel","ja":"タイトル","ko":"제목","zh":"标题","it":"Titolo","pt":"Título","hi":"शीर्षक","ar":"العنوان","ru":"Заголовок","tr":"Başlık"}},"description":{"nodeType":"translation","translation":{"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":"Название вашего словаря позволяет легко его идентифицировать","tr":"Sözlüğünüzün başlığı, onu kolayca tanımlamanızı sağlar"}},"placeholder":{"nodeType":"translation","translation":{"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":"Введите название вашего словаря","tr":"Sözlüğünüzün başlığını girin"}}},"keyInput":{"label":{"nodeType":"translation","translation":{"en":"Key","en-GB":"Key","fr":"Clé","es":"Clave","de":"Schlüssel","ja":"キー","ko":"키","zh":"键","it":"Chiave","pt":"Chave","hi":"कुंजी","ar":"مفتاح","ru":"Ключ","tr":"Anahtar"}},"description":{"nodeType":"translation","translation":{"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":"Ключ вашего словаря используется для его идентификации в приложении","tr":"Sözlüğünüzün anahtarı, uygulamada onu tanımlamak için kullanılır"}},"placeholder":{"nodeType":"translation","translation":{"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":"Введите ключ вашего словаря","tr":"Sözlüğünüzün anahtarını girin"}}},"descriptionInput":{"label":{"nodeType":"translation","translation":{"en":"Description","en-GB":"Description","fr":"Description","es":"Descripción","de":"Beschreibung","ja":"説明","ko":"설명","zh":"描述","it":"Descrizione","pt":"Descrição","hi":"विवरण","ar":"الوصف","ru":"Описание","tr":"Açıklama"}},"placeholder":{"nodeType":"translation","translation":{"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":"Введите описание вашего словаря","tr":"Sözlüğünüzün açıklamasını girin"}},"description":{"nodeType":"translation","translation":{"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":"Описание вашего словаря позволяет легко его идентифицировать с помощью ключевых слов. Оно также используется для поиска вашего словаря и для помощи ИИ в понимании вашего словаря.","tr":"Sözlüğünüzün açıklaması, anahtar kelimeleri kullanarak onu kolayca tanımlamanızı sağlar. Ayrıca sözlüğünüzü aramak ve AI'nın sözlüğünüzü anlamasına yardımcı olmak için de kullanılır."}}},"projectInput":{"label":{"nodeType":"translation","translation":{"en":"Projects","en-GB":"Projects","fr":"Projets","es":"Proyectos","de":"Projekte","ja":"プロジェクト","ko":"프로젝트","zh":"项目","it":"Progetti","pt":"Projetos","hi":"परियोजनाएँ","ar":"المشاريع","ru":"Проекты","tr":"Projeler"}},"description":{"nodeType":"translation","translation":{"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":"Словарь можно ассоциировать с одним или несколькими проектами. Это позволяет загружать словарь в различных приложениях и делиться им между разными командами.","tr":"Sözlük, bir veya daha fazla projeyle ilişkilendirilebilir. Bu, sözlüğü farklı uygulamalarda yüklemenize ve farklı ekipler arasında paylaşmanıza olanak tanır."}},"placeholder":{"nodeType":"translation","translation":{"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":"Выберите один или несколько проектов, чтобы связать их с вашим словарем","tr":"Sözlüğünüzle ilişkilendirmek için bir veya daha fazla proje seçin"}}},"tagsSelect":{"label":{"nodeType":"translation","translation":{"en":"Tags","en-GB":"Tags","fr":"Tags","es":"Etiquetas","de":"Tags","ja":"タグ","ko":"태그","zh":"标签","it":"Tag","pt":"Tags","hi":"टैग","ar":"الوسوم","ru":"Теги","tr":"Etiketler"}},"description":{"nodeType":"translation","translation":{"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.","hi":"एक शब्दकोश को एक या अधिक टैग से जोड़ा जा सकता है। यह आपको विभिन्न अनुप्रयोगों में शब्दकोश लोड करने और विभिन्न टीमों के बीच साझा करने की अनुमति देता है।","ar":"يمكن ربط قاموس بواحد أو أكثر من الوسوم. يتيح لك تحميل القاموس في تطبيقات مختلفة ومشاركته بين فرق مختلفة.","ru":"Словарь можно связать с одним или несколькими тегами. Это позволяет загружать словарь в различных приложениях и делиться им между различными командами.","tr":"Sözlük, bir veya daha fazla etiketle ilişkilendirilebilir. Bu, sözlüğü farklı uygulamalarda yüklemenize ve farklı ekipler arasında paylaşmanıza olanak tanır."}},"placeholder":{"nodeType":"translation","translation":{"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":"Выберите теги, которые нужно связать с словарем","tr":"Sözlüğünüzle ilişkilendirmek için etiketleri seçin"}}},"auditButton":{"label":{"nodeType":"translation","translation":{"en":"Audit","fr":"Auditer","es":"Auditar","en-GB":"Audit","de":"Prüfen","ja":"監査","ko":"감사","zh":"审核","it":"Controllare","pt":"Auditar","hi":"ऑडिट","ar":"التدقيق","ru":"Отслеживание","tr":"Denetle"}},"text":{"nodeType":"translation","translation":{"en":"Audit","fr":"Auditer","es":"Auditar","en-GB":"Audit","de":"Prüfen","ja":"監査","ko":"감사","zh":"审核","it":"Controllare","pt":"Auditar","hi":"ऑडिट","ar":"التدقيق","ru":"Отслеживание","tr":"Denetle"}}}},"localId":"dictionary-details::local::../@intlayer/design-system/src/components/DictionaryFieldEditor/DictionaryDetails/dictionaryDetails.content.tsx","location":"locale","filePath":"../@intlayer/design-system/src/components/DictionaryFieldEditor/DictionaryDetails/dictionaryDetails.content.tsx"}]`),MB=[{key:"dictionary-edition-drawer",autoFill:"./{{key}}.content.json",content:{openDictionaryEditor:{label:{nodeType:"translation",translation:{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:{nodeType:"translation",translation:{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:{nodeType:"translation",translation:{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:{nodeType:"translation",translation:{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"}},focusedDictionaryNotFound:{nodeType:"translation",translation:{en:"Focused dictionary not found",fr:"Dictionnaire focalisé non trouvé",es:"Diccionario enfocado no encontrado",de:"Ausgewähltes Wörterbuch nicht gefunden",ja:"フォーカスされた辞書が見つかりません",ko:"포커스가 있는 사전이 없습니다",zh:"没有聚焦的词典",it:"Nessun dizionario selezionato",pt:"Nenhum dicionário focalizado",hi:"कोई फोकस शब्दकोश नहीं है",ar:"لا يوجد قاموس مرتبط",ru:"Нет фокусированного словаря","en-GB":"Focused dictionary not found"}}},localId:"dictionary-edition-drawer::local::client/src/components/Editor/DictionaryEditionDrawer/dictionaryEditionDrawer.content.ts",location:"locale",filePath:"client/src/components/Editor/DictionaryEditionDrawer/dictionaryEditionDrawer.content.ts"}],zB=[{key:"dictionary-field-editor",autoFill:"./{{key}}.content.json",content:{returnToDictionaryList:{label:{nodeType:"translation",translation:{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:"辞書リストに戻る",it:"Torna alla lista dei dizionari",pt:"Retornar à lista de dicionários",hi:"शब्दकोश सूची पर वापस जाएं",ar:"العودة إلى قائمة القوامل",ko:"사전 목록으로 돌아가기",zh:"返回字典列表",ru:"Вернуться к списку словарей",tr:"Sözlük listesine dön"}},text:{nodeType:"translation",translation:{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:"Список словарей",tr:"Sözlük listesi"}}}},localId:"dictionary-field-editor::local::../@intlayer/design-system/src/components/DictionaryFieldEditor/dictionaryFieldEditor.content.ts",location:"locale",filePath:"../@intlayer/design-system/src/components/DictionaryFieldEditor/dictionaryFieldEditor.content.ts"}],BB=[{key:"dictionary-form-schema",autoFill:"./{{key}}.content.json",content:{requiredErrorName:{nodeType:"translation",translation:{en:"Please enter a key for your dictionary","en-GB":"Please enter a key for your dictionary",fr:"Veuillez saisir une clef pour votre dictionaire",es:"Por favor, ingrese un clave para su diccionario",de:"Bitte geben Sie einen Schlüssel für Ihr Wörterbuch ein",ja:"辞書のキーを入力してください",ko:"사전 키를 입력해 주세요",zh:"请输入字典的键",it:"Si prega di inserire una chiave per il proprio dizionario",pt:"Por favor, insira uma chave para seu dicionário",hi:"कृपया अपने शब्दकोश के लिए एक कुंजी दर्ज करें",ar:"الرجاء إدخال مفتاح لقاموسك",ru:"Пожалуйста, введите ключ для вашего словаря",tr:"Lütfen sözlüğünüz için bir anahtar girin"}},invalidTypeErrorName:{nodeType:"translation",translation:{en:"Please enter a valid key for your dictionary","en-GB":"Please enter a valid key for your dictionary",fr:"Veuillez saisir une clée valide pour votre dictionaire",es:"Por favor, ingrese un clave válido para su diccionario",de:"Bitte geben Sie einen gültigen Schlüssel für Ihr Wörterbuch ein",ja:"辞書の有効なキーを入力してください",ko:"유효한 사전 키를 입력해 주세요",zh:"请输入字典的有效键",it:"Si prega di inserire una chiave valida per il proprio dizionario",pt:"Por favor, insira uma chave válida para seu dicionário",hi:"कृपया अपने शब्दकोश के लिए एक मान्य कुंजी दर्ज करें",ar:"الرجاء إدخال مفتاح صالح لقاموسك",ru:"Пожалуйста, введите действительный ключ для вашего словаря",tr:"Lütfen sözlüğünüz için geçerli bir anahtar girin"}},requiredErrorProjectId:{nodeType:"translation",translation:{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:"Пожалуйста, выберите проект",tr:"Lütfen bir proje seçin"}},invalidTypeErrorProjectId:{nodeType:"translation",translation:{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:"Пожалуйста, выберите действительный проект",tr:"Lütfen geçerli bir proje seçin"}}},localId:"dictionary-form-schema::local::../@intlayer/design-system/src/components/DictionaryFieldEditor/DictionaryCreationForm/useDictionaryFormSchema.content.ts",location:"locale",filePath:"../@intlayer/design-system/src/components/DictionaryFieldEditor/DictionaryCreationForm/useDictionaryFormSchema.content.ts"}],VB=[{key:"dictionary-form",autoFill:"./{{key}}.content.json",content:{keyInput:{label:{nodeType:"translation",translation:{en:"Key","en-GB":"Key",fr:"Clé",es:"Clave",de:"Schlüssel",ja:"キー",ko:"키",zh:"键",it:"Chiave",pt:"Chave",hi:"की",ar:"مفتاح",ru:"Ключ",tr:"Anahtar"}},placeholder:{nodeType:"translation",translation:{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:"Введите ключ вашего словаря",tr:"Sözlüğünüzün anahtarını girin"}}},projectInput:{label:{nodeType:"translation",translation:{en:"Projects","en-GB":"Projects",fr:"Projets",es:"Proyectos",de:"Projekte",ja:"プロジェクト",ko:"프로젝트",zh:"项目",it:"Progetti",pt:"Projetos",hi:"प्रोजेक्ट",ar:"مشاريع",ru:"Проекты",tr:"Projeler"}},placeholder:{nodeType:"translation",translation:{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:"Выберите один или несколько проектов для связывания со словарем",tr:"Sözlüğünüzle ilişkilendirmek için bir veya daha fazla proje seçin"}}},noDictionaryView:{title:{nodeType:"translation",translation:{en:"No dictionary","en-GB":"No dictionary",fr:"Aucun dictionnaire",es:"Sin diccionario",de:"Kein Wörterbuch",ja:"辞書がありません",ko:"사전이 없습니다",zh:"没有字典",it:"Nessun dizionario",pt:"Nenhum dicionário",hi:"कोई शब्दकोश नहीं",ar:"لا يوجد قاموس",ru:"Нет словаря",tr:"Hiç sözlük yok"}},description:{nodeType:"translation",translation:{en:"Create your first dictionary to start using Intlayer","en-GB":"Create your first dictionary to start using Intlayer",fr:"Créez votre premier dictionnaire pour commencer à utiliser Intlayer",es:"Cree su primer diccionario para comenzar a usar Intlayer",de:"Erstellen Sie Ihr erstes Wörterbuch, um Intlayer zu verwenden",ja:"Intlayerを使用するために最初の辞書を作成してください",ko:"Intlayer를 사용하려면 첫 번째 사전을 만들어주세요",zh:"创建您的第一个字典以开始使用Intlayer",it:"Crea il tuo primo dizionario per iniziare a usare Intlayer",pt:"Crie seu primeiro dicionário para começar a usar o Intlayer",hi:"Intlayer का उपयोग करने के लिए अपना पहला शब्दकोश बनाएं",ar:"أنشئ قاموسك الأول لبدء استخدام Intlayer",ru:"Создайте свой первый словарь, чтобы начать использовать Intlayer",tr:"Intlayer'ı kullanmaya başlamak için ilk sözlüğünüzü oluşturun"}}},dictionaryList:{title:{nodeType:"translation",translation:{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:"Список словарей",tr:"Sözlük listesi"}}},createDictionaryTitle:{nodeType:"translation",translation:{en:"No dictionary","en-GB":"No dictionary",fr:"Aucun dictionnaire",es:"Sin diccionario",de:"Kein Wörterbuch",ja:"辞書がありません",ko:"사전이 없습니다",zh:"没有字典",it:"Nessun dizionario",pt:"Nenhum dicionário",hi:"कोई शब्दकोश नहीं",ar:"لا يوجد قاموس",ru:"Нет словаря",tr:"Hiç sözlük yok"}},createDictionaryDescription:{nodeType:"translation",translation:{en:"Create your first dictionary to start using Intlayer","en-GB":"Create your first dictionary to start using Intlayer",fr:"Créez votre premier dictionnaire pour commencer à utiliser Intlayer",es:"Cree su primer diccionario para comenzar a usar Intlayer",de:"Erstellen Sie Ihr erstes Wörterbuch, um Intlayer zu verwenden",ja:"Intlayerを使用するために最初の辞書を作成してください",ko:"Intlayer를 사용하려면 첫 번째 사전을 만들어주세요",zh:"创建您的第一个字典以开始使用Intlayer",it:"Crea il tuo primo dizionario per iniziare a usare Intlayer",pt:"Crie seu primeiro dicionário para começar a usar o Intlayer",hi:"Intlayer का उपयोग करने के लिए अपना पहला शब्दकोश बनाएं",ar:"أنشئ قاموسك الأول لبدء استخدام Intlayer",ru:"Создайте свой первый словарь, чтобы начать использовать Intlayer",tr:"Intlayer'ı kullanmaya başlamak için ilk sözlüğünüzü oluşturun"}},createDictionaryButton:{text:{nodeType:"translation",translation:{en:"Create dictionary","en-GB":"Create dictionary",fr:"Créer un dictionnaire",es:"Crear un diccionario",de:"Wörterbuch erstellen",ja:"辞書を作成",ko:"사전 만들기",zh:"创建字典",it:"Crea dizionario",pt:"Criar dicionário",hi:"शब्दकोश बनाएँ",ar:"إنشاء قاموس",ru:"Создать словарь",tr:"Sözlük oluştur"}},ariaLabel:{nodeType:"translation",translation:{en:"Click to create dictionary","en-GB":"Click to create dictionary",fr:"Cliquez pour créer un dictionnaire",es:"Haga clic para crear un diccionario",de:"Klicken Sie, um ein Wörterbuch zu erstellen",ja:"辞書を作成するにはクリックしてください",ko:"사전을 만들려면 클릭하세요",zh:"点击创建字典",it:"Clicca per creare un dizionario",pt:"Clique para criar dicionário",hi:"शब्दकोश बनाने के लिए क्लिक करें",ar:"انقر لإنشاء قاموس",ru:"Нажмите, чтобы создать словарь",tr:"Sözlük oluşturmak için tıklayın"}}},editButton:{text:{nodeType:"translation",translation:{en:"Edit dictionary","en-GB":"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:"Редактировать словарь",tr:"Sözlüğü düzenle"}},ariaLabel:{nodeType:"translation",translation:{en:"Click to edit","en-GB":"Click to edit",fr:"Cliquez pour modifier",es:"Haga clic para editar",de:"Klicken Sie, um zu bearbeiten",ja:"編集するにはクリックしてください",ko:"편집하려면 클릭하세요",zh:"点击编辑",it:"Clicca per modificare",pt:"Clique para editar",hi:"संपादित करने के लिए क्लिक करें",ar:"انقر لتعديل",ru:"Нажмите, чтобы отредактировать",tr:"Düzenlemek için tıklayın"}}}},localId:"dictionary-form::local::../@intlayer/design-system/src/components/DictionaryFieldEditor/DictionaryCreationForm/dictionaryCreationForm.content.ts",location:"locale",filePath:"../@intlayer/design-system/src/components/DictionaryFieldEditor/DictionaryCreationForm/dictionaryCreationForm.content.ts"}],UB=[{key:"dictionary-list-drawer",content:{drawerTitle:{label:{nodeType:"translation",translation:{en:"Dictionary list","en-GB":"Dictionary list",fr:"Liste des dictionnaires",es:"Lista de diccionarios",de:"Wörterbuchliste",it:"Lista dei dizionari",pt:"Lista de dicionários",ru:"Список словарей",ja:"辞書リスト",ko:"사전 목록",zh:"字典列表",ar:"قائمة القواميس",hi:"शब्दकोश सूची"}}},buttonLabel:{label:{fields:["dictionaryLocalId","dictionaryLocalId","dictionaryLocalId","dictionaryLocalId","dictionaryLocalId","dictionaryLocalId","dictionaryLocalId","dictionaryLocalId","dictionaryLocalId","dictionaryLocalId","dictionaryLocalId","dictionaryLocalId","dictionaryLocalId"],nodeType:"insertion",insertion:{nodeType:"translation",translation:{en:"Open dictionary editor {{dictionaryLocalId}}","en-GB":"Open dictionary editor {{dictionaryLocalId}}",fr:"Ouvrir le dictionnaire dans l'éditeur {{dictionaryLocalId}}",es:"Abrir el diccionario en el editor {{dictionaryLocalId}}",de:"Wörterbuch-Editor öffnen {{dictionaryLocalId}}",it:"Apri editor dizionario {{dictionaryLocalId}}",pt:"Abrir editor de dicionário {{dictionaryLocalId}}",ru:"Открыть редактор словаря {{dictionaryLocalId}}",ja:"辞書エディタを開く {{dictionaryLocalId}}",ko:"사전 편집기 열기 {{dictionaryLocalId}}",zh:"打开字典编辑器 {{dictionaryLocalId}}",ar:"فتح محرر القاموس {{dictionaryLocalId}}",hi:"शब्दकोश संपादक खोलें {{dictionaryLocalId}}"}}}}},localId:"dictionary-list-drawer::local::client/src/components/Editor/DictionaryListDrawer/dictionaryListDrawer.content.ts",location:"locale",filePath:"client/src/components/Editor/DictionaryListDrawer/dictionaryListDrawer.content.ts"}],FB=[{key:"expand-collapse",autoFill:"./{{key}}.content.json",content:{expandCollapseContent:{nodeType:"condition",condition:{true:{nodeType:"translation",translation:{en:"Show all",fr:"Afficher tout",es:"Mostrar todo","en-GB":"Show all",de:"Mehr anzeigen",ja:"すべて表示",ko:"모두 보기",zh:"显示全部",it:"Mostra tutto",pt:"Mostrar tudo",hi:"सभी दिखाएँ",ar:"عرض الكل",ru:"Показать все",tr:"Hepsini göster"}},false:{nodeType:"translation",translation:{en:"Show less",fr:"Afficher moins",es:"Mostrar menos","en-GB":"Show less",de:"Weniger anzeigen",ja:"表示を減らす",ko:"간략히 보기",zh:"显示较少",it:"Mostra meno",pt:"Mostrar menos",hi:"कम दिखाएँ",ar:"عرض أقل",ru:"Показать меньше",tr:"Daha az göster"}}}}},localId:"expand-collapse::local::../@intlayer/design-system/src/components/ExpandCollapse/expandCollapse.content.ts",location:"locale",filePath:"../@intlayer/design-system/src/components/ExpandCollapse/expandCollapse.content.ts"}],$B=[{key:"loader",autoFill:"./{{key}}.content.json",content:{label:{nodeType:"translation",translation:{en:"Animated icon, meaning that the website is processing","en-GB":"Animated icon, meaning that the website is processing",fr:"Icône animée, signifiant que le site Web est en cours de traitement",es:"Icono animado, significa que el sitio web está procesando",de:"Animiertes Icon, das heißt, dass die Website in Bearbeitung ist",ja:"アニメーションアイコン、ウェブサイトが処理していることを意味する",ko:"애니메이션 아이콘, 웹 사이트가 처리 중인 의미",zh:"动画图标,意味着网站正在处理",it:"Icona animata, che significa che il sito web è in fase di elaborazione",pt:"Ícone animado, o que significa que o site está processando",hi:"एनिमेटेड आइकन, जो कि वेबसाइट को प्रसंस्करण हो रहा है इसका मतलब है",ar:"رمز متحرك، مما يعني أن الموقع الإلكتروني يتم التحميل",ru:"Анимационный значок, что означает, что сайт обрабатывается",tr:"Web sitesinin işlemde olduğunu belirten animasyonlu simge"}}},localId:"loader::local::../@intlayer/design-system/src/components/Loader/index.content.ts",location:"locale",filePath:"../@intlayer/design-system/src/components/Loader/index.content.ts"}],HB=[{key:"locale-switcher-content",autoFill:"./{{key}}.content.json",content:{localeSwitcherLabel:{nodeType:"translation",translation:{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:"Переключатель языка",tr:"Dil değiştirici"}},languageListLabel:{nodeType:"translation",translation:{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:"Список языков",tr:"Dil listesi"}},switchTo:{nodeType:"translation",translation:{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:"Переключиться на",tr:"Geçiş yap"}},searchInput:{text:{nodeType:"translation",translation:{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:"Поиск языка",tr:"Dil ara"}},placeholder:{nodeType:"translation",translation:{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:"Поиск языка",tr:"Dil ara"}},ariaLabel:{nodeType:"translation",translation:{en:"Language search","en-GB":"Language search",fr:"Recherche de langue",es:"Búsqueda de idioma",de:"Sprachsuche",ja:"言語検索",ko:"언어 검색",zh:"语言搜索",it:"Ricerca lingua",pt:"Pesquisa de idioma",hi:"भाषा खोजें",ar:"بحث اللغة",ru:"Поиск языка",tr:"Dil ara"}}},seeAllLocalesSwitch:{true:{nodeType:"translation",translation:{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:"Показать все языки",tr:"Tüm dilleri göster"}},false:{nodeType:"translation",translation:{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:"Показать только выбранные языки",tr:"Yalnızca seçilen dilleri göster"}}}},localId:"locale-switcher-content::local::../@intlayer/design-system/src/components/LocaleSwitcherContentDropDown/localeSwitcher.content.ts",location:"locale",filePath:"../@intlayer/design-system/src/components/LocaleSwitcherContentDropDown/localeSwitcher.content.ts"}],GB=[{key:"locale-switcher",autoFill:"./{{key}}.content.json",content:{localeSwitcherLabel:{nodeType:"translation",translation:{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:"Переключатель языка",tr:"Dil değiştirici"}},languageListLabel:{nodeType:"translation",translation:{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:"Список языков",tr:"Dil listesi"}},switchTo:{nodeType:"translation",translation:{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:"Переключиться на",tr:"Geçiş yap"}},searchInput:{text:{nodeType:"translation",translation:{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:"Поиск языка",tr:"Dil ara"}},placeholder:{nodeType:"translation",translation:{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:"Поиск языка",tr:"Dil ara"}},ariaLabel:{nodeType:"translation",translation:{en:"Language search","en-GB":"Language search",fr:"Recherche de langue",es:"Búsqueda de idioma",de:"Sprachsuche",ja:"言語検索",ko:"언어 검색",zh:"语言搜索",it:"Ricerca lingua",pt:"Pesquisa de idioma",hi:"भाषा खोजें",ar:"بحث اللغة",ru:"Поиск языка",tr:"Dil ara"}}}},localId:"locale-switcher::local::../@intlayer/design-system/src/components/LocaleSwitcherDropDown/localeSwitcher.content.ts",location:"locale",filePath:"../@intlayer/design-system/src/components/LocaleSwitcherDropDown/localeSwitcher.content.ts"}],KB=[{key:"long-press-message",autoFill:"./{{key}}.content.json",content:{message:{fields:["dictionaryKey","dictionaryKey","dictionaryKey","dictionaryKey","dictionaryKey","dictionaryKey","dictionaryKey","dictionaryKey","dictionaryKey","dictionaryKey","dictionaryKey","dictionaryKey","dictionaryKey"],nodeType:"insertion",insertion:{nodeType:"translation",translation:{en:'Long press to edit the "{{dictionaryKey}}" dictionary',fr:'Long press pour éditer le dictionnaire "{{dictionaryKey}}"',es:'Presiona largo para editar el diccionario "{{dictionaryKey}}"',de:'Lang press für Bearbeitung des Wörterbuchs "{{dictionaryKey}}"',it:'Premi a lungo per modificare il dizionario "{{dictionaryKey}}"',pt:'Pressione longa para editar o dicionário "{{dictionaryKey}}"',ru:'Длительное нажатие для редактирования словаря "{{dictionaryKey}}"',ja:'長押しして編集 "{{dictionaryKey}}" 辞書',ko:'길게 눌러 편집 "{{dictionaryKey}}" 사전',zh:'长按编辑 "{{dictionaryKey}}" 字典',"en-GB":'Long press to edit the "{{dictionaryKey}}" dictionary',ar:'اضغط طويلاً للتعديل "{{dictionaryKey}}"',hi:'लंग प्रेस करें टू एडिट "{{dictionaryKey}}"'}}}},localId:"long-press-message::local::client/src/components/Editor/LongPressMessage/index.content.ts",location:"locale",filePath:"client/src/components/Editor/LongPressMessage/index.content.ts"}],qB=[{key:"navigation-view",autoFill:"./{{key}}.content.json",content:{tsxNotEditable:{nodeType:"translation",translation:{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-узел не редактируемый",tr:"React düğümü düzenlenemez"}},goToField:{label:{nodeType:"translation",translation:{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:"Перейти к полю",tr:"Alana git"}}},addNewElement:{label:{nodeType:"translation",translation:{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:"Нажмите, чтобы добавить элемент",tr:"Eleman eklemek için tıklayın"}},text:{nodeType:"translation",translation:{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:"Добавить новый элемент",tr:"Yeni eleman ekle"}}},removeElement:{label:{nodeType:"translation",translation:{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:"Нажмите, чтобы удалить элемент",tr:"Elemanı kaldırmak için tıklayın"}},text:{nodeType:"translation",translation:{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:"Удалить элемент",tr:"Elemanı kaldır"}}},addNewEnumeration:{label:{nodeType:"translation",translation:{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:"Нажмите, чтобы добавить перечисление",tr:"Numaralandırma eklemek için tıklayın"}},text:{nodeType:"translation",translation:{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:"Добавить новое перечисление",tr:"Yeni numaralandırma ekle"}}},removeEnumeration:{label:{nodeType:"translation",translation:{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:"Нажмите, чтобы удалить перечисление",tr:"Numaralandırmayı kaldırmak için tıklayın"}},text:{nodeType:"translation",translation:{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:"Удалить перечисление",tr:"Numaralandırmayı kaldır"}}},addNewCondition:{label:{nodeType:"translation",translation:{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:"Нажмите, чтобы добавить условие",tr:"Koşul eklemek için tıklayın"}},text:{nodeType:"translation",translation:{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:"Добавить новое условие",tr:"Yeni koşul ekle"}}}},localId:"navigation-view::local::../@intlayer/design-system/src/components/DictionaryFieldEditor/NavigationView/navigationViewNode.content.ts",location:"locale",filePath:"../@intlayer/design-system/src/components/DictionaryFieldEditor/NavigationView/navigationViewNode.content.ts"}],WB=[{key:"no-application-url-view",autoFill:"./{{key}}.content.json",content:{title:{nodeType:"translation",translation:{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:{nodeType:"translation",translation:{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:{nodeType:"translation",translation:{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:{nodeType:"translation",translation:{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:"查看如何配置编辑器"}}}},localId:"no-application-url-view::local::client/src/components/Editor/NoApplicationURLView/noApplicationURLView.content.ts",location:"locale",filePath:"client/src/components/Editor/NoApplicationURLView/noApplicationURLView.content.ts"}],ZB=[{key:"node-type-selector",autoFill:"./{{key}}.content.json",content:{triggerPlaceHolder:{nodeType:"translation",translation:{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:"Тип узла",tr:"Düğüm türü"}},multilingual:{nodeType:"translation",translation:{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:"Многоязычный контент",tr:"Çok dilli içerik"}},text:{nodeType:"translation",translation:{en:"Text","en-GB":"Text",fr:"Texte",es:"Texto",de:"Text",ja:"テキスト",ko:"텍스트",zh:"文本",it:"Testo",pt:"Texto",hi:"पाठ",ar:"نص",ru:"Текст",tr:"Metin"}},number:{nodeType:"translation",translation:{en:"Number","en-GB":"Number",fr:"Nombre",es:"Número",de:"Zahl",ja:"数字",ko:"숫자",zh:"数字",it:"Numero",pt:"Número",hi:"संख्या",ar:"رقم",ru:"Число",tr:"Sayı"}},boolean:{nodeType:"translation",translation:{en:"Boolean","en-GB":"Boolean",fr:"Booléen",es:"Booleano",de:"Bool",ja:"ブール",ko:"불리언",zh:"布尔",it:"Booleano",pt:"Booleano",hi:"बूलियन",ar:"منطقي",ru:"Булево",tr:"Boolean"}},node:{nodeType:"translation",translation:{en:"Object","en-GB":"Object",fr:"Objet",es:"Objeto",de:"Objekt",ja:"オブジェクト",ko:"객체",zh:"对象",it:"Oggetto",pt:"Objeto",hi:"ऑब्जेक्ट",ar:"كائن",ru:"Объект",tr:"Nesne"}},array:{nodeType:"translation",translation:{en:"Array","en-GB":"Array",fr:"Tableau",es:"Arreglo",de:"Array",ja:"配列",ko:"배열",zh:"数组",it:"Array",pt:"Array",hi:"ऐरे",ar:"مصفوفة",ru:"Массив",tr:"Dizi"}},enumeration:{nodeType:"translation",translation:{en:"Enumeration","en-GB":"Enumeration",fr:"Énumération",es:"Enumeración",de:"Enumeration",ja:"列挙",ko:"열거",zh:"枚举",it:"Enumerazione",pt:"Enumeração",hi:"गणना",ar:"تعداد",ru:"Перечисление",tr:"Numaralandırma"}},nest:{nodeType:"translation",translation:{en:"Nesting","en-GB":"Nesting",fr:"Imbriquation",es:"Anidación",de:"Vererbung",ja:"ネスト",ko:"중첩",zh:"嵌套",it:"Nidificazione",pt:"Nido",hi:"नेस्टेंस",ar:"مستوى",ru:"Вложенность",tr:"İç içe geçme"}},insertion:{nodeType:"translation",translation:{en:"Insertion","en-GB":"Insertion",fr:"Insertion",es:"Inserción",de:"Einfügung",ja:"挿入",ko:"삽입",zh:"插入",it:"Inserimento",pt:"Inserção",hi:"सम्मिलन",ar:"إدراج",ru:"Вставка",tr:"Ekleme"}},condition:{nodeType:"translation",translation:{en:"Condition","en-GB":"Condition",fr:"Condition",es:"Condición",de:"Bedingung",ja:"条件",ko:"조건",zh:"条件",it:"Condizione",pt:"Condição",hi:"शर्त्ता",ar:"شرط",ru:"Условие",tr:"Koşul"}},file:{nodeType:"translation",translation:{en:"File","en-GB":"File",fr:"Fichier",es:"Archivo",de:"Datei",ja:"ファイル",ko:"파일",zh:"文件",it:"File",pt:"Arquivo",hi:"फ़ाइल",ar:"ملف",ru:"Файл",tr:"Dosya"}},markdown:{nodeType:"translation",translation:{en:"Markdown","en-GB":"Markdown",fr:"Markdown",es:"Markdown",de:"Markdown",ja:"マークダウン",ko:"마크다운",zh:"Markdown",it:"Markdown",pt:"Markdown",hi:"मार्कडाउन",ar:"مارك داون",ru:"Markdown",tr:"Markdown"}},reactNode:{nodeType:"translation",translation:{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:"Реакт узел",tr:"React Node"}}},localId:"node-type-selector::local::../@intlayer/design-system/src/components/DictionaryFieldEditor/nodeTypeSelector.content.ts",location:"locale",filePath:"../@intlayer/design-system/src/components/DictionaryFieldEditor/nodeTypeSelector.content.ts"}],YB=[{key:"save-dictionary-details",content:{deleteButton:{text:{nodeType:"translation",translation:{en:"Delete dictionary","en-GB":"Delete dictionary",fr:"Supprimer le dictionnaire",es:"Eliminar diccionario",de:"Wörterbuch löschen",ja:"辞書を削除",ko:"사전 삭제",zh:"删除字典",it:"Elimina dizionario",pt:"Excluir dicionário",hi:"शब्दकोश हटाएं",ar:"حذف القاموس",ru:"Удалить словарь",tr:"Sözlüğü sil"}},label:{nodeType:"translation",translation:{en:"Click to delete dictionary","en-GB":"Click to delete dictionary",fr:"Cliquez pour supprimer le dictionnaire",es:"Haga clic para eliminar el diccionario",de:"Klicken Sie, um das Wörterbuch zu löschen",ja:"辞書を削除するにはクリックしてください",ko:"사전을 삭제하려면 클릭하세요",zh:"单击以删除字典",it:"Fai clic per eliminare il dizionario",pt:"Clique para excluir o dicionário",hi:"शब्दकोश हटाने के लिए क्लिक करें",ar:"انقر لحذف القاموس",ru:"Нажмите, чтобы удалить словарь",tr:"Sözlüğü silmek için tıklayın"}}},resetButton:{text:{nodeType:"translation",translation:{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:"Сбросить все изменения",tr:"Tüm değişiklikleri sıfırla"}},label:{nodeType:"translation",translation:{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:"Нажмите, чтобы сбросить все изменения",tr:"Tüm değişiklikleri sıfırlamak için tıklayın"}}},saveButton:{text:{nodeType:"translation",translation:{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:"Сохранить изменения",tr:"Değişiklikleri kaydet"}},label:{nodeType:"translation",translation:{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:"Нажмите, чтобы сохранить изменения",tr:"Değişiklikleri kaydetmek için tıklayın"}}},publishButton:{text:{nodeType:"translation",translation:{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:"Опубликовать словарь",tr:"Sözlüğü yayınla"}},label:{nodeType:"translation",translation:{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:"Нажмите, чтобы опубликовать словарь",tr:"Sözlüğü yayınlamak için tıklayın"}}},downloadButton:{text:{nodeType:"translation",translation:{en:"Download","en-GB":"Download",fr:"Télécharger",es:"Descargar",de:"Herunterladen",ja:"ダウンロード",ko:"다운로드",zh:"下载",it:"Scarica",pt:"Baixar",hi:"डाउनलोड",ar:"تنزيل",ru:"Скачать",tr:"İndir"}},label:{nodeType:"translation",translation:{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:"Нажмите, чтобы скачать",tr:"İndirmek için tıklayın"}}},confirmation:{title:{nodeType:"translation",translation:{en:"Confirmation","en-GB":"Confirmation",fr:"Confirmation",es:"Confirmation",de:"Confirmation",ja:"確認",ko:"확인",zh:"确认",it:"Conferma",pt:"Confirmação",hi:"पुष्टि करें",ar:"تأكيد",ru:"Подтверждение",tr:"Onay"}},message:{nodeType:"translation",translation:{en:"This will overwrite the existing dictionary. Are you sure you want to continue?","en-GB":"This will overwrite the existing dictionary. Are you sure you want to continue?",fr:"Cela remplacera le dictionnaire existant. Êtes-vous sûr de vouloir continuer?",es:"Esto sobrescribirá el diccionario existente. ¿Estás seguro de que quieres continuar?",de:"Dies wird das existierende Wörterbuch überschreiben. Sind Sie sicher, dass Sie fortfahren möchten?",ja:"既存の辞書を上書きします。続行しますか?",ko:"이는 기존 사전을 덮어 쓸 것입니다. 계속하시겠습니까?",zh:"这将覆盖现有的字典。你确定要继续吗?",it:"Questo sovrascriverà il dizionario esistente. Sei sicuro di voler continuare?",pt:"Isso sobrescreverá o dicionário existente. Você tem certeza de que deseja continuar?",hi:"यह मौजूदा शब्दकोश को ओवरराइट करने जारी है। आप क्या आप जारी रखना चाहते हैं?",ar:"سيتم الكتابة على القاموس الحالي. هل أنت متأكد من أنك تريد المتابعة؟",ru:"Это перезапишет существующий словарь. Вы уверены, что хотите продолжить?",tr:"Bu, mevcut sözlüğün üzerine yazacaktır. Devam etmek istediğinizden emin misiniz?"}},confirmButton:{text:{nodeType:"translation",translation:{en:"Confirm","en-GB":"Confirm",fr:"Confirmer",es:"Confirmar",de:"Bestätigen",ja:"確認",ko:"확인",zh:"确认",it:"Conferma",pt:"Confirmar",hi:"पुष्टि करें",ar:"تأكيد",ru:"Подтвердить",tr:"Onayla"}},label:{nodeType:"translation",translation:{en:"Click to confirm","en-GB":"Click to confirm",fr:"Cliquez pour confirmer",es:"Haga clic para confirmar",de:"Klicken Sie, um zu bestätigen",ja:"確認するにはクリックしてください",ko:"확인을 클릭하세요",zh:"单击确认",it:"Fai clic per confermare",pt:"Clique para confirmar",hi:"पुष्टि करने के लिए क्लिक करें",ar:"انقر لتأكيد",ru:"Нажмите, чтобы подтвердить",tr:"Onaylamak için tıklayın"}}},cancelButton:{text:{nodeType:"translation",translation:{en:"Cancel","en-GB":"Cancel",fr:"Annuler",es:"Cancelar",de:"Abbrechen",ja:"キャンセル",ko:"취소",zh:"取消",it:"Annulla",pt:"Cancelar",hi:"रद्द करें",ar:"إلغاء",ru:"Отмена",tr:"İptal"}},label:{nodeType:"translation",translation:{en:"Click to cancel","en-GB":"Click to cancel",fr:"Cliquez pour annuler",es:"Haga clic para cancelar",de:"Klicken Sie, um abzubrechen",ja:"キャンセルするにはクリックしてください",ko:"취소를 클릭하세요",zh:"单击取消",it:"Fai clic per annullare",pt:"Clique para cancelar",hi:"रद्द करने के लिए क्लिक करें",ar:"انقر لإلغاء",ru:"Нажмите, чтобы отменить",tr:"İptal etmek için tıklayın"}}}}},localId:"save-dictionary-details::local::../@intlayer/design-system/src/components/DictionaryFieldEditor/SaveForm/saveForm.content.tsx",location:"locale",filePath:"../@intlayer/design-system/src/components/DictionaryFieldEditor/SaveForm/saveForm.content.tsx"}],XB=[{key:"structure-view",autoFill:"./{{key}}.content.json",content:{titleInput:{placeholder:{nodeType:"translation",translation:{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:"Введите ключ вашего узла",tr:"Düğümünüzün anahtarını girin"}}},deleteButton:{label:{nodeType:"translation",translation:{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:"Удалить узел из секции",tr:"Düğümü bölümden kaldır"}}},addNodeButton:{label:{nodeType:"translation",translation:{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:"Нажмите, чтобы добавить новый узел",tr:"Yeni bir düğüm eklemek için tıklayın"}},text:{nodeType:"translation",translation:{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:"Добавить новый узел",tr:"Yeni bir düğüm ekle"}}}},localId:"structure-view::local::../@intlayer/design-system/src/components/DictionaryFieldEditor/StructureView/structureView.content.ts",location:"locale",filePath:"../@intlayer/design-system/src/components/DictionaryFieldEditor/StructureView/structureView.content.ts"}],QB=[{key:"table",autoFill:"./{{key}}.content.json",content:{show:{nodeType:"translation",translation:{en:"Show all table content",fr:"Afficher tout le contenu du tableau",es:"Mostrar todo el contenido de la tabla","en-GB":"Show all table content",de:"Alle Tabellendaten anzeigen",ja:"テーブルのすべての内容を表示",ko:"테이블의 모든 내용 표시",zh:"显示表格的所有内容",it:"Mostra tutto il contenuto della tabella",pt:"Mostrar todo o conteúdo da tabela",hi:"सभी तालिका सामग्री दिखाएं",ar:"اظهار جميع محتويات الجدول",ru:"Показать все данные таблицы",tr:"Tüm tablo içeriğini göster"}}},localId:"table::local::../@intlayer/design-system/src/components/Table/table.content.ts",location:"locale",filePath:"../@intlayer/design-system/src/components/Table/table.content.ts"}],JB=[{key:"version-switcher",autoFill:"./{{key}}.content.json",content:{versionSwitcherLabel:{nodeType:"translation",translation:{en:"Version selector","en-GB":"Version selector",fr:"Sélecteur de version",es:"Selector de versión",de:"Version wähler",ja:"バージョンセレクター",ko:"버전 선택기",zh:"版本选择器",it:"Selettore di versione",pt:"Seletor de versão",hi:"संस्करण चयनकर्ता",ar:"منتقي الإصدار",ru:"Выбор версии",tr:"Sürüm seçici"}},versionListLabel:{nodeType:"translation",translation:{en:"Version list","en-GB":"Version list",fr:"Liste des versions",es:"Lista de versiones",de:"Versionsliste",ja:"バージョンリスト",ko:"버전 목록",zh:"版本列表",it:"Elenco delle versioni",pt:"Lista de versões",hi:"संस्करण सूची",ar:"قائمة الإصدارات",ru:"Список версий",tr:"Sürüm listesi"}},switchTo:{nodeType:"translation",translation:{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:"Переключиться на",tr:"Geçiş yap"}}},localId:"version-switcher::local::../@intlayer/design-system/src/components/DictionaryFieldEditor/VersionSwitcherDropDown/versionSwitcherDropDown.content.ts",location:"locale",filePath:"../@intlayer/design-system/src/components/DictionaryFieldEditor/VersionSwitcherDropDown/versionSwitcherDropDown.content.ts"}],eV={breadcrumb:IB,code:DB,"copy-button":jB,"dictionary-detail-schema":LB,"dictionary-details":PB,"dictionary-edition-drawer":MB,"dictionary-field-editor":zB,"dictionary-form-schema":BB,"dictionary-form":VB,"dictionary-list-drawer":UB,"expand-collapse":FB,loader:$B,"locale-switcher-content":HB,"locale-switcher":GB,"long-press-message":KB,"navigation-view":qB,"no-application-url-view":WB,"node-type-selector":ZB,"save-dictionary-details":YB,"structure-view":XB,table:QB,"version-switcher":JB},tV=(e,t,n=eV)=>{const r=n?.[e];if(!r)return null;for(const a of r)if(lr(a.content,t))return a},nV=(e,t,n)=>{let r=e,a=null,s=null;for(const l of n)a=r,(l.type===$.Object||l.type===$.Array)&&(s=l.key,r=r[l.key]),(l.type===$.Translation||l.type===$.Enumeration||l.type===$.Condition)&&(s=l.type,r=r[l.type][l.key]),(l.type===$.Markdown||l.type===$.ReactNode||l.type===$.Insertion||l.type===$.File)&&(s=l.type,r=r[l.type]);if(a&&s!==null)if(Array.isArray(a))a[s]=r;else{const l={};for(const u of Object.keys(a))u===s&&typeof t<"u"?l[t]=r:l[u]=a[u];Object.keys(a).forEach(u=>delete a[u]),Object.assign(a,l)}return e},rV=(e,t)=>JSON.stringify([e,t]),iV=e=>{const t=new Map;function n(r,a){if(e.name==="DisplayNames"&&typeof Intl?.DisplayNames!="function")return r;const s=rV(r??B.ENGLISH,a);let l=t.get(s);return l||(l=new e(r,a),t.set(s,l)),l}return n.prototype=e.prototype,n},aV=()=>new Proxy(Intl,{get:(e,t,n)=>{const r=Reflect.get(e,t,n);return typeof r=="function"&&/^[A-Z]/.test(String(t))?iV(r):r}}),oV=aV(),sV=e=>{switch(e){case B.ENGLISH:case B.FRENCH:case B.SPANISH:case B.PORTUGUESE:case B.GERMAN:case B.AFRIKAANS:case B.AZERI_LATIN:case B.BELARUSIAN:case B.BULGARIAN:case B.BOSNIAN:case B.CATALAN:case B.CZECH:case B.WELSH:case B.DANISH:case B.ESPERANTO:case B.ESTONIAN:case B.BASQUE:case B.FINNISH:case B.FAROESE:case B.GALICIAN:case B.GREEK:case B.CROATIAN:case B.HUNGARIAN:case B.ARMENIAN:case B.INDONESIAN:case B.ICELANDIC:case B.ITALIAN:case B.JAPANESE:case B.GEORGIAN:case B.KAZAKH:case B.KANNADA:case B.KOREAN:case B.KONKANI:case B.KYRGYZ:case B.LITHUANIAN:case B.LATVIAN:case B.MAORI:case B.FYRO_MACEDONIAN:case B.MONGOLIAN:case B.MARATHI:case B.MALAY:case B.MALTESE:case B.NORWEGIAN_BOKMAL:case B.DUTCH:case B.NORTHERN_SOTHO:case B.PUNJABI:case B.POLISH:case B.QUECHUA:case B.ROMANIAN:case B.RUSSIAN:case B.SANSKRIT:case B.SAMI_NORTHERN:case B.SLOVAK:case B.SLOVENIAN:case B.ALBANIAN:case B.SERBIAN_LATIN:case B.SWEDISH:case B.SWAHILI:case B.TAMIL:case B.TELUGU:case B.THAI:case B.TAGALOG:case B.TSWANA:case B.TURKISH:case B.UKRAINIAN:case B.UZBEK_LATIN:case B.VIETNAMESE:case B.XHOSA:case B.CHINESE_SIMPLIFIED:case B.CHINESE_TRADITIONAL:case B.ZULU:case B.AFRIKAANS_SOUTH_AFRICA:case B.AZERI_LATIN_AZERBAIJAN:case B.BELARUSIAN_BELARUS:case B.BULGARIAN_BULGARIA:case B.BOSNIAN_BOSNIA_AND_HERZEGOVINA:case B.CATALAN_SPAIN:case B.CZECH_CZECH_REPUBLIC:case B.WELSH_UNITED_KINGDOM:case B.DANISH_DENMARK:case B.GERMAN_AUSTRIA:case B.GERMAN_SWITZERLAND:case B.GERMAN_GERMANY:case B.GERMAN_LIECHTENSTEIN:case B.GERMAN_LUXEMBOURG:case B.GREEK_GREECE:case B.ENGLISH_AUSTRALIA:case B.ENGLISH_BELIZE:case B.ENGLISH_CANADA:case B.ENGLISH_CARIBBEAN:case B.ENGLISH_UNITED_KINGDOM:case B.ENGLISH_IRELAND:case B.ENGLISH_JAMAICA:case B.ENGLISH_NEW_ZEALAND:case B.ENGLISH_PHILIPPINES:case B.ENGLISH_TRINIDAD_AND_TOBAGO:case B.ENGLISH_UNITED_STATES:case B.ENGLISH_SOUTH_AFRICA:case B.ENGLISH_ZIMBABWE:case B.SPANISH_ARGENTINA:case B.SPANISH_BOLIVIA:case B.SPANISH_CHILE:case B.SPANISH_COLOMBIA:case B.SPANISH_COSTA_RICA:case B.SPANISH_DOMINICAN_REPUBLIC:case B.SPANISH_ECUADOR:case B.SPANISH_SPAIN:case B.SPANISH_GUATEMALA:case B.SPANISH_HONDURAS:case B.SPANISH_MEXICO:case B.SPANISH_NICARAGUA:case B.SPANISH_PANAMA:case B.SPANISH_PERU:case B.SPANISH_PUERTO_RICO:case B.SPANISH_PARAGUAY:case B.SPANISH_EL_SALVADOR:case B.SPANISH_URUGUAY:case B.SPANISH_VENEZUELA:case B.ESTONIAN_ESTONIA:case B.BASQUE_SPAIN:case B.FINNISH_FINLAND:case B.FAROESE_FAROE_ISLANDS:case B.FRENCH_BELGIUM:case B.FRENCH_CANADA:case B.FRENCH_SWITZERLAND:case B.FRENCH_FRANCE:case B.FRENCH_LUXEMBOURG:case B.FRENCH_PRINCIPALITY_OF_MONACO:case B.GALICIAN_SPAIN:case B.GUJARATI_INDIA:case B.HEBREW_ISRAEL:case B.HINDI_INDIA:case B.CROATIAN_BOSNIA_AND_HERZEGOVINA:case B.CROATIAN_CROATIA:case B.HUNGARIAN_HUNGARY:case B.ARMENIAN_ARMENIA:case B.INDONESIAN_INDONESIA:case B.ICELANDIC_ICELAND:case B.ITALIAN_SWITZERLAND:case B.ITALIAN_ITALY:case B.JAPANESE_JAPAN:case B.GEORGIAN_GEORGIA:case B.KAZAKH_KAZAKHSTAN:case B.KANNADA_INDIA:case B.KOREAN_KOREA:case B.KONKANI_INDIA:case B.KYRGYZ_KYRGYZSTAN:case B.LITHUANIAN_LITHUANIA:case B.LATVIAN_LATVIA:case B.MAORI_NEW_ZEALAND:case B.FYRO_MACEDONIAN_MACEDONIA:case B.MONGOLIAN_MONGOLIA:case B.MARATHI_INDIA:case B.MALAY_BRUNEI_DARUSSALAM:case B.MALAY_MALAYSIA:case B.MALTESE_MALTA:case B.NORWEGIAN_BOKMAL_NORWAY:case B.DUTCH_BELGIUM:case B.DUTCH_NETHERLANDS:case B.NORWEGIAN_NYNORSK_NORWAY:case B.NORTHERN_SOTHO_SOUTH_AFRICA:case B.PUNJABI_INDIA:case B.POLISH_POLAND:case B.PORTUGUESE_BRAZIL:case B.PORTUGUESE_PORTUGAL:case B.QUECHUA_BOLIVIA:case B.QUECHUA_ECUADOR:case B.QUECHUA_PERU:case B.ROMANIAN_ROMANIA:case B.RUSSIAN_RUSSIA:case B.SANSKRIT_INDIA:case B.SAMI_NORTHERN_FINLAND:case B.SAMI_NORTHERN_NORWAY:case B.SAMI_NORTHERN_SWEDEN:case B.SLOVAK_SLOVAKIA:case B.SLOVENIAN_SLOVENIA:case B.ALBANIAN_ALBANIA:case B.SERBIAN_LATIN_BOSNIA_AND_HERZEGOVINA:case B.SERBIAN_LATIN_SERBIA_AND_MONTENEGRO:case B.SWAHILI_KENYA:case B.TAMIL_INDIA:case B.TELUGU_INDIA:case B.THAI_THAILAND:case B.TAGALOG_PHILIPPINES:case B.TSWANA_SOUTH_AFRICA:case B.TURKISH_TURKEY:case B.TATAR_RUSSIA:case B.TSOGA:case B.UKRAINIAN_UKRAINE:case B.UZBEK_LATIN_UZBEKISTAN:case B.VIETNAMESE_VIET_NAM:case B.XHOSA_SOUTH_AFRICA:case B.CHINESE_HONG_KONG:case B.CHINESE_MACAU:case B.CHINESE_SINGAPORE:case B.ZULU_SOUTH_AFRICA:return"ltr";case B.ARABIC:case B.FARSI:case B.URDU:case B.PASHTO:case B.SYRIAC:case B.ARABIC_UNITED_ARAB_EMIRATES:case B.ARABIC_BAHRAIN:case B.ARABIC_ALGERIA:case B.ARABIC_EGYPT:case B.ARABIC_IRAQ:case B.ARABIC_JORDAN:case B.ARABIC_KUWAIT:case B.ARABIC_LEBANON:case B.ARABIC_LIBYA:case B.ARABIC_MOROCCO:case B.ARABIC_OMAN:case B.ARABIC_QATAR:case B.ARABIC_SAUDI_ARABIA:case B.ARABIC_SYRIA:case B.ARABIC_TUNISIA:case B.ARABIC_YEMEN:case B.FARSI_IRAN:case B.URDU_ISLAMIC_REPUBLIC_OF_PAKISTAN:case B.PASHTO_AFGHANISTAN:case B.SYRIAC_SYRIA:return"rtl";default:return"auto"}},$R=e=>/^[a-zA-Z][a-zA-Z\d+\-.]*:/.test(e),cf=(e,t=e)=>new oV.DisplayNames(t,{type:"language"}).of(e)??"Unknown locale",lV=(e,t=rt.internationalization.locales)=>{const n=$R(e);let r=e;e.endsWith("/")&&(r=e.slice(0,-1));const a=n?new URL(r):new URL(r,"http://example.com"),s=a.pathname;s.startsWith("/")||(a.pathname=`/${s}`);const l=s.split("/"),u=l[1];if(t.includes(u)){l.splice(1,1);const d=l.join("/")??"/";a.pathname=d}return n?a.toString():a.toString().replace("http://example.com","")},cV=(e,t=rt.internationalization.locales,n=rt.internationalization.defaultLocale,r=rt.middleware.prefixDefault)=>{const a=lV(e,t),s=$R(a),l=s?new URL(a):new URL(a,"http://example.com");let u=l.pathname;u.startsWith("/")||(u=`/${u}`);const d=s?`${l.protocol}//${l.host}`:"";return t.reduce((p,g)=>{const y=g.toString()===n.toString();let S=r||!y?`/${g}${u}`:u;S.length>1&&S.endsWith("/")&&(S=S.slice(0,-1));const A=s?`${d}${S}${l.search}${l.hash}`:`${S}${l.search}${l.hash}`;return p[g]=A,p},{})},uV=(e,t,n=rt.internationalization.locales,r=rt.internationalization.defaultLocale,a=rt.middleware.prefixDefault)=>cV(e,n,r,a)[t],dV=(e,t=rt.internationalization.locales,n=rt.internationalization.defaultLocale)=>{const r=[e].flat(),a=s=>s.trim().toLowerCase();try{for(const s of r){const l=a(s),u=t.find(p=>a(p)===l);if(u)return u;const[d]=l.split("-"),f=t.find(p=>a(p).split("-")[0]===d);if(f)return f}}catch{}return n},fV=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(s=>{const l=s.trim();return l.startsWith('"')&&l.endsWith('"')||!isNaN(Number(l))?l:`"${l}"`}).join(", ")}]`),JSON.parse(t)},HR=e=>{try{const t=e.split(/\r?\n/),n=t.find(u=>u.trim()!=="");if(!n||n.trim()!=="---")return{};const r={};let a=!1,s=null,l=[];for(let u=0;u<t.length;u++){const d=t[u];if(d.trim()==="---")if(a){s&&l.length>0&&(r[s]=l);break}else{a=!0;continue}if(a){const p=d.match(/^\s*-\s+(.+)$/);if(p&&s){l.push(p[1].trim());continue}s&&l.length>0&&(r[s]=l,s=null,l=[]);const g=d.match(/^([^:]+)\s*:\s*(.*)$/);if(g){const y=g[1].trim(),_=g[2].trim();if(_==="")s=y,l=[];else try{r[y]=fV(_)}catch{r[y]=_}}}}return r}catch{return{}}},Zc=(e,t)=>e.every((n,r)=>t[r]&&t[r].key===n.key&&t[r].type===n.type),hV=(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(/\/$/,""),s=r.pathname.replace(/\/$/,"");return!(a!==""&&s!==""&&a!==s)}catch(n){return console.error("Invalid URL(s)",n),!1}},pV=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)};var Sn=(e=>(e.INTLAYER_CONFIGURATION="INTLAYER_CONFIGURATION",e.INTLAYER_CURRENT_LOCALE="INTLAYER_CURRENT_LOCALE",e.INTLAYER_EDITOR_ENABLED="INTLAYER_EDITOR_ENABLED",e.INTLAYER_URL_CHANGE="INTLAYER_URL_CHANGE",e.INTLAYER_HOVERED_CONTENT_CHANGED="INTLAYER_HOVERED_CONTENT_CHANGED",e.INTLAYER_FOCUSED_CONTENT_CHANGED="INTLAYER_FOCUSED_CONTENT_CHANGED",e.INTLAYER_LOCALE_DICTIONARIES_CHANGED="INTLAYER_LOCALE_DICTIONARIES_CHANGED",e.INTLAYER_DISTANT_DICTIONARIES_CHANGED="INTLAYER_DISTANT_DICTIONARIES_CHANGED",e.INTLAYER_EDITED_CONTENT_CHANGED="INTLAYER_EDITED_CONTENT_CHANGED",e.INTLAYER_IFRAME_CLICKED="INTLAYER_IFRAME_CLICKED",e))(Sn||{});const on=[];for(let e=0;e<256;++e)on.push((e+256).toString(16).slice(1));function mV(e,t=0){return(on[e[t+0]]+on[e[t+1]]+on[e[t+2]]+on[e[t+3]]+"-"+on[e[t+4]]+on[e[t+5]]+"-"+on[e[t+6]]+on[e[t+7]]+"-"+on[e[t+8]]+on[e[t+9]]+"-"+on[e[t+10]]+on[e[t+11]]+on[e[t+12]]+on[e[t+13]]+on[e[t+14]]+on[e[t+15]]).toLowerCase()}let mg;const gV=new Uint8Array(16);function yV(){if(!mg){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");mg=crypto.getRandomValues.bind(crypto)}return mg(gV)}const vV=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),vA={randomUUID:vV};function bV(e,t,n){if(vA.randomUUID&&!e)return vA.randomUUID();e=e||{};const r=e.random??e.rng?.()??yV();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,mV(r)}const{editor:gg}=rt,GR=E.createContext({postMessage:()=>null,allowedOrigins:[gg?.applicationURL,gg?.editorURL,gg?.cmsURL],senderId:""}),bA=({children:e,allowedOrigins:t,postMessage:n})=>{const r=E.useRef(bV()),a=E.useMemo(()=>({postMessage:n,allowedOrigins:t,senderId:r.current}),[n,t,r.current]);return v.jsx(GR.Provider,{value:a,children:e})},sb=()=>E.useContext(GR),ws=(e,t,n)=>{const{allowedOrigins:r,postMessage:a,senderId:s}=sb();return E.useEffect(()=>{if(t){const u=d=>{const{type:f,data:p,senderId:g}=d.data;f===e&&g!==s&&(typeof r>"u"||r?.some(y=>hV(y,d.origin))||r?.includes("*"))&&t(p)};return window.addEventListener("message",u),()=>window.removeEventListener("message",u)}},[r,a,s,n]),u=>{a({type:e,data:u,senderId:s})}},_V=(e,t)=>typeof e=="function"?e(t):e,ia=(e,t,n)=>{const{postMessage:r,senderId:a}=sb(),{emit:s,receive:l}=n??{emit:!0,receive:!0},u=(_,S)=>{const A=_V(_,S);return s&&typeof r=="function"&&typeof A<"u"&&r({type:`${e}/post`,data:A,senderId:a}),A},d=()=>{typeof r=="function"&&r({type:`${e}/post`,data:f,senderId:a})},[f,p]=E.useState(()=>u(t)),g=_=>p(S=>u(_,S));ws(`${e}/post`,l?_=>{p(_)}:void 0);const y=(_,S)=>{s&&typeof r=="function"&&S!==a&&(typeof f>"u"||r({type:`${e}/post`,data:f,senderId:a}))};return ws(`${e}/get`,s?y:void 0,f),E.useEffect(()=>{l&&typeof r=="function"&&typeof f>"u"&&r({type:`${e}/get`,senderId:a})},[]),[f,g,d]},KR=E.createContext(void 0),EV=({children:e,configuration:t})=>v.jsx(KR.Provider,{value:t,children:e}),Gr=()=>E.useContext(KR),qR=E.createContext(void 0),WR=E.createContext(void 0),SV=({children:e})=>{const[t,n]=ia(Sn.INTLAYER_LOCALE_DICTIONARIES_CHANGED,void 0),r=E.useMemo(()=>({localeDictionaries:t??{}}),[t]),a=E.useMemo(()=>({setLocaleDictionaries:n,setLocaleDictionary:s=>{s.localId&&n(l=>({...l,[s.localId]:s}))}}),[n]);return v.jsx(qR.Provider,{value:r,children:v.jsx(WR.Provider,{value:a,children:e})})},dh=()=>E.useContext(WR),ZR=()=>{const e=dh(),t=E.useContext(qR);if(!t)throw new Error("useDictionariesRecordStates must be used within a DictionariesRecordProvider");return{...t,...e}},YR=E.createContext(void 0),xV=e=>ws(`${Sn.INTLAYER_EDITED_CONTENT_CHANGED}/get`,e),XR=E.createContext(void 0),_A=(e,t)=>typeof e=="function"?e(t):e,AV=({children:e})=>{const{localeDictionaries:t}=ZR(),[n,r]=ia(Sn.INTLAYER_EDITED_CONTENT_CHANGED),a=_=>{let S=_A(_);return r(A=>(S=_A(_,A?.[S.key]),{...A,[S.key]:S})),S},s=(_,S)=>{r(A=>({...A,[_]:{...A?.[_],content:S}}))},l=(_,S,A=[],C=!0)=>{r(w=>{const x=t[_]?.content,T=structuredClone(w?.[_]?.content??x);let N=A;if(!C){let I=0;const D=A.slice(0,-1),L=A[A.length-1];let H=L.key;for(;typeof lr(T,N)<"u";)I++,H=I===0?L.key:`${L.key} (${I})`,N=[...D,{...L,key:H}]}const R=yA(T,N,S);return{...w,[_]:{...w?.[_],content:R}}})},u=(_,S,A=[])=>{r(C=>{const w=t[_]?.content,x=structuredClone(C?.[_]?.content??w),T=nV(x,S,A);return{...C,[_]:{...C?.[_],content:T}}})},d=(_,S)=>{r(A=>{const C=t[_]?.content,w=structuredClone(A?.[_]?.content??C),x=lr(C,S),T=yA(w,S,x);return{...A,[_]:{...A?.[_],content:T}}})},f=_=>{r(S=>{const A={...S};return delete A[_],A})},p=_=>{r(S=>Object.entries(S).reduce((C,[w,x])=>w===_?C:{...C,[w]:x},{}))},g=()=>{r({})},y=(_,S)=>{if(!n)return;if(_.includes(":local:")||_.includes(":remote:")){const w=n?.[_]?.content??{};return lr(w,S)}const C=Object.keys(n).filter(w=>w.startsWith(`${_}:`));for(const w of C){const x=n?.[w]?.content??{},T=lr(x,S);if(T)return T}};return v.jsx(YR.Provider,{value:{editedContent:n},children:v.jsx(XR.Provider,{value:{setEditedContentState:r,setEditedDictionary:a,setEditedContent:s,addEditedContent:l,renameEditedContent:u,removeEditedContent:d,restoreEditedContent:f,clearEditedDictionaryContent:p,clearEditedContent:g,getEditedContentValue:y},children:e})})},Ls=()=>E.useContext(XR),xn=()=>{const e=E.useContext(YR),t=Ls();return{...e,...t}},QR=E.createContext({enabled:!1}),wV=e=>ia(Sn.INTLAYER_EDITOR_ENABLED,!1,e),TV=e=>ws(`${Sn.INTLAYER_EDITOR_ENABLED}/post`,e),JR=e=>ws(`${Sn.INTLAYER_EDITOR_ENABLED}/get`,e),CV=({children:e})=>{const[t]=wV({emit:!1,receive:!0});return v.jsx(QR.Provider,{value:{enabled:t},children:e})},e1=()=>E.useContext(QR),t1=E.createContext(void 0),n1=E.createContext(void 0),RV=({children:e})=>{const[t,n]=ia(Sn.INTLAYER_FOCUSED_CONTENT_CHANGED,null),r=a=>{n(s=>s&&{...s,keyPath:a})};return v.jsx(t1.Provider,{value:{focusedContent:t},children:v.jsx(n1.Provider,{value:{setFocusedContent:n,setFocusedContentKeyPath:r},children:e})})},lb=()=>{const e=E.useContext(n1);if(e===void 0)throw new Error("useFocusDictionaryActions must be used within a FocusDictionaryProvider");return e},da=()=>{const e=lb(),t=E.useContext(t1);if(t===void 0)throw new Error("useFocusDictionaryState must be used within a FocusDictionaryProvider");return{...t,...e}},EA=({children:e})=>{const t=xV();return E.useEffect(()=>{t()},[]),v.jsx(SV,{children:v.jsx(AV,{children:v.jsx(RV,{children:e})})})},kV=({children:e,fallback:t})=>{const n=JR(),{enabled:r}=e1();return E.useEffect(()=>{r||n()},[r]),r?e:t},NV=({children:e,fallback:t})=>{const[n,r]=E.useState(!1);return E.useEffect(()=>{r(window.self!==window.top)},[]),n?e:t},OV=({children:e,configuration:t,...n})=>v.jsx(CV,{children:v.jsx(EV,{configuration:t,children:n.mode==="editor"?v.jsx(bA,{...n,children:v.jsx(EA,{children:e})}):v.jsx(NV,{fallback:e,children:v.jsx(bA,{...n,children:v.jsx(kV,{fallback:e,children:v.jsx(EA,{children:e})})})})})}),IV=(e,t)=>ia(Sn.INTLAYER_URL_CHANGE,e,t),DV=()=>ws(Sn.INTLAYER_IFRAME_CLICKED,pV);/*! js-cookie v3.0.5 | MIT */function Id(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 jV={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 Ny(e,t){function n(a,s,l){if(!(typeof document>"u")){l=Id({},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 u="";for(var d in l)l[d]&&(u+="; "+d,l[d]!==!0&&(u+="="+l[d].split(";")[0]));return document.cookie=a+"="+e.write(s,a)+u}}function r(a){if(!(typeof document>"u"||arguments.length&&!a)){for(var s=document.cookie?document.cookie.split("; "):[],l={},u=0;u<s.length;u++){var d=s[u].split("="),f=d.slice(1).join("=");try{var p=decodeURIComponent(d[0]);if(l[p]=e.read(f,p),a===p)break}catch{}}return a?l[a]:l}}return Object.create({set:n,get:r,remove:function(a,s){n(a,"",Id({},s,{expires:-1}))},withAttributes:function(a){return Ny(this.converter,Id({},this.attributes,a))},withConverter:function(a){return Ny(Id({},this.converter,a),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(e)}})}var r1=Ny(jV,{path:"/"});const{cookieName:i1}=rt.middleware,LV={path:"/",expires:void 0,domain:void 0,secure:!1,sameSite:"strict"},cb=r1.get(i1),a1=e=>{r1.set(i1,e,LV)},PV=()=>({localeCookie:cb,setLocaleCookie:a1}),Yc=E.createContext({locale:cb??rt?.internationalization?.defaultLocale,setLocale:()=>null,disableEditor:!1}),MV=()=>E.useContext(Yc),zV=({locale:e,defaultLocale:t,children:n,setLocale:r,disableEditor:a})=>{const{internationalization:s}=rt??{},{defaultLocale:l,locales:u}=s??{},d=e??cb??t??l,[f,p]=ia(Sn.INTLAYER_CURRENT_LOCALE,d),y=r??(S=>{if(f.toString()!==S.toString()){if(!u?.map(String).includes(S)){console.error(`Locale ${S} is not available`);return}p(S),a1(S)}}),_=dV(e??f);return v.jsx(Yc.Provider,{value:{locale:_,setLocale:y,disableEditor:a},children:n})},Rf=({children:e,value:t,additionalProps:n})=>{const r=E.isValidElement(e)?e:v.jsx(v.Fragment,{children:e});return new Proxy(r,{get(a,s,l){return s==="value"?t:n&&Object.keys(n).includes(s)?n[s]:Reflect.get(a,s,l)}})},BV=(e,t,n)=>VR(e,t,[s1,l1,c1]),cn=(e,t)=>{const{locale:n}=E.useContext(Yc);return E.useMemo(()=>BV(e,n),[e,n,t])},ub=({onLocaleChange:e}={})=>{const{defaultLocale:t,locales:n}=rt?.internationalization??{},{locale:r,setLocale:a}=E.useContext(Yc),{setLocaleCookie:s}=PV(),l=E.useCallback(u=>{if(!n?.map(String).includes(u)){console.error(`Locale ${u} is not available`);return}a(u),s(u),e?.(u)},[n,e,s,a]);return{locale:r,defaultLocale:t,availableLocales:n,setLocale:l}},VV=250,UV=({children:e,onPress:t,onHover:n,onUnhover:r,onClickOutside:a,pressDuration:s=VV,isSelecting:l,...u})=>{const d=E.useRef(null),[f,p]=E.useState(!1),[g,y]=E.useState(l),_=E.useRef(null),S=typeof e=="string",A=()=>{y(!0),t()},C=()=>{_.current=setTimeout(()=>{A()},s)},w=()=>{_.current&&(clearTimeout(_.current),_.current=null)},x=()=>{w(),C()},T=()=>{p(!0),n?.()},N=()=>{r?.(),p(!1),w()},R=E.useCallback(L=>{d.current&&!d.current.contains(L.target)&&(y(!1),a?.())},[a]);E.useEffect(()=>(document.addEventListener("mousedown",R),()=>{document.removeEventListener("mousedown",R)}),[R]);const I=L=>{g&&(L.preventDefault(),L.stopPropagation())},D=()=>{y(!1)};return v.jsx("span",{style:{display:S?"inline":"inline-block",cursor:"pointer",userSelect:"none",borderRadius:"0.375rem",outlineWidth:"2px",outlineOffset:"4px",outlineStyle:"solid",outlineColor:l||g||f?"inherit":"transparent",transition:"all 100ms 50ms ease-in-out"},role:"button",tabIndex:0,onKeyUp:()=>null,onClick:I,onMouseDown:x,onMouseUp:N,onMouseLeave:N,onTouchStart:x,onTouchEnd:N,onTouchCancel:N,onBlur:D,onMouseEnter:T,ref:d,...u,children:e})},FV=({children:e,dictionaryKey:t,keyPath:n})=>{const{focusedContent:r,setFocusedContent:a}=da(),{postMessage:s,senderId:l}=sb(),u=E.useCallback(()=>a({dictionaryKey:t,keyPath:n}),[t,n]),d=E.useCallback(()=>s({type:`${Sn.INTLAYER_HOVERED_CONTENT_CHANGED}/post`,data:{dictionaryKey:t,keyPath:n},senderId:l}),[t,n]),f=E.useCallback(()=>s({type:`${Sn.INTLAYER_HOVERED_CONTENT_CHANGED}/post`,data:null,senderId:l}),[l]),p=E.useMemo(()=>(r?.dictionaryKey===t&&(r?.keyPath?.length??0)>0&&Zc(r?.keyPath??[],n))??!1,[r,n,t]);return v.jsx(UV,{onPress:u,onHover:d,onUnhover:f,isSelecting:p,children:e})},kf=({children:e,...t})=>{const{enabled:n}=e1(),{disableEditor:r}=MV();return n&&!r?v.jsx(FV,{...t,children:e}):e},db=({dictionaryKey:e,keyPath:t,children:n})=>{const r=Ls();return r?r.getEditedContentValue(e,t)??n:n},$V=e=>{const t=db(e);if(typeof t=="object"){const n=ob(t,e,e.locale);return typeof n!="string"?(console.error(`Incorrect edited content format. Content type: ${typeof n}. Expected string. Value ${JSON.stringify(n)}`),e.children):n}return t},HV=E.createContext({renderMarkdown:e=>e}),GV=()=>E.useContext(HV),KV=({dictionaryKey:e,keyPath:t,children:n,locale:r})=>{const{renderMarkdown:a}=GV(),s=db({dictionaryKey:e,keyPath:t,children:n});if(typeof s!="string"){const l=ob(s,{dictionaryKey:e,keyPath:t},r);return typeof l!="string"?(console.error(`Incorrect Markdown content. Edited Markdown content type: ${typeof l}. Expected string. Value ${JSON.stringify(l)}`),a(n)):a(l)}return a(s)},qV=({dictionaryKey:e,keyPath:t,children:n,metadataKeyPath:r})=>{const a=db({dictionaryKey:e,keyPath:t,children:n}),s=HR(a);return lr(s,r)},o1=e=>{if(typeof e=="string")return e;const n=(s=>{if(s?.props&&typeof s.props.children=="object"){const l=[],{children:u}=s.props;return Object.keys(u??{}).forEach(d=>{l.push(o1((u??{})[d]))}),{...s,props:{...s.props,children:l}}}return{...s,props:{...s.props,children:s.props?.children??[]}}})(e),{type:r,props:a}=n;return E.createElement(r??"span",a,...a.children)},s1={id:"intlayer-node-plugin",canHandle:e=>typeof e=="bigint"||typeof e=="string"||typeof e=="number",transform:(e,{plugins:t,...n})=>Rf({...n,value:n.children,children:E.createElement(kf,{...n,key:n.children},v.jsx($V,{...n,children:n.children}))})},l1={id:"react-node-plugin",canHandle:e=>typeof e=="object"&&typeof e.props<"u"&&typeof e.key<"u",transform:(e,{plugins:t,...n})=>Rf({...n,value:"[[react-element]]",children:v.jsx(kf,{...n,children:o1(e)})})},WV={id:"markdown-string-plugin",canHandle:e=>typeof e=="string",transform:(e,t,n)=>{const{plugins:r,...a}=t,s=HR(e),u=n(s,{plugins:[{id:"markdown-metadata-plugin",canHandle:d=>typeof d=="string"||typeof d=="number"||typeof d=="boolean"||!d,transform:(d,f)=>Rf({...f,value:d,children:v.jsx(kf,{...a,children:v.jsx(qV,{...a,metadataKeyPath:f.keyPath,children:e})})})}],dictionaryKey:a.dictionaryKey,keyPath:[]});return Rf({...t,value:e,children:v.jsx(kf,{...a,children:v.jsx(KV,{...a,children:e})}),additionalProps:{metadata:u}})}},c1={id:"markdown-plugin",canHandle:e=>typeof e=="object"&&e?.nodeType===$.Markdown,transform:(e,t,n)=>{const r=[...t.keyPath,{type:$.Markdown}],a=e[$.Markdown];return n(a,{...t,children:a,keyPath:r,plugins:[WV,...t.plugins??[]]})}},ZV=(e,t,n)=>BR(e,t,[s1,l1,c1]),Xc=(e,t)=>{const{locale:n}=E.useContext(Yc);return E.useMemo(()=>ZV(e,n),[e,n,t])};/**
|
|
52
|
-
* react-router v7.9.2
|
|
53
|
-
*
|
|
54
|
-
* Copyright (c) Remix Software Inc.
|
|
55
|
-
*
|
|
56
|
-
* This source code is licensed under the MIT license found in the
|
|
57
|
-
* LICENSE.md file in the root directory of this source tree.
|
|
58
|
-
*
|
|
59
|
-
* @license MIT
|
|
60
|
-
*/var SA="popstate";function YV(e={}){function t(r,a){let{pathname:s,search:l,hash:u}=r.location;return Oy("",{pathname:s,search:l,hash:u},a.state&&a.state.usr||null,a.state&&a.state.key||"default")}function n(r,a){return typeof a=="string"?a:Nc(a)}return QV(t,n,null,e)}function At(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function $r(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function XV(){return Math.random().toString(36).substring(2,10)}function xA(e,t){return{usr:e.state,key:e.key,idx:t}}function Oy(e,t,n=null,r){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?Ps(t):t,state:n,key:t&&t.key||r||XV()}}function Nc({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 Ps(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 QV(e,t,n,r={}){let{window:a=document.defaultView,v5Compat:s=!1}=r,l=a.history,u="POP",d=null,f=p();f==null&&(f=0,l.replaceState({...l.state,idx:f},""));function p(){return(l.state||{idx:null}).idx}function g(){u="POP";let C=p(),w=C==null?null:C-f;f=C,d&&d({action:u,location:A.location,delta:w})}function y(C,w){u="PUSH";let x=Oy(A.location,C,w);f=p()+1;let T=xA(x,f),N=A.createHref(x);try{l.pushState(T,"",N)}catch(R){if(R instanceof DOMException&&R.name==="DataCloneError")throw R;a.location.assign(N)}s&&d&&d({action:u,location:A.location,delta:1})}function _(C,w){u="REPLACE";let x=Oy(A.location,C,w);f=p();let T=xA(x,f),N=A.createHref(x);l.replaceState(T,"",N),s&&d&&d({action:u,location:A.location,delta:0})}function S(C){return JV(C)}let A={get action(){return u},get location(){return e(a,l)},listen(C){if(d)throw new Error("A history only accepts one active listener");return a.addEventListener(SA,g),d=C,()=>{a.removeEventListener(SA,g),d=null}},createHref(C){return t(a,C)},createURL:S,encodeLocation(C){let w=S(C);return{pathname:w.pathname,search:w.search,hash:w.hash}},push:y,replace:_,go(C){return l.go(C)}};return A}function JV(e,t=!1){let n="http://localhost";typeof window<"u"&&(n=window.location.origin!=="null"?window.location.origin:window.location.href),At(n,"No window.location.(origin|href) available to create URL");let r=typeof e=="string"?e:Nc(e);return r=r.replace(/ $/,"%20"),!t&&r.startsWith("//")&&(r=n+r),new URL(r,n)}function u1(e,t,n="/"){return eU(e,t,n,!1)}function eU(e,t,n,r){let a=typeof t=="string"?Ps(t):t,s=gi(a.pathname||"/",n);if(s==null)return null;let l=d1(e);tU(l);let u=null;for(let d=0;u==null&&d<l.length;++d){let f=fU(s);u=uU(l[d],f,r)}return u}function d1(e,t=[],n=[],r="",a=!1){let s=(l,u,d=a,f)=>{let p={relativePath:f===void 0?l.path||"":f,caseSensitive:l.caseSensitive===!0,childrenIndex:u,route:l};if(p.relativePath.startsWith("/")){if(!p.relativePath.startsWith(r)&&d)return;At(p.relativePath.startsWith(r),`Absolute route path "${p.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),p.relativePath=p.relativePath.slice(r.length)}let g=mi([r,p.relativePath]),y=n.concat(p);l.children&&l.children.length>0&&(At(l.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${g}".`),d1(l.children,t,y,g,d)),!(l.path==null&&!l.index)&&t.push({path:g,score:lU(g,l.index),routesMeta:y})};return e.forEach((l,u)=>{if(l.path===""||!l.path?.includes("?"))s(l,u);else for(let d of f1(l.path))s(l,u,!0,d)}),t}function f1(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,a=n.endsWith("?"),s=n.replace(/\?$/,"");if(r.length===0)return a?[s,""]:[s];let l=f1(r.join("/")),u=[];return u.push(...l.map(d=>d===""?s:[s,d].join("/"))),a&&u.push(...l),u.map(d=>e.startsWith("/")&&d===""?"/":d)}function tU(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:cU(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}var nU=/^:[\w-]+$/,rU=3,iU=2,aU=1,oU=10,sU=-2,AA=e=>e==="*";function lU(e,t){let n=e.split("/"),r=n.length;return n.some(AA)&&(r+=sU),t&&(r+=iU),n.filter(a=>!AA(a)).reduce((a,s)=>a+(nU.test(s)?rU:s===""?aU:oU),r)}function cU(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 uU(e,t,n=!1){let{routesMeta:r}=e,a={},s="/",l=[];for(let u=0;u<r.length;++u){let d=r[u],f=u===r.length-1,p=s==="/"?t:t.slice(s.length)||"/",g=Nf({path:d.relativePath,caseSensitive:d.caseSensitive,end:f},p),y=d.route;if(!g&&f&&n&&!r[r.length-1].route.index&&(g=Nf({path:d.relativePath,caseSensitive:d.caseSensitive,end:!1},p)),!g)return null;Object.assign(a,g.params),l.push({params:a,pathname:mi([s,g.pathname]),pathnameBase:gU(mi([s,g.pathnameBase])),route:y}),g.pathnameBase!=="/"&&(s=mi([s,g.pathnameBase]))}return l}function Nf(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=dU(e.path,e.caseSensitive,e.end),a=t.match(n);if(!a)return null;let s=a[0],l=s.replace(/(.)\/+$/,"$1"),u=a.slice(1);return{params:r.reduce((f,{paramName:p,isOptional:g},y)=>{if(p==="*"){let S=u[y]||"";l=s.slice(0,s.length-S.length).replace(/(.)\/+$/,"$1")}const _=u[y];return g&&!_?f[p]=void 0:f[p]=(_||"").replace(/%2F/g,"/"),f},{}),pathname:s,pathnameBase:l,pattern:e}}function dU(e,t=!1,n=!0){$r(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,u,d)=>(r.push({paramName:u,isOptional:d!=null}),d?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(r.push({paramName:"*"}),a+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?a+="\\/*$":e!==""&&e!=="/"&&(a+="(?:(?=\\/|$))"),[new RegExp(a,t?void 0:"i"),r]}function fU(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return $r(!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 gi(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 hU(e,t="/"){let{pathname:n,search:r="",hash:a=""}=typeof e=="string"?Ps(e):e;return{pathname:n?n.startsWith("/")?n:pU(n,t):t,search:yU(r),hash:vU(a)}}function pU(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 yg(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 mU(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function h1(e){let t=mU(e);return t.map((n,r)=>r===t.length-1?n.pathname:n.pathnameBase)}function p1(e,t,n,r=!1){let a;typeof e=="string"?a=Ps(e):(a={...e},At(!a.pathname||!a.pathname.includes("?"),yg("?","pathname","search",a)),At(!a.pathname||!a.pathname.includes("#"),yg("#","pathname","hash",a)),At(!a.search||!a.search.includes("#"),yg("#","search","hash",a)));let s=e===""||a.pathname==="",l=s?"/":a.pathname,u;if(l==null)u=n;else{let g=t.length-1;if(!r&&l.startsWith("..")){let y=l.split("/");for(;y[0]==="..";)y.shift(),g-=1;a.pathname=y.join("/")}u=g>=0?t[g]:"/"}let d=hU(a,u),f=l&&l!=="/"&&l.endsWith("/"),p=(s||l===".")&&n.endsWith("/");return!d.pathname.endsWith("/")&&(f||p)&&(d.pathname+="/"),d}var mi=e=>e.join("/").replace(/\/\/+/g,"/"),gU=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),yU=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,vU=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function bU(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}var m1=["POST","PUT","PATCH","DELETE"];new Set(m1);var _U=["GET",...m1];new Set(_U);var Ms=E.createContext(null);Ms.displayName="DataRouter";var fh=E.createContext(null);fh.displayName="DataRouterState";E.createContext(!1);var g1=E.createContext({isTransitioning:!1});g1.displayName="ViewTransition";var EU=E.createContext(new Map);EU.displayName="Fetchers";var SU=E.createContext(null);SU.displayName="Await";var Kr=E.createContext(null);Kr.displayName="Navigation";var Qc=E.createContext(null);Qc.displayName="Location";var Si=E.createContext({outlet:null,matches:[],isDataRoute:!1});Si.displayName="Route";var fb=E.createContext(null);fb.displayName="RouteError";function xU(e,{relative:t}={}){At(Jc(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=E.useContext(Kr),{hash:a,pathname:s,search:l}=eu(e,{relative:t}),u=s;return n!=="/"&&(u=s==="/"?n:mi([n,s])),r.createHref({pathname:u,search:l,hash:a})}function Jc(){return E.useContext(Qc)!=null}function fa(){return At(Jc(),"useLocation() may be used only in the context of a <Router> component."),E.useContext(Qc).location}var y1="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function v1(e){E.useContext(Kr).static||E.useLayoutEffect(e)}function AU(){let{isDataRoute:e}=E.useContext(Si);return e?MU():wU()}function wU(){At(Jc(),"useNavigate() may be used only in the context of a <Router> component.");let e=E.useContext(Ms),{basename:t,navigator:n}=E.useContext(Kr),{matches:r}=E.useContext(Si),{pathname:a}=fa(),s=JSON.stringify(h1(r)),l=E.useRef(!1);return v1(()=>{l.current=!0}),E.useCallback((d,f={})=>{if($r(l.current,y1),!l.current)return;if(typeof d=="number"){n.go(d);return}let p=p1(d,JSON.parse(s),a,f.relative==="path");e==null&&t!=="/"&&(p.pathname=p.pathname==="/"?t:mi([t,p.pathname])),(f.replace?n.replace:n.push)(p,f.state,f)},[t,n,s,a,e])}E.createContext(null);function eu(e,{relative:t}={}){let{matches:n}=E.useContext(Si),{pathname:r}=fa(),a=JSON.stringify(h1(n));return E.useMemo(()=>p1(e,JSON.parse(a),r,t==="path"),[e,a,r,t])}function TU(e,t){return b1(e,t)}function b1(e,t,n,r,a){At(Jc(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:s}=E.useContext(Kr),{matches:l}=E.useContext(Si),u=l[l.length-1],d=u?u.params:{},f=u?u.pathname:"/",p=u?u.pathnameBase:"/",g=u&&u.route;{let x=g&&g.path||"";_1(f,!g||x.endsWith("*")||x.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${f}" (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.
|
|
61
|
-
|
|
62
|
-
Please change the parent <Route path="${x}"> to <Route path="${x==="/"?"*":`${x}/*`}">.`)}let y=fa(),_;if(t){let x=typeof t=="string"?Ps(t):t;At(p==="/"||x.pathname?.startsWith(p),`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 "${p}" but pathname "${x.pathname}" was given in the \`location\` prop.`),_=x}else _=y;let S=_.pathname||"/",A=S;if(p!=="/"){let x=p.replace(/^\//,"").split("/");A="/"+S.replace(/^\//,"").split("/").slice(x.length).join("/")}let C=u1(e,{pathname:A});$r(g||C!=null,`No routes matched location "${_.pathname}${_.search}${_.hash}" `),$r(C==null||C[C.length-1].route.element!==void 0||C[C.length-1].route.Component!==void 0||C[C.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 w=OU(C&&C.map(x=>Object.assign({},x,{params:Object.assign({},d,x.params),pathname:mi([p,s.encodeLocation?s.encodeLocation(x.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:x.pathname]),pathnameBase:x.pathnameBase==="/"?p:mi([p,s.encodeLocation?s.encodeLocation(x.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:x.pathnameBase])})),l,n,r,a);return t&&w?E.createElement(Qc.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",..._},navigationType:"POP"}},w):w}function CU(){let e=PU(),t=bU(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},s={padding:"2px 4px",backgroundColor:r},l=null;return console.error("Error handled by React Router default ErrorBoundary:",e),l=E.createElement(E.Fragment,null,E.createElement("p",null,"💿 Hey developer 👋"),E.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",E.createElement("code",{style:s},"ErrorBoundary")," or"," ",E.createElement("code",{style:s},"errorElement")," prop on your route.")),E.createElement(E.Fragment,null,E.createElement("h2",null,"Unexpected Application Error!"),E.createElement("h3",{style:{fontStyle:"italic"}},t),n?E.createElement("pre",{style:a},n):null,l)}var RU=E.createElement(CU,null),kU=class extends E.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){this.props.unstable_onError?this.props.unstable_onError(e,t):console.error("React Router caught the following error during render",e)}render(){return this.state.error!==void 0?E.createElement(Si.Provider,{value:this.props.routeContext},E.createElement(fb.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function NU({routeContext:e,match:t,children:n}){let r=E.useContext(Ms);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),E.createElement(Si.Provider,{value:e},n)}function OU(e,t=[],n=null,r=null,a=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 s=e,l=n?.errors;if(l!=null){let f=s.findIndex(p=>p.route.id&&l?.[p.route.id]!==void 0);At(f>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(l).join(",")}`),s=s.slice(0,Math.min(s.length,f+1))}let u=!1,d=-1;if(n)for(let f=0;f<s.length;f++){let p=s[f];if((p.route.HydrateFallback||p.route.hydrateFallbackElement)&&(d=f),p.route.id){let{loaderData:g,errors:y}=n,_=p.route.loader&&!g.hasOwnProperty(p.route.id)&&(!y||y[p.route.id]===void 0);if(p.route.lazy||_){u=!0,d>=0?s=s.slice(0,d+1):s=[s[0]];break}}}return s.reduceRight((f,p,g)=>{let y,_=!1,S=null,A=null;n&&(y=l&&p.route.id?l[p.route.id]:void 0,S=p.route.errorElement||RU,u&&(d<0&&g===0?(_1("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),_=!0,A=null):d===g&&(_=!0,A=p.route.hydrateFallbackElement||null)));let C=t.concat(s.slice(0,g+1)),w=()=>{let x;return y?x=S:_?x=A:p.route.Component?x=E.createElement(p.route.Component,null):p.route.element?x=p.route.element:x=f,E.createElement(NU,{match:p,routeContext:{outlet:f,matches:C,isDataRoute:n!=null},children:x})};return n&&(p.route.ErrorBoundary||p.route.errorElement||g===0)?E.createElement(kU,{location:n.location,revalidation:n.revalidation,component:S,error:y,children:w(),routeContext:{outlet:null,matches:C,isDataRoute:!0},unstable_onError:r}):w()},null)}function hb(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function IU(e){let t=E.useContext(Ms);return At(t,hb(e)),t}function DU(e){let t=E.useContext(fh);return At(t,hb(e)),t}function jU(e){let t=E.useContext(Si);return At(t,hb(e)),t}function pb(e){let t=jU(e),n=t.matches[t.matches.length-1];return At(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function LU(){return pb("useRouteId")}function PU(){let e=E.useContext(fb),t=DU("useRouteError"),n=pb("useRouteError");return e!==void 0?e:t.errors?.[n]}function MU(){let{router:e}=IU("useNavigate"),t=pb("useNavigate"),n=E.useRef(!1);return v1(()=>{n.current=!0}),E.useCallback(async(a,s={})=>{$r(n.current,y1),n.current&&(typeof a=="number"?e.navigate(a):await e.navigate(a,{fromRouteId:t,...s}))},[e,t])}var wA={};function _1(e,t,n){!t&&!wA[e]&&(wA[e]=!0,$r(!1,n))}E.memo(zU);function zU({routes:e,future:t,state:n,unstable_onError:r}){return b1(e,void 0,n,r,t)}function E1(e){At(!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 BU({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:a,static:s=!1}){At(!Jc(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let l=e.replace(/^\/*/,"/"),u=E.useMemo(()=>({basename:l,navigator:a,static:s,future:{}}),[l,a,s]);typeof n=="string"&&(n=Ps(n));let{pathname:d="/",search:f="",hash:p="",state:g=null,key:y="default"}=n,_=E.useMemo(()=>{let S=gi(d,l);return S==null?null:{location:{pathname:S,search:f,hash:p,state:g,key:y},navigationType:r}},[l,d,f,p,g,y,r]);return $r(_!=null,`<Router basename="${l}"> is not able to match the URL "${d}${f}${p}" because it does not start with the basename, so the <Router> won't render anything.`),_==null?null:E.createElement(Kr.Provider,{value:u},E.createElement(Qc.Provider,{children:t,value:_}))}function VU({children:e,location:t}){return TU(Iy(e),t)}function Iy(e,t=[]){let n=[];return E.Children.forEach(e,(r,a)=>{if(!E.isValidElement(r))return;let s=[...t,a];if(r.type===E.Fragment){n.push.apply(n,Iy(r.props.children,s));return}At(r.type===E1,`[${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>`),At(!r.props.index||!r.props.children,"An index route cannot have child routes.");let l={id:r.props.id||s.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,middleware:r.props.middleware,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=Iy(r.props.children,s)),n.push(l)}),n}var uf="get",df="application/x-www-form-urlencoded";function hh(e){return e!=null&&typeof e.tagName=="string"}function UU(e){return hh(e)&&e.tagName.toLowerCase()==="button"}function FU(e){return hh(e)&&e.tagName.toLowerCase()==="form"}function $U(e){return hh(e)&&e.tagName.toLowerCase()==="input"}function HU(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function GU(e,t){return e.button===0&&(!t||t==="_self")&&!HU(e)}var Dd=null;function KU(){if(Dd===null)try{new FormData(document.createElement("form"),0),Dd=!1}catch{Dd=!0}return Dd}var qU=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function vg(e){return e!=null&&!qU.has(e)?($r(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${df}"`),null):e}function WU(e,t){let n,r,a,s,l;if(FU(e)){let u=e.getAttribute("action");r=u?gi(u,t):null,n=e.getAttribute("method")||uf,a=vg(e.getAttribute("enctype"))||df,s=new FormData(e)}else if(UU(e)||$U(e)&&(e.type==="submit"||e.type==="image")){let u=e.form;if(u==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let d=e.getAttribute("formaction")||u.getAttribute("action");if(r=d?gi(d,t):null,n=e.getAttribute("formmethod")||u.getAttribute("method")||uf,a=vg(e.getAttribute("formenctype"))||vg(u.getAttribute("enctype"))||df,s=new FormData(u,e),!KU()){let{name:f,type:p,value:g}=e;if(p==="image"){let y=f?`${f}.`:"";s.append(`${y}x`,"0"),s.append(`${y}y`,"0")}else f&&s.append(f,g)}}else{if(hh(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=uf,r=null,a=df,l=e}return s&&a==="text/plain"&&(l=s,s=void 0),{action:r,method:n.toLowerCase(),encType:a,formData:s,body:l}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function mb(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function ZU(e,t,n){let r=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return r.pathname==="/"?r.pathname=`_root.${n}`:t&&gi(r.pathname,t)==="/"?r.pathname=`${t.replace(/\/$/,"")}/_root.${n}`:r.pathname=`${r.pathname.replace(/\/$/,"")}.${n}`,r}async function YU(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 XU(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 QU(e,t,n){let r=await Promise.all(e.map(async a=>{let s=t.routes[a.route.id];if(s){let l=await YU(s,n);return l.links?l.links():[]}return[]}));return n2(r.flat(1).filter(XU).filter(a=>a.rel==="stylesheet"||a.rel==="preload").map(a=>a.rel==="stylesheet"?{...a,rel:"prefetch",as:"style"}:{...a,rel:"prefetch"}))}function TA(e,t,n,r,a,s){let l=(d,f)=>n[f]?d.route.id!==n[f].route.id:!0,u=(d,f)=>n[f].pathname!==d.pathname||n[f].route.path?.endsWith("*")&&n[f].params["*"]!==d.params["*"];return s==="assets"?t.filter((d,f)=>l(d,f)||u(d,f)):s==="data"?t.filter((d,f)=>{let p=r.routes[d.route.id];if(!p||!p.hasLoader)return!1;if(l(d,f)||u(d,f))return!0;if(d.route.shouldRevalidate){let g=d.route.shouldRevalidate({currentUrl:new URL(a.pathname+a.search+a.hash,window.origin),currentParams:n[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:d.params,defaultShouldRevalidate:!0});if(typeof g=="boolean")return g}return!0}):[]}function JU(e,t,{includeHydrateFallback:n}={}){return e2(e.map(r=>{let a=t.routes[r.route.id];if(!a)return[];let s=[a.module];return a.clientActionModule&&(s=s.concat(a.clientActionModule)),a.clientLoaderModule&&(s=s.concat(a.clientLoaderModule)),n&&a.hydrateFallbackModule&&(s=s.concat(a.hydrateFallbackModule)),a.imports&&(s=s.concat(a.imports)),s}).flat(1))}function e2(e){return[...new Set(e)]}function t2(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function n2(e,t){let n=new Set;return new Set(t),e.reduce((r,a)=>{let s=JSON.stringify(t2(a));return n.has(s)||(n.add(s),r.push({key:s,link:a})),r},[])}function S1(){let e=E.useContext(Ms);return mb(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function r2(){let e=E.useContext(fh);return mb(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var gb=E.createContext(void 0);gb.displayName="FrameworkContext";function x1(){let e=E.useContext(gb);return mb(e,"You must render this element inside a <HydratedRouter> element"),e}function i2(e,t){let n=E.useContext(gb),[r,a]=E.useState(!1),[s,l]=E.useState(!1),{onFocus:u,onBlur:d,onMouseEnter:f,onMouseLeave:p,onTouchStart:g}=t,y=E.useRef(null);E.useEffect(()=>{if(e==="render"&&l(!0),e==="viewport"){let A=w=>{w.forEach(x=>{l(x.isIntersecting)})},C=new IntersectionObserver(A,{threshold:.5});return y.current&&C.observe(y.current),()=>{C.disconnect()}}},[e]),E.useEffect(()=>{if(r){let A=setTimeout(()=>{l(!0)},100);return()=>{clearTimeout(A)}}},[r]);let _=()=>{a(!0)},S=()=>{a(!1),l(!1)};return n?e!=="intent"?[s,y,{}]:[s,y,{onFocus:Xl(u,_),onBlur:Xl(d,S),onMouseEnter:Xl(f,_),onMouseLeave:Xl(p,S),onTouchStart:Xl(g,_)}]:[!1,y,{}]}function Xl(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function a2({page:e,...t}){let{router:n}=S1(),r=E.useMemo(()=>u1(n.routes,e,n.basename),[n.routes,e,n.basename]);return r?E.createElement(s2,{page:e,matches:r,...t}):null}function o2(e){let{manifest:t,routeModules:n}=x1(),[r,a]=E.useState([]);return E.useEffect(()=>{let s=!1;return QU(e,t,n).then(l=>{s||a(l)}),()=>{s=!0}},[e,t,n]),r}function s2({page:e,matches:t,...n}){let r=fa(),{manifest:a,routeModules:s}=x1(),{basename:l}=S1(),{loaderData:u,matches:d}=r2(),f=E.useMemo(()=>TA(e,t,d,a,r,"data"),[e,t,d,a,r]),p=E.useMemo(()=>TA(e,t,d,a,r,"assets"),[e,t,d,a,r]),g=E.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let S=new Set,A=!1;if(t.forEach(w=>{let x=a.routes[w.route.id];!x||!x.hasLoader||(!f.some(T=>T.route.id===w.route.id)&&w.route.id in u&&s[w.route.id]?.shouldRevalidate||x.hasClientLoader?A=!0:S.add(w.route.id))}),S.size===0)return[];let C=ZU(e,l,"data");return A&&S.size>0&&C.searchParams.set("_routes",t.filter(w=>S.has(w.route.id)).map(w=>w.route.id).join(",")),[C.pathname+C.search]},[l,u,r,a,f,t,e,s]),y=E.useMemo(()=>JU(p,a),[p,a]),_=o2(p);return E.createElement(E.Fragment,null,g.map(S=>E.createElement("link",{key:S,rel:"prefetch",as:"fetch",href:S,...n})),y.map(S=>E.createElement("link",{key:S,rel:"modulepreload",href:S,...n})),_.map(({key:S,link:A})=>E.createElement("link",{key:S,nonce:n.nonce,...A})))}function l2(...e){return t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})}}var A1=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{A1&&(window.__reactRouterVersion="7.9.2")}catch{}function c2({basename:e,children:t,window:n}){let r=E.useRef();r.current==null&&(r.current=YV({window:n,v5Compat:!0}));let a=r.current,[s,l]=E.useState({action:a.action,location:a.location}),u=E.useCallback(d=>{E.startTransition(()=>l(d))},[l]);return E.useLayoutEffect(()=>a.listen(u),[a,u]),E.createElement(BU,{basename:e,children:t,location:s.location,navigationType:s.action,navigator:a})}var w1=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,T1=E.forwardRef(function({onClick:t,discover:n="render",prefetch:r="none",relative:a,reloadDocument:s,replace:l,state:u,target:d,to:f,preventScrollReset:p,viewTransition:g,...y},_){let{basename:S}=E.useContext(Kr),A=typeof f=="string"&&w1.test(f),C,w=!1;if(typeof f=="string"&&A&&(C=f,A1))try{let H=new URL(window.location.href),Z=f.startsWith("//")?new URL(H.protocol+f):new URL(f),q=gi(Z.pathname,S);Z.origin===H.origin&&q!=null?f=q+Z.search+Z.hash:w=!0}catch{$r(!1,`<Link to="${f}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let x=xU(f,{relative:a}),[T,N,R]=i2(r,y),I=h2(f,{replace:l,state:u,target:d,preventScrollReset:p,relative:a,viewTransition:g});function D(H){t&&t(H),H.defaultPrevented||I(H)}let L=E.createElement("a",{...y,...R,href:C||x,onClick:w||s?t:D,ref:l2(_,N),target:d,"data-discover":!A&&n==="render"?"true":void 0});return T&&!A?E.createElement(E.Fragment,null,L,E.createElement(a2,{page:x})):L});T1.displayName="Link";var u2=E.forwardRef(function({"aria-current":t="page",caseSensitive:n=!1,className:r="",end:a=!1,style:s,to:l,viewTransition:u,children:d,...f},p){let g=eu(l,{relative:f.relative}),y=fa(),_=E.useContext(fh),{navigator:S,basename:A}=E.useContext(Kr),C=_!=null&&v2(g)&&u===!0,w=S.encodeLocation?S.encodeLocation(g).pathname:g.pathname,x=y.pathname,T=_&&_.navigation&&_.navigation.location?_.navigation.location.pathname:null;n||(x=x.toLowerCase(),T=T?T.toLowerCase():null,w=w.toLowerCase()),T&&A&&(T=gi(T,A)||T);const N=w!=="/"&&w.endsWith("/")?w.length-1:w.length;let R=x===w||!a&&x.startsWith(w)&&x.charAt(N)==="/",I=T!=null&&(T===w||!a&&T.startsWith(w)&&T.charAt(w.length)==="/"),D={isActive:R,isPending:I,isTransitioning:C},L=R?t:void 0,H;typeof r=="function"?H=r(D):H=[r,R?"active":null,I?"pending":null,C?"transitioning":null].filter(Boolean).join(" ");let Z=typeof s=="function"?s(D):s;return E.createElement(T1,{...f,"aria-current":L,className:H,ref:p,style:Z,to:l,viewTransition:u},typeof d=="function"?d(D):d)});u2.displayName="NavLink";var d2=E.forwardRef(({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:r,replace:a,state:s,method:l=uf,action:u,onSubmit:d,relative:f,preventScrollReset:p,viewTransition:g,...y},_)=>{let S=g2(),A=y2(u,{relative:f}),C=l.toLowerCase()==="get"?"get":"post",w=typeof u=="string"&&w1.test(u),x=T=>{if(d&&d(T),T.defaultPrevented)return;T.preventDefault();let N=T.nativeEvent.submitter,R=N?.getAttribute("formmethod")||l;S(N||T.currentTarget,{fetcherKey:t,method:R,navigate:n,replace:a,state:s,relative:f,preventScrollReset:p,viewTransition:g})};return E.createElement("form",{ref:_,method:C,action:A,onSubmit:r?d:x,...y,"data-discover":!w&&e==="render"?"true":void 0})});d2.displayName="Form";function f2(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function C1(e){let t=E.useContext(Ms);return At(t,f2(e)),t}function h2(e,{target:t,replace:n,state:r,preventScrollReset:a,relative:s,viewTransition:l}={}){let u=AU(),d=fa(),f=eu(e,{relative:s});return E.useCallback(p=>{if(GU(p,t)){p.preventDefault();let g=n!==void 0?n:Nc(d)===Nc(f);u(e,{replace:g,state:r,preventScrollReset:a,relative:s,viewTransition:l})}},[d,u,f,n,r,t,e,a,s,l])}var p2=0,m2=()=>`__${String(++p2)}__`;function g2(){let{router:e}=C1("useSubmit"),{basename:t}=E.useContext(Kr),n=LU();return E.useCallback(async(r,a={})=>{let{action:s,method:l,encType:u,formData:d,body:f}=WU(r,t);if(a.navigate===!1){let p=a.fetcherKey||m2();await e.fetch(p,n,a.action||s,{preventScrollReset:a.preventScrollReset,formData:d,body:f,formMethod:a.method||l,formEncType:a.encType||u,flushSync:a.flushSync})}else await e.navigate(a.action||s,{preventScrollReset:a.preventScrollReset,formData:d,body:f,formMethod:a.method||l,formEncType:a.encType||u,replace:a.replace,state:a.state,fromRouteId:n,flushSync:a.flushSync,viewTransition:a.viewTransition})},[e,t,n])}function y2(e,{relative:t}={}){let{basename:n}=E.useContext(Kr),r=E.useContext(Si);At(r,"useFormAction must be used inside a RouteContext");let[a]=r.matches.slice(-1),s={...eu(e||".",{relative:t})},l=fa();if(e==null){s.search=l.search;let u=new URLSearchParams(s.search),d=u.getAll("index");if(d.some(p=>p==="")){u.delete("index"),d.filter(g=>g).forEach(g=>u.append("index",g));let p=u.toString();s.search=p?`?${p}`:""}}return(!e||e===".")&&a.route.index&&(s.search=s.search?s.search.replace(/^\?/,"?index&"):"?index"),n!=="/"&&(s.pathname=s.pathname==="/"?n:mi([n,s.pathname])),Nc(s)}function v2(e,{relative:t}={}){let n=E.useContext(g1);At(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=C1("useViewTransitionState"),a=eu(e,{relative:t});if(!n.isTransitioning)return!1;let s=gi(n.currentLocation.pathname,r)||n.currentLocation.pathname,l=gi(n.nextLocation.pathname,r)||n.nextLocation.pathname;return Nf(a.pathname,l)!=null||Nf(a.pathname,s)!=null}var ho=LR();const b2=ib(ho);/**
|
|
63
|
-
* @license lucide-react v0.544.0 - ISC
|
|
64
|
-
*
|
|
65
|
-
* This source code is licensed under the ISC license.
|
|
66
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
67
|
-
*/const _2=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),E2=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,r)=>r?r.toUpperCase():n.toLowerCase()),CA=e=>{const t=E2(e);return t.charAt(0).toUpperCase()+t.slice(1)},R1=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim(),S2=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};/**
|
|
68
|
-
* @license lucide-react v0.544.0 - ISC
|
|
69
|
-
*
|
|
70
|
-
* This source code is licensed under the ISC license.
|
|
71
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
72
|
-
*/var x2={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"};/**
|
|
73
|
-
* @license lucide-react v0.544.0 - ISC
|
|
74
|
-
*
|
|
75
|
-
* This source code is licensed under the ISC license.
|
|
76
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
77
|
-
*/const A2=E.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:a="",children:s,iconNode:l,...u},d)=>E.createElement("svg",{ref:d,...x2,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:R1("lucide",a),...!s&&!S2(u)&&{"aria-hidden":"true"},...u},[...l.map(([f,p])=>E.createElement(f,p)),...Array.isArray(s)?s:[s]]));/**
|
|
78
|
-
* @license lucide-react v0.544.0 - ISC
|
|
79
|
-
*
|
|
80
|
-
* This source code is licensed under the ISC license.
|
|
81
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
82
|
-
*/const yt=(e,t)=>{const n=E.forwardRef(({className:r,...a},s)=>E.createElement(A2,{ref:s,iconNode:t,className:R1(`lucide-${_2(CA(e))}`,`lucide-${e}`,r),...a}));return n.displayName=CA(e),n};/**
|
|
83
|
-
* @license lucide-react v0.544.0 - ISC
|
|
84
|
-
*
|
|
85
|
-
* This source code is licensed under the ISC license.
|
|
86
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
87
|
-
*/const w2=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],T2=yt("arrow-left",w2);/**
|
|
88
|
-
* @license lucide-react v0.544.0 - ISC
|
|
89
|
-
*
|
|
90
|
-
* This source code is licensed under the ISC license.
|
|
91
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
92
|
-
*/const C2=[["path",{d:"m18 9-6-6-6 6",key:"kcunyi"}],["path",{d:"M12 3v14",key:"7cf3v8"}],["path",{d:"M5 21h14",key:"11awu3"}]],R2=yt("arrow-up-from-line",C2);/**
|
|
93
|
-
* @license lucide-react v0.544.0 - ISC
|
|
94
|
-
*
|
|
95
|
-
* This source code is licensed under the ISC license.
|
|
96
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
97
|
-
*/const k2=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],zs=yt("check",k2);/**
|
|
98
|
-
* @license lucide-react v0.544.0 - ISC
|
|
99
|
-
*
|
|
100
|
-
* This source code is licensed under the ISC license.
|
|
101
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
102
|
-
*/const N2=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],k1=yt("chevron-down",N2);/**
|
|
103
|
-
* @license lucide-react v0.544.0 - ISC
|
|
104
|
-
*
|
|
105
|
-
* This source code is licensed under the ISC license.
|
|
106
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
107
|
-
*/const O2=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],I2=yt("chevron-left",O2);/**
|
|
108
|
-
* @license lucide-react v0.544.0 - ISC
|
|
109
|
-
*
|
|
110
|
-
* This source code is licensed under the ISC license.
|
|
111
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
112
|
-
*/const D2=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],Of=yt("chevron-right",D2);/**
|
|
113
|
-
* @license lucide-react v0.544.0 - ISC
|
|
114
|
-
*
|
|
115
|
-
* This source code is licensed under the ISC license.
|
|
116
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
117
|
-
*/const j2=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],L2=yt("chevron-up",j2);/**
|
|
118
|
-
* @license lucide-react v0.544.0 - ISC
|
|
119
|
-
*
|
|
120
|
-
* This source code is licensed under the ISC license.
|
|
121
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
122
|
-
*/const P2=[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]],M2=yt("chevrons-up-down",P2);/**
|
|
123
|
-
* @license lucide-react v0.544.0 - ISC
|
|
124
|
-
*
|
|
125
|
-
* This source code is licensed under the ISC license.
|
|
126
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
127
|
-
*/const z2=[["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"}]],B2=yt("copy-check",z2);/**
|
|
128
|
-
* @license lucide-react v0.544.0 - ISC
|
|
129
|
-
*
|
|
130
|
-
* This source code is licensed under the ISC license.
|
|
131
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
132
|
-
*/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"}]],U2=yt("copy",V2);/**
|
|
133
|
-
* @license lucide-react v0.544.0 - ISC
|
|
134
|
-
*
|
|
135
|
-
* This source code is licensed under the ISC license.
|
|
136
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
137
|
-
*/const F2=[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]],$2=yt("download",F2);/**
|
|
138
|
-
* @license lucide-react v0.544.0 - ISC
|
|
139
|
-
*
|
|
140
|
-
* This source code is licensed under the ISC license.
|
|
141
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
142
|
-
*/const H2=[["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"}]],G2=yt("external-link",H2);/**
|
|
143
|
-
* @license lucide-react v0.544.0 - ISC
|
|
144
|
-
*
|
|
145
|
-
* This source code is licensed under the ISC license.
|
|
146
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
147
|
-
*/const K2=[["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"}]],q2=yt("eye-off",K2);/**
|
|
148
|
-
* @license lucide-react v0.544.0 - ISC
|
|
149
|
-
*
|
|
150
|
-
* This source code is licensed under the ISC license.
|
|
151
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
152
|
-
*/const W2=[["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"}]],Z2=yt("eye",W2);/**
|
|
153
|
-
* @license lucide-react v0.544.0 - ISC
|
|
154
|
-
*
|
|
155
|
-
* This source code is licensed under the ISC license.
|
|
156
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
157
|
-
*/const Y2=[["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"}]],X2=yt("globe",Y2);/**
|
|
158
|
-
* @license lucide-react v0.544.0 - ISC
|
|
159
|
-
*
|
|
160
|
-
* This source code is licensed under the ISC license.
|
|
161
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
162
|
-
*/const Q2=[["path",{d:"M11 19H5v-6",key:"8awifj"}],["path",{d:"M13 5h6v6",key:"7voy1q"}],["path",{d:"M19 5 5 19",key:"wwaj1z"}]],J2=yt("move-diagonal",Q2);/**
|
|
163
|
-
* @license lucide-react v0.544.0 - ISC
|
|
164
|
-
*
|
|
165
|
-
* This source code is licensed under the ISC license.
|
|
166
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
167
|
-
*/const eF=[["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"}]],tF=yt("move-vertical",eF);/**
|
|
168
|
-
* @license lucide-react v0.544.0 - ISC
|
|
169
|
-
*
|
|
170
|
-
* This source code is licensed under the ISC license.
|
|
171
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
172
|
-
*/const nF=[["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"}]],N1=yt("pencil",nF);/**
|
|
173
|
-
* @license lucide-react v0.544.0 - ISC
|
|
174
|
-
*
|
|
175
|
-
* This source code is licensed under the ISC license.
|
|
176
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
177
|
-
*/const rF=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],ph=yt("plus",rF);/**
|
|
178
|
-
* @license lucide-react v0.544.0 - ISC
|
|
179
|
-
*
|
|
180
|
-
* This source code is licensed under the ISC license.
|
|
181
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
182
|
-
*/const iF=[["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"}]],aF=yt("rotate-ccw",iF);/**
|
|
183
|
-
* @license lucide-react v0.544.0 - ISC
|
|
184
|
-
*
|
|
185
|
-
* This source code is licensed under the ISC license.
|
|
186
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
187
|
-
*/const oF=[["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"}]],RA=yt("save",oF);/**
|
|
188
|
-
* @license lucide-react v0.544.0 - ISC
|
|
189
|
-
*
|
|
190
|
-
* This source code is licensed under the ISC license.
|
|
191
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
192
|
-
*/const sF=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],lF=yt("search",sF);/**
|
|
193
|
-
* @license lucide-react v0.544.0 - ISC
|
|
194
|
-
*
|
|
195
|
-
* This source code is licensed under the ISC license.
|
|
196
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
197
|
-
*/const cF=[["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],mh=yt("trash",cF);/**
|
|
198
|
-
* @license lucide-react v0.544.0 - ISC
|
|
199
|
-
*
|
|
200
|
-
* This source code is licensed under the ISC license.
|
|
201
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
202
|
-
*/const uF=[["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"}]],O1=yt("wand-sparkles",uF);/**
|
|
203
|
-
* @license lucide-react v0.544.0 - ISC
|
|
204
|
-
*
|
|
205
|
-
* This source code is licensed under the ISC license.
|
|
206
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
207
|
-
*/const dF=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],po=yt("x",dF);function I1(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=I1(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function gh(){for(var e,t,n=0,r="",a=arguments.length;n<a;n++)(e=arguments[n])&&(t=I1(e))&&(r&&(r+=" "),r+=t);return r}const yb="-",fF=e=>{const t=pF(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:l=>{const u=l.split(yb);return u[0]===""&&u.length!==1&&u.shift(),D1(u,t)||hF(l)},getConflictingClassGroupIds:(l,u)=>{const d=n[l]||[];return u&&r[l]?[...d,...r[l]]:d}}},D1=(e,t)=>{if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),a=r?D1(e.slice(1),r):void 0;if(a)return a;if(t.validators.length===0)return;const s=e.join(yb);return t.validators.find(({validator:l})=>l(s))?.classGroupId},kA=/^\[(.+)\]$/,hF=e=>{if(kA.test(e)){const t=kA.exec(e)[1],n=t?.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},pF=e=>{const{theme:t,classGroups:n}=e,r={nextPart:new Map,validators:[]};for(const a in n)Dy(n[a],r,a,t);return r},Dy=(e,t,n,r)=>{e.forEach(a=>{if(typeof a=="string"){const s=a===""?t:NA(t,a);s.classGroupId=n;return}if(typeof a=="function"){if(mF(a)){Dy(a(r),t,n,r);return}t.validators.push({validator:a,classGroupId:n});return}Object.entries(a).forEach(([s,l])=>{Dy(l,NA(t,s),n,r)})})},NA=(e,t)=>{let n=e;return t.split(yb).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},mF=e=>e.isThemeGetter,gF=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const a=(s,l)=>{n.set(s,l),t++,t>e&&(t=0,r=n,n=new Map)};return{get(s){let l=n.get(s);if(l!==void 0)return l;if((l=r.get(s))!==void 0)return a(s,l),l},set(s,l){n.has(s)?n.set(s,l):a(s,l)}}},jy="!",Ly=":",yF=Ly.length,vF=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=a=>{const s=[];let l=0,u=0,d=0,f;for(let S=0;S<a.length;S++){let A=a[S];if(l===0&&u===0){if(A===Ly){s.push(a.slice(d,S)),d=S+yF;continue}if(A==="/"){f=S;continue}}A==="["?l++:A==="]"?l--:A==="("?u++:A===")"&&u--}const p=s.length===0?a:a.substring(d),g=bF(p),y=g!==p,_=f&&f>d?f-d:void 0;return{modifiers:s,hasImportantModifier:y,baseClassName:g,maybePostfixModifierPosition:_}};if(t){const a=t+Ly,s=r;r=l=>l.startsWith(a)?s(l.substring(a.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:l,maybePostfixModifierPosition:void 0}}if(n){const a=r;r=s=>n({className:s,parseClassName:a})}return r},bF=e=>e.endsWith(jy)?e.substring(0,e.length-1):e.startsWith(jy)?e.substring(1):e,_F=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(r=>[r,!0]));return r=>{if(r.length<=1)return r;const a=[];let s=[];return r.forEach(l=>{l[0]==="["||t[l]?(a.push(...s.sort(),l),s=[]):s.push(l)}),a.push(...s.sort()),a}},EF=e=>({cache:gF(e.cacheSize),parseClassName:vF(e),sortModifiers:_F(e),...fF(e)}),SF=/\s+/,xF=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:a,sortModifiers:s}=t,l=[],u=e.trim().split(SF);let d="";for(let f=u.length-1;f>=0;f-=1){const p=u[f],{isExternal:g,modifiers:y,hasImportantModifier:_,baseClassName:S,maybePostfixModifierPosition:A}=n(p);if(g){d=p+(d.length>0?" "+d:d);continue}let C=!!A,w=r(C?S.substring(0,A):S);if(!w){if(!C){d=p+(d.length>0?" "+d:d);continue}if(w=r(S),!w){d=p+(d.length>0?" "+d:d);continue}C=!1}const x=s(y).join(":"),T=_?x+jy:x,N=T+w;if(l.includes(N))continue;l.push(N);const R=a(w,C);for(let I=0;I<R.length;++I){const D=R[I];l.push(T+D)}d=p+(d.length>0?" "+d:d)}return d};function AF(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=j1(t))&&(r&&(r+=" "),r+=n);return r}const j1=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=j1(e[r]))&&(n&&(n+=" "),n+=t);return n};function wF(e,...t){let n,r,a,s=l;function l(d){const f=t.reduce((p,g)=>g(p),e());return n=EF(f),r=n.cache.get,a=n.cache.set,s=u,u(d)}function u(d){const f=r(d);if(f)return f;const p=xF(d,n);return a(d,p),p}return function(){return s(AF.apply(null,arguments))}}const Ht=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},L1=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,P1=/^\((?:(\w[\w-]*):)?(.+)\)$/i,TF=/^\d+\/\d+$/,CF=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,RF=/\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$/,kF=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,NF=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,OF=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,is=e=>TF.test(e),Ke=e=>!!e&&!Number.isNaN(Number(e)),Yi=e=>!!e&&Number.isInteger(Number(e)),bg=e=>e.endsWith("%")&&Ke(e.slice(0,-1)),di=e=>CF.test(e),IF=()=>!0,DF=e=>RF.test(e)&&!kF.test(e),M1=()=>!1,jF=e=>NF.test(e),LF=e=>OF.test(e),PF=e=>!we(e)&&!Te(e),MF=e=>Bs(e,V1,M1),we=e=>L1.test(e),Fa=e=>Bs(e,U1,DF),_g=e=>Bs(e,FF,Ke),OA=e=>Bs(e,z1,M1),zF=e=>Bs(e,B1,LF),jd=e=>Bs(e,F1,jF),Te=e=>P1.test(e),Ql=e=>Vs(e,U1),BF=e=>Vs(e,$F),IA=e=>Vs(e,z1),VF=e=>Vs(e,V1),UF=e=>Vs(e,B1),Ld=e=>Vs(e,F1,!0),Bs=(e,t,n)=>{const r=L1.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},Vs=(e,t,n=!1)=>{const r=P1.exec(e);return r?r[1]?t(r[1]):n:!1},z1=e=>e==="position"||e==="percentage",B1=e=>e==="image"||e==="url",V1=e=>e==="length"||e==="size"||e==="bg-size",U1=e=>e==="length",FF=e=>e==="number",$F=e=>e==="family-name",F1=e=>e==="shadow",HF=()=>{const e=Ht("color"),t=Ht("font"),n=Ht("text"),r=Ht("font-weight"),a=Ht("tracking"),s=Ht("leading"),l=Ht("breakpoint"),u=Ht("container"),d=Ht("spacing"),f=Ht("radius"),p=Ht("shadow"),g=Ht("inset-shadow"),y=Ht("text-shadow"),_=Ht("drop-shadow"),S=Ht("blur"),A=Ht("perspective"),C=Ht("aspect"),w=Ht("ease"),x=Ht("animate"),T=()=>["auto","avoid","all","avoid-page","page","left","right","column"],N=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],R=()=>[...N(),Te,we],I=()=>["auto","hidden","clip","visible","scroll"],D=()=>["auto","contain","none"],L=()=>[Te,we,d],H=()=>[is,"full","auto",...L()],Z=()=>[Yi,"none","subgrid",Te,we],q=()=>["auto",{span:["full",Yi,Te,we]},Yi,Te,we],te=()=>[Yi,"auto",Te,we],ce=()=>["auto","min","max","fr",Te,we],W=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],ae=()=>["start","end","center","stretch","center-safe","end-safe"],M=()=>["auto",...L()],X=()=>[is,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...L()],G=()=>[e,Te,we],ge=()=>[...N(),IA,OA,{position:[Te,we]}],P=()=>["no-repeat",{repeat:["","x","y","space","round"]}],ie=()=>["auto","cover","contain",VF,MF,{size:[Te,we]}],F=()=>[bg,Ql,Fa],J=()=>["","none","full",f,Te,we],se=()=>["",Ke,Ql,Fa],he=()=>["solid","dashed","dotted","double"],ye=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],fe=()=>[Ke,bg,IA,OA],xe=()=>["","none",S,Te,we],je=()=>["none",Ke,Te,we],Be=()=>["none",Ke,Te,we],Ye=()=>[Ke,Te,we],et=()=>[is,"full",...L()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[di],breakpoint:[di],color:[IF],container:[di],"drop-shadow":[di],ease:["in","out","in-out"],font:[PF],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[di],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[di],shadow:[di],spacing:["px",Ke],text:[di],"text-shadow":[di],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",is,we,Te,C]}],container:["container"],columns:[{columns:[Ke,we,Te,u]}],"break-after":[{"break-after":T()}],"break-before":[{"break-before":T()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:R()}],overflow:[{overflow:I()}],"overflow-x":[{"overflow-x":I()}],"overflow-y":[{"overflow-y":I()}],overscroll:[{overscroll:D()}],"overscroll-x":[{"overscroll-x":D()}],"overscroll-y":[{"overscroll-y":D()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:H()}],"inset-x":[{"inset-x":H()}],"inset-y":[{"inset-y":H()}],start:[{start:H()}],end:[{end:H()}],top:[{top:H()}],right:[{right:H()}],bottom:[{bottom:H()}],left:[{left:H()}],visibility:["visible","invisible","collapse"],z:[{z:[Yi,"auto",Te,we]}],basis:[{basis:[is,"full","auto",u,...L()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Ke,is,"auto","initial","none",we]}],grow:[{grow:["",Ke,Te,we]}],shrink:[{shrink:["",Ke,Te,we]}],order:[{order:[Yi,"first","last","none",Te,we]}],"grid-cols":[{"grid-cols":Z()}],"col-start-end":[{col:q()}],"col-start":[{"col-start":te()}],"col-end":[{"col-end":te()}],"grid-rows":[{"grid-rows":Z()}],"row-start-end":[{row:q()}],"row-start":[{"row-start":te()}],"row-end":[{"row-end":te()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":ce()}],"auto-rows":[{"auto-rows":ce()}],gap:[{gap:L()}],"gap-x":[{"gap-x":L()}],"gap-y":[{"gap-y":L()}],"justify-content":[{justify:[...W(),"normal"]}],"justify-items":[{"justify-items":[...ae(),"normal"]}],"justify-self":[{"justify-self":["auto",...ae()]}],"align-content":[{content:["normal",...W()]}],"align-items":[{items:[...ae(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...ae(),{baseline:["","last"]}]}],"place-content":[{"place-content":W()}],"place-items":[{"place-items":[...ae(),"baseline"]}],"place-self":[{"place-self":["auto",...ae()]}],p:[{p:L()}],px:[{px:L()}],py:[{py:L()}],ps:[{ps:L()}],pe:[{pe:L()}],pt:[{pt:L()}],pr:[{pr:L()}],pb:[{pb:L()}],pl:[{pl:L()}],m:[{m:M()}],mx:[{mx:M()}],my:[{my:M()}],ms:[{ms:M()}],me:[{me:M()}],mt:[{mt:M()}],mr:[{mr:M()}],mb:[{mb:M()}],ml:[{ml:M()}],"space-x":[{"space-x":L()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":L()}],"space-y-reverse":["space-y-reverse"],size:[{size:X()}],w:[{w:[u,"screen",...X()]}],"min-w":[{"min-w":[u,"screen","none",...X()]}],"max-w":[{"max-w":[u,"screen","none","prose",{screen:[l]},...X()]}],h:[{h:["screen","lh",...X()]}],"min-h":[{"min-h":["screen","lh","none",...X()]}],"max-h":[{"max-h":["screen","lh",...X()]}],"font-size":[{text:["base",n,Ql,Fa]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,Te,_g]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",bg,we]}],"font-family":[{font:[BF,we,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,Te,we]}],"line-clamp":[{"line-clamp":[Ke,"none",Te,_g]}],leading:[{leading:[s,...L()]}],"list-image":[{"list-image":["none",Te,we]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",Te,we]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:G()}],"text-color":[{text:G()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...he(),"wavy"]}],"text-decoration-thickness":[{decoration:[Ke,"from-font","auto",Te,Fa]}],"text-decoration-color":[{decoration:G()}],"underline-offset":[{"underline-offset":[Ke,"auto",Te,we]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:L()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Te,we]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Te,we]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:ge()}],"bg-repeat":[{bg:P()}],"bg-size":[{bg:ie()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Yi,Te,we],radial:["",Te,we],conic:[Yi,Te,we]},UF,zF]}],"bg-color":[{bg:G()}],"gradient-from-pos":[{from:F()}],"gradient-via-pos":[{via:F()}],"gradient-to-pos":[{to:F()}],"gradient-from":[{from:G()}],"gradient-via":[{via:G()}],"gradient-to":[{to:G()}],rounded:[{rounded:J()}],"rounded-s":[{"rounded-s":J()}],"rounded-e":[{"rounded-e":J()}],"rounded-t":[{"rounded-t":J()}],"rounded-r":[{"rounded-r":J()}],"rounded-b":[{"rounded-b":J()}],"rounded-l":[{"rounded-l":J()}],"rounded-ss":[{"rounded-ss":J()}],"rounded-se":[{"rounded-se":J()}],"rounded-ee":[{"rounded-ee":J()}],"rounded-es":[{"rounded-es":J()}],"rounded-tl":[{"rounded-tl":J()}],"rounded-tr":[{"rounded-tr":J()}],"rounded-br":[{"rounded-br":J()}],"rounded-bl":[{"rounded-bl":J()}],"border-w":[{border:se()}],"border-w-x":[{"border-x":se()}],"border-w-y":[{"border-y":se()}],"border-w-s":[{"border-s":se()}],"border-w-e":[{"border-e":se()}],"border-w-t":[{"border-t":se()}],"border-w-r":[{"border-r":se()}],"border-w-b":[{"border-b":se()}],"border-w-l":[{"border-l":se()}],"divide-x":[{"divide-x":se()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":se()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...he(),"hidden","none"]}],"divide-style":[{divide:[...he(),"hidden","none"]}],"border-color":[{border:G()}],"border-color-x":[{"border-x":G()}],"border-color-y":[{"border-y":G()}],"border-color-s":[{"border-s":G()}],"border-color-e":[{"border-e":G()}],"border-color-t":[{"border-t":G()}],"border-color-r":[{"border-r":G()}],"border-color-b":[{"border-b":G()}],"border-color-l":[{"border-l":G()}],"divide-color":[{divide:G()}],"outline-style":[{outline:[...he(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Ke,Te,we]}],"outline-w":[{outline:["",Ke,Ql,Fa]}],"outline-color":[{outline:G()}],shadow:[{shadow:["","none",p,Ld,jd]}],"shadow-color":[{shadow:G()}],"inset-shadow":[{"inset-shadow":["none",g,Ld,jd]}],"inset-shadow-color":[{"inset-shadow":G()}],"ring-w":[{ring:se()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:G()}],"ring-offset-w":[{"ring-offset":[Ke,Fa]}],"ring-offset-color":[{"ring-offset":G()}],"inset-ring-w":[{"inset-ring":se()}],"inset-ring-color":[{"inset-ring":G()}],"text-shadow":[{"text-shadow":["none",y,Ld,jd]}],"text-shadow-color":[{"text-shadow":G()}],opacity:[{opacity:[Ke,Te,we]}],"mix-blend":[{"mix-blend":[...ye(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ye()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[Ke]}],"mask-image-linear-from-pos":[{"mask-linear-from":fe()}],"mask-image-linear-to-pos":[{"mask-linear-to":fe()}],"mask-image-linear-from-color":[{"mask-linear-from":G()}],"mask-image-linear-to-color":[{"mask-linear-to":G()}],"mask-image-t-from-pos":[{"mask-t-from":fe()}],"mask-image-t-to-pos":[{"mask-t-to":fe()}],"mask-image-t-from-color":[{"mask-t-from":G()}],"mask-image-t-to-color":[{"mask-t-to":G()}],"mask-image-r-from-pos":[{"mask-r-from":fe()}],"mask-image-r-to-pos":[{"mask-r-to":fe()}],"mask-image-r-from-color":[{"mask-r-from":G()}],"mask-image-r-to-color":[{"mask-r-to":G()}],"mask-image-b-from-pos":[{"mask-b-from":fe()}],"mask-image-b-to-pos":[{"mask-b-to":fe()}],"mask-image-b-from-color":[{"mask-b-from":G()}],"mask-image-b-to-color":[{"mask-b-to":G()}],"mask-image-l-from-pos":[{"mask-l-from":fe()}],"mask-image-l-to-pos":[{"mask-l-to":fe()}],"mask-image-l-from-color":[{"mask-l-from":G()}],"mask-image-l-to-color":[{"mask-l-to":G()}],"mask-image-x-from-pos":[{"mask-x-from":fe()}],"mask-image-x-to-pos":[{"mask-x-to":fe()}],"mask-image-x-from-color":[{"mask-x-from":G()}],"mask-image-x-to-color":[{"mask-x-to":G()}],"mask-image-y-from-pos":[{"mask-y-from":fe()}],"mask-image-y-to-pos":[{"mask-y-to":fe()}],"mask-image-y-from-color":[{"mask-y-from":G()}],"mask-image-y-to-color":[{"mask-y-to":G()}],"mask-image-radial":[{"mask-radial":[Te,we]}],"mask-image-radial-from-pos":[{"mask-radial-from":fe()}],"mask-image-radial-to-pos":[{"mask-radial-to":fe()}],"mask-image-radial-from-color":[{"mask-radial-from":G()}],"mask-image-radial-to-color":[{"mask-radial-to":G()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":N()}],"mask-image-conic-pos":[{"mask-conic":[Ke]}],"mask-image-conic-from-pos":[{"mask-conic-from":fe()}],"mask-image-conic-to-pos":[{"mask-conic-to":fe()}],"mask-image-conic-from-color":[{"mask-conic-from":G()}],"mask-image-conic-to-color":[{"mask-conic-to":G()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:ge()}],"mask-repeat":[{mask:P()}],"mask-size":[{mask:ie()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",Te,we]}],filter:[{filter:["","none",Te,we]}],blur:[{blur:xe()}],brightness:[{brightness:[Ke,Te,we]}],contrast:[{contrast:[Ke,Te,we]}],"drop-shadow":[{"drop-shadow":["","none",_,Ld,jd]}],"drop-shadow-color":[{"drop-shadow":G()}],grayscale:[{grayscale:["",Ke,Te,we]}],"hue-rotate":[{"hue-rotate":[Ke,Te,we]}],invert:[{invert:["",Ke,Te,we]}],saturate:[{saturate:[Ke,Te,we]}],sepia:[{sepia:["",Ke,Te,we]}],"backdrop-filter":[{"backdrop-filter":["","none",Te,we]}],"backdrop-blur":[{"backdrop-blur":xe()}],"backdrop-brightness":[{"backdrop-brightness":[Ke,Te,we]}],"backdrop-contrast":[{"backdrop-contrast":[Ke,Te,we]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Ke,Te,we]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Ke,Te,we]}],"backdrop-invert":[{"backdrop-invert":["",Ke,Te,we]}],"backdrop-opacity":[{"backdrop-opacity":[Ke,Te,we]}],"backdrop-saturate":[{"backdrop-saturate":[Ke,Te,we]}],"backdrop-sepia":[{"backdrop-sepia":["",Ke,Te,we]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":L()}],"border-spacing-x":[{"border-spacing-x":L()}],"border-spacing-y":[{"border-spacing-y":L()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",Te,we]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Ke,"initial",Te,we]}],ease:[{ease:["linear","initial",w,Te,we]}],delay:[{delay:[Ke,Te,we]}],animate:[{animate:["none",x,Te,we]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[A,Te,we]}],"perspective-origin":[{"perspective-origin":R()}],rotate:[{rotate:je()}],"rotate-x":[{"rotate-x":je()}],"rotate-y":[{"rotate-y":je()}],"rotate-z":[{"rotate-z":je()}],scale:[{scale:Be()}],"scale-x":[{"scale-x":Be()}],"scale-y":[{"scale-y":Be()}],"scale-z":[{"scale-z":Be()}],"scale-3d":["scale-3d"],skew:[{skew:Ye()}],"skew-x":[{"skew-x":Ye()}],"skew-y":[{"skew-y":Ye()}],transform:[{transform:[Te,we,"","none","gpu","cpu"]}],"transform-origin":[{origin:R()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:et()}],"translate-x":[{"translate-x":et()}],"translate-y":[{"translate-y":et()}],"translate-z":[{"translate-z":et()}],"translate-none":["translate-none"],accent:[{accent:G()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:G()}],"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",Te,we]}],"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":L()}],"scroll-mx":[{"scroll-mx":L()}],"scroll-my":[{"scroll-my":L()}],"scroll-ms":[{"scroll-ms":L()}],"scroll-me":[{"scroll-me":L()}],"scroll-mt":[{"scroll-mt":L()}],"scroll-mr":[{"scroll-mr":L()}],"scroll-mb":[{"scroll-mb":L()}],"scroll-ml":[{"scroll-ml":L()}],"scroll-p":[{"scroll-p":L()}],"scroll-px":[{"scroll-px":L()}],"scroll-py":[{"scroll-py":L()}],"scroll-ps":[{"scroll-ps":L()}],"scroll-pe":[{"scroll-pe":L()}],"scroll-pt":[{"scroll-pt":L()}],"scroll-pr":[{"scroll-pr":L()}],"scroll-pb":[{"scroll-pb":L()}],"scroll-pl":[{"scroll-pl":L()}],"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",Te,we]}],fill:[{fill:["none",...G()]}],"stroke-w":[{stroke:[Ke,Ql,Fa,_g]}],stroke:[{stroke:["none",...G()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},$1=wF(HF),_e=(...e)=>$1(gh(e)),DA=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,jA=gh,fr=(e,t)=>n=>{var r;if(t?.variants==null)return jA(e,n?.class,n?.className);const{variants:a,defaultVariants:s}=t,l=Object.keys(a).map(f=>{const p=n?.[f],g=s?.[f];if(p===null)return null;const y=DA(p)||DA(g);return a[f][y]}),u=n&&Object.entries(n).reduce((f,p)=>{let[g,y]=p;return y===void 0||(f[g]=y),f},{}),d=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((f,p)=>{let{class:g,className:y,..._}=p;return Object.entries(_).every(S=>{let[A,C]=S;return Array.isArray(C)?C.includes({...s,...u}[A]):{...s,...u}[A]===C})?[...f,g,y]:f},[]);return jA(e,l,d,n?.class,n?.className)},GF=({className:e,strokeWidth:t=4})=>v.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"44",height:"44",viewBox:"0 0 44 44",stroke:"currentColor",className:_e("size-full",e),children:v.jsxs("g",{fill:"none",fillRule:"evenodd",strokeWidth:t,children:[v.jsxs("circle",{cx:"22",cy:"22",r:"1",children:[v.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"}),v.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"})]}),v.jsxs("circle",{cx:"22",cy:"22",r:"1",children:[v.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"}),v.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"})]})]})}),Ts=({children:e,isLoading:t=!0,className:n,...r})=>v.jsx(v.Fragment,{children:t?v.jsx("div",{className:_e("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:v.jsx(GF,{className:"size-10 max-h-full max-w-full"})}):e??v.jsx(v.Fragment,{})});var qn=(e=>(e.SM="sm",e.MD="md",e.LG="lg",e.XL="xl",e.ICON_SM="icon-sm",e.ICON_MD="icon-md",e.ICON_LG="icon-lg",e.ICON_XL="icon-xl",e))(qn||{});const Eg=fr("",{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"}});var at=(e=>(e.DEFAULT="default",e.NONE="none",e.OUTLINE="outline",e.LINK="link",e.INVISIBLE_LINK="invisible-link",e.HOVERABLE="hoverable",e.INPUT="input",e))(at||{}),it=(e=>(e.PRIMARY="primary",e.SECONDARY="secondary",e.DESTRUCTIVE="destructive",e.NEUTRAL="neutral",e.LIGHT="light",e.DARK="dark",e.TEXT="text",e.TEXT_INVERSE="text-inverse",e.ERROR="error",e.SUCCESS="success",e.CUSTOM="custom",e))(it||{}),Cs=(e=>(e.LEFT="left",e.CENTER="center",e.RIGHT="right",e))(Cs||{});const KF=fr("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:"custom",textAlign:"center",isFullWidth:!1,hasIconRight:!1,hasIconLeft:!1}}),ot=({variant:e,size:t,color:n,children:r,Icon:a,IconRight:s,iconClassName:l,isLoading:u,isActive:d,isFullWidth:f=!1,textAlign:p,disabled:g,label:y,className:_,type:S="button",...A})=>{const C=e==="link"||e==="invisible-link";return v.jsxs("button",{disabled:u||g,"aria-current":d?"page":void 0,"aria-label":y,"aria-busy":u,role:C?"link":void 0,type:S,className:KF({variant:e,size:t,color:n,isFullWidth:f,textAlign:p??(s?"left":"center"),hasIconLeft:typeof r<"u"&&(typeof a<"u"||typeof u<"u"),hasIconRight:typeof r<"u"&&typeof s<"u",className:_}),...A,children:[a&&!u&&v.jsx(a,{className:Eg({size:t,className:l,position:"left"})}),v.jsx(Ts,{className:Eg({size:t,className:l,position:"left"}),isLoading:u??!1}),v.jsx("span",{children:r}),s&&v.jsx(s,{className:Eg({size:t,className:l,position:"right"})})]})},vb=({children:e,isHidden:t,className:n="",isOverable:r=!1,isFocusable:a=!1,minHeight:s=0,...l})=>v.jsx("div",{"aria-hidden":a?t:void 0,tabIndex:a?0:void 0,role:a?"button":"none",className:_e("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:v.jsx("div",{style:{minHeight:`${s}px`},className:_e(r&&"group-hover/height-smoother:visible",a&&"group-focus/height-smoother:visible",n),children:e})}),H1=({children:e,header:t,isOpen:n=!1,onClick:r,...a})=>{const[s,l]=E.useState(n),u=s==null?void 0:!s;return E.useEffect(()=>{n!=null&&l(n)},[n]),v.jsxs("div",{className:"w-full",children:[v.jsx(ot,{variant:at.HOVERABLE,color:it.TEXT,onClick:d=>{l(f=>!f),r?.(d)},isFullWidth:!0,className:"flex items-center justify-between gap-2",IconRight:k1,iconClassName:_e("transform transition-transform duration-500 ease-in-out",s?"rotate-0":"-rotate-180"),...a,children:t}),v.jsx(vb,{tabIndex:u!==!1?void 0:-1,isHidden:u,children:e})]})};var G1=(e=>(e.PRIMARY="primary",e.SECONDARY="secondary",e.DESTRUCTIVE="destructive",e.NEUTRAL="neutral",e.LIGHT="light",e.DARK="dark",e.TEXT="text",e.CUSTOM="custom",e))(G1||{});const qF=fr("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"}}),WF=({className:e,variant:t,color:n,...r})=>v.jsx("div",{className:_e(qF({variant:t,color:n}),e),...r});var K1=(e=>(e.PRIMARY="primary",e.SECONDARY="secondary",e.DESTRUCTIVE="destructive",e.NEUTRAL="neutral",e.LIGHT="light",e.DARK="dark",e.TEXT="text",e.TEXT_INVERSE="text-inverse",e.ERROR="error",e.SUCCESS="success",e.CUSTOM="custom",e))(K1||{});const ZF=fr("gap-3 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/20 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"}}),YF=({href:e,isExternalLink:t})=>{const n=typeof e=="string"&&e.trim()!=="";return t===!0||typeof t>"u"&&n&&/^https?:\/\//.test(e)},bb=e=>{const{variant:t="default",color:n="primary",children:r,label:a,className:s,isActive:l,underlined:u,locale:d,isExternalLink:f,href:p,...g}=e,{internationalization:y}=rt,_=YF(e),S=typeof r=="string",A=_?"noopener noreferrer nofollow":void 0,C=_?"_blank":"_self",w=d?d===y.defaultLocale?"x-default":d:void 0,x=d&&p&&!_?uV(p,d):p;return v.jsxs("a",{href:x,hrefLang:w,"aria-label":a,rel:A,target:C,"aria-current":l?"page":void 0,className:_e(ZF({variant:t,color:n,underlined:u,className:s})),...g,children:[t==="button"?v.jsx("span",{children:r}):r,_&&S&&v.jsx(G2,{className:"ml-2 inline-block size-4"})]})},XF=({href:e,lang:t,children:n,onClick:r,color:a,position:s,locale:l,...u})=>{const{linkLabel:d}=cn("breadcrumb");return v.jsxs(v.Fragment,{children:[v.jsx(bb,{href:e,locale:l,color:a,onClick:r,itemProp:"item",isExternalLink:!1,itemScope:!0,itemType:"https://schema.org/WebPage",...u,label:`${d} ${n}`,itemID:e,children:v.jsx("span",{itemProp:"name",children:n})}),v.jsx("meta",{itemProp:"position",content:s.toString()})]})},QF=({children:e,onClick:t,color:n,position:r,...a})=>{const{linkLabel:s}=cn("breadcrumb");return v.jsxs(v.Fragment,{children:[v.jsx(ot,{onClick:t,variant:at.LINK,label:`${s} ${e}`,color:n,itemProp:"item",...a,children:v.jsx("span",{itemProp:"name",children:e})}),v.jsx("meta",{itemProp:"position",content:r.toString()})]})},JF=({children:e,position:t,...n})=>v.jsxs("span",{itemProp:"item",children:[v.jsx("span",{itemProp:"name",...n,children:e}),v.jsx("meta",{itemProp:"position",content:t.toString()})]}),e$=({links:e,className:t,color:n=K1.TEXT,locale:r,elementType:a="page",...s})=>v.jsx("nav",{"aria-label":"breadcrumb",children:v.jsx("ol",{className:_e("flex flex-row flex-wrap items-center gap-2 text-sm",t),itemScope:!0,itemType:"http://schema.org/BreadcrumbList",...s,children:e.map((l,u)=>{const d=u===e.length-1,f=typeof l=="object"&&typeof l.href=="string",p=typeof l=="object"&&typeof l.onClick=="function",y=u===e.length-1?a:void 0,_=l.text??l;let S=v.jsx(JF,{position:u+1,"aria-current":y,children:_},_);f?S=v.jsx(XF,{href:l.href,color:n,position:u+1,locale:r,"aria-current":y,children:_},_):p&&(S=v.jsx(QF,{onClick:l.onClick,color:n,position:u+1,"aria-current":y,children:_},_));const A=v.jsx("li",{itemProp:"itemListElement",itemScope:!0,itemType:"https://schema.org/ListItem",children:S},_);return d?A:v.jsxs(E.Fragment,{children:[A,v.jsx(Of,{size:10})]},_)})})});function Qe(e,t,{checkForDefaultPrevented:n=!0}={}){return function(a){if(e?.(a),n===!1||!a.defaultPrevented)return t?.(a)}}function LA(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function no(...e){return t=>{let n=!1;const r=e.map(a=>{const s=LA(a,t);return!n&&typeof s=="function"&&(n=!0),s});if(n)return()=>{for(let a=0;a<r.length;a++){const s=r[a];typeof s=="function"?s():LA(e[a],null)}}}}function wt(...e){return E.useCallback(no(...e),e)}function t$(e,t){const n=E.createContext(t),r=s=>{const{children:l,...u}=s,d=E.useMemo(()=>u,Object.values(u));return v.jsx(n.Provider,{value:d,children:l})};r.displayName=e+"Provider";function a(s){const l=E.useContext(n);if(l)return l;if(t!==void 0)return t;throw new Error(`\`${s}\` must be used within \`${e}\``)}return[r,a]}function tu(e,t=[]){let n=[];function r(s,l){const u=E.createContext(l),d=n.length;n=[...n,l];const f=g=>{const{scope:y,children:_,...S}=g,A=y?.[e]?.[d]||u,C=E.useMemo(()=>S,Object.values(S));return v.jsx(A.Provider,{value:C,children:_})};f.displayName=s+"Provider";function p(g,y){const _=y?.[e]?.[d]||u,S=E.useContext(_);if(S)return S;if(l!==void 0)return l;throw new Error(`\`${g}\` must be used within \`${s}\``)}return[f,p]}const a=()=>{const s=n.map(l=>E.createContext(l));return function(u){const d=u?.[e]||s;return E.useMemo(()=>({[`__scope${e}`]:{...u,[e]:d}}),[u,d])}};return a.scopeName=e,[r,n$(a,...t)]}function n$(...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(s){const l=r.reduce((u,{useScope:d,scopeName:f})=>{const g=d(s)[`__scope${f}`];return{...u,...g}},{});return E.useMemo(()=>({[`__scope${t.scopeName}`]:l}),[l])}};return n.scopeName=t.scopeName,n}var ln=globalThis?.document?E.useLayoutEffect:()=>{},r$=jR[" useId ".trim().toString()]||(()=>{}),i$=0;function ur(e){const[t,n]=E.useState(r$());return ln(()=>{n(r=>r??String(i$++))},[e]),t?`radix-${t}`:""}var a$=jR[" useInsertionEffect ".trim().toString()]||ln;function If({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[a,s,l]=o$({defaultProp:t,onChange:n}),u=e!==void 0,d=u?e:a;{const p=E.useRef(e!==void 0);E.useEffect(()=>{const g=p.current;g!==u&&console.warn(`${r} is changing from ${g?"controlled":"uncontrolled"} to ${u?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),p.current=u},[u,r])}const f=E.useCallback(p=>{if(u){const g=s$(p)?p(e):p;g!==e&&l.current?.(g)}else s(p)},[u,e,s,l]);return[d,f]}function o$({defaultProp:e,onChange:t}){const[n,r]=E.useState(e),a=E.useRef(n),s=E.useRef(t);return a$(()=>{s.current=t},[t]),E.useEffect(()=>{a.current!==n&&(s.current?.(n),a.current=n)},[n,a]),[n,r,s]}function s$(e){return typeof e=="function"}function Rs(e){const t=c$(e),n=E.forwardRef((r,a)=>{const{children:s,...l}=r,u=E.Children.toArray(s),d=u.find(d$);if(d){const f=d.props.children,p=u.map(g=>g===d?E.Children.count(f)>1?E.Children.only(null):E.isValidElement(f)?f.props.children:null:g);return v.jsx(t,{...l,ref:a,children:E.isValidElement(f)?E.cloneElement(f,void 0,p):null})}return v.jsx(t,{...l,ref:a,children:s})});return n.displayName=`${e}.Slot`,n}var l$=Rs("Slot");function c$(e){const t=E.forwardRef((n,r)=>{const{children:a,...s}=n;if(E.isValidElement(a)){const l=h$(a),u=f$(s,a.props);return a.type!==E.Fragment&&(u.ref=r?no(r,l):l),E.cloneElement(a,u)}return E.Children.count(a)>1?E.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var u$=Symbol("radix.slottable");function d$(e){return E.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===u$}function f$(e,t){const n={...t};for(const r in t){const a=e[r],s=t[r];/^on[A-Z]/.test(r)?a&&s?n[r]=(...u)=>{const d=s(...u);return a(...u),d}:a&&(n[r]=a):r==="style"?n[r]={...a,...s}:r==="className"&&(n[r]=[a,s].filter(Boolean).join(" "))}return{...e,...n}}function h$(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var p$=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],He=p$.reduce((e,t)=>{const n=Rs(`Primitive.${t}`),r=E.forwardRef((a,s)=>{const{asChild:l,...u}=a,d=l?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),v.jsx(d,{...u,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function q1(e,t){e&&ho.flushSync(()=>e.dispatchEvent(t))}function Sr(e){const t=E.useRef(e);return E.useEffect(()=>{t.current=e}),E.useMemo(()=>(...n)=>t.current?.(...n),[])}function m$(e,t=globalThis?.document){const n=Sr(e);E.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 g$="DismissableLayer",Py="dismissableLayer.update",y$="dismissableLayer.pointerDownOutside",v$="dismissableLayer.focusOutside",PA,W1=E.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),yh=E.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:a,onFocusOutside:s,onInteractOutside:l,onDismiss:u,...d}=e,f=E.useContext(W1),[p,g]=E.useState(null),y=p?.ownerDocument??globalThis?.document,[,_]=E.useState({}),S=wt(t,D=>g(D)),A=Array.from(f.layers),[C]=[...f.layersWithOutsidePointerEventsDisabled].slice(-1),w=A.indexOf(C),x=p?A.indexOf(p):-1,T=f.layersWithOutsidePointerEventsDisabled.size>0,N=x>=w,R=_$(D=>{const L=D.target,H=[...f.branches].some(Z=>Z.contains(L));!N||H||(a?.(D),l?.(D),D.defaultPrevented||u?.())},y),I=E$(D=>{const L=D.target;[...f.branches].some(Z=>Z.contains(L))||(s?.(D),l?.(D),D.defaultPrevented||u?.())},y);return m$(D=>{x===f.layers.size-1&&(r?.(D),!D.defaultPrevented&&u&&(D.preventDefault(),u()))},y),E.useEffect(()=>{if(p)return n&&(f.layersWithOutsidePointerEventsDisabled.size===0&&(PA=y.body.style.pointerEvents,y.body.style.pointerEvents="none"),f.layersWithOutsidePointerEventsDisabled.add(p)),f.layers.add(p),MA(),()=>{n&&f.layersWithOutsidePointerEventsDisabled.size===1&&(y.body.style.pointerEvents=PA)}},[p,y,n,f]),E.useEffect(()=>()=>{p&&(f.layers.delete(p),f.layersWithOutsidePointerEventsDisabled.delete(p),MA())},[p,f]),E.useEffect(()=>{const D=()=>_({});return document.addEventListener(Py,D),()=>document.removeEventListener(Py,D)},[]),v.jsx(He.div,{...d,ref:S,style:{pointerEvents:T?N?"auto":"none":void 0,...e.style},onFocusCapture:Qe(e.onFocusCapture,I.onFocusCapture),onBlurCapture:Qe(e.onBlurCapture,I.onBlurCapture),onPointerDownCapture:Qe(e.onPointerDownCapture,R.onPointerDownCapture)})});yh.displayName=g$;var b$="DismissableLayerBranch",Z1=E.forwardRef((e,t)=>{const n=E.useContext(W1),r=E.useRef(null),a=wt(t,r);return E.useEffect(()=>{const s=r.current;if(s)return n.branches.add(s),()=>{n.branches.delete(s)}},[n.branches]),v.jsx(He.div,{...e,ref:a})});Z1.displayName=b$;function _$(e,t=globalThis?.document){const n=Sr(e),r=E.useRef(!1),a=E.useRef(()=>{});return E.useEffect(()=>{const s=u=>{if(u.target&&!r.current){let d=function(){Y1(y$,n,f,{discrete:!0})};const f={originalEvent:u};u.pointerType==="touch"?(t.removeEventListener("click",a.current),a.current=d,t.addEventListener("click",a.current,{once:!0})):d()}else t.removeEventListener("click",a.current);r.current=!1},l=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(l),t.removeEventListener("pointerdown",s),t.removeEventListener("click",a.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function E$(e,t=globalThis?.document){const n=Sr(e),r=E.useRef(!1);return E.useEffect(()=>{const a=s=>{s.target&&!r.current&&Y1(v$,n,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",a),()=>t.removeEventListener("focusin",a)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function MA(){const e=new CustomEvent(Py);document.dispatchEvent(e)}function Y1(e,t,n,{discrete:r}){const a=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&a.addEventListener(e,t,{once:!0}),r?q1(a,s):a.dispatchEvent(s)}var S$=yh,x$=Z1,Sg="focusScope.autoFocusOnMount",xg="focusScope.autoFocusOnUnmount",zA={bubbles:!1,cancelable:!0},A$="FocusScope",_b=E.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:a,onUnmountAutoFocus:s,...l}=e,[u,d]=E.useState(null),f=Sr(a),p=Sr(s),g=E.useRef(null),y=wt(t,A=>d(A)),_=E.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;E.useEffect(()=>{if(r){let A=function(T){if(_.paused||!u)return;const N=T.target;u.contains(N)?g.current=N:Ji(g.current,{select:!0})},C=function(T){if(_.paused||!u)return;const N=T.relatedTarget;N!==null&&(u.contains(N)||Ji(g.current,{select:!0}))},w=function(T){if(document.activeElement===document.body)for(const R of T)R.removedNodes.length>0&&Ji(u)};document.addEventListener("focusin",A),document.addEventListener("focusout",C);const x=new MutationObserver(w);return u&&x.observe(u,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",A),document.removeEventListener("focusout",C),x.disconnect()}}},[r,u,_.paused]),E.useEffect(()=>{if(u){VA.add(_);const A=document.activeElement;if(!u.contains(A)){const w=new CustomEvent(Sg,zA);u.addEventListener(Sg,f),u.dispatchEvent(w),w.defaultPrevented||(w$(N$(X1(u)),{select:!0}),document.activeElement===A&&Ji(u))}return()=>{u.removeEventListener(Sg,f),setTimeout(()=>{const w=new CustomEvent(xg,zA);u.addEventListener(xg,p),u.dispatchEvent(w),w.defaultPrevented||Ji(A??document.body,{select:!0}),u.removeEventListener(xg,p),VA.remove(_)},0)}}},[u,f,p,_]);const S=E.useCallback(A=>{if(!n&&!r||_.paused)return;const C=A.key==="Tab"&&!A.altKey&&!A.ctrlKey&&!A.metaKey,w=document.activeElement;if(C&&w){const x=A.currentTarget,[T,N]=T$(x);T&&N?!A.shiftKey&&w===N?(A.preventDefault(),n&&Ji(T,{select:!0})):A.shiftKey&&w===T&&(A.preventDefault(),n&&Ji(N,{select:!0})):w===x&&A.preventDefault()}},[n,r,_.paused]);return v.jsx(He.div,{tabIndex:-1,...l,ref:y,onKeyDown:S})});_b.displayName=A$;function w$(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Ji(r,{select:t}),document.activeElement!==n)return}function T$(e){const t=X1(e),n=BA(t,e),r=BA(t.reverse(),e);return[n,r]}function X1(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 BA(e,t){for(const n of e)if(!C$(n,{upTo:t}))return n}function C$(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 R$(e){return e instanceof HTMLInputElement&&"select"in e}function Ji(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&R$(e)&&t&&e.select()}}var VA=k$();function k$(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=UA(e,t),e.unshift(t)},remove(t){e=UA(e,t),e[0]?.resume()}}}function UA(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function N$(e){return e.filter(t=>t.tagName!=="A")}var O$="Portal",vh=E.forwardRef((e,t)=>{const{container:n,...r}=e,[a,s]=E.useState(!1);ln(()=>s(!0),[]);const l=n||a&&globalThis?.document?.body;return l?b2.createPortal(v.jsx(He.div,{...r,ref:t}),l):null});vh.displayName=O$;function I$(e,t){return E.useReducer((n,r)=>t[n][r]??n,e)}var nu=e=>{const{present:t,children:n}=e,r=D$(t),a=typeof n=="function"?n({present:r.isPresent}):E.Children.only(n),s=wt(r.ref,j$(a));return typeof n=="function"||r.isPresent?E.cloneElement(a,{ref:s}):null};nu.displayName="Presence";function D$(e){const[t,n]=E.useState(),r=E.useRef(null),a=E.useRef(e),s=E.useRef("none"),l=e?"mounted":"unmounted",[u,d]=I$(l,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return E.useEffect(()=>{const f=Pd(r.current);s.current=u==="mounted"?f:"none"},[u]),ln(()=>{const f=r.current,p=a.current;if(p!==e){const y=s.current,_=Pd(f);e?d("MOUNT"):_==="none"||f?.display==="none"?d("UNMOUNT"):d(p&&y!==_?"ANIMATION_OUT":"UNMOUNT"),a.current=e}},[e,d]),ln(()=>{if(t){let f;const p=t.ownerDocument.defaultView??window,g=_=>{const A=Pd(r.current).includes(CSS.escape(_.animationName));if(_.target===t&&A&&(d("ANIMATION_END"),!a.current)){const C=t.style.animationFillMode;t.style.animationFillMode="forwards",f=p.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=C)})}},y=_=>{_.target===t&&(s.current=Pd(r.current))};return t.addEventListener("animationstart",y),t.addEventListener("animationcancel",g),t.addEventListener("animationend",g),()=>{p.clearTimeout(f),t.removeEventListener("animationstart",y),t.removeEventListener("animationcancel",g),t.removeEventListener("animationend",g)}}else d("ANIMATION_END")},[t,d]),{isPresent:["mounted","unmountSuspended"].includes(u),ref:E.useCallback(f=>{r.current=f?getComputedStyle(f):null,n(f)},[])}}function Pd(e){return e?.animationName||"none"}function j$(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Ag=0;function Q1(){E.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??FA()),document.body.insertAdjacentElement("beforeend",e[1]??FA()),Ag++,()=>{Ag===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Ag--}},[])}function FA(){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 Mr=function(){return Mr=Object.assign||function(t){for(var n,r=1,a=arguments.length;r<a;r++){n=arguments[r];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},Mr.apply(this,arguments)};function J1(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 L$(e,t,n){if(n||arguments.length===2)for(var r=0,a=t.length,s;r<a;r++)(s||!(r in t))&&(s||(s=Array.prototype.slice.call(t,0,r)),s[r]=t[r]);return e.concat(s||Array.prototype.slice.call(t))}var ff="right-scroll-bar-position",hf="width-before-scroll-bar",P$="with-scroll-bars-hidden",M$="--removed-body-scroll-bar-size";function wg(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function z$(e,t){var n=E.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 B$=typeof window<"u"?E.useLayoutEffect:E.useEffect,$A=new WeakMap;function V$(e,t){var n=z$(null,function(r){return e.forEach(function(a){return wg(a,r)})});return B$(function(){var r=$A.get(n);if(r){var a=new Set(r),s=new Set(e),l=n.current;a.forEach(function(u){s.has(u)||wg(u,null)}),s.forEach(function(u){a.has(u)||wg(u,l)})}$A.set(n,e)},[e]),n}function U$(e){return e}function F$(e,t){t===void 0&&(t=U$);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(s){var l=t(s,r);return n.push(l),function(){n=n.filter(function(u){return u!==l})}},assignSyncMedium:function(s){for(r=!0;n.length;){var l=n;n=[],l.forEach(s)}n={push:function(u){return s(u)},filter:function(){return n}}},assignMedium:function(s){r=!0;var l=[];if(n.length){var u=n;n=[],u.forEach(s),l=n}var d=function(){var p=l;l=[],p.forEach(s)},f=function(){return Promise.resolve().then(d)};f(),n={push:function(p){l.push(p),f()},filter:function(p){return l=l.filter(p),n}}}};return a}function $$(e){e===void 0&&(e={});var t=F$(null);return t.options=Mr({async:!0,ssr:!1},e),t}var ek=function(e){var t=e.sideCar,n=J1(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 E.createElement(r,Mr({},n))};ek.isSideCarExport=!0;function H$(e,t){return e.useMedium(t),ek}var tk=$$(),Tg=function(){},bh=E.forwardRef(function(e,t){var n=E.useRef(null),r=E.useState({onScrollCapture:Tg,onWheelCapture:Tg,onTouchMoveCapture:Tg}),a=r[0],s=r[1],l=e.forwardProps,u=e.children,d=e.className,f=e.removeScrollBar,p=e.enabled,g=e.shards,y=e.sideCar,_=e.noRelative,S=e.noIsolation,A=e.inert,C=e.allowPinchZoom,w=e.as,x=w===void 0?"div":w,T=e.gapMode,N=J1(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),R=y,I=V$([n,t]),D=Mr(Mr({},N),a);return E.createElement(E.Fragment,null,p&&E.createElement(R,{sideCar:tk,removeScrollBar:f,shards:g,noRelative:_,noIsolation:S,inert:A,setCallbacks:s,allowPinchZoom:!!C,lockRef:n,gapMode:T}),l?E.cloneElement(E.Children.only(u),Mr(Mr({},D),{ref:I})):E.createElement(x,Mr({},D,{className:d,ref:I}),u))});bh.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};bh.classNames={fullWidth:hf,zeroRight:ff};var G$=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function K$(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=G$();return t&&e.setAttribute("nonce",t),e}function q$(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function W$(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Z$=function(){var e=0,t=null;return{add:function(n){e==0&&(t=K$())&&(q$(t,n),W$(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Y$=function(){var e=Z$();return function(t,n){E.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},nk=function(){var e=Y$(),t=function(n){var r=n.styles,a=n.dynamic;return e(r,a),null};return t},X$={left:0,top:0,right:0,gap:0},Cg=function(e){return parseInt(e||"",10)||0},Q$=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[Cg(n),Cg(r),Cg(a)]},J$=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return X$;var t=Q$(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])}},eH=nk(),_s="data-scroll-locked",tH=function(e,t,n,r){var a=e.left,s=e.top,l=e.right,u=e.gap;return n===void 0&&(n="margin"),`
|
|
208
|
-
.`.concat(P$,` {
|
|
209
|
-
overflow: hidden `).concat(r,`;
|
|
210
|
-
padding-right: `).concat(u,"px ").concat(r,`;
|
|
211
|
-
}
|
|
212
|
-
body[`).concat(_s,`] {
|
|
213
|
-
overflow: hidden `).concat(r,`;
|
|
214
|
-
overscroll-behavior: contain;
|
|
215
|
-
`).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
|
|
216
|
-
padding-left: `.concat(a,`px;
|
|
217
|
-
padding-top: `).concat(s,`px;
|
|
218
|
-
padding-right: `).concat(l,`px;
|
|
219
|
-
margin-left:0;
|
|
220
|
-
margin-top:0;
|
|
221
|
-
margin-right: `).concat(u,"px ").concat(r,`;
|
|
222
|
-
`),n==="padding"&&"padding-right: ".concat(u,"px ").concat(r,";")].filter(Boolean).join(""),`
|
|
223
|
-
}
|
|
224
|
-
|
|
225
|
-
.`).concat(ff,` {
|
|
226
|
-
right: `).concat(u,"px ").concat(r,`;
|
|
227
|
-
}
|
|
228
|
-
|
|
229
|
-
.`).concat(hf,` {
|
|
230
|
-
margin-right: `).concat(u,"px ").concat(r,`;
|
|
231
|
-
}
|
|
232
|
-
|
|
233
|
-
.`).concat(ff," .").concat(ff,` {
|
|
234
|
-
right: 0 `).concat(r,`;
|
|
235
|
-
}
|
|
236
|
-
|
|
237
|
-
.`).concat(hf," .").concat(hf,` {
|
|
238
|
-
margin-right: 0 `).concat(r,`;
|
|
239
|
-
}
|
|
240
|
-
|
|
241
|
-
body[`).concat(_s,`] {
|
|
242
|
-
`).concat(M$,": ").concat(u,`px;
|
|
243
|
-
}
|
|
244
|
-
`)},HA=function(){var e=parseInt(document.body.getAttribute(_s)||"0",10);return isFinite(e)?e:0},nH=function(){E.useEffect(function(){return document.body.setAttribute(_s,(HA()+1).toString()),function(){var e=HA()-1;e<=0?document.body.removeAttribute(_s):document.body.setAttribute(_s,e.toString())}},[])},rH=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,a=r===void 0?"margin":r;nH();var s=E.useMemo(function(){return J$(a)},[a]);return E.createElement(eH,{styles:tH(s,!t,a,n?"":"!important")})},My=!1;if(typeof window<"u")try{var Md=Object.defineProperty({},"passive",{get:function(){return My=!0,!0}});window.addEventListener("test",Md,Md),window.removeEventListener("test",Md,Md)}catch{My=!1}var as=My?{passive:!1}:!1,iH=function(e){return e.tagName==="TEXTAREA"},rk=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!iH(e)&&n[t]==="visible")},aH=function(e){return rk(e,"overflowY")},oH=function(e){return rk(e,"overflowX")},GA=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var a=ik(e,r);if(a){var s=ak(e,r),l=s[1],u=s[2];if(l>u)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},sH=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},lH=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},ik=function(e,t){return e==="v"?aH(t):oH(t)},ak=function(e,t){return e==="v"?sH(t):lH(t)},cH=function(e,t){return e==="h"&&t==="rtl"?-1:1},uH=function(e,t,n,r,a){var s=cH(e,window.getComputedStyle(t).direction),l=s*r,u=n.target,d=t.contains(u),f=!1,p=l>0,g=0,y=0;do{if(!u)break;var _=ak(e,u),S=_[0],A=_[1],C=_[2],w=A-C-s*S;(S||w)&&ik(e,u)&&(g+=w,y+=S);var x=u.parentNode;u=x&&x.nodeType===Node.DOCUMENT_FRAGMENT_NODE?x.host:x}while(!d&&u!==document.body||d&&(t.contains(u)||t===u));return(p&&Math.abs(g)<1||!p&&Math.abs(y)<1)&&(f=!0),f},zd=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},KA=function(e){return[e.deltaX,e.deltaY]},qA=function(e){return e&&"current"in e?e.current:e},dH=function(e,t){return e[0]===t[0]&&e[1]===t[1]},fH=function(e){return`
|
|
245
|
-
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
|
246
|
-
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
|
247
|
-
`)},hH=0,os=[];function pH(e){var t=E.useRef([]),n=E.useRef([0,0]),r=E.useRef(),a=E.useState(hH++)[0],s=E.useState(nk)[0],l=E.useRef(e);E.useEffect(function(){l.current=e},[e]),E.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(a));var A=L$([e.lockRef.current],(e.shards||[]).map(qA),!0).filter(Boolean);return A.forEach(function(C){return C.classList.add("allow-interactivity-".concat(a))}),function(){document.body.classList.remove("block-interactivity-".concat(a)),A.forEach(function(C){return C.classList.remove("allow-interactivity-".concat(a))})}}},[e.inert,e.lockRef.current,e.shards]);var u=E.useCallback(function(A,C){if("touches"in A&&A.touches.length===2||A.type==="wheel"&&A.ctrlKey)return!l.current.allowPinchZoom;var w=zd(A),x=n.current,T="deltaX"in A?A.deltaX:x[0]-w[0],N="deltaY"in A?A.deltaY:x[1]-w[1],R,I=A.target,D=Math.abs(T)>Math.abs(N)?"h":"v";if("touches"in A&&D==="h"&&I.type==="range")return!1;var L=GA(D,I);if(!L)return!0;if(L?R=D:(R=D==="v"?"h":"v",L=GA(D,I)),!L)return!1;if(!r.current&&"changedTouches"in A&&(T||N)&&(r.current=R),!R)return!0;var H=r.current||R;return uH(H,C,A,H==="h"?T:N)},[]),d=E.useCallback(function(A){var C=A;if(!(!os.length||os[os.length-1]!==s)){var w="deltaY"in C?KA(C):zd(C),x=t.current.filter(function(R){return R.name===C.type&&(R.target===C.target||C.target===R.shadowParent)&&dH(R.delta,w)})[0];if(x&&x.should){C.cancelable&&C.preventDefault();return}if(!x){var T=(l.current.shards||[]).map(qA).filter(Boolean).filter(function(R){return R.contains(C.target)}),N=T.length>0?u(C,T[0]):!l.current.noIsolation;N&&C.cancelable&&C.preventDefault()}}},[]),f=E.useCallback(function(A,C,w,x){var T={name:A,delta:C,target:w,should:x,shadowParent:mH(w)};t.current.push(T),setTimeout(function(){t.current=t.current.filter(function(N){return N!==T})},1)},[]),p=E.useCallback(function(A){n.current=zd(A),r.current=void 0},[]),g=E.useCallback(function(A){f(A.type,KA(A),A.target,u(A,e.lockRef.current))},[]),y=E.useCallback(function(A){f(A.type,zd(A),A.target,u(A,e.lockRef.current))},[]);E.useEffect(function(){return os.push(s),e.setCallbacks({onScrollCapture:g,onWheelCapture:g,onTouchMoveCapture:y}),document.addEventListener("wheel",d,as),document.addEventListener("touchmove",d,as),document.addEventListener("touchstart",p,as),function(){os=os.filter(function(A){return A!==s}),document.removeEventListener("wheel",d,as),document.removeEventListener("touchmove",d,as),document.removeEventListener("touchstart",p,as)}},[]);var _=e.removeScrollBar,S=e.inert;return E.createElement(E.Fragment,null,S?E.createElement(s,{styles:fH(a)}):null,_?E.createElement(rH,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function mH(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const gH=H$(tk,pH);var Eb=E.forwardRef(function(e,t){return E.createElement(bh,Mr({},e,{ref:t,sideCar:gH}))});Eb.classNames=bh.classNames;var yH=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},ss=new WeakMap,Bd=new WeakMap,Vd={},Rg=0,ok=function(e){return e&&(e.host||ok(e.parentNode))},vH=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=ok(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})},bH=function(e,t,n,r){var a=vH(t,Array.isArray(e)?e:[e]);Vd[n]||(Vd[n]=new WeakMap);var s=Vd[n],l=[],u=new Set,d=new Set(a),f=function(g){!g||u.has(g)||(u.add(g),f(g.parentNode))};a.forEach(f);var p=function(g){!g||d.has(g)||Array.prototype.forEach.call(g.children,function(y){if(u.has(y))p(y);else try{var _=y.getAttribute(r),S=_!==null&&_!=="false",A=(ss.get(y)||0)+1,C=(s.get(y)||0)+1;ss.set(y,A),s.set(y,C),l.push(y),A===1&&S&&Bd.set(y,!0),C===1&&y.setAttribute(n,"true"),S||y.setAttribute(r,"true")}catch(w){console.error("aria-hidden: cannot operate on ",y,w)}})};return p(t),u.clear(),Rg++,function(){l.forEach(function(g){var y=ss.get(g)-1,_=s.get(g)-1;ss.set(g,y),s.set(g,_),y||(Bd.has(g)||g.removeAttribute(r),Bd.delete(g)),_||g.removeAttribute(n)}),Rg--,Rg||(ss=new WeakMap,ss=new WeakMap,Bd=new WeakMap,Vd={})}},sk=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),a=yH(e);return a?(r.push.apply(r,Array.from(a.querySelectorAll("[aria-live], script"))),bH(r,a,n,"aria-hidden")):function(){return null}},_h="Dialog",[lk]=tu(_h),[_H,wr]=lk(_h),ck=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:a,onOpenChange:s,modal:l=!0}=e,u=E.useRef(null),d=E.useRef(null),[f,p]=If({prop:r,defaultProp:a??!1,onChange:s,caller:_h});return v.jsx(_H,{scope:t,triggerRef:u,contentRef:d,contentId:ur(),titleId:ur(),descriptionId:ur(),open:f,onOpenChange:p,onOpenToggle:E.useCallback(()=>p(g=>!g),[p]),modal:l,children:n})};ck.displayName=_h;var uk="DialogTrigger",EH=E.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,a=wr(uk,n),s=wt(t,a.triggerRef);return v.jsx(He.button,{type:"button","aria-haspopup":"dialog","aria-expanded":a.open,"aria-controls":a.contentId,"data-state":Ab(a.open),...r,ref:s,onClick:Qe(e.onClick,a.onOpenToggle)})});EH.displayName=uk;var Sb="DialogPortal",[SH,dk]=lk(Sb,{forceMount:void 0}),fk=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:a}=e,s=wr(Sb,t);return v.jsx(SH,{scope:t,forceMount:n,children:E.Children.map(r,l=>v.jsx(nu,{present:n||s.open,children:v.jsx(vh,{asChild:!0,container:a,children:l})}))})};fk.displayName=Sb;var Df="DialogOverlay",hk=E.forwardRef((e,t)=>{const n=dk(Df,e.__scopeDialog),{forceMount:r=n.forceMount,...a}=e,s=wr(Df,e.__scopeDialog);return s.modal?v.jsx(nu,{present:r||s.open,children:v.jsx(AH,{...a,ref:t})}):null});hk.displayName=Df;var xH=Rs("DialogOverlay.RemoveScroll"),AH=E.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,a=wr(Df,n);return v.jsx(Eb,{as:xH,allowPinchZoom:!0,shards:[a.contentRef],children:v.jsx(He.div,{"data-state":Ab(a.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),ro="DialogContent",pk=E.forwardRef((e,t)=>{const n=dk(ro,e.__scopeDialog),{forceMount:r=n.forceMount,...a}=e,s=wr(ro,e.__scopeDialog);return v.jsx(nu,{present:r||s.open,children:s.modal?v.jsx(wH,{...a,ref:t}):v.jsx(TH,{...a,ref:t})})});pk.displayName=ro;var wH=E.forwardRef((e,t)=>{const n=wr(ro,e.__scopeDialog),r=E.useRef(null),a=wt(t,n.contentRef,r);return E.useEffect(()=>{const s=r.current;if(s)return sk(s)},[]),v.jsx(mk,{...e,ref:a,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Qe(e.onCloseAutoFocus,s=>{s.preventDefault(),n.triggerRef.current?.focus()}),onPointerDownOutside:Qe(e.onPointerDownOutside,s=>{const l=s.detail.originalEvent,u=l.button===0&&l.ctrlKey===!0;(l.button===2||u)&&s.preventDefault()}),onFocusOutside:Qe(e.onFocusOutside,s=>s.preventDefault())})}),TH=E.forwardRef((e,t)=>{const n=wr(ro,e.__scopeDialog),r=E.useRef(!1),a=E.useRef(!1);return v.jsx(mk,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{e.onCloseAutoFocus?.(s),s.defaultPrevented||(r.current||n.triggerRef.current?.focus(),s.preventDefault()),r.current=!1,a.current=!1},onInteractOutside:s=>{e.onInteractOutside?.(s),s.defaultPrevented||(r.current=!0,s.detail.originalEvent.type==="pointerdown"&&(a.current=!0));const l=s.target;n.triggerRef.current?.contains(l)&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&a.current&&s.preventDefault()}})}),mk=E.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:a,onCloseAutoFocus:s,...l}=e,u=wr(ro,n),d=E.useRef(null),f=wt(t,d);return Q1(),v.jsxs(v.Fragment,{children:[v.jsx(_b,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:a,onUnmountAutoFocus:s,children:v.jsx(yh,{role:"dialog",id:u.contentId,"aria-describedby":u.descriptionId,"aria-labelledby":u.titleId,"data-state":Ab(u.open),...l,ref:f,onDismiss:()=>u.onOpenChange(!1)})}),v.jsxs(v.Fragment,{children:[v.jsx(NH,{titleId:u.titleId}),v.jsx(IH,{contentRef:d,descriptionId:u.descriptionId})]})]})}),xb="DialogTitle",CH=E.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,a=wr(xb,n);return v.jsx(He.h2,{id:a.titleId,...r,ref:t})});CH.displayName=xb;var gk="DialogDescription",RH=E.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,a=wr(gk,n);return v.jsx(He.p,{id:a.descriptionId,...r,ref:t})});RH.displayName=gk;var yk="DialogClose",kH=E.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,a=wr(yk,n);return v.jsx(He.button,{type:"button",...r,ref:t,onClick:Qe(e.onClick,()=>a.onOpenChange(!1))})});kH.displayName=yk;function Ab(e){return e?"open":"closed"}var vk="DialogTitleWarning",[cse,bk]=t$(vk,{contentName:ro,titleName:xb,docsSlug:"dialog"}),NH=({titleId:e})=>{const t=bk(vk),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
|
|
248
|
-
|
|
249
|
-
If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
250
|
-
|
|
251
|
-
For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return E.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},OH="DialogDescriptionWarning",IH=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${bk(OH).contentName}}.`;return E.useEffect(()=>{const a=e.current?.getAttribute("aria-describedby");t&&a&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},DH=ck,jH=fk,LH=hk,PH=pk,WA=1,MH=.9,zH=.8,BH=.17,kg=.1,Ng=.999,VH=.9999,UH=.99,FH=/[\\\/_+.#"@\[\(\{&]/,$H=/[\\\/_+.#"@\[\(\{&]/g,HH=/[\s-]/,_k=/[\s-]/g;function zy(e,t,n,r,a,s,l){if(s===t.length)return a===e.length?WA:UH;var u=`${a},${s}`;if(l[u]!==void 0)return l[u];for(var d=r.charAt(s),f=n.indexOf(d,a),p=0,g,y,_,S;f>=0;)g=zy(e,t,n,r,f+1,s+1,l),g>p&&(f===a?g*=WA:FH.test(e.charAt(f-1))?(g*=zH,_=e.slice(a,f-1).match($H),_&&a>0&&(g*=Math.pow(Ng,_.length))):HH.test(e.charAt(f-1))?(g*=MH,S=e.slice(a,f-1).match(_k),S&&a>0&&(g*=Math.pow(Ng,S.length))):(g*=BH,a>0&&(g*=Math.pow(Ng,f-a))),e.charAt(f)!==t.charAt(s)&&(g*=VH)),(g<kg&&n.charAt(f-1)===r.charAt(s+1)||r.charAt(s+1)===r.charAt(s)&&n.charAt(f-1)!==r.charAt(s))&&(y=zy(e,t,n,r,f+1,s+2,l),y*kg>g&&(g=y*kg)),g>p&&(p=g),f=n.indexOf(d,f+1);return l[u]=p,p}function ZA(e){return e.toLowerCase().replace(_k," ")}function GH(e,t,n){return e=n&&n.length>0?`${e+" "+n.join(" ")}`:e,zy(e,t,ZA(e),ZA(t),0,0,{})}var Jl='[cmdk-group=""]',Og='[cmdk-group-items=""]',KH='[cmdk-group-heading=""]',Ek='[cmdk-item=""]',YA=`${Ek}:not([aria-disabled="true"])`,By="cmdk-item-select",cs="data-value",qH=(e,t,n)=>GH(e,t,n),Sk=E.createContext(void 0),ru=()=>E.useContext(Sk),xk=E.createContext(void 0),wb=()=>E.useContext(xk),Ak=E.createContext(void 0),wk=E.forwardRef((e,t)=>{let n=us(()=>{var F,J;return{search:"",value:(J=(F=e.value)!=null?F:e.defaultValue)!=null?J:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),r=us(()=>new Set),a=us(()=>new Map),s=us(()=>new Map),l=us(()=>new Set),u=Tk(e),{label:d,children:f,value:p,onValueChange:g,filter:y,shouldFilter:_,loop:S,disablePointerSelection:A=!1,vimBindings:C=!0,...w}=e,x=ur(),T=ur(),N=ur(),R=E.useRef(null),I=iG();io(()=>{if(p!==void 0){let F=p.trim();n.current.value=F,D.emit()}},[p]),io(()=>{I(6,ce)},[]);let D=E.useMemo(()=>({subscribe:F=>(l.current.add(F),()=>l.current.delete(F)),snapshot:()=>n.current,setState:(F,J,se)=>{var he,ye,fe,xe;if(!Object.is(n.current[F],J)){if(n.current[F]=J,F==="search")te(),Z(),I(1,q);else if(F==="value"){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let je=document.getElementById(N);je?je.focus():(he=document.getElementById(x))==null||he.focus()}if(I(7,()=>{var je;n.current.selectedItemId=(je=W())==null?void 0:je.id,D.emit()}),se||I(5,ce),((ye=u.current)==null?void 0:ye.value)!==void 0){let je=J??"";(xe=(fe=u.current).onValueChange)==null||xe.call(fe,je);return}}D.emit()}},emit:()=>{l.current.forEach(F=>F())}}),[]),L=E.useMemo(()=>({value:(F,J,se)=>{var he;J!==((he=s.current.get(F))==null?void 0:he.value)&&(s.current.set(F,{value:J,keywords:se}),n.current.filtered.items.set(F,H(J,se)),I(2,()=>{Z(),D.emit()}))},item:(F,J)=>(r.current.add(F),J&&(a.current.has(J)?a.current.get(J).add(F):a.current.set(J,new Set([F]))),I(3,()=>{te(),Z(),n.current.value||q(),D.emit()}),()=>{s.current.delete(F),r.current.delete(F),n.current.filtered.items.delete(F);let se=W();I(4,()=>{te(),se?.getAttribute("id")===F&&q(),D.emit()})}),group:F=>(a.current.has(F)||a.current.set(F,new Set),()=>{s.current.delete(F),a.current.delete(F)}),filter:()=>u.current.shouldFilter,label:d||e["aria-label"],getDisablePointerSelection:()=>u.current.disablePointerSelection,listId:x,inputId:N,labelId:T,listInnerRef:R}),[]);function H(F,J){var se,he;let ye=(he=(se=u.current)==null?void 0:se.filter)!=null?he:qH;return F?ye(F,n.current.search,J):0}function Z(){if(!n.current.search||u.current.shouldFilter===!1)return;let F=n.current.filtered.items,J=[];n.current.filtered.groups.forEach(he=>{let ye=a.current.get(he),fe=0;ye.forEach(xe=>{let je=F.get(xe);fe=Math.max(je,fe)}),J.push([he,fe])});let se=R.current;ae().sort((he,ye)=>{var fe,xe;let je=he.getAttribute("id"),Be=ye.getAttribute("id");return((fe=F.get(Be))!=null?fe:0)-((xe=F.get(je))!=null?xe:0)}).forEach(he=>{let ye=he.closest(Og);ye?ye.appendChild(he.parentElement===ye?he:he.closest(`${Og} > *`)):se.appendChild(he.parentElement===se?he:he.closest(`${Og} > *`))}),J.sort((he,ye)=>ye[1]-he[1]).forEach(he=>{var ye;let fe=(ye=R.current)==null?void 0:ye.querySelector(`${Jl}[${cs}="${encodeURIComponent(he[0])}"]`);fe?.parentElement.appendChild(fe)})}function q(){let F=ae().find(se=>se.getAttribute("aria-disabled")!=="true"),J=F?.getAttribute(cs);D.setState("value",J||void 0)}function te(){var F,J,se,he;if(!n.current.search||u.current.shouldFilter===!1){n.current.filtered.count=r.current.size;return}n.current.filtered.groups=new Set;let ye=0;for(let fe of r.current){let xe=(J=(F=s.current.get(fe))==null?void 0:F.value)!=null?J:"",je=(he=(se=s.current.get(fe))==null?void 0:se.keywords)!=null?he:[],Be=H(xe,je);n.current.filtered.items.set(fe,Be),Be>0&&ye++}for(let[fe,xe]of a.current)for(let je of xe)if(n.current.filtered.items.get(je)>0){n.current.filtered.groups.add(fe);break}n.current.filtered.count=ye}function ce(){var F,J,se;let he=W();he&&(((F=he.parentElement)==null?void 0:F.firstChild)===he&&((se=(J=he.closest(Jl))==null?void 0:J.querySelector(KH))==null||se.scrollIntoView({block:"nearest"})),he.scrollIntoView({block:"nearest"}))}function W(){var F;return(F=R.current)==null?void 0:F.querySelector(`${Ek}[aria-selected="true"]`)}function ae(){var F;return Array.from(((F=R.current)==null?void 0:F.querySelectorAll(YA))||[])}function M(F){let J=ae()[F];J&&D.setState("value",J.getAttribute(cs))}function X(F){var J;let se=W(),he=ae(),ye=he.findIndex(xe=>xe===se),fe=he[ye+F];(J=u.current)!=null&&J.loop&&(fe=ye+F<0?he[he.length-1]:ye+F===he.length?he[0]:he[ye+F]),fe&&D.setState("value",fe.getAttribute(cs))}function G(F){let J=W(),se=J?.closest(Jl),he;for(;se&&!he;)se=F>0?nG(se,Jl):rG(se,Jl),he=se?.querySelector(YA);he?D.setState("value",he.getAttribute(cs)):X(F)}let ge=()=>M(ae().length-1),P=F=>{F.preventDefault(),F.metaKey?ge():F.altKey?G(1):X(1)},ie=F=>{F.preventDefault(),F.metaKey?M(0):F.altKey?G(-1):X(-1)};return E.createElement(He.div,{ref:t,tabIndex:-1,...w,"cmdk-root":"",onKeyDown:F=>{var J;(J=w.onKeyDown)==null||J.call(w,F);let se=F.nativeEvent.isComposing||F.keyCode===229;if(!(F.defaultPrevented||se))switch(F.key){case"n":case"j":{C&&F.ctrlKey&&P(F);break}case"ArrowDown":{P(F);break}case"p":case"k":{C&&F.ctrlKey&&ie(F);break}case"ArrowUp":{ie(F);break}case"Home":{F.preventDefault(),M(0);break}case"End":{F.preventDefault(),ge();break}case"Enter":{F.preventDefault();let he=W();if(he){let ye=new Event(By);he.dispatchEvent(ye)}}}}},E.createElement("label",{"cmdk-label":"",htmlFor:L.inputId,id:L.labelId,style:oG},d),Eh(e,F=>E.createElement(xk.Provider,{value:D},E.createElement(Sk.Provider,{value:L},F))))}),WH=E.forwardRef((e,t)=>{var n,r;let a=ur(),s=E.useRef(null),l=E.useContext(Ak),u=ru(),d=Tk(e),f=(r=(n=d.current)==null?void 0:n.forceMount)!=null?r:l?.forceMount;io(()=>{if(!f)return u.item(a,l?.id)},[f]);let p=Ck(a,s,[e.value,e.children,s],e.keywords),g=wb(),y=aa(I=>I.value&&I.value===p.current),_=aa(I=>f||u.filter()===!1?!0:I.search?I.filtered.items.get(a)>0:!0);E.useEffect(()=>{let I=s.current;if(!(!I||e.disabled))return I.addEventListener(By,S),()=>I.removeEventListener(By,S)},[_,e.onSelect,e.disabled]);function S(){var I,D;A(),(D=(I=d.current).onSelect)==null||D.call(I,p.current)}function A(){g.setState("value",p.current,!0)}if(!_)return null;let{disabled:C,value:w,onSelect:x,forceMount:T,keywords:N,...R}=e;return E.createElement(He.div,{ref:no(s,t),...R,id:a,"cmdk-item":"",role:"option","aria-disabled":!!C,"aria-selected":!!y,"data-disabled":!!C,"data-selected":!!y,onPointerMove:C||u.getDisablePointerSelection()?void 0:A,onClick:C?void 0:S},e.children)}),ZH=E.forwardRef((e,t)=>{let{heading:n,children:r,forceMount:a,...s}=e,l=ur(),u=E.useRef(null),d=E.useRef(null),f=ur(),p=ru(),g=aa(_=>a||p.filter()===!1?!0:_.search?_.filtered.groups.has(l):!0);io(()=>p.group(l),[]),Ck(l,u,[e.value,e.heading,d]);let y=E.useMemo(()=>({id:l,forceMount:a}),[a]);return E.createElement(He.div,{ref:no(u,t),...s,"cmdk-group":"",role:"presentation",hidden:g?void 0:!0},n&&E.createElement("div",{ref:d,"cmdk-group-heading":"","aria-hidden":!0,id:f},n),Eh(e,_=>E.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":n?f:void 0},E.createElement(Ak.Provider,{value:y},_))))}),YH=E.forwardRef((e,t)=>{let{alwaysRender:n,...r}=e,a=E.useRef(null),s=aa(l=>!l.search);return!n&&!s?null:E.createElement(He.div,{ref:no(a,t),...r,"cmdk-separator":"",role:"separator"})}),XH=E.forwardRef((e,t)=>{let{onValueChange:n,...r}=e,a=e.value!=null,s=wb(),l=aa(f=>f.search),u=aa(f=>f.selectedItemId),d=ru();return E.useEffect(()=>{e.value!=null&&s.setState("search",e.value)},[e.value]),E.createElement(He.input,{ref:t,...r,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":d.listId,"aria-labelledby":d.labelId,"aria-activedescendant":u,id:d.inputId,type:"text",value:a?e.value:l,onChange:f=>{a||s.setState("search",f.target.value),n?.(f.target.value)}})}),QH=E.forwardRef((e,t)=>{let{children:n,label:r="Suggestions",...a}=e,s=E.useRef(null),l=E.useRef(null),u=aa(f=>f.selectedItemId),d=ru();return E.useEffect(()=>{if(l.current&&s.current){let f=l.current,p=s.current,g,y=new ResizeObserver(()=>{g=requestAnimationFrame(()=>{let _=f.offsetHeight;p.style.setProperty("--cmdk-list-height",_.toFixed(1)+"px")})});return y.observe(f),()=>{cancelAnimationFrame(g),y.unobserve(f)}}},[]),E.createElement(He.div,{ref:no(s,t),...a,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":u,"aria-label":r,id:d.listId},Eh(e,f=>E.createElement("div",{ref:no(l,d.listInnerRef),"cmdk-list-sizer":""},f)))}),JH=E.forwardRef((e,t)=>{let{open:n,onOpenChange:r,overlayClassName:a,contentClassName:s,container:l,...u}=e;return E.createElement(DH,{open:n,onOpenChange:r},E.createElement(jH,{container:l},E.createElement(LH,{"cmdk-overlay":"",className:a}),E.createElement(PH,{"aria-label":e.label,"cmdk-dialog":"",className:s},E.createElement(wk,{ref:t,...u}))))}),eG=E.forwardRef((e,t)=>aa(n=>n.filtered.count===0)?E.createElement(He.div,{ref:t,...e,"cmdk-empty":"",role:"presentation"}):null),tG=E.forwardRef((e,t)=>{let{progress:n,children:r,label:a="Loading...",...s}=e;return E.createElement(He.div,{ref:t,...s,"cmdk-loading":"",role:"progressbar","aria-valuenow":n,"aria-valuemin":0,"aria-valuemax":100,"aria-label":a},Eh(e,l=>E.createElement("div",{"aria-hidden":!0},l)))}),iu=Object.assign(wk,{List:QH,Item:WH,Input:XH,Group:ZH,Separator:YH,Dialog:JH,Empty:eG,Loading:tG});function nG(e,t){let n=e.nextElementSibling;for(;n;){if(n.matches(t))return n;n=n.nextElementSibling}}function rG(e,t){let n=e.previousElementSibling;for(;n;){if(n.matches(t))return n;n=n.previousElementSibling}}function Tk(e){let t=E.useRef(e);return io(()=>{t.current=e}),t}var io=typeof window>"u"?E.useEffect:E.useLayoutEffect;function us(e){let t=E.useRef();return t.current===void 0&&(t.current=e()),t}function aa(e){let t=wb(),n=()=>e(t.snapshot());return E.useSyncExternalStore(t.subscribe,n,n)}function Ck(e,t,n,r=[]){let a=E.useRef(),s=ru();return io(()=>{var l;let u=(()=>{var f;for(let p of n){if(typeof p=="string")return p.trim();if(typeof p=="object"&&"current"in p)return p.current?(f=p.current.textContent)==null?void 0:f.trim():a.current}})(),d=r.map(f=>f.trim());s.value(e,u,d),(l=t.current)==null||l.setAttribute(cs,u),a.current=u}),a}var iG=()=>{let[e,t]=E.useState(),n=us(()=>new Map);return io(()=>{n.current.forEach(r=>r()),n.current=new Map},[e]),(r,a)=>{n.current.set(r,a),t({})}};function aG(e){let t=e.type;return typeof t=="function"?t(e.props):"render"in t?t.render(e.props):e}function Eh({asChild:e,children:t},n){return e&&E.isValidElement(t)?E.cloneElement(aG(t),{ref:t.ref},n(t.props.children)):n(t)}var oG={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};const Rk=({className:e,...t})=>v.jsx(iu,{className:_e("flex size-full flex-col overflow-hidden rounded-md",e),...t}),sG=({className:e,...t})=>v.jsxs("div",{className:"flex w-full items-center","cmdk-input-wrapper":"",children:[v.jsx(lF,{className:"mr-2 size-4 shrink-0 opacity-50"}),v.jsx(iu.Input,{className:_e("placeholder:text-muted-foreground outline-hidden flex w-full rounded-md bg-transparent text-sm disabled:cursor-not-allowed disabled:opacity-50",e),...t})]}),lG=({className:e,...t})=>v.jsx(iu.List,{className:_e("max-h-[300px] overflow-y-auto overflow-x-hidden",e),...t}),cG=e=>v.jsx(iu.Empty,{className:"py-6 text-center text-sm",...e}),uG=({className:e,...t})=>v.jsx(iu.Item,{className:_e("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}),jf={...Rk,Input:sG,List:lG,Empty:cG,Item:uG},dG=fr("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/95",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"}}),Tr=({children:e,roundedSize:t,padding:n,transparency:r,separator:a,className:s,border:l,borderColor:u,background:d,...f})=>v.jsx("div",{className:_e(dG({roundedSize:t,transparency:r,padding:n,separator:a,border:typeof l=="boolean"?l?"with":"none":void 0,background:d,borderColor:u,className:s})),...f,children:e}),kk=({content:e,...t})=>{const[n,r]=E.useState(!1),{label:a}=cn("copy-button"),s=async()=>{try{await navigator.clipboard.writeText(e),r(!0)}catch(l){console.error("Failed to copy text: ",l)}};return E.useEffect(()=>{const l=setTimeout(()=>{r(!1)},1e3);return()=>clearTimeout(l)},[n]),v.jsx(ot,{Icon:n?B2:U2,onClick:s,variant:at.HOVERABLE,color:it.TEXT,size:qn.ICON_SM,...t,label:t.label??a.value})},Nk=E.createContext({});function fG(e){const t=E.useRef(null);return t.current===null&&(t.current=e()),t.current}const Tb=typeof window<"u",hG=Tb?E.useLayoutEffect:E.useEffect,Cb=E.createContext(null);function Rb(e,t){e.indexOf(t)===-1&&e.push(t)}function kb(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const yi=(e,t,n)=>n>t?t:n<e?e:n;let Nb=()=>{};const vi={},Ok=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function Ik(e){return typeof e=="object"&&e!==null}const Dk=e=>/^0[^.\s]+$/u.test(e);function Ob(e){let t;return()=>(t===void 0&&(t=e()),t)}const dr=e=>e,pG=(e,t)=>n=>t(e(n)),au=(...e)=>e.reduce(pG),Oc=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r};class Ib{constructor(){this.subscriptions=[]}add(t){return Rb(this.subscriptions,t),()=>kb(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 s=0;s<a;s++){const l=this.subscriptions[s];l&&l(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const Vr=e=>e*1e3,cr=e=>e/1e3;function jk(e,t){return t?e*(1e3/t):0}const Lk=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,mG=1e-7,gG=12;function yG(e,t,n,r,a){let s,l,u=0;do l=t+(n-t)/2,s=Lk(l,r,a)-e,s>0?n=l:t=l;while(Math.abs(s)>mG&&++u<gG);return l}function ou(e,t,n,r){if(e===t&&n===r)return dr;const a=s=>yG(s,0,1,e,n);return s=>s===0||s===1?s:Lk(a(s),t,r)}const Pk=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Mk=e=>t=>1-e(1-t),zk=ou(.33,1.53,.69,.99),Db=Mk(zk),Bk=Pk(Db),Vk=e=>(e*=2)<1?.5*Db(e):.5*(2-Math.pow(2,-10*(e-1))),jb=e=>1-Math.sin(Math.acos(e)),Uk=Mk(jb),Fk=Pk(jb),vG=ou(.42,0,1,1),bG=ou(0,0,.58,1),$k=ou(.42,0,.58,1),_G=e=>Array.isArray(e)&&typeof e[0]!="number",Hk=e=>Array.isArray(e)&&typeof e[0]=="number",EG={linear:dr,easeIn:vG,easeInOut:$k,easeOut:bG,circIn:jb,circInOut:Fk,circOut:Uk,backIn:Db,backInOut:Bk,backOut:zk,anticipate:Vk},SG=e=>typeof e=="string",XA=e=>{if(Hk(e)){Nb(e.length===4);const[t,n,r,a]=e;return ou(t,n,r,a)}else if(SG(e))return EG[e];return e},Ud=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function xG(e,t){let n=new Set,r=new Set,a=!1,s=!1;const l=new WeakSet;let u={delta:0,timestamp:0,isProcessing:!1};function d(p){l.has(p)&&(f.schedule(p),e()),p(u)}const f={schedule:(p,g=!1,y=!1)=>{const S=y&&a?n:r;return g&&l.add(p),S.has(p)||S.add(p),p},cancel:p=>{r.delete(p),l.delete(p)},process:p=>{if(u=p,a){s=!0;return}a=!0,[n,r]=[r,n],n.forEach(d),n.clear(),a=!1,s&&(s=!1,f.process(p))}};return f}const AG=40;function Gk(e,t){let n=!1,r=!0;const a={delta:0,timestamp:0,isProcessing:!1},s=()=>n=!0,l=Ud.reduce((T,N)=>(T[N]=xG(s),T),{}),{setup:u,read:d,resolveKeyframes:f,preUpdate:p,update:g,preRender:y,render:_,postRender:S}=l,A=()=>{const T=vi.useManualTiming?a.timestamp:performance.now();n=!1,vi.useManualTiming||(a.delta=r?1e3/60:Math.max(Math.min(T-a.timestamp,AG),1)),a.timestamp=T,a.isProcessing=!0,u.process(a),d.process(a),f.process(a),p.process(a),g.process(a),y.process(a),_.process(a),S.process(a),a.isProcessing=!1,n&&t&&(r=!1,e(A))},C=()=>{n=!0,r=!0,a.isProcessing||e(A)};return{schedule:Ud.reduce((T,N)=>{const R=l[N];return T[N]=(I,D=!1,L=!1)=>(n||C(),R.schedule(I,D,L)),T},{}),cancel:T=>{for(let N=0;N<Ud.length;N++)l[Ud[N]].cancel(T)},state:a,steps:l}}const{schedule:bt,cancel:oa,state:sn,steps:Ig}=Gk(typeof requestAnimationFrame<"u"?requestAnimationFrame:dr,!0);let pf;function wG(){pf=void 0}const On={now:()=>(pf===void 0&&On.set(sn.isProcessing||vi.useManualTiming?sn.timestamp:performance.now()),pf),set:e=>{pf=e,queueMicrotask(wG)}},Kk=e=>t=>typeof t=="string"&&t.startsWith(e),Lb=Kk("--"),TG=Kk("var(--"),Pb=e=>TG(e)?CG.test(e.split("/*")[0].trim()):!1,CG=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Us={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Ic={...Us,transform:e=>yi(0,1,e)},Fd={...Us,default:1},gc=e=>Math.round(e*1e5)/1e5,Mb=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function RG(e){return e==null}const kG=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,zb=(e,t)=>n=>!!(typeof n=="string"&&kG.test(n)&&n.startsWith(e)||t&&!RG(n)&&Object.prototype.hasOwnProperty.call(n,t)),qk=(e,t,n)=>r=>{if(typeof r!="string")return r;const[a,s,l,u]=r.match(Mb);return{[e]:parseFloat(a),[t]:parseFloat(s),[n]:parseFloat(l),alpha:u!==void 0?parseFloat(u):1}},NG=e=>yi(0,255,e),Dg={...Us,transform:e=>Math.round(NG(e))},Za={test:zb("rgb","red"),parse:qk("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Dg.transform(e)+", "+Dg.transform(t)+", "+Dg.transform(n)+", "+gc(Ic.transform(r))+")"};function OG(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 Vy={test:zb("#"),parse:OG,transform:Za.transform},su=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),ea=su("deg"),Ur=su("%"),Pe=su("px"),IG=su("vh"),DG=su("vw"),QA={...Ur,parse:e=>Ur.parse(e)/100,transform:e=>Ur.transform(e*100)},hs={test:zb("hsl","hue"),parse:qk("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Ur.transform(gc(t))+", "+Ur.transform(gc(n))+", "+gc(Ic.transform(r))+")"},zt={test:e=>Za.test(e)||Vy.test(e)||hs.test(e),parse:e=>Za.test(e)?Za.parse(e):hs.test(e)?hs.parse(e):Vy.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Za.transform(e):hs.transform(e),getAnimatableNone:e=>{const t=zt.parse(e);return t.alpha=0,zt.transform(t)}},jG=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function LG(e){return isNaN(e)&&typeof e=="string"&&(e.match(Mb)?.length||0)+(e.match(jG)?.length||0)>0}const Wk="number",Zk="color",PG="var",MG="var(",JA="${}",zG=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Dc(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},a=[];let s=0;const u=t.replace(zG,d=>(zt.test(d)?(r.color.push(s),a.push(Zk),n.push(zt.parse(d))):d.startsWith(MG)?(r.var.push(s),a.push(PG),n.push(d)):(r.number.push(s),a.push(Wk),n.push(parseFloat(d))),++s,JA)).split(JA);return{values:n,split:u,indexes:r,types:a}}function Yk(e){return Dc(e).values}function Xk(e){const{split:t,types:n}=Dc(e),r=t.length;return a=>{let s="";for(let l=0;l<r;l++)if(s+=t[l],a[l]!==void 0){const u=n[l];u===Wk?s+=gc(a[l]):u===Zk?s+=zt.transform(a[l]):s+=a[l]}return s}}const BG=e=>typeof e=="number"?0:zt.test(e)?zt.getAnimatableNone(e):e;function VG(e){const t=Yk(e);return Xk(e)(t.map(BG))}const sa={test:LG,parse:Yk,createTransformer:Xk,getAnimatableNone:VG};function jg(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 UG({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let a=0,s=0,l=0;if(!t)a=s=l=n;else{const u=n<.5?n*(1+t):n+t-n*t,d=2*n-u;a=jg(d,u,e+1/3),s=jg(d,u,e),l=jg(d,u,e-1/3)}return{red:Math.round(a*255),green:Math.round(s*255),blue:Math.round(l*255),alpha:r}}function Lf(e,t){return n=>n>0?t:e}const xt=(e,t,n)=>e+(t-e)*n,Lg=(e,t,n)=>{const r=e*e,a=n*(t*t-r)+r;return a<0?0:Math.sqrt(a)},FG=[Vy,Za,hs],$G=e=>FG.find(t=>t.test(e));function ew(e){const t=$G(e);if(!t)return!1;let n=t.parse(e);return t===hs&&(n=UG(n)),n}const tw=(e,t)=>{const n=ew(e),r=ew(t);if(!n||!r)return Lf(e,t);const a={...n};return s=>(a.red=Lg(n.red,r.red,s),a.green=Lg(n.green,r.green,s),a.blue=Lg(n.blue,r.blue,s),a.alpha=xt(n.alpha,r.alpha,s),Za.transform(a))},Uy=new Set(["none","hidden"]);function HG(e,t){return Uy.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function GG(e,t){return n=>xt(e,t,n)}function Bb(e){return typeof e=="number"?GG:typeof e=="string"?Pb(e)?Lf:zt.test(e)?tw:WG:Array.isArray(e)?Qk:typeof e=="object"?zt.test(e)?tw:KG:Lf}function Qk(e,t){const n=[...e],r=n.length,a=e.map((s,l)=>Bb(s)(s,t[l]));return s=>{for(let l=0;l<r;l++)n[l]=a[l](s);return n}}function KG(e,t){const n={...e,...t},r={};for(const a in n)e[a]!==void 0&&t[a]!==void 0&&(r[a]=Bb(e[a])(e[a],t[a]));return a=>{for(const s in r)n[s]=r[s](a);return n}}function qG(e,t){const n=[],r={color:0,var:0,number:0};for(let a=0;a<t.values.length;a++){const s=t.types[a],l=e.indexes[s][r[s]],u=e.values[l]??0;n[a]=u,r[s]++}return n}const WG=(e,t)=>{const n=sa.createTransformer(t),r=Dc(e),a=Dc(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?Uy.has(e)&&!a.values.length||Uy.has(t)&&!r.values.length?HG(e,t):au(Qk(qG(r,a),a.values),n):Lf(e,t)};function Jk(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?xt(e,t,n):Bb(e)(e,t)}const ZG=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>bt.update(t,n),stop:()=>oa(t),now:()=>sn.isProcessing?sn.timestamp:On.now()}},eN=(e,t,n=10)=>{let r="";const a=Math.max(Math.round(t/n),2);for(let s=0;s<a;s++)r+=Math.round(e(s/(a-1))*1e4)/1e4+", ";return`linear(${r.substring(0,r.length-2)})`},Pf=2e4;function Vb(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<Pf;)t+=n,r=e.next(t);return t>=Pf?1/0:t}function YG(e,t=100,n){const r=n({...e,keyframes:[0,t]}),a=Math.min(Vb(r),Pf);return{type:"keyframes",ease:s=>r.next(a*s).value/t,duration:cr(a)}}const XG=5;function tN(e,t,n){const r=Math.max(t-XG,0);return jk(n-e(r),t-r)}const kt={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},Pg=.001;function QG({duration:e=kt.duration,bounce:t=kt.bounce,velocity:n=kt.velocity,mass:r=kt.mass}){let a,s,l=1-t;l=yi(kt.minDamping,kt.maxDamping,l),e=yi(kt.minDuration,kt.maxDuration,cr(e)),l<1?(a=f=>{const p=f*l,g=p*e,y=p-n,_=Fy(f,l),S=Math.exp(-g);return Pg-y/_*S},s=f=>{const g=f*l*e,y=g*n+n,_=Math.pow(l,2)*Math.pow(f,2)*e,S=Math.exp(-g),A=Fy(Math.pow(f,2),l);return(-a(f)+Pg>0?-1:1)*((y-_)*S)/A}):(a=f=>{const p=Math.exp(-f*e),g=(f-n)*e+1;return-Pg+p*g},s=f=>{const p=Math.exp(-f*e),g=(n-f)*(e*e);return p*g});const u=5/e,d=e3(a,s,u);if(e=Vr(e),isNaN(d))return{stiffness:kt.stiffness,damping:kt.damping,duration:e};{const f=Math.pow(d,2)*r;return{stiffness:f,damping:l*2*Math.sqrt(r*f),duration:e}}}const JG=12;function e3(e,t,n){let r=n;for(let a=1;a<JG;a++)r=r-e(r)/t(r);return r}function Fy(e,t){return e*Math.sqrt(1-t*t)}const t3=["duration","bounce"],n3=["stiffness","damping","mass"];function nw(e,t){return t.some(n=>e[n]!==void 0)}function r3(e){let t={velocity:kt.velocity,stiffness:kt.stiffness,damping:kt.damping,mass:kt.mass,isResolvedFromDuration:!1,...e};if(!nw(e,n3)&&nw(e,t3))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),a=r*r,s=2*yi(.05,1,1-(e.bounce||0))*Math.sqrt(a);t={...t,mass:kt.mass,stiffness:a,damping:s}}else{const n=QG(e);t={...t,...n,mass:kt.mass},t.isResolvedFromDuration=!0}return t}function Mf(e=kt.visualDuration,t=kt.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:a}=n;const s=n.keyframes[0],l=n.keyframes[n.keyframes.length-1],u={done:!1,value:s},{stiffness:d,damping:f,mass:p,duration:g,velocity:y,isResolvedFromDuration:_}=r3({...n,velocity:-cr(n.velocity||0)}),S=y||0,A=f/(2*Math.sqrt(d*p)),C=l-s,w=cr(Math.sqrt(d/p)),x=Math.abs(C)<5;r||(r=x?kt.restSpeed.granular:kt.restSpeed.default),a||(a=x?kt.restDelta.granular:kt.restDelta.default);let T;if(A<1){const R=Fy(w,A);T=I=>{const D=Math.exp(-A*w*I);return l-D*((S+A*w*C)/R*Math.sin(R*I)+C*Math.cos(R*I))}}else if(A===1)T=R=>l-Math.exp(-w*R)*(C+(S+w*C)*R);else{const R=w*Math.sqrt(A*A-1);T=I=>{const D=Math.exp(-A*w*I),L=Math.min(R*I,300);return l-D*((S+A*w*C)*Math.sinh(L)+R*C*Math.cosh(L))/R}}const N={calculatedDuration:_&&g||null,next:R=>{const I=T(R);if(_)u.done=R>=g;else{let D=R===0?S:0;A<1&&(D=R===0?Vr(S):tN(T,R,I));const L=Math.abs(D)<=r,H=Math.abs(l-I)<=a;u.done=L&&H}return u.value=u.done?l:I,u},toString:()=>{const R=Math.min(Vb(N),Pf),I=eN(D=>N.next(R*D).value,R,30);return R+"ms "+I},toTransition:()=>{}};return N}Mf.applyToOptions=e=>{const t=YG(e,100,Mf);return e.ease=t.ease,e.duration=Vr(t.duration),e.type="keyframes",e};function $y({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:a=10,bounceStiffness:s=500,modifyTarget:l,min:u,max:d,restDelta:f=.5,restSpeed:p}){const g=e[0],y={done:!1,value:g},_=L=>u!==void 0&&L<u||d!==void 0&&L>d,S=L=>u===void 0?d:d===void 0||Math.abs(u-L)<Math.abs(d-L)?u:d;let A=n*t;const C=g+A,w=l===void 0?C:l(C);w!==C&&(A=w-g);const x=L=>-A*Math.exp(-L/r),T=L=>w+x(L),N=L=>{const H=x(L),Z=T(L);y.done=Math.abs(H)<=f,y.value=y.done?w:Z};let R,I;const D=L=>{_(y.value)&&(R=L,I=Mf({keyframes:[y.value,S(y.value)],velocity:tN(T,L,y.value),damping:a,stiffness:s,restDelta:f,restSpeed:p}))};return D(0),{calculatedDuration:null,next:L=>{let H=!1;return!I&&R===void 0&&(H=!0,N(L),D(L)),R!==void 0&&L>=R?I.next(L-R):(!H&&N(L),y)}}}function i3(e,t,n){const r=[],a=n||vi.mix||Jk,s=e.length-1;for(let l=0;l<s;l++){let u=a(e[l],e[l+1]);if(t){const d=Array.isArray(t)?t[l]||dr:t;u=au(d,u)}r.push(u)}return r}function a3(e,t,{clamp:n=!0,ease:r,mixer:a}={}){const s=e.length;if(Nb(s===t.length),s===1)return()=>t[0];if(s===2&&t[0]===t[1])return()=>t[1];const l=e[0]===e[1];e[0]>e[s-1]&&(e=[...e].reverse(),t=[...t].reverse());const u=i3(t,r,a),d=u.length,f=p=>{if(l&&p<e[0])return t[0];let g=0;if(d>1)for(;g<e.length-2&&!(p<e[g+1]);g++);const y=Oc(e[g],e[g+1],p);return u[g](y)};return n?p=>f(yi(e[0],e[s-1],p)):f}function o3(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const a=Oc(0,t,r);e.push(xt(n,1,a))}}function s3(e){const t=[0];return o3(t,e.length-1),t}function l3(e,t){return e.map(n=>n*t)}function c3(e,t){return e.map(()=>t||$k).splice(0,e.length-1)}function yc({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const a=_G(r)?r.map(XA):XA(r),s={done:!1,value:t[0]},l=l3(n&&n.length===t.length?n:s3(t),e),u=a3(l,t,{ease:Array.isArray(a)?a:c3(t,a)});return{calculatedDuration:e,next:d=>(s.value=u(d),s.done=d>=e,s)}}const u3=e=>e!==null;function Ub(e,{repeat:t,repeatType:n="loop"},r,a=1){const s=e.filter(u3),u=a<0||t&&n!=="loop"&&t%2===1?0:s.length-1;return!u||r===void 0?s[u]:r}const d3={decay:$y,inertia:$y,tween:yc,keyframes:yc,spring:Mf};function nN(e){typeof e.type=="string"&&(e.type=d3[e.type])}class Fb{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,n){return this.finished.then(t,n)}}const f3=e=>e/100;class $b extends Fb{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{const{motionValue:n}=this.options;n&&n.updatedAt!==On.now()&&this.tick(On.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;nN(t);const{type:n=yc,repeat:r=0,repeatDelay:a=0,repeatType:s,velocity:l=0}=t;let{keyframes:u}=t;const d=n||yc;d!==yc&&typeof u[0]!="number"&&(this.mixKeyframes=au(f3,Jk(u[0],u[1])),u=[0,100]);const f=d({...t,keyframes:u});s==="mirror"&&(this.mirroredGenerator=d({...t,keyframes:[...u].reverse(),velocity:-l})),f.calculatedDuration===null&&(f.calculatedDuration=Vb(f));const{calculatedDuration:p}=f;this.calculatedDuration=p,this.resolvedDuration=p+a,this.totalDuration=this.resolvedDuration*(r+1)-a,this.generator=f}updateTime(t){const n=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(t,n=!1){const{generator:r,totalDuration:a,mixKeyframes:s,mirroredGenerator:l,resolvedDuration:u,calculatedDuration:d}=this;if(this.startTime===null)return r.next(0);const{delay:f=0,keyframes:p,repeat:g,repeatType:y,repeatDelay:_,type:S,onUpdate:A,finalKeyframe:C}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-a/this.speed,this.startTime)),n?this.currentTime=t:this.updateTime(t);const w=this.currentTime-f*(this.playbackSpeed>=0?1:-1),x=this.playbackSpeed>=0?w<0:w>a;this.currentTime=Math.max(w,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=a);let T=this.currentTime,N=r;if(g){const L=Math.min(this.currentTime,a)/u;let H=Math.floor(L),Z=L%1;!Z&&L>=1&&(Z=1),Z===1&&H--,H=Math.min(H,g+1),!!(H%2)&&(y==="reverse"?(Z=1-Z,_&&(Z-=_/u)):y==="mirror"&&(N=l)),T=yi(0,1,Z)*u}const R=x?{done:!1,value:p[0]}:N.next(T);s&&(R.value=s(R.value));let{done:I}=R;!x&&d!==null&&(I=this.playbackSpeed>=0?this.currentTime>=a:this.currentTime<=0);const D=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&I);return D&&S!==$y&&(R.value=Ub(p,this.options,C,this.speed)),A&&A(R.value),D&&this.finish(),R}then(t,n){return this.finished.then(t,n)}get duration(){return cr(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+cr(t)}get time(){return cr(this.currentTime)}set time(t){t=Vr(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime(On.now());const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=cr(this.currentTime))}play(){if(this.isStopped)return;const{driver:t=ZG,startTime:n}=this.options;this.driver||(this.driver=t(a=>this.tick(a))),this.options.onPlay?.();const r=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=r):this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime||(this.startTime=n??r),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(On.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),t.observe(this)}}function h3(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const Ya=e=>e*180/Math.PI,Hy=e=>{const t=Ya(Math.atan2(e[1],e[0]));return Gy(t)},p3={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Hy,rotateZ:Hy,skewX:e=>Ya(Math.atan(e[1])),skewY:e=>Ya(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},Gy=e=>(e=e%360,e<0&&(e+=360),e),rw=Hy,iw=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),aw=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),m3={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:iw,scaleY:aw,scale:e=>(iw(e)+aw(e))/2,rotateX:e=>Gy(Ya(Math.atan2(e[6],e[5]))),rotateY:e=>Gy(Ya(Math.atan2(-e[2],e[0]))),rotateZ:rw,rotate:rw,skewX:e=>Ya(Math.atan(e[4])),skewY:e=>Ya(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function Ky(e){return e.includes("scale")?1:0}function qy(e,t){if(!e||e==="none")return Ky(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,a;if(n)r=m3,a=n;else{const u=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=p3,a=u}if(!a)return Ky(t);const s=r[t],l=a[1].split(",").map(y3);return typeof s=="function"?s(l):l[s]}const g3=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return qy(n,t)};function y3(e){return parseFloat(e.trim())}const Fs=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],$s=new Set(Fs),ow=e=>e===Us||e===Pe,v3=new Set(["x","y","z"]),b3=Fs.filter(e=>!v3.has(e));function _3(e){const t=[];return b3.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const eo={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:(e,{transform:t})=>qy(t,"x"),y:(e,{transform:t})=>qy(t,"y")};eo.translateX=eo.x;eo.translateY=eo.y;const to=new Set;let Wy=!1,Zy=!1,Yy=!1;function rN(){if(Zy){const e=Array.from(to).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const a=_3(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(([s,l])=>{r.getValue(s)?.set(l)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}Zy=!1,Wy=!1,to.forEach(e=>e.complete(Yy)),to.clear()}function iN(){to.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Zy=!0)})}function E3(){Yy=!0,iN(),rN(),Yy=!1}class Hb{constructor(t,n,r,a,s,l=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=a,this.element=s,this.isAsync=l}scheduleResolve(){this.state="scheduled",this.isAsync?(to.add(this),Wy||(Wy=!0,bt.read(iN),bt.resolveKeyframes(rN))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:a}=this;if(t[0]===null){const s=a?.get(),l=t[t.length-1];if(s!==void 0)t[0]=s;else if(r&&n){const u=r.readValue(n,l);u!=null&&(t[0]=u)}t[0]===void 0&&(t[0]=l),a&&s===void 0&&a.set(t[0])}h3(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),to.delete(this)}cancel(){this.state==="scheduled"&&(to.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const S3=e=>e.startsWith("--");function x3(e,t,n){S3(t)?e.style.setProperty(t,n):e.style[t]=n}const A3=Ob(()=>window.ScrollTimeline!==void 0),w3={};function T3(e,t){const n=Ob(e);return()=>w3[t]??n()}const aN=T3(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),fc=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,sw={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:fc([0,.65,.55,1]),circOut:fc([.55,0,1,.45]),backIn:fc([.31,.01,.66,-.59]),backOut:fc([.33,1.53,.69,.99])};function oN(e,t){if(e)return typeof e=="function"?aN()?eN(e,t):"ease-out":Hk(e)?fc(e):Array.isArray(e)?e.map(n=>oN(n,t)||sw.easeOut):sw[e]}function C3(e,t,n,{delay:r=0,duration:a=300,repeat:s=0,repeatType:l="loop",ease:u="easeOut",times:d}={},f=void 0){const p={[t]:n};d&&(p.offset=d);const g=oN(u,a);Array.isArray(g)&&(p.easing=g);const y={delay:r,duration:a,easing:Array.isArray(g)?"linear":g,fill:"both",iterations:s+1,direction:l==="reverse"?"alternate":"normal"};return f&&(y.pseudoElement=f),e.animate(p,y)}function sN(e){return typeof e=="function"&&"applyToOptions"in e}function R3({type:e,...t}){return sN(e)&&aN()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class k3 extends Fb{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,!t)return;const{element:n,name:r,keyframes:a,pseudoElement:s,allowFlatten:l=!1,finalKeyframe:u,onComplete:d}=t;this.isPseudoElement=!!s,this.allowFlatten=l,this.options=t,Nb(typeof t.type!="string");const f=R3(t);this.animation=C3(n,r,a,f,s),f.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!s){const p=Ub(a,this.options,u,this.speed);this.updateMotionValue?this.updateMotionValue(p):x3(n,r,p),this.animation.cancel()}d?.(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){this.isPseudoElement||this.animation.commitStyles?.()}get duration(){const t=this.animation.effect?.getComputedTiming?.().duration||0;return cr(Number(t))}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+cr(t)}get time(){return cr(Number(this.animation.currentTime)||0)}set time(t){this.finishedTime=null,this.animation.currentTime=Vr(t)}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(t){this.animation.startTime=t}attachTimeline({timeline:t,observe:n}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&&A3()?(this.animation.timeline=t,dr):n(this)}}const lN={anticipate:Vk,backInOut:Bk,circInOut:Fk};function N3(e){return e in lN}function O3(e){typeof e.ease=="string"&&N3(e.ease)&&(e.ease=lN[e.ease])}const lw=10;class I3 extends k3{constructor(t){O3(t),nN(t),super(t),t.startTime&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:n,onUpdate:r,onComplete:a,element:s,...l}=this.options;if(!n)return;if(t!==void 0){n.set(t);return}const u=new $b({...l,autoplay:!1}),d=Vr(this.finishedTime??this.time);n.setWithVelocity(u.sample(d-lw).value,u.sample(d).value,lw),u.stop()}}const cw=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(sa.test(e)||e==="0")&&!e.startsWith("url("));function D3(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 j3(e,t,n,r){const a=e[0];if(a===null)return!1;if(t==="display"||t==="visibility")return!0;const s=e[e.length-1],l=cw(a,t),u=cw(s,t);return!l||!u?!1:D3(e)||(n==="spring"||sN(n))&&r}function Xy(e){e.duration=0,e.type="keyframes"}const L3=new Set(["opacity","clipPath","filter","transform"]),P3=Ob(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function M3(e){const{motionValue:t,name:n,repeatDelay:r,repeatType:a,damping:s,type:l}=e;if(!(t?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:d,transformTemplate:f}=t.owner.getProps();return P3()&&n&&L3.has(n)&&(n!=="transform"||!f)&&!d&&!r&&a!=="mirror"&&s!==0&&l!=="inertia"}const z3=40;class B3 extends Fb{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:a=0,repeatDelay:s=0,repeatType:l="loop",keyframes:u,name:d,motionValue:f,element:p,...g}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=On.now();const y={autoplay:t,delay:n,type:r,repeat:a,repeatDelay:s,repeatType:l,name:d,motionValue:f,element:p,...g},_=p?.KeyframeResolver||Hb;this.keyframeResolver=new _(u,(S,A,C)=>this.onKeyframesResolved(S,A,y,!C),d,f,p),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,n,r,a){this.keyframeResolver=void 0;const{name:s,type:l,velocity:u,delay:d,isHandoff:f,onUpdate:p}=r;this.resolvedAt=On.now(),j3(t,s,l,u)||((vi.instantAnimations||!d)&&p?.(Ub(t,r,n)),t[0]=t[t.length-1],Xy(r),r.repeat=0);const y={startTime:a?this.resolvedAt?this.resolvedAt-this.createdAt>z3?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...r,keyframes:t},_=!f&&M3(y)?new I3({...y,element:y.motionValue.owner.current}):new $b(y);_.finished.then(()=>this.notifyFinished()).catch(dr),this.pendingTimeline&&(this.stopTimeline=_.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=_}get finished(){return this._animation?this.animation.finished:this._finished}then(t,n){return this.finished.finally(t).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),E3()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}const V3=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function U3(e){const t=V3.exec(e);if(!t)return[,];const[,n,r,a]=t;return[`--${n??r}`,a]}function cN(e,t,n=1){const[r,a]=U3(e);if(!r)return;const s=window.getComputedStyle(t).getPropertyValue(r);if(s){const l=s.trim();return Ok(l)?parseFloat(l):l}return Pb(a)?cN(a,t,n+1):a}function Gb(e,t){return e?.[t]??e?.default??e}const uN=new Set(["width","height","top","left","right","bottom",...Fs]),F3={test:e=>e==="auto",parse:e=>e},dN=e=>t=>t.test(e),fN=[Us,Pe,Ur,ea,DG,IG,F3],uw=e=>fN.find(dN(e));function $3(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||Dk(e):!0}const H3=new Set(["brightness","contrast","saturate","opacity"]);function G3(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Mb)||[];if(!r)return e;const a=n.replace(r,"");let s=H3.has(t)?1:0;return r!==n&&(s*=100),t+"("+s+a+")"}const K3=/\b([a-z-]*)\(.*?\)/gu,Qy={...sa,getAnimatableNone:e=>{const t=e.match(K3);return t?t.map(G3).join(" "):e}},dw={...Us,transform:Math.round},q3={rotate:ea,rotateX:ea,rotateY:ea,rotateZ:ea,scale:Fd,scaleX:Fd,scaleY:Fd,scaleZ:Fd,skew:ea,skewX:ea,skewY:ea,distance:Pe,translateX:Pe,translateY:Pe,translateZ:Pe,x:Pe,y:Pe,z:Pe,perspective:Pe,transformPerspective:Pe,opacity:Ic,originX:QA,originY:QA,originZ:Pe},Kb={borderWidth:Pe,borderTopWidth:Pe,borderRightWidth:Pe,borderBottomWidth:Pe,borderLeftWidth:Pe,borderRadius:Pe,radius:Pe,borderTopLeftRadius:Pe,borderTopRightRadius:Pe,borderBottomRightRadius:Pe,borderBottomLeftRadius:Pe,width:Pe,maxWidth:Pe,height:Pe,maxHeight:Pe,top:Pe,right:Pe,bottom:Pe,left:Pe,padding:Pe,paddingTop:Pe,paddingRight:Pe,paddingBottom:Pe,paddingLeft:Pe,margin:Pe,marginTop:Pe,marginRight:Pe,marginBottom:Pe,marginLeft:Pe,backgroundPositionX:Pe,backgroundPositionY:Pe,...q3,zIndex:dw,fillOpacity:Ic,strokeOpacity:Ic,numOctaves:dw},W3={...Kb,color:zt,backgroundColor:zt,outlineColor:zt,fill:zt,stroke:zt,borderColor:zt,borderTopColor:zt,borderRightColor:zt,borderBottomColor:zt,borderLeftColor:zt,filter:Qy,WebkitFilter:Qy},hN=e=>W3[e];function pN(e,t){let n=hN(e);return n!==Qy&&(n=sa),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const Z3=new Set(["auto","none","0"]);function Y3(e,t,n){let r=0,a;for(;r<e.length&&!a;){const s=e[r];typeof s=="string"&&!Z3.has(s)&&Dc(s).values.length&&(a=e[r]),r++}if(a&&n)for(const s of t)e[s]=pN(n,a)}class X3 extends Hb{constructor(t,n,r,a,s){super(t,n,r,a,s,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let d=0;d<t.length;d++){let f=t[d];if(typeof f=="string"&&(f=f.trim(),Pb(f))){const p=cN(f,n.current);p!==void 0&&(t[d]=p),d===t.length-1&&(this.finalKeyframe=f)}}if(this.resolveNoneKeyframes(),!uN.has(r)||t.length!==2)return;const[a,s]=t,l=uw(a),u=uw(s);if(l!==u)if(ow(l)&&ow(u))for(let d=0;d<t.length;d++){const f=t[d];typeof f=="string"&&(t[d]=parseFloat(f))}else eo[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let a=0;a<t.length;a++)(t[a]===null||$3(t[a]))&&r.push(a);r.length&&Y3(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=eo[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(){const{element:t,name:n,unresolvedKeyframes:r}=this;if(!t||!t.current)return;const a=t.getValue(n);a&&a.jump(this.measuredOrigin,!1);const s=r.length-1,l=r[s];r[s]=eo[n](t.measureViewportBox(),window.getComputedStyle(t.current)),l!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=l),this.removedTransforms?.length&&this.removedTransforms.forEach(([u,d])=>{t.getValue(u).set(d)}),this.resolveNoneKeyframes()}}function Q3(e,t,n){if(e instanceof EventTarget)return[e];if(typeof e=="string"){let r=document;const a=n?.[e]??r.querySelectorAll(e);return a?Array.from(a):[]}return Array.from(e)}const mN=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function J3(e){return Ik(e)&&"offsetHeight"in e}const fw=30,e4=e=>!isNaN(parseFloat(e));class t4{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=r=>{const a=On.now();if(this.updatedAt!==a&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const s of this.dependents)s.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=On.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=e4(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 Ib);const r=this.events[t].add(n);return t==="change"?()=>{r(),bt.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){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}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()}dirty(){this.events.change?.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=On.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>fw)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,fw);return jk(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.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function ks(e,t){return new t4(e,t)}const{schedule:qb}=Gk(queueMicrotask,!1),yr={x:!1,y:!1};function gN(){return yr.x||yr.y}function n4(e){return e==="x"||e==="y"?yr[e]?null:(yr[e]=!0,()=>{yr[e]=!1}):yr.x||yr.y?null:(yr.x=yr.y=!0,()=>{yr.x=yr.y=!1})}function yN(e,t){const n=Q3(e),r=new AbortController,a={passive:!0,...t,signal:r.signal};return[n,a,()=>r.abort()]}function hw(e){return!(e.pointerType==="touch"||gN())}function r4(e,t,n={}){const[r,a,s]=yN(e,n),l=u=>{if(!hw(u))return;const{target:d}=u,f=t(d,u);if(typeof f!="function"||!d)return;const p=g=>{hw(g)&&(f(g),d.removeEventListener("pointerleave",p))};d.addEventListener("pointerleave",p,a)};return r.forEach(u=>{u.addEventListener("pointerenter",l,a)}),s}const vN=(e,t)=>t?e===t?!0:vN(e,t.parentElement):!1,Wb=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,i4=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function a4(e){return i4.has(e.tagName)||e.tabIndex!==-1}const mf=new WeakSet;function pw(e){return t=>{t.key==="Enter"&&e(t)}}function Mg(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const o4=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=pw(()=>{if(mf.has(n))return;Mg(n,"down");const a=pw(()=>{Mg(n,"up")}),s=()=>Mg(n,"cancel");n.addEventListener("keyup",a,t),n.addEventListener("blur",s,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function mw(e){return Wb(e)&&!gN()}function s4(e,t,n={}){const[r,a,s]=yN(e,n),l=u=>{const d=u.currentTarget;if(!mw(u))return;mf.add(d);const f=t(d,u),p=(_,S)=>{window.removeEventListener("pointerup",g),window.removeEventListener("pointercancel",y),mf.has(d)&&mf.delete(d),mw(_)&&typeof f=="function"&&f(_,{success:S})},g=_=>{p(_,d===window||d===document||n.useGlobalTarget||vN(d,_.target))},y=_=>{p(_,!1)};window.addEventListener("pointerup",g,a),window.addEventListener("pointercancel",y,a)};return r.forEach(u=>{(n.useGlobalTarget?window:u).addEventListener("pointerdown",l,a),J3(u)&&(u.addEventListener("focus",f=>o4(f,a)),!a4(u)&&!u.hasAttribute("tabindex")&&(u.tabIndex=0))}),s}function bN(e){return Ik(e)&&"ownerSVGElement"in e}function l4(e){return bN(e)&&e.tagName==="svg"}const yn=e=>!!(e&&e.getVelocity),c4=[...fN,zt,sa],u4=e=>c4.find(dN(e)),_N=E.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function d4(e=!0){const t=E.useContext(Cb);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:a}=t,s=E.useId();E.useEffect(()=>{if(e)return a(s)},[e]);const l=E.useCallback(()=>e&&r&&r(s),[s,r,e]);return!n&&r?[!1,l]:[!0]}const Zb=E.createContext({strict:!1}),gw={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"]},Ns={};for(const e in gw)Ns[e]={isEnabled:t=>gw[e].some(n=>!!t[n])};function Jy(e){for(const t in e)Ns[t]={...Ns[t],...e[t]}}function f4({children:e,features:t,strict:n=!1}){const[,r]=E.useState(!zg(t)),a=E.useRef(void 0);if(!zg(t)){const{renderer:s,...l}=t;a.current=s,Jy(l)}return E.useEffect(()=>{zg(t)&&t().then(({renderer:s,...l})=>{Jy(l),a.current=s,r(!0)})},[]),v.jsx(Zb.Provider,{value:{renderer:a.current,strict:n},children:e})}function zg(e){return typeof e=="function"}const h4=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 zf(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||h4.has(e)}let EN=e=>!zf(e);function p4(e){typeof e=="function"&&(EN=t=>t.startsWith("on")?!zf(t):e(t))}try{p4(require("@emotion/is-prop-valid").default)}catch{}function m4(e,t,n){const r={};for(const a in e)a==="values"&&typeof e.values=="object"||(EN(a)||n===!0&&zf(a)||!t&&!zf(a)||e.draggable&&a.startsWith("onDrag"))&&(r[a]=e[a]);return r}const Sh=E.createContext({});function xh(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function jc(e){return typeof e=="string"||Array.isArray(e)}const Yb=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Xb=["initial",...Yb];function Ah(e){return xh(e.animate)||Xb.some(t=>jc(e[t]))}function SN(e){return!!(Ah(e)||e.variants)}function g4(e,t){if(Ah(e)){const{initial:n,animate:r}=e;return{initial:n===!1||jc(n)?n:void 0,animate:jc(r)?r:void 0}}return e.inherit!==!1?t:{}}function y4(e){const{initial:t,animate:n}=g4(e,E.useContext(Sh));return E.useMemo(()=>({initial:t,animate:n}),[yw(t),yw(n)])}function yw(e){return Array.isArray(e)?e.join(" "):e}const Lc={};function v4(e){for(const t in e)Lc[t]=e[t],Lb(t)&&(Lc[t].isCSSVariable=!0)}function xN(e,{layout:t,layoutId:n}){return $s.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Lc[e]||e==="opacity")}const b4={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},_4=Fs.length;function E4(e,t,n){let r="",a=!0;for(let s=0;s<_4;s++){const l=Fs[s],u=e[l];if(u===void 0)continue;let d=!0;if(typeof u=="number"?d=u===(l.startsWith("scale")?1:0):d=parseFloat(u)===0,!d||n){const f=mN(u,Kb[l]);if(!d){a=!1;const p=b4[l]||l;r+=`${p}(${f}) `}n&&(t[l]=f)}}return r=r.trim(),n?r=n(t,a?"":r):a&&(r="none"),r}function Qb(e,t,n){const{style:r,vars:a,transformOrigin:s}=e;let l=!1,u=!1;for(const d in t){const f=t[d];if($s.has(d)){l=!0;continue}else if(Lb(d)){a[d]=f;continue}else{const p=mN(f,Kb[d]);d.startsWith("origin")?(u=!0,s[d]=p):r[d]=p}}if(t.transform||(l||n?r.transform=E4(t,e.transform,n):r.transform&&(r.transform="none")),u){const{originX:d="50%",originY:f="50%",originZ:p=0}=s;r.transformOrigin=`${d} ${f} ${p}`}}const Jb=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function AN(e,t,n){for(const r in t)!yn(t[r])&&!xN(r,n)&&(e[r]=t[r])}function S4({transformTemplate:e},t){return E.useMemo(()=>{const n=Jb();return Qb(n,t,e),Object.assign({},n.vars,n.style)},[t])}function x4(e,t){const n=e.style||{},r={};return AN(r,n,e),Object.assign(r,S4(e,t)),r}function A4(e,t){const n={},r=x4(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}const w4={offset:"stroke-dashoffset",array:"stroke-dasharray"},T4={offset:"strokeDashoffset",array:"strokeDasharray"};function C4(e,t,n=1,r=0,a=!0){e.pathLength=1;const s=a?w4:T4;e[s.offset]=Pe.transform(-r);const l=Pe.transform(t),u=Pe.transform(n);e[s.array]=`${l} ${u}`}function wN(e,{attrX:t,attrY:n,attrScale:r,pathLength:a,pathSpacing:s=1,pathOffset:l=0,...u},d,f,p){if(Qb(e,u,f),d){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:g,style:y}=e;g.transform&&(y.transform=g.transform,delete g.transform),(y.transform||g.transformOrigin)&&(y.transformOrigin=g.transformOrigin??"50% 50%",delete g.transformOrigin),y.transform&&(y.transformBox=p?.transformBox??"fill-box",delete g.transformBox),t!==void 0&&(g.x=t),n!==void 0&&(g.y=n),r!==void 0&&(g.scale=r),a!==void 0&&C4(g,a,s,l,!1)}const TN=()=>({...Jb(),attrs:{}}),CN=e=>typeof e=="string"&&e.toLowerCase()==="svg";function R4(e,t,n,r){const a=E.useMemo(()=>{const s=TN();return wN(s,t,CN(r),e.transformTemplate,e.style),{...s.attrs,style:{...s.style}}},[t]);if(e.style){const s={};AN(s,e.style,e),a.style={...s,...a.style}}return a}const k4=["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 e0(e){return typeof e!="string"||e.includes("-")?!1:!!(k4.indexOf(e)>-1||/[A-Z]/u.test(e))}function N4(e,t,n,{latestValues:r},a,s=!1){const u=(e0(e)?R4:A4)(t,r,a,e),d=m4(t,typeof e=="string",s),f=e!==E.Fragment?{...d,...u,ref:n}:{},{children:p}=t,g=E.useMemo(()=>yn(p)?p.get():p,[p]);return E.createElement(e,{...f,children:g})}function vw(e){const t=[{},{}];return e?.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function t0(e,t,n,r){if(typeof t=="function"){const[a,s]=vw(r);t=t(n!==void 0?n:e.custom,a,s)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[a,s]=vw(r);t=t(n!==void 0?n:e.custom,a,s)}return t}function gf(e){return yn(e)?e.get():e}function O4({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,a){return{latestValues:I4(n,r,a,e),renderState:t()}}function I4(e,t,n,r){const a={},s=r(e,{});for(const y in s)a[y]=gf(s[y]);let{initial:l,animate:u}=e;const d=Ah(e),f=SN(e);t&&f&&!d&&e.inherit!==!1&&(l===void 0&&(l=t.initial),u===void 0&&(u=t.animate));let p=n?n.initial===!1:!1;p=p||l===!1;const g=p?u:l;if(g&&typeof g!="boolean"&&!xh(g)){const y=Array.isArray(g)?g:[g];for(let _=0;_<y.length;_++){const S=t0(e,y[_]);if(S){const{transitionEnd:A,transition:C,...w}=S;for(const x in w){let T=w[x];if(Array.isArray(T)){const N=p?T.length-1:0;T=T[N]}T!==null&&(a[x]=T)}for(const x in A)a[x]=A[x]}}}return a}const RN=e=>(t,n)=>{const r=E.useContext(Sh),a=E.useContext(Cb),s=()=>O4(e,t,r,a);return n?s():fG(s)};function n0(e,t,n){const{style:r}=e,a={};for(const s in r)(yn(r[s])||t.style&&yn(t.style[s])||xN(s,e)||n?.getValue(s)?.liveStyle!==void 0)&&(a[s]=r[s]);return a}const D4=RN({scrapeMotionValuesFromProps:n0,createRenderState:Jb});function kN(e,t,n){const r=n0(e,t,n);for(const a in e)if(yn(e[a])||yn(t[a])){const s=Fs.indexOf(a)!==-1?"attr"+a.charAt(0).toUpperCase()+a.substring(1):a;r[s]=e[a]}return r}const j4=RN({scrapeMotionValuesFromProps:kN,createRenderState:TN}),L4=Symbol.for("motionComponentSymbol");function ps(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function P4(e,t,n){return E.useCallback(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):ps(n)&&(n.current=r))},[t])}const r0=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),M4="framerAppearId",NN="data-"+r0(M4),ON=E.createContext({});function z4(e,t,n,r,a){const{visualElement:s}=E.useContext(Sh),l=E.useContext(Zb),u=E.useContext(Cb),d=E.useContext(_N).reducedMotion,f=E.useRef(null);r=r||l.renderer,!f.current&&r&&(f.current=r(e,{visualState:t,parent:s,props:n,presenceContext:u,blockInitialAnimation:u?u.initial===!1:!1,reducedMotionConfig:d}));const p=f.current,g=E.useContext(ON);p&&!p.projection&&a&&(p.type==="html"||p.type==="svg")&&B4(f.current,n,a,g);const y=E.useRef(!1);E.useInsertionEffect(()=>{p&&y.current&&p.update(n,u)});const _=n[NN],S=E.useRef(!!_&&!window.MotionHandoffIsComplete?.(_)&&window.MotionHasOptimisedAnimation?.(_));return hG(()=>{p&&(y.current=!0,window.MotionIsMounted=!0,p.updateFeatures(),p.scheduleRenderMicrotask(),S.current&&p.animationState&&p.animationState.animateChanges())}),E.useEffect(()=>{p&&(!S.current&&p.animationState&&p.animationState.animateChanges(),S.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(_)}),S.current=!1),p.enteringChildren=void 0)}),p}function B4(e,t,n,r){const{layoutId:a,layout:s,drag:l,dragConstraints:u,layoutScroll:d,layoutRoot:f,layoutCrossfade:p}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:IN(e.parent)),e.projection.setOptions({layoutId:a,layout:s,alwaysMeasureLayout:!!l||u&&ps(u),visualElement:e,animationType:typeof s=="string"?s:"both",initialPromotionConfig:r,crossfade:p,layoutScroll:d,layoutRoot:f})}function IN(e){if(e)return e.options.allowProjection!==!1?e.projection:IN(e.parent)}function Bg(e,{forwardMotionProps:t=!1}={},n,r){n&&Jy(n);const a=e0(e)?j4:D4;function s(u,d){let f;const p={...E.useContext(_N),...u,layoutId:V4(u)},{isStatic:g}=p,y=y4(u),_=a(u,g);if(!g&&Tb){U4();const S=F4(p);f=S.MeasureLayout,y.visualElement=z4(e,_,p,r,S.ProjectionNode)}return v.jsxs(Sh.Provider,{value:y,children:[f&&y.visualElement?v.jsx(f,{visualElement:y.visualElement,...p}):null,N4(e,u,P4(_,y.visualElement,d),_,g,t)]})}s.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const l=E.forwardRef(s);return l[L4]=e,l}function V4({layoutId:e}){const t=E.useContext(Nk).id;return t&&e!==void 0?t+"-"+e:e}function U4(e,t){E.useContext(Zb).strict}function F4(e){const{drag:t,layout:n}=Ns;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t?.isEnabled(e)||n?.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}function $4(e,t){if(typeof Proxy>"u")return Bg;const n=new Map,r=(s,l)=>Bg(s,l,e,t),a=(s,l)=>r(s,l);return new Proxy(a,{get:(s,l)=>l==="create"?r:(n.has(l)||n.set(l,Bg(l,void 0,e,t)),n.get(l))})}function DN({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function H4({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function G4(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 Vg(e){return e===void 0||e===1}function ev({scale:e,scaleX:t,scaleY:n}){return!Vg(e)||!Vg(t)||!Vg(n)}function Ga(e){return ev(e)||jN(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function jN(e){return bw(e.x)||bw(e.y)}function bw(e){return e&&e!=="0%"}function Bf(e,t,n){const r=e-n,a=t*r;return n+a}function _w(e,t,n,r,a){return a!==void 0&&(e=Bf(e,a,r)),Bf(e,n,r)+t}function tv(e,t=0,n=1,r,a){e.min=_w(e.min,t,n,r,a),e.max=_w(e.max,t,n,r,a)}function LN(e,{x:t,y:n}){tv(e.x,t.translate,t.scale,t.originPoint),tv(e.y,n.translate,n.scale,n.originPoint)}const Ew=.999999999999,Sw=1.0000000000001;function K4(e,t,n,r=!1){const a=n.length;if(!a)return;t.x=t.y=1;let s,l;for(let u=0;u<a;u++){s=n[u],l=s.projectionDelta;const{visualElement:d}=s.options;d&&d.props.style&&d.props.style.display==="contents"||(r&&s.options.layoutScroll&&s.scroll&&s!==s.root&&gs(e,{x:-s.scroll.offset.x,y:-s.scroll.offset.y}),l&&(t.x*=l.x.scale,t.y*=l.y.scale,LN(e,l)),r&&Ga(s.latestValues)&&gs(e,s.latestValues))}t.x<Sw&&t.x>Ew&&(t.x=1),t.y<Sw&&t.y>Ew&&(t.y=1)}function ms(e,t){e.min=e.min+t,e.max=e.max+t}function xw(e,t,n,r,a=.5){const s=xt(e.min,e.max,a);tv(e,t,n,s,r)}function gs(e,t){xw(e.x,t.x,t.scaleX,t.scale,t.originX),xw(e.y,t.y,t.scaleY,t.scale,t.originY)}function PN(e,t){return DN(G4(e.getBoundingClientRect(),t))}function q4(e,t,n){const r=PN(e,n),{scroll:a}=t;return a&&(ms(r.x,a.offset.x),ms(r.y,a.offset.y)),r}const Aw=()=>({translate:0,scale:1,origin:0,originPoint:0}),ys=()=>({x:Aw(),y:Aw()}),ww=()=>({min:0,max:0}),It=()=>({x:ww(),y:ww()}),nv={current:null},MN={current:!1};function W4(){if(MN.current=!0,!!Tb)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>nv.current=e.matches;e.addEventListener("change",t),t()}else nv.current=!1}const Z4=new WeakMap;function Y4(e,t,n){for(const r in t){const a=t[r],s=n[r];if(yn(a))e.addValue(r,a);else if(yn(s))e.addValue(r,ks(a,{owner:e}));else if(s!==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,ks(l!==void 0?l:a,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const Tw=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class X4{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:a,blockInitialAnimation:s,visualState:l},u={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Hb,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 y=On.now();this.renderScheduledAt<y&&(this.renderScheduledAt=y,bt.render(this.render,!1,!0))};const{latestValues:d,renderState:f}=l;this.latestValues=d,this.baseTarget={...d},this.initialValues=n.initial?{...d}:{},this.renderState=f,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=a,this.options=u,this.blockInitialAnimation=!!s,this.isControllingVariants=Ah(n),this.isVariantNode=SN(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:p,...g}=this.scrapeMotionValuesFromProps(n,{},this);for(const y in g){const _=g[y];d[y]!==void 0&&yn(_)&&_.set(d[y])}}mount(t){this.current=t,Z4.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)),MN.current||W4(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:nv.current,this.parent?.addChild(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),oa(this.notifyUpdate),oa(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(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}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=$s.has(t);r&&this.onBindTransform&&this.onBindTransform();const a=n.on("change",l=>{this.latestValues[t]=l,this.props.onUpdate&&bt.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let s;window.MotionCheckAppearSync&&(s=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{a(),s&&s(),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 Ns){const n=Ns[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 s=this.features[t];s.isMounted?s.update():(s.mount(),s.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):It()}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<Tw.length;r++){const a=Tw[r];this.propEventSubscriptions[a]&&(this.propEventSubscriptions[a](),delete this.propEventSubscriptions[a]);const s="on"+a,l=t[s];l&&(this.propEventSubscriptions[a]=this.on(a,l))}this.prevMotionValues=Y4(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}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=ks(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){let r=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return r!=null&&(typeof r=="string"&&(Ok(r)||Dk(r))?r=parseFloat(r):!u4(r)&&sa.test(n)&&(r=pN(t,n)),this.setBaseTarget(t,yn(r)?r.get():r)),yn(r)?r.get():r}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){const{initial:n}=this.props;let r;if(typeof n=="string"||typeof n=="object"){const s=t0(this.props,n,this.presenceContext?.custom);s&&(r=s[t])}if(n&&r!==void 0)return r;const a=this.getBaseTargetFromProps(this.props,t);return a!==void 0&&!yn(a)?a:this.initialValues[t]!==void 0&&r===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new Ib),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}scheduleRenderMicrotask(){qb.render(this.render)}}class zN extends X4{constructor(){super(...arguments),this.KeyframeResolver=X3}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;yn(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function BN(e,{style:t,vars:n},r,a){const s=e.style;let l;for(l in t)s[l]=t[l];a?.applyProjectionStyles(s,r);for(l in n)s.setProperty(l,n[l])}function Q4(e){return window.getComputedStyle(e)}class J4 extends zN{constructor(){super(...arguments),this.type="html",this.renderInstance=BN}readValueFromInstance(t,n){if($s.has(n))return this.projection?.isProjecting?Ky(n):g3(t,n);{const r=Q4(t),a=(Lb(n)?r.getPropertyValue(n):r[n])||0;return typeof a=="string"?a.trim():a}}measureInstanceViewportBox(t,{transformPagePoint:n}){return PN(t,n)}build(t,n,r){Qb(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return n0(t,n,r)}}const VN=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 e6(e,t,n,r){BN(e,t,void 0,r);for(const a in t.attrs)e.setAttribute(VN.has(a)?a:r0(a),t.attrs[a])}class t6 extends zN{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=It}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if($s.has(n)){const r=hN(n);return r&&r.default||0}return n=VN.has(n)?n:r0(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return kN(t,n,r)}build(t,n,r){wN(t,n,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(t,n,r,a){e6(t,n,r,a)}mount(t){this.isSVGTag=CN(t.tagName),super.mount(t)}}const UN=(e,t)=>e0(e)?new t6(t):new J4(t,{allowProjection:e!==E.Fragment});function Es(e,t,n){const r=e.getProps();return t0(r,t,n!==void 0?n:r.custom,e)}const rv=e=>Array.isArray(e);function n6(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,ks(n))}function r6(e){return rv(e)?e[e.length-1]||0:e}function i6(e,t){const n=Es(e,t);let{transitionEnd:r={},transition:a={},...s}=n||{};s={...s,...r};for(const l in s){const u=r6(s[l]);n6(e,l,u)}}function a6(e){return!!(yn(e)&&e.add)}function iv(e,t){const n=e.getValue("willChange");if(a6(n))return n.add(t);if(!n&&vi.WillChange){const r=new vi.WillChange("auto");e.addValue("willChange",r),r.add(t)}}function FN(e){return e.props[NN]}const o6=e=>e!==null;function s6(e,{repeat:t,repeatType:n="loop"},r){const a=e.filter(o6),s=t&&n!=="loop"&&t%2===1?0:a.length-1;return a[s]}const l6={type:"spring",stiffness:500,damping:25,restSpeed:10},c6=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),u6={type:"keyframes",duration:.8},d6={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},f6=(e,{keyframes:t})=>t.length>2?u6:$s.has(e)?e.startsWith("scale")?c6(t[1]):l6:d6;function h6({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:a,repeat:s,repeatType:l,repeatDelay:u,from:d,elapsed:f,...p}){return!!Object.keys(p).length}const i0=(e,t,n,r={},a,s)=>l=>{const u=Gb(r,e)||{},d=u.delay||r.delay||0;let{elapsed:f=0}=r;f=f-Vr(d);const p={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...u,delay:-f,onUpdate:y=>{t.set(y),u.onUpdate&&u.onUpdate(y)},onComplete:()=>{l(),u.onComplete&&u.onComplete()},name:e,motionValue:t,element:s?void 0:a};h6(u)||Object.assign(p,f6(e,p)),p.duration&&(p.duration=Vr(p.duration)),p.repeatDelay&&(p.repeatDelay=Vr(p.repeatDelay)),p.from!==void 0&&(p.keyframes[0]=p.from);let g=!1;if((p.type===!1||p.duration===0&&!p.repeatDelay)&&(Xy(p),p.delay===0&&(g=!0)),(vi.instantAnimations||vi.skipAnimations)&&(g=!0,Xy(p),p.delay=0),p.allowFlatten=!u.type&&!u.ease,g&&!s&&t.get()!==void 0){const y=s6(p.keyframes,u);if(y!==void 0){bt.update(()=>{p.onUpdate(y),p.onComplete()});return}}return u.isSync?new $b(p):new B3(p)};function p6({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function $N(e,t,{delay:n=0,transitionOverride:r,type:a}={}){let{transition:s=e.getDefaultTransition(),transitionEnd:l,...u}=t;r&&(s=r);const d=[],f=a&&e.animationState&&e.animationState.getState()[a];for(const p in u){const g=e.getValue(p,e.latestValues[p]??null),y=u[p];if(y===void 0||f&&p6(f,p))continue;const _={delay:n,...Gb(s||{},p)},S=g.get();if(S!==void 0&&!g.isAnimating&&!Array.isArray(y)&&y===S&&!_.velocity)continue;let A=!1;if(window.MotionHandoffAnimation){const w=FN(e);if(w){const x=window.MotionHandoffAnimation(w,p,bt);x!==null&&(_.startTime=x,A=!0)}}iv(e,p),g.start(i0(p,g,y,e.shouldReduceMotion&&uN.has(p)?{type:!1}:_,e,A));const C=g.animation;C&&d.push(C)}return l&&Promise.all(d).then(()=>{bt.update(()=>{l&&i6(e,l)})}),d}function HN(e,t,n,r=0,a=1){const s=Array.from(e).sort((f,p)=>f.sortNodePosition(p)).indexOf(t),l=e.size,u=(l-1)*r;return typeof n=="function"?n(s,l):a===1?s*r:u-s*r}function av(e,t,n={}){const r=Es(e,t,n.type==="exit"?e.presenceContext?.custom:void 0);let{transition:a=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(a=n.transitionOverride);const s=r?()=>Promise.all($N(e,r,n)):()=>Promise.resolve(),l=e.variantChildren&&e.variantChildren.size?(d=0)=>{const{delayChildren:f=0,staggerChildren:p,staggerDirection:g}=a;return m6(e,t,d,f,p,g,n)}:()=>Promise.resolve(),{when:u}=a;if(u){const[d,f]=u==="beforeChildren"?[s,l]:[l,s];return d().then(()=>f())}else return Promise.all([s(),l(n.delay)])}function m6(e,t,n=0,r=0,a=0,s=1,l){const u=[];for(const d of e.variantChildren)d.notify("AnimationStart",t),u.push(av(d,t,{...l,delay:n+(typeof r=="function"?0:r)+HN(e.variantChildren,d,r,a,s)}).then(()=>d.notify("AnimationComplete",t)));return Promise.all(u)}function g6(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const a=t.map(s=>av(e,s,n));r=Promise.all(a)}else if(typeof t=="string")r=av(e,t,n);else{const a=typeof t=="function"?Es(e,t,n.custom):t;r=Promise.all($N(e,a,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}function GN(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}const y6=Xb.length;function KN(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?KN(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<y6;n++){const r=Xb[n],a=e.props[r];(jc(a)||a===!1)&&(t[r]=a)}return t}const v6=[...Yb].reverse(),b6=Yb.length;function _6(e){return t=>Promise.all(t.map(({animation:n,options:r})=>g6(e,n,r)))}function E6(e){let t=_6(e),n=Cw(),r=!0;const a=d=>(f,p)=>{const g=Es(e,p,d==="exit"?e.presenceContext?.custom:void 0);if(g){const{transition:y,transitionEnd:_,...S}=g;f={...f,...S,..._}}return f};function s(d){t=d(e)}function l(d){const{props:f}=e,p=KN(e.parent)||{},g=[],y=new Set;let _={},S=1/0;for(let C=0;C<b6;C++){const w=v6[C],x=n[w],T=f[w]!==void 0?f[w]:p[w],N=jc(T),R=w===d?x.isActive:null;R===!1&&(S=C);let I=T===p[w]&&T!==f[w]&&N;if(I&&r&&e.manuallyAnimateOnMount&&(I=!1),x.protectedKeys={..._},!x.isActive&&R===null||!T&&!x.prevProp||xh(T)||typeof T=="boolean")continue;const D=S6(x.prevProp,T);let L=D||w===d&&x.isActive&&!I&&N||C>S&&N,H=!1;const Z=Array.isArray(T)?T:[T];let q=Z.reduce(a(w),{});R===!1&&(q={});const{prevResolvedValues:te={}}=x,ce={...te,...q},W=X=>{L=!0,y.has(X)&&(H=!0,y.delete(X)),x.needsAnimating[X]=!0;const G=e.getValue(X);G&&(G.liveStyle=!1)};for(const X in ce){const G=q[X],ge=te[X];if(_.hasOwnProperty(X))continue;let P=!1;rv(G)&&rv(ge)?P=!GN(G,ge):P=G!==ge,P?G!=null?W(X):y.add(X):G!==void 0&&y.has(X)?W(X):x.protectedKeys[X]=!0}x.prevProp=T,x.prevResolvedValues=q,x.isActive&&(_={..._,...q}),r&&e.blockInitialAnimation&&(L=!1);const ae=I&&D;L&&(!ae||H)&&g.push(...Z.map(X=>{const G={type:w};if(typeof X=="string"&&r&&!ae&&e.manuallyAnimateOnMount&&e.parent){const{parent:ge}=e,P=Es(ge,X);if(ge.enteringChildren&&P){const{delayChildren:ie}=P.transition||{};G.delay=HN(ge.enteringChildren,e,ie)}}return{animation:X,options:G}}))}if(y.size){const C={};if(typeof f.initial!="boolean"){const w=Es(e,Array.isArray(f.initial)?f.initial[0]:f.initial);w&&w.transition&&(C.transition=w.transition)}y.forEach(w=>{const x=e.getBaseTarget(w),T=e.getValue(w);T&&(T.liveStyle=!0),C[w]=x??null}),g.push({animation:C})}let A=!!g.length;return r&&(f.initial===!1||f.initial===f.animate)&&!e.manuallyAnimateOnMount&&(A=!1),r=!1,A?t(g):Promise.resolve()}function u(d,f){if(n[d].isActive===f)return Promise.resolve();e.variantChildren?.forEach(g=>g.animationState?.setActive(d,f)),n[d].isActive=f;const p=l(d);for(const g in n)n[g].protectedKeys={};return p}return{animateChanges:l,setActive:u,setAnimateFunction:s,getState:()=>n,reset:()=>{n=Cw(),r=!0}}}function S6(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!GN(t,e):!1}function $a(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Cw(){return{animate:$a(!0),whileInView:$a(),whileHover:$a(),whileTap:$a(),whileDrag:$a(),whileFocus:$a(),exit:$a()}}class ha{constructor(t){this.isMounted=!1,this.node=t}update(){}}class x6 extends ha{constructor(t){super(t),t.animationState||(t.animationState=E6(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();xh(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(){this.node.animationState.reset(),this.unmountControls?.()}}let A6=0;class w6 extends ha{constructor(){super(...arguments),this.id=A6++}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,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const qN={animation:{Feature:x6},exit:{Feature:w6}};function Pc(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function lu(e){return{point:{x:e.pageX,y:e.pageY}}}const T6=e=>t=>Wb(t)&&e(t,lu(t));function vc(e,t,n,r){return Pc(e,t,T6(n),r)}const WN=1e-4,C6=1-WN,R6=1+WN,ZN=.01,k6=0-ZN,N6=0+ZN;function En(e){return e.max-e.min}function O6(e,t,n){return Math.abs(e-t)<=n}function Rw(e,t,n,r=.5){e.origin=r,e.originPoint=xt(t.min,t.max,e.origin),e.scale=En(n)/En(t),e.translate=xt(n.min,n.max,e.origin)-e.originPoint,(e.scale>=C6&&e.scale<=R6||isNaN(e.scale))&&(e.scale=1),(e.translate>=k6&&e.translate<=N6||isNaN(e.translate))&&(e.translate=0)}function bc(e,t,n,r){Rw(e.x,t.x,n.x,r?r.originX:void 0),Rw(e.y,t.y,n.y,r?r.originY:void 0)}function kw(e,t,n){e.min=n.min+t.min,e.max=e.min+En(t)}function I6(e,t,n){kw(e.x,t.x,n.x),kw(e.y,t.y,n.y)}function Nw(e,t,n){e.min=t.min-n.min,e.max=e.min+En(t)}function _c(e,t,n){Nw(e.x,t.x,n.x),Nw(e.y,t.y,n.y)}function or(e){return[e("x"),e("y")]}const YN=({current:e})=>e?e.ownerDocument.defaultView:null,Ow=(e,t)=>Math.abs(e-t);function D6(e,t){const n=Ow(e.x,t.x),r=Ow(e.y,t.y);return Math.sqrt(n**2+r**2)}class XN{constructor(t,n,{transformPagePoint:r,contextWindow:a=window,dragSnapToOrigin:s=!1,distanceThreshold:l=3}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const y=Fg(this.lastMoveEventInfo,this.history),_=this.startEvent!==null,S=D6(y.offset,{x:0,y:0})>=this.distanceThreshold;if(!_&&!S)return;const{point:A}=y,{timestamp:C}=sn;this.history.push({...A,timestamp:C});const{onStart:w,onMove:x}=this.handlers;_||(w&&w(this.lastMoveEvent,y),this.startEvent=this.lastMoveEvent),x&&x(this.lastMoveEvent,y)},this.handlePointerMove=(y,_)=>{this.lastMoveEvent=y,this.lastMoveEventInfo=Ug(_,this.transformPagePoint),bt.update(this.updatePoint,!0)},this.handlePointerUp=(y,_)=>{this.end();const{onEnd:S,onSessionEnd:A,resumeAnimation:C}=this.handlers;if(this.dragSnapToOrigin&&C&&C(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const w=Fg(y.type==="pointercancel"?this.lastMoveEventInfo:Ug(_,this.transformPagePoint),this.history);this.startEvent&&S&&S(y,w),A&&A(y,w)},!Wb(t))return;this.dragSnapToOrigin=s,this.handlers=n,this.transformPagePoint=r,this.distanceThreshold=l,this.contextWindow=a||window;const u=lu(t),d=Ug(u,this.transformPagePoint),{point:f}=d,{timestamp:p}=sn;this.history=[{...f,timestamp:p}];const{onSessionStart:g}=n;g&&g(t,Fg(d,this.history)),this.removeListeners=au(vc(this.contextWindow,"pointermove",this.handlePointerMove),vc(this.contextWindow,"pointerup",this.handlePointerUp),vc(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),oa(this.updatePoint)}}function Ug(e,t){return t?{point:t(e.point)}:e}function Iw(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Fg({point:e},t){return{point:e,delta:Iw(e,QN(t)),offset:Iw(e,j6(t)),velocity:L6(t,.1)}}function j6(e){return e[0]}function QN(e){return e[e.length-1]}function L6(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const a=QN(e);for(;n>=0&&(r=e[n],!(a.timestamp-r.timestamp>Vr(t)));)n--;if(!r)return{x:0,y:0};const s=cr(a.timestamp-r.timestamp);if(s===0)return{x:0,y:0};const l={x:(a.x-r.x)/s,y:(a.y-r.y)/s};return l.x===1/0&&(l.x=0),l.y===1/0&&(l.y=0),l}function P6(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?xt(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?xt(n,e,r.max):Math.min(e,n)),e}function Dw(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 M6(e,{top:t,left:n,bottom:r,right:a}){return{x:Dw(e.x,n,a),y:Dw(e.y,t,r)}}function jw(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 z6(e,t){return{x:jw(e.x,t.x),y:jw(e.y,t.y)}}function B6(e,t){let n=.5;const r=En(e),a=En(t);return a>r?n=Oc(t.min,t.max-r,e.min):r>a&&(n=Oc(e.min,e.max-a,t.min)),yi(0,1,n)}function V6(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 ov=.35;function U6(e=ov){return e===!1?e=0:e===!0&&(e=ov),{x:Lw(e,"left","right"),y:Lw(e,"top","bottom")}}function Lw(e,t,n){return{min:Pw(e,t),max:Pw(e,n)}}function Pw(e,t){return typeof e=="number"?e:e[t]||0}const F6=new WeakMap;class $6{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=It(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:n=!1,distanceThreshold:r}={}){const{presenceContext:a}=this.visualElement;if(a&&a.isPresent===!1)return;const s=g=>{const{dragSnapToOrigin:y}=this.getProps();y?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(lu(g).point)},l=(g,y)=>{const{drag:_,dragPropagation:S,onDragStart:A}=this.getProps();if(_&&!S&&(this.openDragLock&&this.openDragLock(),this.openDragLock=n4(_),!this.openDragLock))return;this.latestPointerEvent=g,this.latestPanInfo=y,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),or(w=>{let x=this.getAxisMotionValue(w).get()||0;if(Ur.test(x)){const{projection:T}=this.visualElement;if(T&&T.layout){const N=T.layout.layoutBox[w];N&&(x=En(N)*(parseFloat(x)/100))}}this.originPoint[w]=x}),A&&bt.postRender(()=>A(g,y)),iv(this.visualElement,"transform");const{animationState:C}=this.visualElement;C&&C.setActive("whileDrag",!0)},u=(g,y)=>{this.latestPointerEvent=g,this.latestPanInfo=y;const{dragPropagation:_,dragDirectionLock:S,onDirectionLock:A,onDrag:C}=this.getProps();if(!_&&!this.openDragLock)return;const{offset:w}=y;if(S&&this.currentDirection===null){this.currentDirection=H6(w),this.currentDirection!==null&&A&&A(this.currentDirection);return}this.updateAxis("x",y.point,w),this.updateAxis("y",y.point,w),this.visualElement.render(),C&&C(g,y)},d=(g,y)=>{this.latestPointerEvent=g,this.latestPanInfo=y,this.stop(g,y),this.latestPointerEvent=null,this.latestPanInfo=null},f=()=>or(g=>this.getAnimationState(g)==="paused"&&this.getAxisMotionValue(g).animation?.play()),{dragSnapToOrigin:p}=this.getProps();this.panSession=new XN(t,{onSessionStart:s,onStart:l,onMove:u,onSessionEnd:d,resumeAnimation:f},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:p,distanceThreshold:r,contextWindow:YN(this.visualElement)})}stop(t,n){const r=t||this.latestPointerEvent,a=n||this.latestPanInfo,s=this.isDragging;if(this.cancel(),!s||!a||!r)return;const{velocity:l}=a;this.startAnimation(l);const{onDragEnd:u}=this.getProps();u&&bt.postRender(()=>u(r,a))}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||!$d(t,a,this.currentDirection))return;const s=this.getAxisMotionValue(t);let l=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(l=P6(l,this.constraints[t],this.elastic[t])),s.set(l)}resolveConstraints(){const{dragConstraints:t,dragElastic:n}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,a=this.constraints;t&&ps(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=M6(r.layoutBox,t):this.constraints=!1,this.elastic=U6(n),a!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&or(s=>{this.constraints!==!1&&this.getAxisMotionValue(s)&&(this.constraints[s]=V6(r.layoutBox[s],this.constraints[s]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!ps(t))return!1;const r=t.current,{projection:a}=this.visualElement;if(!a||!a.layout)return!1;const s=q4(r,a.root,this.visualElement.getTransformPagePoint());let l=z6(a.layout.layoutBox,s);if(n){const u=n(H4(l));this.hasMutatedConstraints=!!u,u&&(l=DN(u))}return l}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:a,dragTransition:s,dragSnapToOrigin:l,onDragTransitionEnd:u}=this.getProps(),d=this.constraints||{},f=or(p=>{if(!$d(p,n,this.currentDirection))return;let g=d&&d[p]||{};l&&(g={min:0,max:0});const y=a?200:1e6,_=a?40:1e7,S={type:"inertia",velocity:r?t[p]:0,bounceStiffness:y,bounceDamping:_,timeConstant:750,restDelta:1,restSpeed:10,...s,...g};return this.startAxisValueAnimation(p,S)});return Promise.all(f).then(u)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return iv(this.visualElement,t),r.start(i0(t,r,0,n,this.visualElement,!1))}stopAnimation(){or(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){or(t=>this.getAxisMotionValue(t).animation?.pause())}getAnimationState(t){return this.getAxisMotionValue(t).animation?.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){or(n=>{const{drag:r}=this.getProps();if(!$d(n,r,this.currentDirection))return;const{projection:a}=this.visualElement,s=this.getAxisMotionValue(n);if(a&&a.layout){const{min:l,max:u}=a.layout.layoutBox[n];s.set(t[n]-xt(l,u,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!ps(n)||!r||!this.constraints)return;this.stopAnimation();const a={x:0,y:0};or(l=>{const u=this.getAxisMotionValue(l);if(u&&this.constraints!==!1){const d=u.get();a[l]=B6({min:d,max:d},this.constraints[l])}});const{transformTemplate:s}=this.visualElement.getProps();this.visualElement.current.style.transform=s?s({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),or(l=>{if(!$d(l,t,null))return;const u=this.getAxisMotionValue(l),{min:d,max:f}=this.constraints[l];u.set(xt(d,f,a[l]))})}addListeners(){if(!this.visualElement.current)return;F6.set(this.visualElement,this);const t=this.visualElement.current,n=vc(t,"pointerdown",d=>{const{drag:f,dragListener:p=!0}=this.getProps();f&&p&&this.start(d)}),r=()=>{const{dragConstraints:d}=this.getProps();ps(d)&&d.current&&(this.constraints=this.resolveRefConstraints())},{projection:a}=this.visualElement,s=a.addEventListener("measure",r);a&&!a.layout&&(a.root&&a.root.updateScroll(),a.updateLayout()),bt.read(r);const l=Pc(window,"resize",()=>this.scalePositionWithinConstraints()),u=a.addEventListener("didUpdate",(({delta:d,hasLayoutChanged:f})=>{this.isDragging&&f&&(or(p=>{const g=this.getAxisMotionValue(p);g&&(this.originPoint[p]+=d[p].translate,g.set(g.get()+d[p].translate))}),this.visualElement.render())}));return()=>{l(),n(),s(),u&&u()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:a=!1,dragConstraints:s=!1,dragElastic:l=ov,dragMomentum:u=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:a,dragConstraints:s,dragElastic:l,dragMomentum:u}}}function $d(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function H6(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class G6 extends ha{constructor(t){super(t),this.removeGroupControls=dr,this.removeListeners=dr,this.controls=new $6(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||dr}unmount(){this.removeGroupControls(),this.removeListeners()}}const Mw=e=>(t,n)=>{e&&bt.postRender(()=>e(t,n))};class K6 extends ha{constructor(){super(...arguments),this.removePointerDownListener=dr}onPointerDown(t){this.session=new XN(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:YN(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:a}=this.node.getProps();return{onSessionStart:Mw(t),onStart:Mw(n),onMove:r,onEnd:(s,l)=>{delete this.session,a&&bt.postRender(()=>a(s,l))}}}mount(){this.removePointerDownListener=vc(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 yf={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function zw(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const ec={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(Pe.test(e))e=parseFloat(e);else return e;const n=zw(e,t.target.x),r=zw(e,t.target.y);return`${n}% ${r}%`}},q6={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,a=sa.parse(e);if(a.length>5)return r;const s=sa.createTransformer(e),l=typeof a[0]!="number"?1:0,u=n.x.scale*t.x,d=n.y.scale*t.y;a[0+l]/=u,a[1+l]/=d;const f=xt(u,d,.5);return typeof a[2+l]=="number"&&(a[2+l]/=f),typeof a[3+l]=="number"&&(a[3+l]/=f),s(a)}};let $g=!1;class W6 extends E.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:a}=this.props,{projection:s}=t;v4(Z6),s&&(n.group&&n.group.add(s),r&&r.register&&a&&r.register(s),$g&&s.root.didUpdate(),s.addEventListener("animationComplete",()=>{this.safeToRemove()}),s.setOptions({...s.options,onExitComplete:()=>this.safeToRemove()})),yf.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:a,isPresent:s}=this.props,{projection:l}=r;return l&&(l.isPresent=s,$g=!0,a||t.layoutDependency!==n||n===void 0||t.isPresent!==s?l.willUpdate():this.safeToRemove(),t.isPresent!==s&&(s?l.promote():l.relegate()||bt.postRender(()=>{const u=l.getStack();(!u||!u.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),qb.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:a}=t;$g=!0,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 JN(e){const[t,n]=d4(),r=E.useContext(Nk);return v.jsx(W6,{...e,layoutGroup:r,switchLayoutGroup:E.useContext(ON),isPresent:t,safeToRemove:n})}const Z6={borderRadius:{...ec,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:ec,borderTopRightRadius:ec,borderBottomLeftRadius:ec,borderBottomRightRadius:ec,boxShadow:q6};function Y6(e,t,n){const r=yn(e)?e:ks(e);return r.start(i0("",r,t,n)),r.animation}const X6=(e,t)=>e.depth-t.depth;class Q6{constructor(){this.children=[],this.isDirty=!1}add(t){Rb(this.children,t),this.isDirty=!0}remove(t){kb(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(X6),this.isDirty=!1,this.children.forEach(t)}}function J6(e,t){const n=On.now(),r=({timestamp:a})=>{const s=a-n;s>=t&&(oa(r),e(s-t))};return bt.setup(r,!0),()=>oa(r)}const eO=["TopLeft","TopRight","BottomLeft","BottomRight"],e5=eO.length,Bw=e=>typeof e=="string"?parseFloat(e):e,Vw=e=>typeof e=="number"||Pe.test(e);function t5(e,t,n,r,a,s){a?(e.opacity=xt(0,n.opacity??1,n5(r)),e.opacityExit=xt(t.opacity??1,0,r5(r))):s&&(e.opacity=xt(t.opacity??1,n.opacity??1,r));for(let l=0;l<e5;l++){const u=`border${eO[l]}Radius`;let d=Uw(t,u),f=Uw(n,u);if(d===void 0&&f===void 0)continue;d||(d=0),f||(f=0),d===0||f===0||Vw(d)===Vw(f)?(e[u]=Math.max(xt(Bw(d),Bw(f),r),0),(Ur.test(f)||Ur.test(d))&&(e[u]+="%")):e[u]=f}(t.rotate||n.rotate)&&(e.rotate=xt(t.rotate||0,n.rotate||0,r))}function Uw(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const n5=tO(0,.5,Uk),r5=tO(.5,.95,dr);function tO(e,t,n){return r=>r<e?0:r>t?1:n(Oc(e,t,r))}function Fw(e,t){e.min=t.min,e.max=t.max}function ir(e,t){Fw(e.x,t.x),Fw(e.y,t.y)}function $w(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function Hw(e,t,n,r,a){return e-=t,e=Bf(e,1/n,r),a!==void 0&&(e=Bf(e,1/a,r)),e}function i5(e,t=0,n=1,r=.5,a,s=e,l=e){if(Ur.test(t)&&(t=parseFloat(t),t=xt(l.min,l.max,t/100)-l.min),typeof t!="number")return;let u=xt(s.min,s.max,r);e===s&&(u-=t),e.min=Hw(e.min,t,n,u,a),e.max=Hw(e.max,t,n,u,a)}function Gw(e,t,[n,r,a],s,l){i5(e,t[n],t[r],t[a],t.scale,s,l)}const a5=["x","scaleX","originX"],o5=["y","scaleY","originY"];function Kw(e,t,n,r){Gw(e.x,t,a5,n?n.x:void 0,r?r.x:void 0),Gw(e.y,t,o5,n?n.y:void 0,r?r.y:void 0)}function qw(e){return e.translate===0&&e.scale===1}function nO(e){return qw(e.x)&&qw(e.y)}function Ww(e,t){return e.min===t.min&&e.max===t.max}function s5(e,t){return Ww(e.x,t.x)&&Ww(e.y,t.y)}function Zw(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function rO(e,t){return Zw(e.x,t.x)&&Zw(e.y,t.y)}function Yw(e){return En(e.x)/En(e.y)}function Xw(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class l5{constructor(){this.members=[]}add(t){Rb(this.members,t),t.scheduleRender()}remove(t){if(kb(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 s=this.members[a];if(s.isPresent!==!1){r=s;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 c5(e,t,n){let r="";const a=e.x.translate/t.x,s=e.y.translate/t.y,l=n?.z||0;if((a||s||l)&&(r=`translate3d(${a}px, ${s}px, ${l}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:f,rotate:p,rotateX:g,rotateY:y,skewX:_,skewY:S}=n;f&&(r=`perspective(${f}px) ${r}`),p&&(r+=`rotate(${p}deg) `),g&&(r+=`rotateX(${g}deg) `),y&&(r+=`rotateY(${y}deg) `),_&&(r+=`skewX(${_}deg) `),S&&(r+=`skewY(${S}deg) `)}const u=e.x.scale*t.x,d=e.y.scale*t.y;return(u!==1||d!==1)&&(r+=`scale(${u}, ${d})`),r||"none"}const Hg=["","X","Y","Z"],u5=1e3;let d5=0;function Gg(e,t,n,r){const{latestValues:a}=t;a[e]&&(n[e]=a[e],t.setStaticValue(e,0),r&&(r[e]=0))}function iO(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=FN(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:a,layoutId:s}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",bt,!(a||s))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&iO(r)}function aO({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:a}){return class{constructor(l={},u=t?.()){this.id=d5++,this.animationId=0,this.animationCommitId=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,this.nodes.forEach(p5),this.nodes.forEach(v5),this.nodes.forEach(b5),this.nodes.forEach(m5)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=l,this.root=u?u.root||u:this,this.path=u?[...u.path,u]:[],this.parent=u,this.depth=u?u.depth+1:0;for(let d=0;d<this.path.length;d++)this.path[d].shouldResetTransform=!0;this.root===this&&(this.nodes=new Q6)}addEventListener(l,u){return this.eventHandlers.has(l)||this.eventHandlers.set(l,new Ib),this.eventHandlers.get(l).add(u)}notifyListeners(l,...u){const d=this.eventHandlers.get(l);d&&d.notify(...u)}hasListeners(l){return this.eventHandlers.has(l)}mount(l){if(this.instance)return;this.isSVG=bN(l)&&!l4(l),this.instance=l;const{layoutId:u,layout:d,visualElement:f}=this.options;if(f&&!f.current&&f.mount(l),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(d||u)&&(this.isLayoutDirty=!0),e){let p,g=0;const y=()=>this.root.updateBlockedByResize=!1;bt.read(()=>{g=window.innerWidth}),e(l,()=>{const _=window.innerWidth;_!==g&&(g=_,this.root.updateBlockedByResize=!0,p&&p(),p=J6(y,250),yf.hasAnimatedSinceResize&&(yf.hasAnimatedSinceResize=!1,this.nodes.forEach(eT)))})}u&&this.root.registerSharedNode(u,this),this.options.animate!==!1&&f&&(u||d)&&this.addEventListener("didUpdate",({delta:p,hasLayoutChanged:g,hasRelativeLayoutChanged:y,layout:_})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const S=this.options.transition||f.getDefaultTransition()||A5,{onLayoutAnimationStart:A,onLayoutAnimationComplete:C}=f.getProps(),w=!this.targetLayout||!rO(this.targetLayout,_),x=!g&&y;if(this.options.layoutRoot||this.resumeFrom||x||g&&(w||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const T={...Gb(S,"layout"),onPlay:A,onComplete:C};(f.shouldReduceMotion||this.options.layoutRoot)&&(T.delay=0,T.type=!1),this.startAnimation(T),this.setAnimationOrigin(p,x)}else g||eT(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=_})}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,this.eventHandlers.clear(),oa(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(_5),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&&iO(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let p=0;p<this.path.length;p++){const g=this.path[p];g.shouldResetTransform=!0,g.updateScroll("snapshot"),g.options.layoutRoot&&g.willUpdate(!1)}const{layoutId:u,layout:d}=this.options;if(u===void 0&&!d)return;const f=this.getTransformTemplate();this.prevTransformTemplateValue=f?f(this.latestValues,""):void 0,this.updateSnapshot(),l&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(Qw);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(Jw);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(y5),this.nodes.forEach(f5),this.nodes.forEach(h5)):this.nodes.forEach(Jw),this.clearAllSnapshots();const u=On.now();sn.delta=yi(0,1e3/60,u-sn.timestamp),sn.timestamp=u,sn.isProcessing=!0,Ig.update.process(sn),Ig.preRender.process(sn),Ig.render.process(sn),sn.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,qb.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(g5),this.sharedNodes.forEach(E5)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,bt.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){bt.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!En(this.snapshot.measuredBox.x)&&!En(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let d=0;d<this.path.length;d++)this.path[d].updateScroll();const l=this.layout;this.layout=this.measure(!1),this.layoutCorrected=It(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:u}=this.options;u&&u.notify("LayoutMeasure",this.layout.layoutBox,l?l.layoutBox:void 0)}updateScroll(l="measure"){let u=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===l&&(u=!1),u&&this.instance){const d=r(this.instance);this.scroll={animationId:this.root.animationId,phase:l,isRoot:d,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:d}}}resetTransform(){if(!a)return;const l=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,u=this.projectionDelta&&!nO(this.projectionDelta),d=this.getTransformTemplate(),f=d?d(this.latestValues,""):void 0,p=f!==this.prevTransformTemplateValue;l&&this.instance&&(u||Ga(this.latestValues)||p)&&(a(this.instance,f),this.shouldResetTransform=!1,this.scheduleRender())}measure(l=!0){const u=this.measurePageBox();let d=this.removeElementScroll(u);return l&&(d=this.removeTransform(d)),w5(d),{animationId:this.root.animationId,measuredBox:u,layoutBox:d,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:l}=this.options;if(!l)return It();const u=l.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(T5))){const{scroll:f}=this.root;f&&(ms(u.x,f.offset.x),ms(u.y,f.offset.y))}return u}removeElementScroll(l){const u=It();if(ir(u,l),this.scroll?.wasRoot)return u;for(let d=0;d<this.path.length;d++){const f=this.path[d],{scroll:p,options:g}=f;f!==this.root&&p&&g.layoutScroll&&(p.wasRoot&&ir(u,l),ms(u.x,p.offset.x),ms(u.y,p.offset.y))}return u}applyTransform(l,u=!1){const d=It();ir(d,l);for(let f=0;f<this.path.length;f++){const p=this.path[f];!u&&p.options.layoutScroll&&p.scroll&&p!==p.root&&gs(d,{x:-p.scroll.offset.x,y:-p.scroll.offset.y}),Ga(p.latestValues)&&gs(d,p.latestValues)}return Ga(this.latestValues)&&gs(d,this.latestValues),d}removeTransform(l){const u=It();ir(u,l);for(let d=0;d<this.path.length;d++){const f=this.path[d];if(!f.instance||!Ga(f.latestValues))continue;ev(f.latestValues)&&f.updateSnapshot();const p=It(),g=f.measurePageBox();ir(p,g),Kw(u,f.latestValues,f.snapshot?f.snapshot.layoutBox:void 0,p)}return Ga(this.latestValues)&&Kw(u,this.latestValues),u}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!==sn.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(l=!1){const u=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=u.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=u.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=u.isSharedProjectionDirty);const d=!!this.resumingFrom||this!==u;if(!(l||d&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:p,layoutId:g}=this.options;if(!(!this.layout||!(p||g))){if(this.resolvedRelativeTargetAt=sn.timestamp,!this.targetDelta&&!this.relativeTarget){const y=this.getClosestProjectingParent();y&&y.layout&&this.animationProgress!==1?(this.relativeParent=y,this.forceRelativeParentToResolveTarget(),this.relativeTarget=It(),this.relativeTargetOrigin=It(),_c(this.relativeTargetOrigin,this.layout.layoutBox,y.layout.layoutBox),ir(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=It(),this.targetWithTransforms=It()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),I6(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):ir(this.target,this.layout.layoutBox),LN(this.target,this.targetDelta)):ir(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget)){this.attemptToResolveRelativeTarget=!1;const y=this.getClosestProjectingParent();y&&!!y.resumingFrom==!!this.resumingFrom&&!y.options.layoutScroll&&y.target&&this.animationProgress!==1?(this.relativeParent=y,this.forceRelativeParentToResolveTarget(),this.relativeTarget=It(),this.relativeTargetOrigin=It(),_c(this.relativeTargetOrigin,this.target,y.target),ir(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||ev(this.parent.latestValues)||jN(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){const l=this.getLead(),u=!!this.resumingFrom||this!==l;let d=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(d=!1),u&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(d=!1),this.resolvedRelativeTargetAt===sn.timestamp&&(d=!1),d)return;const{layout:f,layoutId:p}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(f||p))return;ir(this.layoutCorrected,this.layout.layoutBox);const g=this.treeScale.x,y=this.treeScale.y;K4(this.layoutCorrected,this.treeScale,this.path,u),l.layout&&!l.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(l.target=l.layout.layoutBox,l.targetWithTransforms=It());const{target:_}=l;if(!_){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():($w(this.prevProjectionDelta.x,this.projectionDelta.x),$w(this.prevProjectionDelta.y,this.projectionDelta.y)),bc(this.projectionDelta,this.layoutCorrected,_,this.latestValues),(this.treeScale.x!==g||this.treeScale.y!==y||!Xw(this.projectionDelta.x,this.prevProjectionDelta.x)||!Xw(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",_))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(l=!0){if(this.options.visualElement?.scheduleRender(),l){const u=this.getStack();u&&u.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=ys(),this.projectionDelta=ys(),this.projectionDeltaWithTransform=ys()}setAnimationOrigin(l,u=!1){const d=this.snapshot,f=d?d.latestValues:{},p={...this.latestValues},g=ys();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!u;const y=It(),_=d?d.source:void 0,S=this.layout?this.layout.source:void 0,A=_!==S,C=this.getStack(),w=!C||C.members.length<=1,x=!!(A&&!w&&this.options.crossfade===!0&&!this.path.some(x5));this.animationProgress=0;let T;this.mixTargetDelta=N=>{const R=N/1e3;tT(g.x,l.x,R),tT(g.y,l.y,R),this.setTargetDelta(g),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(_c(y,this.layout.layoutBox,this.relativeParent.layout.layoutBox),S5(this.relativeTarget,this.relativeTargetOrigin,y,R),T&&s5(this.relativeTarget,T)&&(this.isProjectionDirty=!1),T||(T=It()),ir(T,this.relativeTarget)),A&&(this.animationValues=p,t5(p,f,this.latestValues,R,x,w)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=R},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(l){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(oa(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=bt.update(()=>{yf.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=ks(0)),this.currentAnimation=Y6(this.motionValue,[0,1e3],{...l,velocity:0,isSync:!0,onUpdate:u=>{this.mixTargetDelta(u),l.onUpdate&&l.onUpdate(u)},onStop:()=>{},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(u5),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const l=this.getLead();let{targetWithTransforms:u,target:d,layout:f,latestValues:p}=l;if(!(!u||!d||!f)){if(this!==l&&this.layout&&f&&oO(this.options.animationType,this.layout.layoutBox,f.layoutBox)){d=this.target||It();const g=En(this.layout.layoutBox.x);d.x.min=l.target.x.min,d.x.max=d.x.min+g;const y=En(this.layout.layoutBox.y);d.y.min=l.target.y.min,d.y.max=d.y.min+y}ir(u,d),gs(u,p),bc(this.projectionDeltaWithTransform,this.layoutCorrected,u,p)}}registerSharedNode(l,u){this.sharedNodes.has(l)||this.sharedNodes.set(l,new l5),this.sharedNodes.get(l).add(u);const f=u.options.initialPromotionConfig;u.promote({transition:f?f.transition:void 0,preserveFollowOpacity:f&&f.shouldPreserveFollowOpacity?f.shouldPreserveFollowOpacity(u):void 0})}isLead(){const l=this.getStack();return l?l.lead===this:!0}getLead(){const{layoutId:l}=this.options;return l?this.getStack()?.lead||this:this}getPrevLead(){const{layoutId:l}=this.options;return l?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:l}=this.options;if(l)return this.root.sharedNodes.get(l)}promote({needsReset:l,transition:u,preserveFollowOpacity:d}={}){const f=this.getStack();f&&f.promote(this,d),l&&(this.projectionDelta=void 0,this.needsReset=!0),u&&this.setOptions({transition:u})}relegate(){const l=this.getStack();return l?l.relegate(this):!1}resetSkewAndRotation(){const{visualElement:l}=this.options;if(!l)return;let u=!1;const{latestValues:d}=l;if((d.z||d.rotate||d.rotateX||d.rotateY||d.rotateZ||d.skewX||d.skewY)&&(u=!0),!u)return;const f={};d.z&&Gg("z",l,f,this.animationValues);for(let p=0;p<Hg.length;p++)Gg(`rotate${Hg[p]}`,l,f,this.animationValues),Gg(`skew${Hg[p]}`,l,f,this.animationValues);l.render();for(const p in f)l.setStaticValue(p,f[p]),this.animationValues&&(this.animationValues[p]=f[p]);l.scheduleRender()}applyProjectionStyles(l,u){if(!this.instance||this.isSVG)return;if(!this.isVisible){l.visibility="hidden";return}const d=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,l.visibility="",l.opacity="",l.pointerEvents=gf(u?.pointerEvents)||"",l.transform=d?d(this.latestValues,""):"none";return}const f=this.getLead();if(!this.projectionDelta||!this.layout||!f.target){this.options.layoutId&&(l.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,l.pointerEvents=gf(u?.pointerEvents)||""),this.hasProjected&&!Ga(this.latestValues)&&(l.transform=d?d({},""):"none",this.hasProjected=!1);return}l.visibility="";const p=f.animationValues||f.latestValues;this.applyTransformsToTarget();let g=c5(this.projectionDeltaWithTransform,this.treeScale,p);d&&(g=d(p,g)),l.transform=g;const{x:y,y:_}=this.projectionDelta;l.transformOrigin=`${y.origin*100}% ${_.origin*100}% 0`,f.animationValues?l.opacity=f===this?p.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:p.opacityExit:l.opacity=f===this?p.opacity!==void 0?p.opacity:"":p.opacityExit!==void 0?p.opacityExit:0;for(const S in Lc){if(p[S]===void 0)continue;const{correct:A,applyTo:C,isCSSVariable:w}=Lc[S],x=g==="none"?p[S]:A(p[S],f);if(C){const T=C.length;for(let N=0;N<T;N++)l[C[N]]=x}else w?this.options.visualElement.renderState.vars[S]=x:l[S]=x}this.options.layoutId&&(l.pointerEvents=f===this?gf(u?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(l=>l.currentAnimation?.stop()),this.root.nodes.forEach(Qw),this.root.sharedNodes.clear()}}}function f5(e){e.updateLayout()}function h5(e){const t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){const{layoutBox:n,measuredBox:r}=e.layout,{animationType:a}=e.options,s=t.source!==e.layout.source;a==="size"?or(p=>{const g=s?t.measuredBox[p]:t.layoutBox[p],y=En(g);g.min=n[p].min,g.max=g.min+y}):oO(a,t.layoutBox,n)&&or(p=>{const g=s?t.measuredBox[p]:t.layoutBox[p],y=En(n[p]);g.max=g.min+y,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[p].max=e.relativeTarget[p].min+y)});const l=ys();bc(l,n,t.layoutBox);const u=ys();s?bc(u,e.applyTransform(r,!0),t.measuredBox):bc(u,n,t.layoutBox);const d=!nO(l);let f=!1;if(!e.resumeFrom){const p=e.getClosestProjectingParent();if(p&&!p.resumeFrom){const{snapshot:g,layout:y}=p;if(g&&y){const _=It();_c(_,t.layoutBox,g.layoutBox);const S=It();_c(S,n,y.layoutBox),rO(_,S)||(f=!0),p.options.layoutRoot&&(e.relativeTarget=S,e.relativeTargetOrigin=_,e.relativeParent=p)}}}e.notifyListeners("didUpdate",{layout:n,snapshot:t,delta:u,layoutDelta:l,hasLayoutChanged:d,hasRelativeLayoutChanged:f})}else if(e.isLead()){const{onExitComplete:n}=e.options;n&&n()}e.options.transition=void 0}function p5(e){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 m5(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function g5(e){e.clearSnapshot()}function Qw(e){e.clearMeasurements()}function Jw(e){e.isLayoutDirty=!1}function y5(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function eT(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function v5(e){e.resolveTargetDelta()}function b5(e){e.calcProjection()}function _5(e){e.resetSkewAndRotation()}function E5(e){e.removeLeadSnapshot()}function tT(e,t,n){e.translate=xt(t.translate,0,n),e.scale=xt(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function nT(e,t,n,r){e.min=xt(t.min,n.min,r),e.max=xt(t.max,n.max,r)}function S5(e,t,n,r){nT(e.x,t.x,n.x,r),nT(e.y,t.y,n.y,r)}function x5(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const A5={duration:.45,ease:[.4,0,.1,1]},rT=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),iT=rT("applewebkit/")&&!rT("chrome/")?Math.round:dr;function aT(e){e.min=iT(e.min),e.max=iT(e.max)}function w5(e){aT(e.x),aT(e.y)}function oO(e,t,n){return e==="position"||e==="preserve-aspect"&&!O6(Yw(t),Yw(n),.2)}function T5(e){return e!==e.root&&e.scroll?.wasRoot}const C5=aO({attachResizeListener:(e,t)=>Pc(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Kg={current:void 0},sO=aO({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Kg.current){const e=new C5({});e.mount(window),e.setOptions({layoutScroll:!0}),Kg.current=e}return Kg.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),R5={pan:{Feature:K6},drag:{Feature:G6,ProjectionNode:sO,MeasureLayout:JN}};function oT(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const a="onHover"+n,s=r[a];s&&bt.postRender(()=>s(t,lu(t)))}class k5 extends ha{mount(){const{current:t}=this.node;t&&(this.unmount=r4(t,(n,r)=>(oT(this.node,r,"Start"),a=>oT(this.node,a,"End"))))}unmount(){}}class N5 extends ha{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=au(Pc(this.node.current,"focus",()=>this.onFocus()),Pc(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function sT(e,t,n){const{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const a="onTap"+(n==="End"?"":n),s=r[a];s&&bt.postRender(()=>s(t,lu(t)))}class O5 extends ha{mount(){const{current:t}=this.node;t&&(this.unmount=s4(t,(n,r)=>(sT(this.node,r,"Start"),(a,{success:s})=>sT(this.node,a,s?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const sv=new WeakMap,qg=new WeakMap,I5=e=>{const t=sv.get(e.target);t&&t(e)},D5=e=>{e.forEach(I5)};function j5({root:e,...t}){const n=e||document;qg.has(n)||qg.set(n,{});const r=qg.get(n),a=JSON.stringify(t);return r[a]||(r[a]=new IntersectionObserver(D5,{root:e,...t})),r[a]}function L5(e,t,n){const r=j5(t);return sv.set(e,n),r.observe(e),()=>{sv.delete(e),r.unobserve(e)}}const P5={some:0,all:1};class M5 extends ha{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:s}=t,l={root:n?n.current:void 0,rootMargin:r,threshold:typeof a=="number"?a:P5[a]},u=d=>{const{isIntersecting:f}=d;if(this.isInView===f||(this.isInView=f,s&&!f&&this.hasEnteredView))return;f&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",f);const{onViewportEnter:p,onViewportLeave:g}=this.node.getProps(),y=f?p:g;y&&y(d)};return L5(this.node.current,l,u)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(z5(t,n))&&this.startObserver()}unmount(){}}function z5({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const lO={inView:{Feature:M5},tap:{Feature:O5},focus:{Feature:N5},hover:{Feature:k5}},B5={layout:{ProjectionNode:sO,MeasureLayout:JN}},V5={...qN,...lO,...R5,...B5},cO=$4(V5,UN),U5={renderer:UN,...qN,...lO};var F5={};const vf=Object.create(null),tc=e=>F5||globalThis.Deno?.env.toObject()||globalThis.__env__||(e?vf:globalThis),Ha=new Proxy(vf,{get(e,t){return tc()[t]??vf[t]},has(e,t){const n=tc();return t in n||t in vf},set(e,t,n){const r=tc(!0);return r[t]=n,!0},deleteProperty(e,t){if(!t)return!1;const n=tc(!0);return delete n[t],!0},ownKeys(){const e=tc(!0);return Object.keys(e)}});var Hs=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},$5={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},H5=class{#e=$5;#t=!1;setTimeoutProvider(e){this.#e=e}setTimeout(e,t){return this.#e.setTimeout(e,t)}clearTimeout(e){this.#e.clearTimeout(e)}setInterval(e,t){return this.#e.setInterval(e,t)}clearInterval(e){this.#e.clearInterval(e)}},Xa=new H5;function G5(e){setTimeout(e,0)}var ao=typeof window>"u"||"Deno"in globalThis;function bn(){}function K5(e,t){return typeof e=="function"?e(t):e}function lv(e){return typeof e=="number"&&e>=0&&e!==1/0}function uO(e,t){return Math.max(e+(t||0)-Date.now(),0)}function ta(e,t){return typeof e=="function"?e(t):e}function sr(e,t){return typeof e=="function"?e(t):e}function lT(e,t){const{type:n="all",exact:r,fetchStatus:a,predicate:s,queryKey:l,stale:u}=e;if(l){if(r){if(t.queryHash!==a0(l,t.options))return!1}else if(!Mc(t.queryKey,l))return!1}if(n!=="all"){const d=t.isActive();if(n==="active"&&!d||n==="inactive"&&d)return!1}return!(typeof u=="boolean"&&t.isStale()!==u||a&&a!==t.state.fetchStatus||s&&!s(t))}function cT(e,t){const{exact:n,status:r,predicate:a,mutationKey:s}=e;if(s){if(!t.options.mutationKey)return!1;if(n){if(oo(t.options.mutationKey)!==oo(s))return!1}else if(!Mc(t.options.mutationKey,s))return!1}return!(r&&t.state.status!==r||a&&!a(t))}function a0(e,t){return(t?.queryKeyHashFn||oo)(e)}function oo(e){return JSON.stringify(e,(t,n)=>cv(n)?Object.keys(n).sort().reduce((r,a)=>(r[a]=n[a],r),{}):n)}function Mc(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>Mc(e[n],t[n])):!1}var q5=Object.prototype.hasOwnProperty;function dO(e,t){if(e===t)return e;const n=uT(e)&&uT(t);if(!n&&!(cv(e)&&cv(t)))return t;const a=(n?e:Object.keys(e)).length,s=n?t:Object.keys(t),l=s.length,u=n?new Array(l):{};let d=0;for(let f=0;f<l;f++){const p=n?f:s[f],g=e[p],y=t[p];if(g===y){u[p]=g,(n?f<a:q5.call(e,p))&&d++;continue}if(g===null||y===null||typeof g!="object"||typeof y!="object"){u[p]=y;continue}const _=dO(g,y);u[p]=_,_===g&&d++}return a===l&&d===a?e:u}function Vf(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function uT(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function cv(e){if(!dT(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!dT(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function dT(e){return Object.prototype.toString.call(e)==="[object Object]"}function W5(e){return new Promise(t=>{Xa.setTimeout(t,e)})}function uv(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?dO(e,t):t}function Z5(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function Y5(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var o0=Symbol();function fO(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===o0?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function hO(e,t){return typeof e=="function"?e(...t):!!e}var X5=class extends Hs{#e;#t;#n;constructor(){super(),this.#n=e=>{if(!ao&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(t=>{typeof t=="boolean"?this.setFocused(t):this.onFocus()})}setFocused(e){this.#e!==e&&(this.#e=e,this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return typeof this.#e=="boolean"?this.#e:globalThis.document?.visibilityState!=="hidden"}},s0=new X5;function dv(){let e,t;const n=new Promise((a,s)=>{e=a,t=s});n.status="pending",n.catch(()=>{});function r(a){Object.assign(n,a),delete n.resolve,delete n.reject}return n.resolve=a=>{r({status:"fulfilled",value:a}),e(a)},n.reject=a=>{r({status:"rejected",reason:a}),t(a)},n}var Q5=G5;function J5(){let e=[],t=0,n=u=>{u()},r=u=>{u()},a=Q5;const s=u=>{t?e.push(u):a(()=>{n(u)})},l=()=>{const u=e;e=[],u.length&&a(()=>{r(()=>{u.forEach(d=>{n(d)})})})};return{batch:u=>{let d;t++;try{d=u()}finally{t--,t||l()}return d},batchCalls:u=>(...d)=>{s(()=>{u(...d)})},schedule:s,setNotifyFunction:u=>{n=u},setBatchNotifyFunction:u=>{r=u},setScheduler:u=>{a=u}}}var qt=J5(),e8=class extends Hs{#e=!0;#t;#n;constructor(){super(),this.#n=e=>{if(!ao&&window.addEventListener){const t=()=>e(!0),n=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",n)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(this.setOnline.bind(this))}setOnline(e){this.#e!==e&&(this.#e=e,this.listeners.forEach(n=>{n(e)}))}isOnline(){return this.#e}},Uf=new e8;function t8(e){return Math.min(1e3*2**e,3e4)}function pO(e){return(e??"online")==="online"?Uf.isOnline():!0}var fv=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function mO(e){let t=!1,n=0,r;const a=dv(),s=()=>a.status!=="pending",l=A=>{if(!s()){const C=new fv(A);y(C),e.onCancel?.(C)}},u=()=>{t=!0},d=()=>{t=!1},f=()=>s0.isFocused()&&(e.networkMode==="always"||Uf.isOnline())&&e.canRun(),p=()=>pO(e.networkMode)&&e.canRun(),g=A=>{s()||(r?.(),a.resolve(A))},y=A=>{s()||(r?.(),a.reject(A))},_=()=>new Promise(A=>{r=C=>{(s()||f())&&A(C)},e.onPause?.()}).then(()=>{r=void 0,s()||e.onContinue?.()}),S=()=>{if(s())return;let A;const C=n===0?e.initialPromise:void 0;try{A=C??e.fn()}catch(w){A=Promise.reject(w)}Promise.resolve(A).then(g).catch(w=>{if(s())return;const x=e.retry??(ao?0:3),T=e.retryDelay??t8,N=typeof T=="function"?T(n,w):T,R=x===!0||typeof x=="number"&&n<x||typeof x=="function"&&x(n,w);if(t||!R){y(w);return}n++,e.onFail?.(n,w),W5(N).then(()=>f()?void 0:_()).then(()=>{t?y(w):S()})})};return{promise:a,status:()=>a.status,cancel:l,continue:()=>(r?.(),a),cancelRetry:u,continueRetry:d,canStart:p,start:()=>(p()?S():_().then(S),a)}}var gO=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),lv(this.gcTime)&&(this.#e=Xa.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(ao?1/0:300*1e3))}clearGcTimeout(){this.#e&&(Xa.clearTimeout(this.#e),this.#e=void 0)}},n8=class extends gO{#e;#t;#n;#i;#r;#o;#s;constructor(e){super(),this.#s=!1,this.#o=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#i=e.client,this.#n=this.#i.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#e=fT(this.options),this.state=e.state??this.#e,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#r?.promise}setOptions(e){if(this.options={...this.#o,...e},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const t=fT(this.options);t.data!==void 0&&(this.setData(t.data,{updatedAt:t.dataUpdatedAt,manual:!0}),this.#e=t)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#n.remove(this)}setData(e,t){const n=uv(this.state.data,e,this.options);return this.#a({data:n,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),n}setState(e,t){this.#a({type:"setState",state:e,setStateOptions:t})}cancel(e){const t=this.#r?.promise;return this.#r?.cancel(e),t?t.then(bn).catch(bn):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#e)}isActive(){return this.observers.some(e=>sr(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===o0||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>ta(e.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e==="static"?!1:this.state.isInvalidated?!0:!uO(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(t=>t.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#r?.continue()}onOnline(){this.observers.find(t=>t.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#r?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#r&&(this.#s?this.#r.cancel({revert:!0}):this.#r.cancelRetry()),this.scheduleGc()),this.#n.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#a({type:"invalidate"})}async fetch(e,t){if(this.state.fetchStatus!=="idle"&&this.#r?.status()!=="rejected"){if(this.state.data!==void 0&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#r)return this.#r.continueRetry(),this.#r.promise}if(e&&this.setOptions(e),!this.options.queryFn){const u=this.observers.find(d=>d.options.queryFn);u&&this.setOptions(u.options)}const n=new AbortController,r=u=>{Object.defineProperty(u,"signal",{enumerable:!0,get:()=>(this.#s=!0,n.signal)})},a=()=>{const u=fO(this.options,t),f=(()=>{const p={client:this.#i,queryKey:this.queryKey,meta:this.meta};return r(p),p})();return this.#s=!1,this.options.persister?this.options.persister(u,f,this):u(f)},l=(()=>{const u={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#i,state:this.state,fetchFn:a};return r(u),u})();this.options.behavior?.onFetch(l,this),this.#t=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==l.fetchOptions?.meta)&&this.#a({type:"fetch",meta:l.fetchOptions?.meta}),this.#r=mO({initialPromise:t?.initialPromise,fn:l.fetchFn,onCancel:u=>{u instanceof fv&&u.revert&&this.setState({...this.#t,fetchStatus:"idle"}),n.abort()},onFail:(u,d)=>{this.#a({type:"failed",failureCount:u,error:d})},onPause:()=>{this.#a({type:"pause"})},onContinue:()=>{this.#a({type:"continue"})},retry:l.options.retry,retryDelay:l.options.retryDelay,networkMode:l.options.networkMode,canRun:()=>!0});try{const u=await this.#r.start();if(u===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(u),this.#n.config.onSuccess?.(u,this),this.#n.config.onSettled?.(u,this.state.error,this),u}catch(u){if(u instanceof fv){if(u.silent)return this.#r.promise;if(u.revert){if(this.state.data===void 0)throw u;return this.state.data}}throw this.#a({type:"error",error:u}),this.#n.config.onError?.(u,this),this.#n.config.onSettled?.(this.state.data,u,this),u}finally{this.scheduleGc()}}#a(e){const t=n=>{switch(e.type){case"failed":return{...n,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...n,fetchStatus:"paused"};case"continue":return{...n,fetchStatus:"fetching"};case"fetch":return{...n,...yO(n.data,this.options),fetchMeta:e.meta??null};case"success":const r={...n,data:e.data,dataUpdateCount:n.dataUpdateCount+1,dataUpdatedAt:e.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#t=e.manual?r:void 0,r;case"error":const a=e.error;return{...n,error:a,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,fetchFailureReason:a,fetchStatus:"idle",status:"error"};case"invalidate":return{...n,isInvalidated:!0};case"setState":return{...n,...e.state}}};this.state=t(this.state),qt.batch(()=>{this.observers.forEach(n=>{n.onQueryUpdate()}),this.#n.notify({query:this,type:"updated",action:e})})}};function yO(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:pO(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function fT(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var r8=class extends Hs{constructor(e,t){super(),this.options=t,this.#e=e,this.#a=null,this.#s=dv(),this.bindMethods(),this.setOptions(t)}#e;#t=void 0;#n=void 0;#i=void 0;#r;#o;#s;#a;#m;#f;#h;#c;#u;#l;#p=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#t.addObserver(this),hT(this.#t,this.options)?this.#d():this.updateResult(),this.#b())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return hv(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return hv(this.#t,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#_(),this.#E(),this.#t.removeObserver(this)}setOptions(e){const t=this.options,n=this.#t;if(this.options=this.#e.defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof sr(this.options.enabled,this.#t)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#S(),this.#t.setOptions(this.options),t._defaulted&&!Vf(this.options,t)&&this.#e.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#t,observer:this});const r=this.hasListeners();r&&pT(this.#t,n,this.options,t)&&this.#d(),this.updateResult(),r&&(this.#t!==n||sr(this.options.enabled,this.#t)!==sr(t.enabled,this.#t)||ta(this.options.staleTime,this.#t)!==ta(t.staleTime,this.#t))&&this.#g();const a=this.#y();r&&(this.#t!==n||sr(this.options.enabled,this.#t)!==sr(t.enabled,this.#t)||a!==this.#l)&&this.#v(a)}getOptimisticResult(e){const t=this.#e.getQueryCache().build(this.#e,e),n=this.createResult(t,e);return a8(this,n)&&(this.#i=n,this.#o=this.options,this.#r=this.#t.state),n}getCurrentResult(){return this.#i}trackResult(e,t){return new Proxy(e,{get:(n,r)=>(this.trackProp(r),t?.(r),r==="promise"&&!this.options.experimental_prefetchInRender&&this.#s.status==="pending"&&this.#s.reject(new Error("experimental_prefetchInRender feature flag is not enabled")),Reflect.get(n,r))})}trackProp(e){this.#p.add(e)}getCurrentQuery(){return this.#t}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const t=this.#e.defaultQueryOptions(e),n=this.#e.getQueryCache().build(this.#e,t);return n.fetch().then(()=>this.createResult(n,t))}fetch(e){return this.#d({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#i))}#d(e){this.#S();let t=this.#t.fetch(this.options,e);return e?.throwOnError||(t=t.catch(bn)),t}#g(){this.#_();const e=ta(this.options.staleTime,this.#t);if(ao||this.#i.isStale||!lv(e))return;const n=uO(this.#i.dataUpdatedAt,e)+1;this.#c=Xa.setTimeout(()=>{this.#i.isStale||this.updateResult()},n)}#y(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#t):this.options.refetchInterval)??!1}#v(e){this.#E(),this.#l=e,!(ao||sr(this.options.enabled,this.#t)===!1||!lv(this.#l)||this.#l===0)&&(this.#u=Xa.setInterval(()=>{(this.options.refetchIntervalInBackground||s0.isFocused())&&this.#d()},this.#l))}#b(){this.#g(),this.#v(this.#y())}#_(){this.#c&&(Xa.clearTimeout(this.#c),this.#c=void 0)}#E(){this.#u&&(Xa.clearInterval(this.#u),this.#u=void 0)}createResult(e,t){const n=this.#t,r=this.options,a=this.#i,s=this.#r,l=this.#o,d=e!==n?e.state:this.#n,{state:f}=e;let p={...f},g=!1,y;if(t._optimisticResults){const L=this.hasListeners(),H=!L&&hT(e,t),Z=L&&pT(e,n,t,r);(H||Z)&&(p={...p,...yO(f.data,e.options)}),t._optimisticResults==="isRestoring"&&(p.fetchStatus="idle")}let{error:_,errorUpdatedAt:S,status:A}=p;y=p.data;let C=!1;if(t.placeholderData!==void 0&&y===void 0&&A==="pending"){let L;a?.isPlaceholderData&&t.placeholderData===l?.placeholderData?(L=a.data,C=!0):L=typeof t.placeholderData=="function"?t.placeholderData(this.#h?.state.data,this.#h):t.placeholderData,L!==void 0&&(A="success",y=uv(a?.data,L,t),g=!0)}if(t.select&&y!==void 0&&!C)if(a&&y===s?.data&&t.select===this.#m)y=this.#f;else try{this.#m=t.select,y=t.select(y),y=uv(a?.data,y,t),this.#f=y,this.#a=null}catch(L){this.#a=L}this.#a&&(_=this.#a,y=this.#f,S=Date.now(),A="error");const w=p.fetchStatus==="fetching",x=A==="pending",T=A==="error",N=x&&w,R=y!==void 0,D={status:A,fetchStatus:p.fetchStatus,isPending:x,isSuccess:A==="success",isError:T,isInitialLoading:N,isLoading:N,data:y,dataUpdatedAt:p.dataUpdatedAt,error:_,errorUpdatedAt:S,failureCount:p.fetchFailureCount,failureReason:p.fetchFailureReason,errorUpdateCount:p.errorUpdateCount,isFetched:p.dataUpdateCount>0||p.errorUpdateCount>0,isFetchedAfterMount:p.dataUpdateCount>d.dataUpdateCount||p.errorUpdateCount>d.errorUpdateCount,isFetching:w,isRefetching:w&&!x,isLoadingError:T&&!R,isPaused:p.fetchStatus==="paused",isPlaceholderData:g,isRefetchError:T&&R,isStale:l0(e,t),refetch:this.refetch,promise:this.#s,isEnabled:sr(t.enabled,e)!==!1};if(this.options.experimental_prefetchInRender){const L=q=>{D.status==="error"?q.reject(D.error):D.data!==void 0&&q.resolve(D.data)},H=()=>{const q=this.#s=D.promise=dv();L(q)},Z=this.#s;switch(Z.status){case"pending":e.queryHash===n.queryHash&&L(Z);break;case"fulfilled":(D.status==="error"||D.data!==Z.value)&&H();break;case"rejected":(D.status!=="error"||D.error!==Z.reason)&&H();break}}return D}updateResult(){const e=this.#i,t=this.createResult(this.#t,this.options);if(this.#r=this.#t.state,this.#o=this.options,this.#r.data!==void 0&&(this.#h=this.#t),Vf(t,e))return;this.#i=t;const n=()=>{if(!e)return!0;const{notifyOnChangeProps:r}=this.options,a=typeof r=="function"?r():r;if(a==="all"||!a&&!this.#p.size)return!0;const s=new Set(a??this.#p);return this.options.throwOnError&&s.add("error"),Object.keys(this.#i).some(l=>{const u=l;return this.#i[u]!==e[u]&&s.has(u)})};this.#x({listeners:n()})}#S(){const e=this.#e.getQueryCache().build(this.#e,this.options);if(e===this.#t)return;const t=this.#t;this.#t=e,this.#n=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#b()}#x(e){qt.batch(()=>{e.listeners&&this.listeners.forEach(t=>{t(this.#i)}),this.#e.getQueryCache().notify({query:this.#t,type:"observerResultsUpdated"})})}};function i8(e,t){return sr(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function hT(e,t){return i8(e,t)||e.state.data!==void 0&&hv(e,t,t.refetchOnMount)}function hv(e,t,n){if(sr(t.enabled,e)!==!1&&ta(t.staleTime,e)!=="static"){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&l0(e,t)}return!1}function pT(e,t,n,r){return(e!==t||sr(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&l0(e,n)}function l0(e,t){return sr(t.enabled,e)!==!1&&e.isStaleByTime(ta(t.staleTime,e))}function a8(e,t){return!Vf(e.getCurrentResult(),t)}function mT(e){return{onFetch:(t,n)=>{const r=t.options,a=t.fetchOptions?.meta?.fetchMore?.direction,s=t.state.data?.pages||[],l=t.state.data?.pageParams||[];let u={pages:[],pageParams:[]},d=0;const f=async()=>{let p=!1;const g=S=>{Object.defineProperty(S,"signal",{enumerable:!0,get:()=>(t.signal.aborted?p=!0:t.signal.addEventListener("abort",()=>{p=!0}),t.signal)})},y=fO(t.options,t.fetchOptions),_=async(S,A,C)=>{if(p)return Promise.reject();if(A==null&&S.pages.length)return Promise.resolve(S);const x=(()=>{const I={client:t.client,queryKey:t.queryKey,pageParam:A,direction:C?"backward":"forward",meta:t.options.meta};return g(I),I})(),T=await y(x),{maxPages:N}=t.options,R=C?Y5:Z5;return{pages:R(S.pages,T,N),pageParams:R(S.pageParams,A,N)}};if(a&&s.length){const S=a==="backward",A=S?o8:gT,C={pages:s,pageParams:l},w=A(r,C);u=await _(C,w,S)}else{const S=e??s.length;do{const A=d===0?l[0]??r.initialPageParam:gT(r,u);if(d>0&&A==null)break;u=await _(u,A),d++}while(d<S)}return u};t.options.persister?t.fetchFn=()=>t.options.persister?.(f,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n):t.fetchFn=f}}}function gT(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function o8(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}var s8=class extends gO{#e;#t;#n;#i;constructor(e){super(),this.#e=e.client,this.mutationId=e.mutationId,this.#n=e.mutationCache,this.#t=[],this.state=e.state||vO(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#t.includes(e)||(this.#t.push(e),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#t=this.#t.filter(t=>t!==e),this.scheduleGc(),this.#n.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#t.length||(this.state.status==="pending"?this.scheduleGc():this.#n.remove(this))}continue(){return this.#i?.continue()??this.execute(this.state.variables)}async execute(e){const t=()=>{this.#r({type:"continue"})},n={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#i=mO({fn:()=>this.options.mutationFn?this.options.mutationFn(e,n):Promise.reject(new Error("No mutationFn found")),onFail:(s,l)=>{this.#r({type:"failed",failureCount:s,error:l})},onPause:()=>{this.#r({type:"pause"})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#n.canRun(this)});const r=this.state.status==="pending",a=!this.#i.canStart();try{if(r)t();else{this.#r({type:"pending",variables:e,isPaused:a}),await this.#n.config.onMutate?.(e,this,n);const l=await this.options.onMutate?.(e,n);l!==this.state.context&&this.#r({type:"pending",context:l,variables:e,isPaused:a})}const s=await this.#i.start();return await this.#n.config.onSuccess?.(s,e,this.state.context,this,n),await this.options.onSuccess?.(s,e,this.state.context,n),await this.#n.config.onSettled?.(s,null,this.state.variables,this.state.context,this,n),await this.options.onSettled?.(s,null,e,this.state.context,n),this.#r({type:"success",data:s}),s}catch(s){try{throw await this.#n.config.onError?.(s,e,this.state.context,this,n),await this.options.onError?.(s,e,this.state.context,n),await this.#n.config.onSettled?.(void 0,s,this.state.variables,this.state.context,this,n),await this.options.onSettled?.(void 0,s,e,this.state.context,n),s}finally{this.#r({type:"error",error:s})}}finally{this.#n.runNext(this)}}#r(e){const t=n=>{switch(e.type){case"failed":return{...n,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...n,isPaused:!0};case"continue":return{...n,isPaused:!1};case"pending":return{...n,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...n,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...n,data:void 0,error:e.error,failureCount:n.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}};this.state=t(this.state),qt.batch(()=>{this.#t.forEach(n=>{n.onMutationUpdate(e)}),this.#n.notify({mutation:this,type:"updated",action:e})})}};function vO(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var bO=class extends Hs{constructor(e={}){super(),this.config=e,this.#e=new Set,this.#t=new Map,this.#n=0}#e;#t;#n;build(e,t,n){const r=new s8({client:e,mutationCache:this,mutationId:++this.#n,options:e.defaultMutationOptions(t),state:n});return this.add(r),r}add(e){this.#e.add(e);const t=Hd(e);if(typeof t=="string"){const n=this.#t.get(t);n?n.push(e):this.#t.set(t,[e])}this.notify({type:"added",mutation:e})}remove(e){if(this.#e.delete(e)){const t=Hd(e);if(typeof t=="string"){const n=this.#t.get(t);if(n)if(n.length>1){const r=n.indexOf(e);r!==-1&&n.splice(r,1)}else n[0]===e&&this.#t.delete(t)}}this.notify({type:"removed",mutation:e})}canRun(e){const t=Hd(e);if(typeof t=="string"){const r=this.#t.get(t)?.find(a=>a.state.status==="pending");return!r||r===e}else return!0}runNext(e){const t=Hd(e);return typeof t=="string"?this.#t.get(t)?.find(r=>r!==e&&r.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){qt.batch(()=>{this.#e.forEach(e=>{this.notify({type:"removed",mutation:e})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(e){const t={exact:!0,...e};return this.getAll().find(n=>cT(t,n))}findAll(e={}){return this.getAll().filter(t=>cT(e,t))}notify(e){qt.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){const e=this.getAll().filter(t=>t.state.isPaused);return qt.batch(()=>Promise.all(e.map(t=>t.continue().catch(bn))))}};function Hd(e){return e.options.scope?.id}var l8=class extends Hs{#e;#t=void 0;#n;#i;constructor(t,n){super(),this.#e=t,this.setOptions(n),this.bindMethods(),this.#r()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){const n=this.options;this.options=this.#e.defaultMutationOptions(t),Vf(this.options,n)||this.#e.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#n,observer:this}),n?.mutationKey&&this.options.mutationKey&&oo(n.mutationKey)!==oo(this.options.mutationKey)?this.reset():this.#n?.state.status==="pending"&&this.#n.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#n?.removeObserver(this)}onMutationUpdate(t){this.#r(),this.#o(t)}getCurrentResult(){return this.#t}reset(){this.#n?.removeObserver(this),this.#n=void 0,this.#r(),this.#o()}mutate(t,n){return this.#i=n,this.#n?.removeObserver(this),this.#n=this.#e.getMutationCache().build(this.#e,this.options),this.#n.addObserver(this),this.#n.execute(t)}#r(){const t=this.#n?.state??vO();this.#t={...t,isPending:t.status==="pending",isSuccess:t.status==="success",isError:t.status==="error",isIdle:t.status==="idle",mutate:this.mutate,reset:this.reset}}#o(t){qt.batch(()=>{if(this.#i&&this.hasListeners()){const n=this.#t.variables,r=this.#t.context,a={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};t?.type==="success"?(this.#i.onSuccess?.(t.data,n,r,a),this.#i.onSettled?.(t.data,null,n,r,a)):t?.type==="error"&&(this.#i.onError?.(t.error,n,r,a),this.#i.onSettled?.(void 0,t.error,n,r,a))}this.listeners.forEach(n=>{n(this.#t)})})}},c8=class extends Hs{constructor(e={}){super(),this.config=e,this.#e=new Map}#e;build(e,t,n){const r=t.queryKey,a=t.queryHash??a0(r,t);let s=this.get(a);return s||(s=new n8({client:e,queryKey:r,queryHash:a,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(r)}),this.add(s)),s}add(e){this.#e.has(e.queryHash)||(this.#e.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const t=this.#e.get(e.queryHash);t&&(e.destroy(),t===e&&this.#e.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){qt.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#e.get(e)}getAll(){return[...this.#e.values()]}find(e){const t={exact:!0,...e};return this.getAll().find(n=>lT(t,n))}findAll(e={}){const t=this.getAll();return Object.keys(e).length>0?t.filter(n=>lT(e,n)):t}notify(e){qt.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){qt.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){qt.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},u8=class{#e;#t;#n;#i;#r;#o;#s;#a;constructor(e={}){this.#e=e.queryCache||new c8,this.#t=e.mutationCache||new bO,this.#n=e.defaultOptions||{},this.#i=new Map,this.#r=new Map,this.#o=0}mount(){this.#o++,this.#o===1&&(this.#s=s0.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#a=Uf.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#o--,this.#o===0&&(this.#s?.(),this.#s=void 0,this.#a?.(),this.#a=void 0)}isFetching(e){return this.#e.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#t.findAll({...e,status:"pending"}).length}getQueryData(e){const t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=this.#e.build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(ta(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return this.#e.findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),s=this.#e.get(r.queryHash)?.state.data,l=K5(t,s);if(l!==void 0)return this.#e.build(this,r).setData(l,{...n,manual:!0})}setQueriesData(e,t,n){return qt.batch(()=>this.#e.findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){const t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state}removeQueries(e){const t=this.#e;qt.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=this.#e;return qt.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=qt.batch(()=>this.#e.findAll(e).map(a=>a.cancel(n)));return Promise.all(r).then(bn).catch(bn)}invalidateQueries(e,t={}){return qt.batch(()=>(this.#e.findAll(e).forEach(n=>{n.invalidate()}),e?.refetchType==="none"?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=qt.batch(()=>this.#e.findAll(e).filter(a=>!a.isDisabled()&&!a.isStatic()).map(a=>{let s=a.fetch(void 0,n);return n.throwOnError||(s=s.catch(bn)),a.state.fetchStatus==="paused"?Promise.resolve():s}));return Promise.all(r).then(bn)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=this.#e.build(this,t);return n.isStaleByTime(ta(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(bn).catch(bn)}fetchInfiniteQuery(e){return e.behavior=mT(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(bn).catch(bn)}ensureInfiniteQueryData(e){return e.behavior=mT(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return Uf.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#n}setDefaultOptions(e){this.#n=e}setQueryDefaults(e,t){this.#i.set(oo(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...this.#i.values()],n={};return t.forEach(r=>{Mc(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){this.#r.set(oo(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...this.#r.values()],n={};return t.forEach(r=>{Mc(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...this.#n.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=a0(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===o0&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#n.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}},_O=E.createContext(void 0),c0=e=>{const t=E.useContext(_O);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},d8=({client:e,children:t})=>(E.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),v.jsx(_O.Provider,{value:e,children:t})),EO=E.createContext(!1),f8=()=>E.useContext(EO);EO.Provider;function h8(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var p8=E.createContext(h8()),m8=()=>E.useContext(p8),g8=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},y8=e=>{E.useEffect(()=>{e.clearReset()},[e])},v8=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:a})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(a&&e.data===void 0||hO(n,[e.error,r])),b8=e=>{if(e.suspense){const n=a=>a==="static"?a:Math.max(a??1e3,1e3),r=e.staleTime;e.staleTime=typeof r=="function"?(...a)=>n(r(...a)):n(r),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},_8=(e,t)=>e.isLoading&&e.isFetching&&!t,E8=(e,t)=>e?.suspense&&t.isPending,yT=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function S8(e,t,n){const r=f8(),a=m8(),s=c0(),l=s.defaultQueryOptions(e);s.getDefaultOptions().queries?._experimental_beforeQuery?.(l),l._optimisticResults=r?"isRestoring":"optimistic",b8(l),g8(l,a),y8(a);const u=!s.getQueryCache().get(l.queryHash),[d]=E.useState(()=>new t(s,l)),f=d.getOptimisticResult(l),p=!r&&e.subscribed!==!1;if(E.useSyncExternalStore(E.useCallback(g=>{const y=p?d.subscribe(qt.batchCalls(g)):bn;return d.updateResult(),y},[d,p]),()=>d.getCurrentResult(),()=>d.getCurrentResult()),E.useEffect(()=>{d.setOptions(l)},[l,d]),E8(l,f))throw yT(l,d,a);if(v8({result:f,errorResetBoundary:a,throwOnError:l.throwOnError,query:s.getQueryCache().get(l.queryHash),suspense:l.suspense}))throw f.error;return s.getDefaultOptions().queries?._experimental_afterQuery?.(l,f),l.experimental_prefetchInRender&&!ao&&_8(f,r)&&(u?yT(l,d,a):s.getQueryCache().get(l.queryHash)?.promise)?.catch(bn).finally(()=>{d.updateResult()}),l.notifyOnChangeProps?f:d.trackResult(f)}function wh(e,t){return S8(e,r8)}function mo(e,t){const n=c0(),[r]=E.useState(()=>new l8(n,e));E.useEffect(()=>{r.setOptions(e)},[r,e]);const a=E.useSyncExternalStore(E.useCallback(l=>r.subscribe(qt.batchCalls(l)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),s=E.useCallback((l,u)=>{r.mutate(l,u).catch(bn)},[r]);if(a.error&&hO(r.options.throwOnError,[a.error]))throw a.error;return{...a,mutate:s,mutateAsync:a.mutate}}const SO=e=>{const[t,n]=E.useState(e);return E.useEffect(()=>{n(e??window.document.body)},[e]),t},x8={},vT=e=>{let t;const n=new Set,r=(p,g)=>{const y=typeof p=="function"?p(t):p;if(!Object.is(y,t)){const _=t;t=g??(typeof y!="object"||y===null)?y:Object.assign({},t,y),n.forEach(S=>S(t,_))}},a=()=>t,d={setState:r,getState:a,getInitialState:()=>f,subscribe:p=>(n.add(p),()=>n.delete(p)),destroy:()=>{(x8?"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()}},f=t=e(r,a,d);return d},A8=e=>e?vT(e):vT;var Wg={exports:{}},Zg={},Yg={exports:{}},Xg={};/**
|
|
252
|
-
* @license React
|
|
253
|
-
* use-sync-external-store-shim.production.js
|
|
254
|
-
*
|
|
255
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
256
|
-
*
|
|
257
|
-
* This source code is licensed under the MIT license found in the
|
|
258
|
-
* LICENSE file in the root directory of this source tree.
|
|
259
|
-
*/var bT;function w8(){if(bT)return Xg;bT=1;var e=Wc();function t(g,y){return g===y&&(g!==0||1/g===1/y)||g!==g&&y!==y}var n=typeof Object.is=="function"?Object.is:t,r=e.useState,a=e.useEffect,s=e.useLayoutEffect,l=e.useDebugValue;function u(g,y){var _=y(),S=r({inst:{value:_,getSnapshot:y}}),A=S[0].inst,C=S[1];return s(function(){A.value=_,A.getSnapshot=y,d(A)&&C({inst:A})},[g,_,y]),a(function(){return d(A)&&C({inst:A}),g(function(){d(A)&&C({inst:A})})},[g]),l(_),_}function d(g){var y=g.getSnapshot;g=g.value;try{var _=y();return!n(g,_)}catch{return!0}}function f(g,y){return y()}var p=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?f:u;return Xg.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:p,Xg}var _T;function T8(){return _T||(_T=1,Yg.exports=w8()),Yg.exports}/**
|
|
260
|
-
* @license React
|
|
261
|
-
* use-sync-external-store-shim/with-selector.production.js
|
|
262
|
-
*
|
|
263
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
264
|
-
*
|
|
265
|
-
* This source code is licensed under the MIT license found in the
|
|
266
|
-
* LICENSE file in the root directory of this source tree.
|
|
267
|
-
*/var ET;function C8(){if(ET)return Zg;ET=1;var e=Wc(),t=T8();function n(f,p){return f===p&&(f!==0||1/f===1/p)||f!==f&&p!==p}var r=typeof Object.is=="function"?Object.is:n,a=t.useSyncExternalStore,s=e.useRef,l=e.useEffect,u=e.useMemo,d=e.useDebugValue;return Zg.useSyncExternalStoreWithSelector=function(f,p,g,y,_){var S=s(null);if(S.current===null){var A={hasValue:!1,value:null};S.current=A}else A=S.current;S=u(function(){function w(I){if(!x){if(x=!0,T=I,I=y(I),_!==void 0&&A.hasValue){var D=A.value;if(_(D,I))return N=D}return N=I}if(D=N,r(T,I))return D;var L=y(I);return _!==void 0&&_(D,L)?(T=I,D):(T=I,N=L)}var x=!1,T,N,R=g===void 0?null:g;return[function(){return w(p())},R===null?void 0:function(){return w(R())}]},[p,g,y,_]);var C=a(f,S[0],S[1]);return l(function(){A.hasValue=!0,A.value=C},[C]),d(C),C},Zg}var ST;function R8(){return ST||(ST=1,Wg.exports=C8()),Wg.exports}var k8=R8();const N8=ib(k8),xO={},{useDebugValue:O8}=Oe,{useSyncExternalStoreWithSelector:I8}=N8;let xT=!1;const D8=e=>e;function j8(e,t=D8,n){(xO?"production":void 0)!=="production"&&n&&!xT&&(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"),xT=!0);const r=I8(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,n);return O8(r),r}const AT=e=>{(xO?"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"?A8(e):e,n=(r,a)=>j8(t,r,a);return Object.assign(n,t),n},AO=e=>e?AT(e):AT,L8=AO((e,t)=>({scrollBlockers:[],addBlockage:(n,r)=>e(a=>{const s=a.scrollBlockers,l=s.find(u=>u.element===r);if(l){const d=l.blockers.includes(n)?l.blockers:[...l.blockers,n];return{scrollBlockers:s.map(f=>f.element===r?{...f,blockers:d}:f)}}return r.style.overflowY="hidden",r.style.overflowX="hidden",{scrollBlockers:[...s,{element:r,blockers:[n]}]}}),removeBlockage:(n,r)=>e(a=>{const s=a.scrollBlockers,l=s.find(u=>u.element===r);return l?l.blockers.length>1?{scrollBlockers:s.map(u=>u.element===r?{...u,blockers:u.blockers.filter(d=>d!==n)}:u)}:(r.style.overflowY="auto",{scrollBlockers:s.filter(u=>u.element!==r)}):{scrollBlockers:s}}),isElementScrollBlocked:n=>t().scrollBlockers.some(r=>r.element===n)}));function P8(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:M8}=Oe;function wO(e){const t=M8();return n=>{const r=e(n);return P8(t.current,r)?t.current:t.current=r}}const TO=e=>{const{disableScroll:t=!1,element:n,key:r="unnamed_blocker"}=e??{},{isElementScrollBlocked:a,addBlockage:s,removeBlockage:l}=L8(wO(f=>({isElementScrollBlocked:f.isElementScrollBlocked,addBlockage:f.addBlockage,removeBlockage:f.removeBlockage}))),u=SO(n);return E.useEffect(()=>{const f=n??window.document.body;t?s(r,f):l(r,f)},[s,t,n,r,l]),{isScrollBlocked:u?a(u):!1}},u0="relative scroll-mb-8 scroll-mt-[30vh] scroll-p-8",z8="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",B8=({className:e,...t})=>v.jsx("h1",{className:_e("mt-5 text-2xl font-bold",e),...t}),V8=({className:e,...t})=>v.jsx("h2",{className:_e("mt-16 mb-2 text-2xl font-bold",u0,e),...t}),U8=({className:e,...t})=>v.jsx("h3",{className:_e("mt-5 mb-2 text-xl font-bold",u0,e),...t}),F8=({className:e,...t})=>v.jsx("h4",{className:_e("mt-3 text-lg font-bold",u0,e),...t}),$8=e=>String(e).normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(/\s+/g,"-").toLowerCase(),H8=e=>{const r=(document.getElementById(e)?.getBoundingClientRect()?.top??0)+window.scrollY-150;window.scrollTo({top:r,behavior:"smooth"})},G8=(e,t)=>{const n=e.getBoundingClientRect().left,r=e.getBoundingClientRect().top,a=window.getComputedStyle(e,":after"),s=n+parseInt(a.getPropertyValue("left"),10),l=s+parseInt(a.width,10),u=r+parseInt(a.getPropertyValue("top"),10),d=u+parseInt(a.height,10),f=t.clientX,p=t.clientY;return f>=s&&f<=l&&p>=u&&p<=d},d0=({H:e,children:t,className:n,isClickable:r,...a})=>{const s=typeof t=="string"?$8(t):void 0,l=u=>{const{id:d}=u.currentTarget;if(G8(u.currentTarget,u)&&typeof d=="string"){const g=`${window.location.href.split("#")[0]}#${d}`;navigator.clipboard.writeText(g),H8(d)}};return v.jsx(e,{id:s,onClick:r?l:void 0,"aria-label":r?`Click to scroll to section ${s} and copy the link to the clipboard`:void 0,className:_e(r&&z8,n),...a,children:t})},K8=({isClickable:e,...t})=>v.jsx(B8,{...t}),q8=({isClickable:e=!1,...t})=>v.jsx(d0,{H:V8,isClickable:e,...t}),f0=({isClickable:e=!1,...t})=>v.jsx(d0,{H:U8,isClickable:e,...t}),W8=({isClickable:e=!1,...t})=>v.jsx(d0,{H:F8,isClickable:e,...t});var h0=(e=>(e.SM="sm",e.MD="md",e.LG="lg",e.XL="xl",e.UNSET="unset",e))(h0||{});const Z8=fr("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"}}),Y8=cO.create(Tr),p0=({children:e,isOpen:t,container:n,disableScroll:r=!0,onClose:a,hasCloseButton:s=!1,title:l,size:u="md",className:d,...f})=>{const p=SO(n);if(TO({key:"modal",disableScroll:t&&r}),!p)return v.jsx(v.Fragment,{});const g=typeof l=="string";return ho.createPortal(v.jsx(cO.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:y=>{y.stopPropagation(),a?.()},"aria-hidden":!t,children:v.jsx("div",{className:"flex justify-center p-4",children:v.jsxs(Y8,{onClick:y=>y.stopPropagation(),initial:{scale:t?.5:1},animate:{scale:t?1:.5},transition:{duration:.3},className:Z8({size:u,className:d}),role:"dialog","aria-modal":!0,roundedSize:"2xl",...f,children:[v.jsxs("div",{className:_e("cursor-default px-4",s&&g?"flex items-center justify-center":s?"flex items-center justify-end":g?"items-center":"hidden"),children:[g&&v.jsx(f0,{className:"ml-4 flex items-center justify-center text-lg font-bold",children:l}),s&&v.jsx(ot,{variant:at.HOVERABLE,color:it.TEXT,label:"Close modal",className:"ml-auto",onClick:y=>{y.stopPropagation(),a?.()},Icon:po,size:qn.ICON_MD})]}),v.jsx("div",{className:"flex flex-1 flex-col items-center overflow-auto",children:e})]})})}),p)},X8=e=>{const t=Gr(),n=e??t??rt,r=UR(n),{data:a}=wh({queryKey:["oAuth2AccessToken"],queryFn:r.getOAuth2AccessToken,enabled:!!(n.editor.clientId&&n.editor.clientSecret),staleTime:0,gcTime:0,refetchOnWindowFocus:!1,refetchOnMount:!1,refetchOnReconnect:!1,refetchInterval:!1,refetchIntervalInBackground:!1});return{oAuth2AccessToken:a?.data}};var Q8=Object.defineProperty,J8=Object.defineProperties,eK=Object.getOwnPropertyDescriptors,wT=Object.getOwnPropertySymbols,tK=Object.prototype.hasOwnProperty,nK=Object.prototype.propertyIsEnumerable,TT=(e,t,n)=>t in e?Q8(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,br=(e,t)=>{for(var n in t||(t={}))tK.call(t,n)&&TT(e,n,t[n]);if(wT)for(var n of wT(t))nK.call(t,n)&&TT(e,n,t[n]);return e},Pr=(e,t)=>J8(e,eK(t)),rK=class extends Error{constructor(e,t,n){super(t||e.toString(),{cause:n}),this.status=e,this.statusText=t,this.error=n}},iK=async(e,t)=>{var n,r,a,s,l,u;let d=t||{};const f={onRequest:[t?.onRequest],onResponse:[t?.onResponse],onSuccess:[t?.onSuccess],onError:[t?.onError],onRetry:[t?.onRetry]};if(!t||!t?.plugins)return{url:e,options:d,hooks:f};for(const p of t?.plugins||[]){if(p.init){const g=await((n=p.init)==null?void 0:n.call(p,e.toString(),t));d=g.options||d,e=g.url}f.onRequest.push((r=p.hooks)==null?void 0:r.onRequest),f.onResponse.push((a=p.hooks)==null?void 0:a.onResponse),f.onSuccess.push((s=p.hooks)==null?void 0:s.onSuccess),f.onError.push((l=p.hooks)==null?void 0:l.onError),f.onRetry.push((u=p.hooks)==null?void 0:u.onRetry)}return{url:e,options:d,hooks:f}},CT=class{constructor(e){this.options=e}shouldAttemptRetry(e,t){return this.options.shouldRetry?Promise.resolve(e<this.options.attempts&&this.options.shouldRetry(t)):Promise.resolve(e<this.options.attempts)}getDelay(){return this.options.delay}},aK=class{constructor(e){this.options=e}shouldAttemptRetry(e,t){return this.options.shouldRetry?Promise.resolve(e<this.options.attempts&&this.options.shouldRetry(t)):Promise.resolve(e<this.options.attempts)}getDelay(e){return Math.min(this.options.maxDelay,this.options.baseDelay*2**e)}};function oK(e){if(typeof e=="number")return new CT({type:"linear",attempts:e,delay:1e3});switch(e.type){case"linear":return new CT(e);case"exponential":return new aK(e);default:throw new Error("Invalid retry strategy")}}var sK=async e=>{const t={},n=async r=>typeof r=="function"?await r():r;if(e?.auth){if(e.auth.type==="Bearer"){const r=await n(e.auth.token);if(!r)return t;t.authorization=`Bearer ${r}`}else if(e.auth.type==="Basic"){const r=n(e.auth.username),a=n(e.auth.password);if(!r||!a)return t;t.authorization=`Basic ${btoa(`${r}:${a}`)}`}else if(e.auth.type==="Custom"){const r=n(e.auth.value);if(!r)return t;t.authorization=`${n(e.auth.prefix)} ${r}`}}return t},lK=/^application\/(?:[\w!#$%&*.^`~-]*\+)?json(;.+)?$/i;function cK(e){const t=e.headers.get("content-type"),n=new Set(["image/svg","application/xml","application/xhtml","application/html"]);if(!t)return"json";const r=t.split(";").shift()||"";return lK.test(r)?"json":n.has(r)||r.startsWith("text/")?"text":"blob"}function uK(e){try{return JSON.parse(e),!0}catch{return!1}}function CO(e){if(e===void 0)return!1;const t=typeof e;return t==="string"||t==="number"||t==="boolean"||t===null?!0:t!=="object"?!1:Array.isArray(e)?!0:e.buffer?!1:e.constructor&&e.constructor.name==="Object"||typeof e.toJSON=="function"}function RT(e){try{return JSON.parse(e)}catch{return e}}function kT(e){return typeof e=="function"}function dK(e){if(e?.customFetchImpl)return e.customFetchImpl;if(typeof globalThis<"u"&&kT(globalThis.fetch))return globalThis.fetch;if(typeof window<"u"&&kT(window.fetch))return window.fetch;throw new Error("No fetch implementation found")}async function fK(e){const t=new Headers(e?.headers),n=await sK(e);for(const[r,a]of Object.entries(n||{}))t.set(r,a);if(!t.has("content-type")){const r=hK(e?.body);r&&t.set("content-type",r)}return t}function hK(e){return CO(e)?"application/json":null}function pK(e){if(!e?.body)return null;const t=new Headers(e?.headers);if(CO(e.body)&&!t.has("content-type")){for(const[n,r]of Object.entries(e?.body))r instanceof Date&&(e.body[n]=r.toISOString());return JSON.stringify(e.body)}return e.body}function mK(e,t){var n;if(t?.method)return t.method.toUpperCase();if(e.startsWith("@")){const r=(n=e.split("@")[1])==null?void 0:n.split("/")[0];return kO.includes(r)?r.toUpperCase():t?.body?"POST":"GET"}return t?.body?"POST":"GET"}function gK(e,t){let n;return!e?.signal&&e?.timeout&&(n=setTimeout(()=>t?.abort(),e?.timeout)),{abortTimeout:n,clearTimeout:()=>{n&&clearTimeout(n)}}}var yK=class RO extends Error{constructor(t,n){super(n||JSON.stringify(t,null,2)),this.issues=t,Object.setPrototypeOf(this,RO.prototype)}};async function bf(e,t){let n=await e["~standard"].validate(t);if(n.issues)throw new yK(n.issues);return n.value}var kO=["get","post","put","patch","delete"],vK=e=>({id:"apply-schema",name:"Apply Schema",version:"1.0.0",async init(t,n){var r,a,s,l;const u=((a=(r=e.plugins)==null?void 0:r.find(d=>{var f;return(f=d.schema)!=null&&f.config?t.startsWith(d.schema.config.baseURL||"")||t.startsWith(d.schema.config.prefix||""):!1}))==null?void 0:a.schema)||e.schema;if(u){let d=t;(s=u.config)!=null&&s.prefix&&d.startsWith(u.config.prefix)&&(d=d.replace(u.config.prefix,""),u.config.baseURL&&(t=t.replace(u.config.prefix,u.config.baseURL))),(l=u.config)!=null&&l.baseURL&&d.startsWith(u.config.baseURL)&&(d=d.replace(u.config.baseURL,""));const f=u.schema[d];if(f){let p=Pr(br({},n),{method:f.method,output:f.output});return n?.disableValidation||(p=Pr(br({},p),{body:f.input?await bf(f.input,n?.body):n?.body,params:f.params?await bf(f.params,n?.params):n?.params,query:f.query?await bf(f.query,n?.query):n?.query})),{url:t,options:p}}}return{url:t,options:n}}}),bK=e=>{async function t(n,r){const a=Pr(br(br({},e),r),{plugins:[...e?.plugins||[],vK(e||{})]});if(e?.catchAllError)try{return await pv(n,a)}catch(s){return{data:null,error:{status:500,statusText:"Fetch Error",message:"Fetch related error. Captured by catchAllError option. See error property for more details.",error:s}}}return await pv(n,a)}return t};function _K(e,t){let{baseURL:n,params:r,query:a}=t||{query:{},params:{},baseURL:""},s=e.startsWith("http")?e.split("/").slice(0,3).join("/"):n||"";if(e.startsWith("@")){const g=e.toString().split("@")[1].split("/")[0];kO.includes(g)&&(e=e.replace(`@${g}/`,"/"))}s.endsWith("/")||(s+="/");let[l,u]=e.replace(s,"").split("?");const d=new URLSearchParams(u);for(const[g,y]of Object.entries(a||{}))y!=null&&d.set(g,String(y));if(r)if(Array.isArray(r)){const g=l.split("/").filter(y=>y.startsWith(":"));for(const[y,_]of g.entries()){const S=r[y];l=l.replace(_,S)}}else for(const[g,y]of Object.entries(r))l=l.replace(`:${g}`,String(y));l=l.split("/").map(encodeURIComponent).join("/"),l.startsWith("/")&&(l=l.slice(1));let f=d.toString();return f=f.length>0?`?${f}`.replace(/\+/g,"%20"):"",s.startsWith("http")?new URL(`${l}${f}`,s):`${s}${l}${f}`}var pv=async(e,t)=>{var n,r,a,s,l,u,d,f;const{hooks:p,url:g,options:y}=await iK(e,t),_=dK(y),S=new AbortController,A=(n=y.signal)!=null?n:S.signal,C=_K(g,y),w=pK(y),x=await fK(y),T=mK(g,y);let N=Pr(br({},y),{url:C,headers:x,body:w,method:T,signal:A});for(const ce of p.onRequest)if(ce){const W=await ce(N);W instanceof Object&&(N=W)}("pipeTo"in N&&typeof N.pipeTo=="function"||typeof((r=t?.body)==null?void 0:r.pipe)=="function")&&("duplex"in N||(N.duplex="half"));const{clearTimeout:R}=gK(y,S);let I=await _(N.url,N);R();const D={response:I,request:N};for(const ce of p.onResponse)if(ce){const W=await ce(Pr(br({},D),{response:(a=t?.hookOptions)!=null&&a.cloneResponse?I.clone():I}));W instanceof Response?I=W:W instanceof Object&&(I=W.response)}if(I.ok){if(!(N.method!=="HEAD"))return{data:"",error:null};const W=cK(I),ae={data:"",response:I,request:N};if(W==="json"||W==="text"){const M=await I.text(),G=await((s=N.jsonParser)!=null?s:RT)(M);ae.data=G}else ae.data=await I[W]();N?.output&&N.output&&!N.disableValidation&&(ae.data=await bf(N.output,ae.data));for(const M of p.onSuccess)M&&await M(Pr(br({},ae),{response:(l=t?.hookOptions)!=null&&l.cloneResponse?I.clone():I}));return t?.throw?ae.data:{data:ae.data,error:null}}const L=(u=t?.jsonParser)!=null?u:RT,H=await I.text(),Z=uK(H),q=Z?await L(H):null,te={response:I,responseText:H,request:N,error:Pr(br({},q),{status:I.status,statusText:I.statusText})};for(const ce of p.onError)ce&&await ce(Pr(br({},te),{response:(d=t?.hookOptions)!=null&&d.cloneResponse?I.clone():I}));if(t?.retry){const ce=oK(t.retry),W=(f=t.retryAttempt)!=null?f:0;if(await ce.shouldAttemptRetry(W,I)){for(const M of p.onRetry)M&&await M(D);const ae=ce.getDelay(W);return await new Promise(M=>setTimeout(M,ae)),await pv(e,Pr(br({},t),{retryAttempt:W+1}))}}if(t?.throw)throw new rK(I.status,I.statusText,Z?q:H);return{data:null,error:Pr(br({},q),{status:I.status,statusText:I.statusText})}};class EK extends Error{constructor(t,n){super(t),this.name="BetterAuthError",this.message=t,this.cause=n,this.stack=""}}function SK(e){try{return new URL(e).pathname!=="/"}catch{throw new EK(`Invalid base URL: ${e}. Please provide a valid base URL.`)}}function Qg(e,t="/api/auth"){return SK(e)?e:(t=t.startsWith("/")?t:`/${t}`,`${e.replace(/\/+$/,"")}${t}`)}function xK(e,t,n,r){if(e)return Qg(e,t);{const a=Ha.BETTER_AUTH_URL||Ha.NEXT_PUBLIC_BETTER_AUTH_URL||Ha.PUBLIC_BETTER_AUTH_URL||Ha.NUXT_PUBLIC_BETTER_AUTH_URL||Ha.NUXT_PUBLIC_AUTH_URL||(Ha.BASE_URL!=="/"?Ha.BASE_URL:void 0);if(a)return Qg(a,t)}if(typeof window<"u"&&window.location)return Qg(window.location.origin,t)}var Jg={},ey={},ty={},gr={},NT;function m0(){if(NT)return gr;NT=1,Object.defineProperty(gr,"__esModule",{value:!0}),gr.cleanTasks=gr.allTasks=gr.task=gr.startTask=void 0;let e=0,t=[];function n(){return e+=1,()=>{if(e-=1,e===0){let l=t;t=[];for(let u of l)u()}}}gr.startTask=n;function r(l){let u=n();return l().finally(u)}gr.task=r;function a(){return e===0?Promise.resolve():new Promise(l=>{t.push(l)})}gr.allTasks=a;function s(){e=0}return gr.cleanTasks=s,gr}var OT;function Th(){return OT||(OT=1,(function(e){var t={};Object.defineProperty(e,"__esModule",{value:!0}),e.cleanStores=e.clean=void 0;const n=m0();e.clean=Symbol("clean");let r=(...a)=>{if(t.NODE_ENV==="production")throw new Error("cleanStores() can be used only during development or tests");(0,n.cleanTasks)();for(let s of a)s&&(s.mocked&&delete s.mocked,s[e.clean]&&s[e.clean]())};e.cleanStores=r})(ty)),ty}var IT;function g0(){return IT||(IT=1,(function(e){var t={};Object.defineProperty(e,"__esModule",{value:!0}),e.onMount=e.STORE_UNMOUNT_DELAY=e.onBuild=e.onNotify=e.onSet=e.onStop=e.onStart=void 0;const n=Th(),r=0,a=1,s=2,l=3,u=4,d=5,f=6,p=10;let g=(x,T,N,R)=>(x.events=x.events||{},x.events[N+p]||(x.events[N+p]=R(I=>{x.events[N].reduceRight((D,L)=>(L(D),D),{shared:{},...I})})),x.events[N]=x.events[N]||[],x.events[N].push(T),()=>{let I=x.events[N],D=I.indexOf(T);I.splice(D,1),I.length||(delete x.events[N],x.events[N+p](),delete x.events[N+p])}),y=(x,T)=>g(x,T,r,N=>{let R=x.listen;return x.listen=I=>(!x.lc&&!x.starting&&(x.starting=!0,N(),delete x.starting),R(I)),()=>{x.listen=R}});e.onStart=y;let _=(x,T)=>g(x,T,a,N=>{let R=x.off;return x.off=()=>{N(),R()},()=>{x.off=R}});e.onStop=_;let S=(x,T)=>g(x,T,s,N=>{let R=x.set,I=x.setKey;return x.setKey&&(x.setKey=(D,L)=>{let H;if(N({abort:()=>{H=!0},changed:D,newValue:{...x.value,[D]:L}}),!H)return I(D,L)}),x.set=D=>{let L;if(N({abort:()=>{L=!0},newValue:D}),!L)return R(D)},()=>{x.set=R,x.setKey=I}});e.onSet=S;let A=(x,T)=>g(x,T,l,N=>{let R=x.notify;return x.notify=I=>{let D;if(N({abort:()=>{D=!0},changed:I}),!D)return R(I)},()=>{x.notify=R}});e.onNotify=A;let C=(x,T)=>g(x,T,u,N=>{let R=x.build;return x.build=(...I)=>{let D=R(...I);return N({store:D}),D},()=>{x.build=R}});e.onBuild=C,e.STORE_UNMOUNT_DELAY=1e3;let w=(x,T)=>g(x,R=>{let I=T(R);I&&x.events[f].push(I)},d,R=>{let I=x.listen;x.listen=L=>(!x.lc&&!x.active&&(x.active=!0,R()),I(L));let D=x.off;if(x.events[f]=[],x.off=()=>{setTimeout(()=>{if(x.active&&!x.lc){x.active=!1;for(let L of x.events[f])L();x.events[f]=[],D()}},e.STORE_UNMOUNT_DELAY)},t.NODE_ENV!=="production"){let L=x[n.clean];x[n.clean]=()=>{for(let H of x.events[f])H();x.events[f]=[],x.active=!1,L()}}return()=>{x.listen=I,x.off=D}});e.onMount=w})(ey)),ey}var ny={},DT;function AK(){return DT||(DT=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.actionFor=e.action=e.lastAction=void 0;const t=m0();e.lastAction=Symbol();let n=(s,l,u,d)=>{let f={...s};f.set=(...g)=>{s[e.lastAction]=l,s.set(...g),delete s[e.lastAction]},s.setKey&&(f.setKey=(...g)=>{s[e.lastAction]=l,s.setKey(...g),delete s[e.lastAction]});let p=u(f,...d);if(p instanceof Promise){let g=(0,t.startTask)();return p.finally(g)}return p},r=(s,l,u)=>(...d)=>n(s,l,u,d);e.action=r;let a=(s,l,u)=>(d,...f)=>n(d,l,u,f);e.actionFor=a})(ny)),ny}var nc={},rc={},ry={},jT;function y0(){return jT||(jT=1,(function(e){var t={};Object.defineProperty(e,"__esModule",{value:!0}),e.atom=e.notifyId=void 0;const n=Th();let r=[];e.notifyId=0;let a=s=>{let l,u=[],d={lc:0,value:s,set(f){d.value=f,d.notify()},get(){return d.lc||d.listen(()=>{})(),d.value},notify(f){l=u;let p=!r.length;for(let g=0;g<l.length;g++)r.push(l[g],d.value,f);if(p){e.notifyId++;for(let g=0;g<r.length;g+=3)r[g](r[g+1],r[g+2]);r.length=0}},listen(f){return u===l&&(u=u.slice()),d.lc=u.push(f),()=>{u===l&&(u=u.slice());let p=u.indexOf(f);~p&&(u.splice(p,1),d.lc--,d.lc||d.off())}},subscribe(f){let p=d.listen(f);return f(d.value),p},off(){}};return t.NODE_ENV!=="production"&&(d[n.clean]=()=>{u=[],d.lc=0,d.off()}),d};e.atom=a})(ry)),ry}var LT;function NO(){if(LT)return rc;LT=1,Object.defineProperty(rc,"__esModule",{value:!0}),rc.map=void 0;const e=y0();let t=(n={})=>{let r=(0,e.atom)(n);return r.setKey=function(a,s){typeof s>"u"?a in r.value&&(r.value={...r.value},delete r.value[a],r.notify(a)):r.value[a]!==s&&(r.value={...r.value,[a]:s},r.notify(a))},r};return rc.map=t,rc}var PT;function wK(){if(PT)return nc;PT=1;var e={};Object.defineProperty(nc,"__esModule",{value:!0}),nc.mapTemplate=void 0;const t=g0(),n=Th(),r=NO();function a(s){let l=(u,...d)=>(l.cache[u]||(l.cache[u]=l.build(u,...d)),l.cache[u]);return l.build=(u,...d)=>{let f=(0,r.map)({id:u});return(0,t.onMount)(f,()=>{let p;return s&&(p=s(f,u,...d)),()=>{delete l.cache[u],p&&p()}}),f},l.cache={},e.NODE_ENV!=="production"&&(l[n.clean]=()=>{for(let u in l.cache)l.cache[u][n.clean]();l.cache={}}),l}return nc.mapTemplate=a,nc}var ic={},MT;function TK(){if(MT)return ic;MT=1,Object.defineProperty(ic,"__esModule",{value:!0}),ic.listenKeys=void 0;function e(t,n,r){let a=new Set([...n,void 0]);return t.listen((s,l)=>{a.has(l)&&r(s,l)})}return ic.listenKeys=e,ic}var ac={},zT;function CK(){if(zT)return ac;zT=1,Object.defineProperty(ac,"__esModule",{value:!0}),ac.keepMount=void 0;let e=t=>{t.listen(()=>{})};return ac.keepMount=e,ac}var oc={},BT;function RK(){if(BT)return oc;BT=1,Object.defineProperty(oc,"__esModule",{value:!0}),oc.computed=void 0;const e=g0(),t=y0();let n=(r,a)=>{Array.isArray(r)||(r=[r]);let s,l=[],u=()=>{let f=r.map(p=>p.get());(s!==t.notifyId||f.some((p,g)=>p!==l[g]))&&(s=t.notifyId,l=f,d.set(a(...f)))},d=(0,t.atom)();return(0,e.onMount)(d,()=>{let f=r.map(p=>p.listen(u,a));return u(),()=>{for(let p of f)p()}}),d};return oc.computed=n,oc}var VT;function kK(){return VT||(VT=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.map=e.atom=e.computed=e.keepMount=e.listenKeys=e.mapTemplate=e.cleanStores=e.clean=e.lastAction=e.actionFor=e.action=e.task=e.allTasks=e.startTask=e.cleanTasks=e.onSet=e.onStop=e.onBuild=e.onMount=e.onStart=e.onNotify=e.STORE_UNMOUNT_DELAY=void 0;var t=g0();Object.defineProperty(e,"STORE_UNMOUNT_DELAY",{enumerable:!0,get:function(){return t.STORE_UNMOUNT_DELAY}}),Object.defineProperty(e,"onNotify",{enumerable:!0,get:function(){return t.onNotify}}),Object.defineProperty(e,"onStart",{enumerable:!0,get:function(){return t.onStart}}),Object.defineProperty(e,"onMount",{enumerable:!0,get:function(){return t.onMount}}),Object.defineProperty(e,"onBuild",{enumerable:!0,get:function(){return t.onBuild}}),Object.defineProperty(e,"onStop",{enumerable:!0,get:function(){return t.onStop}}),Object.defineProperty(e,"onSet",{enumerable:!0,get:function(){return t.onSet}});var n=m0();Object.defineProperty(e,"cleanTasks",{enumerable:!0,get:function(){return n.cleanTasks}}),Object.defineProperty(e,"startTask",{enumerable:!0,get:function(){return n.startTask}}),Object.defineProperty(e,"allTasks",{enumerable:!0,get:function(){return n.allTasks}}),Object.defineProperty(e,"task",{enumerable:!0,get:function(){return n.task}});var r=AK();Object.defineProperty(e,"action",{enumerable:!0,get:function(){return r.action}}),Object.defineProperty(e,"actionFor",{enumerable:!0,get:function(){return r.actionFor}}),Object.defineProperty(e,"lastAction",{enumerable:!0,get:function(){return r.lastAction}});var a=Th();Object.defineProperty(e,"clean",{enumerable:!0,get:function(){return a.clean}}),Object.defineProperty(e,"cleanStores",{enumerable:!0,get:function(){return a.cleanStores}});var s=wK();Object.defineProperty(e,"mapTemplate",{enumerable:!0,get:function(){return s.mapTemplate}});var l=TK();Object.defineProperty(e,"listenKeys",{enumerable:!0,get:function(){return l.listenKeys}});var u=CK();Object.defineProperty(e,"keepMount",{enumerable:!0,get:function(){return u.keepMount}});var d=RK();Object.defineProperty(e,"computed",{enumerable:!0,get:function(){return d.computed}});var f=y0();Object.defineProperty(e,"atom",{enumerable:!0,get:function(){return f.atom}});var p=NO();Object.defineProperty(e,"map",{enumerable:!0,get:function(){return p.map}})})(Jg)),Jg}var mv=kK();const NK=typeof window>"u",OK=(e,t,n,r)=>{const a=mv.atom({data:null,error:null,isPending:!0,isRefetching:!1,refetch:u=>s(u)}),s=u=>{const d=typeof r=="function"?r({data:a.get().data,error:a.get().error,isPending:a.get().isPending}):r;n(t,{...d,query:{...d?.query,...u?.query},async onSuccess(f){a.set({data:f.data,error:null,isPending:!1,isRefetching:!1,refetch:a.value.refetch}),await d?.onSuccess?.(f)},async onError(f){const{request:p}=f,g=typeof p.retry=="number"?p.retry:p.retry?.attempts,y=p.retryAttempt||0;g&&y<g||(a.set({error:f.error,data:null,isPending:!1,isRefetching:!1,refetch:a.value.refetch}),await d?.onError?.(f))},async onRequest(f){const p=a.get();a.set({isPending:p.data===null,data:p.data,error:null,isRefetching:!0,refetch:a.value.refetch}),await d?.onRequest?.(f)}}).catch(f=>{a.set({error:f,data:null,isPending:!1,isRefetching:!1,refetch:a.value.refetch})})};e=Array.isArray(e)?e:[e];let l=!1;for(const u of e)u.subscribe(()=>{NK||(l?s():mv.onMount(a,()=>{const d=setTimeout(()=>{l||(s(),l=!0)},0);return()=>{a.off(),u.off(),clearTimeout(d)}}))});return a},IK={proto:/"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/,constructor:/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/,protoShort:/"__proto__"\s*:/,constructorShort:/"constructor"\s*:/},DK=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/,UT={true:!0,false:!1,null:null,undefined:void 0,nan:Number.NaN,infinity:Number.POSITIVE_INFINITY,"-infinity":Number.NEGATIVE_INFINITY},jK=/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})(?:\.(\d{1,7}))?(?:Z|([+-])(\d{2}):(\d{2}))$/;function LK(e){return e instanceof Date&&!isNaN(e.getTime())}function PK(e){const t=jK.exec(e);if(!t)return null;const[,n,r,a,s,l,u,d,f,p,g]=t;let y=new Date(Date.UTC(parseInt(n,10),parseInt(r,10)-1,parseInt(a,10),parseInt(s,10),parseInt(l,10),parseInt(u,10),d?parseInt(d.padEnd(3,"0"),10):0));if(f){const _=(parseInt(p,10)*60+parseInt(g,10))*(f==="+"?-1:1);y.setUTCMinutes(y.getUTCMinutes()+_)}return LK(y)?y:null}function MK(e,t={}){const{strict:n=!1,warnings:r=!1,reviver:a,parseDates:s=!0}=t;if(typeof e!="string")return e;const l=e.trim();if(l.length>0&&l[0]==='"'&&l.endsWith('"')&&!l.slice(1,-1).includes('"'))return l.slice(1,-1);const u=l.toLowerCase();if(u.length<=9&&u in UT)return UT[u];if(!DK.test(l)){if(n)throw new SyntaxError("[better-json] Invalid JSON");return e}if(Object.entries(IK).some(([f,p])=>{const g=p.test(l);return g&&r&&console.warn(`[better-json] Detected potential prototype pollution attempt using ${f} pattern`),g})&&n)throw new Error("[better-json] Potential prototype pollution attempt detected");try{return JSON.parse(l,(p,g)=>{if(p==="__proto__"||p==="constructor"&&g&&typeof g=="object"&&"prototype"in g){r&&console.warn(`[better-json] Dropping "${p}" key to prevent prototype pollution`);return}if(s&&typeof g=="string"){const y=PK(g);if(y)return y}return a?a(p,g):g})}catch(f){if(n)throw f;return e}}function zK(e,t={strict:!0}){return MK(e,t)}const BK={id:"redirect",name:"Redirect",hooks:{onSuccess(e){if(e.data?.url&&e.data?.redirect&&typeof window<"u"&&window.location&&window.location)try{window.location.href=e.data.url}catch{}}}};function VK(e){const t=mv.atom(!1);return{session:OK(t,"/get-session",e,{method:"GET"}),$sessionSignal:t}}const UK=(e,t)=>{const n="credentials"in Request.prototype,r=xK(e?.baseURL,e?.basePath)??"/api/auth",a=e?.plugins?.flatMap(N=>N.fetchPlugins).filter(N=>N!==void 0)||[],s={id:"lifecycle-hooks",name:"lifecycle-hooks",hooks:{onSuccess:e?.fetchOptions?.onSuccess,onError:e?.fetchOptions?.onError,onRequest:e?.fetchOptions?.onRequest,onResponse:e?.fetchOptions?.onResponse}},{onSuccess:l,onError:u,onRequest:d,onResponse:f,...p}=e?.fetchOptions||{},g=bK({baseURL:r,...n?{credentials:"include"}:{},method:"GET",jsonParser(N){return N?zK(N,{strict:!1}):null},customFetchImpl:fetch,...p,plugins:[s,...p.plugins||[],...e?.disableDefaultFetchPlugins?[]:[BK],...a]}),{$sessionSignal:y,session:_}=VK(g),S=e?.plugins||[];let A={},C={$sessionSignal:y,session:_},w={"/sign-out":"POST","/revoke-sessions":"POST","/revoke-other-sessions":"POST","/delete-user":"POST"};const x=[{signal:"$sessionSignal",matcher(N){return N==="/sign-out"||N==="/update-user"||N.startsWith("/sign-in")||N.startsWith("/sign-up")||N==="/delete-user"||N==="/verify-email"}}];for(const N of S)N.getAtoms&&Object.assign(C,N.getAtoms?.(g)),N.pathMethods&&Object.assign(w,N.pathMethods),N.atomListeners&&x.push(...N.atomListeners);const T={notify:N=>{C[N].set(!C[N].get())},listen:(N,R)=>{C[N].subscribe(R)},atoms:C};for(const N of S)N.getActions&&Object.assign(A,N.getActions?.(g,T,e));return{get baseURL(){return r},pluginsActions:A,pluginsAtoms:C,pluginPathMethods:w,atomListeners:x,$fetch:g,$store:T}};function FK(e){return typeof e=="object"&&e!==null&&"get"in e&&typeof e.get=="function"&&"lc"in e&&typeof e.lc=="number"}function $K(e,t,n){const r=t[e],{fetchOptions:a,query:s,...l}=n||{};return r||(a?.method?a.method:l&&Object.keys(l).length>0?"POST":"GET")}function HK(e,t,n,r,a){function s(l=[]){return new Proxy(function(){},{get(u,d){if(d==="then"||d==="catch"||d==="finally")return;const f=[...l,d];let p=e;for(const g of f)if(p&&typeof p=="object"&&g in p)p=p[g];else{p=void 0;break}return typeof p=="function"||FK(p)?p:s(f)},apply:async(u,d,f)=>{const p="/"+l.map(x=>x.replace(/[A-Z]/g,T=>`-${T.toLowerCase()}`)).join("/"),g=f[0]||{},y=f[1]||{},{query:_,fetchOptions:S,...A}=g,C={...y,...S},w=$K(p,n,g);return await t(p,{...C,body:w==="GET"?void 0:{...A,...C?.body||{}},query:_||C?.query,method:w,async onSuccess(x){await C?.onSuccess?.(x);const T=a?.find(I=>I.matcher(p));if(!T)return;const N=r[T.signal];if(!N)return;const R=N.get();setTimeout(()=>{N.set(!R)},10)}})}})}return s()}function GK(e){return e.charAt(0).toUpperCase()+e.slice(1)}function KK(e){const{pluginPathMethods:t,pluginsActions:n,pluginsAtoms:r,$fetch:a,atomListeners:s,$store:l}=UK(e);let u={};for(const[p,g]of Object.entries(r))u[`use${GK(p)}`]=g;const d={...n,...u,$fetch:a,$store:l};return HK(d,a,t,r,s)}const OO=e=>{const t=e?.editor?.backendURL??rt.editor?.backendURL;if(!t)throw new Error("Backend URL is not defined in the Intlayer configuration.");const n=()=>KK({baseURL:t,withCredentials:!0});return{signInEmail:async(...q)=>n().signIn.email(...q),signUpEmail:async(...q)=>n().signUp.email(...q),signOut:async(...q)=>n().signOut(...q),signInSocial:async(...q)=>n().signIn.social(...q),linkSocial:async(...q)=>n().linkSocial(...q),changePasswordSession:async(...q)=>n().changePassword(...q),requestPasswordResetSession:async(...q)=>n().requestPasswordReset(...q),resetPassword:async(...q)=>n().resetPassword(...q),verifyEmailSession:async(...q)=>n().verifyEmail(...q),getSession:async(...q)=>n().getSession(...q),forgetPassword:async(...q)=>n().forgetPassword(...q),sendVerificationEmail:async(...q)=>n().sendVerificationEmail(...q),changeEmail:async(...q)=>n().changeEmail(...q),deleteUser:async(...q)=>n().deleteUser(...q),revokeSession:async(...q)=>n().revokeSession(...q),revokeSessions:async(...q)=>n().revokeSessions(...q),revokeOtherSessions:async(...q)=>n().revokeOtherSessions(...q),listAccounts:async(...q)=>n().listAccounts(...q),unlinkAccount:async(...q)=>n().unlinkAccount(...q),refreshToken:async(...q)=>n().refreshToken(...q),getAccessToken:async(...q)=>n().getAccessToken(...q),accountInfo:async(...q)=>n().accountInfo(...q),updateUser:async(...q)=>n().updateUser(...q),listSessions:async(...q)=>n().listSessions(...q)}},qK=(e,t)=>{const n=Gr(),r=t??n??rt,a=c0(),{data:s,isFetched:l,refetch:u}=wh({queryKey:["session"],queryFn:async()=>(await OO(r).getSession()).data,staleTime:0,gcTime:0,enabled:!e,refetchOnWindowFocus:!1,refetchOnMount:!1,refetchOnReconnect:!1,refetchInterval:!1,refetchIntervalInBackground:!1}),d=s??(l?null:void 0),f=y=>a.setQueryData(["session"],y),p=async()=>(await u()).data;return{session:d,fetchSession:p,revalidateSession:p,setSession:f}},cu=({session:e,intlayerConfiguration:t}={})=>{const{session:n,fetchSession:r,revalidateSession:a,setSession:s}=qK(e,t),{oAuth2AccessToken:l}=X8(t);return{session:n,fetchSession:r,setSession:s,revalidateSession:a,oAuth2AccessToken:l,isAuthenticated:!!(n?.user||l)}},xi=e=>{const t=Gr(),{oAuth2AccessToken:n}=cu();return NB({...n&&{headers:{Authorization:`Bearer ${n.accessToken}`}}},t)},WK=e=>{const t=Gr();return OO(t)},ZK=({requireUser:e,requireProject:t,requireOrganization:n})=>{const r=Gr(),{oAuth2AccessToken:a,session:s}=cu({intlayerConfiguration:r}),l=s?s.user:a?.user,u=s?s.organization:a?.organization,d=s?s.project:a?.project;return{enable:(e?!!l:!0)&&(t?!!d:!0)&&(n?!!u:!0)}},IO=e=>{const{requireUser:t,requireProject:n,requireOrganization:r,...a}=e,{enable:s}=ZK({requireUser:t,requireProject:n,requireOrganization:r});return wh({...a,enabled:a.enabled===!1?!1:s})},YK=()=>{const e=WK();return mo({mutationKey:["logout"],mutationFn:(...t)=>e.signOut(...t),meta:{invalidateQueries:[["session"],["users"],["organizations"],["projects"],["dictionaries"],["tags"]]}})},XK=e=>{const t=xi();return IO({queryKey:["projects",e],queryFn:({signal:n})=>t.project.getProjects(e,{signal:n}),requireUser:!0,requireOrganization:!0})},QK=()=>{const e=xi();return mo({mutationKey:["dictionaries"],mutationFn:e.dictionary.pushDictionaries,meta:{invalidateQueries:[["dictionaries"],["dictionariesKeys"]]}})},JK=()=>{const e=xi();return mo({mutationKey:["dictionaries"],mutationFn:e.dictionary.deleteDictionary,meta:{invalidateQueries:[["dictionaries"],["dictionariesKeys"]]}})},eq=e=>{const t=xi();return IO({queryKey:["tags",e],queryFn:({signal:n})=>t.tag.getTags(e,{signal:n}),requireUser:!0,requireOrganization:!0,requireProject:!0})},tq=()=>{const e=xi();return mo({mutationKey:["ai-auditContentDeclarationMetadata"],mutationFn:e.ai.auditContentDeclarationMetadata})},nq=()=>{const e=xi();return mo({mutationKey:["ai-auditContentDeclarationField"],mutationFn:e.ai.auditContentDeclarationField})},rq=()=>{const e=xi();return mo({mutationKey:["ai-autocomplete"],mutationFn:e.ai.autocomplete})},DO=()=>{const e=xi();return wh({queryKey:["editor","dictionaries"],queryFn:e.editor.getDictionaries})},iq=()=>{const e=xi();return mo({mutationKey:["editor","dictionaries"],mutationFn:e.editor.writeDictionary})};var uu=e=>e.type==="checkbox",Qa=e=>e instanceof Date,_n=e=>e==null;const jO=e=>typeof e=="object";var Vt=e=>!_n(e)&&!Array.isArray(e)&&jO(e)&&!Qa(e),LO=e=>Vt(e)&&e.target?uu(e.target)?e.target.checked:e.target.value:e,aq=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,PO=(e,t)=>e.has(aq(t)),oq=e=>{const t=e.constructor&&e.constructor.prototype;return Vt(t)&&t.hasOwnProperty("isPrototypeOf")},v0=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function Gt(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(!(v0&&(e instanceof Blob||r))&&(n||Vt(e)))if(t=n?[]:Object.create(Object.getPrototypeOf(e)),!n&&!oq(e))t=e;else for(const a in e)e.hasOwnProperty(a)&&(t[a]=Gt(e[a]));else return e;return t}var Ch=e=>/^\w*$/.test(e),Dt=e=>e===void 0,b0=e=>Array.isArray(e)?e.filter(Boolean):[],_0=e=>b0(e.replace(/["|']|\]/g,"").split(/\.|\[/)),Ee=(e,t,n)=>{if(!t||!Vt(e))return n;const r=(Ch(t)?[t]:_0(t)).reduce((a,s)=>_n(a)?a:a[s],e);return Dt(r)||r===e?Dt(e[t])?n:e[t]:r},Un=e=>typeof e=="boolean",ct=(e,t,n)=>{let r=-1;const a=Ch(t)?[t]:_0(t),s=a.length,l=s-1;for(;++r<s;){const u=a[r];let d=n;if(r!==l){const f=e[u];d=Vt(f)||Array.isArray(f)?f:isNaN(+a[r+1])?{}:[]}if(u==="__proto__"||u==="constructor"||u==="prototype")return;e[u]=d,e=e[u]}};const Ff={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},_r={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},fi={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},E0=Oe.createContext(null);E0.displayName="HookFormContext";const pa=()=>Oe.useContext(E0),sq=e=>{const{children:t,...n}=e;return Oe.createElement(E0.Provider,{value:n},t)};var MO=(e,t,n,r=!0)=>{const a={defaultValues:t._defaultValues};for(const s in e)Object.defineProperty(a,s,{get:()=>{const l=s;return t._proxyFormState[l]!==_r.all&&(t._proxyFormState[l]=!r||_r.all),n&&(n[l]=!0),e[l]}});return a};const S0=typeof window<"u"?Oe.useLayoutEffect:Oe.useEffect;function lq(e){const t=pa(),{control:n=t.control,disabled:r,name:a,exact:s}=e||{},[l,u]=Oe.useState(n._formState),d=Oe.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1});return S0(()=>n._subscribe({name:a,formState:d.current,exact:s,callback:f=>{!r&&u({...n._formState,...f})}}),[a,r,s]),Oe.useEffect(()=>{d.current.isValid&&n._setValid(!0)},[n]),Oe.useMemo(()=>MO(l,n,d.current,!1),[l,n])}var Gn=e=>typeof e=="string",zO=(e,t,n,r,a)=>Gn(e)?(r&&t.watch.add(e),Ee(n,e,a)):Array.isArray(e)?e.map(s=>(r&&t.watch.add(s),Ee(n,s))):(r&&(t.watchAll=!0),n),gv=e=>_n(e)||!jO(e);function pi(e,t,n=new WeakSet){if(gv(e)||gv(t))return e===t;if(Qa(e)&&Qa(t))return e.getTime()===t.getTime();const r=Object.keys(e),a=Object.keys(t);if(r.length!==a.length)return!1;if(n.has(e)||n.has(t))return!0;n.add(e),n.add(t);for(const s of r){const l=e[s];if(!a.includes(s))return!1;if(s!=="ref"){const u=t[s];if(Qa(l)&&Qa(u)||Vt(l)&&Vt(u)||Array.isArray(l)&&Array.isArray(u)?!pi(l,u,n):l!==u)return!1}}return!0}function cq(e){const t=pa(),{control:n=t.control,name:r,defaultValue:a,disabled:s,exact:l,compute:u}=e||{},d=Oe.useRef(a),f=Oe.useRef(u),p=Oe.useRef(void 0);f.current=u;const g=Oe.useMemo(()=>n._getWatch(r,d.current),[n,r]),[y,_]=Oe.useState(f.current?f.current(g):g);return S0(()=>n._subscribe({name:r,formState:{values:!0},exact:l,callback:S=>{if(!s){const A=zO(r,n._names,S.values||n._formValues,!1,d.current);if(f.current){const C=f.current(A);pi(C,p.current)||(_(C),p.current=C)}else _(A)}}}),[n,s,r,l]),Oe.useEffect(()=>n._removeUnmounted()),y}function uq(e){const t=pa(),{name:n,disabled:r,control:a=t.control,shouldUnregister:s,defaultValue:l}=e,u=PO(a._names.array,n),d=Oe.useMemo(()=>Ee(a._formValues,n,Ee(a._defaultValues,n,l)),[a,n,l]),f=cq({control:a,name:n,defaultValue:d,exact:!0}),p=lq({control:a,name:n,exact:!0}),g=Oe.useRef(e),y=Oe.useRef(void 0),_=Oe.useRef(a.register(n,{...e.rules,value:f,...Un(e.disabled)?{disabled:e.disabled}:{}}));g.current=e;const S=Oe.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!Ee(p.errors,n)},isDirty:{enumerable:!0,get:()=>!!Ee(p.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!Ee(p.touchedFields,n)},isValidating:{enumerable:!0,get:()=>!!Ee(p.validatingFields,n)},error:{enumerable:!0,get:()=>Ee(p.errors,n)}}),[p,n]),A=Oe.useCallback(T=>_.current.onChange({target:{value:LO(T),name:n},type:Ff.CHANGE}),[n]),C=Oe.useCallback(()=>_.current.onBlur({target:{value:Ee(a._formValues,n),name:n},type:Ff.BLUR}),[n,a._formValues]),w=Oe.useCallback(T=>{const N=Ee(a._fields,n);N&&T&&(N._f.ref={focus:()=>T.focus&&T.focus(),select:()=>T.select&&T.select(),setCustomValidity:R=>T.setCustomValidity(R),reportValidity:()=>T.reportValidity()})},[a._fields,n]),x=Oe.useMemo(()=>({name:n,value:f,...Un(r)||p.disabled?{disabled:p.disabled||r}:{},onChange:A,onBlur:C,ref:w}),[n,r,p.disabled,A,C,w,f]);return Oe.useEffect(()=>{const T=a._options.shouldUnregister||s,N=y.current;N&&N!==n&&!u&&a.unregister(N),a.register(n,{...g.current.rules,...Un(g.current.disabled)?{disabled:g.current.disabled}:{}});const R=(I,D)=>{const L=Ee(a._fields,I);L&&L._f&&(L._f.mount=D)};if(R(n,!0),T){const I=Gt(Ee(a._options.defaultValues,n));ct(a._defaultValues,n,I),Dt(Ee(a._formValues,n))&&ct(a._formValues,n,I)}return!u&&a.register(n),y.current=n,()=>{(u?T&&!a._state.action:T)?a.unregister(n):R(n,!1)}},[n,a,u,s]),Oe.useEffect(()=>{a._setDisabledField({disabled:r,name:n})},[r,n,a]),Oe.useMemo(()=>({field:x,formState:p,fieldState:S}),[x,p,S])}const dq=e=>e.render(uq(e));var x0=(e,t,n,r,a)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:a||!0}}:{},Ec=e=>Array.isArray(e)?e:[e],FT=()=>{let e=[];return{get observers(){return e},next:a=>{for(const s of e)s.next&&s.next(a)},subscribe:a=>(e.push(a),{unsubscribe:()=>{e=e.filter(s=>s!==a)}}),unsubscribe:()=>{e=[]}}};function BO(e,t){const n={};for(const r in e)if(e.hasOwnProperty(r)){const a=e[r],s=t[r];if(a&&Vt(a)&&s){const l=BO(a,s);Vt(l)&&(n[r]=l)}else e[r]&&(n[r]=s)}return n}var Nn=e=>Vt(e)&&!Object.keys(e).length,A0=e=>e.type==="file",Er=e=>typeof e=="function",$f=e=>{if(!v0)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},VO=e=>e.type==="select-multiple",w0=e=>e.type==="radio",fq=e=>w0(e)||uu(e),iy=e=>$f(e)&&e.isConnected;function hq(e,t){const n=t.slice(0,-1).length;let r=0;for(;r<n;)e=Dt(e)?r++:e[t[r++]];return e}function pq(e){for(const t in e)if(e.hasOwnProperty(t)&&!Dt(e[t]))return!1;return!0}function Pt(e,t){const n=Array.isArray(t)?t:Ch(t)?[t]:_0(t),r=n.length===1?e:hq(e,n),a=n.length-1,s=n[a];return r&&delete r[s],a!==0&&(Vt(r)&&Nn(r)||Array.isArray(r)&&pq(r))&&Pt(e,n.slice(0,-1)),e}var mq=e=>{for(const t in e)if(Er(e[t]))return!0;return!1};function UO(e){return Array.isArray(e)||Vt(e)&&!mq(e)}function yv(e,t={}){for(const n in e)UO(e[n])?(t[n]=Array.isArray(e[n])?[]:{},yv(e[n],t[n])):_n(e[n])||(t[n]=!0);return t}function ds(e,t,n){n||(n=yv(t));for(const r in e)UO(e[r])?Dt(t)||gv(n[r])?n[r]=yv(e[r],Array.isArray(e[r])?[]:{}):ds(e[r],_n(t)?{}:t[r],n[r]):n[r]=!pi(e[r],t[r]);return n}const $T={value:!1,isValid:!1},HT={value:!0,isValid:!0};var FO=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&&!Dt(e[0].attributes.value)?Dt(e[0].value)||e[0].value===""?HT:{value:e[0].value,isValid:!0}:HT:$T}return $T},$O=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>Dt(e)?e:t?e===""?NaN:e&&+e:n&&Gn(e)?new Date(e):r?r(e):e;const GT={isValid:!1,value:null};var HO=e=>Array.isArray(e)?e.reduce((t,n)=>n&&n.checked&&!n.disabled?{isValid:!0,value:n.value}:t,GT):GT;function KT(e){const t=e.ref;return A0(t)?t.files:w0(t)?HO(e.refs).value:VO(t)?[...t.selectedOptions].map(({value:n})=>n):uu(t)?FO(e.refs).value:$O(Dt(t.value)?e.ref.value:t.value,e)}var gq=(e,t,n,r)=>{const a={};for(const s of e){const l=Ee(t,s);l&&ct(a,s,l._f)}return{criteriaMode:n,names:[...e],fields:a,shouldUseNativeValidation:r}},Hf=e=>e instanceof RegExp,sc=e=>Dt(e)?e:Hf(e)?e.source:Vt(e)?Hf(e.value)?e.value.source:e.value:e,qT=e=>({isOnSubmit:!e||e===_r.onSubmit,isOnBlur:e===_r.onBlur,isOnChange:e===_r.onChange,isOnAll:e===_r.all,isOnTouch:e===_r.onTouched});const WT="AsyncFunction";var yq=e=>!!e&&!!e.validate&&!!(Er(e.validate)&&e.validate.constructor.name===WT||Vt(e.validate)&&Object.values(e.validate).find(t=>t.constructor.name===WT)),vq=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate),ZT=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(r=>e.startsWith(r)&&/^\.\w+/.test(e.slice(r.length))));const Sc=(e,t,n,r)=>{for(const a of n||Object.keys(e)){const s=Ee(e,a);if(s){const{_f:l,...u}=s;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(Sc(u,t))break}else if(Vt(u)&&Sc(u,t))break}}};function YT(e,t,n){const r=Ee(e,n);if(r||Ch(n))return{error:r,name:n};const a=n.split(".");for(;a.length;){const s=a.join("."),l=Ee(t,s),u=Ee(e,s);if(l&&!Array.isArray(l)&&n!==s)return{name:n};if(u&&u.type)return{name:s,error:u};if(u&&u.root&&u.root.type)return{name:`${s}.root`,error:u.root};a.pop()}return{name:n}}var bq=(e,t,n,r)=>{n(e);const{name:a,...s}=e;return Nn(s)||Object.keys(s).length>=Object.keys(t).length||Object.keys(s).find(l=>t[l]===(!r||_r.all))},_q=(e,t,n)=>!e||!t||e===t||Ec(e).some(r=>r&&(n?r===t:r.startsWith(t)||t.startsWith(r))),Eq=(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,Sq=(e,t)=>!b0(Ee(e,t)).length&&Pt(e,t),xq=(e,t,n)=>{const r=Ec(Ee(e,n));return ct(r,"root",t[n]),ct(e,n,r),e};function XT(e,t,n="validate"){if(Gn(e)||Array.isArray(e)&&e.every(Gn)||Un(e)&&!e)return{type:n,message:Gn(e)?e:"",ref:t}}var ls=e=>Vt(e)&&!Hf(e)?e:{value:e,message:""},QT=async(e,t,n,r,a,s)=>{const{ref:l,refs:u,required:d,maxLength:f,minLength:p,min:g,max:y,pattern:_,validate:S,name:A,valueAsNumber:C,mount:w}=e._f,x=Ee(n,A);if(!w||t.has(A))return{};const T=u?u[0]:l,N=te=>{a&&T.reportValidity&&(T.setCustomValidity(Un(te)?"":te||""),T.reportValidity())},R={},I=w0(l),D=uu(l),L=I||D,H=(C||A0(l))&&Dt(l.value)&&Dt(x)||$f(l)&&l.value===""||x===""||Array.isArray(x)&&!x.length,Z=x0.bind(null,A,r,R),q=(te,ce,W,ae=fi.maxLength,M=fi.minLength)=>{const X=te?ce:W;R[A]={type:te?ae:M,message:X,ref:l,...Z(te?ae:M,X)}};if(s?!Array.isArray(x)||!x.length:d&&(!L&&(H||_n(x))||Un(x)&&!x||D&&!FO(u).isValid||I&&!HO(u).isValid)){const{value:te,message:ce}=Gn(d)?{value:!!d,message:d}:ls(d);if(te&&(R[A]={type:fi.required,message:ce,ref:T,...Z(fi.required,ce)},!r))return N(ce),R}if(!H&&(!_n(g)||!_n(y))){let te,ce;const W=ls(y),ae=ls(g);if(!_n(x)&&!isNaN(x)){const M=l.valueAsNumber||x&&+x;_n(W.value)||(te=M>W.value),_n(ae.value)||(ce=M<ae.value)}else{const M=l.valueAsDate||new Date(x),X=P=>new Date(new Date().toDateString()+" "+P),G=l.type=="time",ge=l.type=="week";Gn(W.value)&&x&&(te=G?X(x)>X(W.value):ge?x>W.value:M>new Date(W.value)),Gn(ae.value)&&x&&(ce=G?X(x)<X(ae.value):ge?x<ae.value:M<new Date(ae.value))}if((te||ce)&&(q(!!te,W.message,ae.message,fi.max,fi.min),!r))return N(R[A].message),R}if((f||p)&&!H&&(Gn(x)||s&&Array.isArray(x))){const te=ls(f),ce=ls(p),W=!_n(te.value)&&x.length>+te.value,ae=!_n(ce.value)&&x.length<+ce.value;if((W||ae)&&(q(W,te.message,ce.message),!r))return N(R[A].message),R}if(_&&!H&&Gn(x)){const{value:te,message:ce}=ls(_);if(Hf(te)&&!x.match(te)&&(R[A]={type:fi.pattern,message:ce,ref:l,...Z(fi.pattern,ce)},!r))return N(ce),R}if(S){if(Er(S)){const te=await S(x,n),ce=XT(te,T);if(ce&&(R[A]={...ce,...Z(fi.validate,ce.message)},!r))return N(ce.message),R}else if(Vt(S)){let te={};for(const ce in S){if(!Nn(te)&&!r)break;const W=XT(await S[ce](x,n),T,ce);W&&(te={...W,...Z(ce,W.message)},N(W.message),r&&(R[A]=te))}if(!Nn(te)&&(R[A]={ref:T,...te},!r))return R}}return N(!0),R};const Aq={mode:_r.onSubmit,reValidateMode:_r.onChange,shouldFocusError:!0};function wq(e={}){let t={...Aq,...e},n={submitCount:0,isDirty:!1,isReady:!1,isLoading:Er(t.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:t.errors||{},disabled:t.disabled||!1},r={},a=Vt(t.defaultValues)||Vt(t.values)?Gt(t.defaultValues||t.values)||{}:{},s=t.shouldUnregister?{}:Gt(a),l={action:!1,mount:!1,watch:!1},u={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set},d,f=0;const p={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1};let g={...p};const y={array:FT(),state:FT()},_=t.criteriaMode===_r.all,S=V=>ee=>{clearTimeout(f),f=setTimeout(V,ee)},A=async V=>{if(!t.disabled&&(p.isValid||g.isValid||V)){const ee=t.resolver?Nn((await D()).errors):await H(r,!0);ee!==n.isValid&&y.state.next({isValid:ee})}},C=(V,ee)=>{!t.disabled&&(p.isValidating||p.validatingFields||g.isValidating||g.validatingFields)&&((V||Array.from(u.mount)).forEach(oe=>{oe&&(ee?ct(n.validatingFields,oe,ee):Pt(n.validatingFields,oe))}),y.state.next({validatingFields:n.validatingFields,isValidating:!Nn(n.validatingFields)}))},w=(V,ee=[],oe,Se,be=!0,ve=!0)=>{if(Se&&oe&&!t.disabled){if(l.action=!0,ve&&Array.isArray(Ee(r,V))){const Ce=oe(Ee(r,V),Se.argA,Se.argB);be&&ct(r,V,Ce)}if(ve&&Array.isArray(Ee(n.errors,V))){const Ce=oe(Ee(n.errors,V),Se.argA,Se.argB);be&&ct(n.errors,V,Ce),Sq(n.errors,V)}if((p.touchedFields||g.touchedFields)&&ve&&Array.isArray(Ee(n.touchedFields,V))){const Ce=oe(Ee(n.touchedFields,V),Se.argA,Se.argB);be&&ct(n.touchedFields,V,Ce)}(p.dirtyFields||g.dirtyFields)&&(n.dirtyFields=ds(a,s)),y.state.next({name:V,isDirty:q(V,ee),dirtyFields:n.dirtyFields,errors:n.errors,isValid:n.isValid})}else ct(s,V,ee)},x=(V,ee)=>{ct(n.errors,V,ee),y.state.next({errors:n.errors})},T=V=>{n.errors=V,y.state.next({errors:n.errors,isValid:!1})},N=(V,ee,oe,Se)=>{const be=Ee(r,V);if(be){const ve=Ee(s,V,Dt(oe)?Ee(a,V):oe);Dt(ve)||Se&&Se.defaultChecked||ee?ct(s,V,ee?ve:KT(be._f)):W(V,ve),l.mount&&A()}},R=(V,ee,oe,Se,be)=>{let ve=!1,Ce=!1;const Ve={name:V};if(!t.disabled){if(!oe||Se){(p.isDirty||g.isDirty)&&(Ce=n.isDirty,n.isDirty=Ve.isDirty=q(),ve=Ce!==Ve.isDirty);const Xe=pi(Ee(a,V),ee);Ce=!!Ee(n.dirtyFields,V),Xe?Pt(n.dirtyFields,V):ct(n.dirtyFields,V,!0),Ve.dirtyFields=n.dirtyFields,ve=ve||(p.dirtyFields||g.dirtyFields)&&Ce!==!Xe}if(oe){const Xe=Ee(n.touchedFields,V);Xe||(ct(n.touchedFields,V,oe),Ve.touchedFields=n.touchedFields,ve=ve||(p.touchedFields||g.touchedFields)&&Xe!==oe)}ve&&be&&y.state.next(Ve)}return ve?Ve:{}},I=(V,ee,oe,Se)=>{const be=Ee(n.errors,V),ve=(p.isValid||g.isValid)&&Un(ee)&&n.isValid!==ee;if(t.delayError&&oe?(d=S(()=>x(V,oe)),d(t.delayError)):(clearTimeout(f),d=null,oe?ct(n.errors,V,oe):Pt(n.errors,V)),(oe?!pi(be,oe):be)||!Nn(Se)||ve){const Ce={...Se,...ve&&Un(ee)?{isValid:ee}:{},errors:n.errors,name:V};n={...n,...Ce},y.state.next(Ce)}},D=async V=>{C(V,!0);const ee=await t.resolver(s,t.context,gq(V||u.mount,r,t.criteriaMode,t.shouldUseNativeValidation));return C(V),ee},L=async V=>{const{errors:ee}=await D(V);if(V)for(const oe of V){const Se=Ee(ee,oe);Se?ct(n.errors,oe,Se):Pt(n.errors,oe)}else n.errors=ee;return ee},H=async(V,ee,oe={valid:!0})=>{for(const Se in V){const be=V[Se];if(be){const{_f:ve,...Ce}=be;if(ve){const Ve=u.array.has(ve.name),Xe=be._f&&yq(be._f);Xe&&p.validatingFields&&C([ve.name],!0);const pt=await QT(be,u.disabled,s,_,t.shouldUseNativeValidation&&!ee,Ve);if(Xe&&p.validatingFields&&C([ve.name]),pt[ve.name]&&(oe.valid=!1,ee))break;!ee&&(Ee(pt,ve.name)?Ve?xq(n.errors,pt,ve.name):ct(n.errors,ve.name,pt[ve.name]):Pt(n.errors,ve.name))}!Nn(Ce)&&await H(Ce,ee,oe)}}return oe.valid},Z=()=>{for(const V of u.unMount){const ee=Ee(r,V);ee&&(ee._f.refs?ee._f.refs.every(oe=>!iy(oe)):!iy(ee._f.ref))&&fe(V)}u.unMount=new Set},q=(V,ee)=>!t.disabled&&(V&&ee&&ct(s,V,ee),!pi(P(),a)),te=(V,ee,oe)=>zO(V,u,{...l.mount?s:Dt(ee)?a:Gn(V)?{[V]:ee}:ee},oe,ee),ce=V=>b0(Ee(l.mount?s:a,V,t.shouldUnregister?Ee(a,V,[]):[])),W=(V,ee,oe={})=>{const Se=Ee(r,V);let be=ee;if(Se){const ve=Se._f;ve&&(!ve.disabled&&ct(s,V,$O(ee,ve)),be=$f(ve.ref)&&_n(ee)?"":ee,VO(ve.ref)?[...ve.ref.options].forEach(Ce=>Ce.selected=be.includes(Ce.value)):ve.refs?uu(ve.ref)?ve.refs.forEach(Ce=>{(!Ce.defaultChecked||!Ce.disabled)&&(Array.isArray(be)?Ce.checked=!!be.find(Ve=>Ve===Ce.value):Ce.checked=be===Ce.value||!!be)}):ve.refs.forEach(Ce=>Ce.checked=Ce.value===be):A0(ve.ref)?ve.ref.value="":(ve.ref.value=be,ve.ref.type||y.state.next({name:V,values:Gt(s)})))}(oe.shouldDirty||oe.shouldTouch)&&R(V,be,oe.shouldTouch,oe.shouldDirty,!0),oe.shouldValidate&&ge(V)},ae=(V,ee,oe)=>{for(const Se in ee){if(!ee.hasOwnProperty(Se))return;const be=ee[Se],ve=V+"."+Se,Ce=Ee(r,ve);(u.array.has(V)||Vt(be)||Ce&&!Ce._f)&&!Qa(be)?ae(ve,be,oe):W(ve,be,oe)}},M=(V,ee,oe={})=>{const Se=Ee(r,V),be=u.array.has(V),ve=Gt(ee);ct(s,V,ve),be?(y.array.next({name:V,values:Gt(s)}),(p.isDirty||p.dirtyFields||g.isDirty||g.dirtyFields)&&oe.shouldDirty&&y.state.next({name:V,dirtyFields:ds(a,s),isDirty:q(V,ve)})):Se&&!Se._f&&!_n(ve)?ae(V,ve,oe):W(V,ve,oe),ZT(V,u)&&y.state.next({...n,name:V}),y.state.next({name:l.mount?V:void 0,values:Gt(s)})},X=async V=>{l.mount=!0;const ee=V.target;let oe=ee.name,Se=!0;const be=Ee(r,oe),ve=Xe=>{Se=Number.isNaN(Xe)||Qa(Xe)&&isNaN(Xe.getTime())||pi(Xe,Ee(s,oe,Xe))},Ce=qT(t.mode),Ve=qT(t.reValidateMode);if(be){let Xe,pt;const vo=ee.type?KT(be._f):LO(V),Cr=V.type===Ff.BLUR||V.type===Ff.FOCUS_OUT,Xh=!vq(be._f)&&!t.resolver&&!Ee(n.errors,oe)&&!be._f.deps||Eq(Cr,Ee(n.touchedFields,oe),n.isSubmitted,Ve,Ce),wi=ZT(oe,u,Cr);ct(s,oe,vo),Cr?(!ee||!ee.readOnly)&&(be._f.onBlur&&be._f.onBlur(V),d&&d(0)):be._f.onChange&&be._f.onChange(V);const Ti=R(oe,vo,Cr),Zr=!Nn(Ti)||wi;if(!Cr&&y.state.next({name:oe,type:V.type,values:Gt(s)}),Xh)return(p.isValid||g.isValid)&&(t.mode==="onBlur"?Cr&&A():Cr||A()),Zr&&y.state.next({name:oe,...wi?{}:Ti});if(!Cr&&wi&&y.state.next({...n}),t.resolver){const{errors:xa}=await D([oe]);if(ve(vo),Se){const Aa=YT(n.errors,r,oe),_u=YT(xa,r,Aa.name||oe);Xe=_u.error,oe=_u.name,pt=Nn(xa)}}else C([oe],!0),Xe=(await QT(be,u.disabled,s,_,t.shouldUseNativeValidation))[oe],C([oe]),ve(vo),Se&&(Xe?pt=!1:(p.isValid||g.isValid)&&(pt=await H(r,!0)));Se&&(be._f.deps&&(!Array.isArray(be._f.deps)||be._f.deps.length>0)&&ge(be._f.deps),I(oe,pt,Xe,Ti))}},G=(V,ee)=>{if(Ee(n.errors,ee)&&V.focus)return V.focus(),1},ge=async(V,ee={})=>{let oe,Se;const be=Ec(V);if(t.resolver){const ve=await L(Dt(V)?V:be);oe=Nn(ve),Se=V?!be.some(Ce=>Ee(ve,Ce)):oe}else V?(Se=(await Promise.all(be.map(async ve=>{const Ce=Ee(r,ve);return await H(Ce&&Ce._f?{[ve]:Ce}:Ce)}))).every(Boolean),!(!Se&&!n.isValid)&&A()):Se=oe=await H(r);return y.state.next({...!Gn(V)||(p.isValid||g.isValid)&&oe!==n.isValid?{}:{name:V},...t.resolver||!V?{isValid:oe}:{},errors:n.errors}),ee.shouldFocus&&!Se&&Sc(r,G,V?be:u.mount),Se},P=(V,ee)=>{let oe={...l.mount?s:a};return ee&&(oe=BO(ee.dirtyFields?n.dirtyFields:n.touchedFields,oe)),Dt(V)?oe:Gn(V)?Ee(oe,V):V.map(Se=>Ee(oe,Se))},ie=(V,ee)=>({invalid:!!Ee((ee||n).errors,V),isDirty:!!Ee((ee||n).dirtyFields,V),error:Ee((ee||n).errors,V),isValidating:!!Ee(n.validatingFields,V),isTouched:!!Ee((ee||n).touchedFields,V)}),F=V=>{V&&Ec(V).forEach(ee=>Pt(n.errors,ee)),y.state.next({errors:V?n.errors:{}})},J=(V,ee,oe)=>{const Se=(Ee(r,V,{_f:{}})._f||{}).ref,be=Ee(n.errors,V)||{},{ref:ve,message:Ce,type:Ve,...Xe}=be;ct(n.errors,V,{...Xe,...ee,ref:Se}),y.state.next({name:V,errors:n.errors,isValid:!1}),oe&&oe.shouldFocus&&Se&&Se.focus&&Se.focus()},se=(V,ee)=>Er(V)?y.state.subscribe({next:oe=>"values"in oe&&V(te(void 0,ee),oe)}):te(V,ee,!0),he=V=>y.state.subscribe({next:ee=>{_q(V.name,ee.name,V.exact)&&bq(ee,V.formState||p,un,V.reRenderRoot)&&V.callback({values:{...s},...n,...ee,defaultValues:a})}}).unsubscribe,ye=V=>(l.mount=!0,g={...g,...V.formState},he({...V,formState:g})),fe=(V,ee={})=>{for(const oe of V?Ec(V):u.mount)u.mount.delete(oe),u.array.delete(oe),ee.keepValue||(Pt(r,oe),Pt(s,oe)),!ee.keepError&&Pt(n.errors,oe),!ee.keepDirty&&Pt(n.dirtyFields,oe),!ee.keepTouched&&Pt(n.touchedFields,oe),!ee.keepIsValidating&&Pt(n.validatingFields,oe),!t.shouldUnregister&&!ee.keepDefaultValue&&Pt(a,oe);y.state.next({values:Gt(s)}),y.state.next({...n,...ee.keepDirty?{isDirty:q()}:{}}),!ee.keepIsValid&&A()},xe=({disabled:V,name:ee})=>{(Un(V)&&l.mount||V||u.disabled.has(ee))&&(V?u.disabled.add(ee):u.disabled.delete(ee))},je=(V,ee={})=>{let oe=Ee(r,V);const Se=Un(ee.disabled)||Un(t.disabled);return ct(r,V,{...oe||{},_f:{...oe&&oe._f?oe._f:{ref:{name:V}},name:V,mount:!0,...ee}}),u.mount.add(V),oe?xe({disabled:Un(ee.disabled)?ee.disabled:t.disabled,name:V}):N(V,!0,ee.value),{...Se?{disabled:ee.disabled||t.disabled}:{},...t.progressive?{required:!!ee.required,min:sc(ee.min),max:sc(ee.max),minLength:sc(ee.minLength),maxLength:sc(ee.maxLength),pattern:sc(ee.pattern)}:{},name:V,onChange:X,onBlur:X,ref:be=>{if(be){je(V,ee),oe=Ee(r,V);const ve=Dt(be.value)&&be.querySelectorAll&&be.querySelectorAll("input,select,textarea")[0]||be,Ce=fq(ve),Ve=oe._f.refs||[];if(Ce?Ve.find(Xe=>Xe===ve):ve===oe._f.ref)return;ct(r,V,{_f:{...oe._f,...Ce?{refs:[...Ve.filter(iy),ve,...Array.isArray(Ee(a,V))?[{}]:[]],ref:{type:ve.type,name:V}}:{ref:ve}}}),N(V,!1,void 0,ve)}else oe=Ee(r,V,{}),oe._f&&(oe._f.mount=!1),(t.shouldUnregister||ee.shouldUnregister)&&!(PO(u.array,V)&&l.action)&&u.unMount.add(V)}}},Be=()=>t.shouldFocusError&&Sc(r,G,u.mount),Ye=V=>{Un(V)&&(y.state.next({disabled:V}),Sc(r,(ee,oe)=>{const Se=Ee(r,oe);Se&&(ee.disabled=Se._f.disabled||V,Array.isArray(Se._f.refs)&&Se._f.refs.forEach(be=>{be.disabled=Se._f.disabled||V}))},0,!1))},et=(V,ee)=>async oe=>{let Se;oe&&(oe.preventDefault&&oe.preventDefault(),oe.persist&&oe.persist());let be=Gt(s);if(y.state.next({isSubmitting:!0}),t.resolver){const{errors:ve,values:Ce}=await D();n.errors=ve,be=Gt(Ce)}else await H(r);if(u.disabled.size)for(const ve of u.disabled)Pt(be,ve);if(Pt(n.errors,"root"),Nn(n.errors)){y.state.next({errors:{}});try{await V(be,oe)}catch(ve){Se=ve}}else ee&&await ee({...n.errors},oe),Be(),setTimeout(Be);if(y.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:Nn(n.errors)&&!Se,submitCount:n.submitCount+1,errors:n.errors}),Se)throw Se},Zt=(V,ee={})=>{Ee(r,V)&&(Dt(ee.defaultValue)?M(V,Gt(Ee(a,V))):(M(V,ee.defaultValue),ct(a,V,Gt(ee.defaultValue))),ee.keepTouched||Pt(n.touchedFields,V),ee.keepDirty||(Pt(n.dirtyFields,V),n.isDirty=ee.defaultValue?q(V,Gt(Ee(a,V))):q()),ee.keepError||(Pt(n.errors,V),p.isValid&&A()),y.state.next({...n}))},An=(V,ee={})=>{const oe=V?Gt(V):a,Se=Gt(oe),be=Nn(V),ve=be?a:Se;if(ee.keepDefaultValues||(a=oe),!ee.keepValues){if(ee.keepDirtyValues){const Ce=new Set([...u.mount,...Object.keys(ds(a,s))]);for(const Ve of Array.from(Ce))Ee(n.dirtyFields,Ve)?ct(ve,Ve,Ee(s,Ve)):M(Ve,Ee(ve,Ve))}else{if(v0&&Dt(V))for(const Ce of u.mount){const Ve=Ee(r,Ce);if(Ve&&Ve._f){const Xe=Array.isArray(Ve._f.refs)?Ve._f.refs[0]:Ve._f.ref;if($f(Xe)){const pt=Xe.closest("form");if(pt){pt.reset();break}}}}if(ee.keepFieldsRef)for(const Ce of u.mount)M(Ce,Ee(ve,Ce));else r={}}s=t.shouldUnregister?ee.keepDefaultValues?Gt(a):{}:Gt(ve),y.array.next({values:{...ve}}),y.state.next({values:{...ve}})}u={mount:ee.keepDirtyValues?u.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},l.mount=!p.isValid||!!ee.keepIsValid||!!ee.keepDirtyValues,l.watch=!!t.shouldUnregister,y.state.next({submitCount:ee.keepSubmitCount?n.submitCount:0,isDirty:be?!1:ee.keepDirty?n.isDirty:!!(ee.keepDefaultValues&&!pi(V,a)),isSubmitted:ee.keepIsSubmitted?n.isSubmitted:!1,dirtyFields:be?{}:ee.keepDirtyValues?ee.keepDefaultValues&&s?ds(a,s):n.dirtyFields:ee.keepDefaultValues&&V?ds(a,V):ee.keepDirty?n.dirtyFields:{},touchedFields:ee.keepTouched?n.touchedFields:{},errors:ee.keepErrors?n.errors:{},isSubmitSuccessful:ee.keepIsSubmitSuccessful?n.isSubmitSuccessful:!1,isSubmitting:!1,defaultValues:a})},Ai=(V,ee)=>An(Er(V)?V(s):V,ee),Sa=(V,ee={})=>{const oe=Ee(r,V),Se=oe&&oe._f;if(Se){const be=Se.refs?Se.refs[0]:Se.ref;be.focus&&(be.focus(),ee.shouldSelect&&Er(be.select)&&be.select())}},un=V=>{n={...n,...V}},Qs={control:{register:je,unregister:fe,getFieldState:ie,handleSubmit:et,setError:J,_subscribe:he,_runSchema:D,_focusError:Be,_getWatch:te,_getDirty:q,_setValid:A,_setFieldArray:w,_setDisabledField:xe,_setErrors:T,_getFieldArray:ce,_reset:An,_resetDefaultValues:()=>Er(t.defaultValues)&&t.defaultValues().then(V=>{Ai(V,t.resetOptions),y.state.next({isLoading:!1})}),_removeUnmounted:Z,_disableForm:Ye,_subjects:y,_proxyFormState:p,get _fields(){return r},get _formValues(){return s},get _state(){return l},set _state(V){l=V},get _defaultValues(){return a},get _names(){return u},set _names(V){u=V},get _formState(){return n},get _options(){return t},set _options(V){t={...t,...V}}},subscribe:ye,trigger:ge,register:je,handleSubmit:et,watch:se,setValue:M,getValues:P,reset:Ai,resetField:Zt,clearErrors:F,unregister:fe,setError:J,setFocus:Sa,getFieldState:ie};return{...Qs,formControl:Qs}}function Tq(e={}){const t=Oe.useRef(void 0),n=Oe.useRef(void 0),[r,a]=Oe.useState({isDirty:!1,isValidating:!1,isLoading:Er(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,isReady:!1,defaultValues:Er(e.defaultValues)?void 0:e.defaultValues});if(!t.current)if(e.formControl)t.current={...e.formControl,formState:r},e.defaultValues&&!Er(e.defaultValues)&&e.formControl.reset(e.defaultValues,e.resetOptions);else{const{formControl:l,...u}=wq(e);t.current={...u,formState:r}}const s=t.current.control;return s._options=e,S0(()=>{const l=s._subscribe({formState:s._proxyFormState,callback:()=>a({...s._formState}),reRenderRoot:!0});return a(u=>({...u,isReady:!0})),s._formState.isReady=!0,l},[s]),Oe.useEffect(()=>s._disableForm(e.disabled),[s,e.disabled]),Oe.useEffect(()=>{e.mode&&(s._options.mode=e.mode),e.reValidateMode&&(s._options.reValidateMode=e.reValidateMode)},[s,e.mode,e.reValidateMode]),Oe.useEffect(()=>{e.errors&&(s._setErrors(e.errors),s._focusError())},[s,e.errors]),Oe.useEffect(()=>{e.shouldUnregister&&s._subjects.state.next({values:s._getWatch()})},[s,e.shouldUnregister]),Oe.useEffect(()=>{if(s._proxyFormState.isDirty){const l=s._getDirty();l!==r.isDirty&&s._subjects.state.next({isDirty:l})}},[s,r.isDirty]),Oe.useEffect(()=>{e.values&&!pi(e.values,n.current)?(s._reset(e.values,{keepFieldsRef:!0,...s._options.resetOptions}),n.current=e.values,a(l=>({...l}))):s._resetDefaultValues()},[s,e.values]),Oe.useEffect(()=>{s._state.mount||(s._setValid(),s._state.mount=!0),s._state.watch&&(s._state.watch=!1,s._subjects.state.next({...s._formState})),s._removeUnmounted()}),t.current.formState=MO(r,s),t.current}const JT=(e,t,n)=>{if(e&&"reportValidity"in e){const r=Ee(n,t);e.setCustomValidity(r&&r.message||""),e.reportValidity()}},vv=(e,t)=>{for(const n in t.fields){const r=t.fields[n];r&&r.ref&&"reportValidity"in r.ref?JT(r.ref,n,e):r&&r.refs&&r.refs.forEach(a=>JT(a,n,e))}},eC=(e,t)=>{t.shouldUseNativeValidation&&vv(e,t);const n={};for(const r in e){const a=Ee(t.fields,r),s=Object.assign(e[r]||{},{ref:a&&a.ref});if(Cq(t.names||Object.keys(e),r)){const l=Object.assign({},Ee(n,r));ct(l,"root",s),ct(n,r,l)}else ct(n,r,s)}return n},Cq=(e,t)=>{const n=tC(t);return e.some(r=>tC(r).match(`^${n}\\.\\d+`))};function tC(e){return e.replace(/\]|\[/g,"")}const Rq=e=>{const t=E.useId(),n=E.useMemo(()=>({id:t}),[t]);return v.jsx(GO,{value:n,children:v.jsx("div",{className:"flex flex-col gap-2 p-2",...e})})},GO=E.createContext({}),KO=E.createContext({}),kq=({...e})=>{const t=E.useMemo(()=>({name:e.name}),[e.name]);return v.jsx(KO,{value:t,children:v.jsx(dq,{...e})})},ma=()=>{const e=E.useContext(KO),t=E.useContext(GO),{getFieldState:n,formState:r}=pa(),a=n(e.name,r);if(!e)throw new Error("useFormField should be used within <FormField>");const{id:s}=t;return{id:s,name:e.name,formItemId:`${s}-form-item`,formDescriptionId:`${s}-form-item-description`,formMessageId:`${s}-form-item-message`,...a}},qO=fr("",{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"}});var la=(e=>(e.DEFAULT="default",e.INVISIBLE="invisible",e))(la||{});const Gs=({validationStyleEnabled:e=!1,variant:t,size:n,className:r,...a})=>v.jsx("input",{className:qO({variant:t,size:n,validationStyleEnabled:e?"enabled":"disabled",className:r}),...a}),Nq=fr("",{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"}}),nC=({validationStyleEnabled:e=!1,label:t,size:n,color:r,name:a,variant:s,className:l,...u})=>v.jsx("input",{type:"checkbox",className:Nq({variant:s,size:n,color:r,validationStyleEnabled:e?"enabled":"disabled",className:l}),...u}),Oq=e=>{const{label:t,name:n,id:r}=e;return t?v.jsxs("label",{htmlFor:r??n,className:"flex items-center gap-x-4 font-medium text-sm cursor-pointer",children:[v.jsx(nC,{id:r??n,...e}),t]}):v.jsx(nC,{id:r??n,...e})},Iq=e=>{const[t,n]=E.useState(!1),r=s=>{s.preventDefault(),s.stopPropagation(),n(l=>!l)},a=t?Z2:q2;return v.jsxs("div",{className:"relative",children:[v.jsx(Gs,{...e,"aria-label":"password",type:t?"text":"password"}),v.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:v.jsx(a,{className:"text-neutral mr-2 inline-block",size:20})})]})},WO=({className:e,variant:t,validationStyleEnabled:n=!1,...r})=>v.jsx("textarea",{className:_e("resize-none",qO({variant:t,validationStyleEnabled:n?"enabled":"disabled",className:e})),...r}),ZO=({value:e="",onCancel:t,onSave:n,onClick:r,children:a,isDisabled:s,...l})=>{const[u,d]=E.useState(!1),f=E.useRef(null),p=S=>{S.stopPropagation(),d(!1),n()},g=S=>{S.stopPropagation(),d(!1),t()},y=!e||e===""?"-":e,_=E.useCallback(S=>{const A=window.getSelection();A&&A.toString().trim()!==""||f.current&&!f.current.contains(S.target)&&(d(!1),n())},[n]);return E.useEffect(()=>(u?document.addEventListener("click",_):document.removeEventListener("click",_),()=>document.removeEventListener("click",_)),[_,u]),v.jsxs("span",{className:"group/editable-field flex gap-2",role:"button",tabIndex:0,onClick:S=>{d(!0),r?.(S)},ref:f,...l,children:[v.jsxs("div",{className:_e("flex flex-1 gap-2",u?"display":"hidden"),children:[a,v.jsx(ot,{label:"Save",variant:at.HOVERABLE,size:qn.ICON_SM,color:it.TEXT,Icon:zs,onClick:p,disabled:s,className:"!text-current"}),v.jsx(ot,{label:"Cancel",color:it.TEXT,variant:at.HOVERABLE,className:"!text-current",size:qn.ICON_SM,Icon:po,onClick:g,disabled:s})]},String(u)),v.jsxs("div",{className:_e("flex flex-1 gap-2",u?"hidden":"display"),children:[v.jsx("span",{className:"ml-2 flex w-full whitespace-pre-wrap p-1 text-sm leading-6",children:y}),v.jsx(ot,{label:"Edit",Icon:N1,color:it.TEXT,variant:at.HOVERABLE,size:qn.ICON_SM,className:"invisible !text-current group-hover/editable-field:visible",disabled:s,onClick:S=>{S.stopPropagation(),d(!0)}})]})]})},YO=({onSave:e,onCancel:t,ref:n,...r})=>{const a=E.useRef(null),s=()=>{e?.(a.current?.value??"")},l=()=>{a.current&&(a.current.value=a.current.defaultValue??""),t?.()};E.useImperativeHandle(n,()=>a.current);const u=E.useMemo(()=>r.value??a.current?.value??r.defaultValue,[r.value,r.defaultValue,a.current?.value]);return v.jsx(ZO,{value:u,onCancel:l,onSave:s,children:v.jsx(Gs,{ref:a,...r})})},rC=24,iC=12,T0=({className:e,autoSize:t=!0,onChange:n,maxRows:r=999,ref:a,...s})=>{const l=E.useRef(null);E.useImperativeHandle(a,()=>l.current);const u=()=>{const p=l.current;if(!p||!t)return;const g=p.style;g.height="auto";const y=p.scrollHeight,_=rC*r+iC,S=rC+iC;g.height=Math.max(Math.min(y,_),S)+"px"};E.useEffect(()=>{u()},[s.value,s.defaultValue,u]);const d=p=>{n?.(p),u()},f=p=>{l.current=p,p&&u()};return v.jsx(WO,{ref:f,onChange:d,className:_e("overflow-y-auto",t?"resize-none":"",e),...s})},XO=({onSave:e,onCancel:t,ref:n,...r})=>{const a=E.useRef(null);E.useImperativeHandle(n,()=>a.current);const s=()=>{e?.(a.current?.value??"")},l=()=>{a.current&&(a.current.value=a.current.defaultValue??""),t?.()},u=r.value??a.current?.value??r.defaultValue??"";return v.jsx(ZO,{value:u,onCancel:l,onSave:s,onClick:d=>{d.preventDefault(),d.stopPropagation()},children:v.jsx(T0,{className:"leading-6",ref:a,onClick:d=>{d.preventDefault(),d.stopPropagation()},...r})})},QO=E.createContext(null),Rh=()=>{const e=E.useContext(QO);if(!e)throw new Error("useMultiSelect must be used within MultiSelectProvider");return e},Dq=({values:e,defaultValues:t,onValueChange:n,loop:r=!1,className:a,children:s,dir:l,...u})=>{const[d,f]=E.useState(t??[]),[p,g]=E.useState(""),[y,_]=E.useState(!1),[S,A]=E.useState(-1),C=E.useRef(null),[w,x]=E.useState(!1),[T,N]=E.useState("");E.useEffect(()=>{e&&f(e)},[e]);const R=E.useCallback(H=>{if(d.includes(H)){const Z=d.filter(q=>q!==H);f(Z),n?.(Z)}else{const Z=[...d,H];f(Z),n?.(Z)}},[d]),I=E.useCallback(H=>{H.preventDefault();const Z=H.currentTarget,q=Z.value.substring(Z.selectionStart??0,Z.selectionEnd??0);N(q),x(q===p)},[p]),D=E.useCallback(H=>{H.stopPropagation();const Z=C.current;if(!Z)return;const q=()=>{const W=S+1;A(W>d.length-1?r?0:-1:W)},te=()=>{const W=S-1;A(W<0?d.length-1:W)},ce=()=>{const W=S-1<=0?d.length-1===0?-1:0:S-1;A(W)};switch(H.key){case"ArrowLeft":l==="rtl"?d.length>0&&(S!==-1||r)&&q():d.length>0&&Z.selectionStart===0&&te();break;case"ArrowRight":l==="rtl"?d.length>0&&Z.selectionStart===0&&te():d.length>0&&(S!==-1||r)&&q();break;case"Backspace":case"Delete":d.length>0&&(S!==-1&&S<d.length?(R(d[S]),ce()):(Z.selectionStart===0&&T===p||w)&&R(d[d.length-1]));break;case"Enter":_(!0);break;case"Escape":S!==-1?A(-1):y&&_(!1);break}},[d,p,S,r]),L=E.useMemo(()=>({value:d,onValueChange:R,open:y,setOpen:_,inputValue:p,setInputValue:g,activeIndex:S,setActiveIndex:A,ref:C,handleSelect:I}),[d,R,y,_,p,g,S,A,C,I]);return v.jsx(QO,{value:L,children:v.jsx(Rk,{onKeyDown:D,className:_e("flex w-full flex-col gap-2 overflow-visible bg-transparent",a),dir:l,...u,children:s})})},jq=({className:e,getBadgeValue:t=s=>s,validationStyleEnabled:n=!1,children:r,...a})=>{const{value:s,onValueChange:l,activeIndex:u}=Rh(),d=E.useCallback(f=>{f.preventDefault(),f.stopPropagation()},[]);return v.jsxs("div",{className:_e("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:[s.length>0&&v.jsx("div",{className:"flex w-full flex-wrap gap-1",children:s.map((f,p)=>v.jsxs(WF,{className:_e("flex items-center gap-1 rounded-xl px-1",u===p&&"ring-muted-foreground ring-2"),color:G1.TEXT,children:[v.jsx("span",{className:"text-xs",children:t(f)}),v.jsxs("button",{"aria-label":`Remove ${f} option`,"aria-roledescription":"button to remove option",onMouseDown:d,onClick:()=>l(f),children:[v.jsxs("span",{className:"sr-only",children:["Remove ",f," option"]}),v.jsx(po,{className:"size-4 cursor-pointer"})]})]},f))}),r]})},Lq=({className:e,...t})=>{const{setOpen:n,inputValue:r,setInputValue:a,activeIndex:s,setActiveIndex:l,handleSelect:u,ref:d}=Rh();return v.jsx(jf.Input,{...t,tabIndex:0,ref:d,value:r,onValueChange:s===-1?a:void 0,onSelect:u,onBlur:()=>n(!1),onFocus:()=>n(!0),onClick:()=>l(-1),className:_e("outline-hidden ml-2 flex-1 cursor-pointer",e,s!==-1&&"caret-transparent")})},Pq=({children:e})=>{const{open:t}=Rh();return v.jsx("div",{className:"relative",children:t&&e})},Mq=({className:e,children:t})=>v.jsxs(jf.List,{className:_e("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,v.jsx(jf.Empty,{children:v.jsx("span",{className:"text-muted-foreground",children:"No results found"})})]}),zq=({className:e,value:t,children:n,...r})=>{const{value:a,onValueChange:s,setInputValue:l}=Rh(),u=E.useCallback(f=>{f.preventDefault(),f.stopPropagation()},[]),d=a.includes(t);return v.jsxs(jf.Item,{...r,onSelect:()=>{s(t),l("")},className:_e("flex cursor-pointer justify-between rounded-lg px-2 py-1 transition-colors","hover:bg-neutral/10",e,d&&"opacity-50",r.disabled&&"cursor-not-allowed opacity-50"),onMouseDown:u,children:[n,d&&v.jsx(zs,{className:"size-4"})]})},mn=Dq;mn.Trigger=jq;mn.Input=Lq;mn.Content=Pq;mn.List=Mq;mn.Item=zq;const Bq=({className:e,children:t,...n})=>v.jsxs("i",{className:_e("text-xs text-neutral-400",e),...n,children:["ⓘ ",t]}),bv=({htmlFor:e,...t})=>v.jsx("label",{className:"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",htmlFor:e,...t}),Vq=({className:e,...t})=>{const{error:n,formItemId:r}=ma();return v.jsx(bv,{className:_e("mb-2",n&&"text-error",e),htmlFor:r,...t})},Uq=({isRequired:e})=>e?v.jsx("span",{"aria-label":"Asterisk meaning the field is required",children:"*"}):v.jsx(v.Fragment,{}),JO=({children:e,isRequired:t,info:n,htmlFor:r,className:a})=>v.jsxs("div",{className:"ml-1 flex gap-1 align-middle text-base leading-none",children:[e&&v.jsxs(Vq,{htmlFor:r,id:`${r}-label`,className:gh("font-bold",a),children:[e,v.jsx(Uq,{isRequired:t})]}),n&&v.jsx(Bq,{content:n})]});function aC(e,[t,n]){return Math.min(n,Math.max(t,e))}function eI(e){const t=e+"CollectionProvider",[n,r]=tu(t),[a,s]=n(t,{collectionRef:{current:null},itemMap:new Map}),l=A=>{const{scope:C,children:w}=A,x=Oe.useRef(null),T=Oe.useRef(new Map).current;return v.jsx(a,{scope:C,itemMap:T,collectionRef:x,children:w})};l.displayName=t;const u=e+"CollectionSlot",d=Rs(u),f=Oe.forwardRef((A,C)=>{const{scope:w,children:x}=A,T=s(u,w),N=wt(C,T.collectionRef);return v.jsx(d,{ref:N,children:x})});f.displayName=u;const p=e+"CollectionItemSlot",g="data-radix-collection-item",y=Rs(p),_=Oe.forwardRef((A,C)=>{const{scope:w,children:x,...T}=A,N=Oe.useRef(null),R=wt(C,N),I=s(p,w);return Oe.useEffect(()=>(I.itemMap.set(N,{ref:N,...T}),()=>void I.itemMap.delete(N))),v.jsx(y,{[g]:"",ref:R,children:x})});_.displayName=p;function S(A){const C=s(e+"CollectionConsumer",A);return Oe.useCallback(()=>{const x=C.collectionRef.current;if(!x)return[];const T=Array.from(x.querySelectorAll(`[${g}]`));return Array.from(C.itemMap.values()).sort((I,D)=>T.indexOf(I.ref.current)-T.indexOf(D.ref.current))},[C.collectionRef,C.itemMap])}return[{Provider:l,Slot:f,ItemSlot:_},S,r]}var Fq=E.createContext(void 0);function $q(e){const t=E.useContext(Fq);return e||t||"ltr"}const Hq=["top","right","bottom","left"],ca=Math.min,$n=Math.max,Gf=Math.round,Gd=Math.floor,Fr=e=>({x:e,y:e}),Gq={left:"right",right:"left",bottom:"top",top:"bottom"},Kq={start:"end",end:"start"};function _v(e,t,n){return $n(e,ca(t,n))}function bi(e,t){return typeof e=="function"?e(t):e}function _i(e){return e.split("-")[0]}function Ks(e){return e.split("-")[1]}function C0(e){return e==="x"?"y":"x"}function R0(e){return e==="y"?"height":"width"}const qq=new Set(["top","bottom"]);function zr(e){return qq.has(_i(e))?"y":"x"}function k0(e){return C0(zr(e))}function Wq(e,t,n){n===void 0&&(n=!1);const r=Ks(e),a=k0(e),s=R0(a);let l=a==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(l=Kf(l)),[l,Kf(l)]}function Zq(e){const t=Kf(e);return[Ev(e),t,Ev(t)]}function Ev(e){return e.replace(/start|end/g,t=>Kq[t])}const oC=["left","right"],sC=["right","left"],Yq=["top","bottom"],Xq=["bottom","top"];function Qq(e,t,n){switch(e){case"top":case"bottom":return n?t?sC:oC:t?oC:sC;case"left":case"right":return t?Yq:Xq;default:return[]}}function Jq(e,t,n,r){const a=Ks(e);let s=Qq(_i(e),n==="start",r);return a&&(s=s.map(l=>l+"-"+a),t&&(s=s.concat(s.map(Ev)))),s}function Kf(e){return e.replace(/left|right|bottom|top/g,t=>Gq[t])}function e9(e){return{top:0,right:0,bottom:0,left:0,...e}}function tI(e){return typeof e!="number"?e9(e):{top:e,right:e,bottom:e,left:e}}function qf(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 lC(e,t,n){let{reference:r,floating:a}=e;const s=zr(t),l=k0(t),u=R0(l),d=_i(t),f=s==="y",p=r.x+r.width/2-a.width/2,g=r.y+r.height/2-a.height/2,y=r[u]/2-a[u]/2;let _;switch(d){case"top":_={x:p,y:r.y-a.height};break;case"bottom":_={x:p,y:r.y+r.height};break;case"right":_={x:r.x+r.width,y:g};break;case"left":_={x:r.x-a.width,y:g};break;default:_={x:r.x,y:r.y}}switch(Ks(t)){case"start":_[l]-=y*(n&&f?-1:1);break;case"end":_[l]+=y*(n&&f?-1:1);break}return _}const t9=async(e,t,n)=>{const{placement:r="bottom",strategy:a="absolute",middleware:s=[],platform:l}=n,u=s.filter(Boolean),d=await(l.isRTL==null?void 0:l.isRTL(t));let f=await l.getElementRects({reference:e,floating:t,strategy:a}),{x:p,y:g}=lC(f,r,d),y=r,_={},S=0;for(let A=0;A<u.length;A++){const{name:C,fn:w}=u[A],{x,y:T,data:N,reset:R}=await w({x:p,y:g,initialPlacement:r,placement:y,strategy:a,middlewareData:_,rects:f,platform:l,elements:{reference:e,floating:t}});p=x??p,g=T??g,_={..._,[C]:{..._[C],...N}},R&&S<=50&&(S++,typeof R=="object"&&(R.placement&&(y=R.placement),R.rects&&(f=R.rects===!0?await l.getElementRects({reference:e,floating:t,strategy:a}):R.rects),{x:p,y:g}=lC(f,y,d)),A=-1)}return{x:p,y:g,placement:y,strategy:a,middlewareData:_}};async function zc(e,t){var n;t===void 0&&(t={});const{x:r,y:a,platform:s,rects:l,elements:u,strategy:d}=e,{boundary:f="clippingAncestors",rootBoundary:p="viewport",elementContext:g="floating",altBoundary:y=!1,padding:_=0}=bi(t,e),S=tI(_),C=u[y?g==="floating"?"reference":"floating":g],w=qf(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(C)))==null||n?C:C.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(u.floating)),boundary:f,rootBoundary:p,strategy:d})),x=g==="floating"?{x:r,y:a,width:l.floating.width,height:l.floating.height}:l.reference,T=await(s.getOffsetParent==null?void 0:s.getOffsetParent(u.floating)),N=await(s.isElement==null?void 0:s.isElement(T))?await(s.getScale==null?void 0:s.getScale(T))||{x:1,y:1}:{x:1,y:1},R=qf(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:u,rect:x,offsetParent:T,strategy:d}):x);return{top:(w.top-R.top+S.top)/N.y,bottom:(R.bottom-w.bottom+S.bottom)/N.y,left:(w.left-R.left+S.left)/N.x,right:(R.right-w.right+S.right)/N.x}}const n9=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:a,rects:s,platform:l,elements:u,middlewareData:d}=t,{element:f,padding:p=0}=bi(e,t)||{};if(f==null)return{};const g=tI(p),y={x:n,y:r},_=k0(a),S=R0(_),A=await l.getDimensions(f),C=_==="y",w=C?"top":"left",x=C?"bottom":"right",T=C?"clientHeight":"clientWidth",N=s.reference[S]+s.reference[_]-y[_]-s.floating[S],R=y[_]-s.reference[_],I=await(l.getOffsetParent==null?void 0:l.getOffsetParent(f));let D=I?I[T]:0;(!D||!await(l.isElement==null?void 0:l.isElement(I)))&&(D=u.floating[T]||s.floating[S]);const L=N/2-R/2,H=D/2-A[S]/2-1,Z=ca(g[w],H),q=ca(g[x],H),te=Z,ce=D-A[S]-q,W=D/2-A[S]/2+L,ae=_v(te,W,ce),M=!d.arrow&&Ks(a)!=null&&W!==ae&&s.reference[S]/2-(W<te?Z:q)-A[S]/2<0,X=M?W<te?W-te:W-ce:0;return{[_]:y[_]+X,data:{[_]:ae,centerOffset:W-ae-X,...M&&{alignmentOffset:X}},reset:M}}}),r9=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:a,middlewareData:s,rects:l,initialPlacement:u,platform:d,elements:f}=t,{mainAxis:p=!0,crossAxis:g=!0,fallbackPlacements:y,fallbackStrategy:_="bestFit",fallbackAxisSideDirection:S="none",flipAlignment:A=!0,...C}=bi(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const w=_i(a),x=zr(u),T=_i(u)===u,N=await(d.isRTL==null?void 0:d.isRTL(f.floating)),R=y||(T||!A?[Kf(u)]:Zq(u)),I=S!=="none";!y&&I&&R.push(...Jq(u,A,S,N));const D=[u,...R],L=await zc(t,C),H=[];let Z=((r=s.flip)==null?void 0:r.overflows)||[];if(p&&H.push(L[w]),g){const W=Wq(a,l,N);H.push(L[W[0]],L[W[1]])}if(Z=[...Z,{placement:a,overflows:H}],!H.every(W=>W<=0)){var q,te;const W=(((q=s.flip)==null?void 0:q.index)||0)+1,ae=D[W];if(ae&&(!(g==="alignment"?x!==zr(ae):!1)||Z.every(G=>zr(G.placement)===x?G.overflows[0]>0:!0)))return{data:{index:W,overflows:Z},reset:{placement:ae}};let M=(te=Z.filter(X=>X.overflows[0]<=0).sort((X,G)=>X.overflows[1]-G.overflows[1])[0])==null?void 0:te.placement;if(!M)switch(_){case"bestFit":{var ce;const X=(ce=Z.filter(G=>{if(I){const ge=zr(G.placement);return ge===x||ge==="y"}return!0}).map(G=>[G.placement,G.overflows.filter(ge=>ge>0).reduce((ge,P)=>ge+P,0)]).sort((G,ge)=>G[1]-ge[1])[0])==null?void 0:ce[0];X&&(M=X);break}case"initialPlacement":M=u;break}if(a!==M)return{reset:{placement:M}}}return{}}}};function cC(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function uC(e){return Hq.some(t=>e[t]>=0)}const i9=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...a}=bi(e,t);switch(r){case"referenceHidden":{const s=await zc(t,{...a,elementContext:"reference"}),l=cC(s,n.reference);return{data:{referenceHiddenOffsets:l,referenceHidden:uC(l)}}}case"escaped":{const s=await zc(t,{...a,altBoundary:!0}),l=cC(s,n.floating);return{data:{escapedOffsets:l,escaped:uC(l)}}}default:return{}}}}},nI=new Set(["left","top"]);async function a9(e,t){const{placement:n,platform:r,elements:a}=e,s=await(r.isRTL==null?void 0:r.isRTL(a.floating)),l=_i(n),u=Ks(n),d=zr(n)==="y",f=nI.has(l)?-1:1,p=s&&d?-1:1,g=bi(t,e);let{mainAxis:y,crossAxis:_,alignmentAxis:S}=typeof g=="number"?{mainAxis:g,crossAxis:0,alignmentAxis:null}:{mainAxis:g.mainAxis||0,crossAxis:g.crossAxis||0,alignmentAxis:g.alignmentAxis};return u&&typeof S=="number"&&(_=u==="end"?S*-1:S),d?{x:_*p,y:y*f}:{x:y*f,y:_*p}}const o9=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:a,y:s,placement:l,middlewareData:u}=t,d=await a9(t,e);return l===((n=u.offset)==null?void 0:n.placement)&&(r=u.arrow)!=null&&r.alignmentOffset?{}:{x:a+d.x,y:s+d.y,data:{...d,placement:l}}}}},s9=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:a}=t,{mainAxis:s=!0,crossAxis:l=!1,limiter:u={fn:C=>{let{x:w,y:x}=C;return{x:w,y:x}}},...d}=bi(e,t),f={x:n,y:r},p=await zc(t,d),g=zr(_i(a)),y=C0(g);let _=f[y],S=f[g];if(s){const C=y==="y"?"top":"left",w=y==="y"?"bottom":"right",x=_+p[C],T=_-p[w];_=_v(x,_,T)}if(l){const C=g==="y"?"top":"left",w=g==="y"?"bottom":"right",x=S+p[C],T=S-p[w];S=_v(x,S,T)}const A=u.fn({...t,[y]:_,[g]:S});return{...A,data:{x:A.x-n,y:A.y-r,enabled:{[y]:s,[g]:l}}}}}},l9=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:a,rects:s,middlewareData:l}=t,{offset:u=0,mainAxis:d=!0,crossAxis:f=!0}=bi(e,t),p={x:n,y:r},g=zr(a),y=C0(g);let _=p[y],S=p[g];const A=bi(u,t),C=typeof A=="number"?{mainAxis:A,crossAxis:0}:{mainAxis:0,crossAxis:0,...A};if(d){const T=y==="y"?"height":"width",N=s.reference[y]-s.floating[T]+C.mainAxis,R=s.reference[y]+s.reference[T]-C.mainAxis;_<N?_=N:_>R&&(_=R)}if(f){var w,x;const T=y==="y"?"width":"height",N=nI.has(_i(a)),R=s.reference[g]-s.floating[T]+(N&&((w=l.offset)==null?void 0:w[g])||0)+(N?0:C.crossAxis),I=s.reference[g]+s.reference[T]+(N?0:((x=l.offset)==null?void 0:x[g])||0)-(N?C.crossAxis:0);S<R?S=R:S>I&&(S=I)}return{[y]:_,[g]:S}}}},c9=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:a,rects:s,platform:l,elements:u}=t,{apply:d=()=>{},...f}=bi(e,t),p=await zc(t,f),g=_i(a),y=Ks(a),_=zr(a)==="y",{width:S,height:A}=s.floating;let C,w;g==="top"||g==="bottom"?(C=g,w=y===(await(l.isRTL==null?void 0:l.isRTL(u.floating))?"start":"end")?"left":"right"):(w=g,C=y==="end"?"top":"bottom");const x=A-p.top-p.bottom,T=S-p.left-p.right,N=ca(A-p[C],x),R=ca(S-p[w],T),I=!t.middlewareData.shift;let D=N,L=R;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(L=T),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(D=x),I&&!y){const Z=$n(p.left,0),q=$n(p.right,0),te=$n(p.top,0),ce=$n(p.bottom,0);_?L=S-2*(Z!==0||q!==0?Z+q:$n(p.left,p.right)):D=A-2*(te!==0||ce!==0?te+ce:$n(p.top,p.bottom))}await d({...t,availableWidth:L,availableHeight:D});const H=await l.getDimensions(u.floating);return S!==H.width||A!==H.height?{reset:{rects:!0}}:{}}}};function kh(){return typeof window<"u"}function qs(e){return rI(e)?(e.nodeName||"").toLowerCase():"#document"}function Wn(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function qr(e){var t;return(t=(rI(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function rI(e){return kh()?e instanceof Node||e instanceof Wn(e).Node:!1}function xr(e){return kh()?e instanceof Element||e instanceof Wn(e).Element:!1}function Hr(e){return kh()?e instanceof HTMLElement||e instanceof Wn(e).HTMLElement:!1}function dC(e){return!kh()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Wn(e).ShadowRoot}const u9=new Set(["inline","contents"]);function du(e){const{overflow:t,overflowX:n,overflowY:r,display:a}=Ar(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!u9.has(a)}const d9=new Set(["table","td","th"]);function f9(e){return d9.has(qs(e))}const h9=[":popover-open",":modal"];function Nh(e){return h9.some(t=>{try{return e.matches(t)}catch{return!1}})}const p9=["transform","translate","scale","rotate","perspective"],m9=["transform","translate","scale","rotate","perspective","filter"],g9=["paint","layout","strict","content"];function N0(e){const t=O0(),n=xr(e)?Ar(e):e;return p9.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)||m9.some(r=>(n.willChange||"").includes(r))||g9.some(r=>(n.contain||"").includes(r))}function y9(e){let t=ua(e);for(;Hr(t)&&!Os(t);){if(N0(t))return t;if(Nh(t))return null;t=ua(t)}return null}function O0(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const v9=new Set(["html","body","#document"]);function Os(e){return v9.has(qs(e))}function Ar(e){return Wn(e).getComputedStyle(e)}function Oh(e){return xr(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ua(e){if(qs(e)==="html")return e;const t=e.assignedSlot||e.parentNode||dC(e)&&e.host||qr(e);return dC(t)?t.host:t}function iI(e){const t=ua(e);return Os(t)?e.ownerDocument?e.ownerDocument.body:e.body:Hr(t)&&du(t)?t:iI(t)}function Bc(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const a=iI(e),s=a===((r=e.ownerDocument)==null?void 0:r.body),l=Wn(a);if(s){const u=Sv(l);return t.concat(l,l.visualViewport||[],du(a)?a:[],u&&n?Bc(u):[])}return t.concat(a,Bc(a,[],n))}function Sv(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function aI(e){const t=Ar(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const a=Hr(e),s=a?e.offsetWidth:n,l=a?e.offsetHeight:r,u=Gf(n)!==s||Gf(r)!==l;return u&&(n=s,r=l),{width:n,height:r,$:u}}function I0(e){return xr(e)?e:e.contextElement}function Ss(e){const t=I0(e);if(!Hr(t))return Fr(1);const n=t.getBoundingClientRect(),{width:r,height:a,$:s}=aI(t);let l=(s?Gf(n.width):n.width)/r,u=(s?Gf(n.height):n.height)/a;return(!l||!Number.isFinite(l))&&(l=1),(!u||!Number.isFinite(u))&&(u=1),{x:l,y:u}}const b9=Fr(0);function oI(e){const t=Wn(e);return!O0()||!t.visualViewport?b9:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function _9(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Wn(e)?!1:t}function so(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const a=e.getBoundingClientRect(),s=I0(e);let l=Fr(1);t&&(r?xr(r)&&(l=Ss(r)):l=Ss(e));const u=_9(s,n,r)?oI(s):Fr(0);let d=(a.left+u.x)/l.x,f=(a.top+u.y)/l.y,p=a.width/l.x,g=a.height/l.y;if(s){const y=Wn(s),_=r&&xr(r)?Wn(r):r;let S=y,A=Sv(S);for(;A&&r&&_!==S;){const C=Ss(A),w=A.getBoundingClientRect(),x=Ar(A),T=w.left+(A.clientLeft+parseFloat(x.paddingLeft))*C.x,N=w.top+(A.clientTop+parseFloat(x.paddingTop))*C.y;d*=C.x,f*=C.y,p*=C.x,g*=C.y,d+=T,f+=N,S=Wn(A),A=Sv(S)}}return qf({width:p,height:g,x:d,y:f})}function Ih(e,t){const n=Oh(e).scrollLeft;return t?t.left+n:so(qr(e)).left+n}function sI(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-Ih(e,n),a=n.top+t.scrollTop;return{x:r,y:a}}function E9(e){let{elements:t,rect:n,offsetParent:r,strategy:a}=e;const s=a==="fixed",l=qr(r),u=t?Nh(t.floating):!1;if(r===l||u&&s)return n;let d={scrollLeft:0,scrollTop:0},f=Fr(1);const p=Fr(0),g=Hr(r);if((g||!g&&!s)&&((qs(r)!=="body"||du(l))&&(d=Oh(r)),Hr(r))){const _=so(r);f=Ss(r),p.x=_.x+r.clientLeft,p.y=_.y+r.clientTop}const y=l&&!g&&!s?sI(l,d):Fr(0);return{width:n.width*f.x,height:n.height*f.y,x:n.x*f.x-d.scrollLeft*f.x+p.x+y.x,y:n.y*f.y-d.scrollTop*f.y+p.y+y.y}}function S9(e){return Array.from(e.getClientRects())}function x9(e){const t=qr(e),n=Oh(e),r=e.ownerDocument.body,a=$n(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),s=$n(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let l=-n.scrollLeft+Ih(e);const u=-n.scrollTop;return Ar(r).direction==="rtl"&&(l+=$n(t.clientWidth,r.clientWidth)-a),{width:a,height:s,x:l,y:u}}const fC=25;function A9(e,t){const n=Wn(e),r=qr(e),a=n.visualViewport;let s=r.clientWidth,l=r.clientHeight,u=0,d=0;if(a){s=a.width,l=a.height;const p=O0();(!p||p&&t==="fixed")&&(u=a.offsetLeft,d=a.offsetTop)}const f=Ih(r);if(f<=0){const p=r.ownerDocument,g=p.body,y=getComputedStyle(g),_=p.compatMode==="CSS1Compat"&&parseFloat(y.marginLeft)+parseFloat(y.marginRight)||0,S=Math.abs(r.clientWidth-g.clientWidth-_);S<=fC&&(s-=S)}else f<=fC&&(s+=f);return{width:s,height:l,x:u,y:d}}const w9=new Set(["absolute","fixed"]);function T9(e,t){const n=so(e,!0,t==="fixed"),r=n.top+e.clientTop,a=n.left+e.clientLeft,s=Hr(e)?Ss(e):Fr(1),l=e.clientWidth*s.x,u=e.clientHeight*s.y,d=a*s.x,f=r*s.y;return{width:l,height:u,x:d,y:f}}function hC(e,t,n){let r;if(t==="viewport")r=A9(e,n);else if(t==="document")r=x9(qr(e));else if(xr(t))r=T9(t,n);else{const a=oI(e);r={x:t.x-a.x,y:t.y-a.y,width:t.width,height:t.height}}return qf(r)}function lI(e,t){const n=ua(e);return n===t||!xr(n)||Os(n)?!1:Ar(n).position==="fixed"||lI(n,t)}function C9(e,t){const n=t.get(e);if(n)return n;let r=Bc(e,[],!1).filter(u=>xr(u)&&qs(u)!=="body"),a=null;const s=Ar(e).position==="fixed";let l=s?ua(e):e;for(;xr(l)&&!Os(l);){const u=Ar(l),d=N0(l);!d&&u.position==="fixed"&&(a=null),(s?!d&&!a:!d&&u.position==="static"&&!!a&&w9.has(a.position)||du(l)&&!d&&lI(e,l))?r=r.filter(p=>p!==l):a=u,l=ua(l)}return t.set(e,r),r}function R9(e){let{element:t,boundary:n,rootBoundary:r,strategy:a}=e;const l=[...n==="clippingAncestors"?Nh(t)?[]:C9(t,this._c):[].concat(n),r],u=l[0],d=l.reduce((f,p)=>{const g=hC(t,p,a);return f.top=$n(g.top,f.top),f.right=ca(g.right,f.right),f.bottom=ca(g.bottom,f.bottom),f.left=$n(g.left,f.left),f},hC(t,u,a));return{width:d.right-d.left,height:d.bottom-d.top,x:d.left,y:d.top}}function k9(e){const{width:t,height:n}=aI(e);return{width:t,height:n}}function N9(e,t,n){const r=Hr(t),a=qr(t),s=n==="fixed",l=so(e,!0,s,t);let u={scrollLeft:0,scrollTop:0};const d=Fr(0);function f(){d.x=Ih(a)}if(r||!r&&!s)if((qs(t)!=="body"||du(a))&&(u=Oh(t)),r){const _=so(t,!0,s,t);d.x=_.x+t.clientLeft,d.y=_.y+t.clientTop}else a&&f();s&&!r&&a&&f();const p=a&&!r&&!s?sI(a,u):Fr(0),g=l.left+u.scrollLeft-d.x-p.x,y=l.top+u.scrollTop-d.y-p.y;return{x:g,y,width:l.width,height:l.height}}function ay(e){return Ar(e).position==="static"}function pC(e,t){if(!Hr(e)||Ar(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return qr(e)===n&&(n=n.ownerDocument.body),n}function cI(e,t){const n=Wn(e);if(Nh(e))return n;if(!Hr(e)){let a=ua(e);for(;a&&!Os(a);){if(xr(a)&&!ay(a))return a;a=ua(a)}return n}let r=pC(e,t);for(;r&&f9(r)&&ay(r);)r=pC(r,t);return r&&Os(r)&&ay(r)&&!N0(r)?n:r||y9(e)||n}const O9=async function(e){const t=this.getOffsetParent||cI,n=this.getDimensions,r=await n(e.floating);return{reference:N9(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function I9(e){return Ar(e).direction==="rtl"}const D9={convertOffsetParentRelativeRectToViewportRelativeRect:E9,getDocumentElement:qr,getClippingRect:R9,getOffsetParent:cI,getElementRects:O9,getClientRects:S9,getDimensions:k9,getScale:Ss,isElement:xr,isRTL:I9};function uI(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function j9(e,t){let n=null,r;const a=qr(e);function s(){var u;clearTimeout(r),(u=n)==null||u.disconnect(),n=null}function l(u,d){u===void 0&&(u=!1),d===void 0&&(d=1),s();const f=e.getBoundingClientRect(),{left:p,top:g,width:y,height:_}=f;if(u||t(),!y||!_)return;const S=Gd(g),A=Gd(a.clientWidth-(p+y)),C=Gd(a.clientHeight-(g+_)),w=Gd(p),T={rootMargin:-S+"px "+-A+"px "+-C+"px "+-w+"px",threshold:$n(0,ca(1,d))||1};let N=!0;function R(I){const D=I[0].intersectionRatio;if(D!==d){if(!N)return l();D?l(!1,D):r=setTimeout(()=>{l(!1,1e-7)},1e3)}D===1&&!uI(f,e.getBoundingClientRect())&&l(),N=!1}try{n=new IntersectionObserver(R,{...T,root:a.ownerDocument})}catch{n=new IntersectionObserver(R,T)}n.observe(e)}return l(!0),s}function L9(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:a=!0,ancestorResize:s=!0,elementResize:l=typeof ResizeObserver=="function",layoutShift:u=typeof IntersectionObserver=="function",animationFrame:d=!1}=r,f=I0(e),p=a||s?[...f?Bc(f):[],...Bc(t)]:[];p.forEach(w=>{a&&w.addEventListener("scroll",n,{passive:!0}),s&&w.addEventListener("resize",n)});const g=f&&u?j9(f,n):null;let y=-1,_=null;l&&(_=new ResizeObserver(w=>{let[x]=w;x&&x.target===f&&_&&(_.unobserve(t),cancelAnimationFrame(y),y=requestAnimationFrame(()=>{var T;(T=_)==null||T.observe(t)})),n()}),f&&!d&&_.observe(f),_.observe(t));let S,A=d?so(e):null;d&&C();function C(){const w=so(e);A&&!uI(A,w)&&n(),A=w,S=requestAnimationFrame(C)}return n(),()=>{var w;p.forEach(x=>{a&&x.removeEventListener("scroll",n),s&&x.removeEventListener("resize",n)}),g?.(),(w=_)==null||w.disconnect(),_=null,d&&cancelAnimationFrame(S)}}const P9=o9,M9=s9,z9=r9,B9=c9,V9=i9,mC=n9,U9=l9,F9=(e,t,n)=>{const r=new Map,a={platform:D9,...n},s={...a.platform,_c:r};return t9(e,t,{...a,platform:s})};var $9=typeof document<"u",H9=function(){},_f=$9?E.useLayoutEffect:H9;function Wf(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(!Wf(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 s=a[r];if(!(s==="_owner"&&e.$$typeof)&&!Wf(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function dI(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function gC(e,t){const n=dI(e);return Math.round(t*n)/n}function oy(e){const t=E.useRef(e);return _f(()=>{t.current=e}),t}function G9(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:a,elements:{reference:s,floating:l}={},transform:u=!0,whileElementsMounted:d,open:f}=e,[p,g]=E.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[y,_]=E.useState(r);Wf(y,r)||_(r);const[S,A]=E.useState(null),[C,w]=E.useState(null),x=E.useCallback(G=>{G!==I.current&&(I.current=G,A(G))},[]),T=E.useCallback(G=>{G!==D.current&&(D.current=G,w(G))},[]),N=s||S,R=l||C,I=E.useRef(null),D=E.useRef(null),L=E.useRef(p),H=d!=null,Z=oy(d),q=oy(a),te=oy(f),ce=E.useCallback(()=>{if(!I.current||!D.current)return;const G={placement:t,strategy:n,middleware:y};q.current&&(G.platform=q.current),F9(I.current,D.current,G).then(ge=>{const P={...ge,isPositioned:te.current!==!1};W.current&&!Wf(L.current,P)&&(L.current=P,ho.flushSync(()=>{g(P)}))})},[y,t,n,q,te]);_f(()=>{f===!1&&L.current.isPositioned&&(L.current.isPositioned=!1,g(G=>({...G,isPositioned:!1})))},[f]);const W=E.useRef(!1);_f(()=>(W.current=!0,()=>{W.current=!1}),[]),_f(()=>{if(N&&(I.current=N),R&&(D.current=R),N&&R){if(Z.current)return Z.current(N,R,ce);ce()}},[N,R,ce,Z,H]);const ae=E.useMemo(()=>({reference:I,floating:D,setReference:x,setFloating:T}),[x,T]),M=E.useMemo(()=>({reference:N,floating:R}),[N,R]),X=E.useMemo(()=>{const G={position:n,left:0,top:0};if(!M.floating)return G;const ge=gC(M.floating,p.x),P=gC(M.floating,p.y);return u?{...G,transform:"translate("+ge+"px, "+P+"px)",...dI(M.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:ge,top:P}},[n,u,M.floating,p.x,p.y]);return E.useMemo(()=>({...p,update:ce,refs:ae,elements:M,floatingStyles:X}),[p,ce,ae,M,X])}const K9=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?mC({element:r.current,padding:a}).fn(n):{}:r?mC({element:r,padding:a}).fn(n):{}}}},q9=(e,t)=>({...P9(e),options:[e,t]}),W9=(e,t)=>({...M9(e),options:[e,t]}),Z9=(e,t)=>({...U9(e),options:[e,t]}),Y9=(e,t)=>({...z9(e),options:[e,t]}),X9=(e,t)=>({...B9(e),options:[e,t]}),Q9=(e,t)=>({...V9(e),options:[e,t]}),J9=(e,t)=>({...K9(e),options:[e,t]});var e7="Arrow",fI=E.forwardRef((e,t)=>{const{children:n,width:r=10,height:a=5,...s}=e;return v.jsx(He.svg,{...s,ref:t,width:r,height:a,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:v.jsx("polygon",{points:"0,0 30,0 15,10"})})});fI.displayName=e7;var t7=fI;function n7(e){const[t,n]=E.useState(void 0);return ln(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(a=>{if(!Array.isArray(a)||!a.length)return;const s=a[0];let l,u;if("borderBoxSize"in s){const d=s.borderBoxSize,f=Array.isArray(d)?d[0]:d;l=f.inlineSize,u=f.blockSize}else l=e.offsetWidth,u=e.offsetHeight;n({width:l,height:u})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var D0="Popper",[hI,pI]=tu(D0),[r7,mI]=hI(D0),gI=e=>{const{__scopePopper:t,children:n}=e,[r,a]=E.useState(null);return v.jsx(r7,{scope:t,anchor:r,onAnchorChange:a,children:n})};gI.displayName=D0;var yI="PopperAnchor",vI=E.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...a}=e,s=mI(yI,n),l=E.useRef(null),u=wt(t,l),d=E.useRef(null);return E.useEffect(()=>{const f=d.current;d.current=r?.current||l.current,f!==d.current&&s.onAnchorChange(d.current)}),r?null:v.jsx(He.div,{...a,ref:u})});vI.displayName=yI;var j0="PopperContent",[i7,a7]=hI(j0),bI=E.forwardRef((e,t)=>{const{__scopePopper:n,side:r="bottom",sideOffset:a=0,align:s="center",alignOffset:l=0,arrowPadding:u=0,avoidCollisions:d=!0,collisionBoundary:f=[],collisionPadding:p=0,sticky:g="partial",hideWhenDetached:y=!1,updatePositionStrategy:_="optimized",onPlaced:S,...A}=e,C=mI(j0,n),[w,x]=E.useState(null),T=wt(t,fe=>x(fe)),[N,R]=E.useState(null),I=n7(N),D=I?.width??0,L=I?.height??0,H=r+(s!=="center"?"-"+s:""),Z=typeof p=="number"?p:{top:0,right:0,bottom:0,left:0,...p},q=Array.isArray(f)?f:[f],te=q.length>0,ce={padding:Z,boundary:q.filter(s7),altBoundary:te},{refs:W,floatingStyles:ae,placement:M,isPositioned:X,middlewareData:G}=G9({strategy:"fixed",placement:H,whileElementsMounted:(...fe)=>L9(...fe,{animationFrame:_==="always"}),elements:{reference:C.anchor},middleware:[q9({mainAxis:a+L,alignmentAxis:l}),d&&W9({mainAxis:!0,crossAxis:!1,limiter:g==="partial"?Z9():void 0,...ce}),d&&Y9({...ce}),X9({...ce,apply:({elements:fe,rects:xe,availableWidth:je,availableHeight:Be})=>{const{width:Ye,height:et}=xe.reference,Zt=fe.floating.style;Zt.setProperty("--radix-popper-available-width",`${je}px`),Zt.setProperty("--radix-popper-available-height",`${Be}px`),Zt.setProperty("--radix-popper-anchor-width",`${Ye}px`),Zt.setProperty("--radix-popper-anchor-height",`${et}px`)}}),N&&J9({element:N,padding:u}),l7({arrowWidth:D,arrowHeight:L}),y&&Q9({strategy:"referenceHidden",...ce})]}),[ge,P]=SI(M),ie=Sr(S);ln(()=>{X&&ie?.()},[X,ie]);const F=G.arrow?.x,J=G.arrow?.y,se=G.arrow?.centerOffset!==0,[he,ye]=E.useState();return ln(()=>{w&&ye(window.getComputedStyle(w).zIndex)},[w]),v.jsx("div",{ref:W.setFloating,"data-radix-popper-content-wrapper":"",style:{...ae,transform:X?ae.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:he,"--radix-popper-transform-origin":[G.transformOrigin?.x,G.transformOrigin?.y].join(" "),...G.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:v.jsx(i7,{scope:n,placedSide:ge,onArrowChange:R,arrowX:F,arrowY:J,shouldHideArrow:se,children:v.jsx(He.div,{"data-side":ge,"data-align":P,...A,ref:T,style:{...A.style,animation:X?void 0:"none"}})})})});bI.displayName=j0;var _I="PopperArrow",o7={top:"bottom",right:"left",bottom:"top",left:"right"},EI=E.forwardRef(function(t,n){const{__scopePopper:r,...a}=t,s=a7(_I,r),l=o7[s.placedSide];return v.jsx("span",{ref:s.onArrowChange,style:{position:"absolute",left:s.arrowX,top:s.arrowY,[l]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[s.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[s.placedSide],visibility:s.shouldHideArrow?"hidden":void 0},children:v.jsx(t7,{...a,ref:n,style:{...a.style,display:"block"}})})});EI.displayName=_I;function s7(e){return e!==null}var l7=e=>({name:"transformOrigin",options:e,fn(t){const{placement:n,rects:r,middlewareData:a}=t,l=a.arrow?.centerOffset!==0,u=l?0:e.arrowWidth,d=l?0:e.arrowHeight,[f,p]=SI(n),g={start:"0%",center:"50%",end:"100%"}[p],y=(a.arrow?.x??0)+u/2,_=(a.arrow?.y??0)+d/2;let S="",A="";return f==="bottom"?(S=l?g:`${y}px`,A=`${-d}px`):f==="top"?(S=l?g:`${y}px`,A=`${r.floating.height+d}px`):f==="right"?(S=`${-d}px`,A=l?g:`${_}px`):f==="left"&&(S=`${r.floating.width+d}px`,A=l?g:`${_}px`),{data:{x:S,y:A}}}});function SI(e){const[t,n="center"]=e.split("-");return[t,n]}var c7=gI,u7=vI,d7=bI,f7=EI;function h7(e){const t=E.useRef({value:e,previous:e});return E.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var xI=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),p7="VisuallyHidden",L0=E.forwardRef((e,t)=>v.jsx(He.span,{...e,ref:t,style:{...xI,...e.style}}));L0.displayName=p7;var m7=[" ","Enter","ArrowUp","ArrowDown"],g7=[" ","Enter"],lo="Select",[Dh,jh,y7]=eI(lo),[Ws]=tu(lo,[y7,pI]),Lh=pI(),[v7,ga]=Ws(lo),[b7,_7]=Ws(lo),AI=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:a,onOpenChange:s,value:l,defaultValue:u,onValueChange:d,dir:f,name:p,autoComplete:g,disabled:y,required:_,form:S}=e,A=Lh(t),[C,w]=E.useState(null),[x,T]=E.useState(null),[N,R]=E.useState(!1),I=$q(f),[D,L]=If({prop:r,defaultProp:a??!1,onChange:s,caller:lo}),[H,Z]=If({prop:l,defaultProp:u,onChange:d,caller:lo}),q=E.useRef(null),te=C?S||!!C.closest("form"):!0,[ce,W]=E.useState(new Set),ae=Array.from(ce).map(M=>M.props.value).join(";");return v.jsx(c7,{...A,children:v.jsxs(v7,{required:_,scope:t,trigger:C,onTriggerChange:w,valueNode:x,onValueNodeChange:T,valueNodeHasChildren:N,onValueNodeHasChildrenChange:R,contentId:ur(),value:H,onValueChange:Z,open:D,onOpenChange:L,dir:I,triggerPointerDownPosRef:q,disabled:y,children:[v.jsx(Dh.Provider,{scope:t,children:v.jsx(b7,{scope:e.__scopeSelect,onNativeOptionAdd:E.useCallback(M=>{W(X=>new Set(X).add(M))},[]),onNativeOptionRemove:E.useCallback(M=>{W(X=>{const G=new Set(X);return G.delete(M),G})},[]),children:n})}),te?v.jsxs(ZI,{"aria-hidden":!0,required:_,tabIndex:-1,name:p,autoComplete:g,value:H,onChange:M=>Z(M.target.value),disabled:y,form:S,children:[H===void 0?v.jsx("option",{value:""}):null,Array.from(ce)]},ae):null]})})};AI.displayName=lo;var wI="SelectTrigger",TI=E.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...a}=e,s=Lh(n),l=ga(wI,n),u=l.disabled||r,d=wt(t,l.onTriggerChange),f=jh(n),p=E.useRef("touch"),[g,y,_]=XI(A=>{const C=f().filter(T=>!T.disabled),w=C.find(T=>T.value===l.value),x=QI(C,A,w);x!==void 0&&l.onValueChange(x.value)}),S=A=>{u||(l.onOpenChange(!0),_()),A&&(l.triggerPointerDownPosRef.current={x:Math.round(A.pageX),y:Math.round(A.pageY)})};return v.jsx(u7,{asChild:!0,...s,children:v.jsx(He.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:u,"data-disabled":u?"":void 0,"data-placeholder":YI(l.value)?"":void 0,...a,ref:d,onClick:Qe(a.onClick,A=>{A.currentTarget.focus(),p.current!=="mouse"&&S(A)}),onPointerDown:Qe(a.onPointerDown,A=>{p.current=A.pointerType;const C=A.target;C.hasPointerCapture(A.pointerId)&&C.releasePointerCapture(A.pointerId),A.button===0&&A.ctrlKey===!1&&A.pointerType==="mouse"&&(S(A),A.preventDefault())}),onKeyDown:Qe(a.onKeyDown,A=>{const C=g.current!=="";!(A.ctrlKey||A.altKey||A.metaKey)&&A.key.length===1&&y(A.key),!(C&&A.key===" ")&&m7.includes(A.key)&&(S(),A.preventDefault())})})})});TI.displayName=wI;var CI="SelectValue",RI=E.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:a,children:s,placeholder:l="",...u}=e,d=ga(CI,n),{onValueNodeHasChildrenChange:f}=d,p=s!==void 0,g=wt(t,d.onValueNodeChange);return ln(()=>{f(p)},[f,p]),v.jsx(He.span,{...u,ref:g,style:{pointerEvents:"none"},children:YI(d.value)?v.jsx(v.Fragment,{children:l}):s})});RI.displayName=CI;var E7="SelectIcon",kI=E.forwardRef((e,t)=>{const{__scopeSelect:n,children:r,...a}=e;return v.jsx(He.span,{"aria-hidden":!0,...a,ref:t,children:r||"▼"})});kI.displayName=E7;var S7="SelectPortal",NI=e=>v.jsx(vh,{asChild:!0,...e});NI.displayName=S7;var co="SelectContent",OI=E.forwardRef((e,t)=>{const n=ga(co,e.__scopeSelect),[r,a]=E.useState();if(ln(()=>{a(new DocumentFragment)},[]),!n.open){const s=r;return s?ho.createPortal(v.jsx(II,{scope:e.__scopeSelect,children:v.jsx(Dh.Slot,{scope:e.__scopeSelect,children:v.jsx("div",{children:e.children})})}),s):null}return v.jsx(DI,{...e,ref:t})});OI.displayName=co;var vr=10,[II,ya]=Ws(co),x7="SelectContentImpl",A7=Rs("SelectContent.RemoveScroll"),DI=E.forwardRef((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:a,onEscapeKeyDown:s,onPointerDownOutside:l,side:u,sideOffset:d,align:f,alignOffset:p,arrowPadding:g,collisionBoundary:y,collisionPadding:_,sticky:S,hideWhenDetached:A,avoidCollisions:C,...w}=e,x=ga(co,n),[T,N]=E.useState(null),[R,I]=E.useState(null),D=wt(t,fe=>N(fe)),[L,H]=E.useState(null),[Z,q]=E.useState(null),te=jh(n),[ce,W]=E.useState(!1),ae=E.useRef(!1);E.useEffect(()=>{if(T)return sk(T)},[T]),Q1();const M=E.useCallback(fe=>{const[xe,...je]=te().map(et=>et.ref.current),[Be]=je.slice(-1),Ye=document.activeElement;for(const et of fe)if(et===Ye||(et?.scrollIntoView({block:"nearest"}),et===xe&&R&&(R.scrollTop=0),et===Be&&R&&(R.scrollTop=R.scrollHeight),et?.focus(),document.activeElement!==Ye))return},[te,R]),X=E.useCallback(()=>M([L,T]),[M,L,T]);E.useEffect(()=>{ce&&X()},[ce,X]);const{onOpenChange:G,triggerPointerDownPosRef:ge}=x;E.useEffect(()=>{if(T){let fe={x:0,y:0};const xe=Be=>{fe={x:Math.abs(Math.round(Be.pageX)-(ge.current?.x??0)),y:Math.abs(Math.round(Be.pageY)-(ge.current?.y??0))}},je=Be=>{fe.x<=10&&fe.y<=10?Be.preventDefault():T.contains(Be.target)||G(!1),document.removeEventListener("pointermove",xe),ge.current=null};return ge.current!==null&&(document.addEventListener("pointermove",xe),document.addEventListener("pointerup",je,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",xe),document.removeEventListener("pointerup",je,{capture:!0})}}},[T,G,ge]),E.useEffect(()=>{const fe=()=>G(!1);return window.addEventListener("blur",fe),window.addEventListener("resize",fe),()=>{window.removeEventListener("blur",fe),window.removeEventListener("resize",fe)}},[G]);const[P,ie]=XI(fe=>{const xe=te().filter(Ye=>!Ye.disabled),je=xe.find(Ye=>Ye.ref.current===document.activeElement),Be=QI(xe,fe,je);Be&&setTimeout(()=>Be.ref.current.focus())}),F=E.useCallback((fe,xe,je)=>{const Be=!ae.current&&!je;(x.value!==void 0&&x.value===xe||Be)&&(H(fe),Be&&(ae.current=!0))},[x.value]),J=E.useCallback(()=>T?.focus(),[T]),se=E.useCallback((fe,xe,je)=>{const Be=!ae.current&&!je;(x.value!==void 0&&x.value===xe||Be)&&q(fe)},[x.value]),he=r==="popper"?xv:jI,ye=he===xv?{side:u,sideOffset:d,align:f,alignOffset:p,arrowPadding:g,collisionBoundary:y,collisionPadding:_,sticky:S,hideWhenDetached:A,avoidCollisions:C}:{};return v.jsx(II,{scope:n,content:T,viewport:R,onViewportChange:I,itemRefCallback:F,selectedItem:L,onItemLeave:J,itemTextRefCallback:se,focusSelectedItem:X,selectedItemText:Z,position:r,isPositioned:ce,searchRef:P,children:v.jsx(Eb,{as:A7,allowPinchZoom:!0,children:v.jsx(_b,{asChild:!0,trapped:x.open,onMountAutoFocus:fe=>{fe.preventDefault()},onUnmountAutoFocus:Qe(a,fe=>{x.trigger?.focus({preventScroll:!0}),fe.preventDefault()}),children:v.jsx(yh,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:s,onPointerDownOutside:l,onFocusOutside:fe=>fe.preventDefault(),onDismiss:()=>x.onOpenChange(!1),children:v.jsx(he,{role:"listbox",id:x.contentId,"data-state":x.open?"open":"closed",dir:x.dir,onContextMenu:fe=>fe.preventDefault(),...w,...ye,onPlaced:()=>W(!0),ref:D,style:{display:"flex",flexDirection:"column",outline:"none",...w.style},onKeyDown:Qe(w.onKeyDown,fe=>{const xe=fe.ctrlKey||fe.altKey||fe.metaKey;if(fe.key==="Tab"&&fe.preventDefault(),!xe&&fe.key.length===1&&ie(fe.key),["ArrowUp","ArrowDown","Home","End"].includes(fe.key)){let Be=te().filter(Ye=>!Ye.disabled).map(Ye=>Ye.ref.current);if(["ArrowUp","End"].includes(fe.key)&&(Be=Be.slice().reverse()),["ArrowUp","ArrowDown"].includes(fe.key)){const Ye=fe.target,et=Be.indexOf(Ye);Be=Be.slice(et+1)}setTimeout(()=>M(Be)),fe.preventDefault()}})})})})})})});DI.displayName=x7;var w7="SelectItemAlignedPosition",jI=E.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:r,...a}=e,s=ga(co,n),l=ya(co,n),[u,d]=E.useState(null),[f,p]=E.useState(null),g=wt(t,D=>p(D)),y=jh(n),_=E.useRef(!1),S=E.useRef(!0),{viewport:A,selectedItem:C,selectedItemText:w,focusSelectedItem:x}=l,T=E.useCallback(()=>{if(s.trigger&&s.valueNode&&u&&f&&A&&C&&w){const D=s.trigger.getBoundingClientRect(),L=f.getBoundingClientRect(),H=s.valueNode.getBoundingClientRect(),Z=w.getBoundingClientRect();if(s.dir!=="rtl"){const Ye=Z.left-L.left,et=H.left-Ye,Zt=D.left-et,An=D.width+Zt,Ai=Math.max(An,L.width),Sa=window.innerWidth-vr,un=aC(et,[vr,Math.max(vr,Sa-Ai)]);u.style.minWidth=An+"px",u.style.left=un+"px"}else{const Ye=L.right-Z.right,et=window.innerWidth-H.right-Ye,Zt=window.innerWidth-D.right-et,An=D.width+Zt,Ai=Math.max(An,L.width),Sa=window.innerWidth-vr,un=aC(et,[vr,Math.max(vr,Sa-Ai)]);u.style.minWidth=An+"px",u.style.right=un+"px"}const q=y(),te=window.innerHeight-vr*2,ce=A.scrollHeight,W=window.getComputedStyle(f),ae=parseInt(W.borderTopWidth,10),M=parseInt(W.paddingTop,10),X=parseInt(W.borderBottomWidth,10),G=parseInt(W.paddingBottom,10),ge=ae+M+ce+G+X,P=Math.min(C.offsetHeight*5,ge),ie=window.getComputedStyle(A),F=parseInt(ie.paddingTop,10),J=parseInt(ie.paddingBottom,10),se=D.top+D.height/2-vr,he=te-se,ye=C.offsetHeight/2,fe=C.offsetTop+ye,xe=ae+M+fe,je=ge-xe;if(xe<=se){const Ye=q.length>0&&C===q[q.length-1].ref.current;u.style.bottom="0px";const et=f.clientHeight-A.offsetTop-A.offsetHeight,Zt=Math.max(he,ye+(Ye?J:0)+et+X),An=xe+Zt;u.style.height=An+"px"}else{const Ye=q.length>0&&C===q[0].ref.current;u.style.top="0px";const Zt=Math.max(se,ae+A.offsetTop+(Ye?F:0)+ye)+je;u.style.height=Zt+"px",A.scrollTop=xe-se+A.offsetTop}u.style.margin=`${vr}px 0`,u.style.minHeight=P+"px",u.style.maxHeight=te+"px",r?.(),requestAnimationFrame(()=>_.current=!0)}},[y,s.trigger,s.valueNode,u,f,A,C,w,s.dir,r]);ln(()=>T(),[T]);const[N,R]=E.useState();ln(()=>{f&&R(window.getComputedStyle(f).zIndex)},[f]);const I=E.useCallback(D=>{D&&S.current===!0&&(T(),x?.(),S.current=!1)},[T,x]);return v.jsx(C7,{scope:n,contentWrapper:u,shouldExpandOnScrollRef:_,onScrollButtonChange:I,children:v.jsx("div",{ref:d,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:N},children:v.jsx(He.div,{...a,ref:g,style:{boxSizing:"border-box",maxHeight:"100%",...a.style}})})})});jI.displayName=w7;var T7="SelectPopperPosition",xv=E.forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:a=vr,...s}=e,l=Lh(n);return v.jsx(d7,{...l,...s,ref:t,align:r,collisionPadding:a,style:{boxSizing:"border-box",...s.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)"}})});xv.displayName=T7;var[C7,P0]=Ws(co,{}),Av="SelectViewport",LI=E.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:r,...a}=e,s=ya(Av,n),l=P0(Av,n),u=wt(t,s.onViewportChange),d=E.useRef(0);return v.jsxs(v.Fragment,{children:[v.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}),v.jsx(Dh.Slot,{scope:n,children:v.jsx(He.div,{"data-radix-select-viewport":"",role:"presentation",...a,ref:u,style:{position:"relative",flex:1,overflow:"hidden auto",...a.style},onScroll:Qe(a.onScroll,f=>{const p=f.currentTarget,{contentWrapper:g,shouldExpandOnScrollRef:y}=l;if(y?.current&&g){const _=Math.abs(d.current-p.scrollTop);if(_>0){const S=window.innerHeight-vr*2,A=parseFloat(g.style.minHeight),C=parseFloat(g.style.height),w=Math.max(A,C);if(w<S){const x=w+_,T=Math.min(S,x),N=x-T;g.style.height=T+"px",g.style.bottom==="0px"&&(p.scrollTop=N>0?N:0,g.style.justifyContent="flex-end")}}}d.current=p.scrollTop})})})]})});LI.displayName=Av;var PI="SelectGroup",[R7,k7]=Ws(PI),MI=E.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,a=ur();return v.jsx(R7,{scope:n,id:a,children:v.jsx(He.div,{role:"group","aria-labelledby":a,...r,ref:t})})});MI.displayName=PI;var zI="SelectLabel",BI=E.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,a=k7(zI,n);return v.jsx(He.div,{id:a.id,...r,ref:t})});BI.displayName=zI;var Zf="SelectItem",[N7,VI]=Ws(Zf),UI=E.forwardRef((e,t)=>{const{__scopeSelect:n,value:r,disabled:a=!1,textValue:s,...l}=e,u=ga(Zf,n),d=ya(Zf,n),f=u.value===r,[p,g]=E.useState(s??""),[y,_]=E.useState(!1),S=wt(t,x=>d.itemRefCallback?.(x,r,a)),A=ur(),C=E.useRef("touch"),w=()=>{a||(u.onValueChange(r),u.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 v.jsx(N7,{scope:n,value:r,disabled:a,textId:A,isSelected:f,onItemTextChange:E.useCallback(x=>{g(T=>T||(x?.textContent??"").trim())},[]),children:v.jsx(Dh.ItemSlot,{scope:n,value:r,disabled:a,textValue:p,children:v.jsx(He.div,{role:"option","aria-labelledby":A,"data-highlighted":y?"":void 0,"aria-selected":f&&y,"data-state":f?"checked":"unchecked","aria-disabled":a||void 0,"data-disabled":a?"":void 0,tabIndex:a?void 0:-1,...l,ref:S,onFocus:Qe(l.onFocus,()=>_(!0)),onBlur:Qe(l.onBlur,()=>_(!1)),onClick:Qe(l.onClick,()=>{C.current!=="mouse"&&w()}),onPointerUp:Qe(l.onPointerUp,()=>{C.current==="mouse"&&w()}),onPointerDown:Qe(l.onPointerDown,x=>{C.current=x.pointerType}),onPointerMove:Qe(l.onPointerMove,x=>{C.current=x.pointerType,a?d.onItemLeave?.():C.current==="mouse"&&x.currentTarget.focus({preventScroll:!0})}),onPointerLeave:Qe(l.onPointerLeave,x=>{x.currentTarget===document.activeElement&&d.onItemLeave?.()}),onKeyDown:Qe(l.onKeyDown,x=>{d.searchRef?.current!==""&&x.key===" "||(g7.includes(x.key)&&w(),x.key===" "&&x.preventDefault())})})})})});UI.displayName=Zf;var hc="SelectItemText",FI=E.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:a,...s}=e,l=ga(hc,n),u=ya(hc,n),d=VI(hc,n),f=_7(hc,n),[p,g]=E.useState(null),y=wt(t,w=>g(w),d.onItemTextChange,w=>u.itemTextRefCallback?.(w,d.value,d.disabled)),_=p?.textContent,S=E.useMemo(()=>v.jsx("option",{value:d.value,disabled:d.disabled,children:_},d.value),[d.disabled,d.value,_]),{onNativeOptionAdd:A,onNativeOptionRemove:C}=f;return ln(()=>(A(S),()=>C(S)),[A,C,S]),v.jsxs(v.Fragment,{children:[v.jsx(He.span,{id:d.textId,...s,ref:y}),d.isSelected&&l.valueNode&&!l.valueNodeHasChildren?ho.createPortal(s.children,l.valueNode):null]})});FI.displayName=hc;var $I="SelectItemIndicator",HI=E.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return VI($I,n).isSelected?v.jsx(He.span,{"aria-hidden":!0,...r,ref:t}):null});HI.displayName=$I;var wv="SelectScrollUpButton",GI=E.forwardRef((e,t)=>{const n=ya(wv,e.__scopeSelect),r=P0(wv,e.__scopeSelect),[a,s]=E.useState(!1),l=wt(t,r.onScrollButtonChange);return ln(()=>{if(n.viewport&&n.isPositioned){let u=function(){const f=d.scrollTop>0;s(f)};const d=n.viewport;return u(),d.addEventListener("scroll",u),()=>d.removeEventListener("scroll",u)}},[n.viewport,n.isPositioned]),a?v.jsx(qI,{...e,ref:l,onAutoScroll:()=>{const{viewport:u,selectedItem:d}=n;u&&d&&(u.scrollTop=u.scrollTop-d.offsetHeight)}}):null});GI.displayName=wv;var Tv="SelectScrollDownButton",KI=E.forwardRef((e,t)=>{const n=ya(Tv,e.__scopeSelect),r=P0(Tv,e.__scopeSelect),[a,s]=E.useState(!1),l=wt(t,r.onScrollButtonChange);return ln(()=>{if(n.viewport&&n.isPositioned){let u=function(){const f=d.scrollHeight-d.clientHeight,p=Math.ceil(d.scrollTop)<f;s(p)};const d=n.viewport;return u(),d.addEventListener("scroll",u),()=>d.removeEventListener("scroll",u)}},[n.viewport,n.isPositioned]),a?v.jsx(qI,{...e,ref:l,onAutoScroll:()=>{const{viewport:u,selectedItem:d}=n;u&&d&&(u.scrollTop=u.scrollTop+d.offsetHeight)}}):null});KI.displayName=Tv;var qI=E.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...a}=e,s=ya("SelectScrollButton",n),l=E.useRef(null),u=jh(n),d=E.useCallback(()=>{l.current!==null&&(window.clearInterval(l.current),l.current=null)},[]);return E.useEffect(()=>()=>d(),[d]),ln(()=>{u().find(p=>p.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:"nearest"})},[u]),v.jsx(He.div,{"aria-hidden":!0,...a,ref:t,style:{flexShrink:0,...a.style},onPointerDown:Qe(a.onPointerDown,()=>{l.current===null&&(l.current=window.setInterval(r,50))}),onPointerMove:Qe(a.onPointerMove,()=>{s.onItemLeave?.(),l.current===null&&(l.current=window.setInterval(r,50))}),onPointerLeave:Qe(a.onPointerLeave,()=>{d()})})}),O7="SelectSeparator",WI=E.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return v.jsx(He.div,{"aria-hidden":!0,...r,ref:t})});WI.displayName=O7;var Cv="SelectArrow",I7=E.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,a=Lh(n),s=ga(Cv,n),l=ya(Cv,n);return s.open&&l.position==="popper"?v.jsx(f7,{...a,...r,ref:t}):null});I7.displayName=Cv;var D7="SelectBubbleInput",ZI=E.forwardRef(({__scopeSelect:e,value:t,...n},r)=>{const a=E.useRef(null),s=wt(r,a),l=h7(t);return E.useEffect(()=>{const u=a.current;if(!u)return;const d=window.HTMLSelectElement.prototype,p=Object.getOwnPropertyDescriptor(d,"value").set;if(l!==t&&p){const g=new Event("change",{bubbles:!0});p.call(u,t),u.dispatchEvent(g)}},[l,t]),v.jsx(He.select,{...n,style:{...xI,...n.style},ref:s,defaultValue:t})});ZI.displayName=D7;function YI(e){return e===""||e===void 0}function XI(e){const t=Sr(e),n=E.useRef(""),r=E.useRef(0),a=E.useCallback(l=>{const u=n.current+l;t(u),(function d(f){n.current=f,window.clearTimeout(r.current),f!==""&&(r.current=window.setTimeout(()=>d(""),1e3))})(u)},[t]),s=E.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return E.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,a,s]}function QI(e,t,n){const a=t.length>1&&Array.from(t).every(f=>f===t[0])?t[0]:t,s=n?e.indexOf(n):-1;let l=j7(e,Math.max(s,0));a.length===1&&(l=l.filter(f=>f!==n));const d=l.find(f=>f.textValue.toLowerCase().startsWith(a.toLowerCase()));return d!==n?d:void 0}function j7(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var L7=AI,P7=TI,M7=RI,z7=kI,B7=NI,V7=OI,U7=LI,F7=MI,$7=BI,H7=UI,G7=FI,K7=HI,q7=GI,W7=KI,Z7=WI;const Y7=L7,X7=F7,Q7=M7,J7=({validationStyleEnabled:e=!1,className:t,children:n,...r})=>v.jsxs(P7,{className:_e("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,v.jsx(z7,{asChild:!0,children:v.jsx(M2,{className:"size-4 opacity-50"})})]}),JI=({className:e,...t})=>v.jsx(q7,{className:_e("flex cursor-default items-center justify-center py-1",e),...t,children:v.jsx(L2,{})}),eD=({className:e,...t})=>v.jsx(W7,{className:_e("flex cursor-default items-center justify-center py-1",e),...t,children:v.jsx(k1,{})}),eW=({className:e,children:t,position:n="popper",...r})=>v.jsx(B7,{children:v.jsxs(V7,{className:_e("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:[v.jsx(JI,{}),v.jsx(U7,{className:_e("p-1",n==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t}),v.jsx(eD,{})]})}),tW=({className:e,...t})=>v.jsx($7,{className:_e("px-1 py-0.5 text-sm font-semibold",e),...t}),nW=({className:e,children:t,...n})=>v.jsxs(H7,{className:_e("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:[v.jsx("span",{className:"absolute right-2 flex size-3.5 items-center justify-center",children:v.jsx(K7,{children:v.jsx(zs,{className:"size-4"})})}),v.jsx(G7,{children:t})]}),rW=({className:e,...t})=>v.jsx(Z7,{className:_e("-mx-1 my-1 h-px bg-red-300",e),...t}),Re=Y7;Re.Group=X7;Re.Value=Q7;Re.Trigger=J7;Re.ScrollUpButton=JI;Re.ScrollDownButton=eD;Re.Content=eW;Re.Label=tW;Re.Item=nW;Re.Separator=rW;const iW=e=>e?.getAttribute("aria-selected")==="true",aW=(e,t=iW,n=!1)=>{const[r,a]=E.useState(null),[s,l]=E.useState(null),u=e.current.length;return E.useEffect(()=>{const d=()=>{let A=null;if(s?A=s:A=e.current.find(t)??null,!A){a(x=>({left:0,width:0,...x,opacity:0}));return}const C=A.offsetLeft,w=A.offsetWidth;a({left:C,width:w,opacity:1})};d(),window.addEventListener("resize",d),window.addEventListener("DOMContentLoaded",d);const f=[];e.current.forEach(A=>{if(A){const C=new MutationObserver(w=>{for(const x of w)if(x.type==="attributes"&&x.attributeName==="aria-selected"){d();break}});C.observe(A,{attributes:!0,attributeFilter:["aria-selected"]}),f.push(C)}});const p=[],g=A=>{if(!A)return;const C=new ResizeObserver(()=>{d()});C.observe(A),p.push(C)},y=e.current.find(t)??null;y&&g(y),s&&g(s);const _=A=>{l(A.currentTarget)},S=()=>{l(null)};return n&&e.current.forEach(A=>{A?.addEventListener("mouseenter",_,{passive:!0}),A?.addEventListener("mouseleave",S,{passive:!0})}),()=>{window.removeEventListener("resize",d),window.removeEventListener("DOMContentLoaded",d),f.forEach(A=>A.disconnect()),p.forEach(A=>A.disconnect()),e.current.forEach(A=>{A?.removeEventListener("mouseenter",_),A?.removeEventListener("mouseleave",S)})}},[e,t,s,u]),{choiceIndicatorPosition:r}},oW=[{content:"Off",value:!1},{content:"On",value:!0}];var fu=(e=>(e.PRIMARY="primary",e.SECONDARY="secondary",e.DESTRUCTIVE="destructive",e.NEUTRAL="neutral",e.LIGHT="light",e.DARK="dark",e.TEXT="text",e))(fu||{});const sW=fr("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"}});var hu=(e=>(e.SM="sm",e.MD="md",e.LG="lg",e))(hu||{});const lW=fr("z-1 w-full flex-1 text-sm font-medium transition-all duration-300 ease-in-out cursor-pointer 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"}}),cW=fr("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"}}}),pu=({choices:e=oW,value:t,defaultValue:n,onChange:r,color:a="primary",size:s="md",className:l})=>{const[u,d]=E.useState(t??n??e[0].value),f=E.useRef([]),p=E.useRef(null),{choiceIndicatorPosition:g}=aW(f),y=_=>{d(_),r?.(_)};return E.useEffect(()=>{t!==void 0&&d(t)},[t]),v.jsx("div",{className:sW({color:a,className:l}),role:"tablist",children:v.jsxs("div",{className:"relative flex size-full flex-row items-center justify-center",children:[e.map((_,S)=>{const{content:A,value:C,...w}=_,x=typeof C=="string"||typeof C=="number",T=C===u;return E.createElement("button",{...w,className:_e(lW({size:s})),key:x?C:S,role:"tab",onClick:()=>y(C),"aria-selected":T,disabled:T,ref:N=>{f.current[S]=N}},A)}),g&&v.jsx("div",{className:_e(cW({color:a})),style:g,ref:p})]})})};function tD(e,t,n){function r(u,d){var f;Object.defineProperty(u,"_zod",{value:u._zod??{},enumerable:!1}),(f=u._zod).traits??(f.traits=new Set),u._zod.traits.add(e),t(u,d);for(const p in l.prototype)p in u||Object.defineProperty(u,p,{value:l.prototype[p].bind(u)});u._zod.constr=l,u._zod.def=d}const a=n?.Parent??Object;class s extends a{}Object.defineProperty(s,"name",{value:e});function l(u){var d;const f=n?.Parent?new s:this;r(f,u),(d=f._zod).deferred??(d.deferred=[]);for(const p of f._zod.deferred)p();return f}return Object.defineProperty(l,"init",{value:r}),Object.defineProperty(l,Symbol.hasInstance,{value:u=>n?.Parent&&u instanceof n.Parent?!0:u?._zod?.traits?.has(e)}),Object.defineProperty(l,"name",{value:e}),l}let uW=class extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}};const dW={};function nD(e){return dW}function fW(e,t){return typeof t=="bigint"?t.toString():t}const rD="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function Kd(e){return typeof e=="string"?e:e?.message}function iD(e,t,n){const r={...e,path:e.path??[]};if(!e.message){const a=Kd(e.inst?._zod.def?.error?.(e))??Kd(t?.error?.(e))??Kd(n.customError?.(e))??Kd(n.localeError?.(e))??"Invalid input";r.message=a}return delete r.inst,delete r.continue,t?.reportInput||delete r.input,r}const aD=(e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),e.message=JSON.stringify(t,fW,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},hW=tD("$ZodError",aD),oD=tD("$ZodError",aD,{Parent:Error}),pW=e=>(t,n,r,a)=>{const s=r?Object.assign(r,{async:!1}):{async:!1},l=t._zod.run({value:n,issues:[]},s);if(l instanceof Promise)throw new uW;if(l.issues.length){const u=new(a?.Err??e)(l.issues.map(d=>iD(d,s,nD())));throw rD(u,a?.callee),u}return l.value},mW=pW(oD),gW=e=>async(t,n,r,a)=>{const s=r?Object.assign(r,{async:!0}):{async:!0};let l=t._zod.run({value:n,issues:[]},s);if(l instanceof Promise&&(l=await l),l.issues.length){const u=new(a?.Err??e)(l.issues.map(d=>iD(d,s,nD())));throw rD(u,a?.callee),u}return l.value},yW=gW(oD);function yC(e,t){try{var n=e()}catch(r){return t(r)}return n&&n.then?n.then(void 0,t):n}function vW(e,t){for(var n={};e.length;){var r=e[0],a=r.code,s=r.message,l=r.path.join(".");if(!n[l])if("unionErrors"in r){var u=r.unionErrors[0].errors[0];n[l]={message:u.message,type:u.code}}else n[l]={message:s,type:a};if("unionErrors"in r&&r.unionErrors.forEach(function(p){return p.errors.forEach(function(g){return e.push(g)})}),t){var d=n[l].types,f=d&&d[r.code];n[l]=x0(l,t,n,a,f?[].concat(f,r.message):r.message)}e.shift()}return n}function bW(e,t){for(var n={};e.length;){var r=e[0],a=r.code,s=r.message,l=r.path.join(".");if(!n[l])if(r.code==="invalid_union"&&r.errors.length>0){var u=r.errors[0][0];n[l]={message:u.message,type:u.code}}else n[l]={message:s,type:a};if(r.code==="invalid_union"&&r.errors.forEach(function(p){return p.forEach(function(g){return e.push(g)})}),t){var d=n[l].types,f=d&&d[r.code];n[l]=x0(l,t,n,a,f?[].concat(f,r.message):r.message)}e.shift()}return n}function _W(e,t,n){if(n===void 0&&(n={}),(function(r){return"_def"in r&&typeof r._def=="object"&&"typeName"in r._def})(e))return function(r,a,s){try{return Promise.resolve(yC(function(){return Promise.resolve(e[n.mode==="sync"?"parse":"parseAsync"](r,t)).then(function(l){return s.shouldUseNativeValidation&&vv({},s),{errors:{},values:n.raw?Object.assign({},r):l}})},function(l){if((function(u){return Array.isArray(u?.issues)})(l))return{values:{},errors:eC(vW(l.errors,!s.shouldUseNativeValidation&&s.criteriaMode==="all"),s)};throw l}))}catch(l){return Promise.reject(l)}};if((function(r){return"_zod"in r&&typeof r._zod=="object"})(e))return function(r,a,s){try{return Promise.resolve(yC(function(){return Promise.resolve((n.mode==="sync"?mW:yW)(e,r,t)).then(function(l){return s.shouldUseNativeValidation&&vv({},s),{errors:{},values:n.raw?Object.assign({},r):l}})},function(l){if((function(u){return u instanceof hW})(l))return{values:{},errors:eC(bW(l.issues,!s.shouldUseNativeValidation&&s.criteriaMode==="all"),s)};throw l}))}catch(l){return Promise.reject(l)}};throw new Error("Invalid input: not a Zod schema")}const sy=async e=>e&&typeof e.then=="function"?await e:e,EW=({schema:e,onSubmit:t,onSubmitSuccess:n,onSubmitError:r,className:a,children:s,autoComplete:l,...u})=>{const d=async f=>{const p=e?.safeParse(f)??{success:!0,data:void 0};await sy(t?.(f)),p.success?await sy(n?.(p.data)):await sy(r?.(new Error(p.error.issues.map(g=>g.message).join(", "))))};return v.jsx(sq,{...u,children:v.jsx("form",{className:_e("flex size-full flex-col gap-y-6",a),onSubmit:u.handleSubmit(d),autoComplete:l?"on":"off",noValidate:!0,children:s})})},SW=(e,t)=>{const n=Tq({resolver:_W(e),...t}),r=n.formState.isSubmitting,a=n.formState.isSubmitted,s=n.formState.isLoading,l=n.formState.isValid;return{form:n,isSubmitting:r,isSubmitted:a,isLoading:s,isValid:l}},xW=e=>{const{error:t,formItemId:n,formDescriptionId:r,formMessageId:a}=ma();return v.jsx(l$,{id:n,"aria-describedby":t?`${r} ${a}`:`${r}`,"aria-invalid":!!t,...e})},AW=e=>{const{formDescriptionId:t}=ma();return v.jsx("p",{className:"text-neutral text-sm",id:t,...e})},wW=({children:e,...t})=>{const{error:n,formMessageId:r}=ma(),a=n?String(n?.message??""):e;return a?v.jsx("p",{className:"text-error text-xs font-medium",role:"alert",id:r,...t,children:a}):null},Ph=({label:e,description:t,isRequired:n,info:r,children:a,showErrorMessage:s=!0,htmlFor:l})=>v.jsxs($e.Item,{className:"flex w-full flex-col gap-2 p-2",children:[(t||e)&&v.jsxs("div",{className:"flex flex-col gap-1 p-1 leading-none",children:[e&&v.jsx(JO,{isRequired:n,info:r,htmlFor:l,children:e}),t&&v.jsx($e.Description,{children:t})]}),v.jsx($e.Control,{children:a}),s&&v.jsx($e.Message,{"data-testid":"error-message"})]}),TW=({field:e,name:t,label:n,Element:r,isRequired:a=!1,info:s,description:l,showErrorMessage:u=!0,...d})=>{const{error:f}=ma();return v.jsx(Ph,{htmlFor:t,label:n,description:l,isRequired:a,info:s,showErrorMessage:u,"aria-invalid":!!f,children:v.jsx(r,{"data-testid":"element",id:t,...e,...d,children:d.children})})},va=e=>{const{control:t}=pa();return v.jsx($e.Field,{control:t,name:e.name,render:({field:n})=>v.jsx(TW,{...e,field:n})})},CW=e=>v.jsx(va,{id:e.name,"data-testid":e.name,Element:Gs,"aria-labelledby":e.label?`${e.name}-label`:void 0,"aria-label":e.label?void 0:e.name,...e}),RW=({autoComplete:e,...t})=>v.jsx(va,{Element:Iq,id:t.name,"data-testid":t.name,"aria-labelledby":t.label?`${t.name}-label`:void 0,"aria-label":t.label?void 0:t.name,autoComplete:e,minLength:6,maxLength:255,...t}),kW=e=>v.jsx(va,{Element:WO,id:e.name,"aria-labelledby":e.label?`${e.name}-label`:void 0,"aria-label":e.label?void 0:e.name,"data-testid":e.name,...e}),NW=e=>v.jsx(va,{id:e.name,"data-testid":e.name,"aria-labelledby":e.label?`${e.name}-label`:void 0,"aria-label":e.label?void 0:e.name,Element:YO,...e}),OW=e=>v.jsx(va,{id:e.name,"data-testid":e.name,"aria-labelledby":e.label?`${e.name}-label`:void 0,"aria-label":e.label?void 0:e.name,Element:XO,...e}),IW=e=>v.jsx(va,{Element:T0,id:e.name,"data-testid":e.name,...e}),DW=({inputLabel:e,...t})=>v.jsx(Oq,{...t,label:e}),jW=({autoComplete:e,...t})=>v.jsx(va,{Element:DW,id:t.name,"data-testid":t.name,autoComplete:e,minLength:6,maxLength:255,...t}),LW=({name:e,description:t,label:n,isRequired:r,info:a,showErrorMessage:s,children:l,...u})=>{const{control:d}=pa();return v.jsx($e.Field,{control:d,name:e,render:({field:f})=>{const{error:p}=ma();return v.jsx(Ph,{htmlFor:e,label:n,description:t,isRequired:r,info:a,showErrorMessage:s,"aria-invalid":!!p,children:v.jsx(mn,{onValueChange:f.onChange,values:f.value,...u,children:l})})}})},PW=({name:e,description:t,label:n,isRequired:r,info:a,showErrorMessage:s,children:l,...u})=>{const{control:d}=pa();return v.jsx($e.Field,{control:d,name:e,render:({field:f})=>{const{error:p}=ma();return v.jsx(Ph,{htmlFor:e,label:n,description:t,isRequired:r,info:a,showErrorMessage:s,"aria-invalid":!!p,children:v.jsx(Re,{onValueChange:f.onChange,defaultValue:f.value,...u,children:l})})}})},MW=({name:e,description:t,label:n,isRequired:r,info:a,showErrorMessage:s,children:l,...u})=>{const{control:d}=pa();return v.jsx($e.Field,{control:d,name:e,render:({field:f})=>{const{error:p}=ma();return v.jsx(Ph,{htmlFor:e,label:n,description:t,isRequired:r,info:a,showErrorMessage:s,"aria-invalid":!!p,children:v.jsx(pu,{...f,...u,children:l})})}})},$e=EW;$e.Description=AW;$e.Control=xW;$e.Field=kq;$e.Item=Rq;$e.Label=JO;$e.Message=wW;$e.Element=va;$e.Input=CW;$e.InputPassword=RW;$e.Checkbox=jW;$e.TextArea=kW;$e.AutoSizedTextArea=IW;$e.Button=ot;$e.Select=PW;$e.MultiSelect=LW;$e.EditableFieldInput=NW;$e.EditableFieldTextArea=OW;$e.SwitchSelector=MW;const sD=({dictionary:e,mode:t,className:n,onDelete:r,...a})=>{const[s,l]=E.useState(!1),{setLocaleDictionary:u}=dh(),{mutate:d,isPending:f}=JK(),{mutate:p,isPending:g}=iq(),{mutate:y,isPending:_}=QK(),S=g||_,{editedContent:A,restoreEditedContent:C}=xn(),{deleteButton:w,resetButton:x,saveButton:T,publishButton:N,downloadButton:R,confirmation:I}=cn("save-dictionary-details"),{isAuthenticated:D}=cu(),L=A?.[e.localId],H=L&&JSON.stringify(L)!==JSON.stringify(e),Z=typeof e?.id<"u",q=async()=>{if(!A?.[e.localId])return;const W={...e,...A?.[e.localId]};p({dictionary:W},{onSuccess:()=>{u(A?.[e.localId]),C(e.localId)}})},te=()=>{if(!A?.[e.localId])return;const W={...e,...A?.[e.localId]};y([W],{onSuccess:ae=>{ae&&(u(A?.[e.localId]),C(e.localId))}})},ce=()=>{e.id&&d(e.id.toString(),{onSuccess:W=>{W&&r?.()}})};return v.jsxs(v.Fragment,{children:[v.jsx(p0,{isOpen:s,title:I.title.value,size:h0.MD,children:v.jsxs("form",{className:"size-full px-3",children:[v.jsx("p",{className:"text-neutral py-4 text-sm",children:I.message}),v.jsxs("div",{className:"mt-12 flex justify-end gap-2 max-md:flex-col",children:[v.jsx($e.Button,{label:I.cancelButton.label.value,disabled:!H||S,color:it.TEXT,className:"max-md:w-full",variant:at.OUTLINE,onClick:()=>l(!1),children:I.cancelButton.text}),v.jsx($e.Button,{label:I.confirmButton.label.value,disabled:!H||S,Icon:RA,color:it.TEXT,className:"max-md:w-full",isLoading:_,onClick:q,children:I.confirmButton.text})]})]})}),v.jsxs("form",{className:_e("flex justify-end gap-2 max-md:flex-col",n),...a,children:[t.includes("remote")&&Z&&r&&D&&v.jsx($e.Button,{label:w.label.value,Icon:mh,color:it.ERROR,variant:at.OUTLINE,className:"max-md:w-full",isLoading:f,onClick:ce,children:w.text}),H&&v.jsx($e.Button,{label:x.label.value,disabled:!H,Icon:aF,variant:at.OUTLINE,color:it.TEXT,className:"max-md:w-full",onClick:()=>C(e.localId),children:x.text}),t.includes("local")&&v.jsx($e.Button,{label:R.label.value,disabled:!H||S,Icon:$2,color:it.TEXT,variant:D?at.OUTLINE:at.DEFAULT,className:"max-md:w-full",isLoading:g,onClick:()=>l(!0),children:R.text}),t.includes("remote")&&D&&!Z&&v.jsx($e.Button,{label:N.label.value,disabled:S,Icon:R2,color:it.TEXT,className:"max-md:w-full",isLoading:_,onClick:te,children:N.text}),t.includes("remote")&&D&&Z&&H&&v.jsx($e.Button,{label:T.label.value,disabled:!H||S,Icon:RA,color:"text",className:"max-md:w-full",isLoading:_,onClick:te,children:T.text})]})]})},lD=({level:e,title:t,description:n,children:r,rightParam:a,isSelected:s,...l})=>v.jsx("div",{className:_e("rounded-md p-2 transition","hover:bg-card/30 [&:has(.section:hover)]:bg-transparent",e===2&&"hover:bg-card/30",e>=3&&"",s===!0&&"bg-card/40"),...l,children:v.jsx(H1,{isOpen:s,label:t,header:v.jsxs("div",{className:"flex w-full",children:[v.jsxs("div",{className:"flex w-full items-center justify-between",children:[v.jsx("span",{className:_e(e===0&&"text-2xl",e===1&&"text-xl",e===2&&"text-lg",e>=3&&"text-base"),children:t}),a&&v.jsx("div",{className:"flex w-auto items-center justify-between p-3",children:a})]}),n&&v.jsx("p",{className:"text-card pl-3 text-sm",children:n})]}),children:r})}),cD=({keyPath:e,section:t,editedContent:n,editedContentValue:r,onContentChange:a,onFocusKeyPath:s,renderSection:l})=>{const u=r??lr(n,e);if(u&&typeof u!="string")return v.jsx(v.Fragment,{children:"Error loading section - Edited content Incoherence with the original content format"});const d=e.length,f=String(u??t);return v.jsx("span",{role:"button",tabIndex:0,className:_e("w-full rounded-md p-2 text-left transition","hover:bg-card/30 [&:has(.section:hover)]:bg-transparent",d===2&&"hover:bg-card/30",d>=3&&""),onClick:p=>{p.stopPropagation(),s(e)},children:typeof l=="function"?l(f):v.jsx(XO,{"aria-label":"Editable field",defaultValue:f,onSave:p=>a({keyPath:e,newValue:p}),onCancel:()=>null})})},zW=e=>{const{keyPath:t,section:n}=e,{addEditedContent:r}=xn(),a=lr(e.editedContent,t),s=n[$.File],{content:l}=n,u=[...t,{type:$.File}];return v.jsxs("div",{className:"ml-2 grid grid-cols-[auto,1fr] gap-2",children:[v.jsxs("span",{className:"text-neutral text-sm",children:[s," "]}),v.jsx(cD,{...e,keyPath:u,section:l,editedContentValue:a?.content,onContentChange:d=>{r(e.dictionary.key,{...n,content:d.newValue},t)}})]})},BW=e=>{const{keyPath:t,section:n,onFocusKeyPath:r,focusedKeyPath:a=[]}=e;return n.map((s,l)=>{const u={key:l,type:$.Array},d=[...t,u];return v.jsx(lD,{level:t.length,title:`${l}`,description:"",isSelected:Zc(d,a),onClick:f=>{f.stopPropagation(),r(d)},children:v.jsx(ba,{...e,keyPath:d,section:s})},JSON.stringify(s))})},VW=e=>{const{keyPath:t,section:n}=e;return v.jsx("div",{className:"ml-2 grid grid-cols-[auto,1fr] gap-2",children:Object.keys(n).filter(r=>!M0.includes(r)).map(r=>{const a={type:$.Condition,key:r},s=[...t,a],l=n[$.Condition][r];return v.jsxs(v.Fragment,{children:[v.jsx("span",{className:"flex items-center font-bold",children:r}),E.createElement(ba,{...e,key:r,keyPath:s,section:l})]})})})},UW=e=>{const{keyPath:t,section:n}=e;return v.jsx("div",{className:"ml-2 grid grid-cols-[auto,1fr] gap-2",children:Object.keys(n).filter(r=>!M0.includes(r)).map(r=>{const a={type:$.Enumeration,key:r},s=[...t,a],l=n[$.Enumeration][r];return v.jsxs(v.Fragment,{children:[v.jsx("span",{className:"flex items-center font-bold",children:r}),E.createElement(ba,{...e,key:r,keyPath:s,section:l})]})})})},FW=e=>{const{keyPath:t,section:n}=e,r=[...t,{type:$.Insertion}],a=n[$.Insertion];return v.jsx("div",{className:"ml-2 grid grid-cols-[auto,1fr] gap-2",children:v.jsx(ba,{...e,keyPath:r,section:a})})},$W=e=>{const{keyPath:t,section:n}=e,r=[...t,{type:$.Markdown}],a=n[$.Markdown];return v.jsx("div",{className:"ml-2 grid grid-cols-[auto,1fr] gap-2",children:v.jsx(ba,{...e,keyPath:r,section:a})})},HW=e=>{const{keyPath:t,section:n,focusedKeyPath:r=[],onFocusKeyPath:a}=e;return Object.keys(n).filter(s=>!M0.includes(s)).map(s=>{const l={key:s,type:$.Object},u=[...t,l];return v.jsx(lD,{level:t.length,title:s,description:"",isSelected:Zc(u,r),onClick:d=>{d.stopPropagation(),a(u)},children:v.jsx(ba,{...e,keyPath:u,section:n[s]})},s)})},GW=e=>{const{keyPath:t,section:n,locale:r}=e,a={type:$.Translation,key:r},s=[...t,a],l=n.translation[r];return v.jsx(ba,{...e,keyPath:s,section:l})},M0=["filePath","id","nodeType"],ba=e=>{const n=lr(e.editedContent,e.keyPath)??e.section,r=js(n);if(typeof n=="object")return r===$.ReactNode?v.jsx("span",{className:"text-neutral text-xs",children:"React node not editable"}):r===$.Nested?v.jsx("div",{className:"ml-2 grid grid-cols-[auto,1fr] gap-2",children:"[Nested] Dictionary"}):r===$.Markdown?v.jsx($W,{...e,section:n}):r===$.Translation?v.jsx(GW,{...e,section:n}):r===$.Enumeration?v.jsx(UW,{...e,section:n}):r===$.Condition?v.jsx(VW,{...e,section:n}):r===$.Insertion?v.jsx(FW,{...e,section:n}):r===$.Array?v.jsx(BW,{...e,section:n}):r===$.File?v.jsx(zW,{...e,section:n}):v.jsx(HW,{...e,section:n});if(typeof n=="string")return v.jsx(cD,{...e,section:n})},KW=({dictionary:e,mode:t,onDelete:n,...r})=>{const{editedContent:a,addEditedContent:s}=xn(),{focusedContent:l,setFocusedContentKeyPath:u,setFocusedContent:d}=da(),f=l?.keyPath;return v.jsxs("div",{className:"flex flex-1 flex-col justify-between gap-2",children:[v.jsx("div",{children:E.createElement(ba,{...r,keyPath:[],dictionary:e,key:JSON.stringify((a?.[e.localId]??e).content),editedContent:a?.[e.localId]?.content,focusedKeyPath:f,section:e.content,onContentChange:p=>{s(e.localId,p.newValue,p.keyPath)},onFocusKeyPath:u})}),v.jsx(sD,{dictionary:e,mode:t,className:"mb-4 flex-col",onDelete:()=>{d(null),n?.()}})]})};function pe(e,t,n){function r(u,d){var f;Object.defineProperty(u,"_zod",{value:u._zod??{},enumerable:!1}),(f=u._zod).traits??(f.traits=new Set),u._zod.traits.add(e),t(u,d);for(const p in l.prototype)p in u||Object.defineProperty(u,p,{value:l.prototype[p].bind(u)});u._zod.constr=l,u._zod.def=d}const a=n?.Parent??Object;class s extends a{}Object.defineProperty(s,"name",{value:e});function l(u){var d;const f=n?.Parent?new s:this;r(f,u),(d=f._zod).deferred??(d.deferred=[]);for(const p of f._zod.deferred)p();return f}return Object.defineProperty(l,"init",{value:r}),Object.defineProperty(l,Symbol.hasInstance,{value:u=>n?.Parent&&u instanceof n.Parent?!0:u?._zod?.traits?.has(e)}),Object.defineProperty(l,"name",{value:e}),l}class Vc extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}const uD={};function uo(e){return uD}function qW(e){const t=Object.values(e).filter(r=>typeof r=="number");return Object.entries(e).filter(([r,a])=>t.indexOf(+r)===-1).map(([r,a])=>a)}function WW(e,t){return typeof t=="bigint"?t.toString():t}function dD(e){return{get value(){{const t=e();return Object.defineProperty(this,"value",{value:t}),t}}}}function z0(e){return e==null}function B0(e){const t=e.startsWith("^")?1:0,n=e.endsWith("$")?e.length-1:e.length;return e.slice(t,n)}function _t(e,t,n){Object.defineProperty(e,t,{get(){{const r=n();return e[t]=r,r}},set(r){Object.defineProperty(e,t,{value:r})},configurable:!0})}function V0(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function lc(e){return JSON.stringify(e)}const fD=Error.captureStackTrace?Error.captureStackTrace:(...e)=>{};function Rv(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}const ZW=dD(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{const e=Function;return new e(""),!0}catch{return!1}});function kv(e){if(Rv(e)===!1)return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(Rv(n)===!1||Object.prototype.hasOwnProperty.call(n,"isPrototypeOf")===!1)}const YW=new Set(["string","number","symbol"]);function Mh(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function go(e,t,n){const r=new e._zod.constr(t??e._zod.def);return(!t||n?.parent)&&(r._zod.parent=e),r}function ze(e){const t=e;if(!t)return{};if(typeof t=="string")return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error=="string"?{...t,error:()=>t.error}:t}function XW(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}function QW(e,t){const n={},r=e._zod.def;for(const a in t){if(!(a in r.shape))throw new Error(`Unrecognized key: "${a}"`);t[a]&&(n[a]=r.shape[a])}return go(e,{...e._zod.def,shape:n,checks:[]})}function JW(e,t){const n={...e._zod.def.shape},r=e._zod.def;for(const a in t){if(!(a in r.shape))throw new Error(`Unrecognized key: "${a}"`);t[a]&&delete n[a]}return go(e,{...e._zod.def,shape:n,checks:[]})}function eZ(e,t){if(!kv(t))throw new Error("Invalid input to extend: expected a plain object");const n={...e._zod.def,get shape(){const r={...e._zod.def.shape,...t};return V0(this,"shape",r),r},checks:[]};return go(e,n)}function tZ(e,t){return go(e,{...e._zod.def,get shape(){const n={...e._zod.def.shape,...t._zod.def.shape};return V0(this,"shape",n),n},catchall:t._zod.def.catchall,checks:[]})}function nZ(e,t,n){const r=t._zod.def.shape,a={...r};if(n)for(const s in n){if(!(s in r))throw new Error(`Unrecognized key: "${s}"`);n[s]&&(a[s]=e?new e({type:"optional",innerType:r[s]}):r[s])}else for(const s in r)a[s]=e?new e({type:"optional",innerType:r[s]}):r[s];return go(t,{...t._zod.def,shape:a,checks:[]})}function rZ(e,t,n){const r=t._zod.def.shape,a={...r};if(n)for(const s in n){if(!(s in a))throw new Error(`Unrecognized key: "${s}"`);n[s]&&(a[s]=new e({type:"nonoptional",innerType:r[s]}))}else for(const s in r)a[s]=new e({type:"nonoptional",innerType:r[s]});return go(t,{...t._zod.def,shape:a,checks:[]})}function xc(e,t=0){for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue!==!0)return!0;return!1}function U0(e,t){return t.map(n=>{var r;return(r=n).path??(r.path=[]),n.path.unshift(e),n})}function qd(e){return typeof e=="string"?e:e?.message}function fo(e,t,n){const r={...e,path:e.path??[]};if(!e.message){const a=qd(e.inst?._zod.def?.error?.(e))??qd(t?.error?.(e))??qd(n.customError?.(e))??qd(n.localeError?.(e))??"Invalid input";r.message=a}return delete r.inst,delete r.continue,t?.reportInput||delete r.input,r}function F0(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function Uc(...e){const[t,n,r]=e;return typeof t=="string"?{message:t,code:"custom",input:n,inst:r}:{...t}}const hD=(e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),Object.defineProperty(e,"message",{get(){return JSON.stringify(t,WW,2)},enumerable:!0}),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},pD=pe("$ZodError",hD),mD=pe("$ZodError",hD,{Parent:Error});function iZ(e,t=n=>n.message){const n={},r=[];for(const a of e.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}}function aZ(e,t){const n=t||function(s){return s.message},r={_errors:[]},a=s=>{for(const l of s.issues)if(l.code==="invalid_union"&&l.errors.length)l.errors.map(u=>a({issues:u}));else if(l.code==="invalid_key")a({issues:l.issues});else if(l.code==="invalid_element")a({issues:l.issues});else if(l.path.length===0)r._errors.push(n(l));else{let u=r,d=0;for(;d<l.path.length;){const f=l.path[d];d===l.path.length-1?(u[f]=u[f]||{_errors:[]},u[f]._errors.push(n(l))):u[f]=u[f]||{_errors:[]},u=u[f],d++}}};return a(e),r}const oZ=e=>(t,n,r,a)=>{const s=r?Object.assign(r,{async:!1}):{async:!1},l=t._zod.run({value:n,issues:[]},s);if(l instanceof Promise)throw new Vc;if(l.issues.length){const u=new(a?.Err??e)(l.issues.map(d=>fo(d,s,uo())));throw fD(u,a?.callee),u}return l.value},sZ=e=>async(t,n,r,a)=>{const s=r?Object.assign(r,{async:!0}):{async:!0};let l=t._zod.run({value:n,issues:[]},s);if(l instanceof Promise&&(l=await l),l.issues.length){const u=new(a?.Err??e)(l.issues.map(d=>fo(d,s,uo())));throw fD(u,a?.callee),u}return l.value},gD=e=>(t,n,r)=>{const a=r?{...r,async:!1}:{async:!1},s=t._zod.run({value:n,issues:[]},a);if(s instanceof Promise)throw new Vc;return s.issues.length?{success:!1,error:new(e??pD)(s.issues.map(l=>fo(l,a,uo())))}:{success:!0,data:s.value}},lZ=gD(mD),yD=e=>async(t,n,r)=>{const a=r?Object.assign(r,{async:!0}):{async:!0};let s=t._zod.run({value:n,issues:[]},a);return s instanceof Promise&&(s=await s),s.issues.length?{success:!1,error:new e(s.issues.map(l=>fo(l,a,uo())))}:{success:!0,data:s.value}},cZ=yD(mD),uZ=/^[cC][^\s-]{8,}$/,dZ=/^[0-9a-z]+$/,fZ=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,hZ=/^[0-9a-vA-V]{20}$/,pZ=/^[A-Za-z0-9]{27}$/,mZ=/^[a-zA-Z0-9_-]{21}$/,gZ=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,yZ=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,vC=e=>e?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$/,vZ=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,bZ="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function _Z(){return new RegExp(bZ,"u")}const EZ=/^(?:(?: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])$/,SZ=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})$/,xZ=/^((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])\/([0-9]|[1-2][0-9]|3[0-2])$/,AZ=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,wZ=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,vD=/^[A-Za-z0-9_-]*$/,TZ=/^([a-zA-Z0-9-]+\.)*[a-zA-Z0-9-]+$/,CZ=/^\+(?:[0-9]){6,14}[0-9]$/,bD="(?:(?:\\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])))",RZ=new RegExp(`^${bD}$`);function _D(e){const t="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof e.precision=="number"?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function kZ(e){return new RegExp(`^${_D(e)}$`)}function NZ(e){const t=_D({precision:e.precision}),n=["Z"];e.local&&n.push(""),e.offset&&n.push("([+-]\\d{2}:\\d{2})");const r=`${t}(?:${n.join("|")})`;return new RegExp(`^${bD}T(?:${r})$`)}const OZ=e=>{const t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},IZ=/^[^A-Z]*$/,DZ=/^[^a-z]*$/,Wr=pe("$ZodCheck",(e,t)=>{var n;e._zod??(e._zod={}),e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),jZ=pe("$ZodCheckMaxLength",(e,t)=>{var n;Wr.init(e,t),(n=e._zod.def).when??(n.when=r=>{const a=r.value;return!z0(a)&&a.length!==void 0}),e._zod.onattach.push(r=>{const a=r._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<a&&(r._zod.bag.maximum=t.maximum)}),e._zod.check=r=>{const a=r.value;if(a.length<=t.maximum)return;const l=F0(a);r.issues.push({origin:l,code:"too_big",maximum:t.maximum,inclusive:!0,input:a,inst:e,continue:!t.abort})}}),LZ=pe("$ZodCheckMinLength",(e,t)=>{var n;Wr.init(e,t),(n=e._zod.def).when??(n.when=r=>{const a=r.value;return!z0(a)&&a.length!==void 0}),e._zod.onattach.push(r=>{const a=r._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>a&&(r._zod.bag.minimum=t.minimum)}),e._zod.check=r=>{const a=r.value;if(a.length>=t.minimum)return;const l=F0(a);r.issues.push({origin:l,code:"too_small",minimum:t.minimum,inclusive:!0,input:a,inst:e,continue:!t.abort})}}),PZ=pe("$ZodCheckLengthEquals",(e,t)=>{var n;Wr.init(e,t),(n=e._zod.def).when??(n.when=r=>{const a=r.value;return!z0(a)&&a.length!==void 0}),e._zod.onattach.push(r=>{const a=r._zod.bag;a.minimum=t.length,a.maximum=t.length,a.length=t.length}),e._zod.check=r=>{const a=r.value,s=a.length;if(s===t.length)return;const l=F0(a),u=s>t.length;r.issues.push({origin:l,...u?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:r.value,inst:e,continue:!t.abort})}}),zh=pe("$ZodCheckStringFormat",(e,t)=>{var n,r;Wr.init(e,t),e._zod.onattach.push(a=>{const s=a._zod.bag;s.format=t.format,t.pattern&&(s.patterns??(s.patterns=new Set),s.patterns.add(t.pattern))}),t.pattern?(n=e._zod).check??(n.check=a=>{t.pattern.lastIndex=0,!t.pattern.test(a.value)&&a.issues.push({origin:"string",code:"invalid_format",format:t.format,input:a.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(r=e._zod).check??(r.check=()=>{})}),MZ=pe("$ZodCheckRegex",(e,t)=>{zh.init(e,t),e._zod.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:"string",code:"invalid_format",format:"regex",input:n.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),zZ=pe("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=IZ),zh.init(e,t)}),BZ=pe("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=DZ),zh.init(e,t)}),VZ=pe("$ZodCheckIncludes",(e,t)=>{Wr.init(e,t);const n=Mh(t.includes),r=new RegExp(typeof t.position=="number"?`^.{${t.position}}${n}`:n);t.pattern=r,e._zod.onattach.push(a=>{const s=a._zod.bag;s.patterns??(s.patterns=new Set),s.patterns.add(r)}),e._zod.check=a=>{a.value.includes(t.includes,t.position)||a.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:a.value,inst:e,continue:!t.abort})}}),UZ=pe("$ZodCheckStartsWith",(e,t)=>{Wr.init(e,t);const n=new RegExp(`^${Mh(t.prefix)}.*`);t.pattern??(t.pattern=n),e._zod.onattach.push(r=>{const a=r._zod.bag;a.patterns??(a.patterns=new Set),a.patterns.add(n)}),e._zod.check=r=>{r.value.startsWith(t.prefix)||r.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:r.value,inst:e,continue:!t.abort})}}),FZ=pe("$ZodCheckEndsWith",(e,t)=>{Wr.init(e,t);const n=new RegExp(`.*${Mh(t.suffix)}$`);t.pattern??(t.pattern=n),e._zod.onattach.push(r=>{const a=r._zod.bag;a.patterns??(a.patterns=new Set),a.patterns.add(n)}),e._zod.check=r=>{r.value.endsWith(t.suffix)||r.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:r.value,inst:e,continue:!t.abort})}}),$Z=pe("$ZodCheckOverwrite",(e,t)=>{Wr.init(e,t),e._zod.check=n=>{n.value=t.tx(n.value)}});class HZ{constructor(t=[]){this.content=[],this.indent=0,this&&(this.args=t)}indented(t){this.indent+=1,t(this),this.indent-=1}write(t){if(typeof t=="function"){t(this,{execution:"sync"}),t(this,{execution:"async"});return}const r=t.split(`
|
|
268
|
-
`).filter(l=>l),a=Math.min(...r.map(l=>l.length-l.trimStart().length)),s=r.map(l=>l.slice(a)).map(l=>" ".repeat(this.indent*2)+l);for(const l of s)this.content.push(l)}compile(){const t=Function,n=this?.args,a=[...(this?.content??[""]).map(s=>` ${s}`)];return new t(...n,a.join(`
|
|
269
|
-
`))}}const GZ={major:4,minor:0,patch:0},Ut=pe("$ZodType",(e,t)=>{var n;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=GZ;const r=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&r.unshift(e);for(const a of r)for(const s of a._zod.onattach)s(e);if(r.length===0)(n=e._zod).deferred??(n.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{const a=(s,l,u)=>{let d=xc(s),f;for(const p of l){if(p._zod.def.when){if(!p._zod.def.when(s))continue}else if(d)continue;const g=s.issues.length,y=p._zod.check(s);if(y instanceof Promise&&u?.async===!1)throw new Vc;if(f||y instanceof Promise)f=(f??Promise.resolve()).then(async()=>{await y,s.issues.length!==g&&(d||(d=xc(s,g)))});else{if(s.issues.length===g)continue;d||(d=xc(s,g))}}return f?f.then(()=>s):s};e._zod.run=(s,l)=>{const u=e._zod.parse(s,l);if(u instanceof Promise){if(l.async===!1)throw new Vc;return u.then(d=>a(d,r,l))}return a(u,r,l)}}e["~standard"]={validate:a=>{try{const s=lZ(e,a);return s.success?{value:s.data}:{issues:s.error?.issues}}catch{return cZ(e,a).then(l=>l.success?{value:l.data}:{issues:l.error?.issues})}},vendor:"zod",version:1}}),$0=pe("$ZodString",(e,t)=>{Ut.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??OZ(e._zod.bag),e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=String(n.value)}catch{}return typeof n.value=="string"||n.issues.push({expected:"string",code:"invalid_type",input:n.value,inst:e}),n}}),Et=pe("$ZodStringFormat",(e,t)=>{zh.init(e,t),$0.init(e,t)}),KZ=pe("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=yZ),Et.init(e,t)}),qZ=pe("$ZodUUID",(e,t)=>{if(t.version){const r={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(r===void 0)throw new Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=vC(r))}else t.pattern??(t.pattern=vC());Et.init(e,t)}),WZ=pe("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=vZ),Et.init(e,t)}),ZZ=pe("$ZodURL",(e,t)=>{Et.init(e,t),e._zod.check=n=>{try{const r=n.value,a=new URL(r),s=a.href;t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(a.hostname)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:TZ.source,input:n.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(a.protocol.endsWith(":")?a.protocol.slice(0,-1):a.protocol)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:n.value,inst:e,continue:!t.abort})),!r.endsWith("/")&&s.endsWith("/")?n.value=s.slice(0,-1):n.value=s;return}catch{n.issues.push({code:"invalid_format",format:"url",input:n.value,inst:e,continue:!t.abort})}}}),YZ=pe("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=_Z()),Et.init(e,t)}),XZ=pe("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=mZ),Et.init(e,t)}),QZ=pe("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=uZ),Et.init(e,t)}),JZ=pe("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=dZ),Et.init(e,t)}),eY=pe("$ZodULID",(e,t)=>{t.pattern??(t.pattern=fZ),Et.init(e,t)}),tY=pe("$ZodXID",(e,t)=>{t.pattern??(t.pattern=hZ),Et.init(e,t)}),nY=pe("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=pZ),Et.init(e,t)}),rY=pe("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=NZ(t)),Et.init(e,t)}),iY=pe("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=RZ),Et.init(e,t)}),aY=pe("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=kZ(t)),Et.init(e,t)}),oY=pe("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=gZ),Et.init(e,t)}),sY=pe("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=EZ),Et.init(e,t),e._zod.onattach.push(n=>{const r=n._zod.bag;r.format="ipv4"})}),lY=pe("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=SZ),Et.init(e,t),e._zod.onattach.push(n=>{const r=n._zod.bag;r.format="ipv6"}),e._zod.check=n=>{try{new URL(`http://[${n.value}]`)}catch{n.issues.push({code:"invalid_format",format:"ipv6",input:n.value,inst:e,continue:!t.abort})}}}),cY=pe("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=xZ),Et.init(e,t)}),uY=pe("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=AZ),Et.init(e,t),e._zod.check=n=>{const[r,a]=n.value.split("/");try{if(!a)throw new Error;const s=Number(a);if(`${s}`!==a)throw new Error;if(s<0||s>128)throw new Error;new URL(`http://[${r}]`)}catch{n.issues.push({code:"invalid_format",format:"cidrv6",input:n.value,inst:e,continue:!t.abort})}}});function ED(e){if(e==="")return!0;if(e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}const dY=pe("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=wZ),Et.init(e,t),e._zod.onattach.push(n=>{n._zod.bag.contentEncoding="base64"}),e._zod.check=n=>{ED(n.value)||n.issues.push({code:"invalid_format",format:"base64",input:n.value,inst:e,continue:!t.abort})}});function fY(e){if(!vD.test(e))return!1;const t=e.replace(/[-_]/g,r=>r==="-"?"+":"/"),n=t.padEnd(Math.ceil(t.length/4)*4,"=");return ED(n)}const hY=pe("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=vD),Et.init(e,t),e._zod.onattach.push(n=>{n._zod.bag.contentEncoding="base64url"}),e._zod.check=n=>{fY(n.value)||n.issues.push({code:"invalid_format",format:"base64url",input:n.value,inst:e,continue:!t.abort})}}),pY=pe("$ZodE164",(e,t)=>{t.pattern??(t.pattern=CZ),Et.init(e,t)});function mY(e,t=null){try{const n=e.split(".");if(n.length!==3)return!1;const[r]=n;if(!r)return!1;const a=JSON.parse(atob(r));return!("typ"in a&&a?.typ!=="JWT"||!a.alg||t&&(!("alg"in a)||a.alg!==t))}catch{return!1}}const gY=pe("$ZodJWT",(e,t)=>{Et.init(e,t),e._zod.check=n=>{mY(n.value,t.alg)||n.issues.push({code:"invalid_format",format:"jwt",input:n.value,inst:e,continue:!t.abort})}}),yY=pe("$ZodUnknown",(e,t)=>{Ut.init(e,t),e._zod.parse=n=>n}),vY=pe("$ZodNever",(e,t)=>{Ut.init(e,t),e._zod.parse=(n,r)=>(n.issues.push({expected:"never",code:"invalid_type",input:n.value,inst:e}),n)});function bC(e,t,n){e.issues.length&&t.issues.push(...U0(n,e.issues)),t.value[n]=e.value}const bY=pe("$ZodArray",(e,t)=>{Ut.init(e,t),e._zod.parse=(n,r)=>{const a=n.value;if(!Array.isArray(a))return n.issues.push({expected:"array",code:"invalid_type",input:a,inst:e}),n;n.value=Array(a.length);const s=[];for(let l=0;l<a.length;l++){const u=a[l],d=t.element._zod.run({value:u,issues:[]},r);d instanceof Promise?s.push(d.then(f=>bC(f,n,l))):bC(d,n,l)}return s.length?Promise.all(s).then(()=>n):n}});function Wd(e,t,n){e.issues.length&&t.issues.push(...U0(n,e.issues)),t.value[n]=e.value}function _C(e,t,n,r){e.issues.length?r[n]===void 0?n in r?t.value[n]=void 0:t.value[n]=e.value:t.issues.push(...U0(n,e.issues)):e.value===void 0?n in r&&(t.value[n]=void 0):t.value[n]=e.value}const _Y=pe("$ZodObject",(e,t)=>{Ut.init(e,t);const n=dD(()=>{const g=Object.keys(t.shape);for(const _ of g)if(!(t.shape[_]instanceof Ut))throw new Error(`Invalid element at key "${_}": expected a Zod schema`);const y=XW(t.shape);return{shape:t.shape,keys:g,keySet:new Set(g),numKeys:g.length,optionalKeys:new Set(y)}});_t(e._zod,"propValues",()=>{const g=t.shape,y={};for(const _ in g){const S=g[_]._zod;if(S.values){y[_]??(y[_]=new Set);for(const A of S.values)y[_].add(A)}}return y});const r=g=>{const y=new HZ(["shape","payload","ctx"]),_=n.value,S=x=>{const T=lc(x);return`shape[${T}]._zod.run({ value: input[${T}], issues: [] }, ctx)`};y.write("const input = payload.value;");const A=Object.create(null);let C=0;for(const x of _.keys)A[x]=`key_${C++}`;y.write("const newResult = {}");for(const x of _.keys)if(_.optionalKeys.has(x)){const T=A[x];y.write(`const ${T} = ${S(x)};`);const N=lc(x);y.write(`
|
|
270
|
-
if (${T}.issues.length) {
|
|
271
|
-
if (input[${N}] === undefined) {
|
|
272
|
-
if (${N} in input) {
|
|
273
|
-
newResult[${N}] = undefined;
|
|
274
|
-
}
|
|
275
|
-
} else {
|
|
276
|
-
payload.issues = payload.issues.concat(
|
|
277
|
-
${T}.issues.map((iss) => ({
|
|
278
|
-
...iss,
|
|
279
|
-
path: iss.path ? [${N}, ...iss.path] : [${N}],
|
|
280
|
-
}))
|
|
281
|
-
);
|
|
282
|
-
}
|
|
283
|
-
} else if (${T}.value === undefined) {
|
|
284
|
-
if (${N} in input) newResult[${N}] = undefined;
|
|
285
|
-
} else {
|
|
286
|
-
newResult[${N}] = ${T}.value;
|
|
287
|
-
}
|
|
288
|
-
`)}else{const T=A[x];y.write(`const ${T} = ${S(x)};`),y.write(`
|
|
289
|
-
if (${T}.issues.length) payload.issues = payload.issues.concat(${T}.issues.map(iss => ({
|
|
290
|
-
...iss,
|
|
291
|
-
path: iss.path ? [${lc(x)}, ...iss.path] : [${lc(x)}]
|
|
292
|
-
})));`),y.write(`newResult[${lc(x)}] = ${T}.value`)}y.write("payload.value = newResult;"),y.write("return payload;");const w=y.compile();return(x,T)=>w(g,x,T)};let a;const s=Rv,l=!uD.jitless,d=l&&ZW.value,f=t.catchall;let p;e._zod.parse=(g,y)=>{p??(p=n.value);const _=g.value;if(!s(_))return g.issues.push({expected:"object",code:"invalid_type",input:_,inst:e}),g;const S=[];if(l&&d&&y?.async===!1&&y.jitless!==!0)a||(a=r(t.shape)),g=a(g,y);else{g.value={};const T=p.shape;for(const N of p.keys){const R=T[N],I=R._zod.run({value:_[N],issues:[]},y),D=R._zod.optin==="optional"&&R._zod.optout==="optional";I instanceof Promise?S.push(I.then(L=>D?_C(L,g,N,_):Wd(L,g,N))):D?_C(I,g,N,_):Wd(I,g,N)}}if(!f)return S.length?Promise.all(S).then(()=>g):g;const A=[],C=p.keySet,w=f._zod,x=w.def.type;for(const T of Object.keys(_)){if(C.has(T))continue;if(x==="never"){A.push(T);continue}const N=w.run({value:_[T],issues:[]},y);N instanceof Promise?S.push(N.then(R=>Wd(R,g,T))):Wd(N,g,T)}return A.length&&g.issues.push({code:"unrecognized_keys",keys:A,input:_,inst:e}),S.length?Promise.all(S).then(()=>g):g}});function EC(e,t,n,r){for(const a of e)if(a.issues.length===0)return t.value=a.value,t;return t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:e.map(a=>a.issues.map(s=>fo(s,r,uo())))}),t}const EY=pe("$ZodUnion",(e,t)=>{Ut.init(e,t),_t(e._zod,"optin",()=>t.options.some(n=>n._zod.optin==="optional")?"optional":void 0),_t(e._zod,"optout",()=>t.options.some(n=>n._zod.optout==="optional")?"optional":void 0),_t(e._zod,"values",()=>{if(t.options.every(n=>n._zod.values))return new Set(t.options.flatMap(n=>Array.from(n._zod.values)))}),_t(e._zod,"pattern",()=>{if(t.options.every(n=>n._zod.pattern)){const n=t.options.map(r=>r._zod.pattern);return new RegExp(`^(${n.map(r=>B0(r.source)).join("|")})$`)}}),e._zod.parse=(n,r)=>{let a=!1;const s=[];for(const l of t.options){const u=l._zod.run({value:n.value,issues:[]},r);if(u instanceof Promise)s.push(u),a=!0;else{if(u.issues.length===0)return u;s.push(u)}}return a?Promise.all(s).then(l=>EC(l,n,e,r)):EC(s,n,e,r)}}),SY=pe("$ZodIntersection",(e,t)=>{Ut.init(e,t),e._zod.parse=(n,r)=>{const a=n.value,s=t.left._zod.run({value:a,issues:[]},r),l=t.right._zod.run({value:a,issues:[]},r);return s instanceof Promise||l instanceof Promise?Promise.all([s,l]).then(([d,f])=>SC(n,d,f)):SC(n,s,l)}});function Nv(e,t){if(e===t)return{valid:!0,data:e};if(e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(kv(e)&&kv(t)){const n=Object.keys(t),r=Object.keys(e).filter(s=>n.indexOf(s)!==-1),a={...e,...t};for(const s of r){const l=Nv(e[s],t[s]);if(!l.valid)return{valid:!1,mergeErrorPath:[s,...l.mergeErrorPath]};a[s]=l.data}return{valid:!0,data:a}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};const n=[];for(let r=0;r<e.length;r++){const a=e[r],s=t[r],l=Nv(a,s);if(!l.valid)return{valid:!1,mergeErrorPath:[r,...l.mergeErrorPath]};n.push(l.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}function SC(e,t,n){if(t.issues.length&&e.issues.push(...t.issues),n.issues.length&&e.issues.push(...n.issues),xc(e))return e;const r=Nv(t.value,n.value);if(!r.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(r.mergeErrorPath)}`);return e.value=r.data,e}const xY=pe("$ZodEnum",(e,t)=>{Ut.init(e,t);const n=qW(t.entries);e._zod.values=new Set(n),e._zod.pattern=new RegExp(`^(${n.filter(r=>YW.has(typeof r)).map(r=>typeof r=="string"?Mh(r):r.toString()).join("|")})$`),e._zod.parse=(r,a)=>{const s=r.value;return e._zod.values.has(s)||r.issues.push({code:"invalid_value",values:n,input:s,inst:e}),r}}),AY=pe("$ZodTransform",(e,t)=>{Ut.init(e,t),e._zod.parse=(n,r)=>{const a=t.transform(n.value,n);if(r.async)return(a instanceof Promise?a:Promise.resolve(a)).then(l=>(n.value=l,n));if(a instanceof Promise)throw new Vc;return n.value=a,n}}),wY=pe("$ZodOptional",(e,t)=>{Ut.init(e,t),e._zod.optin="optional",e._zod.optout="optional",_t(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),_t(e._zod,"pattern",()=>{const n=t.innerType._zod.pattern;return n?new RegExp(`^(${B0(n.source)})?$`):void 0}),e._zod.parse=(n,r)=>t.innerType._zod.optin==="optional"?t.innerType._zod.run(n,r):n.value===void 0?n:t.innerType._zod.run(n,r)}),TY=pe("$ZodNullable",(e,t)=>{Ut.init(e,t),_t(e._zod,"optin",()=>t.innerType._zod.optin),_t(e._zod,"optout",()=>t.innerType._zod.optout),_t(e._zod,"pattern",()=>{const n=t.innerType._zod.pattern;return n?new RegExp(`^(${B0(n.source)}|null)$`):void 0}),_t(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(n,r)=>n.value===null?n:t.innerType._zod.run(n,r)}),CY=pe("$ZodDefault",(e,t)=>{Ut.init(e,t),e._zod.optin="optional",_t(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,r)=>{if(n.value===void 0)return n.value=t.defaultValue,n;const a=t.innerType._zod.run(n,r);return a instanceof Promise?a.then(s=>xC(s,t)):xC(a,t)}});function xC(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}const RY=pe("$ZodPrefault",(e,t)=>{Ut.init(e,t),e._zod.optin="optional",_t(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,r)=>(n.value===void 0&&(n.value=t.defaultValue),t.innerType._zod.run(n,r))}),kY=pe("$ZodNonOptional",(e,t)=>{Ut.init(e,t),_t(e._zod,"values",()=>{const n=t.innerType._zod.values;return n?new Set([...n].filter(r=>r!==void 0)):void 0}),e._zod.parse=(n,r)=>{const a=t.innerType._zod.run(n,r);return a instanceof Promise?a.then(s=>AC(s,e)):AC(a,e)}});function AC(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}const NY=pe("$ZodCatch",(e,t)=>{Ut.init(e,t),e._zod.optin="optional",_t(e._zod,"optout",()=>t.innerType._zod.optout),_t(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,r)=>{const a=t.innerType._zod.run(n,r);return a instanceof Promise?a.then(s=>(n.value=s.value,s.issues.length&&(n.value=t.catchValue({...n,error:{issues:s.issues.map(l=>fo(l,r,uo()))},input:n.value}),n.issues=[]),n)):(n.value=a.value,a.issues.length&&(n.value=t.catchValue({...n,error:{issues:a.issues.map(s=>fo(s,r,uo()))},input:n.value}),n.issues=[]),n)}}),OY=pe("$ZodPipe",(e,t)=>{Ut.init(e,t),_t(e._zod,"values",()=>t.in._zod.values),_t(e._zod,"optin",()=>t.in._zod.optin),_t(e._zod,"optout",()=>t.out._zod.optout),e._zod.parse=(n,r)=>{const a=t.in._zod.run(n,r);return a instanceof Promise?a.then(s=>wC(s,t,r)):wC(a,t,r)}});function wC(e,t,n){return xc(e)?e:t.out._zod.run({value:e.value,issues:e.issues},n)}const IY=pe("$ZodReadonly",(e,t)=>{Ut.init(e,t),_t(e._zod,"propValues",()=>t.innerType._zod.propValues),_t(e._zod,"values",()=>t.innerType._zod.values),_t(e._zod,"optin",()=>t.innerType._zod.optin),_t(e._zod,"optout",()=>t.innerType._zod.optout),e._zod.parse=(n,r)=>{const a=t.innerType._zod.run(n,r);return a instanceof Promise?a.then(TC):TC(a)}});function TC(e){return e.value=Object.freeze(e.value),e}const DY=pe("$ZodCustom",(e,t)=>{Wr.init(e,t),Ut.init(e,t),e._zod.parse=(n,r)=>n,e._zod.check=n=>{const r=n.value,a=t.fn(r);if(a instanceof Promise)return a.then(s=>CC(s,n,r,e));CC(a,n,r,e)}});function CC(e,t,n,r){if(!e){const a={code:"custom",input:n,inst:r,path:[...r._zod.def.path??[]],continue:!r._zod.def.abort};r._zod.def.params&&(a.params=r._zod.def.params),t.issues.push(Uc(a))}}class jY{constructor(){this._map=new Map,this._idmap=new Map}add(t,...n){const r=n[0];if(this._map.set(t,r),r&&typeof r=="object"&&"id"in r){if(this._idmap.has(r.id))throw new Error(`ID ${r.id} already exists in the registry`);this._idmap.set(r.id,t)}return this}clear(){return this._map=new Map,this._idmap=new Map,this}remove(t){const n=this._map.get(t);return n&&typeof n=="object"&&"id"in n&&this._idmap.delete(n.id),this._map.delete(t),this}get(t){const n=t._zod.parent;if(n){const r={...this.get(n)??{}};return delete r.id,{...r,...this._map.get(t)}}return this._map.get(t)}has(t){return this._map.has(t)}}function LY(){return new jY}const Zd=LY();function PY(e,t){return new e({type:"string",...ze(t)})}function MY(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...ze(t)})}function RC(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...ze(t)})}function zY(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...ze(t)})}function BY(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...ze(t)})}function VY(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...ze(t)})}function UY(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...ze(t)})}function FY(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...ze(t)})}function $Y(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...ze(t)})}function HY(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...ze(t)})}function GY(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...ze(t)})}function KY(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...ze(t)})}function qY(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...ze(t)})}function WY(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...ze(t)})}function ZY(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...ze(t)})}function YY(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...ze(t)})}function XY(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...ze(t)})}function QY(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...ze(t)})}function JY(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...ze(t)})}function eX(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...ze(t)})}function tX(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...ze(t)})}function nX(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...ze(t)})}function rX(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...ze(t)})}function iX(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...ze(t)})}function aX(e,t){return new e({type:"string",format:"date",check:"string_format",...ze(t)})}function oX(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...ze(t)})}function sX(e,t){return new e({type:"string",format:"duration",check:"string_format",...ze(t)})}function lX(e){return new e({type:"unknown"})}function cX(e,t){return new e({type:"never",...ze(t)})}function SD(e,t){return new jZ({check:"max_length",...ze(t),maximum:e})}function Yf(e,t){return new LZ({check:"min_length",...ze(t),minimum:e})}function xD(e,t){return new PZ({check:"length_equals",...ze(t),length:e})}function uX(e,t){return new MZ({check:"string_format",format:"regex",...ze(t),pattern:e})}function dX(e){return new zZ({check:"string_format",format:"lowercase",...ze(e)})}function fX(e){return new BZ({check:"string_format",format:"uppercase",...ze(e)})}function hX(e,t){return new VZ({check:"string_format",format:"includes",...ze(t),includes:e})}function pX(e,t){return new UZ({check:"string_format",format:"starts_with",...ze(t),prefix:e})}function mX(e,t){return new FZ({check:"string_format",format:"ends_with",...ze(t),suffix:e})}function mu(e){return new $Z({check:"overwrite",tx:e})}function gX(e){return mu(t=>t.normalize(e))}function yX(){return mu(e=>e.trim())}function vX(){return mu(e=>e.toLowerCase())}function bX(){return mu(e=>e.toUpperCase())}function _X(e,t,n){return new e({type:"array",element:t,...ze(n)})}function EX(e,t,n){return new e({type:"custom",check:"custom",fn:t,...ze(n)})}const SX=pe("ZodISODateTime",(e,t)=>{rY.init(e,t),Tt.init(e,t)});function xX(e){return iX(SX,e)}const AX=pe("ZodISODate",(e,t)=>{iY.init(e,t),Tt.init(e,t)});function wX(e){return aX(AX,e)}const TX=pe("ZodISOTime",(e,t)=>{aY.init(e,t),Tt.init(e,t)});function CX(e){return oX(TX,e)}const RX=pe("ZodISODuration",(e,t)=>{oY.init(e,t),Tt.init(e,t)});function kX(e){return sX(RX,e)}const NX=(e,t)=>{pD.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:n=>aZ(e,n)},flatten:{value:n=>iZ(e,n)},addIssue:{value:n=>e.issues.push(n)},addIssues:{value:n=>e.issues.push(...n)},isEmpty:{get(){return e.issues.length===0}}})},Bh=pe("ZodError",NX,{Parent:Error}),OX=oZ(Bh),IX=sZ(Bh),DX=gD(Bh),jX=yD(Bh),tn=pe("ZodType",(e,t)=>(Ut.init(e,t),e.def=t,Object.defineProperty(e,"_def",{value:t}),e.check=(...n)=>e.clone({...t,checks:[...t.checks??[],...n.map(r=>typeof r=="function"?{_zod:{check:r,def:{check:"custom"},onattach:[]}}:r)]}),e.clone=(n,r)=>go(e,n,r),e.brand=()=>e,e.register=((n,r)=>(n.add(e,r),e)),e.parse=(n,r)=>OX(e,n,r,{callee:e.parse}),e.safeParse=(n,r)=>DX(e,n,r),e.parseAsync=async(n,r)=>IX(e,n,r,{callee:e.parseAsync}),e.safeParseAsync=async(n,r)=>jX(e,n,r),e.spa=e.safeParseAsync,e.refine=(n,r)=>e.check(wQ(n,r)),e.superRefine=n=>e.check(TQ(n)),e.overwrite=n=>e.check(mu(n)),e.optional=()=>OC(e),e.nullable=()=>IC(e),e.nullish=()=>OC(IC(e)),e.nonoptional=n=>yQ(e,n),e.array=()=>Ov(e),e.or=n=>oQ([e,n]),e.and=n=>lQ(e,n),e.transform=n=>DC(e,dQ(n)),e.default=n=>pQ(e,n),e.prefault=n=>gQ(e,n),e.catch=n=>bQ(e,n),e.pipe=n=>DC(e,n),e.readonly=()=>SQ(e),e.describe=n=>{const r=e.clone();return Zd.add(r,{description:n}),r},Object.defineProperty(e,"description",{get(){return Zd.get(e)?.description},configurable:!0}),e.meta=(...n)=>{if(n.length===0)return Zd.get(e);const r=e.clone();return Zd.add(r,n[0]),r},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e)),AD=pe("_ZodString",(e,t)=>{$0.init(e,t),tn.init(e,t);const n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,e.regex=(...r)=>e.check(uX(...r)),e.includes=(...r)=>e.check(hX(...r)),e.startsWith=(...r)=>e.check(pX(...r)),e.endsWith=(...r)=>e.check(mX(...r)),e.min=(...r)=>e.check(Yf(...r)),e.max=(...r)=>e.check(SD(...r)),e.length=(...r)=>e.check(xD(...r)),e.nonempty=(...r)=>e.check(Yf(1,...r)),e.lowercase=r=>e.check(dX(r)),e.uppercase=r=>e.check(fX(r)),e.trim=()=>e.check(yX()),e.normalize=(...r)=>e.check(gX(...r)),e.toLowerCase=()=>e.check(vX()),e.toUpperCase=()=>e.check(bX())}),LX=pe("ZodString",(e,t)=>{$0.init(e,t),AD.init(e,t),e.email=n=>e.check(MY(PX,n)),e.url=n=>e.check(FY(MX,n)),e.jwt=n=>e.check(rX(QX,n)),e.emoji=n=>e.check($Y(zX,n)),e.guid=n=>e.check(RC(kC,n)),e.uuid=n=>e.check(zY(Yd,n)),e.uuidv4=n=>e.check(BY(Yd,n)),e.uuidv6=n=>e.check(VY(Yd,n)),e.uuidv7=n=>e.check(UY(Yd,n)),e.nanoid=n=>e.check(HY(BX,n)),e.guid=n=>e.check(RC(kC,n)),e.cuid=n=>e.check(GY(VX,n)),e.cuid2=n=>e.check(KY(UX,n)),e.ulid=n=>e.check(qY(FX,n)),e.base64=n=>e.check(eX(ZX,n)),e.base64url=n=>e.check(tX(YX,n)),e.xid=n=>e.check(WY($X,n)),e.ksuid=n=>e.check(ZY(HX,n)),e.ipv4=n=>e.check(YY(GX,n)),e.ipv6=n=>e.check(XY(KX,n)),e.cidrv4=n=>e.check(QY(qX,n)),e.cidrv6=n=>e.check(JY(WX,n)),e.e164=n=>e.check(nX(XX,n)),e.datetime=n=>e.check(xX(n)),e.date=n=>e.check(wX(n)),e.time=n=>e.check(CX(n)),e.duration=n=>e.check(kX(n))});function cc(e){return PY(LX,e)}const Tt=pe("ZodStringFormat",(e,t)=>{Et.init(e,t),AD.init(e,t)}),PX=pe("ZodEmail",(e,t)=>{WZ.init(e,t),Tt.init(e,t)}),kC=pe("ZodGUID",(e,t)=>{KZ.init(e,t),Tt.init(e,t)}),Yd=pe("ZodUUID",(e,t)=>{qZ.init(e,t),Tt.init(e,t)}),MX=pe("ZodURL",(e,t)=>{ZZ.init(e,t),Tt.init(e,t)}),zX=pe("ZodEmoji",(e,t)=>{YZ.init(e,t),Tt.init(e,t)}),BX=pe("ZodNanoID",(e,t)=>{XZ.init(e,t),Tt.init(e,t)}),VX=pe("ZodCUID",(e,t)=>{QZ.init(e,t),Tt.init(e,t)}),UX=pe("ZodCUID2",(e,t)=>{JZ.init(e,t),Tt.init(e,t)}),FX=pe("ZodULID",(e,t)=>{eY.init(e,t),Tt.init(e,t)}),$X=pe("ZodXID",(e,t)=>{tY.init(e,t),Tt.init(e,t)}),HX=pe("ZodKSUID",(e,t)=>{nY.init(e,t),Tt.init(e,t)}),GX=pe("ZodIPv4",(e,t)=>{sY.init(e,t),Tt.init(e,t)}),KX=pe("ZodIPv6",(e,t)=>{lY.init(e,t),Tt.init(e,t)}),qX=pe("ZodCIDRv4",(e,t)=>{cY.init(e,t),Tt.init(e,t)}),WX=pe("ZodCIDRv6",(e,t)=>{uY.init(e,t),Tt.init(e,t)}),ZX=pe("ZodBase64",(e,t)=>{dY.init(e,t),Tt.init(e,t)}),YX=pe("ZodBase64URL",(e,t)=>{hY.init(e,t),Tt.init(e,t)}),XX=pe("ZodE164",(e,t)=>{pY.init(e,t),Tt.init(e,t)}),QX=pe("ZodJWT",(e,t)=>{gY.init(e,t),Tt.init(e,t)}),JX=pe("ZodUnknown",(e,t)=>{yY.init(e,t),tn.init(e,t)});function NC(){return lX(JX)}const eQ=pe("ZodNever",(e,t)=>{vY.init(e,t),tn.init(e,t)});function tQ(e){return cX(eQ,e)}const nQ=pe("ZodArray",(e,t)=>{bY.init(e,t),tn.init(e,t),e.element=t.element,e.min=(n,r)=>e.check(Yf(n,r)),e.nonempty=n=>e.check(Yf(1,n)),e.max=(n,r)=>e.check(SD(n,r)),e.length=(n,r)=>e.check(xD(n,r)),e.unwrap=()=>e.element});function Ov(e,t){return _X(nQ,e,t)}const rQ=pe("ZodObject",(e,t)=>{_Y.init(e,t),tn.init(e,t),_t(e,"shape",()=>t.shape),e.keyof=()=>cQ(Object.keys(e._zod.def.shape)),e.catchall=n=>e.clone({...e._zod.def,catchall:n}),e.passthrough=()=>e.clone({...e._zod.def,catchall:NC()}),e.loose=()=>e.clone({...e._zod.def,catchall:NC()}),e.strict=()=>e.clone({...e._zod.def,catchall:tQ()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=n=>eZ(e,n),e.merge=n=>tZ(e,n),e.pick=n=>QW(e,n),e.omit=n=>JW(e,n),e.partial=(...n)=>nZ(wD,e,n[0]),e.required=(...n)=>rZ(TD,e,n[0])});function iQ(e,t){const n={type:"object",get shape(){return V0(this,"shape",{...e}),this.shape},...ze(t)};return new rQ(n)}const aQ=pe("ZodUnion",(e,t)=>{EY.init(e,t),tn.init(e,t),e.options=t.options});function oQ(e,t){return new aQ({type:"union",options:e,...ze(t)})}const sQ=pe("ZodIntersection",(e,t)=>{SY.init(e,t),tn.init(e,t)});function lQ(e,t){return new sQ({type:"intersection",left:e,right:t})}const Iv=pe("ZodEnum",(e,t)=>{xY.init(e,t),tn.init(e,t),e.enum=t.entries,e.options=Object.values(t.entries);const n=new Set(Object.keys(t.entries));e.extract=(r,a)=>{const s={};for(const l of r)if(n.has(l))s[l]=t.entries[l];else throw new Error(`Key ${l} not found in enum`);return new Iv({...t,checks:[],...ze(a),entries:s})},e.exclude=(r,a)=>{const s={...t.entries};for(const l of r)if(n.has(l))delete s[l];else throw new Error(`Key ${l} not found in enum`);return new Iv({...t,checks:[],...ze(a),entries:s})}});function cQ(e,t){const n=Array.isArray(e)?Object.fromEntries(e.map(r=>[r,r])):e;return new Iv({type:"enum",entries:n,...ze(t)})}const uQ=pe("ZodTransform",(e,t)=>{AY.init(e,t),tn.init(e,t),e._zod.parse=(n,r)=>{n.addIssue=s=>{if(typeof s=="string")n.issues.push(Uc(s,n.value,t));else{const l=s;l.fatal&&(l.continue=!1),l.code??(l.code="custom"),l.input??(l.input=n.value),l.inst??(l.inst=e),l.continue??(l.continue=!0),n.issues.push(Uc(l))}};const a=t.transform(n.value,n);return a instanceof Promise?a.then(s=>(n.value=s,n)):(n.value=a,n)}});function dQ(e){return new uQ({type:"transform",transform:e})}const wD=pe("ZodOptional",(e,t)=>{wY.init(e,t),tn.init(e,t),e.unwrap=()=>e._zod.def.innerType});function OC(e){return new wD({type:"optional",innerType:e})}const fQ=pe("ZodNullable",(e,t)=>{TY.init(e,t),tn.init(e,t),e.unwrap=()=>e._zod.def.innerType});function IC(e){return new fQ({type:"nullable",innerType:e})}const hQ=pe("ZodDefault",(e,t)=>{CY.init(e,t),tn.init(e,t),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function pQ(e,t){return new hQ({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():t}})}const mQ=pe("ZodPrefault",(e,t)=>{RY.init(e,t),tn.init(e,t),e.unwrap=()=>e._zod.def.innerType});function gQ(e,t){return new mQ({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():t}})}const TD=pe("ZodNonOptional",(e,t)=>{kY.init(e,t),tn.init(e,t),e.unwrap=()=>e._zod.def.innerType});function yQ(e,t){return new TD({type:"nonoptional",innerType:e,...ze(t)})}const vQ=pe("ZodCatch",(e,t)=>{NY.init(e,t),tn.init(e,t),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function bQ(e,t){return new vQ({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}const _Q=pe("ZodPipe",(e,t)=>{OY.init(e,t),tn.init(e,t),e.in=t.in,e.out=t.out});function DC(e,t){return new _Q({type:"pipe",in:e,out:t})}const EQ=pe("ZodReadonly",(e,t)=>{IY.init(e,t),tn.init(e,t)});function SQ(e){return new EQ({type:"readonly",innerType:e})}const xQ=pe("ZodCustom",(e,t)=>{DY.init(e,t),tn.init(e,t)});function AQ(e){const t=new Wr({check:"custom"});return t._zod.check=e,t}function wQ(e,t={}){return EX(xQ,e,t)}function TQ(e){const t=AQ(n=>(n.addIssue=r=>{if(typeof r=="string")n.issues.push(Uc(r,n.value,t._zod.def));else{const a=r;a.fatal&&(a.continue=!1),a.code??(a.code="custom"),a.input??(a.input=n.value),a.inst??(a.inst=t),a.continue??(a.continue=!t._zod.def.abort),n.issues.push(Uc(a))}},e(n.value,n)));return t}function Ei(e){return Array.isArray?Array.isArray(e):kD(e)==="[object Array]"}function CQ(e){if(typeof e=="string")return e;let t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function RQ(e){return e==null?"":CQ(e)}function Br(e){return typeof e=="string"}function CD(e){return typeof e=="number"}function kQ(e){return e===!0||e===!1||NQ(e)&&kD(e)=="[object Boolean]"}function RD(e){return typeof e=="object"}function NQ(e){return RD(e)&&e!==null}function Hn(e){return e!=null}function ly(e){return!e.trim().length}function kD(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}const OQ="Incorrect 'index' type",IQ=e=>`Invalid value for key ${e}`,DQ=e=>`Pattern length exceeds max of ${e}.`,jQ=e=>`Missing ${e} property in key`,LQ=e=>`Property 'weight' in key '${e}' must be a positive integer`,jC=Object.prototype.hasOwnProperty;class PQ{constructor(t){this._keys=[],this._keyMap={};let n=0;t.forEach(r=>{let a=ND(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 ND(e){let t=null,n=null,r=null,a=1,s=null;if(Br(e)||Ei(e))r=e,t=LC(e),n=Dv(e);else{if(!jC.call(e,"name"))throw new Error(jQ("name"));const l=e.name;if(r=l,jC.call(e,"weight")&&(a=e.weight,a<=0))throw new Error(LQ(l));t=LC(l),n=Dv(l),s=e.getFn}return{path:t,id:n,weight:a,src:r,getFn:s}}function LC(e){return Ei(e)?e:e.split(".")}function Dv(e){return Ei(e)?e.join("."):e}function MQ(e,t){let n=[],r=!1;const a=(s,l,u)=>{if(Hn(s))if(!l[u])n.push(s);else{let d=l[u];const f=s[d];if(!Hn(f))return;if(u===l.length-1&&(Br(f)||CD(f)||kQ(f)))n.push(RQ(f));else if(Ei(f)){r=!0;for(let p=0,g=f.length;p<g;p+=1)a(f[p],l,u+1)}else l.length&&a(f,l,u+1)}};return a(e,Br(t)?t.split("."):t,0),r?n:n[0]}const zQ={includeMatches:!1,findAllMatches:!1,minMatchCharLength:1},BQ={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},VQ={location:0,threshold:.6,distance:100},UQ={useExtendedSearch:!1,getFn:MQ,ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1};var Me={...BQ,...zQ,...VQ,...UQ};const FQ=/[^ ]+/g;function $Q(e=1,t=3){const n=new Map,r=Math.pow(10,t);return{get(a){const s=a.match(FQ).length;if(n.has(s))return n.get(s);const l=1/Math.pow(s,.5*e),u=parseFloat(Math.round(l*r)/r);return n.set(s,u),u},clear(){n.clear()}}}class H0{constructor({getFn:t=Me.getFn,fieldNormWeight:n=Me.fieldNormWeight}={}){this.norm=$Q(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,Br(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();Br(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(!Hn(t)||ly(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,s)=>{let l=a.getFn?a.getFn(t):this.getFn(t,a.path);if(Hn(l)){if(Ei(l)){let u=[];const d=[{nestedArrIndex:-1,value:l}];for(;d.length;){const{nestedArrIndex:f,value:p}=d.pop();if(Hn(p))if(Br(p)&&!ly(p)){let g={v:p,i:f,n:this.norm.get(p)};u.push(g)}else Ei(p)&&p.forEach((g,y)=>{d.push({nestedArrIndex:y,value:g})})}r.$[s]=u}else if(Br(l)&&!ly(l)){let u={v:l,n:this.norm.get(l)};r.$[s]=u}}}),this.records.push(r)}toJSON(){return{keys:this.keys,records:this.records}}}function OD(e,t,{getFn:n=Me.getFn,fieldNormWeight:r=Me.fieldNormWeight}={}){const a=new H0({getFn:n,fieldNormWeight:r});return a.setKeys(e.map(ND)),a.setSources(t),a.create(),a}function HQ(e,{getFn:t=Me.getFn,fieldNormWeight:n=Me.fieldNormWeight}={}){const{keys:r,records:a}=e,s=new H0({getFn:t,fieldNormWeight:n});return s.setKeys(r),s.setIndexRecords(a),s}function Xd(e,{errors:t=0,currentLocation:n=0,expectedLocation:r=0,distance:a=Me.distance,ignoreLocation:s=Me.ignoreLocation}={}){const l=t/e.length;if(s)return l;const u=Math.abs(r-n);return a?l+u/a:u?1:l}function GQ(e=[],t=Me.minMatchCharLength){let n=[],r=-1,a=-1,s=0;for(let l=e.length;s<l;s+=1){let u=e[s];u&&r===-1?r=s:!u&&r!==-1&&(a=s-1,a-r+1>=t&&n.push([r,a]),r=-1)}return e[s-1]&&s-r>=t&&n.push([r,s-1]),n}const qa=32;function KQ(e,t,n,{location:r=Me.location,distance:a=Me.distance,threshold:s=Me.threshold,findAllMatches:l=Me.findAllMatches,minMatchCharLength:u=Me.minMatchCharLength,includeMatches:d=Me.includeMatches,ignoreLocation:f=Me.ignoreLocation}={}){if(t.length>qa)throw new Error(DQ(qa));const p=t.length,g=e.length,y=Math.max(0,Math.min(r,g));let _=s,S=y;const A=u>1||d,C=A?Array(g):[];let w;for(;(w=e.indexOf(t,S))>-1;){let D=Xd(t,{currentLocation:w,expectedLocation:y,distance:a,ignoreLocation:f});if(_=Math.min(D,_),S=w+p,A){let L=0;for(;L<p;)C[w+L]=1,L+=1}}S=-1;let x=[],T=1,N=p+g;const R=1<<p-1;for(let D=0;D<p;D+=1){let L=0,H=N;for(;L<H;)Xd(t,{errors:D,currentLocation:y+H,expectedLocation:y,distance:a,ignoreLocation:f})<=_?L=H:N=H,H=Math.floor((N-L)/2+L);N=H;let Z=Math.max(1,y-H+1),q=l?g:Math.min(y+H,g)+p,te=Array(q+2);te[q+1]=(1<<D)-1;for(let W=q;W>=Z;W-=1){let ae=W-1,M=n[e.charAt(ae)];if(A&&(C[ae]=+!!M),te[W]=(te[W+1]<<1|1)&M,D&&(te[W]|=(x[W+1]|x[W])<<1|1|x[W+1]),te[W]&R&&(T=Xd(t,{errors:D,currentLocation:ae,expectedLocation:y,distance:a,ignoreLocation:f}),T<=_)){if(_=T,S=ae,S<=y)break;Z=Math.max(1,2*y-S)}}if(Xd(t,{errors:D+1,currentLocation:y,expectedLocation:y,distance:a,ignoreLocation:f})>_)break;x=te}const I={isMatch:S>=0,score:Math.max(.001,T)};if(A){const D=GQ(C,u);D.length?d&&(I.indices=D):I.isMatch=!1}return I}function qQ(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 Xf=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 ID{constructor(t,{location:n=Me.location,threshold:r=Me.threshold,distance:a=Me.distance,includeMatches:s=Me.includeMatches,findAllMatches:l=Me.findAllMatches,minMatchCharLength:u=Me.minMatchCharLength,isCaseSensitive:d=Me.isCaseSensitive,ignoreDiacritics:f=Me.ignoreDiacritics,ignoreLocation:p=Me.ignoreLocation}={}){if(this.options={location:n,threshold:r,distance:a,includeMatches:s,findAllMatches:l,minMatchCharLength:u,isCaseSensitive:d,ignoreDiacritics:f,ignoreLocation:p},t=d?t:t.toLowerCase(),t=f?Xf(t):t,this.pattern=t,this.chunks=[],!this.pattern.length)return;const g=(_,S)=>{this.chunks.push({pattern:_,alphabet:qQ(_),startIndex:S})},y=this.pattern.length;if(y>qa){let _=0;const S=y%qa,A=y-S;for(;_<A;)g(this.pattern.substr(_,qa),_),_+=qa;if(S){const C=y-qa;g(this.pattern.substr(C),C)}}else g(this.pattern,0)}searchIn(t){const{isCaseSensitive:n,ignoreDiacritics:r,includeMatches:a}=this.options;if(t=n?t:t.toLowerCase(),t=r?Xf(t):t,this.pattern===t){let A={isMatch:!0,score:0};return a&&(A.indices=[[0,t.length-1]]),A}const{location:s,distance:l,threshold:u,findAllMatches:d,minMatchCharLength:f,ignoreLocation:p}=this.options;let g=[],y=0,_=!1;this.chunks.forEach(({pattern:A,alphabet:C,startIndex:w})=>{const{isMatch:x,score:T,indices:N}=KQ(t,A,C,{location:s+w,distance:l,threshold:u,findAllMatches:d,minMatchCharLength:f,includeMatches:a,ignoreLocation:p});x&&(_=!0),y+=T,x&&N&&(g=[...g,...N])});let S={isMatch:_,score:_?y/this.chunks.length:1};return _&&a&&(S.indices=g),S}}class _a{constructor(t){this.pattern=t}static isMultiMatch(t){return PC(t,this.multiRegex)}static isSingleMatch(t){return PC(t,this.singleRegex)}search(){}}function PC(e,t){const n=e.match(t);return n?n[1]:null}class WQ extends _a{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 ZQ extends _a{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 YQ extends _a{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 XQ extends _a{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 QQ extends _a{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 JQ extends _a{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 DD extends _a{constructor(t,{location:n=Me.location,threshold:r=Me.threshold,distance:a=Me.distance,includeMatches:s=Me.includeMatches,findAllMatches:l=Me.findAllMatches,minMatchCharLength:u=Me.minMatchCharLength,isCaseSensitive:d=Me.isCaseSensitive,ignoreDiacritics:f=Me.ignoreDiacritics,ignoreLocation:p=Me.ignoreLocation}={}){super(t),this._bitapSearch=new ID(t,{location:n,threshold:r,distance:a,includeMatches:s,findAllMatches:l,minMatchCharLength:u,isCaseSensitive:d,ignoreDiacritics:f,ignoreLocation:p})}static get type(){return"fuzzy"}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(t){return this._bitapSearch.searchIn(t)}}class jD extends _a{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=[],s=this.pattern.length;for(;(r=t.indexOf(this.pattern,n))>-1;)n=r+s,a.push([r,n-1]);const l=!!a.length;return{isMatch:l,score:l?0:1,indices:a}}}const jv=[WQ,jD,YQ,XQ,JQ,QQ,ZQ,DD],MC=jv.length,eJ=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/,tJ="|";function nJ(e,t={}){return e.split(tJ).map(n=>{let r=n.trim().split(eJ).filter(s=>s&&!!s.trim()),a=[];for(let s=0,l=r.length;s<l;s+=1){const u=r[s];let d=!1,f=-1;for(;!d&&++f<MC;){const p=jv[f];let g=p.isMultiMatch(u);g&&(a.push(new p(g,t)),d=!0)}if(!d)for(f=-1;++f<MC;){const p=jv[f];let g=p.isSingleMatch(u);if(g){a.push(new p(g,t));break}}}return a})}const rJ=new Set([DD.type,jD.type]);class iJ{constructor(t,{isCaseSensitive:n=Me.isCaseSensitive,ignoreDiacritics:r=Me.ignoreDiacritics,includeMatches:a=Me.includeMatches,minMatchCharLength:s=Me.minMatchCharLength,ignoreLocation:l=Me.ignoreLocation,findAllMatches:u=Me.findAllMatches,location:d=Me.location,threshold:f=Me.threshold,distance:p=Me.distance}={}){this.query=null,this.options={isCaseSensitive:n,ignoreDiacritics:r,includeMatches:a,minMatchCharLength:s,findAllMatches:u,ignoreLocation:l,location:d,threshold:f,distance:p},t=n?t:t.toLowerCase(),t=r?Xf(t):t,this.pattern=t,this.query=nJ(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:s}=this.options;t=a?t:t.toLowerCase(),t=s?Xf(t):t;let l=0,u=[],d=0;for(let f=0,p=n.length;f<p;f+=1){const g=n[f];u.length=0,l=0;for(let y=0,_=g.length;y<_;y+=1){const S=g[y],{isMatch:A,indices:C,score:w}=S.search(t);if(A){if(l+=1,d+=w,r){const x=S.constructor.type;rJ.has(x)?u=[...u,...C]:u.push(C)}}else{d=0,l=0,u.length=0;break}}if(l){let y={isMatch:!0,score:d/l};return r&&(y.indices=u),y}}return{isMatch:!1,score:1}}}const Lv=[];function aJ(...e){Lv.push(...e)}function Pv(e,t){for(let n=0,r=Lv.length;n<r;n+=1){let a=Lv[n];if(a.condition(e,t))return new a(e,t)}return new ID(e,t)}const Qf={AND:"$and",OR:"$or"},Mv={PATH:"$path",PATTERN:"$val"},zv=e=>!!(e[Qf.AND]||e[Qf.OR]),oJ=e=>!!e[Mv.PATH],sJ=e=>!Ei(e)&&RD(e)&&!zv(e),zC=e=>({[Qf.AND]:Object.keys(e).map(t=>({[t]:e[t]}))});function LD(e,t,{auto:n=!0}={}){const r=a=>{let s=Object.keys(a);const l=oJ(a);if(!l&&s.length>1&&!zv(a))return r(zC(a));if(sJ(a)){const d=l?a[Mv.PATH]:s[0],f=l?a[Mv.PATTERN]:a[d];if(!Br(f))throw new Error(IQ(d));const p={keyId:Dv(d),pattern:f};return n&&(p.searcher=Pv(f,t)),p}let u={children:[],operator:s[0]};return s.forEach(d=>{const f=a[d];Ei(f)&&f.forEach(p=>{u.children.push(r(p))})}),u};return zv(e)||(e=zC(e)),r(e)}function lJ(e,{ignoreFieldNorm:t=Me.ignoreFieldNorm}){e.forEach(n=>{let r=1;n.matches.forEach(({key:a,norm:s,score:l})=>{const u=a?a.weight:null;r*=Math.pow(l===0&&u?Number.EPSILON:l,(u||1)*(t?1:s))}),n.score=r})}function cJ(e,t){const n=e.matches;t.matches=[],Hn(n)&&n.forEach(r=>{if(!Hn(r.indices)||!r.indices.length)return;const{indices:a,value:s}=r;let l={indices:a,value:s};r.key&&(l.key=r.key.src),r.idx>-1&&(l.refIndex=r.idx),t.matches.push(l)})}function uJ(e,t){t.score=e.score}function dJ(e,t,{includeMatches:n=Me.includeMatches,includeScore:r=Me.includeScore}={}){const a=[];return n&&a.push(cJ),r&&a.push(uJ),e.map(s=>{const{idx:l}=s,u={item:t[l],refIndex:l};return a.length&&a.forEach(d=>{d(s,u)}),u})}class Zs{constructor(t,n={},r){this.options={...Me,...n},this.options.useExtendedSearch,this._keyStore=new PQ(this.options.keys),this.setCollection(t,r)}setCollection(t,n){if(this._docs=t,n&&!(n instanceof H0))throw new Error(OQ);this._myIndex=n||OD(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(t){Hn(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 s=this._docs[r];t(s,r)&&(this.removeAt(r),r-=1,a-=1,n.push(s))}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:s,sortFn:l,ignoreFieldNorm:u}=this.options;let d=Br(t)?Br(this._docs[0])?this._searchStringList(t):this._searchObjectList(t):this._searchLogical(t);return lJ(d,{ignoreFieldNorm:u}),s&&d.sort(l),CD(n)&&n>-1&&(d=d.slice(0,n)),dJ(d,this._docs,{includeMatches:r,includeScore:a})}_searchStringList(t){const n=Pv(t,this.options),{records:r}=this._myIndex,a=[];return r.forEach(({v:s,i:l,n:u})=>{if(!Hn(s))return;const{isMatch:d,score:f,indices:p}=n.searchIn(s);d&&a.push({item:s,idx:l,matches:[{score:f,value:s,norm:u,indices:p}]})}),a}_searchLogical(t){const n=LD(t,this.options),r=(u,d,f)=>{if(!u.children){const{keyId:g,searcher:y}=u,_=this._findMatches({key:this._keyStore.get(g),value:this._myIndex.getValueForItemAtKeyId(d,g),searcher:y});return _&&_.length?[{idx:f,item:d,matches:_}]:[]}const p=[];for(let g=0,y=u.children.length;g<y;g+=1){const _=u.children[g],S=r(_,d,f);if(S.length)p.push(...S);else if(u.operator===Qf.AND)return[]}return p},a=this._myIndex.records,s={},l=[];return a.forEach(({$:u,i:d})=>{if(Hn(u)){let f=r(n,u,d);f.length&&(s[d]||(s[d]={idx:d,item:u,matches:[]},l.push(s[d])),f.forEach(({matches:p})=>{s[d].matches.push(...p)}))}}),l}_searchObjectList(t){const n=Pv(t,this.options),{keys:r,records:a}=this._myIndex,s=[];return a.forEach(({$:l,i:u})=>{if(!Hn(l))return;let d=[];r.forEach((f,p)=>{d.push(...this._findMatches({key:f,value:l[p],searcher:n}))}),d.length&&s.push({idx:u,item:l,matches:d})}),s}_findMatches({key:t,value:n,searcher:r}){if(!Hn(n))return[];let a=[];if(Ei(n))n.forEach(({v:s,i:l,n:u})=>{if(!Hn(s))return;const{isMatch:d,score:f,indices:p}=r.searchIn(s);d&&a.push({score:f,key:t,value:s,idx:l,norm:u,indices:p})});else{const{v:s,n:l}=n,{isMatch:u,score:d,indices:f}=r.searchIn(s);u&&a.push({score:d,key:t,value:s,norm:l,indices:f})}return a}}Zs.version="7.1.0";Zs.createIndex=OD;Zs.parseIndex=HQ;Zs.config=Me;Zs.parseQuery=LD;aJ(iJ);const Ac=({children:e,className:t,identifier:n,...r})=>v.jsx("div",{className:_e("group/dropdown relative flex",t),"aria-label":`DropDown ${n}`,id:`unrollable-panel-button-${n}`,"aria-haspopup":!0,...r,children:e}),fJ=({children:e,identifier:t,className:n,label:r,...a})=>v.jsx(ot,{className:_e("w-full cursor-pointer",n),label:r??`Open panel ${t}`,onClick:s=>{s.currentTarget.focus()},variant:"none",...a,children:e}),hJ=({children:e,isHidden:t=void 0,isOverable:n=!1,isFocusable:r=!1,align:a="start",identifier:s,className:l,...u})=>v.jsx("div",{className:_e("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-${s}`,id:`unrollable-panel-${s}`,children:v.jsx(vb,{isHidden:t,className:_e("overflow-x-visible",t===!1&&"invisible",t===!0&&"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]"),...u,children:e})});Ac.Trigger=fJ;Ac.Panel=hJ;const wc=(e,t)=>{const[n,r]=E.useState(()=>{if(t!==void 0){const l=typeof t=="function"?t():t;if(typeof window>"u")return l;const u=localStorage?.getItem(e);if(u)try{return JSON.parse(u)}catch(d){console.error(d)}return l}});E.useEffect(()=>{const l=localStorage?.getItem(e);if(l&&n===void 0)try{r(JSON.parse(l))}catch(u){console.error(u)}else t!==void 0&&n===void 0&&r(t)},[e,n]);const a=E.useCallback(l=>{r(u=>{const d=typeof l=="function"?l(u):l;return localStorage?.setItem(e,JSON.stringify(d)),d})},[e,r]),s=E.useCallback(()=>{const l=localStorage?.getItem(e);l&&r(JSON.parse(l))},[e,r]);return E.useMemo(()=>[n,a,s],[n,a,s])},PD=E.createContext({availableLocales:[],selectedLocales:[],setSelectedLocales:()=>{}}),MD=()=>E.useContext(PD),pJ=({availableLocales:e,defaultSelectedLocales:t,children:n})=>{const{locale:r}=ub(),[a,s]=wc("locale-content-selector-selected-locales",t??[r]);return v.jsx(PD,{value:{availableLocales:e,selectedLocales:a,setSelectedLocales:s},children:n})},cy="locale-switcher-content",mJ=({panelProps:e,isMultilingual:t=!0})=>{const{switchTo:n,searchInput:r,localeSwitcherLabel:a,languageListLabel:s,seeAllLocalesSwitch:l}=cn("locale-switcher-content"),u=E.useRef(null),{locale:d}=ub(),{availableLocales:f,selectedLocales:p,setSelectedLocales:g}=MD(),y=E.useMemo(()=>f.map(R=>{const I=cf(R,B.ENGLISH),D=cf(R,d),L=cf(R);return{locale:R,englishName:I,currentLocaleName:D,ownLocaleName:L}}),[f,d]),[_,S]=E.useState(y),[A,C]=wc("locale-content-selector-see-all-locales",!1),w=E.useMemo(()=>{const R={keys:[{name:"ownLocaleName",weight:.4},{name:"englishName",weight:.2},{name:"currentLocaleName",weight:.2},{name:"locale",weight:.2}],threshold:.02};return new Zs(y,R)},[y]),x=E.useCallback(R=>{if(R){const I=w.search(R).map(D=>D.item);S(I)}else S(y)},[w,y]),T=R=>{t?p.includes(R)?p.length>1&&g(I=>I.filter(D=>D!==R)):g(I=>[...I,R]):g([R])},N=R=>{C(R),g(R?f:[d])};return v.jsx("div",{className:"border-text text-text rounded-xl border transition-colors","aria-label":a.value,children:v.jsxs(Ac,{identifier:cy,children:[v.jsx(Ac.Trigger,{identifier:cy,children:v.jsxs("div",{className:"flex w-full items-center justify-between",children:[v.jsx("div",{className:"px-2 py-1",children:v.jsx(X2,{size:18})}),v.jsx(tF,{className:"self-center",size:18})]})}),v.jsx(Ac.Panel,{identifier:cy,isOverable:!0,isFocusable:!0,className:"left-auto right-0",...e,children:v.jsxs(Tr,{className:"max-h-[80vh] min-w-28",separator:"y",role:"listbox",transparency:"sm",border:!0,roundedSize:"2xl",borderColor:"text","aria-label":s.value,children:[t&&v.jsx("div",{className:"m-auto p-2",children:v.jsx(pu,{defaultValue:!1,onChange:N,color:fu.TEXT,size:hu.SM,className:"!w-60",choices:[{content:l.true.value,value:!0},{content:l.false.value,value:!1}]})}),!(t&&A)&&v.jsxs(v.Fragment,{children:[v.jsx("div",{className:"p-3",children:v.jsx(Gs,{type:"search","aria-label":r.ariaLabel.value,placeholder:r.placeholder.value,onChange:R=>x(R.target.value),ref:u})}),v.jsx("ol",{className:"divide-text/20 divide-y divide-dashed overflow-y-auto p-1",children:_.map(({locale:R,currentLocaleName:I,ownLocaleName:D})=>v.jsx("li",{className:"px-1.5 py-1",children:v.jsx(ot,{onClick:()=>T(R),label:`${n} ${I}`,disabled:!(f??f).includes(R),isActive:p.includes(R),variant:at.HOVERABLE,color:it.TEXT,isFullWidth:!0,textAlign:Cs.LEFT,size:qn.SM,children:v.jsxs("div",{className:"flex flex-row items-center justify-between gap-3 px-2 py-1",children:[t&&v.jsx("div",{className:"w-4",children:p.includes(R)&&v.jsx(zs,{className:"size-full"})}),v.jsxs("div",{className:"flex flex-1 flex-row items-center justify-between gap-3 px-2 py-1",children:[v.jsxs("div",{className:"flex flex-col text-nowrap",children:[v.jsx("span",{dir:sV(R),lang:R,children:D}),v.jsx("span",{className:"text-neutral text-xs",children:I})]}),v.jsx("span",{className:"text-neutral text-sm",children:R.toUpperCase()})]})]})})},R))})]})]})})]})})},gJ=(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},Bv=({children:e,onContentChange:t,disabled:n,validate:r,additionalButtons:a,...s})=>{const[l,u]=E.useState(e),[d,f]=E.useState(0),p=l!==e,g=()=>{u(e),f(A=>A+1)},y=()=>{t(l)},_=A=>{u(A.currentTarget.value)};E.useEffect(()=>{u(e)},[e]);const S=r?.(l)??!0;return v.jsxs("div",{className:"flex size-full flex-col items-center justify-between gap-2",children:[v.jsx(Gs,{onChange:_,"aria-label":"value",variant:la.INVISIBLE,className:"size-full",defaultValue:e,...s},d),(p||a)&&v.jsxs("div",{className:"flex w-full items-center justify-end gap-2",children:[p&&v.jsxs(v.Fragment,{children:[v.jsx(ot,{Icon:zs,label:"Validate",variant:at.HOVERABLE,color:it.TEXT,size:qn.ICON_SM,className:"cursor-pointer hover:scale-110",disabled:n||!S,onClick:y}),v.jsx(ot,{Icon:po,label:"Cancel",variant:at.HOVERABLE,size:qn.ICON_SM,color:it.TEXT,className:"cursor-pointer hover:scale-110",onClick:g})]}),a]})]},String(e))},yJ=()=>{const{session:e,revalidateSession:t,setSession:n}=cu(),{mutate:r}=YK(),a=e?.user?"authenticated":"unauthenticated",s=a==="authenticated",l=a==="unauthenticated",u=e?.user;return{isAuthenticated:s,isUnauthenticated:l,user:u,revalidateSession:t,logout:async()=>{n(null),r({})}}},vJ=(e,t)=>{const[n,r]=E.useState(e);return E.useEffect(()=>{const a=setTimeout(()=>{r(e)},t);return()=>clearTimeout(a)},[e,t]),n},bJ=({isActive:e=!0,suggestion:t,...n})=>{const r=String(n.value??n.defaultValue??""),{mutate:a}=rq(),s=Gr(),[l,u]=E.useState(!1),[d,f]=E.useState(r),[p,g]=E.useState(""),y=E.useRef(null),_=E.useRef(null),S=E.useRef(null),[A,C]=E.useState(null),[w,x]=E.useState(-1),T=vJ(d,200);E.useEffect(()=>{typeof n.value>"u"||f(r)},[n.value,n.defaultValue]),E.useEffect(()=>{if(!e||!l)return;const R=async()=>{try{const I=y.current?.selectionStart??T.length,D=T.slice(0,I),L=T.slice(I),H=5,Z=D.split(`
|
|
293
|
-
`),te=Z.slice(Math.max(0,Z.length-H-1),-1).join(`
|
|
294
|
-
`),ce=Z[Z.length-1]??"",ae=L.split(`
|
|
295
|
-
`).slice(1,H+1).join(`
|
|
296
|
-
`);a({text:D,contextBefore:te,currentLine:ce,contextAfter:ae,aiOptions:{apiKey:s.ai?.apiKey,model:s.ai?.model,temperature:s.ai?.temperature}},{onSuccess:M=>{g(M.data?.autocompletion??""),x(I)}})}catch(I){console.error("Autocomplete error:",I)}};T.length>3?(g(""),R()):g("")},[T,e,a,s]),E.useEffect(()=>{if(!p||w===-1||!_.current||!S.current){C(null);return}const R=_.current.getBoundingClientRect(),I=S.current.getBoundingClientRect();C({left:R.left-I.left,top:R.top-I.top})},[p,w,d]);const N=()=>{const R=y.current?.selectionStart??w;if(R!==w)return;const I=d.slice(0,R)+p+d.slice(R);f(I),g(""),x(-1),setTimeout(()=>{y.current?.focus();const D=R+p.length;y.current?.setSelectionRange(D,D)},0)};return v.jsxs("div",{className:"relative w-full",children:[v.jsxs("div",{ref:S,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:[p&&w!==-1?v.jsxs(v.Fragment,{children:[v.jsx("span",{className:"align-text-top text-transparent",children:d.slice(0,w)}),v.jsx("span",{ref:_,style:{visibility:"hidden"},"aria-hidden":"true",children:p}),v.jsx("span",{className:"align-text-top text-transparent",children:d.slice(w)})]}):v.jsx("span",{className:"align-text-top text-transparent",children:d}),t&&v.jsx("span",{className:"text-neutral align-text-top",children:t})]}),p&&A&&v.jsx("div",{className:"pointer-events-none text-neutral whitespace-pre-wrap break-words text-base leading-[1.45rem] md:text-sm md:leading-[1.23rem]",style:{position:"absolute",left:A.left,top:A.top},children:p}),v.jsx(T0,{...n,ref:y,value:d,onChange:R=>{u(!0),f(R.target.value),g(""),n.onChange?.(R)},onKeyDown:R=>{R.key==="Tab"&&p&&(R.preventDefault(),N()),n.onKeyDown?.(R)},onSelect:R=>{p&&R.target.selectionStart!==w&&(g(""),x(-1)),n.onSelect?.(R)}})]})},_J=({children:e,onContentChange:t,disabled:n,validate:r,additionalButtons:a,...s})=>{const{isAuthenticated:l}=yJ(),[u,d]=E.useState(e),[f,p]=E.useState(0),g=u!==e,y=()=>{d(e),p(C=>C+1)},_=()=>{t(u)},S=C=>d(C.currentTarget.value??"");E.useEffect(()=>{d(e)},[e]);const A=r?.(u)??!0;return v.jsxs("div",{className:"flex size-full flex-col items-center justify-between gap-2",children:[v.jsx(bJ,{onChange:S,variant:"invisible",className:"size-full",defaultValue:e,isActive:l,...s},f),(g||a)&&v.jsxs("div",{className:"flex w-full items-center justify-end gap-2",children:[g&&v.jsxs(v.Fragment,{children:[v.jsx(ot,{Icon:zs,label:"Validate",variant:"hoverable",color:"text",size:"icon-sm",className:"cursor-pointer hover:scale-110",disabled:n||!A,onClick:_}),v.jsx(ot,{Icon:po,label:"Cancel",variant:"hoverable",size:"icon-sm",color:"text",className:"cursor-pointer hover:scale-110",onClick:y})]}),a]})]},e)};function Wa(){return Wa=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},Wa.apply(this,arguments)}const EJ=["children","options"],BC=["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"}),VC={amp:"&",apos:"'",gt:">",lt:"<",nbsp:" ",quot:"“"},SJ=["style","script","pre"],xJ=["src","href","data","formAction","srcDoc","action"],AJ=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,wJ=/mailto:/i,TJ=/\n{2,}$/,UC=/^(\s*>[\s\S]*?)(?=\n\n|$)/,CJ=/^ *> ?/gm,RJ=/^(?:\[!([^\]]*)\]\n)?([\s\S]*)/,kJ=/^ {2,}\n/,NJ=/^(?:( *[-*_])){3,} *(?:\n *)+\n/,FC=/^(?: {1,3})?(`{3,}|~{3,}) *(\S+)? *([^\n]*?)?\n([\s\S]*?)(?:\1\n?|$)/,$C=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,OJ=/^(`+)((?:\\`|(?!\1)`|[^`])+)\1/,IJ=/^(?:\n *)*\n/,DJ=/\r\n?/g,jJ=/^\[\^([^\]]+)](:(.*)((\n+ {4,}.*)|(\n(?!\[\^).+))*)/,LJ=/^\[\^([^\]]+)]/,PJ=/\f/g,MJ=/^---[ \t]*\n(.|\n)*\n---[ \t]*\n/,zJ=/^\s*?\[(x|\s)\]/,HC=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,GC=/^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,KC=/^([^\n]+)\n *(=|-){3,} *\n/,uy=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?((?:[^>]*[^/])?)>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1\b)[\s\S])*?)<\/\1>(?!<\/\1>)\n*/i,BJ=/&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi,qC=/^<!--[\s\S]*?(?:-->)/,VJ=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,dy=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,UJ=/^\{.*\}$/,FJ=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,$J=/^<([^ >]+@[^ >]+)>/,HJ=/^<([^ >]+:\/[^ >]+)>/,GJ=/-([a-z])?/gi,WC=/^(\|.*)\n(?: *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*))?\n?/,KJ=/^[^\n]+(?: \n|\n{2,})/,qJ=/^\[([^\]]*)\]:\s+<?([^\s>]+)>?\s*("([^"]*)")?/,WJ=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,ZJ=/^\[([^\]]*)\] ?\[([^\]]*)\]/,YJ=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,XJ=/\t/g,QJ=/(^ *\||\| *$)/g,JJ=/^ *:-+: *$/,eee=/^ *:-+ *$/,tee=/^ *-+: *$/,Vh=e=>`(?=[\\s\\S]+?\\1${e?"\\1":""})`,Uh="((?:\\[.*?\\][([].*?[)\\]]|<.*?>(?:.*?<.*?>)?|`.*?`|\\\\\\1|[\\s\\S])+?)",nee=RegExp(`^([*_])\\1${Vh(1)}${Uh}\\1\\1(?!\\1)`),ree=RegExp(`^([*_])${Vh(0)}${Uh}\\1(?!\\1)`),iee=RegExp(`^(==)${Vh(0)}${Uh}\\1`),aee=RegExp(`^(~~)${Vh(0)}${Uh}\\1`),oee=/^(:[a-zA-Z0-9-_]+:)/,see=/^\\([^0-9A-Za-z\s])/,lee=/\\([^0-9A-Za-z\s])/g,cee=/^[\s\S](?:(?! \n|[0-9]\.|http)[^=*_~\-\n:<`\\\[!])*/,uee=/^\n+/,dee=/^([ \t]*)/,fee=/(?:^|\n)( *)$/,G0="(?:\\d+\\.)",K0="(?:[*+-])";function zD(e){return"( *)("+(e===1?G0:K0)+") +"}const BD=zD(1),VD=zD(2);function UD(e){return RegExp("^"+(e===1?BD:VD))}const hee=UD(1),pee=UD(2);function FD(e){return RegExp("^"+(e===1?BD:VD)+"[^\\n]*(?:\\n(?!\\1"+(e===1?G0:K0)+" )[^\\n]*)*(\\n|$)","gm")}const mee=FD(1),gee=FD(2);function $D(e){const t=e===1?G0:K0;return RegExp("^( *)("+t+") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1"+t+" (?!"+t+" ))\\n*|\\s*\\n*$)")}const HD=$D(1),GD=$D(2);function ZC(e,t){const n=t===1,r=n?HD:GD,a=n?mee:gee,s=n?hee:pee;return{t:l=>s.test(l),o:Is(function(l,u){const d=fee.exec(u.prevCapture);return d&&(u.list||!u.inline&&!u.simple)?r.exec(l=d[1]+l):null}),i:1,u(l,u,d){const f=n?+l[2]:void 0,p=l[0].replace(TJ,`
|
|
297
|
-
`).match(a);let g=!1;return{items:p.map(function(y,_){const S=s.exec(y)[0].length,A=RegExp("^ {1,"+S+"}","gm"),C=y.replace(A,"").replace(s,""),w=_===p.length-1,x=C.indexOf(`
|
|
298
|
-
|
|
299
|
-
`)!==-1||w&&g;g=x;const T=d.inline,N=d.list;let R;d.list=!0,x?(d.inline=!1,R=Tc(C)+`
|
|
300
|
-
|
|
301
|
-
`):(d.inline=!0,R=Tc(C));const I=u(R,d);return d.inline=T,d.list=N,I}),ordered:n,start:f}},l:(l,u,d)=>e(l.ordered?"ol":"ul",{key:d.key,start:l.type==="20"?l.start:void 0},l.items.map(function(f,p){return e("li",{key:p},u(f,d))}))}}const yee=RegExp(`^\\[((?:\\[[^\\[\\]]*(?:\\[[^\\[\\]]*\\][^\\[\\]]*)*\\]|[^\\[\\]])*)\\]\\(\\s*<?((?:\\([^)]*\\)|[^\\s\\\\]|\\\\.)*?)>?(?:\\s+['"]([\\s\\S]*?)['"])?\\s*\\)`),vee=/^!\[(.*?)\]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/;function Tc(e){let t=e.length;for(;t>0&&e[t-1]<=" ";)t--;return e.slice(0,t)}function Ef(e,t){return e.startsWith(t)}function bee(e,t,n){if(Array.isArray(n)){for(let r=0;r<n.length;r++)if(Ef(e,n[r]))return!0;return!1}return n(e,t)}function uc(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 _ee(e){return tee.test(e)?"right":JJ.test(e)?"center":eee.test(e)?"left":null}function YC(e,t,n,r){const a=n.inTable;n.inTable=!0;let s=[[]],l="";function u(){if(!l)return;const d=s[s.length-1];d.push.apply(d,t(l,n)),l=""}return e.trim().split(/(`[^`]*`|\\\||\|)/).filter(Boolean).forEach((d,f,p)=>{d.trim()==="|"&&(u(),r)?f!==0&&f!==p.length-1&&s.push([]):l+=d}),u(),n.inTable=a,s}function Eee(e,t,n){n.inline=!0;const r=e[2]?e[2].replace(QJ,"").split("|").map(_ee):[],a=e[3]?(function(l,u,d){return l.trim().split(`
|
|
302
|
-
`).map(function(f){return YC(f,u,d,!0)})})(e[3],t,n):[],s=YC(e[1],t,n,!!a.length);return n.inline=!1,a.length?{align:r,cells:a,header:s,type:"25"}:{children:s,type:"21"}}function XC(e,t){return e.align[t]==null?{}:{textAlign:e.align[t]}}function Is(e){return e.inline=1,e}function Xi(e){return Is(function(t,n){return n.inline?e.exec(t):null})}function Qi(e){return Is(function(t,n){return n.inline||n.simple?e.exec(t):null})}function hi(e){return function(t,n){return n.inline||n.simple?null:e.exec(t)}}function Qd(e){return Is(function(t){return e.exec(t)})}const See=/(javascript|vbscript|data(?!:image)):/i;function xee(e){try{const t=decodeURIComponent(e).replace(/[^A-Za-z0-9/:]/g,"");if(See.test(t))return null}catch{return null}return e}function Dr(e){return e&&e.replace(lee,"$1")}function Sf(e,t,n){const r=n.inline||!1,a=n.simple||!1;n.inline=!0,n.simple=!0;const s=e(t,n);return n.inline=r,n.simple=a,s}function Aee(e,t,n){const r=n.inline||!1,a=n.simple||!1;n.inline=!1,n.simple=!0;const s=e(t,n);return n.inline=r,n.simple=a,s}function wee(e,t,n){const r=n.inline||!1;n.inline=!1;const a=e(t,n);return n.inline=r,a}const fy=(e,t,n)=>({children:Sf(t,e[2],n)});function hy(){return{}}function py(){return null}function Tee(...e){return e.filter(Boolean).join(" ")}function my(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 Cee(e="",t={}){t.overrides=t.overrides||{},t.namedCodesToUnicode=t.namedCodesToUnicode?Wa({},VC,t.namedCodesToUnicode):VC;const n=t.slugify||uc,r=t.sanitizer||xee,a=t.createElement||E.createElement,s=[UC,FC,$C,t.enforceAtxHeadings?GC:HC,KC,WC,HD,GD],l=[...s,KJ,uy,qC,dy];function u(w,x,...T){const N=my(t.overrides,w+".props",{});return a((function(R,I){const D=my(I,R);return D?typeof D=="function"||typeof D=="object"&&"render"in D?D:my(I,R+".component",R):R})(w,t.overrides),Wa({},x,N,{className:Tee(x?.className,N.className)||void 0}),...T)}function d(w){w=w.replace(MJ,"");let x=!1;t.forceInline?x=!0:t.forceBlock||(x=YJ.test(w)===!1);const T=S(_(x?w:Tc(w).replace(uee,"")+`
|
|
303
|
-
|
|
304
|
-
`,{inline:x}));for(;typeof T[T.length-1]=="string"&&!T[T.length-1].trim();)T.pop();if(t.wrapper===null)return T;const N=t.wrapper||(x?"span":"div");let R;if(T.length>1||t.forceWrapper)R=T;else{if(T.length===1)return R=T[0],typeof R=="string"?u("span",{key:"outer"},R):R;R=null}return a(N,{key:"outer"},R)}function f(w,x){if(!x||!x.trim())return null;const T=x.match(AJ);return T?T.reduce(function(N,R){const I=R.indexOf("=");if(I!==-1){const D=(function(q){return q.indexOf("-")!==-1&&q.match(VJ)===null&&(q=q.replace(GJ,function(te,ce){return ce.toUpperCase()})),q})(R.slice(0,I)).trim(),L=(function(q){const te=q[0];return(te==='"'||te==="'")&&q.length>=2&&q[q.length-1]===te?q.slice(1,-1):q})(R.slice(I+1).trim()),H=BC[D]||D;if(H==="ref")return N;const Z=N[H]=(function(q,te,ce,W){return te==="style"?(function(ae){const M=[];let X="",G=!1,ge=!1,P="";if(!ae)return M;for(let F=0;F<ae.length;F++){const J=ae[F];if(J!=='"'&&J!=="'"||G||(ge?J===P&&(ge=!1,P=""):(ge=!0,P=J)),J==="("&&X.endsWith("url")?G=!0:J===")"&&G&&(G=!1),J!==";"||ge||G)X+=J;else{const se=X.trim();if(se){const he=se.indexOf(":");if(he>0){const ye=se.slice(0,he).trim(),fe=se.slice(he+1).trim();M.push([ye,fe])}}X=""}}const ie=X.trim();if(ie){const F=ie.indexOf(":");if(F>0){const J=ie.slice(0,F).trim(),se=ie.slice(F+1).trim();M.push([J,se])}}return M})(ce).reduce(function(ae,[M,X]){return ae[M.replace(/(-[a-z])/g,G=>G[1].toUpperCase())]=W(X,q,M),ae},{}):xJ.indexOf(te)!==-1?W(Dr(ce),q,te):(ce.match(UJ)&&(ce=Dr(ce.slice(1,ce.length-1))),ce==="true"||ce!=="false"&&ce)})(w,D,L,r);typeof Z=="string"&&(uy.test(Z)||dy.test(Z))&&(N[H]=d(Z.trim()))}else R!=="style"&&(N[BC[R]||R]=!0);return N},{}):null}const p=[],g={},y={0:{t:[">"],o:hi(UC),i:1,u(w,x,T){const[,N,R]=w[0].replace(CJ,"").match(RJ);return{alert:N,children:x(R,T)}},l(w,x,T){const N={key:T.key};return w.alert&&(N.className="markdown-alert-"+n(w.alert.toLowerCase(),uc),w.children.unshift({attrs:{},children:[{type:"27",text:w.alert}],noInnerParse:!0,type:"11",tag:"header"})),u("blockquote",N,x(w.children,T))}},1:{o:Qd(kJ),i:1,u:hy,l:(w,x,T)=>u("br",{key:T.key})},2:{t:w=>{const x=w[0];return x==="-"||x==="*"||x==="_"},o:hi(NJ),i:1,u:hy,l:(w,x,T)=>u("hr",{key:T.key})},3:{t:[" "],o:hi($C),i:0,u:w=>({lang:void 0,text:Dr(Tc(w[0].replace(/^ {4}/gm,"")))}),l:(w,x,T)=>u("pre",{key:T.key},u("code",Wa({},w.attrs,{className:w.lang?"lang-"+w.lang:""}),w.text))},4:{t:["```","~~~"],o:hi(FC),i:0,u:w=>({attrs:f("code",w[3]||""),lang:w[2]||void 0,text:w[4],type:"3"})},5:{t:["`"],o:Qi(OJ),i:3,u:w=>({text:Dr(w[2])}),l:(w,x,T)=>u("code",{key:T.key},w.text)},6:{t:["[^"],o:hi(jJ),i:0,u:w=>(p.push({footnote:w[2],identifier:w[1]}),{}),l:py},7:{t:["[^"],o:Xi(LJ),i:1,u:w=>({target:"#"+n(w[1],uc),text:w[1]}),l:(w,x,T)=>u("a",{key:T.key,href:r(w.target,"a","href")},u("sup",{key:T.key},w.text))},8:{t:["[ ]","[x]"],o:Xi(zJ),i:1,u:w=>({completed:w[1].toLowerCase()==="x"}),l:(w,x,T)=>u("input",{checked:w.completed,key:T.key,readOnly:!0,type:"checkbox"})},9:{t:["#"],o:hi(t.enforceAtxHeadings?GC:HC),i:1,u:(w,x,T)=>({children:Sf(x,w[2],T),id:n(w[2],uc),level:w[1].length}),l:(w,x,T)=>u("h"+w.level,{id:w.id,key:T.key},x(w.children,T))},10:{o:hi(KC),i:0,u:(w,x,T)=>({children:Sf(x,w[1],T),level:w[2]==="="?1:2,type:"9"})},11:{t:["<"],o:Qd(uy),i:1,u(w,x,T){const[,N]=w[3].match(dee),R=RegExp("^"+N,"gm"),I=w[3].replace(R,""),D=(L=I,l.some(ce=>ce.test(L))?wee:Sf);var L;const H=w[1].toLowerCase(),Z=SJ.indexOf(H)!==-1,q=(Z?H:w[1]).trim(),te={attrs:f(q,w[2]),noInnerParse:Z,tag:q};if(T.inAnchor=T.inAnchor||H==="a",Z)te.text=w[3];else{const ce=T.inHTML;T.inHTML=!0,te.children=D(x,I,T),T.inHTML=ce}return T.inAnchor=!1,te},l:(w,x,T)=>u(w.tag,Wa({key:T.key},w.attrs),w.text||(w.children?x(w.children,T):""))},13:{t:["<"],o:Qd(dy),i:1,u(w){const x=w[1].trim();return{attrs:f(x,w[2]||""),tag:x}},l:(w,x,T)=>u(w.tag,Wa({},w.attrs,{key:T.key}))},12:{t:["<!--"],o:Qd(qC),i:1,u:()=>({}),l:py},14:{t:["!["],o:Qi(vee),i:1,u:w=>({alt:Dr(w[1]),target:Dr(w[2]),title:Dr(w[3])}),l:(w,x,T)=>u("img",{key:T.key,alt:w.alt||void 0,title:w.title||void 0,src:r(w.target,"img","src")})},15:{t:["["],o:Xi(yee),i:3,u:(w,x,T)=>({children:Aee(x,w[1],T),target:Dr(w[2]),title:Dr(w[3])}),l:(w,x,T)=>u("a",{key:T.key,href:r(w.target,"a","href"),title:w.title},x(w.children,T))},16:{t:["<"],o:Xi(HJ),i:0,u:w=>({children:[{text:w[1],type:"27"}],target:w[1],type:"15"})},17:{t:(w,x)=>!x.inAnchor&&!t.disableAutoLink&&(Ef(w,"http://")||Ef(w,"https://")),o:Xi(FJ),i:0,u:w=>({children:[{text:w[1],type:"27"}],target:w[1],title:void 0,type:"15"})},18:{t:["<"],o:Xi($J),i:0,u(w){let x=w[1],T=w[1];return wJ.test(T)||(T="mailto:"+T),{children:[{text:x.replace("mailto:",""),type:"27"}],target:T,type:"15"}}},20:ZC(u,1),33:ZC(u,2),19:{o:hi(IJ),i:3,u:hy,l:()=>`
|
|
305
|
-
`},21:{o:Is(function(w,x){if(x.inline||x.simple||x.inHTML&&w.indexOf(`
|
|
306
|
-
|
|
307
|
-
`)===-1&&x.prevCapture.indexOf(`
|
|
308
|
-
|
|
309
|
-
`)===-1)return null;let T="";w.split(`
|
|
310
|
-
`).every(R=>(R+=`
|
|
311
|
-
`,!s.some(I=>I.test(R))&&(T+=R,!!R.trim())));const N=Tc(T);return N===""?null:[T,,N]}),i:3,u:fy,l:(w,x,T)=>u("p",{key:T.key},x(w.children,T))},22:{t:["["],o:Xi(qJ),i:0,u:w=>(g[w[1]]={target:w[2],title:w[4]},{}),l:py},23:{t:["!["],o:Qi(WJ),i:0,u:w=>({alt:w[1]?Dr(w[1]):void 0,ref:w[2]}),l:(w,x,T)=>g[w.ref]?u("img",{key:T.key,alt:w.alt,src:r(g[w.ref].target,"img","src"),title:g[w.ref].title}):null},24:{t:w=>w[0]==="["&&w.indexOf("](")===-1,o:Xi(ZJ),i:0,u:(w,x,T)=>({children:x(w[1],T),fallbackChildren:w[0],ref:w[2]}),l:(w,x,T)=>g[w.ref]?u("a",{key:T.key,href:r(g[w.ref].target,"a","href"),title:g[w.ref].title},x(w.children,T)):u("span",{key:T.key},w.fallbackChildren)},25:{t:["|"],o:hi(WC),i:1,u:Eee,l(w,x,T){const N=w;return u("table",{key:T.key},u("thead",null,u("tr",null,N.header.map(function(R,I){return u("th",{key:I,style:XC(N,I)},x(R,T))}))),u("tbody",null,N.cells.map(function(R,I){return u("tr",{key:I},R.map(function(D,L){return u("td",{key:L,style:XC(N,L)},x(D,T))}))})))}},27:{o:Is(function(w,x){let T;return Ef(w,":")&&(T=oee.exec(w)),T||cee.exec(w)}),i:4,u(w){const x=w[0];return{text:x.indexOf("&")===-1?x:x.replace(BJ,(T,N)=>t.namedCodesToUnicode[N]||T)}},l:w=>w.text},28:{t:["**","__"],o:Qi(nee),i:2,u:(w,x,T)=>({children:x(w[2],T)}),l:(w,x,T)=>u("strong",{key:T.key},x(w.children,T))},29:{t:w=>{const x=w[0];return(x==="*"||x==="_")&&w[1]!==x},o:Qi(ree),i:3,u:(w,x,T)=>({children:x(w[2],T)}),l:(w,x,T)=>u("em",{key:T.key},x(w.children,T))},30:{t:["\\"],o:Qi(see),i:1,u:w=>({text:w[1],type:"27"})},31:{t:["=="],o:Qi(iee),i:3,u:fy,l:(w,x,T)=>u("mark",{key:T.key},x(w.children,T))},32:{t:["~~"],o:Qi(aee),i:3,u:fy,l:(w,x,T)=>u("del",{key:T.key},x(w.children,T))}};t.disableParsingRawHTML===!0&&(delete y[11],delete y[13]);const _=(function(w){var x=Object.keys(w);function T(N,R){var I=[];if(R.prevCapture=R.prevCapture||"",N.trim())for(;N;)for(var D=0;D<x.length;){var L=x[D],H=w[L];if(!H.t||bee(N,R,H.t)){var Z=H.o(N,R);if(Z&&Z[0]){N=N.substring(Z[0].length);var q=H.u(Z,T,R);R.prevCapture+=Z[0],q.type||(q.type=L),I.push(q);break}D++}else D++}return R.prevCapture="",I}return x.sort(function(N,R){return w[N].i-w[R].i||(N<R?-1:1)}),function(N,R){return T((function(I){return I.replace(DJ,`
|
|
312
|
-
`).replace(PJ,"").replace(XJ," ")})(N),R)}})(y),S=(A=(function(w,x){return function(T,N,R){const I=w[T.type].l;return x?x(()=>I(T,N,R),T,N,R):I(T,N,R)}})(y,t.renderRule),function w(x,T={}){if(Array.isArray(x)){const N=T.key,R=[];let I=!1;for(let D=0;D<x.length;D++){T.key=D;const L=w(x[D],T),H=typeof L=="string";H&&I?R[R.length-1]+=L:L!==null&&R.push(L),I=H}return T.key=N,R}return A(x,w,T)});var A;const C=d(e);return p.length?u("div",null,C,u("footer",{key:"footer"},p.map(function(w){return u("div",{id:n(w.identifier,uc),key:w.identifier},w.identifier,S(_(w.footnote,{inline:!0})))}))):C}const Ree=e=>{let{children:t="",options:n}=e,r=(function(a,s){if(a==null)return{};var l,u,d={},f=Object.keys(a);for(u=0;u<f.length;u++)s.indexOf(l=f[u])>=0||(d[l]=a[l]);return d})(e,EJ);return E.cloneElement(Cee(t,n),r)},kee=700,KD=({isRollable:e=!0,minHeight:t=kee,children:n,className:r})=>{const[a,s]=E.useState(0),[l,u]=E.useState(!0),d=E.useRef(null),{expandCollapseContent:f}=cn("expand-collapse"),p=a>t;return E.useEffect(()=>{d.current&&s(d.current.clientHeight)},[]),e?p?v.jsxs(vb,{isHidden:l,minHeight:t,className:"w-full overflow-x-scroll overflow-y-hidden",children:[v.jsx("div",{className:_e("grid w-full",r),ref:d,children:n}),v.jsx("button",{className:_e("absolute bottom-0 right-0 flex justify-center cursor-pointer w-full px-3 py-0.5 hover:py-1 transition-all duration-300 text-md text-neutral-700 dark:text-neutral-400 items-center shadow-[0_0_10px_-15px_rgba(0,0,0,0.3)] backdrop-blur rounded-t-2xl bg-gradient-to-t from-card/80 to-transparent",!l&&"w-auto"),onClick:()=>u(g=>!g),children:f(l)})]}):v.jsx("div",{className:_e("grid w-full",r),ref:d,children:n}):n},Nee=[[/^(<!--)(.+)(-->)$/,!1],[/^(\/\*)(.+)(\*\/)$/,!1],[/^(\/\/|["'#]|;{1,2}|%{1,2}|--)(.*)$/,!0],[/^(\*)(.+)$/,!0]];function Oee(e,t,n){const r=[];for(const a of e){if(n==="v3"){const u=a.children.flatMap((d,f)=>{if(d.type!=="element")return d;const p=d.children[0];if(p.type!=="text")return d;const g=f===a.children.length-1;if(!JC(p.value,g))return d;const _=p.value.split(/(\s+\/\/)/);if(_.length<=1)return d;let S=[_[0]];for(let A=1;A<_.length;A+=2)S.push(_[A]+(_[A+1]||""));return S=S.filter(Boolean),S.length<=1?d:S.map(A=>({...d,children:[{type:"text",value:A}]}))});u.length!==a.children.length&&(a.children=u)}const s=a.children;let l=s.length-1;n==="v1"?l=0:t&&(l=s.length-2);for(let u=Math.max(l,0);u<s.length;u++){const d=s[u];if(d.type!=="element")continue;const f=d.children.at(0);if(f?.type!=="text")continue;const p=u===s.length-1,g=JC(f.value,p);if(g)if(t&&!p&&u!==0){const y=QC(s[u-1],"{")&&QC(s[u+1],"}");r.push({info:g,line:a,token:d,isLineCommentOnly:s.length===3&&d.children.length===1,isJsxStyle:y})}else r.push({info:g,line:a,token:d,isLineCommentOnly:s.length===1&&d.children.length===1,isJsxStyle:!1})}}return r}function QC(e,t){if(e.type!=="element")return!1;const n=e.children[0];return n.type!=="text"?!1:n.value.trim()===t}function JC(e,t){let n=e.trimStart();const r=e.length-n.length;n=n.trimEnd();const a=e.length-n.length-r;for(const[s,l]of Nee){if(l&&!t)continue;const u=s.exec(n);if(u)return[" ".repeat(r)+u[1],u[2],u[3]?u[3]+" ".repeat(a):void 0]}}function Iee(e){const t=e.match(/(?:\/\/|["'#]|;{1,2}|%{1,2}|--)(\s*)$/);return t&&t[1].trim().length===0?e.slice(0,t.index):e}function qD(e,t,n,r){return r==null&&(r="v3"),{name:e,code(a){const s=a.children.filter(f=>f.type==="element"),l=[];a.data??={};const u=a.data;u._shiki_notation??=Oee(s,["jsx","tsx"].includes(this.options.lang),r);const d=u._shiki_notation;for(const f of d){if(f.info[1].length===0)continue;let p=s.indexOf(f.line);f.isLineCommentOnly&&r!=="v1"&&p++;let g=!1;if(f.info[1]=f.info[1].replace(t,(..._)=>n.call(this,_,f.line,f.token,s,p)?(g=!0,""):_[0]),!g)continue;r==="v1"&&(f.info[1]=Iee(f.info[1]));const y=f.info[1].trim().length===0;if(y&&(f.info[1]=""),y&&f.isLineCommentOnly)l.push(f.line);else if(y&&f.isJsxStyle)f.line.children.splice(f.line.children.indexOf(f.token)-1,3);else if(y)f.line.children.splice(f.line.children.indexOf(f.token),1);else{const _=f.token.children[0];_.type==="text"&&(_.value=f.info.join(""))}}for(const f of l){const p=a.children.indexOf(f),g=a.children[p+1];let y=1;g?.type==="text"&&g?.value===`
|
|
313
|
-
`&&(y=2),a.children.splice(p,y)}}}}function Dee(e){if(!e)return null;const t=e.match(/\{([\d,-]+)\}/);return t?t[1].split(",").flatMap(r=>{const a=r.split("-").map(s=>Number.parseInt(s,10));return a.length===1?[a[0]]:Array.from({length:a[1]-a[0]+1},(s,l)=>l+a[0])}):null}const eR=Symbol("highlighted-lines");function jee(e={}){const{className:t="highlighted"}=e;return{name:"@shikijs/transformers:meta-highlight",line(n,r){if(!this.options.meta?.__raw)return;const a=this.meta;return a[eR]??=Dee(this.options.meta.__raw),(a[eR]??[]).includes(r)&&this.addClassToHast(n,t),n}}}function Lee(e){return e?Array.from(e.matchAll(/\/((?:\\.|[^/])+)\//g)).map(n=>n[1].replace(/\\(.)/g,"$1")):[]}function Pee(e={}){const{className:t="highlighted-word"}=e;return{name:"@shikijs/transformers:meta-word-highlight",preprocess(n,r){if(!this.options.meta?.__raw)return;const a=Lee(this.options.meta.__raw);r.decorations||=[];for(const s of a){const l=Mee(n,s);for(const u of l)r.decorations.push({start:u,end:u+s.length,properties:{class:t}})}}}}function Mee(e,t){const n=[];let r=0;for(;;){const a=e.indexOf(t,r);if(a===-1||a>=e.length||a<r)break;n.push(a),r=a+t.length}return n}function zee(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function q0(e={},t="@shikijs/transformers:notation-map"){const{classMap:n={},classActivePre:r=void 0}=e;return qD(t,new RegExp(`\\s*\\[!code (${Object.keys(n).map(zee).join("|")})(:\\d+)?\\]`),function([a,s,l=":1"],u,d,f,p){const g=Number.parseInt(l.slice(1),10);for(let y=p;y<Math.min(p+g,f.length);y++)this.addClassToHast(f[y],n[s]);return r&&this.addClassToHast(this.pre,r),!0},e.matchAlgorithm)}function Bee(e={}){const{classLineAdd:t="diff add",classLineRemove:n="diff remove",classActivePre:r="has-diff"}=e;return q0({classMap:{"++":t,"--":n},classActivePre:r,matchAlgorithm:e.matchAlgorithm},"@shikijs/transformers:notation-diff")}function Vee(e={}){const{classMap:t={error:["highlighted","error"],warning:["highlighted","warning"]},classActivePre:n="has-highlighted"}=e;return q0({classMap:t,classActivePre:n,matchAlgorithm:e.matchAlgorithm},"@shikijs/transformers:notation-error-level")}function Uee(e={}){const{classActiveLine:t="highlighted",classActivePre:n="has-highlighted"}=e;return q0({classMap:{highlight:t,hl:t},classActivePre:n,matchAlgorithm:e.matchAlgorithm},"@shikijs/transformers:notation-highlight")}function Fee(e,t,n,r){const a=WD(e);let s=a.indexOf(n);for(;s!==-1;)$ee.call(this,e.children,t,s,n.length,r),s=a.indexOf(n,s+1)}function WD(e){return e.type==="text"?e.value:e.type==="element"&&e.tagName==="span"?e.children.map(WD).join(""):""}function $ee(e,t,n,r,a){let s=0;for(let l=0;l<e.length;l++){const u=e[l];if(u.type!=="element"||u.tagName!=="span"||u===t)continue;const d=u.children[0];if(d.type==="text"){if(Hee([s,s+d.value.length-1],[n,n+r])){const f=Math.max(0,n-s),p=r-Math.max(0,s-n);if(p===0)continue;const g=Gee(u,d,f,p);this.addClassToHast(g[1],a);const y=g.filter(Boolean);e.splice(l,1,...y),l+=y.length-1}s+=d.value.length}}}function Hee(e,t){return e[0]<=t[1]&&e[1]>=t[0]}function Gee(e,t,n,r){const a=t.value,s=l=>Kee(e,{children:[{type:"text",value:l}]});return[n>0?s(a.slice(0,n)):void 0,s(a.slice(n,n+r)),n+r<a.length?s(a.slice(n+r)):void 0]}function Kee(e,t){return{...e,properties:{...e.properties},...t}}function qee(e={}){const{classActiveWord:t="highlighted-word",classActivePre:n=void 0}=e;return qD("@shikijs/transformers:notation-highlight-word",/\s*\[!code word:((?:\\.|[^:\]])+)(:\d+)?\]/,function([r,a,s],l,u,d,f){const p=s?Number.parseInt(s.slice(1),10):d.length;a=a.replace(/\\(.)/g,"$1");for(let g=f;g<Math.min(f+p,d.length);g++)Fee.call(this,d[g],u,a,t);return n&&this.addClassToHast(this.pre,n),!0},e.matchAlgorithm)}const Wee="modulepreload",Zee=function(e){return"/"+e},tR={},j=function(t,n,r){let a=Promise.resolve();if(n&&n.length>0){let f=function(p){return Promise.all(p.map(g=>Promise.resolve(g).then(y=>({status:"fulfilled",value:y}),y=>({status:"rejected",reason:y}))))};var l=f;document.getElementsByTagName("link");const u=document.querySelector("meta[property=csp-nonce]"),d=u?.nonce||u?.getAttribute("nonce");a=f(n.map(p=>{if(p=Zee(p),p in tR)return;tR[p]=!0;const g=p.endsWith(".css"),y=g?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${p}"]${y}`))return;const _=document.createElement("link");if(_.rel=g?"stylesheet":Wee,g||(_.as="script"),_.crossOrigin="",_.href=p,d&&_.setAttribute("nonce",d),document.head.appendChild(_),g)return new Promise((S,A)=>{_.addEventListener("load",S),_.addEventListener("error",()=>A(new Error(`Unable to preload CSS for ${p}`)))})}))}function s(u){const d=new Event("vite:preloadError",{cancelable:!0});if(d.payload=u,window.dispatchEvent(d),!d.defaultPrevented)throw u}return a.then(u=>{for(const d of u||[])d.status==="rejected"&&s(d.reason);return t().catch(s)})};let Bt=class extends Error{constructor(t){super(t),this.name="ShikiError"}};function Yee(e){return W0(e)}function W0(e){return Array.isArray(e)?Xee(e):e instanceof RegExp?e:typeof e=="object"?Qee(e):e}function Xee(e){let t=[];for(let n=0,r=e.length;n<r;n++)t[n]=W0(e[n]);return t}function Qee(e){let t={};for(let n in e)t[n]=W0(e[n]);return t}function ZD(e,...t){return t.forEach(n=>{for(let r in n)e[r]=n[r]}),e}function YD(e){const t=~e.lastIndexOf("/")||~e.lastIndexOf("\\");return t===0?e:~t===e.length-1?YD(e.substring(0,e.length-1)):e.substr(~t+1)}var gy=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,Jd=class{static hasCaptures(e){return e===null?!1:(gy.lastIndex=0,gy.test(e))}static replaceCaptures(e,t,n){return e.replace(gy,(r,a,s,l)=>{let u=n[parseInt(a||s,10)];if(u){let d=t.substring(u.start,u.end);for(;d[0]===".";)d=d.substring(1);switch(l){case"downcase":return d.toLowerCase();case"upcase":return d.toUpperCase();default:return d}}else return r})}};function XD(e,t){return e<t?-1:e>t?1:0}function QD(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 s=XD(e[a],t[a]);if(s!==0)return s}return 0}return n-r}function nR(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 JD(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")}var ej=class{constructor(e){this.fn=e}cache=new Map;get(e){if(this.cache.has(e))return this.cache.get(e);const t=this.fn(e);return this.cache.set(e,t),t}},Jf=class{constructor(e,t,n){this._colorMap=e,this._defaults=t,this._root=n}static createFromRawTheme(e,t){return this.createFromParsedTheme(tte(e),t)}static createFromParsedTheme(e,t){return rte(e,t)}_cachedMatchRoot=new ej(e=>this._root.match(e));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=>Jee(e.parent,a.parentScopes));return r?new tj(r.fontStyle,r.foreground,r.background):null}},yy=class xf{constructor(t,n){this.parent=t,this.scopeName=n}static push(t,n){for(const r of n)t=new xf(t,r);return t}static from(...t){let n=null;for(let r=0;r<t.length;r++)n=new xf(n,t[r]);return n}push(t){return new xf(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 Jee(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&&!ete(e.scopeName,r);){if(a)return!1;e=e.parent}if(!e)return!1;e=e.parent}return!0}function ete(e,t){return t===e||e.startsWith(t)&&e[t.length]==="."}var tj=class{constructor(e,t,n){this.fontStyle=e,this.foregroundId=t,this.backgroundId=n}};function tte(e){if(!e)return[];if(!e.settings||!Array.isArray(e.settings))return[];let t=e.settings,n=[],r=0;for(let a=0,s=t.length;a<s;a++){let l=t[a];if(!l.settings)continue;let u;if(typeof l.scope=="string"){let g=l.scope;g=g.replace(/^[,]+/,""),g=g.replace(/[,]+$/,""),u=g.split(",")}else Array.isArray(l.scope)?u=l.scope:u=[""];let d=-1;if(typeof l.settings.fontStyle=="string"){d=0;let g=l.settings.fontStyle.split(" ");for(let y=0,_=g.length;y<_;y++)switch(g[y]){case"italic":d=d|1;break;case"bold":d=d|2;break;case"underline":d=d|4;break;case"strikethrough":d=d|8;break}}let f=null;typeof l.settings.foreground=="string"&&nR(l.settings.foreground)&&(f=l.settings.foreground);let p=null;typeof l.settings.background=="string"&&nR(l.settings.background)&&(p=l.settings.background);for(let g=0,y=u.length;g<y;g++){let S=u[g].trim().split(" "),A=S[S.length-1],C=null;S.length>1&&(C=S.slice(0,S.length-1),C.reverse()),n[r++]=new nte(A,C,a,d,f,p)}}return n}var nte=class{constructor(e,t,n,r,a,s){this.scope=e,this.parentScopes=t,this.index=n,this.fontStyle=r,this.foreground=a,this.background=s}},gn=(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))(gn||{});function rte(e,t){e.sort((d,f)=>{let p=XD(d.scope,f.scope);return p!==0||(p=QD(d.parentScopes,f.parentScopes),p!==0)?p:d.index-f.index});let n=0,r="#000000",a="#ffffff";for(;e.length>=1&&e[0].scope==="";){let d=e.shift();d.fontStyle!==-1&&(n=d.fontStyle),d.foreground!==null&&(r=d.foreground),d.background!==null&&(a=d.background)}let s=new ite(t),l=new tj(n,s.getId(r),s.getId(a)),u=new ote(new Vv(0,null,-1,0,0),[]);for(let d=0,f=e.length;d<f;d++){let p=e[d];u.insert(0,p.scope,p.parentScopes,p.fontStyle,s.getId(p.foreground),s.getId(p.background))}return new Jf(s,l,u)}var ite=class{_isFrozen;_lastColorId;_id2color;_color2id;constructor(e){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)}},ate=Object.freeze([]),Vv=class nj{scopeDepth;parentScopes;fontStyle;foreground;background;constructor(t,n,r,a,s){this.scopeDepth=t,this.parentScopes=n||ate,this.fontStyle=r,this.foreground=a,this.background=s}clone(){return new nj(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)}},ote=class Uv{constructor(t,n=[],r={}){this._mainRule=t,this._children=r,this._rulesWithParentScopes=n}_rulesWithParentScopes;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 s=n.parentScopes[a].length-t.parentScopes[r].length;if(s!==0)return s;r++,a++}return n.parentScopes.length-t.parentScopes.length}match(t){if(t!==""){let r=t.indexOf("."),a,s;if(r===-1?(a=t,s=""):(a=t.substring(0,r),s=t.substring(r+1)),this._children.hasOwnProperty(a))return this._children[a].match(s)}const n=this._rulesWithParentScopes.concat(this._mainRule);return n.sort(Uv._cmpBySpecificity),n}insert(t,n,r,a,s,l){if(n===""){this._doInsertHere(t,r,a,s,l);return}let u=n.indexOf("."),d,f;u===-1?(d=n,f=""):(d=n.substring(0,u),f=n.substring(u+1));let p;this._children.hasOwnProperty(d)?p=this._children[d]:(p=new Uv(this._mainRule.clone(),Vv.cloneArr(this._rulesWithParentScopes)),this._children[d]=p),p.insert(t+1,f,r,a,s,l)}_doInsertHere(t,n,r,a,s){if(n===null){this._mainRule.acceptOverwrite(t,r,a,s);return}for(let l=0,u=this._rulesWithParentScopes.length;l<u;l++){let d=this._rulesWithParentScopes[l];if(QD(d.parentScopes,n)===0){d.acceptOverwrite(t,r,a,s);return}}r===-1&&(r=this._mainRule.fontStyle),a===0&&(a=this._mainRule.foreground),s===0&&(s=this._mainRule.background),this._rulesWithParentScopes.push(new Vv(t,n,r,a,s))}},Ds=class ar{static toBinaryStr(t){return t.toString(2).padStart(32,"0")}static print(t){const n=ar.getLanguageId(t),r=ar.getTokenType(t),a=ar.getFontStyle(t),s=ar.getForeground(t),l=ar.getBackground(t);console.log({languageId:n,tokenType:r,fontStyle:a,foreground:s,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,s,l,u){let d=ar.getLanguageId(t),f=ar.getTokenType(t),p=ar.containsBalancedBrackets(t)?1:0,g=ar.getFontStyle(t),y=ar.getForeground(t),_=ar.getBackground(t);return n!==0&&(d=n),r!==8&&(f=r),a!==null&&(p=a?1:0),s!==-1&&(g=s),l!==0&&(y=l),u!==0&&(_=u),(d<<0|f<<8|p<<10|g<<11|y<<15|_<<24)>>>0}};function eh(e,t){const n=[],r=ste(e);let a=r.next();for(;a!==null;){let d=0;if(a.length===2&&a.charAt(1)===":"){switch(a.charAt(0)){case"R":d=1;break;case"L":d=-1;break;default:console.log(`Unknown priority ${a} in scope selector`)}a=r.next()}let f=l();if(n.push({matcher:f,priority:d}),a!==",")break;a=r.next()}return n;function s(){if(a==="-"){a=r.next();const d=s();return f=>!!d&&!d(f)}if(a==="("){a=r.next();const d=u();return a===")"&&(a=r.next()),d}if(rR(a)){const d=[];do d.push(a),a=r.next();while(rR(a));return f=>t(d,f)}return null}function l(){const d=[];let f=s();for(;f;)d.push(f),f=s();return p=>d.every(g=>g(p))}function u(){const d=[];let f=l();for(;f&&(d.push(f),a==="|"||a===",");){do a=r.next();while(a==="|"||a===",");f=l()}return p=>d.some(g=>g(p))}}function rR(e){return!!e&&!!e.match(/[\w\.:]+/)}function ste(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 rj(e){typeof e.dispose=="function"&&e.dispose()}var Fc=class{constructor(e){this.scopeName=e}toKey(){return this.scopeName}},lte=class{constructor(e,t){this.scopeName=e,this.ruleName=t}toKey(){return`${this.scopeName}#${this.ruleName}`}},cte=class{_references=[];_seenReferenceKeys=new Set;get references(){return this._references}visitedRule=new Set;add(e){const t=e.toKey();this._seenReferenceKeys.has(t)||(this._seenReferenceKeys.add(t),this._references.push(e))}},ute=class{constructor(e,t){this.repo=e,this.initialScopeName=t,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new Fc(this.initialScopeName)]}seenFullScopeRequests=new Set;seenPartialScopeRequests=new Set;Q;processQueue(){const e=this.Q;this.Q=[];const t=new cte;for(const n of e)dte(n,this.initialScopeName,this.repo,t);for(const n of t.references)if(n instanceof Fc){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 dte(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 s=n.lookup(t);e instanceof Fc?Af({baseGrammar:s,selfGrammar:a},r):Fv(e.ruleName,{baseGrammar:s,selfGrammar:a,repository:a.repository},r);const l=n.injections(e.scopeName);if(l)for(const u of l)r.add(new Fc(u))}function Fv(e,t,n){if(t.repository&&t.repository[e]){const r=t.repository[e];th([r],t,n)}}function Af(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&th(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},t),e.selfGrammar.injections&&th(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}function th(e,t,n){for(const r of e){if(n.visitedRule.has(r))continue;n.visitedRule.add(r);const a=r.repository?ZD({},t.repository,r.repository):t.repository;Array.isArray(r.patterns)&&th(r.patterns,{...t,repository:a},n);const s=r.include;if(!s)continue;const l=ij(s);switch(l.kind){case 0:Af({...t,selfGrammar:t.baseGrammar},n);break;case 1:Af(t,n);break;case 2:Fv(l.ruleName,{...t,repository:a},n);break;case 3:case 4:const u=l.scopeName===t.selfGrammar.scopeName?t.selfGrammar:l.scopeName===t.baseGrammar.scopeName?t.baseGrammar:void 0;if(u){const d={baseGrammar:t.baseGrammar,selfGrammar:u,repository:a};l.kind===4?Fv(l.ruleName,d,n):Af(d,n)}else l.kind===4?n.add(new lte(l.scopeName,l.ruleName)):n.add(new Fc(l.scopeName));break}}}var fte=class{kind=0},hte=class{kind=1},pte=class{constructor(e){this.ruleName=e}kind=2},mte=class{constructor(e){this.scopeName=e}kind=3},gte=class{constructor(e,t){this.scopeName=e,this.ruleName=t}kind=4};function ij(e){if(e==="$base")return new fte;if(e==="$self")return new hte;const t=e.indexOf("#");if(t===-1)return new mte(e);if(t===0)return new pte(e.substring(1));{const n=e.substring(0,t),r=e.substring(t+1);return new gte(n,r)}}var yte=/\\(\d+)/,iR=/\\(\d+)/g,vte=-1,aj=-2;var gu=class{$location;id;_nameIsCapturing;_name;_contentNameIsCapturing;_contentName;constructor(e,t,n,r){this.$location=e,this.id=t,this._name=n||null,this._nameIsCapturing=Jd.hasCaptures(this._name),this._contentName=r||null,this._contentNameIsCapturing=Jd.hasCaptures(this._contentName)}get debugName(){const e=this.$location?`${YD(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:Jd.replaceCaptures(this._name,e,t)}getContentName(e,t){return!this._contentNameIsCapturing||this._contentName===null?this._contentName:Jd.replaceCaptures(this._contentName,e,t)}},bte=class extends gu{retokenizeCapturedWithRuleId;constructor(e,t,n,r,a){super(e,t,n,r),this.retokenizeCapturedWithRuleId=a}dispose(){}collectPatterns(e,t){throw new Error("Not supported!")}compile(e,t){throw new Error("Not supported!")}compileAG(e,t,n,r){throw new Error("Not supported!")}},_te=class extends gu{_match;captures;_cachedCompiledPatterns;constructor(e,t,n,r,a){super(e,t,n,null),this._match=new $c(r,this.id),this.captures=a,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(e,t){t.push(this._match)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new Hc,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},aR=class extends gu{hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,t,n,r,a){super(e,t,n,r),this.patterns=a.patterns,this.hasMissingPatterns=a.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(e,t){for(const n of this.patterns)e.getRule(n).collectPatterns(e,t)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new Hc,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},$v=class extends gu{_begin;beginCaptures;_end;endHasBackReferences;endCaptures;applyEndPatternLast;hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,t,n,r,a,s,l,u,d,f){super(e,t,n,r),this._begin=new $c(a,this.id),this.beginCaptures=s,this._end=new $c(l||"",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=u,this.applyEndPatternLast=d||!1,this.patterns=f.patterns,this.hasMissingPatterns=f.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(e,t){return this._end.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e,t).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e,t).compileAG(e,n,r)}_getCachedCompiledPatterns(e,t){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new Hc;for(const n of this.patterns)e.getRule(n).collectPatterns(e,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,t):this._cachedCompiledPatterns.setSource(0,t)),this._cachedCompiledPatterns}},nh=class extends gu{_begin;beginCaptures;whileCaptures;_while;whileHasBackReferences;hasMissingPatterns;patterns;_cachedCompiledPatterns;_cachedCompiledWhilePatterns;constructor(e,t,n,r,a,s,l,u,d){super(e,t,n,r),this._begin=new $c(a,this.id),this.beginCaptures=s,this.whileCaptures=u,this._while=new $c(l,aj),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=d.patterns,this.hasMissingPatterns=d.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(e,t){return this._while.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new Hc;for(const t of this.patterns)e.getRule(t).collectPatterns(e,this._cachedCompiledPatterns)}return this._cachedCompiledPatterns}compileWhile(e,t){return this._getCachedCompiledWhilePatterns(e,t).compile(e)}compileWhileAG(e,t,n,r){return this._getCachedCompiledWhilePatterns(e,t).compileAG(e,n,r)}_getCachedCompiledWhilePatterns(e,t){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new Hc,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,t||""),this._cachedCompiledWhilePatterns}},oj=class pn{static createCaptureRule(t,n,r,a,s){return t.registerRule(l=>new bte(n,l,r,a,s))}static getCompiledRuleId(t,n,r){return t.id||n.registerRule(a=>{if(t.id=a,t.match)return new _te(t.$vscodeTextmateLocation,t.id,t.name,t.match,pn._compileCaptures(t.captures,n,r));if(typeof t.begin>"u"){t.repository&&(r=ZD({},r,t.repository));let s=t.patterns;return typeof s>"u"&&t.include&&(s=[{include:t.include}]),new aR(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,pn._compilePatterns(s,n,r))}return t.while?new nh(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,pn._compileCaptures(t.beginCaptures||t.captures,n,r),t.while,pn._compileCaptures(t.whileCaptures||t.captures,n,r),pn._compilePatterns(t.patterns,n,r)):new $v(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,pn._compileCaptures(t.beginCaptures||t.captures,n,r),t.end,pn._compileCaptures(t.endCaptures||t.captures,n,r),t.applyEndPatternLast,pn._compilePatterns(t.patterns,n,r))}),t.id}static _compileCaptures(t,n,r){let a=[];if(t){let s=0;for(const l in t){if(l==="$vscodeTextmateLocation")continue;const u=parseInt(l,10);u>s&&(s=u)}for(let l=0;l<=s;l++)a[l]=null;for(const l in t){if(l==="$vscodeTextmateLocation")continue;const u=parseInt(l,10);let d=0;t[l].patterns&&(d=pn.getCompiledRuleId(t[l],n,r)),a[u]=pn.createCaptureRule(n,t[l].$vscodeTextmateLocation,t[l].name,t[l].contentName,d)}}return a}static _compilePatterns(t,n,r){let a=[];if(t)for(let s=0,l=t.length;s<l;s++){const u=t[s];let d=-1;if(u.include){const f=ij(u.include);switch(f.kind){case 0:case 1:d=pn.getCompiledRuleId(r[u.include],n,r);break;case 2:let p=r[f.ruleName];p&&(d=pn.getCompiledRuleId(p,n,r));break;case 3:case 4:const g=f.scopeName,y=f.kind===4?f.ruleName:null,_=n.getExternalGrammar(g,r);if(_)if(y){let S=_.repository[y];S&&(d=pn.getCompiledRuleId(S,n,_.repository))}else d=pn.getCompiledRuleId(_.repository.$self,n,_.repository);break}}else d=pn.getCompiledRuleId(u,n,r);if(d!==-1){const f=n.getRule(d);let p=!1;if((f instanceof aR||f instanceof $v||f instanceof nh)&&f.hasMissingPatterns&&f.patterns.length===0&&(p=!0),p)continue;a.push(d)}}return{patterns:a,hasMissingPatterns:(t?t.length:0)!==a.length}}},$c=class sj{source;ruleId;hasAnchor;hasBackReferences;_anchorCache;constructor(t,n){if(t&&typeof t=="string"){const r=t.length;let a=0,s=[],l=!1;for(let u=0;u<r;u++)if(t.charAt(u)==="\\"&&u+1<r){const f=t.charAt(u+1);f==="z"?(s.push(t.substring(a,u)),s.push("$(?!\\n)(?<!\\n)"),a=u+2):(f==="A"||f==="G")&&(l=!0),u++}this.hasAnchor=l,a===0?this.source=t:(s.push(t.substring(a,r)),this.source=s.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=yte.test(this.source):this.hasBackReferences=!1}clone(){return new sj(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 iR.lastIndex=0,this.source.replace(iR,(a,s)=>JD(r[parseInt(s,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=[],s,l,u,d;for(s=0,l=this.source.length;s<l;s++)u=this.source.charAt(s),t[s]=u,n[s]=u,r[s]=u,a[s]=u,u==="\\"&&s+1<l&&(d=this.source.charAt(s+1),d==="A"?(t[s+1]="",n[s+1]="",r[s+1]="A",a[s+1]="A"):d==="G"?(t[s+1]="",n[s+1]="G",r[s+1]="",a[s+1]="G"):(t[s+1]=d,n[s+1]=d,r[s+1]=d,a[s+1]=d),s++);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}},Hc=class{_items;_hasAnchors;_cached;_anchorCache;constructor(){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 oR(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 oR(e,r,this._items.map(a=>a.ruleId))}},oR=class{constructor(e,t,n){this.regExps=t,this.rules=n,this.scanner=e.createOnigScanner(t)}scanner;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(`
|
|
314
|
-
`)}findNextMatchSync(e,t,n){const r=this.scanner.findNextMatchSync(e,t,n);return r?{ruleId:this.rules[r.index],captureIndices:r.captureIndices}:null}},vy=class{constructor(e,t){this.languageId=e,this.tokenType=t}},Ete=class Hv{_defaultAttributes;_embeddedLanguagesMatcher;constructor(t,n){this._defaultAttributes=new vy(t,8),this._embeddedLanguagesMatcher=new Ste(Object.entries(n||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(t){return t===null?Hv._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(t)}static _NULL_SCOPE_METADATA=new vy(0,0);_getBasicScopeAttributes=new ej(t=>{const n=this._scopeToLanguage(t),r=this._toStandardTokenType(t);return new vy(n,r)});_scopeToLanguage(t){return this._embeddedLanguagesMatcher.match(t)||0}_toStandardTokenType(t){const n=t.match(Hv.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!")}static STANDARD_TOKEN_TYPE_REGEXP=/\b(comment|string|regex|meta\.embedded)\b/},Ste=class{values;scopesRegExp;constructor(e){if(e.length===0)this.values=null,this.scopesRegExp=null;else{this.values=new Map(e);const t=e.map(([n,r])=>JD(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])}},sR=class{constructor(e,t){this.stack=e,this.stoppedEarly=t}};function lj(e,t,n,r,a,s,l,u){const d=t.content.length;let f=!1,p=-1;if(l){const _=xte(e,t,n,r,a,s);a=_.stack,r=_.linePos,n=_.isFirstLine,p=_.anchorPosition}const g=Date.now();for(;!f;){if(u!==0&&Date.now()-g>u)return new sR(a,!0);y()}return new sR(a,!1);function y(){const _=Ate(e,t,n,r,a,p);if(!_){s.produce(a,d),f=!0;return}const S=_.captureIndices,A=_.matchedRuleId,C=S&&S.length>0?S[0].end>r:!1;if(A===vte){const w=a.getRule(e);s.produce(a,S[0].start),a=a.withContentNameScopesList(a.nameScopesList),pc(e,t,n,a,s,w.endCaptures,S),s.produce(a,S[0].end);const x=a;if(a=a.parent,p=x.getAnchorPos(),!C&&x.getEnterPos()===r){a=x,s.produce(a,d),f=!0;return}}else{const w=e.getRule(A);s.produce(a,S[0].start);const x=a,T=w.getName(t.content,S),N=a.contentNameScopesList.pushAttributed(T,e);if(a=a.push(A,r,p,S[0].end===d,null,N,N),w instanceof $v){const R=w;pc(e,t,n,a,s,R.beginCaptures,S),s.produce(a,S[0].end),p=S[0].end;const I=R.getContentName(t.content,S),D=N.pushAttributed(I,e);if(a=a.withContentNameScopesList(D),R.endHasBackReferences&&(a=a.withEndRule(R.getEndWithResolvedBackReferences(t.content,S))),!C&&x.hasSameRuleAs(a)){a=a.pop(),s.produce(a,d),f=!0;return}}else if(w instanceof nh){const R=w;pc(e,t,n,a,s,R.beginCaptures,S),s.produce(a,S[0].end),p=S[0].end;const I=R.getContentName(t.content,S),D=N.pushAttributed(I,e);if(a=a.withContentNameScopesList(D),R.whileHasBackReferences&&(a=a.withEndRule(R.getWhileWithResolvedBackReferences(t.content,S))),!C&&x.hasSameRuleAs(a)){a=a.pop(),s.produce(a,d),f=!0;return}}else if(pc(e,t,n,a,s,w.captures,S),s.produce(a,S[0].end),a=a.pop(),!C){a=a.safePop(),s.produce(a,d),f=!0;return}}S[0].end>r&&(r=S[0].end,n=!1)}}function xte(e,t,n,r,a,s){let l=a.beginRuleCapturedEOL?0:-1;const u=[];for(let d=a;d;d=d.pop()){const f=d.getRule(e);f instanceof nh&&u.push({rule:f,stack:d})}for(let d=u.pop();d;d=u.pop()){const{ruleScanner:f,findOptions:p}=Cte(d.rule,e,d.stack.endRule,n,r===l),g=f.findNextMatchSync(t,r,p);if(g){if(g.ruleId!==aj){a=d.stack.pop();break}g.captureIndices&&g.captureIndices.length&&(s.produce(d.stack,g.captureIndices[0].start),pc(e,t,n,d.stack,s,d.rule.whileCaptures,g.captureIndices),s.produce(d.stack,g.captureIndices[0].end),l=g.captureIndices[0].end,g.captureIndices[0].end>r&&(r=g.captureIndices[0].end,n=!1))}else{a=d.stack.pop();break}}return{stack:a,linePos:r,anchorPosition:l,isFirstLine:n}}function Ate(e,t,n,r,a,s){const l=wte(e,t,n,r,a,s),u=e.getInjections();if(u.length===0)return l;const d=Tte(u,e,t,n,r,a,s);if(!d)return l;if(!l)return d;const f=l.captureIndices[0].start,p=d.captureIndices[0].start;return p<f||d.priorityMatch&&p===f?d:l}function wte(e,t,n,r,a,s){const l=a.getRule(e),{ruleScanner:u,findOptions:d}=cj(l,e,a.endRule,n,r===s),f=u.findNextMatchSync(t,r,d);return f?{captureIndices:f.captureIndices,matchedRuleId:f.ruleId}:null}function Tte(e,t,n,r,a,s,l){let u=Number.MAX_VALUE,d=null,f,p=0;const g=s.contentNameScopesList.getScopeNames();for(let y=0,_=e.length;y<_;y++){const S=e[y];if(!S.matcher(g))continue;const A=t.getRule(S.ruleId),{ruleScanner:C,findOptions:w}=cj(A,t,null,r,a===l),x=C.findNextMatchSync(n,a,w);if(!x)continue;const T=x.captureIndices[0].start;if(!(T>=u)&&(u=T,d=x.captureIndices,f=x.ruleId,p=S.priority,u===a))break}return d?{priorityMatch:p===-1,captureIndices:d,matchedRuleId:f}:null}function cj(e,t,n,r,a){return{ruleScanner:e.compileAG(t,n,r,a),findOptions:0}}function Cte(e,t,n,r,a){return{ruleScanner:e.compileWhileAG(t,n,r,a),findOptions:0}}function pc(e,t,n,r,a,s,l){if(s.length===0)return;const u=t.content,d=Math.min(s.length,l.length),f=[],p=l[0].end;for(let g=0;g<d;g++){const y=s[g];if(y===null)continue;const _=l[g];if(_.length===0)continue;if(_.start>p)break;for(;f.length>0&&f[f.length-1].endPos<=_.start;)a.produceFromScopes(f[f.length-1].scopes,f[f.length-1].endPos),f.pop();if(f.length>0?a.produceFromScopes(f[f.length-1].scopes,_.start):a.produce(r,_.start),y.retokenizeCapturedWithRuleId){const A=y.getName(u,l),C=r.contentNameScopesList.pushAttributed(A,e),w=y.getContentName(u,l),x=C.pushAttributed(w,e),T=r.push(y.retokenizeCapturedWithRuleId,_.start,-1,!1,null,C,x),N=e.createOnigString(u.substring(0,_.end));lj(e,N,n&&_.start===0,_.start,T,a,!1,0),rj(N);continue}const S=y.getName(u,l);if(S!==null){const C=(f.length>0?f[f.length-1].scopes:r.contentNameScopesList).pushAttributed(S,e);f.push(new Rte(C,_.end))}}for(;f.length>0;)a.produceFromScopes(f[f.length-1].scopes,f[f.length-1].endPos),f.pop()}var Rte=class{scopes;endPos;constructor(e,t){this.scopes=e,this.endPos=t}};function kte(e,t,n,r,a,s,l,u){return new Ote(e,t,n,r,a,s,l,u)}function lR(e,t,n,r,a){const s=eh(t,rh),l=oj.getCompiledRuleId(n,r,a.repository);for(const u of s)e.push({debugSelector:t,matcher:u.matcher,ruleId:l,grammar:a,priority:u.priority})}function rh(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(Nte(t[a],r))return n=a+1,!0;return!1})}function Nte(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 Ote=class{constructor(e,t,n,r,a,s,l,u){if(this._rootScopeName=e,this.balancedBracketSelectors=s,this._onigLib=u,this._basicScopeAttributesProvider=new Ete(n,r),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=l,this._grammar=cR(t,null),this._injections=null,this._tokenTypeMatchers=[],a)for(const d of Object.keys(a)){const f=eh(d,rh);for(const p of f)this._tokenTypeMatchers.push({matcher:p.matcher,type:a[d]})}}_rootId;_lastRuleId;_ruleId2desc;_includedGrammars;_grammarRepository;_grammar;_injections;_basicScopeAttributesProvider;_tokenTypeMatchers;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)lR(t,l,a[l],this,r);const s=this._grammarRepository.injections(n);s&&s.forEach(l=>{const u=this.getExternalGrammar(l);if(u){const d=u.injectionSelector;d&&lR(t,d,u,this,u)}})}return t.sort((a,s)=>a.priority-s.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]=cR(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=oj.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections());let a;if(!t||t===Gv.NULL){a=!0;const f=this._basicScopeAttributesProvider.getDefaultAttributes(),p=this.themeProvider.getDefaults(),g=Ds.set(0,f.languageId,f.tokenType,null,p.fontStyle,p.foregroundId,p.backgroundId),y=this.getRule(this._rootId).getName(null,null);let _;y?_=Cc.createRootAndLookUpScopeName(y,g,this):_=Cc.createRoot("unknown",g),t=new Gv(null,this._rootId,-1,-1,!1,null,_,_)}else a=!1,t.reset();e=e+`
|
|
315
|
-
`;const s=this.createOnigString(e),l=s.content.length,u=new Dte(n,e,this._tokenTypeMatchers,this.balancedBracketSelectors),d=lj(this,s,a,0,t,u,!0,r);return rj(s),{lineLength:l,lineTokens:u,ruleStack:d.stack,stoppedEarly:d.stoppedEarly}}};function cR(e,t){return e=Yee(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 Cc=class jr{constructor(t,n,r){this.parent=t,this.scopePath=n,this.tokenAttributes=r}static fromExtension(t,n){let r=t,a=t?.scopePath??null;for(const s of n)a=yy.push(a,s.scopeNames),r=new jr(r,a,s.encodedTokenAttributes);return r}static createRoot(t,n){return new jr(null,new yy(null,t),n)}static createRootAndLookUpScopeName(t,n,r){const a=r.getMetadataForScope(t),s=new yy(null,t),l=r.themeProvider.themeMatch(s),u=jr.mergeAttributes(n,a,l);return new jr(null,s,u)}get scopeName(){return this.scopePath.scopeName}toString(){return this.getScopeNames().join(" ")}equals(t){return jr.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,s=0,l=0;return r!==null&&(a=r.fontStyle,s=r.foregroundId,l=r.backgroundId),Ds.set(t,n.languageId,n.tokenType,null,a,s,l)}pushAttributed(t,n){if(t===null)return this;if(t.indexOf(" ")===-1)return jr._pushAttributed(this,t,n);const r=t.split(/ /g);let a=this;for(const s of r)a=jr._pushAttributed(a,s,n);return a}static _pushAttributed(t,n,r){const a=r.getMetadataForScope(n),s=t.scopePath.push(n),l=r.themeProvider.themeMatch(s),u=jr.mergeAttributes(t.tokenAttributes,a,l);return new jr(t,s,u)}getScopeNames(){return this.scopePath.getSegments()}getExtensionIfDefined(t){const n=[];let r=this;for(;r&&r!==t;)n.push({encodedTokenAttributes:r.tokenAttributes,scopeNames:r.scopePath.getExtensionIfDefined(r.parent?.scopePath??null)}),r=r.parent;return r===t?n.reverse():void 0}},Gv=class Ka{constructor(t,n,r,a,s,l,u,d){this.parent=t,this.ruleId=n,this.beginRuleCapturedEOL=s,this.endRule=l,this.nameScopesList=u,this.contentNameScopesList=d,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=r,this._anchorPos=a}_stackElementBrand=void 0;static NULL=new Ka(null,0,0,0,!1,null,null,null);_enterPos;_anchorPos;depth;equals(t){return t===null?!1:Ka._equals(this,t)}static _equals(t,n){return t===n?!0:this._structuralEquals(t,n)?Cc.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(){Ka._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(t,n,r,a,s,l,u){return new Ka(this,t,n,r,a,s,l,u)}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){return this.parent&&(n=this.parent._writeString(t,n)),t[n++]=`(${this.ruleId}, ${this.nameScopesList?.toString()}, ${this.contentNameScopesList?.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 Ka(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(){return{ruleId:this.ruleId,beginRuleCapturedEOL:this.beginRuleCapturedEOL,endRule:this.endRule,nameScopesList:this.nameScopesList?.getExtensionIfDefined(this.parent?.nameScopesList??null)??[],contentNameScopesList:this.contentNameScopesList?.getExtensionIfDefined(this.nameScopesList)??[]}}static pushFrame(t,n){const r=Cc.fromExtension(t?.nameScopesList??null,n.nameScopesList);return new Ka(t,n.ruleId,n.enterPos??-1,n.anchorPos??-1,n.beginRuleCapturedEOL,n.endRule,r,Cc.fromExtension(r,n.contentNameScopesList))}},Ite=class{balancedBracketScopes;unbalancedBracketScopes;allowAny=!1;constructor(e,t){this.balancedBracketScopes=e.flatMap(n=>n==="*"?(this.allowAny=!0,[]):eh(n,rh).map(r=>r.matcher)),this.unbalancedBracketScopes=t.flatMap(n=>eh(n,rh).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}},Dte=class{constructor(e,t,n,r){this.balancedBracketSelectors=r,this._emitBinaryTokens=e,this._tokenTypeOverrides=n,this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}_emitBinaryTokens;_lineText;_tokens;_binaryTokens;_lastTokenEndIndex;_tokenTypeOverrides;produce(e,t){this.produceFromScopes(e.contentNameScopesList,t)}produceFromScopes(e,t){if(this._lastTokenEndIndex>=t)return;if(this._emitBinaryTokens){let r=e?.tokenAttributes??0,a=!1;if(this.balancedBracketSelectors?.matchesAlways&&(a=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){const s=e?.getScopeNames()??[];for(const l of this._tokenTypeOverrides)l.matcher(s)&&(r=Ds.set(r,0,l.type,null,-1,0,0));this.balancedBracketSelectors&&(a=this.balancedBracketSelectors.match(s))}if(a&&(r=Ds.set(r,0,8,a,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===r){this._lastTokenEndIndex=t;return}this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(r),this._lastTokenEndIndex=t;return}const n=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}},jte=class{constructor(e,t){this._onigLib=t,this._theme=e}_grammars=new Map;_rawGrammars=new Map;_injectionGrammars=new Map;_theme;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 s=this._rawGrammars.get(e);if(!s)return null;this._grammars.set(e,kte(e,s,t,n,r,a,this,this._onigLib))}return this._grammars.get(e)}},Lte=class{_options;_syncRegistry;_ensureGrammarCache;constructor(t){this._options=t,this._syncRegistry=new jte(Jf.createFromRawTheme(t.theme,t.colorMap),t.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(t,n){this._syncRegistry.setTheme(Jf.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 Ite(r.balancedBracketSelectors||[],r.unbalancedBracketSelectors||[]))}loadGrammar(t){return this._loadGrammar(t,0,null,null,null)}_loadGrammar(t,n,r,a,s){const l=new ute(this._syncRegistry,t);for(;l.Q.length>0;)l.Q.map(u=>this._loadSingleGrammar(u.scopeName)),l.processQueue();return this._grammarForScopeName(t,n,r,a,s)}_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,s=null){return this._syncRegistry.grammarForScopeName(t,n,r,a,s)}},Kv=Gv.NULL;const Pte=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"];class yu{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}}yu.prototype.normal={};yu.prototype.property={};yu.prototype.space=void 0;function uj(e,t){const n={},r={};for(const a of e)Object.assign(n,a.property),Object.assign(r,a.normal);return new yu(n,r,t)}function qv(e){return e.toLowerCase()}class In{constructor(t,n){this.attribute=n,this.property=t}}In.prototype.attribute="";In.prototype.booleanish=!1;In.prototype.boolean=!1;In.prototype.commaOrSpaceSeparated=!1;In.prototype.commaSeparated=!1;In.prototype.defined=!1;In.prototype.mustUseProperty=!1;In.prototype.number=!1;In.prototype.overloadedBoolean=!1;In.prototype.property="";In.prototype.spaceSeparated=!1;In.prototype.space=void 0;let Mte=0;const Fe=yo(),Mt=yo(),Wv=yo(),me=yo(),gt=yo(),xs=yo(),Vn=yo();function yo(){return 2**++Mte}const Zv=Object.freeze(Object.defineProperty({__proto__:null,boolean:Fe,booleanish:Mt,commaOrSpaceSeparated:Vn,commaSeparated:xs,number:me,overloadedBoolean:Wv,spaceSeparated:gt},Symbol.toStringTag,{value:"Module"})),by=Object.keys(Zv);class Z0 extends In{constructor(t,n,r,a){let s=-1;if(super(t,n),uR(this,"space",a),typeof r=="number")for(;++s<by.length;){const l=by[s];uR(this,by[s],(r&Zv[l])===Zv[l])}}}Z0.prototype.defined=!0;function uR(e,t,n){n&&(e[t]=n)}function Ys(e){const t={},n={};for(const[r,a]of Object.entries(e.properties)){const s=new Z0(r,e.transform(e.attributes||{},r),a,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(s.mustUseProperty=!0),t[r]=s,n[qv(r)]=r,n[qv(s.attribute)]=r}return new yu(t,n,e.space)}const dj=Ys({properties:{ariaActiveDescendant:null,ariaAtomic:Mt,ariaAutoComplete:null,ariaBusy:Mt,ariaChecked:Mt,ariaColCount:me,ariaColIndex:me,ariaColSpan:me,ariaControls:gt,ariaCurrent:null,ariaDescribedBy:gt,ariaDetails:null,ariaDisabled:Mt,ariaDropEffect:gt,ariaErrorMessage:null,ariaExpanded:Mt,ariaFlowTo:gt,ariaGrabbed:Mt,ariaHasPopup:null,ariaHidden:Mt,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:gt,ariaLevel:me,ariaLive:null,ariaModal:Mt,ariaMultiLine:Mt,ariaMultiSelectable:Mt,ariaOrientation:null,ariaOwns:gt,ariaPlaceholder:null,ariaPosInSet:me,ariaPressed:Mt,ariaReadOnly:Mt,ariaRelevant:null,ariaRequired:Mt,ariaRoleDescription:gt,ariaRowCount:me,ariaRowIndex:me,ariaRowSpan:me,ariaSelected:Mt,ariaSetSize:me,ariaSort:null,ariaValueMax:me,ariaValueMin:me,ariaValueNow:me,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function fj(e,t){return t in e?e[t]:t}function hj(e,t){return fj(e,t.toLowerCase())}const zte=Ys({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:xs,acceptCharset:gt,accessKey:gt,action:null,allow:null,allowFullScreen:Fe,allowPaymentRequest:Fe,allowUserMedia:Fe,alt:null,as:null,async:Fe,autoCapitalize:null,autoComplete:gt,autoFocus:Fe,autoPlay:Fe,blocking:gt,capture:null,charSet:null,checked:Fe,cite:null,className:gt,cols:me,colSpan:null,content:null,contentEditable:Mt,controls:Fe,controlsList:gt,coords:me|xs,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Fe,defer:Fe,dir:null,dirName:null,disabled:Fe,download:Wv,draggable:Mt,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Fe,formTarget:null,headers:gt,height:me,hidden:Wv,high:me,href:null,hrefLang:null,htmlFor:gt,httpEquiv:gt,id:null,imageSizes:null,imageSrcSet:null,inert:Fe,inputMode:null,integrity:null,is:null,isMap:Fe,itemId:null,itemProp:gt,itemRef:gt,itemScope:Fe,itemType:gt,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Fe,low:me,manifest:null,max:null,maxLength:me,media:null,method:null,min:null,minLength:me,multiple:Fe,muted:Fe,name:null,nonce:null,noModule:Fe,noValidate:Fe,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:Fe,optimum:me,pattern:null,ping:gt,placeholder:null,playsInline:Fe,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Fe,referrerPolicy:null,rel:gt,required:Fe,reversed:Fe,rows:me,rowSpan:me,sandbox:gt,scope:null,scoped:Fe,seamless:Fe,selected:Fe,shadowRootClonable:Fe,shadowRootDelegatesFocus:Fe,shadowRootMode:null,shape:null,size:me,sizes:null,slot:null,span:me,spellCheck:Mt,src:null,srcDoc:null,srcLang:null,srcSet:null,start:me,step:null,style:null,tabIndex:me,target:null,title:null,translate:null,type:null,typeMustMatch:Fe,useMap:null,value:Mt,width:me,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:gt,axis:null,background:null,bgColor:null,border:me,borderColor:null,bottomMargin:me,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Fe,declare:Fe,event:null,face:null,frame:null,frameBorder:null,hSpace:me,leftMargin:me,link:null,longDesc:null,lowSrc:null,marginHeight:me,marginWidth:me,noResize:Fe,noHref:Fe,noShade:Fe,noWrap:Fe,object:null,profile:null,prompt:null,rev:null,rightMargin:me,rules:null,scheme:null,scrolling:Mt,standby:null,summary:null,text:null,topMargin:me,valueType:null,version:null,vAlign:null,vLink:null,vSpace:me,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Fe,disableRemotePlayback:Fe,prefix:null,property:null,results:me,security:null,unselectable:null},space:"html",transform:hj}),Bte=Ys({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:Vn,accentHeight:me,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:me,amplitude:me,arabicForm:null,ascent:me,attributeName:null,attributeType:null,azimuth:me,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:me,by:null,calcMode:null,capHeight:me,className:gt,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:me,diffuseConstant:me,direction:null,display:null,dur:null,divisor:me,dominantBaseline:null,download:Fe,dx:null,dy:null,edgeMode:null,editable:null,elevation:me,enableBackground:null,end:null,event:null,exponent:me,externalResourcesRequired:null,fill:null,fillOpacity:me,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:xs,g2:xs,glyphName:xs,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:me,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:me,horizOriginX:me,horizOriginY:me,id:null,ideographic:me,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:me,k:me,k1:me,k2:me,k3:me,k4:me,kernelMatrix:Vn,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:me,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:me,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:me,overlineThickness:me,paintOrder:null,panose1:null,path:null,pathLength:me,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:gt,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:me,pointsAtY:me,pointsAtZ:me,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Vn,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Vn,rev:Vn,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Vn,requiredFeatures:Vn,requiredFonts:Vn,requiredFormats:Vn,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:me,specularExponent:me,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:me,strikethroughThickness:me,string:null,stroke:null,strokeDashArray:Vn,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:me,strokeOpacity:me,strokeWidth:null,style:null,surfaceScale:me,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Vn,tabIndex:me,tableValues:null,target:null,targetX:me,targetY:me,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Vn,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:me,underlineThickness:me,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:me,values:null,vAlphabetic:me,vMathematical:me,vectorEffect:null,vHanging:me,vIdeographic:me,version:null,vertAdvY:me,vertOriginX:me,vertOriginY:me,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:me,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:fj}),pj=Ys({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()}}),mj=Ys({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:hj}),gj=Ys({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),Vte=/[A-Z]/g,dR=/-[a-z]/g,Ute=/^data[-\w.:]+$/i;function Fte(e,t){const n=qv(t);let r=t,a=In;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&Ute.test(t)){if(t.charAt(4)==="-"){const s=t.slice(5).replace(dR,Hte);r="data"+s.charAt(0).toUpperCase()+s.slice(1)}else{const s=t.slice(4);if(!dR.test(s)){let l=s.replace(Vte,$te);l.charAt(0)!=="-"&&(l="-"+l),t="data"+l}}a=Z0}return new a(r,t)}function $te(e){return"-"+e.toLowerCase()}function Hte(e){return e.charAt(1).toUpperCase()}const Gte=uj([dj,zte,pj,mj,gj],"html"),yj=uj([dj,Bte,pj,mj,gj],"svg"),fR={}.hasOwnProperty;function Kte(e,t){const n=t||{};function r(a,...s){let l=r.invalid;const u=r.handlers;if(a&&fR.call(a,e)){const d=String(a[e]);l=fR.call(u,d)?u[d]:r.unknown}if(l)return l.call(this,a,...s)}return r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r}const qte=/["&'<>`]/g,Wte=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Zte=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,Yte=/[|\\{}()[\]^$+*?.]/g,hR=new WeakMap;function Xte(e,t){if(e=e.replace(t.subset?Qte(t.subset):qte,r),t.subset||t.escapeOnly)return e;return e.replace(Wte,n).replace(Zte,r);function n(a,s,l){return t.format((a.charCodeAt(0)-55296)*1024+a.charCodeAt(1)-56320+65536,l.charCodeAt(s+2),t)}function r(a,s,l){return t.format(a.charCodeAt(0),l.charCodeAt(s+1),t)}}function Qte(e){let t=hR.get(e);return t||(t=Jte(e),hR.set(e,t)),t}function Jte(e){const t=[];let n=-1;for(;++n<e.length;)t.push(e[n].replace(Yte,"\\$&"));return new RegExp("(?:"+t.join("|")+")","g")}const ene=/[\dA-Fa-f]/;function tne(e,t,n){const r="&#x"+e.toString(16).toUpperCase();return n&&t&&!ene.test(String.fromCharCode(t))?r:r+";"}const nne=/\d/;function rne(e,t,n){const r="&#"+String(e);return n&&t&&!nne.test(String.fromCharCode(t))?r:r+";"}const ine=["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"],_y={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:"€"},ane=["cent","copy","divide","gt","lt","not","para","times"],vj={}.hasOwnProperty,Yv={};let ef;for(ef in _y)vj.call(_y,ef)&&(Yv[_y[ef]]=ef);const one=/[^\dA-Za-z]/;function sne(e,t,n,r){const a=String.fromCharCode(e);if(vj.call(Yv,a)){const s=Yv[a],l="&"+s;return n&&ine.includes(s)&&!ane.includes(s)&&(!r||t&&t!==61&&one.test(String.fromCharCode(t)))?l:l+";"}return""}function lne(e,t,n){let r=tne(e,t,n.omitOptionalSemicolons),a;if((n.useNamedReferences||n.useShortestReferences)&&(a=sne(e,t,n.omitOptionalSemicolons,n.attribute)),(n.useShortestReferences||!a)&&n.useShortestReferences){const s=rne(e,t,n.omitOptionalSemicolons);s.length<r.length&&(r=s)}return a&&(!n.useShortestReferences||a.length<r.length)?a:r}function As(e,t){return Xte(e,Object.assign({format:lne},t))}const cne=/^>|^->|<!--|-->|--!>|<!-$/g,une=[">"],dne=["<",">"];function fne(e,t,n,r){return r.settings.bogusComments?"<?"+As(e.value,Object.assign({},r.settings.characterReferences,{subset:une}))+">":"<!--"+e.value.replace(cne,a)+"-->";function a(s){return As(s,Object.assign({},r.settings.characterReferences,{subset:dne}))}}function hne(e,t,n,r){return"<!"+(r.settings.upperDoctype?"DOCTYPE":"doctype")+(r.settings.tightDoctype?"":" ")+"html>"}function pR(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 pne(e,t){const n=t||{};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}function mne(e){return e.join(" ").trim()}const gne=/[ \t\n\f\r]/g;function Y0(e){return typeof e=="object"?e.type==="text"?mR(e.value):!1:mR(e)}function mR(e){return e.replace(gne,"")===""}const Wt=_j(1),bj=_j(-1),yne=[];function _j(e){return t;function t(n,r,a){const s=n?n.children:yne;let l=(r||0)+e,u=s[l];if(!a)for(;u&&Y0(u);)l+=e,u=s[l];return u}}const vne={}.hasOwnProperty;function Ej(e){return t;function t(n,r,a){return vne.call(e,n.tagName)&&e[n.tagName](n,r,a)}}const X0=Ej({body:_ne,caption:Ey,colgroup:Ey,dd:Ane,dt:xne,head:Ey,html:bne,li:Sne,optgroup:wne,option:Tne,p:Ene,rp:gR,rt:gR,tbody:Rne,td:yR,tfoot:kne,th:yR,thead:Cne,tr:Nne});function Ey(e,t,n){const r=Wt(n,t,!0);return!r||r.type!=="comment"&&!(r.type==="text"&&Y0(r.value.charAt(0)))}function bne(e,t,n){const r=Wt(n,t);return!r||r.type!=="comment"}function _ne(e,t,n){const r=Wt(n,t);return!r||r.type!=="comment"}function Ene(e,t,n){const r=Wt(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 Sne(e,t,n){const r=Wt(n,t);return!r||r.type==="element"&&r.tagName==="li"}function xne(e,t,n){const r=Wt(n,t);return!!(r&&r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd"))}function Ane(e,t,n){const r=Wt(n,t);return!r||r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd")}function gR(e,t,n){const r=Wt(n,t);return!r||r.type==="element"&&(r.tagName==="rp"||r.tagName==="rt")}function wne(e,t,n){const r=Wt(n,t);return!r||r.type==="element"&&r.tagName==="optgroup"}function Tne(e,t,n){const r=Wt(n,t);return!r||r.type==="element"&&(r.tagName==="option"||r.tagName==="optgroup")}function Cne(e,t,n){const r=Wt(n,t);return!!(r&&r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot"))}function Rne(e,t,n){const r=Wt(n,t);return!r||r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot")}function kne(e,t,n){return!Wt(n,t)}function Nne(e,t,n){const r=Wt(n,t);return!r||r.type==="element"&&r.tagName==="tr"}function yR(e,t,n){const r=Wt(n,t);return!r||r.type==="element"&&(r.tagName==="td"||r.tagName==="th")}const One=Ej({body:jne,colgroup:Lne,head:Dne,html:Ine,tbody:Pne});function Ine(e){const t=Wt(e,-1);return!t||t.type!=="comment"}function Dne(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 jne(e){const t=Wt(e,-1,!0);return!t||t.type!=="comment"&&!(t.type==="text"&&Y0(t.value.charAt(0)))&&!(t.type==="element"&&(t.tagName==="meta"||t.tagName==="link"||t.tagName==="script"||t.tagName==="style"||t.tagName==="template"))}function Lne(e,t,n){const r=bj(n,t),a=Wt(e,-1,!0);return n&&r&&r.type==="element"&&r.tagName==="colgroup"&&X0(r,n.children.indexOf(r),n)?!1:!!(a&&a.type==="element"&&a.tagName==="col")}function Pne(e,t,n){const r=bj(n,t),a=Wt(e,-1);return n&&r&&r.type==="element"&&(r.tagName==="thead"||r.tagName==="tbody")&&X0(r,n.children.indexOf(r),n)?!1:!!(a&&a.type==="element"&&a.tagName==="tr")}const tf={name:[[`
|
|
316
|
-
\f\r &/=>`.split(""),`
|
|
317
|
-
\f\r "&'/=>\``.split("")],[`\0
|
|
318
|
-
\f\r "&'/<=>`.split(""),`\0
|
|
319
|
-
\f\r "&'/<=>\``.split("")]],unquoted:[[`
|
|
320
|
-
\f\r &>`.split(""),`\0
|
|
321
|
-
\f\r "&'<=>\``.split("")],[`\0
|
|
322
|
-
\f\r "&'<=>\``.split(""),`\0
|
|
323
|
-
\f\r "&'<=>\``.split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]};function Mne(e,t,n,r){const a=r.schema,s=a.space==="svg"?!1:r.settings.omitOptionalTags;let l=a.space==="svg"?r.settings.closeEmptyElements:r.settings.voids.includes(e.tagName.toLowerCase());const u=[];let d;a.space==="html"&&e.tagName==="svg"&&(r.schema=yj);const f=zne(r,e.properties),p=r.all(a.space==="html"&&e.tagName==="template"?e.content:e);return r.schema=a,p&&(l=!1),(f||!s||!One(e,t,n))&&(u.push("<",e.tagName,f?" "+f:""),l&&(a.space==="svg"||r.settings.closeSelfClosing)&&(d=f.charAt(f.length-1),(!r.settings.tightSelfClosing||d==="/"||d&&d!=='"'&&d!=="'")&&u.push(" "),u.push("/")),u.push(">")),u.push(p),!l&&(!s||!X0(e,t,n))&&u.push("</"+e.tagName+">"),u.join("")}function zne(e,t){const n=[];let r=-1,a;if(t){for(a in t)if(t[a]!==null&&t[a]!==void 0){const s=Bne(e,a,t[a]);s&&n.push(s)}}for(;++r<n.length;){const s=e.settings.tightAttributes?n[r].charAt(n[r].length-1):void 0;r!==n.length-1&&s!=='"'&&s!=="'"&&(n[r]+=" ")}return n.join("")}function Bne(e,t,n){const r=Fte(e.schema,t),a=e.settings.allowParseErrors&&e.schema.space==="html"?0:1,s=e.settings.allowDangerousCharacters?0:1;let l=e.quote,u;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 d=As(r.attribute,Object.assign({},e.settings.characterReferences,{subset:tf.name[a][s]}));return n===!0||(n=Array.isArray(n)?(r.commaSeparated?pne:mne)(n,{padLeft:!e.settings.tightCommaSeparatedLists}):String(n),e.settings.collapseEmptyAttributes&&!n)?d:(e.settings.preferUnquoted&&(u=As(n,Object.assign({},e.settings.characterReferences,{attribute:!0,subset:tf.unquoted[a][s]}))),u!==n&&(e.settings.quoteSmart&&pR(n,l)>pR(n,e.alternative)&&(l=e.alternative),u=l+As(n,Object.assign({},e.settings.characterReferences,{subset:(l==="'"?tf.single:tf.double)[a][s],attribute:!0}))+l),d+(u&&"="+u))}const Vne=["<","&"];function Sj(e,t,n,r){return n&&n.type==="element"&&(n.tagName==="script"||n.tagName==="style")?e.value:As(e.value,Object.assign({},r.settings.characterReferences,{subset:Vne}))}function Une(e,t,n,r){return r.settings.allowDangerousHtml?e.value:Sj(e,t,n,r)}function Fne(e,t,n,r){return r.all(e)}const $ne=Kte("type",{invalid:Hne,unknown:Gne,handlers:{comment:fne,doctype:hne,element:Mne,raw:Une,root:Fne,text:Sj}});function Hne(e){throw new Error("Expected node, not `"+e+"`")}function Gne(e){const t=e;throw new Error("Cannot compile unknown node `"+t.type+"`")}const Kne={},qne={},Wne=[];function Zne(e,t){const n=t||Kne,r=n.quote||'"',a=r==='"'?"'":'"';if(r!=='"'&&r!=="'")throw new Error("Invalid quote `"+r+"`, expected `'` or `\"`");return{one:Yne,all:Xne,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||Pte,characterReferences:n.characterReferences||qne,closeSelfClosing:n.closeSelfClosing||!1,closeEmptyElements:n.closeEmptyElements||!1},schema:n.space==="svg"?yj:Gte,quote:r,alternative:a}.one(Array.isArray(e)?{type:"root",children:e}:e,void 0,void 0)}function Yne(e,t,n){return $ne(e,t,n,this)}function Xne(e){const t=[],n=e&&e.children||Wne;let r=-1;for(;++r<n.length;)t[r]=this.one(n[r],r,e);return t.join("")}function ih(e,t){const n=typeof e=="string"?{}:{...e.colorReplacements},r=typeof e=="string"?e:e.name;for(const[a,s]of Object.entries(t?.colorReplacements||{}))typeof s=="string"?n[a]=s:a===r&&Object.assign(n,s);return n}function na(e,t){return e&&(t?.[e?.toLowerCase()]||e)}function Qne(e){return Array.isArray(e)?e:[e]}async function xj(e){return Promise.resolve(typeof e=="function"?e():e).then(t=>t.default||t)}function Q0(e){return!e||["plaintext","txt","text","plain"].includes(e)}function Aj(e){return e==="ansi"||Q0(e)}function J0(e){return e==="none"}function wj(e){return J0(e)}function Tj(e,t){if(!t)return e;e.properties||={},e.properties.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 r of n)r&&!e.properties.class.includes(r)&&e.properties.class.push(r);return e}function Fh(e,t=!1){const n=e.split(/(\r?\n)/g);let r=0;const a=[];for(let s=0;s<n.length;s+=2){const l=t?n[s]+(n[s+1]||""):n[s];a.push([l,r]),r+=n[s].length,r+=n[s+1]?.length||0}return a}function Jne(e){const t=Fh(e,!0).map(([a])=>a);function n(a){if(a===e.length)return{line:t.length-1,character:t[t.length-1].length};let s=a,l=0;for(const u of t){if(s<u.length)break;s-=u.length,l++}return{line:l,character:s}}function r(a,s){let l=0;for(let u=0;u<a;u++)l+=t[u].length;return l+=s,l}return{lines:t,indexToPos:n,posToIndex:r}}function ere(e,t,n){const r=new Set;for(const s of e.matchAll(/lang=["']([\w-]+)["']/g))r.add(s[1]);for(const s of e.matchAll(/(?:```|~~~)([\w-]+)/g))r.add(s[1]);for(const s of e.matchAll(/\\begin\{([\w-]+)\}/g))r.add(s[1]);if(!n)return Array.from(r);const a=n.getBundledLanguages();return Array.from(r).filter(s=>s&&a[s])}const e_="light-dark()",tre=["color","background-color"];function nre(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 rre(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 s=n.filter(l=>a.offset<l&&l<a.offset+a.content.length).map(l=>l-a.offset).sort((l,u)=>l-u);return s.length?nre(a,s):a})):e}function ire(e,t,n,r,a="css-vars"){const s={content:e.content,explanation:e.explanation,offset:e.offset},l=t.map(p=>ah(e.variants[p])),u=new Set(l.flatMap(p=>Object.keys(p))),d={},f=(p,g)=>{const y=g==="color"?"":g==="background-color"?"-bg":`-${g}`;return n+t[p]+(g==="color"?"":y)};return l.forEach((p,g)=>{for(const y of u){const _=p[y]||"inherit";if(g===0&&r&&tre.includes(y))if(r===e_&&l.length>1){const S=t.findIndex(x=>x==="light"),A=t.findIndex(x=>x==="dark");if(S===-1||A===-1)throw new Bt('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');const C=l[S][y]||"inherit",w=l[A][y]||"inherit";d[y]=`light-dark(${C}, ${w})`,a==="css-vars"&&(d[f(g,y)]=_)}else d[y]=_;else a==="css-vars"&&(d[f(g,y)]=_)}}),s.htmlStyle=d,s}function ah(e){const t={};if(e.color&&(t.color=e.color),e.bgColor&&(t["background-color"]=e.bgColor),e.fontStyle){e.fontStyle&gn.Italic&&(t["font-style"]="italic"),e.fontStyle&gn.Bold&&(t["font-weight"]="bold");const n=[];e.fontStyle&gn.Underline&&n.push("underline"),e.fontStyle&gn.Strikethrough&&n.push("line-through"),n.length&&(t["text-decoration"]=n.join(" "))}return t}function Xv(e){return typeof e=="string"?e:Object.entries(e).map(([t,n])=>`${t}:${n}`).join(";")}const Cj=new WeakMap;function $h(e,t){Cj.set(e,t)}function Gc(e){return Cj.get(e)}class Xs{_stacks={};lang;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 Xs(Object.fromEntries(Qne(n).map(r=>[r,Kv])),t)}constructor(...t){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}}}getInternalStack(t=this.theme){return this._stacks[t]}getScopes(t=this.theme){return are(this._stacks[t])}toJSON(){return{lang:this.lang,theme:this.theme,themes:this.themes,scopes:this.getScopes()}}}function are(e){const t=[],n=new Set;function r(a){if(n.has(a))return;n.add(a);const s=a?.nameScopesList?.scopeName;s&&t.push(s),a.parent&&r(a.parent)}return r(e),t}function ore(e,t){if(!(e instanceof Xs))throw new Bt("Invalid grammar state");return e.getInternalStack(t)}function sre(){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 Bt(`Invalid decoration offset: ${l}. Code length: ${n.source.length}`);return{...a.indexToPos(l),offset:l}}else{const u=a.lines[l.line];if(u===void 0)throw new Bt(`Invalid decoration position ${JSON.stringify(l)}. Lines length: ${a.lines.length}`);let d=l.character;if(d<0&&(d=u.length+d),d<0||d>u.length)throw new Bt(`Invalid decoration position ${JSON.stringify(l)}. Line ${l.line} length: ${u.length}`);return{...l,character:d,offset:a.posToIndex(l.line,d)}}};const a=Jne(n.source),s=(n.options.decorations||[]).map(l=>({...l,start:r(l.start),end:r(l.end)}));lre(s),e.set(n.meta,{decorations:s,converter:a,source:n.source})}return e.get(n.meta)}return{name:"shiki:decorations",tokens(n){if(!this.options.decorations?.length)return;const a=t(this).decorations.flatMap(l=>[l.start.offset,l.end.offset]);return rre(n,a)},code(n){if(!this.options.decorations?.length)return;const r=t(this),a=Array.from(n.children).filter(p=>p.type==="element"&&p.tagName==="span");if(a.length!==r.converter.lines.length)throw new Bt(`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 s(p,g,y,_){const S=a[p];let A="",C=-1,w=-1;if(g===0&&(C=0),y===0&&(w=0),y===Number.POSITIVE_INFINITY&&(w=S.children.length),C===-1||w===-1)for(let T=0;T<S.children.length;T++)A+=Rj(S.children[T]),C===-1&&A.length===g&&(C=T+1),w===-1&&A.length===y&&(w=T+1);if(C===-1)throw new Bt(`Failed to find start index for decoration ${JSON.stringify(_.start)}`);if(w===-1)throw new Bt(`Failed to find end index for decoration ${JSON.stringify(_.end)}`);const x=S.children.slice(C,w);if(!_.alwaysWrap&&x.length===S.children.length)u(S,_,"line");else if(!_.alwaysWrap&&x.length===1&&x[0].type==="element")u(x[0],_,"token");else{const T={type:"element",tagName:"span",properties:{},children:x};u(T,_,"wrapper"),S.children.splice(C,x.length,T)}}function l(p,g){a[p]=u(a[p],g,"line")}function u(p,g,y){const _=g.properties||{},S=g.transform||(A=>A);return p.tagName=g.tagName||"span",p.properties={...p.properties,..._,class:p.properties.class},g.properties?.class&&Tj(p,g.properties.class),p=S(p,y)||p,p}const d=[],f=r.decorations.sort((p,g)=>g.start.offset-p.start.offset||p.end.offset-g.end.offset);for(const p of f){const{start:g,end:y}=p;if(g.line===y.line)s(g.line,g.character,y.character,p);else if(g.line<y.line){s(g.line,g.character,Number.POSITIVE_INFINITY,p);for(let _=g.line+1;_<y.line;_++)d.unshift(()=>l(_,p));s(y.line,0,y.character,p)}}d.forEach(p=>p())}}}function lre(e){for(let t=0;t<e.length;t++){const n=e[t];if(n.start.offset>n.end.offset)throw new Bt(`Invalid decoration range: ${JSON.stringify(n.start)} - ${JSON.stringify(n.end)}`);for(let r=t+1;r<e.length;r++){const a=e[r],s=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,u=a.start.offset<=n.start.offset&&n.start.offset<a.end.offset,d=a.start.offset<n.end.offset&&n.end.offset<=a.end.offset;if(s||l||u||d){if(s&&l||u&&d||u&&n.start.offset===n.end.offset||l&&a.start.offset===a.end.offset)continue;throw new Bt(`Decorations ${JSON.stringify(n.start)} and ${JSON.stringify(a.start)} intersect.`)}}}}function Rj(e){return e.type==="text"?e.value:e.type==="element"?e.children.map(Rj).join(""):""}const cre=[sre()];function oh(e){const t=ure(e.transformers||[]);return[...t.pre,...t.normal,...t.post,...cre]}function ure(e){const t=[],n=[],r=[];for(const a of e)switch(a.enforce){case"pre":t.push(a);break;case"post":n.push(a);break;default:r.push(a)}return{pre:t,post:n,normal:r}}var Ja=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],Sy={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",8:"hidden",9:"strikethrough"};function dre(e,t){const n=e.indexOf("\x1B",t);if(n!==-1&&e[n+1]==="["){const r=e.indexOf("m",n);if(r!==-1)return{sequence:e.substring(n+2,r).split(";"),startPosition:n,position:r+1}}return{position:e.length}}function vR(e){const t=e.shift();if(t==="2"){const n=e.splice(0,3).map(r=>Number.parseInt(r));return n.length!==3||n.some(r=>Number.isNaN(r))?void 0:{type:"rgb",rgb:n}}else if(t==="5"){const n=e.shift();if(n)return{type:"table",index:Number(n)}}}function fre(e){const t=[];for(;e.length>0;){const n=e.shift();if(!n)continue;const r=Number.parseInt(n);if(!Number.isNaN(r))if(r===0)t.push({type:"resetAll"});else if(r<=9)Sy[r]&&t.push({type:"setDecoration",value:Sy[r]});else if(r<=29){const a=Sy[r-20];a&&(t.push({type:"resetDecoration",value:a}),a==="dim"&&t.push({type:"resetDecoration",value:"bold"}))}else if(r<=37)t.push({type:"setForegroundColor",value:{type:"named",name:Ja[r-30]}});else if(r===38){const a=vR(e);a&&t.push({type:"setForegroundColor",value:a})}else if(r===39)t.push({type:"resetForegroundColor"});else if(r<=47)t.push({type:"setBackgroundColor",value:{type:"named",name:Ja[r-40]}});else if(r===48){const a=vR(e);a&&t.push({type:"setBackgroundColor",value:a})}else r===49?t.push({type:"resetBackgroundColor"}):r===53?t.push({type:"setDecoration",value:"overline"}):r===55?t.push({type:"resetDecoration",value:"overline"}):r>=90&&r<=97?t.push({type:"setForegroundColor",value:{type:"named",name:Ja[r-90+8]}}):r>=100&&r<=107&&t.push({type:"setBackgroundColor",value:{type:"named",name:Ja[r-100+8]}})}return t}function hre(){let e=null,t=null,n=new Set;return{parse(r){const a=[];let s=0;do{const l=dre(r,s),u=l.sequence?r.substring(s,l.startPosition):r.substring(s);if(u.length>0&&a.push({value:u,foreground:e,background:t,decorations:new Set(n)}),l.sequence){const d=fre(l.sequence);for(const f of d)f.type==="resetAll"?(e=null,t=null,n.clear()):f.type==="resetForegroundColor"?e=null:f.type==="resetBackgroundColor"?t=null:f.type==="resetDecoration"&&n.delete(f.value);for(const f of d)f.type==="setForegroundColor"?e=f.value:f.type==="setBackgroundColor"?t=f.value:f.type==="setDecoration"&&n.add(f.value)}s=l.position}while(s<r.length);return a}}}var pre={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 mre(e=pre){function t(u){return e[u]}function n(u){return`#${u.map(d=>Math.max(0,Math.min(d,255)).toString(16).padStart(2,"0")).join("")}`}let r;function a(){if(r)return r;r=[];for(let f=0;f<Ja.length;f++)r.push(t(Ja[f]));let u=[0,95,135,175,215,255];for(let f=0;f<6;f++)for(let p=0;p<6;p++)for(let g=0;g<6;g++)r.push(n([u[f],u[p],u[g]]));let d=8;for(let f=0;f<24;f++,d+=10)r.push(n([d,d,d]));return r}function s(u){return a()[u]}function l(u){switch(u.type){case"named":return t(u.name);case"rgb":return n(u.rgb);case"table":return s(u.index)}}return{value:l}}function gre(e,t,n){const r=ih(e,n),a=Fh(t),s=mre(Object.fromEntries(Ja.map(u=>[u,e.colors?.[`terminal.ansi${u[0].toUpperCase()}${u.substring(1)}`]]))),l=hre();return a.map(u=>l.parse(u[0]).map(d=>{let f,p;d.decorations.has("reverse")?(f=d.background?s.value(d.background):e.bg,p=d.foreground?s.value(d.foreground):e.fg):(f=d.foreground?s.value(d.foreground):e.fg,p=d.background?s.value(d.background):void 0),f=na(f,r),p=na(p,r),d.decorations.has("dim")&&(f=yre(f));let g=gn.None;return d.decorations.has("bold")&&(g|=gn.Bold),d.decorations.has("italic")&&(g|=gn.Italic),d.decorations.has("underline")&&(g|=gn.Underline),d.decorations.has("strikethrough")&&(g|=gn.Strikethrough),{content:d.value,offset:u[1],color:f,bgColor:p,fontStyle:g}}))}function yre(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 t_(e,t,n={}){const{lang:r="text",theme:a=e.getLoadedThemes()[0]}=n;if(Q0(r)||J0(a))return Fh(t).map(d=>[{content:d[0],offset:d[1]}]);const{theme:s,colorMap:l}=e.setTheme(a);if(r==="ansi")return gre(s,t,n);const u=e.getLanguage(r);if(n.grammarState){if(n.grammarState.lang!==u.name)throw new Bt(`Grammar state language "${n.grammarState.lang}" does not match highlight language "${u.name}"`);if(!n.grammarState.themes.includes(s.name))throw new Bt(`Grammar state themes "${n.grammarState.themes}" do not contain highlight theme "${s.name}"`)}return bre(t,u,s,l,n)}function vre(...e){if(e.length===2)return Gc(e[1]);const[t,n,r={}]=e,{lang:a="text",theme:s=t.getLoadedThemes()[0]}=r;if(Q0(a)||J0(s))throw new Bt("Plain language does not have grammar state");if(a==="ansi")throw new Bt("ANSI language does not have grammar state");const{theme:l,colorMap:u}=t.setTheme(s),d=t.getLanguage(a);return new Xs(sh(n,d,l,u,r).stateStack,d.name,l.name)}function bre(e,t,n,r,a){const s=sh(e,t,n,r,a),l=new Xs(sh(e,t,n,r,a).stateStack,t.name,n.name);return $h(s.tokens,l),s.tokens}function sh(e,t,n,r,a){const s=ih(n,a),{tokenizeMaxLineLength:l=0,tokenizeTimeLimit:u=500}=a,d=Fh(e);let f=a.grammarState?ore(a.grammarState,n.name)??Kv:a.grammarContextCode!=null?sh(a.grammarContextCode,t,n,r,{...a,grammarState:void 0,grammarContextCode:void 0}).stateStack:Kv,p=[];const g=[];for(let y=0,_=d.length;y<_;y++){const[S,A]=d[y];if(S===""){p=[],g.push([]);continue}if(l>0&&S.length>=l){p=[],g.push([{content:S,offset:A,color:"",fontStyle:0}]);continue}let C,w,x;a.includeExplanation&&(C=t.tokenizeLine(S,f,u),w=C.tokens,x=0);const T=t.tokenizeLine2(S,f,u),N=T.tokens.length/2;for(let R=0;R<N;R++){const I=T.tokens[2*R],D=R+1<N?T.tokens[2*R+2]:S.length;if(I===D)continue;const L=T.tokens[2*R+1],H=na(r[Ds.getForeground(L)],s),Z=Ds.getFontStyle(L),q={content:S.substring(I,D),offset:A+I,color:H,fontStyle:Z};if(a.includeExplanation){const te=[];if(a.includeExplanation!=="scopeName")for(const W of n.settings){let ae;switch(typeof W.scope){case"string":ae=W.scope.split(/,/).map(M=>M.trim());break;case"object":ae=W.scope;break;default:continue}te.push({settings:W,selectors:ae.map(M=>M.split(/ /))})}q.explanation=[];let ce=0;for(;I+ce<D;){const W=w[x],ae=S.substring(W.startIndex,W.endIndex);ce+=ae.length,q.explanation.push({content:ae,scopes:a.includeExplanation==="scopeName"?_re(W.scopes):Ere(te,W.scopes)}),x+=1}}p.push(q)}g.push(p),p=[],f=T.ruleStack}return{tokens:g,stateStack:f}}function _re(e){return e.map(t=>({scopeName:t}))}function Ere(e,t){const n=[];for(let r=0,a=t.length;r<a;r++){const s=t[r];n[r]={scopeName:s,themeMatches:xre(e,s,t.slice(0,r))}}return n}function bR(e,t){return e===t||t.substring(0,e.length)===e&&t[e.length]==="."}function Sre(e,t,n){if(!bR(e[e.length-1],t))return!1;let r=e.length-2,a=n.length-1;for(;r>=0&&a>=0;)bR(e[r],n[a])&&(r-=1),a-=1;return r===-1}function xre(e,t,n){const r=[];for(const{selectors:a,settings:s}of e)for(const l of a)if(Sre(l,t,n)){r.push(s);break}return r}function kj(e,t,n){const r=Object.entries(n.themes).filter(d=>d[1]).map(d=>({color:d[0],theme:d[1]})),a=r.map(d=>{const f=t_(e,t,{...n,theme:d.theme}),p=Gc(f),g=typeof d.theme=="string"?d.theme:d.theme.name;return{tokens:f,state:p,theme:g}}),s=Are(...a.map(d=>d.tokens)),l=s[0].map((d,f)=>d.map((p,g)=>{const y={content:p.content,variants:{},offset:p.offset};return"includeExplanation"in n&&n.includeExplanation&&(y.explanation=p.explanation),s.forEach((_,S)=>{const{content:A,explanation:C,offset:w,...x}=_[f][g];y.variants[r[S].color]=x}),y})),u=a[0].state?new Xs(Object.fromEntries(a.map(d=>[d.theme,d.state?.getInternalStack(d.theme)])),a[0].state.lang):void 0;return u&&$h(l,u),l}function Are(...e){const t=e.map(()=>[]),n=e.length;for(let r=0;r<e[0].length;r++){const a=e.map(d=>d[r]),s=t.map(()=>[]);t.forEach((d,f)=>d.push(s[f]));const l=a.map(()=>0),u=a.map(d=>d[0]);for(;u.every(d=>d);){const d=Math.min(...u.map(f=>f.content.length));for(let f=0;f<n;f++){const p=u[f];p.content.length===d?(s[f].push(p),l[f]+=1,u[f]=a[f][l[f]]):(s[f].push({...p,content:p.content.slice(0,d)}),u[f]={...p,content:p.content.slice(d),offset:p.offset+d})}}}return t}function lh(e,t,n){let r,a,s,l,u,d;if("themes"in n){const{defaultColor:f="light",cssVariablePrefix:p="--shiki-",colorsRendering:g="css-vars"}=n,y=Object.entries(n.themes).filter(w=>w[1]).map(w=>({color:w[0],theme:w[1]})).sort((w,x)=>w.color===f?-1:x.color===f?1:0);if(y.length===0)throw new Bt("`themes` option must not be empty");const _=kj(e,t,n);if(d=Gc(_),f&&e_!==f&&!y.find(w=>w.color===f))throw new Bt(`\`themes\` option must contain the defaultColor key \`${f}\``);const S=y.map(w=>e.getTheme(w.theme)),A=y.map(w=>w.color);s=_.map(w=>w.map(x=>ire(x,A,p,f,g))),d&&$h(s,d);const C=y.map(w=>ih(w.theme,n));a=_R(y,S,C,p,f,"fg",g),r=_R(y,S,C,p,f,"bg",g),l=`shiki-themes ${S.map(w=>w.name).join(" ")}`,u=f?void 0:[a,r].join(";")}else if("theme"in n){const f=ih(n.theme,n);s=t_(e,t,n);const p=e.getTheme(n.theme);r=na(p.bg,f),a=na(p.fg,f),l=p.name,d=Gc(s)}else throw new Bt("Invalid options, either `theme` or `themes` must be provided");return{tokens:s,fg:a,bg:r,themeName:l,rootStyle:u,grammarState:d}}function _R(e,t,n,r,a,s,l){return e.map((u,d)=>{const f=na(t[d][s],n[d])||"inherit",p=`${r+u.color}${s==="bg"?"-bg":""}:${f}`;if(d===0&&a){if(a===e_&&e.length>1){const g=e.findIndex(A=>A.color==="light"),y=e.findIndex(A=>A.color==="dark");if(g===-1||y===-1)throw new Bt('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');const _=na(t[g][s],n[g])||"inherit",S=na(t[y][s],n[y])||"inherit";return`light-dark(${_}, ${S});${p}`}return f}return l==="css-vars"?p:null}).filter(u=>!!u).join(";")}function ch(e,t,n,r={meta:{},options:n,codeToHast:(a,s)=>ch(e,a,s),codeToTokens:(a,s)=>lh(e,a,s)}){let a=t;for(const S of oh(n))a=S.preprocess?.call(r,a,n)||a;let{tokens:s,fg:l,bg:u,themeName:d,rootStyle:f,grammarState:p}=lh(e,a,n);const{mergeWhitespaces:g=!0,mergeSameStyleTokens:y=!1}=n;g===!0?s=Tre(s):g==="never"&&(s=Cre(s)),y&&(s=Rre(s));const _={...r,get source(){return a}};for(const S of oh(n))s=S.tokens?.call(_,s)||s;return wre(s,{...n,fg:l,bg:u,themeName:d,rootStyle:f},_,p)}function wre(e,t,n,r=Gc(e)){const a=oh(t),s=[],l={type:"root",children:[]},{structure:u="classic",tabindex:d="0"}=t;let f={type:"element",tagName:"pre",properties:{class:`shiki ${t.themeName||""}`,style:t.rootStyle||`background-color:${t.bg};color:${t.fg}`,...d!==!1&&d!=null?{tabindex:d.toString()}:{},...Object.fromEntries(Array.from(Object.entries(t.meta||{})).filter(([S])=>!S.startsWith("_")))},children:[]},p={type:"element",tagName:"code",properties:{},children:s};const g=[],y={...n,structure:u,addClassToHast:Tj,get source(){return n.source},get tokens(){return e},get options(){return t},get root(){return l},get pre(){return f},get code(){return p},get lines(){return g}};if(e.forEach((S,A)=>{A&&(u==="inline"?l.children.push({type:"element",tagName:"br",properties:{},children:[]}):u==="classic"&&s.push({type:"text",value:`
|
|
324
|
-
`}));let C={type:"element",tagName:"span",properties:{class:"line"},children:[]},w=0;for(const x of S){let T={type:"element",tagName:"span",properties:{...x.htmlAttrs},children:[{type:"text",value:x.content}]};const N=Xv(x.htmlStyle||ah(x));N&&(T.properties.style=N);for(const R of a)T=R?.span?.call(y,T,A+1,w,C,x)||T;u==="inline"?l.children.push(T):u==="classic"&&C.children.push(T),w+=x.content.length}if(u==="classic"){for(const x of a)C=x?.line?.call(y,C,A+1)||C;g.push(C),s.push(C)}}),u==="classic"){for(const S of a)p=S?.code?.call(y,p)||p;f.children.push(p);for(const S of a)f=S?.pre?.call(y,f)||f;l.children.push(f)}let _=l;for(const S of a)_=S?.root?.call(y,_)||_;return r&&$h(_,r),_}function Tre(e){return e.map(t=>{const n=[];let r="",a=0;return t.forEach((s,l)=>{const d=!(s.fontStyle&&(s.fontStyle&gn.Underline||s.fontStyle&gn.Strikethrough));d&&s.content.match(/^\s+$/)&&t[l+1]?(a||(a=s.offset),r+=s.content):r?(d?n.push({...s,offset:a,content:r+s.content}):n.push({content:r,offset:a},s),a=0,r=""):n.push(s)}),n})}function Cre(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,s,l]=r;if(!a&&!l)return n;const u=[{...n,offset:n.offset+a.length,content:s}];return a&&u.unshift({content:a,offset:n.offset}),l&&u.push({content:l,offset:n.offset+a.length+s.length}),u}))}function Rre(e){return e.map(t=>{const n=[];for(const r of t){if(n.length===0){n.push({...r});continue}const a=n[n.length-1],s=Xv(a.htmlStyle||ah(a)),l=Xv(r.htmlStyle||ah(r)),u=a.fontStyle&&(a.fontStyle&gn.Underline||a.fontStyle&gn.Strikethrough),d=r.fontStyle&&(r.fontStyle&gn.Underline||r.fontStyle&gn.Strikethrough);!u&&!d&&s===l?a.content+=r.content:n.push({...r})}return n})}const kre=Zne;function Nre(e,t,n){const r={meta:{},options:n,codeToHast:(s,l)=>ch(e,s,l),codeToTokens:(s,l)=>lh(e,s,l)};let a=kre(ch(e,t,n,r));for(const s of oh(n))a=s.postprocess?.call(r,a,n)||a;return a}const ER={light:"#333333",dark:"#bbbbbb"},SR={light:"#fffffe",dark:"#1e1e1e"},xR="__shiki_resolved";function n_(e){if(e?.[xR])return e;const t={...e};t.tokenColors&&!t.settings&&(t.settings=t.tokenColors,delete t.tokenColors),t.type||="dark",t.colorReplacements={...t.colorReplacements},t.settings||=[];let{bg:n,fg:r}=t;if(!n||!r){const u=t.settings?t.settings.find(d=>!d.name&&!d.scope):void 0;u?.settings?.foreground&&(r=u.settings.foreground),u?.settings?.background&&(n=u.settings.background),!r&&t?.colors?.["editor.foreground"]&&(r=t.colors["editor.foreground"]),!n&&t?.colors?.["editor.background"]&&(n=t.colors["editor.background"]),r||(r=t.type==="light"?ER.light:ER.dark),n||(n=t.type==="light"?SR.light:SR.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 s=new Map;function l(u){if(s.has(u))return s.get(u);a+=1;const d=`#${a.toString(16).padStart(8,"0").toLowerCase()}`;return t.colorReplacements?.[`#${d}`]?l(u):(s.set(u,d),d)}t.settings=t.settings.map(u=>{const d=u.settings?.foreground&&!u.settings.foreground.startsWith("#"),f=u.settings?.background&&!u.settings.background.startsWith("#");if(!d&&!f)return u;const p={...u,settings:{...u.settings}};if(d){const g=l(u.settings.foreground);t.colorReplacements[g]=u.settings.foreground,p.settings.foreground=g}if(f){const g=l(u.settings.background);t.colorReplacements[g]=u.settings.background,p.settings.background=g}return p});for(const u of Object.keys(t.colors||{}))if((u==="editor.foreground"||u==="editor.background"||u.startsWith("terminal.ansi"))&&!t.colors[u]?.startsWith("#")){const d=l(t.colors[u]);t.colorReplacements[d]=t.colors[u],t.colors[u]=d}return Object.defineProperty(t,xR,{enumerable:!1,writable:!1,value:!0}),t}async function Nj(e){return Array.from(new Set((await Promise.all(e.filter(t=>!Aj(t)).map(async t=>await xj(t).then(n=>Array.isArray(n)?n:[n])))).flat()))}async function Oj(e){return(await Promise.all(e.map(async n=>wj(n)?null:n_(await xj(n))))).filter(n=>!!n)}let Ore=3;function Ire(e,t=3){t>Ore||console.trace(`[SHIKI DEPRECATE]: ${e}`)}let vs=class extends Error{constructor(t){super(t),this.name="ShikiError"}};class Dre extends Lte{constructor(t,n,r,a={}){super(t),this._resolver=t,this._themes=n,this._langs=r,this._alias=a,this._themes.map(s=>this.loadTheme(s)),this.loadLanguages(this._langs)}_resolvedThemes=new Map;_resolvedGrammars=new Map;_langMap=new Map;_langGraph=new Map;_textmateThemeCache=new WeakMap;_loadedThemesCache=null;_loadedLanguagesCache=null;getTheme(t){return typeof t=="string"?this._resolvedThemes.get(t):this.loadTheme(t)}loadTheme(t){const n=n_(t);return n.name&&(this._resolvedThemes.set(n.name,n),this._loadedThemesCache=null),n}getLoadedThemes(){return this._loadedThemesCache||(this._loadedThemesCache=[...this._resolvedThemes.keys()]),this._loadedThemesCache}setTheme(t){let n=this._textmateThemeCache.get(t);n||(n=Jf.createFromRawTheme(t),this._textmateThemeCache.set(t,n)),this._syncRegistry.setTheme(n)}getGrammar(t){if(this._alias[t]){const n=new Set([t]);for(;this._alias[t];){if(t=this._alias[t],n.has(t))throw new vs(`Circular alias \`${Array.from(n).join(" -> ")} -> ${t}\``);n.add(t)}}return this._resolvedGrammars.get(t)}loadLanguage(t){if(this.getGrammar(t.name))return;const n=new Set([...this._langMap.values()].filter(s=>s.embeddedLangsLazy?.includes(t.name)));this._resolver.addLanguage(t);const r={balancedBracketSelectors:t.balancedBracketSelectors||["*"],unbalancedBracketSelectors:t.unbalancedBracketSelectors||[]};this._syncRegistry._rawGrammars.set(t.scopeName,t);const a=this.loadGrammarWithConfiguration(t.scopeName,1,r);if(a.name=t.name,this._resolvedGrammars.set(t.name,a),t.aliases&&t.aliases.forEach(s=>{this._alias[s]=t.name}),this._loadedLanguagesCache=null,n.size)for(const s of n)this._resolvedGrammars.delete(s.name),this._loadedLanguagesCache=null,this._syncRegistry?._injectionGrammars?.delete(s.scopeName),this._syncRegistry?._grammars?.delete(s.scopeName),this.loadLanguage(this._langMap.get(s.name))}dispose(){super.dispose(),this._resolvedThemes.clear(),this._resolvedGrammars.clear(),this._langMap.clear(),this._langGraph.clear(),this._loadedThemesCache=null}loadLanguages(t){for(const a of t)this.resolveEmbeddedLanguages(a);const n=Array.from(this._langGraph.entries()),r=n.filter(([a,s])=>!s);if(r.length){const a=n.filter(([s,l])=>l&&l.embeddedLangs?.some(u=>r.map(([d])=>d).includes(u))).filter(s=>!r.includes(s));throw new vs(`Missing languages ${r.map(([s])=>`\`${s}\``).join(", ")}, required by ${a.map(([s])=>`\`${s}\``).join(", ")}`)}for(const[a,s]of n)this._resolver.addLanguage(s);for(const[a,s]of n)this.loadLanguage(s)}getLoadedLanguages(){return this._loadedLanguagesCache||(this._loadedLanguagesCache=[...new Set([...this._resolvedGrammars.keys(),...Object.keys(this._alias)])]),this._loadedLanguagesCache}resolveEmbeddedLanguages(t){if(this._langMap.set(t.name,t),this._langGraph.set(t.name,t),t.embeddedLangs)for(const n of t.embeddedLangs)this._langGraph.set(n,this._langMap.get(n))}}class jre{_langs=new Map;_scopeToLang=new Map;_injections=new Map;_onigLib;constructor(t,n){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 s=n.slice(0,a).join(".");r=[...r,...this._injections.get(s)||[]]}return r}}let dc=0;function Lre(e){dc+=1,e.warnings!==!1&&dc>=10&&dc%10===0&&console.warn(`[Shiki] ${dc} 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 vs("`engine` option is required for synchronous mode");const n=(e.langs||[]).flat(1),r=(e.themes||[]).flat(1).map(n_),a=new jre(e.engine,n),s=new Dre(a,r,n,e.langAlias);let l;function u(x){C();const T=s.getGrammar(typeof x=="string"?x:x.name);if(!T)throw new vs(`Language \`${x}\` not found, you may need to load it first`);return T}function d(x){if(x==="none")return{bg:"",fg:"",name:"none",settings:[],type:"dark"};C();const T=s.getTheme(x);if(!T)throw new vs(`Theme \`${x}\` not found, you may need to load it first`);return T}function f(x){C();const T=d(x);l!==x&&(s.setTheme(T),l=x);const N=s.getColorMap();return{theme:T,colorMap:N}}function p(){return C(),s.getLoadedThemes()}function g(){return C(),s.getLoadedLanguages()}function y(...x){C(),s.loadLanguages(x.flat(1))}async function _(...x){return y(await Nj(x))}function S(...x){C();for(const T of x.flat(1))s.loadTheme(T)}async function A(...x){return C(),S(await Oj(x))}function C(){if(t)throw new vs("Shiki instance has been disposed")}function w(){t||(t=!0,s.dispose(),dc-=1)}return{setTheme:f,getTheme:d,getLanguage:u,getLoadedThemes:p,getLoadedLanguages:g,loadLanguage:_,loadLanguageSync:y,loadTheme:A,loadThemeSync:S,dispose:w,[Symbol.dispose]:w}}async function Pre(e){e.engine||Ire("`engine` option is required. Use `createOnigurumaEngine` or `createJavaScriptRegexEngine` to create an engine.");const[t,n,r]=await Promise.all([Oj(e.themes||[]),Nj(e.langs||[]),e.engine]);return Lre({...e,themes:t,langs:n,engine:r})}async function Mre(e){const t=await Pre(e);return{getLastGrammarState:(...n)=>vre(t,...n),codeToTokensBase:(n,r)=>t_(t,n,r),codeToTokensWithThemes:(n,r)=>kj(t,n,r),codeToTokens:(n,r)=>lh(t,n,r),codeToHast:(n,r)=>ch(t,n,r),codeToHtml:(n,r)=>Nre(t,n,r),getBundledLanguages:()=>({}),getBundledThemes:()=>({}),...t,getInternalContext:()=>t}}function zre(e){const t=e.langs,n=e.themes,r=e.engine;async function a(s){function l(g){if(typeof g=="string"){if(Aj(g))return[];g=s.langAlias?.[g]||g;const y=t[g];if(!y)throw new Bt(`Language \`${g}\` is not included in this bundle. You may want to load it from external source.`);return y}return g}function u(g){if(wj(g))return"none";if(typeof g=="string"){const y=n[g];if(!y)throw new Bt(`Theme \`${g}\` is not included in this bundle. You may want to load it from external source.`);return y}return g}const d=(s.themes??[]).map(g=>u(g)),f=(s.langs??[]).map(g=>l(g)),p=await Mre({engine:s.engine??r(),...s,themes:d,langs:f});return{...p,loadLanguage(...g){return p.loadLanguage(...g.map(l))},loadTheme(...g){return p.loadTheme(...g.map(u))},getBundledLanguages(){return t},getBundledThemes(){return n}}}return a}function Bre(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 Vre(e,t){const n=Bre(e);async function r(a,s){const l=await n({langs:[s.lang],themes:"theme"in s?[s.theme]:Object.values(s.themes)}),u=await t?.guessEmbeddedLanguages?.(a,s.lang,l);return u&&await l.loadLanguage(...u),l}return{getSingletonHighlighter(a){return n(a)},async codeToHtml(a,s){return(await r(a,s)).codeToHtml(a,s)},async codeToHast(a,s){return(await r(a,s)).codeToHast(a,s)},async codeToTokens(a,s){return(await r(a,s)).codeToTokens(a,s)},async codeToTokensBase(a,s){return(await r(a,s)).codeToTokensBase(a,s)},async codeToTokensWithThemes(a,s){return(await r(a,s)).codeToTokensWithThemes(a,s)},async getLastGrammarState(a,s){return(await n({langs:[s.lang],themes:[s.theme]})).getLastGrammarState(a,s)}}}const Ij=[{id:"abap",name:"ABAP",import:(()=>j(()=>import("./abap-BdImnpbu.js"),[]))},{id:"actionscript-3",name:"ActionScript",import:(()=>j(()=>import("./actionscript-3-CfeIJUat.js"),[]))},{id:"ada",name:"Ada",import:(()=>j(()=>import("./ada-bCR0ucgS.js"),[]))},{id:"angular-html",name:"Angular HTML",import:(()=>j(()=>import("./angular-html-Bbf3ZyxA.js").then(e=>e.f),__vite__mapDeps([0,1,2,3])))},{id:"angular-ts",name:"Angular TypeScript",import:(()=>j(()=>import("./angular-ts-C26w9mnW.js"),__vite__mapDeps([4,0,1,2,3,5])))},{id:"apache",name:"Apache Conf",import:(()=>j(()=>import("./apache-Pmp26Uib.js"),[]))},{id:"apex",name:"Apex",import:(()=>j(()=>import("./apex-C7Pw0Ztw.js"),[]))},{id:"apl",name:"APL",import:(()=>j(()=>import("./apl-e980N3t4.js"),__vite__mapDeps([6,1,2,3,7,8,9])))},{id:"applescript",name:"AppleScript",import:(()=>j(()=>import("./applescript-Co6uUVPk.js"),[]))},{id:"ara",name:"Ara",import:(()=>j(()=>import("./ara-BRHolxvo.js"),[]))},{id:"asciidoc",name:"AsciiDoc",aliases:["adoc"],import:(()=>j(()=>import("./asciidoc-Dv7Oe6Be.js"),[]))},{id:"asm",name:"Assembly",import:(()=>j(()=>import("./asm-D_Q5rh1f.js"),[]))},{id:"astro",name:"Astro",import:(()=>j(()=>import("./astro-CjFzhNUq.js"),__vite__mapDeps([10,9,2,11,3,12,13])))},{id:"awk",name:"AWK",import:(()=>j(()=>import("./awk-DMzUqQB5.js"),[]))},{id:"ballerina",name:"Ballerina",import:(()=>j(()=>import("./ballerina-BFfxhgS-.js"),[]))},{id:"bat",name:"Batch File",aliases:["batch"],import:(()=>j(()=>import("./bat-BkioyH1T.js"),[]))},{id:"beancount",name:"Beancount",import:(()=>j(()=>import("./beancount-BoKiGodi.js"),[]))},{id:"berry",name:"Berry",aliases:["be"],import:(()=>j(()=>import("./berry-D08WgyRC.js"),[]))},{id:"bibtex",name:"BibTeX",import:(()=>j(()=>import("./bibtex-CHM0blh-.js"),[]))},{id:"bicep",name:"Bicep",import:(()=>j(()=>import("./bicep-6nHXG8SA.js"),[]))},{id:"blade",name:"Blade",import:(()=>j(()=>import("./blade-B2ZbN0F_.js"),__vite__mapDeps([14,15,1,2,3,7,8,16,9])))},{id:"bsl",name:"1C (Enterprise)",aliases:["1c"],import:(()=>j(()=>import("./bsl-BO_Y6i37.js"),__vite__mapDeps([17,18])))},{id:"c",name:"C",import:(()=>j(()=>import("./c-BIGW1oBm.js"),[]))},{id:"cadence",name:"Cadence",aliases:["cdc"],import:(()=>j(()=>import("./cadence-D2CYqzqI.js"),[]))},{id:"cairo",name:"Cairo",import:(()=>j(()=>import("./cairo-KRGpt6FW.js"),__vite__mapDeps([19,20])))},{id:"clarity",name:"Clarity",import:(()=>j(()=>import("./clarity-CHh-QcGE.js"),[]))},{id:"clojure",name:"Clojure",aliases:["clj"],import:(()=>j(()=>import("./clojure-P80f7IUj.js"),[]))},{id:"cmake",name:"CMake",import:(()=>j(()=>import("./cmake-D1j8_8rp.js"),[]))},{id:"cobol",name:"COBOL",import:(()=>j(()=>import("./cobol-DwXMNnPA.js"),__vite__mapDeps([21,1,2,3,8])))},{id:"codeowners",name:"CODEOWNERS",import:(()=>j(()=>import("./codeowners-Bp6g37R7.js"),[]))},{id:"codeql",name:"CodeQL",aliases:["ql"],import:(()=>j(()=>import("./codeql-DsOJ9woJ.js"),[]))},{id:"coffee",name:"CoffeeScript",aliases:["coffeescript"],import:(()=>j(()=>import("./coffee-JUOWOZUj.js"),__vite__mapDeps([22,2])))},{id:"common-lisp",name:"Common Lisp",aliases:["lisp"],import:(()=>j(()=>import("./common-lisp-Cg-RD9OK.js"),[]))},{id:"coq",name:"Coq",import:(()=>j(()=>import("./coq-DkFqJrB1.js"),[]))},{id:"cpp",name:"C++",aliases:["c++"],import:(()=>j(()=>import("./cpp-CofmeUqb.js"),__vite__mapDeps([23,24,25,26,16])))},{id:"crystal",name:"Crystal",import:(()=>j(()=>import("./crystal-DVs0tusA.js"),__vite__mapDeps([27,1,2,3,16,26,28])))},{id:"csharp",name:"C#",aliases:["c#","cs"],import:(()=>j(()=>import("./csharp-CHadp7IV.js"),[]))},{id:"css",name:"CSS",import:(()=>j(()=>import("./css-DPfMkruS.js"),[]))},{id:"csv",name:"CSV",import:(()=>j(()=>import("./csv-fuZLfV_i.js"),[]))},{id:"cue",name:"CUE",import:(()=>j(()=>import("./cue-D82EKSYY.js"),[]))},{id:"cypher",name:"Cypher",aliases:["cql"],import:(()=>j(()=>import("./cypher-COkxafJQ.js"),[]))},{id:"d",name:"D",import:(()=>j(()=>import("./d-85-TOEBH.js"),[]))},{id:"dart",name:"Dart",import:(()=>j(()=>import("./dart-CF10PKvl.js"),[]))},{id:"dax",name:"DAX",import:(()=>j(()=>import("./dax-CEL-wOlO.js"),[]))},{id:"desktop",name:"Desktop",import:(()=>j(()=>import("./desktop-BmXAJ9_W.js"),[]))},{id:"diff",name:"Diff",import:(()=>j(()=>import("./diff-D97Zzqfu.js"),[]))},{id:"docker",name:"Dockerfile",aliases:["dockerfile"],import:(()=>j(()=>import("./docker-BcOcwvcX.js"),[]))},{id:"dotenv",name:"dotEnv",import:(()=>j(()=>import("./dotenv-Da5cRb03.js"),[]))},{id:"dream-maker",name:"Dream Maker",import:(()=>j(()=>import("./dream-maker-BtqSS_iP.js"),[]))},{id:"edge",name:"Edge",import:(()=>j(()=>import("./edge-CKszZCnI.js"),__vite__mapDeps([29,11,1,2,3,15])))},{id:"elixir",name:"Elixir",import:(()=>j(()=>import("./elixir-Cc7HHYVZ.js"),__vite__mapDeps([30,1,2,3])))},{id:"elm",name:"Elm",import:(()=>j(()=>import("./elm-DbKCFpqz.js"),__vite__mapDeps([31,25,26])))},{id:"emacs-lisp",name:"Emacs Lisp",aliases:["elisp"],import:(()=>j(()=>import("./emacs-lisp-C9XAeP06.js"),[]))},{id:"erb",name:"ERB",import:(()=>j(()=>import("./erb-C7QrGF_t.js"),__vite__mapDeps([32,1,2,3,33,34,7,8,16,35,11,36,13,23,24,25,26,28,37,38])))},{id:"erlang",name:"Erlang",aliases:["erl"],import:(()=>j(()=>import("./erlang-DsQrWhSR.js"),__vite__mapDeps([39,40])))},{id:"fennel",name:"Fennel",import:(()=>j(()=>import("./fennel-BYunw83y.js"),[]))},{id:"fish",name:"Fish",import:(()=>j(()=>import("./fish-Bl2oy6fF.js"),[]))},{id:"fluent",name:"Fluent",aliases:["ftl"],import:(()=>j(()=>import("./fluent-C4IJs8-o.js"),[]))},{id:"fortran-fixed-form",name:"Fortran (Fixed Form)",aliases:["f","for","f77"],import:(()=>j(()=>import("./fortran-fixed-form-BZjJHVRy.js"),__vite__mapDeps([41,42])))},{id:"fortran-free-form",name:"Fortran (Free Form)",aliases:["f90","f95","f03","f08","f18"],import:(()=>j(()=>import("./fortran-free-form-D22FLkUw.js"),[]))},{id:"fsharp",name:"F#",aliases:["f#","fs"],import:(()=>j(()=>import("./fsharp-CufqaIoK.js"),__vite__mapDeps([43,40])))},{id:"gdresource",name:"GDResource",import:(()=>j(()=>import("./gdresource-B7Tvp0Sc.js"),__vite__mapDeps([44,45,46])))},{id:"gdscript",name:"GDScript",import:(()=>j(()=>import("./gdscript-DTMYz4Jt.js"),[]))},{id:"gdshader",name:"GDShader",import:(()=>j(()=>import("./gdshader-DkwncUOv.js"),[]))},{id:"genie",name:"Genie",import:(()=>j(()=>import("./genie-D0YGMca9.js"),[]))},{id:"gherkin",name:"Gherkin",import:(()=>j(()=>import("./gherkin-DyxjwDmM.js"),[]))},{id:"git-commit",name:"Git Commit Message",import:(()=>j(()=>import("./git-commit-F4YmCXRG.js"),__vite__mapDeps([47,48])))},{id:"git-rebase",name:"Git Rebase Message",import:(()=>j(()=>import("./git-rebase-r7XF79zn.js"),__vite__mapDeps([49,28])))},{id:"gleam",name:"Gleam",import:(()=>j(()=>import("./gleam-BspZqrRM.js"),[]))},{id:"glimmer-js",name:"Glimmer JS",aliases:["gjs"],import:(()=>j(()=>import("./glimmer-js-Dz9X99Cm.js"),__vite__mapDeps([50,2,11,3,1])))},{id:"glimmer-ts",name:"Glimmer TS",aliases:["gts"],import:(()=>j(()=>import("./glimmer-ts-aQ3p29eY.js"),__vite__mapDeps([51,11,3,2,1])))},{id:"glsl",name:"GLSL",import:(()=>j(()=>import("./glsl-DplSGwfg.js"),__vite__mapDeps([25,26])))},{id:"gnuplot",name:"Gnuplot",import:(()=>j(()=>import("./gnuplot-DdkO51Og.js"),[]))},{id:"go",name:"Go",import:(()=>j(()=>import("./go-Dn2_MT6a.js"),[]))},{id:"graphql",name:"GraphQL",aliases:["gql"],import:(()=>j(()=>import("./graphql-Caa12_AY.js"),__vite__mapDeps([35,2,11,36,13])))},{id:"groovy",name:"Groovy",import:(()=>j(()=>import("./groovy-gcz8RCvz.js"),[]))},{id:"hack",name:"Hack",import:(()=>j(()=>import("./hack-D_o3P2UH.js"),__vite__mapDeps([52,1,2,3,16])))},{id:"haml",name:"Ruby Haml",import:(()=>j(()=>import("./haml-AZXGPtNI.js"),__vite__mapDeps([34,2,3])))},{id:"handlebars",name:"Handlebars",aliases:["hbs"],import:(()=>j(()=>import("./handlebars-YebKLiTq.js"),__vite__mapDeps([53,1,2,3,38])))},{id:"haskell",name:"Haskell",aliases:["hs"],import:(()=>j(()=>import("./haskell-Df6bDoY_.js"),[]))},{id:"haxe",name:"Haxe",import:(()=>j(()=>import("./haxe-CzTSHFRz.js"),[]))},{id:"hcl",name:"HashiCorp HCL",import:(()=>j(()=>import("./hcl-BWvSN4gD.js"),[]))},{id:"hjson",name:"Hjson",import:(()=>j(()=>import("./hjson-D5-asLiD.js"),[]))},{id:"hlsl",name:"HLSL",import:(()=>j(()=>import("./hlsl-D3lLCCz7.js"),[]))},{id:"html",name:"HTML",import:(()=>j(()=>import("./html-B8pBdPMQ.js"),__vite__mapDeps([1,2,3])))},{id:"html-derivative",name:"HTML (Derivative)",import:(()=>j(()=>import("./html-derivative-ZQ8onl8Z.js"),__vite__mapDeps([15,1,2,3])))},{id:"http",name:"HTTP",import:(()=>j(()=>import("./http-C38VWM-o.js"),__vite__mapDeps([54,28,9,7,8,35,2,11,36,13])))},{id:"hxml",name:"HXML",import:(()=>j(()=>import("./hxml-Bvhsp5Yf.js"),__vite__mapDeps([55,56])))},{id:"hy",name:"Hy",import:(()=>j(()=>import("./hy-DFXneXwc.js"),[]))},{id:"imba",name:"Imba",import:(()=>j(()=>import("./imba-DGztddWO.js"),[]))},{id:"ini",name:"INI",aliases:["properties"],import:(()=>j(()=>import("./ini-BEwlwnbL.js"),[]))},{id:"java",name:"Java",import:(()=>j(()=>import("./java-CylS5w8V.js"),[]))},{id:"javascript",name:"JavaScript",aliases:["js"],import:(()=>j(()=>import("./javascript-BMMyXqK5.js"),[]))},{id:"jinja",name:"Jinja",import:(()=>j(()=>import("./jinja-BJmZiE_F.js"),__vite__mapDeps([57,1,2,3])))},{id:"jison",name:"Jison",import:(()=>j(()=>import("./jison-BCRtk9Os.js"),__vite__mapDeps([58,2])))},{id:"json",name:"JSON",import:(()=>j(()=>import("./json-Cp-IABpG.js"),[]))},{id:"json5",name:"JSON5",import:(()=>j(()=>import("./json5-C9tS-k6U.js"),[]))},{id:"jsonc",name:"JSON with Comments",import:(()=>j(()=>import("./jsonc-Des-eS-w.js"),[]))},{id:"jsonl",name:"JSON Lines",import:(()=>j(()=>import("./jsonl-DcaNXYhu.js"),[]))},{id:"jsonnet",name:"Jsonnet",import:(()=>j(()=>import("./jsonnet-DFQXde-d.js"),[]))},{id:"jssm",name:"JSSM",aliases:["fsl"],import:(()=>j(()=>import("./jssm-C2t-YnRu.js"),[]))},{id:"jsx",name:"JSX",import:(()=>j(()=>import("./jsx-g9-lgVsj.js"),[]))},{id:"julia",name:"Julia",aliases:["jl"],import:(()=>j(()=>import("./julia-353pQ8cl.js"),__vite__mapDeps([59,23,24,25,26,16,20,2,60])))},{id:"kotlin",name:"Kotlin",aliases:["kt","kts"],import:(()=>j(()=>import("./kotlin-BdnUsdx6.js"),[]))},{id:"kusto",name:"Kusto",aliases:["kql"],import:(()=>j(()=>import("./kusto-BvAqAH-y.js"),[]))},{id:"latex",name:"LaTeX",import:(()=>j(()=>import("./latex-CPEt12BK.js"),__vite__mapDeps([61,62,60])))},{id:"lean",name:"Lean 4",aliases:["lean4"],import:(()=>j(()=>import("./lean-qliWkHmV.js"),[]))},{id:"less",name:"Less",import:(()=>j(()=>import("./less-B1dDrJ26.js"),[]))},{id:"liquid",name:"Liquid",import:(()=>j(()=>import("./liquid-DFk8BABL.js"),__vite__mapDeps([63,1,2,3,9])))},{id:"llvm",name:"LLVM IR",import:(()=>j(()=>import("./llvm-D32k8WzR.js"),[]))},{id:"log",name:"Log file",import:(()=>j(()=>import("./log-2UxHyX5q.js"),[]))},{id:"logo",name:"Logo",import:(()=>j(()=>import("./logo-BtOb2qkB.js"),[]))},{id:"lua",name:"Lua",import:(()=>j(()=>import("./lua-BbnMAYS6.js"),__vite__mapDeps([37,26])))},{id:"luau",name:"Luau",import:(()=>j(()=>import("./luau-CXu1NL6O.js"),[]))},{id:"make",name:"Makefile",aliases:["makefile"],import:(()=>j(()=>import("./make-CHLpvVh8.js"),[]))},{id:"markdown",name:"Markdown",aliases:["md"],import:(()=>j(()=>import("./markdown-Cvjx9yec.js"),[]))},{id:"marko",name:"Marko",import:(()=>j(()=>import("./marko-BM38lbjI.js"),__vite__mapDeps([64,3,65,5,11])))},{id:"matlab",name:"MATLAB",import:(()=>j(()=>import("./matlab-D7o27uSR.js"),[]))},{id:"mdc",name:"MDC",import:(()=>j(()=>import("./mdc-DvHMhoCT.js"),__vite__mapDeps([66,40,38,15,1,2,3])))},{id:"mdx",name:"MDX",import:(()=>j(()=>import("./mdx-Cmh6b_Ma.js"),[]))},{id:"mermaid",name:"Mermaid",aliases:["mmd"],import:(()=>j(()=>import("./mermaid-DKYwYmdq.js"),[]))},{id:"mipsasm",name:"MIPS Assembly",aliases:["mips"],import:(()=>j(()=>import("./mipsasm-CKIfxQSi.js"),[]))},{id:"mojo",name:"Mojo",import:(()=>j(()=>import("./mojo-1DNp92w6.js"),[]))},{id:"move",name:"Move",import:(()=>j(()=>import("./move-DNEoBllO.js"),[]))},{id:"narrat",name:"Narrat Language",aliases:["nar"],import:(()=>j(()=>import("./narrat-DRg8JJMk.js"),[]))},{id:"nextflow",name:"Nextflow",aliases:["nf"],import:(()=>j(()=>import("./nextflow-CUEJCptM.js"),[]))},{id:"nginx",name:"Nginx",import:(()=>j(()=>import("./nginx-DknmC5AR.js"),__vite__mapDeps([67,37,26])))},{id:"nim",name:"Nim",import:(()=>j(()=>import("./nim-BZI_8mFl.js"),__vite__mapDeps([68,26,1,2,3,7,8,25,40])))},{id:"nix",name:"Nix",import:(()=>j(()=>import("./nix-BepWV7mh.js"),[]))},{id:"nushell",name:"nushell",aliases:["nu"],import:(()=>j(()=>import("./nushell-ChH_ziBE.js"),[]))},{id:"objective-c",name:"Objective-C",aliases:["objc"],import:(()=>j(()=>import("./objective-c-DXmwc3jG.js"),[]))},{id:"objective-cpp",name:"Objective-C++",import:(()=>j(()=>import("./objective-cpp-CLxacb5B.js"),[]))},{id:"ocaml",name:"OCaml",import:(()=>j(()=>import("./ocaml-C0hk2d4L.js"),[]))},{id:"pascal",name:"Pascal",import:(()=>j(()=>import("./pascal-D93ZcfNL.js"),[]))},{id:"perl",name:"Perl",import:(()=>j(()=>import("./perl-g0D2lH3a.js"),__vite__mapDeps([69,1,2,3,7,8,16])))},{id:"php",name:"PHP",import:(()=>j(()=>import("./php-Gk5eUrPQ.js"),__vite__mapDeps([70,1,2,3,7,8,16,9])))},{id:"plsql",name:"PL/SQL",import:(()=>j(()=>import("./plsql-ChMvpjG-.js"),[]))},{id:"po",name:"Gettext PO",aliases:["pot","potx"],import:(()=>j(()=>import("./po-BTJTHyun.js"),[]))},{id:"polar",name:"Polar",import:(()=>j(()=>import("./polar-C0HS_06l.js"),[]))},{id:"postcss",name:"PostCSS",import:(()=>j(()=>import("./postcss-CXtECtnM.js"),[]))},{id:"powerquery",name:"PowerQuery",import:(()=>j(()=>import("./powerquery-CEu0bR-o.js"),[]))},{id:"powershell",name:"PowerShell",aliases:["ps","ps1"],import:(()=>j(()=>import("./powershell-Dpen1YoG.js"),[]))},{id:"prisma",name:"Prisma",import:(()=>j(()=>import("./prisma-Dd19v3D-.js"),[]))},{id:"prolog",name:"Prolog",import:(()=>j(()=>import("./prolog-CbFg5uaA.js"),[]))},{id:"proto",name:"Protocol Buffer 3",aliases:["protobuf"],import:(()=>j(()=>import("./proto-DyJlTyXw.js"),[]))},{id:"pug",name:"Pug",aliases:["jade"],import:(()=>j(()=>import("./pug-Ch9lOoSd.js"),__vite__mapDeps([71,2,3,1])))},{id:"puppet",name:"Puppet",import:(()=>j(()=>import("./puppet-BMWR74SV.js"),[]))},{id:"purescript",name:"PureScript",import:(()=>j(()=>import("./purescript-CklMAg4u.js"),[]))},{id:"python",name:"Python",aliases:["py"],import:(()=>j(()=>import("./python-B6aJPvgy.js"),[]))},{id:"qml",name:"QML",import:(()=>j(()=>import("./qml-CHzV51_b.js"),__vite__mapDeps([72,2])))},{id:"qmldir",name:"QML Directory",import:(()=>j(()=>import("./qmldir-C8lEn-DE.js"),[]))},{id:"qss",name:"Qt Style Sheets",import:(()=>j(()=>import("./qss-IeuSbFQv.js"),[]))},{id:"r",name:"R",import:(()=>j(()=>import("./r-DiinP2Uv.js"),[]))},{id:"racket",name:"Racket",import:(()=>j(()=>import("./racket-BqYA7rlc.js"),[]))},{id:"raku",name:"Raku",aliases:["perl6"],import:(()=>j(()=>import("./raku-DXvB9xmW.js"),[]))},{id:"razor",name:"ASP.NET Razor",import:(()=>j(()=>import("./razor-CNXmhs1n.js"),__vite__mapDeps([73,1,2,3,74])))},{id:"reg",name:"Windows Registry Script",import:(()=>j(()=>import("./reg-C-SQnVFl.js"),[]))},{id:"regexp",name:"RegExp",aliases:["regex"],import:(()=>j(()=>import("./regexp-CDVJQ6XC.js"),[]))},{id:"rel",name:"Rel",import:(()=>j(()=>import("./rel-C3B-1QV4.js"),[]))},{id:"riscv",name:"RISC-V",import:(()=>j(()=>import("./riscv-BM1_JUlF.js"),[]))},{id:"rst",name:"reStructuredText",import:(()=>j(()=>import("./rst-DKdxLoXm.js"),__vite__mapDeps([75,15,1,2,3,23,24,25,26,16,20,28,38,76,33,34,7,8,35,11,36,13,37])))},{id:"ruby",name:"Ruby",aliases:["rb"],import:(()=>j(()=>import("./ruby-W1VRIm2Q.js"),__vite__mapDeps([33,1,2,3,34,7,8,16,35,11,36,13,23,24,25,26,28,37,38])))},{id:"rust",name:"Rust",aliases:["rs"],import:(()=>j(()=>import("./rust-B1yitclQ.js"),[]))},{id:"sas",name:"SAS",import:(()=>j(()=>import("./sas-cz2c8ADy.js"),__vite__mapDeps([77,16])))},{id:"sass",name:"Sass",import:(()=>j(()=>import("./sass-Cj5Yp3dK.js"),[]))},{id:"scala",name:"Scala",import:(()=>j(()=>import("./scala-C151Ov-r.js"),[]))},{id:"scheme",name:"Scheme",import:(()=>j(()=>import("./scheme-C98Dy4si.js"),[]))},{id:"scss",name:"SCSS",import:(()=>j(()=>import("./scss-OYdSNvt2.js"),__vite__mapDeps([5,3])))},{id:"sdbl",name:"1C (Query)",aliases:["1c-query"],import:(()=>j(()=>import("./sdbl-DVxCFoDh.js"),[]))},{id:"shaderlab",name:"ShaderLab",aliases:["shader"],import:(()=>j(()=>import("./shaderlab-Dg9Lc6iA.js"),__vite__mapDeps([78,79])))},{id:"shellscript",name:"Shell",aliases:["bash","sh","shell","zsh"],import:(()=>j(()=>import("./shellscript-Yzrsuije.js"),[]))},{id:"shellsession",name:"Shell Session",aliases:["console"],import:(()=>j(()=>import("./shellsession-BADoaaVG.js"),__vite__mapDeps([80,28])))},{id:"smalltalk",name:"Smalltalk",import:(()=>j(()=>import("./smalltalk-BERRCDM3.js"),[]))},{id:"solidity",name:"Solidity",import:(()=>j(()=>import("./solidity-BbcW6ACK.js"),[]))},{id:"soy",name:"Closure Templates",aliases:["closure-templates"],import:(()=>j(()=>import("./soy-B_7ge1HE.js"),__vite__mapDeps([81,1,2,3])))},{id:"sparql",name:"SPARQL",import:(()=>j(()=>import("./sparql-rVzFXLq3.js"),__vite__mapDeps([82,83])))},{id:"splunk",name:"Splunk Query Language",aliases:["spl"],import:(()=>j(()=>import("./splunk-BtCnVYZw.js"),[]))},{id:"sql",name:"SQL",import:(()=>j(()=>import("./sql-BLtJtn59.js"),[]))},{id:"ssh-config",name:"SSH Config",import:(()=>j(()=>import("./ssh-config-_ykCGR6B.js"),[]))},{id:"stata",name:"Stata",import:(()=>j(()=>import("./stata-BH5u7GGu.js"),__vite__mapDeps([84,16])))},{id:"stylus",name:"Stylus",aliases:["styl"],import:(()=>j(()=>import("./stylus-BEDo0Tqx.js"),[]))},{id:"svelte",name:"Svelte",import:(()=>j(()=>import("./svelte-Dt5jNKfG.js"),__vite__mapDeps([85,2,11,3,12])))},{id:"swift",name:"Swift",import:(()=>j(()=>import("./swift-Dg5xB15N.js"),[]))},{id:"system-verilog",name:"SystemVerilog",import:(()=>j(()=>import("./system-verilog-CnnmHF94.js"),[]))},{id:"systemd",name:"Systemd Units",import:(()=>j(()=>import("./systemd-4A_iFExJ.js"),[]))},{id:"talonscript",name:"TalonScript",aliases:["talon"],import:(()=>j(()=>import("./talonscript-CkByrt1z.js"),[]))},{id:"tasl",name:"Tasl",import:(()=>j(()=>import("./tasl-QIJgUcNo.js"),[]))},{id:"tcl",name:"Tcl",import:(()=>j(()=>import("./tcl-dwOrl1Do.js"),[]))},{id:"templ",name:"Templ",import:(()=>j(()=>import("./templ-0CNLO7il.js"),__vite__mapDeps([86,87,2,3])))},{id:"terraform",name:"Terraform",aliases:["tf","tfvars"],import:(()=>j(()=>import("./terraform-BETggiCN.js"),[]))},{id:"tex",name:"TeX",import:(()=>j(()=>import("./tex-B5i3u9ba.js"),__vite__mapDeps([62,60])))},{id:"toml",name:"TOML",import:(()=>j(()=>import("./toml-vGWfd6FD.js"),[]))},{id:"ts-tags",name:"TypeScript with Tags",aliases:["lit"],import:(()=>j(()=>import("./ts-tags-B9XN6NYQ.js"),__vite__mapDeps([88,11,3,2,25,26,1,16,7,8])))},{id:"tsv",name:"TSV",import:(()=>j(()=>import("./tsv-B_m7g4N7.js"),[]))},{id:"tsx",name:"TSX",import:(()=>j(()=>import("./tsx-COt5Ahok.js"),[]))},{id:"turtle",name:"Turtle",import:(()=>j(()=>import("./turtle-BsS91CYL.js"),[]))},{id:"twig",name:"Twig",import:(()=>j(()=>import("./twig-B_ULif71.js"),__vite__mapDeps([89,3,2,5,70,1,7,8,16,9,20,33,34,35,11,36,13,23,24,25,26,28,37,38])))},{id:"typescript",name:"TypeScript",aliases:["ts"],import:(()=>j(()=>import("./typescript-DlfHMoPT.js"),[]))},{id:"typespec",name:"TypeSpec",aliases:["tsp"],import:(()=>j(()=>import("./typespec-Df68jz8_.js"),[]))},{id:"typst",name:"Typst",aliases:["typ"],import:(()=>j(()=>import("./typst-DHCkPAjA.js"),[]))},{id:"v",name:"V",import:(()=>j(()=>import("./v-DljmTZ5-.js"),[]))},{id:"vala",name:"Vala",import:(()=>j(()=>import("./vala-CsfeWuGM.js"),[]))},{id:"vb",name:"Visual Basic",aliases:["cmd"],import:(()=>j(()=>import("./vb-D17OF-Vu.js"),[]))},{id:"verilog",name:"Verilog",import:(()=>j(()=>import("./verilog-BQ8w6xss.js"),[]))},{id:"vhdl",name:"VHDL",import:(()=>j(()=>import("./vhdl-CeAyd5Ju.js"),[]))},{id:"viml",name:"Vim Script",aliases:["vim","vimscript"],import:(()=>j(()=>import("./viml-CJc9bBzg.js"),[]))},{id:"vue",name:"Vue",import:(()=>j(()=>import("./vue-BEetzCYT.js"),__vite__mapDeps([90,3,2,11,9,15,1])))},{id:"vue-html",name:"Vue HTML",import:(()=>j(()=>import("./vue-html-BsD9fJC1.js"),__vite__mapDeps([91,90,3,2,11,9,15,1])))},{id:"vue-vine",name:"Vue Vine",import:(()=>j(()=>import("./vue-vine-CCdTUzyM.js"),__vite__mapDeps([92,3,5,65,93,12,90,2,11,9,15,1])))},{id:"vyper",name:"Vyper",aliases:["vy"],import:(()=>j(()=>import("./vyper-CDx5xZoG.js"),[]))},{id:"wasm",name:"WebAssembly",import:(()=>j(()=>import("./wasm-MzD3tlZU.js"),[]))},{id:"wenyan",name:"Wenyan",aliases:["文言"],import:(()=>j(()=>import("./wenyan-BV7otONQ.js"),[]))},{id:"wgsl",name:"WGSL",import:(()=>j(()=>import("./wgsl-Dx-B1_4e.js"),[]))},{id:"wikitext",name:"Wikitext",aliases:["mediawiki","wiki"],import:(()=>j(()=>import("./wikitext-BhOHFoWU.js"),[]))},{id:"wit",name:"WebAssembly Interface Types",import:(()=>j(()=>import("./wit-5i3qLPDT.js"),[]))},{id:"wolfram",name:"Wolfram",aliases:["wl"],import:(()=>j(()=>import("./wolfram-lXgVvXCa.js"),[]))},{id:"xml",name:"XML",import:(()=>j(()=>import("./xml-sdJ4AIDG.js"),__vite__mapDeps([7,8])))},{id:"xsl",name:"XSL",import:(()=>j(()=>import("./xsl-CtQFsRM5.js"),__vite__mapDeps([94,7,8])))},{id:"yaml",name:"YAML",aliases:["yml"],import:(()=>j(()=>import("./yaml-Buea-lGh.js"),[]))},{id:"zenscript",name:"ZenScript",import:(()=>j(()=>import("./zenscript-DVFEvuxE.js"),[]))},{id:"zig",name:"Zig",import:(()=>j(()=>import("./zig-VOosw3JB.js"),[]))}],Ure=Object.fromEntries(Ij.map(e=>[e.id,e.import])),Fre=Object.fromEntries(Ij.flatMap(e=>e.aliases?.map(t=>[t,e.import])||[])),$re={...Ure,...Fre},Hre=[{id:"andromeeda",displayName:"Andromeeda",type:"dark",import:(()=>j(()=>import("./andromeeda-C-Jbm3Hp.js"),[]))},{id:"aurora-x",displayName:"Aurora X",type:"dark",import:(()=>j(()=>import("./aurora-x-D-2ljcwZ.js"),[]))},{id:"ayu-dark",displayName:"Ayu Dark",type:"dark",import:(()=>j(()=>import("./ayu-dark-Cv9koXgw.js"),[]))},{id:"catppuccin-frappe",displayName:"Catppuccin Frappé",type:"dark",import:(()=>j(()=>import("./catppuccin-frappe-BBxmzUt6.js"),[]))},{id:"catppuccin-latte",displayName:"Catppuccin Latte",type:"light",import:(()=>j(()=>import("./catppuccin-latte-Jep7L2Wt.js"),[]))},{id:"catppuccin-macchiato",displayName:"Catppuccin Macchiato",type:"dark",import:(()=>j(()=>import("./catppuccin-macchiato-CIUZ1G5V.js"),[]))},{id:"catppuccin-mocha",displayName:"Catppuccin Mocha",type:"dark",import:(()=>j(()=>import("./catppuccin-mocha-NBseiqgx.js"),[]))},{id:"dark-plus",displayName:"Dark Plus",type:"dark",import:(()=>j(()=>import("./dark-plus-C3mMm8J8.js"),[]))},{id:"dracula",displayName:"Dracula Theme",type:"dark",import:(()=>j(()=>import("./dracula-BzJJZx-M.js"),[]))},{id:"dracula-soft",displayName:"Dracula Theme Soft",type:"dark",import:(()=>j(()=>import("./dracula-soft-BXkSAIEj.js"),[]))},{id:"everforest-dark",displayName:"Everforest Dark",type:"dark",import:(()=>j(()=>import("./everforest-dark-BgDCqdQA.js"),[]))},{id:"everforest-light",displayName:"Everforest Light",type:"light",import:(()=>j(()=>import("./everforest-light-C8M2exoo.js"),[]))},{id:"github-dark",displayName:"GitHub Dark",type:"dark",import:(()=>j(()=>import("./github-dark-DHJKELXO.js"),[]))},{id:"github-dark-default",displayName:"GitHub Dark Default",type:"dark",import:(()=>j(()=>import("./github-dark-default-Cuk6v7N8.js"),[]))},{id:"github-dark-dimmed",displayName:"GitHub Dark Dimmed",type:"dark",import:(()=>j(()=>import("./github-dark-dimmed-DH5Ifo-i.js"),[]))},{id:"github-dark-high-contrast",displayName:"GitHub Dark High Contrast",type:"dark",import:(()=>j(()=>import("./github-dark-high-contrast-E3gJ1_iC.js"),[]))},{id:"github-light",displayName:"GitHub Light",type:"light",import:(()=>j(()=>import("./github-light-DAi9KRSo.js"),[]))},{id:"github-light-default",displayName:"GitHub Light Default",type:"light",import:(()=>j(()=>import("./github-light-default-D7oLnXFd.js"),[]))},{id:"github-light-high-contrast",displayName:"GitHub Light High Contrast",type:"light",import:(()=>j(()=>import("./github-light-high-contrast-BfjtVDDH.js"),[]))},{id:"gruvbox-dark-hard",displayName:"Gruvbox Dark Hard",type:"dark",import:(()=>j(()=>import("./gruvbox-dark-hard-D1uDOp7C.js"),[]))},{id:"gruvbox-dark-medium",displayName:"Gruvbox Dark Medium",type:"dark",import:(()=>j(()=>import("./gruvbox-dark-medium-DkhsQLT2.js"),[]))},{id:"gruvbox-dark-soft",displayName:"Gruvbox Dark Soft",type:"dark",import:(()=>j(()=>import("./gruvbox-dark-soft-CcyOm34o.js"),[]))},{id:"gruvbox-light-hard",displayName:"Gruvbox Light Hard",type:"light",import:(()=>j(()=>import("./gruvbox-light-hard-DKzvysjW.js"),[]))},{id:"gruvbox-light-medium",displayName:"Gruvbox Light Medium",type:"light",import:(()=>j(()=>import("./gruvbox-light-medium-DPcUKYIF.js"),[]))},{id:"gruvbox-light-soft",displayName:"Gruvbox Light Soft",type:"light",import:(()=>j(()=>import("./gruvbox-light-soft-CGqH5EJj.js"),[]))},{id:"houston",displayName:"Houston",type:"dark",import:(()=>j(()=>import("./houston-DnULxvSX.js"),[]))},{id:"kanagawa-dragon",displayName:"Kanagawa Dragon",type:"dark",import:(()=>j(()=>import("./kanagawa-dragon-CkXjmgJE.js"),[]))},{id:"kanagawa-lotus",displayName:"Kanagawa Lotus",type:"light",import:(()=>j(()=>import("./kanagawa-lotus-CfQXZHmo.js"),[]))},{id:"kanagawa-wave",displayName:"Kanagawa Wave",type:"dark",import:(()=>j(()=>import("./kanagawa-wave-DWedfzmr.js"),[]))},{id:"laserwave",displayName:"LaserWave",type:"dark",import:(()=>j(()=>import("./laserwave-DUszq2jm.js"),[]))},{id:"light-plus",displayName:"Light Plus",type:"light",import:(()=>j(()=>import("./light-plus-B7mTdjB0.js"),[]))},{id:"material-theme",displayName:"Material Theme",type:"dark",import:(()=>j(()=>import("./material-theme-D5KoaKCx.js"),[]))},{id:"material-theme-darker",displayName:"Material Theme Darker",type:"dark",import:(()=>j(()=>import("./material-theme-darker-BfHTSMKl.js"),[]))},{id:"material-theme-lighter",displayName:"Material Theme Lighter",type:"light",import:(()=>j(()=>import("./material-theme-lighter-B0m2ddpp.js"),[]))},{id:"material-theme-ocean",displayName:"Material Theme Ocean",type:"dark",import:(()=>j(()=>import("./material-theme-ocean-CyktbL80.js"),[]))},{id:"material-theme-palenight",displayName:"Material Theme Palenight",type:"dark",import:(()=>j(()=>import("./material-theme-palenight-Csfq5Kiy.js"),[]))},{id:"min-dark",displayName:"Min Dark",type:"dark",import:(()=>j(()=>import("./min-dark-CafNBF8u.js"),[]))},{id:"min-light",displayName:"Min Light",type:"light",import:(()=>j(()=>import("./min-light-CTRr51gU.js"),[]))},{id:"monokai",displayName:"Monokai",type:"dark",import:(()=>j(()=>import("./monokai-D4h5O-jR.js"),[]))},{id:"night-owl",displayName:"Night Owl",type:"dark",import:(()=>j(()=>import("./night-owl-C39BiMTA.js"),[]))},{id:"nord",displayName:"Nord",type:"dark",import:(()=>j(()=>import("./nord-Ddv68eIx.js"),[]))},{id:"one-dark-pro",displayName:"One Dark Pro",type:"dark",import:(()=>j(()=>import("./one-dark-pro-DVMEJ2y_.js"),[]))},{id:"one-light",displayName:"One Light",type:"light",import:(()=>j(()=>import("./one-light-PoHY5YXO.js"),[]))},{id:"plastic",displayName:"Plastic",type:"dark",import:(()=>j(()=>import("./plastic-3e1v2bzS.js"),[]))},{id:"poimandres",displayName:"Poimandres",type:"dark",import:(()=>j(()=>import("./poimandres-CS3Unz2-.js"),[]))},{id:"red",displayName:"Red",type:"dark",import:(()=>j(()=>import("./red-bN70gL4F.js"),[]))},{id:"rose-pine",displayName:"Rosé Pine",type:"dark",import:(()=>j(()=>import("./rose-pine-BHrmToEH.js"),[]))},{id:"rose-pine-dawn",displayName:"Rosé Pine Dawn",type:"light",import:(()=>j(()=>import("./rose-pine-dawn-CnK8MTSM.js"),[]))},{id:"rose-pine-moon",displayName:"Rosé Pine Moon",type:"dark",import:(()=>j(()=>import("./rose-pine-moon-NleAzG8P.js"),[]))},{id:"slack-dark",displayName:"Slack Dark",type:"dark",import:(()=>j(()=>import("./slack-dark-BthQWCQV.js"),[]))},{id:"slack-ochin",displayName:"Slack Ochin",type:"light",import:(()=>j(()=>import("./slack-ochin-DqwNpetd.js"),[]))},{id:"snazzy-light",displayName:"Snazzy Light",type:"light",import:(()=>j(()=>import("./snazzy-light-Bw305WKR.js"),[]))},{id:"solarized-dark",displayName:"Solarized Dark",type:"dark",import:(()=>j(()=>import("./solarized-dark-DXbdFlpD.js"),[]))},{id:"solarized-light",displayName:"Solarized Light",type:"light",import:(()=>j(()=>import("./solarized-light-L9t79GZl.js"),[]))},{id:"synthwave-84",displayName:"Synthwave '84",type:"dark",import:(()=>j(()=>import("./synthwave-84-CbfX1IO0.js"),[]))},{id:"tokyo-night",displayName:"Tokyo Night",type:"dark",import:(()=>j(()=>import("./tokyo-night-hegEt444.js"),[]))},{id:"vesper",displayName:"Vesper",type:"dark",import:(()=>j(()=>import("./vesper-DU1UobuO.js"),[]))},{id:"vitesse-black",displayName:"Vitesse Black",type:"dark",import:(()=>j(()=>import("./vitesse-black-Bkuqu6BP.js"),[]))},{id:"vitesse-dark",displayName:"Vitesse Dark",type:"dark",import:(()=>j(()=>import("./vitesse-dark-D0r3Knsf.js"),[]))},{id:"vitesse-light",displayName:"Vitesse Light",type:"light",import:(()=>j(()=>import("./vitesse-light-CVO1_9PV.js"),[]))}],Gre=Object.fromEntries(Hre.map(e=>[e.id,e.import]));class r_ extends Error{constructor(t){super(t),this.name="ShikiError"}}function Kre(){return 2147483648}function qre(){return typeof performance<"u"?performance.now():Date.now()}const Wre=(e,t)=>e+(t-e%t)%t;async function Zre(e){let t,n;const r={};function a(_){n=_,r.HEAPU8=new Uint8Array(_),r.HEAPU32=new Uint32Array(_)}function s(_,S,A){r.HEAPU8.copyWithin(_,S,S+A)}function l(_){try{return t.grow(_-n.byteLength+65535>>>16),a(t.buffer),1}catch{}}function u(_){const S=r.HEAPU8.length;_=_>>>0;const A=Kre();if(_>A)return!1;for(let C=1;C<=4;C*=2){let w=S*(1+.2/C);w=Math.min(w,_+100663296);const x=Math.min(A,Wre(Math.max(_,w),65536));if(l(x))return!0}return!1}const d=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0;function f(_,S,A=1024){const C=S+A;let w=S;for(;_[w]&&!(w>=C);)++w;if(w-S>16&&_.buffer&&d)return d.decode(_.subarray(S,w));let x="";for(;S<w;){let T=_[S++];if(!(T&128)){x+=String.fromCharCode(T);continue}const N=_[S++]&63;if((T&224)===192){x+=String.fromCharCode((T&31)<<6|N);continue}const R=_[S++]&63;if((T&240)===224?T=(T&15)<<12|N<<6|R:T=(T&7)<<18|N<<12|R<<6|_[S++]&63,T<65536)x+=String.fromCharCode(T);else{const I=T-65536;x+=String.fromCharCode(55296|I>>10,56320|I&1023)}}return x}function p(_,S){return _?f(r.HEAPU8,_,S):""}const g={emscripten_get_now:qre,emscripten_memcpy_big:s,emscripten_resize_heap:u,fd_write:()=>0};async function y(){const S=await e({env:g,wasi_snapshot_preview1:g});t=S.memory,a(t.buffer),Object.assign(r,S),r.UTF8ToString=p}return await y(),r}var Yre=Object.defineProperty,Xre=(e,t,n)=>t in e?Yre(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Kt=(e,t,n)=>Xre(e,typeof t!="symbol"?t+"":t,n);let en=null;function Qre(e){throw new r_(e.UTF8ToString(e.getLastOnigError()))}class Hh{constructor(t){Kt(this,"utf16Length"),Kt(this,"utf8Length"),Kt(this,"utf16Value"),Kt(this,"utf8Value"),Kt(this,"utf16OffsetToUtf8"),Kt(this,"utf8OffsetToUtf16");const n=t.length,r=Hh._utf8ByteLength(t),a=r!==n,s=a?new Uint32Array(n+1):null;a&&(s[n]=r);const l=a?new Uint32Array(r+1):null;a&&(l[r]=n);const u=new Uint8Array(r);let d=0;for(let f=0;f<n;f++){const p=t.charCodeAt(f);let g=p,y=!1;if(p>=55296&&p<=56319&&f+1<n){const _=t.charCodeAt(f+1);_>=56320&&_<=57343&&(g=(p-55296<<10)+65536|_-56320,y=!0)}a&&(s[f]=d,y&&(s[f+1]=d),g<=127?l[d+0]=f:g<=2047?(l[d+0]=f,l[d+1]=f):g<=65535?(l[d+0]=f,l[d+1]=f,l[d+2]=f):(l[d+0]=f,l[d+1]=f,l[d+2]=f,l[d+3]=f)),g<=127?u[d++]=g:g<=2047?(u[d++]=192|(g&1984)>>>6,u[d++]=128|(g&63)>>>0):g<=65535?(u[d++]=224|(g&61440)>>>12,u[d++]=128|(g&4032)>>>6,u[d++]=128|(g&63)>>>0):(u[d++]=240|(g&1835008)>>>18,u[d++]=128|(g&258048)>>>12,u[d++]=128|(g&4032)>>>6,u[d++]=128|(g&63)>>>0),y&&f++}this.utf16Length=n,this.utf8Length=r,this.utf16Value=t,this.utf8Value=u,this.utf16OffsetToUtf8=s,this.utf8OffsetToUtf16=l}static _utf8ByteLength(t){let n=0;for(let r=0,a=t.length;r<a;r++){const s=t.charCodeAt(r);let l=s,u=!1;if(s>=55296&&s<=56319&&r+1<a){const d=t.charCodeAt(r+1);d>=56320&&d<=57343&&(l=(s-55296<<10)+65536|d-56320,u=!0)}l<=127?n+=1:l<=2047?n+=2:l<=65535?n+=3:n+=4,u&&r++}return n}createString(t){const n=t.omalloc(this.utf8Length);return t.HEAPU8.set(this.utf8Value,n),n}}const Gh=class Lr{constructor(t){if(Kt(this,"id",++Lr.LAST_ID),Kt(this,"_onigBinding"),Kt(this,"content"),Kt(this,"utf16Length"),Kt(this,"utf8Length"),Kt(this,"utf16OffsetToUtf8"),Kt(this,"utf8OffsetToUtf16"),Kt(this,"ptr"),!en)throw new r_("Must invoke loadWasm first.");this._onigBinding=en,this.content=t;const n=new Hh(t);this.utf16Length=n.utf16Length,this.utf8Length=n.utf8Length,this.utf16OffsetToUtf8=n.utf16OffsetToUtf8,this.utf8OffsetToUtf16=n.utf8OffsetToUtf16,this.utf8Length<1e4&&!Lr._sharedPtrInUse?(Lr._sharedPtr||(Lr._sharedPtr=en.omalloc(1e4)),Lr._sharedPtrInUse=!0,en.HEAPU8.set(n.utf8Value,Lr._sharedPtr),this.ptr=Lr._sharedPtr):this.ptr=n.createString(en)}convertUtf8OffsetToUtf16(t){return this.utf8OffsetToUtf16?t<0?0:t>this.utf8Length?this.utf16Length:this.utf8OffsetToUtf16[t]:t}convertUtf16OffsetToUtf8(t){return this.utf16OffsetToUtf8?t<0?0:t>this.utf16Length?this.utf8Length:this.utf16OffsetToUtf8[t]:t}dispose(){this.ptr===Lr._sharedPtr?Lr._sharedPtrInUse=!1:this._onigBinding.ofree(this.ptr)}};Kt(Gh,"LAST_ID",0);Kt(Gh,"_sharedPtr",0);Kt(Gh,"_sharedPtrInUse",!1);let Dj=Gh;class Jre{constructor(t){if(Kt(this,"_onigBinding"),Kt(this,"_ptr"),!en)throw new r_("Must invoke loadWasm first.");const n=[],r=[];for(let u=0,d=t.length;u<d;u++){const f=new Hh(t[u]);n[u]=f.createString(en),r[u]=f.utf8Length}const a=en.omalloc(4*t.length);en.HEAPU32.set(n,a/4);const s=en.omalloc(4*t.length);en.HEAPU32.set(r,s/4);const l=en.createOnigScanner(a,s,t.length);for(let u=0,d=t.length;u<d;u++)en.ofree(n[u]);en.ofree(s),en.ofree(a),l===0&&Qre(en),this._onigBinding=en,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 Dj(t);const s=this._findNextMatchSync(t,n,!1,a);return t.dispose(),s}return this._findNextMatchSync(t,n,!1,a)}_findNextMatchSync(t,n,r,a){const s=this._onigBinding,l=s.findNextOnigScannerMatch(this._ptr,t.id,t.ptr,t.utf8Length,t.convertUtf16OffsetToUtf8(n),a);if(l===0)return null;const u=s.HEAPU32;let d=l/4;const f=u[d++],p=u[d++],g=[];for(let y=0;y<p;y++){const _=t.convertUtf8OffsetToUtf16(u[d++]),S=t.convertUtf8OffsetToUtf16(u[d++]);g[y]={start:_,end:S,length:S-_}}return{index:f,captureIndices:g}}}function eie(e){return typeof e.instantiator=="function"}function tie(e){return typeof e.default=="function"}function nie(e){return typeof e.data<"u"}function rie(e){return typeof Response<"u"&&e instanceof Response}function iie(e){return typeof ArrayBuffer<"u"&&(e instanceof ArrayBuffer||ArrayBuffer.isView(e))||typeof Buffer<"u"&&Buffer.isBuffer?.(e)||typeof SharedArrayBuffer<"u"&&e instanceof SharedArrayBuffer||typeof Uint32Array<"u"&&e instanceof Uint32Array}let nf;function aie(e){if(nf)return nf;async function t(){en=await Zre(async n=>{let r=e;return r=await r,typeof r=="function"&&(r=await r(n)),typeof r=="function"&&(r=await r(n)),eie(r)?r=await r.instantiator(n):tie(r)?r=await r.default(n):(nie(r)&&(r=r.data),rie(r)?typeof WebAssembly.instantiateStreaming=="function"?r=await oie(r)(n):r=await sie(r)(n):iie(r)?r=await xy(r)(n):r instanceof WebAssembly.Module?r=await xy(r)(n):"default"in r&&r.default instanceof WebAssembly.Module&&(r=await xy(r.default)(n))),"instance"in r&&(r=r.instance),"exports"in r&&(r=r.exports),r})}return nf=t(),nf}function xy(e){return t=>WebAssembly.instantiate(e,t)}function oie(e){return t=>WebAssembly.instantiateStreaming(e,t)}function sie(e){return async t=>{const n=await e.arrayBuffer();return WebAssembly.instantiate(n,t)}}async function lie(e){return e&&await aie(e),{createScanner(t){return new Jre(t.map(n=>typeof n=="string"?n:n.source))},createString(t){return new Dj(t)}}}const cie=zre({langs:$re,themes:Gre,engine:()=>lie(j(()=>import("./wasm-CG6Dc4jp.js"),[]))}),{codeToHtml:uie}=Vre(cie,{guessEmbeddedLanguages:ere}),die=({children:e})=>v.jsx("div",{children:v.jsx("pre",{children:v.jsx("code",{children:e.split(`
|
|
325
|
-
`).map((t,n)=>v.jsx("span",{className:"line block w-full",children:t},n))})})}),fie=(({children:e,lang:t,isDarkMode:n,onChange:r,...a})=>{const[s,l]=E.useState(null),u=E.useMemo(()=>({lang:t,theme:n?"github-dark":"github-light",transformers:[Bee(),Uee(),qee(),Vee(),jee(),Pee()]}),[t,n]);return E.useEffect(()=>{uie(e,u).then(d=>l(d)).catch(d=>console.error(d))},[u,e]),s?v.jsx("div",{dangerouslySetInnerHTML:{__html:s},...a,style:{backgroundColor:"transparent",minWidth:0,overflow:"auto"}}):v.jsx(die,{children:e})}),hie=({className:e,onChange:t,isEditable:n,...r})=>v.jsx(fie,{className:_e("flex w-full",e),contentEditable:n,onInput:a=>t?.(a.currentTarget.textContent??""),...r}),jj=E.createContext({packageManager:"npm",setPackageManager:()=>{},codeFormat:"typescript",setCodeFormat:()=>{},contentDeclarationFormat:"typescript",setContentDeclarationFormat:()=>{}}),Kh=()=>E.useContext(jj),pie=({children:e})=>{const[t,n]=wc("packageManager","npm"),[r,a]=wc("codeFormat","typescript"),[s,l]=wc("contentDeclarationFormat","typescript");return v.jsx(jj,{value:{packageManager:t,setPackageManager:n,codeFormat:r,setCodeFormat:a,contentDeclarationFormat:s,setContentDeclarationFormat:l},children:e})},mie=({children:e,...t})=>{const{packageManager:n,codeFormat:r,contentDeclarationFormat:a}=Kh(),s=typeof t.packageManager>"u",l=n===t.packageManager,u=typeof t.codeFormat>"u",d=r===t.codeFormat,f=typeof t.contentDeclarationFormat>"u",p=a===t.contentDeclarationFormat;return(s||l)&&(u||d)&&(f||p)?e:v.jsx(v.Fragment,{})},gie=()=>{const{codeFormat:e,setCodeFormat:t,setContentDeclarationFormat:n}=Kh();return v.jsxs(Re,{value:e,onValueChange:r=>{t(r),n(r)},children:[v.jsx(Re.Trigger,{children:v.jsx(Re.Value,{placeholder:"Code Format"})}),v.jsxs(Re.Content,{children:[v.jsx(Re.Item,{value:"typescript",children:"TypeScript"}),v.jsx(Re.Item,{value:"esm",children:"ESM"}),v.jsx(Re.Item,{value:"commonjs",children:"CommonJS"})]})]})},yie=()=>{const{contentDeclarationFormat:e,setContentDeclarationFormat:t}=Kh();return v.jsxs(Re,{value:e,onValueChange:t,children:[v.jsx(Re.Trigger,{children:v.jsx(Re.Value,{placeholder:"Dictionary Format"})}),v.jsxs(Re.Content,{children:[v.jsx(Re.Item,{value:"typescript",children:"TypeScript"}),v.jsx(Re.Item,{value:"commonjs",children:"CommonJS"}),v.jsx(Re.Item,{value:"esm",children:"ESM"}),v.jsx(Re.Item,{value:"json",children:"JSON"})]})]})},Qv=({children:e,className:t,identifier:n,...r})=>v.jsx("div",{className:_e("group/popover relative flex cursor-pointer",t),"aria-label":`Popover ${n}`,id:`unrollable-panel-button-${n}`,"aria-haspopup":!0,...r,children:e});var Lj=(e=>(e.START="start",e.END="end",e))(Lj||{});const vie=({children:e,isHidden:t=void 0,isOverable:n=!0,isFocusable:r=!1,xAlign:a="start",yAlign:s="bellow",identifier:l,className:u,displayArrow:d=!0,...f})=>v.jsx(Tr,{transparency:"sm","aria-hidden":t,"aria-labelledby":`unrollable-panel-button-${l}`,id:`unrollable-panel-${l}`,className:_e("absolute z-[1000] min-w-full ring-neutral ring-1 rounded-md",a==="start"&&"left-0",a==="end"&&"right-0",s==="bellow"&&"top-[calc(100%+1rem)]",s==="above"&&"bottom-[calc(100%+1rem)]",d&&'before:absolute before:z-[999] before:content-[""] before:w-0 before:h-0',d&&a==="start"&&"before:left-2",d&&a==="end"&&"before:right-2",d&&s==="bellow"&&"before:-top-[10px] before:border-l-[10px] before:border-l-transparent before:border-r-[10px] before:border-r-transparent before:border-b-[10px] before:border-b-neutral",d&&s==="above"&&"before:-bottom-[10px] before:border-l-[10px] before:border-l-transparent before:border-r-[10px] before:border-r-transparent before:border-t-[10px] before:border-t-neutral","overflow-x-visible transition-all duration-400 ease-in-out opacity-0",t!==!1?"invisible":"delay-800 visible opacity-100",n&&"group-hover/popover:visible group-hover/popover:opacity-100 group-hover/popover:delay-800",r&&"group-focus-within/popover:visible group-focus-within/popover:opacity-100 group-focus-within/popover:delay-800",u),...f,children:e});Qv.Detail=vie;const bie=({code:e})=>{const{title:t,description:n}=cn("code");return v.jsxs(Qv,{identifier:"copy",children:[v.jsx(kk,{content:e}),v.jsxs(Qv.Detail,{identifier:"copy",className:"flex flex-col gap-3 p-3 min-w-64 text-sm",xAlign:Lj.END,children:[v.jsx("strong",{children:t}),v.jsx("p",{className:"text-neutral",children:n})]})]})},_ie=()=>{const{packageManager:e,setPackageManager:t}=Kh();return v.jsxs(Re,{value:e,onValueChange:t,children:[v.jsx(Re.Trigger,{children:v.jsx(Re.Value,{placeholder:"Package Manager"})}),v.jsxs(Re.Content,{children:[v.jsx(Re.Item,{value:"npm",children:"npm"}),v.jsx(Re.Item,{value:"pnpm",children:"pnpm"}),v.jsx(Re.Item,{value:"yarn",children:"yarn"})]})]})},Eie=700,Sie=({children:e,language:t,isDarkMode:n,showHeader:r=!0,showLineNumbers:a=!0,className:s,fileName:l,packageManager:u,codeFormat:d,contentDeclarationFormat:f,isRollable:p=!0,...g})=>{const y=e?.endsWith(`
|
|
326
|
-
`)?e.slice(0,-1):e,_=u||d||f;return v.jsx(mie,{packageManager:u,codeFormat:d,contentDeclarationFormat:f,children:v.jsxs(Tr,{className:_e("relative text-sm leading-6",a&&"with-line-number ml-0",s),transparency:"lg",...g,children:[r&&v.jsxs(v.Fragment,{children:[v.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:[v.jsx("span",{className:"truncate",children:l??t}),v.jsxs("div",{className:"flex items-center gap-2",children:[u&&v.jsx(_ie,{}),d&&v.jsx(gie,{}),f&&v.jsx(yie,{})]})]}),v.jsx("div",{className:"sticky top-48",children:v.jsx("div",{className:_e("absolute bottom-0 right-2 flex h-7 items-center",_&&"h-11"),children:v.jsx(bie,{code:y})})})]}),v.jsx(KD,{minHeight:Eie,isRollable:p,className:"p-2 overflow-x-auto",children:v.jsx(hie,{lang:t,isDarkMode:n,children:y})})]})})},xie=({className:e,isRollable:t,...n})=>{const[r,a]=E.useState(!1);return v.jsxs("div",{className:"relative",children:[v.jsx("div",{className:"sticky top-48 z-10",children:v.jsx("div",{className:"absolute top-4 right-2",children:v.jsx(ot,{variant:"hoverable",size:"icon-md",onClick:()=>{a(!0)},label:"Move",Icon:J2})})}),v.jsx(KD,{isRollable:t,children:v.jsx("table",{className:_e("max-w-full table-auto text-left min-w-full",e),...n})}),v.jsx(p0,{isOpen:r,onClose:()=>a(!1),size:h0.XL,hasCloseButton:!0,children:r?v.jsx("div",{className:"grid",children:v.jsx("table",{className:_e("max-w-full table-auto text-left min-w-full",e),...n})}):v.jsx(v.Fragment,{})})]})},Aie=e=>{const t=e.split(/\r?\n/),n=t.find(s=>s.trim()!=="");if(!n||n.trim()!=="---")return e;let r=!1,a=-1;for(let s=0;s<t.length;s++)if(t[s].trim()==="---")if(r){a=s;break}else{r=!0;continue}return a>-1?t.slice(a+1).join(`
|
|
327
|
-
`):e},wie=({children:e,isDarkMode:t,locale:n,options:r})=>{const{overrides:a,...s}=r??{},l=Aie(e);return v.jsx(pie,{children:v.jsx(Ree,{options:{overrides:{h1:u=>v.jsx(K8,{isClickable:!0,...u}),h2:u=>v.jsx(q8,{isClickable:!0,...u}),h3:u=>v.jsx(f0,{isClickable:!0,...u}),h4:u=>v.jsx(W8,{isClickable:!0,...u}),code:u=>typeof u.className>"u"?v.jsx("strong",{className:"bg-card/60 rounded p-1 shadow-[0_0_10px_-15px_rgba(0,0,0,0.3)] backdrop-blur",children:u.children}):v.jsx(Sie,{isDarkMode:t,language:u.className?.replace("lang-",""),...u}),blockquote:({className:u,...d})=>v.jsx("blockquote",{className:_e("border-card text-neutral mt-5 flex flex-col gap-3 border-l-4 pl-5",u),...d}),ul:({className:u,...d})=>v.jsx("ul",{className:_e("mt-5 flex flex-col gap-3 pl-5 list-disc",u),...d}),ol:({className:u,...d})=>v.jsx("ol",{className:_e("mt-5 flex flex-col gap-3 pl-5 list-decimal",u),...d}),li:({className:u,...d})=>v.jsx("li",{className:_e("",u),...d}),img:({className:u,...d})=>v.jsx("img",{...d,loading:"lazy",className:_e("max-w-full max-h-[80vh] rounded-md",u),src:`${d.src}?raw=true`}),a:u=>v.jsx(bb,{color:"neutral",isExternalLink:u.href?.startsWith("http"),underlined:!0,locale:n,...u}),pre:u=>u.children,table:u=>v.jsx(xie,{...u}),th:({className:u,...d})=>v.jsx("th",{className:_e("border-neutral bg-neutral/10 border-b p-4",u),...d}),tr:({className:u,...d})=>v.jsx("tr",{className:_e("hover:bg-neutral/10 hover:/10",u),...d}),td:({className:u,...d})=>v.jsx("td",{className:_e("border-b border-neutral-500/50 p-4",u),...d}),hr:({className:u,...d})=>v.jsx("hr",{className:_e("mt-16 mx-6 text-neutral",u),...d}),...a},...s},children:l??""})})},Tie=e=>{let t,n;if(typeof e=="number"||!isNaN(Number(e)))t="=",n=e.toString();else if(typeof e=="string"){const a=["<=",">=","<",">","="].find(s=>e.startsWith(s));a&&(t=a,n=e.slice(a.length))}return{comparator:t,numberValue:n}},Cie=({value:e,onChange:t})=>{const{comparator:n,numberValue:r}=E.useMemo(()=>Tie(e),[e]),[a,s]=E.useState(n??null),[l,u]=E.useState(r??null);return E.useEffect(()=>{if(a&&l&&(a!==n||l!==r)){const d=`${a}${l}`;t(d)}},[a,n,r,l,t]),v.jsxs("div",{className:"flex gap-1",children:[v.jsxs(Re,{onValueChange:s,defaultValue:n,children:[v.jsx(Re.Trigger,{className:"w-20",children:v.jsx(Re.Value,{placeholder:"Select a comparator"})}),v.jsxs(Re.Content,{children:[v.jsx(Re.Item,{value:"<",children:"<"}),v.jsx(Re.Item,{value:"<=",children:"<="}),v.jsx(Re.Item,{value:"=",children:"="}),v.jsx(Re.Item,{value:">=",children:">="}),v.jsx(Re.Item,{value:">",children:">"})]})]}),v.jsx(Gs,{type:"number","aria-label":"Quantity",defaultValue:l??void 0,onChange:d=>u(d.target.value),className:"min-w-4"})]})},Rie=({keyPath:e,dictionary:t,...n})=>{const{editedContent:r,addEditedContent:a}=xn(),s=Gr(),{mutate:l,isPending:u}=nq();return v.jsx(_J,{variant:la.DEFAULT,onContentChange:d=>a(t.localId,d,e),additionalButtons:v.jsx(ot,{Icon:O1,label:"Audit",variant:at.HOVERABLE,size:qn.ICON_SM,color:it.TEXT,className:"cursor-pointer hover:scale-110",isLoading:u,onClick:()=>{l({fileContent:JSON.stringify({...t,...r?.[t.localId]??{}}),keyPath:e,locales:s.internationalization.locales??[],aiOptions:{apiKey:s.ai?.apiKey,model:s.ai?.model,temperature:s.ai?.temperature}},{onSuccess:d=>{if(d?.data)try{const f=d.data.fileContent;a(t.localId,f,e)}catch(f){console.error(f)}}})}}),...n})},kie=({keyPath:e,dictionary:t,...n})=>{const{addEditedContent:r}=xn();return v.jsx(Bv,{variant:la.DEFAULT,onContentChange:a=>r(t.localId,a,e),...n})},Nie=[{content:"False",value:!1},{content:"True",value:!0}],Oie=({dictionary:e,keyPath:t,...n})=>{const{addEditedContent:r}=xn();return v.jsx(pu,{choices:Nie,value:!0,onChange:a=>r(e.localId,a,t),color:fu.TEXT,size:hu.SM,...n})},Iie=({section:e,keyPath:t,dictionary:n,renderSection:r})=>{const{locale:a,defaultLocale:s}=ub(),{selectedLocales:l,availableLocales:u}=MD(),d=e[$.Translation],f=Object.keys(d),g=u.length>l.length?l:[...new Set([...u,...f])],y=e[$.Translation];return v.jsx("table",{className:"w-full",children:v.jsx("tbody",{className:"flex w-full flex-col gap-2",children:g.map(_=>v.jsxs(E.Fragment,{children:[v.jsx("tr",{className:"mt-2 w-full p-2 text-xs",children:cf(_,a)}),v.jsx("tr",{children:v.jsx(Ea,{section:y[_]??Kn(y[s]),keyPath:[...t,{type:$.Translation,key:_}],dictionary:n,renderSection:r})})]},_))})})},Die=({section:e,keyPath:t,dictionary:n,renderSection:r})=>{const{addEditedContent:a}=xn(),{addNewEnumeration:s,removeEnumeration:l}=cn("navigation-view"),u=e[$.Enumeration],d=Object.keys(u)[0];return v.jsxs("div",{className:"flex flex-col gap-2",children:[v.jsx("table",{className:"w-full",children:v.jsx("tbody",{className:"flex w-full flex-col gap-2",children:Object.keys(e[$.Enumeration]).map(f=>{const p=[...t,{type:$.Enumeration}];return v.jsxs(E.Fragment,{children:[v.jsx("tr",{className:"mt-2 w-full",children:v.jsx("div",{className:"flex flex-1",children:v.jsx(ot,{label:l.label.value,variant:at.HOVERABLE,color:it.TEXT,Icon:mh,className:"ml-auto",onClick:()=>a(n.localId,void 0,p),children:l.text})})}),v.jsx("tr",{className:"w-full p-2",children:v.jsx(Cie,{value:f,onChange:g=>{const y=e[$.Enumeration],_=gJ(y,f,g),S={...e,[$.Enumeration]:_};a(n.localId,S,t)}})}),v.jsx("tr",{className:"block w-full",children:v.jsx(i_,{section:u[f]??Kn(u[d]),keyPath:p,dictionary:n,renderSection:r})})]},f)})})}),v.jsx(ot,{label:s.label.value,variant:at.HOVERABLE,color:it.NEUTRAL,textAlign:Cs.LEFT,isFullWidth:!0,onClick:()=>a(n.localId,Kn(u[d])??"",[...t,{type:$.Enumeration,key:"unknown"}]),Icon:ph,className:"m-2",children:s.text})]})},jie=({section:e,keyPath:t,dictionary:n,renderSection:r})=>{const a=e[$.Condition];return v.jsx("table",{className:"w-full",children:v.jsx("tbody",{className:"flex w-full flex-col gap-2",children:["true","false","fallback"].map(s=>v.jsxs(E.Fragment,{children:[v.jsx("tr",{className:"mt-2 block w-full p-2 text-xs",children:String(s)},s),v.jsx("tr",{className:"block w-full",children:v.jsx(Ea,{section:a[s]??Kn(a.true),keyPath:[...t,{type:$.Condition,key:s}],dictionary:n,renderSection:r})},s)]},s))})})},Lie=({section:e,keyPath:t,dictionary:n,renderSection:r})=>{const a=e[$.Gender];return v.jsx("table",{className:"w-full",children:v.jsx("tbody",{className:"flex w-full flex-col gap-2",children:["male","female","fallback"].map(s=>v.jsxs(E.Fragment,{children:[v.jsx("tr",{className:"mt-2 block w-full p-2 text-xs",children:String(s)},s),v.jsx("tr",{className:"block w-full",children:v.jsx(Ea,{section:a[s]??Kn(a.male),keyPath:[...t,{type:$.Gender,key:s}],dictionary:n,renderSection:r})},s)]},s))})})},Pie=({section:e,keyPath:t,dictionary:n,renderSection:r})=>{const{addEditedContent:a}=xn(),{addNewElement:s,removeElement:l}=cn("navigation-view");return v.jsxs("div",{className:"flex flex-col gap-2",children:[v.jsx("table",{className:"w-full",children:v.jsx("tbody",{className:"flex w-full flex-col gap-2",children:e.map((u,d)=>v.jsxs(E.Fragment,{children:[v.jsxs("tr",{className:"mt-2 flex w-full justify-between gap-2 p-2",children:[v.jsx("span",{className:"text-xs",children:String(d)}),v.jsx(ot,{label:l.label.value,variant:at.HOVERABLE,color:it.NEUTRAL,className:"ml-auto",textAlign:Cs.LEFT,onClick:()=>{const f=[...t,{type:$.Array,key:e.length}];a(n.localId,void 0,f)},Icon:mh,children:l.text})]}),v.jsx("tr",{className:"block w-full",children:v.jsx(Ea,{section:u??Kn(e[0]),keyPath:[...t,{type:$.Array,key:d}],dictionary:n,renderSection:r})})]},JSON.stringify(u)))})}),v.jsx(ot,{label:s.label.value,variant:at.HOVERABLE,color:it.NEUTRAL,textAlign:Cs.LEFT,isFullWidth:!0,onClick:()=>{const u=[...t,{type:$.Array,key:e.length}];a(n.localId,Kn(e[0])??"",u,!1)},Icon:ph,children:s.text})]})},Mie=({section:e,keyPath:t,dictionary:n,renderSection:r})=>v.jsx(v.Fragment,{children:v.jsx("table",{className:"w-full",children:v.jsx("tbody",{className:"flex flex-col gap-2",children:Object.keys(e).map(a=>{const s=[...t,{type:$.Object,key:a}],l=e,u=Object.keys(l)[0],d=l[a]??Kn(l[u]);return v.jsxs(E.Fragment,{children:[v.jsx("tr",{className:"mt-2 p-2 text-xs",children:String(a)},JSON.stringify(d)),v.jsx("tr",{className:"block w-full",children:v.jsx(i_,{section:d,keyPath:s,dictionary:n,renderSection:r})},JSON.stringify(d))]},a)})})})}),zie=({section:e,keyPath:t,dictionary:n,isDarkMode:r,onContentChange:a})=>{const[s,l]=E.useState(0),u=[{content:"Edit",value:0},{content:"Preview",value:1}],d=[...t,{type:$.Markdown}],f=e[$.Markdown];return v.jsxs("div",{className:"flex w-full flex-col justify-center gap-6 p-2",children:[v.jsx(pu,{choices:u,value:s,onChange:l,color:fu.TEXT,size:hu.SM,className:"ml-auto"}),v.jsx(Ea,{section:f,keyPath:d,dictionary:n,renderSection:s===1?p=>v.jsx(wie,{isDarkMode:r,children:p}):void 0,onContentChange:a})]})},Bie=({section:e,keyPath:t,...n})=>{const r=[...t,{type:$.Insertion}],a=e[$.Insertion];return v.jsx("div",{className:"flex w-full flex-col justify-center gap-6 p-2",children:v.jsx(Ea,{section:a,keyPath:r,...n})})},Vie=({section:e,keyPath:t,...n})=>{const r=[...t,{type:$.File}],a=e[$.File],{content:s}=e;return v.jsxs("div",{className:"flex w-full flex-col justify-center gap-6 p-2",children:[v.jsxs("span",{className:"text-neutral text-sm",children:[a," "]}),v.jsx(Ea,{section:s,keyPath:r,...n})]})},Uie=({keyPath:e,dictionary:t,renderSection:n,section:r,...a})=>{const{addEditedContent:s}=xn(),l=r[$.Nested],u=[...e,{type:$.Nested}];return v.jsxs("div",{className:"w-full p-2",children:[v.jsx(bv,{children:"Dictionary key"}),v.jsx(Bv,{"aria-label":"Edit field",type:"text",variant:la.DEFAULT,...a,onContentChange:d=>{s(t.localId,{...l,dictionaryKey:String(d)},u)},children:l.dictionaryKey??""}),v.jsx(bv,{children:"Path (optional)"}),v.jsx(Bv,{"aria-label":"Edit field",type:"text",variant:la.DEFAULT,...a,onContentChange:d=>{s(t.localId,{...l,path:d!==""?d:void 0},u)},children:l.path??""})]})},i_=({section:e,keyPath:t,dictionary:n,renderSection:r,isDarkMode:a})=>{const{tsxNotEditable:s}=cn("navigation-view"),l=js(e);return l===$.ReactNode?v.jsxs(v.Fragment,{children:[v.jsx("span",{children:"[React Node]"}),v.jsx("span",{className:"text-neutral text-xs",children:s})]}):l===$.Nested?v.jsx(Uie,{dictionary:n,renderSection:r,keyPath:t,section:e}):l===$.Translation?v.jsx(Iie,{dictionary:n,renderSection:r,keyPath:t,section:e}):l===$.Enumeration?v.jsx(Die,{dictionary:n,renderSection:r,keyPath:t,section:e}):l===$.Condition?v.jsx(jie,{dictionary:n,renderSection:r,keyPath:t,section:e}):l===$.Gender?v.jsx(Lie,{dictionary:n,renderSection:r,keyPath:t,section:e}):l===$.Insertion?v.jsx(Bie,{dictionary:n,renderSection:r,keyPath:t,section:e}):l===$.Markdown?v.jsx(zie,{dictionary:n,keyPath:t,section:e,isDarkMode:a}):l===$.File?v.jsx(Vie,{dictionary:n,renderSection:r,keyPath:t,section:e}):l===$.Array?v.jsx(Pie,{dictionary:n,renderSection:r,keyPath:t,section:e}):l===$.Object?v.jsx(Mie,{dictionary:n,renderSection:r,keyPath:t,section:e}):l===$.Number?v.jsx("div",{className:"w-full p-2",children:v.jsx(kie,{dictionary:n,keyPath:t,type:"number","aria-label":"Edit field",children:e})}):l===$.Text?v.jsx("div",{className:"w-full p-2",children:typeof r=="function"?r(e):v.jsx(Rie,{variant:la.DEFAULT,"aria-label":"Edit field",keyPath:t,dictionary:n,children:e})}):l===$.Boolean?v.jsx("div",{className:"w-full p-2",children:v.jsx(Oie,{dictionary:n,keyPath:t,value:e})}):v.jsxs("div",{className:"w-full p-2",children:["Error. Format not supported.",JSON.stringify(e,null,2),JSON.stringify(t,null,2),"NodeType : ",l]})},Ea=e=>v.jsx(Tr,{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:v.jsx(i_,{...e})}),Kc=e=>{const t=FR(e),n=js(e);return t&&(n===$.ReactNode||n===$.File)?!0:t&&typeof t.nodeType=="string"?Kc(t[t.nodeType]):typeof t=="string"||typeof t=="number"||typeof t=="boolean"||typeof t>"u"},Fie=({keyPath:e,dictionaryKey:t,onClickKeyPath:n,locale:r})=>{const a=[{text:t,onClick:()=>n([])},...e.map((s,l)=>({onClick:()=>n(e.slice(0,l+1)),text:s.key?.toString()??""}))];return v.jsx(e$,{links:a,locale:r,elementType:"location"})},wf=e=>String(e).replace(/([A-Z])/g," $1").toLowerCase().trim(),fs=({section:e,keyPath:t,dictionaryKey:n})=>{const{locales:r}=rt?.internationalization,a=lr(e,t),{addEditedContent:s}=Ls(),{setFocusedContentKeyPath:l,focusedContent:u}=da(),{addNewElement:d,goToField:f}=cn("navigation-view"),p=js(a),g=_=>(u?.keyPath?.length??0)>0&&Zc(_,u?.keyPath??[]),y=Kc(a);if(!a)return v.jsx(v.Fragment,{});if(y)return v.jsx(ot,{label:f.label.value,variant:at.HOVERABLE,color:it.TEXT,className:"w-full",onClick:()=>l(t),IconRight:Of,children:wf(t[t.length-1].key)});if(typeof a=="object"){if(p===$.ReactNode)return v.jsx(v.Fragment,{children:"React Node"});if(p===$.Translation)return v.jsx("div",{className:"flex flex-col justify-between gap-2",children:r.map(S=>{const A=[...t,{type:$.Translation,key:S}];return v.jsx(fs,{keyPath:A,section:e,dictionaryKey:n},S)})});if(p===$.Enumeration||p===$.Condition)return v.jsx("div",{className:"flex flex-col justify-between gap-2",children:Object.keys(a[p]).map(S=>{const A=[...t,{type:p,key:S}];return v.jsx(fs,{keyPath:A,section:e,dictionaryKey:n},S)})});if(p===$.Array)return v.jsxs("div",{className:"flex flex-col justify-between gap-2",children:[a.map((S,A)=>{const C=[...t,{type:$.Array,key:A}];return v.jsx(fs,{keyPath:C,section:e,dictionaryKey:n},JSON.stringify(C))}),v.jsx(ot,{label:d.label.value,variant:at.HOVERABLE,color:it.NEUTRAL,textAlign:Cs.LEFT,onClick:()=>{const S=[...t,{type:$.Array,key:a.length}],A=a,C=Kn(A[A.length-1])??"";s(n,C,S,!1),l(S)},Icon:ph,children:d.text})]});if(typeof a.nodeType=="string"){const S=[...t,{type:a.nodeType}];return v.jsx(fs,{keyPath:S,section:e,dictionaryKey:n})}const _=Object.keys(a);return v.jsx("div",{className:"flex w-full max-w-full flex-col justify-between gap-2",children:_.map(S=>{const A=[...t,{type:$.Object,key:S}],C=lr(e,A);return Kc(C)?v.jsx(ot,{label:`${f.label.value} ${S}`,isActive:g(A),variant:at.HOVERABLE,color:it.TEXT,className:"w-full",onClick:()=>l(A),IconRight:Of,children:wf(S)},S):v.jsx(H1,{label:`${f.label.value} ${S}`,isActive:g(A),onClick:()=>l(A),header:wf(S),children:v.jsx("div",{className:"mt-2 flex w-full max-w-full",children:v.jsx("div",{className:"flex-1 pl-10",children:v.jsx(fs,{keyPath:A,section:e,dictionaryKey:n})})})},S)})})}return v.jsxs(v.Fragment,{children:["Error loading section --",p,"--",JSON.stringify(a),"--",JSON.stringify(t)]})},$ie=({dictionary:e,isDarkMode:t})=>{const{content:n,key:r}=e,{editedContent:a}=xn(),{focusedContent:s,setFocusedContentKeyPath:l}=da(),u=s?.keyPath,d=typeof a?.[r]?.content>"u"?n:a?.[r]?.content,f=lr(d,u??[]),p=Kc(d),g=Kc(f);return E.useEffect(()=>{typeof f>"u"&&l(s?.keyPath?.slice(0,-1)??[])},[]),v.jsxs("div",{children:[v.jsxs("div",{className:"mb-6 flex items-center justify-between gap-2",children:[v.jsx(Fie,{dictionaryKey:r,keyPath:u??[],onClickKeyPath:l}),v.jsx("div",{className:"flex items-center gap-2",children:v.jsx(mJ,{})})]}),v.jsxs("div",{className:"flex gap-2 max-md:flex-col",children:[typeof d=="object"&&d&&!p&&Object.keys(d).length>0&&v.jsx(Tr,{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:v.jsx(fs,{keyPath:[],section:d,dictionaryKey:r})}),(g||(u??[]).length>0)&&v.jsx(Ea,{keyPath:u??[],section:f,dictionary:e,isDarkMode:t})]})]})},Hie=e=>{const{titleRequiredError:t,titleInvalidTypeError:n,titleMinLengthError:r,keyRequiredError:a,keyInvalidTypeError:s,keySpaceError:l,keyMinLengthError:u,descriptionRequiredError:d,descriptionInvalidTypeError:f,requiredErrorProjectId:p,invalidTypeErrorProjectId:g,invalidTypeErrorTags:y}=cn("dictionary-detail-schema");return iQ({title:cc({error:_=>_.input===void 0?t.value:n.value}).refine(_=>_.length===0||_.length>=4,{error:r.value}).optional(),key:cc({error:_=>_.input===void 0?a.value:s.value}).min(4,{error:u.value}).regex(/^[a-zA-Z0-9-_]+$/,{error:l.value}).default(""),description:cc({error:_=>_.input===void 0?d.value:f.value}).optional(),projectIds:Ov(cc({error:_=>_.input===void 0?p.value:g.value})).default([e]),tags:Ov(cc({error:()=>y.value})).default([])})},Gie=({dictionary:e})=>{const{session:t}=cu(),{project:n}=t??{},{data:r,isLoading:a}=XK(),{data:s}=eq(),l=Hie(String(n?.id)),{form:u,isSubmitting:d}=SW(l,{defaultValues:e}),{editedContent:f,setEditedDictionary:p}=xn(),{titleInput:g,keyInput:y,descriptionInput:_,projectInput:S,tagsSelect:A,auditButton:C}=cn("dictionary-details"),{mutate:w,isPending:x}=tq(),T=f?.[e.key];E.useEffect(()=>{u.reset(e)},[e,u?.reset]),E.useEffect(()=>{typeof T>"u"&&u.reset(e)},[T]);const N=()=>{const R={...e,...T};w({fileContent:JSON.stringify(R)},{onSuccess:I=>{if(I?.data)try{const D=JSON.parse(I.data.fileContent);p(L=>({...L,...R,...D})),u.reset({...R,...D})}catch(D){console.error(D)}}})};return v.jsx(Tr,{background:"none",border:!0,roundedSize:"2xl",className:"w-full px-5 pb-3 pt-5",children:v.jsxs($e,{className:"flex w-full flex-col gap-8",...u,schema:l,onChange:R=>p(I=>({...I,...R})),children:[v.jsxs("div",{className:"flex w-full flex-1 gap-8 max-md:flex-col",children:[v.jsx($e.EditableFieldInput,{name:"key",label:y.label,placeholder:y.label.value,description:y.description,disabled:d,isRequired:!0,onSave:R=>{u.setValue("key",R),p(I=>({...e,...I??{},key:R}))}}),v.jsx($e.EditableFieldInput,{name:"title",label:g.label,placeholder:g.placeholder.value,description:g.description,disabled:d,onSave:R=>{u.setValue("title",R),p(I=>({...e,...I??{},title:R}))}})]}),v.jsx($e.EditableFieldTextArea,{name:"description",label:_.label,placeholder:_.placeholder.value,description:_.description,disabled:d,onSave:R=>{u.setValue("description",R),p(I=>({...e,...I??{},description:R}))}}),v.jsxs("div",{className:"flex size-full flex-1 gap-8 max-md:flex-col",children:[v.jsxs($e.MultiSelect,{name:"projectIds",label:S.label.value,description:S.description.value,onValueChange:R=>{const I=[R].flat();u.setValue("projectIds",I),p(D=>({...e,...D??{},projectIds:I}))},children:[v.jsx(mn.Trigger,{getBadgeValue:R=>r?.data?.find(I=>String(I.id)===R)?.name??R,children:v.jsx(mn.Input,{placeholder:S.placeholder.value})}),v.jsx(mn.Content,{children:v.jsx(Ts,{isLoading:a,children:v.jsx(mn.List,{children:r?.data?.map(R=>v.jsx(mn.Item,{value:String(R.id),children:R.name},String(R.id)))})})})]}),v.jsxs($e.MultiSelect,{name:"tags",label:A.label.value,description:A.description.value,onValueChange:R=>{u.setValue("tags",[R].flat()),p(I=>({...e,...I??{},tags:[R].flat()}))},children:[v.jsx(mn.Trigger,{getBadgeValue:R=>r?.data?.find(I=>String(I.id)===R)?.name??R,children:v.jsx(mn.Input,{placeholder:A.placeholder.value})}),v.jsx(mn.Content,{children:v.jsx(Ts,{isLoading:a,children:v.jsx(mn.List,{children:s?.data?.map(R=>v.jsx(mn.Item,{value:String(R.key),children:R.name??R.key},String(R.key)))})})})]})]}),v.jsx("div",{className:"flex flex-wrap items-center justify-end gap-2 max-md:flex-col",children:v.jsx($e.Button,{type:"button",label:C.label.value,Icon:O1,variant:at.OUTLINE,color:it.TEXT,className:"max-md:w-full",onClick:N,disabled:d||x,isLoading:x,children:C.text})})]})})};function Kie(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function AR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function wR(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?AR(Object(n),!0).forEach(function(r){Kie(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):AR(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function qie(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,s;for(s=0;s<r.length;s++)a=r[s],!(t.indexOf(a)>=0)&&(n[a]=e[a]);return n}function Wie(e,t){if(e==null)return{};var n=qie(e,t),r,a;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(a=0;a<s.length;a++)r=s[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Zie(e,t){return Yie(e)||Xie(e,t)||Qie(e,t)||Jie()}function Yie(e){if(Array.isArray(e))return e}function Xie(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var n=[],r=!0,a=!1,s=void 0;try{for(var l=e[Symbol.iterator](),u;!(r=(u=l.next()).done)&&(n.push(u.value),!(t&&n.length===t));r=!0);}catch(d){a=!0,s=d}finally{try{!r&&l.return!=null&&l.return()}finally{if(a)throw s}}return n}}function Qie(e,t){if(e){if(typeof e=="string")return TR(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 TR(e,t)}}function TR(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 Jie(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
328
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function eae(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function CR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function RR(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?CR(Object(n),!0).forEach(function(r){eae(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):CR(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function tae(){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,s){return s(a)},r)}}function mc(e){return function t(){for(var n=this,r=arguments.length,a=new Array(r),s=0;s<r;s++)a[s]=arguments[s];return a.length>=e.length?e.apply(this,a):function(){for(var l=arguments.length,u=new Array(l),d=0;d<l;d++)u[d]=arguments[d];return t.apply(n,[].concat(a,u))}}}function uh(e){return{}.toString.call(e).includes("Object")}function nae(e){return!Object.keys(e).length}function qc(e){return typeof e=="function"}function rae(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function iae(e,t){return uh(t)||ra("changeType"),Object.keys(t).some(function(n){return!rae(e,n)})&&ra("changeField"),t}function aae(e){qc(e)||ra("selectorType")}function oae(e){qc(e)||uh(e)||ra("handlerType"),uh(e)&&Object.values(e).some(function(t){return!qc(t)})&&ra("handlersType")}function sae(e){e||ra("initialIsRequired"),uh(e)||ra("initialType"),nae(e)&&ra("initialContent")}function lae(e,t){throw new Error(e[t]||e.default)}var cae={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"},ra=mc(lae)(cae),rf={changes:iae,selector:aae,handler:oae,initial:sae};function uae(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};rf.initial(e),rf.handler(t);var n={current:e},r=mc(hae)(n,t),a=mc(fae)(n),s=mc(rf.changes)(e),l=mc(dae)(n);function u(){var f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(p){return p};return rf.selector(f),f(n.current)}function d(f){tae(r,a,s,l)(f)}return[u,d]}function dae(e,t){return qc(t)?t(e.current):t}function fae(e,t){return e.current=RR(RR({},e.current),t),t}function hae(e,t,n){return qc(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 pae={create:uae},mae={paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.52.2/min/vs"}};function gae(e){return function t(){for(var n=this,r=arguments.length,a=new Array(r),s=0;s<r;s++)a[s]=arguments[s];return a.length>=e.length?e.apply(this,a):function(){for(var l=arguments.length,u=new Array(l),d=0;d<l;d++)u[d]=arguments[d];return t.apply(n,[].concat(a,u))}}}function yae(e){return{}.toString.call(e).includes("Object")}function vae(e){return e||kR("configIsRequired"),yae(e)||kR("configType"),e.urls?(bae(),{paths:{vs:e.urls.monacoBase}}):e}function bae(){console.warn(Pj.deprecation)}function _ae(e,t){throw new Error(e[t]||e.default)}var Pj={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!
|
|
329
|
-
You are using deprecated way of configuration.
|
|
330
|
-
|
|
331
|
-
Instead of using
|
|
332
|
-
monaco.config({ urls: { monacoBase: '...' } })
|
|
333
|
-
use
|
|
334
|
-
monaco.config({ paths: { vs: '...' } })
|
|
335
|
-
|
|
336
|
-
For more please check the link https://github.com/suren-atoyan/monaco-loader#config
|
|
337
|
-
`},kR=gae(_ae)(Pj),Eae={config:vae},Sae=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(s,l){return l(s)},a)}};function Mj(e,t){return Object.keys(t).forEach(function(n){t[n]instanceof Object&&e[n]&&Object.assign(t[n],Mj(e[n],t[n]))}),wR(wR({},e),t)}var xae={type:"cancelation",msg:"operation is manually canceled"};function Ay(e){var t=!1,n=new Promise(function(r,a){e.then(function(s){return t?a(xae):r(s)}),e.catch(a)});return n.cancel=function(){return t=!0},n}var Aae=pae.create({config:mae,isInitialized:!1,resolve:null,reject:null,monaco:null}),zj=Zie(Aae,2),vu=zj[0],qh=zj[1];function wae(e){var t=Eae.config(e),n=t.monaco,r=Wie(t,["monaco"]);qh(function(a){return{config:Mj(a.config,r),monaco:n}})}function Tae(){var e=vu(function(t){var n=t.monaco,r=t.isInitialized,a=t.resolve;return{monaco:n,isInitialized:r,resolve:a}});if(!e.isInitialized){if(qh({isInitialized:!0}),e.monaco)return e.resolve(e.monaco),Ay(wy);if(window.monaco&&window.monaco.editor)return Bj(window.monaco),e.resolve(window.monaco),Ay(wy);Sae(Cae,kae)(Nae)}return Ay(wy)}function Cae(e){return document.body.appendChild(e)}function Rae(e){var t=document.createElement("script");return e&&(t.src=e),t}function kae(e){var t=vu(function(r){var a=r.config,s=r.reject;return{config:a,reject:s}}),n=Rae("".concat(t.config.paths.vs,"/loader.js"));return n.onload=function(){return e()},n.onerror=t.reject,n}function Nae(){var e=vu(function(n){var r=n.config,a=n.resolve,s=n.reject;return{config:r,resolve:a,reject:s}}),t=window.require;t.config(e.config),t(["vs/editor/editor.main"],function(n){Bj(n),e.resolve(n)},function(n){e.reject(n)})}function Bj(e){vu().monaco||qh({monaco:e})}function Oae(){return vu(function(e){var t=e.monaco;return t})}var wy=new Promise(function(e,t){return qh({resolve:e,reject:t})}),Vj={config:wae,init:Tae,__getMonacoInstance:Oae},Iae={wrapper:{display:"flex",position:"relative",textAlign:"initial"},fullWidth:{width:"100%"},hide:{display:"none"}},Ty=Iae,Dae={container:{display:"flex",height:"100%",width:"100%",justifyContent:"center",alignItems:"center"}},jae=Dae;function Lae({children:e}){return Oe.createElement("div",{style:jae.container},e)}var Pae=Lae,Mae=Pae;function zae({width:e,height:t,isEditorReady:n,loading:r,_ref:a,className:s,wrapperProps:l}){return Oe.createElement("section",{style:{...Ty.wrapper,width:e,height:t},...l},!n&&Oe.createElement(Mae,null,r),Oe.createElement("div",{ref:a,style:{...Ty.fullWidth,...!n&&Ty.hide},className:s}))}var Bae=zae,Uj=E.memo(Bae);function Vae(e){E.useEffect(e,[])}var Fj=Vae;function Uae(e,t,n=!0){let r=E.useRef(!0);E.useEffect(r.current||!n?()=>{r.current=!1}:e,t)}var Fn=Uae;function Rc(){}function bs(e,t,n,r){return Fae(e,r)||$ae(e,t,n,r)}function Fae(e,t){return e.editor.getModel($j(e,t))}function $ae(e,t,n,r){return e.editor.createModel(t,n,r?$j(e,r):void 0)}function $j(e,t){return e.Uri.parse(t)}function Hae({original:e,modified:t,language:n,originalLanguage:r,modifiedLanguage:a,originalModelPath:s,modifiedModelPath:l,keepCurrentOriginalModel:u=!1,keepCurrentModifiedModel:d=!1,theme:f="light",loading:p="Loading...",options:g={},height:y="100%",width:_="100%",className:S,wrapperProps:A={},beforeMount:C=Rc,onMount:w=Rc}){let[x,T]=E.useState(!1),[N,R]=E.useState(!0),I=E.useRef(null),D=E.useRef(null),L=E.useRef(null),H=E.useRef(w),Z=E.useRef(C),q=E.useRef(!1);Fj(()=>{let ae=Vj.init();return ae.then(M=>(D.current=M)&&R(!1)).catch(M=>M?.type!=="cancelation"&&console.error("Monaco initialization: error:",M)),()=>I.current?W():ae.cancel()}),Fn(()=>{if(I.current&&D.current){let ae=I.current.getOriginalEditor(),M=bs(D.current,e||"",r||n||"text",s||"");M!==ae.getModel()&&ae.setModel(M)}},[s],x),Fn(()=>{if(I.current&&D.current){let ae=I.current.getModifiedEditor(),M=bs(D.current,t||"",a||n||"text",l||"");M!==ae.getModel()&&ae.setModel(M)}},[l],x),Fn(()=>{let ae=I.current.getModifiedEditor();ae.getOption(D.current.editor.EditorOption.readOnly)?ae.setValue(t||""):t!==ae.getValue()&&(ae.executeEdits("",[{range:ae.getModel().getFullModelRange(),text:t||"",forceMoveMarkers:!0}]),ae.pushUndoStop())},[t],x),Fn(()=>{I.current?.getModel()?.original.setValue(e||"")},[e],x),Fn(()=>{let{original:ae,modified:M}=I.current.getModel();D.current.editor.setModelLanguage(ae,r||n||"text"),D.current.editor.setModelLanguage(M,a||n||"text")},[n,r,a],x),Fn(()=>{D.current?.editor.setTheme(f)},[f],x),Fn(()=>{I.current?.updateOptions(g)},[g],x);let te=E.useCallback(()=>{if(!D.current)return;Z.current(D.current);let ae=bs(D.current,e||"",r||n||"text",s||""),M=bs(D.current,t||"",a||n||"text",l||"");I.current?.setModel({original:ae,modified:M})},[n,t,a,e,r,s,l]),ce=E.useCallback(()=>{!q.current&&L.current&&(I.current=D.current.editor.createDiffEditor(L.current,{automaticLayout:!0,...g}),te(),D.current?.editor.setTheme(f),T(!0),q.current=!0)},[g,f,te]);E.useEffect(()=>{x&&H.current(I.current,D.current)},[x]),E.useEffect(()=>{!N&&!x&&ce()},[N,x,ce]);function W(){let ae=I.current?.getModel();u||ae?.original?.dispose(),d||ae?.modified?.dispose(),I.current?.dispose()}return Oe.createElement(Uj,{width:_,height:y,isEditorReady:x,loading:p,_ref:L,className:S,wrapperProps:A})}var Gae=Hae;E.memo(Gae);function Kae(e){let t=E.useRef();return E.useEffect(()=>{t.current=e},[e]),t.current}var qae=Kae,af=new Map;function Wae({defaultValue:e,defaultLanguage:t,defaultPath:n,value:r,language:a,path:s,theme:l="light",line:u,loading:d="Loading...",options:f={},overrideServices:p={},saveViewState:g=!0,keepCurrentModel:y=!1,width:_="100%",height:S="100%",className:A,wrapperProps:C={},beforeMount:w=Rc,onMount:x=Rc,onChange:T,onValidate:N=Rc}){let[R,I]=E.useState(!1),[D,L]=E.useState(!0),H=E.useRef(null),Z=E.useRef(null),q=E.useRef(null),te=E.useRef(x),ce=E.useRef(w),W=E.useRef(),ae=E.useRef(r),M=qae(s),X=E.useRef(!1),G=E.useRef(!1);Fj(()=>{let ie=Vj.init();return ie.then(F=>(H.current=F)&&L(!1)).catch(F=>F?.type!=="cancelation"&&console.error("Monaco initialization: error:",F)),()=>Z.current?P():ie.cancel()}),Fn(()=>{let ie=bs(H.current,e||r||"",t||a||"",s||n||"");ie!==Z.current?.getModel()&&(g&&af.set(M,Z.current?.saveViewState()),Z.current?.setModel(ie),g&&Z.current?.restoreViewState(af.get(s)))},[s],R),Fn(()=>{Z.current?.updateOptions(f)},[f],R),Fn(()=>{!Z.current||r===void 0||(Z.current.getOption(H.current.editor.EditorOption.readOnly)?Z.current.setValue(r):r!==Z.current.getValue()&&(G.current=!0,Z.current.executeEdits("",[{range:Z.current.getModel().getFullModelRange(),text:r,forceMoveMarkers:!0}]),Z.current.pushUndoStop(),G.current=!1))},[r],R),Fn(()=>{let ie=Z.current?.getModel();ie&&a&&H.current?.editor.setModelLanguage(ie,a)},[a],R),Fn(()=>{u!==void 0&&Z.current?.revealLine(u)},[u],R),Fn(()=>{H.current?.editor.setTheme(l)},[l],R);let ge=E.useCallback(()=>{if(!(!q.current||!H.current)&&!X.current){ce.current(H.current);let ie=s||n,F=bs(H.current,r||e||"",t||a||"",ie||"");Z.current=H.current?.editor.create(q.current,{model:F,automaticLayout:!0,...f},p),g&&Z.current.restoreViewState(af.get(ie)),H.current.editor.setTheme(l),u!==void 0&&Z.current.revealLine(u),I(!0),X.current=!0}},[e,t,n,r,a,s,f,p,g,l,u]);E.useEffect(()=>{R&&te.current(Z.current,H.current)},[R]),E.useEffect(()=>{!D&&!R&&ge()},[D,R,ge]),ae.current=r,E.useEffect(()=>{R&&T&&(W.current?.dispose(),W.current=Z.current?.onDidChangeModelContent(ie=>{G.current||T(Z.current.getValue(),ie)}))},[R,T]),E.useEffect(()=>{if(R){let ie=H.current.editor.onDidChangeMarkers(F=>{let J=Z.current.getModel()?.uri;if(J&&F.find(se=>se.path===J.path)){let se=H.current.editor.getModelMarkers({resource:J});N?.(se)}});return()=>{ie?.dispose()}}return()=>{}},[R,N]);function P(){W.current?.dispose(),y?g&&af.set(s,Z.current.saveViewState()):Z.current.getModel()?.dispose(),Z.current.dispose()}return Oe.createElement(Uj,{width:_,height:S,isEditorReady:R,loading:d,_ref:q,className:A,wrapperProps:C})}var Zae=Wae,Yae=E.memo(Zae);const Xae=({children:e,language:t,isDarkMode:n,showLineNumbers:r,showCopyButton:a=!0,isReadOnly:s=!1,onChange:l})=>{const u=E.useRef(null),d=E.useRef(null),[f,p]=E.useState({height:0,width:0}),g=E.useMemo(()=>n?"vs-dark-transparent":"hc-light-theme",[n]),y=(S,A)=>{d.current=S;const C=(S.getContentHeight()??0)+25;A.editor.defineTheme("vs-dark-transparent",{base:"vs-dark",inherit:!0,rules:[],colors:{"editor.background":"#00000000"}}),A.editor.defineTheme("hc-light-theme",{base:"vs",inherit:!0,rules:[],colors:{"editor.background":"#00000000"}}),A.editor.setTheme(g),A.languages.typescript.typescriptDefaults.setDiagnosticsOptions({noSemanticValidation:!0,noSyntaxValidation:!0}),A.languages.typescript.javascriptDefaults.setDiagnosticsOptions({noSemanticValidation:!0,noSyntaxValidation:!0}),A.languages.typescript.typescriptDefaults.setCompilerOptions({noLib:!0,allowNonTsExtensions:!0}),A.languages.typescript.javascriptDefaults.setCompilerOptions({noLib:!0,allowNonTsExtensions:!0}),p({height:C,width:u.current?.clientWidth??0})},_=r??e.split(`
|
|
338
|
-
`).length>1;return v.jsxs("div",{className:_e("relative h-full w-full text-sm",r&&"ml-0"),children:[a&&v.jsx("div",{className:"sticky top-5 z-10",children:v.jsx("div",{className:_e("absolute bottom-0 right-2 flex h-7 items-center"),children:v.jsx(kk,{content:e})})}),v.jsx("div",{className:"z-0 grid size-full grid-cols-[0px] overflow-auto",ref:u,children:v.jsx(Yae,{...f,defaultLanguage:"typescript",language:t,loading:v.jsx(Ts,{}),defaultValue:String(e).replace(/\n$/,""),onMount:y,onChange:l,options:{readOnly:s,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:g,className:"my-2 rounded-md"})})]})},Qae=({dictionary:e,isDarkMode:t})=>{const{setEditedContent:n,editedContent:r}=xn(),a=l=>{try{return JSON.parse(l),!0}catch{return!1}},s=E.useMemo(()=>r?.[e.localId]?.content??e?.content??{},[e]);return v.jsx(Tr,{background:"none",border:!0,roundedSize:"xl",className:"w-full overflow-hidden p-3",children:v.jsx(Xae,{language:"json",onChange:l=>{a(l??"{}")&&n(e.localId,JSON.parse(l??"{}"))},isDarkMode:t,children:JSON.stringify(s,null,2)})})},of=({section:e,onValueChange:t})=>{const{multilingual:n,text:r,number:a,boolean:s,node:l,array:u,enumeration:d,triggerPlaceHolder:f,nest:p,condition:g,markdown:y,insertion:_,reactNode:S,file:A}=cn("node-type-selector"),C=js(e),[w,x]=E.useState(C),T=N=>{x(N),t(N)};return v.jsxs(Re,{value:w,onValueChange:T,children:[v.jsx(Re.Trigger,{children:v.jsx(Re.Value,{placeholder:f})}),v.jsxs(Re.Content,{children:[v.jsx(Re.Item,{value:$.Translation,children:n}),v.jsx(Re.Item,{value:$.Text,children:r}),v.jsx(Re.Item,{value:$.Number,children:a}),v.jsx(Re.Item,{value:$.Boolean,children:s}),v.jsx(Re.Item,{value:$.Object,children:l}),v.jsx(Re.Item,{value:$.Array,children:u}),v.jsx(Re.Item,{value:$.Enumeration,children:d}),v.jsx(Re.Item,{value:$.Insertion,children:_}),v.jsx(Re.Item,{value:$.Markdown,children:y}),v.jsx(Re.Item,{value:$.Nested,children:p}),v.jsx(Re.Item,{value:$.Condition,children:g}),v.jsx(Re.Item,{value:$.ReactNode,disabled:!0,children:S}),v.jsx(Re.Item,{value:$.File,children:A})]})]})},Jv=({section:e,dictionaryKey:t,keyPath:n,onNodeTypeChange:r})=>{const a=Gr()?.internationalization.locales??[],s=js(e),l=FR(e),u=d=>{const f=Yl(s,a,d);r(f)};if(s===$.Translation||s===$.Condition||s===$.Enumeration){const d=Object.keys(e[s])[0],f=[...n,{type:s,key:d}];return v.jsxs("div",{className:"flex w-full flex-col gap-1",children:[v.jsx(of,{section:e,onValueChange:p=>r(Yl(p,a))}),v.jsx(Jv,{section:l,keyPath:f,dictionaryKey:t,onNodeTypeChange:u})]})}if(s===$.Array){const d=[...n,{type:s,key:0}];return v.jsxs("div",{className:"flex w-full flex-col gap-1",children:[v.jsx(of,{section:e,onValueChange:f=>r(Yl(f,a))}),v.jsx(Jv,{section:l,keyPath:d,dictionaryKey:t,onNodeTypeChange:u})]})}return s===$.Object?v.jsxs(v.Fragment,{children:[v.jsx(of,{section:e,onValueChange:d=>r(Yl(d,a))}),v.jsx("div",{className:"ml-10 mt-6",children:v.jsx(eoe,{keyPath:n,section:e,dictionaryKey:t})})]}):v.jsx(of,{section:e,onValueChange:d=>r(Yl(d,a))})},a_=({sectionKey:e,section:t,keyPath:n,dictionaryKey:r})=>{const{focusedContent:a,setFocusedContentKeyPath:s}=da(),{renameEditedContent:l,addEditedContent:u}=Ls(),{titleInput:d,deleteButton:f}=cn("structure-view"),p=g=>{l(r,g,n);const y=n.slice(0,-1),_=n[n.length-1],S=[...y,{..._,key:g}];s(S)};return v.jsx(Tr,{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":Zc(n,a?.keyPath??[]),onClick:()=>s(n),children:v.jsxs("div",{className:"flex w-full flex-col items-start justify-between gap-3",children:[typeof e=="string"&&v.jsxs("div",{className:"w-full",children:[v.jsxs("div",{className:"flex w-full items-center justify-between gap-10",children:[v.jsx(YO,{name:"key","aria-label":"Key",placeholder:d.placeholder.value,defaultValue:e,onSave:g=>p(g),variant:la.INVISIBLE}),v.jsx(ot,{label:f.label.value,variant:at.HOVERABLE,size:qn.ICON_SM,color:it.TEXT,className:"translate-x-2",Icon:mh,onClick:()=>{u(r,void 0,n);const g=n.slice(0,-1);s(g)}})]}),v.jsxs("span",{className:"text-neutral ml-3 text-sm",children:["( ",wf(e)," )"]})]}),v.jsx(Jv,{keyPath:n,dictionaryKey:r,section:t,onNodeTypeChange:g=>{u(r,g,n)}})]})})},Jae=({section:e,keyPath:t,dictionaryKey:n})=>{const{addNodeButton:r}=cn("structure-view"),{setFocusedContentKeyPath:a}=lb(),{addEditedContent:s}=Ls();return!e||typeof e!="object"?v.jsx("div",{children:"Not an object"}):v.jsxs("div",{className:"flex flex-col gap-2 overflow-y-auto",children:[v.jsx("ul",{className:"mr-auto flex flex-col gap-4",children:Object.keys(e).map(l=>v.jsx("li",{className:"flex w-full",children:v.jsx(a_,{sectionKey:l,section:e?.[l],keyPath:[...t,{type:$.Object,key:l}],dictionaryKey:n})},l))}),v.jsx(ot,{label:r.label.value,variant:at.HOVERABLE,size:qn.MD,color:it.TEXT,Icon:ph,className:"flex-1",onClick:()=>{const u=[...t,{type:$.Object,key:"newKey"}];s(n,"",u),a(u)},children:r.text})]})},eoe=({section:e,keyPath:t,dictionaryKey:n})=>!e||typeof e!="object"||typeof e.nodeType=="string"?v.jsx(a_,{sectionKey:"content",section:e,keyPath:t,dictionaryKey:n}):v.jsx(Jae,{section:e,keyPath:t,dictionaryKey:n}),toe=({dictionary:e})=>{const{content:t,key:n,localId:r}=e,{editedContent:a}=xn(),s=typeof a?.[r]?.content>"u"?t:a?.[r]?.content;return v.jsx(a_,{section:s,keyPath:[],dictionaryKey:n})},noe=({dictionary:e,onClickDictionaryList:t,isDarkMode:n,mode:r,onDelete:a})=>{const s=Gr(),[l,u]=E.useState(1),{returnToDictionaryList:d}=cn("dictionary-field-editor"),{setFocusedContent:f}=lb(),{setLocaleDictionaries:p}=dh();return E.useEffect(()=>{f(g=>({...g??{},dictionaryKey:e.key,dictionaryLocalId:e.localId})),p(g=>({...g,[e.localId]:e}))},[]),v.jsx(pJ,{availableLocales:s?.internationalization.locales??[],children:v.jsxs("div",{className:"flex size-full flex-col gap-6 px-2",children:[v.jsx(ot,{onClick:t,variant:at.HOVERABLE,className:"z-10 ml-5 mr-auto",color:it.TEXT,Icon:T2,label:d.label.value,children:d.text}),v.jsx(pu,{defaultValue:l,onChange:g=>u(g),color:fu.TEXT,size:hu.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:g})=>!(!r.includes("remote")&&g===0))}),l===0&&v.jsx(Gie,{dictionary:e}),l===2&&v.jsx(toe,{dictionary:e}),l===1&&v.jsx($ie,{dictionary:e,isDarkMode:n}),l===3&&v.jsx(Qae,{dictionary:e,isDarkMode:n}),v.jsx(sD,{dictionary:e,mode:r,onDelete:()=>{f(null),a?.()}})]})})},roe=({children:e,isHidden:t,minWidth:n=0,align:r="left",className:a,...s})=>v.jsx("div",{className:_e("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,...s,children:v.jsx("div",{style:{minWidth:`${n}px`},tabIndex:t!==!1?void 0:-1,className:_e(r==="right"&&"ml-auto"),children:e})}),ioe=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}},aoe=()=>{if(typeof window>"u")return;const e=window.navigator?.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)},ooe=e=>{if(!(typeof window>"u"))return(window?.innerWidth??0)<=e},NR=(e="md")=>{const t=ioe(e),n=aoe(),r=ooe(t);return{isMobileScreen:r,isMobileUserAgent:n,isMobile:r??n}},soe=(e="md")=>{const[t,n]=E.useState(NR(e));return E.useEffect(()=>{const r=()=>{n(NR(e))};return window.addEventListener("resize",r,{passive:!0}),()=>window.removeEventListener("resize",r)},[e]),t},loe=e=>{const t=e.getBoundingClientRect(),n=t.top,r=t.bottom-1;if(n>=0&&r<=window.innerHeight){const s=t.left+t.width/2,l=t.top+10,u=document.elementFromPoint(s,l);return e===u||e.contains(u)}return!1},Wh=AO((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})),Hj=({title:e,identifier:t,children:n,header:r,closeOnOutsideClick:a=!0,backButton:s,isOpen:l,onClose:u})=>{const{isMobile:d}=soe("md"),f=E.useRef(null),p=E.useRef(null),{close:g,open:y,isOpen:_}=Wh(wO(A=>({close:()=>A.close(t),open:()=>A.open(t),isOpen:A.isOpen(t)})));TO({disableScroll:_,key:t?`right_drawer_${t}`:"right_drawer"}),E.useEffect(()=>{const A=C=>{try{if(!f.current)return;const w=_&&a,x=C.target&&!f.current.contains(C.target),T=loe(f.current);(w&&x&&T||!C.target)&&(g(),u?.())}catch{g(),u?.()}};return window.addEventListener("mousedown",A),()=>window.removeEventListener("mousedown",A)},[_,g,u,a,t]),E.useEffect(()=>{l!==void 0&&(l?y():(g(),u?.()))},[g,y,u,l,t]);const S=A=>{A.target===A.currentTarget&&d&&(g(),u?.())};return v.jsx("div",{className:"fixed right-0 top-0 z-50 flex h-full justify-end",children:v.jsx(roe,{isHidden:!_,align:"right",children:v.jsxs(Tr,{className:"text-text relative flex h-screen w-screen flex-col md:w-[400px]",ref:f,roundedSize:"none",children:[v.jsxs("div",{className:"flex flex-col gap-3 p-6",children:[v.jsxs("div",{className:"flex justify-between gap-3",children:[v.jsx("div",{children:s&&v.jsx(ot,{variant:at.HOVERABLE,color:it.TEXT,label:s.text??"Go back",onClick:s.onBack,Icon:I2,children:s?.text})}),v.jsx("div",{children:v.jsx(ot,{variant:at.HOVERABLE,color:it.TEXT,label:"Close",className:"ml-auto",onClick:g,Icon:po,size:qn.ICON_MD})})]}),e&&v.jsx("h2",{className:"flex items-center justify-center text-lg font-bold",children:e}),r]}),v.jsx("div",{className:"flex h-full flex-col overflow-y-auto p-2",children:v.jsx("div",{className:"flex flex-1 flex-col",onClick:S,ref:p,children:n})})]})})})};var o_="ToastProvider",[s_,coe,uoe]=eI("Toast"),[Gj,doe]=tu("Toast",[uoe]),[foe,Zh]=Gj(o_),l_=e=>{const{__scopeToast:t,label:n="Notification",duration:r=5e3,swipeDirection:a="right",swipeThreshold:s=50,children:l}=e,[u,d]=E.useState(null),[f,p]=E.useState(0),g=E.useRef(!1),y=E.useRef(!1);return n.trim()||console.error(`Invalid prop \`label\` supplied to \`${o_}\`. Expected non-empty \`string\`.`),v.jsx(s_.Provider,{scope:t,children:v.jsx(foe,{scope:t,label:n,duration:r,swipeDirection:a,swipeThreshold:s,toastCount:f,viewport:u,onViewportChange:d,onToastAdd:E.useCallback(()=>p(_=>_+1),[]),onToastRemove:E.useCallback(()=>p(_=>_-1),[]),isFocusedToastEscapeKeyDownRef:g,isClosePausedRef:y,children:l})})};l_.displayName=o_;var Kj="ToastViewport",hoe=["F8"],eb="toast.viewportPause",tb="toast.viewportResume",c_=E.forwardRef((e,t)=>{const{__scopeToast:n,hotkey:r=hoe,label:a="Notifications ({hotkey})",...s}=e,l=Zh(Kj,n),u=coe(n),d=E.useRef(null),f=E.useRef(null),p=E.useRef(null),g=E.useRef(null),y=wt(t,g,l.onViewportChange),_=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),S=l.toastCount>0;E.useEffect(()=>{const C=w=>{r.length!==0&&r.every(T=>w[T]||w.code===T)&&g.current?.focus()};return document.addEventListener("keydown",C),()=>document.removeEventListener("keydown",C)},[r]),E.useEffect(()=>{const C=d.current,w=g.current;if(S&&C&&w){const x=()=>{if(!l.isClosePausedRef.current){const I=new CustomEvent(eb);w.dispatchEvent(I),l.isClosePausedRef.current=!0}},T=()=>{if(l.isClosePausedRef.current){const I=new CustomEvent(tb);w.dispatchEvent(I),l.isClosePausedRef.current=!1}},N=I=>{!C.contains(I.relatedTarget)&&T()},R=()=>{C.contains(document.activeElement)||T()};return C.addEventListener("focusin",x),C.addEventListener("focusout",N),C.addEventListener("pointermove",x),C.addEventListener("pointerleave",R),window.addEventListener("blur",x),window.addEventListener("focus",T),()=>{C.removeEventListener("focusin",x),C.removeEventListener("focusout",N),C.removeEventListener("pointermove",x),C.removeEventListener("pointerleave",R),window.removeEventListener("blur",x),window.removeEventListener("focus",T)}}},[S,l.isClosePausedRef]);const A=E.useCallback(({tabbingDirection:C})=>{const x=u().map(T=>{const N=T.ref.current,R=[N,...Toe(N)];return C==="forwards"?R:R.reverse()});return(C==="forwards"?x.reverse():x).flat()},[u]);return E.useEffect(()=>{const C=g.current;if(C){const w=x=>{const T=x.altKey||x.ctrlKey||x.metaKey;if(x.key==="Tab"&&!T){const R=document.activeElement,I=x.shiftKey;if(x.target===C&&I){f.current?.focus();return}const H=A({tabbingDirection:I?"backwards":"forwards"}),Z=H.findIndex(q=>q===R);Cy(H.slice(Z+1))?x.preventDefault():I?f.current?.focus():p.current?.focus()}};return C.addEventListener("keydown",w),()=>C.removeEventListener("keydown",w)}},[u,A]),v.jsxs(x$,{ref:d,role:"region","aria-label":a.replace("{hotkey}",_),tabIndex:-1,style:{pointerEvents:S?void 0:"none"},children:[S&&v.jsx(nb,{ref:f,onFocusFromOutsideViewport:()=>{const C=A({tabbingDirection:"forwards"});Cy(C)}}),v.jsx(s_.Slot,{scope:n,children:v.jsx(He.ol,{tabIndex:-1,...s,ref:y})}),S&&v.jsx(nb,{ref:p,onFocusFromOutsideViewport:()=>{const C=A({tabbingDirection:"backwards"});Cy(C)}})]})});c_.displayName=Kj;var qj="ToastFocusProxy",nb=E.forwardRef((e,t)=>{const{__scopeToast:n,onFocusFromOutsideViewport:r,...a}=e,s=Zh(qj,n);return v.jsx(L0,{tabIndex:0,...a,ref:t,style:{position:"fixed"},onFocus:l=>{const u=l.relatedTarget;!s.viewport?.contains(u)&&r()}})});nb.displayName=qj;var bu="Toast",poe="toast.swipeStart",moe="toast.swipeMove",goe="toast.swipeCancel",yoe="toast.swipeEnd",u_=E.forwardRef((e,t)=>{const{forceMount:n,open:r,defaultOpen:a,onOpenChange:s,...l}=e,[u,d]=If({prop:r,defaultProp:a??!0,onChange:s,caller:bu});return v.jsx(nu,{present:n||u,children:v.jsx(_oe,{open:u,...l,ref:t,onClose:()=>d(!1),onPause:Sr(e.onPause),onResume:Sr(e.onResume),onSwipeStart:Qe(e.onSwipeStart,f=>{f.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:Qe(e.onSwipeMove,f=>{const{x:p,y:g}=f.detail.delta;f.currentTarget.setAttribute("data-swipe","move"),f.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${p}px`),f.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${g}px`)}),onSwipeCancel:Qe(e.onSwipeCancel,f=>{f.currentTarget.setAttribute("data-swipe","cancel"),f.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),f.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),f.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),f.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:Qe(e.onSwipeEnd,f=>{const{x:p,y:g}=f.detail.delta;f.currentTarget.setAttribute("data-swipe","end"),f.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),f.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),f.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${p}px`),f.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${g}px`),d(!1)})})})});u_.displayName=bu;var[voe,boe]=Gj(bu,{onClose(){}}),_oe=E.forwardRef((e,t)=>{const{__scopeToast:n,type:r="foreground",duration:a,open:s,onClose:l,onEscapeKeyDown:u,onPause:d,onResume:f,onSwipeStart:p,onSwipeMove:g,onSwipeCancel:y,onSwipeEnd:_,...S}=e,A=Zh(bu,n),[C,w]=E.useState(null),x=wt(t,W=>w(W)),T=E.useRef(null),N=E.useRef(null),R=a||A.duration,I=E.useRef(0),D=E.useRef(R),L=E.useRef(0),{onToastAdd:H,onToastRemove:Z}=A,q=Sr(()=>{C?.contains(document.activeElement)&&A.viewport?.focus(),l()}),te=E.useCallback(W=>{!W||W===1/0||(window.clearTimeout(L.current),I.current=new Date().getTime(),L.current=window.setTimeout(q,W))},[q]);E.useEffect(()=>{const W=A.viewport;if(W){const ae=()=>{te(D.current),f?.()},M=()=>{const X=new Date().getTime()-I.current;D.current=D.current-X,window.clearTimeout(L.current),d?.()};return W.addEventListener(eb,M),W.addEventListener(tb,ae),()=>{W.removeEventListener(eb,M),W.removeEventListener(tb,ae)}}},[A.viewport,R,d,f,te]),E.useEffect(()=>{s&&!A.isClosePausedRef.current&&te(R)},[s,R,A.isClosePausedRef,te]),E.useEffect(()=>(H(),()=>Z()),[H,Z]);const ce=E.useMemo(()=>C?Xj(C):null,[C]);return A.viewport?v.jsxs(v.Fragment,{children:[ce&&v.jsx(Eoe,{__scopeToast:n,role:"status","aria-live":r==="foreground"?"assertive":"polite",children:ce}),v.jsx(voe,{scope:n,onClose:q,children:ho.createPortal(v.jsx(s_.ItemSlot,{scope:n,children:v.jsx(S$,{asChild:!0,onEscapeKeyDown:Qe(u,()=>{A.isFocusedToastEscapeKeyDownRef.current||q(),A.isFocusedToastEscapeKeyDownRef.current=!1}),children:v.jsx(He.li,{tabIndex:0,"data-state":s?"open":"closed","data-swipe-direction":A.swipeDirection,...S,ref:x,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:Qe(e.onKeyDown,W=>{W.key==="Escape"&&(u?.(W.nativeEvent),W.nativeEvent.defaultPrevented||(A.isFocusedToastEscapeKeyDownRef.current=!0,q()))}),onPointerDown:Qe(e.onPointerDown,W=>{W.button===0&&(T.current={x:W.clientX,y:W.clientY})}),onPointerMove:Qe(e.onPointerMove,W=>{if(!T.current)return;const ae=W.clientX-T.current.x,M=W.clientY-T.current.y,X=!!N.current,G=["left","right"].includes(A.swipeDirection),ge=["left","up"].includes(A.swipeDirection)?Math.min:Math.max,P=G?ge(0,ae):0,ie=G?0:ge(0,M),F=W.pointerType==="touch"?10:2,J={x:P,y:ie},se={originalEvent:W,delta:J};X?(N.current=J,sf(moe,g,se,{discrete:!1})):OR(J,A.swipeDirection,F)?(N.current=J,sf(poe,p,se,{discrete:!1}),W.target.setPointerCapture(W.pointerId)):(Math.abs(ae)>F||Math.abs(M)>F)&&(T.current=null)}),onPointerUp:Qe(e.onPointerUp,W=>{const ae=N.current,M=W.target;if(M.hasPointerCapture(W.pointerId)&&M.releasePointerCapture(W.pointerId),N.current=null,T.current=null,ae){const X=W.currentTarget,G={originalEvent:W,delta:ae};OR(ae,A.swipeDirection,A.swipeThreshold)?sf(yoe,_,G,{discrete:!0}):sf(goe,y,G,{discrete:!0}),X.addEventListener("click",ge=>ge.preventDefault(),{once:!0})}})})})}),A.viewport)})]}):null}),Eoe=e=>{const{__scopeToast:t,children:n,...r}=e,a=Zh(bu,t),[s,l]=E.useState(!1),[u,d]=E.useState(!1);return Aoe(()=>l(!0)),E.useEffect(()=>{const f=window.setTimeout(()=>d(!0),1e3);return()=>window.clearTimeout(f)},[]),u?null:v.jsx(vh,{asChild:!0,children:v.jsx(L0,{...r,children:s&&v.jsxs(v.Fragment,{children:[a.label," ",n]})})})},Soe="ToastTitle",d_=E.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return v.jsx(He.div,{...r,ref:t})});d_.displayName=Soe;var xoe="ToastDescription",f_=E.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return v.jsx(He.div,{...r,ref:t})});f_.displayName=xoe;var Wj="ToastAction",h_=E.forwardRef((e,t)=>{const{altText:n,...r}=e;return n.trim()?v.jsx(Yj,{altText:n,asChild:!0,children:v.jsx(Yh,{...r,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${Wj}\`. Expected non-empty \`string\`.`),null)});h_.displayName=Wj;var Zj="ToastClose",Yh=E.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e,a=boe(Zj,n);return v.jsx(Yj,{asChild:!0,children:v.jsx(He.button,{type:"button",...r,ref:t,onClick:Qe(e.onClick,a.onClose)})})});Yh.displayName=Zj;var Yj=E.forwardRef((e,t)=>{const{__scopeToast:n,altText:r,...a}=e;return v.jsx(He.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0,...a,ref:t})});function Xj(e){const t=[];return Array.from(e.childNodes).forEach(r=>{if(r.nodeType===r.TEXT_NODE&&r.textContent&&t.push(r.textContent),woe(r)){const a=r.ariaHidden||r.hidden||r.style.display==="none",s=r.dataset.radixToastAnnounceExclude==="";if(!a)if(s){const l=r.dataset.radixToastAnnounceAlt;l&&t.push(l)}else t.push(...Xj(r))}}),t}function sf(e,t,n,{discrete:r}){const a=n.originalEvent.currentTarget,s=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});t&&a.addEventListener(e,t,{once:!0}),r?q1(a,s):a.dispatchEvent(s)}var OR=(e,t,n=0)=>{const r=Math.abs(e.x),a=Math.abs(e.y),s=r>a;return t==="left"||t==="right"?s&&r>n:!s&&a>n};function Aoe(e=()=>{}){const t=Sr(e);ln(()=>{let n=0,r=0;return n=window.requestAnimationFrame(()=>r=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(n),window.cancelAnimationFrame(r)}},[t])}function woe(e){return e.nodeType===e.ELEMENT_NODE}function Toe(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 Cy(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}var Coe=l_,Qj=c_,Jj=u_,eL=d_,tL=f_,Roe=h_,nL=Yh;const koe=Object.freeze(Object.defineProperty({__proto__:null,Action:Roe,Close:nL,Description:tL,Provider:Coe,Root:Jj,Title:eL,Toast:u_,ToastAction:h_,ToastClose:Yh,ToastDescription:f_,ToastProvider:l_,ToastTitle:d_,ToastViewport:c_,Viewport:Qj,createToastScope:doe},Symbol.toStringTag,{value:"Module"})),Noe=koe,Ooe=({className:e,...t})=>v.jsx(Qj,{className:_e("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}),Ioe=fr("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"}}),Doe=({className:e,variant:t,...n})=>v.jsx(Jj,{className:_e(Ioe({variant:t}),e),...n}),joe=({className:e,...t})=>v.jsx(nL,{className:_e("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:v.jsx(po,{className:"size-5"})}),Loe=({className:e,...t})=>v.jsx(eL,{className:_e("text-sm font-semibold [&+div]:text-xs",e),...t}),Poe=({className:e,...t})=>v.jsx(tL,{className:_e("text-sm opacity-90",e),...t}),Moe=1,zoe=900*1e3;let Ry=0;const Boe=()=>(Ry=(Ry+1)%Number.MAX_SAFE_INTEGER,Ry.toString()),ky=new Map,IR=e=>{if(ky.has(e))return;const t=setTimeout(()=>{ky.delete(e),kc({type:"REMOVE_TOAST",toastId:e})},zoe);ky.set(e,t)},Voe=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,Moe)};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?IR(n):e.toasts.forEach(r=>{IR(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)}}},Tf=[];let Cf={toasts:[]};const kc=e=>{Cf=Voe(Cf,e),Tf.forEach(t=>{t(Cf)})},Uoe=({...e})=>{const t=Boe(),n=a=>kc({type:"UPDATE_TOAST",toast:{...a,id:t}}),r=()=>kc({type:"DISMISS_TOAST",toastId:t});return kc({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:a=>{a||r()}}}),{id:t,dismiss:r,update:n}},rL=()=>{const[e,t]=E.useState(Cf);return E.useEffect(()=>(Tf.push(t),()=>{const n=Tf.indexOf(t);n>-1&&Tf.splice(n,1)}),[e]),{...e,toast:Uoe,dismiss:n=>kc({type:"DISMISS_TOAST",toastId:n})}},Foe=()=>{const{toasts:e}=rL();return v.jsxs(Noe.Provider,{children:[e.map(({id:t,title:n,description:r,action:a,...s})=>v.jsxs(Doe,{...s,children:[v.jsxs("div",{className:"grid gap-1",children:[n&&v.jsx(Loe,{children:n}),r&&v.jsx(Poe,{children:r})]}),a,v.jsx(joe,{})]},t)),v.jsx(Ooe,{})]})};var $oe={};const Hoe={queries:{retry:1,refetchOnWindowFocus:!1,staleTime:0,gcTime:1e3*60*10},mutations:{retry:0}},DR=e=>e.split("_").join(" "),Goe=()=>{const{toast:e}=rL();return{onError:r=>{[(()=>{try{if(typeof r=="string")return JSON.parse(r)}catch{}return r})()].flat().forEach(s=>e({title:DR(($oe.NODE_ENV==="production"?s?.title:s?.code)??"Error"),description:s?.message??String(s??"An error occurred"),variant:"error"}))},onSuccess:r=>{r?.error&&e({title:DR(r.error.title??r.error.code??"Error"),description:r.error.message??r.error.code??"An error occurred",variant:"error"}),r?.message&&e({title:r.message,description:r.description,variant:"success"})}}},Koe=({children:e})=>{const{onError:t,onSuccess:n}=Goe(),r=new bO({onSuccess:n,onError:t,onSettled:(s,l,u,d,f)=>{f.meta?.invalidateQueries&&f.meta.invalidateQueries.forEach(p=>{a.invalidateQueries({queryKey:p})})}}),a=new u8({defaultOptions:Hoe,mutationCache:r});return v.jsx(d8,{client:a,children:e})},qoe=({children:e})=>v.jsx(f4,{features:U5,children:e}),Woe=({children:e})=>v.jsx(qoe,{children:v.jsxs(Koe,{children:[v.jsx(Foe,{}),e]})}),Zoe=({children:e})=>v.jsx(c2,{children:v.jsx(VU,{children:v.jsx(E1,{path:"*",element:e})})}),rb="dictionaryList",p_=e=>`dictionary_edition_${e}`,iL=e=>{const t=p_(e),{isOpen:n,open:r,close:a}=Wh(),{getEditedContentValue:s}=Ls(),{focusedContent:l,setFocusedContent:u}=da();return E.useEffect(()=>{l&&(l.keyPath?.length??0)>0&&r(t)},[l,r,t]),{isOpen:n(t),focusedContent:l,getEditedContentValue:s,close:()=>{a(t),u(d=>d?.dictionaryKey?{...d,keyPath:[]}:d)}}},Yoe=({locale:e,identifier:t,handleOnBack:n,isDarkMode:r})=>{const{modalTitle:a,openDictionaryEditor:s,noDictionaryFocused:l,focusedDictionaryNotFound:u}=Xc(ab),[d,f]=E.useState(!1),{focusedContent:p}=iL(t),{data:g}=DO(),y=E.useCallback(()=>{f(!1),n()},[n]),_=p?.dictionaryKey;if(!_)return v.jsx("span",{className:"mx-auto my-10 text-sm text-neutral",children:l});const S=tV(_,p.keyPath??[],g);return S?v.jsxs(v.Fragment,{children:[v.jsx(p0,{isOpen:d,onClose:()=>f(!1),hasCloseButton:!0,title:a.value,size:"xl",transparency:"lg",children:v.jsx("div",{className:"size-full px-3 pt-5",children:v.jsx(noe,{dictionary:S,onClickDictionaryList:y,isDarkMode:r,mode:["local","remote"],onDelete:()=>{f(!1),n()}})})}),v.jsxs("div",{className:"border-text/20 /20 mb-5 flex w-full border-b border-dashed px-3 pb-2",children:[v.jsx("h3",{className:"w-full text-center text-lg",children:S.title?S.title:S.key}),v.jsx(ot,{variant:"hoverable",color:"text",size:"icon-md",IconRight:N1,label:s.label.value,onClick:()=>f(!0)})]}),v.jsx(KW,{dictionary:S,locale:e,mode:["local","remote"]})]}):v.jsx("span",{className:"mx-auto my-10 text-sm text-neutral",children:u})},Xoe=({locale:e,dictionaryKey:t,isDarkMode:n})=>{const{backButtonText:r}=Xc(ab),a=p_(t),{focusedContent:s,close:l}=iL(t),{openDictionaryListDrawer:u}=Wh(f=>({openDictionaryListDrawer:()=>f.open(rb)})),d=()=>{l(),u()};return v.jsx(Hj,{identifier:a,backButton:{onBack:d,text:r.value},onClose:l,children:s&&v.jsx(Yoe,{focusedContent:s,locale:e,identifier:a,handleOnBack:d,isDarkMode:n})})},Qoe=({locale:e,isDarkMode:t})=>{const{focusedContent:n}=da(),r=n?.dictionaryKey;return r?v.jsx(Xoe,{locale:e,dictionaryKey:r,isDarkMode:t}):v.jsx(v.Fragment,{})},Joe=()=>{const{drawerTitle:e,buttonLabel:t}=Xc(PR),{close:n,open:r}=Wh(),{localeDictionaries:a}=ZR(),{editedContent:s}=xn(),{setFocusedContent:l}=da(),u=f=>{n(rb),l({dictionaryKey:f.key,dictionaryLocalId:f.localId}),r(p_(f.key))},d=f=>Object.keys(s??{}).includes(f);return v.jsx(Hj,{title:e.label.value,identifier:rb,children:Object.values(a).map(f=>v.jsx(ot,{label:t.label({dictionaryLocalId:f.localId}).value,onClick:()=>u(f),variant:"hoverable",color:"text",IconRight:Of,size:"md",isFullWidth:!0,children:d(f.key)?`✎ ${f.key}`:f.key},f.localId))})},aL=(...e)=>$1(gh(e)),ese=e=>{const{message:t}=Xc(MR);return v.jsx("div",{className:aL("bg-neutral/30 py-1 px-3 rounded-2xl font-bold text-text text-sm transition-opacity duration-100",e?.dictionaryKey?"opacity-100":"opacity-0"),children:e?.dictionaryKey?t({dictionaryKey:e.dictionaryKey}):""})},tse=({children:e})=>{const[t]=ia(Sn.INTLAYER_CURRENT_LOCALE,void 0,{receive:!0,emit:!1}),[n]=ia(Sn.INTLAYER_HOVERED_CONTENT_CHANGED,null),{data:r}=DO(),{setLocaleDictionaries:a}=dh();return E.useEffect(()=>{if(!r)return;const s=Object.fromEntries(Object.values(r).flat().map(l=>[l.localId,l]));a(s)},[r]),v.jsxs("div",{className:"bg-card relative size-full p-3",children:[e,v.jsx("div",{className:"absolute bottom-2 right-2",children:v.jsx(ese,{...n})}),v.jsx(Qoe,{locale:t}),v.jsx(Joe,{})]})},nse=()=>{const[e,t]=E.useState();return E.useEffect(()=>{fetch("/api/config").then(n=>n.json()).then(n=>t(n.data))},[]),e},rse=({children:e,iframeRef:t})=>{const n=nse(),r=n?.editor.applicationURL?n?.editor.applicationURL:"*",a=n?.editor.editorURL??"*";return n?v.jsx(OV,{postMessage:s=>{window?.postMessage(s,a),t.current?.contentWindow?.postMessage(s,r)},allowedOrigins:[r,a],mode:"editor",configuration:n,children:e}):v.jsx(Ts,{})},ise=()=>{const{editedContent:e,setEditedContentState:t}=xn(),n=()=>{const r=localStorage?.getItem("INTLAYER_EDITED_CONTENT_CHANGED");if(r)try{const a=JSON.parse(r);t(a)}catch(a){console.error(a)}};return E.useEffect(()=>{typeof e>"u"||localStorage?.setItem("INTLAYER_EDITED_CONTENT_CHANGED",JSON.stringify(e))},[e]),E.useEffect(()=>{typeof e<"u"||n()},[]),n},ase=()=>{const{title:e,description:t,documentationLink:n}=Xc(zR);return v.jsxs("div",{className:"flex flex-col gap-6",children:[v.jsx(f0,{className:"mb-8",children:e}),v.jsx("strong",{className:"text-neutral block",children:t}),v.jsx(bb,{label:n.label.value,href:"https://intlayer.org/doc/concept/configuration#editor-configuration",color:"text",children:n.text})]})},ose=({iframeRef:e,applicationPath:t})=>{const{editor:n}=Gr(),r=()=>a(n.enabled),a=TV();JR(r),ise(),DV();const[s,l]=E.useState(!0),[u]=IV(void 0,{receive:!0,emit:!1});return E.useEffect(()=>{typeof u=="string"&&window.history.replaceState({},"",u)},[u]),n.applicationURL?v.jsxs("div",{className:"size-full overflow-hidden rounded-lg",children:[v.jsx(Ts,{isLoading:s}),v.jsx("iframe",{src:`${n.applicationURL}${t}`,title:"Intlayer Application",className:aL("size-full",s&&"hidden"),ref:e,onLoad:()=>{l(!1),r()}})]}):v.jsx("div",{className:"flex size-full items-center justify-center",children:v.jsx(Tr,{className:"flex max-w-xl flex-col gap-4 p-6",children:v.jsx(ase,{})})})},sse=()=>{const e=E.useRef(null),t=fa();return v.jsx(rse,{iframeRef:e,children:v.jsx(zV,{disableEditor:!0,children:v.jsx(tse,{children:v.jsx(ose,{iframeRef:e,applicationPath:t.pathname})})})})},lse=()=>v.jsx(Zoe,{children:v.jsx(Woe,{children:v.jsx(sse,{})})});CM.createRoot(document.getElementById("root")).render(v.jsx(E.StrictMode,{children:v.jsx(lse,{})}));
|