intlayer-editor 6.1.4 → 6.1.5

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,351 +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 LM(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 db(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var mg={exports:{}},Xl={};/**
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 dA;function jM(){if(dA)return Xl;dA=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 Xl.Fragment=t,Xl.jsx=n,Xl.jsxs=n,Xl}var fA;function PM(){return fA||(fA=1,mg.exports=jM()),mg.exports}var y=PM(),gg={exports:{}},Fe={};/**
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 hA;function MM(){if(hA)return Fe;hA=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"),m=Symbol.iterator;function v(P){return P===null||typeof P!="object"?null:(P=m&&P[m]||P["@@iterator"],typeof P=="function"?P:null)}var _={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},x=Object.assign,A={};function w(P,ne,$){this.props=P,this.context=ne,this.refs=A,this.updater=$||_}w.prototype.isReactComponent={},w.prototype.setState=function(P,ne){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,ne,"setState")},w.prototype.forceUpdate=function(P){this.updater.enqueueForceUpdate(this,P,"forceUpdate")};function N(){}N.prototype=w.prototype;function E(P,ne,$){this.props=P,this.context=ne,this.refs=A,this.updater=$||_}var T=E.prototype=new N;T.constructor=E,x(T,w.prototype),T.isPureReactComponent=!0;var R=Array.isArray,C={H:null,A:null,T:null,S:null,V:null},I=Object.prototype.hasOwnProperty;function D(P,ne,$,re,ue,pe){return $=pe.ref,{$$typeof:e,type:P,key:ne,ref:$!==void 0?$:null,props:pe}}function L(P,ne){return D(P.type,ne,void 0,void 0,void 0,P.props)}function U(P){return typeof P=="object"&&P!==null&&P.$$typeof===e}function K(P){var ne={"=":"=0",":":"=2"};return"$"+P.replace(/[=:]/g,function($){return ne[$]})}var W=/\/+/g;function J(P,ne){return typeof P=="object"&&P!==null&&P.key!=null?K(""+P.key):ne.toString(36)}function le(){}function Z(P){switch(P.status){case"fulfilled":return P.value;case"rejected":throw P.reason;default:switch(typeof P.status=="string"?P.then(le,le):(P.status="pending",P.then(function(ne){P.status==="pending"&&(P.status="fulfilled",P.value=ne)},function(ne){P.status==="pending"&&(P.status="rejected",P.reason=ne)})),P.status){case"fulfilled":return P.value;case"rejected":throw P.reason}}throw P}function ae(P,ne,$,re,ue){var pe=typeof P;(pe==="undefined"||pe==="boolean")&&(P=null);var be=!1;if(P===null)be=!0;else switch(pe){case"bigint":case"string":case"number":be=!0;break;case"object":switch(P.$$typeof){case e:case t:be=!0;break;case p:return be=P._init,ae(be(P._payload),ne,$,re,ue)}}if(be)return ue=ue(P),be=re===""?"."+J(P,0):re,R(ue)?($="",be!=null&&($=be.replace(W,"$&/")+"/"),ae(ue,ne,$,"",function(je){return je})):ue!=null&&(U(ue)&&(ue=L(ue,$+(ue.key==null||P&&P.key===ue.key?"":(""+ue.key).replace(W,"$&/")+"/")+be)),ne.push(ue)),1;be=0;var fe=re===""?".":re+":";if(R(P))for(var xe=0;xe<P.length;xe++)re=P[xe],pe=fe+J(re,xe),be+=ae(re,ne,$,pe,ue);else if(xe=v(P),typeof xe=="function")for(P=xe.call(P),xe=0;!(re=P.next()).done;)re=re.value,pe=fe+J(re,xe++),be+=ae(re,ne,$,pe,ue);else if(pe==="object"){if(typeof P.then=="function")return ae(Z(P),ne,$,re,ue);throw ne=String(P),Error("Objects are not valid as a React child (found: "+(ne==="[object Object]"?"object with keys {"+Object.keys(P).join(", ")+"}":ne)+"). If you meant to render a collection of children, use an array instead.")}return be}function z(P,ne,$){if(P==null)return P;var re=[],ue=0;return ae(P,re,"","",function(pe){return ne.call($,pe,ue++)}),re}function X(P){if(P._status===-1){var ne=P._result;ne=ne(),ne.then(function($){(P._status===0||P._status===-1)&&(P._status=1,P._result=$)},function($){(P._status===0||P._status===-1)&&(P._status=2,P._result=$)}),P._status===-1&&(P._status=0,P._result=ne)}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 ne=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(ne))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",P);return}console.error(P)};function me(){}return Fe.Children={map:z,forEach:function(P,ne,$){z(P,function(){ne.apply(this,arguments)},$)},count:function(P){var ne=0;return z(P,function(){ne++}),ne},toArray:function(P){return z(P,function(ne){return ne})||[]},only:function(P){if(!U(P))throw Error("React.Children.only expected to receive a single React element child.");return P}},Fe.Component=w,Fe.Fragment=n,Fe.Profiler=a,Fe.PureComponent=E,Fe.StrictMode=r,Fe.Suspense=d,Fe.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=C,Fe.__COMPILER_RUNTIME={__proto__:null,c:function(P){return C.H.useMemoCache(P)}},Fe.cache=function(P){return function(){return P.apply(null,arguments)}},Fe.cloneElement=function(P,ne,$){if(P==null)throw Error("The argument must be a React element, but you passed "+P+".");var re=x({},P.props),ue=P.key,pe=void 0;if(ne!=null)for(be in ne.ref!==void 0&&(pe=void 0),ne.key!==void 0&&(ue=""+ne.key),ne)!I.call(ne,be)||be==="key"||be==="__self"||be==="__source"||be==="ref"&&ne.ref===void 0||(re[be]=ne[be]);var be=arguments.length-2;if(be===1)re.children=$;else if(1<be){for(var fe=Array(be),xe=0;xe<be;xe++)fe[xe]=arguments[xe+2];re.children=fe}return D(P.type,ue,void 0,void 0,pe,re)},Fe.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},Fe.createElement=function(P,ne,$){var re,ue={},pe=null;if(ne!=null)for(re in ne.key!==void 0&&(pe=""+ne.key),ne)I.call(ne,re)&&re!=="key"&&re!=="__self"&&re!=="__source"&&(ue[re]=ne[re]);var be=arguments.length-2;if(be===1)ue.children=$;else if(1<be){for(var fe=Array(be),xe=0;xe<be;xe++)fe[xe]=arguments[xe+2];ue.children=fe}if(P&&P.defaultProps)for(re in be=P.defaultProps,be)ue[re]===void 0&&(ue[re]=be[re]);return D(P,pe,void 0,void 0,null,ue)},Fe.createRef=function(){return{current:null}},Fe.forwardRef=function(P){return{$$typeof:u,render:P}},Fe.isValidElement=U,Fe.lazy=function(P){return{$$typeof:p,_payload:{_status:-1,_result:P},_init:X}},Fe.memo=function(P,ne){return{$$typeof:f,type:P,compare:ne===void 0?null:ne}},Fe.startTransition=function(P){var ne=C.T,$={};C.T=$;try{var re=P(),ue=C.S;ue!==null&&ue($,re),typeof re=="object"&&re!==null&&typeof re.then=="function"&&re.then(me,G)}catch(pe){G(pe)}finally{C.T=ne}},Fe.unstable_useCacheRefresh=function(){return C.H.useCacheRefresh()},Fe.use=function(P){return C.H.use(P)},Fe.useActionState=function(P,ne,$){return C.H.useActionState(P,ne,$)},Fe.useCallback=function(P,ne){return C.H.useCallback(P,ne)},Fe.useContext=function(P){return C.H.useContext(P)},Fe.useDebugValue=function(){},Fe.useDeferredValue=function(P,ne){return C.H.useDeferredValue(P,ne)},Fe.useEffect=function(P,ne,$){var re=C.H;if(typeof $=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return re.useEffect(P,ne)},Fe.useId=function(){return C.H.useId()},Fe.useImperativeHandle=function(P,ne,$){return C.H.useImperativeHandle(P,ne,$)},Fe.useInsertionEffect=function(P,ne){return C.H.useInsertionEffect(P,ne)},Fe.useLayoutEffect=function(P,ne){return C.H.useLayoutEffect(P,ne)},Fe.useMemo=function(P,ne){return C.H.useMemo(P,ne)},Fe.useOptimistic=function(P,ne){return C.H.useOptimistic(P,ne)},Fe.useReducer=function(P,ne,$){return C.H.useReducer(P,ne,$)},Fe.useRef=function(P){return C.H.useRef(P)},Fe.useState=function(P){return C.H.useState(P)},Fe.useSyncExternalStore=function(P,ne,$){return C.H.useSyncExternalStore(P,ne,$)},Fe.useTransition=function(){return C.H.useTransition()},Fe.version="19.1.1",Fe}var pA;function Qc(){return pA||(pA=1,gg.exports=MM()),gg.exports}var S=Qc();const Oe=db(S),$R=LM({__proto__:null,default:Oe},[S]);var yg={exports:{}},Ql={},vg={exports:{}},bg={};/**
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 mA;function zM(){return mA||(mA=1,(function(e){function t(z,X){var G=z.length;z.push(X);e:for(;0<G;){var me=G-1>>>1,P=z[me];if(0<a(P,X))z[me]=X,z[G]=P,G=me;else break e}}function n(z){return z.length===0?null:z[0]}function r(z){if(z.length===0)return null;var X=z[0],G=z.pop();if(G!==X){z[0]=G;e:for(var me=0,P=z.length,ne=P>>>1;me<ne;){var $=2*(me+1)-1,re=z[$],ue=$+1,pe=z[ue];if(0>a(re,G))ue<P&&0>a(pe,re)?(z[me]=pe,z[ue]=G,me=ue):(z[me]=re,z[$]=G,me=$);else if(ue<P&&0>a(pe,G))z[me]=pe,z[ue]=G,me=ue;else break e}}return X}function a(z,X){var G=z.sortIndex-X.sortIndex;return G!==0?G:z.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,m=null,v=3,_=!1,x=!1,A=!1,w=!1,N=typeof setTimeout=="function"?setTimeout:null,E=typeof clearTimeout=="function"?clearTimeout:null,T=typeof setImmediate<"u"?setImmediate:null;function R(z){for(var X=n(f);X!==null;){if(X.callback===null)r(f);else if(X.startTime<=z)r(f),X.sortIndex=X.expirationTime,t(d,X);else break;X=n(f)}}function C(z){if(A=!1,R(z),!x)if(n(d)!==null)x=!0,I||(I=!0,J());else{var X=n(f);X!==null&&ae(C,X.startTime-z)}}var I=!1,D=-1,L=5,U=-1;function K(){return w?!0:!(e.unstable_now()-U<L)}function W(){if(w=!1,I){var z=e.unstable_now();U=z;var X=!0;try{e:{x=!1,A&&(A=!1,E(D),D=-1),_=!0;var G=v;try{t:{for(R(z),m=n(d);m!==null&&!(m.expirationTime>z&&K());){var me=m.callback;if(typeof me=="function"){m.callback=null,v=m.priorityLevel;var P=me(m.expirationTime<=z);if(z=e.unstable_now(),typeof P=="function"){m.callback=P,R(z),X=!0;break t}m===n(d)&&r(d),R(z)}else r(d);m=n(d)}if(m!==null)X=!0;else{var ne=n(f);ne!==null&&ae(C,ne.startTime-z),X=!1}}break e}finally{m=null,v=G,_=!1}X=void 0}}finally{X?J():I=!1}}}var J;if(typeof T=="function")J=function(){T(W)};else if(typeof MessageChannel<"u"){var le=new MessageChannel,Z=le.port2;le.port1.onmessage=W,J=function(){Z.postMessage(null)}}else J=function(){N(W,0)};function ae(z,X){D=N(function(){z(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(z){z.callback=null},e.unstable_forceFrameRate=function(z){0>z||125<z?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):L=0<z?Math.floor(1e3/z):5},e.unstable_getCurrentPriorityLevel=function(){return v},e.unstable_next=function(z){switch(v){case 1:case 2:case 3:var X=3;break;default:X=v}var G=v;v=X;try{return z()}finally{v=G}},e.unstable_requestPaint=function(){w=!0},e.unstable_runWithPriority=function(z,X){switch(z){case 1:case 2:case 3:case 4:case 5:break;default:z=3}var G=v;v=z;try{return X()}finally{v=G}},e.unstable_scheduleCallback=function(z,X,G){var me=e.unstable_now();switch(typeof G=="object"&&G!==null?(G=G.delay,G=typeof G=="number"&&0<G?me+G:me):G=me,z){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,z={id:p++,callback:X,priorityLevel:z,startTime:G,expirationTime:P,sortIndex:-1},G>me?(z.sortIndex=G,t(f,z),n(d)===null&&z===n(f)&&(A?(E(D),D=-1):A=!0,ae(C,G-me))):(z.sortIndex=P,t(d,z),x||_||(x=!0,I||(I=!0,J()))),z},e.unstable_shouldYield=K,e.unstable_wrapCallback=function(z){var X=v;return function(){var G=v;v=X;try{return z.apply(this,arguments)}finally{v=G}}}})(bg)),bg}var gA;function BM(){return gA||(gA=1,vg.exports=zM()),vg.exports}var _g={exports:{}},mn={};/**
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 yA;function VM(){if(yA)return mn;yA=1;var e=Qc();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 m=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:a,key:m==null?null:""+m,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 mn.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,mn.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)},mn.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()}},mn.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))},mn.prefetchDNS=function(d){typeof d=="string"&&r.d.D(d)},mn.preinit=function(d,f){if(typeof d=="string"&&f&&typeof f.as=="string"){var p=f.as,m=u(p,f.crossOrigin),v=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:m,integrity:v,fetchPriority:_}):p==="script"&&r.d.X(d,{crossOrigin:m,integrity:v,fetchPriority:_,nonce:typeof f.nonce=="string"?f.nonce:void 0})}},mn.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)},mn.preload=function(d,f){if(typeof d=="string"&&typeof f=="object"&&f!==null&&typeof f.as=="string"){var p=f.as,m=u(p,f.crossOrigin);r.d.L(d,p,{crossOrigin:m,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})}},mn.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)},mn.requestFormReset=function(d){r.d.r(d)},mn.unstable_batchedUpdates=function(d,f){return d(f)},mn.useFormState=function(d,f,p){return l.H.useFormState(d,f,p)},mn.useFormStatus=function(){return l.H.useHostTransitionStatus()},mn.version="19.1.1",mn}var vA;function KR(){if(vA)return _g.exports;vA=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(),_g.exports=VM(),_g.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 bA;function UM(){if(bA)return Ql;bA=1;var e=BM(),t=Qc(),n=KR();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 g=c.return;if(g===null)break;var b=g.alternate;if(b===null){if(h=g.return,h!==null){c=h;continue}break}if(g.child===b.child){for(b=g.child;b;){if(b===c)return u(g),i;if(b===h)return u(g),o;b=b.sibling}throw Error(r(188))}if(c.return!==h.return)c=g,h=b;else{for(var k=!1,O=g.child;O;){if(O===c){k=!0,c=g,h=b;break}if(O===h){k=!0,h=g,c=b;break}O=O.sibling}if(!k){for(O=b.child;O;){if(O===c){k=!0,c=b,h=g;break}if(O===h){k=!0,h=b,c=g;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,m=Symbol.for("react.element"),v=Symbol.for("react.transitional.element"),_=Symbol.for("react.portal"),x=Symbol.for("react.fragment"),A=Symbol.for("react.strict_mode"),w=Symbol.for("react.profiler"),N=Symbol.for("react.provider"),E=Symbol.for("react.consumer"),T=Symbol.for("react.context"),R=Symbol.for("react.forward_ref"),C=Symbol.for("react.suspense"),I=Symbol.for("react.suspense_list"),D=Symbol.for("react.memo"),L=Symbol.for("react.lazy"),U=Symbol.for("react.activity"),K=Symbol.for("react.memo_cache_sentinel"),W=Symbol.iterator;function J(i){return i===null||typeof i!="object"?null:(i=W&&i[W]||i["@@iterator"],typeof i=="function"?i:null)}var le=Symbol.for("react.client.reference");function Z(i){if(i==null)return null;if(typeof i=="function")return i.$$typeof===le?null:i.displayName||i.name||null;if(typeof i=="string")return i;switch(i){case x:return"Fragment";case w:return"Profiler";case A:return"StrictMode";case C:return"Suspense";case I:return"SuspenseList";case U:return"Activity"}if(typeof i=="object")switch(i.$$typeof){case _:return"Portal";case T:return(i.displayName||"Context")+".Provider";case E:return(i._context.displayName||"Context")+".Consumer";case R: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:Z(i.type)||"Memo";case L:o=i._payload,i=i._init;try{return Z(i(o))}catch{}}return null}var ae=Array.isArray,z=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},me=[],P=-1;function ne(i){return{current:i}}function $(i){0>P||(i.current=me[P],me[P]=null,P--)}function re(i,o){P++,me[P]=i.current,i.current=o}var ue=ne(null),pe=ne(null),be=ne(null),fe=ne(null);function xe(i,o){switch(re(be,o),re(pe,i),re(ue,null),o.nodeType){case 9:case 11:i=(i=o.documentElement)&&(i=i.namespaceURI)?Bx(i):0;break;default:if(i=o.tagName,o=o.namespaceURI)o=Bx(o),i=Vx(o,i);else switch(i){case"svg":i=1;break;case"math":i=2;break;default:i=0}}$(ue),re(ue,i)}function je(){$(ue),$(pe),$(be)}function Ve(i){i.memoizedState!==null&&re(fe,i);var o=ue.current,c=Vx(o,i.type);o!==c&&(re(pe,i),re(ue,c))}function Xe(i){pe.current===i&&($(ue),$(pe)),fe.current===i&&($(fe),Kl._currentValue=G)}var nt=Object.prototype.hasOwnProperty,Xt=e.unstable_scheduleCallback,Cn=e.unstable_cancelCallback,Ci=e.unstable_shouldYield,Ta=e.unstable_requestPaint,fn=e.unstable_now,E0=e.unstable_getCurrentPriorityLevel,tl=e.unstable_ImmediatePriority,V=e.unstable_UserBlockingPriority,ee=e.unstable_NormalPriority,oe=e.unstable_LowPriority,Se=e.unstable_IdlePriority,_e=e.log,ye=e.unstable_setDisableYieldValue,Ce=null,Ue=null;function Qe(i){if(typeof _e=="function"&&ye(i),Ue&&typeof Ue.setStrictMode=="function")try{Ue.setStrictMode(Ce,i)}catch{}}var gt=Math.clz32?Math.clz32:rp,_o=Math.log,Nr=Math.LN2;function rp(i){return i>>>=0,i===0?32:31-(_o(i)/Nr|0)|0}var Ri=256,ki=4194304;function Jr(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 wa(i,o,c){var h=i.pendingLanes;if(h===0)return 0;var g=0,b=i.suspendedLanes,k=i.pingedLanes;i=i.warmLanes;var O=h&134217727;return O!==0?(h=O&~b,h!==0?g=Jr(h):(k&=O,k!==0?g=Jr(k):c||(c=O&~i,c!==0&&(g=Jr(c))))):(O=h&~b,O!==0?g=Jr(O):k!==0?g=Jr(k):c||(c=h&~i,c!==0&&(g=Jr(c)))),g===0?0:o!==0&&o!==g&&(o&b)===0&&(b=g&-g,c=o&-o,b>=c||b===32&&(c&4194048)!==0)?o:g}function Ca(i,o){return(i.pendingLanes&~(i.suspendedLanes&~i.pingedLanes)&o)===0}function Cu(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 S0(){var i=Ri;return Ri<<=1,(Ri&4194048)===0&&(Ri=256),i}function x0(){var i=ki;return ki<<=1,(ki&62914560)===0&&(ki=4194304),i}function ip(i){for(var o=[],c=0;31>c;c++)o.push(i);return o}function nl(i,o){i.pendingLanes|=o,o!==268435456&&(i.suspendedLanes=0,i.pingedLanes=0,i.warmLanes=0)}function Sj(i,o,c,h,g,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,M=i.expirationTimes,Q=i.hiddenUpdates;for(c=k&~c;0<c;){var se=31-gt(c),de=1<<se;O[se]=0,M[se]=-1;var te=Q[se];if(te!==null)for(Q[se]=null,se=0;se<te.length;se++){var ie=te[se];ie!==null&&(ie.lane&=-536870913)}c&=~de}h!==0&&A0(i,h,0),b!==0&&g===0&&i.tag!==0&&(i.suspendedLanes|=b&~(k&~o))}function A0(i,o,c){i.pendingLanes|=o,i.suspendedLanes&=~o;var h=31-gt(o);i.entangledLanes|=o,i.entanglements[h]=i.entanglements[h]|1073741824|c&4194090}function T0(i,o){var c=i.entangledLanes|=o;for(i=i.entanglements;c;){var h=31-gt(c),g=1<<h;g&o|i[h]&o&&(i[h]|=o),c&=~g}}function ap(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 op(i){return i&=-i,2<i?8<i?(i&134217727)!==0?32:268435456:8:2}function w0(){var i=X.p;return i!==0?i:(i=window.event,i===void 0?32:aA(i.type))}function xj(i,o){var c=X.p;try{return X.p=i,o()}finally{X.p=c}}var Ni=Math.random().toString(36).slice(2),hn="__reactFiber$"+Ni,Rn="__reactProps$"+Ni,Eo="__reactContainer$"+Ni,sp="__reactEvents$"+Ni,Aj="__reactListeners$"+Ni,Tj="__reactHandles$"+Ni,C0="__reactResources$"+Ni,rl="__reactMarker$"+Ni;function lp(i){delete i[hn],delete i[Rn],delete i[sp],delete i[Aj],delete i[Tj]}function So(i){var o=i[hn];if(o)return o;for(var c=i.parentNode;c;){if(o=c[Eo]||c[hn]){if(c=o.alternate,o.child!==null||c!==null&&c.child!==null)for(i=Gx(i);i!==null;){if(c=i[hn])return c;i=Gx(i)}return o}i=c,c=i.parentNode}return null}function xo(i){if(i=i[hn]||i[Eo]){var o=i.tag;if(o===5||o===6||o===13||o===26||o===27||o===3)return i}return null}function il(i){var o=i.tag;if(o===5||o===26||o===27||o===6)return i.stateNode;throw Error(r(33))}function Ao(i){var o=i[C0];return o||(o=i[C0]={hoistableStyles:new Map,hoistableScripts:new Map}),o}function Qt(i){i[rl]=!0}var R0=new Set,k0={};function Ra(i,o){To(i,o),To(i+"Capture",o)}function To(i,o){for(k0[i]=o,i=0;i<o.length;i++)R0.add(o[i])}var wj=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]*$"),N0={},I0={};function Cj(i){return nt.call(I0,i)?!0:nt.call(N0,i)?!1:wj.test(i)?I0[i]=!0:(N0[i]=!0,!1)}function Ru(i,o,c){if(Cj(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 ku(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 ei(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 cp,O0;function wo(i){if(cp===void 0)try{throw Error()}catch(c){var o=c.stack.trim().match(/\n( *(at )?)/);cp=o&&o[1]||"",O0=-1<c.stack.indexOf(`
43
- at`)?" (<anonymous>)":-1<c.stack.indexOf("@")?"@unknown:0:0":""}return`
44
- `+cp+i+O0}var up=!1;function dp(i,o){if(!i||up)return"";up=!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(ie){var te=ie}Reflect.construct(i,[],de)}else{try{de.call()}catch(ie){te=ie}i.call(de.prototype)}}else{try{throw Error()}catch(ie){te=ie}(de=i())&&typeof de.catch=="function"&&de.catch(function(){})}}catch(ie){if(ie&&te&&typeof ie.stack=="string")return[ie.stack,te.stack]}return[null,null]}};h.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var g=Object.getOwnPropertyDescriptor(h.DetermineComponentFrameRoot,"name");g&&g.configurable&&Object.defineProperty(h.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var b=h.DetermineComponentFrameRoot(),k=b[0],O=b[1];if(k&&O){var M=k.split(`
45
- `),Q=O.split(`
46
- `);for(g=h=0;h<M.length&&!M[h].includes("DetermineComponentFrameRoot");)h++;for(;g<Q.length&&!Q[g].includes("DetermineComponentFrameRoot");)g++;if(h===M.length||g===Q.length)for(h=M.length-1,g=Q.length-1;1<=h&&0<=g&&M[h]!==Q[g];)g--;for(;1<=h&&0<=g;h--,g--)if(M[h]!==Q[g]){if(h!==1||g!==1)do if(h--,g--,0>g||M[h]!==Q[g]){var se=`
47
- `+M[h].replace(" at new "," at ");return i.displayName&&se.includes("<anonymous>")&&(se=se.replace("<anonymous>",i.displayName)),se}while(1<=h&&0<=g);break}}}finally{up=!1,Error.prepareStackTrace=c}return(c=i?i.displayName||i.name:"")?wo(c):""}function Rj(i){switch(i.tag){case 26:case 27:case 5:return wo(i.type);case 16:return wo("Lazy");case 13:return wo("Suspense");case 19:return wo("SuspenseList");case 0:case 15:return dp(i.type,!1);case 11:return dp(i.type.render,!1);case 1:return dp(i.type,!0);case 31:return wo("Activity");default:return""}}function D0(i){try{var o="";do o+=Rj(i),i=i.return;while(i);return o}catch(c){return`
48
- Error generating stack: `+c.message+`
49
- `+c.stack}}function Qn(i){switch(typeof i){case"bigint":case"boolean":case"number":case"string":case"undefined":return i;case"object":return i;default:return""}}function L0(i){var o=i.type;return(i=i.nodeName)&&i.toLowerCase()==="input"&&(o==="checkbox"||o==="radio")}function kj(i){var o=L0(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 g=c.get,b=c.set;return Object.defineProperty(i,o,{configurable:!0,get:function(){return g.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 Nu(i){i._valueTracker||(i._valueTracker=kj(i))}function j0(i){if(!i)return!1;var o=i._valueTracker;if(!o)return!0;var c=o.getValue(),h="";return i&&(h=L0(i)?i.checked?"true":"false":i.value),i=h,i!==c?(o.setValue(i),!0):!1}function Iu(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 Nj=/[\n"\\]/g;function Jn(i){return i.replace(Nj,function(o){return"\\"+o.charCodeAt(0).toString(16)+" "})}function fp(i,o,c,h,g,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=""+Qn(o)):i.value!==""+Qn(o)&&(i.value=""+Qn(o)):k!=="submit"&&k!=="reset"||i.removeAttribute("value"),o!=null?hp(i,k,Qn(o)):c!=null?hp(i,k,Qn(c)):h!=null&&i.removeAttribute("value"),g==null&&b!=null&&(i.defaultChecked=!!b),g!=null&&(i.checked=g&&typeof g!="function"&&typeof g!="symbol"),O!=null&&typeof O!="function"&&typeof O!="symbol"&&typeof O!="boolean"?i.name=""+Qn(O):i.removeAttribute("name")}function P0(i,o,c,h,g,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?""+Qn(c):"",o=o!=null?""+Qn(o):c,O||o===i.value||(i.value=o),i.defaultValue=o}h=h??g,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 hp(i,o,c){o==="number"&&Iu(i.ownerDocument)===i||i.defaultValue===""+c||(i.defaultValue=""+c)}function Co(i,o,c,h){if(i=i.options,o){o={};for(var g=0;g<c.length;g++)o["$"+c[g]]=!0;for(c=0;c<i.length;c++)g=o.hasOwnProperty("$"+i[c].value),i[c].selected!==g&&(i[c].selected=g),g&&h&&(i[c].defaultSelected=!0)}else{for(c=""+Qn(c),o=null,g=0;g<i.length;g++){if(i[g].value===c){i[g].selected=!0,h&&(i[g].defaultSelected=!0);return}o!==null||i[g].disabled||(o=i[g])}o!==null&&(o.selected=!0)}}function M0(i,o,c){if(o!=null&&(o=""+Qn(o),o!==i.value&&(i.value=o),c==null)){i.defaultValue!==o&&(i.defaultValue=o);return}i.defaultValue=c!=null?""+Qn(c):""}function z0(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=Qn(o),i.defaultValue=c,h=i.textContent,h===c&&h!==""&&h!==null&&(i.value=h)}function Ro(i,o){if(o){var c=i.firstChild;if(c&&c===i.lastChild&&c.nodeType===3){c.nodeValue=o;return}}i.textContent=o}var Ij=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 B0(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||Ij.has(o)?o==="float"?i.cssFloat=c:i[o]=(""+c).trim():i[o]=c+"px"}function V0(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 g in o)h=o[g],o.hasOwnProperty(g)&&c[g]!==h&&B0(i,g,h)}else for(var b in o)o.hasOwnProperty(b)&&B0(i,b,o[b])}function pp(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 Oj=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"]]),Dj=/^[\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 Ou(i){return Dj.test(""+i)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":i}var mp=null;function gp(i){return i=i.target||i.srcElement||window,i.correspondingUseElement&&(i=i.correspondingUseElement),i.nodeType===3?i.parentNode:i}var ko=null,No=null;function U0(i){var o=xo(i);if(o&&(i=o.stateNode)){var c=i[Rn]||null;e:switch(i=o.stateNode,o.type){case"input":if(fp(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="'+Jn(""+o)+'"][type="radio"]'),o=0;o<c.length;o++){var h=c[o];if(h!==i&&h.form===i.form){var g=h[Rn]||null;if(!g)throw Error(r(90));fp(h,g.value,g.defaultValue,g.defaultValue,g.checked,g.defaultChecked,g.type,g.name)}}for(o=0;o<c.length;o++)h=c[o],h.form===i.form&&j0(h)}break e;case"textarea":M0(i,c.value,c.defaultValue);break e;case"select":o=c.value,o!=null&&Co(i,!!c.multiple,o,!1)}}}var yp=!1;function F0(i,o,c){if(yp)return i(o,c);yp=!0;try{var h=i(o);return h}finally{if(yp=!1,(ko!==null||No!==null)&&(yd(),ko&&(o=ko,i=No,No=ko=null,U0(o),i)))for(o=0;o<i.length;o++)U0(i[o])}}function al(i,o){var c=i.stateNode;if(c===null)return null;var h=c[Rn]||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 ti=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),vp=!1;if(ti)try{var ol={};Object.defineProperty(ol,"passive",{get:function(){vp=!0}}),window.addEventListener("test",ol,ol),window.removeEventListener("test",ol,ol)}catch{vp=!1}var Ii=null,bp=null,Du=null;function H0(){if(Du)return Du;var i,o=bp,c=o.length,h,g="value"in Ii?Ii.value:Ii.textContent,b=g.length;for(i=0;i<c&&o[i]===g[i];i++);var k=c-i;for(h=1;h<=k&&o[c-h]===g[b-h];h++);return Du=g.slice(i,1<h?1-h:void 0)}function Lu(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 ju(){return!0}function G0(){return!1}function kn(i){function o(c,h,g,b,k){this._reactName=c,this._targetInst=g,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)?ju:G0,this.isPropagationStopped=G0,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=ju)},stopPropagation:function(){var c=this.nativeEvent;c&&(c.stopPropagation?c.stopPropagation():typeof c.cancelBubble!="unknown"&&(c.cancelBubble=!0),this.isPropagationStopped=ju)},persist:function(){},isPersistent:ju}),o}var ka={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(i){return i.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Pu=kn(ka),sl=p({},ka,{view:0,detail:0}),Lj=kn(sl),_p,Ep,ll,Mu=p({},sl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:xp,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!==ll&&(ll&&i.type==="mousemove"?(_p=i.screenX-ll.screenX,Ep=i.screenY-ll.screenY):Ep=_p=0,ll=i),_p)},movementY:function(i){return"movementY"in i?i.movementY:Ep}}),$0=kn(Mu),jj=p({},Mu,{dataTransfer:0}),Pj=kn(jj),Mj=p({},sl,{relatedTarget:0}),Sp=kn(Mj),zj=p({},ka,{animationName:0,elapsedTime:0,pseudoElement:0}),Bj=kn(zj),Vj=p({},ka,{clipboardData:function(i){return"clipboardData"in i?i.clipboardData:window.clipboardData}}),Uj=kn(Vj),Fj=p({},ka,{data:0}),K0=kn(Fj),Hj={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Gj={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"},$j={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Kj(i){var o=this.nativeEvent;return o.getModifierState?o.getModifierState(i):(i=$j[i])?!!o[i]:!1}function xp(){return Kj}var qj=p({},sl,{key:function(i){if(i.key){var o=Hj[i.key]||i.key;if(o!=="Unidentified")return o}return i.type==="keypress"?(i=Lu(i),i===13?"Enter":String.fromCharCode(i)):i.type==="keydown"||i.type==="keyup"?Gj[i.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:xp,charCode:function(i){return i.type==="keypress"?Lu(i):0},keyCode:function(i){return i.type==="keydown"||i.type==="keyup"?i.keyCode:0},which:function(i){return i.type==="keypress"?Lu(i):i.type==="keydown"||i.type==="keyup"?i.keyCode:0}}),Wj=kn(qj),Zj=p({},Mu,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),q0=kn(Zj),Yj=p({},sl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:xp}),Xj=kn(Yj),Qj=p({},ka,{propertyName:0,elapsedTime:0,pseudoElement:0}),Jj=kn(Qj),eP=p({},Mu,{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}),tP=kn(eP),nP=p({},ka,{newState:0,oldState:0}),rP=kn(nP),iP=[9,13,27,32],Ap=ti&&"CompositionEvent"in window,cl=null;ti&&"documentMode"in document&&(cl=document.documentMode);var aP=ti&&"TextEvent"in window&&!cl,W0=ti&&(!Ap||cl&&8<cl&&11>=cl),Z0=" ",Y0=!1;function X0(i,o){switch(i){case"keyup":return iP.indexOf(o.keyCode)!==-1;case"keydown":return o.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Q0(i){return i=i.detail,typeof i=="object"&&"data"in i?i.data:null}var Io=!1;function oP(i,o){switch(i){case"compositionend":return Q0(o);case"keypress":return o.which!==32?null:(Y0=!0,Z0);case"textInput":return i=o.data,i===Z0&&Y0?null:i;default:return null}}function sP(i,o){if(Io)return i==="compositionend"||!Ap&&X0(i,o)?(i=H0(),Du=bp=Ii=null,Io=!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 W0&&o.locale!=="ko"?null:o.data;default:return null}}var lP={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 J0(i){var o=i&&i.nodeName&&i.nodeName.toLowerCase();return o==="input"?!!lP[i.type]:o==="textarea"}function eE(i,o,c,h){ko?No?No.push(h):No=[h]:ko=h,o=xd(o,"onChange"),0<o.length&&(c=new Pu("onChange","change",null,c,h),i.push({event:c,listeners:o}))}var ul=null,dl=null;function cP(i){Lx(i,0)}function zu(i){var o=il(i);if(j0(o))return i}function tE(i,o){if(i==="change")return o}var nE=!1;if(ti){var Tp;if(ti){var wp="oninput"in document;if(!wp){var rE=document.createElement("div");rE.setAttribute("oninput","return;"),wp=typeof rE.oninput=="function"}Tp=wp}else Tp=!1;nE=Tp&&(!document.documentMode||9<document.documentMode)}function iE(){ul&&(ul.detachEvent("onpropertychange",aE),dl=ul=null)}function aE(i){if(i.propertyName==="value"&&zu(dl)){var o=[];eE(o,dl,i,gp(i)),F0(cP,o)}}function uP(i,o,c){i==="focusin"?(iE(),ul=o,dl=c,ul.attachEvent("onpropertychange",aE)):i==="focusout"&&iE()}function dP(i){if(i==="selectionchange"||i==="keyup"||i==="keydown")return zu(dl)}function fP(i,o){if(i==="click")return zu(o)}function hP(i,o){if(i==="input"||i==="change")return zu(o)}function pP(i,o){return i===o&&(i!==0||1/i===1/o)||i!==i&&o!==o}var Pn=typeof Object.is=="function"?Object.is:pP;function fl(i,o){if(Pn(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 g=c[h];if(!nt.call(o,g)||!Pn(i[g],o[g]))return!1}return!0}function oE(i){for(;i&&i.firstChild;)i=i.firstChild;return i}function sE(i,o){var c=oE(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=oE(c)}}function lE(i,o){return i&&o?i===o?!0:i&&i.nodeType===3?!1:o&&o.nodeType===3?lE(i,o.parentNode):"contains"in i?i.contains(o):i.compareDocumentPosition?!!(i.compareDocumentPosition(o)&16):!1:!1}function cE(i){i=i!=null&&i.ownerDocument!=null&&i.ownerDocument.defaultView!=null?i.ownerDocument.defaultView:window;for(var o=Iu(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=Iu(i.document)}return o}function Cp(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 mP=ti&&"documentMode"in document&&11>=document.documentMode,Oo=null,Rp=null,hl=null,kp=!1;function uE(i,o,c){var h=c.window===c?c.document:c.nodeType===9?c:c.ownerDocument;kp||Oo==null||Oo!==Iu(h)||(h=Oo,"selectionStart"in h&&Cp(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}),hl&&fl(hl,h)||(hl=h,h=xd(Rp,"onSelect"),0<h.length&&(o=new Pu("onSelect","select",null,o,c),i.push({event:o,listeners:h}),o.target=Oo)))}function Na(i,o){var c={};return c[i.toLowerCase()]=o.toLowerCase(),c["Webkit"+i]="webkit"+o,c["Moz"+i]="moz"+o,c}var Do={animationend:Na("Animation","AnimationEnd"),animationiteration:Na("Animation","AnimationIteration"),animationstart:Na("Animation","AnimationStart"),transitionrun:Na("Transition","TransitionRun"),transitionstart:Na("Transition","TransitionStart"),transitioncancel:Na("Transition","TransitionCancel"),transitionend:Na("Transition","TransitionEnd")},Np={},dE={};ti&&(dE=document.createElement("div").style,"AnimationEvent"in window||(delete Do.animationend.animation,delete Do.animationiteration.animation,delete Do.animationstart.animation),"TransitionEvent"in window||delete Do.transitionend.transition);function Ia(i){if(Np[i])return Np[i];if(!Do[i])return i;var o=Do[i],c;for(c in o)if(o.hasOwnProperty(c)&&c in dE)return Np[i]=o[c];return i}var fE=Ia("animationend"),hE=Ia("animationiteration"),pE=Ia("animationstart"),gP=Ia("transitionrun"),yP=Ia("transitionstart"),vP=Ia("transitioncancel"),mE=Ia("transitionend"),gE=new Map,Ip="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(" ");Ip.push("scrollEnd");function mr(i,o){gE.set(i,o),Ra(o,[i])}var yE=new WeakMap;function er(i,o){if(typeof i=="object"&&i!==null){var c=yE.get(i);return c!==void 0?c:(o={value:i,source:o,stack:D0(o)},yE.set(i,o),o)}return{value:i,source:o,stack:D0(o)}}var tr=[],Lo=0,Op=0;function Bu(){for(var i=Lo,o=Op=Lo=0;o<i;){var c=tr[o];tr[o++]=null;var h=tr[o];tr[o++]=null;var g=tr[o];tr[o++]=null;var b=tr[o];if(tr[o++]=null,h!==null&&g!==null){var k=h.pending;k===null?g.next=g:(g.next=k.next,k.next=g),h.pending=g}b!==0&&vE(c,g,b)}}function Vu(i,o,c,h){tr[Lo++]=i,tr[Lo++]=o,tr[Lo++]=c,tr[Lo++]=h,Op|=h,i.lanes|=h,i=i.alternate,i!==null&&(i.lanes|=h)}function Dp(i,o,c,h){return Vu(i,o,c,h),Uu(i)}function jo(i,o){return Vu(i,null,null,o),Uu(i)}function vE(i,o,c){i.lanes|=c;var h=i.alternate;h!==null&&(h.lanes|=c);for(var g=!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||(g=!0)),i=b,b=b.return;return i.tag===3?(b=i.stateNode,g&&o!==null&&(g=31-gt(c),i=b.hiddenUpdates,h=i[g],h===null?i[g]=[o]:h.push(o),o.lane=c|536870912),b):null}function Uu(i){if(50<zl)throw zl=0,Bm=null,Error(r(185));for(var o=i.return;o!==null;)i=o,o=i.return;return i.tag===3?i.stateNode:null}var Po={};function bP(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 Mn(i,o,c,h){return new bP(i,o,c,h)}function Lp(i){return i=i.prototype,!(!i||!i.isReactComponent)}function ni(i,o){var c=i.alternate;return c===null?(c=Mn(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 bE(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 Fu(i,o,c,h,g,b){var k=0;if(h=i,typeof i=="function")Lp(i)&&(k=1);else if(typeof i=="string")k=EM(i,c,ue.current)?26:i==="html"||i==="head"||i==="body"?27:5;else e:switch(i){case U:return i=Mn(31,c,o,g),i.elementType=U,i.lanes=b,i;case x:return Oa(c.children,g,b,o);case A:k=8,g|=24;break;case w:return i=Mn(12,c,o,g|2),i.elementType=w,i.lanes=b,i;case C:return i=Mn(13,c,o,g),i.elementType=C,i.lanes=b,i;case I:return i=Mn(19,c,o,g),i.elementType=I,i.lanes=b,i;default:if(typeof i=="object"&&i!==null)switch(i.$$typeof){case N:case T:k=10;break e;case E:k=9;break e;case R: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=Mn(k,c,o,g),o.elementType=i,o.type=h,o.lanes=b,o}function Oa(i,o,c,h){return i=Mn(7,i,h,o),i.lanes=c,i}function jp(i,o,c){return i=Mn(6,i,null,o),i.lanes=c,i}function Pp(i,o,c){return o=Mn(4,i.children!==null?i.children:[],i.key,o),o.lanes=c,o.stateNode={containerInfo:i.containerInfo,pendingChildren:null,implementation:i.implementation},o}var Mo=[],zo=0,Hu=null,Gu=0,nr=[],rr=0,Da=null,ri=1,ii="";function La(i,o){Mo[zo++]=Gu,Mo[zo++]=Hu,Hu=i,Gu=o}function _E(i,o,c){nr[rr++]=ri,nr[rr++]=ii,nr[rr++]=Da,Da=i;var h=ri;i=ii;var g=32-gt(h)-1;h&=~(1<<g),c+=1;var b=32-gt(o)+g;if(30<b){var k=g-g%5;b=(h&(1<<k)-1).toString(32),h>>=k,g-=k,ri=1<<32-gt(o)+g|c<<g|h,ii=b+i}else ri=1<<b|c<<g|h,ii=i}function Mp(i){i.return!==null&&(La(i,1),_E(i,1,0))}function zp(i){for(;i===Hu;)Hu=Mo[--zo],Mo[zo]=null,Gu=Mo[--zo],Mo[zo]=null;for(;i===Da;)Da=nr[--rr],nr[rr]=null,ii=nr[--rr],nr[rr]=null,ri=nr[--rr],nr[rr]=null}var _n=null,kt=null,it=!1,ja=null,Ir=!1,Bp=Error(r(519));function Pa(i){var o=Error(r(418,""));throw gl(er(o,i)),Bp}function EE(i){var o=i.stateNode,c=i.type,h=i.memoizedProps;switch(o[hn]=i,o[Rn]=h,c){case"dialog":Ye("cancel",o),Ye("close",o);break;case"iframe":case"object":case"embed":Ye("load",o);break;case"video":case"audio":for(c=0;c<Vl.length;c++)Ye(Vl[c],o);break;case"source":Ye("error",o);break;case"img":case"image":case"link":Ye("error",o),Ye("load",o);break;case"details":Ye("toggle",o);break;case"input":Ye("invalid",o),P0(o,h.value,h.defaultValue,h.checked,h.defaultChecked,h.type,h.name,!0),Nu(o);break;case"select":Ye("invalid",o);break;case"textarea":Ye("invalid",o),z0(o,h.value,h.defaultValue,h.children),Nu(o)}c=h.children,typeof c!="string"&&typeof c!="number"&&typeof c!="bigint"||o.textContent===""+c||h.suppressHydrationWarning===!0||zx(o.textContent,c)?(h.popover!=null&&(Ye("beforetoggle",o),Ye("toggle",o)),h.onScroll!=null&&Ye("scroll",o),h.onScrollEnd!=null&&Ye("scrollend",o),h.onClick!=null&&(o.onclick=Ad),o=!0):o=!1,o||Pa(i)}function SE(i){for(_n=i.return;_n;)switch(_n.tag){case 5:case 13:Ir=!1;return;case 27:case 3:Ir=!0;return;default:_n=_n.return}}function pl(i){if(i!==_n)return!1;if(!it)return SE(i),it=!0,!1;var o=i.tag,c;if((c=o!==3&&o!==27)&&((c=o===5)&&(c=i.type,c=!(c!=="form"&&c!=="button")||tg(i.type,i.memoizedProps)),c=!c),c&&kt&&Pa(i),SE(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){kt=yr(i.nextSibling);break e}o--}else c!=="$"&&c!=="$!"&&c!=="$?"||o++;i=i.nextSibling}kt=null}}else o===27?(o=kt,qi(i.type)?(i=ag,ag=null,kt=i):kt=o):kt=_n?yr(i.stateNode.nextSibling):null;return!0}function ml(){kt=_n=null,it=!1}function xE(){var i=ja;return i!==null&&(On===null?On=i:On.push.apply(On,i),ja=null),i}function gl(i){ja===null?ja=[i]:ja.push(i)}var Vp=ne(null),Ma=null,ai=null;function Oi(i,o,c){re(Vp,o._currentValue),o._currentValue=c}function oi(i){i._currentValue=Vp.current,$(Vp)}function Up(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 Fp(i,o,c,h){var g=i.child;for(g!==null&&(g.return=i);g!==null;){var b=g.dependencies;if(b!==null){var k=g.child;b=b.firstContext;e:for(;b!==null;){var O=b;b=g;for(var M=0;M<o.length;M++)if(O.context===o[M]){b.lanes|=c,O=b.alternate,O!==null&&(O.lanes|=c),Up(b.return,c,i),h||(k=null);break e}b=O.next}}else if(g.tag===18){if(k=g.return,k===null)throw Error(r(341));k.lanes|=c,b=k.alternate,b!==null&&(b.lanes|=c),Up(k,c,i),k=null}else k=g.child;if(k!==null)k.return=g;else for(k=g;k!==null;){if(k===i){k=null;break}if(g=k.sibling,g!==null){g.return=k.return,k=g;break}k=k.return}g=k}}function yl(i,o,c,h){i=null;for(var g=o,b=!1;g!==null;){if(!b){if((g.flags&524288)!==0)b=!0;else if((g.flags&262144)!==0)break}if(g.tag===10){var k=g.alternate;if(k===null)throw Error(r(387));if(k=k.memoizedProps,k!==null){var O=g.type;Pn(g.pendingProps.value,k.value)||(i!==null?i.push(O):i=[O])}}else if(g===fe.current){if(k=g.alternate,k===null)throw Error(r(387));k.memoizedState.memoizedState!==g.memoizedState.memoizedState&&(i!==null?i.push(Kl):i=[Kl])}g=g.return}i!==null&&Fp(o,i,c,h),o.flags|=262144}function $u(i){for(i=i.firstContext;i!==null;){if(!Pn(i.context._currentValue,i.memoizedValue))return!0;i=i.next}return!1}function za(i){Ma=i,ai=null,i=i.dependencies,i!==null&&(i.firstContext=null)}function pn(i){return AE(Ma,i)}function Ku(i,o){return Ma===null&&za(i),AE(i,o)}function AE(i,o){var c=o._currentValue;if(o={context:o,memoizedValue:c,next:null},ai===null){if(i===null)throw Error(r(308));ai=o,i.dependencies={lanes:0,firstContext:o},i.flags|=524288}else ai=ai.next=o;return c}var _P=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()})}},EP=e.unstable_scheduleCallback,SP=e.unstable_NormalPriority,Gt={$$typeof:T,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Hp(){return{controller:new _P,data:new Map,refCount:0}}function vl(i){i.refCount--,i.refCount===0&&EP(SP,function(){i.controller.abort()})}var bl=null,Gp=0,Bo=0,Vo=null;function xP(i,o){if(bl===null){var c=bl=[];Gp=0,Bo=Km(),Vo={status:"pending",value:void 0,then:function(h){c.push(h)}}}return Gp++,o.then(TE,TE),o}function TE(){if(--Gp===0&&bl!==null){Vo!==null&&(Vo.status="fulfilled");var i=bl;bl=null,Bo=0,Vo=null;for(var o=0;o<i.length;o++)(0,i[o])()}}function AP(i,o){var c=[],h={status:"pending",value:null,reason:null,then:function(g){c.push(g)}};return i.then(function(){h.status="fulfilled",h.value=o;for(var g=0;g<c.length;g++)(0,c[g])(o)},function(g){for(h.status="rejected",h.reason=g,g=0;g<c.length;g++)(0,c[g])(void 0)}),h}var wE=z.S;z.S=function(i,o){typeof o=="object"&&o!==null&&typeof o.then=="function"&&xP(i,o),wE!==null&&wE(i,o)};var Ba=ne(null);function $p(){var i=Ba.current;return i!==null?i:yt.pooledCache}function qu(i,o){o===null?re(Ba,Ba.current):re(Ba,o.pool)}function CE(){var i=$p();return i===null?null:{parent:Gt._currentValue,pool:i}}var _l=Error(r(460)),RE=Error(r(474)),Wu=Error(r(542)),Kp={then:function(){}};function kE(i){return i=i.status,i==="fulfilled"||i==="rejected"}function Zu(){}function NE(i,o,c){switch(c=i[c],c===void 0?i.push(o):c!==o&&(o.then(Zu,Zu),o=c),o.status){case"fulfilled":return o.value;case"rejected":throw i=o.reason,OE(i),i;default:if(typeof o.status=="string")o.then(Zu,Zu);else{if(i=yt,i!==null&&100<i.shellSuspendCounter)throw Error(r(482));i=o,i.status="pending",i.then(function(h){if(o.status==="pending"){var g=o;g.status="fulfilled",g.value=h}},function(h){if(o.status==="pending"){var g=o;g.status="rejected",g.reason=h}})}switch(o.status){case"fulfilled":return o.value;case"rejected":throw i=o.reason,OE(i),i}throw El=o,_l}}var El=null;function IE(){if(El===null)throw Error(r(459));var i=El;return El=null,i}function OE(i){if(i===_l||i===Wu)throw Error(r(483))}var Di=!1;function qp(i){i.updateQueue={baseState:i.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Wp(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 Li(i){return{lane:i,tag:0,payload:null,callback:null,next:null}}function ji(i,o,c){var h=i.updateQueue;if(h===null)return null;if(h=h.shared,(ct&2)!==0){var g=h.pending;return g===null?o.next=o:(o.next=g.next,g.next=o),h.pending=o,o=Uu(i),vE(i,null,c),o}return Vu(i,h,o,c),Uu(i)}function Sl(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,T0(i,c)}}function Zp(i,o){var c=i.updateQueue,h=i.alternate;if(h!==null&&(h=h.updateQueue,c===h)){var g=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?g=b=k:b=b.next=k,c=c.next}while(c!==null);b===null?g=b=o:b=b.next=o}else g=b=o;c={baseState:h.baseState,firstBaseUpdate:g,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 Yp=!1;function xl(){if(Yp){var i=Vo;if(i!==null)throw i}}function Al(i,o,c,h){Yp=!1;var g=i.updateQueue;Di=!1;var b=g.firstBaseUpdate,k=g.lastBaseUpdate,O=g.shared.pending;if(O!==null){g.shared.pending=null;var M=O,Q=M.next;M.next=null,k===null?b=Q:k.next=Q,k=M;var se=i.alternate;se!==null&&(se=se.updateQueue,O=se.lastBaseUpdate,O!==k&&(O===null?se.firstBaseUpdate=Q:O.next=Q,se.lastBaseUpdate=M))}if(b!==null){var de=g.baseState;k=0,se=Q=M=null,O=b;do{var te=O.lane&-536870913,ie=te!==O.lane;if(ie?(et&te)===te:(h&te)===te){te!==0&&te===Bo&&(Yp=!0),se!==null&&(se=se.next={lane:0,tag:O.tag,payload:O.payload,callback:null,next:null});e:{var Pe=i,De=O;te=o;var pt=c;switch(De.tag){case 1:if(Pe=De.payload,typeof Pe=="function"){de=Pe.call(pt,de,te);break e}de=Pe;break e;case 3:Pe.flags=Pe.flags&-65537|128;case 0:if(Pe=De.payload,te=typeof Pe=="function"?Pe.call(pt,de,te):Pe,te==null)break e;de=p({},de,te);break e;case 2:Di=!0}}te=O.callback,te!==null&&(i.flags|=64,ie&&(i.flags|=8192),ie=g.callbacks,ie===null?g.callbacks=[te]:ie.push(te))}else ie={lane:te,tag:O.tag,payload:O.payload,callback:O.callback,next:null},se===null?(Q=se=ie,M=de):se=se.next=ie,k|=te;if(O=O.next,O===null){if(O=g.shared.pending,O===null)break;ie=O,O=ie.next,ie.next=null,g.lastBaseUpdate=ie,g.shared.pending=null}}while(!0);se===null&&(M=de),g.baseState=M,g.firstBaseUpdate=Q,g.lastBaseUpdate=se,b===null&&(g.shared.lanes=0),Hi|=k,i.lanes=k,i.memoizedState=de}}function DE(i,o){if(typeof i!="function")throw Error(r(191,i));i.call(o)}function LE(i,o){var c=i.callbacks;if(c!==null)for(i.callbacks=null,i=0;i<c.length;i++)DE(c[i],o)}var Uo=ne(null),Yu=ne(0);function jE(i,o){i=hi,re(Yu,i),re(Uo,o),hi=i|o.baseLanes}function Xp(){re(Yu,hi),re(Uo,Uo.current)}function Qp(){hi=Yu.current,$(Uo),$(Yu)}var Pi=0,Ke=null,ft=null,Pt=null,Xu=!1,Fo=!1,Va=!1,Qu=0,Tl=0,Ho=null,TP=0;function Ot(){throw Error(r(321))}function Jp(i,o){if(o===null)return!1;for(var c=0;c<o.length&&c<i.length;c++)if(!Pn(i[c],o[c]))return!1;return!0}function em(i,o,c,h,g,b){return Pi=b,Ke=o,o.memoizedState=null,o.updateQueue=null,o.lanes=0,z.H=i===null||i.memoizedState===null?vS:bS,Va=!1,b=c(h,g),Va=!1,Fo&&(b=ME(o,c,h,g)),PE(i),b}function PE(i){z.H=id;var o=ft!==null&&ft.next!==null;if(Pi=0,Pt=ft=Ke=null,Xu=!1,Tl=0,Ho=null,o)throw Error(r(300));i===null||Jt||(i=i.dependencies,i!==null&&$u(i)&&(Jt=!0))}function ME(i,o,c,h){Ke=i;var g=0;do{if(Fo&&(Ho=null),Tl=0,Fo=!1,25<=g)throw Error(r(301));if(g+=1,Pt=ft=null,i.updateQueue!=null){var b=i.updateQueue;b.lastEffect=null,b.events=null,b.stores=null,b.memoCache!=null&&(b.memoCache.index=0)}z.H=OP,b=o(c,h)}while(Fo);return b}function wP(){var i=z.H,o=i.useState()[0];return o=typeof o.then=="function"?wl(o):o,i=i.useState()[0],(ft!==null?ft.memoizedState:null)!==i&&(Ke.flags|=1024),o}function tm(){var i=Qu!==0;return Qu=0,i}function nm(i,o,c){o.updateQueue=i.updateQueue,o.flags&=-2053,i.lanes&=~c}function rm(i){if(Xu){for(i=i.memoizedState;i!==null;){var o=i.queue;o!==null&&(o.pending=null),i=i.next}Xu=!1}Pi=0,Pt=ft=Ke=null,Fo=!1,Tl=Qu=0,Ho=null}function Nn(){var i={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Pt===null?Ke.memoizedState=Pt=i:Pt=Pt.next=i,Pt}function Mt(){if(ft===null){var i=Ke.alternate;i=i!==null?i.memoizedState:null}else i=ft.next;var o=Pt===null?Ke.memoizedState:Pt.next;if(o!==null)Pt=o,ft=i;else{if(i===null)throw Ke.alternate===null?Error(r(467)):Error(r(310));ft=i,i={memoizedState:ft.memoizedState,baseState:ft.baseState,baseQueue:ft.baseQueue,queue:ft.queue,next:null},Pt===null?Ke.memoizedState=Pt=i:Pt=Pt.next=i}return Pt}function im(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function wl(i){var o=Tl;return Tl+=1,Ho===null&&(Ho=[]),i=NE(Ho,i,o),o=Ke,(Pt===null?o.memoizedState:Pt.next)===null&&(o=o.alternate,z.H=o===null||o.memoizedState===null?vS:bS),i}function Ju(i){if(i!==null&&typeof i=="object"){if(typeof i.then=="function")return wl(i);if(i.$$typeof===T)return pn(i)}throw Error(r(438,String(i)))}function am(i){var o=null,c=Ke.updateQueue;if(c!==null&&(o=c.memoCache),o==null){var h=Ke.alternate;h!==null&&(h=h.updateQueue,h!==null&&(h=h.memoCache,h!=null&&(o={data:h.data.map(function(g){return g.slice()}),index:0})))}if(o==null&&(o={data:[],index:0}),c===null&&(c=im(),Ke.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]=K;return o.index++,c}function si(i,o){return typeof o=="function"?o(i):o}function ed(i){var o=Mt();return om(o,ft,i)}function om(i,o,c){var h=i.queue;if(h===null)throw Error(r(311));h.lastRenderedReducer=c;var g=i.baseQueue,b=h.pending;if(b!==null){if(g!==null){var k=g.next;g.next=b.next,b.next=k}o.baseQueue=g=b,h.pending=null}if(b=i.baseState,g===null)i.memoizedState=b;else{o=g.next;var O=k=null,M=null,Q=o,se=!1;do{var de=Q.lane&-536870913;if(de!==Q.lane?(et&de)===de:(Pi&de)===de){var te=Q.revertLane;if(te===0)M!==null&&(M=M.next={lane:0,revertLane:0,action:Q.action,hasEagerState:Q.hasEagerState,eagerState:Q.eagerState,next:null}),de===Bo&&(se=!0);else if((Pi&te)===te){Q=Q.next,te===Bo&&(se=!0);continue}else de={lane:0,revertLane:Q.revertLane,action:Q.action,hasEagerState:Q.hasEagerState,eagerState:Q.eagerState,next:null},M===null?(O=M=de,k=b):M=M.next=de,Ke.lanes|=te,Hi|=te;de=Q.action,Va&&c(b,de),b=Q.hasEagerState?Q.eagerState:c(b,de)}else te={lane:de,revertLane:Q.revertLane,action:Q.action,hasEagerState:Q.hasEagerState,eagerState:Q.eagerState,next:null},M===null?(O=M=te,k=b):M=M.next=te,Ke.lanes|=de,Hi|=de;Q=Q.next}while(Q!==null&&Q!==o);if(M===null?k=b:M.next=O,!Pn(b,i.memoizedState)&&(Jt=!0,se&&(c=Vo,c!==null)))throw c;i.memoizedState=b,i.baseState=k,i.baseQueue=M,h.lastRenderedState=b}return g===null&&(h.lanes=0),[i.memoizedState,h.dispatch]}function sm(i){var o=Mt(),c=o.queue;if(c===null)throw Error(r(311));c.lastRenderedReducer=i;var h=c.dispatch,g=c.pending,b=o.memoizedState;if(g!==null){c.pending=null;var k=g=g.next;do b=i(b,k.action),k=k.next;while(k!==g);Pn(b,o.memoizedState)||(Jt=!0),o.memoizedState=b,o.baseQueue===null&&(o.baseState=b),c.lastRenderedState=b}return[b,h]}function zE(i,o,c){var h=Ke,g=Mt(),b=it;if(b){if(c===void 0)throw Error(r(407));c=c()}else c=o();var k=!Pn((ft||g).memoizedState,c);k&&(g.memoizedState=c,Jt=!0),g=g.queue;var O=UE.bind(null,h,g,i);if(Cl(2048,8,O,[i]),g.getSnapshot!==o||k||Pt!==null&&Pt.memoizedState.tag&1){if(h.flags|=2048,Go(9,td(),VE.bind(null,h,g,c,o),null),yt===null)throw Error(r(349));b||(Pi&124)!==0||BE(h,o,c)}return c}function BE(i,o,c){i.flags|=16384,i={getSnapshot:o,value:c},o=Ke.updateQueue,o===null?(o=im(),Ke.updateQueue=o,o.stores=[i]):(c=o.stores,c===null?o.stores=[i]:c.push(i))}function VE(i,o,c,h){o.value=c,o.getSnapshot=h,FE(o)&&HE(i)}function UE(i,o,c){return c(function(){FE(o)&&HE(i)})}function FE(i){var o=i.getSnapshot;i=i.value;try{var c=o();return!Pn(i,c)}catch{return!0}}function HE(i){var o=jo(i,2);o!==null&&Fn(o,i,2)}function lm(i){var o=Nn();if(typeof i=="function"){var c=i;if(i=c(),Va){Qe(!0);try{c()}finally{Qe(!1)}}}return o.memoizedState=o.baseState=i,o.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:si,lastRenderedState:i},o}function GE(i,o,c,h){return i.baseState=c,om(i,ft,typeof h=="function"?h:si)}function CP(i,o,c,h,g){if(rd(i))throw Error(r(485));if(i=o.action,i!==null){var b={payload:g,action:i,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(k){b.listeners.push(k)}};z.T!==null?c(!0):b.isTransition=!1,h(b),c=o.pending,c===null?(b.next=o.pending=b,$E(o,b)):(b.next=c.next,o.pending=c.next=b)}}function $E(i,o){var c=o.action,h=o.payload,g=i.state;if(o.isTransition){var b=z.T,k={};z.T=k;try{var O=c(g,h),M=z.S;M!==null&&M(k,O),KE(i,o,O)}catch(Q){cm(i,o,Q)}finally{z.T=b}}else try{b=c(g,h),KE(i,o,b)}catch(Q){cm(i,o,Q)}}function KE(i,o,c){c!==null&&typeof c=="object"&&typeof c.then=="function"?c.then(function(h){qE(i,o,h)},function(h){return cm(i,o,h)}):qE(i,o,c)}function qE(i,o,c){o.status="fulfilled",o.value=c,WE(o),i.state=c,o=i.pending,o!==null&&(c=o.next,c===o?i.pending=null:(c=c.next,o.next=c,$E(i,c)))}function cm(i,o,c){var h=i.pending;if(i.pending=null,h!==null){h=h.next;do o.status="rejected",o.reason=c,WE(o),o=o.next;while(o!==h)}i.action=null}function WE(i){i=i.listeners;for(var o=0;o<i.length;o++)(0,i[o])()}function ZE(i,o){return o}function YE(i,o){if(it){var c=yt.formState;if(c!==null){e:{var h=Ke;if(it){if(kt){t:{for(var g=kt,b=Ir;g.nodeType!==8;){if(!b){g=null;break t}if(g=yr(g.nextSibling),g===null){g=null;break t}}b=g.data,g=b==="F!"||b==="F"?g:null}if(g){kt=yr(g.nextSibling),h=g.data==="F!";break e}}Pa(h)}h=!1}h&&(o=c[0])}}return c=Nn(),c.memoizedState=c.baseState=o,h={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ZE,lastRenderedState:o},c.queue=h,c=mS.bind(null,Ke,h),h.dispatch=c,h=lm(!1),b=pm.bind(null,Ke,!1,h.queue),h=Nn(),g={state:o,dispatch:null,action:i,pending:null},h.queue=g,c=CP.bind(null,Ke,g,b,c),g.dispatch=c,h.memoizedState=i,[o,c,!1]}function XE(i){var o=Mt();return QE(o,ft,i)}function QE(i,o,c){if(o=om(i,o,ZE)[0],i=ed(si)[0],typeof o=="object"&&o!==null&&typeof o.then=="function")try{var h=wl(o)}catch(k){throw k===_l?Wu:k}else h=o;o=Mt();var g=o.queue,b=g.dispatch;return c!==o.memoizedState&&(Ke.flags|=2048,Go(9,td(),RP.bind(null,g,c),null)),[h,b,i]}function RP(i,o){i.action=o}function JE(i){var o=Mt(),c=ft;if(c!==null)return QE(o,c,i);Mt(),o=o.memoizedState,c=Mt();var h=c.queue.dispatch;return c.memoizedState=i,[o,h,!1]}function Go(i,o,c,h){return i={tag:i,create:c,deps:h,inst:o,next:null},o=Ke.updateQueue,o===null&&(o=im(),Ke.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 td(){return{destroy:void 0,resource:void 0}}function eS(){return Mt().memoizedState}function nd(i,o,c,h){var g=Nn();h=h===void 0?null:h,Ke.flags|=i,g.memoizedState=Go(1|o,td(),c,h)}function Cl(i,o,c,h){var g=Mt();h=h===void 0?null:h;var b=g.memoizedState.inst;ft!==null&&h!==null&&Jp(h,ft.memoizedState.deps)?g.memoizedState=Go(o,b,c,h):(Ke.flags|=i,g.memoizedState=Go(1|o,b,c,h))}function tS(i,o){nd(8390656,8,i,o)}function nS(i,o){Cl(2048,8,i,o)}function rS(i,o){return Cl(4,2,i,o)}function iS(i,o){return Cl(4,4,i,o)}function aS(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 oS(i,o,c){c=c!=null?c.concat([i]):null,Cl(4,4,aS.bind(null,o,i),c)}function um(){}function sS(i,o){var c=Mt();o=o===void 0?null:o;var h=c.memoizedState;return o!==null&&Jp(o,h[1])?h[0]:(c.memoizedState=[i,o],i)}function lS(i,o){var c=Mt();o=o===void 0?null:o;var h=c.memoizedState;if(o!==null&&Jp(o,h[1]))return h[0];if(h=i(),Va){Qe(!0);try{i()}finally{Qe(!1)}}return c.memoizedState=[h,o],h}function dm(i,o,c){return c===void 0||(Pi&1073741824)!==0?i.memoizedState=o:(i.memoizedState=c,i=dx(),Ke.lanes|=i,Hi|=i,c)}function cS(i,o,c,h){return Pn(c,o)?c:Uo.current!==null?(i=dm(i,c,h),Pn(i,o)||(Jt=!0),i):(Pi&42)===0?(Jt=!0,i.memoizedState=c):(i=dx(),Ke.lanes|=i,Hi|=i,o)}function uS(i,o,c,h,g){var b=X.p;X.p=b!==0&&8>b?b:8;var k=z.T,O={};z.T=O,pm(i,!1,o,c);try{var M=g(),Q=z.S;if(Q!==null&&Q(O,M),M!==null&&typeof M=="object"&&typeof M.then=="function"){var se=AP(M,h);Rl(i,o,se,Un(i))}else Rl(i,o,h,Un(i))}catch(de){Rl(i,o,{then:function(){},status:"rejected",reason:de},Un())}finally{X.p=b,z.T=k}}function kP(){}function fm(i,o,c,h){if(i.tag!==5)throw Error(r(476));var g=dS(i).queue;uS(i,g,o,G,c===null?kP:function(){return fS(i),c(h)})}function dS(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:si,lastRenderedState:G},next:null};var c={};return o.next={memoizedState:c,baseState:c,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:si,lastRenderedState:c},next:null},i.memoizedState=o,i=i.alternate,i!==null&&(i.memoizedState=o),o}function fS(i){var o=dS(i).next.queue;Rl(i,o,{},Un())}function hm(){return pn(Kl)}function hS(){return Mt().memoizedState}function pS(){return Mt().memoizedState}function NP(i){for(var o=i.return;o!==null;){switch(o.tag){case 24:case 3:var c=Un();i=Li(c);var h=ji(o,i,c);h!==null&&(Fn(h,o,c),Sl(h,o,c)),o={cache:Hp()},i.payload=o;return}o=o.return}}function IP(i,o,c){var h=Un();c={lane:h,revertLane:0,action:c,hasEagerState:!1,eagerState:null,next:null},rd(i)?gS(o,c):(c=Dp(i,o,c,h),c!==null&&(Fn(c,i,h),yS(c,o,h)))}function mS(i,o,c){var h=Un();Rl(i,o,c,h)}function Rl(i,o,c,h){var g={lane:h,revertLane:0,action:c,hasEagerState:!1,eagerState:null,next:null};if(rd(i))gS(o,g);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(g.hasEagerState=!0,g.eagerState=O,Pn(O,k))return Vu(i,o,g,0),yt===null&&Bu(),!1}catch{}finally{}if(c=Dp(i,o,g,h),c!==null)return Fn(c,i,h),yS(c,o,h),!0}return!1}function pm(i,o,c,h){if(h={lane:2,revertLane:Km(),action:h,hasEagerState:!1,eagerState:null,next:null},rd(i)){if(o)throw Error(r(479))}else o=Dp(i,c,h,2),o!==null&&Fn(o,i,2)}function rd(i){var o=i.alternate;return i===Ke||o!==null&&o===Ke}function gS(i,o){Fo=Xu=!0;var c=i.pending;c===null?o.next=o:(o.next=c.next,c.next=o),i.pending=o}function yS(i,o,c){if((c&4194048)!==0){var h=o.lanes;h&=i.pendingLanes,c|=h,o.lanes=c,T0(i,c)}}var id={readContext:pn,use:Ju,useCallback:Ot,useContext:Ot,useEffect:Ot,useImperativeHandle:Ot,useLayoutEffect:Ot,useInsertionEffect:Ot,useMemo:Ot,useReducer:Ot,useRef:Ot,useState:Ot,useDebugValue:Ot,useDeferredValue:Ot,useTransition:Ot,useSyncExternalStore:Ot,useId:Ot,useHostTransitionStatus:Ot,useFormState:Ot,useActionState:Ot,useOptimistic:Ot,useMemoCache:Ot,useCacheRefresh:Ot},vS={readContext:pn,use:Ju,useCallback:function(i,o){return Nn().memoizedState=[i,o===void 0?null:o],i},useContext:pn,useEffect:tS,useImperativeHandle:function(i,o,c){c=c!=null?c.concat([i]):null,nd(4194308,4,aS.bind(null,o,i),c)},useLayoutEffect:function(i,o){return nd(4194308,4,i,o)},useInsertionEffect:function(i,o){nd(4,2,i,o)},useMemo:function(i,o){var c=Nn();o=o===void 0?null:o;var h=i();if(Va){Qe(!0);try{i()}finally{Qe(!1)}}return c.memoizedState=[h,o],h},useReducer:function(i,o,c){var h=Nn();if(c!==void 0){var g=c(o);if(Va){Qe(!0);try{c(o)}finally{Qe(!1)}}}else g=o;return h.memoizedState=h.baseState=g,i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:i,lastRenderedState:g},h.queue=i,i=i.dispatch=IP.bind(null,Ke,i),[h.memoizedState,i]},useRef:function(i){var o=Nn();return i={current:i},o.memoizedState=i},useState:function(i){i=lm(i);var o=i.queue,c=mS.bind(null,Ke,o);return o.dispatch=c,[i.memoizedState,c]},useDebugValue:um,useDeferredValue:function(i,o){var c=Nn();return dm(c,i,o)},useTransition:function(){var i=lm(!1);return i=uS.bind(null,Ke,i.queue,!0,!1),Nn().memoizedState=i,[!1,i]},useSyncExternalStore:function(i,o,c){var h=Ke,g=Nn();if(it){if(c===void 0)throw Error(r(407));c=c()}else{if(c=o(),yt===null)throw Error(r(349));(et&124)!==0||BE(h,o,c)}g.memoizedState=c;var b={value:c,getSnapshot:o};return g.queue=b,tS(UE.bind(null,h,b,i),[i]),h.flags|=2048,Go(9,td(),VE.bind(null,h,b,c,o),null),c},useId:function(){var i=Nn(),o=yt.identifierPrefix;if(it){var c=ii,h=ri;c=(h&~(1<<32-gt(h)-1)).toString(32)+c,o="«"+o+"R"+c,c=Qu++,0<c&&(o+="H"+c.toString(32)),o+="»"}else c=TP++,o="«"+o+"r"+c.toString(32)+"»";return i.memoizedState=o},useHostTransitionStatus:hm,useFormState:YE,useActionState:YE,useOptimistic:function(i){var o=Nn();o.memoizedState=o.baseState=i;var c={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return o.queue=c,o=pm.bind(null,Ke,!0,c),c.dispatch=o,[i,o]},useMemoCache:am,useCacheRefresh:function(){return Nn().memoizedState=NP.bind(null,Ke)}},bS={readContext:pn,use:Ju,useCallback:sS,useContext:pn,useEffect:nS,useImperativeHandle:oS,useInsertionEffect:rS,useLayoutEffect:iS,useMemo:lS,useReducer:ed,useRef:eS,useState:function(){return ed(si)},useDebugValue:um,useDeferredValue:function(i,o){var c=Mt();return cS(c,ft.memoizedState,i,o)},useTransition:function(){var i=ed(si)[0],o=Mt().memoizedState;return[typeof i=="boolean"?i:wl(i),o]},useSyncExternalStore:zE,useId:hS,useHostTransitionStatus:hm,useFormState:XE,useActionState:XE,useOptimistic:function(i,o){var c=Mt();return GE(c,ft,i,o)},useMemoCache:am,useCacheRefresh:pS},OP={readContext:pn,use:Ju,useCallback:sS,useContext:pn,useEffect:nS,useImperativeHandle:oS,useInsertionEffect:rS,useLayoutEffect:iS,useMemo:lS,useReducer:sm,useRef:eS,useState:function(){return sm(si)},useDebugValue:um,useDeferredValue:function(i,o){var c=Mt();return ft===null?dm(c,i,o):cS(c,ft.memoizedState,i,o)},useTransition:function(){var i=sm(si)[0],o=Mt().memoizedState;return[typeof i=="boolean"?i:wl(i),o]},useSyncExternalStore:zE,useId:hS,useHostTransitionStatus:hm,useFormState:JE,useActionState:JE,useOptimistic:function(i,o){var c=Mt();return ft!==null?GE(c,ft,i,o):(c.baseState=i,[i,c.queue.dispatch])},useMemoCache:am,useCacheRefresh:pS},$o=null,kl=0;function ad(i){var o=kl;return kl+=1,$o===null&&($o=[]),NE($o,i,o)}function Nl(i,o){o=o.props.ref,i.ref=o!==void 0?o:null}function od(i,o){throw o.$$typeof===m?Error(r(525)):(i=Object.prototype.toString.call(o),Error(r(31,i==="[object Object]"?"object with keys {"+Object.keys(o).join(", ")+"}":i)))}function _S(i){var o=i._init;return o(i._payload)}function ES(i){function o(q,F){if(i){var Y=q.deletions;Y===null?(q.deletions=[F],q.flags|=16):Y.push(F)}}function c(q,F){if(!i)return null;for(;F!==null;)o(q,F),F=F.sibling;return null}function h(q){for(var F=new Map;q!==null;)q.key!==null?F.set(q.key,q):F.set(q.index,q),q=q.sibling;return F}function g(q,F){return q=ni(q,F),q.index=0,q.sibling=null,q}function b(q,F,Y){return q.index=Y,i?(Y=q.alternate,Y!==null?(Y=Y.index,Y<F?(q.flags|=67108866,F):Y):(q.flags|=67108866,F)):(q.flags|=1048576,F)}function k(q){return i&&q.alternate===null&&(q.flags|=67108866),q}function O(q,F,Y,ce){return F===null||F.tag!==6?(F=jp(Y,q.mode,ce),F.return=q,F):(F=g(F,Y),F.return=q,F)}function M(q,F,Y,ce){var Ae=Y.type;return Ae===x?se(q,F,Y.props.children,ce,Y.key):F!==null&&(F.elementType===Ae||typeof Ae=="object"&&Ae!==null&&Ae.$$typeof===L&&_S(Ae)===F.type)?(F=g(F,Y.props),Nl(F,Y),F.return=q,F):(F=Fu(Y.type,Y.key,Y.props,null,q.mode,ce),Nl(F,Y),F.return=q,F)}function Q(q,F,Y,ce){return F===null||F.tag!==4||F.stateNode.containerInfo!==Y.containerInfo||F.stateNode.implementation!==Y.implementation?(F=Pp(Y,q.mode,ce),F.return=q,F):(F=g(F,Y.children||[]),F.return=q,F)}function se(q,F,Y,ce,Ae){return F===null||F.tag!==7?(F=Oa(Y,q.mode,ce,Ae),F.return=q,F):(F=g(F,Y),F.return=q,F)}function de(q,F,Y){if(typeof F=="string"&&F!==""||typeof F=="number"||typeof F=="bigint")return F=jp(""+F,q.mode,Y),F.return=q,F;if(typeof F=="object"&&F!==null){switch(F.$$typeof){case v:return Y=Fu(F.type,F.key,F.props,null,q.mode,Y),Nl(Y,F),Y.return=q,Y;case _:return F=Pp(F,q.mode,Y),F.return=q,F;case L:var ce=F._init;return F=ce(F._payload),de(q,F,Y)}if(ae(F)||J(F))return F=Oa(F,q.mode,Y,null),F.return=q,F;if(typeof F.then=="function")return de(q,ad(F),Y);if(F.$$typeof===T)return de(q,Ku(q,F),Y);od(q,F)}return null}function te(q,F,Y,ce){var Ae=F!==null?F.key:null;if(typeof Y=="string"&&Y!==""||typeof Y=="number"||typeof Y=="bigint")return Ae!==null?null:O(q,F,""+Y,ce);if(typeof Y=="object"&&Y!==null){switch(Y.$$typeof){case v:return Y.key===Ae?M(q,F,Y,ce):null;case _:return Y.key===Ae?Q(q,F,Y,ce):null;case L:return Ae=Y._init,Y=Ae(Y._payload),te(q,F,Y,ce)}if(ae(Y)||J(Y))return Ae!==null?null:se(q,F,Y,ce,null);if(typeof Y.then=="function")return te(q,F,ad(Y),ce);if(Y.$$typeof===T)return te(q,F,Ku(q,Y),ce);od(q,Y)}return null}function ie(q,F,Y,ce,Ae){if(typeof ce=="string"&&ce!==""||typeof ce=="number"||typeof ce=="bigint")return q=q.get(Y)||null,O(F,q,""+ce,Ae);if(typeof ce=="object"&&ce!==null){switch(ce.$$typeof){case v:return q=q.get(ce.key===null?Y:ce.key)||null,M(F,q,ce,Ae);case _:return q=q.get(ce.key===null?Y:ce.key)||null,Q(F,q,ce,Ae);case L:var We=ce._init;return ce=We(ce._payload),ie(q,F,Y,ce,Ae)}if(ae(ce)||J(ce))return q=q.get(Y)||null,se(F,q,ce,Ae,null);if(typeof ce.then=="function")return ie(q,F,Y,ad(ce),Ae);if(ce.$$typeof===T)return ie(q,F,Y,Ku(F,ce),Ae);od(F,ce)}return null}function Pe(q,F,Y,ce){for(var Ae=null,We=null,ke=F,Le=F=0,tn=null;ke!==null&&Le<Y.length;Le++){ke.index>Le?(tn=ke,ke=null):tn=ke.sibling;var rt=te(q,ke,Y[Le],ce);if(rt===null){ke===null&&(ke=tn);break}i&&ke&&rt.alternate===null&&o(q,ke),F=b(rt,F,Le),We===null?Ae=rt:We.sibling=rt,We=rt,ke=tn}if(Le===Y.length)return c(q,ke),it&&La(q,Le),Ae;if(ke===null){for(;Le<Y.length;Le++)ke=de(q,Y[Le],ce),ke!==null&&(F=b(ke,F,Le),We===null?Ae=ke:We.sibling=ke,We=ke);return it&&La(q,Le),Ae}for(ke=h(ke);Le<Y.length;Le++)tn=ie(ke,q,Le,Y[Le],ce),tn!==null&&(i&&tn.alternate!==null&&ke.delete(tn.key===null?Le:tn.key),F=b(tn,F,Le),We===null?Ae=tn:We.sibling=tn,We=tn);return i&&ke.forEach(function(Qi){return o(q,Qi)}),it&&La(q,Le),Ae}function De(q,F,Y,ce){if(Y==null)throw Error(r(151));for(var Ae=null,We=null,ke=F,Le=F=0,tn=null,rt=Y.next();ke!==null&&!rt.done;Le++,rt=Y.next()){ke.index>Le?(tn=ke,ke=null):tn=ke.sibling;var Qi=te(q,ke,rt.value,ce);if(Qi===null){ke===null&&(ke=tn);break}i&&ke&&Qi.alternate===null&&o(q,ke),F=b(Qi,F,Le),We===null?Ae=Qi:We.sibling=Qi,We=Qi,ke=tn}if(rt.done)return c(q,ke),it&&La(q,Le),Ae;if(ke===null){for(;!rt.done;Le++,rt=Y.next())rt=de(q,rt.value,ce),rt!==null&&(F=b(rt,F,Le),We===null?Ae=rt:We.sibling=rt,We=rt);return it&&La(q,Le),Ae}for(ke=h(ke);!rt.done;Le++,rt=Y.next())rt=ie(ke,q,Le,rt.value,ce),rt!==null&&(i&&rt.alternate!==null&&ke.delete(rt.key===null?Le:rt.key),F=b(rt,F,Le),We===null?Ae=rt:We.sibling=rt,We=rt);return i&&ke.forEach(function(DM){return o(q,DM)}),it&&La(q,Le),Ae}function pt(q,F,Y,ce){if(typeof Y=="object"&&Y!==null&&Y.type===x&&Y.key===null&&(Y=Y.props.children),typeof Y=="object"&&Y!==null){switch(Y.$$typeof){case v:e:{for(var Ae=Y.key;F!==null;){if(F.key===Ae){if(Ae=Y.type,Ae===x){if(F.tag===7){c(q,F.sibling),ce=g(F,Y.props.children),ce.return=q,q=ce;break e}}else if(F.elementType===Ae||typeof Ae=="object"&&Ae!==null&&Ae.$$typeof===L&&_S(Ae)===F.type){c(q,F.sibling),ce=g(F,Y.props),Nl(ce,Y),ce.return=q,q=ce;break e}c(q,F);break}else o(q,F);F=F.sibling}Y.type===x?(ce=Oa(Y.props.children,q.mode,ce,Y.key),ce.return=q,q=ce):(ce=Fu(Y.type,Y.key,Y.props,null,q.mode,ce),Nl(ce,Y),ce.return=q,q=ce)}return k(q);case _:e:{for(Ae=Y.key;F!==null;){if(F.key===Ae)if(F.tag===4&&F.stateNode.containerInfo===Y.containerInfo&&F.stateNode.implementation===Y.implementation){c(q,F.sibling),ce=g(F,Y.children||[]),ce.return=q,q=ce;break e}else{c(q,F);break}else o(q,F);F=F.sibling}ce=Pp(Y,q.mode,ce),ce.return=q,q=ce}return k(q);case L:return Ae=Y._init,Y=Ae(Y._payload),pt(q,F,Y,ce)}if(ae(Y))return Pe(q,F,Y,ce);if(J(Y)){if(Ae=J(Y),typeof Ae!="function")throw Error(r(150));return Y=Ae.call(Y),De(q,F,Y,ce)}if(typeof Y.then=="function")return pt(q,F,ad(Y),ce);if(Y.$$typeof===T)return pt(q,F,Ku(q,Y),ce);od(q,Y)}return typeof Y=="string"&&Y!==""||typeof Y=="number"||typeof Y=="bigint"?(Y=""+Y,F!==null&&F.tag===6?(c(q,F.sibling),ce=g(F,Y),ce.return=q,q=ce):(c(q,F),ce=jp(Y,q.mode,ce),ce.return=q,q=ce),k(q)):c(q,F)}return function(q,F,Y,ce){try{kl=0;var Ae=pt(q,F,Y,ce);return $o=null,Ae}catch(ke){if(ke===_l||ke===Wu)throw ke;var We=Mn(29,ke,null,q.mode);return We.lanes=ce,We.return=q,We}finally{}}}var Ko=ES(!0),SS=ES(!1),ir=ne(null),Or=null;function Mi(i){var o=i.alternate;re($t,$t.current&1),re(ir,i),Or===null&&(o===null||Uo.current!==null||o.memoizedState!==null)&&(Or=i)}function xS(i){if(i.tag===22){if(re($t,$t.current),re(ir,i),Or===null){var o=i.alternate;o!==null&&o.memoizedState!==null&&(Or=i)}}else zi()}function zi(){re($t,$t.current),re(ir,ir.current)}function li(i){$(ir),Or===i&&(Or=null),$($t)}var $t=ne(0);function sd(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==="$?"||ig(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 mm(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 gm={enqueueSetState:function(i,o,c){i=i._reactInternals;var h=Un(),g=Li(h);g.payload=o,c!=null&&(g.callback=c),o=ji(i,g,h),o!==null&&(Fn(o,i,h),Sl(o,i,h))},enqueueReplaceState:function(i,o,c){i=i._reactInternals;var h=Un(),g=Li(h);g.tag=1,g.payload=o,c!=null&&(g.callback=c),o=ji(i,g,h),o!==null&&(Fn(o,i,h),Sl(o,i,h))},enqueueForceUpdate:function(i,o){i=i._reactInternals;var c=Un(),h=Li(c);h.tag=2,o!=null&&(h.callback=o),o=ji(i,h,c),o!==null&&(Fn(o,i,c),Sl(o,i,c))}};function AS(i,o,c,h,g,b,k){return i=i.stateNode,typeof i.shouldComponentUpdate=="function"?i.shouldComponentUpdate(h,b,k):o.prototype&&o.prototype.isPureReactComponent?!fl(c,h)||!fl(g,b):!0}function TS(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&&gm.enqueueReplaceState(o,o.state,null)}function Ua(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 g in i)c[g]===void 0&&(c[g]=i[g])}return c}var ld=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 wS(i){ld(i)}function CS(i){console.error(i)}function RS(i){ld(i)}function cd(i,o){try{var c=i.onUncaughtError;c(o.value,{componentStack:o.stack})}catch(h){setTimeout(function(){throw h})}}function kS(i,o,c){try{var h=i.onCaughtError;h(c.value,{componentStack:c.stack,errorBoundary:o.tag===1?o.stateNode:null})}catch(g){setTimeout(function(){throw g})}}function ym(i,o,c){return c=Li(c),c.tag=3,c.payload={element:null},c.callback=function(){cd(i,o)},c}function NS(i){return i=Li(i),i.tag=3,i}function IS(i,o,c,h){var g=c.type.getDerivedStateFromError;if(typeof g=="function"){var b=h.value;i.payload=function(){return g(b)},i.callback=function(){kS(o,c,h)}}var k=c.stateNode;k!==null&&typeof k.componentDidCatch=="function"&&(i.callback=function(){kS(o,c,h),typeof g!="function"&&(Gi===null?Gi=new Set([this]):Gi.add(this));var O=h.stack;this.componentDidCatch(h.value,{componentStack:O!==null?O:""})})}function DP(i,o,c,h,g){if(c.flags|=32768,h!==null&&typeof h=="object"&&typeof h.then=="function"){if(o=c.alternate,o!==null&&yl(o,c,g,!0),c=ir.current,c!==null){switch(c.tag){case 13:return Or===null?Um():c.alternate===null&&Nt===0&&(Nt=3),c.flags&=-257,c.flags|=65536,c.lanes=g,h===Kp?c.flags|=16384:(o=c.updateQueue,o===null?c.updateQueue=new Set([h]):o.add(h),Hm(i,h,g)),!1;case 22:return c.flags|=65536,h===Kp?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)),Hm(i,h,g)),!1}throw Error(r(435,c.tag))}return Hm(i,h,g),Um(),!1}if(it)return o=ir.current,o!==null?((o.flags&65536)===0&&(o.flags|=256),o.flags|=65536,o.lanes=g,h!==Bp&&(i=Error(r(422),{cause:h}),gl(er(i,c)))):(h!==Bp&&(o=Error(r(423),{cause:h}),gl(er(o,c))),i=i.current.alternate,i.flags|=65536,g&=-g,i.lanes|=g,h=er(h,c),g=ym(i.stateNode,h,g),Zp(i,g),Nt!==4&&(Nt=2)),!1;var b=Error(r(520),{cause:h});if(b=er(b,c),Ml===null?Ml=[b]:Ml.push(b),Nt!==4&&(Nt=2),o===null)return!0;h=er(h,c),c=o;do{switch(c.tag){case 3:return c.flags|=65536,i=g&-g,c.lanes|=i,i=ym(c.stateNode,h,i),Zp(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"&&(Gi===null||!Gi.has(b))))return c.flags|=65536,g&=-g,c.lanes|=g,g=NS(g),IS(g,i,c,h),Zp(c,g),!1}c=c.return}while(c!==null);return!1}var OS=Error(r(461)),Jt=!1;function an(i,o,c,h){o.child=i===null?SS(o,null,c,h):Ko(o,i.child,c,h)}function DS(i,o,c,h,g){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 za(o),h=em(i,o,c,k,b,g),O=tm(),i!==null&&!Jt?(nm(i,o,g),ci(i,o,g)):(it&&O&&Mp(o),o.flags|=1,an(i,o,h,g),o.child)}function LS(i,o,c,h,g){if(i===null){var b=c.type;return typeof b=="function"&&!Lp(b)&&b.defaultProps===void 0&&c.compare===null?(o.tag=15,o.type=b,jS(i,o,b,h,g)):(i=Fu(c.type,null,h,o,o.mode,g),i.ref=o.ref,i.return=o,o.child=i)}if(b=i.child,!Tm(i,g)){var k=b.memoizedProps;if(c=c.compare,c=c!==null?c:fl,c(k,h)&&i.ref===o.ref)return ci(i,o,g)}return o.flags|=1,i=ni(b,h),i.ref=o.ref,i.return=o,o.child=i}function jS(i,o,c,h,g){if(i!==null){var b=i.memoizedProps;if(fl(b,h)&&i.ref===o.ref)if(Jt=!1,o.pendingProps=h=b,Tm(i,g))(i.flags&131072)!==0&&(Jt=!0);else return o.lanes=i.lanes,ci(i,o,g)}return vm(i,o,c,h,g)}function PS(i,o,c){var h=o.pendingProps,g=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(g=o.child=i.child,b=0;g!==null;)b=b|g.lanes|g.childLanes,g=g.sibling;o.childLanes=b&~h}else o.childLanes=0,o.child=null;return MS(i,o,h,c)}if((c&536870912)!==0)o.memoizedState={baseLanes:0,cachePool:null},i!==null&&qu(o,b!==null?b.cachePool:null),b!==null?jE(o,b):Xp(),xS(o);else return o.lanes=o.childLanes=536870912,MS(i,o,b!==null?b.baseLanes|c:c,c)}else b!==null?(qu(o,b.cachePool),jE(o,b),zi(),o.memoizedState=null):(i!==null&&qu(o,null),Xp(),zi());return an(i,o,g,c),o.child}function MS(i,o,c,h){var g=$p();return g=g===null?null:{parent:Gt._currentValue,pool:g},o.memoizedState={baseLanes:c,cachePool:g},i!==null&&qu(o,null),Xp(),xS(o),i!==null&&yl(i,o,h,!0),null}function ud(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 vm(i,o,c,h,g){return za(o),c=em(i,o,c,h,void 0,g),h=tm(),i!==null&&!Jt?(nm(i,o,g),ci(i,o,g)):(it&&h&&Mp(o),o.flags|=1,an(i,o,c,g),o.child)}function zS(i,o,c,h,g,b){return za(o),o.updateQueue=null,c=ME(o,h,c,g),PE(i),h=tm(),i!==null&&!Jt?(nm(i,o,b),ci(i,o,b)):(it&&h&&Mp(o),o.flags|=1,an(i,o,c,b),o.child)}function BS(i,o,c,h,g){if(za(o),o.stateNode===null){var b=Po,k=c.contextType;typeof k=="object"&&k!==null&&(b=pn(k)),b=new c(h,b),o.memoizedState=b.state!==null&&b.state!==void 0?b.state:null,b.updater=gm,o.stateNode=b,b._reactInternals=o,b=o.stateNode,b.props=h,b.state=o.memoizedState,b.refs={},qp(o),k=c.contextType,b.context=typeof k=="object"&&k!==null?pn(k):Po,b.state=o.memoizedState,k=c.getDerivedStateFromProps,typeof k=="function"&&(mm(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&&gm.enqueueReplaceState(b,b.state,null),Al(o,h,b,g),xl(),b.state=o.memoizedState),typeof b.componentDidMount=="function"&&(o.flags|=4194308),h=!0}else if(i===null){b=o.stateNode;var O=o.memoizedProps,M=Ua(c,O);b.props=M;var Q=b.context,se=c.contextType;k=Po,typeof se=="object"&&se!==null&&(k=pn(se));var de=c.getDerivedStateFromProps;se=typeof de=="function"||typeof b.getSnapshotBeforeUpdate=="function",O=o.pendingProps!==O,se||typeof b.UNSAFE_componentWillReceiveProps!="function"&&typeof b.componentWillReceiveProps!="function"||(O||Q!==k)&&TS(o,b,h,k),Di=!1;var te=o.memoizedState;b.state=te,Al(o,h,b,g),xl(),Q=o.memoizedState,O||te!==Q||Di?(typeof de=="function"&&(mm(o,c,de,h),Q=o.memoizedState),(M=Di||AS(o,c,M,h,te,Q,k))?(se||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=M):(typeof b.componentDidMount=="function"&&(o.flags|=4194308),h=!1)}else{b=o.stateNode,Wp(i,o),k=o.memoizedProps,se=Ua(c,k),b.props=se,de=o.pendingProps,te=b.context,Q=c.contextType,M=Po,typeof Q=="object"&&Q!==null&&(M=pn(Q)),O=c.getDerivedStateFromProps,(Q=typeof O=="function"||typeof b.getSnapshotBeforeUpdate=="function")||typeof b.UNSAFE_componentWillReceiveProps!="function"&&typeof b.componentWillReceiveProps!="function"||(k!==de||te!==M)&&TS(o,b,h,M),Di=!1,te=o.memoizedState,b.state=te,Al(o,h,b,g),xl();var ie=o.memoizedState;k!==de||te!==ie||Di||i!==null&&i.dependencies!==null&&$u(i.dependencies)?(typeof O=="function"&&(mm(o,c,O,h),ie=o.memoizedState),(se=Di||AS(o,c,se,h,te,ie,M)||i!==null&&i.dependencies!==null&&$u(i.dependencies))?(Q||typeof b.UNSAFE_componentWillUpdate!="function"&&typeof b.componentWillUpdate!="function"||(typeof b.componentWillUpdate=="function"&&b.componentWillUpdate(h,ie,M),typeof b.UNSAFE_componentWillUpdate=="function"&&b.UNSAFE_componentWillUpdate(h,ie,M)),typeof b.componentDidUpdate=="function"&&(o.flags|=4),typeof b.getSnapshotBeforeUpdate=="function"&&(o.flags|=1024)):(typeof b.componentDidUpdate!="function"||k===i.memoizedProps&&te===i.memoizedState||(o.flags|=4),typeof b.getSnapshotBeforeUpdate!="function"||k===i.memoizedProps&&te===i.memoizedState||(o.flags|=1024),o.memoizedProps=h,o.memoizedState=ie),b.props=h,b.state=ie,b.context=M,h=se):(typeof b.componentDidUpdate!="function"||k===i.memoizedProps&&te===i.memoizedState||(o.flags|=4),typeof b.getSnapshotBeforeUpdate!="function"||k===i.memoizedProps&&te===i.memoizedState||(o.flags|=1024),h=!1)}return b=h,ud(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=Ko(o,i.child,null,g),o.child=Ko(o,null,c,g)):an(i,o,c,g),o.memoizedState=b.state,i=o.child):i=ci(i,o,g),i}function VS(i,o,c,h){return ml(),o.flags|=256,an(i,o,c,h),o.child}var bm={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function _m(i){return{baseLanes:i,cachePool:CE()}}function Em(i,o,c){return i=i!==null?i.childLanes&~c:0,o&&(i|=ar),i}function US(i,o,c){var h=o.pendingProps,g=!1,b=(o.flags&128)!==0,k;if((k=b)||(k=i!==null&&i.memoizedState===null?!1:($t.current&2)!==0),k&&(g=!0,o.flags&=-129),k=(o.flags&32)!==0,o.flags&=-33,i===null){if(it){if(g?Mi(o):zi(),it){var O=kt,M;if(M=O){e:{for(M=O,O=Ir;M.nodeType!==8;){if(!O){O=null;break e}if(M=yr(M.nextSibling),M===null){O=null;break e}}O=M}O!==null?(o.memoizedState={dehydrated:O,treeContext:Da!==null?{id:ri,overflow:ii}:null,retryLane:536870912,hydrationErrors:null},M=Mn(18,null,null,0),M.stateNode=O,M.return=o,o.child=M,_n=o,kt=null,M=!0):M=!1}M||Pa(o)}if(O=o.memoizedState,O!==null&&(O=O.dehydrated,O!==null))return ig(O)?o.lanes=32:o.lanes=536870912,null;li(o)}return O=h.children,h=h.fallback,g?(zi(),g=o.mode,O=dd({mode:"hidden",children:O},g),h=Oa(h,g,c,null),O.return=o,h.return=o,O.sibling=h,o.child=O,g=o.child,g.memoizedState=_m(c),g.childLanes=Em(i,k,c),o.memoizedState=bm,h):(Mi(o),Sm(o,O))}if(M=i.memoizedState,M!==null&&(O=M.dehydrated,O!==null)){if(b)o.flags&256?(Mi(o),o.flags&=-257,o=xm(i,o,c)):o.memoizedState!==null?(zi(),o.child=i.child,o.flags|=128,o=null):(zi(),g=h.fallback,O=o.mode,h=dd({mode:"visible",children:h.children},O),g=Oa(g,O,c,null),g.flags|=2,h.return=o,g.return=o,h.sibling=g,o.child=h,Ko(o,i.child,null,c),h=o.child,h.memoizedState=_m(c),h.childLanes=Em(i,k,c),o.memoizedState=bm,o=g);else if(Mi(o),ig(O)){if(k=O.nextSibling&&O.nextSibling.dataset,k)var Q=k.dgst;k=Q,h=Error(r(419)),h.stack="",h.digest=k,gl({value:h,source:null,stack:null}),o=xm(i,o,c)}else if(Jt||yl(i,o,c,!1),k=(c&i.childLanes)!==0,Jt||k){if(k=yt,k!==null&&(h=c&-c,h=(h&42)!==0?1:ap(h),h=(h&(k.suspendedLanes|c))!==0?0:h,h!==0&&h!==M.retryLane))throw M.retryLane=h,jo(i,h),Fn(k,i,h),OS;O.data==="$?"||Um(),o=xm(i,o,c)}else O.data==="$?"?(o.flags|=192,o.child=i.child,o=null):(i=M.treeContext,kt=yr(O.nextSibling),_n=o,it=!0,ja=null,Ir=!1,i!==null&&(nr[rr++]=ri,nr[rr++]=ii,nr[rr++]=Da,ri=i.id,ii=i.overflow,Da=o),o=Sm(o,h.children),o.flags|=4096);return o}return g?(zi(),g=h.fallback,O=o.mode,M=i.child,Q=M.sibling,h=ni(M,{mode:"hidden",children:h.children}),h.subtreeFlags=M.subtreeFlags&65011712,Q!==null?g=ni(Q,g):(g=Oa(g,O,c,null),g.flags|=2),g.return=o,h.return=o,h.sibling=g,o.child=h,h=g,g=o.child,O=i.child.memoizedState,O===null?O=_m(c):(M=O.cachePool,M!==null?(Q=Gt._currentValue,M=M.parent!==Q?{parent:Q,pool:Q}:M):M=CE(),O={baseLanes:O.baseLanes|c,cachePool:M}),g.memoizedState=O,g.childLanes=Em(i,k,c),o.memoizedState=bm,h):(Mi(o),c=i.child,i=c.sibling,c=ni(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 Sm(i,o){return o=dd({mode:"visible",children:o},i.mode),o.return=i,i.child=o}function dd(i,o){return i=Mn(22,i,null,o),i.lanes=0,i.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},i}function xm(i,o,c){return Ko(o,i.child,null,c),i=Sm(o,o.pendingProps.children),i.flags|=2,o.memoizedState=null,i}function FS(i,o,c){i.lanes|=o;var h=i.alternate;h!==null&&(h.lanes|=o),Up(i.return,o,c)}function Am(i,o,c,h,g){var b=i.memoizedState;b===null?i.memoizedState={isBackwards:o,rendering:null,renderingStartTime:0,last:h,tail:c,tailMode:g}:(b.isBackwards=o,b.rendering=null,b.renderingStartTime=0,b.last=h,b.tail=c,b.tailMode=g)}function HS(i,o,c){var h=o.pendingProps,g=h.revealOrder,b=h.tail;if(an(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&&FS(i,c,o);else if(i.tag===19)FS(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(re($t,h),g){case"forwards":for(c=o.child,g=null;c!==null;)i=c.alternate,i!==null&&sd(i)===null&&(g=c),c=c.sibling;c=g,c===null?(g=o.child,o.child=null):(g=c.sibling,c.sibling=null),Am(o,!1,g,c,b);break;case"backwards":for(c=null,g=o.child,o.child=null;g!==null;){if(i=g.alternate,i!==null&&sd(i)===null){o.child=g;break}i=g.sibling,g.sibling=c,c=g,g=i}Am(o,!0,c,null,b);break;case"together":Am(o,!1,null,null,void 0);break;default:o.memoizedState=null}return o.child}function ci(i,o,c){if(i!==null&&(o.dependencies=i.dependencies),Hi|=o.lanes,(c&o.childLanes)===0)if(i!==null){if(yl(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=ni(i,i.pendingProps),o.child=c,c.return=o;i.sibling!==null;)i=i.sibling,c=c.sibling=ni(i,i.pendingProps),c.return=o;c.sibling=null}return o.child}function Tm(i,o){return(i.lanes&o)!==0?!0:(i=i.dependencies,!!(i!==null&&$u(i)))}function LP(i,o,c){switch(o.tag){case 3:xe(o,o.stateNode.containerInfo),Oi(o,Gt,i.memoizedState.cache),ml();break;case 27:case 5:Ve(o);break;case 4:xe(o,o.stateNode.containerInfo);break;case 10:Oi(o,o.type,o.memoizedProps.value);break;case 13:var h=o.memoizedState;if(h!==null)return h.dehydrated!==null?(Mi(o),o.flags|=128,null):(c&o.child.childLanes)!==0?US(i,o,c):(Mi(o),i=ci(i,o,c),i!==null?i.sibling:null);Mi(o);break;case 19:var g=(i.flags&128)!==0;if(h=(c&o.childLanes)!==0,h||(yl(i,o,c,!1),h=(c&o.childLanes)!==0),g){if(h)return HS(i,o,c);o.flags|=128}if(g=o.memoizedState,g!==null&&(g.rendering=null,g.tail=null,g.lastEffect=null),re($t,$t.current),h)break;return null;case 22:case 23:return o.lanes=0,PS(i,o,c);case 24:Oi(o,Gt,i.memoizedState.cache)}return ci(i,o,c)}function GS(i,o,c){if(i!==null)if(i.memoizedProps!==o.pendingProps)Jt=!0;else{if(!Tm(i,c)&&(o.flags&128)===0)return Jt=!1,LP(i,o,c);Jt=(i.flags&131072)!==0}else Jt=!1,it&&(o.flags&1048576)!==0&&_E(o,Gu,o.index);switch(o.lanes=0,o.tag){case 16:e:{i=o.pendingProps;var h=o.elementType,g=h._init;if(h=g(h._payload),o.type=h,typeof h=="function")Lp(h)?(i=Ua(h,i),o.tag=1,o=BS(null,o,h,i,c)):(o.tag=0,o=vm(null,o,h,i,c));else{if(h!=null){if(g=h.$$typeof,g===R){o.tag=11,o=DS(null,o,h,i,c);break e}else if(g===D){o.tag=14,o=LS(null,o,h,i,c);break e}}throw o=Z(h)||h,Error(r(306,o,""))}}return o;case 0:return vm(i,o,o.type,o.pendingProps,c);case 1:return h=o.type,g=Ua(h,o.pendingProps),BS(i,o,h,g,c);case 3:e:{if(xe(o,o.stateNode.containerInfo),i===null)throw Error(r(387));h=o.pendingProps;var b=o.memoizedState;g=b.element,Wp(i,o),Al(o,h,null,c);var k=o.memoizedState;if(h=k.cache,Oi(o,Gt,h),h!==b.cache&&Fp(o,[Gt],c,!0),xl(),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=VS(i,o,h,c);break e}else if(h!==g){g=er(Error(r(424)),o),gl(g),o=VS(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(kt=yr(i.firstChild),_n=o,it=!0,ja=null,Ir=!0,c=SS(o,null,h,c),o.child=c;c;)c.flags=c.flags&-3|4096,c=c.sibling}else{if(ml(),h===g){o=ci(i,o,c);break e}an(i,o,h,c)}o=o.child}return o;case 26:return ud(i,o),i===null?(c=Wx(o.type,null,o.pendingProps,null))?o.memoizedState=c:it||(c=o.type,i=o.pendingProps,h=Td(be.current).createElement(c),h[hn]=o,h[Rn]=i,sn(h,c,i),Qt(h),o.stateNode=h):o.memoizedState=Wx(o.type,i.memoizedProps,o.pendingProps,i.memoizedState),null;case 27:return Ve(o),i===null&&it&&(h=o.stateNode=$x(o.type,o.pendingProps,be.current),_n=o,Ir=!0,g=kt,qi(o.type)?(ag=g,kt=yr(h.firstChild)):kt=g),an(i,o,o.pendingProps.children,c),ud(i,o),i===null&&(o.flags|=4194304),o.child;case 5:return i===null&&it&&((g=h=kt)&&(h=lM(h,o.type,o.pendingProps,Ir),h!==null?(o.stateNode=h,_n=o,kt=yr(h.firstChild),Ir=!1,g=!0):g=!1),g||Pa(o)),Ve(o),g=o.type,b=o.pendingProps,k=i!==null?i.memoizedProps:null,h=b.children,tg(g,b)?h=null:k!==null&&tg(g,k)&&(o.flags|=32),o.memoizedState!==null&&(g=em(i,o,wP,null,null,c),Kl._currentValue=g),ud(i,o),an(i,o,h,c),o.child;case 6:return i===null&&it&&((i=c=kt)&&(c=cM(c,o.pendingProps,Ir),c!==null?(o.stateNode=c,_n=o,kt=null,i=!0):i=!1),i||Pa(o)),null;case 13:return US(i,o,c);case 4:return xe(o,o.stateNode.containerInfo),h=o.pendingProps,i===null?o.child=Ko(o,null,h,c):an(i,o,h,c),o.child;case 11:return DS(i,o,o.type,o.pendingProps,c);case 7:return an(i,o,o.pendingProps,c),o.child;case 8:return an(i,o,o.pendingProps.children,c),o.child;case 12:return an(i,o,o.pendingProps.children,c),o.child;case 10:return h=o.pendingProps,Oi(o,o.type,h.value),an(i,o,h.children,c),o.child;case 9:return g=o.type._context,h=o.pendingProps.children,za(o),g=pn(g),h=h(g),o.flags|=1,an(i,o,h,c),o.child;case 14:return LS(i,o,o.type,o.pendingProps,c);case 15:return jS(i,o,o.type,o.pendingProps,c);case 19:return HS(i,o,c);case 31:return h=o.pendingProps,c=o.mode,h={mode:h.mode,children:h.children},i===null?(c=dd(h,c),c.ref=o.ref,o.child=c,c.return=o,o=c):(c=ni(i.child,h),c.ref=o.ref,o.child=c,c.return=o,o=c),o;case 22:return PS(i,o,c);case 24:return za(o),h=pn(Gt),i===null?(g=$p(),g===null&&(g=yt,b=Hp(),g.pooledCache=b,b.refCount++,b!==null&&(g.pooledCacheLanes|=c),g=b),o.memoizedState={parent:h,cache:g},qp(o),Oi(o,Gt,g)):((i.lanes&c)!==0&&(Wp(i,o),Al(o,null,null,c),xl()),g=i.memoizedState,b=o.memoizedState,g.parent!==h?(g={parent:h,cache:h},o.memoizedState=g,o.lanes===0&&(o.memoizedState=o.updateQueue.baseState=g),Oi(o,Gt,h)):(h=b.cache,Oi(o,Gt,h),h!==g.cache&&Fp(o,[Gt],c,!0))),an(i,o,o.pendingProps.children,c),o.child;case 29:throw o.pendingProps}throw Error(r(156,o.tag))}function ui(i){i.flags|=4}function $S(i,o){if(o.type!=="stylesheet"||(o.state.loading&4)!==0)i.flags&=-16777217;else if(i.flags|=16777216,!Jx(o)){if(o=ir.current,o!==null&&((et&4194048)===et?Or!==null:(et&62914560)!==et&&(et&536870912)===0||o!==Or))throw El=Kp,RE;i.flags|=8192}}function fd(i,o){o!==null&&(i.flags|=4),i.flags&16384&&(o=i.tag!==22?x0():536870912,i.lanes|=o,Yo|=o)}function Il(i,o){if(!it)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 At(i){var o=i.alternate!==null&&i.alternate.child===i.child,c=0,h=0;if(o)for(var g=i.child;g!==null;)c|=g.lanes|g.childLanes,h|=g.subtreeFlags&65011712,h|=g.flags&65011712,g.return=i,g=g.sibling;else for(g=i.child;g!==null;)c|=g.lanes|g.childLanes,h|=g.subtreeFlags,h|=g.flags,g.return=i,g=g.sibling;return i.subtreeFlags|=h,i.childLanes=c,o}function jP(i,o,c){var h=o.pendingProps;switch(zp(o),o.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return At(o),null;case 1:return At(o),null;case 3:return c=o.stateNode,h=null,i!==null&&(h=i.memoizedState.cache),o.memoizedState.cache!==h&&(o.flags|=2048),oi(Gt),je(),c.pendingContext&&(c.context=c.pendingContext,c.pendingContext=null),(i===null||i.child===null)&&(pl(o)?ui(o):i===null||i.memoizedState.isDehydrated&&(o.flags&256)===0||(o.flags|=1024,xE())),At(o),null;case 26:return c=o.memoizedState,i===null?(ui(o),c!==null?(At(o),$S(o,c)):(At(o),o.flags&=-16777217)):c?c!==i.memoizedState?(ui(o),At(o),$S(o,c)):(At(o),o.flags&=-16777217):(i.memoizedProps!==h&&ui(o),At(o),o.flags&=-16777217),null;case 27:Xe(o),c=be.current;var g=o.type;if(i!==null&&o.stateNode!=null)i.memoizedProps!==h&&ui(o);else{if(!h){if(o.stateNode===null)throw Error(r(166));return At(o),null}i=ue.current,pl(o)?EE(o):(i=$x(g,h,c),o.stateNode=i,ui(o))}return At(o),null;case 5:if(Xe(o),c=o.type,i!==null&&o.stateNode!=null)i.memoizedProps!==h&&ui(o);else{if(!h){if(o.stateNode===null)throw Error(r(166));return At(o),null}if(i=ue.current,pl(o))EE(o);else{switch(g=Td(be.current),i){case 1:i=g.createElementNS("http://www.w3.org/2000/svg",c);break;case 2:i=g.createElementNS("http://www.w3.org/1998/Math/MathML",c);break;default:switch(c){case"svg":i=g.createElementNS("http://www.w3.org/2000/svg",c);break;case"math":i=g.createElementNS("http://www.w3.org/1998/Math/MathML",c);break;case"script":i=g.createElement("div"),i.innerHTML="<script><\/script>",i=i.removeChild(i.firstChild);break;case"select":i=typeof h.is=="string"?g.createElement("select",{is:h.is}):g.createElement("select"),h.multiple?i.multiple=!0:h.size&&(i.size=h.size);break;default:i=typeof h.is=="string"?g.createElement(c,{is:h.is}):g.createElement(c)}}i[hn]=o,i[Rn]=h;e:for(g=o.child;g!==null;){if(g.tag===5||g.tag===6)i.appendChild(g.stateNode);else if(g.tag!==4&&g.tag!==27&&g.child!==null){g.child.return=g,g=g.child;continue}if(g===o)break e;for(;g.sibling===null;){if(g.return===null||g.return===o)break e;g=g.return}g.sibling.return=g.return,g=g.sibling}o.stateNode=i;e:switch(sn(i,c,h),c){case"button":case"input":case"select":case"textarea":i=!!h.autoFocus;break e;case"img":i=!0;break e;default:i=!1}i&&ui(o)}}return At(o),o.flags&=-16777217,null;case 6:if(i&&o.stateNode!=null)i.memoizedProps!==h&&ui(o);else{if(typeof h!="string"&&o.stateNode===null)throw Error(r(166));if(i=be.current,pl(o)){if(i=o.stateNode,c=o.memoizedProps,h=null,g=_n,g!==null)switch(g.tag){case 27:case 5:h=g.memoizedProps}i[hn]=o,i=!!(i.nodeValue===c||h!==null&&h.suppressHydrationWarning===!0||zx(i.nodeValue,c)),i||Pa(o)}else i=Td(i).createTextNode(h),i[hn]=o,o.stateNode=i}return At(o),null;case 13:if(h=o.memoizedState,i===null||i.memoizedState!==null&&i.memoizedState.dehydrated!==null){if(g=pl(o),h!==null&&h.dehydrated!==null){if(i===null){if(!g)throw Error(r(318));if(g=o.memoizedState,g=g!==null?g.dehydrated:null,!g)throw Error(r(317));g[hn]=o}else ml(),(o.flags&128)===0&&(o.memoizedState=null),o.flags|=4;At(o),g=!1}else g=xE(),i!==null&&i.memoizedState!==null&&(i.memoizedState.hydrationErrors=g),g=!0;if(!g)return o.flags&256?(li(o),o):(li(o),null)}if(li(o),(o.flags&128)!==0)return o.lanes=c,o;if(c=h!==null,i=i!==null&&i.memoizedState!==null,c){h=o.child,g=null,h.alternate!==null&&h.alternate.memoizedState!==null&&h.alternate.memoizedState.cachePool!==null&&(g=h.alternate.memoizedState.cachePool.pool);var b=null;h.memoizedState!==null&&h.memoizedState.cachePool!==null&&(b=h.memoizedState.cachePool.pool),b!==g&&(h.flags|=2048)}return c!==i&&c&&(o.child.flags|=8192),fd(o,o.updateQueue),At(o),null;case 4:return je(),i===null&&Ym(o.stateNode.containerInfo),At(o),null;case 10:return oi(o.type),At(o),null;case 19:if($($t),g=o.memoizedState,g===null)return At(o),null;if(h=(o.flags&128)!==0,b=g.rendering,b===null)if(h)Il(g,!1);else{if(Nt!==0||i!==null&&(i.flags&128)!==0)for(i=o.child;i!==null;){if(b=sd(i),b!==null){for(o.flags|=128,Il(g,!1),i=b.updateQueue,o.updateQueue=i,fd(o,i),o.subtreeFlags=0,i=c,c=o.child;c!==null;)bE(c,i),c=c.sibling;return re($t,$t.current&1|2),o.child}i=i.sibling}g.tail!==null&&fn()>md&&(o.flags|=128,h=!0,Il(g,!1),o.lanes=4194304)}else{if(!h)if(i=sd(b),i!==null){if(o.flags|=128,h=!0,i=i.updateQueue,o.updateQueue=i,fd(o,i),Il(g,!0),g.tail===null&&g.tailMode==="hidden"&&!b.alternate&&!it)return At(o),null}else 2*fn()-g.renderingStartTime>md&&c!==536870912&&(o.flags|=128,h=!0,Il(g,!1),o.lanes=4194304);g.isBackwards?(b.sibling=o.child,o.child=b):(i=g.last,i!==null?i.sibling=b:o.child=b,g.last=b)}return g.tail!==null?(o=g.tail,g.rendering=o,g.tail=o.sibling,g.renderingStartTime=fn(),o.sibling=null,i=$t.current,re($t,h?i&1|2:i&1),o):(At(o),null);case 22:case 23:return li(o),Qp(),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&&(At(o),o.subtreeFlags&6&&(o.flags|=8192)):At(o),c=o.updateQueue,c!==null&&fd(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&&$(Ba),null;case 24:return c=null,i!==null&&(c=i.memoizedState.cache),o.memoizedState.cache!==c&&(o.flags|=2048),oi(Gt),At(o),null;case 25:return null;case 30:return null}throw Error(r(156,o.tag))}function PP(i,o){switch(zp(o),o.tag){case 1:return i=o.flags,i&65536?(o.flags=i&-65537|128,o):null;case 3:return oi(Gt),je(),i=o.flags,(i&65536)!==0&&(i&128)===0?(o.flags=i&-65537|128,o):null;case 26:case 27:case 5:return Xe(o),null;case 13:if(li(o),i=o.memoizedState,i!==null&&i.dehydrated!==null){if(o.alternate===null)throw Error(r(340));ml()}return i=o.flags,i&65536?(o.flags=i&-65537|128,o):null;case 19:return $($t),null;case 4:return je(),null;case 10:return oi(o.type),null;case 22:case 23:return li(o),Qp(),i!==null&&$(Ba),i=o.flags,i&65536?(o.flags=i&-65537|128,o):null;case 24:return oi(Gt),null;case 25:return null;default:return null}}function KS(i,o){switch(zp(o),o.tag){case 3:oi(Gt),je();break;case 26:case 27:case 5:Xe(o);break;case 4:je();break;case 13:li(o);break;case 19:$($t);break;case 10:oi(o.type);break;case 22:case 23:li(o),Qp(),i!==null&&$(Ba);break;case 24:oi(Gt)}}function Ol(i,o){try{var c=o.updateQueue,h=c!==null?c.lastEffect:null;if(h!==null){var g=h.next;c=g;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!==g)}}catch(O){mt(o,o.return,O)}}function Bi(i,o,c){try{var h=o.updateQueue,g=h!==null?h.lastEffect:null;if(g!==null){var b=g.next;h=b;do{if((h.tag&i)===i){var k=h.inst,O=k.destroy;if(O!==void 0){k.destroy=void 0,g=o;var M=c,Q=O;try{Q()}catch(se){mt(g,M,se)}}}h=h.next}while(h!==b)}}catch(se){mt(o,o.return,se)}}function qS(i){var o=i.updateQueue;if(o!==null){var c=i.stateNode;try{LE(o,c)}catch(h){mt(i,i.return,h)}}}function WS(i,o,c){c.props=Ua(i.type,i.memoizedProps),c.state=i.memoizedState;try{c.componentWillUnmount()}catch(h){mt(i,o,h)}}function Dl(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(g){mt(i,o,g)}}function Dr(i,o){var c=i.ref,h=i.refCleanup;if(c!==null)if(typeof h=="function")try{h()}catch(g){mt(i,o,g)}finally{i.refCleanup=null,i=i.alternate,i!=null&&(i.refCleanup=null)}else if(typeof c=="function")try{c(null)}catch(g){mt(i,o,g)}else c.current=null}function ZS(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(g){mt(i,i.return,g)}}function wm(i,o,c){try{var h=i.stateNode;rM(h,i.type,c,o),h[Rn]=o}catch(g){mt(i,i.return,g)}}function YS(i){return i.tag===5||i.tag===3||i.tag===26||i.tag===27&&qi(i.type)||i.tag===4}function Cm(i){e:for(;;){for(;i.sibling===null;){if(i.return===null||YS(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&&qi(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 Rm(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=Ad));else if(h!==4&&(h===27&&qi(i.type)&&(c=i.stateNode,o=null),i=i.child,i!==null))for(Rm(i,o,c),i=i.sibling;i!==null;)Rm(i,o,c),i=i.sibling}function hd(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&&qi(i.type)&&(c=i.stateNode),i=i.child,i!==null))for(hd(i,o,c),i=i.sibling;i!==null;)hd(i,o,c),i=i.sibling}function XS(i){var o=i.stateNode,c=i.memoizedProps;try{for(var h=i.type,g=o.attributes;g.length;)o.removeAttributeNode(g[0]);sn(o,h,c),o[hn]=i,o[Rn]=c}catch(b){mt(i,i.return,b)}}var di=!1,Dt=!1,km=!1,QS=typeof WeakSet=="function"?WeakSet:Set,en=null;function MP(i,o){if(i=i.containerInfo,Jm=Id,i=cE(i),Cp(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 g=h.anchorOffset,b=h.focusNode;h=h.focusOffset;try{c.nodeType,b.nodeType}catch{c=null;break e}var k=0,O=-1,M=-1,Q=0,se=0,de=i,te=null;t:for(;;){for(var ie;de!==c||g!==0&&de.nodeType!==3||(O=k+g),de!==b||h!==0&&de.nodeType!==3||(M=k+h),de.nodeType===3&&(k+=de.nodeValue.length),(ie=de.firstChild)!==null;)te=de,de=ie;for(;;){if(de===i)break t;if(te===c&&++Q===g&&(O=k),te===b&&++se===h&&(M=k),(ie=de.nextSibling)!==null)break;de=te,te=de.parentNode}de=ie}c=O===-1||M===-1?null:{start:O,end:M}}else c=null}c=c||{start:0,end:0}}else c=null;for(eg={focusedElem:i,selectionRange:c},Id=!1,en=o;en!==null;)if(o=en,i=o.child,(o.subtreeFlags&1024)!==0&&i!==null)i.return=o,en=i;else for(;en!==null;){switch(o=en,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,g=b.memoizedProps,b=b.memoizedState,h=c.stateNode;try{var Pe=Ua(c.type,g,c.elementType===c.type);i=h.getSnapshotBeforeUpdate(Pe,b),h.__reactInternalSnapshotBeforeUpdate=i}catch(De){mt(c,c.return,De)}}break;case 3:if((i&1024)!==0){if(i=o.stateNode.containerInfo,c=i.nodeType,c===9)rg(i);else if(c===1)switch(i.nodeName){case"HEAD":case"HTML":case"BODY":rg(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,en=i;break}en=o.return}}function JS(i,o,c){var h=c.flags;switch(c.tag){case 0:case 11:case 15:Vi(i,c),h&4&&Ol(5,c);break;case 1:if(Vi(i,c),h&4)if(i=c.stateNode,o===null)try{i.componentDidMount()}catch(k){mt(c,c.return,k)}else{var g=Ua(c.type,o.memoizedProps);o=o.memoizedState;try{i.componentDidUpdate(g,o,i.__reactInternalSnapshotBeforeUpdate)}catch(k){mt(c,c.return,k)}}h&64&&qS(c),h&512&&Dl(c,c.return);break;case 3:if(Vi(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{LE(i,o)}catch(k){mt(c,c.return,k)}}break;case 27:o===null&&h&4&&XS(c);case 26:case 5:Vi(i,c),o===null&&h&4&&ZS(c),h&512&&Dl(c,c.return);break;case 12:Vi(i,c);break;case 13:Vi(i,c),h&4&&nx(i,c),h&64&&(i=c.memoizedState,i!==null&&(i=i.dehydrated,i!==null&&(c=KP.bind(null,c),uM(i,c))));break;case 22:if(h=c.memoizedState!==null||di,!h){o=o!==null&&o.memoizedState!==null||Dt,g=di;var b=Dt;di=h,(Dt=o)&&!b?Ui(i,c,(c.subtreeFlags&8772)!==0):Vi(i,c),di=g,Dt=b}break;case 30:break;default:Vi(i,c)}}function ex(i){var o=i.alternate;o!==null&&(i.alternate=null,ex(o)),i.child=null,i.deletions=null,i.sibling=null,i.tag===5&&(o=i.stateNode,o!==null&&lp(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 _t=null,In=!1;function fi(i,o,c){for(c=c.child;c!==null;)tx(i,o,c),c=c.sibling}function tx(i,o,c){if(Ue&&typeof Ue.onCommitFiberUnmount=="function")try{Ue.onCommitFiberUnmount(Ce,c)}catch{}switch(c.tag){case 26:Dt||Dr(c,o),fi(i,o,c),c.memoizedState?c.memoizedState.count--:c.stateNode&&(c=c.stateNode,c.parentNode.removeChild(c));break;case 27:Dt||Dr(c,o);var h=_t,g=In;qi(c.type)&&(_t=c.stateNode,In=!1),fi(i,o,c),Fl(c.stateNode),_t=h,In=g;break;case 5:Dt||Dr(c,o);case 6:if(h=_t,g=In,_t=null,fi(i,o,c),_t=h,In=g,_t!==null)if(In)try{(_t.nodeType===9?_t.body:_t.nodeName==="HTML"?_t.ownerDocument.body:_t).removeChild(c.stateNode)}catch(b){mt(c,o,b)}else try{_t.removeChild(c.stateNode)}catch(b){mt(c,o,b)}break;case 18:_t!==null&&(In?(i=_t,Hx(i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i,c.stateNode),Yl(i)):Hx(_t,c.stateNode));break;case 4:h=_t,g=In,_t=c.stateNode.containerInfo,In=!0,fi(i,o,c),_t=h,In=g;break;case 0:case 11:case 14:case 15:Dt||Bi(2,c,o),Dt||Bi(4,c,o),fi(i,o,c);break;case 1:Dt||(Dr(c,o),h=c.stateNode,typeof h.componentWillUnmount=="function"&&WS(c,o,h)),fi(i,o,c);break;case 21:fi(i,o,c);break;case 22:Dt=(h=Dt)||c.memoizedState!==null,fi(i,o,c),Dt=h;break;default:fi(i,o,c)}}function nx(i,o){if(o.memoizedState===null&&(i=o.alternate,i!==null&&(i=i.memoizedState,i!==null&&(i=i.dehydrated,i!==null))))try{Yl(i)}catch(c){mt(o,o.return,c)}}function zP(i){switch(i.tag){case 13:case 19:var o=i.stateNode;return o===null&&(o=i.stateNode=new QS),o;case 22:return i=i.stateNode,o=i._retryCache,o===null&&(o=i._retryCache=new QS),o;default:throw Error(r(435,i.tag))}}function Nm(i,o){var c=zP(i);o.forEach(function(h){var g=qP.bind(null,i,h);c.has(h)||(c.add(h),h.then(g,g))})}function zn(i,o){var c=o.deletions;if(c!==null)for(var h=0;h<c.length;h++){var g=c[h],b=i,k=o,O=k;e:for(;O!==null;){switch(O.tag){case 27:if(qi(O.type)){_t=O.stateNode,In=!1;break e}break;case 5:_t=O.stateNode,In=!1;break e;case 3:case 4:_t=O.stateNode.containerInfo,In=!0;break e}O=O.return}if(_t===null)throw Error(r(160));tx(b,k,g),_t=null,In=!1,b=g.alternate,b!==null&&(b.return=null),g.return=null}if(o.subtreeFlags&13878)for(o=o.child;o!==null;)rx(o,i),o=o.sibling}var gr=null;function rx(i,o){var c=i.alternate,h=i.flags;switch(i.tag){case 0:case 11:case 14:case 15:zn(o,i),Bn(i),h&4&&(Bi(3,i,i.return),Ol(3,i),Bi(5,i,i.return));break;case 1:zn(o,i),Bn(i),h&512&&(Dt||c===null||Dr(c,c.return)),h&64&&di&&(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 g=gr;if(zn(o,i),Bn(i),h&512&&(Dt||c===null||Dr(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,g=g.ownerDocument||g;t:switch(h){case"title":b=g.getElementsByTagName("title")[0],(!b||b[rl]||b[hn]||b.namespaceURI==="http://www.w3.org/2000/svg"||b.hasAttribute("itemprop"))&&(b=g.createElement(h),g.head.insertBefore(b,g.querySelector("head > title"))),sn(b,h,c),b[hn]=i,Qt(b),h=b;break e;case"link":var k=Xx("link","href",g).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=g.createElement(h),sn(b,h,c),g.head.appendChild(b);break;case"meta":if(k=Xx("meta","content",g).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=g.createElement(h),sn(b,h,c),g.head.appendChild(b);break;default:throw Error(r(468,h))}b[hn]=i,Qt(b),h=b}i.stateNode=h}else Qx(g,i.type,i.stateNode);else i.stateNode=Yx(g,h,i.memoizedProps);else b!==h?(b===null?c.stateNode!==null&&(c=c.stateNode,c.parentNode.removeChild(c)):b.count--,h===null?Qx(g,i.type,i.stateNode):Yx(g,h,i.memoizedProps)):h===null&&i.stateNode!==null&&wm(i,i.memoizedProps,c.memoizedProps)}break;case 27:zn(o,i),Bn(i),h&512&&(Dt||c===null||Dr(c,c.return)),c!==null&&h&4&&wm(i,i.memoizedProps,c.memoizedProps);break;case 5:if(zn(o,i),Bn(i),h&512&&(Dt||c===null||Dr(c,c.return)),i.flags&32){g=i.stateNode;try{Ro(g,"")}catch(ie){mt(i,i.return,ie)}}h&4&&i.stateNode!=null&&(g=i.memoizedProps,wm(i,g,c!==null?c.memoizedProps:g)),h&1024&&(km=!0);break;case 6:if(zn(o,i),Bn(i),h&4){if(i.stateNode===null)throw Error(r(162));h=i.memoizedProps,c=i.stateNode;try{c.nodeValue=h}catch(ie){mt(i,i.return,ie)}}break;case 3:if(Rd=null,g=gr,gr=wd(o.containerInfo),zn(o,i),gr=g,Bn(i),h&4&&c!==null&&c.memoizedState.isDehydrated)try{Yl(o.containerInfo)}catch(ie){mt(i,i.return,ie)}km&&(km=!1,ix(i));break;case 4:h=gr,gr=wd(i.stateNode.containerInfo),zn(o,i),Bn(i),gr=h;break;case 12:zn(o,i),Bn(i);break;case 13:zn(o,i),Bn(i),i.child.flags&8192&&i.memoizedState!==null!=(c!==null&&c.memoizedState!==null)&&(Pm=fn()),h&4&&(h=i.updateQueue,h!==null&&(i.updateQueue=null,Nm(i,h)));break;case 22:g=i.memoizedState!==null;var M=c!==null&&c.memoizedState!==null,Q=di,se=Dt;if(di=Q||g,Dt=se||M,zn(o,i),Dt=se,di=Q,Bn(i),h&8192)e:for(o=i.stateNode,o._visibility=g?o._visibility&-2:o._visibility|1,g&&(c===null||M||di||Dt||Fa(i)),c=null,o=i;;){if(o.tag===5||o.tag===26){if(c===null){M=c=o;try{if(b=M.stateNode,g)k=b.style,typeof k.setProperty=="function"?k.setProperty("display","none","important"):k.display="none";else{O=M.stateNode;var de=M.memoizedProps.style,te=de!=null&&de.hasOwnProperty("display")?de.display:null;O.style.display=te==null||typeof te=="boolean"?"":(""+te).trim()}}catch(ie){mt(M,M.return,ie)}}}else if(o.tag===6){if(c===null){M=o;try{M.stateNode.nodeValue=g?"":M.memoizedProps}catch(ie){mt(M,M.return,ie)}}}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,Nm(i,c))));break;case 19:zn(o,i),Bn(i),h&4&&(h=i.updateQueue,h!==null&&(i.updateQueue=null,Nm(i,h)));break;case 30:break;case 21:break;default:zn(o,i),Bn(i)}}function Bn(i){var o=i.flags;if(o&2){try{for(var c,h=i.return;h!==null;){if(YS(h)){c=h;break}h=h.return}if(c==null)throw Error(r(160));switch(c.tag){case 27:var g=c.stateNode,b=Cm(i);hd(i,b,g);break;case 5:var k=c.stateNode;c.flags&32&&(Ro(k,""),c.flags&=-33);var O=Cm(i);hd(i,O,k);break;case 3:case 4:var M=c.stateNode.containerInfo,Q=Cm(i);Rm(i,Q,M);break;default:throw Error(r(161))}}catch(se){mt(i,i.return,se)}i.flags&=-3}o&4096&&(i.flags&=-4097)}function ix(i){if(i.subtreeFlags&1024)for(i=i.child;i!==null;){var o=i;ix(o),o.tag===5&&o.flags&1024&&o.stateNode.reset(),i=i.sibling}}function Vi(i,o){if(o.subtreeFlags&8772)for(o=o.child;o!==null;)JS(i,o.alternate,o),o=o.sibling}function Fa(i){for(i=i.child;i!==null;){var o=i;switch(o.tag){case 0:case 11:case 14:case 15:Bi(4,o,o.return),Fa(o);break;case 1:Dr(o,o.return);var c=o.stateNode;typeof c.componentWillUnmount=="function"&&WS(o,o.return,c),Fa(o);break;case 27:Fl(o.stateNode);case 26:case 5:Dr(o,o.return),Fa(o);break;case 22:o.memoizedState===null&&Fa(o);break;case 30:Fa(o);break;default:Fa(o)}i=i.sibling}}function Ui(i,o,c){for(c=c&&(o.subtreeFlags&8772)!==0,o=o.child;o!==null;){var h=o.alternate,g=i,b=o,k=b.flags;switch(b.tag){case 0:case 11:case 15:Ui(g,b,c),Ol(4,b);break;case 1:if(Ui(g,b,c),h=b,g=h.stateNode,typeof g.componentDidMount=="function")try{g.componentDidMount()}catch(Q){mt(h,h.return,Q)}if(h=b,g=h.updateQueue,g!==null){var O=h.stateNode;try{var M=g.shared.hiddenCallbacks;if(M!==null)for(g.shared.hiddenCallbacks=null,g=0;g<M.length;g++)DE(M[g],O)}catch(Q){mt(h,h.return,Q)}}c&&k&64&&qS(b),Dl(b,b.return);break;case 27:XS(b);case 26:case 5:Ui(g,b,c),c&&h===null&&k&4&&ZS(b),Dl(b,b.return);break;case 12:Ui(g,b,c);break;case 13:Ui(g,b,c),c&&k&4&&nx(g,b);break;case 22:b.memoizedState===null&&Ui(g,b,c),Dl(b,b.return);break;case 30:break;default:Ui(g,b,c)}o=o.sibling}}function Im(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&&vl(c))}function Om(i,o){i=null,o.alternate!==null&&(i=o.alternate.memoizedState.cache),o=o.memoizedState.cache,o!==i&&(o.refCount++,i!=null&&vl(i))}function Lr(i,o,c,h){if(o.subtreeFlags&10256)for(o=o.child;o!==null;)ax(i,o,c,h),o=o.sibling}function ax(i,o,c,h){var g=o.flags;switch(o.tag){case 0:case 11:case 15:Lr(i,o,c,h),g&2048&&Ol(9,o);break;case 1:Lr(i,o,c,h);break;case 3:Lr(i,o,c,h),g&2048&&(i=null,o.alternate!==null&&(i=o.alternate.memoizedState.cache),o=o.memoizedState.cache,o!==i&&(o.refCount++,i!=null&&vl(i)));break;case 12:if(g&2048){Lr(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(M){mt(o,o.return,M)}}else Lr(i,o,c,h);break;case 13:Lr(i,o,c,h);break;case 23:break;case 22:b=o.stateNode,k=o.alternate,o.memoizedState!==null?b._visibility&2?Lr(i,o,c,h):Ll(i,o):b._visibility&2?Lr(i,o,c,h):(b._visibility|=2,qo(i,o,c,h,(o.subtreeFlags&10256)!==0)),g&2048&&Im(k,o);break;case 24:Lr(i,o,c,h),g&2048&&Om(o.alternate,o);break;default:Lr(i,o,c,h)}}function qo(i,o,c,h,g){for(g=g&&(o.subtreeFlags&10256)!==0,o=o.child;o!==null;){var b=i,k=o,O=c,M=h,Q=k.flags;switch(k.tag){case 0:case 11:case 15:qo(b,k,O,M,g),Ol(8,k);break;case 23:break;case 22:var se=k.stateNode;k.memoizedState!==null?se._visibility&2?qo(b,k,O,M,g):Ll(b,k):(se._visibility|=2,qo(b,k,O,M,g)),g&&Q&2048&&Im(k.alternate,k);break;case 24:qo(b,k,O,M,g),g&&Q&2048&&Om(k.alternate,k);break;default:qo(b,k,O,M,g)}o=o.sibling}}function Ll(i,o){if(o.subtreeFlags&10256)for(o=o.child;o!==null;){var c=i,h=o,g=h.flags;switch(h.tag){case 22:Ll(c,h),g&2048&&Im(h.alternate,h);break;case 24:Ll(c,h),g&2048&&Om(h.alternate,h);break;default:Ll(c,h)}o=o.sibling}}var jl=8192;function Wo(i){if(i.subtreeFlags&jl)for(i=i.child;i!==null;)ox(i),i=i.sibling}function ox(i){switch(i.tag){case 26:Wo(i),i.flags&jl&&i.memoizedState!==null&&xM(gr,i.memoizedState,i.memoizedProps);break;case 5:Wo(i);break;case 3:case 4:var o=gr;gr=wd(i.stateNode.containerInfo),Wo(i),gr=o;break;case 22:i.memoizedState===null&&(o=i.alternate,o!==null&&o.memoizedState!==null?(o=jl,jl=16777216,Wo(i),jl=o):Wo(i));break;default:Wo(i)}}function sx(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 Pl(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];en=h,cx(h,i)}sx(i)}if(i.subtreeFlags&10256)for(i=i.child;i!==null;)lx(i),i=i.sibling}function lx(i){switch(i.tag){case 0:case 11:case 15:Pl(i),i.flags&2048&&Bi(9,i,i.return);break;case 3:Pl(i);break;case 12:Pl(i);break;case 22:var o=i.stateNode;i.memoizedState!==null&&o._visibility&2&&(i.return===null||i.return.tag!==13)?(o._visibility&=-3,pd(i)):Pl(i);break;default:Pl(i)}}function pd(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];en=h,cx(h,i)}sx(i)}for(i=i.child;i!==null;){switch(o=i,o.tag){case 0:case 11:case 15:Bi(8,o,o.return),pd(o);break;case 22:c=o.stateNode,c._visibility&2&&(c._visibility&=-3,pd(o));break;default:pd(o)}i=i.sibling}}function cx(i,o){for(;en!==null;){var c=en;switch(c.tag){case 0:case 11:case 15:Bi(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:vl(c.memoizedState.cache)}if(h=c.child,h!==null)h.return=c,en=h;else e:for(c=i;en!==null;){h=en;var g=h.sibling,b=h.return;if(ex(h),h===c){en=null;break e}if(g!==null){g.return=b,en=g;break e}en=b}}}var BP={getCacheForType:function(i){var o=pn(Gt),c=o.data.get(i);return c===void 0&&(c=i(),o.data.set(i,c)),c}},VP=typeof WeakMap=="function"?WeakMap:Map,ct=0,yt=null,Ze=null,et=0,ut=0,Vn=null,Fi=!1,Zo=!1,Dm=!1,hi=0,Nt=0,Hi=0,Ha=0,Lm=0,ar=0,Yo=0,Ml=null,On=null,jm=!1,Pm=0,md=1/0,gd=null,Gi=null,on=0,$i=null,Xo=null,Qo=0,Mm=0,zm=null,ux=null,zl=0,Bm=null;function Un(){if((ct&2)!==0&&et!==0)return et&-et;if(z.T!==null){var i=Bo;return i!==0?i:Km()}return w0()}function dx(){ar===0&&(ar=(et&536870912)===0||it?S0():536870912);var i=ir.current;return i!==null&&(i.flags|=32),ar}function Fn(i,o,c){(i===yt&&(ut===2||ut===9)||i.cancelPendingCommit!==null)&&(Jo(i,0),Ki(i,et,ar,!1)),nl(i,c),((ct&2)===0||i!==yt)&&(i===yt&&((ct&2)===0&&(Ha|=c),Nt===4&&Ki(i,et,ar,!1)),jr(i))}function fx(i,o,c){if((ct&6)!==0)throw Error(r(327));var h=!c&&(o&124)===0&&(o&i.expiredLanes)===0||Ca(i,o),g=h?HP(i,o):Fm(i,o,!0),b=h;do{if(g===0){Zo&&!h&&Ki(i,o,0,!1);break}else{if(c=i.current.alternate,b&&!UP(c)){g=Fm(i,o,!1),b=!1;continue}if(g===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;g=Ml;var M=O.current.memoizedState.isDehydrated;if(M&&(Jo(O,k).flags|=256),k=Fm(O,k,!1),k!==2){if(Dm&&!M){O.errorRecoveryDisabledLanes|=b,Ha|=b,g=4;break e}b=On,On=g,b!==null&&(On===null?On=b:On.push.apply(On,b))}g=k}if(b=!1,g!==2)continue}}if(g===1){Jo(i,0),Ki(i,o,0,!0);break}e:{switch(h=i,b=g,b){case 0:case 1:throw Error(r(345));case 4:if((o&4194048)!==o)break;case 6:Ki(h,o,ar,!Fi);break e;case 2:On=null;break;case 3:case 5:break;default:throw Error(r(329))}if((o&62914560)===o&&(g=Pm+300-fn(),10<g)){if(Ki(h,o,ar,!Fi),wa(h,0,!0)!==0)break e;h.timeoutHandle=Ux(hx.bind(null,h,c,On,gd,jm,o,ar,Ha,Yo,Fi,b,2,-0,0),g);break e}hx(h,c,On,gd,jm,o,ar,Ha,Yo,Fi,b,0,-0,0)}}break}while(!0);jr(i)}function hx(i,o,c,h,g,b,k,O,M,Q,se,de,te,ie){if(i.timeoutHandle=-1,de=o.subtreeFlags,(de&8192||(de&16785408)===16785408)&&($l={stylesheets:null,count:0,unsuspend:SM},ox(o),de=AM(),de!==null)){i.cancelPendingCommit=de(_x.bind(null,i,o,b,c,h,g,k,O,M,se,1,te,ie)),Ki(i,b,k,!Q);return}_x(i,o,b,c,h,g,k,O,M)}function UP(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 g=c[h],b=g.getSnapshot;g=g.value;try{if(!Pn(b(),g))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 Ki(i,o,c,h){o&=~Lm,o&=~Ha,i.suspendedLanes|=o,i.pingedLanes&=~o,h&&(i.warmLanes|=o),h=i.expirationTimes;for(var g=o;0<g;){var b=31-gt(g),k=1<<b;h[b]=-1,g&=~k}c!==0&&A0(i,c,o)}function yd(){return(ct&6)===0?(Bl(0),!1):!0}function Vm(){if(Ze!==null){if(ut===0)var i=Ze.return;else i=Ze,ai=Ma=null,rm(i),$o=null,kl=0,i=Ze;for(;i!==null;)KS(i.alternate,i),i=i.return;Ze=null}}function Jo(i,o){var c=i.timeoutHandle;c!==-1&&(i.timeoutHandle=-1,aM(c)),c=i.cancelPendingCommit,c!==null&&(i.cancelPendingCommit=null,c()),Vm(),yt=i,Ze=c=ni(i.current,null),et=o,ut=0,Vn=null,Fi=!1,Zo=Ca(i,o),Dm=!1,Yo=ar=Lm=Ha=Hi=Nt=0,On=Ml=null,jm=!1,(o&8)!==0&&(o|=o&32);var h=i.entangledLanes;if(h!==0)for(i=i.entanglements,h&=o;0<h;){var g=31-gt(h),b=1<<g;o|=i[g],h&=~b}return hi=o,Bu(),c}function px(i,o){Ke=null,z.H=id,o===_l||o===Wu?(o=IE(),ut=3):o===RE?(o=IE(),ut=4):ut=o===OS?8:o!==null&&typeof o=="object"&&typeof o.then=="function"?6:1,Vn=o,Ze===null&&(Nt=1,cd(i,er(o,i.current)))}function mx(){var i=z.H;return z.H=id,i===null?id:i}function gx(){var i=z.A;return z.A=BP,i}function Um(){Nt=4,Fi||(et&4194048)!==et&&ir.current!==null||(Zo=!0),(Hi&134217727)===0&&(Ha&134217727)===0||yt===null||Ki(yt,et,ar,!1)}function Fm(i,o,c){var h=ct;ct|=2;var g=mx(),b=gx();(yt!==i||et!==o)&&(gd=null,Jo(i,o)),o=!1;var k=Nt;e:do try{if(ut!==0&&Ze!==null){var O=Ze,M=Vn;switch(ut){case 8:Vm(),k=6;break e;case 3:case 2:case 9:case 6:ir.current===null&&(o=!0);var Q=ut;if(ut=0,Vn=null,es(i,O,M,Q),c&&Zo){k=0;break e}break;default:Q=ut,ut=0,Vn=null,es(i,O,M,Q)}}FP(),k=Nt;break}catch(se){px(i,se)}while(!0);return o&&i.shellSuspendCounter++,ai=Ma=null,ct=h,z.H=g,z.A=b,Ze===null&&(yt=null,et=0,Bu()),k}function FP(){for(;Ze!==null;)yx(Ze)}function HP(i,o){var c=ct;ct|=2;var h=mx(),g=gx();yt!==i||et!==o?(gd=null,md=fn()+500,Jo(i,o)):Zo=Ca(i,o);e:do try{if(ut!==0&&Ze!==null){o=Ze;var b=Vn;t:switch(ut){case 1:ut=0,Vn=null,es(i,o,b,1);break;case 2:case 9:if(kE(b)){ut=0,Vn=null,vx(o);break}o=function(){ut!==2&&ut!==9||yt!==i||(ut=7),jr(i)},b.then(o,o);break e;case 3:ut=7;break e;case 4:ut=5;break e;case 7:kE(b)?(ut=0,Vn=null,vx(o)):(ut=0,Vn=null,es(i,o,b,7));break;case 5:var k=null;switch(Ze.tag){case 26:k=Ze.memoizedState;case 5:case 27:var O=Ze;if(!k||Jx(k)){ut=0,Vn=null;var M=O.sibling;if(M!==null)Ze=M;else{var Q=O.return;Q!==null?(Ze=Q,vd(Q)):Ze=null}break t}}ut=0,Vn=null,es(i,o,b,5);break;case 6:ut=0,Vn=null,es(i,o,b,6);break;case 8:Vm(),Nt=6;break e;default:throw Error(r(462))}}GP();break}catch(se){px(i,se)}while(!0);return ai=Ma=null,z.H=h,z.A=g,ct=c,Ze!==null?0:(yt=null,et=0,Bu(),Nt)}function GP(){for(;Ze!==null&&!Ci();)yx(Ze)}function yx(i){var o=GS(i.alternate,i,hi);i.memoizedProps=i.pendingProps,o===null?vd(i):Ze=o}function vx(i){var o=i,c=o.alternate;switch(o.tag){case 15:case 0:o=zS(c,o,o.pendingProps,o.type,void 0,et);break;case 11:o=zS(c,o,o.pendingProps,o.type.render,o.ref,et);break;case 5:rm(o);default:KS(c,o),o=Ze=bE(o,hi),o=GS(c,o,hi)}i.memoizedProps=i.pendingProps,o===null?vd(i):Ze=o}function es(i,o,c,h){ai=Ma=null,rm(o),$o=null,kl=0;var g=o.return;try{if(DP(i,g,o,c,et)){Nt=1,cd(i,er(c,i.current)),Ze=null;return}}catch(b){if(g!==null)throw Ze=g,b;Nt=1,cd(i,er(c,i.current)),Ze=null;return}o.flags&32768?(it||h===1?i=!0:Zo||(et&536870912)!==0?i=!1:(Fi=i=!0,(h===2||h===9||h===3||h===6)&&(h=ir.current,h!==null&&h.tag===13&&(h.flags|=16384))),bx(o,i)):vd(o)}function vd(i){var o=i;do{if((o.flags&32768)!==0){bx(o,Fi);return}i=o.return;var c=jP(o.alternate,o,hi);if(c!==null){Ze=c;return}if(o=o.sibling,o!==null){Ze=o;return}Ze=o=i}while(o!==null);Nt===0&&(Nt=5)}function bx(i,o){do{var c=PP(i.alternate,i);if(c!==null){c.flags&=32767,Ze=c;return}if(c=i.return,c!==null&&(c.flags|=32768,c.subtreeFlags=0,c.deletions=null),!o&&(i=i.sibling,i!==null)){Ze=i;return}Ze=i=c}while(i!==null);Nt=6,Ze=null}function _x(i,o,c,h,g,b,k,O,M){i.cancelPendingCommit=null;do bd();while(on!==0);if((ct&6)!==0)throw Error(r(327));if(o!==null){if(o===i.current)throw Error(r(177));if(b=o.lanes|o.childLanes,b|=Op,Sj(i,c,b,k,O,M),i===yt&&(Ze=yt=null,et=0),Xo=o,$i=i,Qo=c,Mm=b,zm=g,ux=h,(o.subtreeFlags&10256)!==0||(o.flags&10256)!==0?(i.callbackNode=null,i.callbackPriority=0,WP(ee,function(){return Tx(),null})):(i.callbackNode=null,i.callbackPriority=0),h=(o.flags&13878)!==0,(o.subtreeFlags&13878)!==0||h){h=z.T,z.T=null,g=X.p,X.p=2,k=ct,ct|=4;try{MP(i,o,c)}finally{ct=k,X.p=g,z.T=h}}on=1,Ex(),Sx(),xx()}}function Ex(){if(on===1){on=0;var i=$i,o=Xo,c=(o.flags&13878)!==0;if((o.subtreeFlags&13878)!==0||c){c=z.T,z.T=null;var h=X.p;X.p=2;var g=ct;ct|=4;try{rx(o,i);var b=eg,k=cE(i.containerInfo),O=b.focusedElem,M=b.selectionRange;if(k!==O&&O&&O.ownerDocument&&lE(O.ownerDocument.documentElement,O)){if(M!==null&&Cp(O)){var Q=M.start,se=M.end;if(se===void 0&&(se=Q),"selectionStart"in O)O.selectionStart=Q,O.selectionEnd=Math.min(se,O.value.length);else{var de=O.ownerDocument||document,te=de&&de.defaultView||window;if(te.getSelection){var ie=te.getSelection(),Pe=O.textContent.length,De=Math.min(M.start,Pe),pt=M.end===void 0?De:Math.min(M.end,Pe);!ie.extend&&De>pt&&(k=pt,pt=De,De=k);var q=sE(O,De),F=sE(O,pt);if(q&&F&&(ie.rangeCount!==1||ie.anchorNode!==q.node||ie.anchorOffset!==q.offset||ie.focusNode!==F.node||ie.focusOffset!==F.offset)){var Y=de.createRange();Y.setStart(q.node,q.offset),ie.removeAllRanges(),De>pt?(ie.addRange(Y),ie.extend(F.node,F.offset)):(Y.setEnd(F.node,F.offset),ie.addRange(Y))}}}}for(de=[],ie=O;ie=ie.parentNode;)ie.nodeType===1&&de.push({element:ie,left:ie.scrollLeft,top:ie.scrollTop});for(typeof O.focus=="function"&&O.focus(),O=0;O<de.length;O++){var ce=de[O];ce.element.scrollLeft=ce.left,ce.element.scrollTop=ce.top}}Id=!!Jm,eg=Jm=null}finally{ct=g,X.p=h,z.T=c}}i.current=o,on=2}}function Sx(){if(on===2){on=0;var i=$i,o=Xo,c=(o.flags&8772)!==0;if((o.subtreeFlags&8772)!==0||c){c=z.T,z.T=null;var h=X.p;X.p=2;var g=ct;ct|=4;try{JS(i,o.alternate,o)}finally{ct=g,X.p=h,z.T=c}}on=3}}function xx(){if(on===4||on===3){on=0,Ta();var i=$i,o=Xo,c=Qo,h=ux;(o.subtreeFlags&10256)!==0||(o.flags&10256)!==0?on=5:(on=0,Xo=$i=null,Ax(i,i.pendingLanes));var g=i.pendingLanes;if(g===0&&(Gi=null),op(c),o=o.stateNode,Ue&&typeof Ue.onCommitFiberRoot=="function")try{Ue.onCommitFiberRoot(Ce,o,void 0,(o.current.flags&128)===128)}catch{}if(h!==null){o=z.T,g=X.p,X.p=2,z.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{z.T=o,X.p=g}}(Qo&3)!==0&&bd(),jr(i),g=i.pendingLanes,(c&4194090)!==0&&(g&42)!==0?i===Bm?zl++:(zl=0,Bm=i):zl=0,Bl(0)}}function Ax(i,o){(i.pooledCacheLanes&=o)===0&&(o=i.pooledCache,o!=null&&(i.pooledCache=null,vl(o)))}function bd(i){return Ex(),Sx(),xx(),Tx()}function Tx(){if(on!==5)return!1;var i=$i,o=Mm;Mm=0;var c=op(Qo),h=z.T,g=X.p;try{X.p=32>c?32:c,z.T=null,c=zm,zm=null;var b=$i,k=Qo;if(on=0,Xo=$i=null,Qo=0,(ct&6)!==0)throw Error(r(331));var O=ct;if(ct|=4,lx(b.current),ax(b,b.current,k,c),ct=O,Bl(0,!1),Ue&&typeof Ue.onPostCommitFiberRoot=="function")try{Ue.onPostCommitFiberRoot(Ce,b)}catch{}return!0}finally{X.p=g,z.T=h,Ax(i,o)}}function wx(i,o,c){o=er(c,o),o=ym(i.stateNode,o,2),i=ji(i,o,2),i!==null&&(nl(i,2),jr(i))}function mt(i,o,c){if(i.tag===3)wx(i,i,c);else for(;o!==null;){if(o.tag===3){wx(o,i,c);break}else if(o.tag===1){var h=o.stateNode;if(typeof o.type.getDerivedStateFromError=="function"||typeof h.componentDidCatch=="function"&&(Gi===null||!Gi.has(h))){i=er(c,i),c=NS(2),h=ji(o,c,2),h!==null&&(IS(c,h,o,i),nl(h,2),jr(h));break}}o=o.return}}function Hm(i,o,c){var h=i.pingCache;if(h===null){h=i.pingCache=new VP;var g=new Set;h.set(o,g)}else g=h.get(o),g===void 0&&(g=new Set,h.set(o,g));g.has(c)||(Dm=!0,g.add(c),i=$P.bind(null,i,o,c),o.then(i,i))}function $P(i,o,c){var h=i.pingCache;h!==null&&h.delete(o),i.pingedLanes|=i.suspendedLanes&c,i.warmLanes&=~c,yt===i&&(et&c)===c&&(Nt===4||Nt===3&&(et&62914560)===et&&300>fn()-Pm?(ct&2)===0&&Jo(i,0):Lm|=c,Yo===et&&(Yo=0)),jr(i)}function Cx(i,o){o===0&&(o=x0()),i=jo(i,o),i!==null&&(nl(i,o),jr(i))}function KP(i){var o=i.memoizedState,c=0;o!==null&&(c=o.retryLane),Cx(i,c)}function qP(i,o){var c=0;switch(i.tag){case 13:var h=i.stateNode,g=i.memoizedState;g!==null&&(c=g.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),Cx(i,c)}function WP(i,o){return Xt(i,o)}var _d=null,ts=null,Gm=!1,Ed=!1,$m=!1,Ga=0;function jr(i){i!==ts&&i.next===null&&(ts===null?_d=ts=i:ts=ts.next=i),Ed=!0,Gm||(Gm=!0,YP())}function Bl(i,o){if(!$m&&Ed){$m=!0;do for(var c=!1,h=_d;h!==null;){if(i!==0){var g=h.pendingLanes;if(g===0)var b=0;else{var k=h.suspendedLanes,O=h.pingedLanes;b=(1<<31-gt(42|i)+1)-1,b&=g&~(k&~O),b=b&201326741?b&201326741|1:b?b|2:0}b!==0&&(c=!0,Ix(h,b))}else b=et,b=wa(h,h===yt?b:0,h.cancelPendingCommit!==null||h.timeoutHandle!==-1),(b&3)===0||Ca(h,b)||(c=!0,Ix(h,b));h=h.next}while(c);$m=!1}}function ZP(){Rx()}function Rx(){Ed=Gm=!1;var i=0;Ga!==0&&(iM()&&(i=Ga),Ga=0);for(var o=fn(),c=null,h=_d;h!==null;){var g=h.next,b=kx(h,o);b===0?(h.next=null,c===null?_d=g:c.next=g,g===null&&(ts=c)):(c=h,(i!==0||(b&3)!==0)&&(Ed=!0)),h=g}Bl(i)}function kx(i,o){for(var c=i.suspendedLanes,h=i.pingedLanes,g=i.expirationTimes,b=i.pendingLanes&-62914561;0<b;){var k=31-gt(b),O=1<<k,M=g[k];M===-1?((O&c)===0||(O&h)!==0)&&(g[k]=Cu(O,o)):M<=o&&(i.expiredLanes|=O),b&=~O}if(o=yt,c=et,c=wa(i,i===o?c:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),h=i.callbackNode,c===0||i===o&&(ut===2||ut===9)||i.cancelPendingCommit!==null)return h!==null&&h!==null&&Cn(h),i.callbackNode=null,i.callbackPriority=0;if((c&3)===0||Ca(i,c)){if(o=c&-c,o===i.callbackPriority)return o;switch(h!==null&&Cn(h),op(c)){case 2:case 8:c=V;break;case 32:c=ee;break;case 268435456:c=Se;break;default:c=ee}return h=Nx.bind(null,i),c=Xt(c,h),i.callbackPriority=o,i.callbackNode=c,o}return h!==null&&h!==null&&Cn(h),i.callbackPriority=2,i.callbackNode=null,2}function Nx(i,o){if(on!==0&&on!==5)return i.callbackNode=null,i.callbackPriority=0,null;var c=i.callbackNode;if(bd()&&i.callbackNode!==c)return null;var h=et;return h=wa(i,i===yt?h:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),h===0?null:(fx(i,h,o),kx(i,fn()),i.callbackNode!=null&&i.callbackNode===c?Nx.bind(null,i):null)}function Ix(i,o){if(bd())return null;fx(i,o,!0)}function YP(){oM(function(){(ct&6)!==0?Xt(tl,ZP):Rx()})}function Km(){return Ga===0&&(Ga=S0()),Ga}function Ox(i){return i==null||typeof i=="symbol"||typeof i=="boolean"?null:typeof i=="function"?i:Ou(""+i)}function Dx(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 XP(i,o,c,h,g){if(o==="submit"&&c&&c.stateNode===g){var b=Ox((g[Rn]||null).action),k=h.submitter;k&&(o=(o=k[Rn]||null)?Ox(o.formAction):k.getAttribute("formAction"),o!==null&&(b=o,k=null));var O=new Pu("action","action",null,h,g);i.push({event:O,listeners:[{instance:null,listener:function(){if(h.defaultPrevented){if(Ga!==0){var M=k?Dx(g,k):new FormData(g);fm(c,{pending:!0,data:M,method:g.method,action:b},null,M)}}else typeof b=="function"&&(O.preventDefault(),M=k?Dx(g,k):new FormData(g),fm(c,{pending:!0,data:M,method:g.method,action:b},b,M))},currentTarget:g}]})}}for(var qm=0;qm<Ip.length;qm++){var Wm=Ip[qm],QP=Wm.toLowerCase(),JP=Wm[0].toUpperCase()+Wm.slice(1);mr(QP,"on"+JP)}mr(fE,"onAnimationEnd"),mr(hE,"onAnimationIteration"),mr(pE,"onAnimationStart"),mr("dblclick","onDoubleClick"),mr("focusin","onFocus"),mr("focusout","onBlur"),mr(gP,"onTransitionRun"),mr(yP,"onTransitionStart"),mr(vP,"onTransitionCancel"),mr(mE,"onTransitionEnd"),To("onMouseEnter",["mouseout","mouseover"]),To("onMouseLeave",["mouseout","mouseover"]),To("onPointerEnter",["pointerout","pointerover"]),To("onPointerLeave",["pointerout","pointerover"]),Ra("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Ra("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Ra("onBeforeInput",["compositionend","keypress","textInput","paste"]),Ra("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Ra("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Ra("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Vl="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(" "),eM=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Vl));function Lx(i,o){o=(o&4)!==0;for(var c=0;c<i.length;c++){var h=i[c],g=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],M=O.instance,Q=O.currentTarget;if(O=O.listener,M!==b&&g.isPropagationStopped())break e;b=O,g.currentTarget=Q;try{b(g)}catch(se){ld(se)}g.currentTarget=null,b=M}else for(k=0;k<h.length;k++){if(O=h[k],M=O.instance,Q=O.currentTarget,O=O.listener,M!==b&&g.isPropagationStopped())break e;b=O,g.currentTarget=Q;try{b(g)}catch(se){ld(se)}g.currentTarget=null,b=M}}}}function Ye(i,o){var c=o[sp];c===void 0&&(c=o[sp]=new Set);var h=i+"__bubble";c.has(h)||(jx(o,i,2,!1),c.add(h))}function Zm(i,o,c){var h=0;o&&(h|=4),jx(c,i,h,o)}var Sd="_reactListening"+Math.random().toString(36).slice(2);function Ym(i){if(!i[Sd]){i[Sd]=!0,R0.forEach(function(c){c!=="selectionchange"&&(eM.has(c)||Zm(c,!1,i),Zm(c,!0,i))});var o=i.nodeType===9?i:i.ownerDocument;o===null||o[Sd]||(o[Sd]=!0,Zm("selectionchange",!1,o))}}function jx(i,o,c,h){switch(aA(o)){case 2:var g=CM;break;case 8:g=RM;break;default:g=ug}c=g.bind(null,o,c,i),g=void 0,!vp||o!=="touchstart"&&o!=="touchmove"&&o!=="wheel"||(g=!0),h?g!==void 0?i.addEventListener(o,c,{capture:!0,passive:g}):i.addEventListener(o,c,!0):g!==void 0?i.addEventListener(o,c,{passive:g}):i.addEventListener(o,c,!1)}function Xm(i,o,c,h,g){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===g)break;if(k===4)for(k=h.return;k!==null;){var M=k.tag;if((M===3||M===4)&&k.stateNode.containerInfo===g)return;k=k.return}for(;O!==null;){if(k=So(O),k===null)return;if(M=k.tag,M===5||M===6||M===26||M===27){h=b=k;continue e}O=O.parentNode}}h=h.return}F0(function(){var Q=b,se=gp(c),de=[];e:{var te=gE.get(i);if(te!==void 0){var ie=Pu,Pe=i;switch(i){case"keypress":if(Lu(c)===0)break e;case"keydown":case"keyup":ie=Wj;break;case"focusin":Pe="focus",ie=Sp;break;case"focusout":Pe="blur",ie=Sp;break;case"beforeblur":case"afterblur":ie=Sp;break;case"click":if(c.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":ie=$0;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":ie=Pj;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":ie=Xj;break;case fE:case hE:case pE:ie=Bj;break;case mE:ie=Jj;break;case"scroll":case"scrollend":ie=Lj;break;case"wheel":ie=tP;break;case"copy":case"cut":case"paste":ie=Uj;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":ie=q0;break;case"toggle":case"beforetoggle":ie=rP}var De=(o&4)!==0,pt=!De&&(i==="scroll"||i==="scrollend"),q=De?te!==null?te+"Capture":null:te;De=[];for(var F=Q,Y;F!==null;){var ce=F;if(Y=ce.stateNode,ce=ce.tag,ce!==5&&ce!==26&&ce!==27||Y===null||q===null||(ce=al(F,q),ce!=null&&De.push(Ul(F,ce,Y))),pt)break;F=F.return}0<De.length&&(te=new ie(te,Pe,null,c,se),de.push({event:te,listeners:De}))}}if((o&7)===0){e:{if(te=i==="mouseover"||i==="pointerover",ie=i==="mouseout"||i==="pointerout",te&&c!==mp&&(Pe=c.relatedTarget||c.fromElement)&&(So(Pe)||Pe[Eo]))break e;if((ie||te)&&(te=se.window===se?se:(te=se.ownerDocument)?te.defaultView||te.parentWindow:window,ie?(Pe=c.relatedTarget||c.toElement,ie=Q,Pe=Pe?So(Pe):null,Pe!==null&&(pt=s(Pe),De=Pe.tag,Pe!==pt||De!==5&&De!==27&&De!==6)&&(Pe=null)):(ie=null,Pe=Q),ie!==Pe)){if(De=$0,ce="onMouseLeave",q="onMouseEnter",F="mouse",(i==="pointerout"||i==="pointerover")&&(De=q0,ce="onPointerLeave",q="onPointerEnter",F="pointer"),pt=ie==null?te:il(ie),Y=Pe==null?te:il(Pe),te=new De(ce,F+"leave",ie,c,se),te.target=pt,te.relatedTarget=Y,ce=null,So(se)===Q&&(De=new De(q,F+"enter",Pe,c,se),De.target=Y,De.relatedTarget=pt,ce=De),pt=ce,ie&&Pe)t:{for(De=ie,q=Pe,F=0,Y=De;Y;Y=ns(Y))F++;for(Y=0,ce=q;ce;ce=ns(ce))Y++;for(;0<F-Y;)De=ns(De),F--;for(;0<Y-F;)q=ns(q),Y--;for(;F--;){if(De===q||q!==null&&De===q.alternate)break t;De=ns(De),q=ns(q)}De=null}else De=null;ie!==null&&Px(de,te,ie,De,!1),Pe!==null&&pt!==null&&Px(de,pt,Pe,De,!0)}}e:{if(te=Q?il(Q):window,ie=te.nodeName&&te.nodeName.toLowerCase(),ie==="select"||ie==="input"&&te.type==="file")var Ae=tE;else if(J0(te))if(nE)Ae=hP;else{Ae=dP;var We=uP}else ie=te.nodeName,!ie||ie.toLowerCase()!=="input"||te.type!=="checkbox"&&te.type!=="radio"?Q&&pp(Q.elementType)&&(Ae=tE):Ae=fP;if(Ae&&(Ae=Ae(i,Q))){eE(de,Ae,c,se);break e}We&&We(i,te,Q),i==="focusout"&&Q&&te.type==="number"&&Q.memoizedProps.value!=null&&hp(te,"number",te.value)}switch(We=Q?il(Q):window,i){case"focusin":(J0(We)||We.contentEditable==="true")&&(Oo=We,Rp=Q,hl=null);break;case"focusout":hl=Rp=Oo=null;break;case"mousedown":kp=!0;break;case"contextmenu":case"mouseup":case"dragend":kp=!1,uE(de,c,se);break;case"selectionchange":if(mP)break;case"keydown":case"keyup":uE(de,c,se)}var ke;if(Ap)e:{switch(i){case"compositionstart":var Le="onCompositionStart";break e;case"compositionend":Le="onCompositionEnd";break e;case"compositionupdate":Le="onCompositionUpdate";break e}Le=void 0}else Io?X0(i,c)&&(Le="onCompositionEnd"):i==="keydown"&&c.keyCode===229&&(Le="onCompositionStart");Le&&(W0&&c.locale!=="ko"&&(Io||Le!=="onCompositionStart"?Le==="onCompositionEnd"&&Io&&(ke=H0()):(Ii=se,bp="value"in Ii?Ii.value:Ii.textContent,Io=!0)),We=xd(Q,Le),0<We.length&&(Le=new K0(Le,i,null,c,se),de.push({event:Le,listeners:We}),ke?Le.data=ke:(ke=Q0(c),ke!==null&&(Le.data=ke)))),(ke=aP?oP(i,c):sP(i,c))&&(Le=xd(Q,"onBeforeInput"),0<Le.length&&(We=new K0("onBeforeInput","beforeinput",null,c,se),de.push({event:We,listeners:Le}),We.data=ke)),XP(de,i,Q,c,se)}Lx(de,o)})}function Ul(i,o,c){return{instance:i,listener:o,currentTarget:c}}function xd(i,o){for(var c=o+"Capture",h=[];i!==null;){var g=i,b=g.stateNode;if(g=g.tag,g!==5&&g!==26&&g!==27||b===null||(g=al(i,c),g!=null&&h.unshift(Ul(i,g,b)),g=al(i,o),g!=null&&h.push(Ul(i,g,b))),i.tag===3)return h;i=i.return}return[]}function ns(i){if(i===null)return null;do i=i.return;while(i&&i.tag!==5&&i.tag!==27);return i||null}function Px(i,o,c,h,g){for(var b=o._reactName,k=[];c!==null&&c!==h;){var O=c,M=O.alternate,Q=O.stateNode;if(O=O.tag,M!==null&&M===h)break;O!==5&&O!==26&&O!==27||Q===null||(M=Q,g?(Q=al(c,b),Q!=null&&k.unshift(Ul(c,Q,M))):g||(Q=al(c,b),Q!=null&&k.push(Ul(c,Q,M)))),c=c.return}k.length!==0&&i.push({event:o,listeners:k})}var tM=/\r\n?/g,nM=/\u0000|\uFFFD/g;function Mx(i){return(typeof i=="string"?i:""+i).replace(tM,`
50
- `).replace(nM,"")}function zx(i,o){return o=Mx(o),Mx(i)===o}function Ad(){}function ht(i,o,c,h,g,b){switch(c){case"children":typeof h=="string"?o==="body"||o==="textarea"&&h===""||Ro(i,h):(typeof h=="number"||typeof h=="bigint")&&o!=="body"&&Ro(i,""+h);break;case"className":ku(i,"class",h);break;case"tabIndex":ku(i,"tabindex",h);break;case"dir":case"role":case"viewBox":case"width":case"height":ku(i,c,h);break;case"style":V0(i,h,b);break;case"data":if(o!=="object"){ku(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=Ou(""+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"&&ht(i,o,"name",g.name,g,null),ht(i,o,"formEncType",g.formEncType,g,null),ht(i,o,"formMethod",g.formMethod,g,null),ht(i,o,"formTarget",g.formTarget,g,null)):(ht(i,o,"encType",g.encType,g,null),ht(i,o,"method",g.method,g,null),ht(i,o,"target",g.target,g,null)));if(h==null||typeof h=="symbol"||typeof h=="boolean"){i.removeAttribute(c);break}h=Ou(""+h),i.setAttribute(c,h);break;case"onClick":h!=null&&(i.onclick=Ad);break;case"onScroll":h!=null&&Ye("scroll",i);break;case"onScrollEnd":h!=null&&Ye("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(g.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=Ou(""+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":Ye("beforetoggle",i),Ye("toggle",i),Ru(i,"popover",h);break;case"xlinkActuate":ei(i,"http://www.w3.org/1999/xlink","xlink:actuate",h);break;case"xlinkArcrole":ei(i,"http://www.w3.org/1999/xlink","xlink:arcrole",h);break;case"xlinkRole":ei(i,"http://www.w3.org/1999/xlink","xlink:role",h);break;case"xlinkShow":ei(i,"http://www.w3.org/1999/xlink","xlink:show",h);break;case"xlinkTitle":ei(i,"http://www.w3.org/1999/xlink","xlink:title",h);break;case"xlinkType":ei(i,"http://www.w3.org/1999/xlink","xlink:type",h);break;case"xmlBase":ei(i,"http://www.w3.org/XML/1998/namespace","xml:base",h);break;case"xmlLang":ei(i,"http://www.w3.org/XML/1998/namespace","xml:lang",h);break;case"xmlSpace":ei(i,"http://www.w3.org/XML/1998/namespace","xml:space",h);break;case"is":Ru(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=Oj.get(c)||c,Ru(i,c,h))}}function Qm(i,o,c,h,g,b){switch(c){case"style":V0(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(g.children!=null)throw Error(r(60));i.innerHTML=c}}break;case"children":typeof h=="string"?Ro(i,h):(typeof h=="number"||typeof h=="bigint")&&Ro(i,""+h);break;case"onScroll":h!=null&&Ye("scroll",i);break;case"onScrollEnd":h!=null&&Ye("scrollend",i);break;case"onClick":h!=null&&(i.onclick=Ad);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!k0.hasOwnProperty(c))e:{if(c[0]==="o"&&c[1]==="n"&&(g=c.endsWith("Capture"),o=c.slice(2,g?c.length-7:void 0),b=i[Rn]||null,b=b!=null?b[c]:null,typeof b=="function"&&i.removeEventListener(o,b,g),typeof h=="function")){typeof b!="function"&&b!==null&&(c in i?i[c]=null:i.hasAttribute(c)&&i.removeAttribute(c)),i.addEventListener(o,h,g);break e}c in i?i[c]=h:h===!0?i.setAttribute(c,""):Ru(i,c,h)}}}function sn(i,o,c){switch(o){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Ye("error",i),Ye("load",i);var h=!1,g=!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":g=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,o));default:ht(i,o,b,k,c,null)}}g&&ht(i,o,"srcSet",c.srcSet,c,null),h&&ht(i,o,"src",c.src,c,null);return;case"input":Ye("invalid",i);var O=b=k=g=null,M=null,Q=null;for(h in c)if(c.hasOwnProperty(h)){var se=c[h];if(se!=null)switch(h){case"name":g=se;break;case"type":k=se;break;case"checked":M=se;break;case"defaultChecked":Q=se;break;case"value":b=se;break;case"defaultValue":O=se;break;case"children":case"dangerouslySetInnerHTML":if(se!=null)throw Error(r(137,o));break;default:ht(i,o,h,se,c,null)}}P0(i,b,O,M,Q,k,g,!1),Nu(i);return;case"select":Ye("invalid",i),h=k=b=null;for(g in c)if(c.hasOwnProperty(g)&&(O=c[g],O!=null))switch(g){case"value":b=O;break;case"defaultValue":k=O;break;case"multiple":h=O;default:ht(i,o,g,O,c,null)}o=b,c=k,i.multiple=!!h,o!=null?Co(i,!!h,o,!1):c!=null&&Co(i,!!h,c,!0);return;case"textarea":Ye("invalid",i),b=g=h=null;for(k in c)if(c.hasOwnProperty(k)&&(O=c[k],O!=null))switch(k){case"value":h=O;break;case"defaultValue":g=O;break;case"children":b=O;break;case"dangerouslySetInnerHTML":if(O!=null)throw Error(r(91));break;default:ht(i,o,k,O,c,null)}z0(i,h,g,b),Nu(i);return;case"option":for(M in c)if(c.hasOwnProperty(M)&&(h=c[M],h!=null))switch(M){case"selected":i.selected=h&&typeof h!="function"&&typeof h!="symbol";break;default:ht(i,o,M,h,c,null)}return;case"dialog":Ye("beforetoggle",i),Ye("toggle",i),Ye("cancel",i),Ye("close",i);break;case"iframe":case"object":Ye("load",i);break;case"video":case"audio":for(h=0;h<Vl.length;h++)Ye(Vl[h],i);break;case"image":Ye("error",i),Ye("load",i);break;case"details":Ye("toggle",i);break;case"embed":case"source":case"link":Ye("error",i),Ye("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:ht(i,o,Q,h,c,null)}return;default:if(pp(o)){for(se in c)c.hasOwnProperty(se)&&(h=c[se],h!==void 0&&Qm(i,o,se,h,c,void 0));return}}for(O in c)c.hasOwnProperty(O)&&(h=c[O],h!=null&&ht(i,o,O,h,c,null))}function rM(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 g=null,b=null,k=null,O=null,M=null,Q=null,se=null;for(ie in c){var de=c[ie];if(c.hasOwnProperty(ie)&&de!=null)switch(ie){case"checked":break;case"value":break;case"defaultValue":M=de;default:h.hasOwnProperty(ie)||ht(i,o,ie,null,h,de)}}for(var te in h){var ie=h[te];if(de=c[te],h.hasOwnProperty(te)&&(ie!=null||de!=null))switch(te){case"type":b=ie;break;case"name":g=ie;break;case"checked":Q=ie;break;case"defaultChecked":se=ie;break;case"value":k=ie;break;case"defaultValue":O=ie;break;case"children":case"dangerouslySetInnerHTML":if(ie!=null)throw Error(r(137,o));break;default:ie!==de&&ht(i,o,te,ie,h,de)}}fp(i,k,O,M,Q,se,b,g);return;case"select":ie=k=O=te=null;for(b in c)if(M=c[b],c.hasOwnProperty(b)&&M!=null)switch(b){case"value":break;case"multiple":ie=M;default:h.hasOwnProperty(b)||ht(i,o,b,null,h,M)}for(g in h)if(b=h[g],M=c[g],h.hasOwnProperty(g)&&(b!=null||M!=null))switch(g){case"value":te=b;break;case"defaultValue":O=b;break;case"multiple":k=b;default:b!==M&&ht(i,o,g,b,h,M)}o=O,c=k,h=ie,te!=null?Co(i,!!c,te,!1):!!h!=!!c&&(o!=null?Co(i,!!c,o,!0):Co(i,!!c,c?[]:"",!1));return;case"textarea":ie=te=null;for(O in c)if(g=c[O],c.hasOwnProperty(O)&&g!=null&&!h.hasOwnProperty(O))switch(O){case"value":break;case"children":break;default:ht(i,o,O,null,h,g)}for(k in h)if(g=h[k],b=c[k],h.hasOwnProperty(k)&&(g!=null||b!=null))switch(k){case"value":te=g;break;case"defaultValue":ie=g;break;case"children":break;case"dangerouslySetInnerHTML":if(g!=null)throw Error(r(91));break;default:g!==b&&ht(i,o,k,g,h,b)}M0(i,te,ie);return;case"option":for(var Pe in c)if(te=c[Pe],c.hasOwnProperty(Pe)&&te!=null&&!h.hasOwnProperty(Pe))switch(Pe){case"selected":i.selected=!1;break;default:ht(i,o,Pe,null,h,te)}for(M in h)if(te=h[M],ie=c[M],h.hasOwnProperty(M)&&te!==ie&&(te!=null||ie!=null))switch(M){case"selected":i.selected=te&&typeof te!="function"&&typeof te!="symbol";break;default:ht(i,o,M,te,h,ie)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var De in c)te=c[De],c.hasOwnProperty(De)&&te!=null&&!h.hasOwnProperty(De)&&ht(i,o,De,null,h,te);for(Q in h)if(te=h[Q],ie=c[Q],h.hasOwnProperty(Q)&&te!==ie&&(te!=null||ie!=null))switch(Q){case"children":case"dangerouslySetInnerHTML":if(te!=null)throw Error(r(137,o));break;default:ht(i,o,Q,te,h,ie)}return;default:if(pp(o)){for(var pt in c)te=c[pt],c.hasOwnProperty(pt)&&te!==void 0&&!h.hasOwnProperty(pt)&&Qm(i,o,pt,void 0,h,te);for(se in h)te=h[se],ie=c[se],!h.hasOwnProperty(se)||te===ie||te===void 0&&ie===void 0||Qm(i,o,se,te,h,ie);return}}for(var q in c)te=c[q],c.hasOwnProperty(q)&&te!=null&&!h.hasOwnProperty(q)&&ht(i,o,q,null,h,te);for(de in h)te=h[de],ie=c[de],!h.hasOwnProperty(de)||te===ie||te==null&&ie==null||ht(i,o,de,te,h,ie)}var Jm=null,eg=null;function Td(i){return i.nodeType===9?i:i.ownerDocument}function Bx(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 Vx(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 tg(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 ng=null;function iM(){var i=window.event;return i&&i.type==="popstate"?i===ng?!1:(ng=i,!0):(ng=null,!1)}var Ux=typeof setTimeout=="function"?setTimeout:void 0,aM=typeof clearTimeout=="function"?clearTimeout:void 0,Fx=typeof Promise=="function"?Promise:void 0,oM=typeof queueMicrotask=="function"?queueMicrotask:typeof Fx<"u"?function(i){return Fx.resolve(null).then(i).catch(sM)}:Ux;function sM(i){setTimeout(function(){throw i})}function qi(i){return i==="head"}function Hx(i,o){var c=o,h=0,g=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&&Fl(k.documentElement),c&2&&Fl(k.body),c&4)for(c=k.head,Fl(c),k=c.firstChild;k;){var O=k.nextSibling,M=k.nodeName;k[rl]||M==="SCRIPT"||M==="STYLE"||M==="LINK"&&k.rel.toLowerCase()==="stylesheet"||c.removeChild(k),k=O}}if(g===0){i.removeChild(b),Yl(o);return}g--}else c==="$"||c==="$?"||c==="$!"?g++:h=c.charCodeAt(0)-48;else h=0;c=b}while(c);Yl(o)}function rg(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":rg(c),lp(c);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(c.rel.toLowerCase()==="stylesheet")continue}i.removeChild(c)}}function lM(i,o,c,h){for(;i.nodeType===1;){var g=c;if(i.nodeName.toLowerCase()!==o.toLowerCase()){if(!h&&(i.nodeName!=="INPUT"||i.type!=="hidden"))break}else if(h){if(!i[rl])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!==g.rel||i.getAttribute("href")!==(g.href==null||g.href===""?null:g.href)||i.getAttribute("crossorigin")!==(g.crossOrigin==null?null:g.crossOrigin)||i.getAttribute("title")!==(g.title==null?null:g.title))break;return i;case"style":if(i.hasAttribute("data-precedence"))break;return i;case"script":if(b=i.getAttribute("src"),(b!==(g.src==null?null:g.src)||i.getAttribute("type")!==(g.type==null?null:g.type)||i.getAttribute("crossorigin")!==(g.crossOrigin==null?null:g.crossOrigin))&&b&&i.hasAttribute("async")&&!i.hasAttribute("itemprop"))break;return i;default:return i}}else if(o==="input"&&i.type==="hidden"){var b=g.name==null?null:""+g.name;if(g.type==="hidden"&&i.getAttribute("name")===b)return i}else return i;if(i=yr(i.nextSibling),i===null)break}return null}function cM(i,o,c){if(o==="")return null;for(;i.nodeType!==3;)if((i.nodeType!==1||i.nodeName!=="INPUT"||i.type!=="hidden")&&!c||(i=yr(i.nextSibling),i===null))return null;return i}function ig(i){return i.data==="$!"||i.data==="$?"&&i.ownerDocument.readyState==="complete"}function uM(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 yr(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 ag=null;function Gx(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 $x(i,o,c){switch(o=Td(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 Fl(i){for(var o=i.attributes;o.length;)i.removeAttributeNode(o[0]);lp(i)}var or=new Map,Kx=new Set;function wd(i){return typeof i.getRootNode=="function"?i.getRootNode():i.nodeType===9?i:i.ownerDocument}var pi=X.d;X.d={f:dM,r:fM,D:hM,C:pM,L:mM,m:gM,X:vM,S:yM,M:bM};function dM(){var i=pi.f(),o=yd();return i||o}function fM(i){var o=xo(i);o!==null&&o.tag===5&&o.type==="form"?fS(o):pi.r(i)}var rs=typeof document>"u"?null:document;function qx(i,o,c){var h=rs;if(h&&typeof o=="string"&&o){var g=Jn(o);g='link[rel="'+i+'"][href="'+g+'"]',typeof c=="string"&&(g+='[crossorigin="'+c+'"]'),Kx.has(g)||(Kx.add(g),i={rel:i,crossOrigin:c,href:o},h.querySelector(g)===null&&(o=h.createElement("link"),sn(o,"link",i),Qt(o),h.head.appendChild(o)))}}function hM(i){pi.D(i),qx("dns-prefetch",i,null)}function pM(i,o){pi.C(i,o),qx("preconnect",i,o)}function mM(i,o,c){pi.L(i,o,c);var h=rs;if(h&&i&&o){var g='link[rel="preload"][as="'+Jn(o)+'"]';o==="image"&&c&&c.imageSrcSet?(g+='[imagesrcset="'+Jn(c.imageSrcSet)+'"]',typeof c.imageSizes=="string"&&(g+='[imagesizes="'+Jn(c.imageSizes)+'"]')):g+='[href="'+Jn(i)+'"]';var b=g;switch(o){case"style":b=is(i);break;case"script":b=as(i)}or.has(b)||(i=p({rel:"preload",href:o==="image"&&c&&c.imageSrcSet?void 0:i,as:o},c),or.set(b,i),h.querySelector(g)!==null||o==="style"&&h.querySelector(Hl(b))||o==="script"&&h.querySelector(Gl(b))||(o=h.createElement("link"),sn(o,"link",i),Qt(o),h.head.appendChild(o)))}}function gM(i,o){pi.m(i,o);var c=rs;if(c&&i){var h=o&&typeof o.as=="string"?o.as:"script",g='link[rel="modulepreload"][as="'+Jn(h)+'"][href="'+Jn(i)+'"]',b=g;switch(h){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":b=as(i)}if(!or.has(b)&&(i=p({rel:"modulepreload",href:i},o),or.set(b,i),c.querySelector(g)===null)){switch(h){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(c.querySelector(Gl(b)))return}h=c.createElement("link"),sn(h,"link",i),Qt(h),c.head.appendChild(h)}}}function yM(i,o,c){pi.S(i,o,c);var h=rs;if(h&&i){var g=Ao(h).hoistableStyles,b=is(i);o=o||"default";var k=g.get(b);if(!k){var O={loading:0,preload:null};if(k=h.querySelector(Hl(b)))O.loading=5;else{i=p({rel:"stylesheet",href:i,"data-precedence":o},c),(c=or.get(b))&&og(i,c);var M=k=h.createElement("link");Qt(M),sn(M,"link",i),M._p=new Promise(function(Q,se){M.onload=Q,M.onerror=se}),M.addEventListener("load",function(){O.loading|=1}),M.addEventListener("error",function(){O.loading|=2}),O.loading|=4,Cd(k,o,h)}k={type:"stylesheet",instance:k,count:1,state:O},g.set(b,k)}}}function vM(i,o){pi.X(i,o);var c=rs;if(c&&i){var h=Ao(c).hoistableScripts,g=as(i),b=h.get(g);b||(b=c.querySelector(Gl(g)),b||(i=p({src:i,async:!0},o),(o=or.get(g))&&sg(i,o),b=c.createElement("script"),Qt(b),sn(b,"link",i),c.head.appendChild(b)),b={type:"script",instance:b,count:1,state:null},h.set(g,b))}}function bM(i,o){pi.M(i,o);var c=rs;if(c&&i){var h=Ao(c).hoistableScripts,g=as(i),b=h.get(g);b||(b=c.querySelector(Gl(g)),b||(i=p({src:i,async:!0,type:"module"},o),(o=or.get(g))&&sg(i,o),b=c.createElement("script"),Qt(b),sn(b,"link",i),c.head.appendChild(b)),b={type:"script",instance:b,count:1,state:null},h.set(g,b))}}function Wx(i,o,c,h){var g=(g=be.current)?wd(g):null;if(!g)throw Error(r(446));switch(i){case"meta":case"title":return null;case"style":return typeof c.precedence=="string"&&typeof c.href=="string"?(o=is(c.href),c=Ao(g).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=is(c.href);var b=Ao(g).hoistableStyles,k=b.get(i);if(k||(g=g.ownerDocument||g,k={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},b.set(i,k),(b=g.querySelector(Hl(i)))&&!b._p&&(k.instance=b,k.state.loading=5),or.has(i)||(c={rel:"preload",as:"style",href:c.href,crossOrigin:c.crossOrigin,integrity:c.integrity,media:c.media,hrefLang:c.hrefLang,referrerPolicy:c.referrerPolicy},or.set(i,c),b||_M(g,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=as(c),c=Ao(g).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 is(i){return'href="'+Jn(i)+'"'}function Hl(i){return'link[rel="stylesheet"]['+i+"]"}function Zx(i){return p({},i,{"data-precedence":i.precedence,precedence:null})}function _M(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}),sn(o,"link",c),Qt(o),i.head.appendChild(o))}function as(i){return'[src="'+Jn(i)+'"]'}function Gl(i){return"script[async]"+i}function Yx(i,o,c){if(o.count++,o.instance===null)switch(o.type){case"style":var h=i.querySelector('style[data-href~="'+Jn(c.href)+'"]');if(h)return o.instance=h,Qt(h),h;var g=p({},c,{"data-href":c.href,"data-precedence":c.precedence,href:null,precedence:null});return h=(i.ownerDocument||i).createElement("style"),Qt(h),sn(h,"style",g),Cd(h,c.precedence,i),o.instance=h;case"stylesheet":g=is(c.href);var b=i.querySelector(Hl(g));if(b)return o.state.loading|=4,o.instance=b,Qt(b),b;h=Zx(c),(g=or.get(g))&&og(h,g),b=(i.ownerDocument||i).createElement("link"),Qt(b);var k=b;return k._p=new Promise(function(O,M){k.onload=O,k.onerror=M}),sn(b,"link",h),o.state.loading|=4,Cd(b,c.precedence,i),o.instance=b;case"script":return b=as(c.src),(g=i.querySelector(Gl(b)))?(o.instance=g,Qt(g),g):(h=c,(g=or.get(b))&&(h=p({},c),sg(h,g)),i=i.ownerDocument||i,g=i.createElement("script"),Qt(g),sn(g,"link",h),i.head.appendChild(g),o.instance=g);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,Cd(h,c.precedence,i));return o.instance}function Cd(i,o,c){for(var h=c.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),g=h.length?h[h.length-1]:null,b=g,k=0;k<h.length;k++){var O=h[k];if(O.dataset.precedence===o)b=O;else if(b!==g)break}b?b.parentNode.insertBefore(i,b.nextSibling):(o=c.nodeType===9?c.head:c,o.insertBefore(i,o.firstChild))}function og(i,o){i.crossOrigin==null&&(i.crossOrigin=o.crossOrigin),i.referrerPolicy==null&&(i.referrerPolicy=o.referrerPolicy),i.title==null&&(i.title=o.title)}function sg(i,o){i.crossOrigin==null&&(i.crossOrigin=o.crossOrigin),i.referrerPolicy==null&&(i.referrerPolicy=o.referrerPolicy),i.integrity==null&&(i.integrity=o.integrity)}var Rd=null;function Xx(i,o,c){if(Rd===null){var h=new Map,g=Rd=new Map;g.set(c,h)}else g=Rd,h=g.get(c),h||(h=new Map,g.set(c,h));if(h.has(i))return h;for(h.set(i,null),c=c.getElementsByTagName(i),g=0;g<c.length;g++){var b=c[g];if(!(b[rl]||b[hn]||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 Qx(i,o,c){i=i.ownerDocument||i,i.head.insertBefore(c,o==="title"?i.querySelector("head > title"):null)}function EM(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 Jx(i){return!(i.type==="stylesheet"&&(i.state.loading&3)===0)}var $l=null;function SM(){}function xM(i,o,c){if($l===null)throw Error(r(475));var h=$l;if(o.type==="stylesheet"&&(typeof c.media!="string"||matchMedia(c.media).matches!==!1)&&(o.state.loading&4)===0){if(o.instance===null){var g=is(c.href),b=i.querySelector(Hl(g));if(b){i=b._p,i!==null&&typeof i=="object"&&typeof i.then=="function"&&(h.count++,h=kd.bind(h),i.then(h,h)),o.state.loading|=4,o.instance=b,Qt(b);return}b=i.ownerDocument||i,c=Zx(c),(g=or.get(g))&&og(c,g),b=b.createElement("link"),Qt(b);var k=b;k._p=new Promise(function(O,M){k.onload=O,k.onerror=M}),sn(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=kd.bind(h),i.addEventListener("load",o),i.addEventListener("error",o))}}function AM(){if($l===null)throw Error(r(475));var i=$l;return i.stylesheets&&i.count===0&&lg(i,i.stylesheets),0<i.count?function(o){var c=setTimeout(function(){if(i.stylesheets&&lg(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 kd(){if(this.count--,this.count===0){if(this.stylesheets)lg(this,this.stylesheets);else if(this.unsuspend){var i=this.unsuspend;this.unsuspend=null,i()}}}var Nd=null;function lg(i,o){i.stylesheets=null,i.unsuspend!==null&&(i.count++,Nd=new Map,o.forEach(TM,i),Nd=null,kd.call(i))}function TM(i,o){if(!(o.state.loading&4)){var c=Nd.get(i);if(c)var h=c.get(null);else{c=new Map,Nd.set(i,c);for(var g=i.querySelectorAll("link[data-precedence],style[data-precedence]"),b=0;b<g.length;b++){var k=g[b];(k.nodeName==="LINK"||k.getAttribute("media")!=="not all")&&(c.set(k.dataset.precedence,k),h=k)}h&&c.set(null,h)}g=o.instance,k=g.getAttribute("data-precedence"),b=c.get(k)||h,b===h&&c.set(null,g),c.set(k,g),this.count++,h=kd.bind(this),g.addEventListener("load",h),g.addEventListener("error",h),b?b.parentNode.insertBefore(g,b.nextSibling):(i=i.nodeType===9?i.head:i,i.insertBefore(g,i.firstChild)),o.state.loading|=4}}var Kl={$$typeof:T,Provider:null,Consumer:null,_currentValue:G,_currentValue2:G,_threadCount:0};function wM(i,o,c,h,g,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=ip(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ip(0),this.hiddenUpdates=ip(null),this.identifierPrefix=h,this.onUncaughtError=g,this.onCaughtError=b,this.onRecoverableError=k,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=O,this.incompleteTransitions=new Map}function eA(i,o,c,h,g,b,k,O,M,Q,se,de){return i=new wM(i,o,c,k,O,M,Q,de),o=1,b===!0&&(o|=24),b=Mn(3,null,null,o),i.current=b,b.stateNode=i,o=Hp(),o.refCount++,i.pooledCache=o,o.refCount++,b.memoizedState={element:h,isDehydrated:c,cache:o},qp(b),i}function tA(i){return i?(i=Po,i):Po}function nA(i,o,c,h,g,b){g=tA(g),h.context===null?h.context=g:h.pendingContext=g,h=Li(o),h.payload={element:c},b=b===void 0?null:b,b!==null&&(h.callback=b),c=ji(i,h,o),c!==null&&(Fn(c,i,o),Sl(c,i,o))}function rA(i,o){if(i=i.memoizedState,i!==null&&i.dehydrated!==null){var c=i.retryLane;i.retryLane=c!==0&&c<o?c:o}}function cg(i,o){rA(i,o),(i=i.alternate)&&rA(i,o)}function iA(i){if(i.tag===13){var o=jo(i,67108864);o!==null&&Fn(o,i,67108864),cg(i,67108864)}}var Id=!0;function CM(i,o,c,h){var g=z.T;z.T=null;var b=X.p;try{X.p=2,ug(i,o,c,h)}finally{X.p=b,z.T=g}}function RM(i,o,c,h){var g=z.T;z.T=null;var b=X.p;try{X.p=8,ug(i,o,c,h)}finally{X.p=b,z.T=g}}function ug(i,o,c,h){if(Id){var g=dg(h);if(g===null)Xm(i,o,h,Od,c),oA(i,h);else if(NM(g,i,o,c,h))h.stopPropagation();else if(oA(i,h),o&4&&-1<kM.indexOf(i)){for(;g!==null;){var b=xo(g);if(b!==null)switch(b.tag){case 3:if(b=b.stateNode,b.current.memoizedState.isDehydrated){var k=Jr(b.pendingLanes);if(k!==0){var O=b;for(O.pendingLanes|=2,O.entangledLanes|=2;k;){var M=1<<31-gt(k);O.entanglements[1]|=M,k&=~M}jr(b),(ct&6)===0&&(md=fn()+500,Bl(0))}}break;case 13:O=jo(b,2),O!==null&&Fn(O,b,2),yd(),cg(b,2)}if(b=dg(h),b===null&&Xm(i,o,h,Od,c),b===g)break;g=b}g!==null&&h.stopPropagation()}else Xm(i,o,h,null,c)}}function dg(i){return i=gp(i),fg(i)}var Od=null;function fg(i){if(Od=null,i=So(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 Od=i,null}function aA(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(E0()){case tl:return 2;case V:return 8;case ee:case oe:return 32;case Se:return 268435456;default:return 32}default:return 32}}var hg=!1,Wi=null,Zi=null,Yi=null,ql=new Map,Wl=new Map,Xi=[],kM="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 oA(i,o){switch(i){case"focusin":case"focusout":Wi=null;break;case"dragenter":case"dragleave":Zi=null;break;case"mouseover":case"mouseout":Yi=null;break;case"pointerover":case"pointerout":ql.delete(o.pointerId);break;case"gotpointercapture":case"lostpointercapture":Wl.delete(o.pointerId)}}function Zl(i,o,c,h,g,b){return i===null||i.nativeEvent!==b?(i={blockedOn:o,domEventName:c,eventSystemFlags:h,nativeEvent:b,targetContainers:[g]},o!==null&&(o=xo(o),o!==null&&iA(o)),i):(i.eventSystemFlags|=h,o=i.targetContainers,g!==null&&o.indexOf(g)===-1&&o.push(g),i)}function NM(i,o,c,h,g){switch(o){case"focusin":return Wi=Zl(Wi,i,o,c,h,g),!0;case"dragenter":return Zi=Zl(Zi,i,o,c,h,g),!0;case"mouseover":return Yi=Zl(Yi,i,o,c,h,g),!0;case"pointerover":var b=g.pointerId;return ql.set(b,Zl(ql.get(b)||null,i,o,c,h,g)),!0;case"gotpointercapture":return b=g.pointerId,Wl.set(b,Zl(Wl.get(b)||null,i,o,c,h,g)),!0}return!1}function sA(i){var o=So(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,xj(i.priority,function(){if(c.tag===13){var h=Un();h=ap(h);var g=jo(c,h);g!==null&&Fn(g,c,h),cg(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 Dd(i){if(i.blockedOn!==null)return!1;for(var o=i.targetContainers;0<o.length;){var c=dg(i.nativeEvent);if(c===null){c=i.nativeEvent;var h=new c.constructor(c.type,c);mp=h,c.target.dispatchEvent(h),mp=null}else return o=xo(c),o!==null&&iA(o),i.blockedOn=c,!1;o.shift()}return!0}function lA(i,o,c){Dd(i)&&c.delete(o)}function IM(){hg=!1,Wi!==null&&Dd(Wi)&&(Wi=null),Zi!==null&&Dd(Zi)&&(Zi=null),Yi!==null&&Dd(Yi)&&(Yi=null),ql.forEach(lA),Wl.forEach(lA)}function Ld(i,o){i.blockedOn===o&&(i.blockedOn=null,hg||(hg=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,IM)))}var jd=null;function cA(i){jd!==i&&(jd=i,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){jd===i&&(jd=null);for(var o=0;o<i.length;o+=3){var c=i[o],h=i[o+1],g=i[o+2];if(typeof h!="function"){if(fg(h||c)===null)continue;break}var b=xo(c);b!==null&&(i.splice(o,3),o-=3,fm(b,{pending:!0,data:g,method:c.method,action:h},h,g))}}))}function Yl(i){function o(M){return Ld(M,i)}Wi!==null&&Ld(Wi,i),Zi!==null&&Ld(Zi,i),Yi!==null&&Ld(Yi,i),ql.forEach(o),Wl.forEach(o);for(var c=0;c<Xi.length;c++){var h=Xi[c];h.blockedOn===i&&(h.blockedOn=null)}for(;0<Xi.length&&(c=Xi[0],c.blockedOn===null);)sA(c),c.blockedOn===null&&Xi.shift();if(c=(i.ownerDocument||i).$$reactFormReplay,c!=null)for(h=0;h<c.length;h+=3){var g=c[h],b=c[h+1],k=g[Rn]||null;if(typeof b=="function")k||cA(c);else if(k){var O=null;if(b&&b.hasAttribute("formAction")){if(g=b,k=b[Rn]||null)O=k.formAction;else if(fg(g)!==null)continue}else O=k.action;typeof O=="function"?c[h+1]=O:(c.splice(h,3),h-=3),cA(c)}}}function pg(i){this._internalRoot=i}Pd.prototype.render=pg.prototype.render=function(i){var o=this._internalRoot;if(o===null)throw Error(r(409));var c=o.current,h=Un();nA(c,h,i,o,null,null)},Pd.prototype.unmount=pg.prototype.unmount=function(){var i=this._internalRoot;if(i!==null){this._internalRoot=null;var o=i.containerInfo;nA(i.current,2,null,i,null,null),yd(),o[Eo]=null}};function Pd(i){this._internalRoot=i}Pd.prototype.unstable_scheduleHydration=function(i){if(i){var o=w0();i={blockedOn:null,target:i,priority:o};for(var c=0;c<Xi.length&&o!==0&&o<Xi[c].priority;c++);Xi.splice(c,0,i),c===0&&sA(i)}};var uA=t.version;if(uA!=="19.1.1")throw Error(r(527,uA,"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 OM={bundleType:0,version:"19.1.1",rendererPackageName:"react-dom",currentDispatcherRef:z,reconcilerVersion:"19.1.1"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Md=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Md.isDisabled&&Md.supportsFiber)try{Ce=Md.inject(OM),Ue=Md}catch{}}return Ql.createRoot=function(i,o){if(!a(i))throw Error(r(299));var c=!1,h="",g=wS,b=CS,k=RS,O=null;return o!=null&&(o.unstable_strictMode===!0&&(c=!0),o.identifierPrefix!==void 0&&(h=o.identifierPrefix),o.onUncaughtError!==void 0&&(g=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=eA(i,1,!1,null,null,c,h,g,b,k,O,null),i[Eo]=o.current,Ym(i),new pg(o)},Ql.hydrateRoot=function(i,o,c){if(!a(i))throw Error(r(299));var h=!1,g="",b=wS,k=CS,O=RS,M=null,Q=null;return c!=null&&(c.unstable_strictMode===!0&&(h=!0),c.identifierPrefix!==void 0&&(g=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&&(M=c.unstable_transitionCallbacks),c.formState!==void 0&&(Q=c.formState)),o=eA(i,1,!0,o,c??null,h,g,b,k,O,M,Q),o.context=tA(null),c=o.current,h=Un(),h=ap(h),g=Li(h),g.callback=null,ji(c,g,h),c=h,o.current.lanes=c,nl(o,c),jr(o),i[Eo]=o.current,Ym(i),new Pd(o)},Ql.version="19.1.1",Ql}var _A;function FM(){if(_A)return yg.exports;_A=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(),yg.exports=UM(),yg.exports}var HM=FM();const GM={locales:["en","en-GB","fr","es","de","ja","ko","zh","it","pt","hi","ar","ru"],defaultLocale:"en"},$M={cookieName:"INTLAYER_LOCALE",prefixDefault:!1},KM={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"},at={internationalization:GM,middleware:$M,editor:KM};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||{}),H=(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))(H||{});const mf=(e,t)=>{for(const r of t.plugins??[])if(r.canHandle(e))return r.transform(e,t,(a,s)=>mf(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:H.Array,key:a}]};return mf(r,s)});const n={};for(const r in e){const a={...t,children:e[r],keyPath:[...t.keyPath,{type:H.Object,key:r}]};n[r]=mf(e[r],a)}return n},qM=(e,t)=>{const n=Object.keys(e),r=n[n.length-1];return e[`${t}`]??e.fallback??e[r]},WM=(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}},ZM=(e,t)=>{const n=WM(e,t)??"fallback";return e[n]},YM=(e,t)=>e.replace(/\{\{(.*?)\}\}/g,(n,r)=>(t[r]??"").toString()),XM="breadcrumb",QM={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"}}},JM=["breadcrumb::local::../@intlayer/design-system/src/components/Breadcrumb/breadcrumb.content.ts"],ez={key:XM,content:QM,localIds:JM},tz="code",nz={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"}}},rz=["code::local::../@intlayer/design-system/src/components/IDE/code.content.ts","code::local::../@intlayer/design-system/src/components/IDE/copyCode.content.ts"],iz={key:tz,content:nz,localIds:rz},az="copy-button",oz={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"}}},sz=["copy-button::local::../@intlayer/design-system/src/components/CopyButton/CopyButton.content.ts"],lz={key:az,content:oz,localIds:sz},cz="dictionary-detail-schema",uz={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"}}},dz=["dictionary-detail-schema::local::../@intlayer/design-system/src/components/DictionaryFieldEditor/DictionaryDetails/useDictionaryDetailsSchema.content.ts"],fz={key:cz,content:uz,localIds:dz},hz="dictionary-details",pz=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"}}}}`),mz=["dictionary-details::local::../@intlayer/design-system/src/components/DictionaryFieldEditor/DictionaryDetails/dictionaryDetails.content.tsx"],gz={key:hz,content:pz,localIds:mz},yz="dictionary-edition-drawer",vz={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"}}},bz=["dictionary-edition-drawer::local::client/src/components/Editor/DictionaryEditionDrawer/dictionaryEditionDrawer.content.ts"],fb={key:yz,content:vz,localIds:bz},_z="dictionary-field-editor",Ez={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"}}}},Sz=["dictionary-field-editor::local::../@intlayer/design-system/src/components/DictionaryFieldEditor/dictionaryFieldEditor.content.ts"],xz={key:_z,content:Ez,localIds:Sz},Az="dictionary-form-schema",Tz={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"}}},wz=["dictionary-form-schema::local::../@intlayer/design-system/src/components/DictionaryFieldEditor/DictionaryCreationForm/useDictionaryFormSchema.content.ts"],Cz={key:Az,content:Tz,localIds:wz},Rz="dictionary-form",kz={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"}}}},Nz=["dictionary-form::local::../@intlayer/design-system/src/components/DictionaryFieldEditor/DictionaryCreationForm/dictionaryCreationForm.content.ts"],Iz={key:Rz,content:kz,localIds:Nz},Oz="dictionary-list-drawer",Dz={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:"शब्दकोश सूची",tr:"Sözlük listesi"}}},buttonLabel:{label:{fields:["dictionaryLocalId","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}}",tr:"Sözlük düzenleyiciyi aç {{dictionaryLocalId}}"}}}}},Lz=["dictionary-list-drawer::local::client/src/components/Editor/DictionaryListDrawer/dictionaryListDrawer.content.ts"],qR={key:Oz,content:Dz,localIds:Lz},jz="expand-collapse",Pz={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"}}}}},Mz=["expand-collapse::local::../@intlayer/design-system/src/components/ExpandCollapse/expandCollapse.content.ts"],zz={key:jz,content:Pz,localIds:Mz},Bz="loader",Vz={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"}}},Uz=["loader::local::../@intlayer/design-system/src/components/Loader/index.content.ts"],Fz={key:Bz,content:Vz,localIds:Uz},Hz="locale-switcher-content",Gz={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"}}}},$z=["locale-switcher-content::local::../@intlayer/design-system/src/components/LocaleSwitcherContentDropDown/localeSwitcher.content.ts"],Kz={key:Hz,content:Gz,localIds:$z},qz="locale-switcher",Wz={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"}}}},Zz=["locale-switcher::local::../@intlayer/design-system/src/components/LocaleSwitcherDropDown/localeSwitcher.content.ts"],Yz={key:qz,content:Wz,localIds:Zz},Xz="long-press-message",Qz={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}}"'}}}},Jz=["long-press-message::local::client/src/components/Editor/LongPressMessage/index.content.ts"],WR={key:Xz,content:Qz,localIds:Jz},eB="navigation-view",tB={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"}}}},nB=["navigation-view::local::../@intlayer/design-system/src/components/DictionaryFieldEditor/NavigationView/navigationViewNode.content.ts"],rB={key:eB,content:tB,localIds:nB},iB="no-application-url-view",aB={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:"查看如何配置编辑器"}}}},oB=["no-application-url-view::local::client/src/components/Editor/NoApplicationURLView/noApplicationURLView.content.ts"],ZR={key:iB,content:aB,localIds:oB},sB="node-type-selector",lB={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"}}},cB=["node-type-selector::local::../@intlayer/design-system/src/components/DictionaryFieldEditor/nodeTypeSelector.content.ts"],uB={key:sB,content:lB,localIds:cB},dB="save-dictionary-details",fB={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"}}}}},hB=["save-dictionary-details::local::../@intlayer/design-system/src/components/DictionaryFieldEditor/SaveForm/saveForm.content.tsx"],pB={key:dB,content:fB,localIds:hB},mB="structure-view",gB={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"}}}},yB=["structure-view::local::../@intlayer/design-system/src/components/DictionaryFieldEditor/StructureView/structureView.content.ts"],vB={key:mB,content:gB,localIds:yB},bB="table",_B={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"}}},EB=["table::local::../@intlayer/design-system/src/components/Table/table.content.ts"],SB={key:bB,content:_B,localIds:EB},xB="version-switcher",AB={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"}}},TB=["version-switcher::local::../@intlayer/design-system/src/components/DictionaryFieldEditor/VersionSwitcherDropDown/versionSwitcherDropDown.content.ts"],wB={key:xB,content:AB,localIds:TB},EA={breadcrumb:ez,code:iz,"copy-button":lz,"dictionary-detail-schema":fz,"dictionary-details":gz,"dictionary-edition-drawer":fb,"dictionary-field-editor":xz,"dictionary-form-schema":Cz,"dictionary-form":Iz,"dictionary-list-drawer":qR,"expand-collapse":zz,loader:Fz,"locale-switcher-content":Kz,"locale-switcher":Yz,"long-press-message":WR,"navigation-view":rB,"no-application-url-view":ZR,"node-type-selector":uB,"save-dictionary-details":pB,"structure-view":vB,table:SB,"version-switcher":wB},YR=(e,t,n)=>{const r={dictionaryKey:e.key,dictionaryPath:e.filePath,keyPath:[],plugins:n};return hb(e.content,r,t)},XR=(e,t,n)=>{const r=EA[e];if(!r)throw new Error(`Dictionary ${e} not found`,EA);return YR(r,t,n)},CB=(e,t,n)=>{const r=XR(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},RB=(e,t,n)=>e[t??n],kB=(e,t)=>({id:"translation-plugin",canHandle:n=>typeof n=="object"&&n?.nodeType===H.Translation,transform:(n,r,a)=>{const s=structuredClone(n[H.Translation]);for(const l in s){const u={...r,children:s[l],keyPath:[...r.keyPath,{type:H.Translation,key:l}]};s[l]=a(s[l],u)}return RB(s,e,t)}}),NB={id:"enumeration-plugin",canHandle:e=>typeof e=="object"&&e?.nodeType===H.Enumeration,transform:(e,t,n)=>{const r=structuredClone(e[H.Enumeration]);for(const a in r){const s=r[a],l={...t,children:s,keyPath:[...t.keyPath,{type:H.Enumeration,key:a}]};r[a]=n(s,l)}return a=>ZM(r,a)}},IB={id:"condition-plugin",canHandle:e=>typeof e=="object"&&e?.nodeType===H.Condition,transform:(e,t,n)=>{const r=structuredClone(e[H.Condition]);for(const a in r){const s=r[a],l={...t,children:s,keyPath:[...t.keyPath,{type:H.Condition,key:a}]};r[a]=n(s,l)}return a=>qM(r,a)}},OB={id:"insertion-plugin",canHandle:e=>typeof e=="object"&&e?.nodeType===H.Insertion,transform:(e,t,n)=>{const r=[...t.keyPath,{type:H.Insertion}],a=e[H.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 m=YM(f,p);return d(m,{...u,plugins:t.plugins,children:m})}}},...t.plugins??[]]})}},DB={id:"nested-plugin",canHandle:e=>typeof e=="object"&&e?.nodeType===H.Nested,transform:(e,t)=>CB(e.nested.dictionaryKey,e.nested.path,t)},LB={id:"file-plugin",canHandle:e=>typeof e=="object"&&e?.nodeType===H.File,transform:(e,t,n)=>n(e.content,{...t,children:e.content})},hb=(e,t,n=at?.internationalization.defaultLocale)=>{const r=[OB,kB(n),NB,IB,DB,LB,...t.plugins??[]];return mf(e,{...t,plugins:r})},SA={method:"GET",headers:{"Content-Type":"application/json"},credentials:"include"},jB=e=>(Object.keys(e).forEach(t=>{e[t]===void 0&&delete e[t]}),e),zd=e=>e.reduce((t,n)=>{const r=t??{},a=jB(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:x,headers:A,...w})=>w),l=zd([SA,...s]),u=zd([SA.headers,...t.map(_=>_.headers)]),d=zd(t.map(_=>_.params)),f=l.method;if(f!=="GET"&&f!=="HEAD"){const _=zd(t.map(x=>x.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},m=`${e}${r}`,v=await fetch(m,p);if(!v.ok){const _=await v.json();throw new Error(JSON.stringify(_.error)??"An error occurred")}return await v.json()},PB=(e={},t)=>{const n=t?.editor?.backendURL??at.editor?.backendURL;if(!n)throw new Error("Backend URL is not defined in the Intlayer configuration.");const r=`${n}/api/ai`;return{customQuery:async(v,_={})=>await Ne(r,e,_,{method:"POST",body:v}),translateJSON:async(v,_={})=>await Ne(`${r}/translate/json`,e,_,{method:"POST",body:v}),auditContentDeclaration:async(v,_={})=>await Ne(`${r}/audit/dictionary`,e,_,{method:"POST",body:v}),auditContentDeclarationField:async(v,_={})=>await Ne(`${r}/audit/dictionary/field`,e,_,{method:"POST",body:v}),auditContentDeclarationMetadata:async(v,_={})=>await Ne(`${r}/audit/dictionary/metadata`,e,_,{method:"POST",body:v}),auditTag:async(v,_={})=>await Ne(`${r}/audit/tag`,e,_,{method:"POST",body:v}),askDocQuestion:async(v,_={})=>{if(!v)return;const{onMessage:x,onDone:A,...w}=v,N=new AbortController;try{const E=await fetch(`${r}/ask`,{method:"POST",headers:{"Content-Type":"application/json",...e.headers,..._.headers},body:JSON.stringify({...w,...e.body,..._.body}),signal:N.signal,credentials:"include"});if(!E.ok){let I="An error occurred";try{const D=await E.json();I=JSON.stringify(D.error)??"An error occurred"}catch{try{const D=await E.text();D&&(I=D)}catch{}}throw new Error(I)}const T=E.body?.getReader();if(!T)throw new Error("No reader available");const R=new TextDecoder;let C="";for(;;){const{done:I,value:D}=await T.read();if(I)break;C+=R.decode(D,{stream:!0});const L=C.split(`
51
- `);C=L.pop()??"";for(const U of L)if(U.startsWith("data: "))try{const K=JSON.parse(U.slice(6));K.chunk&&x?.(K.chunk),K.done&&K.response&&A?.(K.response)}catch(K){console.error("Failed to parse SSE data:",K)}}}catch(E){throw console.error("Error in askDocQuestion:",E),E}},autocomplete:async(v,_={})=>await Ne(`${r}/autocomplete`,e,_,{method:"POST",body:v})}},MB=(e={},t)=>{const n=t?.editor?.backendURL??at.editor?.backendURL;if(!n)throw new Error("Backend URL is not defined in the Intlayer configuration.");const r=`${n}/api/dictionary`;return{getDictionaries:async(v,_={})=>await Ne(r,e,_,{params:v}),getDictionariesKeys:async(v={})=>await Ne(`${r}/keys`,e,v),getDictionariesUpdateTimestamp:async(v={})=>await Ne(`${r}/update`,e,v),getDictionary:async(v,_,x={})=>await Ne(`${r}/${v}`,e,x,{params:_?{version:_.toString()}:void 0}),pushDictionaries:async(v,_={})=>await Ne(`${r}`,e,_,{method:"PATCH",body:{dictionaries:v}}),addDictionary:async(v,_={})=>await Ne(`${r}`,e,_,{method:"POST",body:v}),updateDictionary:async(v,_={})=>await Ne(`${r}/${v.id}`,e,_,{method:"PUT",body:v}),deleteDictionary:async(v,_={})=>await Ne(`${r}/${v}`,e,_,{method:"DELETE"})}},zB=(e={},t)=>{const n=t?.editor?.editorURL??at.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})}},BB=(e={},t)=>{const n=t?.editor?.backendURL??at.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"})}},QR=e=>{const t=e?.editor?.backendURL??at.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}})}},VB=(e={},t)=>{const n=t?.editor?.backendURL??at.editor?.backendURL;if(!n)throw new Error("Backend URL is not defined in the Intlayer configuration--.");const r=`${n}/api/organization`;return{getOrganizations:async(_,x={})=>await Ne(r,e,x,{params:_}),getOrganization:async(_,x={})=>await Ne(`${r}/${String(_)}`,e,x),addOrganization:async(_,x={})=>await Ne(r,e,x,{method:"POST",body:_}),addOrganizationMember:async(_,x={})=>Ne(`${r}/member`,e,x,{method:"POST",body:_}),updateOrganization:async(_,x={})=>Ne(r,e,x,{method:"PUT",body:_}),updateOrganizationMembers:async(_,x={})=>Ne(`${r}/members`,e,x,{method:"PUT",body:_}),deleteOrganization:async(_={})=>await Ne(r,e,_,{method:"DELETE"}),selectOrganization:async(_,x={})=>await Ne(`${r}/${String(_)}`,e,x,{method:"PUT"}),unselectOrganization:async(_={})=>await Ne(`${r}/logout`,e,_,{method:"POST"})}},UB=(e={},t)=>{const n=t?.editor?.backendURL??at.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,w={})=>await Ne(r,e,w,{params:A}),addProject:async(A,w={})=>await Ne(`${r}`,e,w,{method:"POST",body:A}),updateProject:async(A,w={})=>await Ne(`${r}`,e,w,{method:"PUT",body:A}),updateProjectMembers:async(A,w={})=>await Ne(`${r}/members`,e,w,{method:"PUT",body:A}),pushProjectConfiguration:async(A,w={})=>await Ne(`${r}/configuration`,e,w,{method:"PUT",body:A}),deleteProject:async(A={})=>await Ne(`${r}`,e,A,{method:"DELETE"}),selectProject:async(A,w={})=>await Ne(`${r}/${String(A)}`,e,w,{method:"PUT"}),unselectProject:async(A={})=>await Ne(`${r}/logout`,e,A,{method:"POST"}),addNewAccessKey:async(A,w={})=>await Ne(`${r}/access_key`,e,w,{method:"POST",body:A}),deleteAccessKey:async(A,w={})=>await Ne(`${r}/access_key`,e,w,{method:"DELETE",body:{clientId:A}}),refreshAccessKey:async(A,w={})=>await Ne(`${r}/access_key`,e,w,{method:"PATCH",body:{clientId:A}})}},FB=(e={},t)=>{const n=t?.editor?.backendURL??at.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})}},HB=(e={},t)=>{const n=t?.editor?.backendURL??at.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"})}},GB=(e={},t)=>{const n=t?.editor?.backendURL??at.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"})}},$B=(e={},t)=>{const n=t?.editor?.backendURL??at.editor?.backendURL;if(!n)throw new Error("Backend URL is not defined in the Intlayer configuration.");const r=`${n}/api/user`;return{createUser:async(v,_={})=>await Ne(`${r}/`,e,_,{method:"POST",body:v}),getUsers:async(v,_={})=>await Ne(r,e,_,{params:v}),getUserById:async(v,_={})=>await Ne(`${r}/${v}`,e,_),getUserByAccount:async(v,_,x={})=>await Ne(`${r}/account/${_}/${v}`,e,x),getUserByEmail:async(v,_={})=>await Ne(`${r}/email/${v}`,e,_),updateUser:async(v,_={})=>await Ne(`${r}`,e,_,{method:"PUT",body:v}),deleteUser:async(v,_={})=>await Ne(`${r}/${v}`,e,_,{method:"DELETE"}),getVerifyEmailStatusURL:v=>`${r}/verify-email-status/${String(v)}`}},KB=(e={},t)=>({organization:VB(e,t),project:UB(e,t),user:$B(e,t),oAuth:QR(t),dictionary:MB(e,t),stripe:HB(e,t),ai:PB(e,t),tag:GB(e,t),search:FB(e,t),editor:zB(e,t),newsletter:BB(e,t)}),xA=(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===H.Object||u.type===H.Array)&&(s=[u.key],(!r[u.key]||typeof r[u.key]!="object")&&(r[u.key]={}),r=r[u.key]),(u.type===H.Translation||u.type===H.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===H.Enumeration||u.type===H.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===H.Markdown||u.type===H.Insertion)&&(s=[u.type],(!r[u.type]||typeof r[u.type]!="object")&&(r[u.type]=""),r=r[u.type]),u.type===H.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},dr=(e,t)=>{let n=structuredClone(e);for(const r of t)r.type===H.Object||r.type===H.Array?n=n?.[r.key]:r.type===H.Translation||r.type===H.Condition||r.type===H.Enumeration?n=n?.[r.type][r.key]:(r.type===H.Markdown||r.type===H.Insertion||r.type===H.File)&&(n=n?.[r.type]);return n},Jl=(e,t,n)=>{const r=structuredClone(n);switch(e){case H.Translation:return{nodeType:H.Translation,[H.Translation]:Object.assign({},...t.map(a=>({[a]:structuredClone(r)??""})))};case H.Enumeration:return{nodeType:H.Enumeration,[H.Enumeration]:{1:r??""}};case H.Condition:return{nodeType:H.Condition,[H.Condition]:{true:r??"",false:r??""}};case H.Insertion:return{nodeType:H.Insertion,[H.Insertion]:{insertion:r??""}};case H.Nested:return{nodeType:H.Nested,[H.Nested]:{dictionaryKey:""}};case H.Markdown:return{nodeType:H.Markdown,[H.Markdown]:r??""};case H.File:return{nodeType:H.File,[H.File]:r??""};case H.Object:return{newKey:r??""};case H.Array:return[r??""];case H.Text:return r??"";case H.Number:return r??0;case H.Boolean:return r??!0;default:return r??""}},Zn=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===H.Translation||r.nodeType===H.Enumeration||r.nodeType===H.Condition||r.nodeType===H.Insertion?Zn(a):r.nodeType===H.Nested?"dictionary-key":r.nodeType===H.File?"file/path":r.nodeType===H.Markdown?Zn(r):a}if(!e||typeof e!="object")return e;if(Array.isArray(e))return e.map(Zn);const t=Object.entries(e).map(([r,a])=>[r,Zn(a)]);return Object.fromEntries(t)},JR=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===H.Translation||t.nodeType===H.Enumeration||t.nodeType===H.Condition||t.nodeType===H.Insertion||t.nodeType===H.Gender||t.nodeType===H.File||t.nodeType===H.Markdown){const r=Object.keys(n)[0];return n[r]}return t.nodeType===H.Nested?void 0:n}return!e||typeof e!="object"?e:Array.isArray(e)?e[0]:e},qB=e=>typeof e=="object"&&typeof e?.key<"u"&&typeof e?.props<"u",Ms=e=>typeof e=="string"?H.Text:typeof e?.nodeType=="string"?e.nodeType:Array.isArray(e)?H.Array:qB(e)?H.ReactNode:typeof e=="number"?H.Number:typeof e=="boolean"?H.Boolean:e&&typeof e=="object"?H.Object:H.Unknown,WB=[{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"}],ZB=[{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"}],YB=[{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"}],XB=[{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"}],QB=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"}]`),JB=[{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"}],eV=[{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"}],tV=[{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"}],nV=[{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"}],rV=[{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:"शब्दकोश सूची",tr:"Sözlük listesi"}}},buttonLabel:{label:{fields:["dictionaryLocalId","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}}",tr:"Sözlük düzenleyiciyi aç {{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"}],iV=[{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"}],aV=[{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"}],oV=[{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"}],sV=[{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"}],lV=[{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"}],cV=[{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"}],uV=[{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"}],dV=[{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"}],fV=[{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"}],hV=[{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"}],pV=[{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"}],mV=[{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"}],gV={breadcrumb:WB,code:ZB,"copy-button":YB,"dictionary-detail-schema":XB,"dictionary-details":QB,"dictionary-edition-drawer":JB,"dictionary-field-editor":eV,"dictionary-form-schema":tV,"dictionary-form":nV,"dictionary-list-drawer":rV,"expand-collapse":iV,loader:aV,"locale-switcher-content":oV,"locale-switcher":sV,"long-press-message":lV,"navigation-view":cV,"no-application-url-view":uV,"node-type-selector":dV,"save-dictionary-details":fV,"structure-view":hV,table:pV,"version-switcher":mV},yV=(e,t,n=gV)=>{const r=n?.[e];if(!r)return null;for(const a of r)if(dr(a.content,t))return a},vV=(e,t,n)=>{let r=e,a=null,s=null;for(const l of n)a=r,(l.type===H.Object||l.type===H.Array)&&(s=l.key,r=r[l.key]),(l.type===H.Translation||l.type===H.Enumeration||l.type===H.Condition)&&(s=l.type,r=r[l.type][l.key]),(l.type===H.Markdown||l.type===H.ReactNode||l.type===H.Insertion||l.type===H.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},bV=(e,t)=>JSON.stringify([e,t]),_V=e=>{const t=new Map;function n(r,a){if(e.name==="DisplayNames"&&typeof Intl?.DisplayNames!="function")return r;const s=bV(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},EV=()=>new Proxy(Intl,{get:(e,t,n)=>{const r=Reflect.get(e,t,n);return typeof r=="function"&&/^[A-Z]/.test(String(t))?_V(r):r}}),SV=EV(),xV=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"}},ek=e=>/^[a-zA-Z][a-zA-Z\d+\-.]*:/.test(e),gf=(e,t=e)=>new SV.DisplayNames(t,{type:"language"}).of(e)??"Unknown locale",AV=(e,t=at.internationalization.locales)=>{const n=ek(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","")},TV=(e,t=at.internationalization.locales,n=at.internationalization.defaultLocale,r=at.middleware.prefixDefault)=>{const a=AV(e,t),s=ek(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,m)=>{const v=m.toString()===n.toString();let x=r||!v?`/${m}${u}`:u;x.length>1&&x.endsWith("/")&&(x=x.slice(0,-1));const A=s?`${d}${x}${l.search}${l.hash}`:`${x}${l.search}${l.hash}`;return p[m]=A,p},{})},wV=(e,t,n=at.internationalization.locales,r=at.internationalization.defaultLocale,a=at.middleware.prefixDefault)=>TV(e,n,r,a)[t],CV=(e,t=at.internationalization.locales,n=at.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},RV=e=>{const t=e.trim();if(!t)return null;if(!t.startsWith("[")&&!t.startsWith("{"))return!isNaN(Number(t))||t.startsWith('"')&&t.endsWith('"')||t.startsWith("'")&&t.endsWith("'")?JSON.parse(t):t;let n=t.replace(/^\[/,"[").replace(/^\{/,"{").replace(/\]$/,"]").replace(/\}$/,"}").replace(/([\w\d_]+)\s*:/g,'"$1":').replace(/:\s*([a-zA-Z_][\w\d_]*)/g,': "$1"');return n=n.replace(/\[([^\[\]]+?)\]/g,(r,a)=>`[${a.split(",").map(l=>{const u=l.trim();return u.startsWith('"')&&u.endsWith('"')||!isNaN(Number(u))?u:`"${u}"`}).join(", ")}]`),JSON.parse(n)},tk=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 m=d.match(/^([^:]+)\s*:\s*(.*)$/);if(m){const v=m[1].trim(),_=m[2].trim();if(_==="")s=v,l=[];else try{r[v]=RV(_)}catch{r[v]=_}}}}return r}catch{return{}}},Jc=(e,t)=>e.every((n,r)=>t[r]&&t[r].key===n.key&&t[r].type===n.type),kV=(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}},NV=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 An=(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))(An||{});const ln=[];for(let e=0;e<256;++e)ln.push((e+256).toString(16).slice(1));function IV(e,t=0){return(ln[e[t+0]]+ln[e[t+1]]+ln[e[t+2]]+ln[e[t+3]]+"-"+ln[e[t+4]]+ln[e[t+5]]+"-"+ln[e[t+6]]+ln[e[t+7]]+"-"+ln[e[t+8]]+ln[e[t+9]]+"-"+ln[e[t+10]]+ln[e[t+11]]+ln[e[t+12]]+ln[e[t+13]]+ln[e[t+14]]+ln[e[t+15]]).toLowerCase()}let Eg;const OV=new Uint8Array(16);function DV(){if(!Eg){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");Eg=crypto.getRandomValues.bind(crypto)}return Eg(OV)}const LV=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),AA={randomUUID:LV};function jV(e,t,n){if(AA.randomUUID&&!e)return AA.randomUUID();e=e||{};const r=e.random??e.rng?.()??DV();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,IV(r)}const{editor:Sg}=at,nk=S.createContext({postMessage:()=>null,allowedOrigins:[Sg?.applicationURL,Sg?.editorURL,Sg?.cmsURL],senderId:""}),TA=({children:e,allowedOrigins:t,postMessage:n})=>{const r=S.useRef(jV()),a=S.useMemo(()=>({postMessage:n,allowedOrigins:t,senderId:r.current}),[n,t,r.current]);return y.jsx(nk.Provider,{value:a,children:e})},pb=()=>S.useContext(nk),Cs=(e,t,n)=>{const{allowedOrigins:r,postMessage:a,senderId:s}=pb();return S.useEffect(()=>{if(t){const u=d=>{const{type:f,data:p,senderId:m}=d.data;f===e&&m!==s&&(typeof r>"u"||r?.some(v=>kV(v,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})}},PV=(e,t)=>typeof e=="function"?e(t):e,sa=(e,t,n)=>{const{postMessage:r,senderId:a}=pb(),{emit:s,receive:l}=n??{emit:!0,receive:!0},u=(_,x)=>{const A=PV(_,x);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]=S.useState(()=>u(t)),m=_=>p(x=>u(_,x));Cs(`${e}/post`,l?_=>{p(_)}:void 0);const v=(_,x)=>{s&&typeof r=="function"&&x!==a&&(typeof f>"u"||r({type:`${e}/post`,data:f,senderId:a}))};return Cs(`${e}/get`,s?v:void 0,f),S.useEffect(()=>{l&&typeof r=="function"&&typeof f>"u"&&r({type:`${e}/get`,senderId:a})},[]),[f,m,d]},rk=S.createContext(void 0),MV=({children:e,configuration:t})=>y.jsx(rk.Provider,{value:t,children:e}),Zr=()=>S.useContext(rk),ik=S.createContext(void 0),ak=S.createContext(void 0),zV=({children:e})=>{const[t,n]=sa(An.INTLAYER_LOCALE_DICTIONARIES_CHANGED,void 0),r=S.useMemo(()=>({localeDictionaries:t??{}}),[t]),a=S.useMemo(()=>({setLocaleDictionaries:n,setLocaleDictionary:s=>{s.localId&&n(l=>({...l,[s.localId]:s}))}}),[n]);return y.jsx(ik.Provider,{value:r,children:y.jsx(ak.Provider,{value:a,children:e})})},yh=()=>S.useContext(ak),ok=()=>{const e=yh(),t=S.useContext(ik);if(!t)throw new Error("useDictionariesRecordStates must be used within a DictionariesRecordProvider");return{...t,...e}},sk=S.createContext(void 0),BV=e=>Cs(`${An.INTLAYER_EDITED_CONTENT_CHANGED}/get`,e),lk=S.createContext(void 0),wA=(e,t)=>typeof e=="function"?e(t):e,VV=({children:e})=>{const{localeDictionaries:t}=ok(),[n,r]=sa(An.INTLAYER_EDITED_CONTENT_CHANGED),a=_=>{let x=wA(_);return r(A=>(x=wA(_,A?.[x.key]),{...A,[x.key]:x})),x},s=(_,x)=>{r(A=>({...A,[_]:{...A?.[_],content:x}}))},l=(_,x,A=[],w=!0)=>{r(N=>{const E=t[_]?.content,T=structuredClone(N?.[_]?.content??E);let R=A;if(!w){let I=0;const D=A.slice(0,-1),L=A[A.length-1];let U=L.key;for(;typeof dr(T,R)<"u";)I++,U=I===0?L.key:`${L.key} (${I})`,R=[...D,{...L,key:U}]}const C=xA(T,R,x);return{...N,[_]:{...N?.[_],content:C}}})},u=(_,x,A=[])=>{r(w=>{const N=t[_]?.content,E=structuredClone(w?.[_]?.content??N),T=vV(E,x,A);return{...w,[_]:{...w?.[_],content:T}}})},d=(_,x)=>{r(A=>{const w=t[_]?.content,N=structuredClone(A?.[_]?.content??w),E=dr(w,x),T=xA(N,x,E);return{...A,[_]:{...A?.[_],content:T}}})},f=_=>{r(x=>{const A={...x};return delete A[_],A})},p=_=>{r(x=>Object.entries(x).reduce((w,[N,E])=>N===_?w:{...w,[N]:E},{}))},m=()=>{r({})},v=(_,x)=>{if(!n)return;if(_.includes(":local:")||_.includes(":remote:")){const N=n?.[_]?.content??{};return dr(N,x)}const w=Object.keys(n).filter(N=>N.startsWith(`${_}:`));for(const N of w){const E=n?.[N]?.content??{},T=dr(E,x);if(T)return T}};return y.jsx(sk.Provider,{value:{editedContent:n},children:y.jsx(lk.Provider,{value:{setEditedContentState:r,setEditedDictionary:a,setEditedContent:s,addEditedContent:l,renameEditedContent:u,removeEditedContent:d,restoreEditedContent:f,clearEditedDictionaryContent:p,clearEditedContent:m,getEditedContentValue:v},children:e})})},zs=()=>S.useContext(lk),Tn=()=>{const e=S.useContext(sk),t=zs();return{...e,...t}},ck=S.createContext({enabled:!1}),UV=e=>sa(An.INTLAYER_EDITOR_ENABLED,!1,e),FV=e=>Cs(`${An.INTLAYER_EDITOR_ENABLED}/post`,e),uk=e=>Cs(`${An.INTLAYER_EDITOR_ENABLED}/get`,e),HV=({children:e})=>{const[t]=UV({emit:!1,receive:!0});return y.jsx(ck.Provider,{value:{enabled:t},children:e})},dk=()=>S.useContext(ck),fk=S.createContext(void 0),hk=S.createContext(void 0),GV=({children:e})=>{const[t,n]=sa(An.INTLAYER_FOCUSED_CONTENT_CHANGED,null),r=a=>{n(s=>s&&{...s,keyPath:a})};return y.jsx(fk.Provider,{value:{focusedContent:t},children:y.jsx(hk.Provider,{value:{setFocusedContent:n,setFocusedContentKeyPath:r},children:e})})},mb=()=>{const e=S.useContext(hk);if(e===void 0)throw new Error("useFocusDictionaryActions must be used within a FocusDictionaryProvider");return e},pa=()=>{const e=mb(),t=S.useContext(fk);if(t===void 0)throw new Error("useFocusDictionaryState must be used within a FocusDictionaryProvider");return{...t,...e}},CA=({children:e})=>{const t=BV();return S.useEffect(()=>{t()},[]),y.jsx(zV,{children:y.jsx(VV,{children:y.jsx(GV,{children:e})})})},$V=({children:e,fallback:t})=>{const n=uk(),{enabled:r}=dk();return S.useEffect(()=>{r||n()},[r]),r?e:t},KV=({children:e,fallback:t})=>{const[n,r]=S.useState(!1);return S.useEffect(()=>{r(window.self!==window.top)},[]),n?e:t},qV=({children:e,configuration:t,...n})=>y.jsx(HV,{children:y.jsx(MV,{configuration:t,children:n.mode==="editor"?y.jsx(TA,{...n,children:y.jsx(CA,{children:e})}):y.jsx(KV,{fallback:e,children:y.jsx(TA,{...n,children:y.jsx($V,{fallback:e,children:y.jsx(CA,{children:e})})})})})}),WV=(e,t)=>sa(An.INTLAYER_URL_CHANGE,e,t),ZV=()=>Cs(An.INTLAYER_IFRAME_CLICKED,NV);/*! js-cookie v3.0.5 | MIT */function Bd(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 YV={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 Py(e,t){function n(a,s,l){if(!(typeof document>"u")){l=Bd({},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,"",Bd({},s,{expires:-1}))},withAttributes:function(a){return Py(this.converter,Bd({},this.attributes,a))},withConverter:function(a){return Py(Bd({},this.converter,a),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(e)}})}var pk=Py(YV,{path:"/"});const{cookieName:mk}=at.middleware,XV={path:"/",expires:void 0,domain:void 0,secure:!1,sameSite:"strict"},gb=pk.get(mk),gk=e=>{pk.set(mk,e,XV)},QV=()=>({localeCookie:gb,setLocaleCookie:gk}),eu=S.createContext({locale:gb??at?.internationalization?.defaultLocale,setLocale:()=>null,disableEditor:!1}),JV=()=>S.useContext(eu),eU=({locale:e,defaultLocale:t,children:n,setLocale:r,disableEditor:a})=>{const{internationalization:s}=at??{},{defaultLocale:l,locales:u}=s??{},d=e??gb??t??l,[f,p]=sa(An.INTLAYER_CURRENT_LOCALE,d),v=r??(x=>{if(f.toString()!==x.toString()){if(!u?.map(String).includes(x)){console.error(`Locale ${x} is not available`);return}p(x),gk(x)}}),_=CV(e??f);return y.jsx(eu.Provider,{value:{locale:_,setLocale:v,disableEditor:a},children:n})},Lf=({children:e,value:t,additionalProps:n})=>{const r=S.isValidElement(e)?e:y.jsx(y.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)}})},tU=(e,t,n)=>XR(e,t,[vk,bk,_k]),dn=(e,t)=>{const{locale:n}=S.useContext(eu);return S.useMemo(()=>tU(e,n),[e,n,t])},yb=({onLocaleChange:e}={})=>{const{defaultLocale:t,locales:n}=at?.internationalization??{},{locale:r,setLocale:a}=S.useContext(eu),{setLocaleCookie:s}=QV(),l=S.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}},nU=250,rU=({children:e,onPress:t,onHover:n,onUnhover:r,onClickOutside:a,pressDuration:s=nU,isSelecting:l,...u})=>{const d=S.useRef(null),[f,p]=S.useState(!1),[m,v]=S.useState(l),_=S.useRef(null),x=typeof e=="string",A=()=>{v(!0),t()},w=()=>{_.current=setTimeout(()=>{A()},s)},N=()=>{_.current&&(clearTimeout(_.current),_.current=null)},E=()=>{N(),w()},T=()=>{p(!0),n?.()},R=()=>{r?.(),p(!1),N()},C=S.useCallback(L=>{d.current&&!d.current.contains(L.target)&&(v(!1),a?.())},[a]);S.useEffect(()=>(document.addEventListener("mousedown",C),()=>{document.removeEventListener("mousedown",C)}),[C]);const I=L=>{m&&(L.preventDefault(),L.stopPropagation())},D=()=>{v(!1)};return y.jsx("span",{style:{display:x?"inline":"inline-block",cursor:"pointer",userSelect:"none",borderRadius:"0.375rem",outlineWidth:"2px",outlineOffset:"4px",outlineStyle:"solid",outlineColor:l||m||f?"inherit":"transparent",transition:"all 100ms 50ms ease-in-out"},role:"button",tabIndex:0,onKeyUp:()=>null,onClick:I,onMouseDown:E,onMouseUp:R,onMouseLeave:R,onTouchStart:E,onTouchEnd:R,onTouchCancel:R,onBlur:D,onMouseEnter:T,ref:d,...u,children:e})},iU=({children:e,dictionaryKey:t,keyPath:n})=>{const{focusedContent:r,setFocusedContent:a}=pa(),{postMessage:s,senderId:l}=pb(),u=S.useCallback(()=>a({dictionaryKey:t,keyPath:n}),[t,n]),d=S.useCallback(()=>s({type:`${An.INTLAYER_HOVERED_CONTENT_CHANGED}/post`,data:{dictionaryKey:t,keyPath:n},senderId:l}),[t,n]),f=S.useCallback(()=>s({type:`${An.INTLAYER_HOVERED_CONTENT_CHANGED}/post`,data:null,senderId:l}),[l]),p=S.useMemo(()=>(r?.dictionaryKey===t&&(r?.keyPath?.length??0)>0&&Jc(r?.keyPath??[],n))??!1,[r,n,t]);return y.jsx(rU,{onPress:u,onHover:d,onUnhover:f,isSelecting:p,children:e})},jf=({children:e,...t})=>{const{enabled:n}=dk(),{disableEditor:r}=JV();return n&&!r?y.jsx(iU,{...t,children:e}):e},vb=({dictionaryKey:e,keyPath:t,children:n})=>{const r=zs();return r?r.getEditedContentValue(e,t)??n:n},aU=e=>{const t=vb(e);if(typeof t=="object"){const n=hb(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},oU=S.createContext({renderMarkdown:e=>e}),sU=()=>S.useContext(oU),lU=({dictionaryKey:e,keyPath:t,children:n,locale:r})=>{const{renderMarkdown:a}=sU(),s=vb({dictionaryKey:e,keyPath:t,children:n});if(typeof s!="string"){const l=hb(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)},cU=({dictionaryKey:e,keyPath:t,children:n,metadataKeyPath:r})=>{const a=vb({dictionaryKey:e,keyPath:t,children:n}),s=tk(a);return dr(s,r)},yk=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(yk((u??{})[d]))}),{...s,props:{...s.props,children:l}}}return{...s,props:{...s.props,children:s.props?.children??[]}}})(e),{type:r,props:a}=n;return S.createElement(r??"span",a,...a.children)},vk={id:"intlayer-node-plugin",canHandle:e=>typeof e=="bigint"||typeof e=="string"||typeof e=="number",transform:(e,{plugins:t,...n})=>Lf({...n,value:n.children,children:S.createElement(jf,{...n,key:n.children},y.jsx(aU,{...n,children:n.children}))})},bk={id:"react-node-plugin",canHandle:e=>typeof e=="object"&&typeof e.props<"u"&&typeof e.key<"u",transform:(e,{plugins:t,...n})=>Lf({...n,value:"[[react-element]]",children:y.jsx(jf,{...n,children:yk(e)})})},uU={id:"markdown-string-plugin",canHandle:e=>typeof e=="string",transform:(e,t,n)=>{const{plugins:r,...a}=t,s=tk(e),u=n(s,{plugins:[{id:"markdown-metadata-plugin",canHandle:d=>typeof d=="string"||typeof d=="number"||typeof d=="boolean"||!d,transform:(d,f)=>Lf({...f,value:d,children:y.jsx(jf,{...a,children:y.jsx(cU,{...a,metadataKeyPath:f.keyPath,children:e})})})}],dictionaryKey:a.dictionaryKey,keyPath:[]});return Lf({...t,value:e,children:y.jsx(jf,{...a,children:y.jsx(lU,{...a,children:e})}),additionalProps:{metadata:u}})}},_k={id:"markdown-plugin",canHandle:e=>typeof e=="object"&&e?.nodeType===H.Markdown,transform:(e,t,n)=>{const r=[...t.keyPath,{type:H.Markdown}],a=e[H.Markdown];return n(a,{...t,children:a,keyPath:r,plugins:[uU,...t.plugins??[]]})}},dU=(e,t,n)=>YR(e,t,[vk,bk,_k]),tu=(e,t)=>{const{locale:n}=S.useContext(eu);return S.useMemo(()=>dU(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 RA="popstate";function fU(e={}){function t(r,a){let{pathname:s,search:l,hash:u}=r.location;return My("",{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:Lc(a)}return pU(t,n,null,e)}function wt(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function qr(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function hU(){return Math.random().toString(36).substring(2,10)}function kA(e,t){return{usr:e.state,key:e.key,idx:t}}function My(e,t,n=null,r){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?Bs(t):t,state:n,key:t&&t.key||r||hU()}}function Lc({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 Bs(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 pU(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 m(){u="POP";let w=p(),N=w==null?null:w-f;f=w,d&&d({action:u,location:A.location,delta:N})}function v(w,N){u="PUSH";let E=My(A.location,w,N);f=p()+1;let T=kA(E,f),R=A.createHref(E);try{l.pushState(T,"",R)}catch(C){if(C instanceof DOMException&&C.name==="DataCloneError")throw C;a.location.assign(R)}s&&d&&d({action:u,location:A.location,delta:1})}function _(w,N){u="REPLACE";let E=My(A.location,w,N);f=p();let T=kA(E,f),R=A.createHref(E);l.replaceState(T,"",R),s&&d&&d({action:u,location:A.location,delta:0})}function x(w){return mU(w)}let A={get action(){return u},get location(){return e(a,l)},listen(w){if(d)throw new Error("A history only accepts one active listener");return a.addEventListener(RA,m),d=w,()=>{a.removeEventListener(RA,m),d=null}},createHref(w){return t(a,w)},createURL:x,encodeLocation(w){let N=x(w);return{pathname:N.pathname,search:N.search,hash:N.hash}},push:v,replace:_,go(w){return l.go(w)}};return A}function mU(e,t=!1){let n="http://localhost";typeof window<"u"&&(n=window.location.origin!=="null"?window.location.origin:window.location.href),wt(n,"No window.location.(origin|href) available to create URL");let r=typeof e=="string"?e:Lc(e);return r=r.replace(/ $/,"%20"),!t&&r.startsWith("//")&&(r=n+r),new URL(r,n)}function Ek(e,t,n="/"){return gU(e,t,n,!1)}function gU(e,t,n,r){let a=typeof t=="string"?Bs(t):t,s=bi(a.pathname||"/",n);if(s==null)return null;let l=Sk(e);yU(l);let u=null;for(let d=0;u==null&&d<l.length;++d){let f=RU(s);u=wU(l[d],f,r)}return u}function Sk(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;wt(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 m=vi([r,p.relativePath]),v=n.concat(p);l.children&&l.children.length>0&&(wt(l.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${m}".`),Sk(l.children,t,v,m,d)),!(l.path==null&&!l.index)&&t.push({path:m,score:AU(m,l.index),routesMeta:v})};return e.forEach((l,u)=>{if(l.path===""||!l.path?.includes("?"))s(l,u);else for(let d of xk(l.path))s(l,u,!0,d)}),t}function xk(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=xk(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 yU(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:TU(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}var vU=/^:[\w-]+$/,bU=3,_U=2,EU=1,SU=10,xU=-2,NA=e=>e==="*";function AU(e,t){let n=e.split("/"),r=n.length;return n.some(NA)&&(r+=xU),t&&(r+=_U),n.filter(a=>!NA(a)).reduce((a,s)=>a+(vU.test(s)?bU:s===""?EU:SU),r)}function TU(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 wU(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)||"/",m=Pf({path:d.relativePath,caseSensitive:d.caseSensitive,end:f},p),v=d.route;if(!m&&f&&n&&!r[r.length-1].route.index&&(m=Pf({path:d.relativePath,caseSensitive:d.caseSensitive,end:!1},p)),!m)return null;Object.assign(a,m.params),l.push({params:a,pathname:vi([s,m.pathname]),pathnameBase:OU(vi([s,m.pathnameBase])),route:v}),m.pathnameBase!=="/"&&(s=vi([s,m.pathnameBase]))}return l}function Pf(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=CU(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:m},v)=>{if(p==="*"){let x=u[v]||"";l=s.slice(0,s.length-x.length).replace(/(.)\/+$/,"$1")}const _=u[v];return m&&!_?f[p]=void 0:f[p]=(_||"").replace(/%2F/g,"/"),f},{}),pathname:s,pathnameBase:l,pattern:e}}function CU(e,t=!1,n=!0){qr(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 RU(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return qr(!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 bi(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 kU(e,t="/"){let{pathname:n,search:r="",hash:a=""}=typeof e=="string"?Bs(e):e;return{pathname:n?n.startsWith("/")?n:NU(n,t):t,search:DU(r),hash:LU(a)}}function NU(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 xg(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 IU(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Ak(e){let t=IU(e);return t.map((n,r)=>r===t.length-1?n.pathname:n.pathnameBase)}function Tk(e,t,n,r=!1){let a;typeof e=="string"?a=Bs(e):(a={...e},wt(!a.pathname||!a.pathname.includes("?"),xg("?","pathname","search",a)),wt(!a.pathname||!a.pathname.includes("#"),xg("#","pathname","hash",a)),wt(!a.search||!a.search.includes("#"),xg("#","search","hash",a)));let s=e===""||a.pathname==="",l=s?"/":a.pathname,u;if(l==null)u=n;else{let m=t.length-1;if(!r&&l.startsWith("..")){let v=l.split("/");for(;v[0]==="..";)v.shift(),m-=1;a.pathname=v.join("/")}u=m>=0?t[m]:"/"}let d=kU(a,u),f=l&&l!=="/"&&l.endsWith("/"),p=(s||l===".")&&n.endsWith("/");return!d.pathname.endsWith("/")&&(f||p)&&(d.pathname+="/"),d}var vi=e=>e.join("/").replace(/\/\/+/g,"/"),OU=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),DU=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,LU=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function jU(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}var wk=["POST","PUT","PATCH","DELETE"];new Set(wk);var PU=["GET",...wk];new Set(PU);var Vs=S.createContext(null);Vs.displayName="DataRouter";var vh=S.createContext(null);vh.displayName="DataRouterState";S.createContext(!1);var Ck=S.createContext({isTransitioning:!1});Ck.displayName="ViewTransition";var MU=S.createContext(new Map);MU.displayName="Fetchers";var zU=S.createContext(null);zU.displayName="Await";var Yr=S.createContext(null);Yr.displayName="Navigation";var nu=S.createContext(null);nu.displayName="Location";var Ti=S.createContext({outlet:null,matches:[],isDataRoute:!1});Ti.displayName="Route";var bb=S.createContext(null);bb.displayName="RouteError";function BU(e,{relative:t}={}){wt(ru(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=S.useContext(Yr),{hash:a,pathname:s,search:l}=iu(e,{relative:t}),u=s;return n!=="/"&&(u=s==="/"?n:vi([n,s])),r.createHref({pathname:u,search:l,hash:a})}function ru(){return S.useContext(nu)!=null}function ma(){return wt(ru(),"useLocation() may be used only in the context of a <Router> component."),S.useContext(nu).location}var Rk="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function kk(e){S.useContext(Yr).static||S.useLayoutEffect(e)}function VU(){let{isDataRoute:e}=S.useContext(Ti);return e?JU():UU()}function UU(){wt(ru(),"useNavigate() may be used only in the context of a <Router> component.");let e=S.useContext(Vs),{basename:t,navigator:n}=S.useContext(Yr),{matches:r}=S.useContext(Ti),{pathname:a}=ma(),s=JSON.stringify(Ak(r)),l=S.useRef(!1);return kk(()=>{l.current=!0}),S.useCallback((d,f={})=>{if(qr(l.current,Rk),!l.current)return;if(typeof d=="number"){n.go(d);return}let p=Tk(d,JSON.parse(s),a,f.relative==="path");e==null&&t!=="/"&&(p.pathname=p.pathname==="/"?t:vi([t,p.pathname])),(f.replace?n.replace:n.push)(p,f.state,f)},[t,n,s,a,e])}S.createContext(null);function iu(e,{relative:t}={}){let{matches:n}=S.useContext(Ti),{pathname:r}=ma(),a=JSON.stringify(Ak(n));return S.useMemo(()=>Tk(e,JSON.parse(a),r,t==="path"),[e,a,r,t])}function FU(e,t){return Nk(e,t)}function Nk(e,t,n,r,a){wt(ru(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:s}=S.useContext(Yr),{matches:l}=S.useContext(Ti),u=l[l.length-1],d=u?u.params:{},f=u?u.pathname:"/",p=u?u.pathnameBase:"/",m=u&&u.route;{let E=m&&m.path||"";Ik(f,!m||E.endsWith("*")||E.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${f}" (under <Route path="${E}">) 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="${E}"> to <Route path="${E==="/"?"*":`${E}/*`}">.`)}let v=ma(),_;if(t){let E=typeof t=="string"?Bs(t):t;wt(p==="/"||E.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 "${E.pathname}" was given in the \`location\` prop.`),_=E}else _=v;let x=_.pathname||"/",A=x;if(p!=="/"){let E=p.replace(/^\//,"").split("/");A="/"+x.replace(/^\//,"").split("/").slice(E.length).join("/")}let w=Ek(e,{pathname:A});qr(m||w!=null,`No routes matched location "${_.pathname}${_.search}${_.hash}" `),qr(w==null||w[w.length-1].route.element!==void 0||w[w.length-1].route.Component!==void 0||w[w.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 N=qU(w&&w.map(E=>Object.assign({},E,{params:Object.assign({},d,E.params),pathname:vi([p,s.encodeLocation?s.encodeLocation(E.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:E.pathname]),pathnameBase:E.pathnameBase==="/"?p:vi([p,s.encodeLocation?s.encodeLocation(E.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:E.pathnameBase])})),l,n,r,a);return t&&N?S.createElement(nu.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",..._},navigationType:"POP"}},N):N}function HU(){let e=QU(),t=jU(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=S.createElement(S.Fragment,null,S.createElement("p",null,"💿 Hey developer 👋"),S.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",S.createElement("code",{style:s},"ErrorBoundary")," or"," ",S.createElement("code",{style:s},"errorElement")," prop on your route.")),S.createElement(S.Fragment,null,S.createElement("h2",null,"Unexpected Application Error!"),S.createElement("h3",{style:{fontStyle:"italic"}},t),n?S.createElement("pre",{style:a},n):null,l)}var GU=S.createElement(HU,null),$U=class extends S.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?S.createElement(Ti.Provider,{value:this.props.routeContext},S.createElement(bb.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function KU({routeContext:e,match:t,children:n}){let r=S.useContext(Vs);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),S.createElement(Ti.Provider,{value:e},n)}function qU(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);wt(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:m,errors:v}=n,_=p.route.loader&&!m.hasOwnProperty(p.route.id)&&(!v||v[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,m)=>{let v,_=!1,x=null,A=null;n&&(v=l&&p.route.id?l[p.route.id]:void 0,x=p.route.errorElement||GU,u&&(d<0&&m===0?(Ik("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),_=!0,A=null):d===m&&(_=!0,A=p.route.hydrateFallbackElement||null)));let w=t.concat(s.slice(0,m+1)),N=()=>{let E;return v?E=x:_?E=A:p.route.Component?E=S.createElement(p.route.Component,null):p.route.element?E=p.route.element:E=f,S.createElement(KU,{match:p,routeContext:{outlet:f,matches:w,isDataRoute:n!=null},children:E})};return n&&(p.route.ErrorBoundary||p.route.errorElement||m===0)?S.createElement($U,{location:n.location,revalidation:n.revalidation,component:x,error:v,children:N(),routeContext:{outlet:null,matches:w,isDataRoute:!0},unstable_onError:r}):N()},null)}function _b(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function WU(e){let t=S.useContext(Vs);return wt(t,_b(e)),t}function ZU(e){let t=S.useContext(vh);return wt(t,_b(e)),t}function YU(e){let t=S.useContext(Ti);return wt(t,_b(e)),t}function Eb(e){let t=YU(e),n=t.matches[t.matches.length-1];return wt(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function XU(){return Eb("useRouteId")}function QU(){let e=S.useContext(bb),t=ZU("useRouteError"),n=Eb("useRouteError");return e!==void 0?e:t.errors?.[n]}function JU(){let{router:e}=WU("useNavigate"),t=Eb("useNavigate"),n=S.useRef(!1);return kk(()=>{n.current=!0}),S.useCallback(async(a,s={})=>{qr(n.current,Rk),n.current&&(typeof a=="number"?e.navigate(a):await e.navigate(a,{fromRouteId:t,...s}))},[e,t])}var IA={};function Ik(e,t,n){!t&&!IA[e]&&(IA[e]=!0,qr(!1,n))}S.memo(eF);function eF({routes:e,future:t,state:n,unstable_onError:r}){return Nk(e,void 0,n,r,t)}function Ok(e){wt(!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 tF({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:a,static:s=!1}){wt(!ru(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let l=e.replace(/^\/*/,"/"),u=S.useMemo(()=>({basename:l,navigator:a,static:s,future:{}}),[l,a,s]);typeof n=="string"&&(n=Bs(n));let{pathname:d="/",search:f="",hash:p="",state:m=null,key:v="default"}=n,_=S.useMemo(()=>{let x=bi(d,l);return x==null?null:{location:{pathname:x,search:f,hash:p,state:m,key:v},navigationType:r}},[l,d,f,p,m,v,r]);return qr(_!=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:S.createElement(Yr.Provider,{value:u},S.createElement(nu.Provider,{children:t,value:_}))}function nF({children:e,location:t}){return FU(zy(e),t)}function zy(e,t=[]){let n=[];return S.Children.forEach(e,(r,a)=>{if(!S.isValidElement(r))return;let s=[...t,a];if(r.type===S.Fragment){n.push.apply(n,zy(r.props.children,s));return}wt(r.type===Ok,`[${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>`),wt(!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=zy(r.props.children,s)),n.push(l)}),n}var yf="get",vf="application/x-www-form-urlencoded";function bh(e){return e!=null&&typeof e.tagName=="string"}function rF(e){return bh(e)&&e.tagName.toLowerCase()==="button"}function iF(e){return bh(e)&&e.tagName.toLowerCase()==="form"}function aF(e){return bh(e)&&e.tagName.toLowerCase()==="input"}function oF(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function sF(e,t){return e.button===0&&(!t||t==="_self")&&!oF(e)}var Vd=null;function lF(){if(Vd===null)try{new FormData(document.createElement("form"),0),Vd=!1}catch{Vd=!0}return Vd}var cF=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Ag(e){return e!=null&&!cF.has(e)?(qr(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${vf}"`),null):e}function uF(e,t){let n,r,a,s,l;if(iF(e)){let u=e.getAttribute("action");r=u?bi(u,t):null,n=e.getAttribute("method")||yf,a=Ag(e.getAttribute("enctype"))||vf,s=new FormData(e)}else if(rF(e)||aF(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?bi(d,t):null,n=e.getAttribute("formmethod")||u.getAttribute("method")||yf,a=Ag(e.getAttribute("formenctype"))||Ag(u.getAttribute("enctype"))||vf,s=new FormData(u,e),!lF()){let{name:f,type:p,value:m}=e;if(p==="image"){let v=f?`${f}.`:"";s.append(`${v}x`,"0"),s.append(`${v}y`,"0")}else f&&s.append(f,m)}}else{if(bh(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=yf,r=null,a=vf,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 Sb(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function dF(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&&bi(r.pathname,t)==="/"?r.pathname=`${t.replace(/\/$/,"")}/_root.${n}`:r.pathname=`${r.pathname.replace(/\/$/,"")}.${n}`,r}async function fF(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 hF(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 pF(e,t,n){let r=await Promise.all(e.map(async a=>{let s=t.routes[a.route.id];if(s){let l=await fF(s,n);return l.links?l.links():[]}return[]}));return vF(r.flat(1).filter(hF).filter(a=>a.rel==="stylesheet"||a.rel==="preload").map(a=>a.rel==="stylesheet"?{...a,rel:"prefetch",as:"style"}:{...a,rel:"prefetch"}))}function OA(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 m=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 m=="boolean")return m}return!0}):[]}function mF(e,t,{includeHydrateFallback:n}={}){return gF(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 gF(e){return[...new Set(e)]}function yF(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function vF(e,t){let n=new Set;return new Set(t),e.reduce((r,a)=>{let s=JSON.stringify(yF(a));return n.has(s)||(n.add(s),r.push({key:s,link:a})),r},[])}function Dk(){let e=S.useContext(Vs);return Sb(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function bF(){let e=S.useContext(vh);return Sb(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var xb=S.createContext(void 0);xb.displayName="FrameworkContext";function Lk(){let e=S.useContext(xb);return Sb(e,"You must render this element inside a <HydratedRouter> element"),e}function _F(e,t){let n=S.useContext(xb),[r,a]=S.useState(!1),[s,l]=S.useState(!1),{onFocus:u,onBlur:d,onMouseEnter:f,onMouseLeave:p,onTouchStart:m}=t,v=S.useRef(null);S.useEffect(()=>{if(e==="render"&&l(!0),e==="viewport"){let A=N=>{N.forEach(E=>{l(E.isIntersecting)})},w=new IntersectionObserver(A,{threshold:.5});return v.current&&w.observe(v.current),()=>{w.disconnect()}}},[e]),S.useEffect(()=>{if(r){let A=setTimeout(()=>{l(!0)},100);return()=>{clearTimeout(A)}}},[r]);let _=()=>{a(!0)},x=()=>{a(!1),l(!1)};return n?e!=="intent"?[s,v,{}]:[s,v,{onFocus:ec(u,_),onBlur:ec(d,x),onMouseEnter:ec(f,_),onMouseLeave:ec(p,x),onTouchStart:ec(m,_)}]:[!1,v,{}]}function ec(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function EF({page:e,...t}){let{router:n}=Dk(),r=S.useMemo(()=>Ek(n.routes,e,n.basename),[n.routes,e,n.basename]);return r?S.createElement(xF,{page:e,matches:r,...t}):null}function SF(e){let{manifest:t,routeModules:n}=Lk(),[r,a]=S.useState([]);return S.useEffect(()=>{let s=!1;return pF(e,t,n).then(l=>{s||a(l)}),()=>{s=!0}},[e,t,n]),r}function xF({page:e,matches:t,...n}){let r=ma(),{manifest:a,routeModules:s}=Lk(),{basename:l}=Dk(),{loaderData:u,matches:d}=bF(),f=S.useMemo(()=>OA(e,t,d,a,r,"data"),[e,t,d,a,r]),p=S.useMemo(()=>OA(e,t,d,a,r,"assets"),[e,t,d,a,r]),m=S.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let x=new Set,A=!1;if(t.forEach(N=>{let E=a.routes[N.route.id];!E||!E.hasLoader||(!f.some(T=>T.route.id===N.route.id)&&N.route.id in u&&s[N.route.id]?.shouldRevalidate||E.hasClientLoader?A=!0:x.add(N.route.id))}),x.size===0)return[];let w=dF(e,l,"data");return A&&x.size>0&&w.searchParams.set("_routes",t.filter(N=>x.has(N.route.id)).map(N=>N.route.id).join(",")),[w.pathname+w.search]},[l,u,r,a,f,t,e,s]),v=S.useMemo(()=>mF(p,a),[p,a]),_=SF(p);return S.createElement(S.Fragment,null,m.map(x=>S.createElement("link",{key:x,rel:"prefetch",as:"fetch",href:x,...n})),v.map(x=>S.createElement("link",{key:x,rel:"modulepreload",href:x,...n})),_.map(({key:x,link:A})=>S.createElement("link",{key:x,nonce:n.nonce,...A})))}function AF(...e){return t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})}}var jk=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{jk&&(window.__reactRouterVersion="7.9.2")}catch{}function TF({basename:e,children:t,window:n}){let r=S.useRef();r.current==null&&(r.current=fU({window:n,v5Compat:!0}));let a=r.current,[s,l]=S.useState({action:a.action,location:a.location}),u=S.useCallback(d=>{S.startTransition(()=>l(d))},[l]);return S.useLayoutEffect(()=>a.listen(u),[a,u]),S.createElement(tF,{basename:e,children:t,location:s.location,navigationType:s.action,navigator:a})}var Pk=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Mk=S.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:m,...v},_){let{basename:x}=S.useContext(Yr),A=typeof f=="string"&&Pk.test(f),w,N=!1;if(typeof f=="string"&&A&&(w=f,jk))try{let U=new URL(window.location.href),K=f.startsWith("//")?new URL(U.protocol+f):new URL(f),W=bi(K.pathname,x);K.origin===U.origin&&W!=null?f=W+K.search+K.hash:N=!0}catch{qr(!1,`<Link to="${f}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let E=BU(f,{relative:a}),[T,R,C]=_F(r,v),I=kF(f,{replace:l,state:u,target:d,preventScrollReset:p,relative:a,viewTransition:m});function D(U){t&&t(U),U.defaultPrevented||I(U)}let L=S.createElement("a",{...v,...C,href:w||E,onClick:N||s?t:D,ref:AF(_,R),target:d,"data-discover":!A&&n==="render"?"true":void 0});return T&&!A?S.createElement(S.Fragment,null,L,S.createElement(EF,{page:E})):L});Mk.displayName="Link";var wF=S.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 m=iu(l,{relative:f.relative}),v=ma(),_=S.useContext(vh),{navigator:x,basename:A}=S.useContext(Yr),w=_!=null&&LF(m)&&u===!0,N=x.encodeLocation?x.encodeLocation(m).pathname:m.pathname,E=v.pathname,T=_&&_.navigation&&_.navigation.location?_.navigation.location.pathname:null;n||(E=E.toLowerCase(),T=T?T.toLowerCase():null,N=N.toLowerCase()),T&&A&&(T=bi(T,A)||T);const R=N!=="/"&&N.endsWith("/")?N.length-1:N.length;let C=E===N||!a&&E.startsWith(N)&&E.charAt(R)==="/",I=T!=null&&(T===N||!a&&T.startsWith(N)&&T.charAt(N.length)==="/"),D={isActive:C,isPending:I,isTransitioning:w},L=C?t:void 0,U;typeof r=="function"?U=r(D):U=[r,C?"active":null,I?"pending":null,w?"transitioning":null].filter(Boolean).join(" ");let K=typeof s=="function"?s(D):s;return S.createElement(Mk,{...f,"aria-current":L,className:U,ref:p,style:K,to:l,viewTransition:u},typeof d=="function"?d(D):d)});wF.displayName="NavLink";var CF=S.forwardRef(({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:r,replace:a,state:s,method:l=yf,action:u,onSubmit:d,relative:f,preventScrollReset:p,viewTransition:m,...v},_)=>{let x=OF(),A=DF(u,{relative:f}),w=l.toLowerCase()==="get"?"get":"post",N=typeof u=="string"&&Pk.test(u),E=T=>{if(d&&d(T),T.defaultPrevented)return;T.preventDefault();let R=T.nativeEvent.submitter,C=R?.getAttribute("formmethod")||l;x(R||T.currentTarget,{fetcherKey:t,method:C,navigate:n,replace:a,state:s,relative:f,preventScrollReset:p,viewTransition:m})};return S.createElement("form",{ref:_,method:w,action:A,onSubmit:r?d:E,...v,"data-discover":!N&&e==="render"?"true":void 0})});CF.displayName="Form";function RF(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function zk(e){let t=S.useContext(Vs);return wt(t,RF(e)),t}function kF(e,{target:t,replace:n,state:r,preventScrollReset:a,relative:s,viewTransition:l}={}){let u=VU(),d=ma(),f=iu(e,{relative:s});return S.useCallback(p=>{if(sF(p,t)){p.preventDefault();let m=n!==void 0?n:Lc(d)===Lc(f);u(e,{replace:m,state:r,preventScrollReset:a,relative:s,viewTransition:l})}},[d,u,f,n,r,t,e,a,s,l])}var NF=0,IF=()=>`__${String(++NF)}__`;function OF(){let{router:e}=zk("useSubmit"),{basename:t}=S.useContext(Yr),n=XU();return S.useCallback(async(r,a={})=>{let{action:s,method:l,encType:u,formData:d,body:f}=uF(r,t);if(a.navigate===!1){let p=a.fetcherKey||IF();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 DF(e,{relative:t}={}){let{basename:n}=S.useContext(Yr),r=S.useContext(Ti);wt(r,"useFormAction must be used inside a RouteContext");let[a]=r.matches.slice(-1),s={...iu(e||".",{relative:t})},l=ma();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(m=>m).forEach(m=>u.append("index",m));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:vi([n,s.pathname])),Lc(s)}function LF(e,{relative:t}={}){let n=S.useContext(Ck);wt(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=zk("useViewTransitionState"),a=iu(e,{relative:t});if(!n.isTransitioning)return!1;let s=bi(n.currentLocation.pathname,r)||n.currentLocation.pathname,l=bi(n.nextLocation.pathname,r)||n.nextLocation.pathname;return Pf(a.pathname,l)!=null||Pf(a.pathname,s)!=null}var mo=KR();const jF=db(mo);/**
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 PF=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),MF=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,r)=>r?r.toUpperCase():n.toLowerCase()),DA=e=>{const t=MF(e);return t.charAt(0).toUpperCase()+t.slice(1)},Bk=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim(),zF=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 BF={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 VF=S.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:a="",children:s,iconNode:l,...u},d)=>S.createElement("svg",{ref:d,...BF,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:Bk("lucide",a),...!s&&!zF(u)&&{"aria-hidden":"true"},...u},[...l.map(([f,p])=>S.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 bt=(e,t)=>{const n=S.forwardRef(({className:r,...a},s)=>S.createElement(VF,{ref:s,iconNode:t,className:Bk(`lucide-${PF(DA(e))}`,`lucide-${e}`,r),...a}));return n.displayName=DA(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 UF=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],FF=bt("arrow-left",UF);/**
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 HF=[["path",{d:"m18 9-6-6-6 6",key:"kcunyi"}],["path",{d:"M12 3v14",key:"7cf3v8"}],["path",{d:"M5 21h14",key:"11awu3"}]],GF=bt("arrow-up-from-line",HF);/**
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 $F=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Us=bt("check",$F);/**
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 KF=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Vk=bt("chevron-down",KF);/**
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 qF=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],WF=bt("chevron-left",qF);/**
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 ZF=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],Mf=bt("chevron-right",ZF);/**
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 YF=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],XF=bt("chevron-up",YF);/**
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 QF=[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]],JF=bt("chevrons-up-down",QF);/**
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 eH=[["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"}]],tH=bt("copy-check",eH);/**
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 nH=[["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"}]],rH=bt("copy",nH);/**
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 iH=[["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"}]],aH=bt("download",iH);/**
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 oH=[["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"}]],sH=bt("external-link",oH);/**
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 lH=[["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"}]],cH=bt("eye-off",lH);/**
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 uH=[["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"}]],dH=bt("eye",uH);/**
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 fH=[["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"}]],hH=bt("globe",fH);/**
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 pH=[["path",{d:"M11 19H5v-6",key:"8awifj"}],["path",{d:"M13 5h6v6",key:"7voy1q"}],["path",{d:"M19 5 5 19",key:"wwaj1z"}]],mH=bt("move-diagonal",pH);/**
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 gH=[["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"}]],yH=bt("move-vertical",gH);/**
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 vH=[["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"}]],Uk=bt("pencil",vH);/**
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 bH=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],_h=bt("plus",bH);/**
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 _H=[["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"}]],EH=bt("rotate-ccw",_H);/**
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 SH=[["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"}]],LA=bt("save",SH);/**
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 xH=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],AH=bt("search",xH);/**
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 TH=[["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"}]],Eh=bt("trash",TH);/**
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 wH=[["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"}]],Fk=bt("wand-sparkles",wH);/**
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 CH=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],go=bt("x",CH);function Hk(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=Hk(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Sh(){for(var e,t,n=0,r="",a=arguments.length;n<a;n++)(e=arguments[n])&&(t=Hk(e))&&(r&&(r+=" "),r+=t);return r}const Ab="-",RH=e=>{const t=NH(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:l=>{const u=l.split(Ab);return u[0]===""&&u.length!==1&&u.shift(),Gk(u,t)||kH(l)},getConflictingClassGroupIds:(l,u)=>{const d=n[l]||[];return u&&r[l]?[...d,...r[l]]:d}}},Gk=(e,t)=>{if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),a=r?Gk(e.slice(1),r):void 0;if(a)return a;if(t.validators.length===0)return;const s=e.join(Ab);return t.validators.find(({validator:l})=>l(s))?.classGroupId},jA=/^\[(.+)\]$/,kH=e=>{if(jA.test(e)){const t=jA.exec(e)[1],n=t?.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},NH=e=>{const{theme:t,classGroups:n}=e,r={nextPart:new Map,validators:[]};for(const a in n)By(n[a],r,a,t);return r},By=(e,t,n,r)=>{e.forEach(a=>{if(typeof a=="string"){const s=a===""?t:PA(t,a);s.classGroupId=n;return}if(typeof a=="function"){if(IH(a)){By(a(r),t,n,r);return}t.validators.push({validator:a,classGroupId:n});return}Object.entries(a).forEach(([s,l])=>{By(l,PA(t,s),n,r)})})},PA=(e,t)=>{let n=e;return t.split(Ab).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},IH=e=>e.isThemeGetter,OH=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)}}},Vy="!",Uy=":",DH=Uy.length,LH=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=a=>{const s=[];let l=0,u=0,d=0,f;for(let x=0;x<a.length;x++){let A=a[x];if(l===0&&u===0){if(A===Uy){s.push(a.slice(d,x)),d=x+DH;continue}if(A==="/"){f=x;continue}}A==="["?l++:A==="]"?l--:A==="("?u++:A===")"&&u--}const p=s.length===0?a:a.substring(d),m=jH(p),v=m!==p,_=f&&f>d?f-d:void 0;return{modifiers:s,hasImportantModifier:v,baseClassName:m,maybePostfixModifierPosition:_}};if(t){const a=t+Uy,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},jH=e=>e.endsWith(Vy)?e.substring(0,e.length-1):e.startsWith(Vy)?e.substring(1):e,PH=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}},MH=e=>({cache:OH(e.cacheSize),parseClassName:LH(e),sortModifiers:PH(e),...RH(e)}),zH=/\s+/,BH=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:a,sortModifiers:s}=t,l=[],u=e.trim().split(zH);let d="";for(let f=u.length-1;f>=0;f-=1){const p=u[f],{isExternal:m,modifiers:v,hasImportantModifier:_,baseClassName:x,maybePostfixModifierPosition:A}=n(p);if(m){d=p+(d.length>0?" "+d:d);continue}let w=!!A,N=r(w?x.substring(0,A):x);if(!N){if(!w){d=p+(d.length>0?" "+d:d);continue}if(N=r(x),!N){d=p+(d.length>0?" "+d:d);continue}w=!1}const E=s(v).join(":"),T=_?E+Vy:E,R=T+N;if(l.includes(R))continue;l.push(R);const C=a(N,w);for(let I=0;I<C.length;++I){const D=C[I];l.push(T+D)}d=p+(d.length>0?" "+d:d)}return d};function VH(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=$k(t))&&(r&&(r+=" "),r+=n);return r}const $k=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=$k(e[r]))&&(n&&(n+=" "),n+=t);return n};function UH(e,...t){let n,r,a,s=l;function l(d){const f=t.reduce((p,m)=>m(p),e());return n=MH(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=BH(d,n);return a(d,p),p}return function(){return s(VH.apply(null,arguments))}}const Kt=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},Kk=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,qk=/^\((?:(\w[\w-]*):)?(.+)\)$/i,FH=/^\d+\/\d+$/,HH=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,GH=/\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$/,$H=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,KH=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,qH=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,os=e=>FH.test(e),qe=e=>!!e&&!Number.isNaN(Number(e)),Ji=e=>!!e&&Number.isInteger(Number(e)),Tg=e=>e.endsWith("%")&&qe(e.slice(0,-1)),mi=e=>HH.test(e),WH=()=>!0,ZH=e=>GH.test(e)&&!$H.test(e),Wk=()=>!1,YH=e=>KH.test(e),XH=e=>qH.test(e),QH=e=>!Te(e)&&!we(e),JH=e=>Fs(e,Xk,Wk),Te=e=>Kk.test(e),$a=e=>Fs(e,Qk,ZH),wg=e=>Fs(e,i2,qe),MA=e=>Fs(e,Zk,Wk),e2=e=>Fs(e,Yk,XH),Ud=e=>Fs(e,Jk,YH),we=e=>qk.test(e),tc=e=>Hs(e,Qk),t2=e=>Hs(e,a2),zA=e=>Hs(e,Zk),n2=e=>Hs(e,Xk),r2=e=>Hs(e,Yk),Fd=e=>Hs(e,Jk,!0),Fs=(e,t,n)=>{const r=Kk.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},Hs=(e,t,n=!1)=>{const r=qk.exec(e);return r?r[1]?t(r[1]):n:!1},Zk=e=>e==="position"||e==="percentage",Yk=e=>e==="image"||e==="url",Xk=e=>e==="length"||e==="size"||e==="bg-size",Qk=e=>e==="length",i2=e=>e==="number",a2=e=>e==="family-name",Jk=e=>e==="shadow",o2=()=>{const e=Kt("color"),t=Kt("font"),n=Kt("text"),r=Kt("font-weight"),a=Kt("tracking"),s=Kt("leading"),l=Kt("breakpoint"),u=Kt("container"),d=Kt("spacing"),f=Kt("radius"),p=Kt("shadow"),m=Kt("inset-shadow"),v=Kt("text-shadow"),_=Kt("drop-shadow"),x=Kt("blur"),A=Kt("perspective"),w=Kt("aspect"),N=Kt("ease"),E=Kt("animate"),T=()=>["auto","avoid","all","avoid-page","page","left","right","column"],R=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],C=()=>[...R(),we,Te],I=()=>["auto","hidden","clip","visible","scroll"],D=()=>["auto","contain","none"],L=()=>[we,Te,d],U=()=>[os,"full","auto",...L()],K=()=>[Ji,"none","subgrid",we,Te],W=()=>["auto",{span:["full",Ji,we,Te]},Ji,we,Te],J=()=>[Ji,"auto",we,Te],le=()=>["auto","min","max","fr",we,Te],Z=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],ae=()=>["start","end","center","stretch","center-safe","end-safe"],z=()=>["auto",...L()],X=()=>[os,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...L()],G=()=>[e,we,Te],me=()=>[...R(),zA,MA,{position:[we,Te]}],P=()=>["no-repeat",{repeat:["","x","y","space","round"]}],ne=()=>["auto","cover","contain",n2,JH,{size:[we,Te]}],$=()=>[Tg,tc,$a],re=()=>["","none","full",f,we,Te],ue=()=>["",qe,tc,$a],pe=()=>["solid","dashed","dotted","double"],be=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],fe=()=>[qe,Tg,zA,MA],xe=()=>["","none",x,we,Te],je=()=>["none",qe,we,Te],Ve=()=>["none",qe,we,Te],Xe=()=>[qe,we,Te],nt=()=>[os,"full",...L()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[mi],breakpoint:[mi],color:[WH],container:[mi],"drop-shadow":[mi],ease:["in","out","in-out"],font:[QH],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[mi],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[mi],shadow:[mi],spacing:["px",qe],text:[mi],"text-shadow":[mi],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",os,Te,we,w]}],container:["container"],columns:[{columns:[qe,Te,we,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:C()}],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:U()}],"inset-x":[{"inset-x":U()}],"inset-y":[{"inset-y":U()}],start:[{start:U()}],end:[{end:U()}],top:[{top:U()}],right:[{right:U()}],bottom:[{bottom:U()}],left:[{left:U()}],visibility:["visible","invisible","collapse"],z:[{z:[Ji,"auto",we,Te]}],basis:[{basis:[os,"full","auto",u,...L()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[qe,os,"auto","initial","none",Te]}],grow:[{grow:["",qe,we,Te]}],shrink:[{shrink:["",qe,we,Te]}],order:[{order:[Ji,"first","last","none",we,Te]}],"grid-cols":[{"grid-cols":K()}],"col-start-end":[{col:W()}],"col-start":[{"col-start":J()}],"col-end":[{"col-end":J()}],"grid-rows":[{"grid-rows":K()}],"row-start-end":[{row:W()}],"row-start":[{"row-start":J()}],"row-end":[{"row-end":J()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":le()}],"auto-rows":[{"auto-rows":le()}],gap:[{gap:L()}],"gap-x":[{"gap-x":L()}],"gap-y":[{"gap-y":L()}],"justify-content":[{justify:[...Z(),"normal"]}],"justify-items":[{"justify-items":[...ae(),"normal"]}],"justify-self":[{"justify-self":["auto",...ae()]}],"align-content":[{content:["normal",...Z()]}],"align-items":[{items:[...ae(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...ae(),{baseline:["","last"]}]}],"place-content":[{"place-content":Z()}],"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:z()}],mx:[{mx:z()}],my:[{my:z()}],ms:[{ms:z()}],me:[{me:z()}],mt:[{mt:z()}],mr:[{mr:z()}],mb:[{mb:z()}],ml:[{ml:z()}],"space-x":[{"space-x":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,tc,$a]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,we,wg]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Tg,Te]}],"font-family":[{font:[t2,Te,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,we,Te]}],"line-clamp":[{"line-clamp":[qe,"none",we,wg]}],leading:[{leading:[s,...L()]}],"list-image":[{"list-image":["none",we,Te]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",we,Te]}],"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:[...pe(),"wavy"]}],"text-decoration-thickness":[{decoration:[qe,"from-font","auto",we,$a]}],"text-decoration-color":[{decoration:G()}],"underline-offset":[{"underline-offset":[qe,"auto",we,Te]}],"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",we,Te]}],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",we,Te]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:me()}],"bg-repeat":[{bg:P()}],"bg-size":[{bg:ne()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Ji,we,Te],radial:["",we,Te],conic:[Ji,we,Te]},r2,e2]}],"bg-color":[{bg:G()}],"gradient-from-pos":[{from:$()}],"gradient-via-pos":[{via:$()}],"gradient-to-pos":[{to:$()}],"gradient-from":[{from:G()}],"gradient-via":[{via:G()}],"gradient-to":[{to:G()}],rounded:[{rounded:re()}],"rounded-s":[{"rounded-s":re()}],"rounded-e":[{"rounded-e":re()}],"rounded-t":[{"rounded-t":re()}],"rounded-r":[{"rounded-r":re()}],"rounded-b":[{"rounded-b":re()}],"rounded-l":[{"rounded-l":re()}],"rounded-ss":[{"rounded-ss":re()}],"rounded-se":[{"rounded-se":re()}],"rounded-ee":[{"rounded-ee":re()}],"rounded-es":[{"rounded-es":re()}],"rounded-tl":[{"rounded-tl":re()}],"rounded-tr":[{"rounded-tr":re()}],"rounded-br":[{"rounded-br":re()}],"rounded-bl":[{"rounded-bl":re()}],"border-w":[{border:ue()}],"border-w-x":[{"border-x":ue()}],"border-w-y":[{"border-y":ue()}],"border-w-s":[{"border-s":ue()}],"border-w-e":[{"border-e":ue()}],"border-w-t":[{"border-t":ue()}],"border-w-r":[{"border-r":ue()}],"border-w-b":[{"border-b":ue()}],"border-w-l":[{"border-l":ue()}],"divide-x":[{"divide-x":ue()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":ue()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...pe(),"hidden","none"]}],"divide-style":[{divide:[...pe(),"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:[...pe(),"none","hidden"]}],"outline-offset":[{"outline-offset":[qe,we,Te]}],"outline-w":[{outline:["",qe,tc,$a]}],"outline-color":[{outline:G()}],shadow:[{shadow:["","none",p,Fd,Ud]}],"shadow-color":[{shadow:G()}],"inset-shadow":[{"inset-shadow":["none",m,Fd,Ud]}],"inset-shadow-color":[{"inset-shadow":G()}],"ring-w":[{ring:ue()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:G()}],"ring-offset-w":[{"ring-offset":[qe,$a]}],"ring-offset-color":[{"ring-offset":G()}],"inset-ring-w":[{"inset-ring":ue()}],"inset-ring-color":[{"inset-ring":G()}],"text-shadow":[{"text-shadow":["none",v,Fd,Ud]}],"text-shadow-color":[{"text-shadow":G()}],opacity:[{opacity:[qe,we,Te]}],"mix-blend":[{"mix-blend":[...be(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":be()}],"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":[qe]}],"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":[we,Te]}],"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":R()}],"mask-image-conic-pos":[{"mask-conic":[qe]}],"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:me()}],"mask-repeat":[{mask:P()}],"mask-size":[{mask:ne()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",we,Te]}],filter:[{filter:["","none",we,Te]}],blur:[{blur:xe()}],brightness:[{brightness:[qe,we,Te]}],contrast:[{contrast:[qe,we,Te]}],"drop-shadow":[{"drop-shadow":["","none",_,Fd,Ud]}],"drop-shadow-color":[{"drop-shadow":G()}],grayscale:[{grayscale:["",qe,we,Te]}],"hue-rotate":[{"hue-rotate":[qe,we,Te]}],invert:[{invert:["",qe,we,Te]}],saturate:[{saturate:[qe,we,Te]}],sepia:[{sepia:["",qe,we,Te]}],"backdrop-filter":[{"backdrop-filter":["","none",we,Te]}],"backdrop-blur":[{"backdrop-blur":xe()}],"backdrop-brightness":[{"backdrop-brightness":[qe,we,Te]}],"backdrop-contrast":[{"backdrop-contrast":[qe,we,Te]}],"backdrop-grayscale":[{"backdrop-grayscale":["",qe,we,Te]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[qe,we,Te]}],"backdrop-invert":[{"backdrop-invert":["",qe,we,Te]}],"backdrop-opacity":[{"backdrop-opacity":[qe,we,Te]}],"backdrop-saturate":[{"backdrop-saturate":[qe,we,Te]}],"backdrop-sepia":[{"backdrop-sepia":["",qe,we,Te]}],"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",we,Te]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[qe,"initial",we,Te]}],ease:[{ease:["linear","initial",N,we,Te]}],delay:[{delay:[qe,we,Te]}],animate:[{animate:["none",E,we,Te]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[A,we,Te]}],"perspective-origin":[{"perspective-origin":C()}],rotate:[{rotate:je()}],"rotate-x":[{"rotate-x":je()}],"rotate-y":[{"rotate-y":je()}],"rotate-z":[{"rotate-z":je()}],scale:[{scale:Ve()}],"scale-x":[{"scale-x":Ve()}],"scale-y":[{"scale-y":Ve()}],"scale-z":[{"scale-z":Ve()}],"scale-3d":["scale-3d"],skew:[{skew:Xe()}],"skew-x":[{"skew-x":Xe()}],"skew-y":[{"skew-y":Xe()}],transform:[{transform:[we,Te,"","none","gpu","cpu"]}],"transform-origin":[{origin:C()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:nt()}],"translate-x":[{"translate-x":nt()}],"translate-y":[{"translate-y":nt()}],"translate-z":[{"translate-z":nt()}],"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",we,Te]}],"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",we,Te]}],fill:[{fill:["none",...G()]}],"stroke-w":[{stroke:[qe,tc,$a,wg]}],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"]}},e1=UH(o2),ve=(...e)=>e1(Sh(e)),BA=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,VA=Sh,wn=(e,t)=>n=>{var r;if(t?.variants==null)return VA(e,n?.class,n?.className);const{variants:a,defaultVariants:s}=t,l=Object.keys(a).map(f=>{const p=n?.[f],m=s?.[f];if(p===null)return null;const v=BA(p)||BA(m);return a[f][v]}),u=n&&Object.entries(n).reduce((f,p)=>{let[m,v]=p;return v===void 0||(f[m]=v),f},{}),d=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((f,p)=>{let{class:m,className:v,..._}=p;return Object.entries(_).every(x=>{let[A,w]=x;return Array.isArray(w)?w.includes({...s,...u}[A]):{...s,...u}[A]===w})?[...f,m,v]:f},[]);return VA(e,l,d,n?.class,n?.className)},s2=({className:e,strokeWidth:t=4})=>y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"44",height:"44",viewBox:"0 0 44 44",stroke:"currentColor",className:ve("size-full",e),children:y.jsxs("g",{fill:"none",fillRule:"evenodd",strokeWidth:t,children:[y.jsxs("circle",{cx:"22",cy:"22",r:"1",children:[y.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"}),y.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"})]}),y.jsxs("circle",{cx:"22",cy:"22",r:"1",children:[y.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"}),y.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"})]})]})}),Rs=({children:e,isLoading:t=!0,className:n,...r})=>y.jsx(y.Fragment,{children:t?y.jsx("div",{className:ve("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:y.jsx(s2,{className:"size-10 max-h-full max-w-full"})}):e??y.jsx(y.Fragment,{})});var Yn=(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))(Yn||{});const Cg=wn("",{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 st=(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))(st||{}),ot=(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))(ot||{}),ks=(e=>(e.LEFT="left",e.CENTER="center",e.RIGHT="right",e))(ks||{});const l2=wn("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}}),lt=({variant:e,size:t,color:n,children:r,Icon:a,IconRight:s,iconClassName:l,isLoading:u,isActive:d,isFullWidth:f=!1,textAlign:p,disabled:m,label:v,className:_,type:x="button",...A})=>{const w=e==="link"||e==="invisible-link";return y.jsxs("button",{disabled:u||m,"aria-current":d?"page":void 0,"aria-label":v,"aria-busy":u,role:w?"link":void 0,type:x,className:l2({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&&y.jsx(a,{className:Cg({size:t,className:l,position:"left"})}),y.jsx(Rs,{className:Cg({size:t,className:l,position:"left"}),isLoading:u??!1}),y.jsx("span",{children:r}),s&&y.jsx(s,{className:Cg({size:t,className:l,position:"right"})})]})},Tb=({children:e,isHidden:t,className:n="",isOverable:r=!1,isFocusable:a=!1,minHeight:s=0,...l})=>y.jsx("div",{"aria-hidden":a?t:void 0,tabIndex:a?0:void 0,role:a?"button":"none",className:ve("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:y.jsx("div",{style:{minHeight:`${s}px`},className:ve(r&&"group-hover/height-smoother:visible",a&&"group-focus/height-smoother:visible",n),children:e})}),t1=({children:e,header:t,isOpen:n=!1,onClick:r,...a})=>{const[s,l]=S.useState(n),u=s==null?void 0:!s;return S.useEffect(()=>{n!=null&&l(n)},[n]),y.jsxs("div",{className:"w-full",children:[y.jsx(lt,{variant:st.HOVERABLE,color:ot.TEXT,onClick:d=>{l(f=>!f),r?.(d)},isFullWidth:!0,className:"flex items-center justify-between gap-2",IconRight:Vk,iconClassName:ve("transform transition-transform duration-500 ease-in-out",s?"rotate-0":"-rotate-180"),...a,children:t}),y.jsx(Tb,{tabIndex:u!==!1?void 0:-1,isHidden:u,children:e})]})};var n1=(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))(n1||{});const c2=wn("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"}}),u2=({className:e,variant:t,color:n,...r})=>y.jsx("div",{className:ve(c2({variant:t,color:n}),e),...r});var r1=(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))(r1||{});const d2=wn("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"}}),f2=({href:e,isExternalLink:t})=>{const n=typeof e=="string"&&e.trim()!=="";return t===!0||typeof t>"u"&&n&&/^https?:\/\//.test(e)},wb=e=>{const{variant:t="default",color:n="primary",children:r,label:a,className:s,isActive:l,underlined:u,locale:d,isExternalLink:f,href:p,...m}=e,{internationalization:v}=at,_=f2(e),x=typeof r=="string",A=_?"noopener noreferrer nofollow":void 0,w=_?"_blank":"_self",N=d?d===v.defaultLocale?"x-default":d:void 0,E=d&&p&&!_?wV(p,d):p;return y.jsxs("a",{href:E,hrefLang:N,"aria-label":a,rel:A,target:w,"aria-current":l?"page":void 0,className:ve(d2({variant:t,color:n,underlined:u,className:s})),...m,children:[t==="button"?y.jsx("span",{children:r}):r,_&&x&&y.jsx(sH,{className:"ml-2 inline-block size-4"})]})},h2=({href:e,lang:t,children:n,onClick:r,color:a,position:s,locale:l,...u})=>{const{linkLabel:d}=dn("breadcrumb");return y.jsxs(y.Fragment,{children:[y.jsx(wb,{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:y.jsx("span",{itemProp:"name",children:n})}),y.jsx("meta",{itemProp:"position",content:s.toString()})]})},p2=({children:e,onClick:t,color:n,position:r,...a})=>{const{linkLabel:s}=dn("breadcrumb");return y.jsxs(y.Fragment,{children:[y.jsx(lt,{onClick:t,variant:st.LINK,label:`${s} ${e}`,color:n,itemProp:"item",...a,children:y.jsx("span",{itemProp:"name",children:e})}),y.jsx("meta",{itemProp:"position",content:r.toString()})]})},m2=({children:e,position:t,...n})=>y.jsxs("span",{itemProp:"item",children:[y.jsx("span",{itemProp:"name",...n,children:e}),y.jsx("meta",{itemProp:"position",content:t.toString()})]}),g2=({links:e,className:t,color:n=r1.TEXT,locale:r,elementType:a="page",...s})=>y.jsx("nav",{"aria-label":"breadcrumb",children:y.jsx("ol",{className:ve("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",v=u===e.length-1?a:void 0,_=l.text??l;let x=y.jsx(m2,{position:u+1,"aria-current":v,children:_},_);f?x=y.jsx(h2,{href:l.href,color:n,position:u+1,locale:r,"aria-current":v,children:_},_):p&&(x=y.jsx(p2,{onClick:l.onClick,color:n,position:u+1,"aria-current":v,children:_},_));const A=y.jsx("li",{itemProp:"itemListElement",itemScope:!0,itemType:"https://schema.org/ListItem",children:x},_);return d?A:y.jsxs(S.Fragment,{children:[A,y.jsx(Mf,{size:10})]},_)})})});function Je(e,t,{checkForDefaultPrevented:n=!0}={}){return function(a){if(e?.(a),n===!1||!a.defaultPrevented)return t?.(a)}}function UA(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function io(...e){return t=>{let n=!1;const r=e.map(a=>{const s=UA(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():UA(e[a],null)}}}}function Ct(...e){return S.useCallback(io(...e),e)}function y2(e,t){const n=S.createContext(t),r=s=>{const{children:l,...u}=s,d=S.useMemo(()=>u,Object.values(u));return y.jsx(n.Provider,{value:d,children:l})};r.displayName=e+"Provider";function a(s){const l=S.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 au(e,t=[]){let n=[];function r(s,l){const u=S.createContext(l),d=n.length;n=[...n,l];const f=m=>{const{scope:v,children:_,...x}=m,A=v?.[e]?.[d]||u,w=S.useMemo(()=>x,Object.values(x));return y.jsx(A.Provider,{value:w,children:_})};f.displayName=s+"Provider";function p(m,v){const _=v?.[e]?.[d]||u,x=S.useContext(_);if(x)return x;if(l!==void 0)return l;throw new Error(`\`${m}\` must be used within \`${s}\``)}return[f,p]}const a=()=>{const s=n.map(l=>S.createContext(l));return function(u){const d=u?.[e]||s;return S.useMemo(()=>({[`__scope${e}`]:{...u,[e]:d}}),[u,d])}};return a.scopeName=e,[r,v2(a,...t)]}function v2(...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 m=d(s)[`__scope${f}`];return{...u,...m}},{});return S.useMemo(()=>({[`__scope${t.scopeName}`]:l}),[l])}};return n.scopeName=t.scopeName,n}var un=globalThis?.document?S.useLayoutEffect:()=>{},b2=$R[" useId ".trim().toString()]||(()=>{}),_2=0;function hr(e){const[t,n]=S.useState(b2());return un(()=>{n(r=>r??String(_2++))},[e]),t?`radix-${t}`:""}var E2=$R[" useInsertionEffect ".trim().toString()]||un;function zf({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[a,s,l]=S2({defaultProp:t,onChange:n}),u=e!==void 0,d=u?e:a;{const p=S.useRef(e!==void 0);S.useEffect(()=>{const m=p.current;m!==u&&console.warn(`${r} is changing from ${m?"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=S.useCallback(p=>{if(u){const m=x2(p)?p(e):p;m!==e&&l.current?.(m)}else s(p)},[u,e,s,l]);return[d,f]}function S2({defaultProp:e,onChange:t}){const[n,r]=S.useState(e),a=S.useRef(n),s=S.useRef(t);return E2(()=>{s.current=t},[t]),S.useEffect(()=>{a.current!==n&&(s.current?.(n),a.current=n)},[n,a]),[n,r,s]}function x2(e){return typeof e=="function"}function Ns(e){const t=T2(e),n=S.forwardRef((r,a)=>{const{children:s,...l}=r,u=S.Children.toArray(s),d=u.find(C2);if(d){const f=d.props.children,p=u.map(m=>m===d?S.Children.count(f)>1?S.Children.only(null):S.isValidElement(f)?f.props.children:null:m);return y.jsx(t,{...l,ref:a,children:S.isValidElement(f)?S.cloneElement(f,void 0,p):null})}return y.jsx(t,{...l,ref:a,children:s})});return n.displayName=`${e}.Slot`,n}var A2=Ns("Slot");function T2(e){const t=S.forwardRef((n,r)=>{const{children:a,...s}=n;if(S.isValidElement(a)){const l=k2(a),u=R2(s,a.props);return a.type!==S.Fragment&&(u.ref=r?io(r,l):l),S.cloneElement(a,u)}return S.Children.count(a)>1?S.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var w2=Symbol("radix.slottable");function C2(e){return S.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===w2}function R2(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 k2(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 N2=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],$e=N2.reduce((e,t)=>{const n=Ns(`Primitive.${t}`),r=S.forwardRef((a,s)=>{const{asChild:l,...u}=a,d=l?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),y.jsx(d,{...u,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function i1(e,t){e&&mo.flushSync(()=>e.dispatchEvent(t))}function Ar(e){const t=S.useRef(e);return S.useEffect(()=>{t.current=e}),S.useMemo(()=>(...n)=>t.current?.(...n),[])}function I2(e,t=globalThis?.document){const n=Ar(e);S.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 O2="DismissableLayer",Fy="dismissableLayer.update",D2="dismissableLayer.pointerDownOutside",L2="dismissableLayer.focusOutside",FA,a1=S.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),xh=S.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:a,onFocusOutside:s,onInteractOutside:l,onDismiss:u,...d}=e,f=S.useContext(a1),[p,m]=S.useState(null),v=p?.ownerDocument??globalThis?.document,[,_]=S.useState({}),x=Ct(t,D=>m(D)),A=Array.from(f.layers),[w]=[...f.layersWithOutsidePointerEventsDisabled].slice(-1),N=A.indexOf(w),E=p?A.indexOf(p):-1,T=f.layersWithOutsidePointerEventsDisabled.size>0,R=E>=N,C=P2(D=>{const L=D.target,U=[...f.branches].some(K=>K.contains(L));!R||U||(a?.(D),l?.(D),D.defaultPrevented||u?.())},v),I=M2(D=>{const L=D.target;[...f.branches].some(K=>K.contains(L))||(s?.(D),l?.(D),D.defaultPrevented||u?.())},v);return I2(D=>{E===f.layers.size-1&&(r?.(D),!D.defaultPrevented&&u&&(D.preventDefault(),u()))},v),S.useEffect(()=>{if(p)return n&&(f.layersWithOutsidePointerEventsDisabled.size===0&&(FA=v.body.style.pointerEvents,v.body.style.pointerEvents="none"),f.layersWithOutsidePointerEventsDisabled.add(p)),f.layers.add(p),HA(),()=>{n&&f.layersWithOutsidePointerEventsDisabled.size===1&&(v.body.style.pointerEvents=FA)}},[p,v,n,f]),S.useEffect(()=>()=>{p&&(f.layers.delete(p),f.layersWithOutsidePointerEventsDisabled.delete(p),HA())},[p,f]),S.useEffect(()=>{const D=()=>_({});return document.addEventListener(Fy,D),()=>document.removeEventListener(Fy,D)},[]),y.jsx($e.div,{...d,ref:x,style:{pointerEvents:T?R?"auto":"none":void 0,...e.style},onFocusCapture:Je(e.onFocusCapture,I.onFocusCapture),onBlurCapture:Je(e.onBlurCapture,I.onBlurCapture),onPointerDownCapture:Je(e.onPointerDownCapture,C.onPointerDownCapture)})});xh.displayName=O2;var j2="DismissableLayerBranch",o1=S.forwardRef((e,t)=>{const n=S.useContext(a1),r=S.useRef(null),a=Ct(t,r);return S.useEffect(()=>{const s=r.current;if(s)return n.branches.add(s),()=>{n.branches.delete(s)}},[n.branches]),y.jsx($e.div,{...e,ref:a})});o1.displayName=j2;function P2(e,t=globalThis?.document){const n=Ar(e),r=S.useRef(!1),a=S.useRef(()=>{});return S.useEffect(()=>{const s=u=>{if(u.target&&!r.current){let d=function(){s1(D2,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 M2(e,t=globalThis?.document){const n=Ar(e),r=S.useRef(!1);return S.useEffect(()=>{const a=s=>{s.target&&!r.current&&s1(L2,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 HA(){const e=new CustomEvent(Fy);document.dispatchEvent(e)}function s1(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?i1(a,s):a.dispatchEvent(s)}var z2=xh,B2=o1,Rg="focusScope.autoFocusOnMount",kg="focusScope.autoFocusOnUnmount",GA={bubbles:!1,cancelable:!0},V2="FocusScope",Cb=S.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:a,onUnmountAutoFocus:s,...l}=e,[u,d]=S.useState(null),f=Ar(a),p=Ar(s),m=S.useRef(null),v=Ct(t,A=>d(A)),_=S.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;S.useEffect(()=>{if(r){let A=function(T){if(_.paused||!u)return;const R=T.target;u.contains(R)?m.current=R:na(m.current,{select:!0})},w=function(T){if(_.paused||!u)return;const R=T.relatedTarget;R!==null&&(u.contains(R)||na(m.current,{select:!0}))},N=function(T){if(document.activeElement===document.body)for(const C of T)C.removedNodes.length>0&&na(u)};document.addEventListener("focusin",A),document.addEventListener("focusout",w);const E=new MutationObserver(N);return u&&E.observe(u,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",A),document.removeEventListener("focusout",w),E.disconnect()}}},[r,u,_.paused]),S.useEffect(()=>{if(u){KA.add(_);const A=document.activeElement;if(!u.contains(A)){const N=new CustomEvent(Rg,GA);u.addEventListener(Rg,f),u.dispatchEvent(N),N.defaultPrevented||(U2(K2(l1(u)),{select:!0}),document.activeElement===A&&na(u))}return()=>{u.removeEventListener(Rg,f),setTimeout(()=>{const N=new CustomEvent(kg,GA);u.addEventListener(kg,p),u.dispatchEvent(N),N.defaultPrevented||na(A??document.body,{select:!0}),u.removeEventListener(kg,p),KA.remove(_)},0)}}},[u,f,p,_]);const x=S.useCallback(A=>{if(!n&&!r||_.paused)return;const w=A.key==="Tab"&&!A.altKey&&!A.ctrlKey&&!A.metaKey,N=document.activeElement;if(w&&N){const E=A.currentTarget,[T,R]=F2(E);T&&R?!A.shiftKey&&N===R?(A.preventDefault(),n&&na(T,{select:!0})):A.shiftKey&&N===T&&(A.preventDefault(),n&&na(R,{select:!0})):N===E&&A.preventDefault()}},[n,r,_.paused]);return y.jsx($e.div,{tabIndex:-1,...l,ref:v,onKeyDown:x})});Cb.displayName=V2;function U2(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(na(r,{select:t}),document.activeElement!==n)return}function F2(e){const t=l1(e),n=$A(t,e),r=$A(t.reverse(),e);return[n,r]}function l1(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 $A(e,t){for(const n of e)if(!H2(n,{upTo:t}))return n}function H2(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 G2(e){return e instanceof HTMLInputElement&&"select"in e}function na(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&G2(e)&&t&&e.select()}}var KA=$2();function $2(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=qA(e,t),e.unshift(t)},remove(t){e=qA(e,t),e[0]?.resume()}}}function qA(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function K2(e){return e.filter(t=>t.tagName!=="A")}var q2="Portal",Ah=S.forwardRef((e,t)=>{const{container:n,...r}=e,[a,s]=S.useState(!1);un(()=>s(!0),[]);const l=n||a&&globalThis?.document?.body;return l?jF.createPortal(y.jsx($e.div,{...r,ref:t}),l):null});Ah.displayName=q2;function W2(e,t){return S.useReducer((n,r)=>t[n][r]??n,e)}var ou=e=>{const{present:t,children:n}=e,r=Z2(t),a=typeof n=="function"?n({present:r.isPresent}):S.Children.only(n),s=Ct(r.ref,Y2(a));return typeof n=="function"||r.isPresent?S.cloneElement(a,{ref:s}):null};ou.displayName="Presence";function Z2(e){const[t,n]=S.useState(),r=S.useRef(null),a=S.useRef(e),s=S.useRef("none"),l=e?"mounted":"unmounted",[u,d]=W2(l,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return S.useEffect(()=>{const f=Hd(r.current);s.current=u==="mounted"?f:"none"},[u]),un(()=>{const f=r.current,p=a.current;if(p!==e){const v=s.current,_=Hd(f);e?d("MOUNT"):_==="none"||f?.display==="none"?d("UNMOUNT"):d(p&&v!==_?"ANIMATION_OUT":"UNMOUNT"),a.current=e}},[e,d]),un(()=>{if(t){let f;const p=t.ownerDocument.defaultView??window,m=_=>{const A=Hd(r.current).includes(CSS.escape(_.animationName));if(_.target===t&&A&&(d("ANIMATION_END"),!a.current)){const w=t.style.animationFillMode;t.style.animationFillMode="forwards",f=p.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=w)})}},v=_=>{_.target===t&&(s.current=Hd(r.current))};return t.addEventListener("animationstart",v),t.addEventListener("animationcancel",m),t.addEventListener("animationend",m),()=>{p.clearTimeout(f),t.removeEventListener("animationstart",v),t.removeEventListener("animationcancel",m),t.removeEventListener("animationend",m)}}else d("ANIMATION_END")},[t,d]),{isPresent:["mounted","unmountSuspended"].includes(u),ref:S.useCallback(f=>{r.current=f?getComputedStyle(f):null,n(f)},[])}}function Hd(e){return e?.animationName||"none"}function Y2(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 Ng=0;function c1(){S.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??WA()),document.body.insertAdjacentElement("beforeend",e[1]??WA()),Ng++,()=>{Ng===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Ng--}},[])}function WA(){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 Ur=function(){return Ur=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},Ur.apply(this,arguments)};function u1(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var 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 X2(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 bf="right-scroll-bar-position",_f="width-before-scroll-bar",Q2="with-scroll-bars-hidden",J2="--removed-body-scroll-bar-size";function Ig(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function eG(e,t){var n=S.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 tG=typeof window<"u"?S.useLayoutEffect:S.useEffect,ZA=new WeakMap;function nG(e,t){var n=eG(null,function(r){return e.forEach(function(a){return Ig(a,r)})});return tG(function(){var r=ZA.get(n);if(r){var a=new Set(r),s=new Set(e),l=n.current;a.forEach(function(u){s.has(u)||Ig(u,null)}),s.forEach(function(u){a.has(u)||Ig(u,l)})}ZA.set(n,e)},[e]),n}function rG(e){return e}function iG(e,t){t===void 0&&(t=rG);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 aG(e){e===void 0&&(e={});var t=iG(null);return t.options=Ur({async:!0,ssr:!1},e),t}var d1=function(e){var t=e.sideCar,n=u1(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return S.createElement(r,Ur({},n))};d1.isSideCarExport=!0;function oG(e,t){return e.useMedium(t),d1}var f1=aG(),Og=function(){},Th=S.forwardRef(function(e,t){var n=S.useRef(null),r=S.useState({onScrollCapture:Og,onWheelCapture:Og,onTouchMoveCapture:Og}),a=r[0],s=r[1],l=e.forwardProps,u=e.children,d=e.className,f=e.removeScrollBar,p=e.enabled,m=e.shards,v=e.sideCar,_=e.noRelative,x=e.noIsolation,A=e.inert,w=e.allowPinchZoom,N=e.as,E=N===void 0?"div":N,T=e.gapMode,R=u1(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),C=v,I=nG([n,t]),D=Ur(Ur({},R),a);return S.createElement(S.Fragment,null,p&&S.createElement(C,{sideCar:f1,removeScrollBar:f,shards:m,noRelative:_,noIsolation:x,inert:A,setCallbacks:s,allowPinchZoom:!!w,lockRef:n,gapMode:T}),l?S.cloneElement(S.Children.only(u),Ur(Ur({},D),{ref:I})):S.createElement(E,Ur({},D,{className:d,ref:I}),u))});Th.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Th.classNames={fullWidth:_f,zeroRight:bf};var sG=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function lG(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=sG();return t&&e.setAttribute("nonce",t),e}function cG(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function uG(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var dG=function(){var e=0,t=null;return{add:function(n){e==0&&(t=lG())&&(cG(t,n),uG(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},fG=function(){var e=dG();return function(t,n){S.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},h1=function(){var e=fG(),t=function(n){var r=n.styles,a=n.dynamic;return e(r,a),null};return t},hG={left:0,top:0,right:0,gap:0},Dg=function(e){return parseInt(e||"",10)||0},pG=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[Dg(n),Dg(r),Dg(a)]},mG=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return hG;var t=pG(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])}},gG=h1(),Ss="data-scroll-locked",yG=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(Q2,` {
209
- overflow: hidden `).concat(r,`;
210
- padding-right: `).concat(u,"px ").concat(r,`;
211
- }
212
- body[`).concat(Ss,`] {
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(bf,` {
226
- right: `).concat(u,"px ").concat(r,`;
227
- }
228
-
229
- .`).concat(_f,` {
230
- margin-right: `).concat(u,"px ").concat(r,`;
231
- }
232
-
233
- .`).concat(bf," .").concat(bf,` {
234
- right: 0 `).concat(r,`;
235
- }
236
-
237
- .`).concat(_f," .").concat(_f,` {
238
- margin-right: 0 `).concat(r,`;
239
- }
240
-
241
- body[`).concat(Ss,`] {
242
- `).concat(J2,": ").concat(u,`px;
243
- }
244
- `)},YA=function(){var e=parseInt(document.body.getAttribute(Ss)||"0",10);return isFinite(e)?e:0},vG=function(){S.useEffect(function(){return document.body.setAttribute(Ss,(YA()+1).toString()),function(){var e=YA()-1;e<=0?document.body.removeAttribute(Ss):document.body.setAttribute(Ss,e.toString())}},[])},bG=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,a=r===void 0?"margin":r;vG();var s=S.useMemo(function(){return mG(a)},[a]);return S.createElement(gG,{styles:yG(s,!t,a,n?"":"!important")})},Hy=!1;if(typeof window<"u")try{var Gd=Object.defineProperty({},"passive",{get:function(){return Hy=!0,!0}});window.addEventListener("test",Gd,Gd),window.removeEventListener("test",Gd,Gd)}catch{Hy=!1}var ss=Hy?{passive:!1}:!1,_G=function(e){return e.tagName==="TEXTAREA"},p1=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!_G(e)&&n[t]==="visible")},EG=function(e){return p1(e,"overflowY")},SG=function(e){return p1(e,"overflowX")},XA=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var a=m1(e,r);if(a){var s=g1(e,r),l=s[1],u=s[2];if(l>u)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},xG=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},AG=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},m1=function(e,t){return e==="v"?EG(t):SG(t)},g1=function(e,t){return e==="v"?xG(t):AG(t)},TG=function(e,t){return e==="h"&&t==="rtl"?-1:1},wG=function(e,t,n,r,a){var s=TG(e,window.getComputedStyle(t).direction),l=s*r,u=n.target,d=t.contains(u),f=!1,p=l>0,m=0,v=0;do{if(!u)break;var _=g1(e,u),x=_[0],A=_[1],w=_[2],N=A-w-s*x;(x||N)&&m1(e,u)&&(m+=N,v+=x);var E=u.parentNode;u=E&&E.nodeType===Node.DOCUMENT_FRAGMENT_NODE?E.host:E}while(!d&&u!==document.body||d&&(t.contains(u)||t===u));return(p&&Math.abs(m)<1||!p&&Math.abs(v)<1)&&(f=!0),f},$d=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},QA=function(e){return[e.deltaX,e.deltaY]},JA=function(e){return e&&"current"in e?e.current:e},CG=function(e,t){return e[0]===t[0]&&e[1]===t[1]},RG=function(e){return`
245
- .block-interactivity-`.concat(e,` {pointer-events: none;}
246
- .allow-interactivity-`).concat(e,` {pointer-events: all;}
247
- `)},kG=0,ls=[];function NG(e){var t=S.useRef([]),n=S.useRef([0,0]),r=S.useRef(),a=S.useState(kG++)[0],s=S.useState(h1)[0],l=S.useRef(e);S.useEffect(function(){l.current=e},[e]),S.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(a));var A=X2([e.lockRef.current],(e.shards||[]).map(JA),!0).filter(Boolean);return A.forEach(function(w){return w.classList.add("allow-interactivity-".concat(a))}),function(){document.body.classList.remove("block-interactivity-".concat(a)),A.forEach(function(w){return w.classList.remove("allow-interactivity-".concat(a))})}}},[e.inert,e.lockRef.current,e.shards]);var u=S.useCallback(function(A,w){if("touches"in A&&A.touches.length===2||A.type==="wheel"&&A.ctrlKey)return!l.current.allowPinchZoom;var N=$d(A),E=n.current,T="deltaX"in A?A.deltaX:E[0]-N[0],R="deltaY"in A?A.deltaY:E[1]-N[1],C,I=A.target,D=Math.abs(T)>Math.abs(R)?"h":"v";if("touches"in A&&D==="h"&&I.type==="range")return!1;var L=XA(D,I);if(!L)return!0;if(L?C=D:(C=D==="v"?"h":"v",L=XA(D,I)),!L)return!1;if(!r.current&&"changedTouches"in A&&(T||R)&&(r.current=C),!C)return!0;var U=r.current||C;return wG(U,w,A,U==="h"?T:R)},[]),d=S.useCallback(function(A){var w=A;if(!(!ls.length||ls[ls.length-1]!==s)){var N="deltaY"in w?QA(w):$d(w),E=t.current.filter(function(C){return C.name===w.type&&(C.target===w.target||w.target===C.shadowParent)&&CG(C.delta,N)})[0];if(E&&E.should){w.cancelable&&w.preventDefault();return}if(!E){var T=(l.current.shards||[]).map(JA).filter(Boolean).filter(function(C){return C.contains(w.target)}),R=T.length>0?u(w,T[0]):!l.current.noIsolation;R&&w.cancelable&&w.preventDefault()}}},[]),f=S.useCallback(function(A,w,N,E){var T={name:A,delta:w,target:N,should:E,shadowParent:IG(N)};t.current.push(T),setTimeout(function(){t.current=t.current.filter(function(R){return R!==T})},1)},[]),p=S.useCallback(function(A){n.current=$d(A),r.current=void 0},[]),m=S.useCallback(function(A){f(A.type,QA(A),A.target,u(A,e.lockRef.current))},[]),v=S.useCallback(function(A){f(A.type,$d(A),A.target,u(A,e.lockRef.current))},[]);S.useEffect(function(){return ls.push(s),e.setCallbacks({onScrollCapture:m,onWheelCapture:m,onTouchMoveCapture:v}),document.addEventListener("wheel",d,ss),document.addEventListener("touchmove",d,ss),document.addEventListener("touchstart",p,ss),function(){ls=ls.filter(function(A){return A!==s}),document.removeEventListener("wheel",d,ss),document.removeEventListener("touchmove",d,ss),document.removeEventListener("touchstart",p,ss)}},[]);var _=e.removeScrollBar,x=e.inert;return S.createElement(S.Fragment,null,x?S.createElement(s,{styles:RG(a)}):null,_?S.createElement(bG,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function IG(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const OG=oG(f1,NG);var Rb=S.forwardRef(function(e,t){return S.createElement(Th,Ur({},e,{ref:t,sideCar:OG}))});Rb.classNames=Th.classNames;var DG=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},cs=new WeakMap,Kd=new WeakMap,qd={},Lg=0,y1=function(e){return e&&(e.host||y1(e.parentNode))},LG=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=y1(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})},jG=function(e,t,n,r){var a=LG(t,Array.isArray(e)?e:[e]);qd[n]||(qd[n]=new WeakMap);var s=qd[n],l=[],u=new Set,d=new Set(a),f=function(m){!m||u.has(m)||(u.add(m),f(m.parentNode))};a.forEach(f);var p=function(m){!m||d.has(m)||Array.prototype.forEach.call(m.children,function(v){if(u.has(v))p(v);else try{var _=v.getAttribute(r),x=_!==null&&_!=="false",A=(cs.get(v)||0)+1,w=(s.get(v)||0)+1;cs.set(v,A),s.set(v,w),l.push(v),A===1&&x&&Kd.set(v,!0),w===1&&v.setAttribute(n,"true"),x||v.setAttribute(r,"true")}catch(N){console.error("aria-hidden: cannot operate on ",v,N)}})};return p(t),u.clear(),Lg++,function(){l.forEach(function(m){var v=cs.get(m)-1,_=s.get(m)-1;cs.set(m,v),s.set(m,_),v||(Kd.has(m)||m.removeAttribute(r),Kd.delete(m)),_||m.removeAttribute(n)}),Lg--,Lg||(cs=new WeakMap,cs=new WeakMap,Kd=new WeakMap,qd={})}},v1=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),a=DG(e);return a?(r.push.apply(r,Array.from(a.querySelectorAll("[aria-live], script"))),jG(r,a,n,"aria-hidden")):function(){return null}},wh="Dialog",[b1]=au(wh),[PG,Rr]=b1(wh),_1=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:a,onOpenChange:s,modal:l=!0}=e,u=S.useRef(null),d=S.useRef(null),[f,p]=zf({prop:r,defaultProp:a??!1,onChange:s,caller:wh});return y.jsx(PG,{scope:t,triggerRef:u,contentRef:d,contentId:hr(),titleId:hr(),descriptionId:hr(),open:f,onOpenChange:p,onOpenToggle:S.useCallback(()=>p(m=>!m),[p]),modal:l,children:n})};_1.displayName=wh;var E1="DialogTrigger",MG=S.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,a=Rr(E1,n),s=Ct(t,a.triggerRef);return y.jsx($e.button,{type:"button","aria-haspopup":"dialog","aria-expanded":a.open,"aria-controls":a.contentId,"data-state":Ib(a.open),...r,ref:s,onClick:Je(e.onClick,a.onOpenToggle)})});MG.displayName=E1;var kb="DialogPortal",[zG,S1]=b1(kb,{forceMount:void 0}),x1=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:a}=e,s=Rr(kb,t);return y.jsx(zG,{scope:t,forceMount:n,children:S.Children.map(r,l=>y.jsx(ou,{present:n||s.open,children:y.jsx(Ah,{asChild:!0,container:a,children:l})}))})};x1.displayName=kb;var Bf="DialogOverlay",A1=S.forwardRef((e,t)=>{const n=S1(Bf,e.__scopeDialog),{forceMount:r=n.forceMount,...a}=e,s=Rr(Bf,e.__scopeDialog);return s.modal?y.jsx(ou,{present:r||s.open,children:y.jsx(VG,{...a,ref:t})}):null});A1.displayName=Bf;var BG=Ns("DialogOverlay.RemoveScroll"),VG=S.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,a=Rr(Bf,n);return y.jsx(Rb,{as:BG,allowPinchZoom:!0,shards:[a.contentRef],children:y.jsx($e.div,{"data-state":Ib(a.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),ao="DialogContent",T1=S.forwardRef((e,t)=>{const n=S1(ao,e.__scopeDialog),{forceMount:r=n.forceMount,...a}=e,s=Rr(ao,e.__scopeDialog);return y.jsx(ou,{present:r||s.open,children:s.modal?y.jsx(UG,{...a,ref:t}):y.jsx(FG,{...a,ref:t})})});T1.displayName=ao;var UG=S.forwardRef((e,t)=>{const n=Rr(ao,e.__scopeDialog),r=S.useRef(null),a=Ct(t,n.contentRef,r);return S.useEffect(()=>{const s=r.current;if(s)return v1(s)},[]),y.jsx(w1,{...e,ref:a,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Je(e.onCloseAutoFocus,s=>{s.preventDefault(),n.triggerRef.current?.focus()}),onPointerDownOutside:Je(e.onPointerDownOutside,s=>{const l=s.detail.originalEvent,u=l.button===0&&l.ctrlKey===!0;(l.button===2||u)&&s.preventDefault()}),onFocusOutside:Je(e.onFocusOutside,s=>s.preventDefault())})}),FG=S.forwardRef((e,t)=>{const n=Rr(ao,e.__scopeDialog),r=S.useRef(!1),a=S.useRef(!1);return y.jsx(w1,{...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()}})}),w1=S.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:a,onCloseAutoFocus:s,...l}=e,u=Rr(ao,n),d=S.useRef(null),f=Ct(t,d);return c1(),y.jsxs(y.Fragment,{children:[y.jsx(Cb,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:a,onUnmountAutoFocus:s,children:y.jsx(xh,{role:"dialog",id:u.contentId,"aria-describedby":u.descriptionId,"aria-labelledby":u.titleId,"data-state":Ib(u.open),...l,ref:f,onDismiss:()=>u.onOpenChange(!1)})}),y.jsxs(y.Fragment,{children:[y.jsx(KG,{titleId:u.titleId}),y.jsx(WG,{contentRef:d,descriptionId:u.descriptionId})]})]})}),Nb="DialogTitle",HG=S.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,a=Rr(Nb,n);return y.jsx($e.h2,{id:a.titleId,...r,ref:t})});HG.displayName=Nb;var C1="DialogDescription",GG=S.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,a=Rr(C1,n);return y.jsx($e.p,{id:a.descriptionId,...r,ref:t})});GG.displayName=C1;var R1="DialogClose",$G=S.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,a=Rr(R1,n);return y.jsx($e.button,{type:"button",...r,ref:t,onClick:Je(e.onClick,()=>a.onOpenChange(!1))})});$G.displayName=R1;function Ib(e){return e?"open":"closed"}var k1="DialogTitleWarning",[Gse,N1]=y2(k1,{contentName:ao,titleName:Nb,docsSlug:"dialog"}),KG=({titleId:e})=>{const t=N1(k1),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 S.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},qG="DialogDescriptionWarning",WG=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${N1(qG).contentName}}.`;return S.useEffect(()=>{const a=e.current?.getAttribute("aria-describedby");t&&a&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},ZG=_1,YG=x1,XG=A1,QG=T1,eT=1,JG=.9,e$=.8,t$=.17,jg=.1,Pg=.999,n$=.9999,r$=.99,i$=/[\\\/_+.#"@\[\(\{&]/,a$=/[\\\/_+.#"@\[\(\{&]/g,o$=/[\s-]/,I1=/[\s-]/g;function Gy(e,t,n,r,a,s,l){if(s===t.length)return a===e.length?eT:r$;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,m,v,_,x;f>=0;)m=Gy(e,t,n,r,f+1,s+1,l),m>p&&(f===a?m*=eT:i$.test(e.charAt(f-1))?(m*=e$,_=e.slice(a,f-1).match(a$),_&&a>0&&(m*=Math.pow(Pg,_.length))):o$.test(e.charAt(f-1))?(m*=JG,x=e.slice(a,f-1).match(I1),x&&a>0&&(m*=Math.pow(Pg,x.length))):(m*=t$,a>0&&(m*=Math.pow(Pg,f-a))),e.charAt(f)!==t.charAt(s)&&(m*=n$)),(m<jg&&n.charAt(f-1)===r.charAt(s+1)||r.charAt(s+1)===r.charAt(s)&&n.charAt(f-1)!==r.charAt(s))&&(v=Gy(e,t,n,r,f+1,s+2,l),v*jg>m&&(m=v*jg)),m>p&&(p=m),f=n.indexOf(d,f+1);return l[u]=p,p}function tT(e){return e.toLowerCase().replace(I1," ")}function s$(e,t,n){return e=n&&n.length>0?`${e+" "+n.join(" ")}`:e,Gy(e,t,tT(e),tT(t),0,0,{})}var nc='[cmdk-group=""]',Mg='[cmdk-group-items=""]',l$='[cmdk-group-heading=""]',O1='[cmdk-item=""]',nT=`${O1}:not([aria-disabled="true"])`,$y="cmdk-item-select",ds="data-value",c$=(e,t,n)=>s$(e,t,n),D1=S.createContext(void 0),su=()=>S.useContext(D1),L1=S.createContext(void 0),Ob=()=>S.useContext(L1),j1=S.createContext(void 0),P1=S.forwardRef((e,t)=>{let n=fs(()=>{var $,re;return{search:"",value:(re=($=e.value)!=null?$:e.defaultValue)!=null?re:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),r=fs(()=>new Set),a=fs(()=>new Map),s=fs(()=>new Map),l=fs(()=>new Set),u=M1(e),{label:d,children:f,value:p,onValueChange:m,filter:v,shouldFilter:_,loop:x,disablePointerSelection:A=!1,vimBindings:w=!0,...N}=e,E=hr(),T=hr(),R=hr(),C=S.useRef(null),I=_$();oo(()=>{if(p!==void 0){let $=p.trim();n.current.value=$,D.emit()}},[p]),oo(()=>{I(6,le)},[]);let D=S.useMemo(()=>({subscribe:$=>(l.current.add($),()=>l.current.delete($)),snapshot:()=>n.current,setState:($,re,ue)=>{var pe,be,fe,xe;if(!Object.is(n.current[$],re)){if(n.current[$]=re,$==="search")J(),K(),I(1,W);else if($==="value"){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let je=document.getElementById(R);je?je.focus():(pe=document.getElementById(E))==null||pe.focus()}if(I(7,()=>{var je;n.current.selectedItemId=(je=Z())==null?void 0:je.id,D.emit()}),ue||I(5,le),((be=u.current)==null?void 0:be.value)!==void 0){let je=re??"";(xe=(fe=u.current).onValueChange)==null||xe.call(fe,je);return}}D.emit()}},emit:()=>{l.current.forEach($=>$())}}),[]),L=S.useMemo(()=>({value:($,re,ue)=>{var pe;re!==((pe=s.current.get($))==null?void 0:pe.value)&&(s.current.set($,{value:re,keywords:ue}),n.current.filtered.items.set($,U(re,ue)),I(2,()=>{K(),D.emit()}))},item:($,re)=>(r.current.add($),re&&(a.current.has(re)?a.current.get(re).add($):a.current.set(re,new Set([$]))),I(3,()=>{J(),K(),n.current.value||W(),D.emit()}),()=>{s.current.delete($),r.current.delete($),n.current.filtered.items.delete($);let ue=Z();I(4,()=>{J(),ue?.getAttribute("id")===$&&W(),D.emit()})}),group:$=>(a.current.has($)||a.current.set($,new Set),()=>{s.current.delete($),a.current.delete($)}),filter:()=>u.current.shouldFilter,label:d||e["aria-label"],getDisablePointerSelection:()=>u.current.disablePointerSelection,listId:E,inputId:R,labelId:T,listInnerRef:C}),[]);function U($,re){var ue,pe;let be=(pe=(ue=u.current)==null?void 0:ue.filter)!=null?pe:c$;return $?be($,n.current.search,re):0}function K(){if(!n.current.search||u.current.shouldFilter===!1)return;let $=n.current.filtered.items,re=[];n.current.filtered.groups.forEach(pe=>{let be=a.current.get(pe),fe=0;be.forEach(xe=>{let je=$.get(xe);fe=Math.max(je,fe)}),re.push([pe,fe])});let ue=C.current;ae().sort((pe,be)=>{var fe,xe;let je=pe.getAttribute("id"),Ve=be.getAttribute("id");return((fe=$.get(Ve))!=null?fe:0)-((xe=$.get(je))!=null?xe:0)}).forEach(pe=>{let be=pe.closest(Mg);be?be.appendChild(pe.parentElement===be?pe:pe.closest(`${Mg} > *`)):ue.appendChild(pe.parentElement===ue?pe:pe.closest(`${Mg} > *`))}),re.sort((pe,be)=>be[1]-pe[1]).forEach(pe=>{var be;let fe=(be=C.current)==null?void 0:be.querySelector(`${nc}[${ds}="${encodeURIComponent(pe[0])}"]`);fe?.parentElement.appendChild(fe)})}function W(){let $=ae().find(ue=>ue.getAttribute("aria-disabled")!=="true"),re=$?.getAttribute(ds);D.setState("value",re||void 0)}function J(){var $,re,ue,pe;if(!n.current.search||u.current.shouldFilter===!1){n.current.filtered.count=r.current.size;return}n.current.filtered.groups=new Set;let be=0;for(let fe of r.current){let xe=(re=($=s.current.get(fe))==null?void 0:$.value)!=null?re:"",je=(pe=(ue=s.current.get(fe))==null?void 0:ue.keywords)!=null?pe:[],Ve=U(xe,je);n.current.filtered.items.set(fe,Ve),Ve>0&&be++}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=be}function le(){var $,re,ue;let pe=Z();pe&&((($=pe.parentElement)==null?void 0:$.firstChild)===pe&&((ue=(re=pe.closest(nc))==null?void 0:re.querySelector(l$))==null||ue.scrollIntoView({block:"nearest"})),pe.scrollIntoView({block:"nearest"}))}function Z(){var $;return($=C.current)==null?void 0:$.querySelector(`${O1}[aria-selected="true"]`)}function ae(){var $;return Array.from((($=C.current)==null?void 0:$.querySelectorAll(nT))||[])}function z($){let re=ae()[$];re&&D.setState("value",re.getAttribute(ds))}function X($){var re;let ue=Z(),pe=ae(),be=pe.findIndex(xe=>xe===ue),fe=pe[be+$];(re=u.current)!=null&&re.loop&&(fe=be+$<0?pe[pe.length-1]:be+$===pe.length?pe[0]:pe[be+$]),fe&&D.setState("value",fe.getAttribute(ds))}function G($){let re=Z(),ue=re?.closest(nc),pe;for(;ue&&!pe;)ue=$>0?v$(ue,nc):b$(ue,nc),pe=ue?.querySelector(nT);pe?D.setState("value",pe.getAttribute(ds)):X($)}let me=()=>z(ae().length-1),P=$=>{$.preventDefault(),$.metaKey?me():$.altKey?G(1):X(1)},ne=$=>{$.preventDefault(),$.metaKey?z(0):$.altKey?G(-1):X(-1)};return S.createElement($e.div,{ref:t,tabIndex:-1,...N,"cmdk-root":"",onKeyDown:$=>{var re;(re=N.onKeyDown)==null||re.call(N,$);let ue=$.nativeEvent.isComposing||$.keyCode===229;if(!($.defaultPrevented||ue))switch($.key){case"n":case"j":{w&&$.ctrlKey&&P($);break}case"ArrowDown":{P($);break}case"p":case"k":{w&&$.ctrlKey&&ne($);break}case"ArrowUp":{ne($);break}case"Home":{$.preventDefault(),z(0);break}case"End":{$.preventDefault(),me();break}case"Enter":{$.preventDefault();let pe=Z();if(pe){let be=new Event($y);pe.dispatchEvent(be)}}}}},S.createElement("label",{"cmdk-label":"",htmlFor:L.inputId,id:L.labelId,style:S$},d),Ch(e,$=>S.createElement(L1.Provider,{value:D},S.createElement(D1.Provider,{value:L},$))))}),u$=S.forwardRef((e,t)=>{var n,r;let a=hr(),s=S.useRef(null),l=S.useContext(j1),u=su(),d=M1(e),f=(r=(n=d.current)==null?void 0:n.forceMount)!=null?r:l?.forceMount;oo(()=>{if(!f)return u.item(a,l?.id)},[f]);let p=z1(a,s,[e.value,e.children,s],e.keywords),m=Ob(),v=la(I=>I.value&&I.value===p.current),_=la(I=>f||u.filter()===!1?!0:I.search?I.filtered.items.get(a)>0:!0);S.useEffect(()=>{let I=s.current;if(!(!I||e.disabled))return I.addEventListener($y,x),()=>I.removeEventListener($y,x)},[_,e.onSelect,e.disabled]);function x(){var I,D;A(),(D=(I=d.current).onSelect)==null||D.call(I,p.current)}function A(){m.setState("value",p.current,!0)}if(!_)return null;let{disabled:w,value:N,onSelect:E,forceMount:T,keywords:R,...C}=e;return S.createElement($e.div,{ref:io(s,t),...C,id:a,"cmdk-item":"",role:"option","aria-disabled":!!w,"aria-selected":!!v,"data-disabled":!!w,"data-selected":!!v,onPointerMove:w||u.getDisablePointerSelection()?void 0:A,onClick:w?void 0:x},e.children)}),d$=S.forwardRef((e,t)=>{let{heading:n,children:r,forceMount:a,...s}=e,l=hr(),u=S.useRef(null),d=S.useRef(null),f=hr(),p=su(),m=la(_=>a||p.filter()===!1?!0:_.search?_.filtered.groups.has(l):!0);oo(()=>p.group(l),[]),z1(l,u,[e.value,e.heading,d]);let v=S.useMemo(()=>({id:l,forceMount:a}),[a]);return S.createElement($e.div,{ref:io(u,t),...s,"cmdk-group":"",role:"presentation",hidden:m?void 0:!0},n&&S.createElement("div",{ref:d,"cmdk-group-heading":"","aria-hidden":!0,id:f},n),Ch(e,_=>S.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":n?f:void 0},S.createElement(j1.Provider,{value:v},_))))}),f$=S.forwardRef((e,t)=>{let{alwaysRender:n,...r}=e,a=S.useRef(null),s=la(l=>!l.search);return!n&&!s?null:S.createElement($e.div,{ref:io(a,t),...r,"cmdk-separator":"",role:"separator"})}),h$=S.forwardRef((e,t)=>{let{onValueChange:n,...r}=e,a=e.value!=null,s=Ob(),l=la(f=>f.search),u=la(f=>f.selectedItemId),d=su();return S.useEffect(()=>{e.value!=null&&s.setState("search",e.value)},[e.value]),S.createElement($e.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)}})}),p$=S.forwardRef((e,t)=>{let{children:n,label:r="Suggestions",...a}=e,s=S.useRef(null),l=S.useRef(null),u=la(f=>f.selectedItemId),d=su();return S.useEffect(()=>{if(l.current&&s.current){let f=l.current,p=s.current,m,v=new ResizeObserver(()=>{m=requestAnimationFrame(()=>{let _=f.offsetHeight;p.style.setProperty("--cmdk-list-height",_.toFixed(1)+"px")})});return v.observe(f),()=>{cancelAnimationFrame(m),v.unobserve(f)}}},[]),S.createElement($e.div,{ref:io(s,t),...a,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":u,"aria-label":r,id:d.listId},Ch(e,f=>S.createElement("div",{ref:io(l,d.listInnerRef),"cmdk-list-sizer":""},f)))}),m$=S.forwardRef((e,t)=>{let{open:n,onOpenChange:r,overlayClassName:a,contentClassName:s,container:l,...u}=e;return S.createElement(ZG,{open:n,onOpenChange:r},S.createElement(YG,{container:l},S.createElement(XG,{"cmdk-overlay":"",className:a}),S.createElement(QG,{"aria-label":e.label,"cmdk-dialog":"",className:s},S.createElement(P1,{ref:t,...u}))))}),g$=S.forwardRef((e,t)=>la(n=>n.filtered.count===0)?S.createElement($e.div,{ref:t,...e,"cmdk-empty":"",role:"presentation"}):null),y$=S.forwardRef((e,t)=>{let{progress:n,children:r,label:a="Loading...",...s}=e;return S.createElement($e.div,{ref:t,...s,"cmdk-loading":"",role:"progressbar","aria-valuenow":n,"aria-valuemin":0,"aria-valuemax":100,"aria-label":a},Ch(e,l=>S.createElement("div",{"aria-hidden":!0},l)))}),lu=Object.assign(P1,{List:p$,Item:u$,Input:h$,Group:d$,Separator:f$,Dialog:m$,Empty:g$,Loading:y$});function v$(e,t){let n=e.nextElementSibling;for(;n;){if(n.matches(t))return n;n=n.nextElementSibling}}function b$(e,t){let n=e.previousElementSibling;for(;n;){if(n.matches(t))return n;n=n.previousElementSibling}}function M1(e){let t=S.useRef(e);return oo(()=>{t.current=e}),t}var oo=typeof window>"u"?S.useEffect:S.useLayoutEffect;function fs(e){let t=S.useRef();return t.current===void 0&&(t.current=e()),t}function la(e){let t=Ob(),n=()=>e(t.snapshot());return S.useSyncExternalStore(t.subscribe,n,n)}function z1(e,t,n,r=[]){let a=S.useRef(),s=su();return oo(()=>{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(ds,u),a.current=u}),a}var _$=()=>{let[e,t]=S.useState(),n=fs(()=>new Map);return oo(()=>{n.current.forEach(r=>r()),n.current=new Map},[e]),(r,a)=>{n.current.set(r,a),t({})}};function E$(e){let t=e.type;return typeof t=="function"?t(e.props):"render"in t?t.render(e.props):e}function Ch({asChild:e,children:t},n){return e&&S.isValidElement(t)?S.cloneElement(E$(t),{ref:t.ref},n(t.props.children)):n(t)}var S$={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};const B1=({className:e,...t})=>y.jsx(lu,{className:ve("flex size-full flex-col overflow-hidden rounded-md",e),...t}),x$=({className:e,...t})=>y.jsxs("div",{className:"flex w-full items-center","cmdk-input-wrapper":"",children:[y.jsx(AH,{className:"mr-2 size-4 shrink-0 opacity-50"}),y.jsx(lu.Input,{className:ve("placeholder:text-muted-foreground outline-hidden flex w-full rounded-md bg-transparent text-sm disabled:cursor-not-allowed disabled:opacity-50",e),...t})]}),A$=({className:e,...t})=>y.jsx(lu.List,{className:ve("max-h-[300px] overflow-y-auto overflow-x-hidden",e),...t}),T$=e=>y.jsx(lu.Empty,{className:"py-6 text-center text-sm",...e}),w$=({className:e,...t})=>y.jsx(lu.Item,{className:ve("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}),Vf={...B1,Input:x$,List:A$,Empty:T$,Item:w$},C$=wn("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"}}),kr=({children:e,roundedSize:t,padding:n,transparency:r,separator:a,className:s,border:l,borderColor:u,background:d,...f})=>y.jsx("div",{className:ve(C$({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}),V1=({content:e,...t})=>{const[n,r]=S.useState(!1),{label:a}=dn("copy-button"),s=async()=>{try{await navigator.clipboard.writeText(e),r(!0)}catch(l){console.error("Failed to copy text: ",l)}};return S.useEffect(()=>{const l=setTimeout(()=>{r(!1)},1e3);return()=>clearTimeout(l)},[n]),y.jsx(lt,{Icon:n?tH:rH,onClick:s,variant:st.HOVERABLE,color:ot.TEXT,size:Yn.ICON_SM,...t,label:t.label??a.value})},U1=S.createContext({});function R$(e){const t=S.useRef(null);return t.current===null&&(t.current=e()),t.current}const Db=typeof window<"u",k$=Db?S.useLayoutEffect:S.useEffect,Lb=S.createContext(null);function jb(e,t){e.indexOf(t)===-1&&e.push(t)}function Pb(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const _i=(e,t,n)=>n>t?t:n<e?e:n;let Mb=()=>{};const Ei={},F1=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function H1(e){return typeof e=="object"&&e!==null}const G1=e=>/^0[^.\s]+$/u.test(e);function zb(e){let t;return()=>(t===void 0&&(t=e()),t)}const pr=e=>e,N$=(e,t)=>n=>t(e(n)),cu=(...e)=>e.reduce(N$),jc=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r};class Bb{constructor(){this.subscriptions=[]}add(t){return jb(this.subscriptions,t),()=>Pb(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 Gr=e=>e*1e3,fr=e=>e/1e3;function $1(e,t){return t?e*(1e3/t):0}const K1=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,I$=1e-7,O$=12;function D$(e,t,n,r,a){let s,l,u=0;do l=t+(n-t)/2,s=K1(l,r,a)-e,s>0?n=l:t=l;while(Math.abs(s)>I$&&++u<O$);return l}function uu(e,t,n,r){if(e===t&&n===r)return pr;const a=s=>D$(s,0,1,e,n);return s=>s===0||s===1?s:K1(a(s),t,r)}const q1=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,W1=e=>t=>1-e(1-t),Z1=uu(.33,1.53,.69,.99),Vb=W1(Z1),Y1=q1(Vb),X1=e=>(e*=2)<1?.5*Vb(e):.5*(2-Math.pow(2,-10*(e-1))),Ub=e=>1-Math.sin(Math.acos(e)),Q1=W1(Ub),J1=q1(Ub),L$=uu(.42,0,1,1),j$=uu(0,0,.58,1),eN=uu(.42,0,.58,1),P$=e=>Array.isArray(e)&&typeof e[0]!="number",tN=e=>Array.isArray(e)&&typeof e[0]=="number",M$={linear:pr,easeIn:L$,easeInOut:eN,easeOut:j$,circIn:Ub,circInOut:J1,circOut:Q1,backIn:Vb,backInOut:Y1,backOut:Z1,anticipate:X1},z$=e=>typeof e=="string",rT=e=>{if(tN(e)){Mb(e.length===4);const[t,n,r,a]=e;return uu(t,n,r,a)}else if(z$(e))return M$[e];return e},Wd=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function B$(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,m=!1,v=!1)=>{const x=v&&a?n:r;return m&&l.add(p),x.has(p)||x.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 V$=40;function nN(e,t){let n=!1,r=!0;const a={delta:0,timestamp:0,isProcessing:!1},s=()=>n=!0,l=Wd.reduce((T,R)=>(T[R]=B$(s),T),{}),{setup:u,read:d,resolveKeyframes:f,preUpdate:p,update:m,preRender:v,render:_,postRender:x}=l,A=()=>{const T=Ei.useManualTiming?a.timestamp:performance.now();n=!1,Ei.useManualTiming||(a.delta=r?1e3/60:Math.max(Math.min(T-a.timestamp,V$),1)),a.timestamp=T,a.isProcessing=!0,u.process(a),d.process(a),f.process(a),p.process(a),m.process(a),v.process(a),_.process(a),x.process(a),a.isProcessing=!1,n&&t&&(r=!1,e(A))},w=()=>{n=!0,r=!0,a.isProcessing||e(A)};return{schedule:Wd.reduce((T,R)=>{const C=l[R];return T[R]=(I,D=!1,L=!1)=>(n||w(),C.schedule(I,D,L)),T},{}),cancel:T=>{for(let R=0;R<Wd.length;R++)l[Wd[R]].cancel(T)},state:a,steps:l}}const{schedule:Et,cancel:ca,state:cn,steps:zg}=nN(typeof requestAnimationFrame<"u"?requestAnimationFrame:pr,!0);let Ef;function U$(){Ef=void 0}const Ln={now:()=>(Ef===void 0&&Ln.set(cn.isProcessing||Ei.useManualTiming?cn.timestamp:performance.now()),Ef),set:e=>{Ef=e,queueMicrotask(U$)}},rN=e=>t=>typeof t=="string"&&t.startsWith(e),Fb=rN("--"),F$=rN("var(--"),Hb=e=>F$(e)?H$.test(e.split("/*")[0].trim()):!1,H$=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Gs={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Pc={...Gs,transform:e=>_i(0,1,e)},Zd={...Gs,default:1},_c=e=>Math.round(e*1e5)/1e5,Gb=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function G$(e){return e==null}const $$=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,$b=(e,t)=>n=>!!(typeof n=="string"&&$$.test(n)&&n.startsWith(e)||t&&!G$(n)&&Object.prototype.hasOwnProperty.call(n,t)),iN=(e,t,n)=>r=>{if(typeof r!="string")return r;const[a,s,l,u]=r.match(Gb);return{[e]:parseFloat(a),[t]:parseFloat(s),[n]:parseFloat(l),alpha:u!==void 0?parseFloat(u):1}},K$=e=>_i(0,255,e),Bg={...Gs,transform:e=>Math.round(K$(e))},Xa={test:$b("rgb","red"),parse:iN("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Bg.transform(e)+", "+Bg.transform(t)+", "+Bg.transform(n)+", "+_c(Pc.transform(r))+")"};function q$(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 Ky={test:$b("#"),parse:q$,transform:Xa.transform},du=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),ra=du("deg"),$r=du("%"),Me=du("px"),W$=du("vh"),Z$=du("vw"),iT={...$r,parse:e=>$r.parse(e)/100,transform:e=>$r.transform(e*100)},ms={test:$b("hsl","hue"),parse:iN("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+$r.transform(_c(t))+", "+$r.transform(_c(n))+", "+_c(Pc.transform(r))+")"},Vt={test:e=>Xa.test(e)||Ky.test(e)||ms.test(e),parse:e=>Xa.test(e)?Xa.parse(e):ms.test(e)?ms.parse(e):Ky.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Xa.transform(e):ms.transform(e),getAnimatableNone:e=>{const t=Vt.parse(e);return t.alpha=0,Vt.transform(t)}},Y$=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function X$(e){return isNaN(e)&&typeof e=="string"&&(e.match(Gb)?.length||0)+(e.match(Y$)?.length||0)>0}const aN="number",oN="color",Q$="var",J$="var(",aT="${}",e3=/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 Mc(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},a=[];let s=0;const u=t.replace(e3,d=>(Vt.test(d)?(r.color.push(s),a.push(oN),n.push(Vt.parse(d))):d.startsWith(J$)?(r.var.push(s),a.push(Q$),n.push(d)):(r.number.push(s),a.push(aN),n.push(parseFloat(d))),++s,aT)).split(aT);return{values:n,split:u,indexes:r,types:a}}function sN(e){return Mc(e).values}function lN(e){const{split:t,types:n}=Mc(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===aN?s+=_c(a[l]):u===oN?s+=Vt.transform(a[l]):s+=a[l]}return s}}const t3=e=>typeof e=="number"?0:Vt.test(e)?Vt.getAnimatableNone(e):e;function n3(e){const t=sN(e);return lN(e)(t.map(t3))}const ua={test:X$,parse:sN,createTransformer:lN,getAnimatableNone:n3};function Vg(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 r3({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=Vg(d,u,e+1/3),s=Vg(d,u,e),l=Vg(d,u,e-1/3)}return{red:Math.round(a*255),green:Math.round(s*255),blue:Math.round(l*255),alpha:r}}function Uf(e,t){return n=>n>0?t:e}const Tt=(e,t,n)=>e+(t-e)*n,Ug=(e,t,n)=>{const r=e*e,a=n*(t*t-r)+r;return a<0?0:Math.sqrt(a)},i3=[Ky,Xa,ms],a3=e=>i3.find(t=>t.test(e));function oT(e){const t=a3(e);if(!t)return!1;let n=t.parse(e);return t===ms&&(n=r3(n)),n}const sT=(e,t)=>{const n=oT(e),r=oT(t);if(!n||!r)return Uf(e,t);const a={...n};return s=>(a.red=Ug(n.red,r.red,s),a.green=Ug(n.green,r.green,s),a.blue=Ug(n.blue,r.blue,s),a.alpha=Tt(n.alpha,r.alpha,s),Xa.transform(a))},qy=new Set(["none","hidden"]);function o3(e,t){return qy.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function s3(e,t){return n=>Tt(e,t,n)}function Kb(e){return typeof e=="number"?s3:typeof e=="string"?Hb(e)?Uf:Vt.test(e)?sT:u3:Array.isArray(e)?cN:typeof e=="object"?Vt.test(e)?sT:l3:Uf}function cN(e,t){const n=[...e],r=n.length,a=e.map((s,l)=>Kb(s)(s,t[l]));return s=>{for(let l=0;l<r;l++)n[l]=a[l](s);return n}}function l3(e,t){const n={...e,...t},r={};for(const a in n)e[a]!==void 0&&t[a]!==void 0&&(r[a]=Kb(e[a])(e[a],t[a]));return a=>{for(const s in r)n[s]=r[s](a);return n}}function c3(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 u3=(e,t)=>{const n=ua.createTransformer(t),r=Mc(e),a=Mc(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?qy.has(e)&&!a.values.length||qy.has(t)&&!r.values.length?o3(e,t):cu(cN(c3(r,a),a.values),n):Uf(e,t)};function uN(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?Tt(e,t,n):Kb(e)(e,t)}const d3=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>Et.update(t,n),stop:()=>ca(t),now:()=>cn.isProcessing?cn.timestamp:Ln.now()}},dN=(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)})`},Ff=2e4;function qb(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<Ff;)t+=n,r=e.next(t);return t>=Ff?1/0:t}function f3(e,t=100,n){const r=n({...e,keyframes:[0,t]}),a=Math.min(qb(r),Ff);return{type:"keyframes",ease:s=>r.next(a*s).value/t,duration:fr(a)}}const h3=5;function fN(e,t,n){const r=Math.max(t-h3,0);return $1(n-e(r),t-r)}const It={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},Fg=.001;function p3({duration:e=It.duration,bounce:t=It.bounce,velocity:n=It.velocity,mass:r=It.mass}){let a,s,l=1-t;l=_i(It.minDamping,It.maxDamping,l),e=_i(It.minDuration,It.maxDuration,fr(e)),l<1?(a=f=>{const p=f*l,m=p*e,v=p-n,_=Wy(f,l),x=Math.exp(-m);return Fg-v/_*x},s=f=>{const m=f*l*e,v=m*n+n,_=Math.pow(l,2)*Math.pow(f,2)*e,x=Math.exp(-m),A=Wy(Math.pow(f,2),l);return(-a(f)+Fg>0?-1:1)*((v-_)*x)/A}):(a=f=>{const p=Math.exp(-f*e),m=(f-n)*e+1;return-Fg+p*m},s=f=>{const p=Math.exp(-f*e),m=(n-f)*(e*e);return p*m});const u=5/e,d=g3(a,s,u);if(e=Gr(e),isNaN(d))return{stiffness:It.stiffness,damping:It.damping,duration:e};{const f=Math.pow(d,2)*r;return{stiffness:f,damping:l*2*Math.sqrt(r*f),duration:e}}}const m3=12;function g3(e,t,n){let r=n;for(let a=1;a<m3;a++)r=r-e(r)/t(r);return r}function Wy(e,t){return e*Math.sqrt(1-t*t)}const y3=["duration","bounce"],v3=["stiffness","damping","mass"];function lT(e,t){return t.some(n=>e[n]!==void 0)}function b3(e){let t={velocity:It.velocity,stiffness:It.stiffness,damping:It.damping,mass:It.mass,isResolvedFromDuration:!1,...e};if(!lT(e,v3)&&lT(e,y3))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),a=r*r,s=2*_i(.05,1,1-(e.bounce||0))*Math.sqrt(a);t={...t,mass:It.mass,stiffness:a,damping:s}}else{const n=p3(e);t={...t,...n,mass:It.mass},t.isResolvedFromDuration=!0}return t}function Hf(e=It.visualDuration,t=It.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:m,velocity:v,isResolvedFromDuration:_}=b3({...n,velocity:-fr(n.velocity||0)}),x=v||0,A=f/(2*Math.sqrt(d*p)),w=l-s,N=fr(Math.sqrt(d/p)),E=Math.abs(w)<5;r||(r=E?It.restSpeed.granular:It.restSpeed.default),a||(a=E?It.restDelta.granular:It.restDelta.default);let T;if(A<1){const C=Wy(N,A);T=I=>{const D=Math.exp(-A*N*I);return l-D*((x+A*N*w)/C*Math.sin(C*I)+w*Math.cos(C*I))}}else if(A===1)T=C=>l-Math.exp(-N*C)*(w+(x+N*w)*C);else{const C=N*Math.sqrt(A*A-1);T=I=>{const D=Math.exp(-A*N*I),L=Math.min(C*I,300);return l-D*((x+A*N*w)*Math.sinh(L)+C*w*Math.cosh(L))/C}}const R={calculatedDuration:_&&m||null,next:C=>{const I=T(C);if(_)u.done=C>=m;else{let D=C===0?x:0;A<1&&(D=C===0?Gr(x):fN(T,C,I));const L=Math.abs(D)<=r,U=Math.abs(l-I)<=a;u.done=L&&U}return u.value=u.done?l:I,u},toString:()=>{const C=Math.min(qb(R),Ff),I=dN(D=>R.next(C*D).value,C,30);return C+"ms "+I},toTransition:()=>{}};return R}Hf.applyToOptions=e=>{const t=f3(e,100,Hf);return e.ease=t.ease,e.duration=Gr(t.duration),e.type="keyframes",e};function Zy({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 m=e[0],v={done:!1,value:m},_=L=>u!==void 0&&L<u||d!==void 0&&L>d,x=L=>u===void 0?d:d===void 0||Math.abs(u-L)<Math.abs(d-L)?u:d;let A=n*t;const w=m+A,N=l===void 0?w:l(w);N!==w&&(A=N-m);const E=L=>-A*Math.exp(-L/r),T=L=>N+E(L),R=L=>{const U=E(L),K=T(L);v.done=Math.abs(U)<=f,v.value=v.done?N:K};let C,I;const D=L=>{_(v.value)&&(C=L,I=Hf({keyframes:[v.value,x(v.value)],velocity:fN(T,L,v.value),damping:a,stiffness:s,restDelta:f,restSpeed:p}))};return D(0),{calculatedDuration:null,next:L=>{let U=!1;return!I&&C===void 0&&(U=!0,R(L),D(L)),C!==void 0&&L>=C?I.next(L-C):(!U&&R(L),v)}}}function _3(e,t,n){const r=[],a=n||Ei.mix||uN,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]||pr:t;u=cu(d,u)}r.push(u)}return r}function E3(e,t,{clamp:n=!0,ease:r,mixer:a}={}){const s=e.length;if(Mb(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=_3(t,r,a),d=u.length,f=p=>{if(l&&p<e[0])return t[0];let m=0;if(d>1)for(;m<e.length-2&&!(p<e[m+1]);m++);const v=jc(e[m],e[m+1],p);return u[m](v)};return n?p=>f(_i(e[0],e[s-1],p)):f}function S3(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const a=jc(0,t,r);e.push(Tt(n,1,a))}}function x3(e){const t=[0];return S3(t,e.length-1),t}function A3(e,t){return e.map(n=>n*t)}function T3(e,t){return e.map(()=>t||eN).splice(0,e.length-1)}function Ec({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const a=P$(r)?r.map(rT):rT(r),s={done:!1,value:t[0]},l=A3(n&&n.length===t.length?n:x3(t),e),u=E3(l,t,{ease:Array.isArray(a)?a:T3(t,a)});return{calculatedDuration:e,next:d=>(s.value=u(d),s.done=d>=e,s)}}const w3=e=>e!==null;function Wb(e,{repeat:t,repeatType:n="loop"},r,a=1){const s=e.filter(w3),u=a<0||t&&n!=="loop"&&t%2===1?0:s.length-1;return!u||r===void 0?s[u]:r}const C3={decay:Zy,inertia:Zy,tween:Ec,keyframes:Ec,spring:Hf};function hN(e){typeof e.type=="string"&&(e.type=C3[e.type])}class Zb{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 R3=e=>e/100;class Yb extends Zb{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!==Ln.now()&&this.tick(Ln.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;hN(t);const{type:n=Ec,repeat:r=0,repeatDelay:a=0,repeatType:s,velocity:l=0}=t;let{keyframes:u}=t;const d=n||Ec;d!==Ec&&typeof u[0]!="number"&&(this.mixKeyframes=cu(R3,uN(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=qb(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:m,repeatType:v,repeatDelay:_,type:x,onUpdate:A,finalKeyframe:w}=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 N=this.currentTime-f*(this.playbackSpeed>=0?1:-1),E=this.playbackSpeed>=0?N<0:N>a;this.currentTime=Math.max(N,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=a);let T=this.currentTime,R=r;if(m){const L=Math.min(this.currentTime,a)/u;let U=Math.floor(L),K=L%1;!K&&L>=1&&(K=1),K===1&&U--,U=Math.min(U,m+1),!!(U%2)&&(v==="reverse"?(K=1-K,_&&(K-=_/u)):v==="mirror"&&(R=l)),T=_i(0,1,K)*u}const C=E?{done:!1,value:p[0]}:R.next(T);s&&(C.value=s(C.value));let{done:I}=C;!E&&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&&x!==Zy&&(C.value=Wb(p,this.options,w,this.speed)),A&&A(C.value),D&&this.finish(),C}then(t,n){return this.finished.then(t,n)}get duration(){return fr(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+fr(t)}get time(){return fr(this.currentTime)}set time(t){t=Gr(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(Ln.now());const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=fr(this.currentTime))}play(){if(this.isStopped)return;const{driver:t=d3,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(Ln.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 k3(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const Qa=e=>e*180/Math.PI,Yy=e=>{const t=Qa(Math.atan2(e[1],e[0]));return Xy(t)},N3={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Yy,rotateZ:Yy,skewX:e=>Qa(Math.atan(e[1])),skewY:e=>Qa(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},Xy=e=>(e=e%360,e<0&&(e+=360),e),cT=Yy,uT=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),dT=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),I3={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:uT,scaleY:dT,scale:e=>(uT(e)+dT(e))/2,rotateX:e=>Xy(Qa(Math.atan2(e[6],e[5]))),rotateY:e=>Xy(Qa(Math.atan2(-e[2],e[0]))),rotateZ:cT,rotate:cT,skewX:e=>Qa(Math.atan(e[4])),skewY:e=>Qa(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function Qy(e){return e.includes("scale")?1:0}function Jy(e,t){if(!e||e==="none")return Qy(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,a;if(n)r=I3,a=n;else{const u=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=N3,a=u}if(!a)return Qy(t);const s=r[t],l=a[1].split(",").map(D3);return typeof s=="function"?s(l):l[s]}const O3=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return Jy(n,t)};function D3(e){return parseFloat(e.trim())}const $s=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Ks=new Set($s),fT=e=>e===Gs||e===Me,L3=new Set(["x","y","z"]),j3=$s.filter(e=>!L3.has(e));function P3(e){const t=[];return j3.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const no={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})=>Jy(t,"x"),y:(e,{transform:t})=>Jy(t,"y")};no.translateX=no.x;no.translateY=no.y;const ro=new Set;let ev=!1,tv=!1,nv=!1;function pN(){if(tv){const e=Array.from(ro).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const a=P3(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)})}tv=!1,ev=!1,ro.forEach(e=>e.complete(nv)),ro.clear()}function mN(){ro.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(tv=!0)})}function M3(){nv=!0,mN(),pN(),nv=!1}class Xb{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?(ro.add(this),ev||(ev=!0,Et.read(mN),Et.resolveKeyframes(pN))):(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])}k3(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),ro.delete(this)}cancel(){this.state==="scheduled"&&(ro.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const z3=e=>e.startsWith("--");function B3(e,t,n){z3(t)?e.style.setProperty(t,n):e.style[t]=n}const V3=zb(()=>window.ScrollTimeline!==void 0),U3={};function F3(e,t){const n=zb(e);return()=>U3[t]??n()}const gN=F3(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),mc=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,hT={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:mc([0,.65,.55,1]),circOut:mc([.55,0,1,.45]),backIn:mc([.31,.01,.66,-.59]),backOut:mc([.33,1.53,.69,.99])};function yN(e,t){if(e)return typeof e=="function"?gN()?dN(e,t):"ease-out":tN(e)?mc(e):Array.isArray(e)?e.map(n=>yN(n,t)||hT.easeOut):hT[e]}function H3(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 m=yN(u,a);Array.isArray(m)&&(p.easing=m);const v={delay:r,duration:a,easing:Array.isArray(m)?"linear":m,fill:"both",iterations:s+1,direction:l==="reverse"?"alternate":"normal"};return f&&(v.pseudoElement=f),e.animate(p,v)}function vN(e){return typeof e=="function"&&"applyToOptions"in e}function G3({type:e,...t}){return vN(e)&&gN()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class $3 extends Zb{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,Mb(typeof t.type!="string");const f=G3(t);this.animation=H3(n,r,a,f,s),f.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!s){const p=Wb(a,this.options,u,this.speed);this.updateMotionValue?this.updateMotionValue(p):B3(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 fr(Number(t))}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+fr(t)}get time(){return fr(Number(this.animation.currentTime)||0)}set time(t){this.finishedTime=null,this.animation.currentTime=Gr(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&&V3()?(this.animation.timeline=t,pr):n(this)}}const bN={anticipate:X1,backInOut:Y1,circInOut:J1};function K3(e){return e in bN}function q3(e){typeof e.ease=="string"&&K3(e.ease)&&(e.ease=bN[e.ease])}const pT=10;class W3 extends $3{constructor(t){q3(t),hN(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 Yb({...l,autoplay:!1}),d=Gr(this.finishedTime??this.time);n.setWithVelocity(u.sample(d-pT).value,u.sample(d).value,pT),u.stop()}}const mT=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(ua.test(e)||e==="0")&&!e.startsWith("url("));function Z3(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 Y3(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=mT(a,t),u=mT(s,t);return!l||!u?!1:Z3(e)||(n==="spring"||vN(n))&&r}function rv(e){e.duration=0,e.type="keyframes"}const X3=new Set(["opacity","clipPath","filter","transform"]),Q3=zb(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function J3(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 Q3()&&n&&X3.has(n)&&(n!=="transform"||!f)&&!d&&!r&&a!=="mirror"&&s!==0&&l!=="inertia"}const e4=40;class t4 extends Zb{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,...m}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=Ln.now();const v={autoplay:t,delay:n,type:r,repeat:a,repeatDelay:s,repeatType:l,name:d,motionValue:f,element:p,...m},_=p?.KeyframeResolver||Xb;this.keyframeResolver=new _(u,(x,A,w)=>this.onKeyframesResolved(x,A,v,!w),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=Ln.now(),Y3(t,s,l,u)||((Ei.instantAnimations||!d)&&p?.(Wb(t,r,n)),t[0]=t[t.length-1],rv(r),r.repeat=0);const v={startTime:a?this.resolvedAt?this.resolvedAt-this.createdAt>e4?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...r,keyframes:t},_=!f&&J3(v)?new W3({...v,element:v.motionValue.owner.current}):new Yb(v);_.finished.then(()=>this.notifyFinished()).catch(pr),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(),M3()),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 n4=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function r4(e){const t=n4.exec(e);if(!t)return[,];const[,n,r,a]=t;return[`--${n??r}`,a]}function _N(e,t,n=1){const[r,a]=r4(e);if(!r)return;const s=window.getComputedStyle(t).getPropertyValue(r);if(s){const l=s.trim();return F1(l)?parseFloat(l):l}return Hb(a)?_N(a,t,n+1):a}function Qb(e,t){return e?.[t]??e?.default??e}const EN=new Set(["width","height","top","left","right","bottom",...$s]),i4={test:e=>e==="auto",parse:e=>e},SN=e=>t=>t.test(e),xN=[Gs,Me,$r,ra,Z$,W$,i4],gT=e=>xN.find(SN(e));function a4(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||G1(e):!0}const o4=new Set(["brightness","contrast","saturate","opacity"]);function s4(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Gb)||[];if(!r)return e;const a=n.replace(r,"");let s=o4.has(t)?1:0;return r!==n&&(s*=100),t+"("+s+a+")"}const l4=/\b([a-z-]*)\(.*?\)/gu,iv={...ua,getAnimatableNone:e=>{const t=e.match(l4);return t?t.map(s4).join(" "):e}},yT={...Gs,transform:Math.round},c4={rotate:ra,rotateX:ra,rotateY:ra,rotateZ:ra,scale:Zd,scaleX:Zd,scaleY:Zd,scaleZ:Zd,skew:ra,skewX:ra,skewY:ra,distance:Me,translateX:Me,translateY:Me,translateZ:Me,x:Me,y:Me,z:Me,perspective:Me,transformPerspective:Me,opacity:Pc,originX:iT,originY:iT,originZ:Me},Jb={borderWidth:Me,borderTopWidth:Me,borderRightWidth:Me,borderBottomWidth:Me,borderLeftWidth:Me,borderRadius:Me,radius:Me,borderTopLeftRadius:Me,borderTopRightRadius:Me,borderBottomRightRadius:Me,borderBottomLeftRadius:Me,width:Me,maxWidth:Me,height:Me,maxHeight:Me,top:Me,right:Me,bottom:Me,left:Me,padding:Me,paddingTop:Me,paddingRight:Me,paddingBottom:Me,paddingLeft:Me,margin:Me,marginTop:Me,marginRight:Me,marginBottom:Me,marginLeft:Me,backgroundPositionX:Me,backgroundPositionY:Me,...c4,zIndex:yT,fillOpacity:Pc,strokeOpacity:Pc,numOctaves:yT},u4={...Jb,color:Vt,backgroundColor:Vt,outlineColor:Vt,fill:Vt,stroke:Vt,borderColor:Vt,borderTopColor:Vt,borderRightColor:Vt,borderBottomColor:Vt,borderLeftColor:Vt,filter:iv,WebkitFilter:iv},AN=e=>u4[e];function TN(e,t){let n=AN(e);return n!==iv&&(n=ua),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const d4=new Set(["auto","none","0"]);function f4(e,t,n){let r=0,a;for(;r<e.length&&!a;){const s=e[r];typeof s=="string"&&!d4.has(s)&&Mc(s).values.length&&(a=e[r]),r++}if(a&&n)for(const s of t)e[s]=TN(n,a)}class h4 extends Xb{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(),Hb(f))){const p=_N(f,n.current);p!==void 0&&(t[d]=p),d===t.length-1&&(this.finalKeyframe=f)}}if(this.resolveNoneKeyframes(),!EN.has(r)||t.length!==2)return;const[a,s]=t,l=gT(a),u=gT(s);if(l!==u)if(fT(l)&&fT(u))for(let d=0;d<t.length;d++){const f=t[d];typeof f=="string"&&(t[d]=parseFloat(f))}else no[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let a=0;a<t.length;a++)(t[a]===null||a4(t[a]))&&r.push(a);r.length&&f4(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=no[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]=no[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 p4(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 wN=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function m4(e){return H1(e)&&"offsetHeight"in e}const vT=30,g4=e=>!isNaN(parseFloat(e));class y4{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=r=>{const a=Ln.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=Ln.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=g4(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 Bb);const r=this.events[t].add(n);return t==="change"?()=>{r(),Et.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=Ln.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>vT)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,vT);return $1(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 Is(e,t){return new y4(e,t)}const{schedule:e_}=nN(queueMicrotask,!1),br={x:!1,y:!1};function CN(){return br.x||br.y}function v4(e){return e==="x"||e==="y"?br[e]?null:(br[e]=!0,()=>{br[e]=!1}):br.x||br.y?null:(br.x=br.y=!0,()=>{br.x=br.y=!1})}function RN(e,t){const n=p4(e),r=new AbortController,a={passive:!0,...t,signal:r.signal};return[n,a,()=>r.abort()]}function bT(e){return!(e.pointerType==="touch"||CN())}function b4(e,t,n={}){const[r,a,s]=RN(e,n),l=u=>{if(!bT(u))return;const{target:d}=u,f=t(d,u);if(typeof f!="function"||!d)return;const p=m=>{bT(m)&&(f(m),d.removeEventListener("pointerleave",p))};d.addEventListener("pointerleave",p,a)};return r.forEach(u=>{u.addEventListener("pointerenter",l,a)}),s}const kN=(e,t)=>t?e===t?!0:kN(e,t.parentElement):!1,t_=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,_4=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function E4(e){return _4.has(e.tagName)||e.tabIndex!==-1}const Sf=new WeakSet;function _T(e){return t=>{t.key==="Enter"&&e(t)}}function Hg(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const S4=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=_T(()=>{if(Sf.has(n))return;Hg(n,"down");const a=_T(()=>{Hg(n,"up")}),s=()=>Hg(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 ET(e){return t_(e)&&!CN()}function x4(e,t,n={}){const[r,a,s]=RN(e,n),l=u=>{const d=u.currentTarget;if(!ET(u))return;Sf.add(d);const f=t(d,u),p=(_,x)=>{window.removeEventListener("pointerup",m),window.removeEventListener("pointercancel",v),Sf.has(d)&&Sf.delete(d),ET(_)&&typeof f=="function"&&f(_,{success:x})},m=_=>{p(_,d===window||d===document||n.useGlobalTarget||kN(d,_.target))},v=_=>{p(_,!1)};window.addEventListener("pointerup",m,a),window.addEventListener("pointercancel",v,a)};return r.forEach(u=>{(n.useGlobalTarget?window:u).addEventListener("pointerdown",l,a),m4(u)&&(u.addEventListener("focus",f=>S4(f,a)),!E4(u)&&!u.hasAttribute("tabindex")&&(u.tabIndex=0))}),s}function NN(e){return H1(e)&&"ownerSVGElement"in e}function A4(e){return NN(e)&&e.tagName==="svg"}const bn=e=>!!(e&&e.getVelocity),T4=[...xN,Vt,ua],w4=e=>T4.find(SN(e)),IN=S.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function C4(e=!0){const t=S.useContext(Lb);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:a}=t,s=S.useId();S.useEffect(()=>{if(e)return a(s)},[e]);const l=S.useCallback(()=>e&&r&&r(s),[s,r,e]);return!n&&r?[!1,l]:[!0]}const n_=S.createContext({strict:!1}),ST={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"]},Os={};for(const e in ST)Os[e]={isEnabled:t=>ST[e].some(n=>!!t[n])};function av(e){for(const t in e)Os[t]={...Os[t],...e[t]}}function R4({children:e,features:t,strict:n=!1}){const[,r]=S.useState(!Gg(t)),a=S.useRef(void 0);if(!Gg(t)){const{renderer:s,...l}=t;a.current=s,av(l)}return S.useEffect(()=>{Gg(t)&&t().then(({renderer:s,...l})=>{av(l),a.current=s,r(!0)})},[]),y.jsx(n_.Provider,{value:{renderer:a.current,strict:n},children:e})}function Gg(e){return typeof e=="function"}const k4=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 Gf(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||k4.has(e)}let ON=e=>!Gf(e);function N4(e){typeof e=="function"&&(ON=t=>t.startsWith("on")?!Gf(t):e(t))}try{N4(require("@emotion/is-prop-valid").default)}catch{}function I4(e,t,n){const r={};for(const a in e)a==="values"&&typeof e.values=="object"||(ON(a)||n===!0&&Gf(a)||!t&&!Gf(a)||e.draggable&&a.startsWith("onDrag"))&&(r[a]=e[a]);return r}const Rh=S.createContext({});function kh(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function zc(e){return typeof e=="string"||Array.isArray(e)}const r_=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],i_=["initial",...r_];function Nh(e){return kh(e.animate)||i_.some(t=>zc(e[t]))}function DN(e){return!!(Nh(e)||e.variants)}function O4(e,t){if(Nh(e)){const{initial:n,animate:r}=e;return{initial:n===!1||zc(n)?n:void 0,animate:zc(r)?r:void 0}}return e.inherit!==!1?t:{}}function D4(e){const{initial:t,animate:n}=O4(e,S.useContext(Rh));return S.useMemo(()=>({initial:t,animate:n}),[xT(t),xT(n)])}function xT(e){return Array.isArray(e)?e.join(" "):e}const Bc={};function L4(e){for(const t in e)Bc[t]=e[t],Fb(t)&&(Bc[t].isCSSVariable=!0)}function LN(e,{layout:t,layoutId:n}){return Ks.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Bc[e]||e==="opacity")}const j4={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},P4=$s.length;function M4(e,t,n){let r="",a=!0;for(let s=0;s<P4;s++){const l=$s[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=wN(u,Jb[l]);if(!d){a=!1;const p=j4[l]||l;r+=`${p}(${f}) `}n&&(t[l]=f)}}return r=r.trim(),n?r=n(t,a?"":r):a&&(r="none"),r}function a_(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(Ks.has(d)){l=!0;continue}else if(Fb(d)){a[d]=f;continue}else{const p=wN(f,Jb[d]);d.startsWith("origin")?(u=!0,s[d]=p):r[d]=p}}if(t.transform||(l||n?r.transform=M4(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 o_=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function jN(e,t,n){for(const r in t)!bn(t[r])&&!LN(r,n)&&(e[r]=t[r])}function z4({transformTemplate:e},t){return S.useMemo(()=>{const n=o_();return a_(n,t,e),Object.assign({},n.vars,n.style)},[t])}function B4(e,t){const n=e.style||{},r={};return jN(r,n,e),Object.assign(r,z4(e,t)),r}function V4(e,t){const n={},r=B4(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 U4={offset:"stroke-dashoffset",array:"stroke-dasharray"},F4={offset:"strokeDashoffset",array:"strokeDasharray"};function H4(e,t,n=1,r=0,a=!0){e.pathLength=1;const s=a?U4:F4;e[s.offset]=Me.transform(-r);const l=Me.transform(t),u=Me.transform(n);e[s.array]=`${l} ${u}`}function PN(e,{attrX:t,attrY:n,attrScale:r,pathLength:a,pathSpacing:s=1,pathOffset:l=0,...u},d,f,p){if(a_(e,u,f),d){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:m,style:v}=e;m.transform&&(v.transform=m.transform,delete m.transform),(v.transform||m.transformOrigin)&&(v.transformOrigin=m.transformOrigin??"50% 50%",delete m.transformOrigin),v.transform&&(v.transformBox=p?.transformBox??"fill-box",delete m.transformBox),t!==void 0&&(m.x=t),n!==void 0&&(m.y=n),r!==void 0&&(m.scale=r),a!==void 0&&H4(m,a,s,l,!1)}const MN=()=>({...o_(),attrs:{}}),zN=e=>typeof e=="string"&&e.toLowerCase()==="svg";function G4(e,t,n,r){const a=S.useMemo(()=>{const s=MN();return PN(s,t,zN(r),e.transformTemplate,e.style),{...s.attrs,style:{...s.style}}},[t]);if(e.style){const s={};jN(s,e.style,e),a.style={...s,...a.style}}return a}const $4=["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 s_(e){return typeof e!="string"||e.includes("-")?!1:!!($4.indexOf(e)>-1||/[A-Z]/u.test(e))}function K4(e,t,n,{latestValues:r},a,s=!1){const u=(s_(e)?G4:V4)(t,r,a,e),d=I4(t,typeof e=="string",s),f=e!==S.Fragment?{...d,...u,ref:n}:{},{children:p}=t,m=S.useMemo(()=>bn(p)?p.get():p,[p]);return S.createElement(e,{...f,children:m})}function AT(e){const t=[{},{}];return e?.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function l_(e,t,n,r){if(typeof t=="function"){const[a,s]=AT(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]=AT(r);t=t(n!==void 0?n:e.custom,a,s)}return t}function xf(e){return bn(e)?e.get():e}function q4({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,a){return{latestValues:W4(n,r,a,e),renderState:t()}}function W4(e,t,n,r){const a={},s=r(e,{});for(const v in s)a[v]=xf(s[v]);let{initial:l,animate:u}=e;const d=Nh(e),f=DN(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 m=p?u:l;if(m&&typeof m!="boolean"&&!kh(m)){const v=Array.isArray(m)?m:[m];for(let _=0;_<v.length;_++){const x=l_(e,v[_]);if(x){const{transitionEnd:A,transition:w,...N}=x;for(const E in N){let T=N[E];if(Array.isArray(T)){const R=p?T.length-1:0;T=T[R]}T!==null&&(a[E]=T)}for(const E in A)a[E]=A[E]}}}return a}const BN=e=>(t,n)=>{const r=S.useContext(Rh),a=S.useContext(Lb),s=()=>q4(e,t,r,a);return n?s():R$(s)};function c_(e,t,n){const{style:r}=e,a={};for(const s in r)(bn(r[s])||t.style&&bn(t.style[s])||LN(s,e)||n?.getValue(s)?.liveStyle!==void 0)&&(a[s]=r[s]);return a}const Z4=BN({scrapeMotionValuesFromProps:c_,createRenderState:o_});function VN(e,t,n){const r=c_(e,t,n);for(const a in e)if(bn(e[a])||bn(t[a])){const s=$s.indexOf(a)!==-1?"attr"+a.charAt(0).toUpperCase()+a.substring(1):a;r[s]=e[a]}return r}const Y4=BN({scrapeMotionValuesFromProps:VN,createRenderState:MN}),X4=Symbol.for("motionComponentSymbol");function gs(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function Q4(e,t,n){return S.useCallback(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):gs(n)&&(n.current=r))},[t])}const u_=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),J4="framerAppearId",UN="data-"+u_(J4),FN=S.createContext({});function e6(e,t,n,r,a){const{visualElement:s}=S.useContext(Rh),l=S.useContext(n_),u=S.useContext(Lb),d=S.useContext(IN).reducedMotion,f=S.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,m=S.useContext(FN);p&&!p.projection&&a&&(p.type==="html"||p.type==="svg")&&t6(f.current,n,a,m);const v=S.useRef(!1);S.useInsertionEffect(()=>{p&&v.current&&p.update(n,u)});const _=n[UN],x=S.useRef(!!_&&!window.MotionHandoffIsComplete?.(_)&&window.MotionHasOptimisedAnimation?.(_));return k$(()=>{p&&(v.current=!0,window.MotionIsMounted=!0,p.updateFeatures(),p.scheduleRenderMicrotask(),x.current&&p.animationState&&p.animationState.animateChanges())}),S.useEffect(()=>{p&&(!x.current&&p.animationState&&p.animationState.animateChanges(),x.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(_)}),x.current=!1),p.enteringChildren=void 0)}),p}function t6(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:HN(e.parent)),e.projection.setOptions({layoutId:a,layout:s,alwaysMeasureLayout:!!l||u&&gs(u),visualElement:e,animationType:typeof s=="string"?s:"both",initialPromotionConfig:r,crossfade:p,layoutScroll:d,layoutRoot:f})}function HN(e){if(e)return e.options.allowProjection!==!1?e.projection:HN(e.parent)}function $g(e,{forwardMotionProps:t=!1}={},n,r){n&&av(n);const a=s_(e)?Y4:Z4;function s(u,d){let f;const p={...S.useContext(IN),...u,layoutId:n6(u)},{isStatic:m}=p,v=D4(u),_=a(u,m);if(!m&&Db){r6();const x=i6(p);f=x.MeasureLayout,v.visualElement=e6(e,_,p,r,x.ProjectionNode)}return y.jsxs(Rh.Provider,{value:v,children:[f&&v.visualElement?y.jsx(f,{visualElement:v.visualElement,...p}):null,K4(e,u,Q4(_,v.visualElement,d),_,m,t)]})}s.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const l=S.forwardRef(s);return l[X4]=e,l}function n6({layoutId:e}){const t=S.useContext(U1).id;return t&&e!==void 0?t+"-"+e:e}function r6(e,t){S.useContext(n_).strict}function i6(e){const{drag:t,layout:n}=Os;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t?.isEnabled(e)||n?.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}function a6(e,t){if(typeof Proxy>"u")return $g;const n=new Map,r=(s,l)=>$g(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,$g(l,void 0,e,t)),n.get(l))})}function GN({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function o6({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function s6(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 Kg(e){return e===void 0||e===1}function ov({scale:e,scaleX:t,scaleY:n}){return!Kg(e)||!Kg(t)||!Kg(n)}function Wa(e){return ov(e)||$N(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function $N(e){return TT(e.x)||TT(e.y)}function TT(e){return e&&e!=="0%"}function $f(e,t,n){const r=e-n,a=t*r;return n+a}function wT(e,t,n,r,a){return a!==void 0&&(e=$f(e,a,r)),$f(e,n,r)+t}function sv(e,t=0,n=1,r,a){e.min=wT(e.min,t,n,r,a),e.max=wT(e.max,t,n,r,a)}function KN(e,{x:t,y:n}){sv(e.x,t.translate,t.scale,t.originPoint),sv(e.y,n.translate,n.scale,n.originPoint)}const CT=.999999999999,RT=1.0000000000001;function l6(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&&vs(e,{x:-s.scroll.offset.x,y:-s.scroll.offset.y}),l&&(t.x*=l.x.scale,t.y*=l.y.scale,KN(e,l)),r&&Wa(s.latestValues)&&vs(e,s.latestValues))}t.x<RT&&t.x>CT&&(t.x=1),t.y<RT&&t.y>CT&&(t.y=1)}function ys(e,t){e.min=e.min+t,e.max=e.max+t}function kT(e,t,n,r,a=.5){const s=Tt(e.min,e.max,a);sv(e,t,n,s,r)}function vs(e,t){kT(e.x,t.x,t.scaleX,t.scale,t.originX),kT(e.y,t.y,t.scaleY,t.scale,t.originY)}function qN(e,t){return GN(s6(e.getBoundingClientRect(),t))}function c6(e,t,n){const r=qN(e,n),{scroll:a}=t;return a&&(ys(r.x,a.offset.x),ys(r.y,a.offset.y)),r}const NT=()=>({translate:0,scale:1,origin:0,originPoint:0}),bs=()=>({x:NT(),y:NT()}),IT=()=>({min:0,max:0}),Lt=()=>({x:IT(),y:IT()}),lv={current:null},WN={current:!1};function u6(){if(WN.current=!0,!!Db)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>lv.current=e.matches;e.addEventListener("change",t),t()}else lv.current=!1}const d6=new WeakMap;function f6(e,t,n){for(const r in t){const a=t[r],s=n[r];if(bn(a))e.addValue(r,a);else if(bn(s))e.addValue(r,Is(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,Is(l!==void 0?l:a,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const OT=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class h6{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=Xb,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 v=Ln.now();this.renderScheduledAt<v&&(this.renderScheduledAt=v,Et.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=Nh(n),this.isVariantNode=DN(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:p,...m}=this.scrapeMotionValuesFromProps(n,{},this);for(const v in m){const _=m[v];d[v]!==void 0&&bn(_)&&_.set(d[v])}}mount(t){this.current=t,d6.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)),WN.current||u6(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:lv.current,this.parent?.addChild(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),ca(this.notifyUpdate),ca(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=Ks.has(t);r&&this.onBindTransform&&this.onBindTransform();const a=n.on("change",l=>{this.latestValues[t]=l,this.props.onUpdate&&Et.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 Os){const n=Os[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):Lt()}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<OT.length;r++){const a=OT[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=f6(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=Is(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"&&(F1(r)||G1(r))?r=parseFloat(r):!w4(r)&&ua.test(n)&&(r=TN(t,n)),this.setBaseTarget(t,bn(r)?r.get():r)),bn(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=l_(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&&!bn(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 Bb),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}scheduleRenderMicrotask(){e_.render(this.render)}}class ZN extends h6{constructor(){super(...arguments),this.KeyframeResolver=h4}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;bn(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function YN(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 p6(e){return window.getComputedStyle(e)}class m6 extends ZN{constructor(){super(...arguments),this.type="html",this.renderInstance=YN}readValueFromInstance(t,n){if(Ks.has(n))return this.projection?.isProjecting?Qy(n):O3(t,n);{const r=p6(t),a=(Fb(n)?r.getPropertyValue(n):r[n])||0;return typeof a=="string"?a.trim():a}}measureInstanceViewportBox(t,{transformPagePoint:n}){return qN(t,n)}build(t,n,r){a_(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return c_(t,n,r)}}const XN=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 g6(e,t,n,r){YN(e,t,void 0,r);for(const a in t.attrs)e.setAttribute(XN.has(a)?a:u_(a),t.attrs[a])}class y6 extends ZN{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Lt}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Ks.has(n)){const r=AN(n);return r&&r.default||0}return n=XN.has(n)?n:u_(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return VN(t,n,r)}build(t,n,r){PN(t,n,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(t,n,r,a){g6(t,n,r,a)}mount(t){this.isSVGTag=zN(t.tagName),super.mount(t)}}const QN=(e,t)=>s_(e)?new y6(t):new m6(t,{allowProjection:e!==S.Fragment});function xs(e,t,n){const r=e.getProps();return l_(r,t,n!==void 0?n:r.custom,e)}const cv=e=>Array.isArray(e);function v6(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Is(n))}function b6(e){return cv(e)?e[e.length-1]||0:e}function _6(e,t){const n=xs(e,t);let{transitionEnd:r={},transition:a={},...s}=n||{};s={...s,...r};for(const l in s){const u=b6(s[l]);v6(e,l,u)}}function E6(e){return!!(bn(e)&&e.add)}function uv(e,t){const n=e.getValue("willChange");if(E6(n))return n.add(t);if(!n&&Ei.WillChange){const r=new Ei.WillChange("auto");e.addValue("willChange",r),r.add(t)}}function JN(e){return e.props[UN]}const S6=e=>e!==null;function x6(e,{repeat:t,repeatType:n="loop"},r){const a=e.filter(S6),s=t&&n!=="loop"&&t%2===1?0:a.length-1;return a[s]}const A6={type:"spring",stiffness:500,damping:25,restSpeed:10},T6=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),w6={type:"keyframes",duration:.8},C6={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},R6=(e,{keyframes:t})=>t.length>2?w6:Ks.has(e)?e.startsWith("scale")?T6(t[1]):A6:C6;function k6({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 d_=(e,t,n,r={},a,s)=>l=>{const u=Qb(r,e)||{},d=u.delay||r.delay||0;let{elapsed:f=0}=r;f=f-Gr(d);const p={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...u,delay:-f,onUpdate:v=>{t.set(v),u.onUpdate&&u.onUpdate(v)},onComplete:()=>{l(),u.onComplete&&u.onComplete()},name:e,motionValue:t,element:s?void 0:a};k6(u)||Object.assign(p,R6(e,p)),p.duration&&(p.duration=Gr(p.duration)),p.repeatDelay&&(p.repeatDelay=Gr(p.repeatDelay)),p.from!==void 0&&(p.keyframes[0]=p.from);let m=!1;if((p.type===!1||p.duration===0&&!p.repeatDelay)&&(rv(p),p.delay===0&&(m=!0)),(Ei.instantAnimations||Ei.skipAnimations)&&(m=!0,rv(p),p.delay=0),p.allowFlatten=!u.type&&!u.ease,m&&!s&&t.get()!==void 0){const v=x6(p.keyframes,u);if(v!==void 0){Et.update(()=>{p.onUpdate(v),p.onComplete()});return}}return u.isSync?new Yb(p):new t4(p)};function N6({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function eI(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 m=e.getValue(p,e.latestValues[p]??null),v=u[p];if(v===void 0||f&&N6(f,p))continue;const _={delay:n,...Qb(s||{},p)},x=m.get();if(x!==void 0&&!m.isAnimating&&!Array.isArray(v)&&v===x&&!_.velocity)continue;let A=!1;if(window.MotionHandoffAnimation){const N=JN(e);if(N){const E=window.MotionHandoffAnimation(N,p,Et);E!==null&&(_.startTime=E,A=!0)}}uv(e,p),m.start(d_(p,m,v,e.shouldReduceMotion&&EN.has(p)?{type:!1}:_,e,A));const w=m.animation;w&&d.push(w)}return l&&Promise.all(d).then(()=>{Et.update(()=>{l&&_6(e,l)})}),d}function tI(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 dv(e,t,n={}){const r=xs(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(eI(e,r,n)):()=>Promise.resolve(),l=e.variantChildren&&e.variantChildren.size?(d=0)=>{const{delayChildren:f=0,staggerChildren:p,staggerDirection:m}=a;return I6(e,t,d,f,p,m,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 I6(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(dv(d,t,{...l,delay:n+(typeof r=="function"?0:r)+tI(e.variantChildren,d,r,a,s)}).then(()=>d.notify("AnimationComplete",t)));return Promise.all(u)}function O6(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const a=t.map(s=>dv(e,s,n));r=Promise.all(a)}else if(typeof t=="string")r=dv(e,t,n);else{const a=typeof t=="function"?xs(e,t,n.custom):t;r=Promise.all(eI(e,a,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}function nI(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 D6=i_.length;function rI(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?rI(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<D6;n++){const r=i_[n],a=e.props[r];(zc(a)||a===!1)&&(t[r]=a)}return t}const L6=[...r_].reverse(),j6=r_.length;function P6(e){return t=>Promise.all(t.map(({animation:n,options:r})=>O6(e,n,r)))}function M6(e){let t=P6(e),n=DT(),r=!0;const a=d=>(f,p)=>{const m=xs(e,p,d==="exit"?e.presenceContext?.custom:void 0);if(m){const{transition:v,transitionEnd:_,...x}=m;f={...f,...x,..._}}return f};function s(d){t=d(e)}function l(d){const{props:f}=e,p=rI(e.parent)||{},m=[],v=new Set;let _={},x=1/0;for(let w=0;w<j6;w++){const N=L6[w],E=n[N],T=f[N]!==void 0?f[N]:p[N],R=zc(T),C=N===d?E.isActive:null;C===!1&&(x=w);let I=T===p[N]&&T!==f[N]&&R;if(I&&r&&e.manuallyAnimateOnMount&&(I=!1),E.protectedKeys={..._},!E.isActive&&C===null||!T&&!E.prevProp||kh(T)||typeof T=="boolean")continue;const D=z6(E.prevProp,T);let L=D||N===d&&E.isActive&&!I&&R||w>x&&R,U=!1;const K=Array.isArray(T)?T:[T];let W=K.reduce(a(N),{});C===!1&&(W={});const{prevResolvedValues:J={}}=E,le={...J,...W},Z=X=>{L=!0,v.has(X)&&(U=!0,v.delete(X)),E.needsAnimating[X]=!0;const G=e.getValue(X);G&&(G.liveStyle=!1)};for(const X in le){const G=W[X],me=J[X];if(_.hasOwnProperty(X))continue;let P=!1;cv(G)&&cv(me)?P=!nI(G,me):P=G!==me,P?G!=null?Z(X):v.add(X):G!==void 0&&v.has(X)?Z(X):E.protectedKeys[X]=!0}E.prevProp=T,E.prevResolvedValues=W,E.isActive&&(_={..._,...W}),r&&e.blockInitialAnimation&&(L=!1);const ae=I&&D;L&&(!ae||U)&&m.push(...K.map(X=>{const G={type:N};if(typeof X=="string"&&r&&!ae&&e.manuallyAnimateOnMount&&e.parent){const{parent:me}=e,P=xs(me,X);if(me.enteringChildren&&P){const{delayChildren:ne}=P.transition||{};G.delay=tI(me.enteringChildren,e,ne)}}return{animation:X,options:G}}))}if(v.size){const w={};if(typeof f.initial!="boolean"){const N=xs(e,Array.isArray(f.initial)?f.initial[0]:f.initial);N&&N.transition&&(w.transition=N.transition)}v.forEach(N=>{const E=e.getBaseTarget(N),T=e.getValue(N);T&&(T.liveStyle=!0),w[N]=E??null}),m.push({animation:w})}let A=!!m.length;return r&&(f.initial===!1||f.initial===f.animate)&&!e.manuallyAnimateOnMount&&(A=!1),r=!1,A?t(m):Promise.resolve()}function u(d,f){if(n[d].isActive===f)return Promise.resolve();e.variantChildren?.forEach(m=>m.animationState?.setActive(d,f)),n[d].isActive=f;const p=l(d);for(const m in n)n[m].protectedKeys={};return p}return{animateChanges:l,setActive:u,setAnimateFunction:s,getState:()=>n,reset:()=>{n=DT(),r=!0}}}function z6(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!nI(t,e):!1}function Ka(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function DT(){return{animate:Ka(!0),whileInView:Ka(),whileHover:Ka(),whileTap:Ka(),whileDrag:Ka(),whileFocus:Ka(),exit:Ka()}}class ga{constructor(t){this.isMounted=!1,this.node=t}update(){}}class B6 extends ga{constructor(t){super(t),t.animationState||(t.animationState=M6(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();kh(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 V6=0;class U6 extends ga{constructor(){super(...arguments),this.id=V6++}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 iI={animation:{Feature:B6},exit:{Feature:U6}};function Vc(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function fu(e){return{point:{x:e.pageX,y:e.pageY}}}const F6=e=>t=>t_(t)&&e(t,fu(t));function Sc(e,t,n,r){return Vc(e,t,F6(n),r)}const aI=1e-4,H6=1-aI,G6=1+aI,oI=.01,$6=0-oI,K6=0+oI;function xn(e){return e.max-e.min}function q6(e,t,n){return Math.abs(e-t)<=n}function LT(e,t,n,r=.5){e.origin=r,e.originPoint=Tt(t.min,t.max,e.origin),e.scale=xn(n)/xn(t),e.translate=Tt(n.min,n.max,e.origin)-e.originPoint,(e.scale>=H6&&e.scale<=G6||isNaN(e.scale))&&(e.scale=1),(e.translate>=$6&&e.translate<=K6||isNaN(e.translate))&&(e.translate=0)}function xc(e,t,n,r){LT(e.x,t.x,n.x,r?r.originX:void 0),LT(e.y,t.y,n.y,r?r.originY:void 0)}function jT(e,t,n){e.min=n.min+t.min,e.max=e.min+xn(t)}function W6(e,t,n){jT(e.x,t.x,n.x),jT(e.y,t.y,n.y)}function PT(e,t,n){e.min=t.min-n.min,e.max=e.min+xn(t)}function Ac(e,t,n){PT(e.x,t.x,n.x),PT(e.y,t.y,n.y)}function cr(e){return[e("x"),e("y")]}const sI=({current:e})=>e?e.ownerDocument.defaultView:null,MT=(e,t)=>Math.abs(e-t);function Z6(e,t){const n=MT(e.x,t.x),r=MT(e.y,t.y);return Math.sqrt(n**2+r**2)}class lI{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 v=Wg(this.lastMoveEventInfo,this.history),_=this.startEvent!==null,x=Z6(v.offset,{x:0,y:0})>=this.distanceThreshold;if(!_&&!x)return;const{point:A}=v,{timestamp:w}=cn;this.history.push({...A,timestamp:w});const{onStart:N,onMove:E}=this.handlers;_||(N&&N(this.lastMoveEvent,v),this.startEvent=this.lastMoveEvent),E&&E(this.lastMoveEvent,v)},this.handlePointerMove=(v,_)=>{this.lastMoveEvent=v,this.lastMoveEventInfo=qg(_,this.transformPagePoint),Et.update(this.updatePoint,!0)},this.handlePointerUp=(v,_)=>{this.end();const{onEnd:x,onSessionEnd:A,resumeAnimation:w}=this.handlers;if(this.dragSnapToOrigin&&w&&w(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const N=Wg(v.type==="pointercancel"?this.lastMoveEventInfo:qg(_,this.transformPagePoint),this.history);this.startEvent&&x&&x(v,N),A&&A(v,N)},!t_(t))return;this.dragSnapToOrigin=s,this.handlers=n,this.transformPagePoint=r,this.distanceThreshold=l,this.contextWindow=a||window;const u=fu(t),d=qg(u,this.transformPagePoint),{point:f}=d,{timestamp:p}=cn;this.history=[{...f,timestamp:p}];const{onSessionStart:m}=n;m&&m(t,Wg(d,this.history)),this.removeListeners=cu(Sc(this.contextWindow,"pointermove",this.handlePointerMove),Sc(this.contextWindow,"pointerup",this.handlePointerUp),Sc(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),ca(this.updatePoint)}}function qg(e,t){return t?{point:t(e.point)}:e}function zT(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Wg({point:e},t){return{point:e,delta:zT(e,cI(t)),offset:zT(e,Y6(t)),velocity:X6(t,.1)}}function Y6(e){return e[0]}function cI(e){return e[e.length-1]}function X6(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const a=cI(e);for(;n>=0&&(r=e[n],!(a.timestamp-r.timestamp>Gr(t)));)n--;if(!r)return{x:0,y:0};const s=fr(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 Q6(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?Tt(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?Tt(n,e,r.max):Math.min(e,n)),e}function BT(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function J6(e,{top:t,left:n,bottom:r,right:a}){return{x:BT(e.x,n,a),y:BT(e.y,t,r)}}function VT(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 e5(e,t){return{x:VT(e.x,t.x),y:VT(e.y,t.y)}}function t5(e,t){let n=.5;const r=xn(e),a=xn(t);return a>r?n=jc(t.min,t.max-r,e.min):r>a&&(n=jc(e.min,e.max-a,t.min)),_i(0,1,n)}function n5(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 fv=.35;function r5(e=fv){return e===!1?e=0:e===!0&&(e=fv),{x:UT(e,"left","right"),y:UT(e,"top","bottom")}}function UT(e,t,n){return{min:FT(e,t),max:FT(e,n)}}function FT(e,t){return typeof e=="number"?e:e[t]||0}const i5=new WeakMap;class a5{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=Lt(),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=m=>{const{dragSnapToOrigin:v}=this.getProps();v?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(fu(m).point)},l=(m,v)=>{const{drag:_,dragPropagation:x,onDragStart:A}=this.getProps();if(_&&!x&&(this.openDragLock&&this.openDragLock(),this.openDragLock=v4(_),!this.openDragLock))return;this.latestPointerEvent=m,this.latestPanInfo=v,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),cr(N=>{let E=this.getAxisMotionValue(N).get()||0;if($r.test(E)){const{projection:T}=this.visualElement;if(T&&T.layout){const R=T.layout.layoutBox[N];R&&(E=xn(R)*(parseFloat(E)/100))}}this.originPoint[N]=E}),A&&Et.postRender(()=>A(m,v)),uv(this.visualElement,"transform");const{animationState:w}=this.visualElement;w&&w.setActive("whileDrag",!0)},u=(m,v)=>{this.latestPointerEvent=m,this.latestPanInfo=v;const{dragPropagation:_,dragDirectionLock:x,onDirectionLock:A,onDrag:w}=this.getProps();if(!_&&!this.openDragLock)return;const{offset:N}=v;if(x&&this.currentDirection===null){this.currentDirection=o5(N),this.currentDirection!==null&&A&&A(this.currentDirection);return}this.updateAxis("x",v.point,N),this.updateAxis("y",v.point,N),this.visualElement.render(),w&&w(m,v)},d=(m,v)=>{this.latestPointerEvent=m,this.latestPanInfo=v,this.stop(m,v),this.latestPointerEvent=null,this.latestPanInfo=null},f=()=>cr(m=>this.getAnimationState(m)==="paused"&&this.getAxisMotionValue(m).animation?.play()),{dragSnapToOrigin:p}=this.getProps();this.panSession=new lI(t,{onSessionStart:s,onStart:l,onMove:u,onSessionEnd:d,resumeAnimation:f},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:p,distanceThreshold:r,contextWindow:sI(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&&Et.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||!Yd(t,a,this.currentDirection))return;const s=this.getAxisMotionValue(t);let l=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(l=Q6(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&&gs(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=J6(r.layoutBox,t):this.constraints=!1,this.elastic=r5(n),a!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&cr(s=>{this.constraints!==!1&&this.getAxisMotionValue(s)&&(this.constraints[s]=n5(r.layoutBox[s],this.constraints[s]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!gs(t))return!1;const r=t.current,{projection:a}=this.visualElement;if(!a||!a.layout)return!1;const s=c6(r,a.root,this.visualElement.getTransformPagePoint());let l=e5(a.layout.layoutBox,s);if(n){const u=n(o6(l));this.hasMutatedConstraints=!!u,u&&(l=GN(u))}return l}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:a,dragTransition:s,dragSnapToOrigin:l,onDragTransitionEnd:u}=this.getProps(),d=this.constraints||{},f=cr(p=>{if(!Yd(p,n,this.currentDirection))return;let m=d&&d[p]||{};l&&(m={min:0,max:0});const v=a?200:1e6,_=a?40:1e7,x={type:"inertia",velocity:r?t[p]:0,bounceStiffness:v,bounceDamping:_,timeConstant:750,restDelta:1,restSpeed:10,...s,...m};return this.startAxisValueAnimation(p,x)});return Promise.all(f).then(u)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return uv(this.visualElement,t),r.start(d_(t,r,0,n,this.visualElement,!1))}stopAnimation(){cr(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){cr(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){cr(n=>{const{drag:r}=this.getProps();if(!Yd(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]-Tt(l,u,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!gs(n)||!r||!this.constraints)return;this.stopAnimation();const a={x:0,y:0};cr(l=>{const u=this.getAxisMotionValue(l);if(u&&this.constraints!==!1){const d=u.get();a[l]=t5({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(),cr(l=>{if(!Yd(l,t,null))return;const u=this.getAxisMotionValue(l),{min:d,max:f}=this.constraints[l];u.set(Tt(d,f,a[l]))})}addListeners(){if(!this.visualElement.current)return;i5.set(this.visualElement,this);const t=this.visualElement.current,n=Sc(t,"pointerdown",d=>{const{drag:f,dragListener:p=!0}=this.getProps();f&&p&&this.start(d)}),r=()=>{const{dragConstraints:d}=this.getProps();gs(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()),Et.read(r);const l=Vc(window,"resize",()=>this.scalePositionWithinConstraints()),u=a.addEventListener("didUpdate",(({delta:d,hasLayoutChanged:f})=>{this.isDragging&&f&&(cr(p=>{const m=this.getAxisMotionValue(p);m&&(this.originPoint[p]+=d[p].translate,m.set(m.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=fv,dragMomentum:u=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:a,dragConstraints:s,dragElastic:l,dragMomentum:u}}}function Yd(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function o5(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class s5 extends ga{constructor(t){super(t),this.removeGroupControls=pr,this.removeListeners=pr,this.controls=new a5(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||pr}unmount(){this.removeGroupControls(),this.removeListeners()}}const HT=e=>(t,n)=>{e&&Et.postRender(()=>e(t,n))};class l5 extends ga{constructor(){super(...arguments),this.removePointerDownListener=pr}onPointerDown(t){this.session=new lI(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:sI(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:a}=this.node.getProps();return{onSessionStart:HT(t),onStart:HT(n),onMove:r,onEnd:(s,l)=>{delete this.session,a&&Et.postRender(()=>a(s,l))}}}mount(){this.removePointerDownListener=Sc(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 Af={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function GT(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const rc={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(Me.test(e))e=parseFloat(e);else return e;const n=GT(e,t.target.x),r=GT(e,t.target.y);return`${n}% ${r}%`}},c5={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,a=ua.parse(e);if(a.length>5)return r;const s=ua.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=Tt(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 Zg=!1;class u5 extends S.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:a}=this.props,{projection:s}=t;L4(d5),s&&(n.group&&n.group.add(s),r&&r.register&&a&&r.register(s),Zg&&s.root.didUpdate(),s.addEventListener("animationComplete",()=>{this.safeToRemove()}),s.setOptions({...s.options,onExitComplete:()=>this.safeToRemove()})),Af.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:a,isPresent:s}=this.props,{projection:l}=r;return l&&(l.isPresent=s,Zg=!0,a||t.layoutDependency!==n||n===void 0||t.isPresent!==s?l.willUpdate():this.safeToRemove(),t.isPresent!==s&&(s?l.promote():l.relegate()||Et.postRender(()=>{const u=l.getStack();(!u||!u.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),e_.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:a}=t;Zg=!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 uI(e){const[t,n]=C4(),r=S.useContext(U1);return y.jsx(u5,{...e,layoutGroup:r,switchLayoutGroup:S.useContext(FN),isPresent:t,safeToRemove:n})}const d5={borderRadius:{...rc,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:rc,borderTopRightRadius:rc,borderBottomLeftRadius:rc,borderBottomRightRadius:rc,boxShadow:c5};function f5(e,t,n){const r=bn(e)?e:Is(e);return r.start(d_("",r,t,n)),r.animation}const h5=(e,t)=>e.depth-t.depth;class p5{constructor(){this.children=[],this.isDirty=!1}add(t){jb(this.children,t),this.isDirty=!0}remove(t){Pb(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(h5),this.isDirty=!1,this.children.forEach(t)}}function m5(e,t){const n=Ln.now(),r=({timestamp:a})=>{const s=a-n;s>=t&&(ca(r),e(s-t))};return Et.setup(r,!0),()=>ca(r)}const dI=["TopLeft","TopRight","BottomLeft","BottomRight"],g5=dI.length,$T=e=>typeof e=="string"?parseFloat(e):e,KT=e=>typeof e=="number"||Me.test(e);function y5(e,t,n,r,a,s){a?(e.opacity=Tt(0,n.opacity??1,v5(r)),e.opacityExit=Tt(t.opacity??1,0,b5(r))):s&&(e.opacity=Tt(t.opacity??1,n.opacity??1,r));for(let l=0;l<g5;l++){const u=`border${dI[l]}Radius`;let d=qT(t,u),f=qT(n,u);if(d===void 0&&f===void 0)continue;d||(d=0),f||(f=0),d===0||f===0||KT(d)===KT(f)?(e[u]=Math.max(Tt($T(d),$T(f),r),0),($r.test(f)||$r.test(d))&&(e[u]+="%")):e[u]=f}(t.rotate||n.rotate)&&(e.rotate=Tt(t.rotate||0,n.rotate||0,r))}function qT(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const v5=fI(0,.5,Q1),b5=fI(.5,.95,pr);function fI(e,t,n){return r=>r<e?0:r>t?1:n(jc(e,t,r))}function WT(e,t){e.min=t.min,e.max=t.max}function sr(e,t){WT(e.x,t.x),WT(e.y,t.y)}function ZT(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function YT(e,t,n,r,a){return e-=t,e=$f(e,1/n,r),a!==void 0&&(e=$f(e,1/a,r)),e}function _5(e,t=0,n=1,r=.5,a,s=e,l=e){if($r.test(t)&&(t=parseFloat(t),t=Tt(l.min,l.max,t/100)-l.min),typeof t!="number")return;let u=Tt(s.min,s.max,r);e===s&&(u-=t),e.min=YT(e.min,t,n,u,a),e.max=YT(e.max,t,n,u,a)}function XT(e,t,[n,r,a],s,l){_5(e,t[n],t[r],t[a],t.scale,s,l)}const E5=["x","scaleX","originX"],S5=["y","scaleY","originY"];function QT(e,t,n,r){XT(e.x,t,E5,n?n.x:void 0,r?r.x:void 0),XT(e.y,t,S5,n?n.y:void 0,r?r.y:void 0)}function JT(e){return e.translate===0&&e.scale===1}function hI(e){return JT(e.x)&&JT(e.y)}function ew(e,t){return e.min===t.min&&e.max===t.max}function x5(e,t){return ew(e.x,t.x)&&ew(e.y,t.y)}function tw(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function pI(e,t){return tw(e.x,t.x)&&tw(e.y,t.y)}function nw(e){return xn(e.x)/xn(e.y)}function rw(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class A5{constructor(){this.members=[]}add(t){jb(this.members,t),t.scheduleRender()}remove(t){if(Pb(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 T5(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:m,rotateY:v,skewX:_,skewY:x}=n;f&&(r=`perspective(${f}px) ${r}`),p&&(r+=`rotate(${p}deg) `),m&&(r+=`rotateX(${m}deg) `),v&&(r+=`rotateY(${v}deg) `),_&&(r+=`skewX(${_}deg) `),x&&(r+=`skewY(${x}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 Yg=["","X","Y","Z"],w5=1e3;let C5=0;function Xg(e,t,n,r){const{latestValues:a}=t;a[e]&&(n[e]=a[e],t.setStaticValue(e,0),r&&(r[e]=0))}function mI(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=JN(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:a,layoutId:s}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",Et,!(a||s))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&mI(r)}function gI({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:a}){return class{constructor(l={},u=t?.()){this.id=C5++,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(N5),this.nodes.forEach(L5),this.nodes.forEach(j5),this.nodes.forEach(I5)},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 p5)}addEventListener(l,u){return this.eventHandlers.has(l)||this.eventHandlers.set(l,new Bb),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=NN(l)&&!A4(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,m=0;const v=()=>this.root.updateBlockedByResize=!1;Et.read(()=>{m=window.innerWidth}),e(l,()=>{const _=window.innerWidth;_!==m&&(m=_,this.root.updateBlockedByResize=!0,p&&p(),p=m5(v,250),Af.hasAnimatedSinceResize&&(Af.hasAnimatedSinceResize=!1,this.nodes.forEach(ow)))})}u&&this.root.registerSharedNode(u,this),this.options.animate!==!1&&f&&(u||d)&&this.addEventListener("didUpdate",({delta:p,hasLayoutChanged:m,hasRelativeLayoutChanged:v,layout:_})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const x=this.options.transition||f.getDefaultTransition()||V5,{onLayoutAnimationStart:A,onLayoutAnimationComplete:w}=f.getProps(),N=!this.targetLayout||!pI(this.targetLayout,_),E=!m&&v;if(this.options.layoutRoot||this.resumeFrom||E||m&&(N||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const T={...Qb(x,"layout"),onPlay:A,onComplete:w};(f.shouldReduceMotion||this.options.layoutRoot)&&(T.delay=0,T.type=!1),this.startAnimation(T),this.setAnimationOrigin(p,E)}else m||ow(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(),ca(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(P5),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&&mI(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let p=0;p<this.path.length;p++){const m=this.path[p];m.shouldResetTransform=!0,m.updateScroll("snapshot"),m.options.layoutRoot&&m.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(iw);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(aw);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(D5),this.nodes.forEach(R5),this.nodes.forEach(k5)):this.nodes.forEach(aw),this.clearAllSnapshots();const u=Ln.now();cn.delta=_i(0,1e3/60,u-cn.timestamp),cn.timestamp=u,cn.isProcessing=!0,zg.update.process(cn),zg.preRender.process(cn),zg.render.process(cn),cn.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,e_.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(O5),this.sharedNodes.forEach(M5)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Et.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Et.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!xn(this.snapshot.measuredBox.x)&&!xn(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=Lt(),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&&!hI(this.projectionDelta),d=this.getTransformTemplate(),f=d?d(this.latestValues,""):void 0,p=f!==this.prevTransformTemplateValue;l&&this.instance&&(u||Wa(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)),U5(d),{animationId:this.root.animationId,measuredBox:u,layoutBox:d,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:l}=this.options;if(!l)return Lt();const u=l.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(F5))){const{scroll:f}=this.root;f&&(ys(u.x,f.offset.x),ys(u.y,f.offset.y))}return u}removeElementScroll(l){const u=Lt();if(sr(u,l),this.scroll?.wasRoot)return u;for(let d=0;d<this.path.length;d++){const f=this.path[d],{scroll:p,options:m}=f;f!==this.root&&p&&m.layoutScroll&&(p.wasRoot&&sr(u,l),ys(u.x,p.offset.x),ys(u.y,p.offset.y))}return u}applyTransform(l,u=!1){const d=Lt();sr(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&&vs(d,{x:-p.scroll.offset.x,y:-p.scroll.offset.y}),Wa(p.latestValues)&&vs(d,p.latestValues)}return Wa(this.latestValues)&&vs(d,this.latestValues),d}removeTransform(l){const u=Lt();sr(u,l);for(let d=0;d<this.path.length;d++){const f=this.path[d];if(!f.instance||!Wa(f.latestValues))continue;ov(f.latestValues)&&f.updateSnapshot();const p=Lt(),m=f.measurePageBox();sr(p,m),QT(u,f.latestValues,f.snapshot?f.snapshot.layoutBox:void 0,p)}return Wa(this.latestValues)&&QT(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!==cn.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:m}=this.options;if(!(!this.layout||!(p||m))){if(this.resolvedRelativeTargetAt=cn.timestamp,!this.targetDelta&&!this.relativeTarget){const v=this.getClosestProjectingParent();v&&v.layout&&this.animationProgress!==1?(this.relativeParent=v,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Lt(),this.relativeTargetOrigin=Lt(),Ac(this.relativeTargetOrigin,this.layout.layoutBox,v.layout.layoutBox),sr(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=Lt(),this.targetWithTransforms=Lt()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),W6(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):sr(this.target,this.layout.layoutBox),KN(this.target,this.targetDelta)):sr(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget)){this.attemptToResolveRelativeTarget=!1;const v=this.getClosestProjectingParent();v&&!!v.resumingFrom==!!this.resumingFrom&&!v.options.layoutScroll&&v.target&&this.animationProgress!==1?(this.relativeParent=v,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Lt(),this.relativeTargetOrigin=Lt(),Ac(this.relativeTargetOrigin,this.target,v.target),sr(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||ov(this.parent.latestValues)||$N(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===cn.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;sr(this.layoutCorrected,this.layout.layoutBox);const m=this.treeScale.x,v=this.treeScale.y;l6(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=Lt());const{target:_}=l;if(!_){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(ZT(this.prevProjectionDelta.x,this.projectionDelta.x),ZT(this.prevProjectionDelta.y,this.projectionDelta.y)),xc(this.projectionDelta,this.layoutCorrected,_,this.latestValues),(this.treeScale.x!==m||this.treeScale.y!==v||!rw(this.projectionDelta.x,this.prevProjectionDelta.x)||!rw(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=bs(),this.projectionDelta=bs(),this.projectionDeltaWithTransform=bs()}setAnimationOrigin(l,u=!1){const d=this.snapshot,f=d?d.latestValues:{},p={...this.latestValues},m=bs();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!u;const v=Lt(),_=d?d.source:void 0,x=this.layout?this.layout.source:void 0,A=_!==x,w=this.getStack(),N=!w||w.members.length<=1,E=!!(A&&!N&&this.options.crossfade===!0&&!this.path.some(B5));this.animationProgress=0;let T;this.mixTargetDelta=R=>{const C=R/1e3;sw(m.x,l.x,C),sw(m.y,l.y,C),this.setTargetDelta(m),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Ac(v,this.layout.layoutBox,this.relativeParent.layout.layoutBox),z5(this.relativeTarget,this.relativeTargetOrigin,v,C),T&&x5(this.relativeTarget,T)&&(this.isProjectionDirty=!1),T||(T=Lt()),sr(T,this.relativeTarget)),A&&(this.animationValues=p,y5(p,f,this.latestValues,C,E,N)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=C},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(l){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(ca(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Et.update(()=>{Af.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=Is(0)),this.currentAnimation=f5(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(w5),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&&yI(this.options.animationType,this.layout.layoutBox,f.layoutBox)){d=this.target||Lt();const m=xn(this.layout.layoutBox.x);d.x.min=l.target.x.min,d.x.max=d.x.min+m;const v=xn(this.layout.layoutBox.y);d.y.min=l.target.y.min,d.y.max=d.y.min+v}sr(u,d),vs(u,p),xc(this.projectionDeltaWithTransform,this.layoutCorrected,u,p)}}registerSharedNode(l,u){this.sharedNodes.has(l)||this.sharedNodes.set(l,new A5),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&&Xg("z",l,f,this.animationValues);for(let p=0;p<Yg.length;p++)Xg(`rotate${Yg[p]}`,l,f,this.animationValues),Xg(`skew${Yg[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=xf(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=xf(u?.pointerEvents)||""),this.hasProjected&&!Wa(this.latestValues)&&(l.transform=d?d({},""):"none",this.hasProjected=!1);return}l.visibility="";const p=f.animationValues||f.latestValues;this.applyTransformsToTarget();let m=T5(this.projectionDeltaWithTransform,this.treeScale,p);d&&(m=d(p,m)),l.transform=m;const{x:v,y:_}=this.projectionDelta;l.transformOrigin=`${v.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 x in Bc){if(p[x]===void 0)continue;const{correct:A,applyTo:w,isCSSVariable:N}=Bc[x],E=m==="none"?p[x]:A(p[x],f);if(w){const T=w.length;for(let R=0;R<T;R++)l[w[R]]=E}else N?this.options.visualElement.renderState.vars[x]=E:l[x]=E}this.options.layoutId&&(l.pointerEvents=f===this?xf(u?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(l=>l.currentAnimation?.stop()),this.root.nodes.forEach(iw),this.root.sharedNodes.clear()}}}function R5(e){e.updateLayout()}function k5(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"?cr(p=>{const m=s?t.measuredBox[p]:t.layoutBox[p],v=xn(m);m.min=n[p].min,m.max=m.min+v}):yI(a,t.layoutBox,n)&&cr(p=>{const m=s?t.measuredBox[p]:t.layoutBox[p],v=xn(n[p]);m.max=m.min+v,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[p].max=e.relativeTarget[p].min+v)});const l=bs();xc(l,n,t.layoutBox);const u=bs();s?xc(u,e.applyTransform(r,!0),t.measuredBox):xc(u,n,t.layoutBox);const d=!hI(l);let f=!1;if(!e.resumeFrom){const p=e.getClosestProjectingParent();if(p&&!p.resumeFrom){const{snapshot:m,layout:v}=p;if(m&&v){const _=Lt();Ac(_,t.layoutBox,m.layoutBox);const x=Lt();Ac(x,n,v.layoutBox),pI(_,x)||(f=!0),p.options.layoutRoot&&(e.relativeTarget=x,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 N5(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 I5(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function O5(e){e.clearSnapshot()}function iw(e){e.clearMeasurements()}function aw(e){e.isLayoutDirty=!1}function D5(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function ow(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function L5(e){e.resolveTargetDelta()}function j5(e){e.calcProjection()}function P5(e){e.resetSkewAndRotation()}function M5(e){e.removeLeadSnapshot()}function sw(e,t,n){e.translate=Tt(t.translate,0,n),e.scale=Tt(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function lw(e,t,n,r){e.min=Tt(t.min,n.min,r),e.max=Tt(t.max,n.max,r)}function z5(e,t,n,r){lw(e.x,t.x,n.x,r),lw(e.y,t.y,n.y,r)}function B5(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const V5={duration:.45,ease:[.4,0,.1,1]},cw=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),uw=cw("applewebkit/")&&!cw("chrome/")?Math.round:pr;function dw(e){e.min=uw(e.min),e.max=uw(e.max)}function U5(e){dw(e.x),dw(e.y)}function yI(e,t,n){return e==="position"||e==="preserve-aspect"&&!q6(nw(t),nw(n),.2)}function F5(e){return e!==e.root&&e.scroll?.wasRoot}const H5=gI({attachResizeListener:(e,t)=>Vc(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Qg={current:void 0},vI=gI({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Qg.current){const e=new H5({});e.mount(window),e.setOptions({layoutScroll:!0}),Qg.current=e}return Qg.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),G5={pan:{Feature:l5},drag:{Feature:s5,ProjectionNode:vI,MeasureLayout:uI}};function fw(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&&Et.postRender(()=>s(t,fu(t)))}class $5 extends ga{mount(){const{current:t}=this.node;t&&(this.unmount=b4(t,(n,r)=>(fw(this.node,r,"Start"),a=>fw(this.node,a,"End"))))}unmount(){}}class K5 extends ga{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=cu(Vc(this.node.current,"focus",()=>this.onFocus()),Vc(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function hw(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&&Et.postRender(()=>s(t,fu(t)))}class q5 extends ga{mount(){const{current:t}=this.node;t&&(this.unmount=x4(t,(n,r)=>(hw(this.node,r,"Start"),(a,{success:s})=>hw(this.node,a,s?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const hv=new WeakMap,Jg=new WeakMap,W5=e=>{const t=hv.get(e.target);t&&t(e)},Z5=e=>{e.forEach(W5)};function Y5({root:e,...t}){const n=e||document;Jg.has(n)||Jg.set(n,{});const r=Jg.get(n),a=JSON.stringify(t);return r[a]||(r[a]=new IntersectionObserver(Z5,{root:e,...t})),r[a]}function X5(e,t,n){const r=Y5(t);return hv.set(e,n),r.observe(e),()=>{hv.delete(e),r.unobserve(e)}}const Q5={some:0,all:1};class J5 extends ga{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:Q5[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:m}=this.node.getProps(),v=f?p:m;v&&v(d)};return X5(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(eK(t,n))&&this.startObserver()}unmount(){}}function eK({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const bI={inView:{Feature:J5},tap:{Feature:q5},focus:{Feature:K5},hover:{Feature:$5}},tK={layout:{ProjectionNode:vI,MeasureLayout:uI}},nK={...iI,...bI,...G5,...tK},_I=a6(nK,QN),rK={renderer:QN,...iI,...bI};var iK={};const Tf=Object.create(null),ic=e=>iK||globalThis.Deno?.env.toObject()||globalThis.__env__||(e?Tf:globalThis),qa=new Proxy(Tf,{get(e,t){return ic()[t]??Tf[t]},has(e,t){const n=ic();return t in n||t in Tf},set(e,t,n){const r=ic(!0);return r[t]=n,!0},deleteProperty(e,t){if(!t)return!1;const n=ic(!0);return delete n[t],!0},ownKeys(){const e=ic(!0);return Object.keys(e)}});var qs=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(){}},aK={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},oK=class{#e=aK;#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)}},Ja=new oK;function sK(e){setTimeout(e,0)}var so=typeof window>"u"||"Deno"in globalThis;function En(){}function lK(e,t){return typeof e=="function"?e(t):e}function pv(e){return typeof e=="number"&&e>=0&&e!==1/0}function EI(e,t){return Math.max(e+(t||0)-Date.now(),0)}function ia(e,t){return typeof e=="function"?e(t):e}function ur(e,t){return typeof e=="function"?e(t):e}function pw(e,t){const{type:n="all",exact:r,fetchStatus:a,predicate:s,queryKey:l,stale:u}=e;if(l){if(r){if(t.queryHash!==f_(l,t.options))return!1}else if(!Uc(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 mw(e,t){const{exact:n,status:r,predicate:a,mutationKey:s}=e;if(s){if(!t.options.mutationKey)return!1;if(n){if(lo(t.options.mutationKey)!==lo(s))return!1}else if(!Uc(t.options.mutationKey,s))return!1}return!(r&&t.state.status!==r||a&&!a(t))}function f_(e,t){return(t?.queryKeyHashFn||lo)(e)}function lo(e){return JSON.stringify(e,(t,n)=>mv(n)?Object.keys(n).sort().reduce((r,a)=>(r[a]=n[a],r),{}):n)}function Uc(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>Uc(e[n],t[n])):!1}var cK=Object.prototype.hasOwnProperty;function SI(e,t){if(e===t)return e;const n=gw(e)&&gw(t);if(!n&&!(mv(e)&&mv(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],m=e[p],v=t[p];if(m===v){u[p]=m,(n?f<a:cK.call(e,p))&&d++;continue}if(m===null||v===null||typeof m!="object"||typeof v!="object"){u[p]=v;continue}const _=SI(m,v);u[p]=_,_===m&&d++}return a===l&&d===a?e:u}function Kf(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 gw(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function mv(e){if(!yw(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!yw(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function yw(e){return Object.prototype.toString.call(e)==="[object Object]"}function uK(e){return new Promise(t=>{Ja.setTimeout(t,e)})}function gv(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?SI(e,t):t}function dK(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function fK(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var h_=Symbol();function xI(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===h_?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function AI(e,t){return typeof e=="function"?e(...t):!!e}var hK=class extends qs{#e;#t;#n;constructor(){super(),this.#n=e=>{if(!so&&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"}},p_=new hK;function yv(){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 pK=sK;function mK(){let e=[],t=0,n=u=>{u()},r=u=>{u()},a=pK;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 Zt=mK(),gK=class extends qs{#e=!0;#t;#n;constructor(){super(),this.#n=e=>{if(!so&&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}},qf=new gK;function yK(e){return Math.min(1e3*2**e,3e4)}function TI(e){return(e??"online")==="online"?qf.isOnline():!0}var vv=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function wI(e){let t=!1,n=0,r;const a=yv(),s=()=>a.status!=="pending",l=A=>{if(!s()){const w=new vv(A);v(w),e.onCancel?.(w)}},u=()=>{t=!0},d=()=>{t=!1},f=()=>p_.isFocused()&&(e.networkMode==="always"||qf.isOnline())&&e.canRun(),p=()=>TI(e.networkMode)&&e.canRun(),m=A=>{s()||(r?.(),a.resolve(A))},v=A=>{s()||(r?.(),a.reject(A))},_=()=>new Promise(A=>{r=w=>{(s()||f())&&A(w)},e.onPause?.()}).then(()=>{r=void 0,s()||e.onContinue?.()}),x=()=>{if(s())return;let A;const w=n===0?e.initialPromise:void 0;try{A=w??e.fn()}catch(N){A=Promise.reject(N)}Promise.resolve(A).then(m).catch(N=>{if(s())return;const E=e.retry??(so?0:3),T=e.retryDelay??yK,R=typeof T=="function"?T(n,N):T,C=E===!0||typeof E=="number"&&n<E||typeof E=="function"&&E(n,N);if(t||!C){v(N);return}n++,e.onFail?.(n,N),uK(R).then(()=>f()?void 0:_()).then(()=>{t?v(N):x()})})};return{promise:a,status:()=>a.status,cancel:l,continue:()=>(r?.(),a),cancelRetry:u,continueRetry:d,canStart:p,start:()=>(p()?x():_().then(x),a)}}var CI=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),pv(this.gcTime)&&(this.#e=Ja.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(so?1/0:300*1e3))}clearGcTimeout(){this.#e&&(Ja.clearTimeout(this.#e),this.#e=void 0)}},vK=class extends CI{#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=vw(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=vw(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=gv(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(En).catch(En):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#e)}isActive(){return this.observers.some(e=>ur(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===h_||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>ia(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:!EI(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=xI(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=wI({initialPromise:t?.initialPromise,fn:l.fetchFn,onCancel:u=>{u instanceof vv&&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 vv){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,...RI(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),Zt.batch(()=>{this.observers.forEach(n=>{n.onQueryUpdate()}),this.#n.notify({query:this,type:"updated",action:e})})}};function RI(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:TI(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function vw(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 bK=class extends qs{constructor(e,t){super(),this.options=t,this.#e=e,this.#a=null,this.#s=yv(),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),bw(this.#t,this.options)?this.#d():this.updateResult(),this.#b())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return bv(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return bv(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 ur(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&&!Kf(this.options,t)&&this.#e.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#t,observer:this});const r=this.hasListeners();r&&_w(this.#t,n,this.options,t)&&this.#d(),this.updateResult(),r&&(this.#t!==n||ur(this.options.enabled,this.#t)!==ur(t.enabled,this.#t)||ia(this.options.staleTime,this.#t)!==ia(t.staleTime,this.#t))&&this.#g();const a=this.#y();r&&(this.#t!==n||ur(this.options.enabled,this.#t)!==ur(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 EK(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(En)),t}#g(){this.#_();const e=ia(this.options.staleTime,this.#t);if(so||this.#i.isStale||!pv(e))return;const n=EI(this.#i.dataUpdatedAt,e)+1;this.#c=Ja.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,!(so||ur(this.options.enabled,this.#t)===!1||!pv(this.#l)||this.#l===0)&&(this.#u=Ja.setInterval(()=>{(this.options.refetchIntervalInBackground||p_.isFocused())&&this.#d()},this.#l))}#b(){this.#g(),this.#v(this.#y())}#_(){this.#c&&(Ja.clearTimeout(this.#c),this.#c=void 0)}#E(){this.#u&&(Ja.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},m=!1,v;if(t._optimisticResults){const L=this.hasListeners(),U=!L&&bw(e,t),K=L&&_w(e,n,t,r);(U||K)&&(p={...p,...RI(f.data,e.options)}),t._optimisticResults==="isRestoring"&&(p.fetchStatus="idle")}let{error:_,errorUpdatedAt:x,status:A}=p;v=p.data;let w=!1;if(t.placeholderData!==void 0&&v===void 0&&A==="pending"){let L;a?.isPlaceholderData&&t.placeholderData===l?.placeholderData?(L=a.data,w=!0):L=typeof t.placeholderData=="function"?t.placeholderData(this.#h?.state.data,this.#h):t.placeholderData,L!==void 0&&(A="success",v=gv(a?.data,L,t),m=!0)}if(t.select&&v!==void 0&&!w)if(a&&v===s?.data&&t.select===this.#m)v=this.#f;else try{this.#m=t.select,v=t.select(v),v=gv(a?.data,v,t),this.#f=v,this.#a=null}catch(L){this.#a=L}this.#a&&(_=this.#a,v=this.#f,x=Date.now(),A="error");const N=p.fetchStatus==="fetching",E=A==="pending",T=A==="error",R=E&&N,C=v!==void 0,D={status:A,fetchStatus:p.fetchStatus,isPending:E,isSuccess:A==="success",isError:T,isInitialLoading:R,isLoading:R,data:v,dataUpdatedAt:p.dataUpdatedAt,error:_,errorUpdatedAt:x,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:N,isRefetching:N&&!E,isLoadingError:T&&!C,isPaused:p.fetchStatus==="paused",isPlaceholderData:m,isRefetchError:T&&C,isStale:m_(e,t),refetch:this.refetch,promise:this.#s,isEnabled:ur(t.enabled,e)!==!1};if(this.options.experimental_prefetchInRender){const L=W=>{D.status==="error"?W.reject(D.error):D.data!==void 0&&W.resolve(D.data)},U=()=>{const W=this.#s=D.promise=yv();L(W)},K=this.#s;switch(K.status){case"pending":e.queryHash===n.queryHash&&L(K);break;case"fulfilled":(D.status==="error"||D.data!==K.value)&&U();break;case"rejected":(D.status!=="error"||D.error!==K.reason)&&U();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),Kf(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){Zt.batch(()=>{e.listeners&&this.listeners.forEach(t=>{t(this.#i)}),this.#e.getQueryCache().notify({query:this.#t,type:"observerResultsUpdated"})})}};function _K(e,t){return ur(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function bw(e,t){return _K(e,t)||e.state.data!==void 0&&bv(e,t,t.refetchOnMount)}function bv(e,t,n){if(ur(t.enabled,e)!==!1&&ia(t.staleTime,e)!=="static"){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&m_(e,t)}return!1}function _w(e,t,n,r){return(e!==t||ur(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&m_(e,n)}function m_(e,t){return ur(t.enabled,e)!==!1&&e.isStaleByTime(ia(t.staleTime,e))}function EK(e,t){return!Kf(e.getCurrentResult(),t)}function Ew(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 m=x=>{Object.defineProperty(x,"signal",{enumerable:!0,get:()=>(t.signal.aborted?p=!0:t.signal.addEventListener("abort",()=>{p=!0}),t.signal)})},v=xI(t.options,t.fetchOptions),_=async(x,A,w)=>{if(p)return Promise.reject();if(A==null&&x.pages.length)return Promise.resolve(x);const E=(()=>{const I={client:t.client,queryKey:t.queryKey,pageParam:A,direction:w?"backward":"forward",meta:t.options.meta};return m(I),I})(),T=await v(E),{maxPages:R}=t.options,C=w?fK:dK;return{pages:C(x.pages,T,R),pageParams:C(x.pageParams,A,R)}};if(a&&s.length){const x=a==="backward",A=x?SK:Sw,w={pages:s,pageParams:l},N=A(r,w);u=await _(w,N,x)}else{const x=e??s.length;do{const A=d===0?l[0]??r.initialPageParam:Sw(r,u);if(d>0&&A==null)break;u=await _(u,A),d++}while(d<x)}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 Sw(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 SK(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}var xK=class extends CI{#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||kI(),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=wI({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),Zt.batch(()=>{this.#t.forEach(n=>{n.onMutationUpdate(e)}),this.#n.notify({mutation:this,type:"updated",action:e})})}};function kI(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var NI=class extends qs{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 xK({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=Xd(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=Xd(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=Xd(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=Xd(e);return typeof t=="string"?this.#t.get(t)?.find(r=>r!==e&&r.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){Zt.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=>mw(t,n))}findAll(e={}){return this.getAll().filter(t=>mw(e,t))}notify(e){Zt.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){const e=this.getAll().filter(t=>t.state.isPaused);return Zt.batch(()=>Promise.all(e.map(t=>t.continue().catch(En))))}};function Xd(e){return e.options.scope?.id}var AK=class extends qs{#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),Kf(this.options,n)||this.#e.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#n,observer:this}),n?.mutationKey&&this.options.mutationKey&&lo(n.mutationKey)!==lo(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??kI();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){Zt.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)})})}},TK=class extends qs{constructor(e={}){super(),this.config=e,this.#e=new Map}#e;build(e,t,n){const r=t.queryKey,a=t.queryHash??f_(r,t);let s=this.get(a);return s||(s=new vK({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(){Zt.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=>pw(t,n))}findAll(e={}){const t=this.getAll();return Object.keys(e).length>0?t.filter(n=>pw(e,n)):t}notify(e){Zt.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){Zt.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){Zt.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},wK=class{#e;#t;#n;#i;#r;#o;#s;#a;constructor(e={}){this.#e=e.queryCache||new TK,this.#t=e.mutationCache||new NI,this.#n=e.defaultOptions||{},this.#i=new Map,this.#r=new Map,this.#o=0}mount(){this.#o++,this.#o===1&&(this.#s=p_.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#a=qf.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(ia(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=lK(t,s);if(l!==void 0)return this.#e.build(this,r).setData(l,{...n,manual:!0})}setQueriesData(e,t,n){return Zt.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;Zt.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=this.#e;return Zt.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=Zt.batch(()=>this.#e.findAll(e).map(a=>a.cancel(n)));return Promise.all(r).then(En).catch(En)}invalidateQueries(e,t={}){return Zt.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=Zt.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(En)),a.state.fetchStatus==="paused"?Promise.resolve():s}));return Promise.all(r).then(En)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=this.#e.build(this,t);return n.isStaleByTime(ia(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(En).catch(En)}fetchInfiniteQuery(e){return e.behavior=Ew(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(En).catch(En)}ensureInfiniteQueryData(e){return e.behavior=Ew(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return qf.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(lo(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...this.#i.values()],n={};return t.forEach(r=>{Uc(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){this.#r.set(lo(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...this.#r.values()],n={};return t.forEach(r=>{Uc(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=f_(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===h_&&(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()}},II=S.createContext(void 0),g_=e=>{const t=S.useContext(II);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},CK=({client:e,children:t})=>(S.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),y.jsx(II.Provider,{value:e,children:t})),OI=S.createContext(!1),RK=()=>S.useContext(OI);OI.Provider;function kK(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var NK=S.createContext(kK()),IK=()=>S.useContext(NK),OK=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},DK=e=>{S.useEffect(()=>{e.clearReset()},[e])},LK=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:a})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(a&&e.data===void 0||AI(n,[e.error,r])),jK=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))}},PK=(e,t)=>e.isLoading&&e.isFetching&&!t,MK=(e,t)=>e?.suspense&&t.isPending,xw=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function zK(e,t,n){const r=RK(),a=IK(),s=g_(),l=s.defaultQueryOptions(e);s.getDefaultOptions().queries?._experimental_beforeQuery?.(l),l._optimisticResults=r?"isRestoring":"optimistic",jK(l),OK(l,a),DK(a);const u=!s.getQueryCache().get(l.queryHash),[d]=S.useState(()=>new t(s,l)),f=d.getOptimisticResult(l),p=!r&&e.subscribed!==!1;if(S.useSyncExternalStore(S.useCallback(m=>{const v=p?d.subscribe(Zt.batchCalls(m)):En;return d.updateResult(),v},[d,p]),()=>d.getCurrentResult(),()=>d.getCurrentResult()),S.useEffect(()=>{d.setOptions(l)},[l,d]),MK(l,f))throw xw(l,d,a);if(LK({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&&!so&&PK(f,r)&&(u?xw(l,d,a):s.getQueryCache().get(l.queryHash)?.promise)?.catch(En).finally(()=>{d.updateResult()}),l.notifyOnChangeProps?f:d.trackResult(f)}function Ih(e,t){return zK(e,bK)}function yo(e,t){const n=g_(),[r]=S.useState(()=>new AK(n,e));S.useEffect(()=>{r.setOptions(e)},[r,e]);const a=S.useSyncExternalStore(S.useCallback(l=>r.subscribe(Zt.batchCalls(l)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),s=S.useCallback((l,u)=>{r.mutate(l,u).catch(En)},[r]);if(a.error&&AI(r.options.throwOnError,[a.error]))throw a.error;return{...a,mutate:s,mutateAsync:a.mutate}}const DI=e=>{const[t,n]=S.useState(e);return S.useEffect(()=>{n(e??window.document.body)},[e]),t},BK={},Aw=e=>{let t;const n=new Set,r=(p,m)=>{const v=typeof p=="function"?p(t):p;if(!Object.is(v,t)){const _=t;t=m??(typeof v!="object"||v===null)?v:Object.assign({},t,v),n.forEach(x=>x(t,_))}},a=()=>t,d={setState:r,getState:a,getInitialState:()=>f,subscribe:p=>(n.add(p),()=>n.delete(p)),destroy:()=>{(BK?"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},VK=e=>e?Aw(e):Aw;var ey={exports:{}},ty={},ny={exports:{}},ry={};/**
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 Tw;function UK(){if(Tw)return ry;Tw=1;var e=Qc();function t(m,v){return m===v&&(m!==0||1/m===1/v)||m!==m&&v!==v}var n=typeof Object.is=="function"?Object.is:t,r=e.useState,a=e.useEffect,s=e.useLayoutEffect,l=e.useDebugValue;function u(m,v){var _=v(),x=r({inst:{value:_,getSnapshot:v}}),A=x[0].inst,w=x[1];return s(function(){A.value=_,A.getSnapshot=v,d(A)&&w({inst:A})},[m,_,v]),a(function(){return d(A)&&w({inst:A}),m(function(){d(A)&&w({inst:A})})},[m]),l(_),_}function d(m){var v=m.getSnapshot;m=m.value;try{var _=v();return!n(m,_)}catch{return!0}}function f(m,v){return v()}var p=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?f:u;return ry.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:p,ry}var ww;function FK(){return ww||(ww=1,ny.exports=UK()),ny.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 Cw;function HK(){if(Cw)return ty;Cw=1;var e=Qc(),t=FK();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 ty.useSyncExternalStoreWithSelector=function(f,p,m,v,_){var x=s(null);if(x.current===null){var A={hasValue:!1,value:null};x.current=A}else A=x.current;x=u(function(){function N(I){if(!E){if(E=!0,T=I,I=v(I),_!==void 0&&A.hasValue){var D=A.value;if(_(D,I))return R=D}return R=I}if(D=R,r(T,I))return D;var L=v(I);return _!==void 0&&_(D,L)?(T=I,D):(T=I,R=L)}var E=!1,T,R,C=m===void 0?null:m;return[function(){return N(p())},C===null?void 0:function(){return N(C())}]},[p,m,v,_]);var w=a(f,x[0],x[1]);return l(function(){A.hasValue=!0,A.value=w},[w]),d(w),w},ty}var Rw;function GK(){return Rw||(Rw=1,ey.exports=HK()),ey.exports}var $K=GK();const KK=db($K),LI={},{useDebugValue:qK}=Oe,{useSyncExternalStoreWithSelector:WK}=KK;let kw=!1;const ZK=e=>e;function YK(e,t=ZK,n){(LI?"production":void 0)!=="production"&&n&&!kw&&(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"),kw=!0);const r=WK(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,n);return qK(r),r}const Nw=e=>{(LI?"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"?VK(e):e,n=(r,a)=>YK(t,r,a);return Object.assign(n,t),n},jI=e=>e?Nw(e):Nw,XK=jI((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 QK(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:JK}=Oe;function PI(e){const t=JK();return n=>{const r=e(n);return QK(t.current,r)?t.current:t.current=r}}const MI=e=>{const{disableScroll:t=!1,element:n,key:r="unnamed_blocker"}=e??{},{isElementScrollBlocked:a,addBlockage:s,removeBlockage:l}=XK(PI(f=>({isElementScrollBlocked:f.isElementScrollBlocked,addBlockage:f.addBlockage,removeBlockage:f.removeBlockage}))),u=DI(n);return S.useEffect(()=>{const f=n??window.document.body;t?s(r,f):l(r,f)},[s,t,n,r,l]),{isScrollBlocked:u?a(u):!1}},hu="relative scroll-mb-8 scroll-mt-[30vh] scroll-p-8",e8="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",t8=({className:e,...t})=>y.jsx("h1",{className:ve("mt-5 text-2xl font-bold",e),...t}),n8=({className:e,...t})=>y.jsx("h2",{className:ve("mt-16 mb-2 text-2xl font-bold",hu,e),...t}),r8=({className:e,...t})=>y.jsx("h3",{className:ve("mt-5 mb-2 text-xl font-bold",hu,e),...t}),i8=({className:e,...t})=>y.jsx("h4",{className:ve("mt-3 text-lg font-bold",hu,e),...t}),a8=({className:e,...t})=>y.jsx("h5",{className:ve("mt-3 text-base font-bold",hu,e),...t}),o8=({className:e,...t})=>y.jsx("h6",{className:ve("mt-3 ml-3 text-base font-bold",hu,e),...t}),s8=e=>String(e).normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(/\s+/g,"-").toLowerCase(),l8=e=>{const r=(document.getElementById(e)?.getBoundingClientRect()?.top??0)+window.scrollY-150;window.scrollTo({top:r,behavior:"smooth"})},c8=(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},pu=({H:e,children:t,className:n,isClickable:r,...a})=>{const s=typeof t=="string"?s8(t):void 0,l=u=>{const{id:d}=u.currentTarget;if(c8(u.currentTarget,u)&&typeof d=="string"){const m=`${window.location.href.split("#")[0]}#${d}`;navigator.clipboard.writeText(m),l8(d)}};return y.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:ve(r&&e8,n),...a,children:t})},u8=({isClickable:e,...t})=>y.jsx(t8,{...t}),d8=({isClickable:e=!1,...t})=>y.jsx(pu,{H:n8,isClickable:e,...t}),y_=({isClickable:e=!1,...t})=>y.jsx(pu,{H:r8,isClickable:e,...t}),f8=({isClickable:e=!1,...t})=>y.jsx(pu,{H:i8,isClickable:e,...t}),h8=({isClickable:e=!1,...t})=>y.jsx(pu,{H:a8,isClickable:e,...t}),p8=({isClickable:e=!1,...t})=>y.jsx(pu,{H:o8,isClickable:e,...t});var v_=(e=>(e.SM="sm",e.MD="md",e.LG="lg",e.XL="xl",e.UNSET="unset",e))(v_||{});const m8=wn("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"}}),g8=_I.create(kr),b_=({children:e,isOpen:t,container:n,disableScroll:r=!0,onClose:a,hasCloseButton:s=!1,title:l,size:u="md",className:d,...f})=>{const p=DI(n);if(MI({key:"modal",disableScroll:t&&r}),!p)return y.jsx(y.Fragment,{});const m=typeof l=="string";return mo.createPortal(y.jsx(_I.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:v=>{v.stopPropagation(),a?.()},"aria-hidden":!t,children:y.jsx("div",{className:"flex justify-center p-4",children:y.jsxs(g8,{onClick:v=>v.stopPropagation(),initial:{scale:t?.5:1},animate:{scale:t?1:.5},transition:{duration:.3},className:m8({size:u,className:d}),role:"dialog","aria-modal":!0,roundedSize:"2xl",...f,children:[y.jsxs("div",{className:ve("cursor-default px-4",s&&m?"flex items-center justify-center":s?"flex items-center justify-end":m?"items-center":"hidden"),children:[m&&y.jsx(y_,{className:"ml-4 flex items-center justify-center text-lg font-bold",children:l}),s&&y.jsx(lt,{variant:st.HOVERABLE,color:ot.TEXT,label:"Close modal",className:"ml-auto",onClick:v=>{v.stopPropagation(),a?.()},Icon:go,size:Yn.ICON_MD})]}),y.jsx("div",{className:"flex flex-1 flex-col items-center overflow-auto",children:e})]})})}),p)},y8=e=>{const t=Zr(),n=e??t??at,r=QR(n),{data:a}=Ih({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 v8=Object.defineProperty,b8=Object.defineProperties,_8=Object.getOwnPropertyDescriptors,Iw=Object.getOwnPropertySymbols,E8=Object.prototype.hasOwnProperty,S8=Object.prototype.propertyIsEnumerable,Ow=(e,t,n)=>t in e?v8(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Er=(e,t)=>{for(var n in t||(t={}))E8.call(t,n)&&Ow(e,n,t[n]);if(Iw)for(var n of Iw(t))S8.call(t,n)&&Ow(e,n,t[n]);return e},Vr=(e,t)=>b8(e,_8(t)),x8=class extends Error{constructor(e,t,n){super(t||e.toString(),{cause:n}),this.status=e,this.statusText=t,this.error=n}},A8=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 m=await((n=p.init)==null?void 0:n.call(p,e.toString(),t));d=m.options||d,e=m.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}},Dw=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}},T8=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 w8(e){if(typeof e=="number")return new Dw({type:"linear",attempts:e,delay:1e3});switch(e.type){case"linear":return new Dw(e);case"exponential":return new T8(e);default:throw new Error("Invalid retry strategy")}}var C8=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},R8=/^application\/(?:[\w!#$%&*.^`~-]*\+)?json(;.+)?$/i;function k8(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 R8.test(r)?"json":n.has(r)||r.startsWith("text/")?"text":"blob"}function N8(e){try{return JSON.parse(e),!0}catch{return!1}}function zI(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 Lw(e){try{return JSON.parse(e)}catch{return e}}function jw(e){return typeof e=="function"}function I8(e){if(e?.customFetchImpl)return e.customFetchImpl;if(typeof globalThis<"u"&&jw(globalThis.fetch))return globalThis.fetch;if(typeof window<"u"&&jw(window.fetch))return window.fetch;throw new Error("No fetch implementation found")}async function O8(e){const t=new Headers(e?.headers),n=await C8(e);for(const[r,a]of Object.entries(n||{}))t.set(r,a);if(!t.has("content-type")){const r=D8(e?.body);r&&t.set("content-type",r)}return t}function D8(e){return zI(e)?"application/json":null}function L8(e){if(!e?.body)return null;const t=new Headers(e?.headers);if(zI(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 j8(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 VI.includes(r)?r.toUpperCase():t?.body?"POST":"GET"}return t?.body?"POST":"GET"}function P8(e,t){let n;return!e?.signal&&e?.timeout&&(n=setTimeout(()=>t?.abort(),e?.timeout)),{abortTimeout:n,clearTimeout:()=>{n&&clearTimeout(n)}}}var M8=class BI extends Error{constructor(t,n){super(n||JSON.stringify(t,null,2)),this.issues=t,Object.setPrototypeOf(this,BI.prototype)}};async function wf(e,t){let n=await e["~standard"].validate(t);if(n.issues)throw new M8(n.issues);return n.value}var VI=["get","post","put","patch","delete"],z8=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=Vr(Er({},n),{method:f.method,output:f.output});return n?.disableValidation||(p=Vr(Er({},p),{body:f.input?await wf(f.input,n?.body):n?.body,params:f.params?await wf(f.params,n?.params):n?.params,query:f.query?await wf(f.query,n?.query):n?.query})),{url:t,options:p}}}return{url:t,options:n}}}),B8=e=>{async function t(n,r){const a=Vr(Er(Er({},e),r),{plugins:[...e?.plugins||[],z8(e||{})]});if(e?.catchAllError)try{return await _v(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 _v(n,a)}return t};function V8(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 m=e.toString().split("@")[1].split("/")[0];VI.includes(m)&&(e=e.replace(`@${m}/`,"/"))}s.endsWith("/")||(s+="/");let[l,u]=e.replace(s,"").split("?");const d=new URLSearchParams(u);for(const[m,v]of Object.entries(a||{}))v!=null&&d.set(m,String(v));if(r)if(Array.isArray(r)){const m=l.split("/").filter(v=>v.startsWith(":"));for(const[v,_]of m.entries()){const x=r[v];l=l.replace(_,x)}}else for(const[m,v]of Object.entries(r))l=l.replace(`:${m}`,String(v));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 _v=async(e,t)=>{var n,r,a,s,l,u,d,f;const{hooks:p,url:m,options:v}=await A8(e,t),_=I8(v),x=new AbortController,A=(n=v.signal)!=null?n:x.signal,w=V8(m,v),N=L8(v),E=await O8(v),T=j8(m,v);let R=Vr(Er({},v),{url:w,headers:E,body:N,method:T,signal:A});for(const le of p.onRequest)if(le){const Z=await le(R);Z instanceof Object&&(R=Z)}("pipeTo"in R&&typeof R.pipeTo=="function"||typeof((r=t?.body)==null?void 0:r.pipe)=="function")&&("duplex"in R||(R.duplex="half"));const{clearTimeout:C}=P8(v,x);let I=await _(R.url,R);C();const D={response:I,request:R};for(const le of p.onResponse)if(le){const Z=await le(Vr(Er({},D),{response:(a=t?.hookOptions)!=null&&a.cloneResponse?I.clone():I}));Z instanceof Response?I=Z:Z instanceof Object&&(I=Z.response)}if(I.ok){if(!(R.method!=="HEAD"))return{data:"",error:null};const Z=k8(I),ae={data:"",response:I,request:R};if(Z==="json"||Z==="text"){const z=await I.text(),G=await((s=R.jsonParser)!=null?s:Lw)(z);ae.data=G}else ae.data=await I[Z]();R?.output&&R.output&&!R.disableValidation&&(ae.data=await wf(R.output,ae.data));for(const z of p.onSuccess)z&&await z(Vr(Er({},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:Lw,U=await I.text(),K=N8(U),W=K?await L(U):null,J={response:I,responseText:U,request:R,error:Vr(Er({},W),{status:I.status,statusText:I.statusText})};for(const le of p.onError)le&&await le(Vr(Er({},J),{response:(d=t?.hookOptions)!=null&&d.cloneResponse?I.clone():I}));if(t?.retry){const le=w8(t.retry),Z=(f=t.retryAttempt)!=null?f:0;if(await le.shouldAttemptRetry(Z,I)){for(const z of p.onRetry)z&&await z(D);const ae=le.getDelay(Z);return await new Promise(z=>setTimeout(z,ae)),await _v(e,Vr(Er({},t),{retryAttempt:Z+1}))}}if(t?.throw)throw new x8(I.status,I.statusText,K?W:U);return{data:null,error:Vr(Er({},W),{status:I.status,statusText:I.statusText})}};class U8 extends Error{constructor(t,n){super(t),this.name="BetterAuthError",this.message=t,this.cause=n,this.stack=""}}function F8(e){try{return new URL(e).pathname!=="/"}catch{throw new U8(`Invalid base URL: ${e}. Please provide a valid base URL.`)}}function iy(e,t="/api/auth"){return F8(e)?e:(t=t.startsWith("/")?t:`/${t}`,`${e.replace(/\/+$/,"")}${t}`)}function H8(e,t,n,r){if(e)return iy(e,t);{const a=qa.BETTER_AUTH_URL||qa.NEXT_PUBLIC_BETTER_AUTH_URL||qa.PUBLIC_BETTER_AUTH_URL||qa.NUXT_PUBLIC_BETTER_AUTH_URL||qa.NUXT_PUBLIC_AUTH_URL||(qa.BASE_URL!=="/"?qa.BASE_URL:void 0);if(a)return iy(a,t)}if(typeof window<"u"&&window.location)return iy(window.location.origin,t)}var ay={},oy={},sy={},vr={},Pw;function __(){if(Pw)return vr;Pw=1,Object.defineProperty(vr,"__esModule",{value:!0}),vr.cleanTasks=vr.allTasks=vr.task=vr.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()}}}vr.startTask=n;function r(l){let u=n();return l().finally(u)}vr.task=r;function a(){return e===0?Promise.resolve():new Promise(l=>{t.push(l)})}vr.allTasks=a;function s(){e=0}return vr.cleanTasks=s,vr}var Mw;function Oh(){return Mw||(Mw=1,(function(e){var t={};Object.defineProperty(e,"__esModule",{value:!0}),e.cleanStores=e.clean=void 0;const n=__();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})(sy)),sy}var zw;function E_(){return zw||(zw=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=Oh(),r=0,a=1,s=2,l=3,u=4,d=5,f=6,p=10;let m=(E,T,R,C)=>(E.events=E.events||{},E.events[R+p]||(E.events[R+p]=C(I=>{E.events[R].reduceRight((D,L)=>(L(D),D),{shared:{},...I})})),E.events[R]=E.events[R]||[],E.events[R].push(T),()=>{let I=E.events[R],D=I.indexOf(T);I.splice(D,1),I.length||(delete E.events[R],E.events[R+p](),delete E.events[R+p])}),v=(E,T)=>m(E,T,r,R=>{let C=E.listen;return E.listen=I=>(!E.lc&&!E.starting&&(E.starting=!0,R(),delete E.starting),C(I)),()=>{E.listen=C}});e.onStart=v;let _=(E,T)=>m(E,T,a,R=>{let C=E.off;return E.off=()=>{R(),C()},()=>{E.off=C}});e.onStop=_;let x=(E,T)=>m(E,T,s,R=>{let C=E.set,I=E.setKey;return E.setKey&&(E.setKey=(D,L)=>{let U;if(R({abort:()=>{U=!0},changed:D,newValue:{...E.value,[D]:L}}),!U)return I(D,L)}),E.set=D=>{let L;if(R({abort:()=>{L=!0},newValue:D}),!L)return C(D)},()=>{E.set=C,E.setKey=I}});e.onSet=x;let A=(E,T)=>m(E,T,l,R=>{let C=E.notify;return E.notify=I=>{let D;if(R({abort:()=>{D=!0},changed:I}),!D)return C(I)},()=>{E.notify=C}});e.onNotify=A;let w=(E,T)=>m(E,T,u,R=>{let C=E.build;return E.build=(...I)=>{let D=C(...I);return R({store:D}),D},()=>{E.build=C}});e.onBuild=w,e.STORE_UNMOUNT_DELAY=1e3;let N=(E,T)=>m(E,C=>{let I=T(C);I&&E.events[f].push(I)},d,C=>{let I=E.listen;E.listen=L=>(!E.lc&&!E.active&&(E.active=!0,C()),I(L));let D=E.off;if(E.events[f]=[],E.off=()=>{setTimeout(()=>{if(E.active&&!E.lc){E.active=!1;for(let L of E.events[f])L();E.events[f]=[],D()}},e.STORE_UNMOUNT_DELAY)},t.NODE_ENV!=="production"){let L=E[n.clean];E[n.clean]=()=>{for(let U of E.events[f])U();E.events[f]=[],E.active=!1,L()}}return()=>{E.listen=I,E.off=D}});e.onMount=N})(oy)),oy}var ly={},Bw;function G8(){return Bw||(Bw=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.actionFor=e.action=e.lastAction=void 0;const t=__();e.lastAction=Symbol();let n=(s,l,u,d)=>{let f={...s};f.set=(...m)=>{s[e.lastAction]=l,s.set(...m),delete s[e.lastAction]},s.setKey&&(f.setKey=(...m)=>{s[e.lastAction]=l,s.setKey(...m),delete s[e.lastAction]});let p=u(f,...d);if(p instanceof Promise){let m=(0,t.startTask)();return p.finally(m)}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})(ly)),ly}var ac={},oc={},cy={},Vw;function S_(){return Vw||(Vw=1,(function(e){var t={};Object.defineProperty(e,"__esModule",{value:!0}),e.atom=e.notifyId=void 0;const n=Oh();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 m=0;m<l.length;m++)r.push(l[m],d.value,f);if(p){e.notifyId++;for(let m=0;m<r.length;m+=3)r[m](r[m+1],r[m+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})(cy)),cy}var Uw;function UI(){if(Uw)return oc;Uw=1,Object.defineProperty(oc,"__esModule",{value:!0}),oc.map=void 0;const e=S_();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 oc.map=t,oc}var Fw;function $8(){if(Fw)return ac;Fw=1;var e={};Object.defineProperty(ac,"__esModule",{value:!0}),ac.mapTemplate=void 0;const t=E_(),n=Oh(),r=UI();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 ac.mapTemplate=a,ac}var sc={},Hw;function K8(){if(Hw)return sc;Hw=1,Object.defineProperty(sc,"__esModule",{value:!0}),sc.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 sc.listenKeys=e,sc}var lc={},Gw;function q8(){if(Gw)return lc;Gw=1,Object.defineProperty(lc,"__esModule",{value:!0}),lc.keepMount=void 0;let e=t=>{t.listen(()=>{})};return lc.keepMount=e,lc}var cc={},$w;function W8(){if($w)return cc;$w=1,Object.defineProperty(cc,"__esModule",{value:!0}),cc.computed=void 0;const e=E_(),t=S_();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,m)=>p!==l[m]))&&(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 cc.computed=n,cc}var Kw;function Z8(){return Kw||(Kw=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=E_();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=__();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=G8();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=Oh();Object.defineProperty(e,"clean",{enumerable:!0,get:function(){return a.clean}}),Object.defineProperty(e,"cleanStores",{enumerable:!0,get:function(){return a.cleanStores}});var s=$8();Object.defineProperty(e,"mapTemplate",{enumerable:!0,get:function(){return s.mapTemplate}});var l=K8();Object.defineProperty(e,"listenKeys",{enumerable:!0,get:function(){return l.listenKeys}});var u=q8();Object.defineProperty(e,"keepMount",{enumerable:!0,get:function(){return u.keepMount}});var d=W8();Object.defineProperty(e,"computed",{enumerable:!0,get:function(){return d.computed}});var f=S_();Object.defineProperty(e,"atom",{enumerable:!0,get:function(){return f.atom}});var p=UI();Object.defineProperty(e,"map",{enumerable:!0,get:function(){return p.map}})})(ay)),ay}var Ev=Z8();const Y8=typeof window>"u",X8=(e,t,n,r)=>{const a=Ev.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,m=typeof p.retry=="number"?p.retry:p.retry?.attempts,v=p.retryAttempt||0;m&&v<m||(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(()=>{Y8||(l?s():Ev.onMount(a,()=>{const d=setTimeout(()=>{l||(s(),l=!0)},0);return()=>{a.off(),u.off(),clearTimeout(d)}}))});return a},Q8={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*:/},J8=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/,qw={true:!0,false:!1,null:null,undefined:void 0,nan:Number.NaN,infinity:Number.POSITIVE_INFINITY,"-infinity":Number.NEGATIVE_INFINITY},eq=/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})(?:\.(\d{1,7}))?(?:Z|([+-])(\d{2}):(\d{2}))$/;function tq(e){return e instanceof Date&&!isNaN(e.getTime())}function nq(e){const t=eq.exec(e);if(!t)return null;const[,n,r,a,s,l,u,d,f,p,m]=t;let v=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(m,10))*(f==="+"?-1:1);v.setUTCMinutes(v.getUTCMinutes()+_)}return tq(v)?v:null}function rq(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 qw)return qw[u];if(!J8.test(l)){if(n)throw new SyntaxError("[better-json] Invalid JSON");return e}if(Object.entries(Q8).some(([f,p])=>{const m=p.test(l);return m&&r&&console.warn(`[better-json] Detected potential prototype pollution attempt using ${f} pattern`),m})&&n)throw new Error("[better-json] Potential prototype pollution attempt detected");try{return JSON.parse(l,(p,m)=>{if(p==="__proto__"||p==="constructor"&&m&&typeof m=="object"&&"prototype"in m){r&&console.warn(`[better-json] Dropping "${p}" key to prevent prototype pollution`);return}if(s&&typeof m=="string"){const v=nq(m);if(v)return v}return a?a(p,m):m})}catch(f){if(n)throw f;return e}}function iq(e,t={strict:!0}){return rq(e,t)}const aq={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 oq(e){const t=Ev.atom(!1);return{session:X8(t,"/get-session",e,{method:"GET"}),$sessionSignal:t}}const sq=(e,t)=>{const n="credentials"in Request.prototype,r=H8(e?.baseURL,e?.basePath)??"/api/auth",a=e?.plugins?.flatMap(R=>R.fetchPlugins).filter(R=>R!==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||{},m=B8({baseURL:r,...n?{credentials:"include"}:{},method:"GET",jsonParser(R){return R?iq(R,{strict:!1}):null},customFetchImpl:fetch,...p,plugins:[s,...p.plugins||[],...e?.disableDefaultFetchPlugins?[]:[aq],...a]}),{$sessionSignal:v,session:_}=oq(m),x=e?.plugins||[];let A={},w={$sessionSignal:v,session:_},N={"/sign-out":"POST","/revoke-sessions":"POST","/revoke-other-sessions":"POST","/delete-user":"POST"};const E=[{signal:"$sessionSignal",matcher(R){return R==="/sign-out"||R==="/update-user"||R.startsWith("/sign-in")||R.startsWith("/sign-up")||R==="/delete-user"||R==="/verify-email"}}];for(const R of x)R.getAtoms&&Object.assign(w,R.getAtoms?.(m)),R.pathMethods&&Object.assign(N,R.pathMethods),R.atomListeners&&E.push(...R.atomListeners);const T={notify:R=>{w[R].set(!w[R].get())},listen:(R,C)=>{w[R].subscribe(C)},atoms:w};for(const R of x)R.getActions&&Object.assign(A,R.getActions?.(m,T,e));return{get baseURL(){return r},pluginsActions:A,pluginsAtoms:w,pluginPathMethods:N,atomListeners:E,$fetch:m,$store:T}};function lq(e){return typeof e=="object"&&e!==null&&"get"in e&&typeof e.get=="function"&&"lc"in e&&typeof e.lc=="number"}function cq(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 uq(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 m of f)if(p&&typeof p=="object"&&m in p)p=p[m];else{p=void 0;break}return typeof p=="function"||lq(p)?p:s(f)},apply:async(u,d,f)=>{const p="/"+l.map(E=>E.replace(/[A-Z]/g,T=>`-${T.toLowerCase()}`)).join("/"),m=f[0]||{},v=f[1]||{},{query:_,fetchOptions:x,...A}=m,w={...v,...x},N=cq(p,n,m);return await t(p,{...w,body:N==="GET"?void 0:{...A,...w?.body||{}},query:_||w?.query,method:N,async onSuccess(E){await w?.onSuccess?.(E);const T=a?.find(I=>I.matcher(p));if(!T)return;const R=r[T.signal];if(!R)return;const C=R.get();setTimeout(()=>{R.set(!C)},10)}})}})}return s()}function dq(e){return e.charAt(0).toUpperCase()+e.slice(1)}function fq(e){const{pluginPathMethods:t,pluginsActions:n,pluginsAtoms:r,$fetch:a,atomListeners:s,$store:l}=sq(e);let u={};for(const[p,m]of Object.entries(r))u[`use${dq(p)}`]=m;const d={...n,...u,$fetch:a,$store:l};return uq(d,a,t,r,s)}const FI=e=>{const t=e?.editor?.backendURL??at.editor?.backendURL;if(!t)throw new Error("Backend URL is not defined in the Intlayer configuration.");const n=()=>fq({baseURL:t,withCredentials:!0});return{signInEmail:async(...W)=>n().signIn.email(...W),signUpEmail:async(...W)=>n().signUp.email(...W),signOut:async(...W)=>n().signOut(...W),signInSocial:async(...W)=>n().signIn.social(...W),linkSocial:async(...W)=>n().linkSocial(...W),changePasswordSession:async(...W)=>n().changePassword(...W),requestPasswordResetSession:async(...W)=>n().requestPasswordReset(...W),resetPassword:async(...W)=>n().resetPassword(...W),verifyEmailSession:async(...W)=>n().verifyEmail(...W),getSession:async(...W)=>n().getSession(...W),forgetPassword:async(...W)=>n().forgetPassword(...W),sendVerificationEmail:async(...W)=>n().sendVerificationEmail(...W),changeEmail:async(...W)=>n().changeEmail(...W),deleteUser:async(...W)=>n().deleteUser(...W),revokeSession:async(...W)=>n().revokeSession(...W),revokeSessions:async(...W)=>n().revokeSessions(...W),revokeOtherSessions:async(...W)=>n().revokeOtherSessions(...W),listAccounts:async(...W)=>n().listAccounts(...W),unlinkAccount:async(...W)=>n().unlinkAccount(...W),refreshToken:async(...W)=>n().refreshToken(...W),getAccessToken:async(...W)=>n().getAccessToken(...W),accountInfo:async(...W)=>n().accountInfo(...W),updateUser:async(...W)=>n().updateUser(...W),listSessions:async(...W)=>n().listSessions(...W)}},hq=(e,t)=>{const n=Zr(),r=t??n??at,a=g_(),{data:s,isFetched:l,refetch:u}=Ih({queryKey:["session"],queryFn:async()=>(await FI(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=v=>a.setQueryData(["session"],v),p=async()=>(await u()).data;return{session:d,fetchSession:p,revalidateSession:p,setSession:f}},mu=({session:e,intlayerConfiguration:t}={})=>{const{session:n,fetchSession:r,revalidateSession:a,setSession:s}=hq(e,t),{oAuth2AccessToken:l}=y8(t);return{session:n,fetchSession:r,setSession:s,revalidateSession:a,oAuth2AccessToken:l,isAuthenticated:!!(n?.user||l)}},wi=e=>{const t=Zr(),{oAuth2AccessToken:n}=mu();return KB({...n&&{headers:{Authorization:`Bearer ${n.accessToken}`}}},t)},pq=e=>{const t=Zr();return FI(t)},mq=({requireUser:e,requireProject:t,requireOrganization:n})=>{const r=Zr(),{oAuth2AccessToken:a,session:s}=mu({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)}},HI=e=>{const{requireUser:t,requireProject:n,requireOrganization:r,...a}=e,{enable:s}=mq({requireUser:t,requireProject:n,requireOrganization:r});return Ih({...a,enabled:a.enabled===!1?!1:s})},gq=()=>{const e=pq();return yo({mutationKey:["logout"],mutationFn:(...t)=>e.signOut(...t),meta:{invalidateQueries:[["session"],["users"],["organizations"],["projects"],["dictionaries"],["tags"]]}})},yq=e=>{const t=wi();return HI({queryKey:["projects",e],queryFn:({signal:n})=>t.project.getProjects(e,{signal:n}),requireUser:!0,requireOrganization:!0})},vq=()=>{const e=wi();return yo({mutationKey:["dictionaries"],mutationFn:e.dictionary.pushDictionaries,meta:{invalidateQueries:[["dictionaries"],["dictionariesKeys"]]}})},bq=()=>{const e=wi();return yo({mutationKey:["dictionaries"],mutationFn:e.dictionary.deleteDictionary,meta:{invalidateQueries:[["dictionaries"],["dictionariesKeys"]]}})},_q=e=>{const t=wi();return HI({queryKey:["tags",e],queryFn:({signal:n})=>t.tag.getTags(e,{signal:n}),requireUser:!0,requireOrganization:!0,requireProject:!0})},Eq=()=>{const e=wi();return yo({mutationKey:["ai-auditContentDeclarationMetadata"],mutationFn:e.ai.auditContentDeclarationMetadata})},Sq=()=>{const e=wi();return yo({mutationKey:["ai-auditContentDeclarationField"],mutationFn:e.ai.auditContentDeclarationField})},xq=()=>{const e=wi();return yo({mutationKey:["ai-autocomplete"],mutationFn:e.ai.autocomplete})},GI=()=>{const e=wi();return Ih({queryKey:["editor","dictionaries"],queryFn:e.editor.getDictionaries})},Aq=()=>{const e=wi();return yo({mutationKey:["editor","dictionaries"],mutationFn:e.editor.writeDictionary})};var gu=e=>e.type==="checkbox",eo=e=>e instanceof Date,Sn=e=>e==null;const $I=e=>typeof e=="object";var Ft=e=>!Sn(e)&&!Array.isArray(e)&&$I(e)&&!eo(e),KI=e=>Ft(e)&&e.target?gu(e.target)?e.target.checked:e.target.value:e,Tq=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,qI=(e,t)=>e.has(Tq(t)),wq=e=>{const t=e.constructor&&e.constructor.prototype;return Ft(t)&&t.hasOwnProperty("isPrototypeOf")},x_=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function qt(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(!(x_&&(e instanceof Blob||r))&&(n||Ft(e)))if(t=n?[]:Object.create(Object.getPrototypeOf(e)),!n&&!wq(e))t=e;else for(const a in e)e.hasOwnProperty(a)&&(t[a]=qt(e[a]));else return e;return t}var Dh=e=>/^\w*$/.test(e),jt=e=>e===void 0,A_=e=>Array.isArray(e)?e.filter(Boolean):[],T_=e=>A_(e.replace(/["|']|\]/g,"").split(/\.|\[/)),Ee=(e,t,n)=>{if(!t||!Ft(e))return n;const r=(Dh(t)?[t]:T_(t)).reduce((a,s)=>Sn(a)?a:a[s],e);return jt(r)||r===e?jt(e[t])?n:e[t]:r},Gn=e=>typeof e=="boolean",dt=(e,t,n)=>{let r=-1;const a=Dh(t)?[t]:T_(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=Ft(f)||Array.isArray(f)?f:isNaN(+a[r+1])?{}:[]}if(u==="__proto__"||u==="constructor"||u==="prototype")return;e[u]=d,e=e[u]}};const Wf={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},Sr={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},gi={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},w_=Oe.createContext(null);w_.displayName="HookFormContext";const ya=()=>Oe.useContext(w_),Cq=e=>{const{children:t,...n}=e;return Oe.createElement(w_.Provider,{value:n},t)};var WI=(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]!==Sr.all&&(t._proxyFormState[l]=!r||Sr.all),n&&(n[l]=!0),e[l]}});return a};const C_=typeof window<"u"?Oe.useLayoutEffect:Oe.useEffect;function Rq(e){const t=ya(),{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 C_(()=>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(()=>WI(l,n,d.current,!1),[l,n])}var Wn=e=>typeof e=="string",ZI=(e,t,n,r,a)=>Wn(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),Sv=e=>Sn(e)||!$I(e);function yi(e,t,n=new WeakSet){if(Sv(e)||Sv(t))return e===t;if(eo(e)&&eo(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(eo(l)&&eo(u)||Ft(l)&&Ft(u)||Array.isArray(l)&&Array.isArray(u)?!yi(l,u,n):l!==u)return!1}}return!0}function kq(e){const t=ya(),{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 m=Oe.useMemo(()=>n._getWatch(r,d.current),[n,r]),[v,_]=Oe.useState(f.current?f.current(m):m);return C_(()=>n._subscribe({name:r,formState:{values:!0},exact:l,callback:x=>{if(!s){const A=ZI(r,n._names,x.values||n._formValues,!1,d.current);if(f.current){const w=f.current(A);yi(w,p.current)||(_(w),p.current=w)}else _(A)}}}),[n,s,r,l]),Oe.useEffect(()=>n._removeUnmounted()),v}function Nq(e){const t=ya(),{name:n,disabled:r,control:a=t.control,shouldUnregister:s,defaultValue:l}=e,u=qI(a._names.array,n),d=Oe.useMemo(()=>Ee(a._formValues,n,Ee(a._defaultValues,n,l)),[a,n,l]),f=kq({control:a,name:n,defaultValue:d,exact:!0}),p=Rq({control:a,name:n,exact:!0}),m=Oe.useRef(e),v=Oe.useRef(void 0),_=Oe.useRef(a.register(n,{...e.rules,value:f,...Gn(e.disabled)?{disabled:e.disabled}:{}}));m.current=e;const x=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:KI(T),name:n},type:Wf.CHANGE}),[n]),w=Oe.useCallback(()=>_.current.onBlur({target:{value:Ee(a._formValues,n),name:n},type:Wf.BLUR}),[n,a._formValues]),N=Oe.useCallback(T=>{const R=Ee(a._fields,n);R&&T&&(R._f.ref={focus:()=>T.focus&&T.focus(),select:()=>T.select&&T.select(),setCustomValidity:C=>T.setCustomValidity(C),reportValidity:()=>T.reportValidity()})},[a._fields,n]),E=Oe.useMemo(()=>({name:n,value:f,...Gn(r)||p.disabled?{disabled:p.disabled||r}:{},onChange:A,onBlur:w,ref:N}),[n,r,p.disabled,A,w,N,f]);return Oe.useEffect(()=>{const T=a._options.shouldUnregister||s,R=v.current;R&&R!==n&&!u&&a.unregister(R),a.register(n,{...m.current.rules,...Gn(m.current.disabled)?{disabled:m.current.disabled}:{}});const C=(I,D)=>{const L=Ee(a._fields,I);L&&L._f&&(L._f.mount=D)};if(C(n,!0),T){const I=qt(Ee(a._options.defaultValues,n));dt(a._defaultValues,n,I),jt(Ee(a._formValues,n))&&dt(a._formValues,n,I)}return!u&&a.register(n),v.current=n,()=>{(u?T&&!a._state.action:T)?a.unregister(n):C(n,!1)}},[n,a,u,s]),Oe.useEffect(()=>{a._setDisabledField({disabled:r,name:n})},[r,n,a]),Oe.useMemo(()=>({field:E,formState:p,fieldState:x}),[E,p,x])}const Iq=e=>e.render(Nq(e));var R_=(e,t,n,r,a)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:a||!0}}:{},Tc=e=>Array.isArray(e)?e:[e],Ww=()=>{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 YI(e,t){const n={};for(const r in e)if(e.hasOwnProperty(r)){const a=e[r],s=t[r];if(a&&Ft(a)&&s){const l=YI(a,s);Ft(l)&&(n[r]=l)}else e[r]&&(n[r]=s)}return n}var Dn=e=>Ft(e)&&!Object.keys(e).length,k_=e=>e.type==="file",xr=e=>typeof e=="function",Zf=e=>{if(!x_)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},XI=e=>e.type==="select-multiple",N_=e=>e.type==="radio",Oq=e=>N_(e)||gu(e),uy=e=>Zf(e)&&e.isConnected;function Dq(e,t){const n=t.slice(0,-1).length;let r=0;for(;r<n;)e=jt(e)?r++:e[t[r++]];return e}function Lq(e){for(const t in e)if(e.hasOwnProperty(t)&&!jt(e[t]))return!1;return!0}function zt(e,t){const n=Array.isArray(t)?t:Dh(t)?[t]:T_(t),r=n.length===1?e:Dq(e,n),a=n.length-1,s=n[a];return r&&delete r[s],a!==0&&(Ft(r)&&Dn(r)||Array.isArray(r)&&Lq(r))&&zt(e,n.slice(0,-1)),e}var jq=e=>{for(const t in e)if(xr(e[t]))return!0;return!1};function QI(e){return Array.isArray(e)||Ft(e)&&!jq(e)}function xv(e,t={}){for(const n in e)QI(e[n])?(t[n]=Array.isArray(e[n])?[]:{},xv(e[n],t[n])):Sn(e[n])||(t[n]=!0);return t}function hs(e,t,n){n||(n=xv(t));for(const r in e)QI(e[r])?jt(t)||Sv(n[r])?n[r]=xv(e[r],Array.isArray(e[r])?[]:{}):hs(e[r],Sn(t)?{}:t[r],n[r]):n[r]=!yi(e[r],t[r]);return n}const Zw={value:!1,isValid:!1},Yw={value:!0,isValid:!0};var JI=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&&!jt(e[0].attributes.value)?jt(e[0].value)||e[0].value===""?Yw:{value:e[0].value,isValid:!0}:Yw:Zw}return Zw},eO=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>jt(e)?e:t?e===""?NaN:e&&+e:n&&Wn(e)?new Date(e):r?r(e):e;const Xw={isValid:!1,value:null};var tO=e=>Array.isArray(e)?e.reduce((t,n)=>n&&n.checked&&!n.disabled?{isValid:!0,value:n.value}:t,Xw):Xw;function Qw(e){const t=e.ref;return k_(t)?t.files:N_(t)?tO(e.refs).value:XI(t)?[...t.selectedOptions].map(({value:n})=>n):gu(t)?JI(e.refs).value:eO(jt(t.value)?e.ref.value:t.value,e)}var Pq=(e,t,n,r)=>{const a={};for(const s of e){const l=Ee(t,s);l&&dt(a,s,l._f)}return{criteriaMode:n,names:[...e],fields:a,shouldUseNativeValidation:r}},Yf=e=>e instanceof RegExp,uc=e=>jt(e)?e:Yf(e)?e.source:Ft(e)?Yf(e.value)?e.value.source:e.value:e,Jw=e=>({isOnSubmit:!e||e===Sr.onSubmit,isOnBlur:e===Sr.onBlur,isOnChange:e===Sr.onChange,isOnAll:e===Sr.all,isOnTouch:e===Sr.onTouched});const eC="AsyncFunction";var Mq=e=>!!e&&!!e.validate&&!!(xr(e.validate)&&e.validate.constructor.name===eC||Ft(e.validate)&&Object.values(e.validate).find(t=>t.constructor.name===eC)),zq=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate),tC=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(r=>e.startsWith(r)&&/^\.\w+/.test(e.slice(r.length))));const wc=(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(wc(u,t))break}else if(Ft(u)&&wc(u,t))break}}};function nC(e,t,n){const r=Ee(e,n);if(r||Dh(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 Dn(s)||Object.keys(s).length>=Object.keys(t).length||Object.keys(s).find(l=>t[l]===(!r||Sr.all))},Vq=(e,t,n)=>!e||!t||e===t||Tc(e).some(r=>r&&(n?r===t:r.startsWith(t)||t.startsWith(r))),Uq=(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,Fq=(e,t)=>!A_(Ee(e,t)).length&&zt(e,t),Hq=(e,t,n)=>{const r=Tc(Ee(e,n));return dt(r,"root",t[n]),dt(e,n,r),e};function rC(e,t,n="validate"){if(Wn(e)||Array.isArray(e)&&e.every(Wn)||Gn(e)&&!e)return{type:n,message:Wn(e)?e:"",ref:t}}var us=e=>Ft(e)&&!Yf(e)?e:{value:e,message:""},iC=async(e,t,n,r,a,s)=>{const{ref:l,refs:u,required:d,maxLength:f,minLength:p,min:m,max:v,pattern:_,validate:x,name:A,valueAsNumber:w,mount:N}=e._f,E=Ee(n,A);if(!N||t.has(A))return{};const T=u?u[0]:l,R=J=>{a&&T.reportValidity&&(T.setCustomValidity(Gn(J)?"":J||""),T.reportValidity())},C={},I=N_(l),D=gu(l),L=I||D,U=(w||k_(l))&&jt(l.value)&&jt(E)||Zf(l)&&l.value===""||E===""||Array.isArray(E)&&!E.length,K=R_.bind(null,A,r,C),W=(J,le,Z,ae=gi.maxLength,z=gi.minLength)=>{const X=J?le:Z;C[A]={type:J?ae:z,message:X,ref:l,...K(J?ae:z,X)}};if(s?!Array.isArray(E)||!E.length:d&&(!L&&(U||Sn(E))||Gn(E)&&!E||D&&!JI(u).isValid||I&&!tO(u).isValid)){const{value:J,message:le}=Wn(d)?{value:!!d,message:d}:us(d);if(J&&(C[A]={type:gi.required,message:le,ref:T,...K(gi.required,le)},!r))return R(le),C}if(!U&&(!Sn(m)||!Sn(v))){let J,le;const Z=us(v),ae=us(m);if(!Sn(E)&&!isNaN(E)){const z=l.valueAsNumber||E&&+E;Sn(Z.value)||(J=z>Z.value),Sn(ae.value)||(le=z<ae.value)}else{const z=l.valueAsDate||new Date(E),X=P=>new Date(new Date().toDateString()+" "+P),G=l.type=="time",me=l.type=="week";Wn(Z.value)&&E&&(J=G?X(E)>X(Z.value):me?E>Z.value:z>new Date(Z.value)),Wn(ae.value)&&E&&(le=G?X(E)<X(ae.value):me?E<ae.value:z<new Date(ae.value))}if((J||le)&&(W(!!J,Z.message,ae.message,gi.max,gi.min),!r))return R(C[A].message),C}if((f||p)&&!U&&(Wn(E)||s&&Array.isArray(E))){const J=us(f),le=us(p),Z=!Sn(J.value)&&E.length>+J.value,ae=!Sn(le.value)&&E.length<+le.value;if((Z||ae)&&(W(Z,J.message,le.message),!r))return R(C[A].message),C}if(_&&!U&&Wn(E)){const{value:J,message:le}=us(_);if(Yf(J)&&!E.match(J)&&(C[A]={type:gi.pattern,message:le,ref:l,...K(gi.pattern,le)},!r))return R(le),C}if(x){if(xr(x)){const J=await x(E,n),le=rC(J,T);if(le&&(C[A]={...le,...K(gi.validate,le.message)},!r))return R(le.message),C}else if(Ft(x)){let J={};for(const le in x){if(!Dn(J)&&!r)break;const Z=rC(await x[le](E,n),T,le);Z&&(J={...Z,...K(le,Z.message)},R(Z.message),r&&(C[A]=J))}if(!Dn(J)&&(C[A]={ref:T,...J},!r))return C}}return R(!0),C};const Gq={mode:Sr.onSubmit,reValidateMode:Sr.onChange,shouldFocusError:!0};function $q(e={}){let t={...Gq,...e},n={submitCount:0,isDirty:!1,isReady:!1,isLoading:xr(t.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:t.errors||{},disabled:t.disabled||!1},r={},a=Ft(t.defaultValues)||Ft(t.values)?qt(t.defaultValues||t.values)||{}:{},s=t.shouldUnregister?{}:qt(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 m={...p};const v={array:Ww(),state:Ww()},_=t.criteriaMode===Sr.all,x=V=>ee=>{clearTimeout(f),f=setTimeout(V,ee)},A=async V=>{if(!t.disabled&&(p.isValid||m.isValid||V)){const ee=t.resolver?Dn((await D()).errors):await U(r,!0);ee!==n.isValid&&v.state.next({isValid:ee})}},w=(V,ee)=>{!t.disabled&&(p.isValidating||p.validatingFields||m.isValidating||m.validatingFields)&&((V||Array.from(u.mount)).forEach(oe=>{oe&&(ee?dt(n.validatingFields,oe,ee):zt(n.validatingFields,oe))}),v.state.next({validatingFields:n.validatingFields,isValidating:!Dn(n.validatingFields)}))},N=(V,ee=[],oe,Se,_e=!0,ye=!0)=>{if(Se&&oe&&!t.disabled){if(l.action=!0,ye&&Array.isArray(Ee(r,V))){const Ce=oe(Ee(r,V),Se.argA,Se.argB);_e&&dt(r,V,Ce)}if(ye&&Array.isArray(Ee(n.errors,V))){const Ce=oe(Ee(n.errors,V),Se.argA,Se.argB);_e&&dt(n.errors,V,Ce),Fq(n.errors,V)}if((p.touchedFields||m.touchedFields)&&ye&&Array.isArray(Ee(n.touchedFields,V))){const Ce=oe(Ee(n.touchedFields,V),Se.argA,Se.argB);_e&&dt(n.touchedFields,V,Ce)}(p.dirtyFields||m.dirtyFields)&&(n.dirtyFields=hs(a,s)),v.state.next({name:V,isDirty:W(V,ee),dirtyFields:n.dirtyFields,errors:n.errors,isValid:n.isValid})}else dt(s,V,ee)},E=(V,ee)=>{dt(n.errors,V,ee),v.state.next({errors:n.errors})},T=V=>{n.errors=V,v.state.next({errors:n.errors,isValid:!1})},R=(V,ee,oe,Se)=>{const _e=Ee(r,V);if(_e){const ye=Ee(s,V,jt(oe)?Ee(a,V):oe);jt(ye)||Se&&Se.defaultChecked||ee?dt(s,V,ee?ye:Qw(_e._f)):Z(V,ye),l.mount&&A()}},C=(V,ee,oe,Se,_e)=>{let ye=!1,Ce=!1;const Ue={name:V};if(!t.disabled){if(!oe||Se){(p.isDirty||m.isDirty)&&(Ce=n.isDirty,n.isDirty=Ue.isDirty=W(),ye=Ce!==Ue.isDirty);const Qe=yi(Ee(a,V),ee);Ce=!!Ee(n.dirtyFields,V),Qe?zt(n.dirtyFields,V):dt(n.dirtyFields,V,!0),Ue.dirtyFields=n.dirtyFields,ye=ye||(p.dirtyFields||m.dirtyFields)&&Ce!==!Qe}if(oe){const Qe=Ee(n.touchedFields,V);Qe||(dt(n.touchedFields,V,oe),Ue.touchedFields=n.touchedFields,ye=ye||(p.touchedFields||m.touchedFields)&&Qe!==oe)}ye&&_e&&v.state.next(Ue)}return ye?Ue:{}},I=(V,ee,oe,Se)=>{const _e=Ee(n.errors,V),ye=(p.isValid||m.isValid)&&Gn(ee)&&n.isValid!==ee;if(t.delayError&&oe?(d=x(()=>E(V,oe)),d(t.delayError)):(clearTimeout(f),d=null,oe?dt(n.errors,V,oe):zt(n.errors,V)),(oe?!yi(_e,oe):_e)||!Dn(Se)||ye){const Ce={...Se,...ye&&Gn(ee)?{isValid:ee}:{},errors:n.errors,name:V};n={...n,...Ce},v.state.next(Ce)}},D=async V=>{w(V,!0);const ee=await t.resolver(s,t.context,Pq(V||u.mount,r,t.criteriaMode,t.shouldUseNativeValidation));return w(V),ee},L=async V=>{const{errors:ee}=await D(V);if(V)for(const oe of V){const Se=Ee(ee,oe);Se?dt(n.errors,oe,Se):zt(n.errors,oe)}else n.errors=ee;return ee},U=async(V,ee,oe={valid:!0})=>{for(const Se in V){const _e=V[Se];if(_e){const{_f:ye,...Ce}=_e;if(ye){const Ue=u.array.has(ye.name),Qe=_e._f&&Mq(_e._f);Qe&&p.validatingFields&&w([ye.name],!0);const gt=await iC(_e,u.disabled,s,_,t.shouldUseNativeValidation&&!ee,Ue);if(Qe&&p.validatingFields&&w([ye.name]),gt[ye.name]&&(oe.valid=!1,ee))break;!ee&&(Ee(gt,ye.name)?Ue?Hq(n.errors,gt,ye.name):dt(n.errors,ye.name,gt[ye.name]):zt(n.errors,ye.name))}!Dn(Ce)&&await U(Ce,ee,oe)}}return oe.valid},K=()=>{for(const V of u.unMount){const ee=Ee(r,V);ee&&(ee._f.refs?ee._f.refs.every(oe=>!uy(oe)):!uy(ee._f.ref))&&fe(V)}u.unMount=new Set},W=(V,ee)=>!t.disabled&&(V&&ee&&dt(s,V,ee),!yi(P(),a)),J=(V,ee,oe)=>ZI(V,u,{...l.mount?s:jt(ee)?a:Wn(V)?{[V]:ee}:ee},oe,ee),le=V=>A_(Ee(l.mount?s:a,V,t.shouldUnregister?Ee(a,V,[]):[])),Z=(V,ee,oe={})=>{const Se=Ee(r,V);let _e=ee;if(Se){const ye=Se._f;ye&&(!ye.disabled&&dt(s,V,eO(ee,ye)),_e=Zf(ye.ref)&&Sn(ee)?"":ee,XI(ye.ref)?[...ye.ref.options].forEach(Ce=>Ce.selected=_e.includes(Ce.value)):ye.refs?gu(ye.ref)?ye.refs.forEach(Ce=>{(!Ce.defaultChecked||!Ce.disabled)&&(Array.isArray(_e)?Ce.checked=!!_e.find(Ue=>Ue===Ce.value):Ce.checked=_e===Ce.value||!!_e)}):ye.refs.forEach(Ce=>Ce.checked=Ce.value===_e):k_(ye.ref)?ye.ref.value="":(ye.ref.value=_e,ye.ref.type||v.state.next({name:V,values:qt(s)})))}(oe.shouldDirty||oe.shouldTouch)&&C(V,_e,oe.shouldTouch,oe.shouldDirty,!0),oe.shouldValidate&&me(V)},ae=(V,ee,oe)=>{for(const Se in ee){if(!ee.hasOwnProperty(Se))return;const _e=ee[Se],ye=V+"."+Se,Ce=Ee(r,ye);(u.array.has(V)||Ft(_e)||Ce&&!Ce._f)&&!eo(_e)?ae(ye,_e,oe):Z(ye,_e,oe)}},z=(V,ee,oe={})=>{const Se=Ee(r,V),_e=u.array.has(V),ye=qt(ee);dt(s,V,ye),_e?(v.array.next({name:V,values:qt(s)}),(p.isDirty||p.dirtyFields||m.isDirty||m.dirtyFields)&&oe.shouldDirty&&v.state.next({name:V,dirtyFields:hs(a,s),isDirty:W(V,ye)})):Se&&!Se._f&&!Sn(ye)?ae(V,ye,oe):Z(V,ye,oe),tC(V,u)&&v.state.next({...n,name:V}),v.state.next({name:l.mount?V:void 0,values:qt(s)})},X=async V=>{l.mount=!0;const ee=V.target;let oe=ee.name,Se=!0;const _e=Ee(r,oe),ye=Qe=>{Se=Number.isNaN(Qe)||eo(Qe)&&isNaN(Qe.getTime())||yi(Qe,Ee(s,oe,Qe))},Ce=Jw(t.mode),Ue=Jw(t.reValidateMode);if(_e){let Qe,gt;const _o=ee.type?Qw(_e._f):KI(V),Nr=V.type===Wf.BLUR||V.type===Wf.FOCUS_OUT,rp=!zq(_e._f)&&!t.resolver&&!Ee(n.errors,oe)&&!_e._f.deps||Uq(Nr,Ee(n.touchedFields,oe),n.isSubmitted,Ue,Ce),Ri=tC(oe,u,Nr);dt(s,oe,_o),Nr?(!ee||!ee.readOnly)&&(_e._f.onBlur&&_e._f.onBlur(V),d&&d(0)):_e._f.onChange&&_e._f.onChange(V);const ki=C(oe,_o,Nr),Jr=!Dn(ki)||Ri;if(!Nr&&v.state.next({name:oe,type:V.type,values:qt(s)}),rp)return(p.isValid||m.isValid)&&(t.mode==="onBlur"?Nr&&A():Nr||A()),Jr&&v.state.next({name:oe,...Ri?{}:ki});if(!Nr&&Ri&&v.state.next({...n}),t.resolver){const{errors:wa}=await D([oe]);if(ye(_o),Se){const Ca=nC(n.errors,r,oe),Cu=nC(wa,r,Ca.name||oe);Qe=Cu.error,oe=Cu.name,gt=Dn(wa)}}else w([oe],!0),Qe=(await iC(_e,u.disabled,s,_,t.shouldUseNativeValidation))[oe],w([oe]),ye(_o),Se&&(Qe?gt=!1:(p.isValid||m.isValid)&&(gt=await U(r,!0)));Se&&(_e._f.deps&&(!Array.isArray(_e._f.deps)||_e._f.deps.length>0)&&me(_e._f.deps),I(oe,gt,Qe,ki))}},G=(V,ee)=>{if(Ee(n.errors,ee)&&V.focus)return V.focus(),1},me=async(V,ee={})=>{let oe,Se;const _e=Tc(V);if(t.resolver){const ye=await L(jt(V)?V:_e);oe=Dn(ye),Se=V?!_e.some(Ce=>Ee(ye,Ce)):oe}else V?(Se=(await Promise.all(_e.map(async ye=>{const Ce=Ee(r,ye);return await U(Ce&&Ce._f?{[ye]:Ce}:Ce)}))).every(Boolean),!(!Se&&!n.isValid)&&A()):Se=oe=await U(r);return v.state.next({...!Wn(V)||(p.isValid||m.isValid)&&oe!==n.isValid?{}:{name:V},...t.resolver||!V?{isValid:oe}:{},errors:n.errors}),ee.shouldFocus&&!Se&&wc(r,G,V?_e:u.mount),Se},P=(V,ee)=>{let oe={...l.mount?s:a};return ee&&(oe=YI(ee.dirtyFields?n.dirtyFields:n.touchedFields,oe)),jt(V)?oe:Wn(V)?Ee(oe,V):V.map(Se=>Ee(oe,Se))},ne=(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)}),$=V=>{V&&Tc(V).forEach(ee=>zt(n.errors,ee)),v.state.next({errors:V?n.errors:{}})},re=(V,ee,oe)=>{const Se=(Ee(r,V,{_f:{}})._f||{}).ref,_e=Ee(n.errors,V)||{},{ref:ye,message:Ce,type:Ue,...Qe}=_e;dt(n.errors,V,{...Qe,...ee,ref:Se}),v.state.next({name:V,errors:n.errors,isValid:!1}),oe&&oe.shouldFocus&&Se&&Se.focus&&Se.focus()},ue=(V,ee)=>xr(V)?v.state.subscribe({next:oe=>"values"in oe&&V(J(void 0,ee),oe)}):J(V,ee,!0),pe=V=>v.state.subscribe({next:ee=>{Vq(V.name,ee.name,V.exact)&&Bq(ee,V.formState||p,fn,V.reRenderRoot)&&V.callback({values:{...s},...n,...ee,defaultValues:a})}}).unsubscribe,be=V=>(l.mount=!0,m={...m,...V.formState},pe({...V,formState:m})),fe=(V,ee={})=>{for(const oe of V?Tc(V):u.mount)u.mount.delete(oe),u.array.delete(oe),ee.keepValue||(zt(r,oe),zt(s,oe)),!ee.keepError&&zt(n.errors,oe),!ee.keepDirty&&zt(n.dirtyFields,oe),!ee.keepTouched&&zt(n.touchedFields,oe),!ee.keepIsValidating&&zt(n.validatingFields,oe),!t.shouldUnregister&&!ee.keepDefaultValue&&zt(a,oe);v.state.next({values:qt(s)}),v.state.next({...n,...ee.keepDirty?{isDirty:W()}:{}}),!ee.keepIsValid&&A()},xe=({disabled:V,name:ee})=>{(Gn(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=Gn(ee.disabled)||Gn(t.disabled);return dt(r,V,{...oe||{},_f:{...oe&&oe._f?oe._f:{ref:{name:V}},name:V,mount:!0,...ee}}),u.mount.add(V),oe?xe({disabled:Gn(ee.disabled)?ee.disabled:t.disabled,name:V}):R(V,!0,ee.value),{...Se?{disabled:ee.disabled||t.disabled}:{},...t.progressive?{required:!!ee.required,min:uc(ee.min),max:uc(ee.max),minLength:uc(ee.minLength),maxLength:uc(ee.maxLength),pattern:uc(ee.pattern)}:{},name:V,onChange:X,onBlur:X,ref:_e=>{if(_e){je(V,ee),oe=Ee(r,V);const ye=jt(_e.value)&&_e.querySelectorAll&&_e.querySelectorAll("input,select,textarea")[0]||_e,Ce=Oq(ye),Ue=oe._f.refs||[];if(Ce?Ue.find(Qe=>Qe===ye):ye===oe._f.ref)return;dt(r,V,{_f:{...oe._f,...Ce?{refs:[...Ue.filter(uy),ye,...Array.isArray(Ee(a,V))?[{}]:[]],ref:{type:ye.type,name:V}}:{ref:ye}}}),R(V,!1,void 0,ye)}else oe=Ee(r,V,{}),oe._f&&(oe._f.mount=!1),(t.shouldUnregister||ee.shouldUnregister)&&!(qI(u.array,V)&&l.action)&&u.unMount.add(V)}}},Ve=()=>t.shouldFocusError&&wc(r,G,u.mount),Xe=V=>{Gn(V)&&(v.state.next({disabled:V}),wc(r,(ee,oe)=>{const Se=Ee(r,oe);Se&&(ee.disabled=Se._f.disabled||V,Array.isArray(Se._f.refs)&&Se._f.refs.forEach(_e=>{_e.disabled=Se._f.disabled||V}))},0,!1))},nt=(V,ee)=>async oe=>{let Se;oe&&(oe.preventDefault&&oe.preventDefault(),oe.persist&&oe.persist());let _e=qt(s);if(v.state.next({isSubmitting:!0}),t.resolver){const{errors:ye,values:Ce}=await D();n.errors=ye,_e=qt(Ce)}else await U(r);if(u.disabled.size)for(const ye of u.disabled)zt(_e,ye);if(zt(n.errors,"root"),Dn(n.errors)){v.state.next({errors:{}});try{await V(_e,oe)}catch(ye){Se=ye}}else ee&&await ee({...n.errors},oe),Ve(),setTimeout(Ve);if(v.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:Dn(n.errors)&&!Se,submitCount:n.submitCount+1,errors:n.errors}),Se)throw Se},Xt=(V,ee={})=>{Ee(r,V)&&(jt(ee.defaultValue)?z(V,qt(Ee(a,V))):(z(V,ee.defaultValue),dt(a,V,qt(ee.defaultValue))),ee.keepTouched||zt(n.touchedFields,V),ee.keepDirty||(zt(n.dirtyFields,V),n.isDirty=ee.defaultValue?W(V,qt(Ee(a,V))):W()),ee.keepError||(zt(n.errors,V),p.isValid&&A()),v.state.next({...n}))},Cn=(V,ee={})=>{const oe=V?qt(V):a,Se=qt(oe),_e=Dn(V),ye=_e?a:Se;if(ee.keepDefaultValues||(a=oe),!ee.keepValues){if(ee.keepDirtyValues){const Ce=new Set([...u.mount,...Object.keys(hs(a,s))]);for(const Ue of Array.from(Ce))Ee(n.dirtyFields,Ue)?dt(ye,Ue,Ee(s,Ue)):z(Ue,Ee(ye,Ue))}else{if(x_&&jt(V))for(const Ce of u.mount){const Ue=Ee(r,Ce);if(Ue&&Ue._f){const Qe=Array.isArray(Ue._f.refs)?Ue._f.refs[0]:Ue._f.ref;if(Zf(Qe)){const gt=Qe.closest("form");if(gt){gt.reset();break}}}}if(ee.keepFieldsRef)for(const Ce of u.mount)z(Ce,Ee(ye,Ce));else r={}}s=t.shouldUnregister?ee.keepDefaultValues?qt(a):{}:qt(ye),v.array.next({values:{...ye}}),v.state.next({values:{...ye}})}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,v.state.next({submitCount:ee.keepSubmitCount?n.submitCount:0,isDirty:_e?!1:ee.keepDirty?n.isDirty:!!(ee.keepDefaultValues&&!yi(V,a)),isSubmitted:ee.keepIsSubmitted?n.isSubmitted:!1,dirtyFields:_e?{}:ee.keepDirtyValues?ee.keepDefaultValues&&s?hs(a,s):n.dirtyFields:ee.keepDefaultValues&&V?hs(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})},Ci=(V,ee)=>Cn(xr(V)?V(s):V,ee),Ta=(V,ee={})=>{const oe=Ee(r,V),Se=oe&&oe._f;if(Se){const _e=Se.refs?Se.refs[0]:Se.ref;_e.focus&&(_e.focus(),ee.shouldSelect&&xr(_e.select)&&_e.select())}},fn=V=>{n={...n,...V}},tl={control:{register:je,unregister:fe,getFieldState:ne,handleSubmit:nt,setError:re,_subscribe:pe,_runSchema:D,_focusError:Ve,_getWatch:J,_getDirty:W,_setValid:A,_setFieldArray:N,_setDisabledField:xe,_setErrors:T,_getFieldArray:le,_reset:Cn,_resetDefaultValues:()=>xr(t.defaultValues)&&t.defaultValues().then(V=>{Ci(V,t.resetOptions),v.state.next({isLoading:!1})}),_removeUnmounted:K,_disableForm:Xe,_subjects:v,_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:be,trigger:me,register:je,handleSubmit:nt,watch:ue,setValue:z,getValues:P,reset:Ci,resetField:Xt,clearErrors:$,unregister:fe,setError:re,setFocus:Ta,getFieldState:ne};return{...tl,formControl:tl}}function Kq(e={}){const t=Oe.useRef(void 0),n=Oe.useRef(void 0),[r,a]=Oe.useState({isDirty:!1,isValidating:!1,isLoading:xr(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:xr(e.defaultValues)?void 0:e.defaultValues});if(!t.current)if(e.formControl)t.current={...e.formControl,formState:r},e.defaultValues&&!xr(e.defaultValues)&&e.formControl.reset(e.defaultValues,e.resetOptions);else{const{formControl:l,...u}=$q(e);t.current={...u,formState:r}}const s=t.current.control;return s._options=e,C_(()=>{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&&!yi(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=WI(r,s),t.current}const aC=(e,t,n)=>{if(e&&"reportValidity"in e){const r=Ee(n,t);e.setCustomValidity(r&&r.message||""),e.reportValidity()}},Av=(e,t)=>{for(const n in t.fields){const r=t.fields[n];r&&r.ref&&"reportValidity"in r.ref?aC(r.ref,n,e):r&&r.refs&&r.refs.forEach(a=>aC(a,n,e))}},oC=(e,t)=>{t.shouldUseNativeValidation&&Av(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(qq(t.names||Object.keys(e),r)){const l=Object.assign({},Ee(n,r));dt(l,"root",s),dt(n,r,l)}else dt(n,r,s)}return n},qq=(e,t)=>{const n=sC(t);return e.some(r=>sC(r).match(`^${n}\\.\\d+`))};function sC(e){return e.replace(/\]|\[/g,"")}const Wq=e=>{const t=S.useId(),n=S.useMemo(()=>({id:t}),[t]);return y.jsx(nO,{value:n,children:y.jsx("div",{className:"flex flex-col gap-2 p-2",...e})})},nO=S.createContext({}),rO=S.createContext({}),Zq=({...e})=>{const t=S.useMemo(()=>({name:e.name}),[e.name]);return y.jsx(rO,{value:t,children:y.jsx(Iq,{...e})})},va=()=>{const e=S.useContext(rO),t=S.useContext(nO),{getFieldState:n,formState:r}=ya(),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}},iO=wn("",{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 da=(e=>(e.DEFAULT="default",e.INVISIBLE="invisible",e))(da||{});const Ws=({validationStyleEnabled:e=!1,variant:t,size:n,className:r,...a})=>y.jsx("input",{className:iO({variant:t,size:n,validationStyleEnabled:e?"enabled":"disabled",className:r}),...a}),Yq=wn("",{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"}}),lC=({validationStyleEnabled:e=!1,label:t,size:n,color:r,name:a,variant:s,className:l,...u})=>y.jsx("input",{type:"checkbox",className:Yq({variant:s,size:n,color:r,validationStyleEnabled:e?"enabled":"disabled",className:l}),...u}),Xq=e=>{const{label:t,name:n,id:r}=e;return t?y.jsxs("label",{htmlFor:r??n,className:"flex items-center gap-x-4 font-medium text-sm cursor-pointer",children:[y.jsx(lC,{id:r??n,...e}),t]}):y.jsx(lC,{id:r??n,...e})},Qq=e=>{const[t,n]=S.useState(!1),r=s=>{s.preventDefault(),s.stopPropagation(),n(l=>!l)},a=t?dH:cH;return y.jsxs("div",{className:"relative",children:[y.jsx(Ws,{...e,"aria-label":"password",type:t?"text":"password"}),y.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:y.jsx(a,{className:"text-neutral mr-2 inline-block",size:20})})]})},aO=({className:e,variant:t,validationStyleEnabled:n=!1,...r})=>y.jsx("textarea",{className:ve("resize-none",iO({variant:t,validationStyleEnabled:n?"enabled":"disabled",className:e})),...r}),oO=({value:e="",onCancel:t,onSave:n,onClick:r,children:a,isDisabled:s,...l})=>{const[u,d]=S.useState(!1),f=S.useRef(null),p=x=>{x.stopPropagation(),d(!1),n()},m=x=>{x.stopPropagation(),d(!1),t()},v=!e||e===""?"-":e,_=S.useCallback(x=>{const A=window.getSelection();A&&A.toString().trim()!==""||f.current&&!f.current.contains(x.target)&&(d(!1),n())},[n]);return S.useEffect(()=>(u?document.addEventListener("click",_):document.removeEventListener("click",_),()=>document.removeEventListener("click",_)),[_,u]),y.jsxs("span",{className:"group/editable-field flex gap-2",role:"button",tabIndex:0,onClick:x=>{d(!0),r?.(x)},ref:f,...l,children:[y.jsxs("div",{className:ve("flex flex-1 gap-2",u?"display":"hidden"),children:[a,y.jsx(lt,{label:"Save",variant:st.HOVERABLE,size:Yn.ICON_SM,color:ot.TEXT,Icon:Us,onClick:p,disabled:s,className:"!text-current"}),y.jsx(lt,{label:"Cancel",color:ot.TEXT,variant:st.HOVERABLE,className:"!text-current",size:Yn.ICON_SM,Icon:go,onClick:m,disabled:s})]},String(u)),y.jsxs("div",{className:ve("flex flex-1 gap-2",u?"hidden":"display"),children:[y.jsx("span",{className:"ml-2 flex w-full whitespace-pre-wrap p-1 text-sm leading-6",children:v}),y.jsx(lt,{label:"Edit",Icon:Uk,color:ot.TEXT,variant:st.HOVERABLE,size:Yn.ICON_SM,className:"invisible !text-current group-hover/editable-field:visible",disabled:s,onClick:x=>{x.stopPropagation(),d(!0)}})]})]})},sO=({onSave:e,onCancel:t,ref:n,...r})=>{const a=S.useRef(null),s=()=>{e?.(a.current?.value??"")},l=()=>{a.current&&(a.current.value=a.current.defaultValue??""),t?.()};S.useImperativeHandle(n,()=>a.current);const u=S.useMemo(()=>r.value??a.current?.value??r.defaultValue,[r.value,r.defaultValue,a.current?.value]);return y.jsx(oO,{value:u,onCancel:l,onSave:s,children:y.jsx(Ws,{ref:a,...r})})},cC=24,uC=12,I_=({className:e,autoSize:t=!0,onChange:n,maxRows:r=999,ref:a,...s})=>{const l=S.useRef(null);S.useImperativeHandle(a,()=>l.current);const u=()=>{const p=l.current;if(!p||!t)return;const m=p.style;m.height="auto";const v=p.scrollHeight,_=cC*r+uC,x=cC+uC;m.height=Math.max(Math.min(v,_),x)+"px"};S.useEffect(()=>{u()},[s.value,s.defaultValue,u]);const d=p=>{n?.(p),u()},f=p=>{l.current=p,p&&u()};return y.jsx(aO,{ref:f,onChange:d,className:ve("overflow-y-auto",t?"resize-none":"",e),...s})},lO=({onSave:e,onCancel:t,ref:n,...r})=>{const a=S.useRef(null);S.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 y.jsx(oO,{value:u,onCancel:l,onSave:s,onClick:d=>{d.preventDefault(),d.stopPropagation()},children:y.jsx(I_,{className:"leading-6",ref:a,onClick:d=>{d.preventDefault(),d.stopPropagation()},...r})})},cO=S.createContext(null),Lh=()=>{const e=S.useContext(cO);if(!e)throw new Error("useMultiSelect must be used within MultiSelectProvider");return e},Jq=({values:e,defaultValues:t,onValueChange:n,loop:r=!1,className:a,children:s,dir:l,...u})=>{const[d,f]=S.useState(t??[]),[p,m]=S.useState(""),[v,_]=S.useState(!1),[x,A]=S.useState(-1),w=S.useRef(null),[N,E]=S.useState(!1),[T,R]=S.useState("");S.useEffect(()=>{e&&f(e)},[e]);const C=S.useCallback(U=>{if(d.includes(U)){const K=d.filter(W=>W!==U);f(K),n?.(K)}else{const K=[...d,U];f(K),n?.(K)}},[d]),I=S.useCallback(U=>{U.preventDefault();const K=U.currentTarget,W=K.value.substring(K.selectionStart??0,K.selectionEnd??0);R(W),E(W===p)},[p]),D=S.useCallback(U=>{U.stopPropagation();const K=w.current;if(!K)return;const W=()=>{const Z=x+1;A(Z>d.length-1?r?0:-1:Z)},J=()=>{const Z=x-1;A(Z<0?d.length-1:Z)},le=()=>{const Z=x-1<=0?d.length-1===0?-1:0:x-1;A(Z)};switch(U.key){case"ArrowLeft":l==="rtl"?d.length>0&&(x!==-1||r)&&W():d.length>0&&K.selectionStart===0&&J();break;case"ArrowRight":l==="rtl"?d.length>0&&K.selectionStart===0&&J():d.length>0&&(x!==-1||r)&&W();break;case"Backspace":case"Delete":d.length>0&&(x!==-1&&x<d.length?(C(d[x]),le()):(K.selectionStart===0&&T===p||N)&&C(d[d.length-1]));break;case"Enter":_(!0);break;case"Escape":x!==-1?A(-1):v&&_(!1);break}},[d,p,x,r]),L=S.useMemo(()=>({value:d,onValueChange:C,open:v,setOpen:_,inputValue:p,setInputValue:m,activeIndex:x,setActiveIndex:A,ref:w,handleSelect:I}),[d,C,v,_,p,m,x,A,w,I]);return y.jsx(cO,{value:L,children:y.jsx(B1,{onKeyDown:D,className:ve("flex w-full flex-col gap-2 overflow-visible bg-transparent",a),dir:l,...u,children:s})})},e9=({className:e,getBadgeValue:t=s=>s,validationStyleEnabled:n=!1,children:r,...a})=>{const{value:s,onValueChange:l,activeIndex:u}=Lh(),d=S.useCallback(f=>{f.preventDefault(),f.stopPropagation()},[]);return y.jsxs("div",{className:ve("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&&y.jsx("div",{className:"flex w-full flex-wrap gap-1",children:s.map((f,p)=>y.jsxs(u2,{className:ve("flex items-center gap-1 rounded-xl px-1",u===p&&"ring-muted-foreground ring-2"),color:n1.TEXT,children:[y.jsx("span",{className:"text-xs",children:t(f)}),y.jsxs("button",{"aria-label":`Remove ${f} option`,"aria-roledescription":"button to remove option",onMouseDown:d,onClick:()=>l(f),children:[y.jsxs("span",{className:"sr-only",children:["Remove ",f," option"]}),y.jsx(go,{className:"size-4 cursor-pointer"})]})]},f))}),r]})},t9=({className:e,...t})=>{const{setOpen:n,inputValue:r,setInputValue:a,activeIndex:s,setActiveIndex:l,handleSelect:u,ref:d}=Lh();return y.jsx(Vf.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:ve("outline-hidden ml-2 flex-1 cursor-pointer",e,s!==-1&&"caret-transparent")})},n9=({children:e})=>{const{open:t}=Lh();return y.jsx("div",{className:"relative",children:t&&e})},r9=({className:e,children:t})=>y.jsxs(Vf.List,{className:ve("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,y.jsx(Vf.Empty,{children:y.jsx("span",{className:"text-muted-foreground",children:"No results found"})})]}),i9=({className:e,value:t,children:n,...r})=>{const{value:a,onValueChange:s,setInputValue:l}=Lh(),u=S.useCallback(f=>{f.preventDefault(),f.stopPropagation()},[]),d=a.includes(t);return y.jsxs(Vf.Item,{...r,onSelect:()=>{s(t),l("")},className:ve("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&&y.jsx(Us,{className:"size-4"})]})},yn=Jq;yn.Trigger=e9;yn.Input=t9;yn.Content=n9;yn.List=r9;yn.Item=i9;const a9=({className:e,children:t,...n})=>y.jsxs("i",{className:ve("text-xs text-neutral-400",e),...n,children:["ⓘ ",t]}),Tv=({htmlFor:e,...t})=>y.jsx("label",{className:"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",htmlFor:e,...t}),o9=({className:e,...t})=>{const{error:n,formItemId:r}=va();return y.jsx(Tv,{className:ve("mb-2",n&&"text-error",e),htmlFor:r,...t})},s9=({isRequired:e})=>e?y.jsx("span",{"aria-label":"Asterisk meaning the field is required",children:"*"}):y.jsx(y.Fragment,{}),uO=({children:e,isRequired:t,info:n,htmlFor:r,className:a})=>y.jsxs("div",{className:"ml-1 flex gap-1 align-middle text-base leading-none",children:[e&&y.jsxs(o9,{htmlFor:r,id:`${r}-label`,className:Sh("font-bold",a),children:[e,y.jsx(s9,{isRequired:t})]}),n&&y.jsx(a9,{content:n})]});function dC(e,[t,n]){return Math.min(n,Math.max(t,e))}function dO(e){const t=e+"CollectionProvider",[n,r]=au(t),[a,s]=n(t,{collectionRef:{current:null},itemMap:new Map}),l=A=>{const{scope:w,children:N}=A,E=Oe.useRef(null),T=Oe.useRef(new Map).current;return y.jsx(a,{scope:w,itemMap:T,collectionRef:E,children:N})};l.displayName=t;const u=e+"CollectionSlot",d=Ns(u),f=Oe.forwardRef((A,w)=>{const{scope:N,children:E}=A,T=s(u,N),R=Ct(w,T.collectionRef);return y.jsx(d,{ref:R,children:E})});f.displayName=u;const p=e+"CollectionItemSlot",m="data-radix-collection-item",v=Ns(p),_=Oe.forwardRef((A,w)=>{const{scope:N,children:E,...T}=A,R=Oe.useRef(null),C=Ct(w,R),I=s(p,N);return Oe.useEffect(()=>(I.itemMap.set(R,{ref:R,...T}),()=>void I.itemMap.delete(R))),y.jsx(v,{[m]:"",ref:C,children:E})});_.displayName=p;function x(A){const w=s(e+"CollectionConsumer",A);return Oe.useCallback(()=>{const E=w.collectionRef.current;if(!E)return[];const T=Array.from(E.querySelectorAll(`[${m}]`));return Array.from(w.itemMap.values()).sort((I,D)=>T.indexOf(I.ref.current)-T.indexOf(D.ref.current))},[w.collectionRef,w.itemMap])}return[{Provider:l,Slot:f,ItemSlot:_},x,r]}var l9=S.createContext(void 0);function c9(e){const t=S.useContext(l9);return e||t||"ltr"}const u9=["top","right","bottom","left"],fa=Math.min,Kn=Math.max,Xf=Math.round,Qd=Math.floor,Kr=e=>({x:e,y:e}),d9={left:"right",right:"left",bottom:"top",top:"bottom"},f9={start:"end",end:"start"};function wv(e,t,n){return Kn(e,fa(t,n))}function Si(e,t){return typeof e=="function"?e(t):e}function xi(e){return e.split("-")[0]}function Zs(e){return e.split("-")[1]}function O_(e){return e==="x"?"y":"x"}function D_(e){return e==="y"?"height":"width"}const h9=new Set(["top","bottom"]);function Fr(e){return h9.has(xi(e))?"y":"x"}function L_(e){return O_(Fr(e))}function p9(e,t,n){n===void 0&&(n=!1);const r=Zs(e),a=L_(e),s=D_(a);let l=a==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(l=Qf(l)),[l,Qf(l)]}function m9(e){const t=Qf(e);return[Cv(e),t,Cv(t)]}function Cv(e){return e.replace(/start|end/g,t=>f9[t])}const fC=["left","right"],hC=["right","left"],g9=["top","bottom"],y9=["bottom","top"];function v9(e,t,n){switch(e){case"top":case"bottom":return n?t?hC:fC:t?fC:hC;case"left":case"right":return t?g9:y9;default:return[]}}function b9(e,t,n,r){const a=Zs(e);let s=v9(xi(e),n==="start",r);return a&&(s=s.map(l=>l+"-"+a),t&&(s=s.concat(s.map(Cv)))),s}function Qf(e){return e.replace(/left|right|bottom|top/g,t=>d9[t])}function _9(e){return{top:0,right:0,bottom:0,left:0,...e}}function fO(e){return typeof e!="number"?_9(e):{top:e,right:e,bottom:e,left:e}}function Jf(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 pC(e,t,n){let{reference:r,floating:a}=e;const s=Fr(t),l=L_(t),u=D_(l),d=xi(t),f=s==="y",p=r.x+r.width/2-a.width/2,m=r.y+r.height/2-a.height/2,v=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:m};break;case"left":_={x:r.x-a.width,y:m};break;default:_={x:r.x,y:r.y}}switch(Zs(t)){case"start":_[l]-=v*(n&&f?-1:1);break;case"end":_[l]+=v*(n&&f?-1:1);break}return _}const E9=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:m}=pC(f,r,d),v=r,_={},x=0;for(let A=0;A<u.length;A++){const{name:w,fn:N}=u[A],{x:E,y:T,data:R,reset:C}=await N({x:p,y:m,initialPlacement:r,placement:v,strategy:a,middlewareData:_,rects:f,platform:l,elements:{reference:e,floating:t}});p=E??p,m=T??m,_={..._,[w]:{..._[w],...R}},C&&x<=50&&(x++,typeof C=="object"&&(C.placement&&(v=C.placement),C.rects&&(f=C.rects===!0?await l.getElementRects({reference:e,floating:t,strategy:a}):C.rects),{x:p,y:m}=pC(f,v,d)),A=-1)}return{x:p,y:m,placement:v,strategy:a,middlewareData:_}};async function Fc(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:m="floating",altBoundary:v=!1,padding:_=0}=Si(t,e),x=fO(_),w=u[v?m==="floating"?"reference":"floating":m],N=Jf(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(w)))==null||n?w:w.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(u.floating)),boundary:f,rootBoundary:p,strategy:d})),E=m==="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)),R=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},C=Jf(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:u,rect:E,offsetParent:T,strategy:d}):E);return{top:(N.top-C.top+x.top)/R.y,bottom:(C.bottom-N.bottom+x.bottom)/R.y,left:(N.left-C.left+x.left)/R.x,right:(C.right-N.right+x.right)/R.x}}const S9=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}=Si(e,t)||{};if(f==null)return{};const m=fO(p),v={x:n,y:r},_=L_(a),x=D_(_),A=await l.getDimensions(f),w=_==="y",N=w?"top":"left",E=w?"bottom":"right",T=w?"clientHeight":"clientWidth",R=s.reference[x]+s.reference[_]-v[_]-s.floating[x],C=v[_]-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[x]);const L=R/2-C/2,U=D/2-A[x]/2-1,K=fa(m[N],U),W=fa(m[E],U),J=K,le=D-A[x]-W,Z=D/2-A[x]/2+L,ae=wv(J,Z,le),z=!d.arrow&&Zs(a)!=null&&Z!==ae&&s.reference[x]/2-(Z<J?K:W)-A[x]/2<0,X=z?Z<J?Z-J:Z-le:0;return{[_]:v[_]+X,data:{[_]:ae,centerOffset:Z-ae-X,...z&&{alignmentOffset:X}},reset:z}}}),x9=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:m=!0,fallbackPlacements:v,fallbackStrategy:_="bestFit",fallbackAxisSideDirection:x="none",flipAlignment:A=!0,...w}=Si(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const N=xi(a),E=Fr(u),T=xi(u)===u,R=await(d.isRTL==null?void 0:d.isRTL(f.floating)),C=v||(T||!A?[Qf(u)]:m9(u)),I=x!=="none";!v&&I&&C.push(...b9(u,A,x,R));const D=[u,...C],L=await Fc(t,w),U=[];let K=((r=s.flip)==null?void 0:r.overflows)||[];if(p&&U.push(L[N]),m){const Z=p9(a,l,R);U.push(L[Z[0]],L[Z[1]])}if(K=[...K,{placement:a,overflows:U}],!U.every(Z=>Z<=0)){var W,J;const Z=(((W=s.flip)==null?void 0:W.index)||0)+1,ae=D[Z];if(ae&&(!(m==="alignment"?E!==Fr(ae):!1)||K.every(G=>Fr(G.placement)===E?G.overflows[0]>0:!0)))return{data:{index:Z,overflows:K},reset:{placement:ae}};let z=(J=K.filter(X=>X.overflows[0]<=0).sort((X,G)=>X.overflows[1]-G.overflows[1])[0])==null?void 0:J.placement;if(!z)switch(_){case"bestFit":{var le;const X=(le=K.filter(G=>{if(I){const me=Fr(G.placement);return me===E||me==="y"}return!0}).map(G=>[G.placement,G.overflows.filter(me=>me>0).reduce((me,P)=>me+P,0)]).sort((G,me)=>G[1]-me[1])[0])==null?void 0:le[0];X&&(z=X);break}case"initialPlacement":z=u;break}if(a!==z)return{reset:{placement:z}}}return{}}}};function mC(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function gC(e){return u9.some(t=>e[t]>=0)}const A9=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...a}=Si(e,t);switch(r){case"referenceHidden":{const s=await Fc(t,{...a,elementContext:"reference"}),l=mC(s,n.reference);return{data:{referenceHiddenOffsets:l,referenceHidden:gC(l)}}}case"escaped":{const s=await Fc(t,{...a,altBoundary:!0}),l=mC(s,n.floating);return{data:{escapedOffsets:l,escaped:gC(l)}}}default:return{}}}}},hO=new Set(["left","top"]);async function T9(e,t){const{placement:n,platform:r,elements:a}=e,s=await(r.isRTL==null?void 0:r.isRTL(a.floating)),l=xi(n),u=Zs(n),d=Fr(n)==="y",f=hO.has(l)?-1:1,p=s&&d?-1:1,m=Si(t,e);let{mainAxis:v,crossAxis:_,alignmentAxis:x}=typeof m=="number"?{mainAxis:m,crossAxis:0,alignmentAxis:null}:{mainAxis:m.mainAxis||0,crossAxis:m.crossAxis||0,alignmentAxis:m.alignmentAxis};return u&&typeof x=="number"&&(_=u==="end"?x*-1:x),d?{x:_*p,y:v*f}:{x:v*f,y:_*p}}const w9=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 T9(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}}}}},C9=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:w=>{let{x:N,y:E}=w;return{x:N,y:E}}},...d}=Si(e,t),f={x:n,y:r},p=await Fc(t,d),m=Fr(xi(a)),v=O_(m);let _=f[v],x=f[m];if(s){const w=v==="y"?"top":"left",N=v==="y"?"bottom":"right",E=_+p[w],T=_-p[N];_=wv(E,_,T)}if(l){const w=m==="y"?"top":"left",N=m==="y"?"bottom":"right",E=x+p[w],T=x-p[N];x=wv(E,x,T)}const A=u.fn({...t,[v]:_,[m]:x});return{...A,data:{x:A.x-n,y:A.y-r,enabled:{[v]:s,[m]:l}}}}}},R9=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}=Si(e,t),p={x:n,y:r},m=Fr(a),v=O_(m);let _=p[v],x=p[m];const A=Si(u,t),w=typeof A=="number"?{mainAxis:A,crossAxis:0}:{mainAxis:0,crossAxis:0,...A};if(d){const T=v==="y"?"height":"width",R=s.reference[v]-s.floating[T]+w.mainAxis,C=s.reference[v]+s.reference[T]-w.mainAxis;_<R?_=R:_>C&&(_=C)}if(f){var N,E;const T=v==="y"?"width":"height",R=hO.has(xi(a)),C=s.reference[m]-s.floating[T]+(R&&((N=l.offset)==null?void 0:N[m])||0)+(R?0:w.crossAxis),I=s.reference[m]+s.reference[T]+(R?0:((E=l.offset)==null?void 0:E[m])||0)-(R?w.crossAxis:0);x<C?x=C:x>I&&(x=I)}return{[v]:_,[m]:x}}}},k9=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}=Si(e,t),p=await Fc(t,f),m=xi(a),v=Zs(a),_=Fr(a)==="y",{width:x,height:A}=s.floating;let w,N;m==="top"||m==="bottom"?(w=m,N=v===(await(l.isRTL==null?void 0:l.isRTL(u.floating))?"start":"end")?"left":"right"):(N=m,w=v==="end"?"top":"bottom");const E=A-p.top-p.bottom,T=x-p.left-p.right,R=fa(A-p[w],E),C=fa(x-p[N],T),I=!t.middlewareData.shift;let D=R,L=C;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(L=T),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(D=E),I&&!v){const K=Kn(p.left,0),W=Kn(p.right,0),J=Kn(p.top,0),le=Kn(p.bottom,0);_?L=x-2*(K!==0||W!==0?K+W:Kn(p.left,p.right)):D=A-2*(J!==0||le!==0?J+le:Kn(p.top,p.bottom))}await d({...t,availableWidth:L,availableHeight:D});const U=await l.getDimensions(u.floating);return x!==U.width||A!==U.height?{reset:{rects:!0}}:{}}}};function jh(){return typeof window<"u"}function Ys(e){return pO(e)?(e.nodeName||"").toLowerCase():"#document"}function Xn(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Xr(e){var t;return(t=(pO(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function pO(e){return jh()?e instanceof Node||e instanceof Xn(e).Node:!1}function Tr(e){return jh()?e instanceof Element||e instanceof Xn(e).Element:!1}function Wr(e){return jh()?e instanceof HTMLElement||e instanceof Xn(e).HTMLElement:!1}function yC(e){return!jh()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Xn(e).ShadowRoot}const N9=new Set(["inline","contents"]);function yu(e){const{overflow:t,overflowX:n,overflowY:r,display:a}=wr(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!N9.has(a)}const I9=new Set(["table","td","th"]);function O9(e){return I9.has(Ys(e))}const D9=[":popover-open",":modal"];function Ph(e){return D9.some(t=>{try{return e.matches(t)}catch{return!1}})}const L9=["transform","translate","scale","rotate","perspective"],j9=["transform","translate","scale","rotate","perspective","filter"],P9=["paint","layout","strict","content"];function j_(e){const t=P_(),n=Tr(e)?wr(e):e;return L9.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)||j9.some(r=>(n.willChange||"").includes(r))||P9.some(r=>(n.contain||"").includes(r))}function M9(e){let t=ha(e);for(;Wr(t)&&!Ds(t);){if(j_(t))return t;if(Ph(t))return null;t=ha(t)}return null}function P_(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const z9=new Set(["html","body","#document"]);function Ds(e){return z9.has(Ys(e))}function wr(e){return Xn(e).getComputedStyle(e)}function Mh(e){return Tr(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ha(e){if(Ys(e)==="html")return e;const t=e.assignedSlot||e.parentNode||yC(e)&&e.host||Xr(e);return yC(t)?t.host:t}function mO(e){const t=ha(e);return Ds(t)?e.ownerDocument?e.ownerDocument.body:e.body:Wr(t)&&yu(t)?t:mO(t)}function Hc(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const a=mO(e),s=a===((r=e.ownerDocument)==null?void 0:r.body),l=Xn(a);if(s){const u=Rv(l);return t.concat(l,l.visualViewport||[],yu(a)?a:[],u&&n?Hc(u):[])}return t.concat(a,Hc(a,[],n))}function Rv(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function gO(e){const t=wr(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const a=Wr(e),s=a?e.offsetWidth:n,l=a?e.offsetHeight:r,u=Xf(n)!==s||Xf(r)!==l;return u&&(n=s,r=l),{width:n,height:r,$:u}}function M_(e){return Tr(e)?e:e.contextElement}function As(e){const t=M_(e);if(!Wr(t))return Kr(1);const n=t.getBoundingClientRect(),{width:r,height:a,$:s}=gO(t);let l=(s?Xf(n.width):n.width)/r,u=(s?Xf(n.height):n.height)/a;return(!l||!Number.isFinite(l))&&(l=1),(!u||!Number.isFinite(u))&&(u=1),{x:l,y:u}}const B9=Kr(0);function yO(e){const t=Xn(e);return!P_()||!t.visualViewport?B9:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function V9(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Xn(e)?!1:t}function co(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const a=e.getBoundingClientRect(),s=M_(e);let l=Kr(1);t&&(r?Tr(r)&&(l=As(r)):l=As(e));const u=V9(s,n,r)?yO(s):Kr(0);let d=(a.left+u.x)/l.x,f=(a.top+u.y)/l.y,p=a.width/l.x,m=a.height/l.y;if(s){const v=Xn(s),_=r&&Tr(r)?Xn(r):r;let x=v,A=Rv(x);for(;A&&r&&_!==x;){const w=As(A),N=A.getBoundingClientRect(),E=wr(A),T=N.left+(A.clientLeft+parseFloat(E.paddingLeft))*w.x,R=N.top+(A.clientTop+parseFloat(E.paddingTop))*w.y;d*=w.x,f*=w.y,p*=w.x,m*=w.y,d+=T,f+=R,x=Xn(A),A=Rv(x)}}return Jf({width:p,height:m,x:d,y:f})}function zh(e,t){const n=Mh(e).scrollLeft;return t?t.left+n:co(Xr(e)).left+n}function vO(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-zh(e,n),a=n.top+t.scrollTop;return{x:r,y:a}}function U9(e){let{elements:t,rect:n,offsetParent:r,strategy:a}=e;const s=a==="fixed",l=Xr(r),u=t?Ph(t.floating):!1;if(r===l||u&&s)return n;let d={scrollLeft:0,scrollTop:0},f=Kr(1);const p=Kr(0),m=Wr(r);if((m||!m&&!s)&&((Ys(r)!=="body"||yu(l))&&(d=Mh(r)),Wr(r))){const _=co(r);f=As(r),p.x=_.x+r.clientLeft,p.y=_.y+r.clientTop}const v=l&&!m&&!s?vO(l,d):Kr(0);return{width:n.width*f.x,height:n.height*f.y,x:n.x*f.x-d.scrollLeft*f.x+p.x+v.x,y:n.y*f.y-d.scrollTop*f.y+p.y+v.y}}function F9(e){return Array.from(e.getClientRects())}function H9(e){const t=Xr(e),n=Mh(e),r=e.ownerDocument.body,a=Kn(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),s=Kn(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let l=-n.scrollLeft+zh(e);const u=-n.scrollTop;return wr(r).direction==="rtl"&&(l+=Kn(t.clientWidth,r.clientWidth)-a),{width:a,height:s,x:l,y:u}}const vC=25;function G9(e,t){const n=Xn(e),r=Xr(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=P_();(!p||p&&t==="fixed")&&(u=a.offsetLeft,d=a.offsetTop)}const f=zh(r);if(f<=0){const p=r.ownerDocument,m=p.body,v=getComputedStyle(m),_=p.compatMode==="CSS1Compat"&&parseFloat(v.marginLeft)+parseFloat(v.marginRight)||0,x=Math.abs(r.clientWidth-m.clientWidth-_);x<=vC&&(s-=x)}else f<=vC&&(s+=f);return{width:s,height:l,x:u,y:d}}const $9=new Set(["absolute","fixed"]);function K9(e,t){const n=co(e,!0,t==="fixed"),r=n.top+e.clientTop,a=n.left+e.clientLeft,s=Wr(e)?As(e):Kr(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 bC(e,t,n){let r;if(t==="viewport")r=G9(e,n);else if(t==="document")r=H9(Xr(e));else if(Tr(t))r=K9(t,n);else{const a=yO(e);r={x:t.x-a.x,y:t.y-a.y,width:t.width,height:t.height}}return Jf(r)}function bO(e,t){const n=ha(e);return n===t||!Tr(n)||Ds(n)?!1:wr(n).position==="fixed"||bO(n,t)}function q9(e,t){const n=t.get(e);if(n)return n;let r=Hc(e,[],!1).filter(u=>Tr(u)&&Ys(u)!=="body"),a=null;const s=wr(e).position==="fixed";let l=s?ha(e):e;for(;Tr(l)&&!Ds(l);){const u=wr(l),d=j_(l);!d&&u.position==="fixed"&&(a=null),(s?!d&&!a:!d&&u.position==="static"&&!!a&&$9.has(a.position)||yu(l)&&!d&&bO(e,l))?r=r.filter(p=>p!==l):a=u,l=ha(l)}return t.set(e,r),r}function W9(e){let{element:t,boundary:n,rootBoundary:r,strategy:a}=e;const l=[...n==="clippingAncestors"?Ph(t)?[]:q9(t,this._c):[].concat(n),r],u=l[0],d=l.reduce((f,p)=>{const m=bC(t,p,a);return f.top=Kn(m.top,f.top),f.right=fa(m.right,f.right),f.bottom=fa(m.bottom,f.bottom),f.left=Kn(m.left,f.left),f},bC(t,u,a));return{width:d.right-d.left,height:d.bottom-d.top,x:d.left,y:d.top}}function Z9(e){const{width:t,height:n}=gO(e);return{width:t,height:n}}function Y9(e,t,n){const r=Wr(t),a=Xr(t),s=n==="fixed",l=co(e,!0,s,t);let u={scrollLeft:0,scrollTop:0};const d=Kr(0);function f(){d.x=zh(a)}if(r||!r&&!s)if((Ys(t)!=="body"||yu(a))&&(u=Mh(t)),r){const _=co(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?vO(a,u):Kr(0),m=l.left+u.scrollLeft-d.x-p.x,v=l.top+u.scrollTop-d.y-p.y;return{x:m,y:v,width:l.width,height:l.height}}function dy(e){return wr(e).position==="static"}function _C(e,t){if(!Wr(e)||wr(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Xr(e)===n&&(n=n.ownerDocument.body),n}function _O(e,t){const n=Xn(e);if(Ph(e))return n;if(!Wr(e)){let a=ha(e);for(;a&&!Ds(a);){if(Tr(a)&&!dy(a))return a;a=ha(a)}return n}let r=_C(e,t);for(;r&&O9(r)&&dy(r);)r=_C(r,t);return r&&Ds(r)&&dy(r)&&!j_(r)?n:r||M9(e)||n}const X9=async function(e){const t=this.getOffsetParent||_O,n=this.getDimensions,r=await n(e.floating);return{reference:Y9(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Q9(e){return wr(e).direction==="rtl"}const J9={convertOffsetParentRelativeRectToViewportRelativeRect:U9,getDocumentElement:Xr,getClippingRect:W9,getOffsetParent:_O,getElementRects:X9,getClientRects:F9,getDimensions:Z9,getScale:As,isElement:Tr,isRTL:Q9};function EO(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function eW(e,t){let n=null,r;const a=Xr(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:m,width:v,height:_}=f;if(u||t(),!v||!_)return;const x=Qd(m),A=Qd(a.clientWidth-(p+v)),w=Qd(a.clientHeight-(m+_)),N=Qd(p),T={rootMargin:-x+"px "+-A+"px "+-w+"px "+-N+"px",threshold:Kn(0,fa(1,d))||1};let R=!0;function C(I){const D=I[0].intersectionRatio;if(D!==d){if(!R)return l();D?l(!1,D):r=setTimeout(()=>{l(!1,1e-7)},1e3)}D===1&&!EO(f,e.getBoundingClientRect())&&l(),R=!1}try{n=new IntersectionObserver(C,{...T,root:a.ownerDocument})}catch{n=new IntersectionObserver(C,T)}n.observe(e)}return l(!0),s}function tW(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=M_(e),p=a||s?[...f?Hc(f):[],...Hc(t)]:[];p.forEach(N=>{a&&N.addEventListener("scroll",n,{passive:!0}),s&&N.addEventListener("resize",n)});const m=f&&u?eW(f,n):null;let v=-1,_=null;l&&(_=new ResizeObserver(N=>{let[E]=N;E&&E.target===f&&_&&(_.unobserve(t),cancelAnimationFrame(v),v=requestAnimationFrame(()=>{var T;(T=_)==null||T.observe(t)})),n()}),f&&!d&&_.observe(f),_.observe(t));let x,A=d?co(e):null;d&&w();function w(){const N=co(e);A&&!EO(A,N)&&n(),A=N,x=requestAnimationFrame(w)}return n(),()=>{var N;p.forEach(E=>{a&&E.removeEventListener("scroll",n),s&&E.removeEventListener("resize",n)}),m?.(),(N=_)==null||N.disconnect(),_=null,d&&cancelAnimationFrame(x)}}const nW=w9,rW=C9,iW=x9,aW=k9,oW=A9,EC=S9,sW=R9,lW=(e,t,n)=>{const r=new Map,a={platform:J9,...n},s={...a.platform,_c:r};return E9(e,t,{...a,platform:s})};var cW=typeof document<"u",uW=function(){},Cf=cW?S.useLayoutEffect:uW;function eh(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(!eh(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)&&!eh(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function SO(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function SC(e,t){const n=SO(e);return Math.round(t*n)/n}function fy(e){const t=S.useRef(e);return Cf(()=>{t.current=e}),t}function dW(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,m]=S.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[v,_]=S.useState(r);eh(v,r)||_(r);const[x,A]=S.useState(null),[w,N]=S.useState(null),E=S.useCallback(G=>{G!==I.current&&(I.current=G,A(G))},[]),T=S.useCallback(G=>{G!==D.current&&(D.current=G,N(G))},[]),R=s||x,C=l||w,I=S.useRef(null),D=S.useRef(null),L=S.useRef(p),U=d!=null,K=fy(d),W=fy(a),J=fy(f),le=S.useCallback(()=>{if(!I.current||!D.current)return;const G={placement:t,strategy:n,middleware:v};W.current&&(G.platform=W.current),lW(I.current,D.current,G).then(me=>{const P={...me,isPositioned:J.current!==!1};Z.current&&!eh(L.current,P)&&(L.current=P,mo.flushSync(()=>{m(P)}))})},[v,t,n,W,J]);Cf(()=>{f===!1&&L.current.isPositioned&&(L.current.isPositioned=!1,m(G=>({...G,isPositioned:!1})))},[f]);const Z=S.useRef(!1);Cf(()=>(Z.current=!0,()=>{Z.current=!1}),[]),Cf(()=>{if(R&&(I.current=R),C&&(D.current=C),R&&C){if(K.current)return K.current(R,C,le);le()}},[R,C,le,K,U]);const ae=S.useMemo(()=>({reference:I,floating:D,setReference:E,setFloating:T}),[E,T]),z=S.useMemo(()=>({reference:R,floating:C}),[R,C]),X=S.useMemo(()=>{const G={position:n,left:0,top:0};if(!z.floating)return G;const me=SC(z.floating,p.x),P=SC(z.floating,p.y);return u?{...G,transform:"translate("+me+"px, "+P+"px)",...SO(z.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:me,top:P}},[n,u,z.floating,p.x,p.y]);return S.useMemo(()=>({...p,update:le,refs:ae,elements:z,floatingStyles:X}),[p,le,ae,z,X])}const fW=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?EC({element:r.current,padding:a}).fn(n):{}:r?EC({element:r,padding:a}).fn(n):{}}}},hW=(e,t)=>({...nW(e),options:[e,t]}),pW=(e,t)=>({...rW(e),options:[e,t]}),mW=(e,t)=>({...sW(e),options:[e,t]}),gW=(e,t)=>({...iW(e),options:[e,t]}),yW=(e,t)=>({...aW(e),options:[e,t]}),vW=(e,t)=>({...oW(e),options:[e,t]}),bW=(e,t)=>({...fW(e),options:[e,t]});var _W="Arrow",xO=S.forwardRef((e,t)=>{const{children:n,width:r=10,height:a=5,...s}=e;return y.jsx($e.svg,{...s,ref:t,width:r,height:a,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:y.jsx("polygon",{points:"0,0 30,0 15,10"})})});xO.displayName=_W;var EW=xO;function SW(e){const[t,n]=S.useState(void 0);return un(()=>{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 z_="Popper",[AO,TO]=au(z_),[xW,wO]=AO(z_),CO=e=>{const{__scopePopper:t,children:n}=e,[r,a]=S.useState(null);return y.jsx(xW,{scope:t,anchor:r,onAnchorChange:a,children:n})};CO.displayName=z_;var RO="PopperAnchor",kO=S.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...a}=e,s=wO(RO,n),l=S.useRef(null),u=Ct(t,l),d=S.useRef(null);return S.useEffect(()=>{const f=d.current;d.current=r?.current||l.current,f!==d.current&&s.onAnchorChange(d.current)}),r?null:y.jsx($e.div,{...a,ref:u})});kO.displayName=RO;var B_="PopperContent",[AW,TW]=AO(B_),NO=S.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:m="partial",hideWhenDetached:v=!1,updatePositionStrategy:_="optimized",onPlaced:x,...A}=e,w=wO(B_,n),[N,E]=S.useState(null),T=Ct(t,fe=>E(fe)),[R,C]=S.useState(null),I=SW(R),D=I?.width??0,L=I?.height??0,U=r+(s!=="center"?"-"+s:""),K=typeof p=="number"?p:{top:0,right:0,bottom:0,left:0,...p},W=Array.isArray(f)?f:[f],J=W.length>0,le={padding:K,boundary:W.filter(CW),altBoundary:J},{refs:Z,floatingStyles:ae,placement:z,isPositioned:X,middlewareData:G}=dW({strategy:"fixed",placement:U,whileElementsMounted:(...fe)=>tW(...fe,{animationFrame:_==="always"}),elements:{reference:w.anchor},middleware:[hW({mainAxis:a+L,alignmentAxis:l}),d&&pW({mainAxis:!0,crossAxis:!1,limiter:m==="partial"?mW():void 0,...le}),d&&gW({...le}),yW({...le,apply:({elements:fe,rects:xe,availableWidth:je,availableHeight:Ve})=>{const{width:Xe,height:nt}=xe.reference,Xt=fe.floating.style;Xt.setProperty("--radix-popper-available-width",`${je}px`),Xt.setProperty("--radix-popper-available-height",`${Ve}px`),Xt.setProperty("--radix-popper-anchor-width",`${Xe}px`),Xt.setProperty("--radix-popper-anchor-height",`${nt}px`)}}),R&&bW({element:R,padding:u}),RW({arrowWidth:D,arrowHeight:L}),v&&vW({strategy:"referenceHidden",...le})]}),[me,P]=DO(z),ne=Ar(x);un(()=>{X&&ne?.()},[X,ne]);const $=G.arrow?.x,re=G.arrow?.y,ue=G.arrow?.centerOffset!==0,[pe,be]=S.useState();return un(()=>{N&&be(window.getComputedStyle(N).zIndex)},[N]),y.jsx("div",{ref:Z.setFloating,"data-radix-popper-content-wrapper":"",style:{...ae,transform:X?ae.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:pe,"--radix-popper-transform-origin":[G.transformOrigin?.x,G.transformOrigin?.y].join(" "),...G.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:y.jsx(AW,{scope:n,placedSide:me,onArrowChange:C,arrowX:$,arrowY:re,shouldHideArrow:ue,children:y.jsx($e.div,{"data-side":me,"data-align":P,...A,ref:T,style:{...A.style,animation:X?void 0:"none"}})})})});NO.displayName=B_;var IO="PopperArrow",wW={top:"bottom",right:"left",bottom:"top",left:"right"},OO=S.forwardRef(function(t,n){const{__scopePopper:r,...a}=t,s=TW(IO,r),l=wW[s.placedSide];return y.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:y.jsx(EW,{...a,ref:n,style:{...a.style,display:"block"}})})});OO.displayName=IO;function CW(e){return e!==null}var RW=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]=DO(n),m={start:"0%",center:"50%",end:"100%"}[p],v=(a.arrow?.x??0)+u/2,_=(a.arrow?.y??0)+d/2;let x="",A="";return f==="bottom"?(x=l?m:`${v}px`,A=`${-d}px`):f==="top"?(x=l?m:`${v}px`,A=`${r.floating.height+d}px`):f==="right"?(x=`${-d}px`,A=l?m:`${_}px`):f==="left"&&(x=`${r.floating.width+d}px`,A=l?m:`${_}px`),{data:{x,y:A}}}});function DO(e){const[t,n="center"]=e.split("-");return[t,n]}var kW=CO,NW=kO,IW=NO,OW=OO;function DW(e){const t=S.useRef({value:e,previous:e});return S.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var LO=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"}),LW="VisuallyHidden",V_=S.forwardRef((e,t)=>y.jsx($e.span,{...e,ref:t,style:{...LO,...e.style}}));V_.displayName=LW;var jW=[" ","Enter","ArrowUp","ArrowDown"],PW=[" ","Enter"],uo="Select",[Bh,Vh,MW]=dO(uo),[Xs]=au(uo,[MW,TO]),Uh=TO(),[zW,ba]=Xs(uo),[BW,VW]=Xs(uo),jO=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:a,onOpenChange:s,value:l,defaultValue:u,onValueChange:d,dir:f,name:p,autoComplete:m,disabled:v,required:_,form:x}=e,A=Uh(t),[w,N]=S.useState(null),[E,T]=S.useState(null),[R,C]=S.useState(!1),I=c9(f),[D,L]=zf({prop:r,defaultProp:a??!1,onChange:s,caller:uo}),[U,K]=zf({prop:l,defaultProp:u,onChange:d,caller:uo}),W=S.useRef(null),J=w?x||!!w.closest("form"):!0,[le,Z]=S.useState(new Set),ae=Array.from(le).map(z=>z.props.value).join(";");return y.jsx(kW,{...A,children:y.jsxs(zW,{required:_,scope:t,trigger:w,onTriggerChange:N,valueNode:E,onValueNodeChange:T,valueNodeHasChildren:R,onValueNodeHasChildrenChange:C,contentId:hr(),value:U,onValueChange:K,open:D,onOpenChange:L,dir:I,triggerPointerDownPosRef:W,disabled:v,children:[y.jsx(Bh.Provider,{scope:t,children:y.jsx(BW,{scope:e.__scopeSelect,onNativeOptionAdd:S.useCallback(z=>{Z(X=>new Set(X).add(z))},[]),onNativeOptionRemove:S.useCallback(z=>{Z(X=>{const G=new Set(X);return G.delete(z),G})},[]),children:n})}),J?y.jsxs(oD,{"aria-hidden":!0,required:_,tabIndex:-1,name:p,autoComplete:m,value:U,onChange:z=>K(z.target.value),disabled:v,form:x,children:[U===void 0?y.jsx("option",{value:""}):null,Array.from(le)]},ae):null]})})};jO.displayName=uo;var PO="SelectTrigger",MO=S.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...a}=e,s=Uh(n),l=ba(PO,n),u=l.disabled||r,d=Ct(t,l.onTriggerChange),f=Vh(n),p=S.useRef("touch"),[m,v,_]=lD(A=>{const w=f().filter(T=>!T.disabled),N=w.find(T=>T.value===l.value),E=cD(w,A,N);E!==void 0&&l.onValueChange(E.value)}),x=A=>{u||(l.onOpenChange(!0),_()),A&&(l.triggerPointerDownPosRef.current={x:Math.round(A.pageX),y:Math.round(A.pageY)})};return y.jsx(NW,{asChild:!0,...s,children:y.jsx($e.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":sD(l.value)?"":void 0,...a,ref:d,onClick:Je(a.onClick,A=>{A.currentTarget.focus(),p.current!=="mouse"&&x(A)}),onPointerDown:Je(a.onPointerDown,A=>{p.current=A.pointerType;const w=A.target;w.hasPointerCapture(A.pointerId)&&w.releasePointerCapture(A.pointerId),A.button===0&&A.ctrlKey===!1&&A.pointerType==="mouse"&&(x(A),A.preventDefault())}),onKeyDown:Je(a.onKeyDown,A=>{const w=m.current!=="";!(A.ctrlKey||A.altKey||A.metaKey)&&A.key.length===1&&v(A.key),!(w&&A.key===" ")&&jW.includes(A.key)&&(x(),A.preventDefault())})})})});MO.displayName=PO;var zO="SelectValue",BO=S.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:a,children:s,placeholder:l="",...u}=e,d=ba(zO,n),{onValueNodeHasChildrenChange:f}=d,p=s!==void 0,m=Ct(t,d.onValueNodeChange);return un(()=>{f(p)},[f,p]),y.jsx($e.span,{...u,ref:m,style:{pointerEvents:"none"},children:sD(d.value)?y.jsx(y.Fragment,{children:l}):s})});BO.displayName=zO;var UW="SelectIcon",VO=S.forwardRef((e,t)=>{const{__scopeSelect:n,children:r,...a}=e;return y.jsx($e.span,{"aria-hidden":!0,...a,ref:t,children:r||"▼"})});VO.displayName=UW;var FW="SelectPortal",UO=e=>y.jsx(Ah,{asChild:!0,...e});UO.displayName=FW;var fo="SelectContent",FO=S.forwardRef((e,t)=>{const n=ba(fo,e.__scopeSelect),[r,a]=S.useState();if(un(()=>{a(new DocumentFragment)},[]),!n.open){const s=r;return s?mo.createPortal(y.jsx(HO,{scope:e.__scopeSelect,children:y.jsx(Bh.Slot,{scope:e.__scopeSelect,children:y.jsx("div",{children:e.children})})}),s):null}return y.jsx(GO,{...e,ref:t})});FO.displayName=fo;var _r=10,[HO,_a]=Xs(fo),HW="SelectContentImpl",GW=Ns("SelectContent.RemoveScroll"),GO=S.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:m,collisionBoundary:v,collisionPadding:_,sticky:x,hideWhenDetached:A,avoidCollisions:w,...N}=e,E=ba(fo,n),[T,R]=S.useState(null),[C,I]=S.useState(null),D=Ct(t,fe=>R(fe)),[L,U]=S.useState(null),[K,W]=S.useState(null),J=Vh(n),[le,Z]=S.useState(!1),ae=S.useRef(!1);S.useEffect(()=>{if(T)return v1(T)},[T]),c1();const z=S.useCallback(fe=>{const[xe,...je]=J().map(nt=>nt.ref.current),[Ve]=je.slice(-1),Xe=document.activeElement;for(const nt of fe)if(nt===Xe||(nt?.scrollIntoView({block:"nearest"}),nt===xe&&C&&(C.scrollTop=0),nt===Ve&&C&&(C.scrollTop=C.scrollHeight),nt?.focus(),document.activeElement!==Xe))return},[J,C]),X=S.useCallback(()=>z([L,T]),[z,L,T]);S.useEffect(()=>{le&&X()},[le,X]);const{onOpenChange:G,triggerPointerDownPosRef:me}=E;S.useEffect(()=>{if(T){let fe={x:0,y:0};const xe=Ve=>{fe={x:Math.abs(Math.round(Ve.pageX)-(me.current?.x??0)),y:Math.abs(Math.round(Ve.pageY)-(me.current?.y??0))}},je=Ve=>{fe.x<=10&&fe.y<=10?Ve.preventDefault():T.contains(Ve.target)||G(!1),document.removeEventListener("pointermove",xe),me.current=null};return me.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,me]),S.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,ne]=lD(fe=>{const xe=J().filter(Xe=>!Xe.disabled),je=xe.find(Xe=>Xe.ref.current===document.activeElement),Ve=cD(xe,fe,je);Ve&&setTimeout(()=>Ve.ref.current.focus())}),$=S.useCallback((fe,xe,je)=>{const Ve=!ae.current&&!je;(E.value!==void 0&&E.value===xe||Ve)&&(U(fe),Ve&&(ae.current=!0))},[E.value]),re=S.useCallback(()=>T?.focus(),[T]),ue=S.useCallback((fe,xe,je)=>{const Ve=!ae.current&&!je;(E.value!==void 0&&E.value===xe||Ve)&&W(fe)},[E.value]),pe=r==="popper"?kv:$O,be=pe===kv?{side:u,sideOffset:d,align:f,alignOffset:p,arrowPadding:m,collisionBoundary:v,collisionPadding:_,sticky:x,hideWhenDetached:A,avoidCollisions:w}:{};return y.jsx(HO,{scope:n,content:T,viewport:C,onViewportChange:I,itemRefCallback:$,selectedItem:L,onItemLeave:re,itemTextRefCallback:ue,focusSelectedItem:X,selectedItemText:K,position:r,isPositioned:le,searchRef:P,children:y.jsx(Rb,{as:GW,allowPinchZoom:!0,children:y.jsx(Cb,{asChild:!0,trapped:E.open,onMountAutoFocus:fe=>{fe.preventDefault()},onUnmountAutoFocus:Je(a,fe=>{E.trigger?.focus({preventScroll:!0}),fe.preventDefault()}),children:y.jsx(xh,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:s,onPointerDownOutside:l,onFocusOutside:fe=>fe.preventDefault(),onDismiss:()=>E.onOpenChange(!1),children:y.jsx(pe,{role:"listbox",id:E.contentId,"data-state":E.open?"open":"closed",dir:E.dir,onContextMenu:fe=>fe.preventDefault(),...N,...be,onPlaced:()=>Z(!0),ref:D,style:{display:"flex",flexDirection:"column",outline:"none",...N.style},onKeyDown:Je(N.onKeyDown,fe=>{const xe=fe.ctrlKey||fe.altKey||fe.metaKey;if(fe.key==="Tab"&&fe.preventDefault(),!xe&&fe.key.length===1&&ne(fe.key),["ArrowUp","ArrowDown","Home","End"].includes(fe.key)){let Ve=J().filter(Xe=>!Xe.disabled).map(Xe=>Xe.ref.current);if(["ArrowUp","End"].includes(fe.key)&&(Ve=Ve.slice().reverse()),["ArrowUp","ArrowDown"].includes(fe.key)){const Xe=fe.target,nt=Ve.indexOf(Xe);Ve=Ve.slice(nt+1)}setTimeout(()=>z(Ve)),fe.preventDefault()}})})})})})})});GO.displayName=HW;var $W="SelectItemAlignedPosition",$O=S.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:r,...a}=e,s=ba(fo,n),l=_a(fo,n),[u,d]=S.useState(null),[f,p]=S.useState(null),m=Ct(t,D=>p(D)),v=Vh(n),_=S.useRef(!1),x=S.useRef(!0),{viewport:A,selectedItem:w,selectedItemText:N,focusSelectedItem:E}=l,T=S.useCallback(()=>{if(s.trigger&&s.valueNode&&u&&f&&A&&w&&N){const D=s.trigger.getBoundingClientRect(),L=f.getBoundingClientRect(),U=s.valueNode.getBoundingClientRect(),K=N.getBoundingClientRect();if(s.dir!=="rtl"){const Xe=K.left-L.left,nt=U.left-Xe,Xt=D.left-nt,Cn=D.width+Xt,Ci=Math.max(Cn,L.width),Ta=window.innerWidth-_r,fn=dC(nt,[_r,Math.max(_r,Ta-Ci)]);u.style.minWidth=Cn+"px",u.style.left=fn+"px"}else{const Xe=L.right-K.right,nt=window.innerWidth-U.right-Xe,Xt=window.innerWidth-D.right-nt,Cn=D.width+Xt,Ci=Math.max(Cn,L.width),Ta=window.innerWidth-_r,fn=dC(nt,[_r,Math.max(_r,Ta-Ci)]);u.style.minWidth=Cn+"px",u.style.right=fn+"px"}const W=v(),J=window.innerHeight-_r*2,le=A.scrollHeight,Z=window.getComputedStyle(f),ae=parseInt(Z.borderTopWidth,10),z=parseInt(Z.paddingTop,10),X=parseInt(Z.borderBottomWidth,10),G=parseInt(Z.paddingBottom,10),me=ae+z+le+G+X,P=Math.min(w.offsetHeight*5,me),ne=window.getComputedStyle(A),$=parseInt(ne.paddingTop,10),re=parseInt(ne.paddingBottom,10),ue=D.top+D.height/2-_r,pe=J-ue,be=w.offsetHeight/2,fe=w.offsetTop+be,xe=ae+z+fe,je=me-xe;if(xe<=ue){const Xe=W.length>0&&w===W[W.length-1].ref.current;u.style.bottom="0px";const nt=f.clientHeight-A.offsetTop-A.offsetHeight,Xt=Math.max(pe,be+(Xe?re:0)+nt+X),Cn=xe+Xt;u.style.height=Cn+"px"}else{const Xe=W.length>0&&w===W[0].ref.current;u.style.top="0px";const Xt=Math.max(ue,ae+A.offsetTop+(Xe?$:0)+be)+je;u.style.height=Xt+"px",A.scrollTop=xe-ue+A.offsetTop}u.style.margin=`${_r}px 0`,u.style.minHeight=P+"px",u.style.maxHeight=J+"px",r?.(),requestAnimationFrame(()=>_.current=!0)}},[v,s.trigger,s.valueNode,u,f,A,w,N,s.dir,r]);un(()=>T(),[T]);const[R,C]=S.useState();un(()=>{f&&C(window.getComputedStyle(f).zIndex)},[f]);const I=S.useCallback(D=>{D&&x.current===!0&&(T(),E?.(),x.current=!1)},[T,E]);return y.jsx(qW,{scope:n,contentWrapper:u,shouldExpandOnScrollRef:_,onScrollButtonChange:I,children:y.jsx("div",{ref:d,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:R},children:y.jsx($e.div,{...a,ref:m,style:{boxSizing:"border-box",maxHeight:"100%",...a.style}})})})});$O.displayName=$W;var KW="SelectPopperPosition",kv=S.forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:a=_r,...s}=e,l=Uh(n);return y.jsx(IW,{...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)"}})});kv.displayName=KW;var[qW,U_]=Xs(fo,{}),Nv="SelectViewport",KO=S.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:r,...a}=e,s=_a(Nv,n),l=U_(Nv,n),u=Ct(t,s.onViewportChange),d=S.useRef(0);return y.jsxs(y.Fragment,{children:[y.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}),y.jsx(Bh.Slot,{scope:n,children:y.jsx($e.div,{"data-radix-select-viewport":"",role:"presentation",...a,ref:u,style:{position:"relative",flex:1,overflow:"hidden auto",...a.style},onScroll:Je(a.onScroll,f=>{const p=f.currentTarget,{contentWrapper:m,shouldExpandOnScrollRef:v}=l;if(v?.current&&m){const _=Math.abs(d.current-p.scrollTop);if(_>0){const x=window.innerHeight-_r*2,A=parseFloat(m.style.minHeight),w=parseFloat(m.style.height),N=Math.max(A,w);if(N<x){const E=N+_,T=Math.min(x,E),R=E-T;m.style.height=T+"px",m.style.bottom==="0px"&&(p.scrollTop=R>0?R:0,m.style.justifyContent="flex-end")}}}d.current=p.scrollTop})})})]})});KO.displayName=Nv;var qO="SelectGroup",[WW,ZW]=Xs(qO),WO=S.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,a=hr();return y.jsx(WW,{scope:n,id:a,children:y.jsx($e.div,{role:"group","aria-labelledby":a,...r,ref:t})})});WO.displayName=qO;var ZO="SelectLabel",YO=S.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,a=ZW(ZO,n);return y.jsx($e.div,{id:a.id,...r,ref:t})});YO.displayName=ZO;var th="SelectItem",[YW,XO]=Xs(th),QO=S.forwardRef((e,t)=>{const{__scopeSelect:n,value:r,disabled:a=!1,textValue:s,...l}=e,u=ba(th,n),d=_a(th,n),f=u.value===r,[p,m]=S.useState(s??""),[v,_]=S.useState(!1),x=Ct(t,E=>d.itemRefCallback?.(E,r,a)),A=hr(),w=S.useRef("touch"),N=()=>{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 y.jsx(YW,{scope:n,value:r,disabled:a,textId:A,isSelected:f,onItemTextChange:S.useCallback(E=>{m(T=>T||(E?.textContent??"").trim())},[]),children:y.jsx(Bh.ItemSlot,{scope:n,value:r,disabled:a,textValue:p,children:y.jsx($e.div,{role:"option","aria-labelledby":A,"data-highlighted":v?"":void 0,"aria-selected":f&&v,"data-state":f?"checked":"unchecked","aria-disabled":a||void 0,"data-disabled":a?"":void 0,tabIndex:a?void 0:-1,...l,ref:x,onFocus:Je(l.onFocus,()=>_(!0)),onBlur:Je(l.onBlur,()=>_(!1)),onClick:Je(l.onClick,()=>{w.current!=="mouse"&&N()}),onPointerUp:Je(l.onPointerUp,()=>{w.current==="mouse"&&N()}),onPointerDown:Je(l.onPointerDown,E=>{w.current=E.pointerType}),onPointerMove:Je(l.onPointerMove,E=>{w.current=E.pointerType,a?d.onItemLeave?.():w.current==="mouse"&&E.currentTarget.focus({preventScroll:!0})}),onPointerLeave:Je(l.onPointerLeave,E=>{E.currentTarget===document.activeElement&&d.onItemLeave?.()}),onKeyDown:Je(l.onKeyDown,E=>{d.searchRef?.current!==""&&E.key===" "||(PW.includes(E.key)&&N(),E.key===" "&&E.preventDefault())})})})})});QO.displayName=th;var gc="SelectItemText",JO=S.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:a,...s}=e,l=ba(gc,n),u=_a(gc,n),d=XO(gc,n),f=VW(gc,n),[p,m]=S.useState(null),v=Ct(t,N=>m(N),d.onItemTextChange,N=>u.itemTextRefCallback?.(N,d.value,d.disabled)),_=p?.textContent,x=S.useMemo(()=>y.jsx("option",{value:d.value,disabled:d.disabled,children:_},d.value),[d.disabled,d.value,_]),{onNativeOptionAdd:A,onNativeOptionRemove:w}=f;return un(()=>(A(x),()=>w(x)),[A,w,x]),y.jsxs(y.Fragment,{children:[y.jsx($e.span,{id:d.textId,...s,ref:v}),d.isSelected&&l.valueNode&&!l.valueNodeHasChildren?mo.createPortal(s.children,l.valueNode):null]})});JO.displayName=gc;var eD="SelectItemIndicator",tD=S.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return XO(eD,n).isSelected?y.jsx($e.span,{"aria-hidden":!0,...r,ref:t}):null});tD.displayName=eD;var Iv="SelectScrollUpButton",nD=S.forwardRef((e,t)=>{const n=_a(Iv,e.__scopeSelect),r=U_(Iv,e.__scopeSelect),[a,s]=S.useState(!1),l=Ct(t,r.onScrollButtonChange);return un(()=>{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?y.jsx(iD,{...e,ref:l,onAutoScroll:()=>{const{viewport:u,selectedItem:d}=n;u&&d&&(u.scrollTop=u.scrollTop-d.offsetHeight)}}):null});nD.displayName=Iv;var Ov="SelectScrollDownButton",rD=S.forwardRef((e,t)=>{const n=_a(Ov,e.__scopeSelect),r=U_(Ov,e.__scopeSelect),[a,s]=S.useState(!1),l=Ct(t,r.onScrollButtonChange);return un(()=>{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?y.jsx(iD,{...e,ref:l,onAutoScroll:()=>{const{viewport:u,selectedItem:d}=n;u&&d&&(u.scrollTop=u.scrollTop+d.offsetHeight)}}):null});rD.displayName=Ov;var iD=S.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...a}=e,s=_a("SelectScrollButton",n),l=S.useRef(null),u=Vh(n),d=S.useCallback(()=>{l.current!==null&&(window.clearInterval(l.current),l.current=null)},[]);return S.useEffect(()=>()=>d(),[d]),un(()=>{u().find(p=>p.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:"nearest"})},[u]),y.jsx($e.div,{"aria-hidden":!0,...a,ref:t,style:{flexShrink:0,...a.style},onPointerDown:Je(a.onPointerDown,()=>{l.current===null&&(l.current=window.setInterval(r,50))}),onPointerMove:Je(a.onPointerMove,()=>{s.onItemLeave?.(),l.current===null&&(l.current=window.setInterval(r,50))}),onPointerLeave:Je(a.onPointerLeave,()=>{d()})})}),XW="SelectSeparator",aD=S.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return y.jsx($e.div,{"aria-hidden":!0,...r,ref:t})});aD.displayName=XW;var Dv="SelectArrow",QW=S.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,a=Uh(n),s=ba(Dv,n),l=_a(Dv,n);return s.open&&l.position==="popper"?y.jsx(OW,{...a,...r,ref:t}):null});QW.displayName=Dv;var JW="SelectBubbleInput",oD=S.forwardRef(({__scopeSelect:e,value:t,...n},r)=>{const a=S.useRef(null),s=Ct(r,a),l=DW(t);return S.useEffect(()=>{const u=a.current;if(!u)return;const d=window.HTMLSelectElement.prototype,p=Object.getOwnPropertyDescriptor(d,"value").set;if(l!==t&&p){const m=new Event("change",{bubbles:!0});p.call(u,t),u.dispatchEvent(m)}},[l,t]),y.jsx($e.select,{...n,style:{...LO,...n.style},ref:s,defaultValue:t})});oD.displayName=JW;function sD(e){return e===""||e===void 0}function lD(e){const t=Ar(e),n=S.useRef(""),r=S.useRef(0),a=S.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=S.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return S.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,a,s]}function cD(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=eZ(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 eZ(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var tZ=jO,nZ=MO,rZ=BO,iZ=VO,aZ=UO,oZ=FO,sZ=KO,lZ=WO,cZ=YO,uZ=QO,dZ=JO,fZ=tD,hZ=nD,pZ=rD,mZ=aD;const gZ=tZ,yZ=lZ,vZ=rZ,bZ=({validationStyleEnabled:e=!1,className:t,children:n,...r})=>y.jsxs(nZ,{className:ve("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,y.jsx(iZ,{asChild:!0,children:y.jsx(JF,{className:"size-4 opacity-50"})})]}),uD=({className:e,...t})=>y.jsx(hZ,{className:ve("flex cursor-default items-center justify-center py-1",e),...t,children:y.jsx(XF,{})}),dD=({className:e,...t})=>y.jsx(pZ,{className:ve("flex cursor-default items-center justify-center py-1",e),...t,children:y.jsx(Vk,{})}),_Z=({className:e,children:t,position:n="popper",...r})=>y.jsx(aZ,{children:y.jsxs(oZ,{className:ve("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:[y.jsx(uD,{}),y.jsx(sZ,{className:ve("p-1",n==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t}),y.jsx(dD,{})]})}),EZ=({className:e,...t})=>y.jsx(cZ,{className:ve("px-1 py-0.5 text-sm font-semibold",e),...t}),SZ=({className:e,children:t,...n})=>y.jsxs(uZ,{className:ve("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:[y.jsx("span",{className:"absolute right-2 flex size-3.5 items-center justify-center",children:y.jsx(fZ,{children:y.jsx(Us,{className:"size-4"})})}),y.jsx(dZ,{children:t})]}),xZ=({className:e,...t})=>y.jsx(mZ,{className:ve("-mx-1 my-1 h-px bg-red-300",e),...t}),Re=gZ;Re.Group=yZ;Re.Value=vZ;Re.Trigger=bZ;Re.ScrollUpButton=uD;Re.ScrollDownButton=dD;Re.Content=_Z;Re.Label=EZ;Re.Item=SZ;Re.Separator=xZ;const AZ=e=>e?.getAttribute("aria-selected")==="true",fD=(e,t=AZ,n=!1)=>{const[r,a]=S.useState(null),[s,l]=S.useState(null),u=e.current.length;return S.useEffect(()=>{const d=()=>{let A=null;if(s?A=s:A=e.current.find(t)??null,!A){a(E=>({left:0,width:0,...E,opacity:0}));return}const w=A.offsetLeft,N=A.offsetWidth;a({left:w,width:N,opacity:1})};d(),window.addEventListener("resize",d),window.addEventListener("DOMContentLoaded",d);const f=[];e.current.forEach(A=>{if(A){const w=new MutationObserver(N=>{for(const E of N)if(E.type==="attributes"&&E.attributeName==="aria-selected"){d();break}});w.observe(A,{attributes:!0,attributeFilter:["aria-selected"]}),f.push(w)}});const p=[],m=A=>{if(!A)return;const w=new ResizeObserver(()=>{d()});w.observe(A),p.push(w)},v=e.current.find(t)??null;v&&m(v),s&&m(s);const _=A=>{l(A.currentTarget)},x=()=>{l(null)};return n&&e.current.forEach(A=>{A?.addEventListener("mouseenter",_,{passive:!0}),A?.addEventListener("mouseleave",x,{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",x)})}},[e,t,s,u]),{choiceIndicatorPosition:r}},TZ=[{content:"Off",value:!1},{content:"On",value:!0}];var vu=(e=>(e.PRIMARY="primary",e.SECONDARY="secondary",e.DESTRUCTIVE="destructive",e.NEUTRAL="neutral",e.LIGHT="light",e.DARK="dark",e.TEXT="text",e))(vu||{});const wZ=wn("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 bu=(e=>(e.SM="sm",e.MD="md",e.LG="lg",e))(bu||{});const CZ=wn("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"}}),RZ=wn("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"}}}),_u=({choices:e=TZ,value:t,defaultValue:n,onChange:r,color:a="primary",size:s="md",className:l})=>{const[u,d]=S.useState(t??n??e[0].value),f=S.useRef([]),p=S.useRef(null),{choiceIndicatorPosition:m}=fD(f),v=_=>{d(_),r?.(_)};return S.useEffect(()=>{t!==void 0&&d(t)},[t]),y.jsx("div",{className:wZ({color:a,className:l}),role:"tablist",children:y.jsxs("div",{className:"relative flex size-full flex-row items-center justify-center",children:[e.map((_,x)=>{const{content:A,value:w,...N}=_,E=typeof w=="string"||typeof w=="number",T=w===u;return S.createElement("button",{...N,className:ve(CZ({size:s})),key:E?w:x,role:"tab",onClick:()=>v(w),"aria-selected":T,disabled:T,ref:R=>{f.current[x]=R}},A)}),m&&y.jsx("div",{className:ve(RZ({color:a})),style:m,ref:p})]})})};function hD(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 kZ=class extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}};const NZ={};function pD(e){return NZ}function IZ(e,t){return typeof t=="bigint"?t.toString():t}const mD="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function Jd(e){return typeof e=="string"?e:e?.message}function gD(e,t,n){const r={...e,path:e.path??[]};if(!e.message){const a=Jd(e.inst?._zod.def?.error?.(e))??Jd(t?.error?.(e))??Jd(n.customError?.(e))??Jd(n.localeError?.(e))??"Invalid input";r.message=a}return delete r.inst,delete r.continue,t?.reportInput||delete r.input,r}const yD=(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,IZ,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},OZ=hD("$ZodError",yD),vD=hD("$ZodError",yD,{Parent:Error}),DZ=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 kZ;if(l.issues.length){const u=new(a?.Err??e)(l.issues.map(d=>gD(d,s,pD())));throw mD(u,a?.callee),u}return l.value},LZ=DZ(vD),jZ=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=>gD(d,s,pD())));throw mD(u,a?.callee),u}return l.value},PZ=jZ(vD);function xC(e,t){try{var n=e()}catch(r){return t(r)}return n&&n.then?n.then(void 0,t):n}function MZ(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(m){return e.push(m)})}),t){var d=n[l].types,f=d&&d[r.code];n[l]=R_(l,t,n,a,f?[].concat(f,r.message):r.message)}e.shift()}return n}function zZ(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(m){return e.push(m)})}),t){var d=n[l].types,f=d&&d[r.code];n[l]=R_(l,t,n,a,f?[].concat(f,r.message):r.message)}e.shift()}return n}function BZ(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(xC(function(){return Promise.resolve(e[n.mode==="sync"?"parse":"parseAsync"](r,t)).then(function(l){return s.shouldUseNativeValidation&&Av({},s),{errors:{},values:n.raw?Object.assign({},r):l}})},function(l){if((function(u){return Array.isArray(u?.issues)})(l))return{values:{},errors:oC(MZ(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(xC(function(){return Promise.resolve((n.mode==="sync"?LZ:PZ)(e,r,t)).then(function(l){return s.shouldUseNativeValidation&&Av({},s),{errors:{},values:n.raw?Object.assign({},r):l}})},function(l){if((function(u){return u instanceof OZ})(l))return{values:{},errors:oC(zZ(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 hy=async e=>e&&typeof e.then=="function"?await e:e,VZ=({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 hy(t?.(f)),p.success?await hy(n?.(p.data)):await hy(r?.(new Error(p.error.issues.map(m=>m.message).join(", "))))};return y.jsx(Cq,{...u,children:y.jsx("form",{className:ve("flex size-full flex-col gap-y-6",a),onSubmit:u.handleSubmit(d),autoComplete:l?"on":"off",noValidate:!0,children:s})})},UZ=(e,t)=>{const n=Kq({resolver:BZ(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}},FZ=e=>{const{error:t,formItemId:n,formDescriptionId:r,formMessageId:a}=va();return y.jsx(A2,{id:n,"aria-describedby":t?`${r} ${a}`:`${r}`,"aria-invalid":!!t,...e})},HZ=e=>{const{formDescriptionId:t}=va();return y.jsx("p",{className:"text-neutral text-sm",id:t,...e})},GZ=({children:e,...t})=>{const{error:n,formMessageId:r}=va(),a=n?String(n?.message??""):e;return a?y.jsx("p",{className:"text-error text-xs font-medium",role:"alert",id:r,...t,children:a}):null},Fh=({label:e,description:t,isRequired:n,info:r,children:a,showErrorMessage:s=!0,htmlFor:l})=>y.jsxs(Ge.Item,{className:"flex w-full flex-col gap-2 p-2",children:[(t||e)&&y.jsxs("div",{className:"flex flex-col gap-1 p-1 leading-none",children:[e&&y.jsx(uO,{isRequired:n,info:r,htmlFor:l,children:e}),t&&y.jsx(Ge.Description,{children:t})]}),y.jsx(Ge.Control,{children:a}),s&&y.jsx(Ge.Message,{"data-testid":"error-message"})]}),$Z=({field:e,name:t,label:n,Element:r,isRequired:a=!1,info:s,description:l,showErrorMessage:u=!0,...d})=>{const{error:f}=va();return y.jsx(Fh,{htmlFor:t,label:n,description:l,isRequired:a,info:s,showErrorMessage:u,"aria-invalid":!!f,children:y.jsx(r,{"data-testid":"element",id:t,...e,...d,children:d.children})})},Ea=e=>{const{control:t}=ya();return y.jsx(Ge.Field,{control:t,name:e.name,render:({field:n})=>y.jsx($Z,{...e,field:n})})},KZ=e=>y.jsx(Ea,{id:e.name,"data-testid":e.name,Element:Ws,"aria-labelledby":e.label?`${e.name}-label`:void 0,"aria-label":e.label?void 0:e.name,...e}),qZ=({autoComplete:e,...t})=>y.jsx(Ea,{Element:Qq,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}),WZ=e=>y.jsx(Ea,{Element:aO,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}),ZZ=e=>y.jsx(Ea,{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:sO,...e}),YZ=e=>y.jsx(Ea,{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:lO,...e}),XZ=e=>y.jsx(Ea,{Element:I_,id:e.name,"data-testid":e.name,...e}),QZ=({inputLabel:e,...t})=>y.jsx(Xq,{...t,label:e}),JZ=({autoComplete:e,...t})=>y.jsx(Ea,{Element:QZ,id:t.name,"data-testid":t.name,autoComplete:e,minLength:6,maxLength:255,...t}),e7=({name:e,description:t,label:n,isRequired:r,info:a,showErrorMessage:s,children:l,...u})=>{const{control:d}=ya();return y.jsx(Ge.Field,{control:d,name:e,render:({field:f})=>{const{error:p}=va();return y.jsx(Fh,{htmlFor:e,label:n,description:t,isRequired:r,info:a,showErrorMessage:s,"aria-invalid":!!p,children:y.jsx(yn,{onValueChange:f.onChange,values:f.value,...u,children:l})})}})},t7=({name:e,description:t,label:n,isRequired:r,info:a,showErrorMessage:s,children:l,...u})=>{const{control:d}=ya();return y.jsx(Ge.Field,{control:d,name:e,render:({field:f})=>{const{error:p}=va();return y.jsx(Fh,{htmlFor:e,label:n,description:t,isRequired:r,info:a,showErrorMessage:s,"aria-invalid":!!p,children:y.jsx(Re,{onValueChange:f.onChange,defaultValue:f.value,...u,children:l})})}})},n7=({name:e,description:t,label:n,isRequired:r,info:a,showErrorMessage:s,children:l,...u})=>{const{control:d}=ya();return y.jsx(Ge.Field,{control:d,name:e,render:({field:f})=>{const{error:p}=va();return y.jsx(Fh,{htmlFor:e,label:n,description:t,isRequired:r,info:a,showErrorMessage:s,"aria-invalid":!!p,children:y.jsx(_u,{...f,...u,children:l})})}})},Ge=VZ;Ge.Description=HZ;Ge.Control=FZ;Ge.Field=Zq;Ge.Item=Wq;Ge.Label=uO;Ge.Message=GZ;Ge.Element=Ea;Ge.Input=KZ;Ge.InputPassword=qZ;Ge.Checkbox=JZ;Ge.TextArea=WZ;Ge.AutoSizedTextArea=XZ;Ge.Button=lt;Ge.Select=t7;Ge.MultiSelect=e7;Ge.EditableFieldInput=ZZ;Ge.EditableFieldTextArea=YZ;Ge.SwitchSelector=n7;const bD=({dictionary:e,mode:t,className:n,onDelete:r,...a})=>{const[s,l]=S.useState(!1),{setLocaleDictionary:u}=yh(),{mutate:d,isPending:f}=bq(),{mutate:p,isPending:m}=Aq(),{mutate:v,isPending:_}=vq(),x=m||_,{editedContent:A,restoreEditedContent:w}=Tn(),{deleteButton:N,resetButton:E,saveButton:T,publishButton:R,downloadButton:C,confirmation:I}=dn("save-dictionary-details"),{isAuthenticated:D}=mu(),L=A?.[e.localId],U=L&&JSON.stringify(L)!==JSON.stringify(e),K=typeof e?.id<"u",W=async()=>{if(!A?.[e.localId])return;const Z={...e,...A?.[e.localId]};p({dictionary:Z},{onSuccess:()=>{u(A?.[e.localId]),w(e.localId)}})},J=()=>{if(!A?.[e.localId])return;const Z={...e,...A?.[e.localId]};v([Z],{onSuccess:ae=>{ae&&(u(A?.[e.localId]),w(e.localId))}})},le=()=>{e.id&&d(e.id.toString(),{onSuccess:Z=>{Z&&r?.()}})};return y.jsxs(y.Fragment,{children:[y.jsx(b_,{isOpen:s,title:I.title.value,size:v_.MD,children:y.jsxs("form",{className:"size-full px-3",children:[y.jsx("p",{className:"text-neutral py-4 text-sm",children:I.message}),y.jsxs("div",{className:"mt-12 flex justify-end gap-2 max-md:flex-col",children:[y.jsx(Ge.Button,{label:I.cancelButton.label.value,disabled:!U||x,color:ot.TEXT,className:"max-md:w-full",variant:st.OUTLINE,onClick:()=>l(!1),children:I.cancelButton.text}),y.jsx(Ge.Button,{label:I.confirmButton.label.value,disabled:!U||x,Icon:LA,color:ot.TEXT,className:"max-md:w-full",isLoading:_,onClick:W,children:I.confirmButton.text})]})]})}),y.jsxs("form",{className:ve("flex justify-end gap-2 max-md:flex-col",n),...a,children:[t.includes("remote")&&K&&r&&D&&y.jsx(Ge.Button,{label:N.label.value,Icon:Eh,color:ot.ERROR,variant:st.OUTLINE,className:"max-md:w-full",isLoading:f,onClick:le,children:N.text}),U&&y.jsx(Ge.Button,{label:E.label.value,disabled:!U,Icon:EH,variant:st.OUTLINE,color:ot.TEXT,className:"max-md:w-full",onClick:()=>w(e.localId),children:E.text}),t.includes("local")&&y.jsx(Ge.Button,{label:C.label.value,disabled:!U||x,Icon:aH,color:ot.TEXT,variant:D?st.OUTLINE:st.DEFAULT,className:"max-md:w-full",isLoading:m,onClick:()=>l(!0),children:C.text}),t.includes("remote")&&D&&!K&&y.jsx(Ge.Button,{label:R.label.value,disabled:x,Icon:GF,color:ot.TEXT,className:"max-md:w-full",isLoading:_,onClick:J,children:R.text}),t.includes("remote")&&D&&K&&U&&y.jsx(Ge.Button,{label:T.label.value,disabled:!U||x,Icon:LA,color:"text",className:"max-md:w-full",isLoading:_,onClick:J,children:T.text})]})]})},_D=({level:e,title:t,description:n,children:r,rightParam:a,isSelected:s,...l})=>y.jsx("div",{className:ve("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:y.jsx(t1,{isOpen:s,label:t,header:y.jsxs("div",{className:"flex w-full",children:[y.jsxs("div",{className:"flex w-full items-center justify-between",children:[y.jsx("span",{className:ve(e===0&&"text-2xl",e===1&&"text-xl",e===2&&"text-lg",e>=3&&"text-base"),children:t}),a&&y.jsx("div",{className:"flex w-auto items-center justify-between p-3",children:a})]}),n&&y.jsx("p",{className:"text-card pl-3 text-sm",children:n})]}),children:r})}),ED=({keyPath:e,section:t,editedContent:n,editedContentValue:r,onContentChange:a,onFocusKeyPath:s,renderSection:l})=>{const u=r??dr(n,e);if(u&&typeof u!="string")return y.jsx(y.Fragment,{children:"Error loading section - Edited content Incoherence with the original content format"});const d=e.length,f=String(u??t);return y.jsx("span",{role:"button",tabIndex:0,className:ve("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):y.jsx(lO,{"aria-label":"Editable field",defaultValue:f,onSave:p=>a({keyPath:e,newValue:p}),onCancel:()=>null})})},r7=e=>{const{keyPath:t,section:n}=e,{addEditedContent:r}=Tn(),a=dr(e.editedContent,t),s=n[H.File],{content:l}=n,u=[...t,{type:H.File}];return y.jsxs("div",{className:"ml-2 grid grid-cols-[auto,1fr] gap-2",children:[y.jsxs("span",{className:"text-neutral text-sm",children:[s," "]}),y.jsx(ED,{...e,keyPath:u,section:l,editedContentValue:a?.content,onContentChange:d=>{r(e.dictionary.key,{...n,content:d.newValue},t)}})]})},i7=e=>{const{keyPath:t,section:n,onFocusKeyPath:r,focusedKeyPath:a=[]}=e;return n.map((s,l)=>{const u={key:l,type:H.Array},d=[...t,u];return y.jsx(_D,{level:t.length,title:`${l}`,description:"",isSelected:Jc(d,a),onClick:f=>{f.stopPropagation(),r(d)},children:y.jsx(Sa,{...e,keyPath:d,section:s})},JSON.stringify(s))})},a7=e=>{const{keyPath:t,section:n}=e;return y.jsx("div",{className:"ml-2 grid grid-cols-[auto,1fr] gap-2",children:Object.keys(n).filter(r=>!F_.includes(r)).map(r=>{const a={type:H.Condition,key:r},s=[...t,a],l=n[H.Condition][r];return y.jsxs(y.Fragment,{children:[y.jsx("span",{className:"flex items-center font-bold",children:r}),S.createElement(Sa,{...e,key:r,keyPath:s,section:l})]})})})},o7=e=>{const{keyPath:t,section:n}=e;return y.jsx("div",{className:"ml-2 grid grid-cols-[auto,1fr] gap-2",children:Object.keys(n).filter(r=>!F_.includes(r)).map(r=>{const a={type:H.Enumeration,key:r},s=[...t,a],l=n[H.Enumeration][r];return y.jsxs(y.Fragment,{children:[y.jsx("span",{className:"flex items-center font-bold",children:r}),S.createElement(Sa,{...e,key:r,keyPath:s,section:l})]})})})},s7=e=>{const{keyPath:t,section:n}=e,r=[...t,{type:H.Insertion}],a=n[H.Insertion];return y.jsx("div",{className:"ml-2 grid grid-cols-[auto,1fr] gap-2",children:y.jsx(Sa,{...e,keyPath:r,section:a})})},l7=e=>{const{keyPath:t,section:n}=e,r=[...t,{type:H.Markdown}],a=n[H.Markdown];return y.jsx("div",{className:"ml-2 grid grid-cols-[auto,1fr] gap-2",children:y.jsx(Sa,{...e,keyPath:r,section:a})})},c7=e=>{const{keyPath:t,section:n,focusedKeyPath:r=[],onFocusKeyPath:a}=e;return Object.keys(n).filter(s=>!F_.includes(s)).map(s=>{const l={key:s,type:H.Object},u=[...t,l];return y.jsx(_D,{level:t.length,title:s,description:"",isSelected:Jc(u,r),onClick:d=>{d.stopPropagation(),a(u)},children:y.jsx(Sa,{...e,keyPath:u,section:n[s]})},s)})},u7=e=>{const{keyPath:t,section:n,locale:r}=e,a={type:H.Translation,key:r},s=[...t,a],l=n.translation[r];return y.jsx(Sa,{...e,keyPath:s,section:l})},F_=["filePath","id","nodeType"],Sa=e=>{const n=dr(e.editedContent,e.keyPath)??e.section,r=Ms(n);if(typeof n=="object")return r===H.ReactNode?y.jsx("span",{className:"text-neutral text-xs",children:"React node not editable"}):r===H.Nested?y.jsx("div",{className:"ml-2 grid grid-cols-[auto,1fr] gap-2",children:"[Nested] Dictionary"}):r===H.Markdown?y.jsx(l7,{...e,section:n}):r===H.Translation?y.jsx(u7,{...e,section:n}):r===H.Enumeration?y.jsx(o7,{...e,section:n}):r===H.Condition?y.jsx(a7,{...e,section:n}):r===H.Insertion?y.jsx(s7,{...e,section:n}):r===H.Array?y.jsx(i7,{...e,section:n}):r===H.File?y.jsx(r7,{...e,section:n}):y.jsx(c7,{...e,section:n});if(typeof n=="string")return y.jsx(ED,{...e,section:n})},d7=({dictionary:e,mode:t,onDelete:n,...r})=>{const{editedContent:a,addEditedContent:s}=Tn(),{focusedContent:l,setFocusedContentKeyPath:u,setFocusedContent:d}=pa(),f=l?.keyPath;return y.jsxs("div",{className:"flex flex-1 flex-col justify-between gap-2",children:[y.jsx("div",{children:S.createElement(Sa,{...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})}),y.jsx(bD,{dictionary:e,mode:t,className:"mb-4 flex-col",onDelete:()=>{d(null),n?.()}})]})};function he(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 Gc extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}const SD={};function ho(e){return SD}function f7(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 h7(e,t){return typeof t=="bigint"?t.toString():t}function xD(e){return{get value(){{const t=e();return Object.defineProperty(this,"value",{value:t}),t}}}}function H_(e){return e==null}function G_(e){const t=e.startsWith("^")?1:0,n=e.endsWith("$")?e.length-1:e.length;return e.slice(t,n)}function St(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 $_(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function dc(e){return JSON.stringify(e)}const AD=Error.captureStackTrace?Error.captureStackTrace:(...e)=>{};function Lv(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}const p7=xD(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{const e=Function;return new e(""),!0}catch{return!1}});function jv(e){if(Lv(e)===!1)return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(Lv(n)===!1||Object.prototype.hasOwnProperty.call(n,"isPrototypeOf")===!1)}const m7=new Set(["string","number","symbol"]);function Hh(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function vo(e,t,n){const r=new e._zod.constr(t??e._zod.def);return(!t||n?.parent)&&(r._zod.parent=e),r}function Be(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 g7(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}function y7(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 vo(e,{...e._zod.def,shape:n,checks:[]})}function v7(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 vo(e,{...e._zod.def,shape:n,checks:[]})}function b7(e,t){if(!jv(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 $_(this,"shape",r),r},checks:[]};return vo(e,n)}function _7(e,t){return vo(e,{...e._zod.def,get shape(){const n={...e._zod.def.shape,...t._zod.def.shape};return $_(this,"shape",n),n},catchall:t._zod.def.catchall,checks:[]})}function E7(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 vo(t,{...t._zod.def,shape:a,checks:[]})}function S7(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 vo(t,{...t._zod.def,shape:a,checks:[]})}function Cc(e,t=0){for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue!==!0)return!0;return!1}function K_(e,t){return t.map(n=>{var r;return(r=n).path??(r.path=[]),n.path.unshift(e),n})}function ef(e){return typeof e=="string"?e:e?.message}function po(e,t,n){const r={...e,path:e.path??[]};if(!e.message){const a=ef(e.inst?._zod.def?.error?.(e))??ef(t?.error?.(e))??ef(n.customError?.(e))??ef(n.localeError?.(e))??"Invalid input";r.message=a}return delete r.inst,delete r.continue,t?.reportInput||delete r.input,r}function q_(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function $c(...e){const[t,n,r]=e;return typeof t=="string"?{message:t,code:"custom",input:n,inst:r}:{...t}}const TD=(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,h7,2)},enumerable:!0}),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},wD=he("$ZodError",TD),CD=he("$ZodError",TD,{Parent:Error});function x7(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 A7(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 T7=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 Gc;if(l.issues.length){const u=new(a?.Err??e)(l.issues.map(d=>po(d,s,ho())));throw AD(u,a?.callee),u}return l.value},w7=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=>po(d,s,ho())));throw AD(u,a?.callee),u}return l.value},RD=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 Gc;return s.issues.length?{success:!1,error:new(e??wD)(s.issues.map(l=>po(l,a,ho())))}:{success:!0,data:s.value}},C7=RD(CD),kD=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=>po(l,a,ho())))}:{success:!0,data:s.value}},R7=kD(CD),k7=/^[cC][^\s-]{8,}$/,N7=/^[0-9a-z]+$/,I7=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,O7=/^[0-9a-vA-V]{20}$/,D7=/^[A-Za-z0-9]{27}$/,L7=/^[a-zA-Z0-9_-]{21}$/,j7=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,P7=/^([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})$/,AC=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)$/,M7=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,z7="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function B7(){return new RegExp(z7,"u")}const V7=/^(?:(?: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])$/,U7=/^(([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})$/,F7=/^((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])$/,H7=/^(([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])$/,G7=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,ND=/^[A-Za-z0-9_-]*$/,$7=/^([a-zA-Z0-9-]+\.)*[a-zA-Z0-9-]+$/,K7=/^\+(?:[0-9]){6,14}[0-9]$/,ID="(?:(?:\\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])))",q7=new RegExp(`^${ID}$`);function OD(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 W7(e){return new RegExp(`^${OD(e)}$`)}function Z7(e){const t=OD({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(`^${ID}T(?:${r})$`)}const Y7=e=>{const t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},X7=/^[^A-Z]*$/,Q7=/^[^a-z]*$/,Qr=he("$ZodCheck",(e,t)=>{var n;e._zod??(e._zod={}),e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),J7=he("$ZodCheckMaxLength",(e,t)=>{var n;Qr.init(e,t),(n=e._zod.def).when??(n.when=r=>{const a=r.value;return!H_(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=q_(a);r.issues.push({origin:l,code:"too_big",maximum:t.maximum,inclusive:!0,input:a,inst:e,continue:!t.abort})}}),eY=he("$ZodCheckMinLength",(e,t)=>{var n;Qr.init(e,t),(n=e._zod.def).when??(n.when=r=>{const a=r.value;return!H_(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=q_(a);r.issues.push({origin:l,code:"too_small",minimum:t.minimum,inclusive:!0,input:a,inst:e,continue:!t.abort})}}),tY=he("$ZodCheckLengthEquals",(e,t)=>{var n;Qr.init(e,t),(n=e._zod.def).when??(n.when=r=>{const a=r.value;return!H_(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=q_(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})}}),Gh=he("$ZodCheckStringFormat",(e,t)=>{var n,r;Qr.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=()=>{})}),nY=he("$ZodCheckRegex",(e,t)=>{Gh.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})}}),rY=he("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=X7),Gh.init(e,t)}),iY=he("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=Q7),Gh.init(e,t)}),aY=he("$ZodCheckIncludes",(e,t)=>{Qr.init(e,t);const n=Hh(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})}}),oY=he("$ZodCheckStartsWith",(e,t)=>{Qr.init(e,t);const n=new RegExp(`^${Hh(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})}}),sY=he("$ZodCheckEndsWith",(e,t)=>{Qr.init(e,t);const n=new RegExp(`.*${Hh(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})}}),lY=he("$ZodCheckOverwrite",(e,t)=>{Qr.init(e,t),e._zod.check=n=>{n.value=t.tx(n.value)}});class cY{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 uY={major:4,minor:0,patch:0},Ht=he("$ZodType",(e,t)=>{var n;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=uY;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=Cc(s),f;for(const p of l){if(p._zod.def.when){if(!p._zod.def.when(s))continue}else if(d)continue;const m=s.issues.length,v=p._zod.check(s);if(v instanceof Promise&&u?.async===!1)throw new Gc;if(f||v instanceof Promise)f=(f??Promise.resolve()).then(async()=>{await v,s.issues.length!==m&&(d||(d=Cc(s,m)))});else{if(s.issues.length===m)continue;d||(d=Cc(s,m))}}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 Gc;return u.then(d=>a(d,r,l))}return a(u,r,l)}}e["~standard"]={validate:a=>{try{const s=C7(e,a);return s.success?{value:s.data}:{issues:s.error?.issues}}catch{return R7(e,a).then(l=>l.success?{value:l.data}:{issues:l.error?.issues})}},vendor:"zod",version:1}}),W_=he("$ZodString",(e,t)=>{Ht.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??Y7(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}}),xt=he("$ZodStringFormat",(e,t)=>{Gh.init(e,t),W_.init(e,t)}),dY=he("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=P7),xt.init(e,t)}),fY=he("$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=AC(r))}else t.pattern??(t.pattern=AC());xt.init(e,t)}),hY=he("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=M7),xt.init(e,t)}),pY=he("$ZodURL",(e,t)=>{xt.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:$7.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})}}}),mY=he("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=B7()),xt.init(e,t)}),gY=he("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=L7),xt.init(e,t)}),yY=he("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=k7),xt.init(e,t)}),vY=he("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=N7),xt.init(e,t)}),bY=he("$ZodULID",(e,t)=>{t.pattern??(t.pattern=I7),xt.init(e,t)}),_Y=he("$ZodXID",(e,t)=>{t.pattern??(t.pattern=O7),xt.init(e,t)}),EY=he("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=D7),xt.init(e,t)}),SY=he("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=Z7(t)),xt.init(e,t)}),xY=he("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=q7),xt.init(e,t)}),AY=he("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=W7(t)),xt.init(e,t)}),TY=he("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=j7),xt.init(e,t)}),wY=he("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=V7),xt.init(e,t),e._zod.onattach.push(n=>{const r=n._zod.bag;r.format="ipv4"})}),CY=he("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=U7),xt.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})}}}),RY=he("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=F7),xt.init(e,t)}),kY=he("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=H7),xt.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 DD(e){if(e==="")return!0;if(e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}const NY=he("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=G7),xt.init(e,t),e._zod.onattach.push(n=>{n._zod.bag.contentEncoding="base64"}),e._zod.check=n=>{DD(n.value)||n.issues.push({code:"invalid_format",format:"base64",input:n.value,inst:e,continue:!t.abort})}});function IY(e){if(!ND.test(e))return!1;const t=e.replace(/[-_]/g,r=>r==="-"?"+":"/"),n=t.padEnd(Math.ceil(t.length/4)*4,"=");return DD(n)}const OY=he("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=ND),xt.init(e,t),e._zod.onattach.push(n=>{n._zod.bag.contentEncoding="base64url"}),e._zod.check=n=>{IY(n.value)||n.issues.push({code:"invalid_format",format:"base64url",input:n.value,inst:e,continue:!t.abort})}}),DY=he("$ZodE164",(e,t)=>{t.pattern??(t.pattern=K7),xt.init(e,t)});function LY(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 jY=he("$ZodJWT",(e,t)=>{xt.init(e,t),e._zod.check=n=>{LY(n.value,t.alg)||n.issues.push({code:"invalid_format",format:"jwt",input:n.value,inst:e,continue:!t.abort})}}),PY=he("$ZodUnknown",(e,t)=>{Ht.init(e,t),e._zod.parse=n=>n}),MY=he("$ZodNever",(e,t)=>{Ht.init(e,t),e._zod.parse=(n,r)=>(n.issues.push({expected:"never",code:"invalid_type",input:n.value,inst:e}),n)});function TC(e,t,n){e.issues.length&&t.issues.push(...K_(n,e.issues)),t.value[n]=e.value}const zY=he("$ZodArray",(e,t)=>{Ht.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=>TC(f,n,l))):TC(d,n,l)}return s.length?Promise.all(s).then(()=>n):n}});function tf(e,t,n){e.issues.length&&t.issues.push(...K_(n,e.issues)),t.value[n]=e.value}function wC(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(...K_(n,e.issues)):e.value===void 0?n in r&&(t.value[n]=void 0):t.value[n]=e.value}const BY=he("$ZodObject",(e,t)=>{Ht.init(e,t);const n=xD(()=>{const m=Object.keys(t.shape);for(const _ of m)if(!(t.shape[_]instanceof Ht))throw new Error(`Invalid element at key "${_}": expected a Zod schema`);const v=g7(t.shape);return{shape:t.shape,keys:m,keySet:new Set(m),numKeys:m.length,optionalKeys:new Set(v)}});St(e._zod,"propValues",()=>{const m=t.shape,v={};for(const _ in m){const x=m[_]._zod;if(x.values){v[_]??(v[_]=new Set);for(const A of x.values)v[_].add(A)}}return v});const r=m=>{const v=new cY(["shape","payload","ctx"]),_=n.value,x=E=>{const T=dc(E);return`shape[${T}]._zod.run({ value: input[${T}], issues: [] }, ctx)`};v.write("const input = payload.value;");const A=Object.create(null);let w=0;for(const E of _.keys)A[E]=`key_${w++}`;v.write("const newResult = {}");for(const E of _.keys)if(_.optionalKeys.has(E)){const T=A[E];v.write(`const ${T} = ${x(E)};`);const R=dc(E);v.write(`
270
- if (${T}.issues.length) {
271
- if (input[${R}] === undefined) {
272
- if (${R} in input) {
273
- newResult[${R}] = undefined;
274
- }
275
- } else {
276
- payload.issues = payload.issues.concat(
277
- ${T}.issues.map((iss) => ({
278
- ...iss,
279
- path: iss.path ? [${R}, ...iss.path] : [${R}],
280
- }))
281
- );
282
- }
283
- } else if (${T}.value === undefined) {
284
- if (${R} in input) newResult[${R}] = undefined;
285
- } else {
286
- newResult[${R}] = ${T}.value;
287
- }
288
- `)}else{const T=A[E];v.write(`const ${T} = ${x(E)};`),v.write(`
289
- if (${T}.issues.length) payload.issues = payload.issues.concat(${T}.issues.map(iss => ({
290
- ...iss,
291
- path: iss.path ? [${dc(E)}, ...iss.path] : [${dc(E)}]
292
- })));`),v.write(`newResult[${dc(E)}] = ${T}.value`)}v.write("payload.value = newResult;"),v.write("return payload;");const N=v.compile();return(E,T)=>N(m,E,T)};let a;const s=Lv,l=!SD.jitless,d=l&&p7.value,f=t.catchall;let p;e._zod.parse=(m,v)=>{p??(p=n.value);const _=m.value;if(!s(_))return m.issues.push({expected:"object",code:"invalid_type",input:_,inst:e}),m;const x=[];if(l&&d&&v?.async===!1&&v.jitless!==!0)a||(a=r(t.shape)),m=a(m,v);else{m.value={};const T=p.shape;for(const R of p.keys){const C=T[R],I=C._zod.run({value:_[R],issues:[]},v),D=C._zod.optin==="optional"&&C._zod.optout==="optional";I instanceof Promise?x.push(I.then(L=>D?wC(L,m,R,_):tf(L,m,R))):D?wC(I,m,R,_):tf(I,m,R)}}if(!f)return x.length?Promise.all(x).then(()=>m):m;const A=[],w=p.keySet,N=f._zod,E=N.def.type;for(const T of Object.keys(_)){if(w.has(T))continue;if(E==="never"){A.push(T);continue}const R=N.run({value:_[T],issues:[]},v);R instanceof Promise?x.push(R.then(C=>tf(C,m,T))):tf(R,m,T)}return A.length&&m.issues.push({code:"unrecognized_keys",keys:A,input:_,inst:e}),x.length?Promise.all(x).then(()=>m):m}});function CC(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=>po(s,r,ho())))}),t}const VY=he("$ZodUnion",(e,t)=>{Ht.init(e,t),St(e._zod,"optin",()=>t.options.some(n=>n._zod.optin==="optional")?"optional":void 0),St(e._zod,"optout",()=>t.options.some(n=>n._zod.optout==="optional")?"optional":void 0),St(e._zod,"values",()=>{if(t.options.every(n=>n._zod.values))return new Set(t.options.flatMap(n=>Array.from(n._zod.values)))}),St(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=>G_(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=>CC(l,n,e,r)):CC(s,n,e,r)}}),UY=he("$ZodIntersection",(e,t)=>{Ht.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])=>RC(n,d,f)):RC(n,s,l)}});function Pv(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(jv(e)&&jv(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=Pv(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=Pv(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 RC(e,t,n){if(t.issues.length&&e.issues.push(...t.issues),n.issues.length&&e.issues.push(...n.issues),Cc(e))return e;const r=Pv(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 FY=he("$ZodEnum",(e,t)=>{Ht.init(e,t);const n=f7(t.entries);e._zod.values=new Set(n),e._zod.pattern=new RegExp(`^(${n.filter(r=>m7.has(typeof r)).map(r=>typeof r=="string"?Hh(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}}),HY=he("$ZodTransform",(e,t)=>{Ht.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 Gc;return n.value=a,n}}),GY=he("$ZodOptional",(e,t)=>{Ht.init(e,t),e._zod.optin="optional",e._zod.optout="optional",St(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),St(e._zod,"pattern",()=>{const n=t.innerType._zod.pattern;return n?new RegExp(`^(${G_(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)}),$Y=he("$ZodNullable",(e,t)=>{Ht.init(e,t),St(e._zod,"optin",()=>t.innerType._zod.optin),St(e._zod,"optout",()=>t.innerType._zod.optout),St(e._zod,"pattern",()=>{const n=t.innerType._zod.pattern;return n?new RegExp(`^(${G_(n.source)}|null)$`):void 0}),St(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)}),KY=he("$ZodDefault",(e,t)=>{Ht.init(e,t),e._zod.optin="optional",St(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=>kC(s,t)):kC(a,t)}});function kC(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}const qY=he("$ZodPrefault",(e,t)=>{Ht.init(e,t),e._zod.optin="optional",St(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))}),WY=he("$ZodNonOptional",(e,t)=>{Ht.init(e,t),St(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=>NC(s,e)):NC(a,e)}});function NC(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 ZY=he("$ZodCatch",(e,t)=>{Ht.init(e,t),e._zod.optin="optional",St(e._zod,"optout",()=>t.innerType._zod.optout),St(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=>po(l,r,ho()))},input:n.value}),n.issues=[]),n)):(n.value=a.value,a.issues.length&&(n.value=t.catchValue({...n,error:{issues:a.issues.map(s=>po(s,r,ho()))},input:n.value}),n.issues=[]),n)}}),YY=he("$ZodPipe",(e,t)=>{Ht.init(e,t),St(e._zod,"values",()=>t.in._zod.values),St(e._zod,"optin",()=>t.in._zod.optin),St(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=>IC(s,t,r)):IC(a,t,r)}});function IC(e,t,n){return Cc(e)?e:t.out._zod.run({value:e.value,issues:e.issues},n)}const XY=he("$ZodReadonly",(e,t)=>{Ht.init(e,t),St(e._zod,"propValues",()=>t.innerType._zod.propValues),St(e._zod,"values",()=>t.innerType._zod.values),St(e._zod,"optin",()=>t.innerType._zod.optin),St(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(OC):OC(a)}});function OC(e){return e.value=Object.freeze(e.value),e}const QY=he("$ZodCustom",(e,t)=>{Qr.init(e,t),Ht.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=>DC(s,n,r,e));DC(a,n,r,e)}});function DC(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($c(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 eX(){return new JY}const nf=eX();function tX(e,t){return new e({type:"string",...Be(t)})}function nX(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...Be(t)})}function LC(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...Be(t)})}function rX(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...Be(t)})}function iX(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...Be(t)})}function aX(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...Be(t)})}function oX(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...Be(t)})}function sX(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...Be(t)})}function lX(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...Be(t)})}function cX(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...Be(t)})}function uX(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...Be(t)})}function dX(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...Be(t)})}function fX(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...Be(t)})}function hX(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...Be(t)})}function pX(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...Be(t)})}function mX(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...Be(t)})}function gX(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...Be(t)})}function yX(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...Be(t)})}function vX(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...Be(t)})}function bX(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...Be(t)})}function _X(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...Be(t)})}function EX(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...Be(t)})}function SX(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...Be(t)})}function xX(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...Be(t)})}function AX(e,t){return new e({type:"string",format:"date",check:"string_format",...Be(t)})}function TX(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...Be(t)})}function wX(e,t){return new e({type:"string",format:"duration",check:"string_format",...Be(t)})}function CX(e){return new e({type:"unknown"})}function RX(e,t){return new e({type:"never",...Be(t)})}function LD(e,t){return new J7({check:"max_length",...Be(t),maximum:e})}function nh(e,t){return new eY({check:"min_length",...Be(t),minimum:e})}function jD(e,t){return new tY({check:"length_equals",...Be(t),length:e})}function kX(e,t){return new nY({check:"string_format",format:"regex",...Be(t),pattern:e})}function NX(e){return new rY({check:"string_format",format:"lowercase",...Be(e)})}function IX(e){return new iY({check:"string_format",format:"uppercase",...Be(e)})}function OX(e,t){return new aY({check:"string_format",format:"includes",...Be(t),includes:e})}function DX(e,t){return new oY({check:"string_format",format:"starts_with",...Be(t),prefix:e})}function LX(e,t){return new sY({check:"string_format",format:"ends_with",...Be(t),suffix:e})}function Eu(e){return new lY({check:"overwrite",tx:e})}function jX(e){return Eu(t=>t.normalize(e))}function PX(){return Eu(e=>e.trim())}function MX(){return Eu(e=>e.toLowerCase())}function zX(){return Eu(e=>e.toUpperCase())}function BX(e,t,n){return new e({type:"array",element:t,...Be(n)})}function VX(e,t,n){return new e({type:"custom",check:"custom",fn:t,...Be(n)})}const UX=he("ZodISODateTime",(e,t)=>{SY.init(e,t),Rt.init(e,t)});function FX(e){return xX(UX,e)}const HX=he("ZodISODate",(e,t)=>{xY.init(e,t),Rt.init(e,t)});function GX(e){return AX(HX,e)}const $X=he("ZodISOTime",(e,t)=>{AY.init(e,t),Rt.init(e,t)});function KX(e){return TX($X,e)}const qX=he("ZodISODuration",(e,t)=>{TY.init(e,t),Rt.init(e,t)});function WX(e){return wX(qX,e)}const ZX=(e,t)=>{wD.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:n=>A7(e,n)},flatten:{value:n=>x7(e,n)},addIssue:{value:n=>e.issues.push(n)},addIssues:{value:n=>e.issues.push(...n)},isEmpty:{get(){return e.issues.length===0}}})},$h=he("ZodError",ZX,{Parent:Error}),YX=T7($h),XX=w7($h),QX=RD($h),JX=kD($h),rn=he("ZodType",(e,t)=>(Ht.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)=>vo(e,n,r),e.brand=()=>e,e.register=((n,r)=>(n.add(e,r),e)),e.parse=(n,r)=>YX(e,n,r,{callee:e.parse}),e.safeParse=(n,r)=>QX(e,n,r),e.parseAsync=async(n,r)=>XX(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(GQ(n,r)),e.superRefine=n=>e.check($Q(n)),e.overwrite=n=>e.check(Eu(n)),e.optional=()=>MC(e),e.nullable=()=>zC(e),e.nullish=()=>MC(zC(e)),e.nonoptional=n=>PQ(e,n),e.array=()=>Mv(e),e.or=n=>TQ([e,n]),e.and=n=>CQ(e,n),e.transform=n=>BC(e,NQ(n)),e.default=n=>DQ(e,n),e.prefault=n=>jQ(e,n),e.catch=n=>zQ(e,n),e.pipe=n=>BC(e,n),e.readonly=()=>UQ(e),e.describe=n=>{const r=e.clone();return nf.add(r,{description:n}),r},Object.defineProperty(e,"description",{get(){return nf.get(e)?.description},configurable:!0}),e.meta=(...n)=>{if(n.length===0)return nf.get(e);const r=e.clone();return nf.add(r,n[0]),r},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e)),PD=he("_ZodString",(e,t)=>{W_.init(e,t),rn.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(kX(...r)),e.includes=(...r)=>e.check(OX(...r)),e.startsWith=(...r)=>e.check(DX(...r)),e.endsWith=(...r)=>e.check(LX(...r)),e.min=(...r)=>e.check(nh(...r)),e.max=(...r)=>e.check(LD(...r)),e.length=(...r)=>e.check(jD(...r)),e.nonempty=(...r)=>e.check(nh(1,...r)),e.lowercase=r=>e.check(NX(r)),e.uppercase=r=>e.check(IX(r)),e.trim=()=>e.check(PX()),e.normalize=(...r)=>e.check(jX(...r)),e.toLowerCase=()=>e.check(MX()),e.toUpperCase=()=>e.check(zX())}),eQ=he("ZodString",(e,t)=>{W_.init(e,t),PD.init(e,t),e.email=n=>e.check(nX(tQ,n)),e.url=n=>e.check(sX(nQ,n)),e.jwt=n=>e.check(SX(yQ,n)),e.emoji=n=>e.check(lX(rQ,n)),e.guid=n=>e.check(LC(jC,n)),e.uuid=n=>e.check(rX(rf,n)),e.uuidv4=n=>e.check(iX(rf,n)),e.uuidv6=n=>e.check(aX(rf,n)),e.uuidv7=n=>e.check(oX(rf,n)),e.nanoid=n=>e.check(cX(iQ,n)),e.guid=n=>e.check(LC(jC,n)),e.cuid=n=>e.check(uX(aQ,n)),e.cuid2=n=>e.check(dX(oQ,n)),e.ulid=n=>e.check(fX(sQ,n)),e.base64=n=>e.check(bX(pQ,n)),e.base64url=n=>e.check(_X(mQ,n)),e.xid=n=>e.check(hX(lQ,n)),e.ksuid=n=>e.check(pX(cQ,n)),e.ipv4=n=>e.check(mX(uQ,n)),e.ipv6=n=>e.check(gX(dQ,n)),e.cidrv4=n=>e.check(yX(fQ,n)),e.cidrv6=n=>e.check(vX(hQ,n)),e.e164=n=>e.check(EX(gQ,n)),e.datetime=n=>e.check(FX(n)),e.date=n=>e.check(GX(n)),e.time=n=>e.check(KX(n)),e.duration=n=>e.check(WX(n))});function fc(e){return tX(eQ,e)}const Rt=he("ZodStringFormat",(e,t)=>{xt.init(e,t),PD.init(e,t)}),tQ=he("ZodEmail",(e,t)=>{hY.init(e,t),Rt.init(e,t)}),jC=he("ZodGUID",(e,t)=>{dY.init(e,t),Rt.init(e,t)}),rf=he("ZodUUID",(e,t)=>{fY.init(e,t),Rt.init(e,t)}),nQ=he("ZodURL",(e,t)=>{pY.init(e,t),Rt.init(e,t)}),rQ=he("ZodEmoji",(e,t)=>{mY.init(e,t),Rt.init(e,t)}),iQ=he("ZodNanoID",(e,t)=>{gY.init(e,t),Rt.init(e,t)}),aQ=he("ZodCUID",(e,t)=>{yY.init(e,t),Rt.init(e,t)}),oQ=he("ZodCUID2",(e,t)=>{vY.init(e,t),Rt.init(e,t)}),sQ=he("ZodULID",(e,t)=>{bY.init(e,t),Rt.init(e,t)}),lQ=he("ZodXID",(e,t)=>{_Y.init(e,t),Rt.init(e,t)}),cQ=he("ZodKSUID",(e,t)=>{EY.init(e,t),Rt.init(e,t)}),uQ=he("ZodIPv4",(e,t)=>{wY.init(e,t),Rt.init(e,t)}),dQ=he("ZodIPv6",(e,t)=>{CY.init(e,t),Rt.init(e,t)}),fQ=he("ZodCIDRv4",(e,t)=>{RY.init(e,t),Rt.init(e,t)}),hQ=he("ZodCIDRv6",(e,t)=>{kY.init(e,t),Rt.init(e,t)}),pQ=he("ZodBase64",(e,t)=>{NY.init(e,t),Rt.init(e,t)}),mQ=he("ZodBase64URL",(e,t)=>{OY.init(e,t),Rt.init(e,t)}),gQ=he("ZodE164",(e,t)=>{DY.init(e,t),Rt.init(e,t)}),yQ=he("ZodJWT",(e,t)=>{jY.init(e,t),Rt.init(e,t)}),vQ=he("ZodUnknown",(e,t)=>{PY.init(e,t),rn.init(e,t)});function PC(){return CX(vQ)}const bQ=he("ZodNever",(e,t)=>{MY.init(e,t),rn.init(e,t)});function _Q(e){return RX(bQ,e)}const EQ=he("ZodArray",(e,t)=>{zY.init(e,t),rn.init(e,t),e.element=t.element,e.min=(n,r)=>e.check(nh(n,r)),e.nonempty=n=>e.check(nh(1,n)),e.max=(n,r)=>e.check(LD(n,r)),e.length=(n,r)=>e.check(jD(n,r)),e.unwrap=()=>e.element});function Mv(e,t){return BX(EQ,e,t)}const SQ=he("ZodObject",(e,t)=>{BY.init(e,t),rn.init(e,t),St(e,"shape",()=>t.shape),e.keyof=()=>RQ(Object.keys(e._zod.def.shape)),e.catchall=n=>e.clone({...e._zod.def,catchall:n}),e.passthrough=()=>e.clone({...e._zod.def,catchall:PC()}),e.loose=()=>e.clone({...e._zod.def,catchall:PC()}),e.strict=()=>e.clone({...e._zod.def,catchall:_Q()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=n=>b7(e,n),e.merge=n=>_7(e,n),e.pick=n=>y7(e,n),e.omit=n=>v7(e,n),e.partial=(...n)=>E7(MD,e,n[0]),e.required=(...n)=>S7(zD,e,n[0])});function xQ(e,t){const n={type:"object",get shape(){return $_(this,"shape",{...e}),this.shape},...Be(t)};return new SQ(n)}const AQ=he("ZodUnion",(e,t)=>{VY.init(e,t),rn.init(e,t),e.options=t.options});function TQ(e,t){return new AQ({type:"union",options:e,...Be(t)})}const wQ=he("ZodIntersection",(e,t)=>{UY.init(e,t),rn.init(e,t)});function CQ(e,t){return new wQ({type:"intersection",left:e,right:t})}const zv=he("ZodEnum",(e,t)=>{FY.init(e,t),rn.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 zv({...t,checks:[],...Be(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 zv({...t,checks:[],...Be(a),entries:s})}});function RQ(e,t){const n=Array.isArray(e)?Object.fromEntries(e.map(r=>[r,r])):e;return new zv({type:"enum",entries:n,...Be(t)})}const kQ=he("ZodTransform",(e,t)=>{HY.init(e,t),rn.init(e,t),e._zod.parse=(n,r)=>{n.addIssue=s=>{if(typeof s=="string")n.issues.push($c(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($c(l))}};const a=t.transform(n.value,n);return a instanceof Promise?a.then(s=>(n.value=s,n)):(n.value=a,n)}});function NQ(e){return new kQ({type:"transform",transform:e})}const MD=he("ZodOptional",(e,t)=>{GY.init(e,t),rn.init(e,t),e.unwrap=()=>e._zod.def.innerType});function MC(e){return new MD({type:"optional",innerType:e})}const IQ=he("ZodNullable",(e,t)=>{$Y.init(e,t),rn.init(e,t),e.unwrap=()=>e._zod.def.innerType});function zC(e){return new IQ({type:"nullable",innerType:e})}const OQ=he("ZodDefault",(e,t)=>{KY.init(e,t),rn.init(e,t),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function DQ(e,t){return new OQ({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():t}})}const LQ=he("ZodPrefault",(e,t)=>{qY.init(e,t),rn.init(e,t),e.unwrap=()=>e._zod.def.innerType});function jQ(e,t){return new LQ({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():t}})}const zD=he("ZodNonOptional",(e,t)=>{WY.init(e,t),rn.init(e,t),e.unwrap=()=>e._zod.def.innerType});function PQ(e,t){return new zD({type:"nonoptional",innerType:e,...Be(t)})}const MQ=he("ZodCatch",(e,t)=>{ZY.init(e,t),rn.init(e,t),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function zQ(e,t){return new MQ({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}const BQ=he("ZodPipe",(e,t)=>{YY.init(e,t),rn.init(e,t),e.in=t.in,e.out=t.out});function BC(e,t){return new BQ({type:"pipe",in:e,out:t})}const VQ=he("ZodReadonly",(e,t)=>{XY.init(e,t),rn.init(e,t)});function UQ(e){return new VQ({type:"readonly",innerType:e})}const FQ=he("ZodCustom",(e,t)=>{QY.init(e,t),rn.init(e,t)});function HQ(e){const t=new Qr({check:"custom"});return t._zod.check=e,t}function GQ(e,t={}){return VX(FQ,e,t)}function $Q(e){const t=HQ(n=>(n.addIssue=r=>{if(typeof r=="string")n.issues.push($c(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($c(a))}},e(n.value,n)));return t}function Ai(e){return Array.isArray?Array.isArray(e):UD(e)==="[object Array]"}function KQ(e){if(typeof e=="string")return e;let t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function qQ(e){return e==null?"":KQ(e)}function Hr(e){return typeof e=="string"}function BD(e){return typeof e=="number"}function WQ(e){return e===!0||e===!1||ZQ(e)&&UD(e)=="[object Boolean]"}function VD(e){return typeof e=="object"}function ZQ(e){return VD(e)&&e!==null}function qn(e){return e!=null}function py(e){return!e.trim().length}function UD(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}const YQ="Incorrect 'index' type",XQ=e=>`Invalid value for key ${e}`,QQ=e=>`Pattern length exceeds max of ${e}.`,JQ=e=>`Missing ${e} property in key`,eJ=e=>`Property 'weight' in key '${e}' must be a positive integer`,VC=Object.prototype.hasOwnProperty;class tJ{constructor(t){this._keys=[],this._keyMap={};let n=0;t.forEach(r=>{let a=FD(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 FD(e){let t=null,n=null,r=null,a=1,s=null;if(Hr(e)||Ai(e))r=e,t=UC(e),n=Bv(e);else{if(!VC.call(e,"name"))throw new Error(JQ("name"));const l=e.name;if(r=l,VC.call(e,"weight")&&(a=e.weight,a<=0))throw new Error(eJ(l));t=UC(l),n=Bv(l),s=e.getFn}return{path:t,id:n,weight:a,src:r,getFn:s}}function UC(e){return Ai(e)?e:e.split(".")}function Bv(e){return Ai(e)?e.join("."):e}function nJ(e,t){let n=[],r=!1;const a=(s,l,u)=>{if(qn(s))if(!l[u])n.push(s);else{let d=l[u];const f=s[d];if(!qn(f))return;if(u===l.length-1&&(Hr(f)||BD(f)||WQ(f)))n.push(qQ(f));else if(Ai(f)){r=!0;for(let p=0,m=f.length;p<m;p+=1)a(f[p],l,u+1)}else l.length&&a(f,l,u+1)}};return a(e,Hr(t)?t.split("."):t,0),r?n:n[0]}const rJ={includeMatches:!1,findAllMatches:!1,minMatchCharLength:1},iJ={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},aJ={location:0,threshold:.6,distance:100},oJ={useExtendedSearch:!1,getFn:nJ,ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1};var ze={...iJ,...rJ,...aJ,...oJ};const sJ=/[^ ]+/g;function lJ(e=1,t=3){const n=new Map,r=Math.pow(10,t);return{get(a){const s=a.match(sJ).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 Z_{constructor({getFn:t=ze.getFn,fieldNormWeight:n=ze.fieldNormWeight}={}){this.norm=lJ(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,Hr(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();Hr(t)?this._addString(t,n):this._addObject(t,n)}removeAt(t){this.records.splice(t,1);for(let n=t,r=this.size();n<r;n+=1)this.records[n].i-=1}getValueForItemAtKeyId(t,n){return t[this._keysMap[n]]}size(){return this.records.length}_addString(t,n){if(!qn(t)||py(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(qn(l)){if(Ai(l)){let u=[];const d=[{nestedArrIndex:-1,value:l}];for(;d.length;){const{nestedArrIndex:f,value:p}=d.pop();if(qn(p))if(Hr(p)&&!py(p)){let m={v:p,i:f,n:this.norm.get(p)};u.push(m)}else Ai(p)&&p.forEach((m,v)=>{d.push({nestedArrIndex:v,value:m})})}r.$[s]=u}else if(Hr(l)&&!py(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 HD(e,t,{getFn:n=ze.getFn,fieldNormWeight:r=ze.fieldNormWeight}={}){const a=new Z_({getFn:n,fieldNormWeight:r});return a.setKeys(e.map(FD)),a.setSources(t),a.create(),a}function cJ(e,{getFn:t=ze.getFn,fieldNormWeight:n=ze.fieldNormWeight}={}){const{keys:r,records:a}=e,s=new Z_({getFn:t,fieldNormWeight:n});return s.setKeys(r),s.setIndexRecords(a),s}function af(e,{errors:t=0,currentLocation:n=0,expectedLocation:r=0,distance:a=ze.distance,ignoreLocation:s=ze.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 uJ(e=[],t=ze.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 Ya=32;function dJ(e,t,n,{location:r=ze.location,distance:a=ze.distance,threshold:s=ze.threshold,findAllMatches:l=ze.findAllMatches,minMatchCharLength:u=ze.minMatchCharLength,includeMatches:d=ze.includeMatches,ignoreLocation:f=ze.ignoreLocation}={}){if(t.length>Ya)throw new Error(QQ(Ya));const p=t.length,m=e.length,v=Math.max(0,Math.min(r,m));let _=s,x=v;const A=u>1||d,w=A?Array(m):[];let N;for(;(N=e.indexOf(t,x))>-1;){let D=af(t,{currentLocation:N,expectedLocation:v,distance:a,ignoreLocation:f});if(_=Math.min(D,_),x=N+p,A){let L=0;for(;L<p;)w[N+L]=1,L+=1}}x=-1;let E=[],T=1,R=p+m;const C=1<<p-1;for(let D=0;D<p;D+=1){let L=0,U=R;for(;L<U;)af(t,{errors:D,currentLocation:v+U,expectedLocation:v,distance:a,ignoreLocation:f})<=_?L=U:R=U,U=Math.floor((R-L)/2+L);R=U;let K=Math.max(1,v-U+1),W=l?m:Math.min(v+U,m)+p,J=Array(W+2);J[W+1]=(1<<D)-1;for(let Z=W;Z>=K;Z-=1){let ae=Z-1,z=n[e.charAt(ae)];if(A&&(w[ae]=+!!z),J[Z]=(J[Z+1]<<1|1)&z,D&&(J[Z]|=(E[Z+1]|E[Z])<<1|1|E[Z+1]),J[Z]&C&&(T=af(t,{errors:D,currentLocation:ae,expectedLocation:v,distance:a,ignoreLocation:f}),T<=_)){if(_=T,x=ae,x<=v)break;K=Math.max(1,2*v-x)}}if(af(t,{errors:D+1,currentLocation:v,expectedLocation:v,distance:a,ignoreLocation:f})>_)break;E=J}const I={isMatch:x>=0,score:Math.max(.001,T)};if(A){const D=uJ(w,u);D.length?d&&(I.indices=D):I.isMatch=!1}return I}function fJ(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 rh=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 GD{constructor(t,{location:n=ze.location,threshold:r=ze.threshold,distance:a=ze.distance,includeMatches:s=ze.includeMatches,findAllMatches:l=ze.findAllMatches,minMatchCharLength:u=ze.minMatchCharLength,isCaseSensitive:d=ze.isCaseSensitive,ignoreDiacritics:f=ze.ignoreDiacritics,ignoreLocation:p=ze.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?rh(t):t,this.pattern=t,this.chunks=[],!this.pattern.length)return;const m=(_,x)=>{this.chunks.push({pattern:_,alphabet:fJ(_),startIndex:x})},v=this.pattern.length;if(v>Ya){let _=0;const x=v%Ya,A=v-x;for(;_<A;)m(this.pattern.substr(_,Ya),_),_+=Ya;if(x){const w=v-Ya;m(this.pattern.substr(w),w)}}else m(this.pattern,0)}searchIn(t){const{isCaseSensitive:n,ignoreDiacritics:r,includeMatches:a}=this.options;if(t=n?t:t.toLowerCase(),t=r?rh(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 m=[],v=0,_=!1;this.chunks.forEach(({pattern:A,alphabet:w,startIndex:N})=>{const{isMatch:E,score:T,indices:R}=dJ(t,A,w,{location:s+N,distance:l,threshold:u,findAllMatches:d,minMatchCharLength:f,includeMatches:a,ignoreLocation:p});E&&(_=!0),v+=T,E&&R&&(m=[...m,...R])});let x={isMatch:_,score:_?v/this.chunks.length:1};return _&&a&&(x.indices=m),x}}class xa{constructor(t){this.pattern=t}static isMultiMatch(t){return FC(t,this.multiRegex)}static isSingleMatch(t){return FC(t,this.singleRegex)}search(){}}function FC(e,t){const n=e.match(t);return n?n[1]:null}class hJ extends xa{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 pJ extends xa{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 mJ extends xa{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 gJ extends xa{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 yJ extends xa{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 vJ extends xa{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 $D extends xa{constructor(t,{location:n=ze.location,threshold:r=ze.threshold,distance:a=ze.distance,includeMatches:s=ze.includeMatches,findAllMatches:l=ze.findAllMatches,minMatchCharLength:u=ze.minMatchCharLength,isCaseSensitive:d=ze.isCaseSensitive,ignoreDiacritics:f=ze.ignoreDiacritics,ignoreLocation:p=ze.ignoreLocation}={}){super(t),this._bitapSearch=new GD(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 KD extends xa{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 Vv=[hJ,KD,mJ,gJ,vJ,yJ,pJ,$D],HC=Vv.length,bJ=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/,_J="|";function EJ(e,t={}){return e.split(_J).map(n=>{let r=n.trim().split(bJ).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<HC;){const p=Vv[f];let m=p.isMultiMatch(u);m&&(a.push(new p(m,t)),d=!0)}if(!d)for(f=-1;++f<HC;){const p=Vv[f];let m=p.isSingleMatch(u);if(m){a.push(new p(m,t));break}}}return a})}const SJ=new Set([$D.type,KD.type]);class xJ{constructor(t,{isCaseSensitive:n=ze.isCaseSensitive,ignoreDiacritics:r=ze.ignoreDiacritics,includeMatches:a=ze.includeMatches,minMatchCharLength:s=ze.minMatchCharLength,ignoreLocation:l=ze.ignoreLocation,findAllMatches:u=ze.findAllMatches,location:d=ze.location,threshold:f=ze.threshold,distance:p=ze.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?rh(t):t,this.pattern=t,this.query=EJ(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?rh(t):t;let l=0,u=[],d=0;for(let f=0,p=n.length;f<p;f+=1){const m=n[f];u.length=0,l=0;for(let v=0,_=m.length;v<_;v+=1){const x=m[v],{isMatch:A,indices:w,score:N}=x.search(t);if(A){if(l+=1,d+=N,r){const E=x.constructor.type;SJ.has(E)?u=[...u,...w]:u.push(w)}}else{d=0,l=0,u.length=0;break}}if(l){let v={isMatch:!0,score:d/l};return r&&(v.indices=u),v}}return{isMatch:!1,score:1}}}const Uv=[];function AJ(...e){Uv.push(...e)}function Fv(e,t){for(let n=0,r=Uv.length;n<r;n+=1){let a=Uv[n];if(a.condition(e,t))return new a(e,t)}return new GD(e,t)}const ih={AND:"$and",OR:"$or"},Hv={PATH:"$path",PATTERN:"$val"},Gv=e=>!!(e[ih.AND]||e[ih.OR]),TJ=e=>!!e[Hv.PATH],wJ=e=>!Ai(e)&&VD(e)&&!Gv(e),GC=e=>({[ih.AND]:Object.keys(e).map(t=>({[t]:e[t]}))});function qD(e,t,{auto:n=!0}={}){const r=a=>{let s=Object.keys(a);const l=TJ(a);if(!l&&s.length>1&&!Gv(a))return r(GC(a));if(wJ(a)){const d=l?a[Hv.PATH]:s[0],f=l?a[Hv.PATTERN]:a[d];if(!Hr(f))throw new Error(XQ(d));const p={keyId:Bv(d),pattern:f};return n&&(p.searcher=Fv(f,t)),p}let u={children:[],operator:s[0]};return s.forEach(d=>{const f=a[d];Ai(f)&&f.forEach(p=>{u.children.push(r(p))})}),u};return Gv(e)||(e=GC(e)),r(e)}function CJ(e,{ignoreFieldNorm:t=ze.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 RJ(e,t){const n=e.matches;t.matches=[],qn(n)&&n.forEach(r=>{if(!qn(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 kJ(e,t){t.score=e.score}function NJ(e,t,{includeMatches:n=ze.includeMatches,includeScore:r=ze.includeScore}={}){const a=[];return n&&a.push(RJ),r&&a.push(kJ),e.map(s=>{const{idx:l}=s,u={item:t[l],refIndex:l};return a.length&&a.forEach(d=>{d(s,u)}),u})}class Qs{constructor(t,n={},r){this.options={...ze,...n},this.options.useExtendedSearch,this._keyStore=new tJ(this.options.keys),this.setCollection(t,r)}setCollection(t,n){if(this._docs=t,n&&!(n instanceof Z_))throw new Error(YQ);this._myIndex=n||HD(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(t){qn(t)&&(this._docs.push(t),this._myIndex.add(t))}remove(t=()=>!1){const n=[];for(let r=0,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=Hr(t)?Hr(this._docs[0])?this._searchStringList(t):this._searchObjectList(t):this._searchLogical(t);return CJ(d,{ignoreFieldNorm:u}),s&&d.sort(l),BD(n)&&n>-1&&(d=d.slice(0,n)),NJ(d,this._docs,{includeMatches:r,includeScore:a})}_searchStringList(t){const n=Fv(t,this.options),{records:r}=this._myIndex,a=[];return r.forEach(({v:s,i:l,n:u})=>{if(!qn(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=qD(t,this.options),r=(u,d,f)=>{if(!u.children){const{keyId:m,searcher:v}=u,_=this._findMatches({key:this._keyStore.get(m),value:this._myIndex.getValueForItemAtKeyId(d,m),searcher:v});return _&&_.length?[{idx:f,item:d,matches:_}]:[]}const p=[];for(let m=0,v=u.children.length;m<v;m+=1){const _=u.children[m],x=r(_,d,f);if(x.length)p.push(...x);else if(u.operator===ih.AND)return[]}return p},a=this._myIndex.records,s={},l=[];return a.forEach(({$:u,i:d})=>{if(qn(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=Fv(t,this.options),{keys:r,records:a}=this._myIndex,s=[];return a.forEach(({$:l,i:u})=>{if(!qn(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(!qn(n))return[];let a=[];if(Ai(n))n.forEach(({v:s,i:l,n:u})=>{if(!qn(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}}Qs.version="7.1.0";Qs.createIndex=HD;Qs.parseIndex=cJ;Qs.config=ze;Qs.parseQuery=qD;AJ(xJ);const Rc=({children:e,className:t,identifier:n,...r})=>y.jsx("div",{className:ve("group/dropdown relative flex",t),"aria-label":`DropDown ${n}`,id:`unrollable-panel-button-${n}`,"aria-haspopup":!0,...r,children:e}),IJ=({children:e,identifier:t,className:n,label:r,...a})=>y.jsx(lt,{className:ve("w-full cursor-pointer",n),label:r??`Open panel ${t}`,onClick:s=>{s.currentTarget.focus()},variant:"none",...a,children:e}),OJ=({children:e,isHidden:t=void 0,isOverable:n=!1,isFocusable:r=!1,align:a="start",identifier:s,className:l,...u})=>y.jsx("div",{className:ve("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:y.jsx(Tb,{isHidden:t,className:ve("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})});Rc.Trigger=IJ;Rc.Panel=OJ;const kc=(e,t)=>{const[n,r]=S.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}});S.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=S.useCallback(l=>{r(u=>{const d=typeof l=="function"?l(u):l;return localStorage?.setItem(e,JSON.stringify(d)),d})},[e,r]),s=S.useCallback(()=>{const l=localStorage?.getItem(e);l&&r(JSON.parse(l))},[e,r]);return S.useMemo(()=>[n,a,s],[n,a,s])},WD=S.createContext({availableLocales:[],selectedLocales:[],setSelectedLocales:()=>{}}),ZD=()=>S.useContext(WD),DJ=({availableLocales:e,defaultSelectedLocales:t,children:n})=>{const{locale:r}=yb(),[a,s]=kc("locale-content-selector-selected-locales",t??[r]);return y.jsx(WD,{value:{availableLocales:e,selectedLocales:a,setSelectedLocales:s},children:n})},my="locale-switcher-content",LJ=({panelProps:e,isMultilingual:t=!0})=>{const{switchTo:n,searchInput:r,localeSwitcherLabel:a,languageListLabel:s,seeAllLocalesSwitch:l}=dn("locale-switcher-content"),u=S.useRef(null),{locale:d}=yb(),{availableLocales:f,selectedLocales:p,setSelectedLocales:m}=ZD(),v=S.useMemo(()=>f.map(C=>{const I=gf(C,B.ENGLISH),D=gf(C,d),L=gf(C);return{locale:C,englishName:I,currentLocaleName:D,ownLocaleName:L}}),[f,d]),[_,x]=S.useState(v),[A,w]=kc("locale-content-selector-see-all-locales",!1),N=S.useMemo(()=>{const C={keys:[{name:"ownLocaleName",weight:.4},{name:"englishName",weight:.2},{name:"currentLocaleName",weight:.2},{name:"locale",weight:.2}],threshold:.02};return new Qs(v,C)},[v]),E=S.useCallback(C=>{if(C){const I=N.search(C).map(D=>D.item);x(I)}else x(v)},[N,v]),T=C=>{t?p.includes(C)?p.length>1&&m(I=>I.filter(D=>D!==C)):m(I=>[...I,C]):m([C])},R=C=>{w(C),m(C?f:[d])};return y.jsx("div",{className:"border-text text-text rounded-xl border transition-colors","aria-label":a.value,children:y.jsxs(Rc,{identifier:my,children:[y.jsx(Rc.Trigger,{identifier:my,children:y.jsxs("div",{className:"flex w-full items-center justify-between",children:[y.jsx("div",{className:"px-2 py-1",children:y.jsx(hH,{size:18})}),y.jsx(yH,{className:"self-center",size:18})]})}),y.jsx(Rc.Panel,{identifier:my,isOverable:!0,isFocusable:!0,className:"left-auto right-0",...e,children:y.jsxs(kr,{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&&y.jsx("div",{className:"m-auto p-2",children:y.jsx(_u,{defaultValue:!1,onChange:R,color:vu.TEXT,size:bu.SM,className:"!w-60",choices:[{content:l.true.value,value:!0},{content:l.false.value,value:!1}]})}),!(t&&A)&&y.jsxs(y.Fragment,{children:[y.jsx("div",{className:"p-3",children:y.jsx(Ws,{type:"search","aria-label":r.ariaLabel.value,placeholder:r.placeholder.value,onChange:C=>E(C.target.value),ref:u})}),y.jsx("ol",{className:"divide-text/20 divide-y divide-dashed overflow-y-auto p-1",children:_.map(({locale:C,currentLocaleName:I,ownLocaleName:D})=>y.jsx("li",{className:"px-1.5 py-1",children:y.jsx(lt,{onClick:()=>T(C),label:`${n} ${I}`,disabled:!(f??f).includes(C),isActive:p.includes(C),variant:st.HOVERABLE,color:ot.TEXT,isFullWidth:!0,textAlign:ks.LEFT,size:Yn.SM,children:y.jsxs("div",{className:"flex flex-row items-center justify-between gap-3 px-2 py-1",children:[t&&y.jsx("div",{className:"w-4",children:p.includes(C)&&y.jsx(Us,{className:"size-full"})}),y.jsxs("div",{className:"flex flex-1 flex-row items-center justify-between gap-3 px-2 py-1",children:[y.jsxs("div",{className:"flex flex-col text-nowrap",children:[y.jsx("span",{dir:xV(C),lang:C,children:D}),y.jsx("span",{className:"text-neutral text-xs",children:I})]}),y.jsx("span",{className:"text-neutral text-sm",children:C.toUpperCase()})]})]})})},C))})]})]})})]})})},jJ=(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},$v=({children:e,onContentChange:t,disabled:n,validate:r,additionalButtons:a,...s})=>{const[l,u]=S.useState(e),[d,f]=S.useState(0),p=l!==e,m=()=>{u(e),f(A=>A+1)},v=()=>{t(l)},_=A=>{u(A.currentTarget.value)};S.useEffect(()=>{u(e)},[e]);const x=r?.(l)??!0;return y.jsxs("div",{className:"flex size-full flex-col items-center justify-between gap-2",children:[y.jsx(Ws,{onChange:_,"aria-label":"value",variant:da.INVISIBLE,className:"size-full",defaultValue:e,...s},d),(p||a)&&y.jsxs("div",{className:"flex w-full items-center justify-end gap-2",children:[p&&y.jsxs(y.Fragment,{children:[y.jsx(lt,{Icon:Us,label:"Validate",variant:st.HOVERABLE,color:ot.TEXT,size:Yn.ICON_SM,className:"cursor-pointer hover:scale-110",disabled:n||!x,onClick:v}),y.jsx(lt,{Icon:go,label:"Cancel",variant:st.HOVERABLE,size:Yn.ICON_SM,color:ot.TEXT,className:"cursor-pointer hover:scale-110",onClick:m})]}),a]})]},String(e))},PJ=()=>{const{session:e,revalidateSession:t,setSession:n}=mu(),{mutate:r}=gq(),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({})}}},MJ=(e,t)=>{const[n,r]=S.useState(e);return S.useEffect(()=>{const a=setTimeout(()=>{r(e)},t);return()=>clearTimeout(a)},[e,t]),n},zJ=({isActive:e=!0,suggestion:t,...n})=>{const r=String(n.value??n.defaultValue??""),{mutate:a}=xq(),s=Zr(),[l,u]=S.useState(!1),[d,f]=S.useState(r),[p,m]=S.useState(""),v=S.useRef(null),_=S.useRef(null),x=S.useRef(null),[A,w]=S.useState(null),[N,E]=S.useState(-1),T=MJ(d,200);S.useEffect(()=>{typeof n.value>"u"||f(r)},[n.value,n.defaultValue]),S.useEffect(()=>{if(!e||!l)return;const C=async()=>{try{const I=v.current?.selectionStart??T.length,D=T.slice(0,I),L=T.slice(I),U=5,K=D.split(`
293
- `),J=K.slice(Math.max(0,K.length-U-1),-1).join(`
294
- `),le=K[K.length-1]??"",ae=L.split(`
295
- `).slice(1,U+1).join(`
296
- `);a({text:D,contextBefore:J,currentLine:le,contextAfter:ae,aiOptions:{apiKey:s.ai?.apiKey,model:s.ai?.model,temperature:s.ai?.temperature}},{onSuccess:z=>{m(z.data?.autocompletion??""),E(I)}})}catch(I){console.error("Autocomplete error:",I)}};T.length>3?(m(""),C()):m("")},[T,e,a,s]),S.useEffect(()=>{if(!p||N===-1||!_.current||!x.current){w(null);return}const C=_.current.getBoundingClientRect(),I=x.current.getBoundingClientRect();w({left:C.left-I.left,top:C.top-I.top})},[p,N,d]);const R=()=>{const C=v.current?.selectionStart??N;if(C!==N)return;const I=d.slice(0,C)+p+d.slice(C);f(I),m(""),E(-1),setTimeout(()=>{v.current?.focus();const D=C+p.length;v.current?.setSelectionRange(D,D)},0)};return y.jsxs("div",{className:"relative w-full",children:[y.jsxs("div",{ref:x,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&&N!==-1?y.jsxs(y.Fragment,{children:[y.jsx("span",{className:"align-text-top text-transparent",children:d.slice(0,N)}),y.jsx("span",{ref:_,style:{visibility:"hidden"},"aria-hidden":"true",children:p}),y.jsx("span",{className:"align-text-top text-transparent",children:d.slice(N)})]}):y.jsx("span",{className:"align-text-top text-transparent",children:d}),t&&y.jsx("span",{className:"text-neutral align-text-top",children:t})]}),p&&A&&y.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}),y.jsx(I_,{...n,ref:v,value:d,onChange:C=>{u(!0),f(C.target.value),m(""),n.onChange?.(C)},onKeyDown:C=>{C.key==="Tab"&&p&&(C.preventDefault(),R()),n.onKeyDown?.(C)},onSelect:C=>{p&&C.target.selectionStart!==N&&(m(""),E(-1)),n.onSelect?.(C)}})]})},BJ=({children:e,onContentChange:t,disabled:n,validate:r,additionalButtons:a,...s})=>{const{isAuthenticated:l}=PJ(),[u,d]=S.useState(e),[f,p]=S.useState(0),m=u!==e,v=()=>{d(e),p(w=>w+1)},_=()=>{t(u)},x=w=>d(w.currentTarget.value??"");S.useEffect(()=>{d(e)},[e]);const A=r?.(u)??!0;return y.jsxs("div",{className:"flex size-full flex-col items-center justify-between gap-2",children:[y.jsx(zJ,{onChange:x,variant:"invisible",className:"size-full",defaultValue:e,isActive:l,...s},f),(m||a)&&y.jsxs("div",{className:"flex w-full items-center justify-end gap-2",children:[m&&y.jsxs(y.Fragment,{children:[y.jsx(lt,{Icon:Us,label:"Validate",variant:"hoverable",color:"text",size:"icon-sm",className:"cursor-pointer hover:scale-110",disabled:n||!A,onClick:_}),y.jsx(lt,{Icon:go,label:"Cancel",variant:"hoverable",size:"icon-sm",color:"text",className:"cursor-pointer hover:scale-110",onClick:v})]}),a]})]},e)},VJ=700,YD=({isRollable:e=!0,minHeight:t=VJ,children:n,className:r})=>{const[a,s]=S.useState(0),[l,u]=S.useState(!0),d=S.useRef(null),{expandCollapseContent:f}=dn("expand-collapse"),p=a>t;return S.useEffect(()=>{d.current&&s(d.current.clientHeight)},[]),e?p?y.jsxs(Tb,{isHidden:l,minHeight:t,className:"w-full overflow-x-scroll overflow-y-hidden",children:[y.jsx("div",{className:ve("grid w-full",r),ref:d,children:n}),y.jsx("button",{className:ve("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(m=>!m),children:f(l)})]}):y.jsx("div",{className:ve("grid w-full",r),ref:d,children:n}):n},UJ=[[/^(<!--)(.+)(-->)$/,!1],[/^(\/\*)(.+)(\*\/)$/,!1],[/^(\/\/|["'#]|;{1,2}|%{1,2}|--)(.*)$/,!0],[/^(\*)(.+)$/,!0]];function FJ(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 m=f===a.children.length-1;if(!KC(p.value,m))return d;const _=p.value.split(/(\s+\/\/)/);if(_.length<=1)return d;let x=[_[0]];for(let A=1;A<_.length;A+=2)x.push(_[A]+(_[A+1]||""));return x=x.filter(Boolean),x.length<=1?d:x.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,m=KC(f.value,p);if(m)if(t&&!p&&u!==0){const v=$C(s[u-1],"{")&&$C(s[u+1],"}");r.push({info:m,line:a,token:d,isLineCommentOnly:s.length===3&&d.children.length===1,isJsxStyle:v})}else r.push({info:m,line:a,token:d,isLineCommentOnly:s.length===1&&d.children.length===1,isJsxStyle:!1})}}return r}function $C(e,t){if(e.type!=="element")return!1;const n=e.children[0];return n.type!=="text"?!1:n.value.trim()===t}function KC(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 UJ){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 HJ(e){const t=e.match(/(?:\/\/|["'#]|;{1,2}|%{1,2}|--)(\s*)$/);return t&&t[1].trim().length===0?e.slice(0,t.index):e}function XD(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??=FJ(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 m=!1;if(f.info[1]=f.info[1].replace(t,(..._)=>n.call(this,_,f.line,f.token,s,p)?(m=!0,""):_[0]),!m)continue;r==="v1"&&(f.info[1]=HJ(f.info[1]));const v=f.info[1].trim().length===0;if(v&&(f.info[1]=""),v&&f.isLineCommentOnly)l.push(f.line);else if(v&&f.isJsxStyle)f.line.children.splice(f.line.children.indexOf(f.token)-1,3);else if(v)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),m=a.children[p+1];let v=1;m?.type==="text"&&m?.value===`
297
- `&&(v=2),a.children.splice(p,v)}}}}function GJ(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 qC=Symbol("highlighted-lines");function $J(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[qC]??=GJ(this.options.meta.__raw),(a[qC]??[]).includes(r)&&this.addClassToHast(n,t),n}}}function KJ(e){return e?Array.from(e.matchAll(/\/((?:\\.|[^/])+)\//g)).map(n=>n[1].replace(/\\(.)/g,"$1")):[]}function qJ(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=KJ(this.options.meta.__raw);r.decorations||=[];for(const s of a){const l=WJ(n,s);for(const u of l)r.decorations.push({start:u,end:u+s.length,properties:{class:t}})}}}}function WJ(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 ZJ(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Y_(e={},t="@shikijs/transformers:notation-map"){const{classMap:n={},classActivePre:r=void 0}=e;return XD(t,new RegExp(`\\s*\\[!code (${Object.keys(n).map(ZJ).join("|")})(:\\d+)?\\]`),function([a,s,l=":1"],u,d,f,p){const m=Number.parseInt(l.slice(1),10);for(let v=p;v<Math.min(p+m,f.length);v++)this.addClassToHast(f[v],n[s]);return r&&this.addClassToHast(this.pre,r),!0},e.matchAlgorithm)}function YJ(e={}){const{classLineAdd:t="diff add",classLineRemove:n="diff remove",classActivePre:r="has-diff"}=e;return Y_({classMap:{"++":t,"--":n},classActivePre:r,matchAlgorithm:e.matchAlgorithm},"@shikijs/transformers:notation-diff")}function XJ(e={}){const{classMap:t={error:["highlighted","error"],warning:["highlighted","warning"]},classActivePre:n="has-highlighted"}=e;return Y_({classMap:t,classActivePre:n,matchAlgorithm:e.matchAlgorithm},"@shikijs/transformers:notation-error-level")}function QJ(e={}){const{classActiveLine:t="highlighted",classActivePre:n="has-highlighted"}=e;return Y_({classMap:{highlight:t,hl:t},classActivePre:n,matchAlgorithm:e.matchAlgorithm},"@shikijs/transformers:notation-highlight")}function JJ(e,t,n,r){const a=QD(e);let s=a.indexOf(n);for(;s!==-1;)eee.call(this,e.children,t,s,n.length,r),s=a.indexOf(n,s+1)}function QD(e){return e.type==="text"?e.value:e.type==="element"&&e.tagName==="span"?e.children.map(QD).join(""):""}function eee(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(tee([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 m=nee(u,d,f,p);this.addClassToHast(m[1],a);const v=m.filter(Boolean);e.splice(l,1,...v),l+=v.length-1}s+=d.value.length}}}function tee(e,t){return e[0]<=t[1]&&e[1]>=t[0]}function nee(e,t,n,r){const a=t.value,s=l=>ree(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 ree(e,t){return{...e,properties:{...e.properties},...t}}function iee(e={}){const{classActiveWord:t="highlighted-word",classActivePre:n=void 0}=e;return XD("@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 m=f;m<Math.min(f+p,d.length);m++)JJ.call(this,d[m],u,a,t);return n&&this.addClassToHast(this.pre,n),!0},e.matchAlgorithm)}const aee="modulepreload",oee=function(e){return"/"+e},WC={},j=function(t,n,r){let a=Promise.resolve();if(n&&n.length>0){let f=function(p){return Promise.all(p.map(m=>Promise.resolve(m).then(v=>({status:"fulfilled",value:v}),v=>({status:"rejected",reason:v}))))};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=oee(p),p in WC)return;WC[p]=!0;const m=p.endsWith(".css"),v=m?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${p}"]${v}`))return;const _=document.createElement("link");if(_.rel=m?"stylesheet":aee,m||(_.as="script"),_.crossOrigin="",_.href=p,d&&_.setAttribute("nonce",d),document.head.appendChild(_),m)return new Promise((x,A)=>{_.addEventListener("load",x),_.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 Ut=class extends Error{constructor(t){super(t),this.name="ShikiError"}};function see(e){return X_(e)}function X_(e){return Array.isArray(e)?lee(e):e instanceof RegExp?e:typeof e=="object"?cee(e):e}function lee(e){let t=[];for(let n=0,r=e.length;n<r;n++)t[n]=X_(e[n]);return t}function cee(e){let t={};for(let n in e)t[n]=X_(e[n]);return t}function JD(e,...t){return t.forEach(n=>{for(let r in n)e[r]=n[r]}),e}function eL(e){const t=~e.lastIndexOf("/")||~e.lastIndexOf("\\");return t===0?e:~t===e.length-1?eL(e.substring(0,e.length-1)):e.substr(~t+1)}var gy=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,of=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 tL(e,t){return e<t?-1:e>t?1:0}function nL(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=tL(e[a],t[a]);if(s!==0)return s}return 0}return n-r}function ZC(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 rL(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")}var iL=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}},ah=class{constructor(e,t,n){this._colorMap=e,this._defaults=t,this._root=n}static createFromRawTheme(e,t){return this.createFromParsedTheme(fee(e),t)}static createFromParsedTheme(e,t){return pee(e,t)}_cachedMatchRoot=new iL(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=>uee(e.parent,a.parentScopes));return r?new aL(r.fontStyle,r.foreground,r.background):null}},yy=class Rf{constructor(t,n){this.parent=t,this.scopeName=n}static push(t,n){for(const r of n)t=new Rf(t,r);return t}static from(...t){let n=null;for(let r=0;r<t.length;r++)n=new Rf(n,t[r]);return n}push(t){return new Rf(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 uee(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&&!dee(e.scopeName,r);){if(a)return!1;e=e.parent}if(!e)return!1;e=e.parent}return!0}function dee(e,t){return t===e||e.startsWith(t)&&e[t.length]==="."}var aL=class{constructor(e,t,n){this.fontStyle=e,this.foregroundId=t,this.backgroundId=n}};function fee(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 m=l.scope;m=m.replace(/^[,]+/,""),m=m.replace(/[,]+$/,""),u=m.split(",")}else Array.isArray(l.scope)?u=l.scope:u=[""];let d=-1;if(typeof l.settings.fontStyle=="string"){d=0;let m=l.settings.fontStyle.split(" ");for(let v=0,_=m.length;v<_;v++)switch(m[v]){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"&&ZC(l.settings.foreground)&&(f=l.settings.foreground);let p=null;typeof l.settings.background=="string"&&ZC(l.settings.background)&&(p=l.settings.background);for(let m=0,v=u.length;m<v;m++){let x=u[m].trim().split(" "),A=x[x.length-1],w=null;x.length>1&&(w=x.slice(0,x.length-1),w.reverse()),n[r++]=new hee(A,w,a,d,f,p)}}return n}var hee=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}},vn=(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))(vn||{});function pee(e,t){e.sort((d,f)=>{let p=tL(d.scope,f.scope);return p!==0||(p=nL(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 mee(t),l=new aL(n,s.getId(r),s.getId(a)),u=new yee(new Kv(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 ah(s,l,u)}var mee=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)}},gee=Object.freeze([]),Kv=class oL{scopeDepth;parentScopes;fontStyle;foreground;background;constructor(t,n,r,a,s){this.scopeDepth=t,this.parentScopes=n||gee,this.fontStyle=r,this.foreground=a,this.background=s}clone(){return new oL(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)}},yee=class qv{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(qv._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 qv(this._mainRule.clone(),Kv.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(nL(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 Kv(t,n,r,a,s))}},Ls=class lr{static toBinaryStr(t){return t.toString(2).padStart(32,"0")}static print(t){const n=lr.getLanguageId(t),r=lr.getTokenType(t),a=lr.getFontStyle(t),s=lr.getForeground(t),l=lr.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=lr.getLanguageId(t),f=lr.getTokenType(t),p=lr.containsBalancedBrackets(t)?1:0,m=lr.getFontStyle(t),v=lr.getForeground(t),_=lr.getBackground(t);return n!==0&&(d=n),r!==8&&(f=r),a!==null&&(p=a?1:0),s!==-1&&(m=s),l!==0&&(v=l),u!==0&&(_=u),(d<<0|f<<8|p<<10|m<<11|v<<15|_<<24)>>>0}};function oh(e,t){const n=[],r=vee(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(YC(a)){const d=[];do d.push(a),a=r.next();while(YC(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(m=>m(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(m=>m(p))}}function YC(e){return!!e&&!!e.match(/[\w\.:]+/)}function vee(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 sL(e){typeof e.dispose=="function"&&e.dispose()}var Kc=class{constructor(e){this.scopeName=e}toKey(){return this.scopeName}},bee=class{constructor(e,t){this.scopeName=e,this.ruleName=t}toKey(){return`${this.scopeName}#${this.ruleName}`}},_ee=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))}},Eee=class{constructor(e,t){this.repo=e,this.initialScopeName=t,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new Kc(this.initialScopeName)]}seenFullScopeRequests=new Set;seenPartialScopeRequests=new Set;Q;processQueue(){const e=this.Q;this.Q=[];const t=new _ee;for(const n of e)See(n,this.initialScopeName,this.repo,t);for(const n of t.references)if(n instanceof Kc){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 See(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 Kc?kf({baseGrammar:s,selfGrammar:a},r):Wv(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 Kc(u))}function Wv(e,t,n){if(t.repository&&t.repository[e]){const r=t.repository[e];sh([r],t,n)}}function kf(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&sh(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},t),e.selfGrammar.injections&&sh(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}function sh(e,t,n){for(const r of e){if(n.visitedRule.has(r))continue;n.visitedRule.add(r);const a=r.repository?JD({},t.repository,r.repository):t.repository;Array.isArray(r.patterns)&&sh(r.patterns,{...t,repository:a},n);const s=r.include;if(!s)continue;const l=lL(s);switch(l.kind){case 0:kf({...t,selfGrammar:t.baseGrammar},n);break;case 1:kf(t,n);break;case 2:Wv(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?Wv(l.ruleName,d,n):kf(d,n)}else l.kind===4?n.add(new bee(l.scopeName,l.ruleName)):n.add(new Kc(l.scopeName));break}}}var xee=class{kind=0},Aee=class{kind=1},Tee=class{constructor(e){this.ruleName=e}kind=2},wee=class{constructor(e){this.scopeName=e}kind=3},Cee=class{constructor(e,t){this.scopeName=e,this.ruleName=t}kind=4};function lL(e){if(e==="$base")return new xee;if(e==="$self")return new Aee;const t=e.indexOf("#");if(t===-1)return new wee(e);if(t===0)return new Tee(e.substring(1));{const n=e.substring(0,t),r=e.substring(t+1);return new Cee(n,r)}}var Ree=/\\(\d+)/,XC=/\\(\d+)/g,kee=-1,cL=-2;var Su=class{$location;id;_nameIsCapturing;_name;_contentNameIsCapturing;_contentName;constructor(e,t,n,r){this.$location=e,this.id=t,this._name=n||null,this._nameIsCapturing=of.hasCaptures(this._name),this._contentName=r||null,this._contentNameIsCapturing=of.hasCaptures(this._contentName)}get debugName(){const e=this.$location?`${eL(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:of.replaceCaptures(this._name,e,t)}getContentName(e,t){return!this._contentNameIsCapturing||this._contentName===null?this._contentName:of.replaceCaptures(this._contentName,e,t)}},Nee=class extends Su{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!")}},Iee=class extends Su{_match;captures;_cachedCompiledPatterns;constructor(e,t,n,r,a){super(e,t,n,null),this._match=new qc(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 Wc,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},QC=class extends Su{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 Wc,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},Zv=class extends Su{_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 qc(a,this.id),this.beginCaptures=s,this._end=new qc(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 Wc;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}},lh=class extends Su{_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 qc(a,this.id),this.beginCaptures=s,this.whileCaptures=u,this._while=new qc(l,cL),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 Wc;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 Wc,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,t||"￿"),this._cachedCompiledWhilePatterns}},uL=class gn{static createCaptureRule(t,n,r,a,s){return t.registerRule(l=>new Nee(n,l,r,a,s))}static getCompiledRuleId(t,n,r){return t.id||n.registerRule(a=>{if(t.id=a,t.match)return new Iee(t.$vscodeTextmateLocation,t.id,t.name,t.match,gn._compileCaptures(t.captures,n,r));if(typeof t.begin>"u"){t.repository&&(r=JD({},r,t.repository));let s=t.patterns;return typeof s>"u"&&t.include&&(s=[{include:t.include}]),new QC(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,gn._compilePatterns(s,n,r))}return t.while?new lh(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,gn._compileCaptures(t.beginCaptures||t.captures,n,r),t.while,gn._compileCaptures(t.whileCaptures||t.captures,n,r),gn._compilePatterns(t.patterns,n,r)):new Zv(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,gn._compileCaptures(t.beginCaptures||t.captures,n,r),t.end,gn._compileCaptures(t.endCaptures||t.captures,n,r),t.applyEndPatternLast,gn._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=gn.getCompiledRuleId(t[l],n,r)),a[u]=gn.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=lL(u.include);switch(f.kind){case 0:case 1:d=gn.getCompiledRuleId(r[u.include],n,r);break;case 2:let p=r[f.ruleName];p&&(d=gn.getCompiledRuleId(p,n,r));break;case 3:case 4:const m=f.scopeName,v=f.kind===4?f.ruleName:null,_=n.getExternalGrammar(m,r);if(_)if(v){let x=_.repository[v];x&&(d=gn.getCompiledRuleId(x,n,_.repository))}else d=gn.getCompiledRuleId(_.repository.$self,n,_.repository);break}}else d=gn.getCompiledRuleId(u,n,r);if(d!==-1){const f=n.getRule(d);let p=!1;if((f instanceof QC||f instanceof Zv||f instanceof lh)&&f.hasMissingPatterns&&f.patterns.length===0&&(p=!0),p)continue;a.push(d)}}return{patterns:a,hasMissingPatterns:(t?t.length:0)!==a.length}}},qc=class dL{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=Ree.test(this.source):this.hasBackReferences=!1}clone(){return new dL(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 XC.lastIndex=0,this.source.replace(XC,(a,s)=>rL(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}},Wc=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 JC(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 JC(e,r,this._items.map(a=>a.ruleId))}},JC=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(`
298
- `)}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}},Oee=class Yv{_defaultAttributes;_embeddedLanguagesMatcher;constructor(t,n){this._defaultAttributes=new vy(t,8),this._embeddedLanguagesMatcher=new Dee(Object.entries(n||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(t){return t===null?Yv._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(t)}static _NULL_SCOPE_METADATA=new vy(0,0);_getBasicScopeAttributes=new iL(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(Yv.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/},Dee=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])=>rL(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])}},eR=class{constructor(e,t){this.stack=e,this.stoppedEarly=t}};function fL(e,t,n,r,a,s,l,u){const d=t.content.length;let f=!1,p=-1;if(l){const _=Lee(e,t,n,r,a,s);a=_.stack,r=_.linePos,n=_.isFirstLine,p=_.anchorPosition}const m=Date.now();for(;!f;){if(u!==0&&Date.now()-m>u)return new eR(a,!0);v()}return new eR(a,!1);function v(){const _=jee(e,t,n,r,a,p);if(!_){s.produce(a,d),f=!0;return}const x=_.captureIndices,A=_.matchedRuleId,w=x&&x.length>0?x[0].end>r:!1;if(A===kee){const N=a.getRule(e);s.produce(a,x[0].start),a=a.withContentNameScopesList(a.nameScopesList),yc(e,t,n,a,s,N.endCaptures,x),s.produce(a,x[0].end);const E=a;if(a=a.parent,p=E.getAnchorPos(),!w&&E.getEnterPos()===r){a=E,s.produce(a,d),f=!0;return}}else{const N=e.getRule(A);s.produce(a,x[0].start);const E=a,T=N.getName(t.content,x),R=a.contentNameScopesList.pushAttributed(T,e);if(a=a.push(A,r,p,x[0].end===d,null,R,R),N instanceof Zv){const C=N;yc(e,t,n,a,s,C.beginCaptures,x),s.produce(a,x[0].end),p=x[0].end;const I=C.getContentName(t.content,x),D=R.pushAttributed(I,e);if(a=a.withContentNameScopesList(D),C.endHasBackReferences&&(a=a.withEndRule(C.getEndWithResolvedBackReferences(t.content,x))),!w&&E.hasSameRuleAs(a)){a=a.pop(),s.produce(a,d),f=!0;return}}else if(N instanceof lh){const C=N;yc(e,t,n,a,s,C.beginCaptures,x),s.produce(a,x[0].end),p=x[0].end;const I=C.getContentName(t.content,x),D=R.pushAttributed(I,e);if(a=a.withContentNameScopesList(D),C.whileHasBackReferences&&(a=a.withEndRule(C.getWhileWithResolvedBackReferences(t.content,x))),!w&&E.hasSameRuleAs(a)){a=a.pop(),s.produce(a,d),f=!0;return}}else if(yc(e,t,n,a,s,N.captures,x),s.produce(a,x[0].end),a=a.pop(),!w){a=a.safePop(),s.produce(a,d),f=!0;return}}x[0].end>r&&(r=x[0].end,n=!1)}}function Lee(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 lh&&u.push({rule:f,stack:d})}for(let d=u.pop();d;d=u.pop()){const{ruleScanner:f,findOptions:p}=zee(d.rule,e,d.stack.endRule,n,r===l),m=f.findNextMatchSync(t,r,p);if(m){if(m.ruleId!==cL){a=d.stack.pop();break}m.captureIndices&&m.captureIndices.length&&(s.produce(d.stack,m.captureIndices[0].start),yc(e,t,n,d.stack,s,d.rule.whileCaptures,m.captureIndices),s.produce(d.stack,m.captureIndices[0].end),l=m.captureIndices[0].end,m.captureIndices[0].end>r&&(r=m.captureIndices[0].end,n=!1))}else{a=d.stack.pop();break}}return{stack:a,linePos:r,anchorPosition:l,isFirstLine:n}}function jee(e,t,n,r,a,s){const l=Pee(e,t,n,r,a,s),u=e.getInjections();if(u.length===0)return l;const d=Mee(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 Pee(e,t,n,r,a,s){const l=a.getRule(e),{ruleScanner:u,findOptions:d}=hL(l,e,a.endRule,n,r===s),f=u.findNextMatchSync(t,r,d);return f?{captureIndices:f.captureIndices,matchedRuleId:f.ruleId}:null}function Mee(e,t,n,r,a,s,l){let u=Number.MAX_VALUE,d=null,f,p=0;const m=s.contentNameScopesList.getScopeNames();for(let v=0,_=e.length;v<_;v++){const x=e[v];if(!x.matcher(m))continue;const A=t.getRule(x.ruleId),{ruleScanner:w,findOptions:N}=hL(A,t,null,r,a===l),E=w.findNextMatchSync(n,a,N);if(!E)continue;const T=E.captureIndices[0].start;if(!(T>=u)&&(u=T,d=E.captureIndices,f=E.ruleId,p=x.priority,u===a))break}return d?{priorityMatch:p===-1,captureIndices:d,matchedRuleId:f}:null}function hL(e,t,n,r,a){return{ruleScanner:e.compileAG(t,n,r,a),findOptions:0}}function zee(e,t,n,r,a){return{ruleScanner:e.compileWhileAG(t,n,r,a),findOptions:0}}function yc(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 m=0;m<d;m++){const v=s[m];if(v===null)continue;const _=l[m];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),v.retokenizeCapturedWithRuleId){const A=v.getName(u,l),w=r.contentNameScopesList.pushAttributed(A,e),N=v.getContentName(u,l),E=w.pushAttributed(N,e),T=r.push(v.retokenizeCapturedWithRuleId,_.start,-1,!1,null,w,E),R=e.createOnigString(u.substring(0,_.end));fL(e,R,n&&_.start===0,_.start,T,a,!1,0),sL(R);continue}const x=v.getName(u,l);if(x!==null){const w=(f.length>0?f[f.length-1].scopes:r.contentNameScopesList).pushAttributed(x,e);f.push(new Bee(w,_.end))}}for(;f.length>0;)a.produceFromScopes(f[f.length-1].scopes,f[f.length-1].endPos),f.pop()}var Bee=class{scopes;endPos;constructor(e,t){this.scopes=e,this.endPos=t}};function Vee(e,t,n,r,a,s,l,u){return new Fee(e,t,n,r,a,s,l,u)}function tR(e,t,n,r,a){const s=oh(t,ch),l=uL.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 ch(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(Uee(t[a],r))return n=a+1,!0;return!1})}function Uee(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 Fee=class{constructor(e,t,n,r,a,s,l,u){if(this._rootScopeName=e,this.balancedBracketSelectors=s,this._onigLib=u,this._basicScopeAttributesProvider=new Oee(n,r),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=l,this._grammar=nR(t,null),this._injections=null,this._tokenTypeMatchers=[],a)for(const d of Object.keys(a)){const f=oh(d,ch);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)tR(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&&tR(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]=nR(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=uL.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections());let a;if(!t||t===Xv.NULL){a=!0;const f=this._basicScopeAttributesProvider.getDefaultAttributes(),p=this.themeProvider.getDefaults(),m=Ls.set(0,f.languageId,f.tokenType,null,p.fontStyle,p.foregroundId,p.backgroundId),v=this.getRule(this._rootId).getName(null,null);let _;v?_=Nc.createRootAndLookUpScopeName(v,m,this):_=Nc.createRoot("unknown",m),t=new Xv(null,this._rootId,-1,-1,!1,null,_,_)}else a=!1,t.reset();e=e+`
299
- `;const s=this.createOnigString(e),l=s.content.length,u=new Gee(n,e,this._tokenTypeMatchers,this.balancedBracketSelectors),d=fL(this,s,a,0,t,u,!0,r);return sL(s),{lineLength:l,lineTokens:u,ruleStack:d.stack,stoppedEarly:d.stoppedEarly}}};function nR(e,t){return e=see(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 Nc=class Mr{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 Mr(r,a,s.encodedTokenAttributes);return r}static createRoot(t,n){return new Mr(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=Mr.mergeAttributes(n,a,l);return new Mr(null,s,u)}get scopeName(){return this.scopePath.scopeName}toString(){return this.getScopeNames().join(" ")}equals(t){return Mr.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),Ls.set(t,n.languageId,n.tokenType,null,a,s,l)}pushAttributed(t,n){if(t===null)return this;if(t.indexOf(" ")===-1)return Mr._pushAttributed(this,t,n);const r=t.split(/ /g);let a=this;for(const s of r)a=Mr._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=Mr.mergeAttributes(t.tokenAttributes,a,l);return new Mr(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}},Xv=class Za{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 Za(null,0,0,0,!1,null,null,null);_enterPos;_anchorPos;depth;equals(t){return t===null?!1:Za._equals(this,t)}static _equals(t,n){return t===n?!0:this._structuralEquals(t,n)?Nc.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(){Za._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(t,n,r,a,s,l,u){return new Za(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 Za(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=Nc.fromExtension(t?.nameScopesList??null,n.nameScopesList);return new Za(t,n.ruleId,n.enterPos??-1,n.anchorPos??-1,n.beginRuleCapturedEOL,n.endRule,r,Nc.fromExtension(r,n.contentNameScopesList))}},Hee=class{balancedBracketScopes;unbalancedBracketScopes;allowAny=!1;constructor(e,t){this.balancedBracketScopes=e.flatMap(n=>n==="*"?(this.allowAny=!0,[]):oh(n,ch).map(r=>r.matcher)),this.unbalancedBracketScopes=t.flatMap(n=>oh(n,ch).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}},Gee=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=Ls.set(r,0,l.type,null,-1,0,0));this.balancedBracketSelectors&&(a=this.balancedBracketSelectors.match(s))}if(a&&(r=Ls.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}},$ee=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,Vee(e,s,t,n,r,a,this,this._onigLib))}return this._grammars.get(e)}},Kee=class{_options;_syncRegistry;_ensureGrammarCache;constructor(t){this._options=t,this._syncRegistry=new $ee(ah.createFromRawTheme(t.theme,t.colorMap),t.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(t,n){this._syncRegistry.setTheme(ah.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 Hee(r.balancedBracketSelectors||[],r.unbalancedBracketSelectors||[]))}loadGrammar(t){return this._loadGrammar(t,0,null,null,null)}_loadGrammar(t,n,r,a,s){const l=new Eee(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)}},Qv=Xv.NULL;const qee=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"];class xu{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}}xu.prototype.normal={};xu.prototype.property={};xu.prototype.space=void 0;function pL(e,t){const n={},r={};for(const a of e)Object.assign(n,a.property),Object.assign(r,a.normal);return new xu(n,r,t)}function Jv(e){return e.toLowerCase()}class jn{constructor(t,n){this.attribute=n,this.property=t}}jn.prototype.attribute="";jn.prototype.booleanish=!1;jn.prototype.boolean=!1;jn.prototype.commaOrSpaceSeparated=!1;jn.prototype.commaSeparated=!1;jn.prototype.defined=!1;jn.prototype.mustUseProperty=!1;jn.prototype.number=!1;jn.prototype.overloadedBoolean=!1;jn.prototype.property="";jn.prototype.spaceSeparated=!1;jn.prototype.space=void 0;let Wee=0;const He=bo(),Bt=bo(),eb=bo(),ge=bo(),vt=bo(),Ts=bo(),Hn=bo();function bo(){return 2**++Wee}const tb=Object.freeze(Object.defineProperty({__proto__:null,boolean:He,booleanish:Bt,commaOrSpaceSeparated:Hn,commaSeparated:Ts,number:ge,overloadedBoolean:eb,spaceSeparated:vt},Symbol.toStringTag,{value:"Module"})),by=Object.keys(tb);class Q_ extends jn{constructor(t,n,r,a){let s=-1;if(super(t,n),rR(this,"space",a),typeof r=="number")for(;++s<by.length;){const l=by[s];rR(this,by[s],(r&tb[l])===tb[l])}}}Q_.prototype.defined=!0;function rR(e,t,n){n&&(e[t]=n)}function Js(e){const t={},n={};for(const[r,a]of Object.entries(e.properties)){const s=new Q_(r,e.transform(e.attributes||{},r),a,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(s.mustUseProperty=!0),t[r]=s,n[Jv(r)]=r,n[Jv(s.attribute)]=r}return new xu(t,n,e.space)}const mL=Js({properties:{ariaActiveDescendant:null,ariaAtomic:Bt,ariaAutoComplete:null,ariaBusy:Bt,ariaChecked:Bt,ariaColCount:ge,ariaColIndex:ge,ariaColSpan:ge,ariaControls:vt,ariaCurrent:null,ariaDescribedBy:vt,ariaDetails:null,ariaDisabled:Bt,ariaDropEffect:vt,ariaErrorMessage:null,ariaExpanded:Bt,ariaFlowTo:vt,ariaGrabbed:Bt,ariaHasPopup:null,ariaHidden:Bt,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:vt,ariaLevel:ge,ariaLive:null,ariaModal:Bt,ariaMultiLine:Bt,ariaMultiSelectable:Bt,ariaOrientation:null,ariaOwns:vt,ariaPlaceholder:null,ariaPosInSet:ge,ariaPressed:Bt,ariaReadOnly:Bt,ariaRelevant:null,ariaRequired:Bt,ariaRoleDescription:vt,ariaRowCount:ge,ariaRowIndex:ge,ariaRowSpan:ge,ariaSelected:Bt,ariaSetSize:ge,ariaSort:null,ariaValueMax:ge,ariaValueMin:ge,ariaValueNow:ge,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function gL(e,t){return t in e?e[t]:t}function yL(e,t){return gL(e,t.toLowerCase())}const Zee=Js({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Ts,acceptCharset:vt,accessKey:vt,action:null,allow:null,allowFullScreen:He,allowPaymentRequest:He,allowUserMedia:He,alt:null,as:null,async:He,autoCapitalize:null,autoComplete:vt,autoFocus:He,autoPlay:He,blocking:vt,capture:null,charSet:null,checked:He,cite:null,className:vt,cols:ge,colSpan:null,content:null,contentEditable:Bt,controls:He,controlsList:vt,coords:ge|Ts,crossOrigin:null,data:null,dateTime:null,decoding:null,default:He,defer:He,dir:null,dirName:null,disabled:He,download:eb,draggable:Bt,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:He,formTarget:null,headers:vt,height:ge,hidden:eb,high:ge,href:null,hrefLang:null,htmlFor:vt,httpEquiv:vt,id:null,imageSizes:null,imageSrcSet:null,inert:He,inputMode:null,integrity:null,is:null,isMap:He,itemId:null,itemProp:vt,itemRef:vt,itemScope:He,itemType:vt,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:He,low:ge,manifest:null,max:null,maxLength:ge,media:null,method:null,min:null,minLength:ge,multiple:He,muted:He,name:null,nonce:null,noModule:He,noValidate:He,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:He,optimum:ge,pattern:null,ping:vt,placeholder:null,playsInline:He,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:He,referrerPolicy:null,rel:vt,required:He,reversed:He,rows:ge,rowSpan:ge,sandbox:vt,scope:null,scoped:He,seamless:He,selected:He,shadowRootClonable:He,shadowRootDelegatesFocus:He,shadowRootMode:null,shape:null,size:ge,sizes:null,slot:null,span:ge,spellCheck:Bt,src:null,srcDoc:null,srcLang:null,srcSet:null,start:ge,step:null,style:null,tabIndex:ge,target:null,title:null,translate:null,type:null,typeMustMatch:He,useMap:null,value:Bt,width:ge,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:vt,axis:null,background:null,bgColor:null,border:ge,borderColor:null,bottomMargin:ge,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:He,declare:He,event:null,face:null,frame:null,frameBorder:null,hSpace:ge,leftMargin:ge,link:null,longDesc:null,lowSrc:null,marginHeight:ge,marginWidth:ge,noResize:He,noHref:He,noShade:He,noWrap:He,object:null,profile:null,prompt:null,rev:null,rightMargin:ge,rules:null,scheme:null,scrolling:Bt,standby:null,summary:null,text:null,topMargin:ge,valueType:null,version:null,vAlign:null,vLink:null,vSpace:ge,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:He,disableRemotePlayback:He,prefix:null,property:null,results:ge,security:null,unselectable:null},space:"html",transform:yL}),Yee=Js({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:Hn,accentHeight:ge,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:ge,amplitude:ge,arabicForm:null,ascent:ge,attributeName:null,attributeType:null,azimuth:ge,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:ge,by:null,calcMode:null,capHeight:ge,className:vt,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:ge,diffuseConstant:ge,direction:null,display:null,dur:null,divisor:ge,dominantBaseline:null,download:He,dx:null,dy:null,edgeMode:null,editable:null,elevation:ge,enableBackground:null,end:null,event:null,exponent:ge,externalResourcesRequired:null,fill:null,fillOpacity:ge,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Ts,g2:Ts,glyphName:Ts,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:ge,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:ge,horizOriginX:ge,horizOriginY:ge,id:null,ideographic:ge,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:ge,k:ge,k1:ge,k2:ge,k3:ge,k4:ge,kernelMatrix:Hn,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:ge,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:ge,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:ge,overlineThickness:ge,paintOrder:null,panose1:null,path:null,pathLength:ge,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:vt,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:ge,pointsAtY:ge,pointsAtZ:ge,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Hn,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Hn,rev:Hn,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Hn,requiredFeatures:Hn,requiredFonts:Hn,requiredFormats:Hn,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:ge,specularExponent:ge,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:ge,strikethroughThickness:ge,string:null,stroke:null,strokeDashArray:Hn,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:ge,strokeOpacity:ge,strokeWidth:null,style:null,surfaceScale:ge,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Hn,tabIndex:ge,tableValues:null,target:null,targetX:ge,targetY:ge,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Hn,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:ge,underlineThickness:ge,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:ge,values:null,vAlphabetic:ge,vMathematical:ge,vectorEffect:null,vHanging:ge,vIdeographic:ge,version:null,vertAdvY:ge,vertOriginX:ge,vertOriginY:ge,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:ge,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:gL}),vL=Js({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()}}),bL=Js({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:yL}),_L=Js({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),Xee=/[A-Z]/g,iR=/-[a-z]/g,Qee=/^data[-\w.:]+$/i;function Jee(e,t){const n=Jv(t);let r=t,a=jn;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&Qee.test(t)){if(t.charAt(4)==="-"){const s=t.slice(5).replace(iR,tte);r="data"+s.charAt(0).toUpperCase()+s.slice(1)}else{const s=t.slice(4);if(!iR.test(s)){let l=s.replace(Xee,ete);l.charAt(0)!=="-"&&(l="-"+l),t="data"+l}}a=Q_}return new a(r,t)}function ete(e){return"-"+e.toLowerCase()}function tte(e){return e.charAt(1).toUpperCase()}const nte=pL([mL,Zee,vL,bL,_L],"html"),EL=pL([mL,Yee,vL,bL,_L],"svg"),aR={}.hasOwnProperty;function rte(e,t){const n=t||{};function r(a,...s){let l=r.invalid;const u=r.handlers;if(a&&aR.call(a,e)){const d=String(a[e]);l=aR.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 ite=/["&'<>`]/g,ate=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,ote=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,ste=/[|\\{}()[\]^$+*?.]/g,oR=new WeakMap;function lte(e,t){if(e=e.replace(t.subset?cte(t.subset):ite,r),t.subset||t.escapeOnly)return e;return e.replace(ate,n).replace(ote,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 cte(e){let t=oR.get(e);return t||(t=ute(e),oR.set(e,t)),t}function ute(e){const t=[];let n=-1;for(;++n<e.length;)t.push(e[n].replace(ste,"\\$&"));return new RegExp("(?:"+t.join("|")+")","g")}const dte=/[\dA-Fa-f]/;function fte(e,t,n){const r="&#x"+e.toString(16).toUpperCase();return n&&t&&!dte.test(String.fromCharCode(t))?r:r+";"}const hte=/\d/;function pte(e,t,n){const r="&#"+String(e);return n&&t&&!hte.test(String.fromCharCode(t))?r:r+";"}const mte=["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:"€"},gte=["cent","copy","divide","gt","lt","not","para","times"],SL={}.hasOwnProperty,nb={};let sf;for(sf in _y)SL.call(_y,sf)&&(nb[_y[sf]]=sf);const yte=/[^\dA-Za-z]/;function vte(e,t,n,r){const a=String.fromCharCode(e);if(SL.call(nb,a)){const s=nb[a],l="&"+s;return n&&mte.includes(s)&&!gte.includes(s)&&(!r||t&&t!==61&&yte.test(String.fromCharCode(t)))?l:l+";"}return""}function bte(e,t,n){let r=fte(e,t,n.omitOptionalSemicolons),a;if((n.useNamedReferences||n.useShortestReferences)&&(a=vte(e,t,n.omitOptionalSemicolons,n.attribute)),(n.useShortestReferences||!a)&&n.useShortestReferences){const s=pte(e,t,n.omitOptionalSemicolons);s.length<r.length&&(r=s)}return a&&(!n.useShortestReferences||a.length<r.length)?a:r}function ws(e,t){return lte(e,Object.assign({format:bte},t))}const _te=/^>|^->|<!--|-->|--!>|<!-$/g,Ete=[">"],Ste=["<",">"];function xte(e,t,n,r){return r.settings.bogusComments?"<?"+ws(e.value,Object.assign({},r.settings.characterReferences,{subset:Ete}))+">":"<!--"+e.value.replace(_te,a)+"-->";function a(s){return ws(s,Object.assign({},r.settings.characterReferences,{subset:Ste}))}}function Ate(e,t,n,r){return"<!"+(r.settings.upperDoctype?"DOCTYPE":"doctype")+(r.settings.tightDoctype?"":" ")+"html>"}function sR(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 Tte(e,t){const n=t||{};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}function wte(e){return e.join(" ").trim()}const Cte=/[ \t\n\f\r]/g;function J_(e){return typeof e=="object"?e.type==="text"?lR(e.value):!1:lR(e)}function lR(e){return e.replace(Cte,"")===""}const Yt=AL(1),xL=AL(-1),Rte=[];function AL(e){return t;function t(n,r,a){const s=n?n.children:Rte;let l=(r||0)+e,u=s[l];if(!a)for(;u&&J_(u);)l+=e,u=s[l];return u}}const kte={}.hasOwnProperty;function TL(e){return t;function t(n,r,a){return kte.call(e,n.tagName)&&e[n.tagName](n,r,a)}}const e0=TL({body:Ite,caption:Ey,colgroup:Ey,dd:jte,dt:Lte,head:Ey,html:Nte,li:Dte,optgroup:Pte,option:Mte,p:Ote,rp:cR,rt:cR,tbody:Bte,td:uR,tfoot:Vte,th:uR,thead:zte,tr:Ute});function Ey(e,t,n){const r=Yt(n,t,!0);return!r||r.type!=="comment"&&!(r.type==="text"&&J_(r.value.charAt(0)))}function Nte(e,t,n){const r=Yt(n,t);return!r||r.type!=="comment"}function Ite(e,t,n){const r=Yt(n,t);return!r||r.type!=="comment"}function Ote(e,t,n){const r=Yt(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 Dte(e,t,n){const r=Yt(n,t);return!r||r.type==="element"&&r.tagName==="li"}function Lte(e,t,n){const r=Yt(n,t);return!!(r&&r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd"))}function jte(e,t,n){const r=Yt(n,t);return!r||r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd")}function cR(e,t,n){const r=Yt(n,t);return!r||r.type==="element"&&(r.tagName==="rp"||r.tagName==="rt")}function Pte(e,t,n){const r=Yt(n,t);return!r||r.type==="element"&&r.tagName==="optgroup"}function Mte(e,t,n){const r=Yt(n,t);return!r||r.type==="element"&&(r.tagName==="option"||r.tagName==="optgroup")}function zte(e,t,n){const r=Yt(n,t);return!!(r&&r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot"))}function Bte(e,t,n){const r=Yt(n,t);return!r||r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot")}function Vte(e,t,n){return!Yt(n,t)}function Ute(e,t,n){const r=Yt(n,t);return!r||r.type==="element"&&r.tagName==="tr"}function uR(e,t,n){const r=Yt(n,t);return!r||r.type==="element"&&(r.tagName==="td"||r.tagName==="th")}const Fte=TL({body:$te,colgroup:Kte,head:Gte,html:Hte,tbody:qte});function Hte(e){const t=Yt(e,-1);return!t||t.type!=="comment"}function Gte(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 $te(e){const t=Yt(e,-1,!0);return!t||t.type!=="comment"&&!(t.type==="text"&&J_(t.value.charAt(0)))&&!(t.type==="element"&&(t.tagName==="meta"||t.tagName==="link"||t.tagName==="script"||t.tagName==="style"||t.tagName==="template"))}function Kte(e,t,n){const r=xL(n,t),a=Yt(e,-1,!0);return n&&r&&r.type==="element"&&r.tagName==="colgroup"&&e0(r,n.children.indexOf(r),n)?!1:!!(a&&a.type==="element"&&a.tagName==="col")}function qte(e,t,n){const r=xL(n,t),a=Yt(e,-1);return n&&r&&r.type==="element"&&(r.tagName==="thead"||r.tagName==="tbody")&&e0(r,n.children.indexOf(r),n)?!1:!!(a&&a.type==="element"&&a.tagName==="tr")}const lf={name:[[`
300
- \f\r &/=>`.split(""),`
301
- \f\r "&'/=>\``.split("")],[`\0
302
- \f\r "&'/<=>`.split(""),`\0
303
- \f\r "&'/<=>\``.split("")]],unquoted:[[`
304
- \f\r &>`.split(""),`\0
305
- \f\r "&'<=>\``.split("")],[`\0
306
- \f\r "&'<=>\``.split(""),`\0
307
- \f\r "&'<=>\``.split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]};function Wte(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=EL);const f=Zte(r,e.properties),p=r.all(a.space==="html"&&e.tagName==="template"?e.content:e);return r.schema=a,p&&(l=!1),(f||!s||!Fte(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||!e0(e,t,n))&&u.push("</"+e.tagName+">"),u.join("")}function Zte(e,t){const n=[];let r=-1,a;if(t){for(a in t)if(t[a]!==null&&t[a]!==void 0){const s=Yte(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 Yte(e,t,n){const r=Jee(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=ws(r.attribute,Object.assign({},e.settings.characterReferences,{subset:lf.name[a][s]}));return n===!0||(n=Array.isArray(n)?(r.commaSeparated?Tte:wte)(n,{padLeft:!e.settings.tightCommaSeparatedLists}):String(n),e.settings.collapseEmptyAttributes&&!n)?d:(e.settings.preferUnquoted&&(u=ws(n,Object.assign({},e.settings.characterReferences,{attribute:!0,subset:lf.unquoted[a][s]}))),u!==n&&(e.settings.quoteSmart&&sR(n,l)>sR(n,e.alternative)&&(l=e.alternative),u=l+ws(n,Object.assign({},e.settings.characterReferences,{subset:(l==="'"?lf.single:lf.double)[a][s],attribute:!0}))+l),d+(u&&"="+u))}const Xte=["<","&"];function wL(e,t,n,r){return n&&n.type==="element"&&(n.tagName==="script"||n.tagName==="style")?e.value:ws(e.value,Object.assign({},r.settings.characterReferences,{subset:Xte}))}function Qte(e,t,n,r){return r.settings.allowDangerousHtml?e.value:wL(e,t,n,r)}function Jte(e,t,n,r){return r.all(e)}const ene=rte("type",{invalid:tne,unknown:nne,handlers:{comment:xte,doctype:Ate,element:Wte,raw:Qte,root:Jte,text:wL}});function tne(e){throw new Error("Expected node, not `"+e+"`")}function nne(e){const t=e;throw new Error("Cannot compile unknown node `"+t.type+"`")}const rne={},ine={},ane=[];function one(e,t){const n=t||rne,r=n.quote||'"',a=r==='"'?"'":'"';if(r!=='"'&&r!=="'")throw new Error("Invalid quote `"+r+"`, expected `'` or `\"`");return{one:sne,all:lne,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||qee,characterReferences:n.characterReferences||ine,closeSelfClosing:n.closeSelfClosing||!1,closeEmptyElements:n.closeEmptyElements||!1},schema:n.space==="svg"?EL:nte,quote:r,alternative:a}.one(Array.isArray(e)?{type:"root",children:e}:e,void 0,void 0)}function sne(e,t,n){return ene(e,t,n,this)}function lne(e){const t=[],n=e&&e.children||ane;let r=-1;for(;++r<n.length;)t[r]=this.one(n[r],r,e);return t.join("")}function uh(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 aa(e,t){return e&&(t?.[e?.toLowerCase()]||e)}function cne(e){return Array.isArray(e)?e:[e]}async function CL(e){return Promise.resolve(typeof e=="function"?e():e).then(t=>t.default||t)}function t0(e){return!e||["plaintext","txt","text","plain"].includes(e)}function RL(e){return e==="ansi"||t0(e)}function n0(e){return e==="none"}function kL(e){return n0(e)}function NL(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 Kh(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 une(e){const t=Kh(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 dne(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 r0="light-dark()",fne=["color","background-color"];function hne(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 pne(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?hne(a,s):a})):e}function mne(e,t,n,r,a="css-vars"){const s={content:e.content,explanation:e.explanation,offset:e.offset},l=t.map(p=>dh(e.variants[p])),u=new Set(l.flatMap(p=>Object.keys(p))),d={},f=(p,m)=>{const v=m==="color"?"":m==="background-color"?"-bg":`-${m}`;return n+t[p]+(m==="color"?"":v)};return l.forEach((p,m)=>{for(const v of u){const _=p[v]||"inherit";if(m===0&&r&&fne.includes(v))if(r===r0&&l.length>1){const x=t.findIndex(E=>E==="light"),A=t.findIndex(E=>E==="dark");if(x===-1||A===-1)throw new Ut('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');const w=l[x][v]||"inherit",N=l[A][v]||"inherit";d[v]=`light-dark(${w}, ${N})`,a==="css-vars"&&(d[f(m,v)]=_)}else d[v]=_;else a==="css-vars"&&(d[f(m,v)]=_)}}),s.htmlStyle=d,s}function dh(e){const t={};if(e.color&&(t.color=e.color),e.bgColor&&(t["background-color"]=e.bgColor),e.fontStyle){e.fontStyle&vn.Italic&&(t["font-style"]="italic"),e.fontStyle&vn.Bold&&(t["font-weight"]="bold");const n=[];e.fontStyle&vn.Underline&&n.push("underline"),e.fontStyle&vn.Strikethrough&&n.push("line-through"),n.length&&(t["text-decoration"]=n.join(" "))}return t}function rb(e){return typeof e=="string"?e:Object.entries(e).map(([t,n])=>`${t}:${n}`).join(";")}const IL=new WeakMap;function qh(e,t){IL.set(e,t)}function Zc(e){return IL.get(e)}class el{_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 el(Object.fromEntries(cne(n).map(r=>[r,Qv])),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 gne(this._stacks[t])}toJSON(){return{lang:this.lang,theme:this.theme,themes:this.themes,scopes:this.getScopes()}}}function gne(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 yne(e,t){if(!(e instanceof el))throw new Ut("Invalid grammar state");return e.getInternalStack(t)}function vne(){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 Ut(`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 Ut(`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 Ut(`Invalid decoration position ${JSON.stringify(l)}. Line ${l.line} length: ${u.length}`);return{...l,character:d,offset:a.posToIndex(l.line,d)}}};const a=une(n.source),s=(n.options.decorations||[]).map(l=>({...l,start:r(l.start),end:r(l.end)}));bne(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 pne(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 Ut(`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,m,v,_){const x=a[p];let A="",w=-1,N=-1;if(m===0&&(w=0),v===0&&(N=0),v===Number.POSITIVE_INFINITY&&(N=x.children.length),w===-1||N===-1)for(let T=0;T<x.children.length;T++)A+=OL(x.children[T]),w===-1&&A.length===m&&(w=T+1),N===-1&&A.length===v&&(N=T+1);if(w===-1)throw new Ut(`Failed to find start index for decoration ${JSON.stringify(_.start)}`);if(N===-1)throw new Ut(`Failed to find end index for decoration ${JSON.stringify(_.end)}`);const E=x.children.slice(w,N);if(!_.alwaysWrap&&E.length===x.children.length)u(x,_,"line");else if(!_.alwaysWrap&&E.length===1&&E[0].type==="element")u(E[0],_,"token");else{const T={type:"element",tagName:"span",properties:{},children:E};u(T,_,"wrapper"),x.children.splice(w,E.length,T)}}function l(p,m){a[p]=u(a[p],m,"line")}function u(p,m,v){const _=m.properties||{},x=m.transform||(A=>A);return p.tagName=m.tagName||"span",p.properties={...p.properties,..._,class:p.properties.class},m.properties?.class&&NL(p,m.properties.class),p=x(p,v)||p,p}const d=[],f=r.decorations.sort((p,m)=>m.start.offset-p.start.offset||p.end.offset-m.end.offset);for(const p of f){const{start:m,end:v}=p;if(m.line===v.line)s(m.line,m.character,v.character,p);else if(m.line<v.line){s(m.line,m.character,Number.POSITIVE_INFINITY,p);for(let _=m.line+1;_<v.line;_++)d.unshift(()=>l(_,p));s(v.line,0,v.character,p)}}d.forEach(p=>p())}}}function bne(e){for(let t=0;t<e.length;t++){const n=e[t];if(n.start.offset>n.end.offset)throw new Ut(`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 Ut(`Decorations ${JSON.stringify(n.start)} and ${JSON.stringify(a.start)} intersect.`)}}}}function OL(e){return e.type==="text"?e.value:e.type==="element"?e.children.map(OL).join(""):""}const _ne=[vne()];function fh(e){const t=Ene(e.transformers||[]);return[...t.pre,...t.normal,...t.post,..._ne]}function Ene(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 to=["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 Sne(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 dR(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 xne(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:to[r-30]}});else if(r===38){const a=dR(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:to[r-40]}});else if(r===48){const a=dR(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:to[r-90+8]}}):r>=100&&r<=107&&t.push({type:"setBackgroundColor",value:{type:"named",name:to[r-100+8]}})}return t}function Ane(){let e=null,t=null,n=new Set;return{parse(r){const a=[];let s=0;do{const l=Sne(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=xne(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 Tne={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 wne(e=Tne){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<to.length;f++)r.push(t(to[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 m=0;m<6;m++)r.push(n([u[f],u[p],u[m]]));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 Cne(e,t,n){const r=uh(e,n),a=Kh(t),s=wne(Object.fromEntries(to.map(u=>[u,e.colors?.[`terminal.ansi${u[0].toUpperCase()}${u.substring(1)}`]]))),l=Ane();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=aa(f,r),p=aa(p,r),d.decorations.has("dim")&&(f=Rne(f));let m=vn.None;return d.decorations.has("bold")&&(m|=vn.Bold),d.decorations.has("italic")&&(m|=vn.Italic),d.decorations.has("underline")&&(m|=vn.Underline),d.decorations.has("strikethrough")&&(m|=vn.Strikethrough),{content:d.value,offset:u[1],color:f,bgColor:p,fontStyle:m}}))}function Rne(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 i0(e,t,n={}){const{lang:r="text",theme:a=e.getLoadedThemes()[0]}=n;if(t0(r)||n0(a))return Kh(t).map(d=>[{content:d[0],offset:d[1]}]);const{theme:s,colorMap:l}=e.setTheme(a);if(r==="ansi")return Cne(s,t,n);const u=e.getLanguage(r);if(n.grammarState){if(n.grammarState.lang!==u.name)throw new Ut(`Grammar state language "${n.grammarState.lang}" does not match highlight language "${u.name}"`);if(!n.grammarState.themes.includes(s.name))throw new Ut(`Grammar state themes "${n.grammarState.themes}" do not contain highlight theme "${s.name}"`)}return Nne(t,u,s,l,n)}function kne(...e){if(e.length===2)return Zc(e[1]);const[t,n,r={}]=e,{lang:a="text",theme:s=t.getLoadedThemes()[0]}=r;if(t0(a)||n0(s))throw new Ut("Plain language does not have grammar state");if(a==="ansi")throw new Ut("ANSI language does not have grammar state");const{theme:l,colorMap:u}=t.setTheme(s),d=t.getLanguage(a);return new el(hh(n,d,l,u,r).stateStack,d.name,l.name)}function Nne(e,t,n,r,a){const s=hh(e,t,n,r,a),l=new el(hh(e,t,n,r,a).stateStack,t.name,n.name);return qh(s.tokens,l),s.tokens}function hh(e,t,n,r,a){const s=uh(n,a),{tokenizeMaxLineLength:l=0,tokenizeTimeLimit:u=500}=a,d=Kh(e);let f=a.grammarState?yne(a.grammarState,n.name)??Qv:a.grammarContextCode!=null?hh(a.grammarContextCode,t,n,r,{...a,grammarState:void 0,grammarContextCode:void 0}).stateStack:Qv,p=[];const m=[];for(let v=0,_=d.length;v<_;v++){const[x,A]=d[v];if(x===""){p=[],m.push([]);continue}if(l>0&&x.length>=l){p=[],m.push([{content:x,offset:A,color:"",fontStyle:0}]);continue}let w,N,E;a.includeExplanation&&(w=t.tokenizeLine(x,f,u),N=w.tokens,E=0);const T=t.tokenizeLine2(x,f,u),R=T.tokens.length/2;for(let C=0;C<R;C++){const I=T.tokens[2*C],D=C+1<R?T.tokens[2*C+2]:x.length;if(I===D)continue;const L=T.tokens[2*C+1],U=aa(r[Ls.getForeground(L)],s),K=Ls.getFontStyle(L),W={content:x.substring(I,D),offset:A+I,color:U,fontStyle:K};if(a.includeExplanation){const J=[];if(a.includeExplanation!=="scopeName")for(const Z of n.settings){let ae;switch(typeof Z.scope){case"string":ae=Z.scope.split(/,/).map(z=>z.trim());break;case"object":ae=Z.scope;break;default:continue}J.push({settings:Z,selectors:ae.map(z=>z.split(/ /))})}W.explanation=[];let le=0;for(;I+le<D;){const Z=N[E],ae=x.substring(Z.startIndex,Z.endIndex);le+=ae.length,W.explanation.push({content:ae,scopes:a.includeExplanation==="scopeName"?Ine(Z.scopes):One(J,Z.scopes)}),E+=1}}p.push(W)}m.push(p),p=[],f=T.ruleStack}return{tokens:m,stateStack:f}}function Ine(e){return e.map(t=>({scopeName:t}))}function One(e,t){const n=[];for(let r=0,a=t.length;r<a;r++){const s=t[r];n[r]={scopeName:s,themeMatches:Lne(e,s,t.slice(0,r))}}return n}function fR(e,t){return e===t||t.substring(0,e.length)===e&&t[e.length]==="."}function Dne(e,t,n){if(!fR(e[e.length-1],t))return!1;let r=e.length-2,a=n.length-1;for(;r>=0&&a>=0;)fR(e[r],n[a])&&(r-=1),a-=1;return r===-1}function Lne(e,t,n){const r=[];for(const{selectors:a,settings:s}of e)for(const l of a)if(Dne(l,t,n)){r.push(s);break}return r}function DL(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=i0(e,t,{...n,theme:d.theme}),p=Zc(f),m=typeof d.theme=="string"?d.theme:d.theme.name;return{tokens:f,state:p,theme:m}}),s=jne(...a.map(d=>d.tokens)),l=s[0].map((d,f)=>d.map((p,m)=>{const v={content:p.content,variants:{},offset:p.offset};return"includeExplanation"in n&&n.includeExplanation&&(v.explanation=p.explanation),s.forEach((_,x)=>{const{content:A,explanation:w,offset:N,...E}=_[f][m];v.variants[r[x].color]=E}),v})),u=a[0].state?new el(Object.fromEntries(a.map(d=>[d.theme,d.state?.getInternalStack(d.theme)])),a[0].state.lang):void 0;return u&&qh(l,u),l}function jne(...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 ph(e,t,n){let r,a,s,l,u,d;if("themes"in n){const{defaultColor:f="light",cssVariablePrefix:p="--shiki-",colorsRendering:m="css-vars"}=n,v=Object.entries(n.themes).filter(N=>N[1]).map(N=>({color:N[0],theme:N[1]})).sort((N,E)=>N.color===f?-1:E.color===f?1:0);if(v.length===0)throw new Ut("`themes` option must not be empty");const _=DL(e,t,n);if(d=Zc(_),f&&r0!==f&&!v.find(N=>N.color===f))throw new Ut(`\`themes\` option must contain the defaultColor key \`${f}\``);const x=v.map(N=>e.getTheme(N.theme)),A=v.map(N=>N.color);s=_.map(N=>N.map(E=>mne(E,A,p,f,m))),d&&qh(s,d);const w=v.map(N=>uh(N.theme,n));a=hR(v,x,w,p,f,"fg",m),r=hR(v,x,w,p,f,"bg",m),l=`shiki-themes ${x.map(N=>N.name).join(" ")}`,u=f?void 0:[a,r].join(";")}else if("theme"in n){const f=uh(n.theme,n);s=i0(e,t,n);const p=e.getTheme(n.theme);r=aa(p.bg,f),a=aa(p.fg,f),l=p.name,d=Zc(s)}else throw new Ut("Invalid options, either `theme` or `themes` must be provided");return{tokens:s,fg:a,bg:r,themeName:l,rootStyle:u,grammarState:d}}function hR(e,t,n,r,a,s,l){return e.map((u,d)=>{const f=aa(t[d][s],n[d])||"inherit",p=`${r+u.color}${s==="bg"?"-bg":""}:${f}`;if(d===0&&a){if(a===r0&&e.length>1){const m=e.findIndex(A=>A.color==="light"),v=e.findIndex(A=>A.color==="dark");if(m===-1||v===-1)throw new Ut('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');const _=aa(t[m][s],n[m])||"inherit",x=aa(t[v][s],n[v])||"inherit";return`light-dark(${_}, ${x});${p}`}return f}return l==="css-vars"?p:null}).filter(u=>!!u).join(";")}function mh(e,t,n,r={meta:{},options:n,codeToHast:(a,s)=>mh(e,a,s),codeToTokens:(a,s)=>ph(e,a,s)}){let a=t;for(const x of fh(n))a=x.preprocess?.call(r,a,n)||a;let{tokens:s,fg:l,bg:u,themeName:d,rootStyle:f,grammarState:p}=ph(e,a,n);const{mergeWhitespaces:m=!0,mergeSameStyleTokens:v=!1}=n;m===!0?s=Mne(s):m==="never"&&(s=zne(s)),v&&(s=Bne(s));const _={...r,get source(){return a}};for(const x of fh(n))s=x.tokens?.call(_,s)||s;return Pne(s,{...n,fg:l,bg:u,themeName:d,rootStyle:f},_,p)}function Pne(e,t,n,r=Zc(e)){const a=fh(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(([x])=>!x.startsWith("_")))},children:[]},p={type:"element",tagName:"code",properties:{},children:s};const m=[],v={...n,structure:u,addClassToHast:NL,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 m}};if(e.forEach((x,A)=>{A&&(u==="inline"?l.children.push({type:"element",tagName:"br",properties:{},children:[]}):u==="classic"&&s.push({type:"text",value:`
308
- `}));let w={type:"element",tagName:"span",properties:{class:"line"},children:[]},N=0;for(const E of x){let T={type:"element",tagName:"span",properties:{...E.htmlAttrs},children:[{type:"text",value:E.content}]};const R=rb(E.htmlStyle||dh(E));R&&(T.properties.style=R);for(const C of a)T=C?.span?.call(v,T,A+1,N,w,E)||T;u==="inline"?l.children.push(T):u==="classic"&&w.children.push(T),N+=E.content.length}if(u==="classic"){for(const E of a)w=E?.line?.call(v,w,A+1)||w;m.push(w),s.push(w)}}),u==="classic"){for(const x of a)p=x?.code?.call(v,p)||p;f.children.push(p);for(const x of a)f=x?.pre?.call(v,f)||f;l.children.push(f)}let _=l;for(const x of a)_=x?.root?.call(v,_)||_;return r&&qh(_,r),_}function Mne(e){return e.map(t=>{const n=[];let r="",a=0;return t.forEach((s,l)=>{const d=!(s.fontStyle&&(s.fontStyle&vn.Underline||s.fontStyle&vn.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 zne(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 Bne(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=rb(a.htmlStyle||dh(a)),l=rb(r.htmlStyle||dh(r)),u=a.fontStyle&&(a.fontStyle&vn.Underline||a.fontStyle&vn.Strikethrough),d=r.fontStyle&&(r.fontStyle&vn.Underline||r.fontStyle&vn.Strikethrough);!u&&!d&&s===l?a.content+=r.content:n.push({...r})}return n})}const Vne=one;function Une(e,t,n){const r={meta:{},options:n,codeToHast:(s,l)=>mh(e,s,l),codeToTokens:(s,l)=>ph(e,s,l)};let a=Vne(mh(e,t,n,r));for(const s of fh(n))a=s.postprocess?.call(r,a,n)||a;return a}const pR={light:"#333333",dark:"#bbbbbb"},mR={light:"#fffffe",dark:"#1e1e1e"},gR="__shiki_resolved";function a0(e){if(e?.[gR])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"?pR.light:pR.dark),n||(n=t.type==="light"?mR.light:mR.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 m=l(u.settings.foreground);t.colorReplacements[m]=u.settings.foreground,p.settings.foreground=m}if(f){const m=l(u.settings.background);t.colorReplacements[m]=u.settings.background,p.settings.background=m}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,gR,{enumerable:!1,writable:!1,value:!0}),t}async function LL(e){return Array.from(new Set((await Promise.all(e.filter(t=>!RL(t)).map(async t=>await CL(t).then(n=>Array.isArray(n)?n:[n])))).flat()))}async function jL(e){return(await Promise.all(e.map(async n=>kL(n)?null:a0(await CL(n))))).filter(n=>!!n)}let Fne=3;function Hne(e,t=3){t>Fne||console.trace(`[SHIKI DEPRECATE]: ${e}`)}let _s=class extends Error{constructor(t){super(t),this.name="ShikiError"}};class Gne extends Kee{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=a0(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=ah.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 _s(`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 _s(`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 $ne{_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 hc=0;function Kne(e){hc+=1,e.warnings!==!1&&hc>=10&&hc%10===0&&console.warn(`[Shiki] ${hc} 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 _s("`engine` option is required for synchronous mode");const n=(e.langs||[]).flat(1),r=(e.themes||[]).flat(1).map(a0),a=new $ne(e.engine,n),s=new Gne(a,r,n,e.langAlias);let l;function u(E){w();const T=s.getGrammar(typeof E=="string"?E:E.name);if(!T)throw new _s(`Language \`${E}\` not found, you may need to load it first`);return T}function d(E){if(E==="none")return{bg:"",fg:"",name:"none",settings:[],type:"dark"};w();const T=s.getTheme(E);if(!T)throw new _s(`Theme \`${E}\` not found, you may need to load it first`);return T}function f(E){w();const T=d(E);l!==E&&(s.setTheme(T),l=E);const R=s.getColorMap();return{theme:T,colorMap:R}}function p(){return w(),s.getLoadedThemes()}function m(){return w(),s.getLoadedLanguages()}function v(...E){w(),s.loadLanguages(E.flat(1))}async function _(...E){return v(await LL(E))}function x(...E){w();for(const T of E.flat(1))s.loadTheme(T)}async function A(...E){return w(),x(await jL(E))}function w(){if(t)throw new _s("Shiki instance has been disposed")}function N(){t||(t=!0,s.dispose(),hc-=1)}return{setTheme:f,getTheme:d,getLanguage:u,getLoadedThemes:p,getLoadedLanguages:m,loadLanguage:_,loadLanguageSync:v,loadTheme:A,loadThemeSync:x,dispose:N,[Symbol.dispose]:N}}async function qne(e){e.engine||Hne("`engine` option is required. Use `createOnigurumaEngine` or `createJavaScriptRegexEngine` to create an engine.");const[t,n,r]=await Promise.all([jL(e.themes||[]),LL(e.langs||[]),e.engine]);return Kne({...e,themes:t,langs:n,engine:r})}async function Wne(e){const t=await qne(e);return{getLastGrammarState:(...n)=>kne(t,...n),codeToTokensBase:(n,r)=>i0(t,n,r),codeToTokensWithThemes:(n,r)=>DL(t,n,r),codeToTokens:(n,r)=>ph(t,n,r),codeToHast:(n,r)=>mh(t,n,r),codeToHtml:(n,r)=>Une(t,n,r),getBundledLanguages:()=>({}),getBundledThemes:()=>({}),...t,getInternalContext:()=>t}}function Zne(e){const t=e.langs,n=e.themes,r=e.engine;async function a(s){function l(m){if(typeof m=="string"){if(RL(m))return[];m=s.langAlias?.[m]||m;const v=t[m];if(!v)throw new Ut(`Language \`${m}\` is not included in this bundle. You may want to load it from external source.`);return v}return m}function u(m){if(kL(m))return"none";if(typeof m=="string"){const v=n[m];if(!v)throw new Ut(`Theme \`${m}\` is not included in this bundle. You may want to load it from external source.`);return v}return m}const d=(s.themes??[]).map(m=>u(m)),f=(s.langs??[]).map(m=>l(m)),p=await Wne({engine:s.engine??r(),...s,themes:d,langs:f});return{...p,loadLanguage(...m){return p.loadLanguage(...m.map(l))},loadTheme(...m){return p.loadTheme(...m.map(u))},getBundledLanguages(){return t},getBundledThemes(){return n}}}return a}function Yne(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 Xne(e,t){const n=Yne(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 PL=[{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"),[]))}],Qne=Object.fromEntries(PL.map(e=>[e.id,e.import])),Jne=Object.fromEntries(PL.flatMap(e=>e.aliases?.map(t=>[t,e.import])||[])),ere={...Qne,...Jne},tre=[{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"),[]))}],nre=Object.fromEntries(tre.map(e=>[e.id,e.import]));class o0 extends Error{constructor(t){super(t),this.name="ShikiError"}}function rre(){return 2147483648}function ire(){return typeof performance<"u"?performance.now():Date.now()}const are=(e,t)=>e+(t-e%t)%t;async function ore(e){let t,n;const r={};function a(_){n=_,r.HEAPU8=new Uint8Array(_),r.HEAPU32=new Uint32Array(_)}function s(_,x,A){r.HEAPU8.copyWithin(_,x,x+A)}function l(_){try{return t.grow(_-n.byteLength+65535>>>16),a(t.buffer),1}catch{}}function u(_){const x=r.HEAPU8.length;_=_>>>0;const A=rre();if(_>A)return!1;for(let w=1;w<=4;w*=2){let N=x*(1+.2/w);N=Math.min(N,_+100663296);const E=Math.min(A,are(Math.max(_,N),65536));if(l(E))return!0}return!1}const d=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0;function f(_,x,A=1024){const w=x+A;let N=x;for(;_[N]&&!(N>=w);)++N;if(N-x>16&&_.buffer&&d)return d.decode(_.subarray(x,N));let E="";for(;x<N;){let T=_[x++];if(!(T&128)){E+=String.fromCharCode(T);continue}const R=_[x++]&63;if((T&224)===192){E+=String.fromCharCode((T&31)<<6|R);continue}const C=_[x++]&63;if((T&240)===224?T=(T&15)<<12|R<<6|C:T=(T&7)<<18|R<<12|C<<6|_[x++]&63,T<65536)E+=String.fromCharCode(T);else{const I=T-65536;E+=String.fromCharCode(55296|I>>10,56320|I&1023)}}return E}function p(_,x){return _?f(r.HEAPU8,_,x):""}const m={emscripten_get_now:ire,emscripten_memcpy_big:s,emscripten_resize_heap:u,fd_write:()=>0};async function v(){const x=await e({env:m,wasi_snapshot_preview1:m});t=x.memory,a(t.buffer),Object.assign(r,x),r.UTF8ToString=p}return await v(),r}var sre=Object.defineProperty,lre=(e,t,n)=>t in e?sre(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Wt=(e,t,n)=>lre(e,typeof t!="symbol"?t+"":t,n);let nn=null;function cre(e){throw new o0(e.UTF8ToString(e.getLastOnigError()))}class Wh{constructor(t){Wt(this,"utf16Length"),Wt(this,"utf8Length"),Wt(this,"utf16Value"),Wt(this,"utf8Value"),Wt(this,"utf16OffsetToUtf8"),Wt(this,"utf8OffsetToUtf16");const n=t.length,r=Wh._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 m=p,v=!1;if(p>=55296&&p<=56319&&f+1<n){const _=t.charCodeAt(f+1);_>=56320&&_<=57343&&(m=(p-55296<<10)+65536|_-56320,v=!0)}a&&(s[f]=d,v&&(s[f+1]=d),m<=127?l[d+0]=f:m<=2047?(l[d+0]=f,l[d+1]=f):m<=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)),m<=127?u[d++]=m:m<=2047?(u[d++]=192|(m&1984)>>>6,u[d++]=128|(m&63)>>>0):m<=65535?(u[d++]=224|(m&61440)>>>12,u[d++]=128|(m&4032)>>>6,u[d++]=128|(m&63)>>>0):(u[d++]=240|(m&1835008)>>>18,u[d++]=128|(m&258048)>>>12,u[d++]=128|(m&4032)>>>6,u[d++]=128|(m&63)>>>0),v&&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 Zh=class zr{constructor(t){if(Wt(this,"id",++zr.LAST_ID),Wt(this,"_onigBinding"),Wt(this,"content"),Wt(this,"utf16Length"),Wt(this,"utf8Length"),Wt(this,"utf16OffsetToUtf8"),Wt(this,"utf8OffsetToUtf16"),Wt(this,"ptr"),!nn)throw new o0("Must invoke loadWasm first.");this._onigBinding=nn,this.content=t;const n=new Wh(t);this.utf16Length=n.utf16Length,this.utf8Length=n.utf8Length,this.utf16OffsetToUtf8=n.utf16OffsetToUtf8,this.utf8OffsetToUtf16=n.utf8OffsetToUtf16,this.utf8Length<1e4&&!zr._sharedPtrInUse?(zr._sharedPtr||(zr._sharedPtr=nn.omalloc(1e4)),zr._sharedPtrInUse=!0,nn.HEAPU8.set(n.utf8Value,zr._sharedPtr),this.ptr=zr._sharedPtr):this.ptr=n.createString(nn)}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===zr._sharedPtr?zr._sharedPtrInUse=!1:this._onigBinding.ofree(this.ptr)}};Wt(Zh,"LAST_ID",0);Wt(Zh,"_sharedPtr",0);Wt(Zh,"_sharedPtrInUse",!1);let ML=Zh;class ure{constructor(t){if(Wt(this,"_onigBinding"),Wt(this,"_ptr"),!nn)throw new o0("Must invoke loadWasm first.");const n=[],r=[];for(let u=0,d=t.length;u<d;u++){const f=new Wh(t[u]);n[u]=f.createString(nn),r[u]=f.utf8Length}const a=nn.omalloc(4*t.length);nn.HEAPU32.set(n,a/4);const s=nn.omalloc(4*t.length);nn.HEAPU32.set(r,s/4);const l=nn.createOnigScanner(a,s,t.length);for(let u=0,d=t.length;u<d;u++)nn.ofree(n[u]);nn.ofree(s),nn.ofree(a),l===0&&cre(nn),this._onigBinding=nn,this._ptr=l}dispose(){this._onigBinding.freeOnigScanner(this._ptr)}findNextMatchSync(t,n,r){let a=0;if(typeof r=="number"&&(a=r),typeof t=="string"){t=new ML(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++],m=[];for(let v=0;v<p;v++){const _=t.convertUtf8OffsetToUtf16(u[d++]),x=t.convertUtf8OffsetToUtf16(u[d++]);m[v]={start:_,end:x,length:x-_}}return{index:f,captureIndices:m}}}function dre(e){return typeof e.instantiator=="function"}function fre(e){return typeof e.default=="function"}function hre(e){return typeof e.data<"u"}function pre(e){return typeof Response<"u"&&e instanceof Response}function mre(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 cf;function gre(e){if(cf)return cf;async function t(){nn=await ore(async n=>{let r=e;return r=await r,typeof r=="function"&&(r=await r(n)),typeof r=="function"&&(r=await r(n)),dre(r)?r=await r.instantiator(n):fre(r)?r=await r.default(n):(hre(r)&&(r=r.data),pre(r)?typeof WebAssembly.instantiateStreaming=="function"?r=await yre(r)(n):r=await vre(r)(n):mre(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 cf=t(),cf}function xy(e){return t=>WebAssembly.instantiate(e,t)}function yre(e){return t=>WebAssembly.instantiateStreaming(e,t)}function vre(e){return async t=>{const n=await e.arrayBuffer();return WebAssembly.instantiate(n,t)}}async function bre(e){return e&&await gre(e),{createScanner(t){return new ure(t.map(n=>typeof n=="string"?n:n.source))},createString(t){return new ML(t)}}}const _re=Zne({langs:ere,themes:nre,engine:()=>bre(j(()=>import("./wasm-CG6Dc4jp.js"),[]))}),{codeToHtml:Ere}=Xne(_re,{guessEmbeddedLanguages:dne}),Sre=({children:e})=>y.jsx("div",{children:y.jsx("pre",{children:y.jsx("code",{children:e.split(`
309
- `).map((t,n)=>y.jsx("span",{className:"line block w-full",children:t},n))})})}),xre=(({children:e,lang:t,isDarkMode:n,onChange:r,...a})=>{const[s,l]=S.useState(null),u=S.useMemo(()=>({lang:t,theme:n?"github-dark":"github-light",transformers:[YJ(),QJ(),iee(),XJ(),$J(),qJ()]}),[t,n]);return S.useEffect(()=>{Ere(e,u).then(d=>l(d)).catch(d=>console.error(d))},[u,e]),s?y.jsx("div",{dangerouslySetInnerHTML:{__html:s},...a,style:{backgroundColor:"transparent",minWidth:0,overflow:"auto"}}):y.jsx(Sre,{children:e})}),Are=({className:e,onChange:t,isEditable:n,...r})=>y.jsx(xre,{className:ve("flex w-full",e),contentEditable:n,onInput:a=>t?.(a.currentTarget.textContent??""),...r}),zL=S.createContext({packageManager:"npm",setPackageManager:()=>{},codeFormat:"typescript",setCodeFormat:()=>{},contentDeclarationFormat:"typescript",setContentDeclarationFormat:()=>{}}),Yh=()=>S.useContext(zL),Tre=({children:e})=>{const[t,n]=kc("packageManager","npm"),[r,a]=kc("codeFormat","typescript"),[s,l]=kc("contentDeclarationFormat","typescript");return y.jsx(zL,{value:{packageManager:t,setPackageManager:n,codeFormat:r,setCodeFormat:a,contentDeclarationFormat:s,setContentDeclarationFormat:l},children:e})},wre=({children:e,...t})=>{const{packageManager:n,codeFormat:r,contentDeclarationFormat:a}=Yh(),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:y.jsx(y.Fragment,{})},Cre=()=>{const{codeFormat:e,setCodeFormat:t,setContentDeclarationFormat:n}=Yh();return y.jsxs(Re,{value:e,onValueChange:r=>{t(r),n(r)},children:[y.jsx(Re.Trigger,{children:y.jsx(Re.Value,{placeholder:"Code Format"})}),y.jsxs(Re.Content,{children:[y.jsx(Re.Item,{value:"typescript",children:"TypeScript"}),y.jsx(Re.Item,{value:"esm",children:"ESM"}),y.jsx(Re.Item,{value:"commonjs",children:"CommonJS"})]})]})},Rre=()=>{const{contentDeclarationFormat:e,setContentDeclarationFormat:t}=Yh();return y.jsxs(Re,{value:e,onValueChange:t,children:[y.jsx(Re.Trigger,{children:y.jsx(Re.Value,{placeholder:"Dictionary Format"})}),y.jsxs(Re.Content,{children:[y.jsx(Re.Item,{value:"typescript",children:"TypeScript"}),y.jsx(Re.Item,{value:"commonjs",children:"CommonJS"}),y.jsx(Re.Item,{value:"esm",children:"ESM"}),y.jsx(Re.Item,{value:"json",children:"JSON"})]})]})},ib=({children:e,className:t,identifier:n,...r})=>y.jsx("div",{className:ve("group/popover relative flex cursor-pointer",t),"aria-label":`Popover ${n}`,id:`unrollable-panel-button-${n}`,"aria-haspopup":!0,...r,children:e});var BL=(e=>(e.START="start",e.END="end",e))(BL||{});const kre=({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})=>y.jsx(kr,{transparency:"sm","aria-hidden":t,"aria-labelledby":`unrollable-panel-button-${l}`,id:`unrollable-panel-${l}`,className:ve("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});ib.Detail=kre;const Nre=({code:e})=>{const{title:t,description:n}=dn("code");return y.jsxs(ib,{identifier:"copy",children:[y.jsx(V1,{content:e}),y.jsxs(ib.Detail,{identifier:"copy",className:"flex flex-col gap-3 p-3 min-w-64 text-sm",xAlign:BL.END,children:[y.jsx("strong",{children:t}),y.jsx("p",{className:"text-neutral",children:n})]})]})},Ire=()=>{const{packageManager:e,setPackageManager:t}=Yh();return y.jsxs(Re,{value:e,onValueChange:t,children:[y.jsx(Re.Trigger,{children:y.jsx(Re.Value,{placeholder:"Package Manager"})}),y.jsxs(Re.Content,{children:[y.jsx(Re.Item,{value:"npm",children:"npm"}),y.jsx(Re.Item,{value:"pnpm",children:"pnpm"}),y.jsx(Re.Item,{value:"yarn",children:"yarn"})]})]})},Ore=700,Dre=({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,...m})=>{const v=e?.endsWith(`
310
- `)?e.slice(0,-1):e,_=u||d||f;return y.jsx(wre,{packageManager:u,codeFormat:d,contentDeclarationFormat:f,children:y.jsxs(kr,{className:ve("relative text-sm leading-6",a&&"with-line-number ml-0",s),transparency:"lg",...m,children:[r&&y.jsxs(y.Fragment,{children:[y.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:[y.jsx("span",{className:"truncate",children:l??t}),y.jsxs("div",{className:"flex items-center gap-2",children:[u&&y.jsx(Ire,{}),d&&y.jsx(Cre,{}),f&&y.jsx(Rre,{})]})]}),y.jsx("div",{className:"sticky top-46 z-20",children:y.jsx("div",{className:ve("absolute bottom-0 right-2 flex h-7 items-center",_&&"h-11"),children:y.jsx(Nre,{code:v})})})]}),y.jsx(YD,{minHeight:Ore,isRollable:p,className:"p-2 overflow-x-auto",children:y.jsx(Are,{lang:t,isDarkMode:n,children:v})})]})})},Lre=e=>{const{enable:t=!0,onSwipeLeft:n,onSwipeRight:r,itemIndex:a,itemCount:s,thresholdPct:l=20,touchAction:u="pan-y",disableWhenSelectingText:d=!0}=e,f=S.useRef(null),[p,m]=S.useState(!1),[v,_]=S.useState(0),x=S.useRef({pointerId:null,startX:0,startY:0,lastX:0,axisLocked:!1,isHorizontal:!1}),A=S.useRef(!1),w=()=>{const L=f.current;return L?L.clientWidth:0},N=L=>{const U=a<=0,K=a>=s-1;if(U&&L>0||K&&L<0){const J=1+Math.abs(L)/30;return L/J}return L},E=L=>{if(t&&x.current.pointerId===null){x.current.pointerId=L.pointerId,x.current.startX=L.clientX,x.current.startY=L.clientY,x.current.lastX=L.clientX,x.current.axisLocked=!1,x.current.isHorizontal=!1,A.current=!1,m(!1),_(0);try{L.currentTarget.setPointerCapture(L.pointerId)}catch{}}},T=L=>{if(!t||x.current.pointerId!==L.pointerId)return;const U=w();if(!U)return;const K=L.clientX-x.current.startX,W=L.clientY-x.current.startY;if(d){const le=typeof window<"u"?window.getSelection?.():null;if(!!le&&le.rangeCount>0&&!le.isCollapsed){A.current=!0;return}}if(!x.current.axisLocked){const le=Math.abs(K),Z=Math.abs(W);(le>6||Z>6)&&(x.current.axisLocked=!0,x.current.isHorizontal=le>Z)}if(!x.current.isHorizontal)return;L.preventDefault(),p||m(!0);const J=K/U*100;_(N(J)),x.current.lastX=L.clientX},R=L=>{try{L.currentTarget.releasePointerCapture(L.pointerId)}catch{}const U=x.current.isHorizontal,K=v;if(m(!1),_(0),x.current.pointerId=null,x.current.axisLocked=!1,x.current.isHorizontal=!1,A.current){A.current=!1;return}U&&(K>l?r?.():K<-l&&n?.())},C=L=>{t&&x.current.pointerId===L.pointerId&&R(L)},I=L=>{t&&x.current.pointerId===L.pointerId&&R(L)};return S.useEffect(()=>{_(0),m(!1)},[a]),{containerRef:f,isDragging:p,dragDeltaPct:v,containerProps:{ref:f,onPointerDown:E,onPointerMove:T,onPointerUp:C,onPointerCancel:I,style:{touchAction:u}}}};var VL=(e=>(e.PRIMARY="primary",e.SECONDARY="secondary",e.DESTRUCTIVE="destructive",e.NEUTRAL="neutral",e.LIGHT="light",e.DARK="dark",e.TEXT="text",e))(VL||{});const jre=wn("relative flex size-full flex-row items-center gap-2",{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"}}),Pre=wn("absolute top-0 z-[-1] h-full w-auto rounded-lg transition-[left,width] duration-300 ease-in-out motion-reduce:transition-none",{variants:{color:{primary:"bg-primary/10 aria-selected:text-text",secondary:"bg-secondary/10 aria-selected:text-text",destructive:"bg-destructive/10 aria-selected:text-text",neutral:"bg-neutral/10 aria-selected:text-white/10",light:"bg-white/10 aria-selected:text-black",dark:"bg-neutral-800/10 aria-selected:text-white",text:"bg-text/10 aria-selected:text-text-opposite"}}}),Mre=({tabs:e,selectedChoice:t,onTabClick:n,color:r="primary",hoverable:a=!1,className:s})=>{const l=S.useRef([]),u=S.useRef(null),{choiceIndicatorPosition:d}=fD(l,void 0,a);return y.jsxs("div",{className:ve(jre({color:r}),s),"aria-orientation":"horizontal","aria-multiselectable":"false",role:"tablist",children:[e.map((f,p)=>{const m=f.key,v=t===m;return S.cloneElement(f,{key:m??p,role:"tab",onClick:_=>{f.props?.onClick?.(_),n?.(m)},"aria-selected":v,"data-active":v,tabIndex:v?0:-1,ref:_=>{l.current[p]=_}})}),d&&y.jsx("div",{className:ve(Pre({color:r})),style:d,ref:u},`${t}${JSON.stringify(e.map(f=>f.key))}`)]})},UL=S.createContext({tabsValues:{},setTabsValues:(()=>{})}),zre=()=>S.useContext(UL),Bre=({children:e})=>{const[t,n]=S.useState({});return y.jsx(UL,{value:{tabsValues:t,setTabsValues:n},children:e})},Vre=S.createContext(void 0),Ure=wn("relative w-full bg-background/2 border border-neutral/20 rounded-lg shadow-[0_0_10px_-15px_rgba(0,0,0,0.3)] backdrop-blur",{variants:{variant:{default:"",bordered:"border-2",ghost:"border-0 shadow-none bg-transparent"}},defaultVariants:{variant:"default"}}),s0=({children:e,...t})=>y.jsx("div",{...t,children:e});s0.displayName="TabItem";const Fre=({defaultTab:e,group:t,variant:n,children:r,className:a,...s})=>{const l=S.Children.toArray(r).filter(C=>S.isValidElement(C)&&C.type===s0),u=l[0]?.props?.value,{tabsValues:d,setTabsValues:f}=zre(),[p,m]=S.useState(e??u??""),_=(t&&typeof d=="object"?d?.[t]:p)??e??u,x=l.findIndex(C=>C.props.value===_),A=l.length,{containerProps:w,dragDeltaPct:N,isDragging:E}=Lre({itemIndex:x,itemCount:A,onSwipeLeft:()=>{const C=Math.min(A-1,x+1),I=l[C]?.props?.value;I&&T(I)},onSwipeRight:()=>{const C=Math.max(0,x-1),I=l[C]?.props?.value;I&&T(I)}}),T=C=>{m(C),typeof f=="function"&&f(I=>({...I,[t]:C}))},R={activeTab:p??u??"",setActiveTab:T};return y.jsx(Vre.Provider,{value:R,children:y.jsxs("div",{className:ve(Ure({variant:n}),a),...s,children:[y.jsx("div",{className:"sticky top-36 z-10 flex gap-3 p-3 bg-background/70 backdrop-blur",children:y.jsx(Mre,{selectedChoice:_,tabs:l.map(C=>{const{label:I,value:D,disabled:L}=C.props,U=_===D;return y.jsx("button",{className:ve("px-4 text-sm font-medium rounded-md transition-colors cursor-pointer focus:outline-none py-1",!U&&"text-neutral/70"),"data-active":U,disabled:L,onClick:()=>!L&&T(D),role:"tab","aria-selected":U,"aria-controls":`tabpanel-${D}`,id:`tab-${D}`,children:I},D)}),hoverable:!0,color:VL.TEXT})}),y.jsx("div",{className:"relative w-full min-w-0 overflow-x-clip [clip-path:inset(0)] [-webkit-clip-path:inset(0)]",...w,children:y.jsx("div",{role:"tablist","aria-orientation":"horizontal",className:ve("grid w-full min-w-0",E?"transition-none":"transition-transform duration-300 ease-in-out"),style:{gridTemplateColumns:`repeat(${l.length}, 100%)`,transform:`translateX(-${x*100-(E?N:0)}%)`},children:l.map(({props:C},I)=>{const{value:D,children:L}=C,U=I===x;return y.jsx("div",{role:"tabpanel","aria-labelledby":`tab-${D}`,id:`tabpanel-${D}`,"aria-hidden":!U,tabIndex:U?0:-1,"data-active":U,className:ve("w-full min-w-0 p-6 opacity-100 transition-opacity duration-300 ease-in-out",!U&&"pointer-events-none opacity-0"),children:y.jsx("div",{className:"w-full min-w-0 flex flex-col gap-6 items-stretch",children:L})},D)})})})]})})},Ay=Object.assign(Fre,{Item:s0}),Hre=({className:e,isRollable:t,...n})=>{const[r,a]=S.useState(!1);return y.jsxs("div",{className:"relative",children:[y.jsx("div",{className:"sticky top-48 z-10",children:y.jsx("div",{className:"absolute top-4 right-2",children:y.jsx(lt,{variant:"hoverable",size:"icon-md",onClick:()=>{a(!0)},label:"Move",Icon:mH})})}),y.jsx(YD,{isRollable:t,className:"max-w-full overflow-x-auto",children:y.jsx("table",{className:ve("max-w-full overflow-x-auto table-auto text-left min-w-full bg-background",e),...n})}),y.jsx(b_,{isOpen:r,onClose:()=>a(!1),size:v_.XL,hasCloseButton:!0,children:r?y.jsx("div",{className:"grid",children:y.jsx("table",{className:ve("max-w-full table-auto text-left min-w-full",e),...n})}):y.jsx(y.Fragment,{})})]})};var js={};const Ie={blockQuote:"0",breakLine:"1",breakThematic:"2",codeBlock:"3",codeFenced:"4",codeInline:"5",footnote:"6",footnoteReference:"7",gfmTask:"8",heading:"9",headingSetext:"10",htmlBlock:"11",htmlComment:"12",htmlSelfClosing:"13",customComponent:"34",image:"14",link:"15",linkAngleBraceStyleDetector:"16",linkBareUrlDetector:"17",linkMailtoDetector:"18",newlineCoalescer:"19",orderedList:"20",paragraph:"21",ref:"22",refImage:"23",refLink:"24",table:"25",tableSeparator:"26",text:"27",textBolded:"28",textEmphasized:"29",textEscaped:"30",textMarked:"31",textStrikethroughed:"32",unorderedList:"33"};js.NODE_ENV==="test"&&Object.keys(Ie).forEach(e=>Ie[e]=e);const tt={MAX:0,HIGH:1,MED:2,LOW:3,MIN:4},yR=["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"}),vR={amp:"&",apos:"'",gt:">",lt:"<",nbsp:" ",quot:"“"},Gre=["style","script","pre"],$re=["src","href","data","formAction","srcDoc","action"],Kre=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,qre=/mailto:/i,Wre=/\n{2,}$/,bR=/^(\s*>[\s\S]*?)(?=\n\n|$)/,Zre=/^ *> ?/gm,Yre=/^(?:\[!([^\]]*)\]\n)?([\s\S]*)/,Xre=/^ {2,}\n/,Qre=/^(?:( *[-*_])){3,} *(?:\n *)+\n/,_R=/^(?: {1,3})?(`{3,}|~{3,}) *(\S+)? *([^\n]*?)?\n([\s\S]*?)(?:\1\n?|$)/,ER=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,Jre=/^(`+)((?:\\`|(?!\1)`|[^`])+)\1/,eie=/^(?:\n *)*\n/,tie=/\r\n?/g,nie=/^\[\^([^\]]+)](:(.*)((\n+ {4,}.*)|(\n(?!\[\^).+))*)/,rie=/^\[\^([^\]]+)]/,iie=/\f/g,aie=/^---[ \t]*\n(.|\n)*\n---[ \t]*\n/,oie=/^\s*?\[(x|\s)\]/,SR=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,xR=/^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,AR=/^([^\n]+)\n *(=|-){3,} *\n/,Ty=/^ *(?!<[a-zA-Z][^ >/]* ?\/>)<([a-zA-Z][^ >/]*) ?((?:[^>]*[^/])?)>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1\b)[\s\S])*?)<\/\1>(?!<\/\1>)\n*/i,sie=/&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi,TR=/^<!--[\s\S]*?(?:-->)/,lie=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,wy=/^ *<([a-zA-Z][a-zA-Z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,wR=/^ *<([A-Z][a-zA-Z0-9]*)(?:\s+((?:<.*?>|[^>])*))?>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1\b)[\s\S])*?)<\/\1>(?!<\/\1>)\n*/,cie=/^\{.*\}$/,uie=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,die=/^<([^ >]+@[^ >]+)>/,fie=/^<([^ >]+:\/[^ >]+)>/,hie=/-([a-z])?/gi,CR=/^(\|.*)\n(?: *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*))?\n?/,pie=/^[^\n]+(?: \n|\n{2,})/,mie=/^\[([^\]]*)\]:\s+<?([^\s>]+)>?\s*("([^"]*)")?/,gie=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,yie=/^\[([^\]]*)\] ?\[([^\]]*)\]/,vie=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,bie=/\t/g,_ie=/(^ *\||\| *$)/g,Eie=/^ *:-+: *$/,Sie=/^ *:-+ *$/,xie=/^ *-+: *$/,Xh=e=>`(?=[\\s\\S]+?\\1${e?"\\1":""})`,Qh="((?:\\[.*?\\][([].*?[)\\]]|<.*?>(?:.*?<.*?>)?|`.*?`|\\\\\\1|[\\s\\S])+?)",Aie=new RegExp(`^([*_])\\1${Xh(1)}${Qh}\\1\\1(?!\\1)`),Tie=new RegExp(`^([*_])${Xh(0)}${Qh}\\1(?!\\1)`),wie=new RegExp(`^(==)${Xh(0)}${Qh}\\1`),Cie=new RegExp(`^(~~)${Xh(0)}${Qh}\\1`),Rie=/^(:[a-zA-Z0-9-_]+:)/,kie=/^\\([^0-9A-Za-z\s])/,Nie=/\\([^0-9A-Za-z\s])/g,Iie=/^[\s\S](?:(?! \n|[0-9]\.|http)[^=*_~\-\n:<`\\\[!])*/,RR=/^\n+/,kR=/^([ \t]*)/,Cr=1,Au=2,Oie=/(?:^|\n)( *)$/,l0="(?:\\d+\\.)",c0="(?:[*+-])",FL=e=>"( *)("+(e===Cr?l0:c0)+") +",HL=FL(Cr),GL=FL(Au),$L=e=>new RegExp("^"+(e===Cr?HL:GL)),Die=$L(Cr),Lie=$L(Au),KL=e=>new RegExp("^"+(e===Cr?HL:GL)+"[^\\n]*(?:\\n(?!\\1"+(e===Cr?l0:c0)+" )[^\\n]*)*(\\n|$)","gm"),jie=KL(Cr),Pie=KL(Au),qL=e=>{const t=e===Cr?l0:c0;return new RegExp("^( *)("+t+") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1"+t+" (?!"+t+" ))\\n*|\\s*\\n*$)")},WL=qL(Cr),ZL=qL(Au),NR=(e,t)=>{const n=e===Cr,r=n?WL:ZL,a=n?jie:Pie,s=n?Die:Lie;return{_qualify:l=>s.test(l),_match:Ps((l,u)=>{const d=Oie.exec(u.prevCapture??""),f=u.list??(!u.inline&&!u.simple);return d&&f?(l=d[1]+l,r.exec(l)):null}),_order:tt.HIGH,_parse(l,u,d){const f=l[2],p=n?+f:void 0,m=l[0].replace(Wre,`
311
- `).match(a);if(!m)return{items:[],ordered:n,start:p};let v=!1;return{items:m.map((x,A)=>{const w=s.exec(x);if(!w)return[];const N=w[0].length,E=new RegExp("^ {1,"+N+"}","gm"),T=x.replace(E,"").replace(s,""),R=A===m.length-1,I=T.indexOf(`
312
-
313
- `)!==-1||R&&v;v=I;const D=d.inline,L=d.list;d.list=!0;let U;I?(d.inline=!1,U=Ic(T)+`
314
-
315
- `):(d.inline=!0,U=Ic(T));const K=u(U,d);return d.inline=D,d.list=L,K}),ordered:n,start:p}},_render(l,u,d={}){const f=l.ordered?"ol":"ul",p={key:d.key};return l.ordered&&l.start!=null&&(p.start=l.start),t?t(f,p,...l.items.map((m,v)=>t("li",{key:v},u(m,d)))):y.jsx(f,{start:l.type===Ie.orderedList?l.start:void 0,children:l.items.map((m,v)=>y.jsx("li",{children:u(m,d)},v))},d.key)}}},Mie="(?:\\[[^\\[\\]]*(?:\\[[^\\[\\]]*\\][^\\[\\]]*)*\\]|[^\\[\\]])*",zie=`\\s*<?((?:\\([^)]*\\)|[^\\s\\\\]|\\\\.)*?)>?(?:\\s+['"]([\\s\\S]*?)['"])?\\s*`,Bie=new RegExp("^\\[("+Mie+")\\]\\("+zie+"\\)"),Vie=/^!\[(.*?)\]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/,Ic=e=>{let t=e.length;for(;t>0&&e[t-1]<=" ";)t--;return e.slice(0,t)},Nf=(e,t)=>e.startsWith(t),Uie=(e,t,n)=>{if(Array.isArray(n)){for(let r=0;r<n.length;r++)if(Nf(e,n[r]))return!0;return!1}return n(e,t)},Fie=e=>{const t=e[0];return(t==='"'||t==="'")&&e.length>=2&&e[e.length-1]===t?e.slice(1,-1):e},pc=e=>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(),Hie=e=>xie.test(e)?"right":Eie.test(e)?"center":(Sie.test(e),"left"),YL=(e,t,n,r)=>{const a=n.inTable;n.inTable=!0;let s=[[]],l="";const 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)=>{if(d.trim()==="|"&&(u(),r)){f!==0&&f!==p.length-1&&s.push([]);return}l+=d}),u(),n.inTable=a,s},Gie=e=>e.replace(_ie,"").split("|").map(Hie),$ie=(e,t,n)=>e.trim().split(`
316
- `).map(a=>YL(a,t,n,!0)),Kie=(e,t,n)=>{n.inline=!0;const r=e[2]?Gie(e[2]):[],a=e[3]?$ie(e[3],t,n):[],s=YL(e[1],t,n,!!a.length);return n.inline=!1,a.length?{align:r,cells:a,header:s,type:Ie.table}:{children:s.flat(),type:Ie.paragraph}},IR=(e,t)=>e.align[t]==null?{}:{textAlign:e.align[t]},qie=e=>(e.indexOf("-")!==-1&&e.match(lie)===null&&(e=e.replace(hie,(n,r)=>r.toUpperCase())),e),Wie=e=>{const t=[];let n="",r=!1,a=!1,s="";if(!e)return t;for(let u=0;u<e.length;u++){const d=e[u];if((d==='"'||d==="'")&&!r&&(a?d===s&&(a=!1,s=""):(a=!0,s=d)),d==="("&&n.endsWith("url")?r=!0:d===")"&&r&&(r=!1),d===";"&&!a&&!r){const f=n.trim();if(f){const p=f.indexOf(":");if(p>0){const m=f.slice(0,p).trim(),v=f.slice(p+1).trim();t.push([m,v])}}n=""}else n+=d}const l=n.trim();if(l){const u=l.indexOf(":");if(u>0){const d=l.slice(0,u).trim(),f=l.slice(u+1).trim();t.push([d,f])}}return t},OR=(e,t)=>{if(!t)return e;const n=e.split(`
317
- `);let r=!1,a=null;const s=d=>d.match(/^\s*(`{3,}|~{3,})/),l=d=>{const f=s(d);if(!f)return;const p=f[1];r?a&&d.includes(a)&&(r=!1,a=null):(r=!0,a=p)};return n.map(d=>{if(s(d)){const p=d.startsWith(t)?d.slice(t.length):d;return l(d),p}return r?d:d.startsWith(t)?d.slice(t.length):d}).join(`
318
- `)},Zie=(e,t,n,r)=>t==="style"?Wie(n).reduce((a,[s,l])=>{const u=s.replace(/(-[a-z])/g,d=>d[1].toUpperCase());return a[u]=r(l,e,s),a},{}):$re.indexOf(t)!==-1?r(Br(n),e,t):(n.match(cie)&&(n=Br(n.slice(1,n.length-1))),n==="true"?!0:n==="false"?!1:n),Yie=e=>e.replace(tie,`
319
- `).replace(iie,"").replace(bie," "),Xie=e=>{var t=Object.keys(e);js.NODE_ENV!=="production"&&t.forEach(r=>{const a=e[r]._order;(typeof a!="number"||!isFinite(a))&&console.warn("intlayer: Invalid order for rule `"+r+"`: "+a)}),t.sort((r,a)=>e[r]._order-e[a]._order||(r<a?-1:1));const n=(r,a={})=>{var s=[];if(a.prevCapture=a.prevCapture||"",r.trim())for(;r;)for(var l=0;l<t.length;){var u=t[l],d=e[u];if(d._qualify&&!Uie(r,a,d._qualify)){l++;continue}var f=d._match(r,a);if(f&&f[0]){r=r.substring(f[0].length);const p=d._parse(f,n,a);a.prevCapture+=f[0],p.type||(p.type=u),s.push(p);break}l++}return a.prevCapture="",s};return(r,a)=>n(Yie(r),a)},Ps=e=>(e.inline=1,e),ea=e=>Ps((t,n)=>n.inline?e.exec(t):null),ta=e=>Ps((t,n)=>n.inline||n.simple?e.exec(t):null),Pr=e=>(t,n)=>n.inline||n.simple?null:e.exec(t),uf=e=>Ps(t=>e.exec(t)),Qie=/(javascript|vbscript|data(?!:image)):/i,Jie=e=>{try{const t=decodeURIComponent(e).replace(/[^A-Za-z0-9/:]/g,"");if(Qie.test(t))return js.NODE_ENV!=="production"&&console.warn("Input contains an unsafe JavaScript/VBScript/data expression, it will not be rendered.",t),null}catch{return js.NODE_ENV!=="production"&&console.warn("Input could not be decoded due to malformed syntax or characters, it will not be rendered.",e),null}return e},Br=e=>e&&e.replace(Nie,"$1"),vc=(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},eae=(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},DR=(e,t,n={})=>{const r=n.inline||!1;n.inline=!1;const a=e(t,n);return n.inline=r,a},Cy=(e,t,n)=>({children:vc(t,e[2],n)}),Ry=()=>({}),ky=()=>null,XL=e=>(t,n={})=>{const r=(a,s={})=>XL(e)(a,s);if(Array.isArray(t)){const a=n.key,s=[];let l=!1;for(let u=0;u<t.length;u++){n.key=u;const d=r(t[u],n),f=typeof d=="string";f&&l?s[s.length-1]=s[s.length-1]+d:d!==null&&s.push(d),l=f}return n.key=a,s}return e(t,r,n)},tae=(e,t)=>(n,r,a)=>{const s=e[n.type]._render;return t?t(()=>s?.(n,r,a),n,r,a):s?.(n,r,a)},nae=(...e)=>e.filter(Boolean).join(" "),ab=(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},LR=(e,t)=>{const n=ab(t,e);return n?typeof n=="function"||typeof n=="object"&&"render"in n?n:ab(t,`${e}.component`,e):e},rae=(e="",t={})=>{t.overrides=t.overrides??{},t.namedCodesToUnicode=t.namedCodesToUnicode?{...vR,...t.namedCodesToUnicode}:vR;const n=t.slugify??pc,r=t.sanitizer??Jie,a=t.createElement??S.createElement,s=[bR,_R,ER,t.enforceAtxHeadings?xR:SR,AR,CR,WL,ZL],l=[...s,pie,Ty,TR,wy,wR],u=E=>{const T=E.replace(RR,"");return l.some(R=>R.test(T))},d=(E,T)=>{if(T.inline||T.simple||T.inHTML&&E.indexOf(`
320
-
321
- `)===-1&&T.prevCapture?.indexOf(`
322
-
323
- `)===-1)return null;let R="";E.split(`
324
- `).every(I=>(I+=`
325
- `,s.some(D=>D.test(I))?!1:(R+=I,!!I.trim())));const C=Ic(R);return C===""?null:[R,,C]},f=(E,T,...R)=>{const C=ab(t.overrides??{},`${E}.props`,{});return a(LR(E,t.overrides??{}),{...T,...C,className:nae(T?.className,C.className)??void 0},...R)},p=E=>{E=E.replace(aie,""),E=(L=>{const U=L.split(/\r?\n/),K=[];let W=0,J=0;for(;W<U.length;){const le=U[W];if(/<\s*Tabs[>\s]/.test(le)&&J++,/<\s*\/\s*Tabs\s*>/.test(le)&&(J=Math.max(0,J-1)),!J&&le.match(/^#{5}\s+(.+?)\s*$/)){const ae=[],z=G=>{let me=G;const P=[];for(;me<U.length;){const ne=U[me];if(/^#{1,5}\s+/.test(ne))break;/<\s*Tabs[>\s]/.test(ne)&&J++,/<\s*\/\s*Tabs\s*>/.test(ne)&&(J=Math.max(0,J-1)),P.push(ne),me++}return{content:P.join(`
326
- `).replace(/\n+$/,`
327
- `),endIndex:me}};let X=W;for(;X<U.length;){const G=U[X].match(/^#{5}\s+(.+?)\s*$/);if(!G)break;const me=G[1].trim(),{content:P,endIndex:ne}=z(X+1);if(ae.push({label:me,value:me.toLowerCase(),content:P}),X=ne,!U[X]?.startsWith("#####"))break}if(ae.length>=2){const G=(ae.find(P=>P.value==="intlayer")??ae[0]).value;K.push(`<Tabs defaultTab="${G}">`);const me=["intlayer","next-intl","next-i18next"];for(const P of me){const ne=ae.find(re=>re.value===P);if(!ne)continue;K.push(` <TabItem label="${ne.label}" value="${ne.value}">`);const $=ne.content.replace(/^\n+|\n+$/g,"");K.push($),K.push(" </TabItem>")}K.push("</Tabs>"),W=X;continue}}K.push(le),W++}return K.join(`
328
- `)})(E);let R=!1;t.forceInline?R=!0:t.forceBlock||(R=vie.test(E)===!1);const C=w(A(R?E:`${Ic(E).replace(RR,"")}
329
-
330
- `,{inline:R}));for(;typeof C[C.length-1]=="string"&&!C[C.length-1].trim();)C.pop();if(t.wrapper===null)return C;const I=t.wrapper??(R?"span":"div");let D;if(C.length>1||t.forceWrapper)D=C;else{if(C.length===1)return D=C[0],typeof D=="string"?y.jsx("span",{children:D},"outer"):D;D=null}return a(I,{key:"outer"},D)},m=(E,T)=>{if(!T||!T.trim())return null;const R=T.match(Kre);return R?R.reduce((C,I)=>{const D=I.indexOf("=");if(D!==-1){const L=qie(I.slice(0,D)).trim(),U=Fie(I.slice(D+1).trim()),K=yR[L]??L;if(K==="ref")return C;const W=C[K]=Zie(E,L,U,r);typeof W=="string"&&(Ty.test(W)||wy.test(W))&&(C[K]=p(W.trim()))}else I!=="style"&&(C[yR[I]??I]=!0);return C},{}):null};if(js.NODE_ENV!=="production"){if(typeof e!="string")throw new Error(`intlayer: the first argument must be
331
- a string`);if(Object.prototype.toString.call(t.overrides)!=="[object Object]")throw new Error(`intlayer: options.overrides (second argument property) must be
332
- undefined or an object literal with shape:
333
- {
334
- htmltagname: {
335
- component: string|ReactComponent(optional),
336
- props: object(optional)
337
- }
338
- }`)}const v=[],_={},x={[Ie.blockQuote]:{_qualify:[">"],_match:Pr(bR),_order:tt.HIGH,_parse(E,T,R){const C=E[0].replace(Zre,"").match(Yre),I=C?.[1],D=C?.[2]??"";return{alert:I,children:T(D,R)}},_render(E,T,R={}){const C={key:R?.key};return E.alert&&(C.className="markdown-alert-"+n(E.alert.toLowerCase(),pc),E.children.unshift({attrs:{},children:[{type:Ie.text,text:E.alert}],noInnerParse:!0,type:Ie.htmlBlock,tag:"header"})),f("blockquote",C,T(E.children,R))}},[Ie.breakLine]:{_match:uf(Xre),_order:tt.HIGH,_parse:Ry,_render(E,T,R={}){return y.jsx("br",{},R.key)}},[Ie.breakThematic]:{_qualify:E=>{const T=E[0];return T==="-"||T==="*"||T==="_"},_match:Pr(Qre),_order:tt.HIGH,_parse:Ry,_render(E,T,R={}){return y.jsx("hr",{},R.key)}},[Ie.codeBlock]:{_qualify:[" "],_match:Pr(ER),_order:tt.MAX,_parse(E){return{type:Ie.codeBlock,lang:void 0,text:Br(Ic(E[0].replace(/^ {4}/gm,"")))}},_render(E,T,R={}){const C={...E.attrs??{}},I=E.lang?`lang-${E.lang}`:"lang-plaintext";return C.className=C.className?`${C.className} ${I}`:I,E.lang&&!C.lang&&(C.lang=E.lang),f("pre",{key:R.key},f("code",C,E.text))}},[Ie.codeFenced]:{_qualify:["```","~~~"],_match:Pr(_R),_order:tt.MAX,_parse(E,T,R){const C=E[4],I=R.inHTML&&C.indexOf("`")!==-1?C.replace(/\n/g,"\\n"):C;return{attrs:m("code",E[3]??""),lang:E[2]||void 0,text:I,type:Ie.codeBlock}}},[Ie.codeInline]:{_qualify:["`"],_match:ta(Jre),_order:tt.LOW,_parse(E){return{text:Br(E[2])}},_render(E,T,R={}){return f("code",{key:R.key},E.text)}},[Ie.footnote]:{_qualify:["[^"],_match:Pr(nie),_order:tt.MAX,_parse(E){return v.push({footnote:E[2],identifier:E[1]}),{}},_render:ky},[Ie.footnoteReference]:{_qualify:["[^"],_match:ea(rie),_order:tt.HIGH,_parse(E){return{target:`#${n(E[1],pc)}`,text:E[1]}},_render(E,T,R={}){return y.jsx("a",{href:r(E.target,"a","href")??void 0,children:y.jsx("sup",{children:E.text},R.key)},R.key)}},[Ie.gfmTask]:{_qualify:["[ ]","[x]"],_match:ea(oie),_order:tt.HIGH,_parse(E){return{completed:E[1].toLowerCase()==="x"}},_render(E,T,R={}){return y.jsx("input",{checked:E.completed,readOnly:!0,type:"checkbox"},R.key)}},[Ie.heading]:{_qualify:["#"],_match:Pr(t.enforceAtxHeadings?xR:SR),_order:tt.HIGH,_parse(E,T,R){return{children:vc(T,E[2],R),id:n(E[2],pc),level:E[1].length}},_render(E,T,R={}){return f(`h${E.level}`,{id:E.id,key:R.key},T(E.children,R))}},[Ie.headingSetext]:{_match:Pr(AR),_order:tt.MAX,_parse(E,T,R){return{children:vc(T,E[1],R),level:E[2]==="="?1:2,type:Ie.heading}}},[Ie.htmlBlock]:{_qualify:["<"],_match:uf(Ty),_order:tt.HIGH,_parse(E,T,R){const I=E[3].match(kR)?.[1]??"",D=OR(E[3],I),L=u(D)?DR:vc,U=E[1].toLowerCase(),K=Gre.indexOf(U)!==-1,W=(K?U:E[1]).trim(),J={attrs:m(W,E[2]??""),noInnerParse:K,tag:W};if(R.inAnchor=R.inAnchor||U==="a",K)J.text=E[3];else{const le=R.inHTML;R.inHTML=!0,J.children=L(T,D,R),R.inHTML=le}return R.inAnchor=!1,J},_render(E,T,R={}){return f(E.tag,{key:R.key,...E.attrs??{}},E.text??(E.children?T(E.children,R):""))}},[Ie.htmlSelfClosing]:{_qualify:["<"],_match:uf(wy),_order:tt.HIGH,_parse(E){const T=E[1].trim();return{attrs:m(T,E[2]||""),tag:T}},_render(E,T,R={}){return f(E.tag,{key:R.key,...E.attrs??{}})}},[Ie.htmlComment]:{_qualify:["<!--"],_match:uf(TR),_order:tt.HIGH,_parse(){return{}},_render:ky},[Ie.customComponent]:{_qualify:E=>!!E.match(/^ *<([A-Z][a-zA-Z0-9]*)/),_match:Pr(wR),_order:tt.MAX,_parse(E,T,R){const I=E[3].match(kR)?.[1]??"",D=OR(E[3],I),L=u(D)?DR:vc,U=E[1],W={attrs:m(U,E[2]??""),noInnerParse:!1,tag:U};{const J=R.inHTML;R.inHTML=!0;const le=L(T,D,R);W.children=le,R.inHTML=J}return W},_render(E,T,R={}){const C=LR(E.tag,t.overrides??{});if(typeof C=="function"){const I=E.children?T(E.children,R):null;return C({key:R.key,...E.attrs,children:I})}return a(E.tag,{key:R.key,...E.attrs},E.text??(E.children?T(E.children,R):""))}},[Ie.image]:{_qualify:["!["],_match:ta(Vie),_order:tt.HIGH,_parse(E){return{alt:Br(E[1]),target:Br(E[2]),title:Br(E[3])}},_render(E,T,R={}){return y.jsx("img",{alt:E.alt??void 0,title:E.title??void 0,src:r(E.target,"img","src")??void 0},R.key)}},[Ie.link]:{_qualify:["["],_match:ea(Bie),_order:tt.LOW,_parse(E,T,R){return{children:eae(T,E[1],R),target:Br(E[2]),title:Br(E[3])}},_render(E,T,R={}){return y.jsx("a",{href:r(E.target,"a","href")??void 0,title:E.title,children:T(E.children,R)},R.key)}},[Ie.linkAngleBraceStyleDetector]:{_qualify:["<"],_match:ea(fie),_order:tt.MAX,_parse(E){return{children:[{text:E[1],type:Ie.text}],target:E[1],type:Ie.link}}},[Ie.linkBareUrlDetector]:{_qualify:(E,T)=>T.inAnchor||t.disableAutoLink?!1:Nf(E,"http://")||Nf(E,"https://"),_match:ea(uie),_order:tt.MAX,_parse(E){return{children:[{text:E[1],type:Ie.text}],target:E[1],title:void 0,type:Ie.link}}},[Ie.linkMailtoDetector]:{_qualify:["<"],_match:ea(die),_order:tt.MAX,_parse(E){let T=E[1],R=E[1];return qre.test(R)||(R="mailto:"+R),{children:[{text:T.replace("mailto:",""),type:Ie.text}],target:R,type:Ie.link}}},[Ie.orderedList]:NR(Cr,(E,T,...R)=>f(E,T,...R)),[Ie.unorderedList]:NR(Au,(E,T,...R)=>f(E,T,...R)),[Ie.newlineCoalescer]:{_match:Pr(eie),_order:tt.LOW,_parse:Ry,_render(){return`
339
- `}},[Ie.paragraph]:{_match:Ps(d),_order:tt.LOW,_parse:Cy,_render(E,T,R={}){return y.jsx("p",{children:T(E.children,R)},R.key)}},[Ie.ref]:{_qualify:["["],_match:ea(mie),_order:tt.MAX,_parse(E){return _[E[1]]={target:E[2],title:E[4]},{}},_render:ky},[Ie.refImage]:{_qualify:["!["],_match:ta(gie),_order:tt.MAX,_parse(E){return{alt:E[1]?Br(E[1]):void 0,ref:E[2]}},_render(E,T,R={}){return _[E.ref]?y.jsx("img",{alt:E.alt,src:r(_[E.ref].target,"img","src")??void 0,title:_[E.ref].title},R.key):null}},[Ie.refLink]:{_qualify:E=>E[0]==="["&&E.indexOf("](")===-1,_match:ea(yie),_order:tt.MAX,_parse(E,T,R){return{children:T(E[1],R),fallbackChildren:E[0],ref:E[2]}},_render(E,T,R={}){return _[E.ref]?y.jsx("a",{href:r(_[E.ref].target,"a","href")??void 0,title:_[E.ref].title,children:T(E.children,R)},R.key):y.jsx("span",{children:E.fallbackChildren},R.key)}},[Ie.table]:{_qualify:["|"],_match:Pr(CR),_order:tt.HIGH,_parse:Kie,_render(E,T,R={}){const C=E;return f("table",{key:R.key},f("thead",{},f("tr",{},...C.header.map((I,D)=>f("th",{key:D,style:IR(C,D)},T(I,R))))),f("tbody",{},...C.cells.map((I,D)=>f("tr",{key:D},...I.map((L,U)=>f("td",{key:U,style:IR(C,U)},T(L,R)))))))}},[Ie.text]:{_match:Ps((E,T)=>{let R;return Nf(E,":")&&(R=Rie.exec(E)),R||Iie.exec(E)}),_order:tt.MIN,_parse(E){const T=E[0];return{text:T.indexOf("&")===-1?T:T.replace(sie,(R,C)=>t.namedCodesToUnicode?.[C]??R)}},_render(E){return E.text}},[Ie.textBolded]:{_qualify:["**","__"],_match:ta(Aie),_order:tt.MED,_parse(E,T,R){return{children:T(E[2],R)}},_render(E,T,R={}){return y.jsx("strong",{children:T(E.children,R)},R.key)}},[Ie.textEmphasized]:{_qualify:E=>{const T=E[0];return(T==="*"||T==="_")&&E[1]!==T},_match:ta(Tie),_order:tt.LOW,_parse(E,T,R){return{children:T(E[2],R)}},_render(E,T,R={}){return y.jsx("em",{children:T(E.children,R)},R.key)}},[Ie.textEscaped]:{_qualify:["\\"],_match:ta(kie),_order:tt.HIGH,_parse(E){return{text:E[1],type:Ie.text}}},[Ie.textMarked]:{_qualify:["=="],_match:ta(wie),_order:tt.LOW,_parse:Cy,_render(E,T,R={}){return y.jsx("mark",{children:T(E.children,R)},R.key)}},[Ie.textStrikethroughed]:{_qualify:["~~"],_match:ta(Cie),_order:tt.LOW,_parse:Cy,_render(E,T,R={}){return y.jsx("del",{children:T(E.children,R)},R.key)}}};t.disableParsingRawHTML===!0&&(delete x[Ie.htmlBlock],delete x[Ie.htmlSelfClosing]);const A=Xie(x),w=XL(tae(x,t.renderRule)),N=p(e);return v.length?y.jsxs("div",{children:[N,y.jsx("footer",{children:v.map(E=>y.jsxs("div",{id:n(E.identifier,pc),children:[E.identifier,w(A(E.footnote,{inline:!0}))]},E.identifier))},"footer")]}):N},iae=({children:e="",options:t,...n})=>(js.NODE_ENV!=="production"&&typeof e!="string"&&console.error("intlayer: <Markdown> component only accepts a single string as a child, received:",e),S.cloneElement(rae(e,t),n)),aae=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(`
340
- `):e},oae=({children:e,isDarkMode:t,locale:n,options:r})=>{const{overrides:a,...s}=r??{},l=aae(e);return y.jsx(Tre,{children:y.jsx(Bre,{children:y.jsx(iae,{options:{overrides:{h1:u=>y.jsx(u8,{isClickable:!0,...u}),h2:u=>y.jsx(d8,{isClickable:!0,...u}),h3:u=>y.jsx(y_,{isClickable:!0,...u}),h4:u=>y.jsx(f8,{isClickable:!0,...u}),h5:u=>y.jsx(h8,{isClickable:!0,...u}),h6:u=>y.jsx(p8,{isClickable:!0,...u}),code:u=>u.className?y.jsx(Dre,{...u,isDarkMode:t,language:u.className?.replace("lang-","")||"plaintext",fileName:u.fileName,showHeader:!!u.fileName}):y.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}),blockquote:({className:u,...d})=>y.jsx("blockquote",{className:ve("border-card text-neutral mt-5 flex flex-col gap-3 border-l-4 pl-5",u),...d}),ul:({className:u,...d})=>y.jsx("ul",{className:ve("mt-5 flex flex-col gap-3 pl-5 list-disc",u),...d}),ol:({className:u,...d})=>y.jsx("ol",{className:ve("mt-5 flex flex-col gap-3 pl-5 list-decimal",u),...d}),img:({className:u,...d})=>y.jsx("img",{...d,loading:"lazy",className:ve("max-w-full max-h-[80vh] rounded-md",u),src:`${d.src}?raw=true`}),a:u=>y.jsx(wb,{color:"neutral",isExternalLink:u.href?.startsWith("http"),underlined:!0,locale:n,...u}),pre:u=>u.children,table:u=>y.jsx(Hre,{...u}),th:({className:u,...d})=>y.jsx("th",{className:ve("border-neutral bg-neutral/10 border-b p-4",u),...d}),tr:({className:u,...d})=>y.jsx("tr",{className:ve("hover:bg-neutral/10 hover:/10",u),...d}),td:({className:u,...d})=>y.jsx("td",{className:ve("border-b border-neutral-500/50 p-4",u),...d}),hr:({className:u,...d})=>y.jsx("hr",{className:ve("mt-16 mx-6 text-neutral",u),...d}),Tabs:u=>y.jsx(Ay,{...u}),Tab:u=>y.jsx(Ay,{...u}),TabItem:u=>y.jsx(Ay.Item,{...u}),Columns:({className:u,...d})=>y.jsx("div",{className:ve("flex md:flex-col gap-4",u),...d}),Column:({className:u,...d})=>y.jsx("div",{className:ve("flex-1",u),...d}),...a},...s},children:l??""})})})},sae=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}},lae=({value:e,onChange:t})=>{const{comparator:n,numberValue:r}=S.useMemo(()=>sae(e),[e]),[a,s]=S.useState(n??null),[l,u]=S.useState(r??null);return S.useEffect(()=>{if(a&&l&&(a!==n||l!==r)){const d=`${a}${l}`;t(d)}},[a,n,r,l,t]),y.jsxs("div",{className:"flex gap-1",children:[y.jsxs(Re,{onValueChange:s,defaultValue:n,children:[y.jsx(Re.Trigger,{className:"w-20",children:y.jsx(Re.Value,{placeholder:"Select a comparator"})}),y.jsxs(Re.Content,{children:[y.jsx(Re.Item,{value:"<",children:"<"}),y.jsx(Re.Item,{value:"<=",children:"<="}),y.jsx(Re.Item,{value:"=",children:"="}),y.jsx(Re.Item,{value:">=",children:">="}),y.jsx(Re.Item,{value:">",children:">"})]})]}),y.jsx(Ws,{type:"number","aria-label":"Quantity",defaultValue:l??void 0,onChange:d=>u(d.target.value),className:"min-w-4"})]})},cae=({keyPath:e,dictionary:t,...n})=>{const{editedContent:r,addEditedContent:a}=Tn(),s=Zr(),{mutate:l,isPending:u}=Sq();return y.jsx(BJ,{variant:da.DEFAULT,onContentChange:d=>a(t.localId,d,e),additionalButtons:y.jsx(lt,{Icon:Fk,label:"Audit",variant:st.HOVERABLE,size:Yn.ICON_SM,color:ot.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})},uae=({keyPath:e,dictionary:t,...n})=>{const{addEditedContent:r}=Tn();return y.jsx($v,{variant:da.DEFAULT,onContentChange:a=>r(t.localId,a,e),...n})},dae=[{content:"False",value:!1},{content:"True",value:!0}],fae=({dictionary:e,keyPath:t,...n})=>{const{addEditedContent:r}=Tn();return y.jsx(_u,{choices:dae,value:!0,onChange:a=>r(e.localId,a,t),color:vu.TEXT,size:bu.SM,...n})},hae=({section:e,keyPath:t,dictionary:n,renderSection:r})=>{const{locale:a,defaultLocale:s}=yb(),{selectedLocales:l,availableLocales:u}=ZD(),d=e[H.Translation],f=Object.keys(d),m=u.length>l.length?l:[...new Set([...u,...f])],v=e[H.Translation];return y.jsx("table",{className:"w-full",children:y.jsx("tbody",{className:"flex w-full flex-col gap-2",children:m.map(_=>y.jsxs(S.Fragment,{children:[y.jsx("tr",{className:"mt-2 w-full p-2 text-xs",children:gf(_,a)}),y.jsx("tr",{children:y.jsx(Aa,{section:v[_]??Zn(v[s]),keyPath:[...t,{type:H.Translation,key:_}],dictionary:n,renderSection:r})})]},_))})})},pae=({section:e,keyPath:t,dictionary:n,renderSection:r})=>{const{addEditedContent:a}=Tn(),{addNewEnumeration:s,removeEnumeration:l}=dn("navigation-view"),u=e[H.Enumeration],d=Object.keys(u)[0];return y.jsxs("div",{className:"flex flex-col gap-2",children:[y.jsx("table",{className:"w-full",children:y.jsx("tbody",{className:"flex w-full flex-col gap-2",children:Object.keys(e[H.Enumeration]).map(f=>{const p=[...t,{type:H.Enumeration}];return y.jsxs(S.Fragment,{children:[y.jsx("tr",{className:"mt-2 w-full",children:y.jsx("div",{className:"flex flex-1",children:y.jsx(lt,{label:l.label.value,variant:st.HOVERABLE,color:ot.TEXT,Icon:Eh,className:"ml-auto",onClick:()=>a(n.localId,void 0,p),children:l.text})})}),y.jsx("tr",{className:"w-full p-2",children:y.jsx(lae,{value:f,onChange:m=>{const v=e[H.Enumeration],_=jJ(v,f,m),x={...e,[H.Enumeration]:_};a(n.localId,x,t)}})}),y.jsx("tr",{className:"block w-full",children:y.jsx(u0,{section:u[f]??Zn(u[d]),keyPath:p,dictionary:n,renderSection:r})})]},f)})})}),y.jsx(lt,{label:s.label.value,variant:st.HOVERABLE,color:ot.NEUTRAL,textAlign:ks.LEFT,isFullWidth:!0,onClick:()=>a(n.localId,Zn(u[d])??"",[...t,{type:H.Enumeration,key:"unknown"}]),Icon:_h,className:"m-2",children:s.text})]})},mae=({section:e,keyPath:t,dictionary:n,renderSection:r})=>{const a=e[H.Condition];return y.jsx("table",{className:"w-full",children:y.jsx("tbody",{className:"flex w-full flex-col gap-2",children:["true","false","fallback"].map(s=>y.jsxs(S.Fragment,{children:[y.jsx("tr",{className:"mt-2 block w-full p-2 text-xs",children:String(s)},s),y.jsx("tr",{className:"block w-full",children:y.jsx(Aa,{section:a[s]??Zn(a.true),keyPath:[...t,{type:H.Condition,key:s}],dictionary:n,renderSection:r})},s)]},s))})})},gae=({section:e,keyPath:t,dictionary:n,renderSection:r})=>{const a=e[H.Gender];return y.jsx("table",{className:"w-full",children:y.jsx("tbody",{className:"flex w-full flex-col gap-2",children:["male","female","fallback"].map(s=>y.jsxs(S.Fragment,{children:[y.jsx("tr",{className:"mt-2 block w-full p-2 text-xs",children:String(s)},s),y.jsx("tr",{className:"block w-full",children:y.jsx(Aa,{section:a[s]??Zn(a.male),keyPath:[...t,{type:H.Gender,key:s}],dictionary:n,renderSection:r})},s)]},s))})})},yae=({section:e,keyPath:t,dictionary:n,renderSection:r})=>{const{addEditedContent:a}=Tn(),{addNewElement:s,removeElement:l}=dn("navigation-view");return y.jsxs("div",{className:"flex flex-col gap-2",children:[y.jsx("table",{className:"w-full",children:y.jsx("tbody",{className:"flex w-full flex-col gap-2",children:e.map((u,d)=>y.jsxs(S.Fragment,{children:[y.jsxs("tr",{className:"mt-2 flex w-full justify-between gap-2 p-2",children:[y.jsx("span",{className:"text-xs",children:String(d)}),y.jsx(lt,{label:l.label.value,variant:st.HOVERABLE,color:ot.NEUTRAL,className:"ml-auto",textAlign:ks.LEFT,onClick:()=>{const f=[...t,{type:H.Array,key:e.length}];a(n.localId,void 0,f)},Icon:Eh,children:l.text})]}),y.jsx("tr",{className:"block w-full",children:y.jsx(Aa,{section:u??Zn(e[0]),keyPath:[...t,{type:H.Array,key:d}],dictionary:n,renderSection:r})})]},JSON.stringify(u)))})}),y.jsx(lt,{label:s.label.value,variant:st.HOVERABLE,color:ot.NEUTRAL,textAlign:ks.LEFT,isFullWidth:!0,onClick:()=>{const u=[...t,{type:H.Array,key:e.length}];a(n.localId,Zn(e[0])??"",u,!1)},Icon:_h,children:s.text})]})},vae=({section:e,keyPath:t,dictionary:n,renderSection:r})=>y.jsx(y.Fragment,{children:y.jsx("table",{className:"w-full",children:y.jsx("tbody",{className:"flex flex-col gap-2",children:Object.keys(e).map(a=>{const s=[...t,{type:H.Object,key:a}],l=e,u=Object.keys(l)[0],d=l[a]??Zn(l[u]);return y.jsxs(S.Fragment,{children:[y.jsx("tr",{className:"mt-2 p-2 text-xs",children:String(a)},JSON.stringify(d)),y.jsx("tr",{className:"block w-full",children:y.jsx(u0,{section:d,keyPath:s,dictionary:n,renderSection:r})},JSON.stringify(d))]},a)})})})}),bae=({section:e,keyPath:t,dictionary:n,isDarkMode:r,onContentChange:a})=>{const[s,l]=S.useState(0),u=[{content:"Edit",value:0},{content:"Preview",value:1}],d=[...t,{type:H.Markdown}],f=e[H.Markdown];return y.jsxs("div",{className:"flex w-full flex-col justify-center gap-6 p-2",children:[y.jsx(_u,{choices:u,value:s,onChange:l,color:vu.TEXT,size:bu.SM,className:"ml-auto"}),y.jsx(Aa,{section:f,keyPath:d,dictionary:n,renderSection:s===1?p=>y.jsx(oae,{isDarkMode:r,children:p}):void 0,onContentChange:a})]})},_ae=({section:e,keyPath:t,...n})=>{const r=[...t,{type:H.Insertion}],a=e[H.Insertion];return y.jsx("div",{className:"flex w-full flex-col justify-center gap-6 p-2",children:y.jsx(Aa,{section:a,keyPath:r,...n})})},Eae=({section:e,keyPath:t,...n})=>{const r=[...t,{type:H.File}],a=e[H.File],{content:s}=e;return y.jsxs("div",{className:"flex w-full flex-col justify-center gap-6 p-2",children:[y.jsxs("span",{className:"text-neutral text-sm",children:[a," "]}),y.jsx(Aa,{section:s,keyPath:r,...n})]})},Sae=({keyPath:e,dictionary:t,renderSection:n,section:r,...a})=>{const{addEditedContent:s}=Tn(),l=r[H.Nested],u=[...e,{type:H.Nested}];return y.jsxs("div",{className:"w-full p-2",children:[y.jsx(Tv,{children:"Dictionary key"}),y.jsx($v,{"aria-label":"Edit field",type:"text",variant:da.DEFAULT,...a,onContentChange:d=>{s(t.localId,{...l,dictionaryKey:String(d)},u)},children:l.dictionaryKey??""}),y.jsx(Tv,{children:"Path (optional)"}),y.jsx($v,{"aria-label":"Edit field",type:"text",variant:da.DEFAULT,...a,onContentChange:d=>{s(t.localId,{...l,path:d!==""?d:void 0},u)},children:l.path??""})]})},u0=({section:e,keyPath:t,dictionary:n,renderSection:r,isDarkMode:a})=>{const{tsxNotEditable:s}=dn("navigation-view"),l=Ms(e);return l===H.ReactNode?y.jsxs(y.Fragment,{children:[y.jsx("span",{children:"[React Node]"}),y.jsx("span",{className:"text-neutral text-xs",children:s})]}):l===H.Nested?y.jsx(Sae,{dictionary:n,renderSection:r,keyPath:t,section:e}):l===H.Translation?y.jsx(hae,{dictionary:n,renderSection:r,keyPath:t,section:e}):l===H.Enumeration?y.jsx(pae,{dictionary:n,renderSection:r,keyPath:t,section:e}):l===H.Condition?y.jsx(mae,{dictionary:n,renderSection:r,keyPath:t,section:e}):l===H.Gender?y.jsx(gae,{dictionary:n,renderSection:r,keyPath:t,section:e}):l===H.Insertion?y.jsx(_ae,{dictionary:n,renderSection:r,keyPath:t,section:e}):l===H.Markdown?y.jsx(bae,{dictionary:n,keyPath:t,section:e,isDarkMode:a}):l===H.File?y.jsx(Eae,{dictionary:n,renderSection:r,keyPath:t,section:e}):l===H.Array?y.jsx(yae,{dictionary:n,renderSection:r,keyPath:t,section:e}):l===H.Object?y.jsx(vae,{dictionary:n,renderSection:r,keyPath:t,section:e}):l===H.Number?y.jsx("div",{className:"w-full p-2",children:y.jsx(uae,{dictionary:n,keyPath:t,type:"number","aria-label":"Edit field",children:e})}):l===H.Text?y.jsx("div",{className:"w-full p-2",children:typeof r=="function"?r(e):y.jsx(cae,{variant:da.DEFAULT,"aria-label":"Edit field",keyPath:t,dictionary:n,children:e})}):l===H.Boolean?y.jsx("div",{className:"w-full p-2",children:y.jsx(fae,{dictionary:n,keyPath:t,value:e})}):y.jsxs("div",{className:"w-full p-2",children:["Error. Format not supported.",JSON.stringify(e,null,2),JSON.stringify(t,null,2),"NodeType : ",l]})},Aa=e=>y.jsx(kr,{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:y.jsx(u0,{...e})}),Yc=e=>{const t=JR(e),n=Ms(e);return t&&(n===H.ReactNode||n===H.File)?!0:t&&typeof t.nodeType=="string"?Yc(t[t.nodeType]):typeof t=="string"||typeof t=="number"||typeof t=="boolean"||typeof t>"u"},xae=({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 y.jsx(g2,{links:a,locale:r,elementType:"location"})},If=e=>String(e).replace(/([A-Z])/g," $1").toLowerCase().trim(),ps=({section:e,keyPath:t,dictionaryKey:n})=>{const{locales:r}=at?.internationalization,a=dr(e,t),{addEditedContent:s}=zs(),{setFocusedContentKeyPath:l,focusedContent:u}=pa(),{addNewElement:d,goToField:f}=dn("navigation-view"),p=Ms(a),m=_=>(u?.keyPath?.length??0)>0&&Jc(_,u?.keyPath??[]),v=Yc(a);if(!a)return y.jsx(y.Fragment,{});if(v)return y.jsx(lt,{label:f.label.value,variant:st.HOVERABLE,color:ot.TEXT,className:"w-full",onClick:()=>l(t),IconRight:Mf,children:If(t[t.length-1].key)});if(typeof a=="object"){if(p===H.ReactNode)return y.jsx(y.Fragment,{children:"React Node"});if(p===H.Translation)return y.jsx("div",{className:"flex flex-col justify-between gap-2",children:r.map(x=>{const A=[...t,{type:H.Translation,key:x}];return y.jsx(ps,{keyPath:A,section:e,dictionaryKey:n},x)})});if(p===H.Enumeration||p===H.Condition)return y.jsx("div",{className:"flex flex-col justify-between gap-2",children:Object.keys(a[p]).map(x=>{const A=[...t,{type:p,key:x}];return y.jsx(ps,{keyPath:A,section:e,dictionaryKey:n},x)})});if(p===H.Array)return y.jsxs("div",{className:"flex flex-col justify-between gap-2",children:[a.map((x,A)=>{const w=[...t,{type:H.Array,key:A}];return y.jsx(ps,{keyPath:w,section:e,dictionaryKey:n},JSON.stringify(w))}),y.jsx(lt,{label:d.label.value,variant:st.HOVERABLE,color:ot.NEUTRAL,textAlign:ks.LEFT,onClick:()=>{const x=[...t,{type:H.Array,key:a.length}],A=a,w=Zn(A[A.length-1])??"";s(n,w,x,!1),l(x)},Icon:_h,children:d.text})]});if(typeof a.nodeType=="string"){const x=[...t,{type:a.nodeType}];return y.jsx(ps,{keyPath:x,section:e,dictionaryKey:n})}const _=Object.keys(a);return y.jsx("div",{className:"flex w-full max-w-full flex-col justify-between gap-2",children:_.map(x=>{const A=[...t,{type:H.Object,key:x}],w=dr(e,A);return Yc(w)?y.jsx(lt,{label:`${f.label.value} ${x}`,isActive:m(A),variant:st.HOVERABLE,color:ot.TEXT,className:"w-full",onClick:()=>l(A),IconRight:Mf,children:If(x)},x):y.jsx(t1,{label:`${f.label.value} ${x}`,isActive:m(A),onClick:()=>l(A),header:If(x),children:y.jsx("div",{className:"mt-2 flex w-full max-w-full",children:y.jsx("div",{className:"flex-1 pl-10",children:y.jsx(ps,{keyPath:A,section:e,dictionaryKey:n})})})},x)})})}return y.jsxs(y.Fragment,{children:["Error loading section --",p,"--",JSON.stringify(a),"--",JSON.stringify(t)]})},Aae=({dictionary:e,isDarkMode:t})=>{const{content:n,key:r}=e,{editedContent:a}=Tn(),{focusedContent:s,setFocusedContentKeyPath:l}=pa(),u=s?.keyPath,d=typeof a?.[r]?.content>"u"?n:a?.[r]?.content,f=dr(d,u??[]),p=Yc(d),m=Yc(f);return S.useEffect(()=>{typeof f>"u"&&l(s?.keyPath?.slice(0,-1)??[])},[]),y.jsxs("div",{children:[y.jsxs("div",{className:"mb-6 flex items-center justify-between gap-2",children:[y.jsx(xae,{dictionaryKey:r,keyPath:u??[],onClickKeyPath:l}),y.jsx("div",{className:"flex items-center gap-2",children:y.jsx(LJ,{})})]}),y.jsxs("div",{className:"flex gap-2 max-md:flex-col",children:[typeof d=="object"&&d&&!p&&Object.keys(d).length>0&&y.jsx(kr,{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:y.jsx(ps,{keyPath:[],section:d,dictionaryKey:r})}),(m||(u??[]).length>0)&&y.jsx(Aa,{keyPath:u??[],section:f,dictionary:e,isDarkMode:t})]})]})},Tae=e=>{const{titleRequiredError:t,titleInvalidTypeError:n,titleMinLengthError:r,keyRequiredError:a,keyInvalidTypeError:s,keySpaceError:l,keyMinLengthError:u,descriptionRequiredError:d,descriptionInvalidTypeError:f,requiredErrorProjectId:p,invalidTypeErrorProjectId:m,invalidTypeErrorTags:v}=dn("dictionary-detail-schema");return xQ({title:fc({error:_=>_.input===void 0?t.value:n.value}).refine(_=>_.length===0||_.length>=4,{error:r.value}).optional(),key:fc({error:_=>_.input===void 0?a.value:s.value}).min(4,{error:u.value}).regex(/^[a-zA-Z0-9-_]+$/,{error:l.value}).default(""),description:fc({error:_=>_.input===void 0?d.value:f.value}).optional(),projectIds:Mv(fc({error:_=>_.input===void 0?p.value:m.value})).default([e]),tags:Mv(fc({error:()=>v.value})).default([])})},wae=({dictionary:e})=>{const{session:t}=mu(),{project:n}=t??{},{data:r,isLoading:a}=yq(),{data:s}=_q(),l=Tae(String(n?.id)),{form:u,isSubmitting:d}=UZ(l,{defaultValues:e}),{editedContent:f,setEditedDictionary:p}=Tn(),{titleInput:m,keyInput:v,descriptionInput:_,projectInput:x,tagsSelect:A,auditButton:w}=dn("dictionary-details"),{mutate:N,isPending:E}=Eq(),T=f?.[e.key];S.useEffect(()=>{u.reset(e)},[e,u?.reset]),S.useEffect(()=>{typeof T>"u"&&u.reset(e)},[T]);const R=()=>{const C={...e,...T};N({fileContent:JSON.stringify(C)},{onSuccess:I=>{if(I?.data)try{const D=JSON.parse(I.data.fileContent);p(L=>({...L,...C,...D})),u.reset({...C,...D})}catch(D){console.error(D)}}})};return y.jsx(kr,{background:"none",border:!0,roundedSize:"2xl",className:"w-full px-5 pb-3 pt-5",children:y.jsxs(Ge,{className:"flex w-full flex-col gap-8",...u,schema:l,onChange:C=>p(I=>({...I,...C})),children:[y.jsxs("div",{className:"flex w-full flex-1 gap-8 max-md:flex-col",children:[y.jsx(Ge.EditableFieldInput,{name:"key",label:v.label,placeholder:v.label.value,description:v.description,disabled:d,isRequired:!0,onSave:C=>{u.setValue("key",C),p(I=>({...e,...I??{},key:C}))}}),y.jsx(Ge.EditableFieldInput,{name:"title",label:m.label,placeholder:m.placeholder.value,description:m.description,disabled:d,onSave:C=>{u.setValue("title",C),p(I=>({...e,...I??{},title:C}))}})]}),y.jsx(Ge.EditableFieldTextArea,{name:"description",label:_.label,placeholder:_.placeholder.value,description:_.description,disabled:d,onSave:C=>{u.setValue("description",C),p(I=>({...e,...I??{},description:C}))}}),y.jsxs("div",{className:"flex size-full flex-1 gap-8 max-md:flex-col",children:[y.jsxs(Ge.MultiSelect,{name:"projectIds",label:x.label.value,description:x.description.value,onValueChange:C=>{const I=[C].flat();u.setValue("projectIds",I),p(D=>({...e,...D??{},projectIds:I}))},children:[y.jsx(yn.Trigger,{getBadgeValue:C=>r?.data?.find(I=>String(I.id)===C)?.name??C,children:y.jsx(yn.Input,{placeholder:x.placeholder.value})}),y.jsx(yn.Content,{children:y.jsx(Rs,{isLoading:a,children:y.jsx(yn.List,{children:r?.data?.map(C=>y.jsx(yn.Item,{value:String(C.id),children:C.name},String(C.id)))})})})]}),y.jsxs(Ge.MultiSelect,{name:"tags",label:A.label.value,description:A.description.value,onValueChange:C=>{u.setValue("tags",[C].flat()),p(I=>({...e,...I??{},tags:[C].flat()}))},children:[y.jsx(yn.Trigger,{getBadgeValue:C=>r?.data?.find(I=>String(I.id)===C)?.name??C,children:y.jsx(yn.Input,{placeholder:A.placeholder.value})}),y.jsx(yn.Content,{children:y.jsx(Rs,{isLoading:a,children:y.jsx(yn.List,{children:s?.data?.map(C=>y.jsx(yn.Item,{value:String(C.key),children:C.name??C.key},String(C.key)))})})})]})]}),y.jsx("div",{className:"flex flex-wrap items-center justify-end gap-2 max-md:flex-col",children:y.jsx(Ge.Button,{type:"button",label:w.label.value,Icon:Fk,variant:st.OUTLINE,color:ot.TEXT,className:"max-md:w-full",onClick:R,disabled:d||E,isLoading:E,children:w.text})})]})})};function Cae(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function jR(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 PR(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?jR(Object(n),!0).forEach(function(r){Cae(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jR(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Rae(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 kae(e,t){if(e==null)return{};var n=Rae(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 Nae(e,t){return Iae(e)||Oae(e,t)||Dae(e,t)||Lae()}function Iae(e){if(Array.isArray(e))return e}function Oae(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 Dae(e,t){if(e){if(typeof e=="string")return MR(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 MR(e,t)}}function MR(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 Lae(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
341
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function jae(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function zR(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 BR(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?zR(Object(n),!0).forEach(function(r){jae(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zR(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Pae(){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 bc(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 gh(e){return{}.toString.call(e).includes("Object")}function Mae(e){return!Object.keys(e).length}function Xc(e){return typeof e=="function"}function zae(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Bae(e,t){return gh(t)||oa("changeType"),Object.keys(t).some(function(n){return!zae(e,n)})&&oa("changeField"),t}function Vae(e){Xc(e)||oa("selectorType")}function Uae(e){Xc(e)||gh(e)||oa("handlerType"),gh(e)&&Object.values(e).some(function(t){return!Xc(t)})&&oa("handlersType")}function Fae(e){e||oa("initialIsRequired"),gh(e)||oa("initialType"),Mae(e)&&oa("initialContent")}function Hae(e,t){throw new Error(e[t]||e.default)}var Gae={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"},oa=bc(Hae)(Gae),df={changes:Bae,selector:Vae,handler:Uae,initial:Fae};function $ae(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};df.initial(e),df.handler(t);var n={current:e},r=bc(Wae)(n,t),a=bc(qae)(n),s=bc(df.changes)(e),l=bc(Kae)(n);function u(){var f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(p){return p};return df.selector(f),f(n.current)}function d(f){Pae(r,a,s,l)(f)}return[u,d]}function Kae(e,t){return Xc(t)?t(e.current):t}function qae(e,t){return e.current=BR(BR({},e.current),t),t}function Wae(e,t,n){return Xc(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 Zae={create:$ae},Yae={paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.52.2/min/vs"}};function Xae(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 Qae(e){return{}.toString.call(e).includes("Object")}function Jae(e){return e||VR("configIsRequired"),Qae(e)||VR("configType"),e.urls?(eoe(),{paths:{vs:e.urls.monacoBase}}):e}function eoe(){console.warn(QL.deprecation)}function toe(e,t){throw new Error(e[t]||e.default)}var QL={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!
342
- You are using deprecated way of configuration.
343
-
344
- Instead of using
345
- monaco.config({ urls: { monacoBase: '...' } })
346
- use
347
- monaco.config({ paths: { vs: '...' } })
348
-
349
- For more please check the link https://github.com/suren-atoyan/monaco-loader#config
350
- `},VR=Xae(toe)(QL),noe={config:Jae},roe=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 JL(e,t){return Object.keys(t).forEach(function(n){t[n]instanceof Object&&e[n]&&Object.assign(t[n],JL(e[n],t[n]))}),PR(PR({},e),t)}var ioe={type:"cancelation",msg:"operation is manually canceled"};function Ny(e){var t=!1,n=new Promise(function(r,a){e.then(function(s){return t?a(ioe):r(s)}),e.catch(a)});return n.cancel=function(){return t=!0},n}var aoe=Zae.create({config:Yae,isInitialized:!1,resolve:null,reject:null,monaco:null}),ej=Nae(aoe,2),Tu=ej[0],Jh=ej[1];function ooe(e){var t=noe.config(e),n=t.monaco,r=kae(t,["monaco"]);Jh(function(a){return{config:JL(a.config,r),monaco:n}})}function soe(){var e=Tu(function(t){var n=t.monaco,r=t.isInitialized,a=t.resolve;return{monaco:n,isInitialized:r,resolve:a}});if(!e.isInitialized){if(Jh({isInitialized:!0}),e.monaco)return e.resolve(e.monaco),Ny(Iy);if(window.monaco&&window.monaco.editor)return tj(window.monaco),e.resolve(window.monaco),Ny(Iy);roe(loe,uoe)(doe)}return Ny(Iy)}function loe(e){return document.body.appendChild(e)}function coe(e){var t=document.createElement("script");return e&&(t.src=e),t}function uoe(e){var t=Tu(function(r){var a=r.config,s=r.reject;return{config:a,reject:s}}),n=coe("".concat(t.config.paths.vs,"/loader.js"));return n.onload=function(){return e()},n.onerror=t.reject,n}function doe(){var e=Tu(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){tj(n),e.resolve(n)},function(n){e.reject(n)})}function tj(e){Tu().monaco||Jh({monaco:e})}function foe(){return Tu(function(e){var t=e.monaco;return t})}var Iy=new Promise(function(e,t){return Jh({resolve:e,reject:t})}),nj={config:ooe,init:soe,__getMonacoInstance:foe},hoe={wrapper:{display:"flex",position:"relative",textAlign:"initial"},fullWidth:{width:"100%"},hide:{display:"none"}},Oy=hoe,poe={container:{display:"flex",height:"100%",width:"100%",justifyContent:"center",alignItems:"center"}},moe=poe;function goe({children:e}){return Oe.createElement("div",{style:moe.container},e)}var yoe=goe,voe=yoe;function boe({width:e,height:t,isEditorReady:n,loading:r,_ref:a,className:s,wrapperProps:l}){return Oe.createElement("section",{style:{...Oy.wrapper,width:e,height:t},...l},!n&&Oe.createElement(voe,null,r),Oe.createElement("div",{ref:a,style:{...Oy.fullWidth,...!n&&Oy.hide},className:s}))}var _oe=boe,rj=S.memo(_oe);function Eoe(e){S.useEffect(e,[])}var ij=Eoe;function Soe(e,t,n=!0){let r=S.useRef(!0);S.useEffect(r.current||!n?()=>{r.current=!1}:e,t)}var $n=Soe;function Oc(){}function Es(e,t,n,r){return xoe(e,r)||Aoe(e,t,n,r)}function xoe(e,t){return e.editor.getModel(aj(e,t))}function Aoe(e,t,n,r){return e.editor.createModel(t,n,r?aj(e,r):void 0)}function aj(e,t){return e.Uri.parse(t)}function Toe({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:m={},height:v="100%",width:_="100%",className:x,wrapperProps:A={},beforeMount:w=Oc,onMount:N=Oc}){let[E,T]=S.useState(!1),[R,C]=S.useState(!0),I=S.useRef(null),D=S.useRef(null),L=S.useRef(null),U=S.useRef(N),K=S.useRef(w),W=S.useRef(!1);ij(()=>{let ae=nj.init();return ae.then(z=>(D.current=z)&&C(!1)).catch(z=>z?.type!=="cancelation"&&console.error("Monaco initialization: error:",z)),()=>I.current?Z():ae.cancel()}),$n(()=>{if(I.current&&D.current){let ae=I.current.getOriginalEditor(),z=Es(D.current,e||"",r||n||"text",s||"");z!==ae.getModel()&&ae.setModel(z)}},[s],E),$n(()=>{if(I.current&&D.current){let ae=I.current.getModifiedEditor(),z=Es(D.current,t||"",a||n||"text",l||"");z!==ae.getModel()&&ae.setModel(z)}},[l],E),$n(()=>{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],E),$n(()=>{I.current?.getModel()?.original.setValue(e||"")},[e],E),$n(()=>{let{original:ae,modified:z}=I.current.getModel();D.current.editor.setModelLanguage(ae,r||n||"text"),D.current.editor.setModelLanguage(z,a||n||"text")},[n,r,a],E),$n(()=>{D.current?.editor.setTheme(f)},[f],E),$n(()=>{I.current?.updateOptions(m)},[m],E);let J=S.useCallback(()=>{if(!D.current)return;K.current(D.current);let ae=Es(D.current,e||"",r||n||"text",s||""),z=Es(D.current,t||"",a||n||"text",l||"");I.current?.setModel({original:ae,modified:z})},[n,t,a,e,r,s,l]),le=S.useCallback(()=>{!W.current&&L.current&&(I.current=D.current.editor.createDiffEditor(L.current,{automaticLayout:!0,...m}),J(),D.current?.editor.setTheme(f),T(!0),W.current=!0)},[m,f,J]);S.useEffect(()=>{E&&U.current(I.current,D.current)},[E]),S.useEffect(()=>{!R&&!E&&le()},[R,E,le]);function Z(){let ae=I.current?.getModel();u||ae?.original?.dispose(),d||ae?.modified?.dispose(),I.current?.dispose()}return Oe.createElement(rj,{width:_,height:v,isEditorReady:E,loading:p,_ref:L,className:x,wrapperProps:A})}var woe=Toe;S.memo(woe);function Coe(e){let t=S.useRef();return S.useEffect(()=>{t.current=e},[e]),t.current}var Roe=Coe,ff=new Map;function koe({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:m=!0,keepCurrentModel:v=!1,width:_="100%",height:x="100%",className:A,wrapperProps:w={},beforeMount:N=Oc,onMount:E=Oc,onChange:T,onValidate:R=Oc}){let[C,I]=S.useState(!1),[D,L]=S.useState(!0),U=S.useRef(null),K=S.useRef(null),W=S.useRef(null),J=S.useRef(E),le=S.useRef(N),Z=S.useRef(),ae=S.useRef(r),z=Roe(s),X=S.useRef(!1),G=S.useRef(!1);ij(()=>{let ne=nj.init();return ne.then($=>(U.current=$)&&L(!1)).catch($=>$?.type!=="cancelation"&&console.error("Monaco initialization: error:",$)),()=>K.current?P():ne.cancel()}),$n(()=>{let ne=Es(U.current,e||r||"",t||a||"",s||n||"");ne!==K.current?.getModel()&&(m&&ff.set(z,K.current?.saveViewState()),K.current?.setModel(ne),m&&K.current?.restoreViewState(ff.get(s)))},[s],C),$n(()=>{K.current?.updateOptions(f)},[f],C),$n(()=>{!K.current||r===void 0||(K.current.getOption(U.current.editor.EditorOption.readOnly)?K.current.setValue(r):r!==K.current.getValue()&&(G.current=!0,K.current.executeEdits("",[{range:K.current.getModel().getFullModelRange(),text:r,forceMoveMarkers:!0}]),K.current.pushUndoStop(),G.current=!1))},[r],C),$n(()=>{let ne=K.current?.getModel();ne&&a&&U.current?.editor.setModelLanguage(ne,a)},[a],C),$n(()=>{u!==void 0&&K.current?.revealLine(u)},[u],C),$n(()=>{U.current?.editor.setTheme(l)},[l],C);let me=S.useCallback(()=>{if(!(!W.current||!U.current)&&!X.current){le.current(U.current);let ne=s||n,$=Es(U.current,r||e||"",t||a||"",ne||"");K.current=U.current?.editor.create(W.current,{model:$,automaticLayout:!0,...f},p),m&&K.current.restoreViewState(ff.get(ne)),U.current.editor.setTheme(l),u!==void 0&&K.current.revealLine(u),I(!0),X.current=!0}},[e,t,n,r,a,s,f,p,m,l,u]);S.useEffect(()=>{C&&J.current(K.current,U.current)},[C]),S.useEffect(()=>{!D&&!C&&me()},[D,C,me]),ae.current=r,S.useEffect(()=>{C&&T&&(Z.current?.dispose(),Z.current=K.current?.onDidChangeModelContent(ne=>{G.current||T(K.current.getValue(),ne)}))},[C,T]),S.useEffect(()=>{if(C){let ne=U.current.editor.onDidChangeMarkers($=>{let re=K.current.getModel()?.uri;if(re&&$.find(ue=>ue.path===re.path)){let ue=U.current.editor.getModelMarkers({resource:re});R?.(ue)}});return()=>{ne?.dispose()}}return()=>{}},[C,R]);function P(){Z.current?.dispose(),v?m&&ff.set(s,K.current.saveViewState()):K.current.getModel()?.dispose(),K.current.dispose()}return Oe.createElement(rj,{width:_,height:x,isEditorReady:C,loading:d,_ref:W,className:A,wrapperProps:w})}var Noe=koe,Ioe=S.memo(Noe);const Ooe=({children:e,language:t,isDarkMode:n,showLineNumbers:r,showCopyButton:a=!0,isReadOnly:s=!1,onChange:l})=>{const u=S.useRef(null),d=S.useRef(null),[f,p]=S.useState({height:0,width:0}),m=S.useMemo(()=>n?"vs-dark-transparent":"hc-light-theme",[n]),v=(x,A)=>{d.current=x;const w=(x.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(m),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:w,width:u.current?.clientWidth??0})},_=r??e.split(`
351
- `).length>1;return y.jsxs("div",{className:ve("relative h-full w-full text-sm",r&&"ml-0"),children:[a&&y.jsx("div",{className:"sticky top-5 z-10",children:y.jsx("div",{className:ve("absolute bottom-0 right-2 flex h-7 items-center"),children:y.jsx(V1,{content:e})})}),y.jsx("div",{className:"z-0 grid size-full grid-cols-[0px] overflow-auto",ref:u,children:y.jsx(Ioe,{...f,defaultLanguage:"typescript",language:t,loading:y.jsx(Rs,{}),defaultValue:String(e).replace(/\n$/,""),onMount:v,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:m,className:"my-2 rounded-md"})})]})},Doe=({dictionary:e,isDarkMode:t})=>{const{setEditedContent:n,editedContent:r}=Tn(),a=l=>{try{return JSON.parse(l),!0}catch{return!1}},s=S.useMemo(()=>r?.[e.localId]?.content??e?.content??{},[e]);return y.jsx(kr,{background:"none",border:!0,roundedSize:"xl",className:"w-full overflow-hidden p-3",children:y.jsx(Ooe,{language:"json",onChange:l=>{a(l??"{}")&&n(e.localId,JSON.parse(l??"{}"))},isDarkMode:t,children:JSON.stringify(s,null,2)})})},hf=({section:e,onValueChange:t})=>{const{multilingual:n,text:r,number:a,boolean:s,node:l,array:u,enumeration:d,triggerPlaceHolder:f,nest:p,condition:m,markdown:v,insertion:_,reactNode:x,file:A}=dn("node-type-selector"),w=Ms(e),[N,E]=S.useState(w),T=R=>{E(R),t(R)};return y.jsxs(Re,{value:N,onValueChange:T,children:[y.jsx(Re.Trigger,{children:y.jsx(Re.Value,{placeholder:f})}),y.jsxs(Re.Content,{children:[y.jsx(Re.Item,{value:H.Translation,children:n}),y.jsx(Re.Item,{value:H.Text,children:r}),y.jsx(Re.Item,{value:H.Number,children:a}),y.jsx(Re.Item,{value:H.Boolean,children:s}),y.jsx(Re.Item,{value:H.Object,children:l}),y.jsx(Re.Item,{value:H.Array,children:u}),y.jsx(Re.Item,{value:H.Enumeration,children:d}),y.jsx(Re.Item,{value:H.Insertion,children:_}),y.jsx(Re.Item,{value:H.Markdown,children:v}),y.jsx(Re.Item,{value:H.Nested,children:p}),y.jsx(Re.Item,{value:H.Condition,children:m}),y.jsx(Re.Item,{value:H.ReactNode,disabled:!0,children:x}),y.jsx(Re.Item,{value:H.File,children:A})]})]})},ob=({section:e,dictionaryKey:t,keyPath:n,onNodeTypeChange:r})=>{const a=Zr()?.internationalization.locales??[],s=Ms(e),l=JR(e),u=d=>{const f=Jl(s,a,d);r(f)};if(s===H.Translation||s===H.Condition||s===H.Enumeration){const d=Object.keys(e[s])[0],f=[...n,{type:s,key:d}];return y.jsxs("div",{className:"flex w-full flex-col gap-1",children:[y.jsx(hf,{section:e,onValueChange:p=>r(Jl(p,a))}),y.jsx(ob,{section:l,keyPath:f,dictionaryKey:t,onNodeTypeChange:u})]})}if(s===H.Array){const d=[...n,{type:s,key:0}];return y.jsxs("div",{className:"flex w-full flex-col gap-1",children:[y.jsx(hf,{section:e,onValueChange:f=>r(Jl(f,a))}),y.jsx(ob,{section:l,keyPath:d,dictionaryKey:t,onNodeTypeChange:u})]})}return s===H.Object?y.jsxs(y.Fragment,{children:[y.jsx(hf,{section:e,onValueChange:d=>r(Jl(d,a))}),y.jsx("div",{className:"ml-10 mt-6",children:y.jsx(joe,{keyPath:n,section:e,dictionaryKey:t})})]}):y.jsx(hf,{section:e,onValueChange:d=>r(Jl(d,a))})},d0=({sectionKey:e,section:t,keyPath:n,dictionaryKey:r})=>{const{focusedContent:a,setFocusedContentKeyPath:s}=pa(),{renameEditedContent:l,addEditedContent:u}=zs(),{titleInput:d,deleteButton:f}=dn("structure-view"),p=m=>{l(r,m,n);const v=n.slice(0,-1),_=n[n.length-1],x=[...v,{..._,key:m}];s(x)};return y.jsx(kr,{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":Jc(n,a?.keyPath??[]),onClick:()=>s(n),children:y.jsxs("div",{className:"flex w-full flex-col items-start justify-between gap-3",children:[typeof e=="string"&&y.jsxs("div",{className:"w-full",children:[y.jsxs("div",{className:"flex w-full items-center justify-between gap-10",children:[y.jsx(sO,{name:"key","aria-label":"Key",placeholder:d.placeholder.value,defaultValue:e,onSave:m=>p(m),variant:da.INVISIBLE}),y.jsx(lt,{label:f.label.value,variant:st.HOVERABLE,size:Yn.ICON_SM,color:ot.TEXT,className:"translate-x-2",Icon:Eh,onClick:()=>{u(r,void 0,n);const m=n.slice(0,-1);s(m)}})]}),y.jsxs("span",{className:"text-neutral ml-3 text-sm",children:["( ",If(e)," )"]})]}),y.jsx(ob,{keyPath:n,dictionaryKey:r,section:t,onNodeTypeChange:m=>{u(r,m,n)}})]})})},Loe=({section:e,keyPath:t,dictionaryKey:n})=>{const{addNodeButton:r}=dn("structure-view"),{setFocusedContentKeyPath:a}=mb(),{addEditedContent:s}=zs();return!e||typeof e!="object"?y.jsx("div",{children:"Not an object"}):y.jsxs("div",{className:"flex flex-col gap-2 overflow-y-auto",children:[y.jsx("ul",{className:"mr-auto flex flex-col gap-4",children:Object.keys(e).map(l=>y.jsx("li",{className:"flex w-full",children:y.jsx(d0,{sectionKey:l,section:e?.[l],keyPath:[...t,{type:H.Object,key:l}],dictionaryKey:n})},l))}),y.jsx(lt,{label:r.label.value,variant:st.HOVERABLE,size:Yn.MD,color:ot.TEXT,Icon:_h,className:"flex-1",onClick:()=>{const u=[...t,{type:H.Object,key:"newKey"}];s(n,"",u),a(u)},children:r.text})]})},joe=({section:e,keyPath:t,dictionaryKey:n})=>!e||typeof e!="object"||typeof e.nodeType=="string"?y.jsx(d0,{sectionKey:"content",section:e,keyPath:t,dictionaryKey:n}):y.jsx(Loe,{section:e,keyPath:t,dictionaryKey:n}),Poe=({dictionary:e})=>{const{content:t,key:n,localId:r}=e,{editedContent:a}=Tn(),s=typeof a?.[r]?.content>"u"?t:a?.[r]?.content;return y.jsx(d0,{section:s,keyPath:[],dictionaryKey:n})},Moe=({dictionary:e,onClickDictionaryList:t,isDarkMode:n,mode:r,onDelete:a})=>{const s=Zr(),[l,u]=S.useState(1),{returnToDictionaryList:d}=dn("dictionary-field-editor"),{setFocusedContent:f}=mb(),{setLocaleDictionaries:p}=yh();return S.useEffect(()=>{f(m=>({...m??{},dictionaryKey:e.key,dictionaryLocalId:e.localId})),p(m=>({...m,[e.localId]:e}))},[]),y.jsx(DJ,{availableLocales:s?.internationalization.locales??[],children:y.jsxs("div",{className:"flex size-full flex-col gap-6 px-2",children:[y.jsx(lt,{onClick:t,variant:st.HOVERABLE,className:"z-10 ml-5 mr-auto",color:ot.TEXT,Icon:FF,label:d.label.value,children:d.text}),y.jsx(_u,{defaultValue:l,onChange:m=>u(m),color:vu.TEXT,size:bu.SM,className:"m-auto w-full max-w-xl",choices:[{content:"Details",value:0},{content:"Structure",value:2},{content:"Content",value:1},{content:"JSON",value:3}].filter(({value:m})=>!(!r.includes("remote")&&m===0))}),l===0&&y.jsx(wae,{dictionary:e}),l===2&&y.jsx(Poe,{dictionary:e}),l===1&&y.jsx(Aae,{dictionary:e,isDarkMode:n}),l===3&&y.jsx(Doe,{dictionary:e,isDarkMode:n}),y.jsx(bD,{dictionary:e,mode:r,onDelete:()=>{f(null),a?.()}})]})})},zoe=({children:e,isHidden:t,minWidth:n=0,align:r="left",className:a,...s})=>y.jsx("div",{className:ve("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:y.jsx("div",{style:{minWidth:`${n}px`},tabIndex:t!==!1?void 0:-1,className:ve(r==="right"&&"ml-auto"),children:e})}),Boe=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}},Voe=()=>{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)},Uoe=e=>{if(!(typeof window>"u"))return(window?.innerWidth??0)<=e},UR=(e="md")=>{const t=Boe(e),n=Voe(),r=Uoe(t);return{isMobileScreen:r,isMobileUserAgent:n,isMobile:r??n}},Foe=(e="md")=>{const[t,n]=S.useState(UR(e));return S.useEffect(()=>{const r=()=>{n(UR(e))};return window.addEventListener("resize",r,{passive:!0}),()=>window.removeEventListener("resize",r)},[e]),t},Hoe=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},ep=jI((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})),oj=({title:e,identifier:t,children:n,header:r,closeOnOutsideClick:a=!0,backButton:s,isOpen:l,onClose:u})=>{const{isMobile:d}=Foe("md"),f=S.useRef(null),p=S.useRef(null),{close:m,open:v,isOpen:_}=ep(PI(A=>({close:()=>A.close(t),open:()=>A.open(t),isOpen:A.isOpen(t)})));MI({disableScroll:_,key:t?`right_drawer_${t}`:"right_drawer"}),S.useEffect(()=>{const A=w=>{try{if(!f.current)return;const N=_&&a,E=w.target&&!f.current.contains(w.target),T=Hoe(f.current);(N&&E&&T||!w.target)&&(m(),u?.())}catch{m(),u?.()}};return window.addEventListener("mousedown",A),()=>window.removeEventListener("mousedown",A)},[_,m,u,a,t]),S.useEffect(()=>{l!==void 0&&(l?v():(m(),u?.()))},[m,v,u,l,t]);const x=A=>{A.target===A.currentTarget&&d&&(m(),u?.())};return y.jsx("div",{className:"fixed right-0 top-0 z-50 flex h-full justify-end",children:y.jsx(zoe,{isHidden:!_,align:"right",children:y.jsxs(kr,{className:"text-text relative flex h-screen w-screen flex-col md:w-[400px]",ref:f,roundedSize:"none",children:[y.jsxs("div",{className:"flex flex-col gap-3 p-6",children:[y.jsxs("div",{className:"flex justify-between gap-3",children:[y.jsx("div",{children:s&&y.jsx(lt,{variant:st.HOVERABLE,color:ot.TEXT,label:s.text??"Go back",onClick:s.onBack,Icon:WF,children:s?.text})}),y.jsx("div",{children:y.jsx(lt,{variant:st.HOVERABLE,color:ot.TEXT,label:"Close",className:"ml-auto",onClick:m,Icon:go,size:Yn.ICON_MD})})]}),e&&y.jsx("h2",{className:"flex items-center justify-center text-lg font-bold",children:e}),r]}),y.jsx("div",{className:"flex h-full flex-col overflow-y-auto p-2",children:y.jsx("div",{className:"flex flex-1 flex-col",onClick:x,ref:p,children:n})})]})})})};var f0="ToastProvider",[h0,Goe,$oe]=dO("Toast"),[sj,Koe]=au("Toast",[$oe]),[qoe,tp]=sj(f0),p0=e=>{const{__scopeToast:t,label:n="Notification",duration:r=5e3,swipeDirection:a="right",swipeThreshold:s=50,children:l}=e,[u,d]=S.useState(null),[f,p]=S.useState(0),m=S.useRef(!1),v=S.useRef(!1);return n.trim()||console.error(`Invalid prop \`label\` supplied to \`${f0}\`. Expected non-empty \`string\`.`),y.jsx(h0.Provider,{scope:t,children:y.jsx(qoe,{scope:t,label:n,duration:r,swipeDirection:a,swipeThreshold:s,toastCount:f,viewport:u,onViewportChange:d,onToastAdd:S.useCallback(()=>p(_=>_+1),[]),onToastRemove:S.useCallback(()=>p(_=>_-1),[]),isFocusedToastEscapeKeyDownRef:m,isClosePausedRef:v,children:l})})};p0.displayName=f0;var lj="ToastViewport",Woe=["F8"],sb="toast.viewportPause",lb="toast.viewportResume",m0=S.forwardRef((e,t)=>{const{__scopeToast:n,hotkey:r=Woe,label:a="Notifications ({hotkey})",...s}=e,l=tp(lj,n),u=Goe(n),d=S.useRef(null),f=S.useRef(null),p=S.useRef(null),m=S.useRef(null),v=Ct(t,m,l.onViewportChange),_=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),x=l.toastCount>0;S.useEffect(()=>{const w=N=>{r.length!==0&&r.every(T=>N[T]||N.code===T)&&m.current?.focus()};return document.addEventListener("keydown",w),()=>document.removeEventListener("keydown",w)},[r]),S.useEffect(()=>{const w=d.current,N=m.current;if(x&&w&&N){const E=()=>{if(!l.isClosePausedRef.current){const I=new CustomEvent(sb);N.dispatchEvent(I),l.isClosePausedRef.current=!0}},T=()=>{if(l.isClosePausedRef.current){const I=new CustomEvent(lb);N.dispatchEvent(I),l.isClosePausedRef.current=!1}},R=I=>{!w.contains(I.relatedTarget)&&T()},C=()=>{w.contains(document.activeElement)||T()};return w.addEventListener("focusin",E),w.addEventListener("focusout",R),w.addEventListener("pointermove",E),w.addEventListener("pointerleave",C),window.addEventListener("blur",E),window.addEventListener("focus",T),()=>{w.removeEventListener("focusin",E),w.removeEventListener("focusout",R),w.removeEventListener("pointermove",E),w.removeEventListener("pointerleave",C),window.removeEventListener("blur",E),window.removeEventListener("focus",T)}}},[x,l.isClosePausedRef]);const A=S.useCallback(({tabbingDirection:w})=>{const E=u().map(T=>{const R=T.ref.current,C=[R,...sse(R)];return w==="forwards"?C:C.reverse()});return(w==="forwards"?E.reverse():E).flat()},[u]);return S.useEffect(()=>{const w=m.current;if(w){const N=E=>{const T=E.altKey||E.ctrlKey||E.metaKey;if(E.key==="Tab"&&!T){const C=document.activeElement,I=E.shiftKey;if(E.target===w&&I){f.current?.focus();return}const U=A({tabbingDirection:I?"backwards":"forwards"}),K=U.findIndex(W=>W===C);Dy(U.slice(K+1))?E.preventDefault():I?f.current?.focus():p.current?.focus()}};return w.addEventListener("keydown",N),()=>w.removeEventListener("keydown",N)}},[u,A]),y.jsxs(B2,{ref:d,role:"region","aria-label":a.replace("{hotkey}",_),tabIndex:-1,style:{pointerEvents:x?void 0:"none"},children:[x&&y.jsx(cb,{ref:f,onFocusFromOutsideViewport:()=>{const w=A({tabbingDirection:"forwards"});Dy(w)}}),y.jsx(h0.Slot,{scope:n,children:y.jsx($e.ol,{tabIndex:-1,...s,ref:v})}),x&&y.jsx(cb,{ref:p,onFocusFromOutsideViewport:()=>{const w=A({tabbingDirection:"backwards"});Dy(w)}})]})});m0.displayName=lj;var cj="ToastFocusProxy",cb=S.forwardRef((e,t)=>{const{__scopeToast:n,onFocusFromOutsideViewport:r,...a}=e,s=tp(cj,n);return y.jsx(V_,{tabIndex:0,...a,ref:t,style:{position:"fixed"},onFocus:l=>{const u=l.relatedTarget;!s.viewport?.contains(u)&&r()}})});cb.displayName=cj;var wu="Toast",Zoe="toast.swipeStart",Yoe="toast.swipeMove",Xoe="toast.swipeCancel",Qoe="toast.swipeEnd",g0=S.forwardRef((e,t)=>{const{forceMount:n,open:r,defaultOpen:a,onOpenChange:s,...l}=e,[u,d]=zf({prop:r,defaultProp:a??!0,onChange:s,caller:wu});return y.jsx(ou,{present:n||u,children:y.jsx(tse,{open:u,...l,ref:t,onClose:()=>d(!1),onPause:Ar(e.onPause),onResume:Ar(e.onResume),onSwipeStart:Je(e.onSwipeStart,f=>{f.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:Je(e.onSwipeMove,f=>{const{x:p,y:m}=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",`${m}px`)}),onSwipeCancel:Je(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:Je(e.onSwipeEnd,f=>{const{x:p,y:m}=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",`${m}px`),d(!1)})})})});g0.displayName=wu;var[Joe,ese]=sj(wu,{onClose(){}}),tse=S.forwardRef((e,t)=>{const{__scopeToast:n,type:r="foreground",duration:a,open:s,onClose:l,onEscapeKeyDown:u,onPause:d,onResume:f,onSwipeStart:p,onSwipeMove:m,onSwipeCancel:v,onSwipeEnd:_,...x}=e,A=tp(wu,n),[w,N]=S.useState(null),E=Ct(t,Z=>N(Z)),T=S.useRef(null),R=S.useRef(null),C=a||A.duration,I=S.useRef(0),D=S.useRef(C),L=S.useRef(0),{onToastAdd:U,onToastRemove:K}=A,W=Ar(()=>{w?.contains(document.activeElement)&&A.viewport?.focus(),l()}),J=S.useCallback(Z=>{!Z||Z===1/0||(window.clearTimeout(L.current),I.current=new Date().getTime(),L.current=window.setTimeout(W,Z))},[W]);S.useEffect(()=>{const Z=A.viewport;if(Z){const ae=()=>{J(D.current),f?.()},z=()=>{const X=new Date().getTime()-I.current;D.current=D.current-X,window.clearTimeout(L.current),d?.()};return Z.addEventListener(sb,z),Z.addEventListener(lb,ae),()=>{Z.removeEventListener(sb,z),Z.removeEventListener(lb,ae)}}},[A.viewport,C,d,f,J]),S.useEffect(()=>{s&&!A.isClosePausedRef.current&&J(C)},[s,C,A.isClosePausedRef,J]),S.useEffect(()=>(U(),()=>K()),[U,K]);const le=S.useMemo(()=>w?hj(w):null,[w]);return A.viewport?y.jsxs(y.Fragment,{children:[le&&y.jsx(nse,{__scopeToast:n,role:"status","aria-live":r==="foreground"?"assertive":"polite",children:le}),y.jsx(Joe,{scope:n,onClose:W,children:mo.createPortal(y.jsx(h0.ItemSlot,{scope:n,children:y.jsx(z2,{asChild:!0,onEscapeKeyDown:Je(u,()=>{A.isFocusedToastEscapeKeyDownRef.current||W(),A.isFocusedToastEscapeKeyDownRef.current=!1}),children:y.jsx($e.li,{tabIndex:0,"data-state":s?"open":"closed","data-swipe-direction":A.swipeDirection,...x,ref:E,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:Je(e.onKeyDown,Z=>{Z.key==="Escape"&&(u?.(Z.nativeEvent),Z.nativeEvent.defaultPrevented||(A.isFocusedToastEscapeKeyDownRef.current=!0,W()))}),onPointerDown:Je(e.onPointerDown,Z=>{Z.button===0&&(T.current={x:Z.clientX,y:Z.clientY})}),onPointerMove:Je(e.onPointerMove,Z=>{if(!T.current)return;const ae=Z.clientX-T.current.x,z=Z.clientY-T.current.y,X=!!R.current,G=["left","right"].includes(A.swipeDirection),me=["left","up"].includes(A.swipeDirection)?Math.min:Math.max,P=G?me(0,ae):0,ne=G?0:me(0,z),$=Z.pointerType==="touch"?10:2,re={x:P,y:ne},ue={originalEvent:Z,delta:re};X?(R.current=re,pf(Yoe,m,ue,{discrete:!1})):FR(re,A.swipeDirection,$)?(R.current=re,pf(Zoe,p,ue,{discrete:!1}),Z.target.setPointerCapture(Z.pointerId)):(Math.abs(ae)>$||Math.abs(z)>$)&&(T.current=null)}),onPointerUp:Je(e.onPointerUp,Z=>{const ae=R.current,z=Z.target;if(z.hasPointerCapture(Z.pointerId)&&z.releasePointerCapture(Z.pointerId),R.current=null,T.current=null,ae){const X=Z.currentTarget,G={originalEvent:Z,delta:ae};FR(ae,A.swipeDirection,A.swipeThreshold)?pf(Qoe,_,G,{discrete:!0}):pf(Xoe,v,G,{discrete:!0}),X.addEventListener("click",me=>me.preventDefault(),{once:!0})}})})})}),A.viewport)})]}):null}),nse=e=>{const{__scopeToast:t,children:n,...r}=e,a=tp(wu,t),[s,l]=S.useState(!1),[u,d]=S.useState(!1);return ase(()=>l(!0)),S.useEffect(()=>{const f=window.setTimeout(()=>d(!0),1e3);return()=>window.clearTimeout(f)},[]),u?null:y.jsx(Ah,{asChild:!0,children:y.jsx(V_,{...r,children:s&&y.jsxs(y.Fragment,{children:[a.label," ",n]})})})},rse="ToastTitle",y0=S.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return y.jsx($e.div,{...r,ref:t})});y0.displayName=rse;var ise="ToastDescription",v0=S.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return y.jsx($e.div,{...r,ref:t})});v0.displayName=ise;var uj="ToastAction",b0=S.forwardRef((e,t)=>{const{altText:n,...r}=e;return n.trim()?y.jsx(fj,{altText:n,asChild:!0,children:y.jsx(np,{...r,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${uj}\`. Expected non-empty \`string\`.`),null)});b0.displayName=uj;var dj="ToastClose",np=S.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e,a=ese(dj,n);return y.jsx(fj,{asChild:!0,children:y.jsx($e.button,{type:"button",...r,ref:t,onClick:Je(e.onClick,a.onClose)})})});np.displayName=dj;var fj=S.forwardRef((e,t)=>{const{__scopeToast:n,altText:r,...a}=e;return y.jsx($e.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0,...a,ref:t})});function hj(e){const t=[];return Array.from(e.childNodes).forEach(r=>{if(r.nodeType===r.TEXT_NODE&&r.textContent&&t.push(r.textContent),ose(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(...hj(r))}}),t}function pf(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?i1(a,s):a.dispatchEvent(s)}var FR=(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 ase(e=()=>{}){const t=Ar(e);un(()=>{let n=0,r=0;return n=window.requestAnimationFrame(()=>r=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(n),window.cancelAnimationFrame(r)}},[t])}function ose(e){return e.nodeType===e.ELEMENT_NODE}function sse(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 Dy(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}var lse=p0,pj=m0,mj=g0,gj=y0,yj=v0,cse=b0,vj=np;const use=Object.freeze(Object.defineProperty({__proto__:null,Action:cse,Close:vj,Description:yj,Provider:lse,Root:mj,Title:gj,Toast:g0,ToastAction:b0,ToastClose:np,ToastDescription:v0,ToastProvider:p0,ToastTitle:y0,ToastViewport:m0,Viewport:pj,createToastScope:Koe},Symbol.toStringTag,{value:"Module"})),dse=use,fse=({className:e,...t})=>y.jsx(pj,{className:ve("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}),hse=wn("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"}}),pse=({className:e,variant:t,...n})=>y.jsx(mj,{className:ve(hse({variant:t}),e),...n}),mse=({className:e,...t})=>y.jsx(vj,{className:ve("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:y.jsx(go,{className:"size-5"})}),gse=({className:e,...t})=>y.jsx(gj,{className:ve("text-sm font-semibold [&+div]:text-xs",e),...t}),yse=({className:e,...t})=>y.jsx(yj,{className:ve("text-sm opacity-90",e),...t}),vse=1,bse=900*1e3;let Ly=0;const _se=()=>(Ly=(Ly+1)%Number.MAX_SAFE_INTEGER,Ly.toString()),jy=new Map,HR=e=>{if(jy.has(e))return;const t=setTimeout(()=>{jy.delete(e),Dc({type:"REMOVE_TOAST",toastId:e})},bse);jy.set(e,t)},Ese=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,vse)};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?HR(n):e.toasts.forEach(r=>{HR(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)}}},Of=[];let Df={toasts:[]};const Dc=e=>{Df=Ese(Df,e),Of.forEach(t=>{t(Df)})},Sse=({...e})=>{const t=_se(),n=a=>Dc({type:"UPDATE_TOAST",toast:{...a,id:t}}),r=()=>Dc({type:"DISMISS_TOAST",toastId:t});return Dc({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:a=>{a||r()}}}),{id:t,dismiss:r,update:n}},bj=()=>{const[e,t]=S.useState(Df);return S.useEffect(()=>(Of.push(t),()=>{const n=Of.indexOf(t);n>-1&&Of.splice(n,1)}),[e]),{...e,toast:Sse,dismiss:n=>Dc({type:"DISMISS_TOAST",toastId:n})}},xse=()=>{const{toasts:e}=bj();return y.jsxs(dse.Provider,{children:[e.map(({id:t,title:n,description:r,action:a,...s})=>y.jsxs(pse,{...s,children:[y.jsxs("div",{className:"grid gap-1",children:[n&&y.jsx(gse,{children:n}),r&&y.jsx(yse,{children:r})]}),a,y.jsx(mse,{})]},t)),y.jsx(fse,{})]})};var Ase={};const Tse={queries:{retry:1,refetchOnWindowFocus:!1,staleTime:0,gcTime:1e3*60*10},mutations:{retry:0}},GR=e=>e.split("_").join(" "),wse=()=>{const{toast:e}=bj();return{onError:r=>{[(()=>{try{if(typeof r=="string")return JSON.parse(r)}catch{}return r})()].flat().forEach(s=>e({title:GR((Ase.NODE_ENV==="production"?s?.title:s?.code)??"Error"),description:s?.message??String(s??"An error occurred"),variant:"error"}))},onSuccess:r=>{r?.error&&e({title:GR(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"})}}},Cse=({children:e})=>{const{onError:t,onSuccess:n}=wse(),r=new NI({onSuccess:n,onError:t,onSettled:(s,l,u,d,f)=>{f.meta?.invalidateQueries&&f.meta.invalidateQueries.forEach(p=>{a.invalidateQueries({queryKey:p})})}}),a=new wK({defaultOptions:Tse,mutationCache:r});return y.jsx(CK,{client:a,children:e})},Rse=({children:e})=>y.jsx(R4,{features:rK,children:e}),kse=({children:e})=>y.jsx(Rse,{children:y.jsxs(Cse,{children:[y.jsx(xse,{}),e]})}),Nse=({children:e})=>y.jsx(TF,{children:y.jsx(nF,{children:y.jsx(Ok,{path:"*",element:e})})}),ub="dictionaryList",_0=e=>`dictionary_edition_${e}`,_j=e=>{const t=_0(e),{isOpen:n,open:r,close:a}=ep(),{getEditedContentValue:s}=zs(),{focusedContent:l,setFocusedContent:u}=pa();return S.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)}}},Ise=({locale:e,identifier:t,handleOnBack:n,isDarkMode:r})=>{const{modalTitle:a,openDictionaryEditor:s,noDictionaryFocused:l,focusedDictionaryNotFound:u}=tu(fb),[d,f]=S.useState(!1),{focusedContent:p}=_j(t),{data:m}=GI(),v=S.useCallback(()=>{f(!1),n()},[n]),_=p?.dictionaryKey;if(!_)return y.jsx("span",{className:"mx-auto my-10 text-sm text-neutral",children:l});const x=yV(_,p.keyPath??[],m);return x?y.jsxs(y.Fragment,{children:[y.jsx(b_,{isOpen:d,onClose:()=>f(!1),hasCloseButton:!0,title:a.value,size:"xl",transparency:"lg",children:y.jsx("div",{className:"size-full px-3 pt-5",children:y.jsx(Moe,{dictionary:x,onClickDictionaryList:v,isDarkMode:r,mode:["local","remote"],onDelete:()=>{f(!1),n()}})})}),y.jsxs("div",{className:"border-text/20 /20 mb-5 flex w-full border-b border-dashed px-3 pb-2",children:[y.jsx("h3",{className:"w-full text-center text-lg",children:x.title?x.title:x.key}),y.jsx(lt,{variant:"hoverable",color:"text",size:"icon-md",IconRight:Uk,label:s.label.value,onClick:()=>f(!0)})]}),y.jsx(d7,{dictionary:x,locale:e,mode:["local","remote"]})]}):y.jsx("span",{className:"mx-auto my-10 text-sm text-neutral",children:u})},Ose=({locale:e,dictionaryKey:t,isDarkMode:n})=>{const{backButtonText:r}=tu(fb),a=_0(t),{focusedContent:s,close:l}=_j(t),{openDictionaryListDrawer:u}=ep(f=>({openDictionaryListDrawer:()=>f.open(ub)})),d=()=>{l(),u()};return y.jsx(oj,{identifier:a,backButton:{onBack:d,text:r.value},onClose:l,children:s&&y.jsx(Ise,{focusedContent:s,locale:e,identifier:a,handleOnBack:d,isDarkMode:n})})},Dse=({locale:e,isDarkMode:t})=>{const{focusedContent:n}=pa(),r=n?.dictionaryKey;return r?y.jsx(Ose,{locale:e,dictionaryKey:r,isDarkMode:t}):y.jsx(y.Fragment,{})},Lse=()=>{const{drawerTitle:e,buttonLabel:t}=tu(qR),{close:n,open:r}=ep(),{localeDictionaries:a}=ok(),{editedContent:s}=Tn(),{setFocusedContent:l}=pa(),u=f=>{n(ub),l({dictionaryKey:f.key,dictionaryLocalId:f.localId}),r(_0(f.key))},d=f=>Object.keys(s??{}).includes(f);return y.jsx(oj,{title:e.label.value,identifier:ub,children:Object.values(a).map(f=>y.jsx(lt,{label:t.label({dictionaryLocalId:f.localId}).value,onClick:()=>u(f),variant:"hoverable",color:"text",IconRight:Mf,size:"md",isFullWidth:!0,children:d(f.key)?`✎ ${f.key}`:f.key},f.localId))})},Ej=(...e)=>e1(Sh(e)),jse=e=>{const{message:t}=tu(WR);return y.jsx("div",{className:Ej("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}):""})},Pse=({children:e})=>{const[t]=sa(An.INTLAYER_CURRENT_LOCALE,void 0,{receive:!0,emit:!1}),[n]=sa(An.INTLAYER_HOVERED_CONTENT_CHANGED,null),{data:r}=GI(),{setLocaleDictionaries:a}=yh();return S.useEffect(()=>{if(!r)return;const s=Object.fromEntries(Object.values(r).flat().map(l=>[l.localId,l]));a(s)},[r]),y.jsxs("div",{className:"bg-card relative size-full p-3",children:[e,y.jsx("div",{className:"absolute bottom-2 right-2",children:y.jsx(jse,{...n})}),y.jsx(Dse,{locale:t}),y.jsx(Lse,{})]})},Mse=()=>{const[e,t]=S.useState();return S.useEffect(()=>{fetch("/api/config").then(n=>n.json()).then(n=>t(n.data))},[]),e},zse=({children:e,iframeRef:t})=>{const n=Mse(),r=n?.editor.applicationURL?n?.editor.applicationURL:"*",a=n?.editor.editorURL??"*";return n?y.jsx(qV,{postMessage:s=>{window?.postMessage(s,a),t.current?.contentWindow?.postMessage(s,r)},allowedOrigins:[r,a],mode:"editor",configuration:n,children:e}):y.jsx(Rs,{})},Bse=()=>{const{editedContent:e,setEditedContentState:t}=Tn(),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 S.useEffect(()=>{typeof e>"u"||localStorage?.setItem("INTLAYER_EDITED_CONTENT_CHANGED",JSON.stringify(e))},[e]),S.useEffect(()=>{typeof e<"u"||n()},[]),n},Vse=()=>{const{title:e,description:t,documentationLink:n}=tu(ZR);return y.jsxs("div",{className:"flex flex-col gap-6",children:[y.jsx(y_,{className:"mb-8",children:e}),y.jsx("strong",{className:"text-neutral block",children:t}),y.jsx(wb,{label:n.label.value,href:"https://intlayer.org/doc/concept/configuration#editor-configuration",color:"text",children:n.text})]})},Use=({iframeRef:e,applicationPath:t})=>{const{editor:n}=Zr(),r=()=>a(n.enabled),a=FV();uk(r),Bse(),ZV();const[s,l]=S.useState(!0),[u]=WV(void 0,{receive:!0,emit:!1});return S.useEffect(()=>{typeof u=="string"&&window.history.replaceState({},"",u)},[u]),n.applicationURL?y.jsxs("div",{className:"size-full overflow-hidden rounded-lg",children:[y.jsx(Rs,{isLoading:s}),y.jsx("iframe",{src:`${n.applicationURL}${t}`,title:"Intlayer Application",className:Ej("size-full",s&&"hidden"),ref:e,onLoad:()=>{l(!1),r()}})]}):y.jsx("div",{className:"flex size-full items-center justify-center",children:y.jsx(kr,{className:"flex max-w-xl flex-col gap-4 p-6",children:y.jsx(Vse,{})})})},Fse=()=>{const e=S.useRef(null),t=ma();return y.jsx(zse,{iframeRef:e,children:y.jsx(eU,{disableEditor:!0,children:y.jsx(Pse,{children:y.jsx(Use,{iframeRef:e,applicationPath:t.pathname})})})})},Hse=()=>y.jsx(Nse,{children:y.jsx(kse,{children:y.jsx(Fse,{})})});HM.createRoot(document.getElementById("root")).render(y.jsx(S.StrictMode,{children:y.jsx(Hse,{})}));