intlayer-editor 6.1.3 → 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.
@@ -0,0 +1,348 @@
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 jM(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const o in r)if(o!=="default"&&!(o in e)){const s=Object.getOwnPropertyDescriptor(r,o);s&&Object.defineProperty(e,o,s.get?s:{enumerable:!0,get:()=>r[o]})}}}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 o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const s of o)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(o){const s={};return o.integrity&&(s.integrity=o.integrity),o.referrerPolicy&&(s.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?s.credentials="include":o.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(o){if(o.ep)return;o.ep=!0;const s=n(o);fetch(o.href,s)}})();function fb(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 fA;function PM(){if(fA)return Xl;fA=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,o,s){var l=null;if(s!==void 0&&(l=""+s),o.key!==void 0&&(l=""+o.key),"key"in o){s={};for(var u in o)u!=="key"&&(s[u]=o[u])}else s=o;return o=s.ref,{$$typeof:e,type:r,key:l,ref:o!==void 0?o:null,props:s}}return Xl.Fragment=t,Xl.jsx=n,Xl.jsxs=n,Xl}var hA;function MM(){return hA||(hA=1,mg.exports=PM()),mg.exports}var y=MM(),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 pA;function zM(){if(pA)return Fe;pA=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=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 b={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},x=Object.assign,A={};function T(P,ie,G){this.props=P,this.context=ie,this.refs=A,this.updater=G||b}T.prototype.isReactComponent={},T.prototype.setState=function(P,ie){if(typeof P!="object"&&typeof P!="function"&&P!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,P,ie,"setState")},T.prototype.forceUpdate=function(P){this.updater.enqueueForceUpdate(this,P,"forceUpdate")};function N(){}N.prototype=T.prototype;function E(P,ie,G){this.props=P,this.context=ie,this.refs=A,this.updater=G||b}var w=E.prototype=new N;w.constructor=E,x(w,T.prototype),w.isPureReactComponent=!0;var R=Array.isArray,C={H:null,A:null,T:null,S:null,V:null},I=Object.prototype.hasOwnProperty;function D(P,ie,G,ne,ue,pe){return G=pe.ref,{$$typeof:e,type:P,key:ie,ref:G!==void 0?G:null,props:pe}}function L(P,ie){return D(P.type,ie,void 0,void 0,void 0,P.props)}function V(P){return typeof P=="object"&&P!==null&&P.$$typeof===e}function H(P){var ie={"=":"=0",":":"=2"};return"$"+P.replace(/[=:]/g,function(G){return ie[G]})}var Z=/\/+/g;function Q(P,ie){return typeof P=="object"&&P!==null&&P.key!=null?H(""+P.key):ie.toString(36)}function le(){}function q(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(ie){P.status==="pending"&&(P.status="fulfilled",P.value=ie)},function(ie){P.status==="pending"&&(P.status="rejected",P.reason=ie)})),P.status){case"fulfilled":return P.value;case"rejected":throw P.reason}}throw P}function oe(P,ie,G,ne,ue){var pe=typeof P;(pe==="undefined"||pe==="boolean")&&(P=null);var ve=!1;if(P===null)ve=!0;else switch(pe){case"bigint":case"string":case"number":ve=!0;break;case"object":switch(P.$$typeof){case e:case t:ve=!0;break;case p:return ve=P._init,oe(ve(P._payload),ie,G,ne,ue)}}if(ve)return ue=ue(P),ve=ne===""?"."+Q(P,0):ne,R(ue)?(G="",ve!=null&&(G=ve.replace(Z,"$&/")+"/"),oe(ue,ie,G,"",function(je){return je})):ue!=null&&(V(ue)&&(ue=L(ue,G+(ue.key==null||P&&P.key===ue.key?"":(""+ue.key).replace(Z,"$&/")+"/")+ve)),ie.push(ue)),1;ve=0;var fe=ne===""?".":ne+":";if(R(P))for(var xe=0;xe<P.length;xe++)ne=P[xe],pe=fe+Q(ne,xe),ve+=oe(ne,ie,G,pe,ue);else if(xe=v(P),typeof xe=="function")for(P=xe.call(P),xe=0;!(ne=P.next()).done;)ne=ne.value,pe=fe+Q(ne,xe++),ve+=oe(ne,ie,G,pe,ue);else if(pe==="object"){if(typeof P.then=="function")return oe(q(P),ie,G,ne,ue);throw ie=String(P),Error("Objects are not valid as a React child (found: "+(ie==="[object Object]"?"object with keys {"+Object.keys(P).join(", ")+"}":ie)+"). If you meant to render a collection of children, use an array instead.")}return ve}function z(P,ie,G){if(P==null)return P;var ne=[],ue=0;return oe(P,ne,"","",function(pe){return ie.call(G,pe,ue++)}),ne}function ee(P){if(P._status===-1){var ie=P._result;ie=ie(),ie.then(function(G){(P._status===0||P._status===-1)&&(P._status=1,P._result=G)},function(G){(P._status===0||P._status===-1)&&(P._status=2,P._result=G)}),P._status===-1&&(P._status=0,P._result=ie)}if(P._status===1)return P._result.default;throw P._result}var W=typeof reportError=="function"?reportError:function(P){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var ie=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof P=="object"&&P!==null&&typeof P.message=="string"?String(P.message):String(P),error:P});if(!window.dispatchEvent(ie))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",P);return}console.error(P)};function be(){}return Fe.Children={map:z,forEach:function(P,ie,G){z(P,function(){ie.apply(this,arguments)},G)},count:function(P){var ie=0;return z(P,function(){ie++}),ie},toArray:function(P){return z(P,function(ie){return ie})||[]},only:function(P){if(!V(P))throw Error("React.Children.only expected to receive a single React element child.");return P}},Fe.Component=T,Fe.Fragment=n,Fe.Profiler=o,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,ie,G){if(P==null)throw Error("The argument must be a React element, but you passed "+P+".");var ne=x({},P.props),ue=P.key,pe=void 0;if(ie!=null)for(ve in ie.ref!==void 0&&(pe=void 0),ie.key!==void 0&&(ue=""+ie.key),ie)!I.call(ie,ve)||ve==="key"||ve==="__self"||ve==="__source"||ve==="ref"&&ie.ref===void 0||(ne[ve]=ie[ve]);var ve=arguments.length-2;if(ve===1)ne.children=G;else if(1<ve){for(var fe=Array(ve),xe=0;xe<ve;xe++)fe[xe]=arguments[xe+2];ne.children=fe}return D(P.type,ue,void 0,void 0,pe,ne)},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,ie,G){var ne,ue={},pe=null;if(ie!=null)for(ne in ie.key!==void 0&&(pe=""+ie.key),ie)I.call(ie,ne)&&ne!=="key"&&ne!=="__self"&&ne!=="__source"&&(ue[ne]=ie[ne]);var ve=arguments.length-2;if(ve===1)ue.children=G;else if(1<ve){for(var fe=Array(ve),xe=0;xe<ve;xe++)fe[xe]=arguments[xe+2];ue.children=fe}if(P&&P.defaultProps)for(ne in ve=P.defaultProps,ve)ue[ne]===void 0&&(ue[ne]=ve[ne]);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=V,Fe.lazy=function(P){return{$$typeof:p,_payload:{_status:-1,_result:P},_init:ee}},Fe.memo=function(P,ie){return{$$typeof:f,type:P,compare:ie===void 0?null:ie}},Fe.startTransition=function(P){var ie=C.T,G={};C.T=G;try{var ne=P(),ue=C.S;ue!==null&&ue(G,ne),typeof ne=="object"&&ne!==null&&typeof ne.then=="function"&&ne.then(be,W)}catch(pe){W(pe)}finally{C.T=ie}},Fe.unstable_useCacheRefresh=function(){return C.H.useCacheRefresh()},Fe.use=function(P){return C.H.use(P)},Fe.useActionState=function(P,ie,G){return C.H.useActionState(P,ie,G)},Fe.useCallback=function(P,ie){return C.H.useCallback(P,ie)},Fe.useContext=function(P){return C.H.useContext(P)},Fe.useDebugValue=function(){},Fe.useDeferredValue=function(P,ie){return C.H.useDeferredValue(P,ie)},Fe.useEffect=function(P,ie,G){var ne=C.H;if(typeof G=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return ne.useEffect(P,ie)},Fe.useId=function(){return C.H.useId()},Fe.useImperativeHandle=function(P,ie,G){return C.H.useImperativeHandle(P,ie,G)},Fe.useInsertionEffect=function(P,ie){return C.H.useInsertionEffect(P,ie)},Fe.useLayoutEffect=function(P,ie){return C.H.useLayoutEffect(P,ie)},Fe.useMemo=function(P,ie){return C.H.useMemo(P,ie)},Fe.useOptimistic=function(P,ie){return C.H.useOptimistic(P,ie)},Fe.useReducer=function(P,ie,G){return C.H.useReducer(P,ie,G)},Fe.useRef=function(P){return C.H.useRef(P)},Fe.useState=function(P){return C.H.useState(P)},Fe.useSyncExternalStore=function(P,ie,G){return C.H.useSyncExternalStore(P,ie,G)},Fe.useTransition=function(){return C.H.useTransition()},Fe.version="19.1.1",Fe}var mA;function Qc(){return mA||(mA=1,gg.exports=zM()),gg.exports}var S=Qc();const Oe=fb(S),KR=jM({__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 gA;function BM(){return gA||(gA=1,(function(e){function t(z,ee){var W=z.length;z.push(ee);e:for(;0<W;){var be=W-1>>>1,P=z[be];if(0<o(P,ee))z[be]=ee,z[W]=P,W=be;else break e}}function n(z){return z.length===0?null:z[0]}function r(z){if(z.length===0)return null;var ee=z[0],W=z.pop();if(W!==ee){z[0]=W;e:for(var be=0,P=z.length,ie=P>>>1;be<ie;){var G=2*(be+1)-1,ne=z[G],ue=G+1,pe=z[ue];if(0>o(ne,W))ue<P&&0>o(pe,ne)?(z[be]=pe,z[ue]=W,be=ue):(z[be]=ne,z[G]=W,be=G);else if(ue<P&&0>o(pe,W))z[be]=pe,z[ue]=W,be=ue;else break e}}return ee}function o(z,ee){var W=z.sortIndex-ee.sortIndex;return W!==0?W:z.id-ee.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,b=!1,x=!1,A=!1,T=!1,N=typeof setTimeout=="function"?setTimeout:null,E=typeof clearTimeout=="function"?clearTimeout:null,w=typeof setImmediate<"u"?setImmediate:null;function R(z){for(var ee=n(f);ee!==null;){if(ee.callback===null)r(f);else if(ee.startTime<=z)r(f),ee.sortIndex=ee.expirationTime,t(d,ee);else break;ee=n(f)}}function C(z){if(A=!1,R(z),!x)if(n(d)!==null)x=!0,I||(I=!0,Q());else{var ee=n(f);ee!==null&&oe(C,ee.startTime-z)}}var I=!1,D=-1,L=5,V=-1;function H(){return T?!0:!(e.unstable_now()-V<L)}function Z(){if(T=!1,I){var z=e.unstable_now();V=z;var ee=!0;try{e:{x=!1,A&&(A=!1,E(D),D=-1),b=!0;var W=v;try{t:{for(R(z),m=n(d);m!==null&&!(m.expirationTime>z&&H());){var be=m.callback;if(typeof be=="function"){m.callback=null,v=m.priorityLevel;var P=be(m.expirationTime<=z);if(z=e.unstable_now(),typeof P=="function"){m.callback=P,R(z),ee=!0;break t}m===n(d)&&r(d),R(z)}else r(d);m=n(d)}if(m!==null)ee=!0;else{var ie=n(f);ie!==null&&oe(C,ie.startTime-z),ee=!1}}break e}finally{m=null,v=W,b=!1}ee=void 0}}finally{ee?Q():I=!1}}}var Q;if(typeof w=="function")Q=function(){w(Z)};else if(typeof MessageChannel<"u"){var le=new MessageChannel,q=le.port2;le.port1.onmessage=Z,Q=function(){q.postMessage(null)}}else Q=function(){N(Z,0)};function oe(z,ee){D=N(function(){z(e.unstable_now())},ee)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(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 ee=3;break;default:ee=v}var W=v;v=ee;try{return z()}finally{v=W}},e.unstable_requestPaint=function(){T=!0},e.unstable_runWithPriority=function(z,ee){switch(z){case 1:case 2:case 3:case 4:case 5:break;default:z=3}var W=v;v=z;try{return ee()}finally{v=W}},e.unstable_scheduleCallback=function(z,ee,W){var be=e.unstable_now();switch(typeof W=="object"&&W!==null?(W=W.delay,W=typeof W=="number"&&0<W?be+W:be):W=be,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=W+P,z={id:p++,callback:ee,priorityLevel:z,startTime:W,expirationTime:P,sortIndex:-1},W>be?(z.sortIndex=W,t(f,z),n(d)===null&&z===n(f)&&(A?(E(D),D=-1):A=!0,oe(C,W-be))):(z.sortIndex=P,t(d,z),x||b||(x=!0,I||(I=!0,Q()))),z},e.unstable_shouldYield=H,e.unstable_wrapCallback=function(z){var ee=v;return function(){var W=v;v=ee;try{return z.apply(this,arguments)}finally{v=W}}}})(bg)),bg}var yA;function VM(){return yA||(yA=1,vg.exports=BM()),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 vA;function UM(){if(vA)return mn;vA=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},o=Symbol.for("react.portal");function s(d,f,p){var m=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,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,b=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:b}):p==="script"&&r.d.X(d,{crossOrigin:m,integrity:v,fetchPriority:b,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 bA;function qR(){if(bA)return _g.exports;bA=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=UM(),_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 _A;function FM(){if(_A)return Ql;_A=1;var e=VM(),t=Qc(),n=qR();function r(i){var a="https://react.dev/errors/"+i;if(1<arguments.length){a+="?args[]="+encodeURIComponent(arguments[1]);for(var c=2;c<arguments.length;c++)a+="&args[]="+encodeURIComponent(arguments[c])}return"Minified React error #"+i+"; visit "+a+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(i){return!(!i||i.nodeType!==1&&i.nodeType!==9&&i.nodeType!==11)}function s(i){var a=i,c=i;if(i.alternate)for(;a.return;)a=a.return;else{i=a;do a=i,(a.flags&4098)!==0&&(c=a.return),i=a.return;while(i)}return a.tag===3?c:null}function l(i){if(i.tag===13){var a=i.memoizedState;if(a===null&&(i=i.alternate,i!==null&&(a=i.memoizedState)),a!==null)return a.dehydrated}return null}function u(i){if(s(i)!==i)throw Error(r(188))}function d(i){var a=i.alternate;if(!a){if(a=s(i),a===null)throw Error(r(188));return a!==i?null:i}for(var c=i,h=a;;){var g=c.return;if(g===null)break;var _=g.alternate;if(_===null){if(h=g.return,h!==null){c=h;continue}break}if(g.child===_.child){for(_=g.child;_;){if(_===c)return u(g),i;if(_===h)return u(g),a;_=_.sibling}throw Error(r(188))}if(c.return!==h.return)c=g,h=_;else{for(var k=!1,O=g.child;O;){if(O===c){k=!0,c=g,h=_;break}if(O===h){k=!0,h=g,c=_;break}O=O.sibling}if(!k){for(O=_.child;O;){if(O===c){k=!0,c=_,h=g;break}if(O===h){k=!0,h=_,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:a}function f(i){var a=i.tag;if(a===5||a===26||a===27||a===6)return i;for(i=i.child;i!==null;){if(a=f(i),a!==null)return a;i=i.sibling}return null}var p=Object.assign,m=Symbol.for("react.element"),v=Symbol.for("react.transitional.element"),b=Symbol.for("react.portal"),x=Symbol.for("react.fragment"),A=Symbol.for("react.strict_mode"),T=Symbol.for("react.profiler"),N=Symbol.for("react.provider"),E=Symbol.for("react.consumer"),w=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"),V=Symbol.for("react.activity"),H=Symbol.for("react.memo_cache_sentinel"),Z=Symbol.iterator;function Q(i){return i===null||typeof i!="object"?null:(i=Z&&i[Z]||i["@@iterator"],typeof i=="function"?i:null)}var le=Symbol.for("react.client.reference");function q(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 T:return"Profiler";case A:return"StrictMode";case C:return"Suspense";case I:return"SuspenseList";case V:return"Activity"}if(typeof i=="object")switch(i.$$typeof){case b:return"Portal";case w:return(i.displayName||"Context")+".Provider";case E:return(i._context.displayName||"Context")+".Consumer";case R:var a=i.render;return i=i.displayName,i||(i=a.displayName||a.name||"",i=i!==""?"ForwardRef("+i+")":"ForwardRef"),i;case D:return a=i.displayName||null,a!==null?a:q(i.type)||"Memo";case L:a=i._payload,i=i._init;try{return q(i(a))}catch{}}return null}var oe=Array.isArray,z=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ee=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,W={pending:!1,data:null,method:null,action:null},be=[],P=-1;function ie(i){return{current:i}}function G(i){0>P||(i.current=be[P],be[P]=null,P--)}function ne(i,a){P++,be[P]=i.current,i.current=a}var ue=ie(null),pe=ie(null),ve=ie(null),fe=ie(null);function xe(i,a){switch(ne(ve,a),ne(pe,i),ne(ue,null),a.nodeType){case 9:case 11:i=(i=a.documentElement)&&(i=i.namespaceURI)?Vx(i):0;break;default:if(i=a.tagName,a=a.namespaceURI)a=Vx(a),i=Ux(a,i);else switch(i){case"svg":i=1;break;case"math":i=2;break;default:i=0}}G(ue),ne(ue,i)}function je(){G(ue),G(pe),G(ve)}function Ve(i){i.memoizedState!==null&&ne(fe,i);var a=ue.current,c=Ux(a,i.type);a!==c&&(ne(pe,i),ne(ue,c))}function Xe(i){pe.current===i&&(G(ue),G(pe)),fe.current===i&&(G(fe),Kl._currentValue=W)}var nt=Object.prototype.hasOwnProperty,Xt=e.unstable_scheduleCallback,Cn=e.unstable_cancelCallback,Ci=e.unstable_shouldYield,To=e.unstable_requestPaint,fn=e.unstable_now,S0=e.unstable_getCurrentPriorityLevel,tl=e.unstable_ImmediatePriority,U=e.unstable_UserBlockingPriority,J=e.unstable_NormalPriority,ae=e.unstable_LowPriority,Se=e.unstable_IdlePriority,_e=e.log,ge=e.unstable_setDisableYieldValue,Ce=null,Ue=null;function Qe(i){if(typeof _e=="function"&&ge(i),Ue&&typeof Ue.setStrictMode=="function")try{Ue.setStrictMode(Ce,i)}catch{}}var gt=Math.clz32?Math.clz32:rp,_a=Math.log,Nr=Math.LN2;function rp(i){return i>>>=0,i===0?32:31-(_a(i)/Nr|0)|0}var Ri=256,ki=4194304;function Jr(i){var a=i&42;if(a!==0)return a;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 Co(i,a,c){var h=i.pendingLanes;if(h===0)return 0;var g=0,_=i.suspendedLanes,k=i.pingedLanes;i=i.warmLanes;var O=h&134217727;return O!==0?(h=O&~_,h!==0?g=Jr(h):(k&=O,k!==0?g=Jr(k):c||(c=O&~i,c!==0&&(g=Jr(c))))):(O=h&~_,O!==0?g=Jr(O):k!==0?g=Jr(k):c||(c=h&~i,c!==0&&(g=Jr(c)))),g===0?0:a!==0&&a!==g&&(a&_)===0&&(_=g&-g,c=a&-a,_>=c||_===32&&(c&4194048)!==0)?a:g}function Ro(i,a){return(i.pendingLanes&~(i.suspendedLanes&~i.pingedLanes)&a)===0}function Cu(i,a){switch(i){case 1:case 2:case 4:case 8:case 64:return a+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 a+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 x0(){var i=Ri;return Ri<<=1,(Ri&4194048)===0&&(Ri=256),i}function A0(){var i=ki;return ki<<=1,(ki&62914560)===0&&(ki=4194304),i}function ip(i){for(var a=[],c=0;31>c;c++)a.push(i);return a}function nl(i,a){i.pendingLanes|=a,a!==268435456&&(i.suspendedLanes=0,i.pingedLanes=0,i.warmLanes=0)}function xj(i,a,c,h,g,_){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,X=i.hiddenUpdates;for(c=k&~c;0<c;){var se=31-gt(c),de=1<<se;O[se]=0,M[se]=-1;var te=X[se];if(te!==null)for(X[se]=null,se=0;se<te.length;se++){var re=te[se];re!==null&&(re.lane&=-536870913)}c&=~de}h!==0&&w0(i,h,0),_!==0&&g===0&&i.tag!==0&&(i.suspendedLanes|=_&~(k&~a))}function w0(i,a,c){i.pendingLanes|=a,i.suspendedLanes&=~a;var h=31-gt(a);i.entangledLanes|=a,i.entanglements[h]=i.entanglements[h]|1073741824|c&4194090}function T0(i,a){var c=i.entangledLanes|=a;for(i=i.entanglements;c;){var h=31-gt(c),g=1<<h;g&a|i[h]&a&&(i[h]|=a),c&=~g}}function op(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 ap(i){return i&=-i,2<i?8<i?(i&134217727)!==0?32:268435456:8:2}function C0(){var i=ee.p;return i!==0?i:(i=window.event,i===void 0?32:aA(i.type))}function Aj(i,a){var c=ee.p;try{return ee.p=i,a()}finally{ee.p=c}}var Ni=Math.random().toString(36).slice(2),hn="__reactFiber$"+Ni,Rn="__reactProps$"+Ni,Ea="__reactContainer$"+Ni,sp="__reactEvents$"+Ni,wj="__reactListeners$"+Ni,Tj="__reactHandles$"+Ni,R0="__reactResources$"+Ni,rl="__reactMarker$"+Ni;function lp(i){delete i[hn],delete i[Rn],delete i[sp],delete i[wj],delete i[Tj]}function Sa(i){var a=i[hn];if(a)return a;for(var c=i.parentNode;c;){if(a=c[Ea]||c[hn]){if(c=a.alternate,a.child!==null||c!==null&&c.child!==null)for(i=Gx(i);i!==null;){if(c=i[hn])return c;i=Gx(i)}return a}i=c,c=i.parentNode}return null}function xa(i){if(i=i[hn]||i[Ea]){var a=i.tag;if(a===5||a===6||a===13||a===26||a===27||a===3)return i}return null}function il(i){var a=i.tag;if(a===5||a===26||a===27||a===6)return i.stateNode;throw Error(r(33))}function Aa(i){var a=i[R0];return a||(a=i[R0]={hoistableStyles:new Map,hoistableScripts:new Map}),a}function Qt(i){i[rl]=!0}var k0=new Set,N0={};function ko(i,a){wa(i,a),wa(i+"Capture",a)}function wa(i,a){for(N0[i]=a,i=0;i<a.length;i++)k0.add(a[i])}var Cj=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]*$"),I0={},O0={};function Rj(i){return nt.call(O0,i)?!0:nt.call(I0,i)?!1:Cj.test(i)?O0[i]=!0:(I0[i]=!0,!1)}function Ru(i,a,c){if(Rj(a))if(c===null)i.removeAttribute(a);else{switch(typeof c){case"undefined":case"function":case"symbol":i.removeAttribute(a);return;case"boolean":var h=a.toLowerCase().slice(0,5);if(h!=="data-"&&h!=="aria-"){i.removeAttribute(a);return}}i.setAttribute(a,""+c)}}function ku(i,a,c){if(c===null)i.removeAttribute(a);else{switch(typeof c){case"undefined":case"function":case"symbol":case"boolean":i.removeAttribute(a);return}i.setAttribute(a,""+c)}}function ei(i,a,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(a,c,""+h)}}var cp,D0;function Ta(i){if(cp===void 0)try{throw Error()}catch(c){var a=c.stack.trim().match(/\n( *(at )?)/);cp=a&&a[1]||"",D0=-1<c.stack.indexOf(`
43
+ at`)?" (<anonymous>)":-1<c.stack.indexOf("@")?"@unknown:0:0":""}return`
44
+ `+cp+i+D0}var up=!1;function dp(i,a){if(!i||up)return"";up=!0;var c=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var h={DetermineComponentFrameRoot:function(){try{if(a){var de=function(){throw Error()};if(Object.defineProperty(de.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(de,[])}catch(re){var te=re}Reflect.construct(i,[],de)}else{try{de.call()}catch(re){te=re}i.call(de.prototype)}}else{try{throw Error()}catch(re){te=re}(de=i())&&typeof de.catch=="function"&&de.catch(function(){})}}catch(re){if(re&&te&&typeof re.stack=="string")return[re.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 _=h.DetermineComponentFrameRoot(),k=_[0],O=_[1];if(k&&O){var M=k.split(`
45
+ `),X=O.split(`
46
+ `);for(g=h=0;h<M.length&&!M[h].includes("DetermineComponentFrameRoot");)h++;for(;g<X.length&&!X[g].includes("DetermineComponentFrameRoot");)g++;if(h===M.length||g===X.length)for(h=M.length-1,g=X.length-1;1<=h&&0<=g&&M[h]!==X[g];)g--;for(;1<=h&&0<=g;h--,g--)if(M[h]!==X[g]){if(h!==1||g!==1)do if(h--,g--,0>g||M[h]!==X[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:"")?Ta(c):""}function kj(i){switch(i.tag){case 26:case 27:case 5:return Ta(i.type);case 16:return Ta("Lazy");case 13:return Ta("Suspense");case 19:return Ta("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 Ta("Activity");default:return""}}function L0(i){try{var a="";do a+=kj(i),i=i.return;while(i);return a}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 j0(i){var a=i.type;return(i=i.nodeName)&&i.toLowerCase()==="input"&&(a==="checkbox"||a==="radio")}function Nj(i){var a=j0(i)?"checked":"value",c=Object.getOwnPropertyDescriptor(i.constructor.prototype,a),h=""+i[a];if(!i.hasOwnProperty(a)&&typeof c<"u"&&typeof c.get=="function"&&typeof c.set=="function"){var g=c.get,_=c.set;return Object.defineProperty(i,a,{configurable:!0,get:function(){return g.call(this)},set:function(k){h=""+k,_.call(this,k)}}),Object.defineProperty(i,a,{enumerable:c.enumerable}),{getValue:function(){return h},setValue:function(k){h=""+k},stopTracking:function(){i._valueTracker=null,delete i[a]}}}}function Nu(i){i._valueTracker||(i._valueTracker=Nj(i))}function P0(i){if(!i)return!1;var a=i._valueTracker;if(!a)return!0;var c=a.getValue(),h="";return i&&(h=j0(i)?i.checked?"true":"false":i.value),i=h,i!==c?(a.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 Ij=/[\n"\\]/g;function Jn(i){return i.replace(Ij,function(a){return"\\"+a.charCodeAt(0).toString(16)+" "})}function fp(i,a,c,h,g,_,k,O){i.name="",k!=null&&typeof k!="function"&&typeof k!="symbol"&&typeof k!="boolean"?i.type=k:i.removeAttribute("type"),a!=null?k==="number"?(a===0&&i.value===""||i.value!=a)&&(i.value=""+Qn(a)):i.value!==""+Qn(a)&&(i.value=""+Qn(a)):k!=="submit"&&k!=="reset"||i.removeAttribute("value"),a!=null?hp(i,k,Qn(a)):c!=null?hp(i,k,Qn(c)):h!=null&&i.removeAttribute("value"),g==null&&_!=null&&(i.defaultChecked=!!_),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 M0(i,a,c,h,g,_,k,O){if(_!=null&&typeof _!="function"&&typeof _!="symbol"&&typeof _!="boolean"&&(i.type=_),a!=null||c!=null){if(!(_!=="submit"&&_!=="reset"||a!=null))return;c=c!=null?""+Qn(c):"",a=a!=null?""+Qn(a):c,O||a===i.value||(i.value=a),i.defaultValue=a}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,a,c){a==="number"&&Iu(i.ownerDocument)===i||i.defaultValue===""+c||(i.defaultValue=""+c)}function Ca(i,a,c,h){if(i=i.options,a){a={};for(var g=0;g<c.length;g++)a["$"+c[g]]=!0;for(c=0;c<i.length;c++)g=a.hasOwnProperty("$"+i[c].value),i[c].selected!==g&&(i[c].selected=g),g&&h&&(i[c].defaultSelected=!0)}else{for(c=""+Qn(c),a=null,g=0;g<i.length;g++){if(i[g].value===c){i[g].selected=!0,h&&(i[g].defaultSelected=!0);return}a!==null||i[g].disabled||(a=i[g])}a!==null&&(a.selected=!0)}}function z0(i,a,c){if(a!=null&&(a=""+Qn(a),a!==i.value&&(i.value=a),c==null)){i.defaultValue!==a&&(i.defaultValue=a);return}i.defaultValue=c!=null?""+Qn(c):""}function B0(i,a,c,h){if(a==null){if(h!=null){if(c!=null)throw Error(r(92));if(oe(h)){if(1<h.length)throw Error(r(93));h=h[0]}c=h}c==null&&(c=""),a=c}c=Qn(a),i.defaultValue=c,h=i.textContent,h===c&&h!==""&&h!==null&&(i.value=h)}function Ra(i,a){if(a){var c=i.firstChild;if(c&&c===i.lastChild&&c.nodeType===3){c.nodeValue=a;return}}i.textContent=a}var Oj=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 V0(i,a,c){var h=a.indexOf("--")===0;c==null||typeof c=="boolean"||c===""?h?i.setProperty(a,""):a==="float"?i.cssFloat="":i[a]="":h?i.setProperty(a,c):typeof c!="number"||c===0||Oj.has(a)?a==="float"?i.cssFloat=c:i[a]=(""+c).trim():i[a]=c+"px"}function U0(i,a,c){if(a!=null&&typeof a!="object")throw Error(r(62));if(i=i.style,c!=null){for(var h in c)!c.hasOwnProperty(h)||a!=null&&a.hasOwnProperty(h)||(h.indexOf("--")===0?i.setProperty(h,""):h==="float"?i.cssFloat="":i[h]="");for(var g in a)h=a[g],a.hasOwnProperty(g)&&c[g]!==h&&V0(i,g,h)}else for(var _ in a)a.hasOwnProperty(_)&&V0(i,_,a[_])}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 Dj=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"]]),Lj=/^[\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 Lj.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 ka=null,Na=null;function F0(i){var a=xa(i);if(a&&(i=a.stateNode)){var c=i[Rn]||null;e:switch(i=a.stateNode,a.type){case"input":if(fp(i,c.value,c.defaultValue,c.defaultValue,c.checked,c.defaultChecked,c.type,c.name),a=c.name,c.type==="radio"&&a!=null){for(c=i;c.parentNode;)c=c.parentNode;for(c=c.querySelectorAll('input[name="'+Jn(""+a)+'"][type="radio"]'),a=0;a<c.length;a++){var h=c[a];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(a=0;a<c.length;a++)h=c[a],h.form===i.form&&P0(h)}break e;case"textarea":z0(i,c.value,c.defaultValue);break e;case"select":a=c.value,a!=null&&Ca(i,!!c.multiple,a,!1)}}}var yp=!1;function H0(i,a,c){if(yp)return i(a,c);yp=!0;try{var h=i(a);return h}finally{if(yp=!1,(ka!==null||Na!==null)&&(yd(),ka&&(a=ka,i=Na,Na=ka=null,F0(a),i)))for(a=0;a<i.length;a++)F0(i[a])}}function ol(i,a){var c=i.stateNode;if(c===null)return null;var h=c[Rn]||null;if(h===null)return null;c=h[a];e:switch(a){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,a,typeof c));return c}var ti=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),vp=!1;if(ti)try{var al={};Object.defineProperty(al,"passive",{get:function(){vp=!0}}),window.addEventListener("test",al,al),window.removeEventListener("test",al,al)}catch{vp=!1}var Ii=null,bp=null,Du=null;function $0(){if(Du)return Du;var i,a=bp,c=a.length,h,g="value"in Ii?Ii.value:Ii.textContent,_=g.length;for(i=0;i<c&&a[i]===g[i];i++);var k=c-i;for(h=1;h<=k&&a[c-h]===g[_-h];h++);return Du=g.slice(i,1<h?1-h:void 0)}function Lu(i){var a=i.keyCode;return"charCode"in i?(i=i.charCode,i===0&&a===13&&(i=13)):i=a,i===10&&(i=13),32<=i||i===13?i:0}function ju(){return!0}function G0(){return!1}function kn(i){function a(c,h,g,_,k){this._reactName=c,this._targetInst=g,this.type=h,this.nativeEvent=_,this.target=k,this.currentTarget=null;for(var O in i)i.hasOwnProperty(O)&&(c=i[O],this[O]=c?c(_):_[O]);return this.isDefaultPrevented=(_.defaultPrevented!=null?_.defaultPrevented:_.returnValue===!1)?ju:G0,this.isPropagationStopped=G0,this}return p(a.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}),a}var No={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(i){return i.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Pu=kn(No),sl=p({},No,{view:0,detail:0}),jj=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}}),K0=kn(Mu),Pj=p({},Mu,{dataTransfer:0}),Mj=kn(Pj),zj=p({},sl,{relatedTarget:0}),Sp=kn(zj),Bj=p({},No,{animationName:0,elapsedTime:0,pseudoElement:0}),Vj=kn(Bj),Uj=p({},No,{clipboardData:function(i){return"clipboardData"in i?i.clipboardData:window.clipboardData}}),Fj=kn(Uj),Hj=p({},No,{data:0}),q0=kn(Hj),$j={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"},Kj={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function qj(i){var a=this.nativeEvent;return a.getModifierState?a.getModifierState(i):(i=Kj[i])?!!a[i]:!1}function xp(){return qj}var Wj=p({},sl,{key:function(i){if(i.key){var a=$j[i.key]||i.key;if(a!=="Unidentified")return a}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}}),Zj=kn(Wj),Yj=p({},Mu,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),W0=kn(Yj),Xj=p({},sl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:xp}),Qj=kn(Xj),Jj=p({},No,{propertyName:0,elapsedTime:0,pseudoElement:0}),eP=kn(Jj),tP=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}),nP=kn(tP),rP=p({},No,{newState:0,oldState:0}),iP=kn(rP),oP=[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,Z0=ti&&(!Ap||cl&&8<cl&&11>=cl),Y0=" ",X0=!1;function Q0(i,a){switch(i){case"keyup":return oP.indexOf(a.keyCode)!==-1;case"keydown":return a.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function J0(i){return i=i.detail,typeof i=="object"&&"data"in i?i.data:null}var Ia=!1;function sP(i,a){switch(i){case"compositionend":return J0(a);case"keypress":return a.which!==32?null:(X0=!0,Y0);case"textInput":return i=a.data,i===Y0&&X0?null:i;default:return null}}function lP(i,a){if(Ia)return i==="compositionend"||!Ap&&Q0(i,a)?(i=$0(),Du=bp=Ii=null,Ia=!1,i):null;switch(i){case"paste":return null;case"keypress":if(!(a.ctrlKey||a.altKey||a.metaKey)||a.ctrlKey&&a.altKey){if(a.char&&1<a.char.length)return a.char;if(a.which)return String.fromCharCode(a.which)}return null;case"compositionend":return Z0&&a.locale!=="ko"?null:a.data;default:return null}}var cP={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 eE(i){var a=i&&i.nodeName&&i.nodeName.toLowerCase();return a==="input"?!!cP[i.type]:a==="textarea"}function tE(i,a,c,h){ka?Na?Na.push(h):Na=[h]:ka=h,a=xd(a,"onChange"),0<a.length&&(c=new Pu("onChange","change",null,c,h),i.push({event:c,listeners:a}))}var ul=null,dl=null;function uP(i){jx(i,0)}function zu(i){var a=il(i);if(P0(a))return i}function nE(i,a){if(i==="change")return a}var rE=!1;if(ti){var wp;if(ti){var Tp="oninput"in document;if(!Tp){var iE=document.createElement("div");iE.setAttribute("oninput","return;"),Tp=typeof iE.oninput=="function"}wp=Tp}else wp=!1;rE=wp&&(!document.documentMode||9<document.documentMode)}function oE(){ul&&(ul.detachEvent("onpropertychange",aE),dl=ul=null)}function aE(i){if(i.propertyName==="value"&&zu(dl)){var a=[];tE(a,dl,i,gp(i)),H0(uP,a)}}function dP(i,a,c){i==="focusin"?(oE(),ul=a,dl=c,ul.attachEvent("onpropertychange",aE)):i==="focusout"&&oE()}function fP(i){if(i==="selectionchange"||i==="keyup"||i==="keydown")return zu(dl)}function hP(i,a){if(i==="click")return zu(a)}function pP(i,a){if(i==="input"||i==="change")return zu(a)}function mP(i,a){return i===a&&(i!==0||1/i===1/a)||i!==i&&a!==a}var Pn=typeof Object.is=="function"?Object.is:mP;function fl(i,a){if(Pn(i,a))return!0;if(typeof i!="object"||i===null||typeof a!="object"||a===null)return!1;var c=Object.keys(i),h=Object.keys(a);if(c.length!==h.length)return!1;for(h=0;h<c.length;h++){var g=c[h];if(!nt.call(a,g)||!Pn(i[g],a[g]))return!1}return!0}function sE(i){for(;i&&i.firstChild;)i=i.firstChild;return i}function lE(i,a){var c=sE(i);i=0;for(var h;c;){if(c.nodeType===3){if(h=i+c.textContent.length,i<=a&&h>=a)return{node:c,offset:a-i};i=h}e:{for(;c;){if(c.nextSibling){c=c.nextSibling;break e}c=c.parentNode}c=void 0}c=sE(c)}}function cE(i,a){return i&&a?i===a?!0:i&&i.nodeType===3?!1:a&&a.nodeType===3?cE(i,a.parentNode):"contains"in i?i.contains(a):i.compareDocumentPosition?!!(i.compareDocumentPosition(a)&16):!1:!1}function uE(i){i=i!=null&&i.ownerDocument!=null&&i.ownerDocument.defaultView!=null?i.ownerDocument.defaultView:window;for(var a=Iu(i.document);a instanceof i.HTMLIFrameElement;){try{var c=typeof a.contentWindow.location.href=="string"}catch{c=!1}if(c)i=a.contentWindow;else break;a=Iu(i.document)}return a}function Cp(i){var a=i&&i.nodeName&&i.nodeName.toLowerCase();return a&&(a==="input"&&(i.type==="text"||i.type==="search"||i.type==="tel"||i.type==="url"||i.type==="password")||a==="textarea"||i.contentEditable==="true")}var gP=ti&&"documentMode"in document&&11>=document.documentMode,Oa=null,Rp=null,hl=null,kp=!1;function dE(i,a,c){var h=c.window===c?c.document:c.nodeType===9?c:c.ownerDocument;kp||Oa==null||Oa!==Iu(h)||(h=Oa,"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&&(a=new Pu("onSelect","select",null,a,c),i.push({event:a,listeners:h}),a.target=Oa)))}function Io(i,a){var c={};return c[i.toLowerCase()]=a.toLowerCase(),c["Webkit"+i]="webkit"+a,c["Moz"+i]="moz"+a,c}var Da={animationend:Io("Animation","AnimationEnd"),animationiteration:Io("Animation","AnimationIteration"),animationstart:Io("Animation","AnimationStart"),transitionrun:Io("Transition","TransitionRun"),transitionstart:Io("Transition","TransitionStart"),transitioncancel:Io("Transition","TransitionCancel"),transitionend:Io("Transition","TransitionEnd")},Np={},fE={};ti&&(fE=document.createElement("div").style,"AnimationEvent"in window||(delete Da.animationend.animation,delete Da.animationiteration.animation,delete Da.animationstart.animation),"TransitionEvent"in window||delete Da.transitionend.transition);function Oo(i){if(Np[i])return Np[i];if(!Da[i])return i;var a=Da[i],c;for(c in a)if(a.hasOwnProperty(c)&&c in fE)return Np[i]=a[c];return i}var hE=Oo("animationend"),pE=Oo("animationiteration"),mE=Oo("animationstart"),yP=Oo("transitionrun"),vP=Oo("transitionstart"),bP=Oo("transitioncancel"),gE=Oo("transitionend"),yE=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,a){yE.set(i,a),ko(a,[i])}var vE=new WeakMap;function er(i,a){if(typeof i=="object"&&i!==null){var c=vE.get(i);return c!==void 0?c:(a={value:i,source:a,stack:L0(a)},vE.set(i,a),a)}return{value:i,source:a,stack:L0(a)}}var tr=[],La=0,Op=0;function Bu(){for(var i=La,a=Op=La=0;a<i;){var c=tr[a];tr[a++]=null;var h=tr[a];tr[a++]=null;var g=tr[a];tr[a++]=null;var _=tr[a];if(tr[a++]=null,h!==null&&g!==null){var k=h.pending;k===null?g.next=g:(g.next=k.next,k.next=g),h.pending=g}_!==0&&bE(c,g,_)}}function Vu(i,a,c,h){tr[La++]=i,tr[La++]=a,tr[La++]=c,tr[La++]=h,Op|=h,i.lanes|=h,i=i.alternate,i!==null&&(i.lanes|=h)}function Dp(i,a,c,h){return Vu(i,a,c,h),Uu(i)}function ja(i,a){return Vu(i,null,null,a),Uu(i)}function bE(i,a,c){i.lanes|=c;var h=i.alternate;h!==null&&(h.lanes|=c);for(var g=!1,_=i.return;_!==null;)_.childLanes|=c,h=_.alternate,h!==null&&(h.childLanes|=c),_.tag===22&&(i=_.stateNode,i===null||i._visibility&1||(g=!0)),i=_,_=_.return;return i.tag===3?(_=i.stateNode,g&&a!==null&&(g=31-gt(c),i=_.hiddenUpdates,h=i[g],h===null?i[g]=[a]:h.push(a),a.lane=c|536870912),_):null}function Uu(i){if(50<zl)throw zl=0,Bm=null,Error(r(185));for(var a=i.return;a!==null;)i=a,a=i.return;return i.tag===3?i.stateNode:null}var Pa={};function _P(i,a,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=a,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,a,c,h){return new _P(i,a,c,h)}function Lp(i){return i=i.prototype,!(!i||!i.isReactComponent)}function ni(i,a){var c=i.alternate;return c===null?(c=Mn(i.tag,a,i.key,i.mode),c.elementType=i.elementType,c.type=i.type,c.stateNode=i.stateNode,c.alternate=i,i.alternate=c):(c.pendingProps=a,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,a=i.dependencies,c.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext},c.sibling=i.sibling,c.index=i.index,c.ref=i.ref,c.refCleanup=i.refCleanup,c}function _E(i,a){i.flags&=65011714;var c=i.alternate;return c===null?(i.childLanes=0,i.lanes=a,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,a=c.dependencies,i.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext}),i}function Fu(i,a,c,h,g,_){var k=0;if(h=i,typeof i=="function")Lp(i)&&(k=1);else if(typeof i=="string")k=SM(i,c,ue.current)?26:i==="html"||i==="head"||i==="body"?27:5;else e:switch(i){case V:return i=Mn(31,c,a,g),i.elementType=V,i.lanes=_,i;case x:return Do(c.children,g,_,a);case A:k=8,g|=24;break;case T:return i=Mn(12,c,a,g|2),i.elementType=T,i.lanes=_,i;case C:return i=Mn(13,c,a,g),i.elementType=C,i.lanes=_,i;case I:return i=Mn(19,c,a,g),i.elementType=I,i.lanes=_,i;default:if(typeof i=="object"&&i!==null)switch(i.$$typeof){case N:case w: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 a=Mn(k,c,a,g),a.elementType=i,a.type=h,a.lanes=_,a}function Do(i,a,c,h){return i=Mn(7,i,h,a),i.lanes=c,i}function jp(i,a,c){return i=Mn(6,i,null,a),i.lanes=c,i}function Pp(i,a,c){return a=Mn(4,i.children!==null?i.children:[],i.key,a),a.lanes=c,a.stateNode={containerInfo:i.containerInfo,pendingChildren:null,implementation:i.implementation},a}var Ma=[],za=0,Hu=null,$u=0,nr=[],rr=0,Lo=null,ri=1,ii="";function jo(i,a){Ma[za++]=$u,Ma[za++]=Hu,Hu=i,$u=a}function EE(i,a,c){nr[rr++]=ri,nr[rr++]=ii,nr[rr++]=Lo,Lo=i;var h=ri;i=ii;var g=32-gt(h)-1;h&=~(1<<g),c+=1;var _=32-gt(a)+g;if(30<_){var k=g-g%5;_=(h&(1<<k)-1).toString(32),h>>=k,g-=k,ri=1<<32-gt(a)+g|c<<g|h,ii=_+i}else ri=1<<_|c<<g|h,ii=i}function Mp(i){i.return!==null&&(jo(i,1),EE(i,1,0))}function zp(i){for(;i===Hu;)Hu=Ma[--za],Ma[za]=null,$u=Ma[--za],Ma[za]=null;for(;i===Lo;)Lo=nr[--rr],nr[rr]=null,ii=nr[--rr],nr[rr]=null,ri=nr[--rr],nr[rr]=null}var _n=null,kt=null,it=!1,Po=null,Ir=!1,Bp=Error(r(519));function Mo(i){var a=Error(r(418,""));throw gl(er(a,i)),Bp}function SE(i){var a=i.stateNode,c=i.type,h=i.memoizedProps;switch(a[hn]=i,a[Rn]=h,c){case"dialog":Ye("cancel",a),Ye("close",a);break;case"iframe":case"object":case"embed":Ye("load",a);break;case"video":case"audio":for(c=0;c<Vl.length;c++)Ye(Vl[c],a);break;case"source":Ye("error",a);break;case"img":case"image":case"link":Ye("error",a),Ye("load",a);break;case"details":Ye("toggle",a);break;case"input":Ye("invalid",a),M0(a,h.value,h.defaultValue,h.checked,h.defaultChecked,h.type,h.name,!0),Nu(a);break;case"select":Ye("invalid",a);break;case"textarea":Ye("invalid",a),B0(a,h.value,h.defaultValue,h.children),Nu(a)}c=h.children,typeof c!="string"&&typeof c!="number"&&typeof c!="bigint"||a.textContent===""+c||h.suppressHydrationWarning===!0||Bx(a.textContent,c)?(h.popover!=null&&(Ye("beforetoggle",a),Ye("toggle",a)),h.onScroll!=null&&Ye("scroll",a),h.onScrollEnd!=null&&Ye("scrollend",a),h.onClick!=null&&(a.onclick=Ad),a=!0):a=!1,a||Mo(i)}function xE(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 xE(i),it=!0,!1;var a=i.tag,c;if((c=a!==3&&a!==27)&&((c=a===5)&&(c=i.type,c=!(c!=="form"&&c!=="button")||tg(i.type,i.memoizedProps)),c=!c),c&&kt&&Mo(i),xE(i),a===13){if(i=i.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(r(317));e:{for(i=i.nextSibling,a=0;i;){if(i.nodeType===8)if(c=i.data,c==="/$"){if(a===0){kt=yr(i.nextSibling);break e}a--}else c!=="$"&&c!=="$!"&&c!=="$?"||a++;i=i.nextSibling}kt=null}}else a===27?(a=kt,qi(i.type)?(i=og,og=null,kt=i):kt=a):kt=_n?yr(i.stateNode.nextSibling):null;return!0}function ml(){kt=_n=null,it=!1}function AE(){var i=Po;return i!==null&&(On===null?On=i:On.push.apply(On,i),Po=null),i}function gl(i){Po===null?Po=[i]:Po.push(i)}var Vp=ie(null),zo=null,oi=null;function Oi(i,a,c){ne(Vp,a._currentValue),a._currentValue=c}function ai(i){i._currentValue=Vp.current,G(Vp)}function Up(i,a,c){for(;i!==null;){var h=i.alternate;if((i.childLanes&a)!==a?(i.childLanes|=a,h!==null&&(h.childLanes|=a)):h!==null&&(h.childLanes&a)!==a&&(h.childLanes|=a),i===c)break;i=i.return}}function Fp(i,a,c,h){var g=i.child;for(g!==null&&(g.return=i);g!==null;){var _=g.dependencies;if(_!==null){var k=g.child;_=_.firstContext;e:for(;_!==null;){var O=_;_=g;for(var M=0;M<a.length;M++)if(O.context===a[M]){_.lanes|=c,O=_.alternate,O!==null&&(O.lanes|=c),Up(_.return,c,i),h||(k=null);break e}_=O.next}}else if(g.tag===18){if(k=g.return,k===null)throw Error(r(341));k.lanes|=c,_=k.alternate,_!==null&&(_.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,a,c,h){i=null;for(var g=a,_=!1;g!==null;){if(!_){if((g.flags&524288)!==0)_=!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(a,i,c,h),a.flags|=262144}function Gu(i){for(i=i.firstContext;i!==null;){if(!Pn(i.context._currentValue,i.memoizedValue))return!0;i=i.next}return!1}function Bo(i){zo=i,oi=null,i=i.dependencies,i!==null&&(i.firstContext=null)}function pn(i){return wE(zo,i)}function Ku(i,a){return zo===null&&Bo(i),wE(i,a)}function wE(i,a){var c=a._currentValue;if(a={context:a,memoizedValue:c,next:null},oi===null){if(i===null)throw Error(r(308));oi=a,i.dependencies={lanes:0,firstContext:a},i.flags|=524288}else oi=oi.next=a;return c}var EP=typeof AbortController<"u"?AbortController:function(){var i=[],a=this.signal={aborted:!1,addEventListener:function(c,h){i.push(h)}};this.abort=function(){a.aborted=!0,i.forEach(function(c){return c()})}},SP=e.unstable_scheduleCallback,xP=e.unstable_NormalPriority,$t={$$typeof:w,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Hp(){return{controller:new EP,data:new Map,refCount:0}}function vl(i){i.refCount--,i.refCount===0&&SP(xP,function(){i.controller.abort()})}var bl=null,$p=0,Ba=0,Va=null;function AP(i,a){if(bl===null){var c=bl=[];$p=0,Ba=Km(),Va={status:"pending",value:void 0,then:function(h){c.push(h)}}}return $p++,a.then(TE,TE),a}function TE(){if(--$p===0&&bl!==null){Va!==null&&(Va.status="fulfilled");var i=bl;bl=null,Ba=0,Va=null;for(var a=0;a<i.length;a++)(0,i[a])()}}function wP(i,a){var c=[],h={status:"pending",value:null,reason:null,then:function(g){c.push(g)}};return i.then(function(){h.status="fulfilled",h.value=a;for(var g=0;g<c.length;g++)(0,c[g])(a)},function(g){for(h.status="rejected",h.reason=g,g=0;g<c.length;g++)(0,c[g])(void 0)}),h}var CE=z.S;z.S=function(i,a){typeof a=="object"&&a!==null&&typeof a.then=="function"&&AP(i,a),CE!==null&&CE(i,a)};var Vo=ie(null);function Gp(){var i=Vo.current;return i!==null?i:yt.pooledCache}function qu(i,a){a===null?ne(Vo,Vo.current):ne(Vo,a.pool)}function RE(){var i=Gp();return i===null?null:{parent:$t._currentValue,pool:i}}var _l=Error(r(460)),kE=Error(r(474)),Wu=Error(r(542)),Kp={then:function(){}};function NE(i){return i=i.status,i==="fulfilled"||i==="rejected"}function Zu(){}function IE(i,a,c){switch(c=i[c],c===void 0?i.push(a):c!==a&&(a.then(Zu,Zu),a=c),a.status){case"fulfilled":return a.value;case"rejected":throw i=a.reason,DE(i),i;default:if(typeof a.status=="string")a.then(Zu,Zu);else{if(i=yt,i!==null&&100<i.shellSuspendCounter)throw Error(r(482));i=a,i.status="pending",i.then(function(h){if(a.status==="pending"){var g=a;g.status="fulfilled",g.value=h}},function(h){if(a.status==="pending"){var g=a;g.status="rejected",g.reason=h}})}switch(a.status){case"fulfilled":return a.value;case"rejected":throw i=a.reason,DE(i),i}throw El=a,_l}}var El=null;function OE(){if(El===null)throw Error(r(459));var i=El;return El=null,i}function DE(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,a){i=i.updateQueue,a.updateQueue===i&&(a.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,a,c){var h=i.updateQueue;if(h===null)return null;if(h=h.shared,(ct&2)!==0){var g=h.pending;return g===null?a.next=a:(a.next=g.next,g.next=a),h.pending=a,a=Uu(i),bE(i,null,c),a}return Vu(i,h,a,c),Uu(i)}function Sl(i,a,c){if(a=a.updateQueue,a!==null&&(a=a.shared,(c&4194048)!==0)){var h=a.lanes;h&=i.pendingLanes,c|=h,a.lanes=c,T0(i,c)}}function Zp(i,a){var c=i.updateQueue,h=i.alternate;if(h!==null&&(h=h.updateQueue,c===h)){var g=null,_=null;if(c=c.firstBaseUpdate,c!==null){do{var k={lane:c.lane,tag:c.tag,payload:c.payload,callback:null,next:null};_===null?g=_=k:_=_.next=k,c=c.next}while(c!==null);_===null?g=_=a:_=_.next=a}else g=_=a;c={baseState:h.baseState,firstBaseUpdate:g,lastBaseUpdate:_,shared:h.shared,callbacks:h.callbacks},i.updateQueue=c;return}i=c.lastBaseUpdate,i===null?c.firstBaseUpdate=a:i.next=a,c.lastBaseUpdate=a}var Yp=!1;function xl(){if(Yp){var i=Va;if(i!==null)throw i}}function Al(i,a,c,h){Yp=!1;var g=i.updateQueue;Di=!1;var _=g.firstBaseUpdate,k=g.lastBaseUpdate,O=g.shared.pending;if(O!==null){g.shared.pending=null;var M=O,X=M.next;M.next=null,k===null?_=X:k.next=X,k=M;var se=i.alternate;se!==null&&(se=se.updateQueue,O=se.lastBaseUpdate,O!==k&&(O===null?se.firstBaseUpdate=X:O.next=X,se.lastBaseUpdate=M))}if(_!==null){var de=g.baseState;k=0,se=X=M=null,O=_;do{var te=O.lane&-536870913,re=te!==O.lane;if(re?(et&te)===te:(h&te)===te){te!==0&&te===Ba&&(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=a;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,re&&(i.flags|=8192),re=g.callbacks,re===null?g.callbacks=[te]:re.push(te))}else re={lane:te,tag:O.tag,payload:O.payload,callback:O.callback,next:null},se===null?(X=se=re,M=de):se=se.next=re,k|=te;if(O=O.next,O===null){if(O=g.shared.pending,O===null)break;re=O,O=re.next,re.next=null,g.lastBaseUpdate=re,g.shared.pending=null}}while(!0);se===null&&(M=de),g.baseState=M,g.firstBaseUpdate=X,g.lastBaseUpdate=se,_===null&&(g.shared.lanes=0),Hi|=k,i.lanes=k,i.memoizedState=de}}function LE(i,a){if(typeof i!="function")throw Error(r(191,i));i.call(a)}function jE(i,a){var c=i.callbacks;if(c!==null)for(i.callbacks=null,i=0;i<c.length;i++)LE(c[i],a)}var Ua=ie(null),Yu=ie(0);function PE(i,a){i=hi,ne(Yu,i),ne(Ua,a),hi=i|a.baseLanes}function Xp(){ne(Yu,hi),ne(Ua,Ua.current)}function Qp(){hi=Yu.current,G(Ua),G(Yu)}var Pi=0,Ke=null,ft=null,Pt=null,Xu=!1,Fa=!1,Uo=!1,Qu=0,wl=0,Ha=null,TP=0;function Ot(){throw Error(r(321))}function Jp(i,a){if(a===null)return!1;for(var c=0;c<a.length&&c<i.length;c++)if(!Pn(i[c],a[c]))return!1;return!0}function em(i,a,c,h,g,_){return Pi=_,Ke=a,a.memoizedState=null,a.updateQueue=null,a.lanes=0,z.H=i===null||i.memoizedState===null?bS:_S,Uo=!1,_=c(h,g),Uo=!1,Fa&&(_=zE(a,c,h,g)),ME(i),_}function ME(i){z.H=id;var a=ft!==null&&ft.next!==null;if(Pi=0,Pt=ft=Ke=null,Xu=!1,wl=0,Ha=null,a)throw Error(r(300));i===null||Jt||(i=i.dependencies,i!==null&&Gu(i)&&(Jt=!0))}function zE(i,a,c,h){Ke=i;var g=0;do{if(Fa&&(Ha=null),wl=0,Fa=!1,25<=g)throw Error(r(301));if(g+=1,Pt=ft=null,i.updateQueue!=null){var _=i.updateQueue;_.lastEffect=null,_.events=null,_.stores=null,_.memoCache!=null&&(_.memoCache.index=0)}z.H=DP,_=a(c,h)}while(Fa);return _}function CP(){var i=z.H,a=i.useState()[0];return a=typeof a.then=="function"?Tl(a):a,i=i.useState()[0],(ft!==null?ft.memoizedState:null)!==i&&(Ke.flags|=1024),a}function tm(){var i=Qu!==0;return Qu=0,i}function nm(i,a,c){a.updateQueue=i.updateQueue,a.flags&=-2053,i.lanes&=~c}function rm(i){if(Xu){for(i=i.memoizedState;i!==null;){var a=i.queue;a!==null&&(a.pending=null),i=i.next}Xu=!1}Pi=0,Pt=ft=Ke=null,Fa=!1,wl=Qu=0,Ha=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 a=Pt===null?Ke.memoizedState:Pt.next;if(a!==null)Pt=a,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 Tl(i){var a=wl;return wl+=1,Ha===null&&(Ha=[]),i=IE(Ha,i,a),a=Ke,(Pt===null?a.memoizedState:Pt.next)===null&&(a=a.alternate,z.H=a===null||a.memoizedState===null?bS:_S),i}function Ju(i){if(i!==null&&typeof i=="object"){if(typeof i.then=="function")return Tl(i);if(i.$$typeof===w)return pn(i)}throw Error(r(438,String(i)))}function om(i){var a=null,c=Ke.updateQueue;if(c!==null&&(a=c.memoCache),a==null){var h=Ke.alternate;h!==null&&(h=h.updateQueue,h!==null&&(h=h.memoCache,h!=null&&(a={data:h.data.map(function(g){return g.slice()}),index:0})))}if(a==null&&(a={data:[],index:0}),c===null&&(c=im(),Ke.updateQueue=c),c.memoCache=a,c=a.data[a.index],c===void 0)for(c=a.data[a.index]=Array(i),h=0;h<i;h++)c[h]=H;return a.index++,c}function si(i,a){return typeof a=="function"?a(i):a}function ed(i){var a=Mt();return am(a,ft,i)}function am(i,a,c){var h=i.queue;if(h===null)throw Error(r(311));h.lastRenderedReducer=c;var g=i.baseQueue,_=h.pending;if(_!==null){if(g!==null){var k=g.next;g.next=_.next,_.next=k}a.baseQueue=g=_,h.pending=null}if(_=i.baseState,g===null)i.memoizedState=_;else{a=g.next;var O=k=null,M=null,X=a,se=!1;do{var de=X.lane&-536870913;if(de!==X.lane?(et&de)===de:(Pi&de)===de){var te=X.revertLane;if(te===0)M!==null&&(M=M.next={lane:0,revertLane:0,action:X.action,hasEagerState:X.hasEagerState,eagerState:X.eagerState,next:null}),de===Ba&&(se=!0);else if((Pi&te)===te){X=X.next,te===Ba&&(se=!0);continue}else de={lane:0,revertLane:X.revertLane,action:X.action,hasEagerState:X.hasEagerState,eagerState:X.eagerState,next:null},M===null?(O=M=de,k=_):M=M.next=de,Ke.lanes|=te,Hi|=te;de=X.action,Uo&&c(_,de),_=X.hasEagerState?X.eagerState:c(_,de)}else te={lane:de,revertLane:X.revertLane,action:X.action,hasEagerState:X.hasEagerState,eagerState:X.eagerState,next:null},M===null?(O=M=te,k=_):M=M.next=te,Ke.lanes|=de,Hi|=de;X=X.next}while(X!==null&&X!==a);if(M===null?k=_:M.next=O,!Pn(_,i.memoizedState)&&(Jt=!0,se&&(c=Va,c!==null)))throw c;i.memoizedState=_,i.baseState=k,i.baseQueue=M,h.lastRenderedState=_}return g===null&&(h.lanes=0),[i.memoizedState,h.dispatch]}function sm(i){var a=Mt(),c=a.queue;if(c===null)throw Error(r(311));c.lastRenderedReducer=i;var h=c.dispatch,g=c.pending,_=a.memoizedState;if(g!==null){c.pending=null;var k=g=g.next;do _=i(_,k.action),k=k.next;while(k!==g);Pn(_,a.memoizedState)||(Jt=!0),a.memoizedState=_,a.baseQueue===null&&(a.baseState=_),c.lastRenderedState=_}return[_,h]}function BE(i,a,c){var h=Ke,g=Mt(),_=it;if(_){if(c===void 0)throw Error(r(407));c=c()}else c=a();var k=!Pn((ft||g).memoizedState,c);k&&(g.memoizedState=c,Jt=!0),g=g.queue;var O=FE.bind(null,h,g,i);if(Cl(2048,8,O,[i]),g.getSnapshot!==a||k||Pt!==null&&Pt.memoizedState.tag&1){if(h.flags|=2048,$a(9,td(),UE.bind(null,h,g,c,a),null),yt===null)throw Error(r(349));_||(Pi&124)!==0||VE(h,a,c)}return c}function VE(i,a,c){i.flags|=16384,i={getSnapshot:a,value:c},a=Ke.updateQueue,a===null?(a=im(),Ke.updateQueue=a,a.stores=[i]):(c=a.stores,c===null?a.stores=[i]:c.push(i))}function UE(i,a,c,h){a.value=c,a.getSnapshot=h,HE(a)&&$E(i)}function FE(i,a,c){return c(function(){HE(a)&&$E(i)})}function HE(i){var a=i.getSnapshot;i=i.value;try{var c=a();return!Pn(i,c)}catch{return!0}}function $E(i){var a=ja(i,2);a!==null&&Fn(a,i,2)}function lm(i){var a=Nn();if(typeof i=="function"){var c=i;if(i=c(),Uo){Qe(!0);try{c()}finally{Qe(!1)}}}return a.memoizedState=a.baseState=i,a.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:si,lastRenderedState:i},a}function GE(i,a,c,h){return i.baseState=c,am(i,ft,typeof h=="function"?h:si)}function RP(i,a,c,h,g){if(rd(i))throw Error(r(485));if(i=a.action,i!==null){var _={payload:g,action:i,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(k){_.listeners.push(k)}};z.T!==null?c(!0):_.isTransition=!1,h(_),c=a.pending,c===null?(_.next=a.pending=_,KE(a,_)):(_.next=c.next,a.pending=c.next=_)}}function KE(i,a){var c=a.action,h=a.payload,g=i.state;if(a.isTransition){var _=z.T,k={};z.T=k;try{var O=c(g,h),M=z.S;M!==null&&M(k,O),qE(i,a,O)}catch(X){cm(i,a,X)}finally{z.T=_}}else try{_=c(g,h),qE(i,a,_)}catch(X){cm(i,a,X)}}function qE(i,a,c){c!==null&&typeof c=="object"&&typeof c.then=="function"?c.then(function(h){WE(i,a,h)},function(h){return cm(i,a,h)}):WE(i,a,c)}function WE(i,a,c){a.status="fulfilled",a.value=c,ZE(a),i.state=c,a=i.pending,a!==null&&(c=a.next,c===a?i.pending=null:(c=c.next,a.next=c,KE(i,c)))}function cm(i,a,c){var h=i.pending;if(i.pending=null,h!==null){h=h.next;do a.status="rejected",a.reason=c,ZE(a),a=a.next;while(a!==h)}i.action=null}function ZE(i){i=i.listeners;for(var a=0;a<i.length;a++)(0,i[a])()}function YE(i,a){return a}function XE(i,a){if(it){var c=yt.formState;if(c!==null){e:{var h=Ke;if(it){if(kt){t:{for(var g=kt,_=Ir;g.nodeType!==8;){if(!_){g=null;break t}if(g=yr(g.nextSibling),g===null){g=null;break t}}_=g.data,g=_==="F!"||_==="F"?g:null}if(g){kt=yr(g.nextSibling),h=g.data==="F!";break e}}Mo(h)}h=!1}h&&(a=c[0])}}return c=Nn(),c.memoizedState=c.baseState=a,h={pending:null,lanes:0,dispatch:null,lastRenderedReducer:YE,lastRenderedState:a},c.queue=h,c=gS.bind(null,Ke,h),h.dispatch=c,h=lm(!1),_=pm.bind(null,Ke,!1,h.queue),h=Nn(),g={state:a,dispatch:null,action:i,pending:null},h.queue=g,c=RP.bind(null,Ke,g,_,c),g.dispatch=c,h.memoizedState=i,[a,c,!1]}function QE(i){var a=Mt();return JE(a,ft,i)}function JE(i,a,c){if(a=am(i,a,YE)[0],i=ed(si)[0],typeof a=="object"&&a!==null&&typeof a.then=="function")try{var h=Tl(a)}catch(k){throw k===_l?Wu:k}else h=a;a=Mt();var g=a.queue,_=g.dispatch;return c!==a.memoizedState&&(Ke.flags|=2048,$a(9,td(),kP.bind(null,g,c),null)),[h,_,i]}function kP(i,a){i.action=a}function eS(i){var a=Mt(),c=ft;if(c!==null)return JE(a,c,i);Mt(),a=a.memoizedState,c=Mt();var h=c.queue.dispatch;return c.memoizedState=i,[a,h,!1]}function $a(i,a,c,h){return i={tag:i,create:c,deps:h,inst:a,next:null},a=Ke.updateQueue,a===null&&(a=im(),Ke.updateQueue=a),c=a.lastEffect,c===null?a.lastEffect=i.next=i:(h=c.next,c.next=i,i.next=h,a.lastEffect=i),i}function td(){return{destroy:void 0,resource:void 0}}function tS(){return Mt().memoizedState}function nd(i,a,c,h){var g=Nn();h=h===void 0?null:h,Ke.flags|=i,g.memoizedState=$a(1|a,td(),c,h)}function Cl(i,a,c,h){var g=Mt();h=h===void 0?null:h;var _=g.memoizedState.inst;ft!==null&&h!==null&&Jp(h,ft.memoizedState.deps)?g.memoizedState=$a(a,_,c,h):(Ke.flags|=i,g.memoizedState=$a(1|a,_,c,h))}function nS(i,a){nd(8390656,8,i,a)}function rS(i,a){Cl(2048,8,i,a)}function iS(i,a){return Cl(4,2,i,a)}function oS(i,a){return Cl(4,4,i,a)}function aS(i,a){if(typeof a=="function"){i=i();var c=a(i);return function(){typeof c=="function"?c():a(null)}}if(a!=null)return i=i(),a.current=i,function(){a.current=null}}function sS(i,a,c){c=c!=null?c.concat([i]):null,Cl(4,4,aS.bind(null,a,i),c)}function um(){}function lS(i,a){var c=Mt();a=a===void 0?null:a;var h=c.memoizedState;return a!==null&&Jp(a,h[1])?h[0]:(c.memoizedState=[i,a],i)}function cS(i,a){var c=Mt();a=a===void 0?null:a;var h=c.memoizedState;if(a!==null&&Jp(a,h[1]))return h[0];if(h=i(),Uo){Qe(!0);try{i()}finally{Qe(!1)}}return c.memoizedState=[h,a],h}function dm(i,a,c){return c===void 0||(Pi&1073741824)!==0?i.memoizedState=a:(i.memoizedState=c,i=fx(),Ke.lanes|=i,Hi|=i,c)}function uS(i,a,c,h){return Pn(c,a)?c:Ua.current!==null?(i=dm(i,c,h),Pn(i,a)||(Jt=!0),i):(Pi&42)===0?(Jt=!0,i.memoizedState=c):(i=fx(),Ke.lanes|=i,Hi|=i,a)}function dS(i,a,c,h,g){var _=ee.p;ee.p=_!==0&&8>_?_:8;var k=z.T,O={};z.T=O,pm(i,!1,a,c);try{var M=g(),X=z.S;if(X!==null&&X(O,M),M!==null&&typeof M=="object"&&typeof M.then=="function"){var se=wP(M,h);Rl(i,a,se,Un(i))}else Rl(i,a,h,Un(i))}catch(de){Rl(i,a,{then:function(){},status:"rejected",reason:de},Un())}finally{ee.p=_,z.T=k}}function NP(){}function fm(i,a,c,h){if(i.tag!==5)throw Error(r(476));var g=fS(i).queue;dS(i,g,a,W,c===null?NP:function(){return hS(i),c(h)})}function fS(i){var a=i.memoizedState;if(a!==null)return a;a={memoizedState:W,baseState:W,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:si,lastRenderedState:W},next:null};var c={};return a.next={memoizedState:c,baseState:c,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:si,lastRenderedState:c},next:null},i.memoizedState=a,i=i.alternate,i!==null&&(i.memoizedState=a),a}function hS(i){var a=fS(i).next.queue;Rl(i,a,{},Un())}function hm(){return pn(Kl)}function pS(){return Mt().memoizedState}function mS(){return Mt().memoizedState}function IP(i){for(var a=i.return;a!==null;){switch(a.tag){case 24:case 3:var c=Un();i=Li(c);var h=ji(a,i,c);h!==null&&(Fn(h,a,c),Sl(h,a,c)),a={cache:Hp()},i.payload=a;return}a=a.return}}function OP(i,a,c){var h=Un();c={lane:h,revertLane:0,action:c,hasEagerState:!1,eagerState:null,next:null},rd(i)?yS(a,c):(c=Dp(i,a,c,h),c!==null&&(Fn(c,i,h),vS(c,a,h)))}function gS(i,a,c){var h=Un();Rl(i,a,c,h)}function Rl(i,a,c,h){var g={lane:h,revertLane:0,action:c,hasEagerState:!1,eagerState:null,next:null};if(rd(i))yS(a,g);else{var _=i.alternate;if(i.lanes===0&&(_===null||_.lanes===0)&&(_=a.lastRenderedReducer,_!==null))try{var k=a.lastRenderedState,O=_(k,c);if(g.hasEagerState=!0,g.eagerState=O,Pn(O,k))return Vu(i,a,g,0),yt===null&&Bu(),!1}catch{}finally{}if(c=Dp(i,a,g,h),c!==null)return Fn(c,i,h),vS(c,a,h),!0}return!1}function pm(i,a,c,h){if(h={lane:2,revertLane:Km(),action:h,hasEagerState:!1,eagerState:null,next:null},rd(i)){if(a)throw Error(r(479))}else a=Dp(i,c,h,2),a!==null&&Fn(a,i,2)}function rd(i){var a=i.alternate;return i===Ke||a!==null&&a===Ke}function yS(i,a){Fa=Xu=!0;var c=i.pending;c===null?a.next=a:(a.next=c.next,c.next=a),i.pending=a}function vS(i,a,c){if((c&4194048)!==0){var h=a.lanes;h&=i.pendingLanes,c|=h,a.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},bS={readContext:pn,use:Ju,useCallback:function(i,a){return Nn().memoizedState=[i,a===void 0?null:a],i},useContext:pn,useEffect:nS,useImperativeHandle:function(i,a,c){c=c!=null?c.concat([i]):null,nd(4194308,4,aS.bind(null,a,i),c)},useLayoutEffect:function(i,a){return nd(4194308,4,i,a)},useInsertionEffect:function(i,a){nd(4,2,i,a)},useMemo:function(i,a){var c=Nn();a=a===void 0?null:a;var h=i();if(Uo){Qe(!0);try{i()}finally{Qe(!1)}}return c.memoizedState=[h,a],h},useReducer:function(i,a,c){var h=Nn();if(c!==void 0){var g=c(a);if(Uo){Qe(!0);try{c(a)}finally{Qe(!1)}}}else g=a;return h.memoizedState=h.baseState=g,i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:i,lastRenderedState:g},h.queue=i,i=i.dispatch=OP.bind(null,Ke,i),[h.memoizedState,i]},useRef:function(i){var a=Nn();return i={current:i},a.memoizedState=i},useState:function(i){i=lm(i);var a=i.queue,c=gS.bind(null,Ke,a);return a.dispatch=c,[i.memoizedState,c]},useDebugValue:um,useDeferredValue:function(i,a){var c=Nn();return dm(c,i,a)},useTransition:function(){var i=lm(!1);return i=dS.bind(null,Ke,i.queue,!0,!1),Nn().memoizedState=i,[!1,i]},useSyncExternalStore:function(i,a,c){var h=Ke,g=Nn();if(it){if(c===void 0)throw Error(r(407));c=c()}else{if(c=a(),yt===null)throw Error(r(349));(et&124)!==0||VE(h,a,c)}g.memoizedState=c;var _={value:c,getSnapshot:a};return g.queue=_,nS(FE.bind(null,h,_,i),[i]),h.flags|=2048,$a(9,td(),UE.bind(null,h,_,c,a),null),c},useId:function(){var i=Nn(),a=yt.identifierPrefix;if(it){var c=ii,h=ri;c=(h&~(1<<32-gt(h)-1)).toString(32)+c,a="«"+a+"R"+c,c=Qu++,0<c&&(a+="H"+c.toString(32)),a+="»"}else c=TP++,a="«"+a+"r"+c.toString(32)+"»";return i.memoizedState=a},useHostTransitionStatus:hm,useFormState:XE,useActionState:XE,useOptimistic:function(i){var a=Nn();a.memoizedState=a.baseState=i;var c={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return a.queue=c,a=pm.bind(null,Ke,!0,c),c.dispatch=a,[i,a]},useMemoCache:om,useCacheRefresh:function(){return Nn().memoizedState=IP.bind(null,Ke)}},_S={readContext:pn,use:Ju,useCallback:lS,useContext:pn,useEffect:rS,useImperativeHandle:sS,useInsertionEffect:iS,useLayoutEffect:oS,useMemo:cS,useReducer:ed,useRef:tS,useState:function(){return ed(si)},useDebugValue:um,useDeferredValue:function(i,a){var c=Mt();return uS(c,ft.memoizedState,i,a)},useTransition:function(){var i=ed(si)[0],a=Mt().memoizedState;return[typeof i=="boolean"?i:Tl(i),a]},useSyncExternalStore:BE,useId:pS,useHostTransitionStatus:hm,useFormState:QE,useActionState:QE,useOptimistic:function(i,a){var c=Mt();return GE(c,ft,i,a)},useMemoCache:om,useCacheRefresh:mS},DP={readContext:pn,use:Ju,useCallback:lS,useContext:pn,useEffect:rS,useImperativeHandle:sS,useInsertionEffect:iS,useLayoutEffect:oS,useMemo:cS,useReducer:sm,useRef:tS,useState:function(){return sm(si)},useDebugValue:um,useDeferredValue:function(i,a){var c=Mt();return ft===null?dm(c,i,a):uS(c,ft.memoizedState,i,a)},useTransition:function(){var i=sm(si)[0],a=Mt().memoizedState;return[typeof i=="boolean"?i:Tl(i),a]},useSyncExternalStore:BE,useId:pS,useHostTransitionStatus:hm,useFormState:eS,useActionState:eS,useOptimistic:function(i,a){var c=Mt();return ft!==null?GE(c,ft,i,a):(c.baseState=i,[i,c.queue.dispatch])},useMemoCache:om,useCacheRefresh:mS},Ga=null,kl=0;function od(i){var a=kl;return kl+=1,Ga===null&&(Ga=[]),IE(Ga,i,a)}function Nl(i,a){a=a.props.ref,i.ref=a!==void 0?a:null}function ad(i,a){throw a.$$typeof===m?Error(r(525)):(i=Object.prototype.toString.call(a),Error(r(31,i==="[object Object]"?"object with keys {"+Object.keys(a).join(", ")+"}":i)))}function ES(i){var a=i._init;return a(i._payload)}function SS(i){function a(K,F){if(i){var Y=K.deletions;Y===null?(K.deletions=[F],K.flags|=16):Y.push(F)}}function c(K,F){if(!i)return null;for(;F!==null;)a(K,F),F=F.sibling;return null}function h(K){for(var F=new Map;K!==null;)K.key!==null?F.set(K.key,K):F.set(K.index,K),K=K.sibling;return F}function g(K,F){return K=ni(K,F),K.index=0,K.sibling=null,K}function _(K,F,Y){return K.index=Y,i?(Y=K.alternate,Y!==null?(Y=Y.index,Y<F?(K.flags|=67108866,F):Y):(K.flags|=67108866,F)):(K.flags|=1048576,F)}function k(K){return i&&K.alternate===null&&(K.flags|=67108866),K}function O(K,F,Y,ce){return F===null||F.tag!==6?(F=jp(Y,K.mode,ce),F.return=K,F):(F=g(F,Y),F.return=K,F)}function M(K,F,Y,ce){var Ae=Y.type;return Ae===x?se(K,F,Y.props.children,ce,Y.key):F!==null&&(F.elementType===Ae||typeof Ae=="object"&&Ae!==null&&Ae.$$typeof===L&&ES(Ae)===F.type)?(F=g(F,Y.props),Nl(F,Y),F.return=K,F):(F=Fu(Y.type,Y.key,Y.props,null,K.mode,ce),Nl(F,Y),F.return=K,F)}function X(K,F,Y,ce){return F===null||F.tag!==4||F.stateNode.containerInfo!==Y.containerInfo||F.stateNode.implementation!==Y.implementation?(F=Pp(Y,K.mode,ce),F.return=K,F):(F=g(F,Y.children||[]),F.return=K,F)}function se(K,F,Y,ce,Ae){return F===null||F.tag!==7?(F=Do(Y,K.mode,ce,Ae),F.return=K,F):(F=g(F,Y),F.return=K,F)}function de(K,F,Y){if(typeof F=="string"&&F!==""||typeof F=="number"||typeof F=="bigint")return F=jp(""+F,K.mode,Y),F.return=K,F;if(typeof F=="object"&&F!==null){switch(F.$$typeof){case v:return Y=Fu(F.type,F.key,F.props,null,K.mode,Y),Nl(Y,F),Y.return=K,Y;case b:return F=Pp(F,K.mode,Y),F.return=K,F;case L:var ce=F._init;return F=ce(F._payload),de(K,F,Y)}if(oe(F)||Q(F))return F=Do(F,K.mode,Y,null),F.return=K,F;if(typeof F.then=="function")return de(K,od(F),Y);if(F.$$typeof===w)return de(K,Ku(K,F),Y);ad(K,F)}return null}function te(K,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(K,F,""+Y,ce);if(typeof Y=="object"&&Y!==null){switch(Y.$$typeof){case v:return Y.key===Ae?M(K,F,Y,ce):null;case b:return Y.key===Ae?X(K,F,Y,ce):null;case L:return Ae=Y._init,Y=Ae(Y._payload),te(K,F,Y,ce)}if(oe(Y)||Q(Y))return Ae!==null?null:se(K,F,Y,ce,null);if(typeof Y.then=="function")return te(K,F,od(Y),ce);if(Y.$$typeof===w)return te(K,F,Ku(K,Y),ce);ad(K,Y)}return null}function re(K,F,Y,ce,Ae){if(typeof ce=="string"&&ce!==""||typeof ce=="number"||typeof ce=="bigint")return K=K.get(Y)||null,O(F,K,""+ce,Ae);if(typeof ce=="object"&&ce!==null){switch(ce.$$typeof){case v:return K=K.get(ce.key===null?Y:ce.key)||null,M(F,K,ce,Ae);case b:return K=K.get(ce.key===null?Y:ce.key)||null,X(F,K,ce,Ae);case L:var We=ce._init;return ce=We(ce._payload),re(K,F,Y,ce,Ae)}if(oe(ce)||Q(ce))return K=K.get(Y)||null,se(F,K,ce,Ae,null);if(typeof ce.then=="function")return re(K,F,Y,od(ce),Ae);if(ce.$$typeof===w)return re(K,F,Y,Ku(F,ce),Ae);ad(F,ce)}return null}function Pe(K,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(K,ke,Y[Le],ce);if(rt===null){ke===null&&(ke=tn);break}i&&ke&&rt.alternate===null&&a(K,ke),F=_(rt,F,Le),We===null?Ae=rt:We.sibling=rt,We=rt,ke=tn}if(Le===Y.length)return c(K,ke),it&&jo(K,Le),Ae;if(ke===null){for(;Le<Y.length;Le++)ke=de(K,Y[Le],ce),ke!==null&&(F=_(ke,F,Le),We===null?Ae=ke:We.sibling=ke,We=ke);return it&&jo(K,Le),Ae}for(ke=h(ke);Le<Y.length;Le++)tn=re(ke,K,Le,Y[Le],ce),tn!==null&&(i&&tn.alternate!==null&&ke.delete(tn.key===null?Le:tn.key),F=_(tn,F,Le),We===null?Ae=tn:We.sibling=tn,We=tn);return i&&ke.forEach(function(Qi){return a(K,Qi)}),it&&jo(K,Le),Ae}function De(K,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(K,ke,rt.value,ce);if(Qi===null){ke===null&&(ke=tn);break}i&&ke&&Qi.alternate===null&&a(K,ke),F=_(Qi,F,Le),We===null?Ae=Qi:We.sibling=Qi,We=Qi,ke=tn}if(rt.done)return c(K,ke),it&&jo(K,Le),Ae;if(ke===null){for(;!rt.done;Le++,rt=Y.next())rt=de(K,rt.value,ce),rt!==null&&(F=_(rt,F,Le),We===null?Ae=rt:We.sibling=rt,We=rt);return it&&jo(K,Le),Ae}for(ke=h(ke);!rt.done;Le++,rt=Y.next())rt=re(ke,K,Le,rt.value,ce),rt!==null&&(i&&rt.alternate!==null&&ke.delete(rt.key===null?Le:rt.key),F=_(rt,F,Le),We===null?Ae=rt:We.sibling=rt,We=rt);return i&&ke.forEach(function(LM){return a(K,LM)}),it&&jo(K,Le),Ae}function pt(K,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(K,F.sibling),ce=g(F,Y.props.children),ce.return=K,K=ce;break e}}else if(F.elementType===Ae||typeof Ae=="object"&&Ae!==null&&Ae.$$typeof===L&&ES(Ae)===F.type){c(K,F.sibling),ce=g(F,Y.props),Nl(ce,Y),ce.return=K,K=ce;break e}c(K,F);break}else a(K,F);F=F.sibling}Y.type===x?(ce=Do(Y.props.children,K.mode,ce,Y.key),ce.return=K,K=ce):(ce=Fu(Y.type,Y.key,Y.props,null,K.mode,ce),Nl(ce,Y),ce.return=K,K=ce)}return k(K);case b: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(K,F.sibling),ce=g(F,Y.children||[]),ce.return=K,K=ce;break e}else{c(K,F);break}else a(K,F);F=F.sibling}ce=Pp(Y,K.mode,ce),ce.return=K,K=ce}return k(K);case L:return Ae=Y._init,Y=Ae(Y._payload),pt(K,F,Y,ce)}if(oe(Y))return Pe(K,F,Y,ce);if(Q(Y)){if(Ae=Q(Y),typeof Ae!="function")throw Error(r(150));return Y=Ae.call(Y),De(K,F,Y,ce)}if(typeof Y.then=="function")return pt(K,F,od(Y),ce);if(Y.$$typeof===w)return pt(K,F,Ku(K,Y),ce);ad(K,Y)}return typeof Y=="string"&&Y!==""||typeof Y=="number"||typeof Y=="bigint"?(Y=""+Y,F!==null&&F.tag===6?(c(K,F.sibling),ce=g(F,Y),ce.return=K,K=ce):(c(K,F),ce=jp(Y,K.mode,ce),ce.return=K,K=ce),k(K)):c(K,F)}return function(K,F,Y,ce){try{kl=0;var Ae=pt(K,F,Y,ce);return Ga=null,Ae}catch(ke){if(ke===_l||ke===Wu)throw ke;var We=Mn(29,ke,null,K.mode);return We.lanes=ce,We.return=K,We}finally{}}}var Ka=SS(!0),xS=SS(!1),ir=ie(null),Or=null;function Mi(i){var a=i.alternate;ne(Gt,Gt.current&1),ne(ir,i),Or===null&&(a===null||Ua.current!==null||a.memoizedState!==null)&&(Or=i)}function AS(i){if(i.tag===22){if(ne(Gt,Gt.current),ne(ir,i),Or===null){var a=i.alternate;a!==null&&a.memoizedState!==null&&(Or=i)}}else zi()}function zi(){ne(Gt,Gt.current),ne(ir,ir.current)}function li(i){G(ir),Or===i&&(Or=null),G(Gt)}var Gt=ie(0);function sd(i){for(var a=i;a!==null;){if(a.tag===13){var c=a.memoizedState;if(c!==null&&(c=c.dehydrated,c===null||c.data==="$?"||ig(c)))return a}else if(a.tag===19&&a.memoizedProps.revealOrder!==void 0){if((a.flags&128)!==0)return a}else if(a.child!==null){a.child.return=a,a=a.child;continue}if(a===i)break;for(;a.sibling===null;){if(a.return===null||a.return===i)return null;a=a.return}a.sibling.return=a.return,a=a.sibling}return null}function mm(i,a,c,h){a=i.memoizedState,c=c(h,a),c=c==null?a:p({},a,c),i.memoizedState=c,i.lanes===0&&(i.updateQueue.baseState=c)}var gm={enqueueSetState:function(i,a,c){i=i._reactInternals;var h=Un(),g=Li(h);g.payload=a,c!=null&&(g.callback=c),a=ji(i,g,h),a!==null&&(Fn(a,i,h),Sl(a,i,h))},enqueueReplaceState:function(i,a,c){i=i._reactInternals;var h=Un(),g=Li(h);g.tag=1,g.payload=a,c!=null&&(g.callback=c),a=ji(i,g,h),a!==null&&(Fn(a,i,h),Sl(a,i,h))},enqueueForceUpdate:function(i,a){i=i._reactInternals;var c=Un(),h=Li(c);h.tag=2,a!=null&&(h.callback=a),a=ji(i,h,c),a!==null&&(Fn(a,i,c),Sl(a,i,c))}};function wS(i,a,c,h,g,_,k){return i=i.stateNode,typeof i.shouldComponentUpdate=="function"?i.shouldComponentUpdate(h,_,k):a.prototype&&a.prototype.isPureReactComponent?!fl(c,h)||!fl(g,_):!0}function TS(i,a,c,h){i=a.state,typeof a.componentWillReceiveProps=="function"&&a.componentWillReceiveProps(c,h),typeof a.UNSAFE_componentWillReceiveProps=="function"&&a.UNSAFE_componentWillReceiveProps(c,h),a.state!==i&&gm.enqueueReplaceState(a,a.state,null)}function Fo(i,a){var c=a;if("ref"in a){c={};for(var h in a)h!=="ref"&&(c[h]=a[h])}if(i=i.defaultProps){c===a&&(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 a=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(a))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",i);return}console.error(i)};function CS(i){ld(i)}function RS(i){console.error(i)}function kS(i){ld(i)}function cd(i,a){try{var c=i.onUncaughtError;c(a.value,{componentStack:a.stack})}catch(h){setTimeout(function(){throw h})}}function NS(i,a,c){try{var h=i.onCaughtError;h(c.value,{componentStack:c.stack,errorBoundary:a.tag===1?a.stateNode:null})}catch(g){setTimeout(function(){throw g})}}function ym(i,a,c){return c=Li(c),c.tag=3,c.payload={element:null},c.callback=function(){cd(i,a)},c}function IS(i){return i=Li(i),i.tag=3,i}function OS(i,a,c,h){var g=c.type.getDerivedStateFromError;if(typeof g=="function"){var _=h.value;i.payload=function(){return g(_)},i.callback=function(){NS(a,c,h)}}var k=c.stateNode;k!==null&&typeof k.componentDidCatch=="function"&&(i.callback=function(){NS(a,c,h),typeof g!="function"&&($i===null?$i=new Set([this]):$i.add(this));var O=h.stack;this.componentDidCatch(h.value,{componentStack:O!==null?O:""})})}function LP(i,a,c,h,g){if(c.flags|=32768,h!==null&&typeof h=="object"&&typeof h.then=="function"){if(a=c.alternate,a!==null&&yl(a,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:(a=c.updateQueue,a===null?c.updateQueue=new Set([h]):a.add(h),Hm(i,h,g)),!1;case 22:return c.flags|=65536,h===Kp?c.flags|=16384:(a=c.updateQueue,a===null?(a={transitions:null,markerInstances:null,retryQueue:new Set([h])},c.updateQueue=a):(c=a.retryQueue,c===null?a.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 a=ir.current,a!==null?((a.flags&65536)===0&&(a.flags|=256),a.flags|=65536,a.lanes=g,h!==Bp&&(i=Error(r(422),{cause:h}),gl(er(i,c)))):(h!==Bp&&(a=Error(r(423),{cause:h}),gl(er(a,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 _=Error(r(520),{cause:h});if(_=er(_,c),Ml===null?Ml=[_]:Ml.push(_),Nt!==4&&(Nt=2),a===null)return!0;h=er(h,c),c=a;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(a=c.type,_=c.stateNode,(c.flags&128)===0&&(typeof a.getDerivedStateFromError=="function"||_!==null&&typeof _.componentDidCatch=="function"&&($i===null||!$i.has(_))))return c.flags|=65536,g&=-g,c.lanes|=g,g=IS(g),OS(g,i,c,h),Zp(c,g),!1}c=c.return}while(c!==null);return!1}var DS=Error(r(461)),Jt=!1;function on(i,a,c,h){a.child=i===null?xS(a,null,c,h):Ka(a,i.child,c,h)}function LS(i,a,c,h,g){c=c.render;var _=a.ref;if("ref"in h){var k={};for(var O in h)O!=="ref"&&(k[O]=h[O])}else k=h;return Bo(a),h=em(i,a,c,k,_,g),O=tm(),i!==null&&!Jt?(nm(i,a,g),ci(i,a,g)):(it&&O&&Mp(a),a.flags|=1,on(i,a,h,g),a.child)}function jS(i,a,c,h,g){if(i===null){var _=c.type;return typeof _=="function"&&!Lp(_)&&_.defaultProps===void 0&&c.compare===null?(a.tag=15,a.type=_,PS(i,a,_,h,g)):(i=Fu(c.type,null,h,a,a.mode,g),i.ref=a.ref,i.return=a,a.child=i)}if(_=i.child,!wm(i,g)){var k=_.memoizedProps;if(c=c.compare,c=c!==null?c:fl,c(k,h)&&i.ref===a.ref)return ci(i,a,g)}return a.flags|=1,i=ni(_,h),i.ref=a.ref,i.return=a,a.child=i}function PS(i,a,c,h,g){if(i!==null){var _=i.memoizedProps;if(fl(_,h)&&i.ref===a.ref)if(Jt=!1,a.pendingProps=h=_,wm(i,g))(i.flags&131072)!==0&&(Jt=!0);else return a.lanes=i.lanes,ci(i,a,g)}return vm(i,a,c,h,g)}function MS(i,a,c){var h=a.pendingProps,g=h.children,_=i!==null?i.memoizedState:null;if(h.mode==="hidden"){if((a.flags&128)!==0){if(h=_!==null?_.baseLanes|c:c,i!==null){for(g=a.child=i.child,_=0;g!==null;)_=_|g.lanes|g.childLanes,g=g.sibling;a.childLanes=_&~h}else a.childLanes=0,a.child=null;return zS(i,a,h,c)}if((c&536870912)!==0)a.memoizedState={baseLanes:0,cachePool:null},i!==null&&qu(a,_!==null?_.cachePool:null),_!==null?PE(a,_):Xp(),AS(a);else return a.lanes=a.childLanes=536870912,zS(i,a,_!==null?_.baseLanes|c:c,c)}else _!==null?(qu(a,_.cachePool),PE(a,_),zi(),a.memoizedState=null):(i!==null&&qu(a,null),Xp(),zi());return on(i,a,g,c),a.child}function zS(i,a,c,h){var g=Gp();return g=g===null?null:{parent:$t._currentValue,pool:g},a.memoizedState={baseLanes:c,cachePool:g},i!==null&&qu(a,null),Xp(),AS(a),i!==null&&yl(i,a,h,!0),null}function ud(i,a){var c=a.ref;if(c===null)i!==null&&i.ref!==null&&(a.flags|=4194816);else{if(typeof c!="function"&&typeof c!="object")throw Error(r(284));(i===null||i.ref!==c)&&(a.flags|=4194816)}}function vm(i,a,c,h,g){return Bo(a),c=em(i,a,c,h,void 0,g),h=tm(),i!==null&&!Jt?(nm(i,a,g),ci(i,a,g)):(it&&h&&Mp(a),a.flags|=1,on(i,a,c,g),a.child)}function BS(i,a,c,h,g,_){return Bo(a),a.updateQueue=null,c=zE(a,h,c,g),ME(i),h=tm(),i!==null&&!Jt?(nm(i,a,_),ci(i,a,_)):(it&&h&&Mp(a),a.flags|=1,on(i,a,c,_),a.child)}function VS(i,a,c,h,g){if(Bo(a),a.stateNode===null){var _=Pa,k=c.contextType;typeof k=="object"&&k!==null&&(_=pn(k)),_=new c(h,_),a.memoizedState=_.state!==null&&_.state!==void 0?_.state:null,_.updater=gm,a.stateNode=_,_._reactInternals=a,_=a.stateNode,_.props=h,_.state=a.memoizedState,_.refs={},qp(a),k=c.contextType,_.context=typeof k=="object"&&k!==null?pn(k):Pa,_.state=a.memoizedState,k=c.getDerivedStateFromProps,typeof k=="function"&&(mm(a,c,k,h),_.state=a.memoizedState),typeof c.getDerivedStateFromProps=="function"||typeof _.getSnapshotBeforeUpdate=="function"||typeof _.UNSAFE_componentWillMount!="function"&&typeof _.componentWillMount!="function"||(k=_.state,typeof _.componentWillMount=="function"&&_.componentWillMount(),typeof _.UNSAFE_componentWillMount=="function"&&_.UNSAFE_componentWillMount(),k!==_.state&&gm.enqueueReplaceState(_,_.state,null),Al(a,h,_,g),xl(),_.state=a.memoizedState),typeof _.componentDidMount=="function"&&(a.flags|=4194308),h=!0}else if(i===null){_=a.stateNode;var O=a.memoizedProps,M=Fo(c,O);_.props=M;var X=_.context,se=c.contextType;k=Pa,typeof se=="object"&&se!==null&&(k=pn(se));var de=c.getDerivedStateFromProps;se=typeof de=="function"||typeof _.getSnapshotBeforeUpdate=="function",O=a.pendingProps!==O,se||typeof _.UNSAFE_componentWillReceiveProps!="function"&&typeof _.componentWillReceiveProps!="function"||(O||X!==k)&&TS(a,_,h,k),Di=!1;var te=a.memoizedState;_.state=te,Al(a,h,_,g),xl(),X=a.memoizedState,O||te!==X||Di?(typeof de=="function"&&(mm(a,c,de,h),X=a.memoizedState),(M=Di||wS(a,c,M,h,te,X,k))?(se||typeof _.UNSAFE_componentWillMount!="function"&&typeof _.componentWillMount!="function"||(typeof _.componentWillMount=="function"&&_.componentWillMount(),typeof _.UNSAFE_componentWillMount=="function"&&_.UNSAFE_componentWillMount()),typeof _.componentDidMount=="function"&&(a.flags|=4194308)):(typeof _.componentDidMount=="function"&&(a.flags|=4194308),a.memoizedProps=h,a.memoizedState=X),_.props=h,_.state=X,_.context=k,h=M):(typeof _.componentDidMount=="function"&&(a.flags|=4194308),h=!1)}else{_=a.stateNode,Wp(i,a),k=a.memoizedProps,se=Fo(c,k),_.props=se,de=a.pendingProps,te=_.context,X=c.contextType,M=Pa,typeof X=="object"&&X!==null&&(M=pn(X)),O=c.getDerivedStateFromProps,(X=typeof O=="function"||typeof _.getSnapshotBeforeUpdate=="function")||typeof _.UNSAFE_componentWillReceiveProps!="function"&&typeof _.componentWillReceiveProps!="function"||(k!==de||te!==M)&&TS(a,_,h,M),Di=!1,te=a.memoizedState,_.state=te,Al(a,h,_,g),xl();var re=a.memoizedState;k!==de||te!==re||Di||i!==null&&i.dependencies!==null&&Gu(i.dependencies)?(typeof O=="function"&&(mm(a,c,O,h),re=a.memoizedState),(se=Di||wS(a,c,se,h,te,re,M)||i!==null&&i.dependencies!==null&&Gu(i.dependencies))?(X||typeof _.UNSAFE_componentWillUpdate!="function"&&typeof _.componentWillUpdate!="function"||(typeof _.componentWillUpdate=="function"&&_.componentWillUpdate(h,re,M),typeof _.UNSAFE_componentWillUpdate=="function"&&_.UNSAFE_componentWillUpdate(h,re,M)),typeof _.componentDidUpdate=="function"&&(a.flags|=4),typeof _.getSnapshotBeforeUpdate=="function"&&(a.flags|=1024)):(typeof _.componentDidUpdate!="function"||k===i.memoizedProps&&te===i.memoizedState||(a.flags|=4),typeof _.getSnapshotBeforeUpdate!="function"||k===i.memoizedProps&&te===i.memoizedState||(a.flags|=1024),a.memoizedProps=h,a.memoizedState=re),_.props=h,_.state=re,_.context=M,h=se):(typeof _.componentDidUpdate!="function"||k===i.memoizedProps&&te===i.memoizedState||(a.flags|=4),typeof _.getSnapshotBeforeUpdate!="function"||k===i.memoizedProps&&te===i.memoizedState||(a.flags|=1024),h=!1)}return _=h,ud(i,a),h=(a.flags&128)!==0,_||h?(_=a.stateNode,c=h&&typeof c.getDerivedStateFromError!="function"?null:_.render(),a.flags|=1,i!==null&&h?(a.child=Ka(a,i.child,null,g),a.child=Ka(a,null,c,g)):on(i,a,c,g),a.memoizedState=_.state,i=a.child):i=ci(i,a,g),i}function US(i,a,c,h){return ml(),a.flags|=256,on(i,a,c,h),a.child}var bm={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function _m(i){return{baseLanes:i,cachePool:RE()}}function Em(i,a,c){return i=i!==null?i.childLanes&~c:0,a&&(i|=or),i}function FS(i,a,c){var h=a.pendingProps,g=!1,_=(a.flags&128)!==0,k;if((k=_)||(k=i!==null&&i.memoizedState===null?!1:(Gt.current&2)!==0),k&&(g=!0,a.flags&=-129),k=(a.flags&32)!==0,a.flags&=-33,i===null){if(it){if(g?Mi(a):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?(a.memoizedState={dehydrated:O,treeContext:Lo!==null?{id:ri,overflow:ii}:null,retryLane:536870912,hydrationErrors:null},M=Mn(18,null,null,0),M.stateNode=O,M.return=a,a.child=M,_n=a,kt=null,M=!0):M=!1}M||Mo(a)}if(O=a.memoizedState,O!==null&&(O=O.dehydrated,O!==null))return ig(O)?a.lanes=32:a.lanes=536870912,null;li(a)}return O=h.children,h=h.fallback,g?(zi(),g=a.mode,O=dd({mode:"hidden",children:O},g),h=Do(h,g,c,null),O.return=a,h.return=a,O.sibling=h,a.child=O,g=a.child,g.memoizedState=_m(c),g.childLanes=Em(i,k,c),a.memoizedState=bm,h):(Mi(a),Sm(a,O))}if(M=i.memoizedState,M!==null&&(O=M.dehydrated,O!==null)){if(_)a.flags&256?(Mi(a),a.flags&=-257,a=xm(i,a,c)):a.memoizedState!==null?(zi(),a.child=i.child,a.flags|=128,a=null):(zi(),g=h.fallback,O=a.mode,h=dd({mode:"visible",children:h.children},O),g=Do(g,O,c,null),g.flags|=2,h.return=a,g.return=a,h.sibling=g,a.child=h,Ka(a,i.child,null,c),h=a.child,h.memoizedState=_m(c),h.childLanes=Em(i,k,c),a.memoizedState=bm,a=g);else if(Mi(a),ig(O)){if(k=O.nextSibling&&O.nextSibling.dataset,k)var X=k.dgst;k=X,h=Error(r(419)),h.stack="",h.digest=k,gl({value:h,source:null,stack:null}),a=xm(i,a,c)}else if(Jt||yl(i,a,c,!1),k=(c&i.childLanes)!==0,Jt||k){if(k=yt,k!==null&&(h=c&-c,h=(h&42)!==0?1:op(h),h=(h&(k.suspendedLanes|c))!==0?0:h,h!==0&&h!==M.retryLane))throw M.retryLane=h,ja(i,h),Fn(k,i,h),DS;O.data==="$?"||Um(),a=xm(i,a,c)}else O.data==="$?"?(a.flags|=192,a.child=i.child,a=null):(i=M.treeContext,kt=yr(O.nextSibling),_n=a,it=!0,Po=null,Ir=!1,i!==null&&(nr[rr++]=ri,nr[rr++]=ii,nr[rr++]=Lo,ri=i.id,ii=i.overflow,Lo=a),a=Sm(a,h.children),a.flags|=4096);return a}return g?(zi(),g=h.fallback,O=a.mode,M=i.child,X=M.sibling,h=ni(M,{mode:"hidden",children:h.children}),h.subtreeFlags=M.subtreeFlags&65011712,X!==null?g=ni(X,g):(g=Do(g,O,c,null),g.flags|=2),g.return=a,h.return=a,h.sibling=g,a.child=h,h=g,g=a.child,O=i.child.memoizedState,O===null?O=_m(c):(M=O.cachePool,M!==null?(X=$t._currentValue,M=M.parent!==X?{parent:X,pool:X}:M):M=RE(),O={baseLanes:O.baseLanes|c,cachePool:M}),g.memoizedState=O,g.childLanes=Em(i,k,c),a.memoizedState=bm,h):(Mi(a),c=i.child,i=c.sibling,c=ni(c,{mode:"visible",children:h.children}),c.return=a,c.sibling=null,i!==null&&(k=a.deletions,k===null?(a.deletions=[i],a.flags|=16):k.push(i)),a.child=c,a.memoizedState=null,c)}function Sm(i,a){return a=dd({mode:"visible",children:a},i.mode),a.return=i,i.child=a}function dd(i,a){return i=Mn(22,i,null,a),i.lanes=0,i.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},i}function xm(i,a,c){return Ka(a,i.child,null,c),i=Sm(a,a.pendingProps.children),i.flags|=2,a.memoizedState=null,i}function HS(i,a,c){i.lanes|=a;var h=i.alternate;h!==null&&(h.lanes|=a),Up(i.return,a,c)}function Am(i,a,c,h,g){var _=i.memoizedState;_===null?i.memoizedState={isBackwards:a,rendering:null,renderingStartTime:0,last:h,tail:c,tailMode:g}:(_.isBackwards=a,_.rendering=null,_.renderingStartTime=0,_.last=h,_.tail=c,_.tailMode=g)}function $S(i,a,c){var h=a.pendingProps,g=h.revealOrder,_=h.tail;if(on(i,a,h.children,c),h=Gt.current,(h&2)!==0)h=h&1|2,a.flags|=128;else{if(i!==null&&(i.flags&128)!==0)e:for(i=a.child;i!==null;){if(i.tag===13)i.memoizedState!==null&&HS(i,c,a);else if(i.tag===19)HS(i,c,a);else if(i.child!==null){i.child.return=i,i=i.child;continue}if(i===a)break e;for(;i.sibling===null;){if(i.return===null||i.return===a)break e;i=i.return}i.sibling.return=i.return,i=i.sibling}h&=1}switch(ne(Gt,h),g){case"forwards":for(c=a.child,g=null;c!==null;)i=c.alternate,i!==null&&sd(i)===null&&(g=c),c=c.sibling;c=g,c===null?(g=a.child,a.child=null):(g=c.sibling,c.sibling=null),Am(a,!1,g,c,_);break;case"backwards":for(c=null,g=a.child,a.child=null;g!==null;){if(i=g.alternate,i!==null&&sd(i)===null){a.child=g;break}i=g.sibling,g.sibling=c,c=g,g=i}Am(a,!0,c,null,_);break;case"together":Am(a,!1,null,null,void 0);break;default:a.memoizedState=null}return a.child}function ci(i,a,c){if(i!==null&&(a.dependencies=i.dependencies),Hi|=a.lanes,(c&a.childLanes)===0)if(i!==null){if(yl(i,a,c,!1),(c&a.childLanes)===0)return null}else return null;if(i!==null&&a.child!==i.child)throw Error(r(153));if(a.child!==null){for(i=a.child,c=ni(i,i.pendingProps),a.child=c,c.return=a;i.sibling!==null;)i=i.sibling,c=c.sibling=ni(i,i.pendingProps),c.return=a;c.sibling=null}return a.child}function wm(i,a){return(i.lanes&a)!==0?!0:(i=i.dependencies,!!(i!==null&&Gu(i)))}function jP(i,a,c){switch(a.tag){case 3:xe(a,a.stateNode.containerInfo),Oi(a,$t,i.memoizedState.cache),ml();break;case 27:case 5:Ve(a);break;case 4:xe(a,a.stateNode.containerInfo);break;case 10:Oi(a,a.type,a.memoizedProps.value);break;case 13:var h=a.memoizedState;if(h!==null)return h.dehydrated!==null?(Mi(a),a.flags|=128,null):(c&a.child.childLanes)!==0?FS(i,a,c):(Mi(a),i=ci(i,a,c),i!==null?i.sibling:null);Mi(a);break;case 19:var g=(i.flags&128)!==0;if(h=(c&a.childLanes)!==0,h||(yl(i,a,c,!1),h=(c&a.childLanes)!==0),g){if(h)return $S(i,a,c);a.flags|=128}if(g=a.memoizedState,g!==null&&(g.rendering=null,g.tail=null,g.lastEffect=null),ne(Gt,Gt.current),h)break;return null;case 22:case 23:return a.lanes=0,MS(i,a,c);case 24:Oi(a,$t,i.memoizedState.cache)}return ci(i,a,c)}function GS(i,a,c){if(i!==null)if(i.memoizedProps!==a.pendingProps)Jt=!0;else{if(!wm(i,c)&&(a.flags&128)===0)return Jt=!1,jP(i,a,c);Jt=(i.flags&131072)!==0}else Jt=!1,it&&(a.flags&1048576)!==0&&EE(a,$u,a.index);switch(a.lanes=0,a.tag){case 16:e:{i=a.pendingProps;var h=a.elementType,g=h._init;if(h=g(h._payload),a.type=h,typeof h=="function")Lp(h)?(i=Fo(h,i),a.tag=1,a=VS(null,a,h,i,c)):(a.tag=0,a=vm(null,a,h,i,c));else{if(h!=null){if(g=h.$$typeof,g===R){a.tag=11,a=LS(null,a,h,i,c);break e}else if(g===D){a.tag=14,a=jS(null,a,h,i,c);break e}}throw a=q(h)||h,Error(r(306,a,""))}}return a;case 0:return vm(i,a,a.type,a.pendingProps,c);case 1:return h=a.type,g=Fo(h,a.pendingProps),VS(i,a,h,g,c);case 3:e:{if(xe(a,a.stateNode.containerInfo),i===null)throw Error(r(387));h=a.pendingProps;var _=a.memoizedState;g=_.element,Wp(i,a),Al(a,h,null,c);var k=a.memoizedState;if(h=k.cache,Oi(a,$t,h),h!==_.cache&&Fp(a,[$t],c,!0),xl(),h=k.element,_.isDehydrated)if(_={element:h,isDehydrated:!1,cache:k.cache},a.updateQueue.baseState=_,a.memoizedState=_,a.flags&256){a=US(i,a,h,c);break e}else if(h!==g){g=er(Error(r(424)),a),gl(g),a=US(i,a,h,c);break e}else{switch(i=a.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=a,it=!0,Po=null,Ir=!0,c=xS(a,null,h,c),a.child=c;c;)c.flags=c.flags&-3|4096,c=c.sibling}else{if(ml(),h===g){a=ci(i,a,c);break e}on(i,a,h,c)}a=a.child}return a;case 26:return ud(i,a),i===null?(c=Zx(a.type,null,a.pendingProps,null))?a.memoizedState=c:it||(c=a.type,i=a.pendingProps,h=wd(ve.current).createElement(c),h[hn]=a,h[Rn]=i,sn(h,c,i),Qt(h),a.stateNode=h):a.memoizedState=Zx(a.type,i.memoizedProps,a.pendingProps,i.memoizedState),null;case 27:return Ve(a),i===null&&it&&(h=a.stateNode=Kx(a.type,a.pendingProps,ve.current),_n=a,Ir=!0,g=kt,qi(a.type)?(og=g,kt=yr(h.firstChild)):kt=g),on(i,a,a.pendingProps.children,c),ud(i,a),i===null&&(a.flags|=4194304),a.child;case 5:return i===null&&it&&((g=h=kt)&&(h=cM(h,a.type,a.pendingProps,Ir),h!==null?(a.stateNode=h,_n=a,kt=yr(h.firstChild),Ir=!1,g=!0):g=!1),g||Mo(a)),Ve(a),g=a.type,_=a.pendingProps,k=i!==null?i.memoizedProps:null,h=_.children,tg(g,_)?h=null:k!==null&&tg(g,k)&&(a.flags|=32),a.memoizedState!==null&&(g=em(i,a,CP,null,null,c),Kl._currentValue=g),ud(i,a),on(i,a,h,c),a.child;case 6:return i===null&&it&&((i=c=kt)&&(c=uM(c,a.pendingProps,Ir),c!==null?(a.stateNode=c,_n=a,kt=null,i=!0):i=!1),i||Mo(a)),null;case 13:return FS(i,a,c);case 4:return xe(a,a.stateNode.containerInfo),h=a.pendingProps,i===null?a.child=Ka(a,null,h,c):on(i,a,h,c),a.child;case 11:return LS(i,a,a.type,a.pendingProps,c);case 7:return on(i,a,a.pendingProps,c),a.child;case 8:return on(i,a,a.pendingProps.children,c),a.child;case 12:return on(i,a,a.pendingProps.children,c),a.child;case 10:return h=a.pendingProps,Oi(a,a.type,h.value),on(i,a,h.children,c),a.child;case 9:return g=a.type._context,h=a.pendingProps.children,Bo(a),g=pn(g),h=h(g),a.flags|=1,on(i,a,h,c),a.child;case 14:return jS(i,a,a.type,a.pendingProps,c);case 15:return PS(i,a,a.type,a.pendingProps,c);case 19:return $S(i,a,c);case 31:return h=a.pendingProps,c=a.mode,h={mode:h.mode,children:h.children},i===null?(c=dd(h,c),c.ref=a.ref,a.child=c,c.return=a,a=c):(c=ni(i.child,h),c.ref=a.ref,a.child=c,c.return=a,a=c),a;case 22:return MS(i,a,c);case 24:return Bo(a),h=pn($t),i===null?(g=Gp(),g===null&&(g=yt,_=Hp(),g.pooledCache=_,_.refCount++,_!==null&&(g.pooledCacheLanes|=c),g=_),a.memoizedState={parent:h,cache:g},qp(a),Oi(a,$t,g)):((i.lanes&c)!==0&&(Wp(i,a),Al(a,null,null,c),xl()),g=i.memoizedState,_=a.memoizedState,g.parent!==h?(g={parent:h,cache:h},a.memoizedState=g,a.lanes===0&&(a.memoizedState=a.updateQueue.baseState=g),Oi(a,$t,h)):(h=_.cache,Oi(a,$t,h),h!==g.cache&&Fp(a,[$t],c,!0))),on(i,a,a.pendingProps.children,c),a.child;case 29:throw a.pendingProps}throw Error(r(156,a.tag))}function ui(i){i.flags|=4}function KS(i,a){if(a.type!=="stylesheet"||(a.state.loading&4)!==0)i.flags&=-16777217;else if(i.flags|=16777216,!eA(a)){if(a=ir.current,a!==null&&((et&4194048)===et?Or!==null:(et&62914560)!==et&&(et&536870912)===0||a!==Or))throw El=Kp,kE;i.flags|=8192}}function fd(i,a){a!==null&&(i.flags|=4),i.flags&16384&&(a=i.tag!==22?A0():536870912,i.lanes|=a,Ya|=a)}function Il(i,a){if(!it)switch(i.tailMode){case"hidden":a=i.tail;for(var c=null;a!==null;)a.alternate!==null&&(c=a),a=a.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?a||i.tail===null?i.tail=null:i.tail.sibling=null:h.sibling=null}}function At(i){var a=i.alternate!==null&&i.alternate.child===i.child,c=0,h=0;if(a)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,a}function PP(i,a,c){var h=a.pendingProps;switch(zp(a),a.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return At(a),null;case 1:return At(a),null;case 3:return c=a.stateNode,h=null,i!==null&&(h=i.memoizedState.cache),a.memoizedState.cache!==h&&(a.flags|=2048),ai($t),je(),c.pendingContext&&(c.context=c.pendingContext,c.pendingContext=null),(i===null||i.child===null)&&(pl(a)?ui(a):i===null||i.memoizedState.isDehydrated&&(a.flags&256)===0||(a.flags|=1024,AE())),At(a),null;case 26:return c=a.memoizedState,i===null?(ui(a),c!==null?(At(a),KS(a,c)):(At(a),a.flags&=-16777217)):c?c!==i.memoizedState?(ui(a),At(a),KS(a,c)):(At(a),a.flags&=-16777217):(i.memoizedProps!==h&&ui(a),At(a),a.flags&=-16777217),null;case 27:Xe(a),c=ve.current;var g=a.type;if(i!==null&&a.stateNode!=null)i.memoizedProps!==h&&ui(a);else{if(!h){if(a.stateNode===null)throw Error(r(166));return At(a),null}i=ue.current,pl(a)?SE(a):(i=Kx(g,h,c),a.stateNode=i,ui(a))}return At(a),null;case 5:if(Xe(a),c=a.type,i!==null&&a.stateNode!=null)i.memoizedProps!==h&&ui(a);else{if(!h){if(a.stateNode===null)throw Error(r(166));return At(a),null}if(i=ue.current,pl(a))SE(a);else{switch(g=wd(ve.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]=a,i[Rn]=h;e:for(g=a.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===a)break e;for(;g.sibling===null;){if(g.return===null||g.return===a)break e;g=g.return}g.sibling.return=g.return,g=g.sibling}a.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(a)}}return At(a),a.flags&=-16777217,null;case 6:if(i&&a.stateNode!=null)i.memoizedProps!==h&&ui(a);else{if(typeof h!="string"&&a.stateNode===null)throw Error(r(166));if(i=ve.current,pl(a)){if(i=a.stateNode,c=a.memoizedProps,h=null,g=_n,g!==null)switch(g.tag){case 27:case 5:h=g.memoizedProps}i[hn]=a,i=!!(i.nodeValue===c||h!==null&&h.suppressHydrationWarning===!0||Bx(i.nodeValue,c)),i||Mo(a)}else i=wd(i).createTextNode(h),i[hn]=a,a.stateNode=i}return At(a),null;case 13:if(h=a.memoizedState,i===null||i.memoizedState!==null&&i.memoizedState.dehydrated!==null){if(g=pl(a),h!==null&&h.dehydrated!==null){if(i===null){if(!g)throw Error(r(318));if(g=a.memoizedState,g=g!==null?g.dehydrated:null,!g)throw Error(r(317));g[hn]=a}else ml(),(a.flags&128)===0&&(a.memoizedState=null),a.flags|=4;At(a),g=!1}else g=AE(),i!==null&&i.memoizedState!==null&&(i.memoizedState.hydrationErrors=g),g=!0;if(!g)return a.flags&256?(li(a),a):(li(a),null)}if(li(a),(a.flags&128)!==0)return a.lanes=c,a;if(c=h!==null,i=i!==null&&i.memoizedState!==null,c){h=a.child,g=null,h.alternate!==null&&h.alternate.memoizedState!==null&&h.alternate.memoizedState.cachePool!==null&&(g=h.alternate.memoizedState.cachePool.pool);var _=null;h.memoizedState!==null&&h.memoizedState.cachePool!==null&&(_=h.memoizedState.cachePool.pool),_!==g&&(h.flags|=2048)}return c!==i&&c&&(a.child.flags|=8192),fd(a,a.updateQueue),At(a),null;case 4:return je(),i===null&&Ym(a.stateNode.containerInfo),At(a),null;case 10:return ai(a.type),At(a),null;case 19:if(G(Gt),g=a.memoizedState,g===null)return At(a),null;if(h=(a.flags&128)!==0,_=g.rendering,_===null)if(h)Il(g,!1);else{if(Nt!==0||i!==null&&(i.flags&128)!==0)for(i=a.child;i!==null;){if(_=sd(i),_!==null){for(a.flags|=128,Il(g,!1),i=_.updateQueue,a.updateQueue=i,fd(a,i),a.subtreeFlags=0,i=c,c=a.child;c!==null;)_E(c,i),c=c.sibling;return ne(Gt,Gt.current&1|2),a.child}i=i.sibling}g.tail!==null&&fn()>md&&(a.flags|=128,h=!0,Il(g,!1),a.lanes=4194304)}else{if(!h)if(i=sd(_),i!==null){if(a.flags|=128,h=!0,i=i.updateQueue,a.updateQueue=i,fd(a,i),Il(g,!0),g.tail===null&&g.tailMode==="hidden"&&!_.alternate&&!it)return At(a),null}else 2*fn()-g.renderingStartTime>md&&c!==536870912&&(a.flags|=128,h=!0,Il(g,!1),a.lanes=4194304);g.isBackwards?(_.sibling=a.child,a.child=_):(i=g.last,i!==null?i.sibling=_:a.child=_,g.last=_)}return g.tail!==null?(a=g.tail,g.rendering=a,g.tail=a.sibling,g.renderingStartTime=fn(),a.sibling=null,i=Gt.current,ne(Gt,h?i&1|2:i&1),a):(At(a),null);case 22:case 23:return li(a),Qp(),h=a.memoizedState!==null,i!==null?i.memoizedState!==null!==h&&(a.flags|=8192):h&&(a.flags|=8192),h?(c&536870912)!==0&&(a.flags&128)===0&&(At(a),a.subtreeFlags&6&&(a.flags|=8192)):At(a),c=a.updateQueue,c!==null&&fd(a,c.retryQueue),c=null,i!==null&&i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(c=i.memoizedState.cachePool.pool),h=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(h=a.memoizedState.cachePool.pool),h!==c&&(a.flags|=2048),i!==null&&G(Vo),null;case 24:return c=null,i!==null&&(c=i.memoizedState.cache),a.memoizedState.cache!==c&&(a.flags|=2048),ai($t),At(a),null;case 25:return null;case 30:return null}throw Error(r(156,a.tag))}function MP(i,a){switch(zp(a),a.tag){case 1:return i=a.flags,i&65536?(a.flags=i&-65537|128,a):null;case 3:return ai($t),je(),i=a.flags,(i&65536)!==0&&(i&128)===0?(a.flags=i&-65537|128,a):null;case 26:case 27:case 5:return Xe(a),null;case 13:if(li(a),i=a.memoizedState,i!==null&&i.dehydrated!==null){if(a.alternate===null)throw Error(r(340));ml()}return i=a.flags,i&65536?(a.flags=i&-65537|128,a):null;case 19:return G(Gt),null;case 4:return je(),null;case 10:return ai(a.type),null;case 22:case 23:return li(a),Qp(),i!==null&&G(Vo),i=a.flags,i&65536?(a.flags=i&-65537|128,a):null;case 24:return ai($t),null;case 25:return null;default:return null}}function qS(i,a){switch(zp(a),a.tag){case 3:ai($t),je();break;case 26:case 27:case 5:Xe(a);break;case 4:je();break;case 13:li(a);break;case 19:G(Gt);break;case 10:ai(a.type);break;case 22:case 23:li(a),Qp(),i!==null&&G(Vo);break;case 24:ai($t)}}function Ol(i,a){try{var c=a.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 _=c.create,k=c.inst;h=_(),k.destroy=h}c=c.next}while(c!==g)}}catch(O){mt(a,a.return,O)}}function Bi(i,a,c){try{var h=a.updateQueue,g=h!==null?h.lastEffect:null;if(g!==null){var _=g.next;h=_;do{if((h.tag&i)===i){var k=h.inst,O=k.destroy;if(O!==void 0){k.destroy=void 0,g=a;var M=c,X=O;try{X()}catch(se){mt(g,M,se)}}}h=h.next}while(h!==_)}}catch(se){mt(a,a.return,se)}}function WS(i){var a=i.updateQueue;if(a!==null){var c=i.stateNode;try{jE(a,c)}catch(h){mt(i,i.return,h)}}}function ZS(i,a,c){c.props=Fo(i.type,i.memoizedProps),c.state=i.memoizedState;try{c.componentWillUnmount()}catch(h){mt(i,a,h)}}function Dl(i,a){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,a,g)}}function Dr(i,a){var c=i.ref,h=i.refCleanup;if(c!==null)if(typeof h=="function")try{h()}catch(g){mt(i,a,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,a,g)}else c.current=null}function YS(i){var a=i.type,c=i.memoizedProps,h=i.stateNode;try{e:switch(a){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 Tm(i,a,c){try{var h=i.stateNode;iM(h,i.type,c,a),h[Rn]=a}catch(g){mt(i,i.return,g)}}function XS(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||XS(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,a,c){var h=i.tag;if(h===5||h===6)i=i.stateNode,a?(c.nodeType===9?c.body:c.nodeName==="HTML"?c.ownerDocument.body:c).insertBefore(i,a):(a=c.nodeType===9?c.body:c.nodeName==="HTML"?c.ownerDocument.body:c,a.appendChild(i),c=c._reactRootContainer,c!=null||a.onclick!==null||(a.onclick=Ad));else if(h!==4&&(h===27&&qi(i.type)&&(c=i.stateNode,a=null),i=i.child,i!==null))for(Rm(i,a,c),i=i.sibling;i!==null;)Rm(i,a,c),i=i.sibling}function hd(i,a,c){var h=i.tag;if(h===5||h===6)i=i.stateNode,a?c.insertBefore(i,a):c.appendChild(i);else if(h!==4&&(h===27&&qi(i.type)&&(c=i.stateNode),i=i.child,i!==null))for(hd(i,a,c),i=i.sibling;i!==null;)hd(i,a,c),i=i.sibling}function QS(i){var a=i.stateNode,c=i.memoizedProps;try{for(var h=i.type,g=a.attributes;g.length;)a.removeAttributeNode(g[0]);sn(a,h,c),a[hn]=i,a[Rn]=c}catch(_){mt(i,i.return,_)}}var di=!1,Dt=!1,km=!1,JS=typeof WeakSet=="function"?WeakSet:Set,en=null;function zP(i,a){if(i=i.containerInfo,Jm=Id,i=uE(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,_=h.focusNode;h=h.focusOffset;try{c.nodeType,_.nodeType}catch{c=null;break e}var k=0,O=-1,M=-1,X=0,se=0,de=i,te=null;t:for(;;){for(var re;de!==c||g!==0&&de.nodeType!==3||(O=k+g),de!==_||h!==0&&de.nodeType!==3||(M=k+h),de.nodeType===3&&(k+=de.nodeValue.length),(re=de.firstChild)!==null;)te=de,de=re;for(;;){if(de===i)break t;if(te===c&&++X===g&&(O=k),te===_&&++se===h&&(M=k),(re=de.nextSibling)!==null)break;de=te,te=de.parentNode}de=re}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=a;en!==null;)if(a=en,i=a.child,(a.subtreeFlags&1024)!==0&&i!==null)i.return=a,en=i;else for(;en!==null;){switch(a=en,_=a.alternate,i=a.flags,a.tag){case 0:break;case 11:case 15:break;case 1:if((i&1024)!==0&&_!==null){i=void 0,c=a,g=_.memoizedProps,_=_.memoizedState,h=c.stateNode;try{var Pe=Fo(c.type,g,c.elementType===c.type);i=h.getSnapshotBeforeUpdate(Pe,_),h.__reactInternalSnapshotBeforeUpdate=i}catch(De){mt(c,c.return,De)}}break;case 3:if((i&1024)!==0){if(i=a.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=a.sibling,i!==null){i.return=a.return,en=i;break}en=a.return}}function ex(i,a,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,a===null)try{i.componentDidMount()}catch(k){mt(c,c.return,k)}else{var g=Fo(c.type,a.memoizedProps);a=a.memoizedState;try{i.componentDidUpdate(g,a,i.__reactInternalSnapshotBeforeUpdate)}catch(k){mt(c,c.return,k)}}h&64&&WS(c),h&512&&Dl(c,c.return);break;case 3:if(Vi(i,c),h&64&&(i=c.updateQueue,i!==null)){if(a=null,c.child!==null)switch(c.child.tag){case 27:case 5:a=c.child.stateNode;break;case 1:a=c.child.stateNode}try{jE(i,a)}catch(k){mt(c,c.return,k)}}break;case 27:a===null&&h&4&&QS(c);case 26:case 5:Vi(i,c),a===null&&h&4&&YS(c),h&512&&Dl(c,c.return);break;case 12:Vi(i,c);break;case 13:Vi(i,c),h&4&&rx(i,c),h&64&&(i=c.memoizedState,i!==null&&(i=i.dehydrated,i!==null&&(c=qP.bind(null,c),dM(i,c))));break;case 22:if(h=c.memoizedState!==null||di,!h){a=a!==null&&a.memoizedState!==null||Dt,g=di;var _=Dt;di=h,(Dt=a)&&!_?Ui(i,c,(c.subtreeFlags&8772)!==0):Vi(i,c),di=g,Dt=_}break;case 30:break;default:Vi(i,c)}}function tx(i){var a=i.alternate;a!==null&&(i.alternate=null,tx(a)),i.child=null,i.deletions=null,i.sibling=null,i.tag===5&&(a=i.stateNode,a!==null&&lp(a)),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,a,c){for(c=c.child;c!==null;)nx(i,a,c),c=c.sibling}function nx(i,a,c){if(Ue&&typeof Ue.onCommitFiberUnmount=="function")try{Ue.onCommitFiberUnmount(Ce,c)}catch{}switch(c.tag){case 26:Dt||Dr(c,a),fi(i,a,c),c.memoizedState?c.memoizedState.count--:c.stateNode&&(c=c.stateNode,c.parentNode.removeChild(c));break;case 27:Dt||Dr(c,a);var h=_t,g=In;qi(c.type)&&(_t=c.stateNode,In=!1),fi(i,a,c),Fl(c.stateNode),_t=h,In=g;break;case 5:Dt||Dr(c,a);case 6:if(h=_t,g=In,_t=null,fi(i,a,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(_){mt(c,a,_)}else try{_t.removeChild(c.stateNode)}catch(_){mt(c,a,_)}break;case 18:_t!==null&&(In?(i=_t,$x(i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i,c.stateNode),Yl(i)):$x(_t,c.stateNode));break;case 4:h=_t,g=In,_t=c.stateNode.containerInfo,In=!0,fi(i,a,c),_t=h,In=g;break;case 0:case 11:case 14:case 15:Dt||Bi(2,c,a),Dt||Bi(4,c,a),fi(i,a,c);break;case 1:Dt||(Dr(c,a),h=c.stateNode,typeof h.componentWillUnmount=="function"&&ZS(c,a,h)),fi(i,a,c);break;case 21:fi(i,a,c);break;case 22:Dt=(h=Dt)||c.memoizedState!==null,fi(i,a,c),Dt=h;break;default:fi(i,a,c)}}function rx(i,a){if(a.memoizedState===null&&(i=a.alternate,i!==null&&(i=i.memoizedState,i!==null&&(i=i.dehydrated,i!==null))))try{Yl(i)}catch(c){mt(a,a.return,c)}}function BP(i){switch(i.tag){case 13:case 19:var a=i.stateNode;return a===null&&(a=i.stateNode=new JS),a;case 22:return i=i.stateNode,a=i._retryCache,a===null&&(a=i._retryCache=new JS),a;default:throw Error(r(435,i.tag))}}function Nm(i,a){var c=BP(i);a.forEach(function(h){var g=WP.bind(null,i,h);c.has(h)||(c.add(h),h.then(g,g))})}function zn(i,a){var c=a.deletions;if(c!==null)for(var h=0;h<c.length;h++){var g=c[h],_=i,k=a,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));nx(_,k,g),_t=null,In=!1,_=g.alternate,_!==null&&(_.return=null),g.return=null}if(a.subtreeFlags&13878)for(a=a.child;a!==null;)ix(a,i),a=a.sibling}var gr=null;function ix(i,a){var c=i.alternate,h=i.flags;switch(i.tag){case 0:case 11:case 14:case 15:zn(a,i),Bn(i),h&4&&(Bi(3,i,i.return),Ol(3,i),Bi(5,i,i.return));break;case 1:zn(a,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(a,i),Bn(i),h&512&&(Dt||c===null||Dr(c,c.return)),h&4){var _=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":_=g.getElementsByTagName("title")[0],(!_||_[rl]||_[hn]||_.namespaceURI==="http://www.w3.org/2000/svg"||_.hasAttribute("itemprop"))&&(_=g.createElement(h),g.head.insertBefore(_,g.querySelector("head > title"))),sn(_,h,c),_[hn]=i,Qt(_),h=_;break e;case"link":var k=Qx("link","href",g).get(h+(c.href||""));if(k){for(var O=0;O<k.length;O++)if(_=k[O],_.getAttribute("href")===(c.href==null||c.href===""?null:c.href)&&_.getAttribute("rel")===(c.rel==null?null:c.rel)&&_.getAttribute("title")===(c.title==null?null:c.title)&&_.getAttribute("crossorigin")===(c.crossOrigin==null?null:c.crossOrigin)){k.splice(O,1);break t}}_=g.createElement(h),sn(_,h,c),g.head.appendChild(_);break;case"meta":if(k=Qx("meta","content",g).get(h+(c.content||""))){for(O=0;O<k.length;O++)if(_=k[O],_.getAttribute("content")===(c.content==null?null:""+c.content)&&_.getAttribute("name")===(c.name==null?null:c.name)&&_.getAttribute("property")===(c.property==null?null:c.property)&&_.getAttribute("http-equiv")===(c.httpEquiv==null?null:c.httpEquiv)&&_.getAttribute("charset")===(c.charSet==null?null:c.charSet)){k.splice(O,1);break t}}_=g.createElement(h),sn(_,h,c),g.head.appendChild(_);break;default:throw Error(r(468,h))}_[hn]=i,Qt(_),h=_}i.stateNode=h}else Jx(g,i.type,i.stateNode);else i.stateNode=Xx(g,h,i.memoizedProps);else _!==h?(_===null?c.stateNode!==null&&(c=c.stateNode,c.parentNode.removeChild(c)):_.count--,h===null?Jx(g,i.type,i.stateNode):Xx(g,h,i.memoizedProps)):h===null&&i.stateNode!==null&&Tm(i,i.memoizedProps,c.memoizedProps)}break;case 27:zn(a,i),Bn(i),h&512&&(Dt||c===null||Dr(c,c.return)),c!==null&&h&4&&Tm(i,i.memoizedProps,c.memoizedProps);break;case 5:if(zn(a,i),Bn(i),h&512&&(Dt||c===null||Dr(c,c.return)),i.flags&32){g=i.stateNode;try{Ra(g,"")}catch(re){mt(i,i.return,re)}}h&4&&i.stateNode!=null&&(g=i.memoizedProps,Tm(i,g,c!==null?c.memoizedProps:g)),h&1024&&(km=!0);break;case 6:if(zn(a,i),Bn(i),h&4){if(i.stateNode===null)throw Error(r(162));h=i.memoizedProps,c=i.stateNode;try{c.nodeValue=h}catch(re){mt(i,i.return,re)}}break;case 3:if(Rd=null,g=gr,gr=Td(a.containerInfo),zn(a,i),gr=g,Bn(i),h&4&&c!==null&&c.memoizedState.isDehydrated)try{Yl(a.containerInfo)}catch(re){mt(i,i.return,re)}km&&(km=!1,ox(i));break;case 4:h=gr,gr=Td(i.stateNode.containerInfo),zn(a,i),Bn(i),gr=h;break;case 12:zn(a,i),Bn(i);break;case 13:zn(a,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,X=di,se=Dt;if(di=X||g,Dt=se||M,zn(a,i),Dt=se,di=X,Bn(i),h&8192)e:for(a=i.stateNode,a._visibility=g?a._visibility&-2:a._visibility|1,g&&(c===null||M||di||Dt||Ho(i)),c=null,a=i;;){if(a.tag===5||a.tag===26){if(c===null){M=c=a;try{if(_=M.stateNode,g)k=_.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(re){mt(M,M.return,re)}}}else if(a.tag===6){if(c===null){M=a;try{M.stateNode.nodeValue=g?"":M.memoizedProps}catch(re){mt(M,M.return,re)}}}else if((a.tag!==22&&a.tag!==23||a.memoizedState===null||a===i)&&a.child!==null){a.child.return=a,a=a.child;continue}if(a===i)break e;for(;a.sibling===null;){if(a.return===null||a.return===i)break e;c===a&&(c=null),a=a.return}c===a&&(c=null),a.sibling.return=a.return,a=a.sibling}h&4&&(h=i.updateQueue,h!==null&&(c=h.retryQueue,c!==null&&(h.retryQueue=null,Nm(i,c))));break;case 19:zn(a,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(a,i),Bn(i)}}function Bn(i){var a=i.flags;if(a&2){try{for(var c,h=i.return;h!==null;){if(XS(h)){c=h;break}h=h.return}if(c==null)throw Error(r(160));switch(c.tag){case 27:var g=c.stateNode,_=Cm(i);hd(i,_,g);break;case 5:var k=c.stateNode;c.flags&32&&(Ra(k,""),c.flags&=-33);var O=Cm(i);hd(i,O,k);break;case 3:case 4:var M=c.stateNode.containerInfo,X=Cm(i);Rm(i,X,M);break;default:throw Error(r(161))}}catch(se){mt(i,i.return,se)}i.flags&=-3}a&4096&&(i.flags&=-4097)}function ox(i){if(i.subtreeFlags&1024)for(i=i.child;i!==null;){var a=i;ox(a),a.tag===5&&a.flags&1024&&a.stateNode.reset(),i=i.sibling}}function Vi(i,a){if(a.subtreeFlags&8772)for(a=a.child;a!==null;)ex(i,a.alternate,a),a=a.sibling}function Ho(i){for(i=i.child;i!==null;){var a=i;switch(a.tag){case 0:case 11:case 14:case 15:Bi(4,a,a.return),Ho(a);break;case 1:Dr(a,a.return);var c=a.stateNode;typeof c.componentWillUnmount=="function"&&ZS(a,a.return,c),Ho(a);break;case 27:Fl(a.stateNode);case 26:case 5:Dr(a,a.return),Ho(a);break;case 22:a.memoizedState===null&&Ho(a);break;case 30:Ho(a);break;default:Ho(a)}i=i.sibling}}function Ui(i,a,c){for(c=c&&(a.subtreeFlags&8772)!==0,a=a.child;a!==null;){var h=a.alternate,g=i,_=a,k=_.flags;switch(_.tag){case 0:case 11:case 15:Ui(g,_,c),Ol(4,_);break;case 1:if(Ui(g,_,c),h=_,g=h.stateNode,typeof g.componentDidMount=="function")try{g.componentDidMount()}catch(X){mt(h,h.return,X)}if(h=_,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++)LE(M[g],O)}catch(X){mt(h,h.return,X)}}c&&k&64&&WS(_),Dl(_,_.return);break;case 27:QS(_);case 26:case 5:Ui(g,_,c),c&&h===null&&k&4&&YS(_),Dl(_,_.return);break;case 12:Ui(g,_,c);break;case 13:Ui(g,_,c),c&&k&4&&rx(g,_);break;case 22:_.memoizedState===null&&Ui(g,_,c),Dl(_,_.return);break;case 30:break;default:Ui(g,_,c)}a=a.sibling}}function Im(i,a){var c=null;i!==null&&i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(c=i.memoizedState.cachePool.pool),i=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(i=a.memoizedState.cachePool.pool),i!==c&&(i!=null&&i.refCount++,c!=null&&vl(c))}function Om(i,a){i=null,a.alternate!==null&&(i=a.alternate.memoizedState.cache),a=a.memoizedState.cache,a!==i&&(a.refCount++,i!=null&&vl(i))}function Lr(i,a,c,h){if(a.subtreeFlags&10256)for(a=a.child;a!==null;)ax(i,a,c,h),a=a.sibling}function ax(i,a,c,h){var g=a.flags;switch(a.tag){case 0:case 11:case 15:Lr(i,a,c,h),g&2048&&Ol(9,a);break;case 1:Lr(i,a,c,h);break;case 3:Lr(i,a,c,h),g&2048&&(i=null,a.alternate!==null&&(i=a.alternate.memoizedState.cache),a=a.memoizedState.cache,a!==i&&(a.refCount++,i!=null&&vl(i)));break;case 12:if(g&2048){Lr(i,a,c,h),i=a.stateNode;try{var _=a.memoizedProps,k=_.id,O=_.onPostCommit;typeof O=="function"&&O(k,a.alternate===null?"mount":"update",i.passiveEffectDuration,-0)}catch(M){mt(a,a.return,M)}}else Lr(i,a,c,h);break;case 13:Lr(i,a,c,h);break;case 23:break;case 22:_=a.stateNode,k=a.alternate,a.memoizedState!==null?_._visibility&2?Lr(i,a,c,h):Ll(i,a):_._visibility&2?Lr(i,a,c,h):(_._visibility|=2,qa(i,a,c,h,(a.subtreeFlags&10256)!==0)),g&2048&&Im(k,a);break;case 24:Lr(i,a,c,h),g&2048&&Om(a.alternate,a);break;default:Lr(i,a,c,h)}}function qa(i,a,c,h,g){for(g=g&&(a.subtreeFlags&10256)!==0,a=a.child;a!==null;){var _=i,k=a,O=c,M=h,X=k.flags;switch(k.tag){case 0:case 11:case 15:qa(_,k,O,M,g),Ol(8,k);break;case 23:break;case 22:var se=k.stateNode;k.memoizedState!==null?se._visibility&2?qa(_,k,O,M,g):Ll(_,k):(se._visibility|=2,qa(_,k,O,M,g)),g&&X&2048&&Im(k.alternate,k);break;case 24:qa(_,k,O,M,g),g&&X&2048&&Om(k.alternate,k);break;default:qa(_,k,O,M,g)}a=a.sibling}}function Ll(i,a){if(a.subtreeFlags&10256)for(a=a.child;a!==null;){var c=i,h=a,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)}a=a.sibling}}var jl=8192;function Wa(i){if(i.subtreeFlags&jl)for(i=i.child;i!==null;)sx(i),i=i.sibling}function sx(i){switch(i.tag){case 26:Wa(i),i.flags&jl&&i.memoizedState!==null&&AM(gr,i.memoizedState,i.memoizedProps);break;case 5:Wa(i);break;case 3:case 4:var a=gr;gr=Td(i.stateNode.containerInfo),Wa(i),gr=a;break;case 22:i.memoizedState===null&&(a=i.alternate,a!==null&&a.memoizedState!==null?(a=jl,jl=16777216,Wa(i),jl=a):Wa(i));break;default:Wa(i)}}function lx(i){var a=i.alternate;if(a!==null&&(i=a.child,i!==null)){a.child=null;do a=i.sibling,i.sibling=null,i=a;while(i!==null)}}function Pl(i){var a=i.deletions;if((i.flags&16)!==0){if(a!==null)for(var c=0;c<a.length;c++){var h=a[c];en=h,ux(h,i)}lx(i)}if(i.subtreeFlags&10256)for(i=i.child;i!==null;)cx(i),i=i.sibling}function cx(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 a=i.stateNode;i.memoizedState!==null&&a._visibility&2&&(i.return===null||i.return.tag!==13)?(a._visibility&=-3,pd(i)):Pl(i);break;default:Pl(i)}}function pd(i){var a=i.deletions;if((i.flags&16)!==0){if(a!==null)for(var c=0;c<a.length;c++){var h=a[c];en=h,ux(h,i)}lx(i)}for(i=i.child;i!==null;){switch(a=i,a.tag){case 0:case 11:case 15:Bi(8,a,a.return),pd(a);break;case 22:c=a.stateNode,c._visibility&2&&(c._visibility&=-3,pd(a));break;default:pd(a)}i=i.sibling}}function ux(i,a){for(;en!==null;){var c=en;switch(c.tag){case 0:case 11:case 15:Bi(8,c,a);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,_=h.return;if(tx(h),h===c){en=null;break e}if(g!==null){g.return=_,en=g;break e}en=_}}}var VP={getCacheForType:function(i){var a=pn($t),c=a.data.get(i);return c===void 0&&(c=i(),a.data.set(i,c)),c}},UP=typeof WeakMap=="function"?WeakMap:Map,ct=0,yt=null,Ze=null,et=0,ut=0,Vn=null,Fi=!1,Za=!1,Dm=!1,hi=0,Nt=0,Hi=0,$o=0,Lm=0,or=0,Ya=0,Ml=null,On=null,jm=!1,Pm=0,md=1/0,gd=null,$i=null,an=0,Gi=null,Xa=null,Qa=0,Mm=0,zm=null,dx=null,zl=0,Bm=null;function Un(){if((ct&2)!==0&&et!==0)return et&-et;if(z.T!==null){var i=Ba;return i!==0?i:Km()}return C0()}function fx(){or===0&&(or=(et&536870912)===0||it?x0():536870912);var i=ir.current;return i!==null&&(i.flags|=32),or}function Fn(i,a,c){(i===yt&&(ut===2||ut===9)||i.cancelPendingCommit!==null)&&(Ja(i,0),Ki(i,et,or,!1)),nl(i,c),((ct&2)===0||i!==yt)&&(i===yt&&((ct&2)===0&&($o|=c),Nt===4&&Ki(i,et,or,!1)),jr(i))}function hx(i,a,c){if((ct&6)!==0)throw Error(r(327));var h=!c&&(a&124)===0&&(a&i.expiredLanes)===0||Ro(i,a),g=h?$P(i,a):Fm(i,a,!0),_=h;do{if(g===0){Za&&!h&&Ki(i,a,0,!1);break}else{if(c=i.current.alternate,_&&!FP(c)){g=Fm(i,a,!1),_=!1;continue}if(g===2){if(_=a,i.errorRecoveryDisabledLanes&_)var k=0;else k=i.pendingLanes&-536870913,k=k!==0?k:k&536870912?536870912:0;if(k!==0){a=k;e:{var O=i;g=Ml;var M=O.current.memoizedState.isDehydrated;if(M&&(Ja(O,k).flags|=256),k=Fm(O,k,!1),k!==2){if(Dm&&!M){O.errorRecoveryDisabledLanes|=_,$o|=_,g=4;break e}_=On,On=g,_!==null&&(On===null?On=_:On.push.apply(On,_))}g=k}if(_=!1,g!==2)continue}}if(g===1){Ja(i,0),Ki(i,a,0,!0);break}e:{switch(h=i,_=g,_){case 0:case 1:throw Error(r(345));case 4:if((a&4194048)!==a)break;case 6:Ki(h,a,or,!Fi);break e;case 2:On=null;break;case 3:case 5:break;default:throw Error(r(329))}if((a&62914560)===a&&(g=Pm+300-fn(),10<g)){if(Ki(h,a,or,!Fi),Co(h,0,!0)!==0)break e;h.timeoutHandle=Fx(px.bind(null,h,c,On,gd,jm,a,or,$o,Ya,Fi,_,2,-0,0),g);break e}px(h,c,On,gd,jm,a,or,$o,Ya,Fi,_,0,-0,0)}}break}while(!0);jr(i)}function px(i,a,c,h,g,_,k,O,M,X,se,de,te,re){if(i.timeoutHandle=-1,de=a.subtreeFlags,(de&8192||(de&16785408)===16785408)&&(Gl={stylesheets:null,count:0,unsuspend:xM},sx(a),de=wM(),de!==null)){i.cancelPendingCommit=de(Ex.bind(null,i,a,_,c,h,g,k,O,M,se,1,te,re)),Ki(i,_,k,!X);return}Ex(i,a,_,c,h,g,k,O,M)}function FP(i){for(var a=i;;){var c=a.tag;if((c===0||c===11||c===15)&&a.flags&16384&&(c=a.updateQueue,c!==null&&(c=c.stores,c!==null)))for(var h=0;h<c.length;h++){var g=c[h],_=g.getSnapshot;g=g.value;try{if(!Pn(_(),g))return!1}catch{return!1}}if(c=a.child,a.subtreeFlags&16384&&c!==null)c.return=a,a=c;else{if(a===i)break;for(;a.sibling===null;){if(a.return===null||a.return===i)return!0;a=a.return}a.sibling.return=a.return,a=a.sibling}}return!0}function Ki(i,a,c,h){a&=~Lm,a&=~$o,i.suspendedLanes|=a,i.pingedLanes&=~a,h&&(i.warmLanes|=a),h=i.expirationTimes;for(var g=a;0<g;){var _=31-gt(g),k=1<<_;h[_]=-1,g&=~k}c!==0&&w0(i,c,a)}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,oi=zo=null,rm(i),Ga=null,kl=0,i=Ze;for(;i!==null;)qS(i.alternate,i),i=i.return;Ze=null}}function Ja(i,a){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=a,ut=0,Vn=null,Fi=!1,Za=Ro(i,a),Dm=!1,Ya=or=Lm=$o=Hi=Nt=0,On=Ml=null,jm=!1,(a&8)!==0&&(a|=a&32);var h=i.entangledLanes;if(h!==0)for(i=i.entanglements,h&=a;0<h;){var g=31-gt(h),_=1<<g;a|=i[g],h&=~_}return hi=a,Bu(),c}function mx(i,a){Ke=null,z.H=id,a===_l||a===Wu?(a=OE(),ut=3):a===kE?(a=OE(),ut=4):ut=a===DS?8:a!==null&&typeof a=="object"&&typeof a.then=="function"?6:1,Vn=a,Ze===null&&(Nt=1,cd(i,er(a,i.current)))}function gx(){var i=z.H;return z.H=id,i===null?id:i}function yx(){var i=z.A;return z.A=VP,i}function Um(){Nt=4,Fi||(et&4194048)!==et&&ir.current!==null||(Za=!0),(Hi&134217727)===0&&($o&134217727)===0||yt===null||Ki(yt,et,or,!1)}function Fm(i,a,c){var h=ct;ct|=2;var g=gx(),_=yx();(yt!==i||et!==a)&&(gd=null,Ja(i,a)),a=!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&&(a=!0);var X=ut;if(ut=0,Vn=null,es(i,O,M,X),c&&Za){k=0;break e}break;default:X=ut,ut=0,Vn=null,es(i,O,M,X)}}HP(),k=Nt;break}catch(se){mx(i,se)}while(!0);return a&&i.shellSuspendCounter++,oi=zo=null,ct=h,z.H=g,z.A=_,Ze===null&&(yt=null,et=0,Bu()),k}function HP(){for(;Ze!==null;)vx(Ze)}function $P(i,a){var c=ct;ct|=2;var h=gx(),g=yx();yt!==i||et!==a?(gd=null,md=fn()+500,Ja(i,a)):Za=Ro(i,a);e:do try{if(ut!==0&&Ze!==null){a=Ze;var _=Vn;t:switch(ut){case 1:ut=0,Vn=null,es(i,a,_,1);break;case 2:case 9:if(NE(_)){ut=0,Vn=null,bx(a);break}a=function(){ut!==2&&ut!==9||yt!==i||(ut=7),jr(i)},_.then(a,a);break e;case 3:ut=7;break e;case 4:ut=5;break e;case 7:NE(_)?(ut=0,Vn=null,bx(a)):(ut=0,Vn=null,es(i,a,_,7));break;case 5:var k=null;switch(Ze.tag){case 26:k=Ze.memoizedState;case 5:case 27:var O=Ze;if(!k||eA(k)){ut=0,Vn=null;var M=O.sibling;if(M!==null)Ze=M;else{var X=O.return;X!==null?(Ze=X,vd(X)):Ze=null}break t}}ut=0,Vn=null,es(i,a,_,5);break;case 6:ut=0,Vn=null,es(i,a,_,6);break;case 8:Vm(),Nt=6;break e;default:throw Error(r(462))}}GP();break}catch(se){mx(i,se)}while(!0);return oi=zo=null,z.H=h,z.A=g,ct=c,Ze!==null?0:(yt=null,et=0,Bu(),Nt)}function GP(){for(;Ze!==null&&!Ci();)vx(Ze)}function vx(i){var a=GS(i.alternate,i,hi);i.memoizedProps=i.pendingProps,a===null?vd(i):Ze=a}function bx(i){var a=i,c=a.alternate;switch(a.tag){case 15:case 0:a=BS(c,a,a.pendingProps,a.type,void 0,et);break;case 11:a=BS(c,a,a.pendingProps,a.type.render,a.ref,et);break;case 5:rm(a);default:qS(c,a),a=Ze=_E(a,hi),a=GS(c,a,hi)}i.memoizedProps=i.pendingProps,a===null?vd(i):Ze=a}function es(i,a,c,h){oi=zo=null,rm(a),Ga=null,kl=0;var g=a.return;try{if(LP(i,g,a,c,et)){Nt=1,cd(i,er(c,i.current)),Ze=null;return}}catch(_){if(g!==null)throw Ze=g,_;Nt=1,cd(i,er(c,i.current)),Ze=null;return}a.flags&32768?(it||h===1?i=!0:Za||(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))),_x(a,i)):vd(a)}function vd(i){var a=i;do{if((a.flags&32768)!==0){_x(a,Fi);return}i=a.return;var c=PP(a.alternate,a,hi);if(c!==null){Ze=c;return}if(a=a.sibling,a!==null){Ze=a;return}Ze=a=i}while(a!==null);Nt===0&&(Nt=5)}function _x(i,a){do{var c=MP(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),!a&&(i=i.sibling,i!==null)){Ze=i;return}Ze=i=c}while(i!==null);Nt=6,Ze=null}function Ex(i,a,c,h,g,_,k,O,M){i.cancelPendingCommit=null;do bd();while(an!==0);if((ct&6)!==0)throw Error(r(327));if(a!==null){if(a===i.current)throw Error(r(177));if(_=a.lanes|a.childLanes,_|=Op,xj(i,c,_,k,O,M),i===yt&&(Ze=yt=null,et=0),Xa=a,Gi=i,Qa=c,Mm=_,zm=g,dx=h,(a.subtreeFlags&10256)!==0||(a.flags&10256)!==0?(i.callbackNode=null,i.callbackPriority=0,ZP(J,function(){return Tx(),null})):(i.callbackNode=null,i.callbackPriority=0),h=(a.flags&13878)!==0,(a.subtreeFlags&13878)!==0||h){h=z.T,z.T=null,g=ee.p,ee.p=2,k=ct,ct|=4;try{zP(i,a,c)}finally{ct=k,ee.p=g,z.T=h}}an=1,Sx(),xx(),Ax()}}function Sx(){if(an===1){an=0;var i=Gi,a=Xa,c=(a.flags&13878)!==0;if((a.subtreeFlags&13878)!==0||c){c=z.T,z.T=null;var h=ee.p;ee.p=2;var g=ct;ct|=4;try{ix(a,i);var _=eg,k=uE(i.containerInfo),O=_.focusedElem,M=_.selectionRange;if(k!==O&&O&&O.ownerDocument&&cE(O.ownerDocument.documentElement,O)){if(M!==null&&Cp(O)){var X=M.start,se=M.end;if(se===void 0&&(se=X),"selectionStart"in O)O.selectionStart=X,O.selectionEnd=Math.min(se,O.value.length);else{var de=O.ownerDocument||document,te=de&&de.defaultView||window;if(te.getSelection){var re=te.getSelection(),Pe=O.textContent.length,De=Math.min(M.start,Pe),pt=M.end===void 0?De:Math.min(M.end,Pe);!re.extend&&De>pt&&(k=pt,pt=De,De=k);var K=lE(O,De),F=lE(O,pt);if(K&&F&&(re.rangeCount!==1||re.anchorNode!==K.node||re.anchorOffset!==K.offset||re.focusNode!==F.node||re.focusOffset!==F.offset)){var Y=de.createRange();Y.setStart(K.node,K.offset),re.removeAllRanges(),De>pt?(re.addRange(Y),re.extend(F.node,F.offset)):(Y.setEnd(F.node,F.offset),re.addRange(Y))}}}}for(de=[],re=O;re=re.parentNode;)re.nodeType===1&&de.push({element:re,left:re.scrollLeft,top:re.scrollTop});for(typeof O.focus=="function"&&O.focus(),O=0;O<de.length;O++){var ce=de[O];ce.element.scrollLeft=ce.left,ce.element.scrollTop=ce.top}}Id=!!Jm,eg=Jm=null}finally{ct=g,ee.p=h,z.T=c}}i.current=a,an=2}}function xx(){if(an===2){an=0;var i=Gi,a=Xa,c=(a.flags&8772)!==0;if((a.subtreeFlags&8772)!==0||c){c=z.T,z.T=null;var h=ee.p;ee.p=2;var g=ct;ct|=4;try{ex(i,a.alternate,a)}finally{ct=g,ee.p=h,z.T=c}}an=3}}function Ax(){if(an===4||an===3){an=0,To();var i=Gi,a=Xa,c=Qa,h=dx;(a.subtreeFlags&10256)!==0||(a.flags&10256)!==0?an=5:(an=0,Xa=Gi=null,wx(i,i.pendingLanes));var g=i.pendingLanes;if(g===0&&($i=null),ap(c),a=a.stateNode,Ue&&typeof Ue.onCommitFiberRoot=="function")try{Ue.onCommitFiberRoot(Ce,a,void 0,(a.current.flags&128)===128)}catch{}if(h!==null){a=z.T,g=ee.p,ee.p=2,z.T=null;try{for(var _=i.onRecoverableError,k=0;k<h.length;k++){var O=h[k];_(O.value,{componentStack:O.stack})}}finally{z.T=a,ee.p=g}}(Qa&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 wx(i,a){(i.pooledCacheLanes&=a)===0&&(a=i.pooledCache,a!=null&&(i.pooledCache=null,vl(a)))}function bd(i){return Sx(),xx(),Ax(),Tx()}function Tx(){if(an!==5)return!1;var i=Gi,a=Mm;Mm=0;var c=ap(Qa),h=z.T,g=ee.p;try{ee.p=32>c?32:c,z.T=null,c=zm,zm=null;var _=Gi,k=Qa;if(an=0,Xa=Gi=null,Qa=0,(ct&6)!==0)throw Error(r(331));var O=ct;if(ct|=4,cx(_.current),ax(_,_.current,k,c),ct=O,Bl(0,!1),Ue&&typeof Ue.onPostCommitFiberRoot=="function")try{Ue.onPostCommitFiberRoot(Ce,_)}catch{}return!0}finally{ee.p=g,z.T=h,wx(i,a)}}function Cx(i,a,c){a=er(c,a),a=ym(i.stateNode,a,2),i=ji(i,a,2),i!==null&&(nl(i,2),jr(i))}function mt(i,a,c){if(i.tag===3)Cx(i,i,c);else for(;a!==null;){if(a.tag===3){Cx(a,i,c);break}else if(a.tag===1){var h=a.stateNode;if(typeof a.type.getDerivedStateFromError=="function"||typeof h.componentDidCatch=="function"&&($i===null||!$i.has(h))){i=er(c,i),c=IS(2),h=ji(a,c,2),h!==null&&(OS(c,h,a,i),nl(h,2),jr(h));break}}a=a.return}}function Hm(i,a,c){var h=i.pingCache;if(h===null){h=i.pingCache=new UP;var g=new Set;h.set(a,g)}else g=h.get(a),g===void 0&&(g=new Set,h.set(a,g));g.has(c)||(Dm=!0,g.add(c),i=KP.bind(null,i,a,c),a.then(i,i))}function KP(i,a,c){var h=i.pingCache;h!==null&&h.delete(a),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&&Ja(i,0):Lm|=c,Ya===et&&(Ya=0)),jr(i)}function Rx(i,a){a===0&&(a=A0()),i=ja(i,a),i!==null&&(nl(i,a),jr(i))}function qP(i){var a=i.memoizedState,c=0;a!==null&&(c=a.retryLane),Rx(i,c)}function WP(i,a){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(a),Rx(i,c)}function ZP(i,a){return Xt(i,a)}var _d=null,ts=null,$m=!1,Ed=!1,Gm=!1,Go=0;function jr(i){i!==ts&&i.next===null&&(ts===null?_d=ts=i:ts=ts.next=i),Ed=!0,$m||($m=!0,XP())}function Bl(i,a){if(!Gm&&Ed){Gm=!0;do for(var c=!1,h=_d;h!==null;){if(i!==0){var g=h.pendingLanes;if(g===0)var _=0;else{var k=h.suspendedLanes,O=h.pingedLanes;_=(1<<31-gt(42|i)+1)-1,_&=g&~(k&~O),_=_&201326741?_&201326741|1:_?_|2:0}_!==0&&(c=!0,Ox(h,_))}else _=et,_=Co(h,h===yt?_:0,h.cancelPendingCommit!==null||h.timeoutHandle!==-1),(_&3)===0||Ro(h,_)||(c=!0,Ox(h,_));h=h.next}while(c);Gm=!1}}function YP(){kx()}function kx(){Ed=$m=!1;var i=0;Go!==0&&(oM()&&(i=Go),Go=0);for(var a=fn(),c=null,h=_d;h!==null;){var g=h.next,_=Nx(h,a);_===0?(h.next=null,c===null?_d=g:c.next=g,g===null&&(ts=c)):(c=h,(i!==0||(_&3)!==0)&&(Ed=!0)),h=g}Bl(i)}function Nx(i,a){for(var c=i.suspendedLanes,h=i.pingedLanes,g=i.expirationTimes,_=i.pendingLanes&-62914561;0<_;){var k=31-gt(_),O=1<<k,M=g[k];M===-1?((O&c)===0||(O&h)!==0)&&(g[k]=Cu(O,a)):M<=a&&(i.expiredLanes|=O),_&=~O}if(a=yt,c=et,c=Co(i,i===a?c:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),h=i.callbackNode,c===0||i===a&&(ut===2||ut===9)||i.cancelPendingCommit!==null)return h!==null&&h!==null&&Cn(h),i.callbackNode=null,i.callbackPriority=0;if((c&3)===0||Ro(i,c)){if(a=c&-c,a===i.callbackPriority)return a;switch(h!==null&&Cn(h),ap(c)){case 2:case 8:c=U;break;case 32:c=J;break;case 268435456:c=Se;break;default:c=J}return h=Ix.bind(null,i),c=Xt(c,h),i.callbackPriority=a,i.callbackNode=c,a}return h!==null&&h!==null&&Cn(h),i.callbackPriority=2,i.callbackNode=null,2}function Ix(i,a){if(an!==0&&an!==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=Co(i,i===yt?h:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),h===0?null:(hx(i,h,a),Nx(i,fn()),i.callbackNode!=null&&i.callbackNode===c?Ix.bind(null,i):null)}function Ox(i,a){if(bd())return null;hx(i,a,!0)}function XP(){sM(function(){(ct&6)!==0?Xt(tl,YP):kx()})}function Km(){return Go===0&&(Go=x0()),Go}function Dx(i){return i==null||typeof i=="symbol"||typeof i=="boolean"?null:typeof i=="function"?i:Ou(""+i)}function Lx(i,a){var c=a.ownerDocument.createElement("input");return c.name=a.name,c.value=a.value,i.id&&c.setAttribute("form",i.id),a.parentNode.insertBefore(c,a),i=new FormData(i),c.parentNode.removeChild(c),i}function QP(i,a,c,h,g){if(a==="submit"&&c&&c.stateNode===g){var _=Dx((g[Rn]||null).action),k=h.submitter;k&&(a=(a=k[Rn]||null)?Dx(a.formAction):k.getAttribute("formAction"),a!==null&&(_=a,k=null));var O=new Pu("action","action",null,h,g);i.push({event:O,listeners:[{instance:null,listener:function(){if(h.defaultPrevented){if(Go!==0){var M=k?Lx(g,k):new FormData(g);fm(c,{pending:!0,data:M,method:g.method,action:_},null,M)}}else typeof _=="function"&&(O.preventDefault(),M=k?Lx(g,k):new FormData(g),fm(c,{pending:!0,data:M,method:g.method,action:_},_,M))},currentTarget:g}]})}}for(var qm=0;qm<Ip.length;qm++){var Wm=Ip[qm],JP=Wm.toLowerCase(),eM=Wm[0].toUpperCase()+Wm.slice(1);mr(JP,"on"+eM)}mr(hE,"onAnimationEnd"),mr(pE,"onAnimationIteration"),mr(mE,"onAnimationStart"),mr("dblclick","onDoubleClick"),mr("focusin","onFocus"),mr("focusout","onBlur"),mr(yP,"onTransitionRun"),mr(vP,"onTransitionStart"),mr(bP,"onTransitionCancel"),mr(gE,"onTransitionEnd"),wa("onMouseEnter",["mouseout","mouseover"]),wa("onMouseLeave",["mouseout","mouseover"]),wa("onPointerEnter",["pointerout","pointerover"]),wa("onPointerLeave",["pointerout","pointerover"]),ko("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),ko("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),ko("onBeforeInput",["compositionend","keypress","textInput","paste"]),ko("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),ko("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),ko("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(" "),tM=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Vl));function jx(i,a){a=(a&4)!==0;for(var c=0;c<i.length;c++){var h=i[c],g=h.event;h=h.listeners;e:{var _=void 0;if(a)for(var k=h.length-1;0<=k;k--){var O=h[k],M=O.instance,X=O.currentTarget;if(O=O.listener,M!==_&&g.isPropagationStopped())break e;_=O,g.currentTarget=X;try{_(g)}catch(se){ld(se)}g.currentTarget=null,_=M}else for(k=0;k<h.length;k++){if(O=h[k],M=O.instance,X=O.currentTarget,O=O.listener,M!==_&&g.isPropagationStopped())break e;_=O,g.currentTarget=X;try{_(g)}catch(se){ld(se)}g.currentTarget=null,_=M}}}}function Ye(i,a){var c=a[sp];c===void 0&&(c=a[sp]=new Set);var h=i+"__bubble";c.has(h)||(Px(a,i,2,!1),c.add(h))}function Zm(i,a,c){var h=0;a&&(h|=4),Px(c,i,h,a)}var Sd="_reactListening"+Math.random().toString(36).slice(2);function Ym(i){if(!i[Sd]){i[Sd]=!0,k0.forEach(function(c){c!=="selectionchange"&&(tM.has(c)||Zm(c,!1,i),Zm(c,!0,i))});var a=i.nodeType===9?i:i.ownerDocument;a===null||a[Sd]||(a[Sd]=!0,Zm("selectionchange",!1,a))}}function Px(i,a,c,h){switch(aA(a)){case 2:var g=RM;break;case 8:g=kM;break;default:g=ug}c=g.bind(null,a,c,i),g=void 0,!vp||a!=="touchstart"&&a!=="touchmove"&&a!=="wheel"||(g=!0),h?g!==void 0?i.addEventListener(a,c,{capture:!0,passive:g}):i.addEventListener(a,c,!0):g!==void 0?i.addEventListener(a,c,{passive:g}):i.addEventListener(a,c,!1)}function Xm(i,a,c,h,g){var _=h;if((a&1)===0&&(a&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=Sa(O),k===null)return;if(M=k.tag,M===5||M===6||M===26||M===27){h=_=k;continue e}O=O.parentNode}}h=h.return}H0(function(){var X=_,se=gp(c),de=[];e:{var te=yE.get(i);if(te!==void 0){var re=Pu,Pe=i;switch(i){case"keypress":if(Lu(c)===0)break e;case"keydown":case"keyup":re=Zj;break;case"focusin":Pe="focus",re=Sp;break;case"focusout":Pe="blur",re=Sp;break;case"beforeblur":case"afterblur":re=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":re=K0;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":re=Mj;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":re=Qj;break;case hE:case pE:case mE:re=Vj;break;case gE:re=eP;break;case"scroll":case"scrollend":re=jj;break;case"wheel":re=nP;break;case"copy":case"cut":case"paste":re=Fj;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":re=W0;break;case"toggle":case"beforetoggle":re=iP}var De=(a&4)!==0,pt=!De&&(i==="scroll"||i==="scrollend"),K=De?te!==null?te+"Capture":null:te;De=[];for(var F=X,Y;F!==null;){var ce=F;if(Y=ce.stateNode,ce=ce.tag,ce!==5&&ce!==26&&ce!==27||Y===null||K===null||(ce=ol(F,K),ce!=null&&De.push(Ul(F,ce,Y))),pt)break;F=F.return}0<De.length&&(te=new re(te,Pe,null,c,se),de.push({event:te,listeners:De}))}}if((a&7)===0){e:{if(te=i==="mouseover"||i==="pointerover",re=i==="mouseout"||i==="pointerout",te&&c!==mp&&(Pe=c.relatedTarget||c.fromElement)&&(Sa(Pe)||Pe[Ea]))break e;if((re||te)&&(te=se.window===se?se:(te=se.ownerDocument)?te.defaultView||te.parentWindow:window,re?(Pe=c.relatedTarget||c.toElement,re=X,Pe=Pe?Sa(Pe):null,Pe!==null&&(pt=s(Pe),De=Pe.tag,Pe!==pt||De!==5&&De!==27&&De!==6)&&(Pe=null)):(re=null,Pe=X),re!==Pe)){if(De=K0,ce="onMouseLeave",K="onMouseEnter",F="mouse",(i==="pointerout"||i==="pointerover")&&(De=W0,ce="onPointerLeave",K="onPointerEnter",F="pointer"),pt=re==null?te:il(re),Y=Pe==null?te:il(Pe),te=new De(ce,F+"leave",re,c,se),te.target=pt,te.relatedTarget=Y,ce=null,Sa(se)===X&&(De=new De(K,F+"enter",Pe,c,se),De.target=Y,De.relatedTarget=pt,ce=De),pt=ce,re&&Pe)t:{for(De=re,K=Pe,F=0,Y=De;Y;Y=ns(Y))F++;for(Y=0,ce=K;ce;ce=ns(ce))Y++;for(;0<F-Y;)De=ns(De),F--;for(;0<Y-F;)K=ns(K),Y--;for(;F--;){if(De===K||K!==null&&De===K.alternate)break t;De=ns(De),K=ns(K)}De=null}else De=null;re!==null&&Mx(de,te,re,De,!1),Pe!==null&&pt!==null&&Mx(de,pt,Pe,De,!0)}}e:{if(te=X?il(X):window,re=te.nodeName&&te.nodeName.toLowerCase(),re==="select"||re==="input"&&te.type==="file")var Ae=nE;else if(eE(te))if(rE)Ae=pP;else{Ae=fP;var We=dP}else re=te.nodeName,!re||re.toLowerCase()!=="input"||te.type!=="checkbox"&&te.type!=="radio"?X&&pp(X.elementType)&&(Ae=nE):Ae=hP;if(Ae&&(Ae=Ae(i,X))){tE(de,Ae,c,se);break e}We&&We(i,te,X),i==="focusout"&&X&&te.type==="number"&&X.memoizedProps.value!=null&&hp(te,"number",te.value)}switch(We=X?il(X):window,i){case"focusin":(eE(We)||We.contentEditable==="true")&&(Oa=We,Rp=X,hl=null);break;case"focusout":hl=Rp=Oa=null;break;case"mousedown":kp=!0;break;case"contextmenu":case"mouseup":case"dragend":kp=!1,dE(de,c,se);break;case"selectionchange":if(gP)break;case"keydown":case"keyup":dE(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 Ia?Q0(i,c)&&(Le="onCompositionEnd"):i==="keydown"&&c.keyCode===229&&(Le="onCompositionStart");Le&&(Z0&&c.locale!=="ko"&&(Ia||Le!=="onCompositionStart"?Le==="onCompositionEnd"&&Ia&&(ke=$0()):(Ii=se,bp="value"in Ii?Ii.value:Ii.textContent,Ia=!0)),We=xd(X,Le),0<We.length&&(Le=new q0(Le,i,null,c,se),de.push({event:Le,listeners:We}),ke?Le.data=ke:(ke=J0(c),ke!==null&&(Le.data=ke)))),(ke=aP?sP(i,c):lP(i,c))&&(Le=xd(X,"onBeforeInput"),0<Le.length&&(We=new q0("onBeforeInput","beforeinput",null,c,se),de.push({event:We,listeners:Le}),We.data=ke)),QP(de,i,X,c,se)}jx(de,a)})}function Ul(i,a,c){return{instance:i,listener:a,currentTarget:c}}function xd(i,a){for(var c=a+"Capture",h=[];i!==null;){var g=i,_=g.stateNode;if(g=g.tag,g!==5&&g!==26&&g!==27||_===null||(g=ol(i,c),g!=null&&h.unshift(Ul(i,g,_)),g=ol(i,a),g!=null&&h.push(Ul(i,g,_))),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 Mx(i,a,c,h,g){for(var _=a._reactName,k=[];c!==null&&c!==h;){var O=c,M=O.alternate,X=O.stateNode;if(O=O.tag,M!==null&&M===h)break;O!==5&&O!==26&&O!==27||X===null||(M=X,g?(X=ol(c,_),X!=null&&k.unshift(Ul(c,X,M))):g||(X=ol(c,_),X!=null&&k.push(Ul(c,X,M)))),c=c.return}k.length!==0&&i.push({event:a,listeners:k})}var nM=/\r\n?/g,rM=/\u0000|\uFFFD/g;function zx(i){return(typeof i=="string"?i:""+i).replace(nM,`
50
+ `).replace(rM,"")}function Bx(i,a){return a=zx(a),zx(i)===a}function Ad(){}function ht(i,a,c,h,g,_){switch(c){case"children":typeof h=="string"?a==="body"||a==="textarea"&&h===""||Ra(i,h):(typeof h=="number"||typeof h=="bigint")&&a!=="body"&&Ra(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":U0(i,h,_);break;case"data":if(a!=="object"){ku(i,"data",h);break}case"src":case"href":if(h===""&&(a!=="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 _=="function"&&(c==="formAction"?(a!=="input"&&ht(i,a,"name",g.name,g,null),ht(i,a,"formEncType",g.formEncType,g,null),ht(i,a,"formMethod",g.formMethod,g,null),ht(i,a,"formTarget",g.formTarget,g,null)):(ht(i,a,"encType",g.encType,g,null),ht(i,a,"method",g.method,g,null),ht(i,a,"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=Dj.get(c)||c,Ru(i,c,h))}}function Qm(i,a,c,h,g,_){switch(c){case"style":U0(i,h,_);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"?Ra(i,h):(typeof h=="number"||typeof h=="bigint")&&Ra(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(!N0.hasOwnProperty(c))e:{if(c[0]==="o"&&c[1]==="n"&&(g=c.endsWith("Capture"),a=c.slice(2,g?c.length-7:void 0),_=i[Rn]||null,_=_!=null?_[c]:null,typeof _=="function"&&i.removeEventListener(a,_,g),typeof h=="function")){typeof _!="function"&&_!==null&&(c in i?i[c]=null:i.hasAttribute(c)&&i.removeAttribute(c)),i.addEventListener(a,h,g);break e}c in i?i[c]=h:h===!0?i.setAttribute(c,""):Ru(i,c,h)}}}function sn(i,a,c){switch(a){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,_;for(_ in c)if(c.hasOwnProperty(_)){var k=c[_];if(k!=null)switch(_){case"src":h=!0;break;case"srcSet":g=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,a));default:ht(i,a,_,k,c,null)}}g&&ht(i,a,"srcSet",c.srcSet,c,null),h&&ht(i,a,"src",c.src,c,null);return;case"input":Ye("invalid",i);var O=_=k=g=null,M=null,X=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":X=se;break;case"value":_=se;break;case"defaultValue":O=se;break;case"children":case"dangerouslySetInnerHTML":if(se!=null)throw Error(r(137,a));break;default:ht(i,a,h,se,c,null)}}M0(i,_,O,M,X,k,g,!1),Nu(i);return;case"select":Ye("invalid",i),h=k=_=null;for(g in c)if(c.hasOwnProperty(g)&&(O=c[g],O!=null))switch(g){case"value":_=O;break;case"defaultValue":k=O;break;case"multiple":h=O;default:ht(i,a,g,O,c,null)}a=_,c=k,i.multiple=!!h,a!=null?Ca(i,!!h,a,!1):c!=null&&Ca(i,!!h,c,!0);return;case"textarea":Ye("invalid",i),_=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":_=O;break;case"dangerouslySetInnerHTML":if(O!=null)throw Error(r(91));break;default:ht(i,a,k,O,c,null)}B0(i,h,g,_),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,a,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(X in c)if(c.hasOwnProperty(X)&&(h=c[X],h!=null))switch(X){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,a));default:ht(i,a,X,h,c,null)}return;default:if(pp(a)){for(se in c)c.hasOwnProperty(se)&&(h=c[se],h!==void 0&&Qm(i,a,se,h,c,void 0));return}}for(O in c)c.hasOwnProperty(O)&&(h=c[O],h!=null&&ht(i,a,O,h,c,null))}function iM(i,a,c,h){switch(a){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var g=null,_=null,k=null,O=null,M=null,X=null,se=null;for(re in c){var de=c[re];if(c.hasOwnProperty(re)&&de!=null)switch(re){case"checked":break;case"value":break;case"defaultValue":M=de;default:h.hasOwnProperty(re)||ht(i,a,re,null,h,de)}}for(var te in h){var re=h[te];if(de=c[te],h.hasOwnProperty(te)&&(re!=null||de!=null))switch(te){case"type":_=re;break;case"name":g=re;break;case"checked":X=re;break;case"defaultChecked":se=re;break;case"value":k=re;break;case"defaultValue":O=re;break;case"children":case"dangerouslySetInnerHTML":if(re!=null)throw Error(r(137,a));break;default:re!==de&&ht(i,a,te,re,h,de)}}fp(i,k,O,M,X,se,_,g);return;case"select":re=k=O=te=null;for(_ in c)if(M=c[_],c.hasOwnProperty(_)&&M!=null)switch(_){case"value":break;case"multiple":re=M;default:h.hasOwnProperty(_)||ht(i,a,_,null,h,M)}for(g in h)if(_=h[g],M=c[g],h.hasOwnProperty(g)&&(_!=null||M!=null))switch(g){case"value":te=_;break;case"defaultValue":O=_;break;case"multiple":k=_;default:_!==M&&ht(i,a,g,_,h,M)}a=O,c=k,h=re,te!=null?Ca(i,!!c,te,!1):!!h!=!!c&&(a!=null?Ca(i,!!c,a,!0):Ca(i,!!c,c?[]:"",!1));return;case"textarea":re=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,a,O,null,h,g)}for(k in h)if(g=h[k],_=c[k],h.hasOwnProperty(k)&&(g!=null||_!=null))switch(k){case"value":te=g;break;case"defaultValue":re=g;break;case"children":break;case"dangerouslySetInnerHTML":if(g!=null)throw Error(r(91));break;default:g!==_&&ht(i,a,k,g,h,_)}z0(i,te,re);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,a,Pe,null,h,te)}for(M in h)if(te=h[M],re=c[M],h.hasOwnProperty(M)&&te!==re&&(te!=null||re!=null))switch(M){case"selected":i.selected=te&&typeof te!="function"&&typeof te!="symbol";break;default:ht(i,a,M,te,h,re)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var De in c)te=c[De],c.hasOwnProperty(De)&&te!=null&&!h.hasOwnProperty(De)&&ht(i,a,De,null,h,te);for(X in h)if(te=h[X],re=c[X],h.hasOwnProperty(X)&&te!==re&&(te!=null||re!=null))switch(X){case"children":case"dangerouslySetInnerHTML":if(te!=null)throw Error(r(137,a));break;default:ht(i,a,X,te,h,re)}return;default:if(pp(a)){for(var pt in c)te=c[pt],c.hasOwnProperty(pt)&&te!==void 0&&!h.hasOwnProperty(pt)&&Qm(i,a,pt,void 0,h,te);for(se in h)te=h[se],re=c[se],!h.hasOwnProperty(se)||te===re||te===void 0&&re===void 0||Qm(i,a,se,te,h,re);return}}for(var K in c)te=c[K],c.hasOwnProperty(K)&&te!=null&&!h.hasOwnProperty(K)&&ht(i,a,K,null,h,te);for(de in h)te=h[de],re=c[de],!h.hasOwnProperty(de)||te===re||te==null&&re==null||ht(i,a,de,te,h,re)}var Jm=null,eg=null;function wd(i){return i.nodeType===9?i:i.ownerDocument}function Vx(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 Ux(i,a){if(i===0)switch(a){case"svg":return 1;case"math":return 2;default:return 0}return i===1&&a==="foreignObject"?0:i}function tg(i,a){return i==="textarea"||i==="noscript"||typeof a.children=="string"||typeof a.children=="number"||typeof a.children=="bigint"||typeof a.dangerouslySetInnerHTML=="object"&&a.dangerouslySetInnerHTML!==null&&a.dangerouslySetInnerHTML.__html!=null}var ng=null;function oM(){var i=window.event;return i&&i.type==="popstate"?i===ng?!1:(ng=i,!0):(ng=null,!1)}var Fx=typeof setTimeout=="function"?setTimeout:void 0,aM=typeof clearTimeout=="function"?clearTimeout:void 0,Hx=typeof Promise=="function"?Promise:void 0,sM=typeof queueMicrotask=="function"?queueMicrotask:typeof Hx<"u"?function(i){return Hx.resolve(null).then(i).catch(lM)}:Fx;function lM(i){setTimeout(function(){throw i})}function qi(i){return i==="head"}function $x(i,a){var c=a,h=0,g=0;do{var _=c.nextSibling;if(i.removeChild(c),_&&_.nodeType===8)if(c=_.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(_),Yl(a);return}g--}else c==="$"||c==="$?"||c==="$!"?g++:h=c.charCodeAt(0)-48;else h=0;c=_}while(c);Yl(a)}function rg(i){var a=i.firstChild;for(a&&a.nodeType===10&&(a=a.nextSibling);a;){var c=a;switch(a=a.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 cM(i,a,c,h){for(;i.nodeType===1;){var g=c;if(i.nodeName.toLowerCase()!==a.toLowerCase()){if(!h&&(i.nodeName!=="INPUT"||i.type!=="hidden"))break}else if(h){if(!i[rl])switch(a){case"meta":if(!i.hasAttribute("itemprop"))break;return i;case"link":if(_=i.getAttribute("rel"),_==="stylesheet"&&i.hasAttribute("data-precedence"))break;if(_!==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(_=i.getAttribute("src"),(_!==(g.src==null?null:g.src)||i.getAttribute("type")!==(g.type==null?null:g.type)||i.getAttribute("crossorigin")!==(g.crossOrigin==null?null:g.crossOrigin))&&_&&i.hasAttribute("async")&&!i.hasAttribute("itemprop"))break;return i;default:return i}}else if(a==="input"&&i.type==="hidden"){var _=g.name==null?null:""+g.name;if(g.type==="hidden"&&i.getAttribute("name")===_)return i}else return i;if(i=yr(i.nextSibling),i===null)break}return null}function uM(i,a,c){if(a==="")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 dM(i,a){var c=i.ownerDocument;if(i.data!=="$?"||c.readyState==="complete")a();else{var h=function(){a(),c.removeEventListener("DOMContentLoaded",h)};c.addEventListener("DOMContentLoaded",h),i._reactRetry=h}}function yr(i){for(;i!=null;i=i.nextSibling){var a=i.nodeType;if(a===1||a===3)break;if(a===8){if(a=i.data,a==="$"||a==="$!"||a==="$?"||a==="F!"||a==="F")break;if(a==="/$")return null}}return i}var og=null;function Gx(i){i=i.previousSibling;for(var a=0;i;){if(i.nodeType===8){var c=i.data;if(c==="$"||c==="$!"||c==="$?"){if(a===0)return i;a--}else c==="/$"&&a++}i=i.previousSibling}return null}function Kx(i,a,c){switch(a=wd(c),i){case"html":if(i=a.documentElement,!i)throw Error(r(452));return i;case"head":if(i=a.head,!i)throw Error(r(453));return i;case"body":if(i=a.body,!i)throw Error(r(454));return i;default:throw Error(r(451))}}function Fl(i){for(var a=i.attributes;a.length;)i.removeAttributeNode(a[0]);lp(i)}var ar=new Map,qx=new Set;function Td(i){return typeof i.getRootNode=="function"?i.getRootNode():i.nodeType===9?i:i.ownerDocument}var pi=ee.d;ee.d={f:fM,r:hM,D:pM,C:mM,L:gM,m:yM,X:bM,S:vM,M:_M};function fM(){var i=pi.f(),a=yd();return i||a}function hM(i){var a=xa(i);a!==null&&a.tag===5&&a.type==="form"?hS(a):pi.r(i)}var rs=typeof document>"u"?null:document;function Wx(i,a,c){var h=rs;if(h&&typeof a=="string"&&a){var g=Jn(a);g='link[rel="'+i+'"][href="'+g+'"]',typeof c=="string"&&(g+='[crossorigin="'+c+'"]'),qx.has(g)||(qx.add(g),i={rel:i,crossOrigin:c,href:a},h.querySelector(g)===null&&(a=h.createElement("link"),sn(a,"link",i),Qt(a),h.head.appendChild(a)))}}function pM(i){pi.D(i),Wx("dns-prefetch",i,null)}function mM(i,a){pi.C(i,a),Wx("preconnect",i,a)}function gM(i,a,c){pi.L(i,a,c);var h=rs;if(h&&i&&a){var g='link[rel="preload"][as="'+Jn(a)+'"]';a==="image"&&c&&c.imageSrcSet?(g+='[imagesrcset="'+Jn(c.imageSrcSet)+'"]',typeof c.imageSizes=="string"&&(g+='[imagesizes="'+Jn(c.imageSizes)+'"]')):g+='[href="'+Jn(i)+'"]';var _=g;switch(a){case"style":_=is(i);break;case"script":_=os(i)}ar.has(_)||(i=p({rel:"preload",href:a==="image"&&c&&c.imageSrcSet?void 0:i,as:a},c),ar.set(_,i),h.querySelector(g)!==null||a==="style"&&h.querySelector(Hl(_))||a==="script"&&h.querySelector($l(_))||(a=h.createElement("link"),sn(a,"link",i),Qt(a),h.head.appendChild(a)))}}function yM(i,a){pi.m(i,a);var c=rs;if(c&&i){var h=a&&typeof a.as=="string"?a.as:"script",g='link[rel="modulepreload"][as="'+Jn(h)+'"][href="'+Jn(i)+'"]',_=g;switch(h){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":_=os(i)}if(!ar.has(_)&&(i=p({rel:"modulepreload",href:i},a),ar.set(_,i),c.querySelector(g)===null)){switch(h){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(c.querySelector($l(_)))return}h=c.createElement("link"),sn(h,"link",i),Qt(h),c.head.appendChild(h)}}}function vM(i,a,c){pi.S(i,a,c);var h=rs;if(h&&i){var g=Aa(h).hoistableStyles,_=is(i);a=a||"default";var k=g.get(_);if(!k){var O={loading:0,preload:null};if(k=h.querySelector(Hl(_)))O.loading=5;else{i=p({rel:"stylesheet",href:i,"data-precedence":a},c),(c=ar.get(_))&&ag(i,c);var M=k=h.createElement("link");Qt(M),sn(M,"link",i),M._p=new Promise(function(X,se){M.onload=X,M.onerror=se}),M.addEventListener("load",function(){O.loading|=1}),M.addEventListener("error",function(){O.loading|=2}),O.loading|=4,Cd(k,a,h)}k={type:"stylesheet",instance:k,count:1,state:O},g.set(_,k)}}}function bM(i,a){pi.X(i,a);var c=rs;if(c&&i){var h=Aa(c).hoistableScripts,g=os(i),_=h.get(g);_||(_=c.querySelector($l(g)),_||(i=p({src:i,async:!0},a),(a=ar.get(g))&&sg(i,a),_=c.createElement("script"),Qt(_),sn(_,"link",i),c.head.appendChild(_)),_={type:"script",instance:_,count:1,state:null},h.set(g,_))}}function _M(i,a){pi.M(i,a);var c=rs;if(c&&i){var h=Aa(c).hoistableScripts,g=os(i),_=h.get(g);_||(_=c.querySelector($l(g)),_||(i=p({src:i,async:!0,type:"module"},a),(a=ar.get(g))&&sg(i,a),_=c.createElement("script"),Qt(_),sn(_,"link",i),c.head.appendChild(_)),_={type:"script",instance:_,count:1,state:null},h.set(g,_))}}function Zx(i,a,c,h){var g=(g=ve.current)?Td(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"?(a=is(c.href),c=Aa(g).hoistableStyles,h=c.get(a),h||(h={type:"style",instance:null,count:0,state:null},c.set(a,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 _=Aa(g).hoistableStyles,k=_.get(i);if(k||(g=g.ownerDocument||g,k={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},_.set(i,k),(_=g.querySelector(Hl(i)))&&!_._p&&(k.instance=_,k.state.loading=5),ar.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},ar.set(i,c),_||EM(g,i,c,k.state))),a&&h===null)throw Error(r(528,""));return k}if(a&&h!==null)throw Error(r(529,""));return null;case"script":return a=c.async,c=c.src,typeof c=="string"&&a&&typeof a!="function"&&typeof a!="symbol"?(a=os(c),c=Aa(g).hoistableScripts,h=c.get(a),h||(h={type:"script",instance:null,count:0,state:null},c.set(a,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 Yx(i){return p({},i,{"data-precedence":i.precedence,precedence:null})}function EM(i,a,c,h){i.querySelector('link[rel="preload"][as="style"]['+a+"]")?h.loading=1:(a=i.createElement("link"),h.preload=a,a.addEventListener("load",function(){return h.loading|=1}),a.addEventListener("error",function(){return h.loading|=2}),sn(a,"link",c),Qt(a),i.head.appendChild(a))}function os(i){return'[src="'+Jn(i)+'"]'}function $l(i){return"script[async]"+i}function Xx(i,a,c){if(a.count++,a.instance===null)switch(a.type){case"style":var h=i.querySelector('style[data-href~="'+Jn(c.href)+'"]');if(h)return a.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),a.instance=h;case"stylesheet":g=is(c.href);var _=i.querySelector(Hl(g));if(_)return a.state.loading|=4,a.instance=_,Qt(_),_;h=Yx(c),(g=ar.get(g))&&ag(h,g),_=(i.ownerDocument||i).createElement("link"),Qt(_);var k=_;return k._p=new Promise(function(O,M){k.onload=O,k.onerror=M}),sn(_,"link",h),a.state.loading|=4,Cd(_,c.precedence,i),a.instance=_;case"script":return _=os(c.src),(g=i.querySelector($l(_)))?(a.instance=g,Qt(g),g):(h=c,(g=ar.get(_))&&(h=p({},c),sg(h,g)),i=i.ownerDocument||i,g=i.createElement("script"),Qt(g),sn(g,"link",h),i.head.appendChild(g),a.instance=g);case"void":return null;default:throw Error(r(443,a.type))}else a.type==="stylesheet"&&(a.state.loading&4)===0&&(h=a.instance,a.state.loading|=4,Cd(h,c.precedence,i));return a.instance}function Cd(i,a,c){for(var h=c.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),g=h.length?h[h.length-1]:null,_=g,k=0;k<h.length;k++){var O=h[k];if(O.dataset.precedence===a)_=O;else if(_!==g)break}_?_.parentNode.insertBefore(i,_.nextSibling):(a=c.nodeType===9?c.head:c,a.insertBefore(i,a.firstChild))}function ag(i,a){i.crossOrigin==null&&(i.crossOrigin=a.crossOrigin),i.referrerPolicy==null&&(i.referrerPolicy=a.referrerPolicy),i.title==null&&(i.title=a.title)}function sg(i,a){i.crossOrigin==null&&(i.crossOrigin=a.crossOrigin),i.referrerPolicy==null&&(i.referrerPolicy=a.referrerPolicy),i.integrity==null&&(i.integrity=a.integrity)}var Rd=null;function Qx(i,a,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 _=c[g];if(!(_[rl]||_[hn]||i==="link"&&_.getAttribute("rel")==="stylesheet")&&_.namespaceURI!=="http://www.w3.org/2000/svg"){var k=_.getAttribute(a)||"";k=i+k;var O=h.get(k);O?O.push(_):h.set(k,[_])}}return h}function Jx(i,a,c){i=i.ownerDocument||i,i.head.insertBefore(c,a==="title"?i.querySelector("head > title"):null)}function SM(i,a,c){if(c===1||a.itemProp!=null)return!1;switch(i){case"meta":case"title":return!0;case"style":if(typeof a.precedence!="string"||typeof a.href!="string"||a.href==="")break;return!0;case"link":if(typeof a.rel!="string"||typeof a.href!="string"||a.href===""||a.onLoad||a.onError)break;switch(a.rel){case"stylesheet":return i=a.disabled,typeof a.precedence=="string"&&i==null;default:return!0}case"script":if(a.async&&typeof a.async!="function"&&typeof a.async!="symbol"&&!a.onLoad&&!a.onError&&a.src&&typeof a.src=="string")return!0}return!1}function eA(i){return!(i.type==="stylesheet"&&(i.state.loading&3)===0)}var Gl=null;function xM(){}function AM(i,a,c){if(Gl===null)throw Error(r(475));var h=Gl;if(a.type==="stylesheet"&&(typeof c.media!="string"||matchMedia(c.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var g=is(c.href),_=i.querySelector(Hl(g));if(_){i=_._p,i!==null&&typeof i=="object"&&typeof i.then=="function"&&(h.count++,h=kd.bind(h),i.then(h,h)),a.state.loading|=4,a.instance=_,Qt(_);return}_=i.ownerDocument||i,c=Yx(c),(g=ar.get(g))&&ag(c,g),_=_.createElement("link"),Qt(_);var k=_;k._p=new Promise(function(O,M){k.onload=O,k.onerror=M}),sn(_,"link",c),a.instance=_}h.stylesheets===null&&(h.stylesheets=new Map),h.stylesheets.set(a,i),(i=a.state.preload)&&(a.state.loading&3)===0&&(h.count++,a=kd.bind(h),i.addEventListener("load",a),i.addEventListener("error",a))}}function wM(){if(Gl===null)throw Error(r(475));var i=Gl;return i.stylesheets&&i.count===0&&lg(i,i.stylesheets),0<i.count?function(a){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=a,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,a){i.stylesheets=null,i.unsuspend!==null&&(i.count++,Nd=new Map,a.forEach(TM,i),Nd=null,kd.call(i))}function TM(i,a){if(!(a.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]"),_=0;_<g.length;_++){var k=g[_];(k.nodeName==="LINK"||k.getAttribute("media")!=="not all")&&(c.set(k.dataset.precedence,k),h=k)}h&&c.set(null,h)}g=a.instance,k=g.getAttribute("data-precedence"),_=c.get(k)||h,_===h&&c.set(null,g),c.set(k,g),this.count++,h=kd.bind(this),g.addEventListener("load",h),g.addEventListener("error",h),_?_.parentNode.insertBefore(g,_.nextSibling):(i=i.nodeType===9?i.head:i,i.insertBefore(g,i.firstChild)),a.state.loading|=4}}var Kl={$$typeof:w,Provider:null,Consumer:null,_currentValue:W,_currentValue2:W,_threadCount:0};function CM(i,a,c,h,g,_,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=_,this.onRecoverableError=k,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=O,this.incompleteTransitions=new Map}function tA(i,a,c,h,g,_,k,O,M,X,se,de){return i=new CM(i,a,c,k,O,M,X,de),a=1,_===!0&&(a|=24),_=Mn(3,null,null,a),i.current=_,_.stateNode=i,a=Hp(),a.refCount++,i.pooledCache=a,a.refCount++,_.memoizedState={element:h,isDehydrated:c,cache:a},qp(_),i}function nA(i){return i?(i=Pa,i):Pa}function rA(i,a,c,h,g,_){g=nA(g),h.context===null?h.context=g:h.pendingContext=g,h=Li(a),h.payload={element:c},_=_===void 0?null:_,_!==null&&(h.callback=_),c=ji(i,h,a),c!==null&&(Fn(c,i,a),Sl(c,i,a))}function iA(i,a){if(i=i.memoizedState,i!==null&&i.dehydrated!==null){var c=i.retryLane;i.retryLane=c!==0&&c<a?c:a}}function cg(i,a){iA(i,a),(i=i.alternate)&&iA(i,a)}function oA(i){if(i.tag===13){var a=ja(i,67108864);a!==null&&Fn(a,i,67108864),cg(i,67108864)}}var Id=!0;function RM(i,a,c,h){var g=z.T;z.T=null;var _=ee.p;try{ee.p=2,ug(i,a,c,h)}finally{ee.p=_,z.T=g}}function kM(i,a,c,h){var g=z.T;z.T=null;var _=ee.p;try{ee.p=8,ug(i,a,c,h)}finally{ee.p=_,z.T=g}}function ug(i,a,c,h){if(Id){var g=dg(h);if(g===null)Xm(i,a,h,Od,c),sA(i,h);else if(IM(g,i,a,c,h))h.stopPropagation();else if(sA(i,h),a&4&&-1<NM.indexOf(i)){for(;g!==null;){var _=xa(g);if(_!==null)switch(_.tag){case 3:if(_=_.stateNode,_.current.memoizedState.isDehydrated){var k=Jr(_.pendingLanes);if(k!==0){var O=_;for(O.pendingLanes|=2,O.entangledLanes|=2;k;){var M=1<<31-gt(k);O.entanglements[1]|=M,k&=~M}jr(_),(ct&6)===0&&(md=fn()+500,Bl(0))}}break;case 13:O=ja(_,2),O!==null&&Fn(O,_,2),yd(),cg(_,2)}if(_=dg(h),_===null&&Xm(i,a,h,Od,c),_===g)break;g=_}g!==null&&h.stopPropagation()}else Xm(i,a,h,null,c)}}function dg(i){return i=gp(i),fg(i)}var Od=null;function fg(i){if(Od=null,i=Sa(i),i!==null){var a=s(i);if(a===null)i=null;else{var c=a.tag;if(c===13){if(i=l(a),i!==null)return i;i=null}else if(c===3){if(a.stateNode.current.memoizedState.isDehydrated)return a.tag===3?a.stateNode.containerInfo:null;i=null}else a!==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(S0()){case tl:return 2;case U:return 8;case J:case ae: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=[],NM="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 sA(i,a){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(a.pointerId);break;case"gotpointercapture":case"lostpointercapture":Wl.delete(a.pointerId)}}function Zl(i,a,c,h,g,_){return i===null||i.nativeEvent!==_?(i={blockedOn:a,domEventName:c,eventSystemFlags:h,nativeEvent:_,targetContainers:[g]},a!==null&&(a=xa(a),a!==null&&oA(a)),i):(i.eventSystemFlags|=h,a=i.targetContainers,g!==null&&a.indexOf(g)===-1&&a.push(g),i)}function IM(i,a,c,h,g){switch(a){case"focusin":return Wi=Zl(Wi,i,a,c,h,g),!0;case"dragenter":return Zi=Zl(Zi,i,a,c,h,g),!0;case"mouseover":return Yi=Zl(Yi,i,a,c,h,g),!0;case"pointerover":var _=g.pointerId;return ql.set(_,Zl(ql.get(_)||null,i,a,c,h,g)),!0;case"gotpointercapture":return _=g.pointerId,Wl.set(_,Zl(Wl.get(_)||null,i,a,c,h,g)),!0}return!1}function lA(i){var a=Sa(i.target);if(a!==null){var c=s(a);if(c!==null){if(a=c.tag,a===13){if(a=l(c),a!==null){i.blockedOn=a,Aj(i.priority,function(){if(c.tag===13){var h=Un();h=op(h);var g=ja(c,h);g!==null&&Fn(g,c,h),cg(c,h)}});return}}else if(a===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 a=i.targetContainers;0<a.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 a=xa(c),a!==null&&oA(a),i.blockedOn=c,!1;a.shift()}return!0}function cA(i,a,c){Dd(i)&&c.delete(a)}function OM(){hg=!1,Wi!==null&&Dd(Wi)&&(Wi=null),Zi!==null&&Dd(Zi)&&(Zi=null),Yi!==null&&Dd(Yi)&&(Yi=null),ql.forEach(cA),Wl.forEach(cA)}function Ld(i,a){i.blockedOn===a&&(i.blockedOn=null,hg||(hg=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,OM)))}var jd=null;function uA(i){jd!==i&&(jd=i,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){jd===i&&(jd=null);for(var a=0;a<i.length;a+=3){var c=i[a],h=i[a+1],g=i[a+2];if(typeof h!="function"){if(fg(h||c)===null)continue;break}var _=xa(c);_!==null&&(i.splice(a,3),a-=3,fm(_,{pending:!0,data:g,method:c.method,action:h},h,g))}}))}function Yl(i){function a(M){return Ld(M,i)}Wi!==null&&Ld(Wi,i),Zi!==null&&Ld(Zi,i),Yi!==null&&Ld(Yi,i),ql.forEach(a),Wl.forEach(a);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);)lA(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],_=c[h+1],k=g[Rn]||null;if(typeof _=="function")k||uA(c);else if(k){var O=null;if(_&&_.hasAttribute("formAction")){if(g=_,k=_[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),uA(c)}}}function pg(i){this._internalRoot=i}Pd.prototype.render=pg.prototype.render=function(i){var a=this._internalRoot;if(a===null)throw Error(r(409));var c=a.current,h=Un();rA(c,h,i,a,null,null)},Pd.prototype.unmount=pg.prototype.unmount=function(){var i=this._internalRoot;if(i!==null){this._internalRoot=null;var a=i.containerInfo;rA(i.current,2,null,i,null,null),yd(),a[Ea]=null}};function Pd(i){this._internalRoot=i}Pd.prototype.unstable_scheduleHydration=function(i){if(i){var a=C0();i={blockedOn:null,target:i,priority:a};for(var c=0;c<Xi.length&&a!==0&&a<Xi[c].priority;c++);Xi.splice(c,0,i),c===0&&lA(i)}};var dA=t.version;if(dA!=="19.1.1")throw Error(r(527,dA,"19.1.1"));ee.findDOMNode=function(i){var a=i._reactInternals;if(a===void 0)throw typeof i.render=="function"?Error(r(188)):(i=Object.keys(i).join(","),Error(r(268,i)));return i=d(a),i=i!==null?f(i):null,i=i===null?null:i.stateNode,i};var DM={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(DM),Ue=Md}catch{}}return Ql.createRoot=function(i,a){if(!o(i))throw Error(r(299));var c=!1,h="",g=CS,_=RS,k=kS,O=null;return a!=null&&(a.unstable_strictMode===!0&&(c=!0),a.identifierPrefix!==void 0&&(h=a.identifierPrefix),a.onUncaughtError!==void 0&&(g=a.onUncaughtError),a.onCaughtError!==void 0&&(_=a.onCaughtError),a.onRecoverableError!==void 0&&(k=a.onRecoverableError),a.unstable_transitionCallbacks!==void 0&&(O=a.unstable_transitionCallbacks)),a=tA(i,1,!1,null,null,c,h,g,_,k,O,null),i[Ea]=a.current,Ym(i),new pg(a)},Ql.hydrateRoot=function(i,a,c){if(!o(i))throw Error(r(299));var h=!1,g="",_=CS,k=RS,O=kS,M=null,X=null;return c!=null&&(c.unstable_strictMode===!0&&(h=!0),c.identifierPrefix!==void 0&&(g=c.identifierPrefix),c.onUncaughtError!==void 0&&(_=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&&(X=c.formState)),a=tA(i,1,!0,a,c??null,h,g,_,k,O,M,X),a.context=nA(null),c=a.current,h=Un(),h=op(h),g=Li(h),g.callback=null,ji(c,g,h),c=h,a.current.lanes=c,nl(a,c),jr(a),i[Ea]=a.current,Ym(i),new Pd(a)},Ql.version="19.1.1",Ql}var EA;function HM(){if(EA)return yg.exports;EA=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=FM(),yg.exports}var $M=HM();const GM={locales:["en","en-GB","fr","es","de","ja","ko","zh","it","pt","hi","ar","ru"],defaultLocale:"en"},KM={cookieName:"INTLAYER_LOCALE",prefixDefault:!1},qM={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"},ot={internationalization:GM,middleware:KM,editor:qM};var B=(e=>(e.AFRIKAANS="af",e.AFRIKAANS_SOUTH_AFRICA="af-ZA",e.ARABIC="ar",e.ARABIC_UNITED_ARAB_EMIRATES="ar-AE",e.ARABIC_BAHRAIN="ar-BH",e.ARABIC_ALGERIA="ar-DZ",e.ARABIC_EGYPT="ar-EG",e.ARABIC_IRAQ="ar-IQ",e.ARABIC_JORDAN="ar-JO",e.ARABIC_KUWAIT="ar-KW",e.ARABIC_LEBANON="ar-LB",e.ARABIC_LIBYA="ar-LY",e.ARABIC_MOROCCO="ar-MA",e.ARABIC_OMAN="ar-OM",e.ARABIC_QATAR="ar-QA",e.ARABIC_SAUDI_ARABIA="ar-SA",e.ARABIC_SYRIA="ar-SY",e.ARABIC_TUNISIA="ar-TN",e.ARABIC_YEMEN="ar-YE",e.AZERI_LATIN="az",e.AZERI_LATIN_AZERBAIJAN="az-AZ",e.BELARUSIAN="be",e.BELARUSIAN_BELARUS="be-BY",e.BULGARIAN="bg",e.BULGARIAN_BULGARIA="bg-BG",e.BOSNIAN="bs",e.BOSNIAN_BOSNIA_AND_HERZEGOVINA="bs-BA",e.CATALAN="ca",e.CATALAN_SPAIN="ca-ES",e.CZECH="cs",e.CZECH_CZECH_REPUBLIC="cs-CZ",e.WELSH="cy",e.WELSH_UNITED_KINGDOM="cy-GB",e.DANISH="da",e.DANISH_DENMARK="da-DK",e.GERMAN="de",e.GERMAN_AUSTRIA="de-AT",e.GERMAN_SWITZERLAND="de-CH",e.GERMAN_GERMANY="de-DE",e.GERMAN_LIECHTENSTEIN="de-LI",e.GERMAN_LUXEMBOURG="de-LU",e.DIVEHI="dv",e.DIVEHI_MALDIVES="dv-MV",e.GREEK="el",e.GREEK_GREECE="el-GR",e.ENGLISH="en",e.ENGLISH_AUSTRALIA="en-AU",e.ENGLISH_BELIZE="en-BZ",e.ENGLISH_CANADA="en-CA",e.ENGLISH_CARIBBEAN="en-CB",e.ENGLISH_UNITED_KINGDOM="en-GB",e.ENGLISH_IRELAND="en-IE",e.ENGLISH_JAMAICA="en-JM",e.ENGLISH_NEW_ZEALAND="en-NZ",e.ENGLISH_PHILIPPINES="en-PH",e.ENGLISH_TRINIDAD_AND_TOBAGO="en-TT",e.ENGLISH_UNITED_STATES="en-US",e.ENGLISH_SOUTH_AFRICA="en-ZA",e.ENGLISH_ZIMBABWE="en-ZW",e.ESPERANTO="eo",e.SPANISH="es",e.SPANISH_ARGENTINA="es-AR",e.SPANISH_BOLIVIA="es-BO",e.SPANISH_CHILE="es-CL",e.SPANISH_COLOMBIA="es-CO",e.SPANISH_COSTA_RICA="es-CR",e.SPANISH_DOMINICAN_REPUBLIC="es-DO",e.SPANISH_ECUADOR="es-EC",e.SPANISH_SPAIN="es-ES",e.SPANISH_GUATEMALA="es-GT",e.SPANISH_HONDURAS="es-HN",e.SPANISH_MEXICO="es-MX",e.SPANISH_NICARAGUA="es-NI",e.SPANISH_PANAMA="es-PA",e.SPANISH_PERU="es-PE",e.SPANISH_PUERTO_RICO="es-PR",e.SPANISH_PARAGUAY="es-PY",e.SPANISH_EL_SALVADOR="es-SV",e.SPANISH_URUGUAY="es-UY",e.SPANISH_VENEZUELA="es-VE",e.ESTONIAN="et",e.ESTONIAN_ESTONIA="et-EE",e.BASQUE="eu",e.BASQUE_SPAIN="eu-ES",e.FARSI="fa",e.FARSI_IRAN="fa-IR",e.FINNISH="fi",e.FINNISH_FINLAND="fi-FI",e.FAROESE="fo",e.FAROESE_FAROE_ISLANDS="fo-FO",e.FRENCH="fr",e.FRENCH_BELGIUM="fr-BE",e.FRENCH_CANADA="fr-CA",e.FRENCH_SWITZERLAND="fr-CH",e.FRENCH_FRANCE="fr-FR",e.FRENCH_LUXEMBOURG="fr-LU",e.FRENCH_PRINCIPALITY_OF_MONACO="fr-MC",e.GALICIAN="gl",e.GALICIAN_SPAIN="gl-ES",e.GUJARATI="gu",e.GUJARATI_INDIA="gu-IN",e.HEBREW="he",e.HEBREW_ISRAEL="he-IL",e.HINDI="hi",e.HINDI_INDIA="hi-IN",e.CROATIAN="hr",e.CROATIAN_BOSNIA_AND_HERZEGOVINA="hr-BA",e.CROATIAN_CROATIA="hr-HR",e.HUNGARIAN="hu",e.HUNGARIAN_HUNGARY="hu-HU",e.ARMENIAN="hy",e.ARMENIAN_ARMENIA="hy-AM",e.INDONESIAN="id",e.INDONESIAN_INDONESIA="id-ID",e.ICELANDIC="is",e.ICELANDIC_ICELAND="is-IS",e.ITALIAN="it",e.ITALIAN_SWITZERLAND="it-CH",e.ITALIAN_ITALY="it-IT",e.JAPANESE="ja",e.JAPANESE_JAPAN="ja-JP",e.GEORGIAN="ka",e.GEORGIAN_GEORGIA="ka-GE",e.KAZAKH="kk",e.KAZAKH_KAZAKHSTAN="kk-KZ",e.KANNADA="kn",e.KANNADA_INDIA="kn-IN",e.KOREAN="ko",e.KOREAN_KOREA="ko-KR",e.KONKANI="kok",e.KONKANI_INDIA="kok-IN",e.KYRGYZ="ky",e.KYRGYZ_KYRGYZSTAN="ky-KG",e.LITHUANIAN="lt",e.LITHUANIAN_LITHUANIA="lt-LT",e.LATVIAN="lv",e.LATVIAN_LATVIA="lv-LV",e.MAORI="mi",e.MAORI_NEW_ZEALAND="mi-NZ",e.FYRO_MACEDONIAN="mk",e.FYRO_MACEDONIAN_MACEDONIA="mk-MK",e.MONGOLIAN="mn",e.MONGOLIAN_MONGOLIA="mn-MN",e.MARATHI="mr",e.MARATHI_INDIA="mr-IN",e.MALAY="ms",e.MALAY_BRUNEI_DARUSSALAM="ms-BN",e.MALAY_MALAYSIA="ms-MY",e.MALTESE="mt",e.MALTESE_MALTA="mt-MT",e.NORWEGIAN_BOKMAL="nb",e.NORWEGIAN_BOKMAL_NORWAY="nb-NO",e.DUTCH="nl",e.DUTCH_BELGIUM="nl-BE",e.DUTCH_NETHERLANDS="nl-NL",e.NORWEGIAN_NYNORSK_NORWAY="nn-NO",e.NORTHERN_SOTHO="ns",e.NORTHERN_SOTHO_SOUTH_AFRICA="ns-ZA",e.PUNJABI="pa",e.PUNJABI_INDIA="pa-IN",e.POLISH="pl",e.POLISH_POLAND="pl-PL",e.PASHTO="ps",e.PASHTO_AFGHANISTAN="ps-AR",e.PORTUGUESE="pt",e.PORTUGUESE_BRAZIL="pt-BR",e.PORTUGUESE_PORTUGAL="pt-PT",e.QUECHUA="qu",e.QUECHUA_BOLIVIA="qu-BO",e.QUECHUA_ECUADOR="qu-EC",e.QUECHUA_PERU="qu-PE",e.ROMANIAN="ro",e.ROMANIAN_ROMANIA="ro-RO",e.RUSSIAN="ru",e.RUSSIAN_RUSSIA="ru-RU",e.SANSKRIT="sa",e.SANSKRIT_INDIA="sa-IN",e.SAMI_NORTHERN="se",e.SAMI_NORTHERN_FINLAND="se-FI",e.SAMI_NORTHERN_NORWAY="se-NO",e.SAMI_NORTHERN_SWEDEN="se-SE",e.SLOVAK="sk",e.SLOVAK_SLOVAKIA="sk-SK",e.SLOVENIAN="sl",e.SLOVENIAN_SLOVENIA="sl-SI",e.ALBANIAN="sq",e.ALBANIAN_ALBANIA="sq-AL",e.SERBIAN_LATIN="sr",e.SERBIAN_LATIN_BOSNIA_AND_HERZEGOVINA="sr-BA",e.SERBIAN_LATIN_SERBIA_AND_MONTENEGRO="sr-SP",e.SWEDISH="sv",e.SWEDISH_FINLAND="sv-FI",e.SWEDISH_SWEDEN="sv-SE",e.SWAHILI="sw",e.SWAHILI_KENYA="sw-KE",e.SYRIAC="syr",e.SYRIAC_SYRIA="syr-SY",e.TAMIL="ta",e.TAMIL_INDIA="ta-IN",e.TELUGU="te",e.TELUGU_INDIA="te-IN",e.THAI="th",e.THAI_THAILAND="th-TH",e.TAGALOG="tl",e.TAGALOG_PHILIPPINES="tl-PH",e.TSWANA="tn",e.TSWANA_SOUTH_AFRICA="tn-ZA",e.TURKISH="tr",e.TURKISH_TURKEY="tr-TR",e.TATAR="tt",e.TATAR_RUSSIA="tt-RU",e.TSOGA="ts",e.UKRAINIAN="uk",e.UKRAINIAN_UKRAINE="uk-UA",e.URDU="ur",e.URDU_ISLAMIC_REPUBLIC_OF_PAKISTAN="ur-PK",e.UZBEK_LATIN="uz",e.UZBEK_LATIN_UZBEKISTAN="uz-UZ",e.VIETNAMESE="vi",e.VIETNAMESE_VIET_NAM="vi-VN",e.XHOSA="xh",e.XHOSA_SOUTH_AFRICA="xh-ZA",e.CHINESE="zh",e.CHINESE_SIMPLIFIED="zh-Hans",e.CHINESE_SIMPLIFIED_CHINA="zh-CN",e.CHINESE_HONG_KONG="zh-HK",e.CHINESE_MACAU="zh-MO",e.CHINESE_SINGAPORE="zh-SG",e.CHINESE_TRADITIONAL="zh-Hant",e.ZULU="zu",e.ZULU_SOUTH_AFRICA="zu-ZA",e.BENGALI="bn",e.BENGALI_BANGLADESH="bn-BD",e.BENGALI_INDIA="bn-IN",e.BENGALI_MYANMAR="bn-MM",e.BURMESE="my",e.BURMESE_MYANMAR="my-MM",e.KHMER="km",e.KHMER_CAMBODIA="km-KH",e.LAO="lo",e.LAO_LAOS="lo-LA",e.YORUBA="yo",e.YORUBA_NIGERIA="yo-NG",e.AMHARIC="am",e.AMHARIC_ETHIOPIA="am-ET",e.NEPALI="ne",e.NEPALI_NEPAL="ne-NP",e.SINHALA="si",e.SINHALA_SRI_LANKA="si-LK",e.SERBIAN_CYRILLIC="sr-Cyrl",e.SERBIAN_CYRILLIC_SERBIA="sr-RS",e.SERBIAN_CYRILLIC_BOSNIA_AND_HERZEGOVINA="sr-BA",e.ENGLISH_INDIA="en-IN",e.ENGLISH_SINGAPORE="en-SG",e.ENGLISH_HONG_KONG="en-HK",e.ENGLISH_NIGERIA="en-NG",e.ENGLISH_PAKISTAN="en-PK",e.ENGLISH_MALAYSIA="en-MY",e.ENGLISH_BOTSWANA="en-BW",e.ENGLISH_KENYA="en-KE",e.ENGLISH_TANZANIA="en-TZ",e.ENGLISH_GHANA="en-GH",e.ENGLISH_UGANDA="en-UG",e.SPANISH_CUBA="es-CU",e.SPANISH_UNITED_STATES="es-US",e.PORTUGUESE_GUINEA_BISSAU="pt-GW",e.PORTUGUESE_MOZAMBIQUE="pt-MZ",e.PORTUGUESE_SAO_TOME_AND_PRINCIPE="pt-ST",e.PORTUGUESE_CAPE_VERDE="pt-CV",e.PORTUGUESE_TIMOR_LESTE="pt-TL",e.PORTUGUESE_MACAU="pt-MO",e.CHINESE_TAIWAN="zh-TW",e.ARABIC_MAURITANIA="ar-MR",e.ARABIC_PALESTINE="ar-PS",e.ARABIC_SUDAN="ar-SD",e.ARABIC_DJIBOUTI="ar-DJ",e.ARABIC_SOMALIA="ar-SO",e.ARABIC_CHAD="ar-TD",e.ARABIC_COMOROS="ar-KM",e))(B||{}),$=(e=>(e.Translation="translation",e.Enumeration="enumeration",e.Condition="condition",e.Insertion="insertion",e.File="file",e.Object="object",e.Array="array",e.Nested="nested",e.ReactNode="reactNode",e.Markdown="markdown",e.Text="text",e.Number="number",e.Boolean="boolean",e.Gender="gender",e.Unknown="unknown",e))($||{});const mf=(e,t)=>{for(const r of t.plugins??[])if(r.canHandle(e))return r.transform(e,t,(o,s)=>mf(o,s));if(e===null||typeof e!="object")return e;if(Array.isArray(e))return e.map((r,o)=>{const s={...t,children:r,keyPath:[...t.keyPath,{type:$.Array,key:o}]};return mf(r,s)});const n={};for(const r in e){const o={...t,children:e[r],keyPath:[...t.keyPath,{type:$.Object,key:r}]};n[r]=mf(e[r],o)}return n},WM=(e,t)=>{const n=Object.keys(e),r=n[n.length-1];return e[`${t}`]??e.fallback??e[r]},ZM=(e,t)=>{const n=Object.keys(e);for(const r of n){const o=!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(o||s||l||u||d)return r}},YM=(e,t)=>{const n=ZM(e,t)??"fallback";return e[n]},XM=(e,t)=>e.replace(/\{\{(.*?)\}\}/g,(n,r)=>(t[r]??"").toString()),QM="breadcrumb",JM={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"}}},ez=["breadcrumb::local::../@intlayer/design-system/src/components/Breadcrumb/breadcrumb.content.ts"],tz={key:QM,content:JM,localIds:ez},nz="code",rz={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"}}},iz=["code::local::../@intlayer/design-system/src/components/IDE/code.content.ts","code::local::../@intlayer/design-system/src/components/IDE/copyCode.content.ts"],oz={key:nz,content:rz,localIds:iz},az="copy-button",sz={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"}}},lz=["copy-button::local::../@intlayer/design-system/src/components/CopyButton/CopyButton.content.ts"],cz={key:az,content:sz,localIds:lz},uz="dictionary-detail-schema",dz={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"}}},fz=["dictionary-detail-schema::local::../@intlayer/design-system/src/components/DictionaryFieldEditor/DictionaryDetails/useDictionaryDetailsSchema.content.ts"],hz={key:uz,content:dz,localIds:fz},pz="dictionary-details",mz=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"}}}}`),gz=["dictionary-details::local::../@intlayer/design-system/src/components/DictionaryFieldEditor/DictionaryDetails/dictionaryDetails.content.tsx"],yz={key:pz,content:mz,localIds:gz},vz="dictionary-edition-drawer",bz={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"}}},_z=["dictionary-edition-drawer::local::client/src/components/Editor/DictionaryEditionDrawer/dictionaryEditionDrawer.content.ts"],hb={key:vz,content:bz,localIds:_z},Ez="dictionary-field-editor",Sz={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"}}}},xz=["dictionary-field-editor::local::../@intlayer/design-system/src/components/DictionaryFieldEditor/dictionaryFieldEditor.content.ts"],Az={key:Ez,content:Sz,localIds:xz},wz="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"}}},Cz=["dictionary-form-schema::local::../@intlayer/design-system/src/components/DictionaryFieldEditor/DictionaryCreationForm/useDictionaryFormSchema.content.ts"],Rz={key:wz,content:Tz,localIds:Cz},kz="dictionary-form",Nz={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"}}}},Iz=["dictionary-form::local::../@intlayer/design-system/src/components/DictionaryFieldEditor/DictionaryCreationForm/dictionaryCreationForm.content.ts"],Oz={key:kz,content:Nz,localIds:Iz},Dz="dictionary-list-drawer",Lz={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}}"}}}}},jz=["dictionary-list-drawer::local::client/src/components/Editor/DictionaryListDrawer/dictionaryListDrawer.content.ts"],WR={key:Dz,content:Lz,localIds:jz},Pz="expand-collapse",Mz={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"}}}}},zz=["expand-collapse::local::../@intlayer/design-system/src/components/ExpandCollapse/expandCollapse.content.ts"],Bz={key:Pz,content:Mz,localIds:zz},Vz="loader",Uz={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"}}},Fz=["loader::local::../@intlayer/design-system/src/components/Loader/index.content.ts"],Hz={key:Vz,content:Uz,localIds:Fz},$z="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"}}}},Kz=["locale-switcher-content::local::../@intlayer/design-system/src/components/LocaleSwitcherContentDropDown/localeSwitcher.content.ts"],qz={key:$z,content:Gz,localIds:Kz},Wz="locale-switcher",Zz={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"}}}},Yz=["locale-switcher::local::../@intlayer/design-system/src/components/LocaleSwitcherDropDown/localeSwitcher.content.ts"],Xz={key:Wz,content:Zz,localIds:Yz},Qz="long-press-message",Jz={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}}"'}}}},eB=["long-press-message::local::client/src/components/Editor/LongPressMessage/index.content.ts"],ZR={key:Qz,content:Jz,localIds:eB},tB="navigation-view",nB={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"}}}},rB=["navigation-view::local::../@intlayer/design-system/src/components/DictionaryFieldEditor/NavigationView/navigationViewNode.content.ts"],iB={key:tB,content:nB,localIds:rB},oB="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:"查看如何配置编辑器"}}}},sB=["no-application-url-view::local::client/src/components/Editor/NoApplicationURLView/noApplicationURLView.content.ts"],YR={key:oB,content:aB,localIds:sB},lB="node-type-selector",cB={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"}}},uB=["node-type-selector::local::../@intlayer/design-system/src/components/DictionaryFieldEditor/nodeTypeSelector.content.ts"],dB={key:lB,content:cB,localIds:uB},fB="save-dictionary-details",hB={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"}}}}},pB=["save-dictionary-details::local::../@intlayer/design-system/src/components/DictionaryFieldEditor/SaveForm/saveForm.content.tsx"],mB={key:fB,content:hB,localIds:pB},gB="structure-view",yB={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"}}}},vB=["structure-view::local::../@intlayer/design-system/src/components/DictionaryFieldEditor/StructureView/structureView.content.ts"],bB={key:gB,content:yB,localIds:vB},_B="table",EB={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"}}},SB=["table::local::../@intlayer/design-system/src/components/Table/table.content.ts"],xB={key:_B,content:EB,localIds:SB},AB="version-switcher",wB={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"],CB={key:AB,content:wB,localIds:TB},SA={breadcrumb:tz,code:oz,"copy-button":cz,"dictionary-detail-schema":hz,"dictionary-details":yz,"dictionary-edition-drawer":hb,"dictionary-field-editor":Az,"dictionary-form-schema":Rz,"dictionary-form":Oz,"dictionary-list-drawer":WR,"expand-collapse":Bz,loader:Hz,"locale-switcher-content":qz,"locale-switcher":Xz,"long-press-message":ZR,"navigation-view":iB,"no-application-url-view":YR,"node-type-selector":dB,"save-dictionary-details":mB,"structure-view":bB,table:xB,"version-switcher":CB},XR=(e,t,n)=>{const r={dictionaryKey:e.key,dictionaryPath:e.filePath,keyPath:[],plugins:n};return pb(e.content,r,t)},QR=(e,t,n)=>{const r=SA[e];if(!r)throw new Error(`Dictionary ${e} not found`,SA);return XR(r,t,n)},RB=(e,t,n)=>{const r=QR(e,n?.locale,n?.plugins);if(typeof t=="string"){const o=t.split(".");let s=r;for(const l of o)if(s=s?.[l],s===void 0)return r;return s}return r},kB=(e,t,n)=>e[t??n],NB=(e,t)=>({id:"translation-plugin",canHandle:n=>typeof n=="object"&&n?.nodeType===$.Translation,transform:(n,r,o)=>{const s=structuredClone(n[$.Translation]);for(const l in s){const u={...r,children:s[l],keyPath:[...r.keyPath,{type:$.Translation,key:l}]};s[l]=o(s[l],u)}return kB(s,e,t)}}),IB={id:"enumeration-plugin",canHandle:e=>typeof e=="object"&&e?.nodeType===$.Enumeration,transform:(e,t,n)=>{const r=structuredClone(e[$.Enumeration]);for(const o in r){const s=r[o],l={...t,children:s,keyPath:[...t.keyPath,{type:$.Enumeration,key:o}]};r[o]=n(s,l)}return o=>YM(r,o)}},OB={id:"condition-plugin",canHandle:e=>typeof e=="object"&&e?.nodeType===$.Condition,transform:(e,t,n)=>{const r=structuredClone(e[$.Condition]);for(const o in r){const s=r[o],l={...t,children:s,keyPath:[...t.keyPath,{type:$.Condition,key:o}]};r[o]=n(s,l)}return o=>WM(r,o)}},DB={id:"insertion-plugin",canHandle:e=>typeof e=="object"&&e?.nodeType===$.Insertion,transform:(e,t,n)=>{const r=[...t.keyPath,{type:$.Insertion}],o=e[$.Insertion];return n(o,{...t,children:o,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=XM(f,p);return d(m,{...u,plugins:t.plugins,children:m})}}},...t.plugins??[]]})}},LB={id:"nested-plugin",canHandle:e=>typeof e=="object"&&e?.nodeType===$.Nested,transform:(e,t)=>RB(e.nested.dictionaryKey,e.nested.path,t)},jB={id:"file-plugin",canHandle:e=>typeof e=="object"&&e?.nodeType===$.File,transform:(e,t,n)=>n(e.content,{...t,children:e.content})},pb=(e,t,n=ot?.internationalization.defaultLocale)=>{const r=[DB,NB(n),IB,OB,LB,jB,...t.plugins??[]];return mf(e,{...t,plugins:r})},xA={method:"GET",headers:{"Content-Type":"application/json"},credentials:"include"},PB=e=>(Object.keys(e).forEach(t=>{e[t]===void 0&&delete e[t]}),e),zd=e=>e.reduce((t,n)=>{const r=t??{},o=PB(n??{});return typeof r=="object"&&typeof o=="object"?{...r,...o}:o??r},{}),Ne=async(e,...t)=>{const{signal:n}=new AbortController;let r="",o;const s=t.map(({body:b,params:x,headers:A,...T})=>T),l=zd([xA,...s]),u=zd([xA.headers,...t.map(b=>b.headers)]),d=zd(t.map(b=>b.params)),f=l.method;if(f!=="GET"&&f!=="HEAD"){const b=zd(t.map(x=>x.body));u?.["Content-Type"]==="application/x-www-form-urlencoded"?o=new URLSearchParams(b).toString():o=JSON.stringify(b)}Object.entries(d).length>0&&(r=`?${new URLSearchParams(d).toString()}`);const p={...l,headers:u,body:o,signal:n},m=`${e}${r}`,v=await fetch(m,p);if(!v.ok){const b=await v.json();throw new Error(JSON.stringify(b.error)??"An error occurred")}return await v.json()},MB=(e={},t)=>{const n=t?.editor?.backendURL??ot.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,b={})=>await Ne(r,e,b,{method:"POST",body:v}),translateJSON:async(v,b={})=>await Ne(`${r}/translate/json`,e,b,{method:"POST",body:v}),auditContentDeclaration:async(v,b={})=>await Ne(`${r}/audit/dictionary`,e,b,{method:"POST",body:v}),auditContentDeclarationField:async(v,b={})=>await Ne(`${r}/audit/dictionary/field`,e,b,{method:"POST",body:v}),auditContentDeclarationMetadata:async(v,b={})=>await Ne(`${r}/audit/dictionary/metadata`,e,b,{method:"POST",body:v}),auditTag:async(v,b={})=>await Ne(`${r}/audit/tag`,e,b,{method:"POST",body:v}),askDocQuestion:async(v,b={})=>{if(!v)return;const{onMessage:x,onDone:A,...T}=v,N=new AbortController;try{const E=await fetch(`${r}/ask`,{method:"POST",headers:{"Content-Type":"application/json",...e.headers,...b.headers},body:JSON.stringify({...T,...e.body,...b.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 w=E.body?.getReader();if(!w)throw new Error("No reader available");const R=new TextDecoder;let C="";for(;;){const{done:I,value:D}=await w.read();if(I)break;C+=R.decode(D,{stream:!0});const L=C.split(`
51
+ `);C=L.pop()??"";for(const V of L)if(V.startsWith("data: "))try{const H=JSON.parse(V.slice(6));H.chunk&&x?.(H.chunk),H.done&&H.response&&A?.(H.response)}catch(H){console.error("Failed to parse SSE data:",H)}}}catch(E){throw console.error("Error in askDocQuestion:",E),E}},autocomplete:async(v,b={})=>await Ne(`${r}/autocomplete`,e,b,{method:"POST",body:v})}},zB=(e={},t)=>{const n=t?.editor?.backendURL??ot.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,b={})=>await Ne(r,e,b,{params:v}),getDictionariesKeys:async(v={})=>await Ne(`${r}/keys`,e,v),getDictionariesUpdateTimestamp:async(v={})=>await Ne(`${r}/update`,e,v),getDictionary:async(v,b,x={})=>await Ne(`${r}/${v}`,e,x,{params:b?{version:b.toString()}:void 0}),pushDictionaries:async(v,b={})=>await Ne(`${r}`,e,b,{method:"PATCH",body:{dictionaries:v}}),addDictionary:async(v,b={})=>await Ne(`${r}`,e,b,{method:"POST",body:v}),updateDictionary:async(v,b={})=>await Ne(`${r}/${v.id}`,e,b,{method:"PUT",body:v}),deleteDictionary:async(v,b={})=>await Ne(`${r}/${v}`,e,b,{method:"DELETE"})}},BB=(e={},t)=>{const n=t?.editor?.editorURL??ot.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})}},VB=(e={},t)=>{const n=t?.editor?.backendURL??ot.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"})}},JR=e=>{const t=e?.editor?.backendURL??ot.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}})}},UB=(e={},t)=>{const n=t?.editor?.backendURL??ot.editor?.backendURL;if(!n)throw new Error("Backend URL is not defined in the Intlayer configuration--.");const r=`${n}/api/organization`;return{getOrganizations:async(b,x={})=>await Ne(r,e,x,{params:b}),getOrganization:async(b,x={})=>await Ne(`${r}/${String(b)}`,e,x),addOrganization:async(b,x={})=>await Ne(r,e,x,{method:"POST",body:b}),addOrganizationMember:async(b,x={})=>Ne(`${r}/member`,e,x,{method:"POST",body:b}),updateOrganization:async(b,x={})=>Ne(r,e,x,{method:"PUT",body:b}),updateOrganizationMembers:async(b,x={})=>Ne(`${r}/members`,e,x,{method:"PUT",body:b}),deleteOrganization:async(b={})=>await Ne(r,e,b,{method:"DELETE"}),selectOrganization:async(b,x={})=>await Ne(`${r}/${String(b)}`,e,x,{method:"PUT"}),unselectOrganization:async(b={})=>await Ne(`${r}/logout`,e,b,{method:"POST"})}},FB=(e={},t)=>{const n=t?.editor?.backendURL??ot.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,T={})=>await Ne(r,e,T,{params:A}),addProject:async(A,T={})=>await Ne(`${r}`,e,T,{method:"POST",body:A}),updateProject:async(A,T={})=>await Ne(`${r}`,e,T,{method:"PUT",body:A}),updateProjectMembers:async(A,T={})=>await Ne(`${r}/members`,e,T,{method:"PUT",body:A}),pushProjectConfiguration:async(A,T={})=>await Ne(`${r}/configuration`,e,T,{method:"PUT",body:A}),deleteProject:async(A={})=>await Ne(`${r}`,e,A,{method:"DELETE"}),selectProject:async(A,T={})=>await Ne(`${r}/${String(A)}`,e,T,{method:"PUT"}),unselectProject:async(A={})=>await Ne(`${r}/logout`,e,A,{method:"POST"}),addNewAccessKey:async(A,T={})=>await Ne(`${r}/access_key`,e,T,{method:"POST",body:A}),deleteAccessKey:async(A,T={})=>await Ne(`${r}/access_key`,e,T,{method:"DELETE",body:{clientId:A}}),refreshAccessKey:async(A,T={})=>await Ne(`${r}/access_key`,e,T,{method:"PATCH",body:{clientId:A}})}},HB=(e={},t)=>{const n=t?.editor?.backendURL??ot.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})}},$B=(e={},t)=>{const n=t?.editor?.backendURL??ot.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??ot.editor?.backendURL;if(!n)throw new Error("Backend URL is not defined in the Intlayer configuration.");const r=`${n}/api/tag`;return{getTags:async(d,f={})=>await Ne(r,e,f,{params:d}),addTag:async(d,f={})=>await Ne(`${r}`,e,f,{method:"POST",body:d}),updateTag:async(d,f,p={})=>await Ne(`${r}/${d}`,e,p,{method:"PUT",body:f}),deleteTag:async(d,f={})=>await Ne(`${r}/${d}`,e,f,{method:"DELETE"})}},KB=(e={},t)=>{const n=t?.editor?.backendURL??ot.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,b={})=>await Ne(`${r}/`,e,b,{method:"POST",body:v}),getUsers:async(v,b={})=>await Ne(r,e,b,{params:v}),getUserById:async(v,b={})=>await Ne(`${r}/${v}`,e,b),getUserByAccount:async(v,b,x={})=>await Ne(`${r}/account/${b}/${v}`,e,x),getUserByEmail:async(v,b={})=>await Ne(`${r}/email/${v}`,e,b),updateUser:async(v,b={})=>await Ne(`${r}`,e,b,{method:"PUT",body:v}),deleteUser:async(v,b={})=>await Ne(`${r}/${v}`,e,b,{method:"DELETE"}),getVerifyEmailStatusURL:v=>`${r}/verify-email-status/${String(v)}`}},qB=(e={},t)=>({organization:UB(e,t),project:FB(e,t),user:KB(e,t),oAuth:JR(t),dictionary:zB(e,t),stripe:$B(e,t),ai:MB(e,t),tag:GB(e,t),search:HB(e,t),editor:BB(e,t),newsletter:VB(e,t)}),AA=(e,t,n)=>{let r=e,o=null,s=[];if(t.length===0)return n;for(let l=0;l<t.length;l++){const u=t[l];if(o=r,(u.type===$.Object||u.type===$.Array)&&(s=[u.key],(!r[u.key]||typeof r[u.key]!="object")&&(r[u.key]={}),r=r[u.key]),(u.type===$.Translation||u.type===$.Enumeration)&&(s=[u.type,u.key],(!r[u.type]||typeof r[u.type]!="object")&&(r[u.type]={}),(!r[u.type][u.key]||typeof r[u.type][u.key]!="object")&&(r[u.type][u.key]={}),r=r[u.type][u.key]),(u.type===$.Enumeration||u.type===$.Condition)&&(s=[u.type,u.key],(!r[u.type]||typeof r[u.type]!="object")&&(r[u.type]={}),(!r[u.type][u.key]||typeof r[u.type][u.key]!="object")&&(r[u.type][u.key]={}),r=r[u.type][u.key]),(u.type===$.Markdown||u.type===$.Insertion)&&(s=[u.type],(!r[u.type]||typeof r[u.type]!="object")&&(r[u.type]=""),r=r[u.type]),u.type===$.File&&(s=["content"],r=r.content),u.type&&(r=r),l===t.length-1&&o&&s.length>0){let d=o;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===$.Object||r.type===$.Array?n=n?.[r.key]:r.type===$.Translation||r.type===$.Condition||r.type===$.Enumeration?n=n?.[r.type][r.key]:(r.type===$.Markdown||r.type===$.Insertion||r.type===$.File)&&(n=n?.[r.type]);return n},Jl=(e,t,n)=>{const r=structuredClone(n);switch(e){case $.Translation:return{nodeType:$.Translation,[$.Translation]:Object.assign({},...t.map(o=>({[o]:structuredClone(r)??""})))};case $.Enumeration:return{nodeType:$.Enumeration,[$.Enumeration]:{1:r??""}};case $.Condition:return{nodeType:$.Condition,[$.Condition]:{true:r??"",false:r??""}};case $.Insertion:return{nodeType:$.Insertion,[$.Insertion]:{insertion:r??""}};case $.Nested:return{nodeType:$.Nested,[$.Nested]:{dictionaryKey:""}};case $.Markdown:return{nodeType:$.Markdown,[$.Markdown]:r??""};case $.File:return{nodeType:$.File,[$.File]:r??""};case $.Object:return{newKey:r??""};case $.Array:return[r??""];case $.Text:return r??"";case $.Number:return r??0;case $.Boolean:return r??!0;default:return r??""}},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,o=r[r.nodeType];return r.nodeType===$.Translation||r.nodeType===$.Enumeration||r.nodeType===$.Condition||r.nodeType===$.Insertion?Zn(o):r.nodeType===$.Nested?"dictionary-key":r.nodeType===$.File?"file/path":r.nodeType===$.Markdown?Zn(r):o}if(!e||typeof e!="object")return e;if(Array.isArray(e))return e.map(Zn);const t=Object.entries(e).map(([r,o])=>[r,Zn(o)]);return Object.fromEntries(t)},e1=e=>{if(typeof e=="string"||typeof e=="number"||typeof e=="boolean")return e;if(typeof e?.nodeType=="string"){const t=e,n=t[t.nodeType];if(t.nodeType===$.Translation||t.nodeType===$.Enumeration||t.nodeType===$.Condition||t.nodeType===$.Insertion||t.nodeType===$.Gender||t.nodeType===$.File||t.nodeType===$.Markdown){const r=Object.keys(n)[0];return n[r]}return t.nodeType===$.Nested?void 0:n}return!e||typeof e!="object"?e:Array.isArray(e)?e[0]:e},WB=e=>typeof e=="object"&&typeof e?.key<"u"&&typeof e?.props<"u",Ms=e=>typeof e=="string"?$.Text:typeof e?.nodeType=="string"?e.nodeType:Array.isArray(e)?$.Array:WB(e)?$.ReactNode:typeof e=="number"?$.Number:typeof e=="boolean"?$.Boolean:e&&typeof e=="object"?$.Object:$.Unknown,ZB=[{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"}],YB=[{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"}],XB=[{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"}],QB=[{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"}],JB=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"}]`),eV=[{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"}],tV=[{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"}],nV=[{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"}],rV=[{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"}],iV=[{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"}],oV=[{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"}],sV=[{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"}],lV=[{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"}],cV=[{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"}],uV=[{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"}],dV=[{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"}],fV=[{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"}],hV=[{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"}],pV=[{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"}],mV=[{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"}],gV=[{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"}],yV={breadcrumb:ZB,code:YB,"copy-button":XB,"dictionary-detail-schema":QB,"dictionary-details":JB,"dictionary-edition-drawer":eV,"dictionary-field-editor":tV,"dictionary-form-schema":nV,"dictionary-form":rV,"dictionary-list-drawer":iV,"expand-collapse":oV,loader:aV,"locale-switcher-content":sV,"locale-switcher":lV,"long-press-message":cV,"navigation-view":uV,"no-application-url-view":dV,"node-type-selector":fV,"save-dictionary-details":hV,"structure-view":pV,table:mV,"version-switcher":gV},vV=(e,t,n=yV)=>{const r=n?.[e];if(!r)return null;for(const o of r)if(dr(o.content,t))return o},bV=(e,t,n)=>{let r=e,o=null,s=null;for(const l of n)o=r,(l.type===$.Object||l.type===$.Array)&&(s=l.key,r=r[l.key]),(l.type===$.Translation||l.type===$.Enumeration||l.type===$.Condition)&&(s=l.type,r=r[l.type][l.key]),(l.type===$.Markdown||l.type===$.ReactNode||l.type===$.Insertion||l.type===$.File)&&(s=l.type,r=r[l.type]);if(o&&s!==null)if(Array.isArray(o))o[s]=r;else{const l={};for(const u of Object.keys(o))u===s&&typeof t<"u"?l[t]=r:l[u]=o[u];Object.keys(o).forEach(u=>delete o[u]),Object.assign(o,l)}return e},_V=(e,t)=>JSON.stringify([e,t]),EV=e=>{const t=new Map;function n(r,o){if(e.name==="DisplayNames"&&typeof Intl?.DisplayNames!="function")return r;const s=_V(r??B.ENGLISH,o);let l=t.get(s);return l||(l=new e(r,o),t.set(s,l)),l}return n.prototype=e.prototype,n},SV=()=>new Proxy(Intl,{get:(e,t,n)=>{const r=Reflect.get(e,t,n);return typeof r=="function"&&/^[A-Z]/.test(String(t))?EV(r):r}}),xV=SV(),AV=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"}},t1=e=>/^[a-zA-Z][a-zA-Z\d+\-.]*:/.test(e),gf=(e,t=e)=>new xV.DisplayNames(t,{type:"language"}).of(e)??"Unknown locale",wV=(e,t=ot.internationalization.locales)=>{const n=t1(e);let r=e;e.endsWith("/")&&(r=e.slice(0,-1));const o=n?new URL(r):new URL(r,"http://example.com"),s=o.pathname;s.startsWith("/")||(o.pathname=`/${s}`);const l=s.split("/"),u=l[1];if(t.includes(u)){l.splice(1,1);const d=l.join("/")??"/";o.pathname=d}return n?o.toString():o.toString().replace("http://example.com","")},TV=(e,t=ot.internationalization.locales,n=ot.internationalization.defaultLocale,r=ot.middleware.prefixDefault)=>{const o=wV(e,t),s=t1(o),l=s?new URL(o):new URL(o,"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},{})},CV=(e,t,n=ot.internationalization.locales,r=ot.internationalization.defaultLocale,o=ot.middleware.prefixDefault)=>TV(e,n,r,o)[t],RV=(e,t=ot.internationalization.locales,n=ot.internationalization.defaultLocale)=>{const r=[e].flat(),o=s=>s.trim().toLowerCase();try{for(const s of r){const l=o(s),u=t.find(p=>o(p)===l);if(u)return u;const[d]=l.split("-"),f=t.find(p=>o(p).split("-")[0]===d);if(f)return f}}catch{}return n},kV=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,o)=>`[${o.split(",").map(l=>{const u=l.trim();return u.startsWith('"')&&u.endsWith('"')||!isNaN(Number(u))?u:`"${u}"`}).join(", ")}]`),JSON.parse(n)},n1=e=>{try{const t=e.split(/\r?\n/),n=t.find(u=>u.trim()!=="");if(!n||n.trim()!=="---")return{};const r={};let o=!1,s=null,l=[];for(let u=0;u<t.length;u++){const d=t[u];if(d.trim()==="---")if(o){s&&l.length>0&&(r[s]=l);break}else{o=!0;continue}if(o){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(),b=m[2].trim();if(b==="")s=v,l=[];else try{r[v]=kV(b)}catch{r[v]=b}}}}return r}catch{return{}}},Jc=(e,t)=>e.every((n,r)=>t[r]&&t[r].key===n.key&&t[r].type===n.type),NV=(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 o=n.pathname.replace(/\/$/,""),s=r.pathname.replace(/\/$/,"");return!(o!==""&&s!==""&&o!==s)}catch(n){return console.error("Invalid URL(s)",n),!1}},IV=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 OV(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 DV=new Uint8Array(16);function LV(){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(DV)}const jV=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),wA={randomUUID:jV};function PV(e,t,n){if(wA.randomUUID&&!e)return wA.randomUUID();e=e||{};const r=e.random??e.rng?.()??LV();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,OV(r)}const{editor:Sg}=ot,r1=S.createContext({postMessage:()=>null,allowedOrigins:[Sg?.applicationURL,Sg?.editorURL,Sg?.cmsURL],senderId:""}),TA=({children:e,allowedOrigins:t,postMessage:n})=>{const r=S.useRef(PV()),o=S.useMemo(()=>({postMessage:n,allowedOrigins:t,senderId:r.current}),[n,t,r.current]);return y.jsx(r1.Provider,{value:o,children:e})},mb=()=>S.useContext(r1),Cs=(e,t,n)=>{const{allowedOrigins:r,postMessage:o,senderId:s}=mb();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=>NV(v,d.origin))||r?.includes("*"))&&t(p)};return window.addEventListener("message",u),()=>window.removeEventListener("message",u)}},[r,o,s,n]),u=>{o({type:e,data:u,senderId:s})}},MV=(e,t)=>typeof e=="function"?e(t):e,so=(e,t,n)=>{const{postMessage:r,senderId:o}=mb(),{emit:s,receive:l}=n??{emit:!0,receive:!0},u=(b,x)=>{const A=MV(b,x);return s&&typeof r=="function"&&typeof A<"u"&&r({type:`${e}/post`,data:A,senderId:o}),A},d=()=>{typeof r=="function"&&r({type:`${e}/post`,data:f,senderId:o})},[f,p]=S.useState(()=>u(t)),m=b=>p(x=>u(b,x));Cs(`${e}/post`,l?b=>{p(b)}:void 0);const v=(b,x)=>{s&&typeof r=="function"&&x!==o&&(typeof f>"u"||r({type:`${e}/post`,data:f,senderId:o}))};return Cs(`${e}/get`,s?v:void 0,f),S.useEffect(()=>{l&&typeof r=="function"&&typeof f>"u"&&r({type:`${e}/get`,senderId:o})},[]),[f,m,d]},i1=S.createContext(void 0),zV=({children:e,configuration:t})=>y.jsx(i1.Provider,{value:t,children:e}),Zr=()=>S.useContext(i1),o1=S.createContext(void 0),a1=S.createContext(void 0),BV=({children:e})=>{const[t,n]=so(An.INTLAYER_LOCALE_DICTIONARIES_CHANGED,void 0),r=S.useMemo(()=>({localeDictionaries:t??{}}),[t]),o=S.useMemo(()=>({setLocaleDictionaries:n,setLocaleDictionary:s=>{s.localId&&n(l=>({...l,[s.localId]:s}))}}),[n]);return y.jsx(o1.Provider,{value:r,children:y.jsx(a1.Provider,{value:o,children:e})})},yh=()=>S.useContext(a1),s1=()=>{const e=yh(),t=S.useContext(o1);if(!t)throw new Error("useDictionariesRecordStates must be used within a DictionariesRecordProvider");return{...t,...e}},l1=S.createContext(void 0),VV=e=>Cs(`${An.INTLAYER_EDITED_CONTENT_CHANGED}/get`,e),c1=S.createContext(void 0),CA=(e,t)=>typeof e=="function"?e(t):e,UV=({children:e})=>{const{localeDictionaries:t}=s1(),[n,r]=so(An.INTLAYER_EDITED_CONTENT_CHANGED),o=b=>{let x=CA(b);return r(A=>(x=CA(b,A?.[x.key]),{...A,[x.key]:x})),x},s=(b,x)=>{r(A=>({...A,[b]:{...A?.[b],content:x}}))},l=(b,x,A=[],T=!0)=>{r(N=>{const E=t[b]?.content,w=structuredClone(N?.[b]?.content??E);let R=A;if(!T){let I=0;const D=A.slice(0,-1),L=A[A.length-1];let V=L.key;for(;typeof dr(w,R)<"u";)I++,V=I===0?L.key:`${L.key} (${I})`,R=[...D,{...L,key:V}]}const C=AA(w,R,x);return{...N,[b]:{...N?.[b],content:C}}})},u=(b,x,A=[])=>{r(T=>{const N=t[b]?.content,E=structuredClone(T?.[b]?.content??N),w=bV(E,x,A);return{...T,[b]:{...T?.[b],content:w}}})},d=(b,x)=>{r(A=>{const T=t[b]?.content,N=structuredClone(A?.[b]?.content??T),E=dr(T,x),w=AA(N,x,E);return{...A,[b]:{...A?.[b],content:w}}})},f=b=>{r(x=>{const A={...x};return delete A[b],A})},p=b=>{r(x=>Object.entries(x).reduce((T,[N,E])=>N===b?T:{...T,[N]:E},{}))},m=()=>{r({})},v=(b,x)=>{if(!n)return;if(b.includes(":local:")||b.includes(":remote:")){const N=n?.[b]?.content??{};return dr(N,x)}const T=Object.keys(n).filter(N=>N.startsWith(`${b}:`));for(const N of T){const E=n?.[N]?.content??{},w=dr(E,x);if(w)return w}};return y.jsx(l1.Provider,{value:{editedContent:n},children:y.jsx(c1.Provider,{value:{setEditedContentState:r,setEditedDictionary:o,setEditedContent:s,addEditedContent:l,renameEditedContent:u,removeEditedContent:d,restoreEditedContent:f,clearEditedDictionaryContent:p,clearEditedContent:m,getEditedContentValue:v},children:e})})},zs=()=>S.useContext(c1),wn=()=>{const e=S.useContext(l1),t=zs();return{...e,...t}},u1=S.createContext({enabled:!1}),FV=e=>so(An.INTLAYER_EDITOR_ENABLED,!1,e),HV=e=>Cs(`${An.INTLAYER_EDITOR_ENABLED}/post`,e),d1=e=>Cs(`${An.INTLAYER_EDITOR_ENABLED}/get`,e),$V=({children:e})=>{const[t]=FV({emit:!1,receive:!0});return y.jsx(u1.Provider,{value:{enabled:t},children:e})},f1=()=>S.useContext(u1),h1=S.createContext(void 0),p1=S.createContext(void 0),GV=({children:e})=>{const[t,n]=so(An.INTLAYER_FOCUSED_CONTENT_CHANGED,null),r=o=>{n(s=>s&&{...s,keyPath:o})};return y.jsx(h1.Provider,{value:{focusedContent:t},children:y.jsx(p1.Provider,{value:{setFocusedContent:n,setFocusedContentKeyPath:r},children:e})})},gb=()=>{const e=S.useContext(p1);if(e===void 0)throw new Error("useFocusDictionaryActions must be used within a FocusDictionaryProvider");return e},mo=()=>{const e=gb(),t=S.useContext(h1);if(t===void 0)throw new Error("useFocusDictionaryState must be used within a FocusDictionaryProvider");return{...t,...e}},RA=({children:e})=>{const t=VV();return S.useEffect(()=>{t()},[]),y.jsx(BV,{children:y.jsx(UV,{children:y.jsx(GV,{children:e})})})},KV=({children:e,fallback:t})=>{const n=d1(),{enabled:r}=f1();return S.useEffect(()=>{r||n()},[r]),r?e:t},qV=({children:e,fallback:t})=>{const[n,r]=S.useState(!1);return S.useEffect(()=>{r(window.self!==window.top)},[]),n?e:t},WV=({children:e,configuration:t,...n})=>y.jsx($V,{children:y.jsx(zV,{configuration:t,children:n.mode==="editor"?y.jsx(TA,{...n,children:y.jsx(RA,{children:e})}):y.jsx(qV,{fallback:e,children:y.jsx(TA,{...n,children:y.jsx(KV,{fallback:e,children:y.jsx(RA,{children:e})})})})})}),ZV=(e,t)=>so(An.INTLAYER_URL_CHANGE,e,t),YV=()=>Cs(An.INTLAYER_IFRAME_CLICKED,IV);/*! 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 XV={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 My(e,t){function n(o,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()),o=encodeURIComponent(o).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=o+"="+e.write(s,o)+u}}function r(o){if(!(typeof document>"u"||arguments.length&&!o)){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),o===p)break}catch{}}return o?l[o]:l}}return Object.create({set:n,get:r,remove:function(o,s){n(o,"",Bd({},s,{expires:-1}))},withAttributes:function(o){return My(this.converter,Bd({},this.attributes,o))},withConverter:function(o){return My(Bd({},this.converter,o),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(e)}})}var m1=My(XV,{path:"/"});const{cookieName:g1}=ot.middleware,QV={path:"/",expires:void 0,domain:void 0,secure:!1,sameSite:"strict"},yb=m1.get(g1),y1=e=>{m1.set(g1,e,QV)},JV=()=>({localeCookie:yb,setLocaleCookie:y1}),eu=S.createContext({locale:yb??ot?.internationalization?.defaultLocale,setLocale:()=>null,disableEditor:!1}),eU=()=>S.useContext(eu),tU=({locale:e,defaultLocale:t,children:n,setLocale:r,disableEditor:o})=>{const{internationalization:s}=ot??{},{defaultLocale:l,locales:u}=s??{},d=e??yb??t??l,[f,p]=so(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),y1(x)}}),b=RV(e??f);return y.jsx(eu.Provider,{value:{locale:b,setLocale:v,disableEditor:o},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(o,s,l){return s==="value"?t:n&&Object.keys(n).includes(s)?n[s]:Reflect.get(o,s,l)}})},nU=(e,t,n)=>QR(e,t,[b1,_1,E1]),dn=(e,t)=>{const{locale:n}=S.useContext(eu);return S.useMemo(()=>nU(e,n),[e,n,t])},vb=({onLocaleChange:e}={})=>{const{defaultLocale:t,locales:n}=ot?.internationalization??{},{locale:r,setLocale:o}=S.useContext(eu),{setLocaleCookie:s}=JV(),l=S.useCallback(u=>{if(!n?.map(String).includes(u)){console.error(`Locale ${u} is not available`);return}o(u),s(u),e?.(u)},[n,e,s,o]);return{locale:r,defaultLocale:t,availableLocales:n,setLocale:l}},rU=250,iU=({children:e,onPress:t,onHover:n,onUnhover:r,onClickOutside:o,pressDuration:s=rU,isSelecting:l,...u})=>{const d=S.useRef(null),[f,p]=S.useState(!1),[m,v]=S.useState(l),b=S.useRef(null),x=typeof e=="string",A=()=>{v(!0),t()},T=()=>{b.current=setTimeout(()=>{A()},s)},N=()=>{b.current&&(clearTimeout(b.current),b.current=null)},E=()=>{N(),T()},w=()=>{p(!0),n?.()},R=()=>{r?.(),p(!1),N()},C=S.useCallback(L=>{d.current&&!d.current.contains(L.target)&&(v(!1),o?.())},[o]);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:w,ref:d,...u,children:e})},oU=({children:e,dictionaryKey:t,keyPath:n})=>{const{focusedContent:r,setFocusedContent:o}=mo(),{postMessage:s,senderId:l}=mb(),u=S.useCallback(()=>o({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(iU,{onPress:u,onHover:d,onUnhover:f,isSelecting:p,children:e})},jf=({children:e,...t})=>{const{enabled:n}=f1(),{disableEditor:r}=eU();return n&&!r?y.jsx(oU,{...t,children:e}):e},bb=({dictionaryKey:e,keyPath:t,children:n})=>{const r=zs();return r?r.getEditedContentValue(e,t)??n:n},aU=e=>{const t=bb(e);if(typeof t=="object"){const n=pb(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},sU=S.createContext({renderMarkdown:e=>e}),lU=()=>S.useContext(sU),cU=({dictionaryKey:e,keyPath:t,children:n,locale:r})=>{const{renderMarkdown:o}=lU(),s=bb({dictionaryKey:e,keyPath:t,children:n});if(typeof s!="string"){const l=pb(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)}`),o(n)):o(l)}return o(s)},uU=({dictionaryKey:e,keyPath:t,children:n,metadataKeyPath:r})=>{const o=bb({dictionaryKey:e,keyPath:t,children:n}),s=n1(o);return dr(s,r)},v1=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(v1((u??{})[d]))}),{...s,props:{...s.props,children:l}}}return{...s,props:{...s.props,children:s.props?.children??[]}}})(e),{type:r,props:o}=n;return S.createElement(r??"span",o,...o.children)},b1={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}))})},_1={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:v1(e)})})},dU={id:"markdown-string-plugin",canHandle:e=>typeof e=="string",transform:(e,t,n)=>{const{plugins:r,...o}=t,s=n1(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,{...o,children:y.jsx(uU,{...o,metadataKeyPath:f.keyPath,children:e})})})}],dictionaryKey:o.dictionaryKey,keyPath:[]});return Lf({...t,value:e,children:y.jsx(jf,{...o,children:y.jsx(cU,{...o,children:e})}),additionalProps:{metadata:u}})}},E1={id:"markdown-plugin",canHandle:e=>typeof e=="object"&&e?.nodeType===$.Markdown,transform:(e,t,n)=>{const r=[...t.keyPath,{type:$.Markdown}],o=e[$.Markdown];return n(o,{...t,children:o,keyPath:r,plugins:[dU,...t.plugins??[]]})}},fU=(e,t,n)=>XR(e,t,[b1,_1,E1]),tu=(e,t)=>{const{locale:n}=S.useContext(eu);return S.useMemo(()=>fU(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 kA="popstate";function hU(e={}){function t(r,o){let{pathname:s,search:l,hash:u}=r.location;return zy("",{pathname:s,search:l,hash:u},o.state&&o.state.usr||null,o.state&&o.state.key||"default")}function n(r,o){return typeof o=="string"?o:Lc(o)}return mU(t,n,null,e)}function Tt(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 pU(){return Math.random().toString(36).substring(2,10)}function NA(e,t){return{usr:e.state,key:e.key,idx:t}}function zy(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||pU()}}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 mU(e,t,n,r={}){let{window:o=document.defaultView,v5Compat:s=!1}=r,l=o.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 T=p(),N=T==null?null:T-f;f=T,d&&d({action:u,location:A.location,delta:N})}function v(T,N){u="PUSH";let E=zy(A.location,T,N);f=p()+1;let w=NA(E,f),R=A.createHref(E);try{l.pushState(w,"",R)}catch(C){if(C instanceof DOMException&&C.name==="DataCloneError")throw C;o.location.assign(R)}s&&d&&d({action:u,location:A.location,delta:1})}function b(T,N){u="REPLACE";let E=zy(A.location,T,N);f=p();let w=NA(E,f),R=A.createHref(E);l.replaceState(w,"",R),s&&d&&d({action:u,location:A.location,delta:0})}function x(T){return gU(T)}let A={get action(){return u},get location(){return e(o,l)},listen(T){if(d)throw new Error("A history only accepts one active listener");return o.addEventListener(kA,m),d=T,()=>{o.removeEventListener(kA,m),d=null}},createHref(T){return t(o,T)},createURL:x,encodeLocation(T){let N=x(T);return{pathname:N.pathname,search:N.search,hash:N.hash}},push:v,replace:b,go(T){return l.go(T)}};return A}function gU(e,t=!1){let n="http://localhost";typeof window<"u"&&(n=window.location.origin!=="null"?window.location.origin:window.location.href),Tt(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 S1(e,t,n="/"){return yU(e,t,n,!1)}function yU(e,t,n,r){let o=typeof t=="string"?Bs(t):t,s=bi(o.pathname||"/",n);if(s==null)return null;let l=x1(e);vU(l);let u=null;for(let d=0;u==null&&d<l.length;++d){let f=kU(s);u=CU(l[d],f,r)}return u}function x1(e,t=[],n=[],r="",o=!1){let s=(l,u,d=o,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;Tt(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&&(Tt(l.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${m}".`),x1(l.children,t,v,m,d)),!(l.path==null&&!l.index)&&t.push({path:m,score:wU(m,l.index),routesMeta:v})};return e.forEach((l,u)=>{if(l.path===""||!l.path?.includes("?"))s(l,u);else for(let d of A1(l.path))s(l,u,!0,d)}),t}function A1(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),s=n.replace(/\?$/,"");if(r.length===0)return o?[s,""]:[s];let l=A1(r.join("/")),u=[];return u.push(...l.map(d=>d===""?s:[s,d].join("/"))),o&&u.push(...l),u.map(d=>e.startsWith("/")&&d===""?"/":d)}function vU(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 bU=/^:[\w-]+$/,_U=3,EU=2,SU=1,xU=10,AU=-2,IA=e=>e==="*";function wU(e,t){let n=e.split("/"),r=n.length;return n.some(IA)&&(r+=AU),t&&(r+=EU),n.filter(o=>!IA(o)).reduce((o,s)=>o+(bU.test(s)?_U:s===""?SU:xU),r)}function TU(e,t){return e.length===t.length&&e.slice(0,-1).every((r,o)=>r===t[o])?e[e.length-1]-t[t.length-1]:0}function CU(e,t,n=!1){let{routesMeta:r}=e,o={},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(o,m.params),l.push({params:o,pathname:vi([s,m.pathname]),pathnameBase:DU(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]=RU(e.path,e.caseSensitive,e.end),o=t.match(n);if(!o)return null;let s=o[0],l=s.replace(/(.)\/+$/,"$1"),u=o.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 b=u[v];return m&&!b?f[p]=void 0:f[p]=(b||"").replace(/%2F/g,"/"),f},{}),pathname:s,pathnameBase:l,pattern:e}}function RU(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=[],o="^"+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:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function kU(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 NU(e,t="/"){let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?Bs(e):e;return{pathname:n?n.startsWith("/")?n:IU(n,t):t,search:LU(r),hash:jU(o)}}function IU(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?n.length>1&&n.pop():o!=="."&&n.push(o)}),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 OU(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function w1(e){let t=OU(e);return t.map((n,r)=>r===t.length-1?n.pathname:n.pathnameBase)}function T1(e,t,n,r=!1){let o;typeof e=="string"?o=Bs(e):(o={...e},Tt(!o.pathname||!o.pathname.includes("?"),xg("?","pathname","search",o)),Tt(!o.pathname||!o.pathname.includes("#"),xg("#","pathname","hash",o)),Tt(!o.search||!o.search.includes("#"),xg("#","search","hash",o)));let s=e===""||o.pathname==="",l=s?"/":o.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;o.pathname=v.join("/")}u=m>=0?t[m]:"/"}let d=NU(o,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,"/"),DU=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),LU=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,jU=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function PU(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}var C1=["POST","PUT","PATCH","DELETE"];new Set(C1);var MU=["GET",...C1];new Set(MU);var Vs=S.createContext(null);Vs.displayName="DataRouter";var vh=S.createContext(null);vh.displayName="DataRouterState";S.createContext(!1);var R1=S.createContext({isTransitioning:!1});R1.displayName="ViewTransition";var zU=S.createContext(new Map);zU.displayName="Fetchers";var BU=S.createContext(null);BU.displayName="Await";var Yr=S.createContext(null);Yr.displayName="Navigation";var nu=S.createContext(null);nu.displayName="Location";var wi=S.createContext({outlet:null,matches:[],isDataRoute:!1});wi.displayName="Route";var _b=S.createContext(null);_b.displayName="RouteError";function VU(e,{relative:t}={}){Tt(ru(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=S.useContext(Yr),{hash:o,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:o})}function ru(){return S.useContext(nu)!=null}function go(){return Tt(ru(),"useLocation() may be used only in the context of a <Router> component."),S.useContext(nu).location}var k1="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function N1(e){S.useContext(Yr).static||S.useLayoutEffect(e)}function UU(){let{isDataRoute:e}=S.useContext(wi);return e?eF():FU()}function FU(){Tt(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(wi),{pathname:o}=go(),s=JSON.stringify(w1(r)),l=S.useRef(!1);return N1(()=>{l.current=!0}),S.useCallback((d,f={})=>{if(qr(l.current,k1),!l.current)return;if(typeof d=="number"){n.go(d);return}let p=T1(d,JSON.parse(s),o,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,o,e])}S.createContext(null);function iu(e,{relative:t}={}){let{matches:n}=S.useContext(wi),{pathname:r}=go(),o=JSON.stringify(w1(n));return S.useMemo(()=>T1(e,JSON.parse(o),r,t==="path"),[e,o,r,t])}function HU(e,t){return I1(e,t)}function I1(e,t,n,r,o){Tt(ru(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:s}=S.useContext(Yr),{matches:l}=S.useContext(wi),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||"";O1(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=go(),b;if(t){let E=typeof t=="string"?Bs(t):t;Tt(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.`),b=E}else b=v;let x=b.pathname||"/",A=x;if(p!=="/"){let E=p.replace(/^\//,"").split("/");A="/"+x.replace(/^\//,"").split("/").slice(E.length).join("/")}let T=S1(e,{pathname:A});qr(m||T!=null,`No routes matched location "${b.pathname}${b.search}${b.hash}" `),qr(T==null||T[T.length-1].route.element!==void 0||T[T.length-1].route.Component!==void 0||T[T.length-1].route.lazy!==void 0,`Matched leaf route at location "${b.pathname}${b.search}${b.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=WU(T&&T.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,o);return t&&N?S.createElement(nu.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...b},navigationType:"POP"}},N):N}function $U(){let e=JU(),t=PU(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)",o={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:o},n):null,l)}var GU=S.createElement($U,null),KU=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(wi.Provider,{value:this.props.routeContext},S.createElement(_b.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function qU({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(wi.Provider,{value:e},n)}function WU(e,t=[],n=null,r=null,o=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);Tt(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,b=p.route.loader&&!m.hasOwnProperty(p.route.id)&&(!v||v[p.route.id]===void 0);if(p.route.lazy||b){u=!0,d>=0?s=s.slice(0,d+1):s=[s[0]];break}}}return s.reduceRight((f,p,m)=>{let v,b=!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?(O1("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),b=!0,A=null):d===m&&(b=!0,A=p.route.hydrateFallbackElement||null)));let T=t.concat(s.slice(0,m+1)),N=()=>{let E;return v?E=x:b?E=A:p.route.Component?E=S.createElement(p.route.Component,null):p.route.element?E=p.route.element:E=f,S.createElement(qU,{match:p,routeContext:{outlet:f,matches:T,isDataRoute:n!=null},children:E})};return n&&(p.route.ErrorBoundary||p.route.errorElement||m===0)?S.createElement(KU,{location:n.location,revalidation:n.revalidation,component:x,error:v,children:N(),routeContext:{outlet:null,matches:T,isDataRoute:!0},unstable_onError:r}):N()},null)}function Eb(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function ZU(e){let t=S.useContext(Vs);return Tt(t,Eb(e)),t}function YU(e){let t=S.useContext(vh);return Tt(t,Eb(e)),t}function XU(e){let t=S.useContext(wi);return Tt(t,Eb(e)),t}function Sb(e){let t=XU(e),n=t.matches[t.matches.length-1];return Tt(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function QU(){return Sb("useRouteId")}function JU(){let e=S.useContext(_b),t=YU("useRouteError"),n=Sb("useRouteError");return e!==void 0?e:t.errors?.[n]}function eF(){let{router:e}=ZU("useNavigate"),t=Sb("useNavigate"),n=S.useRef(!1);return N1(()=>{n.current=!0}),S.useCallback(async(o,s={})=>{qr(n.current,k1),n.current&&(typeof o=="number"?e.navigate(o):await e.navigate(o,{fromRouteId:t,...s}))},[e,t])}var OA={};function O1(e,t,n){!t&&!OA[e]&&(OA[e]=!0,qr(!1,n))}S.memo(tF);function tF({routes:e,future:t,state:n,unstable_onError:r}){return I1(e,void 0,n,r,t)}function D1(e){Tt(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function nF({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:o,static:s=!1}){Tt(!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:o,static:s,future:{}}),[l,o,s]);typeof n=="string"&&(n=Bs(n));let{pathname:d="/",search:f="",hash:p="",state:m=null,key:v="default"}=n,b=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(b!=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.`),b==null?null:S.createElement(Yr.Provider,{value:u},S.createElement(nu.Provider,{children:t,value:b}))}function rF({children:e,location:t}){return HU(By(e),t)}function By(e,t=[]){let n=[];return S.Children.forEach(e,(r,o)=>{if(!S.isValidElement(r))return;let s=[...t,o];if(r.type===S.Fragment){n.push.apply(n,By(r.props.children,s));return}Tt(r.type===D1,`[${typeof r.type=="string"?r.type:r.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),Tt(!r.props.index||!r.props.children,"An index route cannot have child routes.");let l={id:r.props.id||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=By(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 iF(e){return bh(e)&&e.tagName.toLowerCase()==="button"}function oF(e){return bh(e)&&e.tagName.toLowerCase()==="form"}function aF(e){return bh(e)&&e.tagName.toLowerCase()==="input"}function sF(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function lF(e,t){return e.button===0&&(!t||t==="_self")&&!sF(e)}var Vd=null;function cF(){if(Vd===null)try{new FormData(document.createElement("form"),0),Vd=!1}catch{Vd=!0}return Vd}var uF=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Ag(e){return e!=null&&!uF.has(e)?(qr(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${vf}"`),null):e}function dF(e,t){let n,r,o,s,l;if(oF(e)){let u=e.getAttribute("action");r=u?bi(u,t):null,n=e.getAttribute("method")||yf,o=Ag(e.getAttribute("enctype"))||vf,s=new FormData(e)}else if(iF(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,o=Ag(e.getAttribute("formenctype"))||Ag(u.getAttribute("enctype"))||vf,s=new FormData(u,e),!cF()){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,o=vf,l=e}return s&&o==="text/plain"&&(l=s,s=void 0),{action:r,method:n.toLowerCase(),encType:o,formData:s,body:l}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function xb(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function fF(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 hF(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 pF(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 mF(e,t,n){let r=await Promise.all(e.map(async o=>{let s=t.routes[o.route.id];if(s){let l=await hF(s,n);return l.links?l.links():[]}return[]}));return bF(r.flat(1).filter(pF).filter(o=>o.rel==="stylesheet"||o.rel==="preload").map(o=>o.rel==="stylesheet"?{...o,rel:"prefetch",as:"style"}:{...o,rel:"prefetch"}))}function DA(e,t,n,r,o,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(o.pathname+o.search+o.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 gF(e,t,{includeHydrateFallback:n}={}){return yF(e.map(r=>{let o=t.routes[r.route.id];if(!o)return[];let s=[o.module];return o.clientActionModule&&(s=s.concat(o.clientActionModule)),o.clientLoaderModule&&(s=s.concat(o.clientLoaderModule)),n&&o.hydrateFallbackModule&&(s=s.concat(o.hydrateFallbackModule)),o.imports&&(s=s.concat(o.imports)),s}).flat(1))}function yF(e){return[...new Set(e)]}function vF(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function bF(e,t){let n=new Set;return new Set(t),e.reduce((r,o)=>{let s=JSON.stringify(vF(o));return n.has(s)||(n.add(s),r.push({key:s,link:o})),r},[])}function L1(){let e=S.useContext(Vs);return xb(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function _F(){let e=S.useContext(vh);return xb(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var Ab=S.createContext(void 0);Ab.displayName="FrameworkContext";function j1(){let e=S.useContext(Ab);return xb(e,"You must render this element inside a <HydratedRouter> element"),e}function EF(e,t){let n=S.useContext(Ab),[r,o]=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)})},T=new IntersectionObserver(A,{threshold:.5});return v.current&&T.observe(v.current),()=>{T.disconnect()}}},[e]),S.useEffect(()=>{if(r){let A=setTimeout(()=>{l(!0)},100);return()=>{clearTimeout(A)}}},[r]);let b=()=>{o(!0)},x=()=>{o(!1),l(!1)};return n?e!=="intent"?[s,v,{}]:[s,v,{onFocus:ec(u,b),onBlur:ec(d,x),onMouseEnter:ec(f,b),onMouseLeave:ec(p,x),onTouchStart:ec(m,b)}]:[!1,v,{}]}function ec(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function SF({page:e,...t}){let{router:n}=L1(),r=S.useMemo(()=>S1(n.routes,e,n.basename),[n.routes,e,n.basename]);return r?S.createElement(AF,{page:e,matches:r,...t}):null}function xF(e){let{manifest:t,routeModules:n}=j1(),[r,o]=S.useState([]);return S.useEffect(()=>{let s=!1;return mF(e,t,n).then(l=>{s||o(l)}),()=>{s=!0}},[e,t,n]),r}function AF({page:e,matches:t,...n}){let r=go(),{manifest:o,routeModules:s}=j1(),{basename:l}=L1(),{loaderData:u,matches:d}=_F(),f=S.useMemo(()=>DA(e,t,d,o,r,"data"),[e,t,d,o,r]),p=S.useMemo(()=>DA(e,t,d,o,r,"assets"),[e,t,d,o,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=o.routes[N.route.id];!E||!E.hasLoader||(!f.some(w=>w.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 T=fF(e,l,"data");return A&&x.size>0&&T.searchParams.set("_routes",t.filter(N=>x.has(N.route.id)).map(N=>N.route.id).join(",")),[T.pathname+T.search]},[l,u,r,o,f,t,e,s]),v=S.useMemo(()=>gF(p,o),[p,o]),b=xF(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})),b.map(({key:x,link:A})=>S.createElement("link",{key:x,nonce:n.nonce,...A})))}function wF(...e){return t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})}}var P1=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{P1&&(window.__reactRouterVersion="7.9.2")}catch{}function TF({basename:e,children:t,window:n}){let r=S.useRef();r.current==null&&(r.current=hU({window:n,v5Compat:!0}));let o=r.current,[s,l]=S.useState({action:o.action,location:o.location}),u=S.useCallback(d=>{S.startTransition(()=>l(d))},[l]);return S.useLayoutEffect(()=>o.listen(u),[o,u]),S.createElement(nF,{basename:e,children:t,location:s.location,navigationType:s.action,navigator:o})}var M1=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,z1=S.forwardRef(function({onClick:t,discover:n="render",prefetch:r="none",relative:o,reloadDocument:s,replace:l,state:u,target:d,to:f,preventScrollReset:p,viewTransition:m,...v},b){let{basename:x}=S.useContext(Yr),A=typeof f=="string"&&M1.test(f),T,N=!1;if(typeof f=="string"&&A&&(T=f,P1))try{let V=new URL(window.location.href),H=f.startsWith("//")?new URL(V.protocol+f):new URL(f),Z=bi(H.pathname,x);H.origin===V.origin&&Z!=null?f=Z+H.search+H.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=VU(f,{relative:o}),[w,R,C]=EF(r,v),I=NF(f,{replace:l,state:u,target:d,preventScrollReset:p,relative:o,viewTransition:m});function D(V){t&&t(V),V.defaultPrevented||I(V)}let L=S.createElement("a",{...v,...C,href:T||E,onClick:N||s?t:D,ref:wF(b,R),target:d,"data-discover":!A&&n==="render"?"true":void 0});return w&&!A?S.createElement(S.Fragment,null,L,S.createElement(SF,{page:E})):L});z1.displayName="Link";var CF=S.forwardRef(function({"aria-current":t="page",caseSensitive:n=!1,className:r="",end:o=!1,style:s,to:l,viewTransition:u,children:d,...f},p){let m=iu(l,{relative:f.relative}),v=go(),b=S.useContext(vh),{navigator:x,basename:A}=S.useContext(Yr),T=b!=null&&jF(m)&&u===!0,N=x.encodeLocation?x.encodeLocation(m).pathname:m.pathname,E=v.pathname,w=b&&b.navigation&&b.navigation.location?b.navigation.location.pathname:null;n||(E=E.toLowerCase(),w=w?w.toLowerCase():null,N=N.toLowerCase()),w&&A&&(w=bi(w,A)||w);const R=N!=="/"&&N.endsWith("/")?N.length-1:N.length;let C=E===N||!o&&E.startsWith(N)&&E.charAt(R)==="/",I=w!=null&&(w===N||!o&&w.startsWith(N)&&w.charAt(N.length)==="/"),D={isActive:C,isPending:I,isTransitioning:T},L=C?t:void 0,V;typeof r=="function"?V=r(D):V=[r,C?"active":null,I?"pending":null,T?"transitioning":null].filter(Boolean).join(" ");let H=typeof s=="function"?s(D):s;return S.createElement(z1,{...f,"aria-current":L,className:V,ref:p,style:H,to:l,viewTransition:u},typeof d=="function"?d(D):d)});CF.displayName="NavLink";var RF=S.forwardRef(({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:r,replace:o,state:s,method:l=yf,action:u,onSubmit:d,relative:f,preventScrollReset:p,viewTransition:m,...v},b)=>{let x=DF(),A=LF(u,{relative:f}),T=l.toLowerCase()==="get"?"get":"post",N=typeof u=="string"&&M1.test(u),E=w=>{if(d&&d(w),w.defaultPrevented)return;w.preventDefault();let R=w.nativeEvent.submitter,C=R?.getAttribute("formmethod")||l;x(R||w.currentTarget,{fetcherKey:t,method:C,navigate:n,replace:o,state:s,relative:f,preventScrollReset:p,viewTransition:m})};return S.createElement("form",{ref:b,method:T,action:A,onSubmit:r?d:E,...v,"data-discover":!N&&e==="render"?"true":void 0})});RF.displayName="Form";function kF(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function B1(e){let t=S.useContext(Vs);return Tt(t,kF(e)),t}function NF(e,{target:t,replace:n,state:r,preventScrollReset:o,relative:s,viewTransition:l}={}){let u=UU(),d=go(),f=iu(e,{relative:s});return S.useCallback(p=>{if(lF(p,t)){p.preventDefault();let m=n!==void 0?n:Lc(d)===Lc(f);u(e,{replace:m,state:r,preventScrollReset:o,relative:s,viewTransition:l})}},[d,u,f,n,r,t,e,o,s,l])}var IF=0,OF=()=>`__${String(++IF)}__`;function DF(){let{router:e}=B1("useSubmit"),{basename:t}=S.useContext(Yr),n=QU();return S.useCallback(async(r,o={})=>{let{action:s,method:l,encType:u,formData:d,body:f}=dF(r,t);if(o.navigate===!1){let p=o.fetcherKey||OF();await e.fetch(p,n,o.action||s,{preventScrollReset:o.preventScrollReset,formData:d,body:f,formMethod:o.method||l,formEncType:o.encType||u,flushSync:o.flushSync})}else await e.navigate(o.action||s,{preventScrollReset:o.preventScrollReset,formData:d,body:f,formMethod:o.method||l,formEncType:o.encType||u,replace:o.replace,state:o.state,fromRouteId:n,flushSync:o.flushSync,viewTransition:o.viewTransition})},[e,t,n])}function LF(e,{relative:t}={}){let{basename:n}=S.useContext(Yr),r=S.useContext(wi);Tt(r,"useFormAction must be used inside a RouteContext");let[o]=r.matches.slice(-1),s={...iu(e||".",{relative:t})},l=go();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===".")&&o.route.index&&(s.search=s.search?s.search.replace(/^\?/,"?index&"):"?index"),n!=="/"&&(s.pathname=s.pathname==="/"?n:vi([n,s.pathname])),Lc(s)}function jF(e,{relative:t}={}){let n=S.useContext(R1);Tt(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=B1("useViewTransitionState"),o=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(o.pathname,l)!=null||Pf(o.pathname,s)!=null}var ma=qR();const PF=fb(ma);/**
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 MF=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),zF=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,r)=>r?r.toUpperCase():n.toLowerCase()),LA=e=>{const t=zF(e);return t.charAt(0).toUpperCase()+t.slice(1)},V1=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim(),BF=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 VF={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 UF=S.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:s,iconNode:l,...u},d)=>S.createElement("svg",{ref:d,...VF,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:V1("lucide",o),...!s&&!BF(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,...o},s)=>S.createElement(UF,{ref:s,iconNode:t,className:V1(`lucide-${MF(LA(e))}`,`lucide-${e}`,r),...o}));return n.displayName=LA(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 FF=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],HF=bt("arrow-left",FF);/**
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 $F=[["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",$F);/**
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 KF=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Us=bt("check",KF);/**
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 qF=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],U1=bt("chevron-down",qF);/**
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 WF=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],ZF=bt("chevron-left",WF);/**
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 YF=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],Mf=bt("chevron-right",YF);/**
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 XF=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],QF=bt("chevron-up",XF);/**
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 JF=[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]],eH=bt("chevrons-up-down",JF);/**
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 tH=[["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"}]],nH=bt("copy-check",tH);/**
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 rH=[["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"}]],iH=bt("copy",rH);/**
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 oH=[["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",oH);/**
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 sH=[["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"}]],lH=bt("external-link",sH);/**
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 cH=[["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"}]],uH=bt("eye-off",cH);/**
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 dH=[["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"}]],fH=bt("eye",dH);/**
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 hH=[["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"}]],pH=bt("globe",hH);/**
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 mH=[["path",{d:"M11 19H5v-6",key:"8awifj"}],["path",{d:"M13 5h6v6",key:"7voy1q"}],["path",{d:"M19 5 5 19",key:"wwaj1z"}]],gH=bt("move-diagonal",mH);/**
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 yH=[["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"}]],vH=bt("move-vertical",yH);/**
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 bH=[["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"}]],F1=bt("pencil",bH);/**
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 _H=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],_h=bt("plus",_H);/**
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 EH=[["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"}]],SH=bt("rotate-ccw",EH);/**
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 xH=[["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"}]],jA=bt("save",xH);/**
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 AH=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],wH=bt("search",AH);/**
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 CH=[["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"}]],H1=bt("wand-sparkles",CH);/**
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 RH=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],ga=bt("x",RH);function $1(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=$1(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="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=$1(e))&&(r&&(r+=" "),r+=t);return r}const wb="-",kH=e=>{const t=IH(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:l=>{const u=l.split(wb);return u[0]===""&&u.length!==1&&u.shift(),G1(u,t)||NH(l)},getConflictingClassGroupIds:(l,u)=>{const d=n[l]||[];return u&&r[l]?[...d,...r[l]]:d}}},G1=(e,t)=>{if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?G1(e.slice(1),r):void 0;if(o)return o;if(t.validators.length===0)return;const s=e.join(wb);return t.validators.find(({validator:l})=>l(s))?.classGroupId},PA=/^\[(.+)\]$/,NH=e=>{if(PA.test(e)){const t=PA.exec(e)[1],n=t?.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},IH=e=>{const{theme:t,classGroups:n}=e,r={nextPart:new Map,validators:[]};for(const o in n)Vy(n[o],r,o,t);return r},Vy=(e,t,n,r)=>{e.forEach(o=>{if(typeof o=="string"){const s=o===""?t:MA(t,o);s.classGroupId=n;return}if(typeof o=="function"){if(OH(o)){Vy(o(r),t,n,r);return}t.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(([s,l])=>{Vy(l,MA(t,s),n,r)})})},MA=(e,t)=>{let n=e;return t.split(wb).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},OH=e=>e.isThemeGetter,DH=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const o=(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 o(s,l),l},set(s,l){n.has(s)?n.set(s,l):o(s,l)}}},Uy="!",Fy=":",LH=Fy.length,jH=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=o=>{const s=[];let l=0,u=0,d=0,f;for(let x=0;x<o.length;x++){let A=o[x];if(l===0&&u===0){if(A===Fy){s.push(o.slice(d,x)),d=x+LH;continue}if(A==="/"){f=x;continue}}A==="["?l++:A==="]"?l--:A==="("?u++:A===")"&&u--}const p=s.length===0?o:o.substring(d),m=PH(p),v=m!==p,b=f&&f>d?f-d:void 0;return{modifiers:s,hasImportantModifier:v,baseClassName:m,maybePostfixModifierPosition:b}};if(t){const o=t+Fy,s=r;r=l=>l.startsWith(o)?s(l.substring(o.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:l,maybePostfixModifierPosition:void 0}}if(n){const o=r;r=s=>n({className:s,parseClassName:o})}return r},PH=e=>e.endsWith(Uy)?e.substring(0,e.length-1):e.startsWith(Uy)?e.substring(1):e,MH=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(r=>[r,!0]));return r=>{if(r.length<=1)return r;const o=[];let s=[];return r.forEach(l=>{l[0]==="["||t[l]?(o.push(...s.sort(),l),s=[]):s.push(l)}),o.push(...s.sort()),o}},zH=e=>({cache:DH(e.cacheSize),parseClassName:jH(e),sortModifiers:MH(e),...kH(e)}),BH=/\s+/,VH=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o,sortModifiers:s}=t,l=[],u=e.trim().split(BH);let d="";for(let f=u.length-1;f>=0;f-=1){const p=u[f],{isExternal:m,modifiers:v,hasImportantModifier:b,baseClassName:x,maybePostfixModifierPosition:A}=n(p);if(m){d=p+(d.length>0?" "+d:d);continue}let T=!!A,N=r(T?x.substring(0,A):x);if(!N){if(!T){d=p+(d.length>0?" "+d:d);continue}if(N=r(x),!N){d=p+(d.length>0?" "+d:d);continue}T=!1}const E=s(v).join(":"),w=b?E+Uy:E,R=w+N;if(l.includes(R))continue;l.push(R);const C=o(N,T);for(let I=0;I<C.length;++I){const D=C[I];l.push(w+D)}d=p+(d.length>0?" "+d:d)}return d};function UH(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=K1(t))&&(r&&(r+=" "),r+=n);return r}const K1=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=K1(e[r]))&&(n&&(n+=" "),n+=t);return n};function FH(e,...t){let n,r,o,s=l;function l(d){const f=t.reduce((p,m)=>m(p),e());return n=zH(f),r=n.cache.get,o=n.cache.set,s=u,u(d)}function u(d){const f=r(d);if(f)return f;const p=VH(d,n);return o(d,p),p}return function(){return s(UH.apply(null,arguments))}}const Kt=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},q1=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,W1=/^\((?:(\w[\w-]*):)?(.+)\)$/i,HH=/^\d+\/\d+$/,$H=/^(\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$/,KH=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,qH=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,WH=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,as=e=>HH.test(e),qe=e=>!!e&&!Number.isNaN(Number(e)),Ji=e=>!!e&&Number.isInteger(Number(e)),wg=e=>e.endsWith("%")&&qe(e.slice(0,-1)),mi=e=>$H.test(e),ZH=()=>!0,YH=e=>GH.test(e)&&!KH.test(e),Z1=()=>!1,XH=e=>qH.test(e),QH=e=>WH.test(e),JH=e=>!we(e)&&!Te(e),e$=e=>Fs(e,Q1,Z1),we=e=>q1.test(e),Ko=e=>Fs(e,J1,YH),Tg=e=>Fs(e,o$,qe),zA=e=>Fs(e,Y1,Z1),t$=e=>Fs(e,X1,QH),Ud=e=>Fs(e,ek,XH),Te=e=>W1.test(e),tc=e=>Hs(e,J1),n$=e=>Hs(e,a$),BA=e=>Hs(e,Y1),r$=e=>Hs(e,Q1),i$=e=>Hs(e,X1),Fd=e=>Hs(e,ek,!0),Fs=(e,t,n)=>{const r=q1.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},Hs=(e,t,n=!1)=>{const r=W1.exec(e);return r?r[1]?t(r[1]):n:!1},Y1=e=>e==="position"||e==="percentage",X1=e=>e==="image"||e==="url",Q1=e=>e==="length"||e==="size"||e==="bg-size",J1=e=>e==="length",o$=e=>e==="number",a$=e=>e==="family-name",ek=e=>e==="shadow",s$=()=>{const e=Kt("color"),t=Kt("font"),n=Kt("text"),r=Kt("font-weight"),o=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"),b=Kt("drop-shadow"),x=Kt("blur"),A=Kt("perspective"),T=Kt("aspect"),N=Kt("ease"),E=Kt("animate"),w=()=>["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(),Te,we],I=()=>["auto","hidden","clip","visible","scroll"],D=()=>["auto","contain","none"],L=()=>[Te,we,d],V=()=>[as,"full","auto",...L()],H=()=>[Ji,"none","subgrid",Te,we],Z=()=>["auto",{span:["full",Ji,Te,we]},Ji,Te,we],Q=()=>[Ji,"auto",Te,we],le=()=>["auto","min","max","fr",Te,we],q=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],oe=()=>["start","end","center","stretch","center-safe","end-safe"],z=()=>["auto",...L()],ee=()=>[as,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...L()],W=()=>[e,Te,we],be=()=>[...R(),BA,zA,{position:[Te,we]}],P=()=>["no-repeat",{repeat:["","x","y","space","round"]}],ie=()=>["auto","cover","contain",r$,e$,{size:[Te,we]}],G=()=>[wg,tc,Ko],ne=()=>["","none","full",f,Te,we],ue=()=>["",qe,tc,Ko],pe=()=>["solid","dashed","dotted","double"],ve=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],fe=()=>[qe,wg,BA,zA],xe=()=>["","none",x,Te,we],je=()=>["none",qe,Te,we],Ve=()=>["none",qe,Te,we],Xe=()=>[qe,Te,we],nt=()=>[as,"full",...L()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[mi],breakpoint:[mi],color:[ZH],container:[mi],"drop-shadow":[mi],ease:["in","out","in-out"],font:[JH],"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",as,we,Te,T]}],container:["container"],columns:[{columns:[qe,we,Te,u]}],"break-after":[{"break-after":w()}],"break-before":[{"break-before":w()}],"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:V()}],"inset-x":[{"inset-x":V()}],"inset-y":[{"inset-y":V()}],start:[{start:V()}],end:[{end:V()}],top:[{top:V()}],right:[{right:V()}],bottom:[{bottom:V()}],left:[{left:V()}],visibility:["visible","invisible","collapse"],z:[{z:[Ji,"auto",Te,we]}],basis:[{basis:[as,"full","auto",u,...L()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[qe,as,"auto","initial","none",we]}],grow:[{grow:["",qe,Te,we]}],shrink:[{shrink:["",qe,Te,we]}],order:[{order:[Ji,"first","last","none",Te,we]}],"grid-cols":[{"grid-cols":H()}],"col-start-end":[{col:Z()}],"col-start":[{"col-start":Q()}],"col-end":[{"col-end":Q()}],"grid-rows":[{"grid-rows":H()}],"row-start-end":[{row:Z()}],"row-start":[{"row-start":Q()}],"row-end":[{"row-end":Q()}],"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:[...q(),"normal"]}],"justify-items":[{"justify-items":[...oe(),"normal"]}],"justify-self":[{"justify-self":["auto",...oe()]}],"align-content":[{content:["normal",...q()]}],"align-items":[{items:[...oe(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...oe(),{baseline:["","last"]}]}],"place-content":[{"place-content":q()}],"place-items":[{"place-items":[...oe(),"baseline"]}],"place-self":[{"place-self":["auto",...oe()]}],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:ee()}],w:[{w:[u,"screen",...ee()]}],"min-w":[{"min-w":[u,"screen","none",...ee()]}],"max-w":[{"max-w":[u,"screen","none","prose",{screen:[l]},...ee()]}],h:[{h:["screen","lh",...ee()]}],"min-h":[{"min-h":["screen","lh","none",...ee()]}],"max-h":[{"max-h":["screen","lh",...ee()]}],"font-size":[{text:["base",n,tc,Ko]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,Te,Tg]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",wg,we]}],"font-family":[{font:[n$,we,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,Te,we]}],"line-clamp":[{"line-clamp":[qe,"none",Te,Tg]}],leading:[{leading:[s,...L()]}],"list-image":[{"list-image":["none",Te,we]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",Te,we]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:W()}],"text-color":[{text:W()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...pe(),"wavy"]}],"text-decoration-thickness":[{decoration:[qe,"from-font","auto",Te,Ko]}],"text-decoration-color":[{decoration:W()}],"underline-offset":[{"underline-offset":[qe,"auto",Te,we]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:L()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Te,we]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Te,we]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:be()}],"bg-repeat":[{bg:P()}],"bg-size":[{bg:ie()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Ji,Te,we],radial:["",Te,we],conic:[Ji,Te,we]},i$,t$]}],"bg-color":[{bg:W()}],"gradient-from-pos":[{from:G()}],"gradient-via-pos":[{via:G()}],"gradient-to-pos":[{to:G()}],"gradient-from":[{from:W()}],"gradient-via":[{via:W()}],"gradient-to":[{to:W()}],rounded:[{rounded:ne()}],"rounded-s":[{"rounded-s":ne()}],"rounded-e":[{"rounded-e":ne()}],"rounded-t":[{"rounded-t":ne()}],"rounded-r":[{"rounded-r":ne()}],"rounded-b":[{"rounded-b":ne()}],"rounded-l":[{"rounded-l":ne()}],"rounded-ss":[{"rounded-ss":ne()}],"rounded-se":[{"rounded-se":ne()}],"rounded-ee":[{"rounded-ee":ne()}],"rounded-es":[{"rounded-es":ne()}],"rounded-tl":[{"rounded-tl":ne()}],"rounded-tr":[{"rounded-tr":ne()}],"rounded-br":[{"rounded-br":ne()}],"rounded-bl":[{"rounded-bl":ne()}],"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:W()}],"border-color-x":[{"border-x":W()}],"border-color-y":[{"border-y":W()}],"border-color-s":[{"border-s":W()}],"border-color-e":[{"border-e":W()}],"border-color-t":[{"border-t":W()}],"border-color-r":[{"border-r":W()}],"border-color-b":[{"border-b":W()}],"border-color-l":[{"border-l":W()}],"divide-color":[{divide:W()}],"outline-style":[{outline:[...pe(),"none","hidden"]}],"outline-offset":[{"outline-offset":[qe,Te,we]}],"outline-w":[{outline:["",qe,tc,Ko]}],"outline-color":[{outline:W()}],shadow:[{shadow:["","none",p,Fd,Ud]}],"shadow-color":[{shadow:W()}],"inset-shadow":[{"inset-shadow":["none",m,Fd,Ud]}],"inset-shadow-color":[{"inset-shadow":W()}],"ring-w":[{ring:ue()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:W()}],"ring-offset-w":[{"ring-offset":[qe,Ko]}],"ring-offset-color":[{"ring-offset":W()}],"inset-ring-w":[{"inset-ring":ue()}],"inset-ring-color":[{"inset-ring":W()}],"text-shadow":[{"text-shadow":["none",v,Fd,Ud]}],"text-shadow-color":[{"text-shadow":W()}],opacity:[{opacity:[qe,Te,we]}],"mix-blend":[{"mix-blend":[...ve(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ve()}],"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":W()}],"mask-image-linear-to-color":[{"mask-linear-to":W()}],"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":W()}],"mask-image-t-to-color":[{"mask-t-to":W()}],"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":W()}],"mask-image-r-to-color":[{"mask-r-to":W()}],"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":W()}],"mask-image-b-to-color":[{"mask-b-to":W()}],"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":W()}],"mask-image-l-to-color":[{"mask-l-to":W()}],"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":W()}],"mask-image-x-to-color":[{"mask-x-to":W()}],"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":W()}],"mask-image-y-to-color":[{"mask-y-to":W()}],"mask-image-radial":[{"mask-radial":[Te,we]}],"mask-image-radial-from-pos":[{"mask-radial-from":fe()}],"mask-image-radial-to-pos":[{"mask-radial-to":fe()}],"mask-image-radial-from-color":[{"mask-radial-from":W()}],"mask-image-radial-to-color":[{"mask-radial-to":W()}],"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":W()}],"mask-image-conic-to-color":[{"mask-conic-to":W()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:be()}],"mask-repeat":[{mask:P()}],"mask-size":[{mask:ie()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",Te,we]}],filter:[{filter:["","none",Te,we]}],blur:[{blur:xe()}],brightness:[{brightness:[qe,Te,we]}],contrast:[{contrast:[qe,Te,we]}],"drop-shadow":[{"drop-shadow":["","none",b,Fd,Ud]}],"drop-shadow-color":[{"drop-shadow":W()}],grayscale:[{grayscale:["",qe,Te,we]}],"hue-rotate":[{"hue-rotate":[qe,Te,we]}],invert:[{invert:["",qe,Te,we]}],saturate:[{saturate:[qe,Te,we]}],sepia:[{sepia:["",qe,Te,we]}],"backdrop-filter":[{"backdrop-filter":["","none",Te,we]}],"backdrop-blur":[{"backdrop-blur":xe()}],"backdrop-brightness":[{"backdrop-brightness":[qe,Te,we]}],"backdrop-contrast":[{"backdrop-contrast":[qe,Te,we]}],"backdrop-grayscale":[{"backdrop-grayscale":["",qe,Te,we]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[qe,Te,we]}],"backdrop-invert":[{"backdrop-invert":["",qe,Te,we]}],"backdrop-opacity":[{"backdrop-opacity":[qe,Te,we]}],"backdrop-saturate":[{"backdrop-saturate":[qe,Te,we]}],"backdrop-sepia":[{"backdrop-sepia":["",qe,Te,we]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":L()}],"border-spacing-x":[{"border-spacing-x":L()}],"border-spacing-y":[{"border-spacing-y":L()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",Te,we]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[qe,"initial",Te,we]}],ease:[{ease:["linear","initial",N,Te,we]}],delay:[{delay:[qe,Te,we]}],animate:[{animate:["none",E,Te,we]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[A,Te,we]}],"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:[Te,we,"","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:W()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:W()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",Te,we]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":L()}],"scroll-mx":[{"scroll-mx":L()}],"scroll-my":[{"scroll-my":L()}],"scroll-ms":[{"scroll-ms":L()}],"scroll-me":[{"scroll-me":L()}],"scroll-mt":[{"scroll-mt":L()}],"scroll-mr":[{"scroll-mr":L()}],"scroll-mb":[{"scroll-mb":L()}],"scroll-ml":[{"scroll-ml":L()}],"scroll-p":[{"scroll-p":L()}],"scroll-px":[{"scroll-px":L()}],"scroll-py":[{"scroll-py":L()}],"scroll-ps":[{"scroll-ps":L()}],"scroll-pe":[{"scroll-pe":L()}],"scroll-pt":[{"scroll-pt":L()}],"scroll-pr":[{"scroll-pr":L()}],"scroll-pb":[{"scroll-pb":L()}],"scroll-pl":[{"scroll-pl":L()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",Te,we]}],fill:[{fill:["none",...W()]}],"stroke-w":[{stroke:[qe,tc,Ko,Tg]}],stroke:[{stroke:["none",...W()]}],"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"]}},tk=FH(s$),ye=(...e)=>tk(Sh(e)),VA=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,UA=Sh,Tn=(e,t)=>n=>{var r;if(t?.variants==null)return UA(e,n?.class,n?.className);const{variants:o,defaultVariants:s}=t,l=Object.keys(o).map(f=>{const p=n?.[f],m=s?.[f];if(p===null)return null;const v=VA(p)||VA(m);return o[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,...b}=p;return Object.entries(b).every(x=>{let[A,T]=x;return Array.isArray(T)?T.includes({...s,...u}[A]):{...s,...u}[A]===T})?[...f,m,v]:f},[]);return UA(e,l,d,n?.class,n?.className)},l$=({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:ye("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:ye("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(l$,{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=Tn("",{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||{}),at=(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))(at||{}),ks=(e=>(e.LEFT="left",e.CENTER="center",e.RIGHT="right",e))(ks||{});const c$=Tn("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:o,IconRight:s,iconClassName:l,isLoading:u,isActive:d,isFullWidth:f=!1,textAlign:p,disabled:m,label:v,className:b,type:x="button",...A})=>{const T=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:T?"link":void 0,type:x,className:c$({variant:e,size:t,color:n,isFullWidth:f,textAlign:p??(s?"left":"center"),hasIconLeft:typeof r<"u"&&(typeof o<"u"||typeof u<"u"),hasIconRight:typeof r<"u"&&typeof s<"u",className:b}),...A,children:[o&&!u&&y.jsx(o,{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:o=!1,minHeight:s=0,...l})=>y.jsx("div",{"aria-hidden":o?t:void 0,tabIndex:o?0:void 0,role:o?"button":"none",className:ye("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",o&&"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:ye(r&&"group-hover/height-smoother:visible",o&&"group-focus/height-smoother:visible",n),children:e})}),nk=({children:e,header:t,isOpen:n=!1,onClick:r,...o})=>{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:at.TEXT,onClick:d=>{l(f=>!f),r?.(d)},isFullWidth:!0,className:"flex items-center justify-between gap-2",IconRight:U1,iconClassName:ye("transform transition-transform duration-500 ease-in-out",s?"rotate-0":"-rotate-180"),...o,children:t}),y.jsx(Tb,{tabIndex:u!==!1?void 0:-1,isHidden:u,children:e})]})};var rk=(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))(rk||{});const u$=Tn("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"}}),d$=({className:e,variant:t,color:n,...r})=>y.jsx("div",{className:ye(u$({variant:t,color:n}),e),...r});var ik=(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))(ik||{});const f$=Tn("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"}}),h$=({href:e,isExternalLink:t})=>{const n=typeof e=="string"&&e.trim()!=="";return t===!0||typeof t>"u"&&n&&/^https?:\/\//.test(e)},Cb=e=>{const{variant:t="default",color:n="primary",children:r,label:o,className:s,isActive:l,underlined:u,locale:d,isExternalLink:f,href:p,...m}=e,{internationalization:v}=ot,b=h$(e),x=typeof r=="string",A=b?"noopener noreferrer nofollow":void 0,T=b?"_blank":"_self",N=d?d===v.defaultLocale?"x-default":d:void 0,E=d&&p&&!b?CV(p,d):p;return y.jsxs("a",{href:E,hrefLang:N,"aria-label":o,rel:A,target:T,"aria-current":l?"page":void 0,className:ye(f$({variant:t,color:n,underlined:u,className:s})),...m,children:[t==="button"?y.jsx("span",{children:r}):r,b&&x&&y.jsx(lH,{className:"ml-2 inline-block size-4"})]})},p$=({href:e,lang:t,children:n,onClick:r,color:o,position:s,locale:l,...u})=>{const{linkLabel:d}=dn("breadcrumb");return y.jsxs(y.Fragment,{children:[y.jsx(Cb,{href:e,locale:l,color:o,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()})]})},m$=({children:e,onClick:t,color:n,position:r,...o})=>{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",...o,children:y.jsx("span",{itemProp:"name",children:e})}),y.jsx("meta",{itemProp:"position",content:r.toString()})]})},g$=({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()})]}),y$=({links:e,className:t,color:n=ik.TEXT,locale:r,elementType:o="page",...s})=>y.jsx("nav",{"aria-label":"breadcrumb",children:y.jsx("ol",{className:ye("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?o:void 0,b=l.text??l;let x=y.jsx(g$,{position:u+1,"aria-current":v,children:b},b);f?x=y.jsx(p$,{href:l.href,color:n,position:u+1,locale:r,"aria-current":v,children:b},b):p&&(x=y.jsx(m$,{onClick:l.onClick,color:n,position:u+1,"aria-current":v,children:b},b));const A=y.jsx("li",{itemProp:"itemListElement",itemScope:!0,itemType:"https://schema.org/ListItem",children:x},b);return d?A:y.jsxs(S.Fragment,{children:[A,y.jsx(Mf,{size:10})]},b)})})});function Je(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e?.(o),n===!1||!o.defaultPrevented)return t?.(o)}}function FA(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function oa(...e){return t=>{let n=!1;const r=e.map(o=>{const s=FA(o,t);return!n&&typeof s=="function"&&(n=!0),s});if(n)return()=>{for(let o=0;o<r.length;o++){const s=r[o];typeof s=="function"?s():FA(e[o],null)}}}}function Ct(...e){return S.useCallback(oa(...e),e)}function v$(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 o(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,o]}function ou(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:b,...x}=m,A=v?.[e]?.[d]||u,T=S.useMemo(()=>x,Object.values(x));return y.jsx(A.Provider,{value:T,children:b})};f.displayName=s+"Provider";function p(m,v){const b=v?.[e]?.[d]||u,x=S.useContext(b);if(x)return x;if(l!==void 0)return l;throw new Error(`\`${m}\` must be used within \`${s}\``)}return[f,p]}const o=()=>{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 o.scopeName=e,[r,b$(o,...t)]}function b$(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.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:()=>{},_$=KR[" useId ".trim().toString()]||(()=>{}),E$=0;function hr(e){const[t,n]=S.useState(_$());return un(()=>{n(r=>r??String(E$++))},[e]),t?`radix-${t}`:""}var S$=KR[" useInsertionEffect ".trim().toString()]||un;function zf({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,s,l]=x$({defaultProp:t,onChange:n}),u=e!==void 0,d=u?e:o;{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=A$(p)?p(e):p;m!==e&&l.current?.(m)}else s(p)},[u,e,s,l]);return[d,f]}function x$({defaultProp:e,onChange:t}){const[n,r]=S.useState(e),o=S.useRef(n),s=S.useRef(t);return S$(()=>{s.current=t},[t]),S.useEffect(()=>{o.current!==n&&(s.current?.(n),o.current=n)},[n,o]),[n,r,s]}function A$(e){return typeof e=="function"}function Ns(e){const t=T$(e),n=S.forwardRef((r,o)=>{const{children:s,...l}=r,u=S.Children.toArray(s),d=u.find(R$);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:o,children:S.isValidElement(f)?S.cloneElement(f,void 0,p):null})}return y.jsx(t,{...l,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}var w$=Ns("Slot");function T$(e){const t=S.forwardRef((n,r)=>{const{children:o,...s}=n;if(S.isValidElement(o)){const l=N$(o),u=k$(s,o.props);return o.type!==S.Fragment&&(u.ref=r?oa(r,l):l),S.cloneElement(o,u)}return S.Children.count(o)>1?S.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var C$=Symbol("radix.slottable");function R$(e){return S.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===C$}function k$(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...u)=>{const d=s(...u);return o(...u),d}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function N$(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 I$=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Ge=I$.reduce((e,t)=>{const n=Ns(`Primitive.${t}`),r=S.forwardRef((o,s)=>{const{asChild:l,...u}=o,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 ok(e,t){e&&ma.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 O$(e,t=globalThis?.document){const n=Ar(e);S.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var D$="DismissableLayer",Hy="dismissableLayer.update",L$="dismissableLayer.pointerDownOutside",j$="dismissableLayer.focusOutside",HA,ak=S.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),xh=S.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:s,onInteractOutside:l,onDismiss:u,...d}=e,f=S.useContext(ak),[p,m]=S.useState(null),v=p?.ownerDocument??globalThis?.document,[,b]=S.useState({}),x=Ct(t,D=>m(D)),A=Array.from(f.layers),[T]=[...f.layersWithOutsidePointerEventsDisabled].slice(-1),N=A.indexOf(T),E=p?A.indexOf(p):-1,w=f.layersWithOutsidePointerEventsDisabled.size>0,R=E>=N,C=M$(D=>{const L=D.target,V=[...f.branches].some(H=>H.contains(L));!R||V||(o?.(D),l?.(D),D.defaultPrevented||u?.())},v),I=z$(D=>{const L=D.target;[...f.branches].some(H=>H.contains(L))||(s?.(D),l?.(D),D.defaultPrevented||u?.())},v);return O$(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&&(HA=v.body.style.pointerEvents,v.body.style.pointerEvents="none"),f.layersWithOutsidePointerEventsDisabled.add(p)),f.layers.add(p),$A(),()=>{n&&f.layersWithOutsidePointerEventsDisabled.size===1&&(v.body.style.pointerEvents=HA)}},[p,v,n,f]),S.useEffect(()=>()=>{p&&(f.layers.delete(p),f.layersWithOutsidePointerEventsDisabled.delete(p),$A())},[p,f]),S.useEffect(()=>{const D=()=>b({});return document.addEventListener(Hy,D),()=>document.removeEventListener(Hy,D)},[]),y.jsx(Ge.div,{...d,ref:x,style:{pointerEvents:w?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=D$;var P$="DismissableLayerBranch",sk=S.forwardRef((e,t)=>{const n=S.useContext(ak),r=S.useRef(null),o=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(Ge.div,{...e,ref:o})});sk.displayName=P$;function M$(e,t=globalThis?.document){const n=Ar(e),r=S.useRef(!1),o=S.useRef(()=>{});return S.useEffect(()=>{const s=u=>{if(u.target&&!r.current){let d=function(){lk(L$,n,f,{discrete:!0})};const f={originalEvent:u};u.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=d,t.addEventListener("click",o.current,{once:!0})):d()}else t.removeEventListener("click",o.current);r.current=!1},l=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(l),t.removeEventListener("pointerdown",s),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function z$(e,t=globalThis?.document){const n=Ar(e),r=S.useRef(!1);return S.useEffect(()=>{const o=s=>{s.target&&!r.current&&lk(j$,n,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function $A(){const e=new CustomEvent(Hy);document.dispatchEvent(e)}function lk(e,t,n,{discrete:r}){const o=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?ok(o,s):o.dispatchEvent(s)}var B$=xh,V$=sk,Rg="focusScope.autoFocusOnMount",kg="focusScope.autoFocusOnUnmount",GA={bubbles:!1,cancelable:!0},U$="FocusScope",Rb=S.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:s,...l}=e,[u,d]=S.useState(null),f=Ar(o),p=Ar(s),m=S.useRef(null),v=Ct(t,A=>d(A)),b=S.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;S.useEffect(()=>{if(r){let A=function(w){if(b.paused||!u)return;const R=w.target;u.contains(R)?m.current=R:no(m.current,{select:!0})},T=function(w){if(b.paused||!u)return;const R=w.relatedTarget;R!==null&&(u.contains(R)||no(m.current,{select:!0}))},N=function(w){if(document.activeElement===document.body)for(const C of w)C.removedNodes.length>0&&no(u)};document.addEventListener("focusin",A),document.addEventListener("focusout",T);const E=new MutationObserver(N);return u&&E.observe(u,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",A),document.removeEventListener("focusout",T),E.disconnect()}}},[r,u,b.paused]),S.useEffect(()=>{if(u){qA.add(b);const A=document.activeElement;if(!u.contains(A)){const N=new CustomEvent(Rg,GA);u.addEventListener(Rg,f),u.dispatchEvent(N),N.defaultPrevented||(F$(q$(ck(u)),{select:!0}),document.activeElement===A&&no(u))}return()=>{u.removeEventListener(Rg,f),setTimeout(()=>{const N=new CustomEvent(kg,GA);u.addEventListener(kg,p),u.dispatchEvent(N),N.defaultPrevented||no(A??document.body,{select:!0}),u.removeEventListener(kg,p),qA.remove(b)},0)}}},[u,f,p,b]);const x=S.useCallback(A=>{if(!n&&!r||b.paused)return;const T=A.key==="Tab"&&!A.altKey&&!A.ctrlKey&&!A.metaKey,N=document.activeElement;if(T&&N){const E=A.currentTarget,[w,R]=H$(E);w&&R?!A.shiftKey&&N===R?(A.preventDefault(),n&&no(w,{select:!0})):A.shiftKey&&N===w&&(A.preventDefault(),n&&no(R,{select:!0})):N===E&&A.preventDefault()}},[n,r,b.paused]);return y.jsx(Ge.div,{tabIndex:-1,...l,ref:v,onKeyDown:x})});Rb.displayName=U$;function F$(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(no(r,{select:t}),document.activeElement!==n)return}function H$(e){const t=ck(e),n=KA(t,e),r=KA(t.reverse(),e);return[n,r]}function ck(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function KA(e,t){for(const n of e)if(!$$(n,{upTo:t}))return n}function $$(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 G$(e){return e instanceof HTMLInputElement&&"select"in e}function no(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&G$(e)&&t&&e.select()}}var qA=K$();function K$(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=WA(e,t),e.unshift(t)},remove(t){e=WA(e,t),e[0]?.resume()}}}function WA(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function q$(e){return e.filter(t=>t.tagName!=="A")}var W$="Portal",Ah=S.forwardRef((e,t)=>{const{container:n,...r}=e,[o,s]=S.useState(!1);un(()=>s(!0),[]);const l=n||o&&globalThis?.document?.body;return l?PF.createPortal(y.jsx(Ge.div,{...r,ref:t}),l):null});Ah.displayName=W$;function Z$(e,t){return S.useReducer((n,r)=>t[n][r]??n,e)}var au=e=>{const{present:t,children:n}=e,r=Y$(t),o=typeof n=="function"?n({present:r.isPresent}):S.Children.only(n),s=Ct(r.ref,X$(o));return typeof n=="function"||r.isPresent?S.cloneElement(o,{ref:s}):null};au.displayName="Presence";function Y$(e){const[t,n]=S.useState(),r=S.useRef(null),o=S.useRef(e),s=S.useRef("none"),l=e?"mounted":"unmounted",[u,d]=Z$(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=o.current;if(p!==e){const v=s.current,b=Hd(f);e?d("MOUNT"):b==="none"||f?.display==="none"?d("UNMOUNT"):d(p&&v!==b?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,d]),un(()=>{if(t){let f;const p=t.ownerDocument.defaultView??window,m=b=>{const A=Hd(r.current).includes(CSS.escape(b.animationName));if(b.target===t&&A&&(d("ANIMATION_END"),!o.current)){const T=t.style.animationFillMode;t.style.animationFillMode="forwards",f=p.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=T)})}},v=b=>{b.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 X$(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 uk(){S.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??ZA()),document.body.insertAdjacentElement("beforeend",e[1]??ZA()),Ng++,()=>{Ng===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Ng--}},[])}function ZA(){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,o=arguments.length;r<o;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 dk(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 o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function Q$(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,s;r<o;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",J$="with-scroll-bars-hidden",e2="--removed-body-scroll-bar-size";function Ig(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function t2(e,t){var n=S.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var o=n.value;o!==r&&(n.value=r,n.callback(r,o))}}}})[0];return n.callback=t,n.facade}var n2=typeof window<"u"?S.useLayoutEffect:S.useEffect,YA=new WeakMap;function r2(e,t){var n=t2(null,function(r){return e.forEach(function(o){return Ig(o,r)})});return n2(function(){var r=YA.get(n);if(r){var o=new Set(r),s=new Set(e),l=n.current;o.forEach(function(u){s.has(u)||Ig(u,null)}),s.forEach(function(u){o.has(u)||Ig(u,l)})}YA.set(n,e)},[e]),n}function i2(e){return e}function o2(e,t){t===void 0&&(t=i2);var n=[],r=!1,o={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 o}function a2(e){e===void 0&&(e={});var t=o2(null);return t.options=Ur({async:!0,ssr:!1},e),t}var fk=function(e){var t=e.sideCar,n=dk(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))};fk.isSideCarExport=!0;function s2(e,t){return e.useMedium(t),fk}var hk=a2(),Og=function(){},wh=S.forwardRef(function(e,t){var n=S.useRef(null),r=S.useState({onScrollCapture:Og,onWheelCapture:Og,onTouchMoveCapture:Og}),o=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,b=e.noRelative,x=e.noIsolation,A=e.inert,T=e.allowPinchZoom,N=e.as,E=N===void 0?"div":N,w=e.gapMode,R=dk(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),C=v,I=r2([n,t]),D=Ur(Ur({},R),o);return S.createElement(S.Fragment,null,p&&S.createElement(C,{sideCar:hk,removeScrollBar:f,shards:m,noRelative:b,noIsolation:x,inert:A,setCallbacks:s,allowPinchZoom:!!T,lockRef:n,gapMode:w}),l?S.cloneElement(S.Children.only(u),Ur(Ur({},D),{ref:I})):S.createElement(E,Ur({},D,{className:d,ref:I}),u))});wh.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};wh.classNames={fullWidth:_f,zeroRight:bf};var l2=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function c2(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=l2();return t&&e.setAttribute("nonce",t),e}function u2(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function d2(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var f2=function(){var e=0,t=null;return{add:function(n){e==0&&(t=c2())&&(u2(t,n),d2(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},h2=function(){var e=f2();return function(t,n){S.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},pk=function(){var e=h2(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},p2={left:0,top:0,right:0,gap:0},Dg=function(e){return parseInt(e||"",10)||0},m2=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[Dg(n),Dg(r),Dg(o)]},g2=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return p2;var t=m2(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])}},y2=pk(),Ss="data-scroll-locked",v2=function(e,t,n,r){var o=e.left,s=e.top,l=e.right,u=e.gap;return n===void 0&&(n="margin"),`
208
+ .`.concat(J$,` {
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(o,`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(e2,": ").concat(u,`px;
243
+ }
244
+ `)},XA=function(){var e=parseInt(document.body.getAttribute(Ss)||"0",10);return isFinite(e)?e:0},b2=function(){S.useEffect(function(){return document.body.setAttribute(Ss,(XA()+1).toString()),function(){var e=XA()-1;e<=0?document.body.removeAttribute(Ss):document.body.setAttribute(Ss,e.toString())}},[])},_2=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;b2();var s=S.useMemo(function(){return g2(o)},[o]);return S.createElement(y2,{styles:v2(s,!t,o,n?"":"!important")})},$y=!1;if(typeof window<"u")try{var $d=Object.defineProperty({},"passive",{get:function(){return $y=!0,!0}});window.addEventListener("test",$d,$d),window.removeEventListener("test",$d,$d)}catch{$y=!1}var ss=$y?{passive:!1}:!1,E2=function(e){return e.tagName==="TEXTAREA"},mk=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!E2(e)&&n[t]==="visible")},S2=function(e){return mk(e,"overflowY")},x2=function(e){return mk(e,"overflowX")},QA=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=gk(e,r);if(o){var s=yk(e,r),l=s[1],u=s[2];if(l>u)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},A2=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},w2=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},gk=function(e,t){return e==="v"?S2(t):x2(t)},yk=function(e,t){return e==="v"?A2(t):w2(t)},T2=function(e,t){return e==="h"&&t==="rtl"?-1:1},C2=function(e,t,n,r,o){var s=T2(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 b=yk(e,u),x=b[0],A=b[1],T=b[2],N=A-T-s*x;(x||N)&&gk(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},Gd=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},JA=function(e){return[e.deltaX,e.deltaY]},ew=function(e){return e&&"current"in e?e.current:e},R2=function(e,t){return e[0]===t[0]&&e[1]===t[1]},k2=function(e){return`
245
+ .block-interactivity-`.concat(e,` {pointer-events: none;}
246
+ .allow-interactivity-`).concat(e,` {pointer-events: all;}
247
+ `)},N2=0,ls=[];function I2(e){var t=S.useRef([]),n=S.useRef([0,0]),r=S.useRef(),o=S.useState(N2++)[0],s=S.useState(pk)[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(o));var A=Q$([e.lockRef.current],(e.shards||[]).map(ew),!0).filter(Boolean);return A.forEach(function(T){return T.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),A.forEach(function(T){return T.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var u=S.useCallback(function(A,T){if("touches"in A&&A.touches.length===2||A.type==="wheel"&&A.ctrlKey)return!l.current.allowPinchZoom;var N=Gd(A),E=n.current,w="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(w)>Math.abs(R)?"h":"v";if("touches"in A&&D==="h"&&I.type==="range")return!1;var L=QA(D,I);if(!L)return!0;if(L?C=D:(C=D==="v"?"h":"v",L=QA(D,I)),!L)return!1;if(!r.current&&"changedTouches"in A&&(w||R)&&(r.current=C),!C)return!0;var V=r.current||C;return C2(V,T,A,V==="h"?w:R)},[]),d=S.useCallback(function(A){var T=A;if(!(!ls.length||ls[ls.length-1]!==s)){var N="deltaY"in T?JA(T):Gd(T),E=t.current.filter(function(C){return C.name===T.type&&(C.target===T.target||T.target===C.shadowParent)&&R2(C.delta,N)})[0];if(E&&E.should){T.cancelable&&T.preventDefault();return}if(!E){var w=(l.current.shards||[]).map(ew).filter(Boolean).filter(function(C){return C.contains(T.target)}),R=w.length>0?u(T,w[0]):!l.current.noIsolation;R&&T.cancelable&&T.preventDefault()}}},[]),f=S.useCallback(function(A,T,N,E){var w={name:A,delta:T,target:N,should:E,shadowParent:O2(N)};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(R){return R!==w})},1)},[]),p=S.useCallback(function(A){n.current=Gd(A),r.current=void 0},[]),m=S.useCallback(function(A){f(A.type,JA(A),A.target,u(A,e.lockRef.current))},[]),v=S.useCallback(function(A){f(A.type,Gd(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 b=e.removeScrollBar,x=e.inert;return S.createElement(S.Fragment,null,x?S.createElement(s,{styles:k2(o)}):null,b?S.createElement(_2,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function O2(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const D2=s2(hk,I2);var kb=S.forwardRef(function(e,t){return S.createElement(wh,Ur({},e,{ref:t,sideCar:D2}))});kb.classNames=wh.classNames;var L2=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,vk=function(e){return e&&(e.host||vk(e.parentNode))},j2=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=vk(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})},P2=function(e,t,n,r){var o=j2(t,Array.isArray(e)?e:[e]);qd[n]||(qd[n]=new WeakMap);var s=qd[n],l=[],u=new Set,d=new Set(o),f=function(m){!m||u.has(m)||(u.add(m),f(m.parentNode))};o.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 b=v.getAttribute(r),x=b!==null&&b!=="false",A=(cs.get(v)||0)+1,T=(s.get(v)||0)+1;cs.set(v,A),s.set(v,T),l.push(v),A===1&&x&&Kd.set(v,!0),T===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,b=s.get(m)-1;cs.set(m,v),s.set(m,b),v||(Kd.has(m)||m.removeAttribute(r),Kd.delete(m)),b||m.removeAttribute(n)}),Lg--,Lg||(cs=new WeakMap,cs=new WeakMap,Kd=new WeakMap,qd={})}},bk=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=L2(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),P2(r,o,n,"aria-hidden")):function(){return null}},Th="Dialog",[_k]=ou(Th),[M2,Rr]=_k(Th),Ek=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:s,modal:l=!0}=e,u=S.useRef(null),d=S.useRef(null),[f,p]=zf({prop:r,defaultProp:o??!1,onChange:s,caller:Th});return y.jsx(M2,{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})};Ek.displayName=Th;var Sk="DialogTrigger",z2=S.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Rr(Sk,n),s=Ct(t,o.triggerRef);return y.jsx(Ge.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Ob(o.open),...r,ref:s,onClick:Je(e.onClick,o.onOpenToggle)})});z2.displayName=Sk;var Nb="DialogPortal",[B2,xk]=_k(Nb,{forceMount:void 0}),Ak=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,s=Rr(Nb,t);return y.jsx(B2,{scope:t,forceMount:n,children:S.Children.map(r,l=>y.jsx(au,{present:n||s.open,children:y.jsx(Ah,{asChild:!0,container:o,children:l})}))})};Ak.displayName=Nb;var Bf="DialogOverlay",wk=S.forwardRef((e,t)=>{const n=xk(Bf,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,s=Rr(Bf,e.__scopeDialog);return s.modal?y.jsx(au,{present:r||s.open,children:y.jsx(U2,{...o,ref:t})}):null});wk.displayName=Bf;var V2=Ns("DialogOverlay.RemoveScroll"),U2=S.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Rr(Bf,n);return y.jsx(kb,{as:V2,allowPinchZoom:!0,shards:[o.contentRef],children:y.jsx(Ge.div,{"data-state":Ob(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),aa="DialogContent",Tk=S.forwardRef((e,t)=>{const n=xk(aa,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,s=Rr(aa,e.__scopeDialog);return y.jsx(au,{present:r||s.open,children:s.modal?y.jsx(F2,{...o,ref:t}):y.jsx(H2,{...o,ref:t})})});Tk.displayName=aa;var F2=S.forwardRef((e,t)=>{const n=Rr(aa,e.__scopeDialog),r=S.useRef(null),o=Ct(t,n.contentRef,r);return S.useEffect(()=>{const s=r.current;if(s)return bk(s)},[]),y.jsx(Ck,{...e,ref:o,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())})}),H2=S.forwardRef((e,t)=>{const n=Rr(aa,e.__scopeDialog),r=S.useRef(!1),o=S.useRef(!1);return y.jsx(Ck,{...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,o.current=!1},onInteractOutside:s=>{e.onInteractOutside?.(s),s.defaultPrevented||(r.current=!0,s.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const l=s.target;n.triggerRef.current?.contains(l)&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&o.current&&s.preventDefault()}})}),Ck=S.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:s,...l}=e,u=Rr(aa,n),d=S.useRef(null),f=Ct(t,d);return uk(),y.jsxs(y.Fragment,{children:[y.jsx(Rb,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:s,children:y.jsx(xh,{role:"dialog",id:u.contentId,"aria-describedby":u.descriptionId,"aria-labelledby":u.titleId,"data-state":Ob(u.open),...l,ref:f,onDismiss:()=>u.onOpenChange(!1)})}),y.jsxs(y.Fragment,{children:[y.jsx(q2,{titleId:u.titleId}),y.jsx(Z2,{contentRef:d,descriptionId:u.descriptionId})]})]})}),Ib="DialogTitle",$2=S.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Rr(Ib,n);return y.jsx(Ge.h2,{id:o.titleId,...r,ref:t})});$2.displayName=Ib;var Rk="DialogDescription",G2=S.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Rr(Rk,n);return y.jsx(Ge.p,{id:o.descriptionId,...r,ref:t})});G2.displayName=Rk;var kk="DialogClose",K2=S.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Rr(kk,n);return y.jsx(Ge.button,{type:"button",...r,ref:t,onClick:Je(e.onClick,()=>o.onOpenChange(!1))})});K2.displayName=kk;function Ob(e){return e?"open":"closed"}var Nk="DialogTitleWarning",[$se,Ik]=v$(Nk,{contentName:aa,titleName:Ib,docsSlug:"dialog"}),q2=({titleId:e})=>{const t=Ik(Nk),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},W2="DialogDescriptionWarning",Z2=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Ik(W2).contentName}}.`;return S.useEffect(()=>{const o=e.current?.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},Y2=Ek,X2=Ak,Q2=wk,J2=Tk,tw=1,eG=.9,tG=.8,nG=.17,jg=.1,Pg=.999,rG=.9999,iG=.99,oG=/[\\\/_+.#"@\[\(\{&]/,aG=/[\\\/_+.#"@\[\(\{&]/g,sG=/[\s-]/,Ok=/[\s-]/g;function Gy(e,t,n,r,o,s,l){if(s===t.length)return o===e.length?tw:iG;var u=`${o},${s}`;if(l[u]!==void 0)return l[u];for(var d=r.charAt(s),f=n.indexOf(d,o),p=0,m,v,b,x;f>=0;)m=Gy(e,t,n,r,f+1,s+1,l),m>p&&(f===o?m*=tw:oG.test(e.charAt(f-1))?(m*=tG,b=e.slice(o,f-1).match(aG),b&&o>0&&(m*=Math.pow(Pg,b.length))):sG.test(e.charAt(f-1))?(m*=eG,x=e.slice(o,f-1).match(Ok),x&&o>0&&(m*=Math.pow(Pg,x.length))):(m*=nG,o>0&&(m*=Math.pow(Pg,f-o))),e.charAt(f)!==t.charAt(s)&&(m*=rG)),(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 nw(e){return e.toLowerCase().replace(Ok," ")}function lG(e,t,n){return e=n&&n.length>0?`${e+" "+n.join(" ")}`:e,Gy(e,t,nw(e),nw(t),0,0,{})}var nc='[cmdk-group=""]',Mg='[cmdk-group-items=""]',cG='[cmdk-group-heading=""]',Dk='[cmdk-item=""]',rw=`${Dk}:not([aria-disabled="true"])`,Ky="cmdk-item-select",ds="data-value",uG=(e,t,n)=>lG(e,t,n),Lk=S.createContext(void 0),su=()=>S.useContext(Lk),jk=S.createContext(void 0),Db=()=>S.useContext(jk),Pk=S.createContext(void 0),Mk=S.forwardRef((e,t)=>{let n=fs(()=>{var G,ne;return{search:"",value:(ne=(G=e.value)!=null?G:e.defaultValue)!=null?ne:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),r=fs(()=>new Set),o=fs(()=>new Map),s=fs(()=>new Map),l=fs(()=>new Set),u=zk(e),{label:d,children:f,value:p,onValueChange:m,filter:v,shouldFilter:b,loop:x,disablePointerSelection:A=!1,vimBindings:T=!0,...N}=e,E=hr(),w=hr(),R=hr(),C=S.useRef(null),I=EG();sa(()=>{if(p!==void 0){let G=p.trim();n.current.value=G,D.emit()}},[p]),sa(()=>{I(6,le)},[]);let D=S.useMemo(()=>({subscribe:G=>(l.current.add(G),()=>l.current.delete(G)),snapshot:()=>n.current,setState:(G,ne,ue)=>{var pe,ve,fe,xe;if(!Object.is(n.current[G],ne)){if(n.current[G]=ne,G==="search")Q(),H(),I(1,Z);else if(G==="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=q())==null?void 0:je.id,D.emit()}),ue||I(5,le),((ve=u.current)==null?void 0:ve.value)!==void 0){let je=ne??"";(xe=(fe=u.current).onValueChange)==null||xe.call(fe,je);return}}D.emit()}},emit:()=>{l.current.forEach(G=>G())}}),[]),L=S.useMemo(()=>({value:(G,ne,ue)=>{var pe;ne!==((pe=s.current.get(G))==null?void 0:pe.value)&&(s.current.set(G,{value:ne,keywords:ue}),n.current.filtered.items.set(G,V(ne,ue)),I(2,()=>{H(),D.emit()}))},item:(G,ne)=>(r.current.add(G),ne&&(o.current.has(ne)?o.current.get(ne).add(G):o.current.set(ne,new Set([G]))),I(3,()=>{Q(),H(),n.current.value||Z(),D.emit()}),()=>{s.current.delete(G),r.current.delete(G),n.current.filtered.items.delete(G);let ue=q();I(4,()=>{Q(),ue?.getAttribute("id")===G&&Z(),D.emit()})}),group:G=>(o.current.has(G)||o.current.set(G,new Set),()=>{s.current.delete(G),o.current.delete(G)}),filter:()=>u.current.shouldFilter,label:d||e["aria-label"],getDisablePointerSelection:()=>u.current.disablePointerSelection,listId:E,inputId:R,labelId:w,listInnerRef:C}),[]);function V(G,ne){var ue,pe;let ve=(pe=(ue=u.current)==null?void 0:ue.filter)!=null?pe:uG;return G?ve(G,n.current.search,ne):0}function H(){if(!n.current.search||u.current.shouldFilter===!1)return;let G=n.current.filtered.items,ne=[];n.current.filtered.groups.forEach(pe=>{let ve=o.current.get(pe),fe=0;ve.forEach(xe=>{let je=G.get(xe);fe=Math.max(je,fe)}),ne.push([pe,fe])});let ue=C.current;oe().sort((pe,ve)=>{var fe,xe;let je=pe.getAttribute("id"),Ve=ve.getAttribute("id");return((fe=G.get(Ve))!=null?fe:0)-((xe=G.get(je))!=null?xe:0)}).forEach(pe=>{let ve=pe.closest(Mg);ve?ve.appendChild(pe.parentElement===ve?pe:pe.closest(`${Mg} > *`)):ue.appendChild(pe.parentElement===ue?pe:pe.closest(`${Mg} > *`))}),ne.sort((pe,ve)=>ve[1]-pe[1]).forEach(pe=>{var ve;let fe=(ve=C.current)==null?void 0:ve.querySelector(`${nc}[${ds}="${encodeURIComponent(pe[0])}"]`);fe?.parentElement.appendChild(fe)})}function Z(){let G=oe().find(ue=>ue.getAttribute("aria-disabled")!=="true"),ne=G?.getAttribute(ds);D.setState("value",ne||void 0)}function Q(){var G,ne,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 ve=0;for(let fe of r.current){let xe=(ne=(G=s.current.get(fe))==null?void 0:G.value)!=null?ne:"",je=(pe=(ue=s.current.get(fe))==null?void 0:ue.keywords)!=null?pe:[],Ve=V(xe,je);n.current.filtered.items.set(fe,Ve),Ve>0&&ve++}for(let[fe,xe]of o.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=ve}function le(){var G,ne,ue;let pe=q();pe&&(((G=pe.parentElement)==null?void 0:G.firstChild)===pe&&((ue=(ne=pe.closest(nc))==null?void 0:ne.querySelector(cG))==null||ue.scrollIntoView({block:"nearest"})),pe.scrollIntoView({block:"nearest"}))}function q(){var G;return(G=C.current)==null?void 0:G.querySelector(`${Dk}[aria-selected="true"]`)}function oe(){var G;return Array.from(((G=C.current)==null?void 0:G.querySelectorAll(rw))||[])}function z(G){let ne=oe()[G];ne&&D.setState("value",ne.getAttribute(ds))}function ee(G){var ne;let ue=q(),pe=oe(),ve=pe.findIndex(xe=>xe===ue),fe=pe[ve+G];(ne=u.current)!=null&&ne.loop&&(fe=ve+G<0?pe[pe.length-1]:ve+G===pe.length?pe[0]:pe[ve+G]),fe&&D.setState("value",fe.getAttribute(ds))}function W(G){let ne=q(),ue=ne?.closest(nc),pe;for(;ue&&!pe;)ue=G>0?bG(ue,nc):_G(ue,nc),pe=ue?.querySelector(rw);pe?D.setState("value",pe.getAttribute(ds)):ee(G)}let be=()=>z(oe().length-1),P=G=>{G.preventDefault(),G.metaKey?be():G.altKey?W(1):ee(1)},ie=G=>{G.preventDefault(),G.metaKey?z(0):G.altKey?W(-1):ee(-1)};return S.createElement(Ge.div,{ref:t,tabIndex:-1,...N,"cmdk-root":"",onKeyDown:G=>{var ne;(ne=N.onKeyDown)==null||ne.call(N,G);let ue=G.nativeEvent.isComposing||G.keyCode===229;if(!(G.defaultPrevented||ue))switch(G.key){case"n":case"j":{T&&G.ctrlKey&&P(G);break}case"ArrowDown":{P(G);break}case"p":case"k":{T&&G.ctrlKey&&ie(G);break}case"ArrowUp":{ie(G);break}case"Home":{G.preventDefault(),z(0);break}case"End":{G.preventDefault(),be();break}case"Enter":{G.preventDefault();let pe=q();if(pe){let ve=new Event(Ky);pe.dispatchEvent(ve)}}}}},S.createElement("label",{"cmdk-label":"",htmlFor:L.inputId,id:L.labelId,style:xG},d),Ch(e,G=>S.createElement(jk.Provider,{value:D},S.createElement(Lk.Provider,{value:L},G))))}),dG=S.forwardRef((e,t)=>{var n,r;let o=hr(),s=S.useRef(null),l=S.useContext(Pk),u=su(),d=zk(e),f=(r=(n=d.current)==null?void 0:n.forceMount)!=null?r:l?.forceMount;sa(()=>{if(!f)return u.item(o,l?.id)},[f]);let p=Bk(o,s,[e.value,e.children,s],e.keywords),m=Db(),v=lo(I=>I.value&&I.value===p.current),b=lo(I=>f||u.filter()===!1?!0:I.search?I.filtered.items.get(o)>0:!0);S.useEffect(()=>{let I=s.current;if(!(!I||e.disabled))return I.addEventListener(Ky,x),()=>I.removeEventListener(Ky,x)},[b,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(!b)return null;let{disabled:T,value:N,onSelect:E,forceMount:w,keywords:R,...C}=e;return S.createElement(Ge.div,{ref:oa(s,t),...C,id:o,"cmdk-item":"",role:"option","aria-disabled":!!T,"aria-selected":!!v,"data-disabled":!!T,"data-selected":!!v,onPointerMove:T||u.getDisablePointerSelection()?void 0:A,onClick:T?void 0:x},e.children)}),fG=S.forwardRef((e,t)=>{let{heading:n,children:r,forceMount:o,...s}=e,l=hr(),u=S.useRef(null),d=S.useRef(null),f=hr(),p=su(),m=lo(b=>o||p.filter()===!1?!0:b.search?b.filtered.groups.has(l):!0);sa(()=>p.group(l),[]),Bk(l,u,[e.value,e.heading,d]);let v=S.useMemo(()=>({id:l,forceMount:o}),[o]);return S.createElement(Ge.div,{ref:oa(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,b=>S.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":n?f:void 0},S.createElement(Pk.Provider,{value:v},b))))}),hG=S.forwardRef((e,t)=>{let{alwaysRender:n,...r}=e,o=S.useRef(null),s=lo(l=>!l.search);return!n&&!s?null:S.createElement(Ge.div,{ref:oa(o,t),...r,"cmdk-separator":"",role:"separator"})}),pG=S.forwardRef((e,t)=>{let{onValueChange:n,...r}=e,o=e.value!=null,s=Db(),l=lo(f=>f.search),u=lo(f=>f.selectedItemId),d=su();return S.useEffect(()=>{e.value!=null&&s.setState("search",e.value)},[e.value]),S.createElement(Ge.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:o?e.value:l,onChange:f=>{o||s.setState("search",f.target.value),n?.(f.target.value)}})}),mG=S.forwardRef((e,t)=>{let{children:n,label:r="Suggestions",...o}=e,s=S.useRef(null),l=S.useRef(null),u=lo(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 b=f.offsetHeight;p.style.setProperty("--cmdk-list-height",b.toFixed(1)+"px")})});return v.observe(f),()=>{cancelAnimationFrame(m),v.unobserve(f)}}},[]),S.createElement(Ge.div,{ref:oa(s,t),...o,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":u,"aria-label":r,id:d.listId},Ch(e,f=>S.createElement("div",{ref:oa(l,d.listInnerRef),"cmdk-list-sizer":""},f)))}),gG=S.forwardRef((e,t)=>{let{open:n,onOpenChange:r,overlayClassName:o,contentClassName:s,container:l,...u}=e;return S.createElement(Y2,{open:n,onOpenChange:r},S.createElement(X2,{container:l},S.createElement(Q2,{"cmdk-overlay":"",className:o}),S.createElement(J2,{"aria-label":e.label,"cmdk-dialog":"",className:s},S.createElement(Mk,{ref:t,...u}))))}),yG=S.forwardRef((e,t)=>lo(n=>n.filtered.count===0)?S.createElement(Ge.div,{ref:t,...e,"cmdk-empty":"",role:"presentation"}):null),vG=S.forwardRef((e,t)=>{let{progress:n,children:r,label:o="Loading...",...s}=e;return S.createElement(Ge.div,{ref:t,...s,"cmdk-loading":"",role:"progressbar","aria-valuenow":n,"aria-valuemin":0,"aria-valuemax":100,"aria-label":o},Ch(e,l=>S.createElement("div",{"aria-hidden":!0},l)))}),lu=Object.assign(Mk,{List:mG,Item:dG,Input:pG,Group:fG,Separator:hG,Dialog:gG,Empty:yG,Loading:vG});function bG(e,t){let n=e.nextElementSibling;for(;n;){if(n.matches(t))return n;n=n.nextElementSibling}}function _G(e,t){let n=e.previousElementSibling;for(;n;){if(n.matches(t))return n;n=n.previousElementSibling}}function zk(e){let t=S.useRef(e);return sa(()=>{t.current=e}),t}var sa=typeof window>"u"?S.useEffect:S.useLayoutEffect;function fs(e){let t=S.useRef();return t.current===void 0&&(t.current=e()),t}function lo(e){let t=Db(),n=()=>e(t.snapshot());return S.useSyncExternalStore(t.subscribe,n,n)}function Bk(e,t,n,r=[]){let o=S.useRef(),s=su();return sa(()=>{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():o.current}})(),d=r.map(f=>f.trim());s.value(e,u,d),(l=t.current)==null||l.setAttribute(ds,u),o.current=u}),o}var EG=()=>{let[e,t]=S.useState(),n=fs(()=>new Map);return sa(()=>{n.current.forEach(r=>r()),n.current=new Map},[e]),(r,o)=>{n.current.set(r,o),t({})}};function SG(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(SG(t),{ref:t.ref},n(t.props.children)):n(t)}var xG={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};const Vk=({className:e,...t})=>y.jsx(lu,{className:ye("flex size-full flex-col overflow-hidden rounded-md",e),...t}),AG=({className:e,...t})=>y.jsxs("div",{className:"flex w-full items-center","cmdk-input-wrapper":"",children:[y.jsx(wH,{className:"mr-2 size-4 shrink-0 opacity-50"}),y.jsx(lu.Input,{className:ye("placeholder:text-muted-foreground outline-hidden flex w-full rounded-md bg-transparent text-sm disabled:cursor-not-allowed disabled:opacity-50",e),...t})]}),wG=({className:e,...t})=>y.jsx(lu.List,{className:ye("max-h-[300px] overflow-y-auto overflow-x-hidden",e),...t}),TG=e=>y.jsx(lu.Empty,{className:"py-6 text-center text-sm",...e}),CG=({className:e,...t})=>y.jsx(lu.Item,{className:ye("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={...Vk,Input:AG,List:wG,Empty:TG,Item:CG},RG=Tn("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:o,className:s,border:l,borderColor:u,background:d,...f})=>y.jsx("div",{className:ye(RG({roundedSize:t,transparency:r,padding:n,separator:o,border:typeof l=="boolean"?l?"with":"none":void 0,background:d,borderColor:u,className:s})),...f,children:e}),Uk=({content:e,...t})=>{const[n,r]=S.useState(!1),{label:o}=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?nH:iH,onClick:s,variant:st.HOVERABLE,color:at.TEXT,size:Yn.ICON_SM,...t,label:t.label??o.value})},Fk=S.createContext({});function kG(e){const t=S.useRef(null);return t.current===null&&(t.current=e()),t.current}const Lb=typeof window<"u",NG=Lb?S.useLayoutEffect:S.useEffect,jb=S.createContext(null);function Pb(e,t){e.indexOf(t)===-1&&e.push(t)}function Mb(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 zb=()=>{};const Ei={},Hk=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function $k(e){return typeof e=="object"&&e!==null}const Gk=e=>/^0[^.\s]+$/u.test(e);function Bb(e){let t;return()=>(t===void 0&&(t=e()),t)}const pr=e=>e,IG=(e,t)=>n=>t(e(n)),cu=(...e)=>e.reduce(IG),jc=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r};class Vb{constructor(){this.subscriptions=[]}add(t){return Pb(this.subscriptions,t),()=>Mb(this.subscriptions,t)}notify(t,n,r){const o=this.subscriptions.length;if(o)if(o===1)this.subscriptions[0](t,n,r);else for(let s=0;s<o;s++){const l=this.subscriptions[s];l&&l(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const $r=e=>e*1e3,fr=e=>e/1e3;function Kk(e,t){return t?e*(1e3/t):0}const qk=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,OG=1e-7,DG=12;function LG(e,t,n,r,o){let s,l,u=0;do l=t+(n-t)/2,s=qk(l,r,o)-e,s>0?n=l:t=l;while(Math.abs(s)>OG&&++u<DG);return l}function uu(e,t,n,r){if(e===t&&n===r)return pr;const o=s=>LG(s,0,1,e,n);return s=>s===0||s===1?s:qk(o(s),t,r)}const Wk=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Zk=e=>t=>1-e(1-t),Yk=uu(.33,1.53,.69,.99),Ub=Zk(Yk),Xk=Wk(Ub),Qk=e=>(e*=2)<1?.5*Ub(e):.5*(2-Math.pow(2,-10*(e-1))),Fb=e=>1-Math.sin(Math.acos(e)),Jk=Zk(Fb),eN=Wk(Fb),jG=uu(.42,0,1,1),PG=uu(0,0,.58,1),tN=uu(.42,0,.58,1),MG=e=>Array.isArray(e)&&typeof e[0]!="number",nN=e=>Array.isArray(e)&&typeof e[0]=="number",zG={linear:pr,easeIn:jG,easeInOut:tN,easeOut:PG,circIn:Fb,circInOut:eN,circOut:Jk,backIn:Ub,backInOut:Xk,backOut:Yk,anticipate:Qk},BG=e=>typeof e=="string",iw=e=>{if(nN(e)){zb(e.length===4);const[t,n,r,o]=e;return uu(t,n,r,o)}else if(BG(e))return zG[e];return e},Wd=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function VG(e,t){let n=new Set,r=new Set,o=!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&&o?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,o){s=!0;return}o=!0,[n,r]=[r,n],n.forEach(d),n.clear(),o=!1,s&&(s=!1,f.process(p))}};return f}const UG=40;function rN(e,t){let n=!1,r=!0;const o={delta:0,timestamp:0,isProcessing:!1},s=()=>n=!0,l=Wd.reduce((w,R)=>(w[R]=VG(s),w),{}),{setup:u,read:d,resolveKeyframes:f,preUpdate:p,update:m,preRender:v,render:b,postRender:x}=l,A=()=>{const w=Ei.useManualTiming?o.timestamp:performance.now();n=!1,Ei.useManualTiming||(o.delta=r?1e3/60:Math.max(Math.min(w-o.timestamp,UG),1)),o.timestamp=w,o.isProcessing=!0,u.process(o),d.process(o),f.process(o),p.process(o),m.process(o),v.process(o),b.process(o),x.process(o),o.isProcessing=!1,n&&t&&(r=!1,e(A))},T=()=>{n=!0,r=!0,o.isProcessing||e(A)};return{schedule:Wd.reduce((w,R)=>{const C=l[R];return w[R]=(I,D=!1,L=!1)=>(n||T(),C.schedule(I,D,L)),w},{}),cancel:w=>{for(let R=0;R<Wd.length;R++)l[Wd[R]].cancel(w)},state:o,steps:l}}const{schedule:Et,cancel:co,state:cn,steps:zg}=rN(typeof requestAnimationFrame<"u"?requestAnimationFrame:pr,!0);let Ef;function FG(){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(FG)}},iN=e=>t=>typeof t=="string"&&t.startsWith(e),Hb=iN("--"),HG=iN("var(--"),$b=e=>HG(e)?$G.test(e.split("/*")[0].trim()):!1,$G=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,$s={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Pc={...$s,transform:e=>_i(0,1,e)},Zd={...$s,default:1},_c=e=>Math.round(e*1e5)/1e5,Gb=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function GG(e){return e==null}const KG=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Kb=(e,t)=>n=>!!(typeof n=="string"&&KG.test(n)&&n.startsWith(e)||t&&!GG(n)&&Object.prototype.hasOwnProperty.call(n,t)),oN=(e,t,n)=>r=>{if(typeof r!="string")return r;const[o,s,l,u]=r.match(Gb);return{[e]:parseFloat(o),[t]:parseFloat(s),[n]:parseFloat(l),alpha:u!==void 0?parseFloat(u):1}},qG=e=>_i(0,255,e),Bg={...$s,transform:e=>Math.round(qG(e))},Qo={test:Kb("rgb","red"),parse:oN("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 WG(e){let t="",n="",r="",o="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),o=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),o=e.substring(4,5),t+=t,n+=n,r+=r,o+=o),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:o?parseInt(o,16)/255:1}}const qy={test:Kb("#"),parse:WG,transform:Qo.transform},du=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),ro=du("deg"),Gr=du("%"),Me=du("px"),ZG=du("vh"),YG=du("vw"),ow={...Gr,parse:e=>Gr.parse(e)/100,transform:e=>Gr.transform(e*100)},ms={test:Kb("hsl","hue"),parse:oN("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Gr.transform(_c(t))+", "+Gr.transform(_c(n))+", "+_c(Pc.transform(r))+")"},Vt={test:e=>Qo.test(e)||qy.test(e)||ms.test(e),parse:e=>Qo.test(e)?Qo.parse(e):ms.test(e)?ms.parse(e):qy.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Qo.transform(e):ms.transform(e),getAnimatableNone:e=>{const t=Vt.parse(e);return t.alpha=0,Vt.transform(t)}},XG=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function QG(e){return isNaN(e)&&typeof e=="string"&&(e.match(Gb)?.length||0)+(e.match(XG)?.length||0)>0}const aN="number",sN="color",JG="var",e3="var(",aw="${}",t3=/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:[]},o=[];let s=0;const u=t.replace(t3,d=>(Vt.test(d)?(r.color.push(s),o.push(sN),n.push(Vt.parse(d))):d.startsWith(e3)?(r.var.push(s),o.push(JG),n.push(d)):(r.number.push(s),o.push(aN),n.push(parseFloat(d))),++s,aw)).split(aw);return{values:n,split:u,indexes:r,types:o}}function lN(e){return Mc(e).values}function cN(e){const{split:t,types:n}=Mc(e),r=t.length;return o=>{let s="";for(let l=0;l<r;l++)if(s+=t[l],o[l]!==void 0){const u=n[l];u===aN?s+=_c(o[l]):u===sN?s+=Vt.transform(o[l]):s+=o[l]}return s}}const n3=e=>typeof e=="number"?0:Vt.test(e)?Vt.getAnimatableNone(e):e;function r3(e){const t=lN(e);return cN(e)(t.map(n3))}const uo={test:QG,parse:lN,createTransformer:cN,getAnimatableNone:r3};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 i3({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let o=0,s=0,l=0;if(!t)o=s=l=n;else{const u=n<.5?n*(1+t):n+t-n*t,d=2*n-u;o=Vg(d,u,e+1/3),s=Vg(d,u,e),l=Vg(d,u,e-1/3)}return{red:Math.round(o*255),green:Math.round(s*255),blue:Math.round(l*255),alpha:r}}function Uf(e,t){return n=>n>0?t:e}const wt=(e,t,n)=>e+(t-e)*n,Ug=(e,t,n)=>{const r=e*e,o=n*(t*t-r)+r;return o<0?0:Math.sqrt(o)},o3=[qy,Qo,ms],a3=e=>o3.find(t=>t.test(e));function sw(e){const t=a3(e);if(!t)return!1;let n=t.parse(e);return t===ms&&(n=i3(n)),n}const lw=(e,t)=>{const n=sw(e),r=sw(t);if(!n||!r)return Uf(e,t);const o={...n};return s=>(o.red=Ug(n.red,r.red,s),o.green=Ug(n.green,r.green,s),o.blue=Ug(n.blue,r.blue,s),o.alpha=wt(n.alpha,r.alpha,s),Qo.transform(o))},Wy=new Set(["none","hidden"]);function s3(e,t){return Wy.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function l3(e,t){return n=>wt(e,t,n)}function qb(e){return typeof e=="number"?l3:typeof e=="string"?$b(e)?Uf:Vt.test(e)?lw:d3:Array.isArray(e)?uN:typeof e=="object"?Vt.test(e)?lw:c3:Uf}function uN(e,t){const n=[...e],r=n.length,o=e.map((s,l)=>qb(s)(s,t[l]));return s=>{for(let l=0;l<r;l++)n[l]=o[l](s);return n}}function c3(e,t){const n={...e,...t},r={};for(const o in n)e[o]!==void 0&&t[o]!==void 0&&(r[o]=qb(e[o])(e[o],t[o]));return o=>{for(const s in r)n[s]=r[s](o);return n}}function u3(e,t){const n=[],r={color:0,var:0,number:0};for(let o=0;o<t.values.length;o++){const s=t.types[o],l=e.indexes[s][r[s]],u=e.values[l]??0;n[o]=u,r[s]++}return n}const d3=(e,t)=>{const n=uo.createTransformer(t),r=Mc(e),o=Mc(t);return r.indexes.var.length===o.indexes.var.length&&r.indexes.color.length===o.indexes.color.length&&r.indexes.number.length>=o.indexes.number.length?Wy.has(e)&&!o.values.length||Wy.has(t)&&!r.values.length?s3(e,t):cu(uN(u3(r,o),o.values),n):Uf(e,t)};function dN(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?wt(e,t,n):qb(e)(e,t)}const f3=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>Et.update(t,n),stop:()=>co(t),now:()=>cn.isProcessing?cn.timestamp:Ln.now()}},fN=(e,t,n=10)=>{let r="";const o=Math.max(Math.round(t/n),2);for(let s=0;s<o;s++)r+=Math.round(e(s/(o-1))*1e4)/1e4+", ";return`linear(${r.substring(0,r.length-2)})`},Ff=2e4;function Wb(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 h3(e,t=100,n){const r=n({...e,keyframes:[0,t]}),o=Math.min(Wb(r),Ff);return{type:"keyframes",ease:s=>r.next(o*s).value/t,duration:fr(o)}}const p3=5;function hN(e,t,n){const r=Math.max(t-p3,0);return Kk(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 m3({duration:e=It.duration,bounce:t=It.bounce,velocity:n=It.velocity,mass:r=It.mass}){let o,s,l=1-t;l=_i(It.minDamping,It.maxDamping,l),e=_i(It.minDuration,It.maxDuration,fr(e)),l<1?(o=f=>{const p=f*l,m=p*e,v=p-n,b=Zy(f,l),x=Math.exp(-m);return Fg-v/b*x},s=f=>{const m=f*l*e,v=m*n+n,b=Math.pow(l,2)*Math.pow(f,2)*e,x=Math.exp(-m),A=Zy(Math.pow(f,2),l);return(-o(f)+Fg>0?-1:1)*((v-b)*x)/A}):(o=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=y3(o,s,u);if(e=$r(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 g3=12;function y3(e,t,n){let r=n;for(let o=1;o<g3;o++)r=r-e(r)/t(r);return r}function Zy(e,t){return e*Math.sqrt(1-t*t)}const v3=["duration","bounce"],b3=["stiffness","damping","mass"];function cw(e,t){return t.some(n=>e[n]!==void 0)}function _3(e){let t={velocity:It.velocity,stiffness:It.stiffness,damping:It.damping,mass:It.mass,isResolvedFromDuration:!1,...e};if(!cw(e,b3)&&cw(e,v3))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),o=r*r,s=2*_i(.05,1,1-(e.bounce||0))*Math.sqrt(o);t={...t,mass:It.mass,stiffness:o,damping:s}}else{const n=m3(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:o}=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:b}=_3({...n,velocity:-fr(n.velocity||0)}),x=v||0,A=f/(2*Math.sqrt(d*p)),T=l-s,N=fr(Math.sqrt(d/p)),E=Math.abs(T)<5;r||(r=E?It.restSpeed.granular:It.restSpeed.default),o||(o=E?It.restDelta.granular:It.restDelta.default);let w;if(A<1){const C=Zy(N,A);w=I=>{const D=Math.exp(-A*N*I);return l-D*((x+A*N*T)/C*Math.sin(C*I)+T*Math.cos(C*I))}}else if(A===1)w=C=>l-Math.exp(-N*C)*(T+(x+N*T)*C);else{const C=N*Math.sqrt(A*A-1);w=I=>{const D=Math.exp(-A*N*I),L=Math.min(C*I,300);return l-D*((x+A*N*T)*Math.sinh(L)+C*T*Math.cosh(L))/C}}const R={calculatedDuration:b&&m||null,next:C=>{const I=w(C);if(b)u.done=C>=m;else{let D=C===0?x:0;A<1&&(D=C===0?$r(x):hN(w,C,I));const L=Math.abs(D)<=r,V=Math.abs(l-I)<=o;u.done=L&&V}return u.value=u.done?l:I,u},toString:()=>{const C=Math.min(Wb(R),Ff),I=fN(D=>R.next(C*D).value,C,30);return C+"ms "+I},toTransition:()=>{}};return R}Hf.applyToOptions=e=>{const t=h3(e,100,Hf);return e.ease=t.ease,e.duration=$r(t.duration),e.type="keyframes",e};function Yy({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:o=10,bounceStiffness:s=500,modifyTarget:l,min:u,max:d,restDelta:f=.5,restSpeed:p}){const m=e[0],v={done:!1,value:m},b=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 T=m+A,N=l===void 0?T:l(T);N!==T&&(A=N-m);const E=L=>-A*Math.exp(-L/r),w=L=>N+E(L),R=L=>{const V=E(L),H=w(L);v.done=Math.abs(V)<=f,v.value=v.done?N:H};let C,I;const D=L=>{b(v.value)&&(C=L,I=Hf({keyframes:[v.value,x(v.value)],velocity:hN(w,L,v.value),damping:o,stiffness:s,restDelta:f,restSpeed:p}))};return D(0),{calculatedDuration:null,next:L=>{let V=!1;return!I&&C===void 0&&(V=!0,R(L),D(L)),C!==void 0&&L>=C?I.next(L-C):(!V&&R(L),v)}}}function E3(e,t,n){const r=[],o=n||Ei.mix||dN,s=e.length-1;for(let l=0;l<s;l++){let u=o(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 S3(e,t,{clamp:n=!0,ease:r,mixer:o}={}){const s=e.length;if(zb(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=E3(t,r,o),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 x3(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const o=jc(0,t,r);e.push(wt(n,1,o))}}function A3(e){const t=[0];return x3(t,e.length-1),t}function w3(e,t){return e.map(n=>n*t)}function T3(e,t){return e.map(()=>t||tN).splice(0,e.length-1)}function Ec({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const o=MG(r)?r.map(iw):iw(r),s={done:!1,value:t[0]},l=w3(n&&n.length===t.length?n:A3(t),e),u=S3(l,t,{ease:Array.isArray(o)?o:T3(t,o)});return{calculatedDuration:e,next:d=>(s.value=u(d),s.done=d>=e,s)}}const C3=e=>e!==null;function Zb(e,{repeat:t,repeatType:n="loop"},r,o=1){const s=e.filter(C3),u=o<0||t&&n!=="loop"&&t%2===1?0:s.length-1;return!u||r===void 0?s[u]:r}const R3={decay:Yy,inertia:Yy,tween:Ec,keyframes:Ec,spring:Hf};function pN(e){typeof e.type=="string"&&(e.type=R3[e.type])}class Yb{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 k3=e=>e/100;class Xb extends Yb{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;pN(t);const{type:n=Ec,repeat:r=0,repeatDelay:o=0,repeatType:s,velocity:l=0}=t;let{keyframes:u}=t;const d=n||Ec;d!==Ec&&typeof u[0]!="number"&&(this.mixKeyframes=cu(k3,dN(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=Wb(f));const{calculatedDuration:p}=f;this.calculatedDuration=p,this.resolvedDuration=p+o,this.totalDuration=this.resolvedDuration*(r+1)-o,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:o,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:b,type:x,onUpdate:A,finalKeyframe:T}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-o/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>o;this.currentTime=Math.max(N,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=o);let w=this.currentTime,R=r;if(m){const L=Math.min(this.currentTime,o)/u;let V=Math.floor(L),H=L%1;!H&&L>=1&&(H=1),H===1&&V--,V=Math.min(V,m+1),!!(V%2)&&(v==="reverse"?(H=1-H,b&&(H-=b/u)):v==="mirror"&&(R=l)),w=_i(0,1,H)*u}const C=E?{done:!1,value:p[0]}:R.next(w);s&&(C.value=s(C.value));let{done:I}=C;!E&&d!==null&&(I=this.playbackSpeed>=0?this.currentTime>=o:this.currentTime<=0);const D=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&I);return D&&x!==Yy&&(C.value=Zb(p,this.options,T,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=$r(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=f3,startTime:n}=this.options;this.driver||(this.driver=t(o=>this.tick(o))),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 N3(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const Jo=e=>e*180/Math.PI,Xy=e=>{const t=Jo(Math.atan2(e[1],e[0]));return Qy(t)},I3={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Xy,rotateZ:Xy,skewX:e=>Jo(Math.atan(e[1])),skewY:e=>Jo(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},Qy=e=>(e=e%360,e<0&&(e+=360),e),uw=Xy,dw=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),fw=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),O3={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:dw,scaleY:fw,scale:e=>(dw(e)+fw(e))/2,rotateX:e=>Qy(Jo(Math.atan2(e[6],e[5]))),rotateY:e=>Qy(Jo(Math.atan2(-e[2],e[0]))),rotateZ:uw,rotate:uw,skewX:e=>Jo(Math.atan(e[4])),skewY:e=>Jo(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function Jy(e){return e.includes("scale")?1:0}function ev(e,t){if(!e||e==="none")return Jy(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,o;if(n)r=O3,o=n;else{const u=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=I3,o=u}if(!o)return Jy(t);const s=r[t],l=o[1].split(",").map(L3);return typeof s=="function"?s(l):l[s]}const D3=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return ev(n,t)};function L3(e){return parseFloat(e.trim())}const Gs=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Ks=new Set(Gs),hw=e=>e===$s||e===Me,j3=new Set(["x","y","z"]),P3=Gs.filter(e=>!j3.has(e));function M3(e){const t=[];return P3.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const ra={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})=>ev(t,"x"),y:(e,{transform:t})=>ev(t,"y")};ra.translateX=ra.x;ra.translateY=ra.y;const ia=new Set;let tv=!1,nv=!1,rv=!1;function mN(){if(nv){const e=Array.from(ia).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const o=M3(r);o.length&&(n.set(r,o),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const o=n.get(r);o&&o.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)})}nv=!1,tv=!1,ia.forEach(e=>e.complete(rv)),ia.clear()}function gN(){ia.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(nv=!0)})}function z3(){rv=!0,gN(),mN(),rv=!1}class Qb{constructor(t,n,r,o,s,l=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=o,this.element=s,this.isAsync=l}scheduleResolve(){this.state="scheduled",this.isAsync?(ia.add(this),tv||(tv=!0,Et.read(gN),Et.resolveKeyframes(mN))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:o}=this;if(t[0]===null){const s=o?.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),o&&s===void 0&&o.set(t[0])}N3(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),ia.delete(this)}cancel(){this.state==="scheduled"&&(ia.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const B3=e=>e.startsWith("--");function V3(e,t,n){B3(t)?e.style.setProperty(t,n):e.style[t]=n}const U3=Bb(()=>window.ScrollTimeline!==void 0),F3={};function H3(e,t){const n=Bb(e);return()=>F3[t]??n()}const yN=H3(()=>{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})`,pw={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 vN(e,t){if(e)return typeof e=="function"?yN()?fN(e,t):"ease-out":nN(e)?mc(e):Array.isArray(e)?e.map(n=>vN(n,t)||pw.easeOut):pw[e]}function $3(e,t,n,{delay:r=0,duration:o=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=vN(u,o);Array.isArray(m)&&(p.easing=m);const v={delay:r,duration:o,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 bN(e){return typeof e=="function"&&"applyToOptions"in e}function G3({type:e,...t}){return bN(e)&&yN()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class K3 extends Yb{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,!t)return;const{element:n,name:r,keyframes:o,pseudoElement:s,allowFlatten:l=!1,finalKeyframe:u,onComplete:d}=t;this.isPseudoElement=!!s,this.allowFlatten=l,this.options=t,zb(typeof t.type!="string");const f=G3(t);this.animation=$3(n,r,o,f,s),f.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!s){const p=Zb(o,this.options,u,this.speed);this.updateMotionValue?this.updateMotionValue(p):V3(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=$r(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&&U3()?(this.animation.timeline=t,pr):n(this)}}const _N={anticipate:Qk,backInOut:Xk,circInOut:eN};function q3(e){return e in _N}function W3(e){typeof e.ease=="string"&&q3(e.ease)&&(e.ease=_N[e.ease])}const mw=10;class Z3 extends K3{constructor(t){W3(t),pN(t),super(t),t.startTime&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:n,onUpdate:r,onComplete:o,element:s,...l}=this.options;if(!n)return;if(t!==void 0){n.set(t);return}const u=new Xb({...l,autoplay:!1}),d=$r(this.finishedTime??this.time);n.setWithVelocity(u.sample(d-mw).value,u.sample(d).value,mw),u.stop()}}const gw=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(uo.test(e)||e==="0")&&!e.startsWith("url("));function Y3(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 X3(e,t,n,r){const o=e[0];if(o===null)return!1;if(t==="display"||t==="visibility")return!0;const s=e[e.length-1],l=gw(o,t),u=gw(s,t);return!l||!u?!1:Y3(e)||(n==="spring"||bN(n))&&r}function iv(e){e.duration=0,e.type="keyframes"}const Q3=new Set(["opacity","clipPath","filter","transform"]),J3=Bb(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function e4(e){const{motionValue:t,name:n,repeatDelay:r,repeatType:o,damping:s,type:l}=e;if(!(t?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:d,transformTemplate:f}=t.owner.getProps();return J3()&&n&&Q3.has(n)&&(n!=="transform"||!f)&&!d&&!r&&o!=="mirror"&&s!==0&&l!=="inertia"}const t4=40;class n4 extends Yb{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:o=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:o,repeatDelay:s,repeatType:l,name:d,motionValue:f,element:p,...m},b=p?.KeyframeResolver||Qb;this.keyframeResolver=new b(u,(x,A,T)=>this.onKeyframesResolved(x,A,v,!T),d,f,p),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,n,r,o){this.keyframeResolver=void 0;const{name:s,type:l,velocity:u,delay:d,isHandoff:f,onUpdate:p}=r;this.resolvedAt=Ln.now(),X3(t,s,l,u)||((Ei.instantAnimations||!d)&&p?.(Zb(t,r,n)),t[0]=t[t.length-1],iv(r),r.repeat=0);const v={startTime:o?this.resolvedAt?this.resolvedAt-this.createdAt>t4?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...r,keyframes:t},b=!f&&e4(v)?new Z3({...v,element:v.motionValue.owner.current}):new Xb(v);b.finished.then(()=>this.notifyFinished()).catch(pr),this.pendingTimeline&&(this.stopTimeline=b.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=b}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(),z3()),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 r4=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function i4(e){const t=r4.exec(e);if(!t)return[,];const[,n,r,o]=t;return[`--${n??r}`,o]}function EN(e,t,n=1){const[r,o]=i4(e);if(!r)return;const s=window.getComputedStyle(t).getPropertyValue(r);if(s){const l=s.trim();return Hk(l)?parseFloat(l):l}return $b(o)?EN(o,t,n+1):o}function Jb(e,t){return e?.[t]??e?.default??e}const SN=new Set(["width","height","top","left","right","bottom",...Gs]),o4={test:e=>e==="auto",parse:e=>e},xN=e=>t=>t.test(e),AN=[$s,Me,Gr,ro,YG,ZG,o4],yw=e=>AN.find(xN(e));function a4(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||Gk(e):!0}const s4=new Set(["brightness","contrast","saturate","opacity"]);function l4(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 o=n.replace(r,"");let s=s4.has(t)?1:0;return r!==n&&(s*=100),t+"("+s+o+")"}const c4=/\b([a-z-]*)\(.*?\)/gu,ov={...uo,getAnimatableNone:e=>{const t=e.match(c4);return t?t.map(l4).join(" "):e}},vw={...$s,transform:Math.round},u4={rotate:ro,rotateX:ro,rotateY:ro,rotateZ:ro,scale:Zd,scaleX:Zd,scaleY:Zd,scaleZ:Zd,skew:ro,skewX:ro,skewY:ro,distance:Me,translateX:Me,translateY:Me,translateZ:Me,x:Me,y:Me,z:Me,perspective:Me,transformPerspective:Me,opacity:Pc,originX:ow,originY:ow,originZ:Me},e_={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,...u4,zIndex:vw,fillOpacity:Pc,strokeOpacity:Pc,numOctaves:vw},d4={...e_,color:Vt,backgroundColor:Vt,outlineColor:Vt,fill:Vt,stroke:Vt,borderColor:Vt,borderTopColor:Vt,borderRightColor:Vt,borderBottomColor:Vt,borderLeftColor:Vt,filter:ov,WebkitFilter:ov},wN=e=>d4[e];function TN(e,t){let n=wN(e);return n!==ov&&(n=uo),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const f4=new Set(["auto","none","0"]);function h4(e,t,n){let r=0,o;for(;r<e.length&&!o;){const s=e[r];typeof s=="string"&&!f4.has(s)&&Mc(s).values.length&&(o=e[r]),r++}if(o&&n)for(const s of t)e[s]=TN(n,o)}class p4 extends Qb{constructor(t,n,r,o,s){super(t,n,r,o,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(),$b(f))){const p=EN(f,n.current);p!==void 0&&(t[d]=p),d===t.length-1&&(this.finalKeyframe=f)}}if(this.resolveNoneKeyframes(),!SN.has(r)||t.length!==2)return;const[o,s]=t,l=yw(o),u=yw(s);if(l!==u)if(hw(l)&&hw(u))for(let d=0;d<t.length;d++){const f=t[d];typeof f=="string"&&(t[d]=parseFloat(f))}else ra[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let o=0;o<t.length;o++)(t[o]===null||a4(t[o]))&&r.push(o);r.length&&h4(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=ra[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const o=n[n.length-1];o!==void 0&&t.getValue(r,o).jump(o,!1)}measureEndState(){const{element:t,name:n,unresolvedKeyframes:r}=this;if(!t||!t.current)return;const o=t.getValue(n);o&&o.jump(this.measuredOrigin,!1);const s=r.length-1,l=r[s];r[s]=ra[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 m4(e,t,n){if(e instanceof EventTarget)return[e];if(typeof e=="string"){let r=document;const o=n?.[e]??r.querySelectorAll(e);return o?Array.from(o):[]}return Array.from(e)}const CN=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function g4(e){return $k(e)&&"offsetHeight"in e}const bw=30,y4=e=>!isNaN(parseFloat(e));class v4{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=r=>{const o=Ln.now();if(this.updatedAt!==o&&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=y4(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 Vb);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>bw)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,bw);return Kk(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 v4(e,t)}const{schedule:t_}=rN(queueMicrotask,!1),br={x:!1,y:!1};function RN(){return br.x||br.y}function b4(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 kN(e,t){const n=m4(e),r=new AbortController,o={passive:!0,...t,signal:r.signal};return[n,o,()=>r.abort()]}function _w(e){return!(e.pointerType==="touch"||RN())}function _4(e,t,n={}){const[r,o,s]=kN(e,n),l=u=>{if(!_w(u))return;const{target:d}=u,f=t(d,u);if(typeof f!="function"||!d)return;const p=m=>{_w(m)&&(f(m),d.removeEventListener("pointerleave",p))};d.addEventListener("pointerleave",p,o)};return r.forEach(u=>{u.addEventListener("pointerenter",l,o)}),s}const NN=(e,t)=>t?e===t?!0:NN(e,t.parentElement):!1,n_=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,E4=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function S4(e){return E4.has(e.tagName)||e.tabIndex!==-1}const Sf=new WeakSet;function Ew(e){return t=>{t.key==="Enter"&&e(t)}}function Hg(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const x4=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=Ew(()=>{if(Sf.has(n))return;Hg(n,"down");const o=Ew(()=>{Hg(n,"up")}),s=()=>Hg(n,"cancel");n.addEventListener("keyup",o,t),n.addEventListener("blur",s,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function Sw(e){return n_(e)&&!RN()}function A4(e,t,n={}){const[r,o,s]=kN(e,n),l=u=>{const d=u.currentTarget;if(!Sw(u))return;Sf.add(d);const f=t(d,u),p=(b,x)=>{window.removeEventListener("pointerup",m),window.removeEventListener("pointercancel",v),Sf.has(d)&&Sf.delete(d),Sw(b)&&typeof f=="function"&&f(b,{success:x})},m=b=>{p(b,d===window||d===document||n.useGlobalTarget||NN(d,b.target))},v=b=>{p(b,!1)};window.addEventListener("pointerup",m,o),window.addEventListener("pointercancel",v,o)};return r.forEach(u=>{(n.useGlobalTarget?window:u).addEventListener("pointerdown",l,o),g4(u)&&(u.addEventListener("focus",f=>x4(f,o)),!S4(u)&&!u.hasAttribute("tabindex")&&(u.tabIndex=0))}),s}function IN(e){return $k(e)&&"ownerSVGElement"in e}function w4(e){return IN(e)&&e.tagName==="svg"}const bn=e=>!!(e&&e.getVelocity),T4=[...AN,Vt,uo],C4=e=>T4.find(xN(e)),ON=S.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function R4(e=!0){const t=S.useContext(jb);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:o}=t,s=S.useId();S.useEffect(()=>{if(e)return o(s)},[e]);const l=S.useCallback(()=>e&&r&&r(s),[s,r,e]);return!n&&r?[!1,l]:[!0]}const r_=S.createContext({strict:!1}),xw={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 xw)Os[e]={isEnabled:t=>xw[e].some(n=>!!t[n])};function av(e){for(const t in e)Os[t]={...Os[t],...e[t]}}function k4({children:e,features:t,strict:n=!1}){const[,r]=S.useState(!$g(t)),o=S.useRef(void 0);if(!$g(t)){const{renderer:s,...l}=t;o.current=s,av(l)}return S.useEffect(()=>{$g(t)&&t().then(({renderer:s,...l})=>{av(l),o.current=s,r(!0)})},[]),y.jsx(r_.Provider,{value:{renderer:o.current,strict:n},children:e})}function $g(e){return typeof e=="function"}const N4=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 $f(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||N4.has(e)}let DN=e=>!$f(e);function I4(e){typeof e=="function"&&(DN=t=>t.startsWith("on")?!$f(t):e(t))}try{I4(require("@emotion/is-prop-valid").default)}catch{}function O4(e,t,n){const r={};for(const o in e)o==="values"&&typeof e.values=="object"||(DN(o)||n===!0&&$f(o)||!t&&!$f(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);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 i_=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],o_=["initial",...i_];function Nh(e){return kh(e.animate)||o_.some(t=>zc(e[t]))}function LN(e){return!!(Nh(e)||e.variants)}function D4(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 L4(e){const{initial:t,animate:n}=D4(e,S.useContext(Rh));return S.useMemo(()=>({initial:t,animate:n}),[Aw(t),Aw(n)])}function Aw(e){return Array.isArray(e)?e.join(" "):e}const Bc={};function j4(e){for(const t in e)Bc[t]=e[t],Hb(t)&&(Bc[t].isCSSVariable=!0)}function jN(e,{layout:t,layoutId:n}){return Ks.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Bc[e]||e==="opacity")}const P4={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},M4=Gs.length;function z4(e,t,n){let r="",o=!0;for(let s=0;s<M4;s++){const l=Gs[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=CN(u,e_[l]);if(!d){o=!1;const p=P4[l]||l;r+=`${p}(${f}) `}n&&(t[l]=f)}}return r=r.trim(),n?r=n(t,o?"":r):o&&(r="none"),r}function a_(e,t,n){const{style:r,vars:o,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(Hb(d)){o[d]=f;continue}else{const p=CN(f,e_[d]);d.startsWith("origin")?(u=!0,s[d]=p):r[d]=p}}if(t.transform||(l||n?r.transform=z4(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 s_=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function PN(e,t,n){for(const r in t)!bn(t[r])&&!jN(r,n)&&(e[r]=t[r])}function B4({transformTemplate:e},t){return S.useMemo(()=>{const n=s_();return a_(n,t,e),Object.assign({},n.vars,n.style)},[t])}function V4(e,t){const n=e.style||{},r={};return PN(r,n,e),Object.assign(r,B4(e,t)),r}function U4(e,t){const n={},r=V4(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 F4={offset:"stroke-dashoffset",array:"stroke-dasharray"},H4={offset:"strokeDashoffset",array:"strokeDasharray"};function $4(e,t,n=1,r=0,o=!0){e.pathLength=1;const s=o?F4:H4;e[s.offset]=Me.transform(-r);const l=Me.transform(t),u=Me.transform(n);e[s.array]=`${l} ${u}`}function MN(e,{attrX:t,attrY:n,attrScale:r,pathLength:o,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),o!==void 0&&$4(m,o,s,l,!1)}const zN=()=>({...s_(),attrs:{}}),BN=e=>typeof e=="string"&&e.toLowerCase()==="svg";function G4(e,t,n,r){const o=S.useMemo(()=>{const s=zN();return MN(s,t,BN(r),e.transformTemplate,e.style),{...s.attrs,style:{...s.style}}},[t]);if(e.style){const s={};PN(s,e.style,e),o.style={...s,...o.style}}return o}const K4=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function l_(e){return typeof e!="string"||e.includes("-")?!1:!!(K4.indexOf(e)>-1||/[A-Z]/u.test(e))}function q4(e,t,n,{latestValues:r},o,s=!1){const u=(l_(e)?G4:U4)(t,r,o,e),d=O4(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 ww(e){const t=[{},{}];return e?.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function c_(e,t,n,r){if(typeof t=="function"){const[o,s]=ww(r);t=t(n!==void 0?n:e.custom,o,s)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[o,s]=ww(r);t=t(n!==void 0?n:e.custom,o,s)}return t}function xf(e){return bn(e)?e.get():e}function W4({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,o){return{latestValues:Z4(n,r,o,e),renderState:t()}}function Z4(e,t,n,r){const o={},s=r(e,{});for(const v in s)o[v]=xf(s[v]);let{initial:l,animate:u}=e;const d=Nh(e),f=LN(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 b=0;b<v.length;b++){const x=c_(e,v[b]);if(x){const{transitionEnd:A,transition:T,...N}=x;for(const E in N){let w=N[E];if(Array.isArray(w)){const R=p?w.length-1:0;w=w[R]}w!==null&&(o[E]=w)}for(const E in A)o[E]=A[E]}}}return o}const VN=e=>(t,n)=>{const r=S.useContext(Rh),o=S.useContext(jb),s=()=>W4(e,t,r,o);return n?s():kG(s)};function u_(e,t,n){const{style:r}=e,o={};for(const s in r)(bn(r[s])||t.style&&bn(t.style[s])||jN(s,e)||n?.getValue(s)?.liveStyle!==void 0)&&(o[s]=r[s]);return o}const Y4=VN({scrapeMotionValuesFromProps:u_,createRenderState:s_});function UN(e,t,n){const r=u_(e,t,n);for(const o in e)if(bn(e[o])||bn(t[o])){const s=Gs.indexOf(o)!==-1?"attr"+o.charAt(0).toUpperCase()+o.substring(1):o;r[s]=e[o]}return r}const X4=VN({scrapeMotionValuesFromProps:UN,createRenderState:zN}),Q4=Symbol.for("motionComponentSymbol");function gs(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function J4(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 d_=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),e6="framerAppearId",FN="data-"+d_(e6),HN=S.createContext({});function t6(e,t,n,r,o){const{visualElement:s}=S.useContext(Rh),l=S.useContext(r_),u=S.useContext(jb),d=S.useContext(ON).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(HN);p&&!p.projection&&o&&(p.type==="html"||p.type==="svg")&&n6(f.current,n,o,m);const v=S.useRef(!1);S.useInsertionEffect(()=>{p&&v.current&&p.update(n,u)});const b=n[FN],x=S.useRef(!!b&&!window.MotionHandoffIsComplete?.(b)&&window.MotionHasOptimisedAnimation?.(b));return NG(()=>{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?.(b)}),x.current=!1),p.enteringChildren=void 0)}),p}function n6(e,t,n,r){const{layoutId:o,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:$N(e.parent)),e.projection.setOptions({layoutId:o,layout:s,alwaysMeasureLayout:!!l||u&&gs(u),visualElement:e,animationType:typeof s=="string"?s:"both",initialPromotionConfig:r,crossfade:p,layoutScroll:d,layoutRoot:f})}function $N(e){if(e)return e.options.allowProjection!==!1?e.projection:$N(e.parent)}function Gg(e,{forwardMotionProps:t=!1}={},n,r){n&&av(n);const o=l_(e)?X4:Y4;function s(u,d){let f;const p={...S.useContext(ON),...u,layoutId:r6(u)},{isStatic:m}=p,v=L4(u),b=o(u,m);if(!m&&Lb){i6();const x=o6(p);f=x.MeasureLayout,v.visualElement=t6(e,b,p,r,x.ProjectionNode)}return y.jsxs(Rh.Provider,{value:v,children:[f&&v.visualElement?y.jsx(f,{visualElement:v.visualElement,...p}):null,q4(e,u,J4(b,v.visualElement,d),b,m,t)]})}s.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const l=S.forwardRef(s);return l[Q4]=e,l}function r6({layoutId:e}){const t=S.useContext(Fk).id;return t&&e!==void 0?t+"-"+e:e}function i6(e,t){S.useContext(r_).strict}function o6(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 Gg;const n=new Map,r=(s,l)=>Gg(s,l,e,t),o=(s,l)=>r(s,l);return new Proxy(o,{get:(s,l)=>l==="create"?r:(n.has(l)||n.set(l,Gg(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 s6({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function l6(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 sv({scale:e,scaleX:t,scaleY:n}){return!Kg(e)||!Kg(t)||!Kg(n)}function Zo(e){return sv(e)||KN(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function KN(e){return Tw(e.x)||Tw(e.y)}function Tw(e){return e&&e!=="0%"}function Gf(e,t,n){const r=e-n,o=t*r;return n+o}function Cw(e,t,n,r,o){return o!==void 0&&(e=Gf(e,o,r)),Gf(e,n,r)+t}function lv(e,t=0,n=1,r,o){e.min=Cw(e.min,t,n,r,o),e.max=Cw(e.max,t,n,r,o)}function qN(e,{x:t,y:n}){lv(e.x,t.translate,t.scale,t.originPoint),lv(e.y,n.translate,n.scale,n.originPoint)}const Rw=.999999999999,kw=1.0000000000001;function c6(e,t,n,r=!1){const o=n.length;if(!o)return;t.x=t.y=1;let s,l;for(let u=0;u<o;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,qN(e,l)),r&&Zo(s.latestValues)&&vs(e,s.latestValues))}t.x<kw&&t.x>Rw&&(t.x=1),t.y<kw&&t.y>Rw&&(t.y=1)}function ys(e,t){e.min=e.min+t,e.max=e.max+t}function Nw(e,t,n,r,o=.5){const s=wt(e.min,e.max,o);lv(e,t,n,s,r)}function vs(e,t){Nw(e.x,t.x,t.scaleX,t.scale,t.originX),Nw(e.y,t.y,t.scaleY,t.scale,t.originY)}function WN(e,t){return GN(l6(e.getBoundingClientRect(),t))}function u6(e,t,n){const r=WN(e,n),{scroll:o}=t;return o&&(ys(r.x,o.offset.x),ys(r.y,o.offset.y)),r}const Iw=()=>({translate:0,scale:1,origin:0,originPoint:0}),bs=()=>({x:Iw(),y:Iw()}),Ow=()=>({min:0,max:0}),Lt=()=>({x:Ow(),y:Ow()}),cv={current:null},ZN={current:!1};function d6(){if(ZN.current=!0,!!Lb)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>cv.current=e.matches;e.addEventListener("change",t),t()}else cv.current=!1}const f6=new WeakMap;function h6(e,t,n){for(const r in t){const o=t[r],s=n[r];if(bn(o))e.addValue(r,o);else if(bn(s))e.addValue(r,Is(o,{owner:e}));else if(s!==o)if(e.hasValue(r)){const l=e.getValue(r);l.liveStyle===!0?l.jump(o):l.hasAnimated||l.set(o)}else{const l=e.getStaticValue(r);e.addValue(r,Is(l!==void 0?l:o,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const Dw=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class p6{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:o,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=Qb,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=o,this.options=u,this.blockInitialAnimation=!!s,this.isControllingVariants=Nh(n),this.isVariantNode=LN(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 b=m[v];d[v]!==void 0&&bn(b)&&b.set(d[v])}}mount(t){this.current=t,f6.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)),ZN.current||d6(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:cv.current,this.parent?.addChild(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),co(this.notifyUpdate),co(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 o=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,()=>{o(),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:o}=n;if(!this.features[t]&&o&&r(this.props)&&(this.features[t]=new o(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<Dw.length;r++){const o=Dw[r];this.propEventSubscriptions[o]&&(this.propEventSubscriptions[o](),delete this.propEventSubscriptions[o]);const s="on"+o,l=t[s];l&&(this.propEventSubscriptions[o]=this.on(o,l))}this.prevMotionValues=h6(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"&&(Hk(r)||Gk(r))?r=parseFloat(r):!C4(r)&&uo.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=c_(this.props,n,this.presenceContext?.custom);s&&(r=s[t])}if(n&&r!==void 0)return r;const o=this.getBaseTargetFromProps(this.props,t);return o!==void 0&&!bn(o)?o:this.initialValues[t]!==void 0&&r===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new Vb),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}scheduleRenderMicrotask(){t_.render(this.render)}}class YN extends p6{constructor(){super(...arguments),this.KeyframeResolver=p4}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 XN(e,{style:t,vars:n},r,o){const s=e.style;let l;for(l in t)s[l]=t[l];o?.applyProjectionStyles(s,r);for(l in n)s.setProperty(l,n[l])}function m6(e){return window.getComputedStyle(e)}class g6 extends YN{constructor(){super(...arguments),this.type="html",this.renderInstance=XN}readValueFromInstance(t,n){if(Ks.has(n))return this.projection?.isProjecting?Jy(n):D3(t,n);{const r=m6(t),o=(Hb(n)?r.getPropertyValue(n):r[n])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(t,{transformPagePoint:n}){return WN(t,n)}build(t,n,r){a_(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return u_(t,n,r)}}const QN=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 y6(e,t,n,r){XN(e,t,void 0,r);for(const o in t.attrs)e.setAttribute(QN.has(o)?o:d_(o),t.attrs[o])}class v6 extends YN{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=wN(n);return r&&r.default||0}return n=QN.has(n)?n:d_(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return UN(t,n,r)}build(t,n,r){MN(t,n,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(t,n,r,o){y6(t,n,r,o)}mount(t){this.isSVGTag=BN(t.tagName),super.mount(t)}}const JN=(e,t)=>l_(e)?new v6(t):new g6(t,{allowProjection:e!==S.Fragment});function xs(e,t,n){const r=e.getProps();return c_(r,t,n!==void 0?n:r.custom,e)}const uv=e=>Array.isArray(e);function b6(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Is(n))}function _6(e){return uv(e)?e[e.length-1]||0:e}function E6(e,t){const n=xs(e,t);let{transitionEnd:r={},transition:o={},...s}=n||{};s={...s,...r};for(const l in s){const u=_6(s[l]);b6(e,l,u)}}function S6(e){return!!(bn(e)&&e.add)}function dv(e,t){const n=e.getValue("willChange");if(S6(n))return n.add(t);if(!n&&Ei.WillChange){const r=new Ei.WillChange("auto");e.addValue("willChange",r),r.add(t)}}function eI(e){return e.props[FN]}const x6=e=>e!==null;function A6(e,{repeat:t,repeatType:n="loop"},r){const o=e.filter(x6),s=t&&n!=="loop"&&t%2===1?0:o.length-1;return o[s]}const w6={type:"spring",stiffness:500,damping:25,restSpeed:10},T6=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),C6={type:"keyframes",duration:.8},R6={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},k6=(e,{keyframes:t})=>t.length>2?C6:Ks.has(e)?e.startsWith("scale")?T6(t[1]):w6:R6;function N6({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:o,repeat:s,repeatType:l,repeatDelay:u,from:d,elapsed:f,...p}){return!!Object.keys(p).length}const f_=(e,t,n,r={},o,s)=>l=>{const u=Jb(r,e)||{},d=u.delay||r.delay||0;let{elapsed:f=0}=r;f=f-$r(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:o};N6(u)||Object.assign(p,k6(e,p)),p.duration&&(p.duration=$r(p.duration)),p.repeatDelay&&(p.repeatDelay=$r(p.repeatDelay)),p.from!==void 0&&(p.keyframes[0]=p.from);let m=!1;if((p.type===!1||p.duration===0&&!p.repeatDelay)&&(iv(p),p.delay===0&&(m=!0)),(Ei.instantAnimations||Ei.skipAnimations)&&(m=!0,iv(p),p.delay=0),p.allowFlatten=!u.type&&!u.ease,m&&!s&&t.get()!==void 0){const v=A6(p.keyframes,u);if(v!==void 0){Et.update(()=>{p.onUpdate(v),p.onComplete()});return}}return u.isSync?new Xb(p):new n4(p)};function I6({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function tI(e,t,{delay:n=0,transitionOverride:r,type:o}={}){let{transition:s=e.getDefaultTransition(),transitionEnd:l,...u}=t;r&&(s=r);const d=[],f=o&&e.animationState&&e.animationState.getState()[o];for(const p in u){const m=e.getValue(p,e.latestValues[p]??null),v=u[p];if(v===void 0||f&&I6(f,p))continue;const b={delay:n,...Jb(s||{},p)},x=m.get();if(x!==void 0&&!m.isAnimating&&!Array.isArray(v)&&v===x&&!b.velocity)continue;let A=!1;if(window.MotionHandoffAnimation){const N=eI(e);if(N){const E=window.MotionHandoffAnimation(N,p,Et);E!==null&&(b.startTime=E,A=!0)}}dv(e,p),m.start(f_(p,m,v,e.shouldReduceMotion&&SN.has(p)?{type:!1}:b,e,A));const T=m.animation;T&&d.push(T)}return l&&Promise.all(d).then(()=>{Et.update(()=>{l&&E6(e,l)})}),d}function nI(e,t,n,r=0,o=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):o===1?s*r:u-s*r}function fv(e,t,n={}){const r=xs(e,t,n.type==="exit"?e.presenceContext?.custom:void 0);let{transition:o=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(o=n.transitionOverride);const s=r?()=>Promise.all(tI(e,r,n)):()=>Promise.resolve(),l=e.variantChildren&&e.variantChildren.size?(d=0)=>{const{delayChildren:f=0,staggerChildren:p,staggerDirection:m}=o;return O6(e,t,d,f,p,m,n)}:()=>Promise.resolve(),{when:u}=o;if(u){const[d,f]=u==="beforeChildren"?[s,l]:[l,s];return d().then(()=>f())}else return Promise.all([s(),l(n.delay)])}function O6(e,t,n=0,r=0,o=0,s=1,l){const u=[];for(const d of e.variantChildren)d.notify("AnimationStart",t),u.push(fv(d,t,{...l,delay:n+(typeof r=="function"?0:r)+nI(e.variantChildren,d,r,o,s)}).then(()=>d.notify("AnimationComplete",t)));return Promise.all(u)}function D6(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const o=t.map(s=>fv(e,s,n));r=Promise.all(o)}else if(typeof t=="string")r=fv(e,t,n);else{const o=typeof t=="function"?xs(e,t,n.custom):t;r=Promise.all(tI(e,o,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}function rI(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 L6=o_.length;function iI(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?iI(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<L6;n++){const r=o_[n],o=e.props[r];(zc(o)||o===!1)&&(t[r]=o)}return t}const j6=[...i_].reverse(),P6=i_.length;function M6(e){return t=>Promise.all(t.map(({animation:n,options:r})=>D6(e,n,r)))}function z6(e){let t=M6(e),n=Lw(),r=!0;const o=d=>(f,p)=>{const m=xs(e,p,d==="exit"?e.presenceContext?.custom:void 0);if(m){const{transition:v,transitionEnd:b,...x}=m;f={...f,...x,...b}}return f};function s(d){t=d(e)}function l(d){const{props:f}=e,p=iI(e.parent)||{},m=[],v=new Set;let b={},x=1/0;for(let T=0;T<P6;T++){const N=j6[T],E=n[N],w=f[N]!==void 0?f[N]:p[N],R=zc(w),C=N===d?E.isActive:null;C===!1&&(x=T);let I=w===p[N]&&w!==f[N]&&R;if(I&&r&&e.manuallyAnimateOnMount&&(I=!1),E.protectedKeys={...b},!E.isActive&&C===null||!w&&!E.prevProp||kh(w)||typeof w=="boolean")continue;const D=B6(E.prevProp,w);let L=D||N===d&&E.isActive&&!I&&R||T>x&&R,V=!1;const H=Array.isArray(w)?w:[w];let Z=H.reduce(o(N),{});C===!1&&(Z={});const{prevResolvedValues:Q={}}=E,le={...Q,...Z},q=ee=>{L=!0,v.has(ee)&&(V=!0,v.delete(ee)),E.needsAnimating[ee]=!0;const W=e.getValue(ee);W&&(W.liveStyle=!1)};for(const ee in le){const W=Z[ee],be=Q[ee];if(b.hasOwnProperty(ee))continue;let P=!1;uv(W)&&uv(be)?P=!rI(W,be):P=W!==be,P?W!=null?q(ee):v.add(ee):W!==void 0&&v.has(ee)?q(ee):E.protectedKeys[ee]=!0}E.prevProp=w,E.prevResolvedValues=Z,E.isActive&&(b={...b,...Z}),r&&e.blockInitialAnimation&&(L=!1);const oe=I&&D;L&&(!oe||V)&&m.push(...H.map(ee=>{const W={type:N};if(typeof ee=="string"&&r&&!oe&&e.manuallyAnimateOnMount&&e.parent){const{parent:be}=e,P=xs(be,ee);if(be.enteringChildren&&P){const{delayChildren:ie}=P.transition||{};W.delay=nI(be.enteringChildren,e,ie)}}return{animation:ee,options:W}}))}if(v.size){const T={};if(typeof f.initial!="boolean"){const N=xs(e,Array.isArray(f.initial)?f.initial[0]:f.initial);N&&N.transition&&(T.transition=N.transition)}v.forEach(N=>{const E=e.getBaseTarget(N),w=e.getValue(N);w&&(w.liveStyle=!0),T[N]=E??null}),m.push({animation:T})}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=Lw(),r=!0}}}function B6(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!rI(t,e):!1}function qo(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Lw(){return{animate:qo(!0),whileInView:qo(),whileHover:qo(),whileTap:qo(),whileDrag:qo(),whileFocus:qo(),exit:qo()}}class yo{constructor(t){this.isMounted=!1,this.node=t}update(){}}class V6 extends yo{constructor(t){super(t),t.animationState||(t.animationState=z6(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 U6=0;class F6 extends yo{constructor(){super(...arguments),this.id=U6++}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 o=this.node.animationState.setActive("exit",!t);n&&!t&&o.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 oI={animation:{Feature:V6},exit:{Feature:F6}};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 H6=e=>t=>n_(t)&&e(t,fu(t));function Sc(e,t,n,r){return Vc(e,t,H6(n),r)}const aI=1e-4,$6=1-aI,G6=1+aI,sI=.01,K6=0-sI,q6=0+sI;function xn(e){return e.max-e.min}function W6(e,t,n){return Math.abs(e-t)<=n}function jw(e,t,n,r=.5){e.origin=r,e.originPoint=wt(t.min,t.max,e.origin),e.scale=xn(n)/xn(t),e.translate=wt(n.min,n.max,e.origin)-e.originPoint,(e.scale>=$6&&e.scale<=G6||isNaN(e.scale))&&(e.scale=1),(e.translate>=K6&&e.translate<=q6||isNaN(e.translate))&&(e.translate=0)}function xc(e,t,n,r){jw(e.x,t.x,n.x,r?r.originX:void 0),jw(e.y,t.y,n.y,r?r.originY:void 0)}function Pw(e,t,n){e.min=n.min+t.min,e.max=e.min+xn(t)}function Z6(e,t,n){Pw(e.x,t.x,n.x),Pw(e.y,t.y,n.y)}function Mw(e,t,n){e.min=t.min-n.min,e.max=e.min+xn(t)}function Ac(e,t,n){Mw(e.x,t.x,n.x),Mw(e.y,t.y,n.y)}function cr(e){return[e("x"),e("y")]}const lI=({current:e})=>e?e.ownerDocument.defaultView:null,zw=(e,t)=>Math.abs(e-t);function Y6(e,t){const n=zw(e.x,t.x),r=zw(e.y,t.y);return Math.sqrt(n**2+r**2)}class cI{constructor(t,n,{transformPagePoint:r,contextWindow:o=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),b=this.startEvent!==null,x=Y6(v.offset,{x:0,y:0})>=this.distanceThreshold;if(!b&&!x)return;const{point:A}=v,{timestamp:T}=cn;this.history.push({...A,timestamp:T});const{onStart:N,onMove:E}=this.handlers;b||(N&&N(this.lastMoveEvent,v),this.startEvent=this.lastMoveEvent),E&&E(this.lastMoveEvent,v)},this.handlePointerMove=(v,b)=>{this.lastMoveEvent=v,this.lastMoveEventInfo=qg(b,this.transformPagePoint),Et.update(this.updatePoint,!0)},this.handlePointerUp=(v,b)=>{this.end();const{onEnd:x,onSessionEnd:A,resumeAnimation:T}=this.handlers;if(this.dragSnapToOrigin&&T&&T(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const N=Wg(v.type==="pointercancel"?this.lastMoveEventInfo:qg(b,this.transformPagePoint),this.history);this.startEvent&&x&&x(v,N),A&&A(v,N)},!n_(t))return;this.dragSnapToOrigin=s,this.handlers=n,this.transformPagePoint=r,this.distanceThreshold=l,this.contextWindow=o||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(),co(this.updatePoint)}}function qg(e,t){return t?{point:t(e.point)}:e}function Bw(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Wg({point:e},t){return{point:e,delta:Bw(e,uI(t)),offset:Bw(e,X6(t)),velocity:Q6(t,.1)}}function X6(e){return e[0]}function uI(e){return e[e.length-1]}function Q6(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const o=uI(e);for(;n>=0&&(r=e[n],!(o.timestamp-r.timestamp>$r(t)));)n--;if(!r)return{x:0,y:0};const s=fr(o.timestamp-r.timestamp);if(s===0)return{x:0,y:0};const l={x:(o.x-r.x)/s,y:(o.y-r.y)/s};return l.x===1/0&&(l.x=0),l.y===1/0&&(l.y=0),l}function J6(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?wt(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?wt(n,e,r.max):Math.min(e,n)),e}function Vw(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 e5(e,{top:t,left:n,bottom:r,right:o}){return{x:Vw(e.x,n,o),y:Vw(e.y,t,r)}}function Uw(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 t5(e,t){return{x:Uw(e.x,t.x),y:Uw(e.y,t.y)}}function n5(e,t){let n=.5;const r=xn(e),o=xn(t);return o>r?n=jc(t.min,t.max-r,e.min):r>o&&(n=jc(e.min,e.max-o,t.min)),_i(0,1,n)}function r5(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 hv=.35;function i5(e=hv){return e===!1?e=0:e===!0&&(e=hv),{x:Fw(e,"left","right"),y:Fw(e,"top","bottom")}}function Fw(e,t,n){return{min:Hw(e,t),max:Hw(e,n)}}function Hw(e,t){return typeof e=="number"?e:e[t]||0}const o5=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:o}=this.visualElement;if(o&&o.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:b,dragPropagation:x,onDragStart:A}=this.getProps();if(b&&!x&&(this.openDragLock&&this.openDragLock(),this.openDragLock=b4(b),!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(Gr.test(E)){const{projection:w}=this.visualElement;if(w&&w.layout){const R=w.layout.layoutBox[N];R&&(E=xn(R)*(parseFloat(E)/100))}}this.originPoint[N]=E}),A&&Et.postRender(()=>A(m,v)),dv(this.visualElement,"transform");const{animationState:T}=this.visualElement;T&&T.setActive("whileDrag",!0)},u=(m,v)=>{this.latestPointerEvent=m,this.latestPanInfo=v;const{dragPropagation:b,dragDirectionLock:x,onDirectionLock:A,onDrag:T}=this.getProps();if(!b&&!this.openDragLock)return;const{offset:N}=v;if(x&&this.currentDirection===null){this.currentDirection=s5(N),this.currentDirection!==null&&A&&A(this.currentDirection);return}this.updateAxis("x",v.point,N),this.updateAxis("y",v.point,N),this.visualElement.render(),T&&T(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 cI(t,{onSessionStart:s,onStart:l,onMove:u,onSessionEnd:d,resumeAnimation:f},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:p,distanceThreshold:r,contextWindow:lI(this.visualElement)})}stop(t,n){const r=t||this.latestPointerEvent,o=n||this.latestPanInfo,s=this.isDragging;if(this.cancel(),!s||!o||!r)return;const{velocity:l}=o;this.startAnimation(l);const{onDragEnd:u}=this.getProps();u&&Et.postRender(()=>u(r,o))}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:o}=this.getProps();if(!r||!Yd(t,o,this.currentDirection))return;const s=this.getAxisMotionValue(t);let l=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(l=J6(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,o=this.constraints;t&&gs(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=e5(r.layoutBox,t):this.constraints=!1,this.elastic=i5(n),o!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&cr(s=>{this.constraints!==!1&&this.getAxisMotionValue(s)&&(this.constraints[s]=r5(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:o}=this.visualElement;if(!o||!o.layout)return!1;const s=u6(r,o.root,this.visualElement.getTransformPagePoint());let l=t5(o.layout.layoutBox,s);if(n){const u=n(s6(l));this.hasMutatedConstraints=!!u,u&&(l=GN(u))}return l}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:o,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=o?200:1e6,b=o?40:1e7,x={type:"inertia",velocity:r?t[p]:0,bounceStiffness:v,bounceDamping:b,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 dv(this.visualElement,t),r.start(f_(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(),o=r[n];return o||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:o}=this.visualElement,s=this.getAxisMotionValue(n);if(o&&o.layout){const{min:l,max:u}=o.layout.layoutBox[n];s.set(t[n]-wt(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 o={x:0,y:0};cr(l=>{const u=this.getAxisMotionValue(l);if(u&&this.constraints!==!1){const d=u.get();o[l]=n5({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(wt(d,f,o[l]))})}addListeners(){if(!this.visualElement.current)return;o5.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:o}=this.visualElement,s=o.addEventListener("measure",r);o&&!o.layout&&(o.root&&o.root.updateScroll(),o.updateLayout()),Et.read(r);const l=Vc(window,"resize",()=>this.scalePositionWithinConstraints()),u=o.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:o=!1,dragConstraints:s=!1,dragElastic:l=hv,dragMomentum:u=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:o,dragConstraints:s,dragElastic:l,dragMomentum:u}}}function Yd(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function s5(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class l5 extends yo{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 $w=e=>(t,n)=>{e&&Et.postRender(()=>e(t,n))};class c5 extends yo{constructor(){super(...arguments),this.removePointerDownListener=pr}onPointerDown(t){this.session=new cI(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:lI(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:o}=this.node.getProps();return{onSessionStart:$w(t),onStart:$w(n),onMove:r,onEnd:(s,l)=>{delete this.session,o&&Et.postRender(()=>o(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 Gw(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=Gw(e,t.target.x),r=Gw(e,t.target.y);return`${n}% ${r}%`}},u5={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,o=uo.parse(e);if(o.length>5)return r;const s=uo.createTransformer(e),l=typeof o[0]!="number"?1:0,u=n.x.scale*t.x,d=n.y.scale*t.y;o[0+l]/=u,o[1+l]/=d;const f=wt(u,d,.5);return typeof o[2+l]=="number"&&(o[2+l]/=f),typeof o[3+l]=="number"&&(o[3+l]/=f),s(o)}};let Zg=!1;class d5 extends S.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:o}=this.props,{projection:s}=t;j4(f5),s&&(n.group&&n.group.add(s),r&&r.register&&o&&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:o,isPresent:s}=this.props,{projection:l}=r;return l&&(l.isPresent=s,Zg=!0,o||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(),t_.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:o}=t;Zg=!0,o&&(o.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(o),r&&r.deregister&&r.deregister(o))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function dI(e){const[t,n]=R4(),r=S.useContext(Fk);return y.jsx(d5,{...e,layoutGroup:r,switchLayoutGroup:S.useContext(HN),isPresent:t,safeToRemove:n})}const f5={borderRadius:{...rc,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:rc,borderTopRightRadius:rc,borderBottomLeftRadius:rc,borderBottomRightRadius:rc,boxShadow:u5};function h5(e,t,n){const r=bn(e)?e:Is(e);return r.start(f_("",r,t,n)),r.animation}const p5=(e,t)=>e.depth-t.depth;class m5{constructor(){this.children=[],this.isDirty=!1}add(t){Pb(this.children,t),this.isDirty=!0}remove(t){Mb(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(p5),this.isDirty=!1,this.children.forEach(t)}}function g5(e,t){const n=Ln.now(),r=({timestamp:o})=>{const s=o-n;s>=t&&(co(r),e(s-t))};return Et.setup(r,!0),()=>co(r)}const fI=["TopLeft","TopRight","BottomLeft","BottomRight"],y5=fI.length,Kw=e=>typeof e=="string"?parseFloat(e):e,qw=e=>typeof e=="number"||Me.test(e);function v5(e,t,n,r,o,s){o?(e.opacity=wt(0,n.opacity??1,b5(r)),e.opacityExit=wt(t.opacity??1,0,_5(r))):s&&(e.opacity=wt(t.opacity??1,n.opacity??1,r));for(let l=0;l<y5;l++){const u=`border${fI[l]}Radius`;let d=Ww(t,u),f=Ww(n,u);if(d===void 0&&f===void 0)continue;d||(d=0),f||(f=0),d===0||f===0||qw(d)===qw(f)?(e[u]=Math.max(wt(Kw(d),Kw(f),r),0),(Gr.test(f)||Gr.test(d))&&(e[u]+="%")):e[u]=f}(t.rotate||n.rotate)&&(e.rotate=wt(t.rotate||0,n.rotate||0,r))}function Ww(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const b5=hI(0,.5,Jk),_5=hI(.5,.95,pr);function hI(e,t,n){return r=>r<e?0:r>t?1:n(jc(e,t,r))}function Zw(e,t){e.min=t.min,e.max=t.max}function sr(e,t){Zw(e.x,t.x),Zw(e.y,t.y)}function Yw(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function Xw(e,t,n,r,o){return e-=t,e=Gf(e,1/n,r),o!==void 0&&(e=Gf(e,1/o,r)),e}function E5(e,t=0,n=1,r=.5,o,s=e,l=e){if(Gr.test(t)&&(t=parseFloat(t),t=wt(l.min,l.max,t/100)-l.min),typeof t!="number")return;let u=wt(s.min,s.max,r);e===s&&(u-=t),e.min=Xw(e.min,t,n,u,o),e.max=Xw(e.max,t,n,u,o)}function Qw(e,t,[n,r,o],s,l){E5(e,t[n],t[r],t[o],t.scale,s,l)}const S5=["x","scaleX","originX"],x5=["y","scaleY","originY"];function Jw(e,t,n,r){Qw(e.x,t,S5,n?n.x:void 0,r?r.x:void 0),Qw(e.y,t,x5,n?n.y:void 0,r?r.y:void 0)}function eT(e){return e.translate===0&&e.scale===1}function pI(e){return eT(e.x)&&eT(e.y)}function tT(e,t){return e.min===t.min&&e.max===t.max}function A5(e,t){return tT(e.x,t.x)&&tT(e.y,t.y)}function nT(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function mI(e,t){return nT(e.x,t.x)&&nT(e.y,t.y)}function rT(e){return xn(e.x)/xn(e.y)}function iT(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class w5{constructor(){this.members=[]}add(t){Pb(this.members,t),t.scheduleRender()}remove(t){if(Mb(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(o=>t===o);if(n===0)return!1;let r;for(let o=n;o>=0;o--){const s=this.members[o];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:o}=t.options;o===!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 o=e.x.translate/t.x,s=e.y.translate/t.y,l=n?.z||0;if((o||s||l)&&(r=`translate3d(${o}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:b,skewY:x}=n;f&&(r=`perspective(${f}px) ${r}`),p&&(r+=`rotate(${p}deg) `),m&&(r+=`rotateX(${m}deg) `),v&&(r+=`rotateY(${v}deg) `),b&&(r+=`skewX(${b}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"],C5=1e3;let R5=0;function Xg(e,t,n,r){const{latestValues:o}=t;o[e]&&(n[e]=o[e],t.setStaticValue(e,0),r&&(r[e]=0))}function gI(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=eI(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:o,layoutId:s}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",Et,!(o||s))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&gI(r)}function yI({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:o}){return class{constructor(l={},u=t?.()){this.id=R5++,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(I5),this.nodes.forEach(j5),this.nodes.forEach(P5),this.nodes.forEach(O5)},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 m5)}addEventListener(l,u){return this.eventHandlers.has(l)||this.eventHandlers.set(l,new Vb),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=IN(l)&&!w4(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 b=window.innerWidth;b!==m&&(m=b,this.root.updateBlockedByResize=!0,p&&p(),p=g5(v,250),Af.hasAnimatedSinceResize&&(Af.hasAnimatedSinceResize=!1,this.nodes.forEach(sT)))})}u&&this.root.registerSharedNode(u,this),this.options.animate!==!1&&f&&(u||d)&&this.addEventListener("didUpdate",({delta:p,hasLayoutChanged:m,hasRelativeLayoutChanged:v,layout:b})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const x=this.options.transition||f.getDefaultTransition()||U5,{onLayoutAnimationStart:A,onLayoutAnimationComplete:T}=f.getProps(),N=!this.targetLayout||!mI(this.targetLayout,b),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 w={...Jb(x,"layout"),onPlay:A,onComplete:T};(f.shouldReduceMotion||this.options.layoutRoot)&&(w.delay=0,w.type=!1),this.startAnimation(w),this.setAnimationOrigin(p,E)}else m||sT(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=b})}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(),co(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(M5),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&&gI(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(oT);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(aT);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(L5),this.nodes.forEach(k5),this.nodes.forEach(N5)):this.nodes.forEach(aT),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,t_.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(D5),this.sharedNodes.forEach(z5)}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(!o)return;const l=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,u=this.projectionDelta&&!pI(this.projectionDelta),d=this.getTransformTemplate(),f=d?d(this.latestValues,""):void 0,p=f!==this.prevTransformTemplateValue;l&&this.instance&&(u||Zo(this.latestValues)||p)&&(o(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)),F5(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(H5))){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}),Zo(p.latestValues)&&vs(d,p.latestValues)}return Zo(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||!Zo(f.latestValues))continue;sv(f.latestValues)&&f.updateSnapshot();const p=Lt(),m=f.measurePageBox();sr(p,m),Jw(u,f.latestValues,f.snapshot?f.snapshot.layoutBox:void 0,p)}return Zo(this.latestValues)&&Jw(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(),Z6(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):sr(this.target,this.layout.layoutBox),qN(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||sv(this.parent.latestValues)||KN(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;c6(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:b}=l;if(!b){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Yw(this.prevProjectionDelta.x,this.projectionDelta.x),Yw(this.prevProjectionDelta.y,this.projectionDelta.y)),xc(this.projectionDelta,this.layoutCorrected,b,this.latestValues),(this.treeScale.x!==m||this.treeScale.y!==v||!iT(this.projectionDelta.x,this.prevProjectionDelta.x)||!iT(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",b))}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(),b=d?d.source:void 0,x=this.layout?this.layout.source:void 0,A=b!==x,T=this.getStack(),N=!T||T.members.length<=1,E=!!(A&&!N&&this.options.crossfade===!0&&!this.path.some(V5));this.animationProgress=0;let w;this.mixTargetDelta=R=>{const C=R/1e3;lT(m.x,l.x,C),lT(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),B5(this.relativeTarget,this.relativeTargetOrigin,v,C),w&&A5(this.relativeTarget,w)&&(this.isProjectionDirty=!1),w||(w=Lt()),sr(w,this.relativeTarget)),A&&(this.animationValues=p,v5(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&&(co(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Et.update(()=>{Af.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=Is(0)),this.currentAnimation=h5(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(C5),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&&vI(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 w5),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&&!Zo(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:b}=this.projectionDelta;l.transformOrigin=`${v.origin*100}% ${b.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:T,isCSSVariable:N}=Bc[x],E=m==="none"?p[x]:A(p[x],f);if(T){const w=T.length;for(let R=0;R<w;R++)l[T[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(oT),this.root.sharedNodes.clear()}}}function k5(e){e.updateLayout()}function N5(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:o}=e.options,s=t.source!==e.layout.source;o==="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}):vI(o,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=!pI(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 b=Lt();Ac(b,t.layoutBox,m.layoutBox);const x=Lt();Ac(x,n,v.layoutBox),mI(b,x)||(f=!0),p.options.layoutRoot&&(e.relativeTarget=x,e.relativeTargetOrigin=b,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 I5(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 O5(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function D5(e){e.clearSnapshot()}function oT(e){e.clearMeasurements()}function aT(e){e.isLayoutDirty=!1}function L5(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function sT(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function j5(e){e.resolveTargetDelta()}function P5(e){e.calcProjection()}function M5(e){e.resetSkewAndRotation()}function z5(e){e.removeLeadSnapshot()}function lT(e,t,n){e.translate=wt(t.translate,0,n),e.scale=wt(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function cT(e,t,n,r){e.min=wt(t.min,n.min,r),e.max=wt(t.max,n.max,r)}function B5(e,t,n,r){cT(e.x,t.x,n.x,r),cT(e.y,t.y,n.y,r)}function V5(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const U5={duration:.45,ease:[.4,0,.1,1]},uT=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),dT=uT("applewebkit/")&&!uT("chrome/")?Math.round:pr;function fT(e){e.min=dT(e.min),e.max=dT(e.max)}function F5(e){fT(e.x),fT(e.y)}function vI(e,t,n){return e==="position"||e==="preserve-aspect"&&!W6(rT(t),rT(n),.2)}function H5(e){return e!==e.root&&e.scroll?.wasRoot}const $5=yI({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},bI=yI({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Qg.current){const e=new $5({});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:c5},drag:{Feature:l5,ProjectionNode:bI,MeasureLayout:dI}};function hT(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const o="onHover"+n,s=r[o];s&&Et.postRender(()=>s(t,fu(t)))}class K5 extends yo{mount(){const{current:t}=this.node;t&&(this.unmount=_4(t,(n,r)=>(hT(this.node,r,"Start"),o=>hT(this.node,o,"End"))))}unmount(){}}class q5 extends yo{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 pT(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 o="onTap"+(n==="End"?"":n),s=r[o];s&&Et.postRender(()=>s(t,fu(t)))}class W5 extends yo{mount(){const{current:t}=this.node;t&&(this.unmount=A4(t,(n,r)=>(pT(this.node,r,"Start"),(o,{success:s})=>pT(this.node,o,s?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const pv=new WeakMap,Jg=new WeakMap,Z5=e=>{const t=pv.get(e.target);t&&t(e)},Y5=e=>{e.forEach(Z5)};function X5({root:e,...t}){const n=e||document;Jg.has(n)||Jg.set(n,{});const r=Jg.get(n),o=JSON.stringify(t);return r[o]||(r[o]=new IntersectionObserver(Y5,{root:e,...t})),r[o]}function Q5(e,t,n){const r=X5(t);return pv.set(e,n),r.observe(e),()=>{pv.delete(e),r.unobserve(e)}}const J5={some:0,all:1};class eK extends yo{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:o="some",once:s}=t,l={root:n?n.current:void 0,rootMargin:r,threshold:typeof o=="number"?o:J5[o]},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 Q5(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(tK(t,n))&&this.startObserver()}unmount(){}}function tK({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const _I={inView:{Feature:eK},tap:{Feature:W5},focus:{Feature:q5},hover:{Feature:K5}},nK={layout:{ProjectionNode:bI,MeasureLayout:dI}},rK={...oI,..._I,...G5,...nK},EI=a6(rK,JN),iK={renderer:JN,...oI,..._I};var oK={};const wf=Object.create(null),ic=e=>oK||globalThis.Deno?.env.toObject()||globalThis.__env__||(e?wf:globalThis),Wo=new Proxy(wf,{get(e,t){return ic()[t]??wf[t]},has(e,t){const n=ic();return t in n||t in wf},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)},sK=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)}},ea=new sK;function lK(e){setTimeout(e,0)}var la=typeof window>"u"||"Deno"in globalThis;function En(){}function cK(e,t){return typeof e=="function"?e(t):e}function mv(e){return typeof e=="number"&&e>=0&&e!==1/0}function SI(e,t){return Math.max(e+(t||0)-Date.now(),0)}function io(e,t){return typeof e=="function"?e(t):e}function ur(e,t){return typeof e=="function"?e(t):e}function mT(e,t){const{type:n="all",exact:r,fetchStatus:o,predicate:s,queryKey:l,stale:u}=e;if(l){if(r){if(t.queryHash!==h_(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||o&&o!==t.state.fetchStatus||s&&!s(t))}function gT(e,t){const{exact:n,status:r,predicate:o,mutationKey:s}=e;if(s){if(!t.options.mutationKey)return!1;if(n){if(ca(t.options.mutationKey)!==ca(s))return!1}else if(!Uc(t.options.mutationKey,s))return!1}return!(r&&t.state.status!==r||o&&!o(t))}function h_(e,t){return(t?.queryKeyHashFn||ca)(e)}function ca(e){return JSON.stringify(e,(t,n)=>gv(n)?Object.keys(n).sort().reduce((r,o)=>(r[o]=n[o],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 uK=Object.prototype.hasOwnProperty;function xI(e,t){if(e===t)return e;const n=yT(e)&&yT(t);if(!n&&!(gv(e)&&gv(t)))return t;const o=(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<o:uK.call(e,p))&&d++;continue}if(m===null||v===null||typeof m!="object"||typeof v!="object"){u[p]=v;continue}const b=xI(m,v);u[p]=b,b===m&&d++}return o===l&&d===o?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 yT(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function gv(e){if(!vT(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!vT(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function vT(e){return Object.prototype.toString.call(e)==="[object Object]"}function dK(e){return new Promise(t=>{ea.setTimeout(t,e)})}function yv(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?xI(e,t):t}function fK(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function hK(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var p_=Symbol();function AI(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===p_?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function wI(e,t){return typeof e=="function"?e(...t):!!e}var pK=class extends qs{#e;#t;#n;constructor(){super(),this.#n=e=>{if(!la&&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"}},m_=new pK;function vv(){let e,t;const n=new Promise((o,s)=>{e=o,t=s});n.status="pending",n.catch(()=>{});function r(o){Object.assign(n,o),delete n.resolve,delete n.reject}return n.resolve=o=>{r({status:"fulfilled",value:o}),e(o)},n.reject=o=>{r({status:"rejected",reason:o}),t(o)},n}var mK=lK;function gK(){let e=[],t=0,n=u=>{u()},r=u=>{u()},o=mK;const s=u=>{t?e.push(u):o(()=>{n(u)})},l=()=>{const u=e;e=[],u.length&&o(()=>{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=>{o=u}}}var Zt=gK(),yK=class extends qs{#e=!0;#t;#n;constructor(){super(),this.#n=e=>{if(!la&&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 yK;function vK(e){return Math.min(1e3*2**e,3e4)}function TI(e){return(e??"online")==="online"?qf.isOnline():!0}var bv=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function CI(e){let t=!1,n=0,r;const o=vv(),s=()=>o.status!=="pending",l=A=>{if(!s()){const T=new bv(A);v(T),e.onCancel?.(T)}},u=()=>{t=!0},d=()=>{t=!1},f=()=>m_.isFocused()&&(e.networkMode==="always"||qf.isOnline())&&e.canRun(),p=()=>TI(e.networkMode)&&e.canRun(),m=A=>{s()||(r?.(),o.resolve(A))},v=A=>{s()||(r?.(),o.reject(A))},b=()=>new Promise(A=>{r=T=>{(s()||f())&&A(T)},e.onPause?.()}).then(()=>{r=void 0,s()||e.onContinue?.()}),x=()=>{if(s())return;let A;const T=n===0?e.initialPromise:void 0;try{A=T??e.fn()}catch(N){A=Promise.reject(N)}Promise.resolve(A).then(m).catch(N=>{if(s())return;const E=e.retry??(la?0:3),w=e.retryDelay??vK,R=typeof w=="function"?w(n,N):w,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),dK(R).then(()=>f()?void 0:b()).then(()=>{t?v(N):x()})})};return{promise:o,status:()=>o.status,cancel:l,continue:()=>(r?.(),o),cancelRetry:u,continueRetry:d,canStart:p,start:()=>(p()?x():b().then(x),o)}}var RI=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),mv(this.gcTime)&&(this.#e=ea.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(la?1/0:300*1e3))}clearGcTimeout(){this.#e&&(ea.clearTimeout(this.#e),this.#e=void 0)}},bK=class extends RI{#e;#t;#n;#i;#r;#a;#s;constructor(e){super(),this.#s=!1,this.#a=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=bT(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.#a,...e},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const t=bT(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=yv(this.state.data,e,this.options);return this.#o({data:n,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),n}setState(e,t){this.#o({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===p_||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>io(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:!SI(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.#o({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)})},o=()=>{const u=AI(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:o};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.#o({type:"fetch",meta:l.fetchOptions?.meta}),this.#r=CI({initialPromise:t?.initialPromise,fn:l.fetchFn,onCancel:u=>{u instanceof bv&&u.revert&&this.setState({...this.#t,fetchStatus:"idle"}),n.abort()},onFail:(u,d)=>{this.#o({type:"failed",failureCount:u,error:d})},onPause:()=>{this.#o({type:"pause"})},onContinue:()=>{this.#o({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 bv){if(u.silent)return this.#r.promise;if(u.revert){if(this.state.data===void 0)throw u;return this.state.data}}throw this.#o({type:"error",error:u}),this.#n.config.onError?.(u,this),this.#n.config.onSettled?.(this.state.data,u,this),u}finally{this.scheduleGc()}}#o(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,...kI(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 o=e.error;return{...n,error:o,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,fetchFailureReason:o,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 kI(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:TI(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function bT(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 _K=class extends qs{constructor(e,t){super(),this.options=t,this.#e=e,this.#o=null,this.#s=vv(),this.bindMethods(),this.setOptions(t)}#e;#t=void 0;#n=void 0;#i=void 0;#r;#a;#s;#o;#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),_T(this.#t,this.options)?this.#d():this.updateResult(),this.#b())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return _v(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return _v(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&&ET(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)||io(this.options.staleTime,this.#t)!==io(t.staleTime,this.#t))&&this.#g();const o=this.#y();r&&(this.#t!==n||ur(this.options.enabled,this.#t)!==ur(t.enabled,this.#t)||o!==this.#l)&&this.#v(o)}getOptimisticResult(e){const t=this.#e.getQueryCache().build(this.#e,e),n=this.createResult(t,e);return SK(this,n)&&(this.#i=n,this.#a=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=io(this.options.staleTime,this.#t);if(la||this.#i.isStale||!mv(e))return;const n=SI(this.#i.dataUpdatedAt,e)+1;this.#c=ea.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,!(la||ur(this.options.enabled,this.#t)===!1||!mv(this.#l)||this.#l===0)&&(this.#u=ea.setInterval(()=>{(this.options.refetchIntervalInBackground||m_.isFocused())&&this.#d()},this.#l))}#b(){this.#g(),this.#v(this.#y())}#_(){this.#c&&(ea.clearTimeout(this.#c),this.#c=void 0)}#E(){this.#u&&(ea.clearInterval(this.#u),this.#u=void 0)}createResult(e,t){const n=this.#t,r=this.options,o=this.#i,s=this.#r,l=this.#a,d=e!==n?e.state:this.#n,{state:f}=e;let p={...f},m=!1,v;if(t._optimisticResults){const L=this.hasListeners(),V=!L&&_T(e,t),H=L&&ET(e,n,t,r);(V||H)&&(p={...p,...kI(f.data,e.options)}),t._optimisticResults==="isRestoring"&&(p.fetchStatus="idle")}let{error:b,errorUpdatedAt:x,status:A}=p;v=p.data;let T=!1;if(t.placeholderData!==void 0&&v===void 0&&A==="pending"){let L;o?.isPlaceholderData&&t.placeholderData===l?.placeholderData?(L=o.data,T=!0):L=typeof t.placeholderData=="function"?t.placeholderData(this.#h?.state.data,this.#h):t.placeholderData,L!==void 0&&(A="success",v=yv(o?.data,L,t),m=!0)}if(t.select&&v!==void 0&&!T)if(o&&v===s?.data&&t.select===this.#m)v=this.#f;else try{this.#m=t.select,v=t.select(v),v=yv(o?.data,v,t),this.#f=v,this.#o=null}catch(L){this.#o=L}this.#o&&(b=this.#o,v=this.#f,x=Date.now(),A="error");const N=p.fetchStatus==="fetching",E=A==="pending",w=A==="error",R=E&&N,C=v!==void 0,D={status:A,fetchStatus:p.fetchStatus,isPending:E,isSuccess:A==="success",isError:w,isInitialLoading:R,isLoading:R,data:v,dataUpdatedAt:p.dataUpdatedAt,error:b,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:w&&!C,isPaused:p.fetchStatus==="paused",isPlaceholderData:m,isRefetchError:w&&C,isStale:g_(e,t),refetch:this.refetch,promise:this.#s,isEnabled:ur(t.enabled,e)!==!1};if(this.options.experimental_prefetchInRender){const L=Z=>{D.status==="error"?Z.reject(D.error):D.data!==void 0&&Z.resolve(D.data)},V=()=>{const Z=this.#s=D.promise=vv();L(Z)},H=this.#s;switch(H.status){case"pending":e.queryHash===n.queryHash&&L(H);break;case"fulfilled":(D.status==="error"||D.data!==H.value)&&V();break;case"rejected":(D.status!=="error"||D.error!==H.reason)&&V();break}}return D}updateResult(){const e=this.#i,t=this.createResult(this.#t,this.options);if(this.#r=this.#t.state,this.#a=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,o=typeof r=="function"?r():r;if(o==="all"||!o&&!this.#p.size)return!0;const s=new Set(o??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 EK(e,t){return ur(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function _T(e,t){return EK(e,t)||e.state.data!==void 0&&_v(e,t,t.refetchOnMount)}function _v(e,t,n){if(ur(t.enabled,e)!==!1&&io(t.staleTime,e)!=="static"){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&g_(e,t)}return!1}function ET(e,t,n,r){return(e!==t||ur(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&g_(e,n)}function g_(e,t){return ur(t.enabled,e)!==!1&&e.isStaleByTime(io(t.staleTime,e))}function SK(e,t){return!Kf(e.getCurrentResult(),t)}function ST(e){return{onFetch:(t,n)=>{const r=t.options,o=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=AI(t.options,t.fetchOptions),b=async(x,A,T)=>{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:T?"backward":"forward",meta:t.options.meta};return m(I),I})(),w=await v(E),{maxPages:R}=t.options,C=T?hK:fK;return{pages:C(x.pages,w,R),pageParams:C(x.pageParams,A,R)}};if(o&&s.length){const x=o==="backward",A=x?xK:xT,T={pages:s,pageParams:l},N=A(r,T);u=await b(T,N,x)}else{const x=e??s.length;do{const A=d===0?l[0]??r.initialPageParam:xT(r,u);if(d>0&&A==null)break;u=await b(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 xT(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 xK(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}var AK=class extends RI{#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||NI(),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=CI({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",o=!this.#i.canStart();try{if(r)t();else{this.#r({type:"pending",variables:e,isPaused:o}),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:o})}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 NI(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var II=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 AK({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(o=>o.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=>gT(t,n))}findAll(e={}){return this.getAll().filter(t=>gT(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 wK=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&&ca(n.mutationKey)!==ca(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.#a(t)}getCurrentResult(){return this.#t}reset(){this.#n?.removeObserver(this),this.#n=void 0,this.#r(),this.#a()}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??NI();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}}#a(t){Zt.batch(()=>{if(this.#i&&this.hasListeners()){const n=this.#t.variables,r=this.#t.context,o={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};t?.type==="success"?(this.#i.onSuccess?.(t.data,n,r,o),this.#i.onSettled?.(t.data,null,n,r,o)):t?.type==="error"&&(this.#i.onError?.(t.error,n,r,o),this.#i.onSettled?.(void 0,t.error,n,r,o))}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,o=t.queryHash??h_(r,t);let s=this.get(o);return s||(s=new bK({client:e,queryKey:r,queryHash:o,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=>mT(t,n))}findAll(e={}){const t=this.getAll();return Object.keys(e).length>0?t.filter(n=>mT(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()})})}},CK=class{#e;#t;#n;#i;#r;#a;#s;#o;constructor(e={}){this.#e=e.queryCache||new TK,this.#t=e.mutationCache||new II,this.#n=e.defaultOptions||{},this.#i=new Map,this.#r=new Map,this.#a=0}mount(){this.#a++,this.#a===1&&(this.#s=m_.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#o=qf.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#a--,this.#a===0&&(this.#s?.(),this.#s=void 0,this.#o?.(),this.#o=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(io(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=cK(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(o=>o.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(o=>!o.isDisabled()&&!o.isStatic()).map(o=>{let s=o.fetch(void 0,n);return n.throwOnError||(s=s.catch(En)),o.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(io(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=ST(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(En).catch(En)}ensureInfiniteQueryData(e){return e.behavior=ST(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(ca(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(ca(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=h_(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===p_&&(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()}},OI=S.createContext(void 0),y_=e=>{const t=S.useContext(OI);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},RK=({client:e,children:t})=>(S.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),y.jsx(OI.Provider,{value:e,children:t})),DI=S.createContext(!1),kK=()=>S.useContext(DI);DI.Provider;function NK(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var IK=S.createContext(NK()),OK=()=>S.useContext(IK),DK=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},LK=e=>{S.useEffect(()=>{e.clearReset()},[e])},jK=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:o})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(o&&e.data===void 0||wI(n,[e.error,r])),PK=e=>{if(e.suspense){const n=o=>o==="static"?o:Math.max(o??1e3,1e3),r=e.staleTime;e.staleTime=typeof r=="function"?(...o)=>n(r(...o)):n(r),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},MK=(e,t)=>e.isLoading&&e.isFetching&&!t,zK=(e,t)=>e?.suspense&&t.isPending,AT=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function BK(e,t,n){const r=kK(),o=OK(),s=y_(),l=s.defaultQueryOptions(e);s.getDefaultOptions().queries?._experimental_beforeQuery?.(l),l._optimisticResults=r?"isRestoring":"optimistic",PK(l),DK(l,o),LK(o);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]),zK(l,f))throw AT(l,d,o);if(jK({result:f,errorResetBoundary:o,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&&!la&&MK(f,r)&&(u?AT(l,d,o):s.getQueryCache().get(l.queryHash)?.promise)?.catch(En).finally(()=>{d.updateResult()}),l.notifyOnChangeProps?f:d.trackResult(f)}function Ih(e,t){return BK(e,_K)}function ya(e,t){const n=y_(),[r]=S.useState(()=>new wK(n,e));S.useEffect(()=>{r.setOptions(e)},[r,e]);const o=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(o.error&&wI(r.options.throwOnError,[o.error]))throw o.error;return{...o,mutate:s,mutateAsync:o.mutate}}const LI=e=>{const[t,n]=S.useState(e);return S.useEffect(()=>{n(e??window.document.body)},[e]),t},VK={},wT=e=>{let t;const n=new Set,r=(p,m)=>{const v=typeof p=="function"?p(t):p;if(!Object.is(v,t)){const b=t;t=m??(typeof v!="object"||v===null)?v:Object.assign({},t,v),n.forEach(x=>x(t,b))}},o=()=>t,d={setState:r,getState:o,getInitialState:()=>f,subscribe:p=>(n.add(p),()=>n.delete(p)),destroy:()=>{(VK?"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,o,d);return d},UK=e=>e?wT(e):wT;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 TT;function FK(){if(TT)return ry;TT=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,o=e.useEffect,s=e.useLayoutEffect,l=e.useDebugValue;function u(m,v){var b=v(),x=r({inst:{value:b,getSnapshot:v}}),A=x[0].inst,T=x[1];return s(function(){A.value=b,A.getSnapshot=v,d(A)&&T({inst:A})},[m,b,v]),o(function(){return d(A)&&T({inst:A}),m(function(){d(A)&&T({inst:A})})},[m]),l(b),b}function d(m){var v=m.getSnapshot;m=m.value;try{var b=v();return!n(m,b)}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 CT;function HK(){return CT||(CT=1,ny.exports=FK()),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 RT;function $K(){if(RT)return ty;RT=1;var e=Qc(),t=HK();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,o=t.useSyncExternalStore,s=e.useRef,l=e.useEffect,u=e.useMemo,d=e.useDebugValue;return ty.useSyncExternalStoreWithSelector=function(f,p,m,v,b){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,w=I,I=v(I),b!==void 0&&A.hasValue){var D=A.value;if(b(D,I))return R=D}return R=I}if(D=R,r(w,I))return D;var L=v(I);return b!==void 0&&b(D,L)?(w=I,D):(w=I,R=L)}var E=!1,w,R,C=m===void 0?null:m;return[function(){return N(p())},C===null?void 0:function(){return N(C())}]},[p,m,v,b]);var T=o(f,x[0],x[1]);return l(function(){A.hasValue=!0,A.value=T},[T]),d(T),T},ty}var kT;function GK(){return kT||(kT=1,ey.exports=$K()),ey.exports}var KK=GK();const qK=fb(KK),jI={},{useDebugValue:WK}=Oe,{useSyncExternalStoreWithSelector:ZK}=qK;let NT=!1;const YK=e=>e;function XK(e,t=YK,n){(jI?"production":void 0)!=="production"&&n&&!NT&&(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"),NT=!0);const r=ZK(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,n);return WK(r),r}const IT=e=>{(jI?"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"?UK(e):e,n=(r,o)=>XK(t,r,o);return Object.assign(n,t),n},PI=e=>e?IT(e):IT,QK=PI((e,t)=>({scrollBlockers:[],addBlockage:(n,r)=>e(o=>{const s=o.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(o=>{const s=o.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 JK(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,o]of e)if(!Object.is(o,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:e8}=Oe;function MI(e){const t=e8();return n=>{const r=e(n);return JK(t.current,r)?t.current:t.current=r}}const zI=e=>{const{disableScroll:t=!1,element:n,key:r="unnamed_blocker"}=e??{},{isElementScrollBlocked:o,addBlockage:s,removeBlockage:l}=QK(MI(f=>({isElementScrollBlocked:f.isElementScrollBlocked,addBlockage:f.addBlockage,removeBlockage:f.removeBlockage}))),u=LI(n);return S.useEffect(()=>{const f=n??window.document.body;t?s(r,f):l(r,f)},[s,t,n,r,l]),{isScrollBlocked:u?o(u):!1}},hu="relative scroll-mb-8 scroll-mt-[30vh] scroll-p-8",t8="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",n8=({className:e,...t})=>y.jsx("h1",{className:ye("mt-5 text-2xl font-bold",e),...t}),r8=({className:e,...t})=>y.jsx("h2",{className:ye("mt-16 mb-2 text-2xl font-bold",hu,e),...t}),i8=({className:e,...t})=>y.jsx("h3",{className:ye("mt-5 mb-2 text-xl font-bold",hu,e),...t}),o8=({className:e,...t})=>y.jsx("h4",{className:ye("mt-3 text-lg font-bold",hu,e),...t}),a8=({className:e,...t})=>y.jsx("h5",{className:ye("mt-3 text-base font-bold",hu,e),...t}),s8=({className:e,...t})=>y.jsx("h6",{className:ye("mt-3 ml-3 text-base font-bold",hu,e),...t}),l8=e=>String(e).normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(/\s+/g,"-").toLowerCase(),c8=e=>{const r=(document.getElementById(e)?.getBoundingClientRect()?.top??0)+window.scrollY-150;window.scrollTo({top:r,behavior:"smooth"})},u8=(e,t)=>{const n=e.getBoundingClientRect().left,r=e.getBoundingClientRect().top,o=window.getComputedStyle(e,":after"),s=n+parseInt(o.getPropertyValue("left"),10),l=s+parseInt(o.width,10),u=r+parseInt(o.getPropertyValue("top"),10),d=u+parseInt(o.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,...o})=>{const s=typeof t=="string"?l8(t):void 0,l=u=>{const{id:d}=u.currentTarget;if(u8(u.currentTarget,u)&&typeof d=="string"){const m=`${window.location.href.split("#")[0]}#${d}`;navigator.clipboard.writeText(m),c8(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:ye(r&&t8,n),...o,children:t})},d8=({isClickable:e,...t})=>y.jsx(n8,{...t}),f8=({isClickable:e=!1,...t})=>y.jsx(pu,{H:r8,isClickable:e,...t}),v_=({isClickable:e=!1,...t})=>y.jsx(pu,{H:i8,isClickable:e,...t}),h8=({isClickable:e=!1,...t})=>y.jsx(pu,{H:o8,isClickable:e,...t}),p8=({isClickable:e=!1,...t})=>y.jsx(pu,{H:a8,isClickable:e,...t}),m8=({isClickable:e=!1,...t})=>y.jsx(pu,{H:s8,isClickable:e,...t});var b_=(e=>(e.SM="sm",e.MD="md",e.LG="lg",e.XL="xl",e.UNSET="unset",e))(b_||{});const g8=Tn("cursor-default overflow-auto py-3 shadow-sm justify-center",{variants:{size:{sm:"h-auto max-h-[30vh] w-[95vw] max-w-xl",md:"h-auto max-h-[50vh] w-[95vw] max-w-xl",lg:"h-auto max-h-[70vh] w-[95vw] max-w-2xl",xl:"h-auto max-h-[95vh] w-[95vw] max-w-6xl",unset:"h-auto max-h-[95vh] w-[95vw]"}},defaultVariants:{size:"unset"}}),y8=EI.create(kr),__=({children:e,isOpen:t,container:n,disableScroll:r=!0,onClose:o,hasCloseButton:s=!1,title:l,size:u="md",className:d,...f})=>{const p=LI(n);if(zI({key:"modal",disableScroll:t&&r}),!p)return y.jsx(y.Fragment,{});const m=typeof l=="string";return ma.createPortal(y.jsx(EI.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(),o?.()},"aria-hidden":!t,children:y.jsx("div",{className:"flex justify-center p-4",children:y.jsxs(y8,{onClick:v=>v.stopPropagation(),initial:{scale:t?.5:1},animate:{scale:t?1:.5},transition:{duration:.3},className:g8({size:u,className:d}),role:"dialog","aria-modal":!0,roundedSize:"2xl",...f,children:[y.jsxs("div",{className:ye("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(v_,{className:"ml-4 flex items-center justify-center text-lg font-bold",children:l}),s&&y.jsx(lt,{variant:st.HOVERABLE,color:at.TEXT,label:"Close modal",className:"ml-auto",onClick:v=>{v.stopPropagation(),o?.()},Icon:ga,size:Yn.ICON_MD})]}),y.jsx("div",{className:"flex flex-1 flex-col items-center overflow-auto",children:e})]})})}),p)},v8=e=>{const t=Zr(),n=e??t??ot,r=JR(n),{data:o}=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:o?.data}};var b8=Object.defineProperty,_8=Object.defineProperties,E8=Object.getOwnPropertyDescriptors,OT=Object.getOwnPropertySymbols,S8=Object.prototype.hasOwnProperty,x8=Object.prototype.propertyIsEnumerable,DT=(e,t,n)=>t in e?b8(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Er=(e,t)=>{for(var n in t||(t={}))S8.call(t,n)&&DT(e,n,t[n]);if(OT)for(var n of OT(t))x8.call(t,n)&&DT(e,n,t[n]);return e},Vr=(e,t)=>_8(e,E8(t)),A8=class extends Error{constructor(e,t,n){super(t||e.toString(),{cause:n}),this.status=e,this.statusText=t,this.error=n}},w8=async(e,t)=>{var n,r,o,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((o=p.hooks)==null?void 0:o.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}},LT=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 C8(e){if(typeof e=="number")return new LT({type:"linear",attempts:e,delay:1e3});switch(e.type){case"linear":return new LT(e);case"exponential":return new T8(e);default:throw new Error("Invalid retry strategy")}}var R8=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),o=n(e.auth.password);if(!r||!o)return t;t.authorization=`Basic ${btoa(`${r}:${o}`)}`}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},k8=/^application\/(?:[\w!#$%&*.^`~-]*\+)?json(;.+)?$/i;function N8(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 k8.test(r)?"json":n.has(r)||r.startsWith("text/")?"text":"blob"}function I8(e){try{return JSON.parse(e),!0}catch{return!1}}function BI(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 jT(e){try{return JSON.parse(e)}catch{return e}}function PT(e){return typeof e=="function"}function O8(e){if(e?.customFetchImpl)return e.customFetchImpl;if(typeof globalThis<"u"&&PT(globalThis.fetch))return globalThis.fetch;if(typeof window<"u"&&PT(window.fetch))return window.fetch;throw new Error("No fetch implementation found")}async function D8(e){const t=new Headers(e?.headers),n=await R8(e);for(const[r,o]of Object.entries(n||{}))t.set(r,o);if(!t.has("content-type")){const r=L8(e?.body);r&&t.set("content-type",r)}return t}function L8(e){return BI(e)?"application/json":null}function j8(e){if(!e?.body)return null;const t=new Headers(e?.headers);if(BI(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 P8(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 UI.includes(r)?r.toUpperCase():t?.body?"POST":"GET"}return t?.body?"POST":"GET"}function M8(e,t){let n;return!e?.signal&&e?.timeout&&(n=setTimeout(()=>t?.abort(),e?.timeout)),{abortTimeout:n,clearTimeout:()=>{n&&clearTimeout(n)}}}var z8=class VI extends Error{constructor(t,n){super(n||JSON.stringify(t,null,2)),this.issues=t,Object.setPrototypeOf(this,VI.prototype)}};async function Tf(e,t){let n=await e["~standard"].validate(t);if(n.issues)throw new z8(n.issues);return n.value}var UI=["get","post","put","patch","delete"],B8=e=>({id:"apply-schema",name:"Apply Schema",version:"1.0.0",async init(t,n){var r,o,s,l;const u=((o=(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:o.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 Tf(f.input,n?.body):n?.body,params:f.params?await Tf(f.params,n?.params):n?.params,query:f.query?await Tf(f.query,n?.query):n?.query})),{url:t,options:p}}}return{url:t,options:n}}}),V8=e=>{async function t(n,r){const o=Vr(Er(Er({},e),r),{plugins:[...e?.plugins||[],B8(e||{})]});if(e?.catchAllError)try{return await Ev(n,o)}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 Ev(n,o)}return t};function U8(e,t){let{baseURL:n,params:r,query:o}=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];UI.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(o||{}))v!=null&&d.set(m,String(v));if(r)if(Array.isArray(r)){const m=l.split("/").filter(v=>v.startsWith(":"));for(const[v,b]of m.entries()){const x=r[v];l=l.replace(b,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 Ev=async(e,t)=>{var n,r,o,s,l,u,d,f;const{hooks:p,url:m,options:v}=await w8(e,t),b=O8(v),x=new AbortController,A=(n=v.signal)!=null?n:x.signal,T=U8(m,v),N=j8(v),E=await D8(v),w=P8(m,v);let R=Vr(Er({},v),{url:T,headers:E,body:N,method:w,signal:A});for(const le of p.onRequest)if(le){const q=await le(R);q instanceof Object&&(R=q)}("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}=M8(v,x);let I=await b(R.url,R);C();const D={response:I,request:R};for(const le of p.onResponse)if(le){const q=await le(Vr(Er({},D),{response:(o=t?.hookOptions)!=null&&o.cloneResponse?I.clone():I}));q instanceof Response?I=q:q instanceof Object&&(I=q.response)}if(I.ok){if(!(R.method!=="HEAD"))return{data:"",error:null};const q=N8(I),oe={data:"",response:I,request:R};if(q==="json"||q==="text"){const z=await I.text(),W=await((s=R.jsonParser)!=null?s:jT)(z);oe.data=W}else oe.data=await I[q]();R?.output&&R.output&&!R.disableValidation&&(oe.data=await Tf(R.output,oe.data));for(const z of p.onSuccess)z&&await z(Vr(Er({},oe),{response:(l=t?.hookOptions)!=null&&l.cloneResponse?I.clone():I}));return t?.throw?oe.data:{data:oe.data,error:null}}const L=(u=t?.jsonParser)!=null?u:jT,V=await I.text(),H=I8(V),Z=H?await L(V):null,Q={response:I,responseText:V,request:R,error:Vr(Er({},Z),{status:I.status,statusText:I.statusText})};for(const le of p.onError)le&&await le(Vr(Er({},Q),{response:(d=t?.hookOptions)!=null&&d.cloneResponse?I.clone():I}));if(t?.retry){const le=C8(t.retry),q=(f=t.retryAttempt)!=null?f:0;if(await le.shouldAttemptRetry(q,I)){for(const z of p.onRetry)z&&await z(D);const oe=le.getDelay(q);return await new Promise(z=>setTimeout(z,oe)),await Ev(e,Vr(Er({},t),{retryAttempt:q+1}))}}if(t?.throw)throw new A8(I.status,I.statusText,H?Z:V);return{data:null,error:Vr(Er({},Z),{status:I.status,statusText:I.statusText})}};class F8 extends Error{constructor(t,n){super(t),this.name="BetterAuthError",this.message=t,this.cause=n,this.stack=""}}function H8(e){try{return new URL(e).pathname!=="/"}catch{throw new F8(`Invalid base URL: ${e}. Please provide a valid base URL.`)}}function iy(e,t="/api/auth"){return H8(e)?e:(t=t.startsWith("/")?t:`/${t}`,`${e.replace(/\/+$/,"")}${t}`)}function $8(e,t,n,r){if(e)return iy(e,t);{const o=Wo.BETTER_AUTH_URL||Wo.NEXT_PUBLIC_BETTER_AUTH_URL||Wo.PUBLIC_BETTER_AUTH_URL||Wo.NUXT_PUBLIC_BETTER_AUTH_URL||Wo.NUXT_PUBLIC_AUTH_URL||(Wo.BASE_URL!=="/"?Wo.BASE_URL:void 0);if(o)return iy(o,t)}if(typeof window<"u"&&window.location)return iy(window.location.origin,t)}var oy={},ay={},sy={},vr={},MT;function E_(){if(MT)return vr;MT=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 o(){return e===0?Promise.resolve():new Promise(l=>{t.push(l)})}vr.allTasks=o;function s(){e=0}return vr.cleanTasks=s,vr}var zT;function Oh(){return zT||(zT=1,(function(e){var t={};Object.defineProperty(e,"__esModule",{value:!0}),e.cleanStores=e.clean=void 0;const n=E_();e.clean=Symbol("clean");let r=(...o)=>{if(t.NODE_ENV==="production")throw new Error("cleanStores() can be used only during development or tests");(0,n.cleanTasks)();for(let s of o)s&&(s.mocked&&delete s.mocked,s[e.clean]&&s[e.clean]())};e.cleanStores=r})(sy)),sy}var BT;function S_(){return BT||(BT=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,o=1,s=2,l=3,u=4,d=5,f=6,p=10;let m=(E,w,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(w),()=>{let I=E.events[R],D=I.indexOf(w);I.splice(D,1),I.length||(delete E.events[R],E.events[R+p](),delete E.events[R+p])}),v=(E,w)=>m(E,w,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 b=(E,w)=>m(E,w,o,R=>{let C=E.off;return E.off=()=>{R(),C()},()=>{E.off=C}});e.onStop=b;let x=(E,w)=>m(E,w,s,R=>{let C=E.set,I=E.setKey;return E.setKey&&(E.setKey=(D,L)=>{let V;if(R({abort:()=>{V=!0},changed:D,newValue:{...E.value,[D]:L}}),!V)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,w)=>m(E,w,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 T=(E,w)=>m(E,w,u,R=>{let C=E.build;return E.build=(...I)=>{let D=C(...I);return R({store:D}),D},()=>{E.build=C}});e.onBuild=T,e.STORE_UNMOUNT_DELAY=1e3;let N=(E,w)=>m(E,C=>{let I=w(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 V of E.events[f])V();E.events[f]=[],E.active=!1,L()}}return()=>{E.listen=I,E.off=D}});e.onMount=N})(ay)),ay}var ly={},VT;function G8(){return VT||(VT=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.actionFor=e.action=e.lastAction=void 0;const t=E_();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 o=(s,l,u)=>(d,...f)=>n(d,l,u,f);e.actionFor=o})(ly)),ly}var oc={},ac={},cy={},UT;function x_(){return UT||(UT=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 o=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=o})(cy)),cy}var FT;function FI(){if(FT)return ac;FT=1,Object.defineProperty(ac,"__esModule",{value:!0}),ac.map=void 0;const e=x_();let t=(n={})=>{let r=(0,e.atom)(n);return r.setKey=function(o,s){typeof s>"u"?o in r.value&&(r.value={...r.value},delete r.value[o],r.notify(o)):r.value[o]!==s&&(r.value={...r.value,[o]:s},r.notify(o))},r};return ac.map=t,ac}var HT;function K8(){if(HT)return oc;HT=1;var e={};Object.defineProperty(oc,"__esModule",{value:!0}),oc.mapTemplate=void 0;const t=S_(),n=Oh(),r=FI();function o(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 oc.mapTemplate=o,oc}var sc={},$T;function q8(){if($T)return sc;$T=1,Object.defineProperty(sc,"__esModule",{value:!0}),sc.listenKeys=void 0;function e(t,n,r){let o=new Set([...n,void 0]);return t.listen((s,l)=>{o.has(l)&&r(s,l)})}return sc.listenKeys=e,sc}var lc={},GT;function W8(){if(GT)return lc;GT=1,Object.defineProperty(lc,"__esModule",{value:!0}),lc.keepMount=void 0;let e=t=>{t.listen(()=>{})};return lc.keepMount=e,lc}var cc={},KT;function Z8(){if(KT)return cc;KT=1,Object.defineProperty(cc,"__esModule",{value:!0}),cc.computed=void 0;const e=S_(),t=x_();let n=(r,o)=>{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(o(...f)))},d=(0,t.atom)();return(0,e.onMount)(d,()=>{let f=r.map(p=>p.listen(u,o));return u(),()=>{for(let p of f)p()}}),d};return cc.computed=n,cc}var qT;function Y8(){return qT||(qT=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=S_();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=E_();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 o=Oh();Object.defineProperty(e,"clean",{enumerable:!0,get:function(){return o.clean}}),Object.defineProperty(e,"cleanStores",{enumerable:!0,get:function(){return o.cleanStores}});var s=K8();Object.defineProperty(e,"mapTemplate",{enumerable:!0,get:function(){return s.mapTemplate}});var l=q8();Object.defineProperty(e,"listenKeys",{enumerable:!0,get:function(){return l.listenKeys}});var u=W8();Object.defineProperty(e,"keepMount",{enumerable:!0,get:function(){return u.keepMount}});var d=Z8();Object.defineProperty(e,"computed",{enumerable:!0,get:function(){return d.computed}});var f=x_();Object.defineProperty(e,"atom",{enumerable:!0,get:function(){return f.atom}});var p=FI();Object.defineProperty(e,"map",{enumerable:!0,get:function(){return p.map}})})(oy)),oy}var Sv=Y8();const X8=typeof window>"u",Q8=(e,t,n,r)=>{const o=Sv.atom({data:null,error:null,isPending:!0,isRefetching:!1,refetch:u=>s(u)}),s=u=>{const d=typeof r=="function"?r({data:o.get().data,error:o.get().error,isPending:o.get().isPending}):r;n(t,{...d,query:{...d?.query,...u?.query},async onSuccess(f){o.set({data:f.data,error:null,isPending:!1,isRefetching:!1,refetch:o.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||(o.set({error:f.error,data:null,isPending:!1,isRefetching:!1,refetch:o.value.refetch}),await d?.onError?.(f))},async onRequest(f){const p=o.get();o.set({isPending:p.data===null,data:p.data,error:null,isRefetching:!0,refetch:o.value.refetch}),await d?.onRequest?.(f)}}).catch(f=>{o.set({error:f,data:null,isPending:!1,isRefetching:!1,refetch:o.value.refetch})})};e=Array.isArray(e)?e:[e];let l=!1;for(const u of e)u.subscribe(()=>{X8||(l?s():Sv.onMount(o,()=>{const d=setTimeout(()=>{l||(s(),l=!0)},0);return()=>{o.off(),u.off(),clearTimeout(d)}}))});return o},J8={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*:/},eq=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/,WT={true:!0,false:!1,null:null,undefined:void 0,nan:Number.NaN,infinity:Number.POSITIVE_INFINITY,"-infinity":Number.NEGATIVE_INFINITY},tq=/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})(?:\.(\d{1,7}))?(?:Z|([+-])(\d{2}):(\d{2}))$/;function nq(e){return e instanceof Date&&!isNaN(e.getTime())}function rq(e){const t=tq.exec(e);if(!t)return null;const[,n,r,o,s,l,u,d,f,p,m]=t;let v=new Date(Date.UTC(parseInt(n,10),parseInt(r,10)-1,parseInt(o,10),parseInt(s,10),parseInt(l,10),parseInt(u,10),d?parseInt(d.padEnd(3,"0"),10):0));if(f){const b=(parseInt(p,10)*60+parseInt(m,10))*(f==="+"?-1:1);v.setUTCMinutes(v.getUTCMinutes()+b)}return nq(v)?v:null}function iq(e,t={}){const{strict:n=!1,warnings:r=!1,reviver:o,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 WT)return WT[u];if(!eq.test(l)){if(n)throw new SyntaxError("[better-json] Invalid JSON");return e}if(Object.entries(J8).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=rq(m);if(v)return v}return o?o(p,m):m})}catch(f){if(n)throw f;return e}}function oq(e,t={strict:!0}){return iq(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 sq(e){const t=Sv.atom(!1);return{session:Q8(t,"/get-session",e,{method:"GET"}),$sessionSignal:t}}const lq=(e,t)=>{const n="credentials"in Request.prototype,r=$8(e?.baseURL,e?.basePath)??"/api/auth",o=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=V8({baseURL:r,...n?{credentials:"include"}:{},method:"GET",jsonParser(R){return R?oq(R,{strict:!1}):null},customFetchImpl:fetch,...p,plugins:[s,...p.plugins||[],...e?.disableDefaultFetchPlugins?[]:[aq],...o]}),{$sessionSignal:v,session:b}=sq(m),x=e?.plugins||[];let A={},T={$sessionSignal:v,session:b},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(T,R.getAtoms?.(m)),R.pathMethods&&Object.assign(N,R.pathMethods),R.atomListeners&&E.push(...R.atomListeners);const w={notify:R=>{T[R].set(!T[R].get())},listen:(R,C)=>{T[R].subscribe(C)},atoms:T};for(const R of x)R.getActions&&Object.assign(A,R.getActions?.(m,w,e));return{get baseURL(){return r},pluginsActions:A,pluginsAtoms:T,pluginPathMethods:N,atomListeners:E,$fetch:m,$store:w}};function cq(e){return typeof e=="object"&&e!==null&&"get"in e&&typeof e.get=="function"&&"lc"in e&&typeof e.lc=="number"}function uq(e,t,n){const r=t[e],{fetchOptions:o,query:s,...l}=n||{};return r||(o?.method?o.method:l&&Object.keys(l).length>0?"POST":"GET")}function dq(e,t,n,r,o){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"||cq(p)?p:s(f)},apply:async(u,d,f)=>{const p="/"+l.map(E=>E.replace(/[A-Z]/g,w=>`-${w.toLowerCase()}`)).join("/"),m=f[0]||{},v=f[1]||{},{query:b,fetchOptions:x,...A}=m,T={...v,...x},N=uq(p,n,m);return await t(p,{...T,body:N==="GET"?void 0:{...A,...T?.body||{}},query:b||T?.query,method:N,async onSuccess(E){await T?.onSuccess?.(E);const w=o?.find(I=>I.matcher(p));if(!w)return;const R=r[w.signal];if(!R)return;const C=R.get();setTimeout(()=>{R.set(!C)},10)}})}})}return s()}function fq(e){return e.charAt(0).toUpperCase()+e.slice(1)}function hq(e){const{pluginPathMethods:t,pluginsActions:n,pluginsAtoms:r,$fetch:o,atomListeners:s,$store:l}=lq(e);let u={};for(const[p,m]of Object.entries(r))u[`use${fq(p)}`]=m;const d={...n,...u,$fetch:o,$store:l};return dq(d,o,t,r,s)}const HI=e=>{const t=e?.editor?.backendURL??ot.editor?.backendURL;if(!t)throw new Error("Backend URL is not defined in the Intlayer configuration.");const n=()=>hq({baseURL:t,withCredentials:!0});return{signInEmail:async(...Z)=>n().signIn.email(...Z),signUpEmail:async(...Z)=>n().signUp.email(...Z),signOut:async(...Z)=>n().signOut(...Z),signInSocial:async(...Z)=>n().signIn.social(...Z),linkSocial:async(...Z)=>n().linkSocial(...Z),changePasswordSession:async(...Z)=>n().changePassword(...Z),requestPasswordResetSession:async(...Z)=>n().requestPasswordReset(...Z),resetPassword:async(...Z)=>n().resetPassword(...Z),verifyEmailSession:async(...Z)=>n().verifyEmail(...Z),getSession:async(...Z)=>n().getSession(...Z),forgetPassword:async(...Z)=>n().forgetPassword(...Z),sendVerificationEmail:async(...Z)=>n().sendVerificationEmail(...Z),changeEmail:async(...Z)=>n().changeEmail(...Z),deleteUser:async(...Z)=>n().deleteUser(...Z),revokeSession:async(...Z)=>n().revokeSession(...Z),revokeSessions:async(...Z)=>n().revokeSessions(...Z),revokeOtherSessions:async(...Z)=>n().revokeOtherSessions(...Z),listAccounts:async(...Z)=>n().listAccounts(...Z),unlinkAccount:async(...Z)=>n().unlinkAccount(...Z),refreshToken:async(...Z)=>n().refreshToken(...Z),getAccessToken:async(...Z)=>n().getAccessToken(...Z),accountInfo:async(...Z)=>n().accountInfo(...Z),updateUser:async(...Z)=>n().updateUser(...Z),listSessions:async(...Z)=>n().listSessions(...Z)}},pq=(e,t)=>{const n=Zr(),r=t??n??ot,o=y_(),{data:s,isFetched:l,refetch:u}=Ih({queryKey:["session"],queryFn:async()=>(await HI(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=>o.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:o,setSession:s}=pq(e,t),{oAuth2AccessToken:l}=v8(t);return{session:n,fetchSession:r,setSession:s,revalidateSession:o,oAuth2AccessToken:l,isAuthenticated:!!(n?.user||l)}},Ti=e=>{const t=Zr(),{oAuth2AccessToken:n}=mu();return qB({...n&&{headers:{Authorization:`Bearer ${n.accessToken}`}}},t)},mq=e=>{const t=Zr();return HI(t)},gq=({requireUser:e,requireProject:t,requireOrganization:n})=>{const r=Zr(),{oAuth2AccessToken:o,session:s}=mu({intlayerConfiguration:r}),l=s?s.user:o?.user,u=s?s.organization:o?.organization,d=s?s.project:o?.project;return{enable:(e?!!l:!0)&&(t?!!d:!0)&&(n?!!u:!0)}},$I=e=>{const{requireUser:t,requireProject:n,requireOrganization:r,...o}=e,{enable:s}=gq({requireUser:t,requireProject:n,requireOrganization:r});return Ih({...o,enabled:o.enabled===!1?!1:s})},yq=()=>{const e=mq();return ya({mutationKey:["logout"],mutationFn:(...t)=>e.signOut(...t),meta:{invalidateQueries:[["session"],["users"],["organizations"],["projects"],["dictionaries"],["tags"]]}})},vq=e=>{const t=Ti();return $I({queryKey:["projects",e],queryFn:({signal:n})=>t.project.getProjects(e,{signal:n}),requireUser:!0,requireOrganization:!0})},bq=()=>{const e=Ti();return ya({mutationKey:["dictionaries"],mutationFn:e.dictionary.pushDictionaries,meta:{invalidateQueries:[["dictionaries"],["dictionariesKeys"]]}})},_q=()=>{const e=Ti();return ya({mutationKey:["dictionaries"],mutationFn:e.dictionary.deleteDictionary,meta:{invalidateQueries:[["dictionaries"],["dictionariesKeys"]]}})},Eq=e=>{const t=Ti();return $I({queryKey:["tags",e],queryFn:({signal:n})=>t.tag.getTags(e,{signal:n}),requireUser:!0,requireOrganization:!0,requireProject:!0})},Sq=()=>{const e=Ti();return ya({mutationKey:["ai-auditContentDeclarationMetadata"],mutationFn:e.ai.auditContentDeclarationMetadata})},xq=()=>{const e=Ti();return ya({mutationKey:["ai-auditContentDeclarationField"],mutationFn:e.ai.auditContentDeclarationField})},Aq=()=>{const e=Ti();return ya({mutationKey:["ai-autocomplete"],mutationFn:e.ai.autocomplete})},GI=()=>{const e=Ti();return Ih({queryKey:["editor","dictionaries"],queryFn:e.editor.getDictionaries})},wq=()=>{const e=Ti();return ya({mutationKey:["editor","dictionaries"],mutationFn:e.editor.writeDictionary})};var gu=e=>e.type==="checkbox",ta=e=>e instanceof Date,Sn=e=>e==null;const KI=e=>typeof e=="object";var Ft=e=>!Sn(e)&&!Array.isArray(e)&&KI(e)&&!ta(e),qI=e=>Ft(e)&&e.target?gu(e.target)?e.target.checked:e.target.value:e,Tq=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,WI=(e,t)=>e.has(Tq(t)),Cq=e=>{const t=e.constructor&&e.constructor.prototype;return Ft(t)&&t.hasOwnProperty("isPrototypeOf")},A_=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(!(A_&&(e instanceof Blob||r))&&(n||Ft(e)))if(t=n?[]:Object.create(Object.getPrototypeOf(e)),!n&&!Cq(e))t=e;else for(const o in e)e.hasOwnProperty(o)&&(t[o]=qt(e[o]));else return e;return t}var Dh=e=>/^\w*$/.test(e),jt=e=>e===void 0,w_=e=>Array.isArray(e)?e.filter(Boolean):[],T_=e=>w_(e.replace(/["|']|\]/g,"").split(/\.|\[/)),Ee=(e,t,n)=>{if(!t||!Ft(e))return n;const r=(Dh(t)?[t]:T_(t)).reduce((o,s)=>Sn(o)?o:o[s],e);return jt(r)||r===e?jt(e[t])?n:e[t]:r},$n=e=>typeof e=="boolean",dt=(e,t,n)=>{let r=-1;const o=Dh(t)?[t]:T_(t),s=o.length,l=s-1;for(;++r<s;){const u=o[r];let d=n;if(r!==l){const f=e[u];d=Ft(f)||Array.isArray(f)?f:isNaN(+o[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"},C_=Oe.createContext(null);C_.displayName="HookFormContext";const vo=()=>Oe.useContext(C_),Rq=e=>{const{children:t,...n}=e;return Oe.createElement(C_.Provider,{value:n},t)};var ZI=(e,t,n,r=!0)=>{const o={defaultValues:t._defaultValues};for(const s in e)Object.defineProperty(o,s,{get:()=>{const l=s;return t._proxyFormState[l]!==Sr.all&&(t._proxyFormState[l]=!r||Sr.all),n&&(n[l]=!0),e[l]}});return o};const R_=typeof window<"u"?Oe.useLayoutEffect:Oe.useEffect;function kq(e){const t=vo(),{control:n=t.control,disabled:r,name:o,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 R_(()=>n._subscribe({name:o,formState:d.current,exact:s,callback:f=>{!r&&u({...n._formState,...f})}}),[o,r,s]),Oe.useEffect(()=>{d.current.isValid&&n._setValid(!0)},[n]),Oe.useMemo(()=>ZI(l,n,d.current,!1),[l,n])}var Wn=e=>typeof e=="string",YI=(e,t,n,r,o)=>Wn(e)?(r&&t.watch.add(e),Ee(n,e,o)):Array.isArray(e)?e.map(s=>(r&&t.watch.add(s),Ee(n,s))):(r&&(t.watchAll=!0),n),xv=e=>Sn(e)||!KI(e);function yi(e,t,n=new WeakSet){if(xv(e)||xv(t))return e===t;if(ta(e)&&ta(t))return e.getTime()===t.getTime();const r=Object.keys(e),o=Object.keys(t);if(r.length!==o.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(!o.includes(s))return!1;if(s!=="ref"){const u=t[s];if(ta(l)&&ta(u)||Ft(l)&&Ft(u)||Array.isArray(l)&&Array.isArray(u)?!yi(l,u,n):l!==u)return!1}}return!0}function Nq(e){const t=vo(),{control:n=t.control,name:r,defaultValue:o,disabled:s,exact:l,compute:u}=e||{},d=Oe.useRef(o),f=Oe.useRef(u),p=Oe.useRef(void 0);f.current=u;const m=Oe.useMemo(()=>n._getWatch(r,d.current),[n,r]),[v,b]=Oe.useState(f.current?f.current(m):m);return R_(()=>n._subscribe({name:r,formState:{values:!0},exact:l,callback:x=>{if(!s){const A=YI(r,n._names,x.values||n._formValues,!1,d.current);if(f.current){const T=f.current(A);yi(T,p.current)||(b(T),p.current=T)}else b(A)}}}),[n,s,r,l]),Oe.useEffect(()=>n._removeUnmounted()),v}function Iq(e){const t=vo(),{name:n,disabled:r,control:o=t.control,shouldUnregister:s,defaultValue:l}=e,u=WI(o._names.array,n),d=Oe.useMemo(()=>Ee(o._formValues,n,Ee(o._defaultValues,n,l)),[o,n,l]),f=Nq({control:o,name:n,defaultValue:d,exact:!0}),p=kq({control:o,name:n,exact:!0}),m=Oe.useRef(e),v=Oe.useRef(void 0),b=Oe.useRef(o.register(n,{...e.rules,value:f,...$n(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(w=>b.current.onChange({target:{value:qI(w),name:n},type:Wf.CHANGE}),[n]),T=Oe.useCallback(()=>b.current.onBlur({target:{value:Ee(o._formValues,n),name:n},type:Wf.BLUR}),[n,o._formValues]),N=Oe.useCallback(w=>{const R=Ee(o._fields,n);R&&w&&(R._f.ref={focus:()=>w.focus&&w.focus(),select:()=>w.select&&w.select(),setCustomValidity:C=>w.setCustomValidity(C),reportValidity:()=>w.reportValidity()})},[o._fields,n]),E=Oe.useMemo(()=>({name:n,value:f,...$n(r)||p.disabled?{disabled:p.disabled||r}:{},onChange:A,onBlur:T,ref:N}),[n,r,p.disabled,A,T,N,f]);return Oe.useEffect(()=>{const w=o._options.shouldUnregister||s,R=v.current;R&&R!==n&&!u&&o.unregister(R),o.register(n,{...m.current.rules,...$n(m.current.disabled)?{disabled:m.current.disabled}:{}});const C=(I,D)=>{const L=Ee(o._fields,I);L&&L._f&&(L._f.mount=D)};if(C(n,!0),w){const I=qt(Ee(o._options.defaultValues,n));dt(o._defaultValues,n,I),jt(Ee(o._formValues,n))&&dt(o._formValues,n,I)}return!u&&o.register(n),v.current=n,()=>{(u?w&&!o._state.action:w)?o.unregister(n):C(n,!1)}},[n,o,u,s]),Oe.useEffect(()=>{o._setDisabledField({disabled:r,name:n})},[r,n,o]),Oe.useMemo(()=>({field:E,formState:p,fieldState:x}),[E,p,x])}const Oq=e=>e.render(Iq(e));var k_=(e,t,n,r,o)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:o||!0}}:{},wc=e=>Array.isArray(e)?e:[e],ZT=()=>{let e=[];return{get observers(){return e},next:o=>{for(const s of e)s.next&&s.next(o)},subscribe:o=>(e.push(o),{unsubscribe:()=>{e=e.filter(s=>s!==o)}}),unsubscribe:()=>{e=[]}}};function XI(e,t){const n={};for(const r in e)if(e.hasOwnProperty(r)){const o=e[r],s=t[r];if(o&&Ft(o)&&s){const l=XI(o,s);Ft(l)&&(n[r]=l)}else e[r]&&(n[r]=s)}return n}var Dn=e=>Ft(e)&&!Object.keys(e).length,N_=e=>e.type==="file",xr=e=>typeof e=="function",Zf=e=>{if(!A_)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},QI=e=>e.type==="select-multiple",I_=e=>e.type==="radio",Dq=e=>I_(e)||gu(e),uy=e=>Zf(e)&&e.isConnected;function Lq(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 jq(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:Lq(e,n),o=n.length-1,s=n[o];return r&&delete r[s],o!==0&&(Ft(r)&&Dn(r)||Array.isArray(r)&&jq(r))&&zt(e,n.slice(0,-1)),e}var Pq=e=>{for(const t in e)if(xr(e[t]))return!0;return!1};function JI(e){return Array.isArray(e)||Ft(e)&&!Pq(e)}function Av(e,t={}){for(const n in e)JI(e[n])?(t[n]=Array.isArray(e[n])?[]:{},Av(e[n],t[n])):Sn(e[n])||(t[n]=!0);return t}function hs(e,t,n){n||(n=Av(t));for(const r in e)JI(e[r])?jt(t)||xv(n[r])?n[r]=Av(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 YT={value:!1,isValid:!1},XT={value:!0,isValid:!0};var eO=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===""?XT:{value:e[0].value,isValid:!0}:XT:YT}return YT},tO=(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 QT={isValid:!1,value:null};var nO=e=>Array.isArray(e)?e.reduce((t,n)=>n&&n.checked&&!n.disabled?{isValid:!0,value:n.value}:t,QT):QT;function JT(e){const t=e.ref;return N_(t)?t.files:I_(t)?nO(e.refs).value:QI(t)?[...t.selectedOptions].map(({value:n})=>n):gu(t)?eO(e.refs).value:tO(jt(t.value)?e.ref.value:t.value,e)}var Mq=(e,t,n,r)=>{const o={};for(const s of e){const l=Ee(t,s);l&&dt(o,s,l._f)}return{criteriaMode:n,names:[...e],fields:o,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,eC=e=>({isOnSubmit:!e||e===Sr.onSubmit,isOnBlur:e===Sr.onBlur,isOnChange:e===Sr.onChange,isOnAll:e===Sr.all,isOnTouch:e===Sr.onTouched});const tC="AsyncFunction";var zq=e=>!!e&&!!e.validate&&!!(xr(e.validate)&&e.validate.constructor.name===tC||Ft(e.validate)&&Object.values(e.validate).find(t=>t.constructor.name===tC)),Bq=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate),nC=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(r=>e.startsWith(r)&&/^\.\w+/.test(e.slice(r.length))));const Tc=(e,t,n,r)=>{for(const o of n||Object.keys(e)){const s=Ee(e,o);if(s){const{_f:l,...u}=s;if(l){if(l.refs&&l.refs[0]&&t(l.refs[0],o)&&!r)return!0;if(l.ref&&t(l.ref,l.name)&&!r)return!0;if(Tc(u,t))break}else if(Ft(u)&&Tc(u,t))break}}};function rC(e,t,n){const r=Ee(e,n);if(r||Dh(n))return{error:r,name:n};const o=n.split(".");for(;o.length;){const s=o.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};o.pop()}return{name:n}}var Vq=(e,t,n,r)=>{n(e);const{name:o,...s}=e;return Dn(s)||Object.keys(s).length>=Object.keys(t).length||Object.keys(s).find(l=>t[l]===(!r||Sr.all))},Uq=(e,t,n)=>!e||!t||e===t||wc(e).some(r=>r&&(n?r===t:r.startsWith(t)||t.startsWith(r))),Fq=(e,t,n,r,o)=>o.isOnAll?!1:!n&&o.isOnTouch?!(t||e):(n?r.isOnBlur:o.isOnBlur)?!e:(n?r.isOnChange:o.isOnChange)?e:!0,Hq=(e,t)=>!w_(Ee(e,t)).length&&zt(e,t),$q=(e,t,n)=>{const r=wc(Ee(e,n));return dt(r,"root",t[n]),dt(e,n,r),e};function iC(e,t,n="validate"){if(Wn(e)||Array.isArray(e)&&e.every(Wn)||$n(e)&&!e)return{type:n,message:Wn(e)?e:"",ref:t}}var us=e=>Ft(e)&&!Yf(e)?e:{value:e,message:""},oC=async(e,t,n,r,o,s)=>{const{ref:l,refs:u,required:d,maxLength:f,minLength:p,min:m,max:v,pattern:b,validate:x,name:A,valueAsNumber:T,mount:N}=e._f,E=Ee(n,A);if(!N||t.has(A))return{};const w=u?u[0]:l,R=Q=>{o&&w.reportValidity&&(w.setCustomValidity($n(Q)?"":Q||""),w.reportValidity())},C={},I=I_(l),D=gu(l),L=I||D,V=(T||N_(l))&&jt(l.value)&&jt(E)||Zf(l)&&l.value===""||E===""||Array.isArray(E)&&!E.length,H=k_.bind(null,A,r,C),Z=(Q,le,q,oe=gi.maxLength,z=gi.minLength)=>{const ee=Q?le:q;C[A]={type:Q?oe:z,message:ee,ref:l,...H(Q?oe:z,ee)}};if(s?!Array.isArray(E)||!E.length:d&&(!L&&(V||Sn(E))||$n(E)&&!E||D&&!eO(u).isValid||I&&!nO(u).isValid)){const{value:Q,message:le}=Wn(d)?{value:!!d,message:d}:us(d);if(Q&&(C[A]={type:gi.required,message:le,ref:w,...H(gi.required,le)},!r))return R(le),C}if(!V&&(!Sn(m)||!Sn(v))){let Q,le;const q=us(v),oe=us(m);if(!Sn(E)&&!isNaN(E)){const z=l.valueAsNumber||E&&+E;Sn(q.value)||(Q=z>q.value),Sn(oe.value)||(le=z<oe.value)}else{const z=l.valueAsDate||new Date(E),ee=P=>new Date(new Date().toDateString()+" "+P),W=l.type=="time",be=l.type=="week";Wn(q.value)&&E&&(Q=W?ee(E)>ee(q.value):be?E>q.value:z>new Date(q.value)),Wn(oe.value)&&E&&(le=W?ee(E)<ee(oe.value):be?E<oe.value:z<new Date(oe.value))}if((Q||le)&&(Z(!!Q,q.message,oe.message,gi.max,gi.min),!r))return R(C[A].message),C}if((f||p)&&!V&&(Wn(E)||s&&Array.isArray(E))){const Q=us(f),le=us(p),q=!Sn(Q.value)&&E.length>+Q.value,oe=!Sn(le.value)&&E.length<+le.value;if((q||oe)&&(Z(q,Q.message,le.message),!r))return R(C[A].message),C}if(b&&!V&&Wn(E)){const{value:Q,message:le}=us(b);if(Yf(Q)&&!E.match(Q)&&(C[A]={type:gi.pattern,message:le,ref:l,...H(gi.pattern,le)},!r))return R(le),C}if(x){if(xr(x)){const Q=await x(E,n),le=iC(Q,w);if(le&&(C[A]={...le,...H(gi.validate,le.message)},!r))return R(le.message),C}else if(Ft(x)){let Q={};for(const le in x){if(!Dn(Q)&&!r)break;const q=iC(await x[le](E,n),w,le);q&&(Q={...q,...H(le,q.message)},R(q.message),r&&(C[A]=Q))}if(!Dn(Q)&&(C[A]={ref:w,...Q},!r))return C}}return R(!0),C};const Gq={mode:Sr.onSubmit,reValidateMode:Sr.onChange,shouldFocusError:!0};function Kq(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={},o=Ft(t.defaultValues)||Ft(t.values)?qt(t.defaultValues||t.values)||{}:{},s=t.shouldUnregister?{}:qt(o),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:ZT(),state:ZT()},b=t.criteriaMode===Sr.all,x=U=>J=>{clearTimeout(f),f=setTimeout(U,J)},A=async U=>{if(!t.disabled&&(p.isValid||m.isValid||U)){const J=t.resolver?Dn((await D()).errors):await V(r,!0);J!==n.isValid&&v.state.next({isValid:J})}},T=(U,J)=>{!t.disabled&&(p.isValidating||p.validatingFields||m.isValidating||m.validatingFields)&&((U||Array.from(u.mount)).forEach(ae=>{ae&&(J?dt(n.validatingFields,ae,J):zt(n.validatingFields,ae))}),v.state.next({validatingFields:n.validatingFields,isValidating:!Dn(n.validatingFields)}))},N=(U,J=[],ae,Se,_e=!0,ge=!0)=>{if(Se&&ae&&!t.disabled){if(l.action=!0,ge&&Array.isArray(Ee(r,U))){const Ce=ae(Ee(r,U),Se.argA,Se.argB);_e&&dt(r,U,Ce)}if(ge&&Array.isArray(Ee(n.errors,U))){const Ce=ae(Ee(n.errors,U),Se.argA,Se.argB);_e&&dt(n.errors,U,Ce),Hq(n.errors,U)}if((p.touchedFields||m.touchedFields)&&ge&&Array.isArray(Ee(n.touchedFields,U))){const Ce=ae(Ee(n.touchedFields,U),Se.argA,Se.argB);_e&&dt(n.touchedFields,U,Ce)}(p.dirtyFields||m.dirtyFields)&&(n.dirtyFields=hs(o,s)),v.state.next({name:U,isDirty:Z(U,J),dirtyFields:n.dirtyFields,errors:n.errors,isValid:n.isValid})}else dt(s,U,J)},E=(U,J)=>{dt(n.errors,U,J),v.state.next({errors:n.errors})},w=U=>{n.errors=U,v.state.next({errors:n.errors,isValid:!1})},R=(U,J,ae,Se)=>{const _e=Ee(r,U);if(_e){const ge=Ee(s,U,jt(ae)?Ee(o,U):ae);jt(ge)||Se&&Se.defaultChecked||J?dt(s,U,J?ge:JT(_e._f)):q(U,ge),l.mount&&A()}},C=(U,J,ae,Se,_e)=>{let ge=!1,Ce=!1;const Ue={name:U};if(!t.disabled){if(!ae||Se){(p.isDirty||m.isDirty)&&(Ce=n.isDirty,n.isDirty=Ue.isDirty=Z(),ge=Ce!==Ue.isDirty);const Qe=yi(Ee(o,U),J);Ce=!!Ee(n.dirtyFields,U),Qe?zt(n.dirtyFields,U):dt(n.dirtyFields,U,!0),Ue.dirtyFields=n.dirtyFields,ge=ge||(p.dirtyFields||m.dirtyFields)&&Ce!==!Qe}if(ae){const Qe=Ee(n.touchedFields,U);Qe||(dt(n.touchedFields,U,ae),Ue.touchedFields=n.touchedFields,ge=ge||(p.touchedFields||m.touchedFields)&&Qe!==ae)}ge&&_e&&v.state.next(Ue)}return ge?Ue:{}},I=(U,J,ae,Se)=>{const _e=Ee(n.errors,U),ge=(p.isValid||m.isValid)&&$n(J)&&n.isValid!==J;if(t.delayError&&ae?(d=x(()=>E(U,ae)),d(t.delayError)):(clearTimeout(f),d=null,ae?dt(n.errors,U,ae):zt(n.errors,U)),(ae?!yi(_e,ae):_e)||!Dn(Se)||ge){const Ce={...Se,...ge&&$n(J)?{isValid:J}:{},errors:n.errors,name:U};n={...n,...Ce},v.state.next(Ce)}},D=async U=>{T(U,!0);const J=await t.resolver(s,t.context,Mq(U||u.mount,r,t.criteriaMode,t.shouldUseNativeValidation));return T(U),J},L=async U=>{const{errors:J}=await D(U);if(U)for(const ae of U){const Se=Ee(J,ae);Se?dt(n.errors,ae,Se):zt(n.errors,ae)}else n.errors=J;return J},V=async(U,J,ae={valid:!0})=>{for(const Se in U){const _e=U[Se];if(_e){const{_f:ge,...Ce}=_e;if(ge){const Ue=u.array.has(ge.name),Qe=_e._f&&zq(_e._f);Qe&&p.validatingFields&&T([ge.name],!0);const gt=await oC(_e,u.disabled,s,b,t.shouldUseNativeValidation&&!J,Ue);if(Qe&&p.validatingFields&&T([ge.name]),gt[ge.name]&&(ae.valid=!1,J))break;!J&&(Ee(gt,ge.name)?Ue?$q(n.errors,gt,ge.name):dt(n.errors,ge.name,gt[ge.name]):zt(n.errors,ge.name))}!Dn(Ce)&&await V(Ce,J,ae)}}return ae.valid},H=()=>{for(const U of u.unMount){const J=Ee(r,U);J&&(J._f.refs?J._f.refs.every(ae=>!uy(ae)):!uy(J._f.ref))&&fe(U)}u.unMount=new Set},Z=(U,J)=>!t.disabled&&(U&&J&&dt(s,U,J),!yi(P(),o)),Q=(U,J,ae)=>YI(U,u,{...l.mount?s:jt(J)?o:Wn(U)?{[U]:J}:J},ae,J),le=U=>w_(Ee(l.mount?s:o,U,t.shouldUnregister?Ee(o,U,[]):[])),q=(U,J,ae={})=>{const Se=Ee(r,U);let _e=J;if(Se){const ge=Se._f;ge&&(!ge.disabled&&dt(s,U,tO(J,ge)),_e=Zf(ge.ref)&&Sn(J)?"":J,QI(ge.ref)?[...ge.ref.options].forEach(Ce=>Ce.selected=_e.includes(Ce.value)):ge.refs?gu(ge.ref)?ge.refs.forEach(Ce=>{(!Ce.defaultChecked||!Ce.disabled)&&(Array.isArray(_e)?Ce.checked=!!_e.find(Ue=>Ue===Ce.value):Ce.checked=_e===Ce.value||!!_e)}):ge.refs.forEach(Ce=>Ce.checked=Ce.value===_e):N_(ge.ref)?ge.ref.value="":(ge.ref.value=_e,ge.ref.type||v.state.next({name:U,values:qt(s)})))}(ae.shouldDirty||ae.shouldTouch)&&C(U,_e,ae.shouldTouch,ae.shouldDirty,!0),ae.shouldValidate&&be(U)},oe=(U,J,ae)=>{for(const Se in J){if(!J.hasOwnProperty(Se))return;const _e=J[Se],ge=U+"."+Se,Ce=Ee(r,ge);(u.array.has(U)||Ft(_e)||Ce&&!Ce._f)&&!ta(_e)?oe(ge,_e,ae):q(ge,_e,ae)}},z=(U,J,ae={})=>{const Se=Ee(r,U),_e=u.array.has(U),ge=qt(J);dt(s,U,ge),_e?(v.array.next({name:U,values:qt(s)}),(p.isDirty||p.dirtyFields||m.isDirty||m.dirtyFields)&&ae.shouldDirty&&v.state.next({name:U,dirtyFields:hs(o,s),isDirty:Z(U,ge)})):Se&&!Se._f&&!Sn(ge)?oe(U,ge,ae):q(U,ge,ae),nC(U,u)&&v.state.next({...n,name:U}),v.state.next({name:l.mount?U:void 0,values:qt(s)})},ee=async U=>{l.mount=!0;const J=U.target;let ae=J.name,Se=!0;const _e=Ee(r,ae),ge=Qe=>{Se=Number.isNaN(Qe)||ta(Qe)&&isNaN(Qe.getTime())||yi(Qe,Ee(s,ae,Qe))},Ce=eC(t.mode),Ue=eC(t.reValidateMode);if(_e){let Qe,gt;const _a=J.type?JT(_e._f):qI(U),Nr=U.type===Wf.BLUR||U.type===Wf.FOCUS_OUT,rp=!Bq(_e._f)&&!t.resolver&&!Ee(n.errors,ae)&&!_e._f.deps||Fq(Nr,Ee(n.touchedFields,ae),n.isSubmitted,Ue,Ce),Ri=nC(ae,u,Nr);dt(s,ae,_a),Nr?(!J||!J.readOnly)&&(_e._f.onBlur&&_e._f.onBlur(U),d&&d(0)):_e._f.onChange&&_e._f.onChange(U);const ki=C(ae,_a,Nr),Jr=!Dn(ki)||Ri;if(!Nr&&v.state.next({name:ae,type:U.type,values:qt(s)}),rp)return(p.isValid||m.isValid)&&(t.mode==="onBlur"?Nr&&A():Nr||A()),Jr&&v.state.next({name:ae,...Ri?{}:ki});if(!Nr&&Ri&&v.state.next({...n}),t.resolver){const{errors:Co}=await D([ae]);if(ge(_a),Se){const Ro=rC(n.errors,r,ae),Cu=rC(Co,r,Ro.name||ae);Qe=Cu.error,ae=Cu.name,gt=Dn(Co)}}else T([ae],!0),Qe=(await oC(_e,u.disabled,s,b,t.shouldUseNativeValidation))[ae],T([ae]),ge(_a),Se&&(Qe?gt=!1:(p.isValid||m.isValid)&&(gt=await V(r,!0)));Se&&(_e._f.deps&&(!Array.isArray(_e._f.deps)||_e._f.deps.length>0)&&be(_e._f.deps),I(ae,gt,Qe,ki))}},W=(U,J)=>{if(Ee(n.errors,J)&&U.focus)return U.focus(),1},be=async(U,J={})=>{let ae,Se;const _e=wc(U);if(t.resolver){const ge=await L(jt(U)?U:_e);ae=Dn(ge),Se=U?!_e.some(Ce=>Ee(ge,Ce)):ae}else U?(Se=(await Promise.all(_e.map(async ge=>{const Ce=Ee(r,ge);return await V(Ce&&Ce._f?{[ge]:Ce}:Ce)}))).every(Boolean),!(!Se&&!n.isValid)&&A()):Se=ae=await V(r);return v.state.next({...!Wn(U)||(p.isValid||m.isValid)&&ae!==n.isValid?{}:{name:U},...t.resolver||!U?{isValid:ae}:{},errors:n.errors}),J.shouldFocus&&!Se&&Tc(r,W,U?_e:u.mount),Se},P=(U,J)=>{let ae={...l.mount?s:o};return J&&(ae=XI(J.dirtyFields?n.dirtyFields:n.touchedFields,ae)),jt(U)?ae:Wn(U)?Ee(ae,U):U.map(Se=>Ee(ae,Se))},ie=(U,J)=>({invalid:!!Ee((J||n).errors,U),isDirty:!!Ee((J||n).dirtyFields,U),error:Ee((J||n).errors,U),isValidating:!!Ee(n.validatingFields,U),isTouched:!!Ee((J||n).touchedFields,U)}),G=U=>{U&&wc(U).forEach(J=>zt(n.errors,J)),v.state.next({errors:U?n.errors:{}})},ne=(U,J,ae)=>{const Se=(Ee(r,U,{_f:{}})._f||{}).ref,_e=Ee(n.errors,U)||{},{ref:ge,message:Ce,type:Ue,...Qe}=_e;dt(n.errors,U,{...Qe,...J,ref:Se}),v.state.next({name:U,errors:n.errors,isValid:!1}),ae&&ae.shouldFocus&&Se&&Se.focus&&Se.focus()},ue=(U,J)=>xr(U)?v.state.subscribe({next:ae=>"values"in ae&&U(Q(void 0,J),ae)}):Q(U,J,!0),pe=U=>v.state.subscribe({next:J=>{Uq(U.name,J.name,U.exact)&&Vq(J,U.formState||p,fn,U.reRenderRoot)&&U.callback({values:{...s},...n,...J,defaultValues:o})}}).unsubscribe,ve=U=>(l.mount=!0,m={...m,...U.formState},pe({...U,formState:m})),fe=(U,J={})=>{for(const ae of U?wc(U):u.mount)u.mount.delete(ae),u.array.delete(ae),J.keepValue||(zt(r,ae),zt(s,ae)),!J.keepError&&zt(n.errors,ae),!J.keepDirty&&zt(n.dirtyFields,ae),!J.keepTouched&&zt(n.touchedFields,ae),!J.keepIsValidating&&zt(n.validatingFields,ae),!t.shouldUnregister&&!J.keepDefaultValue&&zt(o,ae);v.state.next({values:qt(s)}),v.state.next({...n,...J.keepDirty?{isDirty:Z()}:{}}),!J.keepIsValid&&A()},xe=({disabled:U,name:J})=>{($n(U)&&l.mount||U||u.disabled.has(J))&&(U?u.disabled.add(J):u.disabled.delete(J))},je=(U,J={})=>{let ae=Ee(r,U);const Se=$n(J.disabled)||$n(t.disabled);return dt(r,U,{...ae||{},_f:{...ae&&ae._f?ae._f:{ref:{name:U}},name:U,mount:!0,...J}}),u.mount.add(U),ae?xe({disabled:$n(J.disabled)?J.disabled:t.disabled,name:U}):R(U,!0,J.value),{...Se?{disabled:J.disabled||t.disabled}:{},...t.progressive?{required:!!J.required,min:uc(J.min),max:uc(J.max),minLength:uc(J.minLength),maxLength:uc(J.maxLength),pattern:uc(J.pattern)}:{},name:U,onChange:ee,onBlur:ee,ref:_e=>{if(_e){je(U,J),ae=Ee(r,U);const ge=jt(_e.value)&&_e.querySelectorAll&&_e.querySelectorAll("input,select,textarea")[0]||_e,Ce=Dq(ge),Ue=ae._f.refs||[];if(Ce?Ue.find(Qe=>Qe===ge):ge===ae._f.ref)return;dt(r,U,{_f:{...ae._f,...Ce?{refs:[...Ue.filter(uy),ge,...Array.isArray(Ee(o,U))?[{}]:[]],ref:{type:ge.type,name:U}}:{ref:ge}}}),R(U,!1,void 0,ge)}else ae=Ee(r,U,{}),ae._f&&(ae._f.mount=!1),(t.shouldUnregister||J.shouldUnregister)&&!(WI(u.array,U)&&l.action)&&u.unMount.add(U)}}},Ve=()=>t.shouldFocusError&&Tc(r,W,u.mount),Xe=U=>{$n(U)&&(v.state.next({disabled:U}),Tc(r,(J,ae)=>{const Se=Ee(r,ae);Se&&(J.disabled=Se._f.disabled||U,Array.isArray(Se._f.refs)&&Se._f.refs.forEach(_e=>{_e.disabled=Se._f.disabled||U}))},0,!1))},nt=(U,J)=>async ae=>{let Se;ae&&(ae.preventDefault&&ae.preventDefault(),ae.persist&&ae.persist());let _e=qt(s);if(v.state.next({isSubmitting:!0}),t.resolver){const{errors:ge,values:Ce}=await D();n.errors=ge,_e=qt(Ce)}else await V(r);if(u.disabled.size)for(const ge of u.disabled)zt(_e,ge);if(zt(n.errors,"root"),Dn(n.errors)){v.state.next({errors:{}});try{await U(_e,ae)}catch(ge){Se=ge}}else J&&await J({...n.errors},ae),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=(U,J={})=>{Ee(r,U)&&(jt(J.defaultValue)?z(U,qt(Ee(o,U))):(z(U,J.defaultValue),dt(o,U,qt(J.defaultValue))),J.keepTouched||zt(n.touchedFields,U),J.keepDirty||(zt(n.dirtyFields,U),n.isDirty=J.defaultValue?Z(U,qt(Ee(o,U))):Z()),J.keepError||(zt(n.errors,U),p.isValid&&A()),v.state.next({...n}))},Cn=(U,J={})=>{const ae=U?qt(U):o,Se=qt(ae),_e=Dn(U),ge=_e?o:Se;if(J.keepDefaultValues||(o=ae),!J.keepValues){if(J.keepDirtyValues){const Ce=new Set([...u.mount,...Object.keys(hs(o,s))]);for(const Ue of Array.from(Ce))Ee(n.dirtyFields,Ue)?dt(ge,Ue,Ee(s,Ue)):z(Ue,Ee(ge,Ue))}else{if(A_&&jt(U))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(J.keepFieldsRef)for(const Ce of u.mount)z(Ce,Ee(ge,Ce));else r={}}s=t.shouldUnregister?J.keepDefaultValues?qt(o):{}:qt(ge),v.array.next({values:{...ge}}),v.state.next({values:{...ge}})}u={mount:J.keepDirtyValues?u.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},l.mount=!p.isValid||!!J.keepIsValid||!!J.keepDirtyValues,l.watch=!!t.shouldUnregister,v.state.next({submitCount:J.keepSubmitCount?n.submitCount:0,isDirty:_e?!1:J.keepDirty?n.isDirty:!!(J.keepDefaultValues&&!yi(U,o)),isSubmitted:J.keepIsSubmitted?n.isSubmitted:!1,dirtyFields:_e?{}:J.keepDirtyValues?J.keepDefaultValues&&s?hs(o,s):n.dirtyFields:J.keepDefaultValues&&U?hs(o,U):J.keepDirty?n.dirtyFields:{},touchedFields:J.keepTouched?n.touchedFields:{},errors:J.keepErrors?n.errors:{},isSubmitSuccessful:J.keepIsSubmitSuccessful?n.isSubmitSuccessful:!1,isSubmitting:!1,defaultValues:o})},Ci=(U,J)=>Cn(xr(U)?U(s):U,J),To=(U,J={})=>{const ae=Ee(r,U),Se=ae&&ae._f;if(Se){const _e=Se.refs?Se.refs[0]:Se.ref;_e.focus&&(_e.focus(),J.shouldSelect&&xr(_e.select)&&_e.select())}},fn=U=>{n={...n,...U}},tl={control:{register:je,unregister:fe,getFieldState:ie,handleSubmit:nt,setError:ne,_subscribe:pe,_runSchema:D,_focusError:Ve,_getWatch:Q,_getDirty:Z,_setValid:A,_setFieldArray:N,_setDisabledField:xe,_setErrors:w,_getFieldArray:le,_reset:Cn,_resetDefaultValues:()=>xr(t.defaultValues)&&t.defaultValues().then(U=>{Ci(U,t.resetOptions),v.state.next({isLoading:!1})}),_removeUnmounted:H,_disableForm:Xe,_subjects:v,_proxyFormState:p,get _fields(){return r},get _formValues(){return s},get _state(){return l},set _state(U){l=U},get _defaultValues(){return o},get _names(){return u},set _names(U){u=U},get _formState(){return n},get _options(){return t},set _options(U){t={...t,...U}}},subscribe:ve,trigger:be,register:je,handleSubmit:nt,watch:ue,setValue:z,getValues:P,reset:Ci,resetField:Xt,clearErrors:G,unregister:fe,setError:ne,setFocus:To,getFieldState:ie};return{...tl,formControl:tl}}function qq(e={}){const t=Oe.useRef(void 0),n=Oe.useRef(void 0),[r,o]=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}=Kq(e);t.current={...u,formState:r}}const s=t.current.control;return s._options=e,R_(()=>{const l=s._subscribe({formState:s._proxyFormState,callback:()=>o({...s._formState}),reRenderRoot:!0});return o(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,o(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=ZI(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()}},wv=(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(o=>aC(o,n,e))}},sC=(e,t)=>{t.shouldUseNativeValidation&&wv(e,t);const n={};for(const r in e){const o=Ee(t.fields,r),s=Object.assign(e[r]||{},{ref:o&&o.ref});if(Wq(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},Wq=(e,t)=>{const n=lC(t);return e.some(r=>lC(r).match(`^${n}\\.\\d+`))};function lC(e){return e.replace(/\]|\[/g,"")}const Zq=e=>{const t=S.useId(),n=S.useMemo(()=>({id:t}),[t]);return y.jsx(rO,{value:n,children:y.jsx("div",{className:"flex flex-col gap-2 p-2",...e})})},rO=S.createContext({}),iO=S.createContext({}),Yq=({...e})=>{const t=S.useMemo(()=>({name:e.name}),[e.name]);return y.jsx(iO,{value:t,children:y.jsx(Oq,{...e})})},bo=()=>{const e=S.useContext(iO),t=S.useContext(rO),{getFieldState:n,formState:r}=vo(),o=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`,...o}},oO=Tn("",{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 fo=(e=>(e.DEFAULT="default",e.INVISIBLE="invisible",e))(fo||{});const Ws=({validationStyleEnabled:e=!1,variant:t,size:n,className:r,...o})=>y.jsx("input",{className:oO({variant:t,size:n,validationStyleEnabled:e?"enabled":"disabled",className:r}),...o}),Xq=Tn("",{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"}}),cC=({validationStyleEnabled:e=!1,label:t,size:n,color:r,name:o,variant:s,className:l,...u})=>y.jsx("input",{type:"checkbox",className:Xq({variant:s,size:n,color:r,validationStyleEnabled:e?"enabled":"disabled",className:l}),...u}),Qq=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(cC,{id:r??n,...e}),t]}):y.jsx(cC,{id:r??n,...e})},Jq=e=>{const[t,n]=S.useState(!1),r=s=>{s.preventDefault(),s.stopPropagation(),n(l=>!l)},o=t?fH:uH;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(o,{className:"text-neutral mr-2 inline-block",size:20})})]})},aO=({className:e,variant:t,validationStyleEnabled:n=!1,...r})=>y.jsx("textarea",{className:ye("resize-none",oO({variant:t,validationStyleEnabled:n?"enabled":"disabled",className:e})),...r}),sO=({value:e="",onCancel:t,onSave:n,onClick:r,children:o,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,b=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",b):document.removeEventListener("click",b),()=>document.removeEventListener("click",b)),[b,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:ye("flex flex-1 gap-2",u?"display":"hidden"),children:[o,y.jsx(lt,{label:"Save",variant:st.HOVERABLE,size:Yn.ICON_SM,color:at.TEXT,Icon:Us,onClick:p,disabled:s,className:"!text-current"}),y.jsx(lt,{label:"Cancel",color:at.TEXT,variant:st.HOVERABLE,className:"!text-current",size:Yn.ICON_SM,Icon:ga,onClick:m,disabled:s})]},String(u)),y.jsxs("div",{className:ye("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:F1,color:at.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)}})]})]})},lO=({onSave:e,onCancel:t,ref:n,...r})=>{const o=S.useRef(null),s=()=>{e?.(o.current?.value??"")},l=()=>{o.current&&(o.current.value=o.current.defaultValue??""),t?.()};S.useImperativeHandle(n,()=>o.current);const u=S.useMemo(()=>r.value??o.current?.value??r.defaultValue,[r.value,r.defaultValue,o.current?.value]);return y.jsx(sO,{value:u,onCancel:l,onSave:s,children:y.jsx(Ws,{ref:o,...r})})},uC=24,dC=12,O_=({className:e,autoSize:t=!0,onChange:n,maxRows:r=999,ref:o,...s})=>{const l=S.useRef(null);S.useImperativeHandle(o,()=>l.current);const u=()=>{const p=l.current;if(!p||!t)return;const m=p.style;m.height="auto";const v=p.scrollHeight,b=uC*r+dC,x=uC+dC;m.height=Math.max(Math.min(v,b),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:ye("overflow-y-auto",t?"resize-none":"",e),...s})},cO=({onSave:e,onCancel:t,ref:n,...r})=>{const o=S.useRef(null);S.useImperativeHandle(n,()=>o.current);const s=()=>{e?.(o.current?.value??"")},l=()=>{o.current&&(o.current.value=o.current.defaultValue??""),t?.()},u=r.value??o.current?.value??r.defaultValue??"";return y.jsx(sO,{value:u,onCancel:l,onSave:s,onClick:d=>{d.preventDefault(),d.stopPropagation()},children:y.jsx(O_,{className:"leading-6",ref:o,onClick:d=>{d.preventDefault(),d.stopPropagation()},...r})})},uO=S.createContext(null),Lh=()=>{const e=S.useContext(uO);if(!e)throw new Error("useMultiSelect must be used within MultiSelectProvider");return e},e9=({values:e,defaultValues:t,onValueChange:n,loop:r=!1,className:o,children:s,dir:l,...u})=>{const[d,f]=S.useState(t??[]),[p,m]=S.useState(""),[v,b]=S.useState(!1),[x,A]=S.useState(-1),T=S.useRef(null),[N,E]=S.useState(!1),[w,R]=S.useState("");S.useEffect(()=>{e&&f(e)},[e]);const C=S.useCallback(V=>{if(d.includes(V)){const H=d.filter(Z=>Z!==V);f(H),n?.(H)}else{const H=[...d,V];f(H),n?.(H)}},[d]),I=S.useCallback(V=>{V.preventDefault();const H=V.currentTarget,Z=H.value.substring(H.selectionStart??0,H.selectionEnd??0);R(Z),E(Z===p)},[p]),D=S.useCallback(V=>{V.stopPropagation();const H=T.current;if(!H)return;const Z=()=>{const q=x+1;A(q>d.length-1?r?0:-1:q)},Q=()=>{const q=x-1;A(q<0?d.length-1:q)},le=()=>{const q=x-1<=0?d.length-1===0?-1:0:x-1;A(q)};switch(V.key){case"ArrowLeft":l==="rtl"?d.length>0&&(x!==-1||r)&&Z():d.length>0&&H.selectionStart===0&&Q();break;case"ArrowRight":l==="rtl"?d.length>0&&H.selectionStart===0&&Q():d.length>0&&(x!==-1||r)&&Z();break;case"Backspace":case"Delete":d.length>0&&(x!==-1&&x<d.length?(C(d[x]),le()):(H.selectionStart===0&&w===p||N)&&C(d[d.length-1]));break;case"Enter":b(!0);break;case"Escape":x!==-1?A(-1):v&&b(!1);break}},[d,p,x,r]),L=S.useMemo(()=>({value:d,onValueChange:C,open:v,setOpen:b,inputValue:p,setInputValue:m,activeIndex:x,setActiveIndex:A,ref:T,handleSelect:I}),[d,C,v,b,p,m,x,A,T,I]);return y.jsx(uO,{value:L,children:y.jsx(Vk,{onKeyDown:D,className:ye("flex w-full flex-col gap-2 overflow-visible bg-transparent",o),dir:l,...u,children:s})})},t9=({className:e,getBadgeValue:t=s=>s,validationStyleEnabled:n=!1,children:r,...o})=>{const{value:s,onValueChange:l,activeIndex:u}=Lh(),d=S.useCallback(f=>{f.preventDefault(),f.stopPropagation()},[]);return y.jsxs("div",{className:ye("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),...o,children:[s.length>0&&y.jsx("div",{className:"flex w-full flex-wrap gap-1",children:s.map((f,p)=>y.jsxs(d$,{className:ye("flex items-center gap-1 rounded-xl px-1",u===p&&"ring-muted-foreground ring-2"),color:rk.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(ga,{className:"size-4 cursor-pointer"})]})]},f))}),r]})},n9=({className:e,...t})=>{const{setOpen:n,inputValue:r,setInputValue:o,activeIndex:s,setActiveIndex:l,handleSelect:u,ref:d}=Lh();return y.jsx(Vf.Input,{...t,tabIndex:0,ref:d,value:r,onValueChange:s===-1?o:void 0,onSelect:u,onBlur:()=>n(!1),onFocus:()=>n(!0),onClick:()=>l(-1),className:ye("outline-hidden ml-2 flex-1 cursor-pointer",e,s!==-1&&"caret-transparent")})},r9=({children:e})=>{const{open:t}=Lh();return y.jsx("div",{className:"relative",children:t&&e})},i9=({className:e,children:t})=>y.jsxs(Vf.List,{className:ye("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"})})]}),o9=({className:e,value:t,children:n,...r})=>{const{value:o,onValueChange:s,setInputValue:l}=Lh(),u=S.useCallback(f=>{f.preventDefault(),f.stopPropagation()},[]),d=o.includes(t);return y.jsxs(Vf.Item,{...r,onSelect:()=>{s(t),l("")},className:ye("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=e9;yn.Trigger=t9;yn.Input=n9;yn.Content=r9;yn.List=i9;yn.Item=o9;const a9=({className:e,children:t,...n})=>y.jsxs("i",{className:ye("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}),s9=({className:e,...t})=>{const{error:n,formItemId:r}=bo();return y.jsx(Tv,{className:ye("mb-2",n&&"text-error",e),htmlFor:r,...t})},l9=({isRequired:e})=>e?y.jsx("span",{"aria-label":"Asterisk meaning the field is required",children:"*"}):y.jsx(y.Fragment,{}),dO=({children:e,isRequired:t,info:n,htmlFor:r,className:o})=>y.jsxs("div",{className:"ml-1 flex gap-1 align-middle text-base leading-none",children:[e&&y.jsxs(s9,{htmlFor:r,id:`${r}-label`,className:Sh("font-bold",o),children:[e,y.jsx(l9,{isRequired:t})]}),n&&y.jsx(a9,{content:n})]});function fC(e,[t,n]){return Math.min(n,Math.max(t,e))}function fO(e){const t=e+"CollectionProvider",[n,r]=ou(t),[o,s]=n(t,{collectionRef:{current:null},itemMap:new Map}),l=A=>{const{scope:T,children:N}=A,E=Oe.useRef(null),w=Oe.useRef(new Map).current;return y.jsx(o,{scope:T,itemMap:w,collectionRef:E,children:N})};l.displayName=t;const u=e+"CollectionSlot",d=Ns(u),f=Oe.forwardRef((A,T)=>{const{scope:N,children:E}=A,w=s(u,N),R=Ct(T,w.collectionRef);return y.jsx(d,{ref:R,children:E})});f.displayName=u;const p=e+"CollectionItemSlot",m="data-radix-collection-item",v=Ns(p),b=Oe.forwardRef((A,T)=>{const{scope:N,children:E,...w}=A,R=Oe.useRef(null),C=Ct(T,R),I=s(p,N);return Oe.useEffect(()=>(I.itemMap.set(R,{ref:R,...w}),()=>void I.itemMap.delete(R))),y.jsx(v,{[m]:"",ref:C,children:E})});b.displayName=p;function x(A){const T=s(e+"CollectionConsumer",A);return Oe.useCallback(()=>{const E=T.collectionRef.current;if(!E)return[];const w=Array.from(E.querySelectorAll(`[${m}]`));return Array.from(T.itemMap.values()).sort((I,D)=>w.indexOf(I.ref.current)-w.indexOf(D.ref.current))},[T.collectionRef,T.itemMap])}return[{Provider:l,Slot:f,ItemSlot:b},x,r]}var c9=S.createContext(void 0);function u9(e){const t=S.useContext(c9);return e||t||"ltr"}const d9=["top","right","bottom","left"],ho=Math.min,Kn=Math.max,Xf=Math.round,Qd=Math.floor,Kr=e=>({x:e,y:e}),f9={left:"right",right:"left",bottom:"top",top:"bottom"},h9={start:"end",end:"start"};function Cv(e,t,n){return Kn(e,ho(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 D_(e){return e==="x"?"y":"x"}function L_(e){return e==="y"?"height":"width"}const p9=new Set(["top","bottom"]);function Fr(e){return p9.has(xi(e))?"y":"x"}function j_(e){return D_(Fr(e))}function m9(e,t,n){n===void 0&&(n=!1);const r=Zs(e),o=j_(e),s=L_(o);let l=o==="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 g9(e){const t=Qf(e);return[Rv(e),t,Rv(t)]}function Rv(e){return e.replace(/start|end/g,t=>h9[t])}const hC=["left","right"],pC=["right","left"],y9=["top","bottom"],v9=["bottom","top"];function b9(e,t,n){switch(e){case"top":case"bottom":return n?t?pC:hC:t?hC:pC;case"left":case"right":return t?y9:v9;default:return[]}}function _9(e,t,n,r){const o=Zs(e);let s=b9(xi(e),n==="start",r);return o&&(s=s.map(l=>l+"-"+o),t&&(s=s.concat(s.map(Rv)))),s}function Qf(e){return e.replace(/left|right|bottom|top/g,t=>f9[t])}function E9(e){return{top:0,right:0,bottom:0,left:0,...e}}function hO(e){return typeof e!="number"?E9(e):{top:e,right:e,bottom:e,left:e}}function Jf(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function mC(e,t,n){let{reference:r,floating:o}=e;const s=Fr(t),l=j_(t),u=L_(l),d=xi(t),f=s==="y",p=r.x+r.width/2-o.width/2,m=r.y+r.height/2-o.height/2,v=r[u]/2-o[u]/2;let b;switch(d){case"top":b={x:p,y:r.y-o.height};break;case"bottom":b={x:p,y:r.y+r.height};break;case"right":b={x:r.x+r.width,y:m};break;case"left":b={x:r.x-o.width,y:m};break;default:b={x:r.x,y:r.y}}switch(Zs(t)){case"start":b[l]-=v*(n&&f?-1:1);break;case"end":b[l]+=v*(n&&f?-1:1);break}return b}const S9=async(e,t,n)=>{const{placement:r="bottom",strategy:o="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:o}),{x:p,y:m}=mC(f,r,d),v=r,b={},x=0;for(let A=0;A<u.length;A++){const{name:T,fn:N}=u[A],{x:E,y:w,data:R,reset:C}=await N({x:p,y:m,initialPlacement:r,placement:v,strategy:o,middlewareData:b,rects:f,platform:l,elements:{reference:e,floating:t}});p=E??p,m=w??m,b={...b,[T]:{...b[T],...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:o}):C.rects),{x:p,y:m}=mC(f,v,d)),A=-1)}return{x:p,y:m,placement:v,strategy:o,middlewareData:b}};async function Fc(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:s,rects:l,elements:u,strategy:d}=e,{boundary:f="clippingAncestors",rootBoundary:p="viewport",elementContext:m="floating",altBoundary:v=!1,padding:b=0}=Si(t,e),x=hO(b),T=u[v?m==="floating"?"reference":"floating":m],N=Jf(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(T)))==null||n?T:T.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(u.floating)),boundary:f,rootBoundary:p,strategy:d})),E=m==="floating"?{x:r,y:o,width:l.floating.width,height:l.floating.height}:l.reference,w=await(s.getOffsetParent==null?void 0:s.getOffsetParent(u.floating)),R=await(s.isElement==null?void 0:s.isElement(w))?await(s.getScale==null?void 0:s.getScale(w))||{x:1,y:1}:{x:1,y:1},C=Jf(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:u,rect:E,offsetParent:w,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 x9=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:s,platform:l,elements:u,middlewareData:d}=t,{element:f,padding:p=0}=Si(e,t)||{};if(f==null)return{};const m=hO(p),v={x:n,y:r},b=j_(o),x=L_(b),A=await l.getDimensions(f),T=b==="y",N=T?"top":"left",E=T?"bottom":"right",w=T?"clientHeight":"clientWidth",R=s.reference[x]+s.reference[b]-v[b]-s.floating[x],C=v[b]-s.reference[b],I=await(l.getOffsetParent==null?void 0:l.getOffsetParent(f));let D=I?I[w]:0;(!D||!await(l.isElement==null?void 0:l.isElement(I)))&&(D=u.floating[w]||s.floating[x]);const L=R/2-C/2,V=D/2-A[x]/2-1,H=ho(m[N],V),Z=ho(m[E],V),Q=H,le=D-A[x]-Z,q=D/2-A[x]/2+L,oe=Cv(Q,q,le),z=!d.arrow&&Zs(o)!=null&&q!==oe&&s.reference[x]/2-(q<Q?H:Z)-A[x]/2<0,ee=z?q<Q?q-Q:q-le:0;return{[b]:v[b]+ee,data:{[b]:oe,centerOffset:q-oe-ee,...z&&{alignmentOffset:ee}},reset:z}}}),A9=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:s,rects:l,initialPlacement:u,platform:d,elements:f}=t,{mainAxis:p=!0,crossAxis:m=!0,fallbackPlacements:v,fallbackStrategy:b="bestFit",fallbackAxisSideDirection:x="none",flipAlignment:A=!0,...T}=Si(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const N=xi(o),E=Fr(u),w=xi(u)===u,R=await(d.isRTL==null?void 0:d.isRTL(f.floating)),C=v||(w||!A?[Qf(u)]:g9(u)),I=x!=="none";!v&&I&&C.push(..._9(u,A,x,R));const D=[u,...C],L=await Fc(t,T),V=[];let H=((r=s.flip)==null?void 0:r.overflows)||[];if(p&&V.push(L[N]),m){const q=m9(o,l,R);V.push(L[q[0]],L[q[1]])}if(H=[...H,{placement:o,overflows:V}],!V.every(q=>q<=0)){var Z,Q;const q=(((Z=s.flip)==null?void 0:Z.index)||0)+1,oe=D[q];if(oe&&(!(m==="alignment"?E!==Fr(oe):!1)||H.every(W=>Fr(W.placement)===E?W.overflows[0]>0:!0)))return{data:{index:q,overflows:H},reset:{placement:oe}};let z=(Q=H.filter(ee=>ee.overflows[0]<=0).sort((ee,W)=>ee.overflows[1]-W.overflows[1])[0])==null?void 0:Q.placement;if(!z)switch(b){case"bestFit":{var le;const ee=(le=H.filter(W=>{if(I){const be=Fr(W.placement);return be===E||be==="y"}return!0}).map(W=>[W.placement,W.overflows.filter(be=>be>0).reduce((be,P)=>be+P,0)]).sort((W,be)=>W[1]-be[1])[0])==null?void 0:le[0];ee&&(z=ee);break}case"initialPlacement":z=u;break}if(o!==z)return{reset:{placement:z}}}return{}}}};function gC(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function yC(e){return d9.some(t=>e[t]>=0)}const w9=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=Si(e,t);switch(r){case"referenceHidden":{const s=await Fc(t,{...o,elementContext:"reference"}),l=gC(s,n.reference);return{data:{referenceHiddenOffsets:l,referenceHidden:yC(l)}}}case"escaped":{const s=await Fc(t,{...o,altBoundary:!0}),l=gC(s,n.floating);return{data:{escapedOffsets:l,escaped:yC(l)}}}default:return{}}}}},pO=new Set(["left","top"]);async function T9(e,t){const{placement:n,platform:r,elements:o}=e,s=await(r.isRTL==null?void 0:r.isRTL(o.floating)),l=xi(n),u=Zs(n),d=Fr(n)==="y",f=pO.has(l)?-1:1,p=s&&d?-1:1,m=Si(t,e);let{mainAxis:v,crossAxis:b,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"&&(b=u==="end"?x*-1:x),d?{x:b*p,y:v*f}:{x:v*f,y:b*p}}const C9=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,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:o+d.x,y:s+d.y,data:{...d,placement:l}}}}},R9=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:s=!0,crossAxis:l=!1,limiter:u={fn:T=>{let{x:N,y:E}=T;return{x:N,y:E}}},...d}=Si(e,t),f={x:n,y:r},p=await Fc(t,d),m=Fr(xi(o)),v=D_(m);let b=f[v],x=f[m];if(s){const T=v==="y"?"top":"left",N=v==="y"?"bottom":"right",E=b+p[T],w=b-p[N];b=Cv(E,b,w)}if(l){const T=m==="y"?"top":"left",N=m==="y"?"bottom":"right",E=x+p[T],w=x-p[N];x=Cv(E,x,w)}const A=u.fn({...t,[v]:b,[m]:x});return{...A,data:{x:A.x-n,y:A.y-r,enabled:{[v]:s,[m]:l}}}}}},k9=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:s,middlewareData:l}=t,{offset:u=0,mainAxis:d=!0,crossAxis:f=!0}=Si(e,t),p={x:n,y:r},m=Fr(o),v=D_(m);let b=p[v],x=p[m];const A=Si(u,t),T=typeof A=="number"?{mainAxis:A,crossAxis:0}:{mainAxis:0,crossAxis:0,...A};if(d){const w=v==="y"?"height":"width",R=s.reference[v]-s.floating[w]+T.mainAxis,C=s.reference[v]+s.reference[w]-T.mainAxis;b<R?b=R:b>C&&(b=C)}if(f){var N,E;const w=v==="y"?"width":"height",R=pO.has(xi(o)),C=s.reference[m]-s.floating[w]+(R&&((N=l.offset)==null?void 0:N[m])||0)+(R?0:T.crossAxis),I=s.reference[m]+s.reference[w]+(R?0:((E=l.offset)==null?void 0:E[m])||0)-(R?T.crossAxis:0);x<C?x=C:x>I&&(x=I)}return{[v]:b,[m]:x}}}},N9=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:s,platform:l,elements:u}=t,{apply:d=()=>{},...f}=Si(e,t),p=await Fc(t,f),m=xi(o),v=Zs(o),b=Fr(o)==="y",{width:x,height:A}=s.floating;let T,N;m==="top"||m==="bottom"?(T=m,N=v===(await(l.isRTL==null?void 0:l.isRTL(u.floating))?"start":"end")?"left":"right"):(N=m,T=v==="end"?"top":"bottom");const E=A-p.top-p.bottom,w=x-p.left-p.right,R=ho(A-p[T],E),C=ho(x-p[N],w),I=!t.middlewareData.shift;let D=R,L=C;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(L=w),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(D=E),I&&!v){const H=Kn(p.left,0),Z=Kn(p.right,0),Q=Kn(p.top,0),le=Kn(p.bottom,0);b?L=x-2*(H!==0||Z!==0?H+Z:Kn(p.left,p.right)):D=A-2*(Q!==0||le!==0?Q+le:Kn(p.top,p.bottom))}await d({...t,availableWidth:L,availableHeight:D});const V=await l.getDimensions(u.floating);return x!==V.width||A!==V.height?{reset:{rects:!0}}:{}}}};function jh(){return typeof window<"u"}function Ys(e){return mO(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=(mO(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function mO(e){return jh()?e instanceof Node||e instanceof Xn(e).Node:!1}function wr(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 vC(e){return!jh()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Xn(e).ShadowRoot}const I9=new Set(["inline","contents"]);function yu(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Tr(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!I9.has(o)}const O9=new Set(["table","td","th"]);function D9(e){return O9.has(Ys(e))}const L9=[":popover-open",":modal"];function Ph(e){return L9.some(t=>{try{return e.matches(t)}catch{return!1}})}const j9=["transform","translate","scale","rotate","perspective"],P9=["transform","translate","scale","rotate","perspective","filter"],M9=["paint","layout","strict","content"];function P_(e){const t=M_(),n=wr(e)?Tr(e):e;return j9.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)||P9.some(r=>(n.willChange||"").includes(r))||M9.some(r=>(n.contain||"").includes(r))}function z9(e){let t=po(e);for(;Wr(t)&&!Ds(t);){if(P_(t))return t;if(Ph(t))return null;t=po(t)}return null}function M_(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const B9=new Set(["html","body","#document"]);function Ds(e){return B9.has(Ys(e))}function Tr(e){return Xn(e).getComputedStyle(e)}function Mh(e){return wr(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function po(e){if(Ys(e)==="html")return e;const t=e.assignedSlot||e.parentNode||vC(e)&&e.host||Xr(e);return vC(t)?t.host:t}function gO(e){const t=po(e);return Ds(t)?e.ownerDocument?e.ownerDocument.body:e.body:Wr(t)&&yu(t)?t:gO(t)}function Hc(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=gO(e),s=o===((r=e.ownerDocument)==null?void 0:r.body),l=Xn(o);if(s){const u=kv(l);return t.concat(l,l.visualViewport||[],yu(o)?o:[],u&&n?Hc(u):[])}return t.concat(o,Hc(o,[],n))}function kv(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function yO(e){const t=Tr(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Wr(e),s=o?e.offsetWidth:n,l=o?e.offsetHeight:r,u=Xf(n)!==s||Xf(r)!==l;return u&&(n=s,r=l),{width:n,height:r,$:u}}function z_(e){return wr(e)?e:e.contextElement}function As(e){const t=z_(e);if(!Wr(t))return Kr(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:s}=yO(t);let l=(s?Xf(n.width):n.width)/r,u=(s?Xf(n.height):n.height)/o;return(!l||!Number.isFinite(l))&&(l=1),(!u||!Number.isFinite(u))&&(u=1),{x:l,y:u}}const V9=Kr(0);function vO(e){const t=Xn(e);return!M_()||!t.visualViewport?V9:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function U9(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Xn(e)?!1:t}function ua(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),s=z_(e);let l=Kr(1);t&&(r?wr(r)&&(l=As(r)):l=As(e));const u=U9(s,n,r)?vO(s):Kr(0);let d=(o.left+u.x)/l.x,f=(o.top+u.y)/l.y,p=o.width/l.x,m=o.height/l.y;if(s){const v=Xn(s),b=r&&wr(r)?Xn(r):r;let x=v,A=kv(x);for(;A&&r&&b!==x;){const T=As(A),N=A.getBoundingClientRect(),E=Tr(A),w=N.left+(A.clientLeft+parseFloat(E.paddingLeft))*T.x,R=N.top+(A.clientTop+parseFloat(E.paddingTop))*T.y;d*=T.x,f*=T.y,p*=T.x,m*=T.y,d+=w,f+=R,x=Xn(A),A=kv(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:ua(Xr(e)).left+n}function bO(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-zh(e,n),o=n.top+t.scrollTop;return{x:r,y:o}}function F9(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const s=o==="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 b=ua(r);f=As(r),p.x=b.x+r.clientLeft,p.y=b.y+r.clientTop}const v=l&&!m&&!s?bO(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 H9(e){return Array.from(e.getClientRects())}function $9(e){const t=Xr(e),n=Mh(e),r=e.ownerDocument.body,o=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 Tr(r).direction==="rtl"&&(l+=Kn(t.clientWidth,r.clientWidth)-o),{width:o,height:s,x:l,y:u}}const bC=25;function G9(e,t){const n=Xn(e),r=Xr(e),o=n.visualViewport;let s=r.clientWidth,l=r.clientHeight,u=0,d=0;if(o){s=o.width,l=o.height;const p=M_();(!p||p&&t==="fixed")&&(u=o.offsetLeft,d=o.offsetTop)}const f=zh(r);if(f<=0){const p=r.ownerDocument,m=p.body,v=getComputedStyle(m),b=p.compatMode==="CSS1Compat"&&parseFloat(v.marginLeft)+parseFloat(v.marginRight)||0,x=Math.abs(r.clientWidth-m.clientWidth-b);x<=bC&&(s-=x)}else f<=bC&&(s+=f);return{width:s,height:l,x:u,y:d}}const K9=new Set(["absolute","fixed"]);function q9(e,t){const n=ua(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,s=Wr(e)?As(e):Kr(1),l=e.clientWidth*s.x,u=e.clientHeight*s.y,d=o*s.x,f=r*s.y;return{width:l,height:u,x:d,y:f}}function _C(e,t,n){let r;if(t==="viewport")r=G9(e,n);else if(t==="document")r=$9(Xr(e));else if(wr(t))r=q9(t,n);else{const o=vO(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Jf(r)}function _O(e,t){const n=po(e);return n===t||!wr(n)||Ds(n)?!1:Tr(n).position==="fixed"||_O(n,t)}function W9(e,t){const n=t.get(e);if(n)return n;let r=Hc(e,[],!1).filter(u=>wr(u)&&Ys(u)!=="body"),o=null;const s=Tr(e).position==="fixed";let l=s?po(e):e;for(;wr(l)&&!Ds(l);){const u=Tr(l),d=P_(l);!d&&u.position==="fixed"&&(o=null),(s?!d&&!o:!d&&u.position==="static"&&!!o&&K9.has(o.position)||yu(l)&&!d&&_O(e,l))?r=r.filter(p=>p!==l):o=u,l=po(l)}return t.set(e,r),r}function Z9(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const l=[...n==="clippingAncestors"?Ph(t)?[]:W9(t,this._c):[].concat(n),r],u=l[0],d=l.reduce((f,p)=>{const m=_C(t,p,o);return f.top=Kn(m.top,f.top),f.right=ho(m.right,f.right),f.bottom=ho(m.bottom,f.bottom),f.left=Kn(m.left,f.left),f},_C(t,u,o));return{width:d.right-d.left,height:d.bottom-d.top,x:d.left,y:d.top}}function Y9(e){const{width:t,height:n}=yO(e);return{width:t,height:n}}function X9(e,t,n){const r=Wr(t),o=Xr(t),s=n==="fixed",l=ua(e,!0,s,t);let u={scrollLeft:0,scrollTop:0};const d=Kr(0);function f(){d.x=zh(o)}if(r||!r&&!s)if((Ys(t)!=="body"||yu(o))&&(u=Mh(t)),r){const b=ua(t,!0,s,t);d.x=b.x+t.clientLeft,d.y=b.y+t.clientTop}else o&&f();s&&!r&&o&&f();const p=o&&!r&&!s?bO(o,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 Tr(e).position==="static"}function EC(e,t){if(!Wr(e)||Tr(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Xr(e)===n&&(n=n.ownerDocument.body),n}function EO(e,t){const n=Xn(e);if(Ph(e))return n;if(!Wr(e)){let o=po(e);for(;o&&!Ds(o);){if(wr(o)&&!dy(o))return o;o=po(o)}return n}let r=EC(e,t);for(;r&&D9(r)&&dy(r);)r=EC(r,t);return r&&Ds(r)&&dy(r)&&!P_(r)?n:r||z9(e)||n}const Q9=async function(e){const t=this.getOffsetParent||EO,n=this.getDimensions,r=await n(e.floating);return{reference:X9(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function J9(e){return Tr(e).direction==="rtl"}const eW={convertOffsetParentRelativeRectToViewportRelativeRect:F9,getDocumentElement:Xr,getClippingRect:Z9,getOffsetParent:EO,getElementRects:Q9,getClientRects:H9,getDimensions:Y9,getScale:As,isElement:wr,isRTL:J9};function SO(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function tW(e,t){let n=null,r;const o=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:b}=f;if(u||t(),!v||!b)return;const x=Qd(m),A=Qd(o.clientWidth-(p+v)),T=Qd(o.clientHeight-(m+b)),N=Qd(p),w={rootMargin:-x+"px "+-A+"px "+-T+"px "+-N+"px",threshold:Kn(0,ho(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&&!SO(f,e.getBoundingClientRect())&&l(),R=!1}try{n=new IntersectionObserver(C,{...w,root:o.ownerDocument})}catch{n=new IntersectionObserver(C,w)}n.observe(e)}return l(!0),s}function nW(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:s=!0,elementResize:l=typeof ResizeObserver=="function",layoutShift:u=typeof IntersectionObserver=="function",animationFrame:d=!1}=r,f=z_(e),p=o||s?[...f?Hc(f):[],...Hc(t)]:[];p.forEach(N=>{o&&N.addEventListener("scroll",n,{passive:!0}),s&&N.addEventListener("resize",n)});const m=f&&u?tW(f,n):null;let v=-1,b=null;l&&(b=new ResizeObserver(N=>{let[E]=N;E&&E.target===f&&b&&(b.unobserve(t),cancelAnimationFrame(v),v=requestAnimationFrame(()=>{var w;(w=b)==null||w.observe(t)})),n()}),f&&!d&&b.observe(f),b.observe(t));let x,A=d?ua(e):null;d&&T();function T(){const N=ua(e);A&&!SO(A,N)&&n(),A=N,x=requestAnimationFrame(T)}return n(),()=>{var N;p.forEach(E=>{o&&E.removeEventListener("scroll",n),s&&E.removeEventListener("resize",n)}),m?.(),(N=b)==null||N.disconnect(),b=null,d&&cancelAnimationFrame(x)}}const rW=C9,iW=R9,oW=A9,aW=N9,sW=w9,SC=x9,lW=k9,cW=(e,t,n)=>{const r=new Map,o={platform:eW,...n},s={...o.platform,_c:r};return S9(e,t,{...o,platform:s})};var uW=typeof document<"u",dW=function(){},Cf=uW?S.useLayoutEffect:dW;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,o;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(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const s=o[r];if(!(s==="_owner"&&e.$$typeof)&&!eh(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function xO(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function xC(e,t){const n=xO(e);return Math.round(t*n)/n}function fy(e){const t=S.useRef(e);return Cf(()=>{t.current=e}),t}function fW(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,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,b]=S.useState(r);eh(v,r)||b(r);const[x,A]=S.useState(null),[T,N]=S.useState(null),E=S.useCallback(W=>{W!==I.current&&(I.current=W,A(W))},[]),w=S.useCallback(W=>{W!==D.current&&(D.current=W,N(W))},[]),R=s||x,C=l||T,I=S.useRef(null),D=S.useRef(null),L=S.useRef(p),V=d!=null,H=fy(d),Z=fy(o),Q=fy(f),le=S.useCallback(()=>{if(!I.current||!D.current)return;const W={placement:t,strategy:n,middleware:v};Z.current&&(W.platform=Z.current),cW(I.current,D.current,W).then(be=>{const P={...be,isPositioned:Q.current!==!1};q.current&&!eh(L.current,P)&&(L.current=P,ma.flushSync(()=>{m(P)}))})},[v,t,n,Z,Q]);Cf(()=>{f===!1&&L.current.isPositioned&&(L.current.isPositioned=!1,m(W=>({...W,isPositioned:!1})))},[f]);const q=S.useRef(!1);Cf(()=>(q.current=!0,()=>{q.current=!1}),[]),Cf(()=>{if(R&&(I.current=R),C&&(D.current=C),R&&C){if(H.current)return H.current(R,C,le);le()}},[R,C,le,H,V]);const oe=S.useMemo(()=>({reference:I,floating:D,setReference:E,setFloating:w}),[E,w]),z=S.useMemo(()=>({reference:R,floating:C}),[R,C]),ee=S.useMemo(()=>{const W={position:n,left:0,top:0};if(!z.floating)return W;const be=xC(z.floating,p.x),P=xC(z.floating,p.y);return u?{...W,transform:"translate("+be+"px, "+P+"px)",...xO(z.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:be,top:P}},[n,u,z.floating,p.x,p.y]);return S.useMemo(()=>({...p,update:le,refs:oe,elements:z,floatingStyles:ee}),[p,le,oe,z,ee])}const hW=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?SC({element:r.current,padding:o}).fn(n):{}:r?SC({element:r,padding:o}).fn(n):{}}}},pW=(e,t)=>({...rW(e),options:[e,t]}),mW=(e,t)=>({...iW(e),options:[e,t]}),gW=(e,t)=>({...lW(e),options:[e,t]}),yW=(e,t)=>({...oW(e),options:[e,t]}),vW=(e,t)=>({...aW(e),options:[e,t]}),bW=(e,t)=>({...sW(e),options:[e,t]}),_W=(e,t)=>({...hW(e),options:[e,t]});var EW="Arrow",AO=S.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...s}=e;return y.jsx(Ge.svg,{...s,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:y.jsx("polygon",{points:"0,0 30,0 15,10"})})});AO.displayName=EW;var SW=AO;function xW(e){const[t,n]=S.useState(void 0);return un(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const s=o[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 B_="Popper",[wO,TO]=ou(B_),[AW,CO]=wO(B_),RO=e=>{const{__scopePopper:t,children:n}=e,[r,o]=S.useState(null);return y.jsx(AW,{scope:t,anchor:r,onAnchorChange:o,children:n})};RO.displayName=B_;var kO="PopperAnchor",NO=S.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,s=CO(kO,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(Ge.div,{...o,ref:u})});NO.displayName=kO;var V_="PopperContent",[wW,TW]=wO(V_),IO=S.forwardRef((e,t)=>{const{__scopePopper:n,side:r="bottom",sideOffset:o=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:b="optimized",onPlaced:x,...A}=e,T=CO(V_,n),[N,E]=S.useState(null),w=Ct(t,fe=>E(fe)),[R,C]=S.useState(null),I=xW(R),D=I?.width??0,L=I?.height??0,V=r+(s!=="center"?"-"+s:""),H=typeof p=="number"?p:{top:0,right:0,bottom:0,left:0,...p},Z=Array.isArray(f)?f:[f],Q=Z.length>0,le={padding:H,boundary:Z.filter(RW),altBoundary:Q},{refs:q,floatingStyles:oe,placement:z,isPositioned:ee,middlewareData:W}=fW({strategy:"fixed",placement:V,whileElementsMounted:(...fe)=>nW(...fe,{animationFrame:b==="always"}),elements:{reference:T.anchor},middleware:[pW({mainAxis:o+L,alignmentAxis:l}),d&&mW({mainAxis:!0,crossAxis:!1,limiter:m==="partial"?gW():void 0,...le}),d&&yW({...le}),vW({...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&&_W({element:R,padding:u}),kW({arrowWidth:D,arrowHeight:L}),v&&bW({strategy:"referenceHidden",...le})]}),[be,P]=LO(z),ie=Ar(x);un(()=>{ee&&ie?.()},[ee,ie]);const G=W.arrow?.x,ne=W.arrow?.y,ue=W.arrow?.centerOffset!==0,[pe,ve]=S.useState();return un(()=>{N&&ve(window.getComputedStyle(N).zIndex)},[N]),y.jsx("div",{ref:q.setFloating,"data-radix-popper-content-wrapper":"",style:{...oe,transform:ee?oe.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:pe,"--radix-popper-transform-origin":[W.transformOrigin?.x,W.transformOrigin?.y].join(" "),...W.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:y.jsx(wW,{scope:n,placedSide:be,onArrowChange:C,arrowX:G,arrowY:ne,shouldHideArrow:ue,children:y.jsx(Ge.div,{"data-side":be,"data-align":P,...A,ref:w,style:{...A.style,animation:ee?void 0:"none"}})})})});IO.displayName=V_;var OO="PopperArrow",CW={top:"bottom",right:"left",bottom:"top",left:"right"},DO=S.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,s=TW(OO,r),l=CW[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(SW,{...o,ref:n,style:{...o.style,display:"block"}})})});DO.displayName=OO;function RW(e){return e!==null}var kW=e=>({name:"transformOrigin",options:e,fn(t){const{placement:n,rects:r,middlewareData:o}=t,l=o.arrow?.centerOffset!==0,u=l?0:e.arrowWidth,d=l?0:e.arrowHeight,[f,p]=LO(n),m={start:"0%",center:"50%",end:"100%"}[p],v=(o.arrow?.x??0)+u/2,b=(o.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:`${b}px`):f==="left"&&(x=`${r.floating.width+d}px`,A=l?m:`${b}px`),{data:{x,y:A}}}});function LO(e){const[t,n="center"]=e.split("-");return[t,n]}var NW=RO,IW=NO,OW=IO,DW=DO;function LW(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 jO=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"}),jW="VisuallyHidden",U_=S.forwardRef((e,t)=>y.jsx(Ge.span,{...e,ref:t,style:{...jO,...e.style}}));U_.displayName=jW;var PW=[" ","Enter","ArrowUp","ArrowDown"],MW=[" ","Enter"],da="Select",[Bh,Vh,zW]=fO(da),[Xs]=ou(da,[zW,TO]),Uh=TO(),[BW,_o]=Xs(da),[VW,UW]=Xs(da),PO=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:o,onOpenChange:s,value:l,defaultValue:u,onValueChange:d,dir:f,name:p,autoComplete:m,disabled:v,required:b,form:x}=e,A=Uh(t),[T,N]=S.useState(null),[E,w]=S.useState(null),[R,C]=S.useState(!1),I=u9(f),[D,L]=zf({prop:r,defaultProp:o??!1,onChange:s,caller:da}),[V,H]=zf({prop:l,defaultProp:u,onChange:d,caller:da}),Z=S.useRef(null),Q=T?x||!!T.closest("form"):!0,[le,q]=S.useState(new Set),oe=Array.from(le).map(z=>z.props.value).join(";");return y.jsx(NW,{...A,children:y.jsxs(BW,{required:b,scope:t,trigger:T,onTriggerChange:N,valueNode:E,onValueNodeChange:w,valueNodeHasChildren:R,onValueNodeHasChildrenChange:C,contentId:hr(),value:V,onValueChange:H,open:D,onOpenChange:L,dir:I,triggerPointerDownPosRef:Z,disabled:v,children:[y.jsx(Bh.Provider,{scope:t,children:y.jsx(VW,{scope:e.__scopeSelect,onNativeOptionAdd:S.useCallback(z=>{q(ee=>new Set(ee).add(z))},[]),onNativeOptionRemove:S.useCallback(z=>{q(ee=>{const W=new Set(ee);return W.delete(z),W})},[]),children:n})}),Q?y.jsxs(sD,{"aria-hidden":!0,required:b,tabIndex:-1,name:p,autoComplete:m,value:V,onChange:z=>H(z.target.value),disabled:v,form:x,children:[V===void 0?y.jsx("option",{value:""}):null,Array.from(le)]},oe):null]})})};PO.displayName=da;var MO="SelectTrigger",zO=S.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...o}=e,s=Uh(n),l=_o(MO,n),u=l.disabled||r,d=Ct(t,l.onTriggerChange),f=Vh(n),p=S.useRef("touch"),[m,v,b]=cD(A=>{const T=f().filter(w=>!w.disabled),N=T.find(w=>w.value===l.value),E=uD(T,A,N);E!==void 0&&l.onValueChange(E.value)}),x=A=>{u||(l.onOpenChange(!0),b()),A&&(l.triggerPointerDownPosRef.current={x:Math.round(A.pageX),y:Math.round(A.pageY)})};return y.jsx(IW,{asChild:!0,...s,children:y.jsx(Ge.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":lD(l.value)?"":void 0,...o,ref:d,onClick:Je(o.onClick,A=>{A.currentTarget.focus(),p.current!=="mouse"&&x(A)}),onPointerDown:Je(o.onPointerDown,A=>{p.current=A.pointerType;const T=A.target;T.hasPointerCapture(A.pointerId)&&T.releasePointerCapture(A.pointerId),A.button===0&&A.ctrlKey===!1&&A.pointerType==="mouse"&&(x(A),A.preventDefault())}),onKeyDown:Je(o.onKeyDown,A=>{const T=m.current!=="";!(A.ctrlKey||A.altKey||A.metaKey)&&A.key.length===1&&v(A.key),!(T&&A.key===" ")&&PW.includes(A.key)&&(x(),A.preventDefault())})})})});zO.displayName=MO;var BO="SelectValue",VO=S.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,children:s,placeholder:l="",...u}=e,d=_o(BO,n),{onValueNodeHasChildrenChange:f}=d,p=s!==void 0,m=Ct(t,d.onValueNodeChange);return un(()=>{f(p)},[f,p]),y.jsx(Ge.span,{...u,ref:m,style:{pointerEvents:"none"},children:lD(d.value)?y.jsx(y.Fragment,{children:l}):s})});VO.displayName=BO;var FW="SelectIcon",UO=S.forwardRef((e,t)=>{const{__scopeSelect:n,children:r,...o}=e;return y.jsx(Ge.span,{"aria-hidden":!0,...o,ref:t,children:r||"▼"})});UO.displayName=FW;var HW="SelectPortal",FO=e=>y.jsx(Ah,{asChild:!0,...e});FO.displayName=HW;var fa="SelectContent",HO=S.forwardRef((e,t)=>{const n=_o(fa,e.__scopeSelect),[r,o]=S.useState();if(un(()=>{o(new DocumentFragment)},[]),!n.open){const s=r;return s?ma.createPortal(y.jsx($O,{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})});HO.displayName=fa;var _r=10,[$O,Eo]=Xs(fa),$W="SelectContentImpl",GW=Ns("SelectContent.RemoveScroll"),GO=S.forwardRef((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:s,onPointerDownOutside:l,side:u,sideOffset:d,align:f,alignOffset:p,arrowPadding:m,collisionBoundary:v,collisionPadding:b,sticky:x,hideWhenDetached:A,avoidCollisions:T,...N}=e,E=_o(fa,n),[w,R]=S.useState(null),[C,I]=S.useState(null),D=Ct(t,fe=>R(fe)),[L,V]=S.useState(null),[H,Z]=S.useState(null),Q=Vh(n),[le,q]=S.useState(!1),oe=S.useRef(!1);S.useEffect(()=>{if(w)return bk(w)},[w]),uk();const z=S.useCallback(fe=>{const[xe,...je]=Q().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},[Q,C]),ee=S.useCallback(()=>z([L,w]),[z,L,w]);S.useEffect(()=>{le&&ee()},[le,ee]);const{onOpenChange:W,triggerPointerDownPosRef:be}=E;S.useEffect(()=>{if(w){let fe={x:0,y:0};const xe=Ve=>{fe={x:Math.abs(Math.round(Ve.pageX)-(be.current?.x??0)),y:Math.abs(Math.round(Ve.pageY)-(be.current?.y??0))}},je=Ve=>{fe.x<=10&&fe.y<=10?Ve.preventDefault():w.contains(Ve.target)||W(!1),document.removeEventListener("pointermove",xe),be.current=null};return be.current!==null&&(document.addEventListener("pointermove",xe),document.addEventListener("pointerup",je,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",xe),document.removeEventListener("pointerup",je,{capture:!0})}}},[w,W,be]),S.useEffect(()=>{const fe=()=>W(!1);return window.addEventListener("blur",fe),window.addEventListener("resize",fe),()=>{window.removeEventListener("blur",fe),window.removeEventListener("resize",fe)}},[W]);const[P,ie]=cD(fe=>{const xe=Q().filter(Xe=>!Xe.disabled),je=xe.find(Xe=>Xe.ref.current===document.activeElement),Ve=uD(xe,fe,je);Ve&&setTimeout(()=>Ve.ref.current.focus())}),G=S.useCallback((fe,xe,je)=>{const Ve=!oe.current&&!je;(E.value!==void 0&&E.value===xe||Ve)&&(V(fe),Ve&&(oe.current=!0))},[E.value]),ne=S.useCallback(()=>w?.focus(),[w]),ue=S.useCallback((fe,xe,je)=>{const Ve=!oe.current&&!je;(E.value!==void 0&&E.value===xe||Ve)&&Z(fe)},[E.value]),pe=r==="popper"?Nv:KO,ve=pe===Nv?{side:u,sideOffset:d,align:f,alignOffset:p,arrowPadding:m,collisionBoundary:v,collisionPadding:b,sticky:x,hideWhenDetached:A,avoidCollisions:T}:{};return y.jsx($O,{scope:n,content:w,viewport:C,onViewportChange:I,itemRefCallback:G,selectedItem:L,onItemLeave:ne,itemTextRefCallback:ue,focusSelectedItem:ee,selectedItemText:H,position:r,isPositioned:le,searchRef:P,children:y.jsx(kb,{as:GW,allowPinchZoom:!0,children:y.jsx(Rb,{asChild:!0,trapped:E.open,onMountAutoFocus:fe=>{fe.preventDefault()},onUnmountAutoFocus:Je(o,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,...ve,onPlaced:()=>q(!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&&ie(fe.key),["ArrowUp","ArrowDown","Home","End"].includes(fe.key)){let Ve=Q().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=$W;var KW="SelectItemAlignedPosition",KO=S.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:r,...o}=e,s=_o(fa,n),l=Eo(fa,n),[u,d]=S.useState(null),[f,p]=S.useState(null),m=Ct(t,D=>p(D)),v=Vh(n),b=S.useRef(!1),x=S.useRef(!0),{viewport:A,selectedItem:T,selectedItemText:N,focusSelectedItem:E}=l,w=S.useCallback(()=>{if(s.trigger&&s.valueNode&&u&&f&&A&&T&&N){const D=s.trigger.getBoundingClientRect(),L=f.getBoundingClientRect(),V=s.valueNode.getBoundingClientRect(),H=N.getBoundingClientRect();if(s.dir!=="rtl"){const Xe=H.left-L.left,nt=V.left-Xe,Xt=D.left-nt,Cn=D.width+Xt,Ci=Math.max(Cn,L.width),To=window.innerWidth-_r,fn=fC(nt,[_r,Math.max(_r,To-Ci)]);u.style.minWidth=Cn+"px",u.style.left=fn+"px"}else{const Xe=L.right-H.right,nt=window.innerWidth-V.right-Xe,Xt=window.innerWidth-D.right-nt,Cn=D.width+Xt,Ci=Math.max(Cn,L.width),To=window.innerWidth-_r,fn=fC(nt,[_r,Math.max(_r,To-Ci)]);u.style.minWidth=Cn+"px",u.style.right=fn+"px"}const Z=v(),Q=window.innerHeight-_r*2,le=A.scrollHeight,q=window.getComputedStyle(f),oe=parseInt(q.borderTopWidth,10),z=parseInt(q.paddingTop,10),ee=parseInt(q.borderBottomWidth,10),W=parseInt(q.paddingBottom,10),be=oe+z+le+W+ee,P=Math.min(T.offsetHeight*5,be),ie=window.getComputedStyle(A),G=parseInt(ie.paddingTop,10),ne=parseInt(ie.paddingBottom,10),ue=D.top+D.height/2-_r,pe=Q-ue,ve=T.offsetHeight/2,fe=T.offsetTop+ve,xe=oe+z+fe,je=be-xe;if(xe<=ue){const Xe=Z.length>0&&T===Z[Z.length-1].ref.current;u.style.bottom="0px";const nt=f.clientHeight-A.offsetTop-A.offsetHeight,Xt=Math.max(pe,ve+(Xe?ne:0)+nt+ee),Cn=xe+Xt;u.style.height=Cn+"px"}else{const Xe=Z.length>0&&T===Z[0].ref.current;u.style.top="0px";const Xt=Math.max(ue,oe+A.offsetTop+(Xe?G:0)+ve)+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=Q+"px",r?.(),requestAnimationFrame(()=>b.current=!0)}},[v,s.trigger,s.valueNode,u,f,A,T,N,s.dir,r]);un(()=>w(),[w]);const[R,C]=S.useState();un(()=>{f&&C(window.getComputedStyle(f).zIndex)},[f]);const I=S.useCallback(D=>{D&&x.current===!0&&(w(),E?.(),x.current=!1)},[w,E]);return y.jsx(WW,{scope:n,contentWrapper:u,shouldExpandOnScrollRef:b,onScrollButtonChange:I,children:y.jsx("div",{ref:d,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:R},children:y.jsx(Ge.div,{...o,ref:m,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}})})})});KO.displayName=KW;var qW="SelectPopperPosition",Nv=S.forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:o=_r,...s}=e,l=Uh(n);return y.jsx(OW,{...l,...s,ref:t,align:r,collisionPadding:o,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)"}})});Nv.displayName=qW;var[WW,F_]=Xs(fa,{}),Iv="SelectViewport",qO=S.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:r,...o}=e,s=Eo(Iv,n),l=F_(Iv,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(Ge.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:u,style:{position:"relative",flex:1,overflow:"hidden auto",...o.style},onScroll:Je(o.onScroll,f=>{const p=f.currentTarget,{contentWrapper:m,shouldExpandOnScrollRef:v}=l;if(v?.current&&m){const b=Math.abs(d.current-p.scrollTop);if(b>0){const x=window.innerHeight-_r*2,A=parseFloat(m.style.minHeight),T=parseFloat(m.style.height),N=Math.max(A,T);if(N<x){const E=N+b,w=Math.min(x,E),R=E-w;m.style.height=w+"px",m.style.bottom==="0px"&&(p.scrollTop=R>0?R:0,m.style.justifyContent="flex-end")}}}d.current=p.scrollTop})})})]})});qO.displayName=Iv;var WO="SelectGroup",[ZW,YW]=Xs(WO),ZO=S.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=hr();return y.jsx(ZW,{scope:n,id:o,children:y.jsx(Ge.div,{role:"group","aria-labelledby":o,...r,ref:t})})});ZO.displayName=WO;var YO="SelectLabel",XO=S.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=YW(YO,n);return y.jsx(Ge.div,{id:o.id,...r,ref:t})});XO.displayName=YO;var th="SelectItem",[XW,QO]=Xs(th),JO=S.forwardRef((e,t)=>{const{__scopeSelect:n,value:r,disabled:o=!1,textValue:s,...l}=e,u=_o(th,n),d=Eo(th,n),f=u.value===r,[p,m]=S.useState(s??""),[v,b]=S.useState(!1),x=Ct(t,E=>d.itemRefCallback?.(E,r,o)),A=hr(),T=S.useRef("touch"),N=()=>{o||(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(XW,{scope:n,value:r,disabled:o,textId:A,isSelected:f,onItemTextChange:S.useCallback(E=>{m(w=>w||(E?.textContent??"").trim())},[]),children:y.jsx(Bh.ItemSlot,{scope:n,value:r,disabled:o,textValue:p,children:y.jsx(Ge.div,{role:"option","aria-labelledby":A,"data-highlighted":v?"":void 0,"aria-selected":f&&v,"data-state":f?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1,...l,ref:x,onFocus:Je(l.onFocus,()=>b(!0)),onBlur:Je(l.onBlur,()=>b(!1)),onClick:Je(l.onClick,()=>{T.current!=="mouse"&&N()}),onPointerUp:Je(l.onPointerUp,()=>{T.current==="mouse"&&N()}),onPointerDown:Je(l.onPointerDown,E=>{T.current=E.pointerType}),onPointerMove:Je(l.onPointerMove,E=>{T.current=E.pointerType,o?d.onItemLeave?.():T.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===" "||(MW.includes(E.key)&&N(),E.key===" "&&E.preventDefault())})})})})});JO.displayName=th;var gc="SelectItemText",eD=S.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,...s}=e,l=_o(gc,n),u=Eo(gc,n),d=QO(gc,n),f=UW(gc,n),[p,m]=S.useState(null),v=Ct(t,N=>m(N),d.onItemTextChange,N=>u.itemTextRefCallback?.(N,d.value,d.disabled)),b=p?.textContent,x=S.useMemo(()=>y.jsx("option",{value:d.value,disabled:d.disabled,children:b},d.value),[d.disabled,d.value,b]),{onNativeOptionAdd:A,onNativeOptionRemove:T}=f;return un(()=>(A(x),()=>T(x)),[A,T,x]),y.jsxs(y.Fragment,{children:[y.jsx(Ge.span,{id:d.textId,...s,ref:v}),d.isSelected&&l.valueNode&&!l.valueNodeHasChildren?ma.createPortal(s.children,l.valueNode):null]})});eD.displayName=gc;var tD="SelectItemIndicator",nD=S.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return QO(tD,n).isSelected?y.jsx(Ge.span,{"aria-hidden":!0,...r,ref:t}):null});nD.displayName=tD;var Ov="SelectScrollUpButton",rD=S.forwardRef((e,t)=>{const n=Eo(Ov,e.__scopeSelect),r=F_(Ov,e.__scopeSelect),[o,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]),o?y.jsx(oD,{...e,ref:l,onAutoScroll:()=>{const{viewport:u,selectedItem:d}=n;u&&d&&(u.scrollTop=u.scrollTop-d.offsetHeight)}}):null});rD.displayName=Ov;var Dv="SelectScrollDownButton",iD=S.forwardRef((e,t)=>{const n=Eo(Dv,e.__scopeSelect),r=F_(Dv,e.__scopeSelect),[o,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]),o?y.jsx(oD,{...e,ref:l,onAutoScroll:()=>{const{viewport:u,selectedItem:d}=n;u&&d&&(u.scrollTop=u.scrollTop+d.offsetHeight)}}):null});iD.displayName=Dv;var oD=S.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...o}=e,s=Eo("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(Ge.div,{"aria-hidden":!0,...o,ref:t,style:{flexShrink:0,...o.style},onPointerDown:Je(o.onPointerDown,()=>{l.current===null&&(l.current=window.setInterval(r,50))}),onPointerMove:Je(o.onPointerMove,()=>{s.onItemLeave?.(),l.current===null&&(l.current=window.setInterval(r,50))}),onPointerLeave:Je(o.onPointerLeave,()=>{d()})})}),QW="SelectSeparator",aD=S.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return y.jsx(Ge.div,{"aria-hidden":!0,...r,ref:t})});aD.displayName=QW;var Lv="SelectArrow",JW=S.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=Uh(n),s=_o(Lv,n),l=Eo(Lv,n);return s.open&&l.position==="popper"?y.jsx(DW,{...o,...r,ref:t}):null});JW.displayName=Lv;var eZ="SelectBubbleInput",sD=S.forwardRef(({__scopeSelect:e,value:t,...n},r)=>{const o=S.useRef(null),s=Ct(r,o),l=LW(t);return S.useEffect(()=>{const u=o.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(Ge.select,{...n,style:{...jO,...n.style},ref:s,defaultValue:t})});sD.displayName=eZ;function lD(e){return e===""||e===void 0}function cD(e){const t=Ar(e),n=S.useRef(""),r=S.useRef(0),o=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,o,s]}function uD(e,t,n){const o=t.length>1&&Array.from(t).every(f=>f===t[0])?t[0]:t,s=n?e.indexOf(n):-1;let l=tZ(e,Math.max(s,0));o.length===1&&(l=l.filter(f=>f!==n));const d=l.find(f=>f.textValue.toLowerCase().startsWith(o.toLowerCase()));return d!==n?d:void 0}function tZ(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var nZ=PO,rZ=zO,iZ=VO,oZ=UO,aZ=FO,sZ=HO,lZ=qO,cZ=ZO,uZ=XO,dZ=JO,fZ=eD,hZ=nD,pZ=rD,mZ=iD,gZ=aD;const yZ=nZ,vZ=cZ,bZ=iZ,_Z=({validationStyleEnabled:e=!1,className:t,children:n,...r})=>y.jsxs(rZ,{className:ye("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(oZ,{asChild:!0,children:y.jsx(eH,{className:"size-4 opacity-50"})})]}),dD=({className:e,...t})=>y.jsx(pZ,{className:ye("flex cursor-default items-center justify-center py-1",e),...t,children:y.jsx(QF,{})}),fD=({className:e,...t})=>y.jsx(mZ,{className:ye("flex cursor-default items-center justify-center py-1",e),...t,children:y.jsx(U1,{})}),EZ=({className:e,children:t,position:n="popper",...r})=>y.jsx(aZ,{children:y.jsxs(sZ,{className:ye("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(dD,{}),y.jsx(lZ,{className:ye("p-1",n==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t}),y.jsx(fD,{})]})}),SZ=({className:e,...t})=>y.jsx(uZ,{className:ye("px-1 py-0.5 text-sm font-semibold",e),...t}),xZ=({className:e,children:t,...n})=>y.jsxs(dZ,{className:ye("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(hZ,{children:y.jsx(Us,{className:"size-4"})})}),y.jsx(fZ,{children:t})]}),AZ=({className:e,...t})=>y.jsx(gZ,{className:ye("-mx-1 my-1 h-px bg-red-300",e),...t}),Re=yZ;Re.Group=vZ;Re.Value=bZ;Re.Trigger=_Z;Re.ScrollUpButton=dD;Re.ScrollDownButton=fD;Re.Content=EZ;Re.Label=SZ;Re.Item=xZ;Re.Separator=AZ;const wZ=e=>e?.getAttribute("aria-selected")==="true",hD=(e,t=wZ,n=!1)=>{const[r,o]=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){o(E=>({left:0,width:0,...E,opacity:0}));return}const T=A.offsetLeft,N=A.offsetWidth;o({left:T,width:N,opacity:1})};d(),window.addEventListener("resize",d),window.addEventListener("DOMContentLoaded",d);const f=[];e.current.forEach(A=>{if(A){const T=new MutationObserver(N=>{for(const E of N)if(E.type==="attributes"&&E.attributeName==="aria-selected"){d();break}});T.observe(A,{attributes:!0,attributeFilter:["aria-selected"]}),f.push(T)}});const p=[],m=A=>{if(!A)return;const T=new ResizeObserver(()=>{d()});T.observe(A),p.push(T)},v=e.current.find(t)??null;v&&m(v),s&&m(s);const b=A=>{l(A.currentTarget)},x=()=>{l(null)};return n&&e.current.forEach(A=>{A?.addEventListener("mouseenter",b,{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",b),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 CZ=Tn("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 RZ=Tn("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"}}),kZ=Tn("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:o="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}=hD(f),v=b=>{d(b),r?.(b)};return S.useEffect(()=>{t!==void 0&&d(t)},[t]),y.jsx("div",{className:CZ({color:o,className:l}),role:"tablist",children:y.jsxs("div",{className:"relative flex size-full flex-row items-center justify-center",children:[e.map((b,x)=>{const{content:A,value:T,...N}=b,E=typeof T=="string"||typeof T=="number",w=T===u;return S.createElement("button",{...N,className:ye(RZ({size:s})),key:E?T:x,role:"tab",onClick:()=>v(T),"aria-selected":w,disabled:w,ref:R=>{f.current[x]=R}},A)}),m&&y.jsx("div",{className:ye(kZ({color:o})),style:m,ref:p})]})})};function pD(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 o=n?.Parent??Object;class s extends o{}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 NZ=class extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}};const IZ={};function mD(e){return IZ}function OZ(e,t){return typeof t=="bigint"?t.toString():t}const gD="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function Jd(e){return typeof e=="string"?e:e?.message}function yD(e,t,n){const r={...e,path:e.path??[]};if(!e.message){const o=Jd(e.inst?._zod.def?.error?.(e))??Jd(t?.error?.(e))??Jd(n.customError?.(e))??Jd(n.localeError?.(e))??"Invalid input";r.message=o}return delete r.inst,delete r.continue,t?.reportInput||delete r.input,r}const vD=(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,OZ,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},DZ=pD("$ZodError",vD),bD=pD("$ZodError",vD,{Parent:Error}),LZ=e=>(t,n,r,o)=>{const s=r?Object.assign(r,{async:!1}):{async:!1},l=t._zod.run({value:n,issues:[]},s);if(l instanceof Promise)throw new NZ;if(l.issues.length){const u=new(o?.Err??e)(l.issues.map(d=>yD(d,s,mD())));throw gD(u,o?.callee),u}return l.value},jZ=LZ(bD),PZ=e=>async(t,n,r,o)=>{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(o?.Err??e)(l.issues.map(d=>yD(d,s,mD())));throw gD(u,o?.callee),u}return l.value},MZ=PZ(bD);function AC(e,t){try{var n=e()}catch(r){return t(r)}return n&&n.then?n.then(void 0,t):n}function zZ(e,t){for(var n={};e.length;){var r=e[0],o=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:o};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]=k_(l,t,n,o,f?[].concat(f,r.message):r.message)}e.shift()}return n}function BZ(e,t){for(var n={};e.length;){var r=e[0],o=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:o};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]=k_(l,t,n,o,f?[].concat(f,r.message):r.message)}e.shift()}return n}function VZ(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,o,s){try{return Promise.resolve(AC(function(){return Promise.resolve(e[n.mode==="sync"?"parse":"parseAsync"](r,t)).then(function(l){return s.shouldUseNativeValidation&&wv({},s),{errors:{},values:n.raw?Object.assign({},r):l}})},function(l){if((function(u){return Array.isArray(u?.issues)})(l))return{values:{},errors:sC(zZ(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,o,s){try{return Promise.resolve(AC(function(){return Promise.resolve((n.mode==="sync"?jZ:MZ)(e,r,t)).then(function(l){return s.shouldUseNativeValidation&&wv({},s),{errors:{},values:n.raw?Object.assign({},r):l}})},function(l){if((function(u){return u instanceof DZ})(l))return{values:{},errors:sC(BZ(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,UZ=({schema:e,onSubmit:t,onSubmitSuccess:n,onSubmitError:r,className:o,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(Rq,{...u,children:y.jsx("form",{className:ye("flex size-full flex-col gap-y-6",o),onSubmit:u.handleSubmit(d),autoComplete:l?"on":"off",noValidate:!0,children:s})})},FZ=(e,t)=>{const n=qq({resolver:VZ(e),...t}),r=n.formState.isSubmitting,o=n.formState.isSubmitted,s=n.formState.isLoading,l=n.formState.isValid;return{form:n,isSubmitting:r,isSubmitted:o,isLoading:s,isValid:l}},HZ=e=>{const{error:t,formItemId:n,formDescriptionId:r,formMessageId:o}=bo();return y.jsx(w$,{id:n,"aria-describedby":t?`${r} ${o}`:`${r}`,"aria-invalid":!!t,...e})},$Z=e=>{const{formDescriptionId:t}=bo();return y.jsx("p",{className:"text-neutral text-sm",id:t,...e})},GZ=({children:e,...t})=>{const{error:n,formMessageId:r}=bo(),o=n?String(n?.message??""):e;return o?y.jsx("p",{className:"text-error text-xs font-medium",role:"alert",id:r,...t,children:o}):null},Fh=({label:e,description:t,isRequired:n,info:r,children:o,showErrorMessage:s=!0,htmlFor:l})=>y.jsxs($e.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(dO,{isRequired:n,info:r,htmlFor:l,children:e}),t&&y.jsx($e.Description,{children:t})]}),y.jsx($e.Control,{children:o}),s&&y.jsx($e.Message,{"data-testid":"error-message"})]}),KZ=({field:e,name:t,label:n,Element:r,isRequired:o=!1,info:s,description:l,showErrorMessage:u=!0,...d})=>{const{error:f}=bo();return y.jsx(Fh,{htmlFor:t,label:n,description:l,isRequired:o,info:s,showErrorMessage:u,"aria-invalid":!!f,children:y.jsx(r,{"data-testid":"element",id:t,...e,...d,children:d.children})})},So=e=>{const{control:t}=vo();return y.jsx($e.Field,{control:t,name:e.name,render:({field:n})=>y.jsx(KZ,{...e,field:n})})},qZ=e=>y.jsx(So,{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}),WZ=({autoComplete:e,...t})=>y.jsx(So,{Element:Jq,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}),ZZ=e=>y.jsx(So,{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}),YZ=e=>y.jsx(So,{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(So,{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:cO,...e}),QZ=e=>y.jsx(So,{Element:O_,id:e.name,"data-testid":e.name,...e}),JZ=({inputLabel:e,...t})=>y.jsx(Qq,{...t,label:e}),e7=({autoComplete:e,...t})=>y.jsx(So,{Element:JZ,id:t.name,"data-testid":t.name,autoComplete:e,minLength:6,maxLength:255,...t}),t7=({name:e,description:t,label:n,isRequired:r,info:o,showErrorMessage:s,children:l,...u})=>{const{control:d}=vo();return y.jsx($e.Field,{control:d,name:e,render:({field:f})=>{const{error:p}=bo();return y.jsx(Fh,{htmlFor:e,label:n,description:t,isRequired:r,info:o,showErrorMessage:s,"aria-invalid":!!p,children:y.jsx(yn,{onValueChange:f.onChange,values:f.value,...u,children:l})})}})},n7=({name:e,description:t,label:n,isRequired:r,info:o,showErrorMessage:s,children:l,...u})=>{const{control:d}=vo();return y.jsx($e.Field,{control:d,name:e,render:({field:f})=>{const{error:p}=bo();return y.jsx(Fh,{htmlFor:e,label:n,description:t,isRequired:r,info:o,showErrorMessage:s,"aria-invalid":!!p,children:y.jsx(Re,{onValueChange:f.onChange,defaultValue:f.value,...u,children:l})})}})},r7=({name:e,description:t,label:n,isRequired:r,info:o,showErrorMessage:s,children:l,...u})=>{const{control:d}=vo();return y.jsx($e.Field,{control:d,name:e,render:({field:f})=>{const{error:p}=bo();return y.jsx(Fh,{htmlFor:e,label:n,description:t,isRequired:r,info:o,showErrorMessage:s,"aria-invalid":!!p,children:y.jsx(_u,{...f,...u,children:l})})}})},$e=UZ;$e.Description=$Z;$e.Control=HZ;$e.Field=Yq;$e.Item=Zq;$e.Label=dO;$e.Message=GZ;$e.Element=So;$e.Input=qZ;$e.InputPassword=WZ;$e.Checkbox=e7;$e.TextArea=ZZ;$e.AutoSizedTextArea=QZ;$e.Button=lt;$e.Select=n7;$e.MultiSelect=t7;$e.EditableFieldInput=YZ;$e.EditableFieldTextArea=XZ;$e.SwitchSelector=r7;const _D=({dictionary:e,mode:t,className:n,onDelete:r,...o})=>{const[s,l]=S.useState(!1),{setLocaleDictionary:u}=yh(),{mutate:d,isPending:f}=_q(),{mutate:p,isPending:m}=wq(),{mutate:v,isPending:b}=bq(),x=m||b,{editedContent:A,restoreEditedContent:T}=wn(),{deleteButton:N,resetButton:E,saveButton:w,publishButton:R,downloadButton:C,confirmation:I}=dn("save-dictionary-details"),{isAuthenticated:D}=mu(),L=A?.[e.localId],V=L&&JSON.stringify(L)!==JSON.stringify(e),H=typeof e?.id<"u",Z=async()=>{if(!A?.[e.localId])return;const q={...e,...A?.[e.localId]};p({dictionary:q},{onSuccess:()=>{u(A?.[e.localId]),T(e.localId)}})},Q=()=>{if(!A?.[e.localId])return;const q={...e,...A?.[e.localId]};v([q],{onSuccess:oe=>{oe&&(u(A?.[e.localId]),T(e.localId))}})},le=()=>{e.id&&d(e.id.toString(),{onSuccess:q=>{q&&r?.()}})};return y.jsxs(y.Fragment,{children:[y.jsx(__,{isOpen:s,title:I.title.value,size:b_.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($e.Button,{label:I.cancelButton.label.value,disabled:!V||x,color:at.TEXT,className:"max-md:w-full",variant:st.OUTLINE,onClick:()=>l(!1),children:I.cancelButton.text}),y.jsx($e.Button,{label:I.confirmButton.label.value,disabled:!V||x,Icon:jA,color:at.TEXT,className:"max-md:w-full",isLoading:b,onClick:Z,children:I.confirmButton.text})]})]})}),y.jsxs("form",{className:ye("flex justify-end gap-2 max-md:flex-col",n),...o,children:[t.includes("remote")&&H&&r&&D&&y.jsx($e.Button,{label:N.label.value,Icon:Eh,color:at.ERROR,variant:st.OUTLINE,className:"max-md:w-full",isLoading:f,onClick:le,children:N.text}),V&&y.jsx($e.Button,{label:E.label.value,disabled:!V,Icon:SH,variant:st.OUTLINE,color:at.TEXT,className:"max-md:w-full",onClick:()=>T(e.localId),children:E.text}),t.includes("local")&&y.jsx($e.Button,{label:C.label.value,disabled:!V||x,Icon:aH,color:at.TEXT,variant:D?st.OUTLINE:st.DEFAULT,className:"max-md:w-full",isLoading:m,onClick:()=>l(!0),children:C.text}),t.includes("remote")&&D&&!H&&y.jsx($e.Button,{label:R.label.value,disabled:x,Icon:GF,color:at.TEXT,className:"max-md:w-full",isLoading:b,onClick:Q,children:R.text}),t.includes("remote")&&D&&H&&V&&y.jsx($e.Button,{label:w.label.value,disabled:!V||x,Icon:jA,color:"text",className:"max-md:w-full",isLoading:b,onClick:Q,children:w.text})]})]})},ED=({level:e,title:t,description:n,children:r,rightParam:o,isSelected:s,...l})=>y.jsx("div",{className:ye("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(nk,{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:ye(e===0&&"text-2xl",e===1&&"text-xl",e===2&&"text-lg",e>=3&&"text-base"),children:t}),o&&y.jsx("div",{className:"flex w-auto items-center justify-between p-3",children:o})]}),n&&y.jsx("p",{className:"text-card pl-3 text-sm",children:n})]}),children:r})}),SD=({keyPath:e,section:t,editedContent:n,editedContentValue:r,onContentChange:o,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:ye("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(cO,{"aria-label":"Editable field",defaultValue:f,onSave:p=>o({keyPath:e,newValue:p}),onCancel:()=>null})})},i7=e=>{const{keyPath:t,section:n}=e,{addEditedContent:r}=wn(),o=dr(e.editedContent,t),s=n[$.File],{content:l}=n,u=[...t,{type:$.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(SD,{...e,keyPath:u,section:l,editedContentValue:o?.content,onContentChange:d=>{r(e.dictionary.key,{...n,content:d.newValue},t)}})]})},o7=e=>{const{keyPath:t,section:n,onFocusKeyPath:r,focusedKeyPath:o=[]}=e;return n.map((s,l)=>{const u={key:l,type:$.Array},d=[...t,u];return y.jsx(ED,{level:t.length,title:`${l}`,description:"",isSelected:Jc(d,o),onClick:f=>{f.stopPropagation(),r(d)},children:y.jsx(xo,{...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=>!H_.includes(r)).map(r=>{const o={type:$.Condition,key:r},s=[...t,o],l=n[$.Condition][r];return y.jsxs(y.Fragment,{children:[y.jsx("span",{className:"flex items-center font-bold",children:r}),S.createElement(xo,{...e,key:r,keyPath:s,section:l})]})})})},s7=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=>!H_.includes(r)).map(r=>{const o={type:$.Enumeration,key:r},s=[...t,o],l=n[$.Enumeration][r];return y.jsxs(y.Fragment,{children:[y.jsx("span",{className:"flex items-center font-bold",children:r}),S.createElement(xo,{...e,key:r,keyPath:s,section:l})]})})})},l7=e=>{const{keyPath:t,section:n}=e,r=[...t,{type:$.Insertion}],o=n[$.Insertion];return y.jsx("div",{className:"ml-2 grid grid-cols-[auto,1fr] gap-2",children:y.jsx(xo,{...e,keyPath:r,section:o})})},c7=e=>{const{keyPath:t,section:n}=e,r=[...t,{type:$.Markdown}],o=n[$.Markdown];return y.jsx("div",{className:"ml-2 grid grid-cols-[auto,1fr] gap-2",children:y.jsx(xo,{...e,keyPath:r,section:o})})},u7=e=>{const{keyPath:t,section:n,focusedKeyPath:r=[],onFocusKeyPath:o}=e;return Object.keys(n).filter(s=>!H_.includes(s)).map(s=>{const l={key:s,type:$.Object},u=[...t,l];return y.jsx(ED,{level:t.length,title:s,description:"",isSelected:Jc(u,r),onClick:d=>{d.stopPropagation(),o(u)},children:y.jsx(xo,{...e,keyPath:u,section:n[s]})},s)})},d7=e=>{const{keyPath:t,section:n,locale:r}=e,o={type:$.Translation,key:r},s=[...t,o],l=n.translation[r];return y.jsx(xo,{...e,keyPath:s,section:l})},H_=["filePath","id","nodeType"],xo=e=>{const n=dr(e.editedContent,e.keyPath)??e.section,r=Ms(n);if(typeof n=="object")return r===$.ReactNode?y.jsx("span",{className:"text-neutral text-xs",children:"React node not editable"}):r===$.Nested?y.jsx("div",{className:"ml-2 grid grid-cols-[auto,1fr] gap-2",children:"[Nested] Dictionary"}):r===$.Markdown?y.jsx(c7,{...e,section:n}):r===$.Translation?y.jsx(d7,{...e,section:n}):r===$.Enumeration?y.jsx(s7,{...e,section:n}):r===$.Condition?y.jsx(a7,{...e,section:n}):r===$.Insertion?y.jsx(l7,{...e,section:n}):r===$.Array?y.jsx(o7,{...e,section:n}):r===$.File?y.jsx(i7,{...e,section:n}):y.jsx(u7,{...e,section:n});if(typeof n=="string")return y.jsx(SD,{...e,section:n})},f7=({dictionary:e,mode:t,onDelete:n,...r})=>{const{editedContent:o,addEditedContent:s}=wn(),{focusedContent:l,setFocusedContentKeyPath:u,setFocusedContent:d}=mo(),f=l?.keyPath;return y.jsxs("div",{className:"flex flex-1 flex-col justify-between gap-2",children:[y.jsx("div",{children:S.createElement(xo,{...r,keyPath:[],dictionary:e,key:JSON.stringify((o?.[e.localId]??e).content),editedContent:o?.[e.localId]?.content,focusedKeyPath:f,section:e.content,onContentChange:p=>{s(e.localId,p.newValue,p.keyPath)},onFocusKeyPath:u})}),y.jsx(_D,{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 o=n?.Parent??Object;class s extends o{}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 $c extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}const xD={};function ha(e){return xD}function h7(e){const t=Object.values(e).filter(r=>typeof r=="number");return Object.entries(e).filter(([r,o])=>t.indexOf(+r)===-1).map(([r,o])=>o)}function p7(e,t){return typeof t=="bigint"?t.toString():t}function AD(e){return{get value(){{const t=e();return Object.defineProperty(this,"value",{value:t}),t}}}}function $_(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 K_(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function dc(e){return JSON.stringify(e)}const wD=Error.captureStackTrace?Error.captureStackTrace:(...e)=>{};function jv(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}const m7=AD(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{const e=Function;return new e(""),!0}catch{return!1}});function Pv(e){if(jv(e)===!1)return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(jv(n)===!1||Object.prototype.hasOwnProperty.call(n,"isPrototypeOf")===!1)}const g7=new Set(["string","number","symbol"]);function Hh(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function va(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 y7(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}function v7(e,t){const n={},r=e._zod.def;for(const o in t){if(!(o in r.shape))throw new Error(`Unrecognized key: "${o}"`);t[o]&&(n[o]=r.shape[o])}return va(e,{...e._zod.def,shape:n,checks:[]})}function b7(e,t){const n={...e._zod.def.shape},r=e._zod.def;for(const o in t){if(!(o in r.shape))throw new Error(`Unrecognized key: "${o}"`);t[o]&&delete n[o]}return va(e,{...e._zod.def,shape:n,checks:[]})}function _7(e,t){if(!Pv(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 K_(this,"shape",r),r},checks:[]};return va(e,n)}function E7(e,t){return va(e,{...e._zod.def,get shape(){const n={...e._zod.def.shape,...t._zod.def.shape};return K_(this,"shape",n),n},catchall:t._zod.def.catchall,checks:[]})}function S7(e,t,n){const r=t._zod.def.shape,o={...r};if(n)for(const s in n){if(!(s in r))throw new Error(`Unrecognized key: "${s}"`);n[s]&&(o[s]=e?new e({type:"optional",innerType:r[s]}):r[s])}else for(const s in r)o[s]=e?new e({type:"optional",innerType:r[s]}):r[s];return va(t,{...t._zod.def,shape:o,checks:[]})}function x7(e,t,n){const r=t._zod.def.shape,o={...r};if(n)for(const s in n){if(!(s in o))throw new Error(`Unrecognized key: "${s}"`);n[s]&&(o[s]=new e({type:"nonoptional",innerType:r[s]}))}else for(const s in r)o[s]=new e({type:"nonoptional",innerType:r[s]});return va(t,{...t._zod.def,shape:o,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 q_(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 pa(e,t,n){const r={...e,path:e.path??[]};if(!e.message){const o=ef(e.inst?._zod.def?.error?.(e))??ef(t?.error?.(e))??ef(n.customError?.(e))??ef(n.localeError?.(e))??"Invalid input";r.message=o}return delete r.inst,delete r.continue,t?.reportInput||delete r.input,r}function W_(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function Gc(...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,p7,2)},enumerable:!0}),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},CD=he("$ZodError",TD),RD=he("$ZodError",TD,{Parent:Error});function A7(e,t=n=>n.message){const n={},r=[];for(const o of e.issues)o.path.length>0?(n[o.path[0]]=n[o.path[0]]||[],n[o.path[0]].push(t(o))):r.push(t(o));return{formErrors:r,fieldErrors:n}}function w7(e,t){const n=t||function(s){return s.message},r={_errors:[]},o=s=>{for(const l of s.issues)if(l.code==="invalid_union"&&l.errors.length)l.errors.map(u=>o({issues:u}));else if(l.code==="invalid_key")o({issues:l.issues});else if(l.code==="invalid_element")o({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 o(e),r}const T7=e=>(t,n,r,o)=>{const s=r?Object.assign(r,{async:!1}):{async:!1},l=t._zod.run({value:n,issues:[]},s);if(l instanceof Promise)throw new $c;if(l.issues.length){const u=new(o?.Err??e)(l.issues.map(d=>pa(d,s,ha())));throw wD(u,o?.callee),u}return l.value},C7=e=>async(t,n,r,o)=>{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(o?.Err??e)(l.issues.map(d=>pa(d,s,ha())));throw wD(u,o?.callee),u}return l.value},kD=e=>(t,n,r)=>{const o=r?{...r,async:!1}:{async:!1},s=t._zod.run({value:n,issues:[]},o);if(s instanceof Promise)throw new $c;return s.issues.length?{success:!1,error:new(e??CD)(s.issues.map(l=>pa(l,o,ha())))}:{success:!0,data:s.value}},R7=kD(RD),ND=e=>async(t,n,r)=>{const o=r?Object.assign(r,{async:!0}):{async:!0};let s=t._zod.run({value:n,issues:[]},o);return s instanceof Promise&&(s=await s),s.issues.length?{success:!1,error:new e(s.issues.map(l=>pa(l,o,ha())))}:{success:!0,data:s.value}},k7=ND(RD),N7=/^[cC][^\s-]{8,}$/,I7=/^[0-9a-z]+$/,O7=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,D7=/^[0-9a-vA-V]{20}$/,L7=/^[A-Za-z0-9]{27}$/,j7=/^[a-zA-Z0-9_-]{21}$/,P7=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,M7=/^([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})$/,wC=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)$/,z7=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,B7="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function V7(){return new RegExp(B7,"u")}const U7=/^(?:(?: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])$/,F7=/^(([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})$/,H7=/^((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])$/,$7=/^(([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}=))?$/,ID=/^[A-Za-z0-9_-]*$/,K7=/^([a-zA-Z0-9-]+\.)*[a-zA-Z0-9-]+$/,q7=/^\+(?:[0-9]){6,14}[0-9]$/,OD="(?:(?:\\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])))",W7=new RegExp(`^${OD}$`);function DD(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 Z7(e){return new RegExp(`^${DD(e)}$`)}function Y7(e){const t=DD({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(`^${OD}T(?:${r})$`)}const X7=e=>{const t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},Q7=/^[^A-Z]*$/,J7=/^[^a-z]*$/,Qr=he("$ZodCheck",(e,t)=>{var n;e._zod??(e._zod={}),e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),eY=he("$ZodCheckMaxLength",(e,t)=>{var n;Qr.init(e,t),(n=e._zod.def).when??(n.when=r=>{const o=r.value;return!$_(o)&&o.length!==void 0}),e._zod.onattach.push(r=>{const o=r._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<o&&(r._zod.bag.maximum=t.maximum)}),e._zod.check=r=>{const o=r.value;if(o.length<=t.maximum)return;const l=W_(o);r.issues.push({origin:l,code:"too_big",maximum:t.maximum,inclusive:!0,input:o,inst:e,continue:!t.abort})}}),tY=he("$ZodCheckMinLength",(e,t)=>{var n;Qr.init(e,t),(n=e._zod.def).when??(n.when=r=>{const o=r.value;return!$_(o)&&o.length!==void 0}),e._zod.onattach.push(r=>{const o=r._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>o&&(r._zod.bag.minimum=t.minimum)}),e._zod.check=r=>{const o=r.value;if(o.length>=t.minimum)return;const l=W_(o);r.issues.push({origin:l,code:"too_small",minimum:t.minimum,inclusive:!0,input:o,inst:e,continue:!t.abort})}}),nY=he("$ZodCheckLengthEquals",(e,t)=>{var n;Qr.init(e,t),(n=e._zod.def).when??(n.when=r=>{const o=r.value;return!$_(o)&&o.length!==void 0}),e._zod.onattach.push(r=>{const o=r._zod.bag;o.minimum=t.length,o.maximum=t.length,o.length=t.length}),e._zod.check=r=>{const o=r.value,s=o.length;if(s===t.length)return;const l=W_(o),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})}}),$h=he("$ZodCheckStringFormat",(e,t)=>{var n,r;Qr.init(e,t),e._zod.onattach.push(o=>{const s=o._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=o=>{t.pattern.lastIndex=0,!t.pattern.test(o.value)&&o.issues.push({origin:"string",code:"invalid_format",format:t.format,input:o.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(r=e._zod).check??(r.check=()=>{})}),rY=he("$ZodCheckRegex",(e,t)=>{$h.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})}}),iY=he("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=Q7),$h.init(e,t)}),oY=he("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=J7),$h.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(o=>{const s=o._zod.bag;s.patterns??(s.patterns=new Set),s.patterns.add(r)}),e._zod.check=o=>{o.value.includes(t.includes,t.position)||o.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:o.value,inst:e,continue:!t.abort})}}),sY=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 o=r._zod.bag;o.patterns??(o.patterns=new Set),o.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})}}),lY=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 o=r._zod.bag;o.patterns??(o.patterns=new Set),o.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})}}),cY=he("$ZodCheckOverwrite",(e,t)=>{Qr.init(e,t),e._zod.check=n=>{n.value=t.tx(n.value)}});class uY{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),o=Math.min(...r.map(l=>l.length-l.trimStart().length)),s=r.map(l=>l.slice(o)).map(l=>" ".repeat(this.indent*2)+l);for(const l of s)this.content.push(l)}compile(){const t=Function,n=this?.args,o=[...(this?.content??[""]).map(s=>` ${s}`)];return new t(...n,o.join(`
269
+ `))}}const dY={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=dY;const r=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&r.unshift(e);for(const o of r)for(const s of o._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 o=(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 $c;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 $c;return u.then(d=>o(d,r,l))}return o(u,r,l)}}e["~standard"]={validate:o=>{try{const s=R7(e,o);return s.success?{value:s.data}:{issues:s.error?.issues}}catch{return k7(e,o).then(l=>l.success?{value:l.data}:{issues:l.error?.issues})}},vendor:"zod",version:1}}),Z_=he("$ZodString",(e,t)=>{Ht.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??X7(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)=>{$h.init(e,t),Z_.init(e,t)}),fY=he("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=M7),xt.init(e,t)}),hY=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=wC(r))}else t.pattern??(t.pattern=wC());xt.init(e,t)}),pY=he("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=z7),xt.init(e,t)}),mY=he("$ZodURL",(e,t)=>{xt.init(e,t),e._zod.check=n=>{try{const r=n.value,o=new URL(r),s=o.href;t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(o.hostname)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:K7.source,input:n.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(o.protocol.endsWith(":")?o.protocol.slice(0,-1):o.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})}}}),gY=he("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=V7()),xt.init(e,t)}),yY=he("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=j7),xt.init(e,t)}),vY=he("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=N7),xt.init(e,t)}),bY=he("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=I7),xt.init(e,t)}),_Y=he("$ZodULID",(e,t)=>{t.pattern??(t.pattern=O7),xt.init(e,t)}),EY=he("$ZodXID",(e,t)=>{t.pattern??(t.pattern=D7),xt.init(e,t)}),SY=he("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=L7),xt.init(e,t)}),xY=he("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=Y7(t)),xt.init(e,t)}),AY=he("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=W7),xt.init(e,t)}),wY=he("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=Z7(t)),xt.init(e,t)}),TY=he("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=P7),xt.init(e,t)}),CY=he("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=U7),xt.init(e,t),e._zod.onattach.push(n=>{const r=n._zod.bag;r.format="ipv4"})}),RY=he("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=F7),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})}}}),kY=he("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=H7),xt.init(e,t)}),NY=he("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=$7),xt.init(e,t),e._zod.check=n=>{const[r,o]=n.value.split("/");try{if(!o)throw new Error;const s=Number(o);if(`${s}`!==o)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 LD(e){if(e==="")return!0;if(e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}const IY=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=>{LD(n.value)||n.issues.push({code:"invalid_format",format:"base64",input:n.value,inst:e,continue:!t.abort})}});function OY(e){if(!ID.test(e))return!1;const t=e.replace(/[-_]/g,r=>r==="-"?"+":"/"),n=t.padEnd(Math.ceil(t.length/4)*4,"=");return LD(n)}const DY=he("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=ID),xt.init(e,t),e._zod.onattach.push(n=>{n._zod.bag.contentEncoding="base64url"}),e._zod.check=n=>{OY(n.value)||n.issues.push({code:"invalid_format",format:"base64url",input:n.value,inst:e,continue:!t.abort})}}),LY=he("$ZodE164",(e,t)=>{t.pattern??(t.pattern=q7),xt.init(e,t)});function jY(e,t=null){try{const n=e.split(".");if(n.length!==3)return!1;const[r]=n;if(!r)return!1;const o=JSON.parse(atob(r));return!("typ"in o&&o?.typ!=="JWT"||!o.alg||t&&(!("alg"in o)||o.alg!==t))}catch{return!1}}const PY=he("$ZodJWT",(e,t)=>{xt.init(e,t),e._zod.check=n=>{jY(n.value,t.alg)||n.issues.push({code:"invalid_format",format:"jwt",input:n.value,inst:e,continue:!t.abort})}}),MY=he("$ZodUnknown",(e,t)=>{Ht.init(e,t),e._zod.parse=n=>n}),zY=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(...q_(n,e.issues)),t.value[n]=e.value}const BY=he("$ZodArray",(e,t)=>{Ht.init(e,t),e._zod.parse=(n,r)=>{const o=n.value;if(!Array.isArray(o))return n.issues.push({expected:"array",code:"invalid_type",input:o,inst:e}),n;n.value=Array(o.length);const s=[];for(let l=0;l<o.length;l++){const u=o[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(...q_(n,e.issues)),t.value[n]=e.value}function CC(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(...q_(n,e.issues)):e.value===void 0?n in r&&(t.value[n]=void 0):t.value[n]=e.value}const VY=he("$ZodObject",(e,t)=>{Ht.init(e,t);const n=AD(()=>{const m=Object.keys(t.shape);for(const b of m)if(!(t.shape[b]instanceof Ht))throw new Error(`Invalid element at key "${b}": expected a Zod schema`);const v=y7(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 b in m){const x=m[b]._zod;if(x.values){v[b]??(v[b]=new Set);for(const A of x.values)v[b].add(A)}}return v});const r=m=>{const v=new uY(["shape","payload","ctx"]),b=n.value,x=E=>{const w=dc(E);return`shape[${w}]._zod.run({ value: input[${w}], issues: [] }, ctx)`};v.write("const input = payload.value;");const A=Object.create(null);let T=0;for(const E of b.keys)A[E]=`key_${T++}`;v.write("const newResult = {}");for(const E of b.keys)if(b.optionalKeys.has(E)){const w=A[E];v.write(`const ${w} = ${x(E)};`);const R=dc(E);v.write(`
270
+ if (${w}.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
+ ${w}.issues.map((iss) => ({
278
+ ...iss,
279
+ path: iss.path ? [${R}, ...iss.path] : [${R}],
280
+ }))
281
+ );
282
+ }
283
+ } else if (${w}.value === undefined) {
284
+ if (${R} in input) newResult[${R}] = undefined;
285
+ } else {
286
+ newResult[${R}] = ${w}.value;
287
+ }
288
+ `)}else{const w=A[E];v.write(`const ${w} = ${x(E)};`),v.write(`
289
+ if (${w}.issues.length) payload.issues = payload.issues.concat(${w}.issues.map(iss => ({
290
+ ...iss,
291
+ path: iss.path ? [${dc(E)}, ...iss.path] : [${dc(E)}]
292
+ })));`),v.write(`newResult[${dc(E)}] = ${w}.value`)}v.write("payload.value = newResult;"),v.write("return payload;");const N=v.compile();return(E,w)=>N(m,E,w)};let o;const s=jv,l=!xD.jitless,d=l&&m7.value,f=t.catchall;let p;e._zod.parse=(m,v)=>{p??(p=n.value);const b=m.value;if(!s(b))return m.issues.push({expected:"object",code:"invalid_type",input:b,inst:e}),m;const x=[];if(l&&d&&v?.async===!1&&v.jitless!==!0)o||(o=r(t.shape)),m=o(m,v);else{m.value={};const w=p.shape;for(const R of p.keys){const C=w[R],I=C._zod.run({value:b[R],issues:[]},v),D=C._zod.optin==="optional"&&C._zod.optout==="optional";I instanceof Promise?x.push(I.then(L=>D?CC(L,m,R,b):tf(L,m,R))):D?CC(I,m,R,b):tf(I,m,R)}}if(!f)return x.length?Promise.all(x).then(()=>m):m;const A=[],T=p.keySet,N=f._zod,E=N.def.type;for(const w of Object.keys(b)){if(T.has(w))continue;if(E==="never"){A.push(w);continue}const R=N.run({value:b[w],issues:[]},v);R instanceof Promise?x.push(R.then(C=>tf(C,m,w))):tf(R,m,w)}return A.length&&m.issues.push({code:"unrecognized_keys",keys:A,input:b,inst:e}),x.length?Promise.all(x).then(()=>m):m}});function RC(e,t,n,r){for(const o of e)if(o.issues.length===0)return t.value=o.value,t;return t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:e.map(o=>o.issues.map(s=>pa(s,r,ha())))}),t}const UY=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 o=!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),o=!0;else{if(u.issues.length===0)return u;s.push(u)}}return o?Promise.all(s).then(l=>RC(l,n,e,r)):RC(s,n,e,r)}}),FY=he("$ZodIntersection",(e,t)=>{Ht.init(e,t),e._zod.parse=(n,r)=>{const o=n.value,s=t.left._zod.run({value:o,issues:[]},r),l=t.right._zod.run({value:o,issues:[]},r);return s instanceof Promise||l instanceof Promise?Promise.all([s,l]).then(([d,f])=>kC(n,d,f)):kC(n,s,l)}});function Mv(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(Pv(e)&&Pv(t)){const n=Object.keys(t),r=Object.keys(e).filter(s=>n.indexOf(s)!==-1),o={...e,...t};for(const s of r){const l=Mv(e[s],t[s]);if(!l.valid)return{valid:!1,mergeErrorPath:[s,...l.mergeErrorPath]};o[s]=l.data}return{valid:!0,data:o}}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 o=e[r],s=t[r],l=Mv(o,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 kC(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=Mv(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 HY=he("$ZodEnum",(e,t)=>{Ht.init(e,t);const n=h7(t.entries);e._zod.values=new Set(n),e._zod.pattern=new RegExp(`^(${n.filter(r=>g7.has(typeof r)).map(r=>typeof r=="string"?Hh(r):r.toString()).join("|")})$`),e._zod.parse=(r,o)=>{const s=r.value;return e._zod.values.has(s)||r.issues.push({code:"invalid_value",values:n,input:s,inst:e}),r}}),$Y=he("$ZodTransform",(e,t)=>{Ht.init(e,t),e._zod.parse=(n,r)=>{const o=t.transform(n.value,n);if(r.async)return(o instanceof Promise?o:Promise.resolve(o)).then(l=>(n.value=l,n));if(o instanceof Promise)throw new $c;return n.value=o,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)}),KY=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)}),qY=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 o=t.innerType._zod.run(n,r);return o instanceof Promise?o.then(s=>NC(s,t)):NC(o,t)}});function NC(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}const WY=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))}),ZY=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 o=t.innerType._zod.run(n,r);return o instanceof Promise?o.then(s=>IC(s,e)):IC(o,e)}});function IC(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 YY=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 o=t.innerType._zod.run(n,r);return o instanceof Promise?o.then(s=>(n.value=s.value,s.issues.length&&(n.value=t.catchValue({...n,error:{issues:s.issues.map(l=>pa(l,r,ha()))},input:n.value}),n.issues=[]),n)):(n.value=o.value,o.issues.length&&(n.value=t.catchValue({...n,error:{issues:o.issues.map(s=>pa(s,r,ha()))},input:n.value}),n.issues=[]),n)}}),XY=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 o=t.in._zod.run(n,r);return o instanceof Promise?o.then(s=>OC(s,t,r)):OC(o,t,r)}});function OC(e,t,n){return Cc(e)?e:t.out._zod.run({value:e.value,issues:e.issues},n)}const QY=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 o=t.innerType._zod.run(n,r);return o instanceof Promise?o.then(DC):DC(o)}});function DC(e){return e.value=Object.freeze(e.value),e}const JY=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,o=t.fn(r);if(o instanceof Promise)return o.then(s=>LC(s,n,r,e));LC(o,n,r,e)}});function LC(e,t,n,r){if(!e){const o={code:"custom",input:n,inst:r,path:[...r._zod.def.path??[]],continue:!r._zod.def.abort};r._zod.def.params&&(o.params=r._zod.def.params),t.issues.push(Gc(o))}}class eX{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 tX(){return new eX}const nf=tX();function nX(e,t){return new e({type:"string",...Be(t)})}function rX(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...Be(t)})}function jC(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...Be(t)})}function iX(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...Be(t)})}function oX(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 sX(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...Be(t)})}function lX(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...Be(t)})}function cX(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...Be(t)})}function uX(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...Be(t)})}function dX(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...Be(t)})}function fX(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...Be(t)})}function hX(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...Be(t)})}function pX(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...Be(t)})}function mX(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...Be(t)})}function gX(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...Be(t)})}function yX(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...Be(t)})}function vX(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...Be(t)})}function bX(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...Be(t)})}function _X(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...Be(t)})}function EX(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...Be(t)})}function SX(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...Be(t)})}function xX(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...Be(t)})}function AX(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...Be(t)})}function wX(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 CX(e,t){return new e({type:"string",format:"duration",check:"string_format",...Be(t)})}function RX(e){return new e({type:"unknown"})}function kX(e,t){return new e({type:"never",...Be(t)})}function jD(e,t){return new eY({check:"max_length",...Be(t),maximum:e})}function nh(e,t){return new tY({check:"min_length",...Be(t),minimum:e})}function PD(e,t){return new nY({check:"length_equals",...Be(t),length:e})}function NX(e,t){return new rY({check:"string_format",format:"regex",...Be(t),pattern:e})}function IX(e){return new iY({check:"string_format",format:"lowercase",...Be(e)})}function OX(e){return new oY({check:"string_format",format:"uppercase",...Be(e)})}function DX(e,t){return new aY({check:"string_format",format:"includes",...Be(t),includes:e})}function LX(e,t){return new sY({check:"string_format",format:"starts_with",...Be(t),prefix:e})}function jX(e,t){return new lY({check:"string_format",format:"ends_with",...Be(t),suffix:e})}function Eu(e){return new cY({check:"overwrite",tx:e})}function PX(e){return Eu(t=>t.normalize(e))}function MX(){return Eu(e=>e.trim())}function zX(){return Eu(e=>e.toLowerCase())}function BX(){return Eu(e=>e.toUpperCase())}function VX(e,t,n){return new e({type:"array",element:t,...Be(n)})}function UX(e,t,n){return new e({type:"custom",check:"custom",fn:t,...Be(n)})}const FX=he("ZodISODateTime",(e,t)=>{xY.init(e,t),Rt.init(e,t)});function HX(e){return AX(FX,e)}const $X=he("ZodISODate",(e,t)=>{AY.init(e,t),Rt.init(e,t)});function GX(e){return wX($X,e)}const KX=he("ZodISOTime",(e,t)=>{wY.init(e,t),Rt.init(e,t)});function qX(e){return TX(KX,e)}const WX=he("ZodISODuration",(e,t)=>{TY.init(e,t),Rt.init(e,t)});function ZX(e){return CX(WX,e)}const YX=(e,t)=>{CD.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:n=>w7(e,n)},flatten:{value:n=>A7(e,n)},addIssue:{value:n=>e.issues.push(n)},addIssues:{value:n=>e.issues.push(...n)},isEmpty:{get(){return e.issues.length===0}}})},Gh=he("ZodError",YX,{Parent:Error}),XX=T7(Gh),QX=C7(Gh),JX=kD(Gh),eQ=ND(Gh),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)=>va(e,n,r),e.brand=()=>e,e.register=((n,r)=>(n.add(e,r),e)),e.parse=(n,r)=>XX(e,n,r,{callee:e.parse}),e.safeParse=(n,r)=>JX(e,n,r),e.parseAsync=async(n,r)=>QX(e,n,r,{callee:e.parseAsync}),e.safeParseAsync=async(n,r)=>eQ(e,n,r),e.spa=e.safeParseAsync,e.refine=(n,r)=>e.check(GQ(n,r)),e.superRefine=n=>e.check(KQ(n)),e.overwrite=n=>e.check(Eu(n)),e.optional=()=>zC(e),e.nullable=()=>BC(e),e.nullish=()=>zC(BC(e)),e.nonoptional=n=>MQ(e,n),e.array=()=>zv(e),e.or=n=>TQ([e,n]),e.and=n=>RQ(e,n),e.transform=n=>VC(e,IQ(n)),e.default=n=>LQ(e,n),e.prefault=n=>PQ(e,n),e.catch=n=>BQ(e,n),e.pipe=n=>VC(e,n),e.readonly=()=>FQ(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)),MD=he("_ZodString",(e,t)=>{Z_.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(NX(...r)),e.includes=(...r)=>e.check(DX(...r)),e.startsWith=(...r)=>e.check(LX(...r)),e.endsWith=(...r)=>e.check(jX(...r)),e.min=(...r)=>e.check(nh(...r)),e.max=(...r)=>e.check(jD(...r)),e.length=(...r)=>e.check(PD(...r)),e.nonempty=(...r)=>e.check(nh(1,...r)),e.lowercase=r=>e.check(IX(r)),e.uppercase=r=>e.check(OX(r)),e.trim=()=>e.check(MX()),e.normalize=(...r)=>e.check(PX(...r)),e.toLowerCase=()=>e.check(zX()),e.toUpperCase=()=>e.check(BX())}),tQ=he("ZodString",(e,t)=>{Z_.init(e,t),MD.init(e,t),e.email=n=>e.check(rX(nQ,n)),e.url=n=>e.check(lX(rQ,n)),e.jwt=n=>e.check(xX(vQ,n)),e.emoji=n=>e.check(cX(iQ,n)),e.guid=n=>e.check(jC(PC,n)),e.uuid=n=>e.check(iX(rf,n)),e.uuidv4=n=>e.check(oX(rf,n)),e.uuidv6=n=>e.check(aX(rf,n)),e.uuidv7=n=>e.check(sX(rf,n)),e.nanoid=n=>e.check(uX(oQ,n)),e.guid=n=>e.check(jC(PC,n)),e.cuid=n=>e.check(dX(aQ,n)),e.cuid2=n=>e.check(fX(sQ,n)),e.ulid=n=>e.check(hX(lQ,n)),e.base64=n=>e.check(_X(mQ,n)),e.base64url=n=>e.check(EX(gQ,n)),e.xid=n=>e.check(pX(cQ,n)),e.ksuid=n=>e.check(mX(uQ,n)),e.ipv4=n=>e.check(gX(dQ,n)),e.ipv6=n=>e.check(yX(fQ,n)),e.cidrv4=n=>e.check(vX(hQ,n)),e.cidrv6=n=>e.check(bX(pQ,n)),e.e164=n=>e.check(SX(yQ,n)),e.datetime=n=>e.check(HX(n)),e.date=n=>e.check(GX(n)),e.time=n=>e.check(qX(n)),e.duration=n=>e.check(ZX(n))});function fc(e){return nX(tQ,e)}const Rt=he("ZodStringFormat",(e,t)=>{xt.init(e,t),MD.init(e,t)}),nQ=he("ZodEmail",(e,t)=>{pY.init(e,t),Rt.init(e,t)}),PC=he("ZodGUID",(e,t)=>{fY.init(e,t),Rt.init(e,t)}),rf=he("ZodUUID",(e,t)=>{hY.init(e,t),Rt.init(e,t)}),rQ=he("ZodURL",(e,t)=>{mY.init(e,t),Rt.init(e,t)}),iQ=he("ZodEmoji",(e,t)=>{gY.init(e,t),Rt.init(e,t)}),oQ=he("ZodNanoID",(e,t)=>{yY.init(e,t),Rt.init(e,t)}),aQ=he("ZodCUID",(e,t)=>{vY.init(e,t),Rt.init(e,t)}),sQ=he("ZodCUID2",(e,t)=>{bY.init(e,t),Rt.init(e,t)}),lQ=he("ZodULID",(e,t)=>{_Y.init(e,t),Rt.init(e,t)}),cQ=he("ZodXID",(e,t)=>{EY.init(e,t),Rt.init(e,t)}),uQ=he("ZodKSUID",(e,t)=>{SY.init(e,t),Rt.init(e,t)}),dQ=he("ZodIPv4",(e,t)=>{CY.init(e,t),Rt.init(e,t)}),fQ=he("ZodIPv6",(e,t)=>{RY.init(e,t),Rt.init(e,t)}),hQ=he("ZodCIDRv4",(e,t)=>{kY.init(e,t),Rt.init(e,t)}),pQ=he("ZodCIDRv6",(e,t)=>{NY.init(e,t),Rt.init(e,t)}),mQ=he("ZodBase64",(e,t)=>{IY.init(e,t),Rt.init(e,t)}),gQ=he("ZodBase64URL",(e,t)=>{DY.init(e,t),Rt.init(e,t)}),yQ=he("ZodE164",(e,t)=>{LY.init(e,t),Rt.init(e,t)}),vQ=he("ZodJWT",(e,t)=>{PY.init(e,t),Rt.init(e,t)}),bQ=he("ZodUnknown",(e,t)=>{MY.init(e,t),rn.init(e,t)});function MC(){return RX(bQ)}const _Q=he("ZodNever",(e,t)=>{zY.init(e,t),rn.init(e,t)});function EQ(e){return kX(_Q,e)}const SQ=he("ZodArray",(e,t)=>{BY.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(jD(n,r)),e.length=(n,r)=>e.check(PD(n,r)),e.unwrap=()=>e.element});function zv(e,t){return VX(SQ,e,t)}const xQ=he("ZodObject",(e,t)=>{VY.init(e,t),rn.init(e,t),St(e,"shape",()=>t.shape),e.keyof=()=>kQ(Object.keys(e._zod.def.shape)),e.catchall=n=>e.clone({...e._zod.def,catchall:n}),e.passthrough=()=>e.clone({...e._zod.def,catchall:MC()}),e.loose=()=>e.clone({...e._zod.def,catchall:MC()}),e.strict=()=>e.clone({...e._zod.def,catchall:EQ()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=n=>_7(e,n),e.merge=n=>E7(e,n),e.pick=n=>v7(e,n),e.omit=n=>b7(e,n),e.partial=(...n)=>S7(zD,e,n[0]),e.required=(...n)=>x7(BD,e,n[0])});function AQ(e,t){const n={type:"object",get shape(){return K_(this,"shape",{...e}),this.shape},...Be(t)};return new xQ(n)}const wQ=he("ZodUnion",(e,t)=>{UY.init(e,t),rn.init(e,t),e.options=t.options});function TQ(e,t){return new wQ({type:"union",options:e,...Be(t)})}const CQ=he("ZodIntersection",(e,t)=>{FY.init(e,t),rn.init(e,t)});function RQ(e,t){return new CQ({type:"intersection",left:e,right:t})}const Bv=he("ZodEnum",(e,t)=>{HY.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,o)=>{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 Bv({...t,checks:[],...Be(o),entries:s})},e.exclude=(r,o)=>{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 Bv({...t,checks:[],...Be(o),entries:s})}});function kQ(e,t){const n=Array.isArray(e)?Object.fromEntries(e.map(r=>[r,r])):e;return new Bv({type:"enum",entries:n,...Be(t)})}const NQ=he("ZodTransform",(e,t)=>{$Y.init(e,t),rn.init(e,t),e._zod.parse=(n,r)=>{n.addIssue=s=>{if(typeof s=="string")n.issues.push(Gc(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(Gc(l))}};const o=t.transform(n.value,n);return o instanceof Promise?o.then(s=>(n.value=s,n)):(n.value=o,n)}});function IQ(e){return new NQ({type:"transform",transform:e})}const zD=he("ZodOptional",(e,t)=>{GY.init(e,t),rn.init(e,t),e.unwrap=()=>e._zod.def.innerType});function zC(e){return new zD({type:"optional",innerType:e})}const OQ=he("ZodNullable",(e,t)=>{KY.init(e,t),rn.init(e,t),e.unwrap=()=>e._zod.def.innerType});function BC(e){return new OQ({type:"nullable",innerType:e})}const DQ=he("ZodDefault",(e,t)=>{qY.init(e,t),rn.init(e,t),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function LQ(e,t){return new DQ({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():t}})}const jQ=he("ZodPrefault",(e,t)=>{WY.init(e,t),rn.init(e,t),e.unwrap=()=>e._zod.def.innerType});function PQ(e,t){return new jQ({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():t}})}const BD=he("ZodNonOptional",(e,t)=>{ZY.init(e,t),rn.init(e,t),e.unwrap=()=>e._zod.def.innerType});function MQ(e,t){return new BD({type:"nonoptional",innerType:e,...Be(t)})}const zQ=he("ZodCatch",(e,t)=>{YY.init(e,t),rn.init(e,t),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function BQ(e,t){return new zQ({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}const VQ=he("ZodPipe",(e,t)=>{XY.init(e,t),rn.init(e,t),e.in=t.in,e.out=t.out});function VC(e,t){return new VQ({type:"pipe",in:e,out:t})}const UQ=he("ZodReadonly",(e,t)=>{QY.init(e,t),rn.init(e,t)});function FQ(e){return new UQ({type:"readonly",innerType:e})}const HQ=he("ZodCustom",(e,t)=>{JY.init(e,t),rn.init(e,t)});function $Q(e){const t=new Qr({check:"custom"});return t._zod.check=e,t}function GQ(e,t={}){return UX(HQ,e,t)}function KQ(e){const t=$Q(n=>(n.addIssue=r=>{if(typeof r=="string")n.issues.push(Gc(r,n.value,t._zod.def));else{const o=r;o.fatal&&(o.continue=!1),o.code??(o.code="custom"),o.input??(o.input=n.value),o.inst??(o.inst=t),o.continue??(o.continue=!t._zod.def.abort),n.issues.push(Gc(o))}},e(n.value,n)));return t}function Ai(e){return Array.isArray?Array.isArray(e):FD(e)==="[object Array]"}function qQ(e){if(typeof e=="string")return e;let t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function WQ(e){return e==null?"":qQ(e)}function Hr(e){return typeof e=="string"}function VD(e){return typeof e=="number"}function ZQ(e){return e===!0||e===!1||YQ(e)&&FD(e)=="[object Boolean]"}function UD(e){return typeof e=="object"}function YQ(e){return UD(e)&&e!==null}function qn(e){return e!=null}function py(e){return!e.trim().length}function FD(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}const XQ="Incorrect 'index' type",QQ=e=>`Invalid value for key ${e}`,JQ=e=>`Pattern length exceeds max of ${e}.`,eJ=e=>`Missing ${e} property in key`,tJ=e=>`Property 'weight' in key '${e}' must be a positive integer`,UC=Object.prototype.hasOwnProperty;class nJ{constructor(t){this._keys=[],this._keyMap={};let n=0;t.forEach(r=>{let o=HD(r);this._keys.push(o),this._keyMap[o.id]=o,n+=o.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 HD(e){let t=null,n=null,r=null,o=1,s=null;if(Hr(e)||Ai(e))r=e,t=FC(e),n=Vv(e);else{if(!UC.call(e,"name"))throw new Error(eJ("name"));const l=e.name;if(r=l,UC.call(e,"weight")&&(o=e.weight,o<=0))throw new Error(tJ(l));t=FC(l),n=Vv(l),s=e.getFn}return{path:t,id:n,weight:o,src:r,getFn:s}}function FC(e){return Ai(e)?e:e.split(".")}function Vv(e){return Ai(e)?e.join("."):e}function rJ(e,t){let n=[],r=!1;const o=(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)||VD(f)||ZQ(f)))n.push(WQ(f));else if(Ai(f)){r=!0;for(let p=0,m=f.length;p<m;p+=1)o(f[p],l,u+1)}else l.length&&o(f,l,u+1)}};return o(e,Hr(t)?t.split("."):t,0),r?n:n[0]}const iJ={includeMatches:!1,findAllMatches:!1,minMatchCharLength:1},oJ={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},sJ={useExtendedSearch:!1,getFn:rJ,ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1};var ze={...oJ,...iJ,...aJ,...sJ};const lJ=/[^ ]+/g;function cJ(e=1,t=3){const n=new Map,r=Math.pow(10,t);return{get(o){const s=o.match(lJ).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 Y_{constructor({getFn:t=ze.getFn,fieldNormWeight:n=ze.fieldNormWeight}={}){this.norm=cJ(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((o,s)=>{let l=o.getFn?o.getFn(t):this.getFn(t,o.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 $D(e,t,{getFn:n=ze.getFn,fieldNormWeight:r=ze.fieldNormWeight}={}){const o=new Y_({getFn:n,fieldNormWeight:r});return o.setKeys(e.map(HD)),o.setSources(t),o.create(),o}function uJ(e,{getFn:t=ze.getFn,fieldNormWeight:n=ze.fieldNormWeight}={}){const{keys:r,records:o}=e,s=new Y_({getFn:t,fieldNormWeight:n});return s.setKeys(r),s.setIndexRecords(o),s}function of(e,{errors:t=0,currentLocation:n=0,expectedLocation:r=0,distance:o=ze.distance,ignoreLocation:s=ze.ignoreLocation}={}){const l=t/e.length;if(s)return l;const u=Math.abs(r-n);return o?l+u/o:u?1:l}function dJ(e=[],t=ze.minMatchCharLength){let n=[],r=-1,o=-1,s=0;for(let l=e.length;s<l;s+=1){let u=e[s];u&&r===-1?r=s:!u&&r!==-1&&(o=s-1,o-r+1>=t&&n.push([r,o]),r=-1)}return e[s-1]&&s-r>=t&&n.push([r,s-1]),n}const Xo=32;function fJ(e,t,n,{location:r=ze.location,distance:o=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>Xo)throw new Error(JQ(Xo));const p=t.length,m=e.length,v=Math.max(0,Math.min(r,m));let b=s,x=v;const A=u>1||d,T=A?Array(m):[];let N;for(;(N=e.indexOf(t,x))>-1;){let D=of(t,{currentLocation:N,expectedLocation:v,distance:o,ignoreLocation:f});if(b=Math.min(D,b),x=N+p,A){let L=0;for(;L<p;)T[N+L]=1,L+=1}}x=-1;let E=[],w=1,R=p+m;const C=1<<p-1;for(let D=0;D<p;D+=1){let L=0,V=R;for(;L<V;)of(t,{errors:D,currentLocation:v+V,expectedLocation:v,distance:o,ignoreLocation:f})<=b?L=V:R=V,V=Math.floor((R-L)/2+L);R=V;let H=Math.max(1,v-V+1),Z=l?m:Math.min(v+V,m)+p,Q=Array(Z+2);Q[Z+1]=(1<<D)-1;for(let q=Z;q>=H;q-=1){let oe=q-1,z=n[e.charAt(oe)];if(A&&(T[oe]=+!!z),Q[q]=(Q[q+1]<<1|1)&z,D&&(Q[q]|=(E[q+1]|E[q])<<1|1|E[q+1]),Q[q]&C&&(w=of(t,{errors:D,currentLocation:oe,expectedLocation:v,distance:o,ignoreLocation:f}),w<=b)){if(b=w,x=oe,x<=v)break;H=Math.max(1,2*v-x)}}if(of(t,{errors:D+1,currentLocation:v,expectedLocation:v,distance:o,ignoreLocation:f})>b)break;E=Q}const I={isMatch:x>=0,score:Math.max(.001,w)};if(A){const D=dJ(T,u);D.length?d&&(I.indices=D):I.isMatch=!1}return I}function hJ(e){let t={};for(let n=0,r=e.length;n<r;n+=1){const o=e.charAt(n);t[o]=(t[o]||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:o=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:o,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=(b,x)=>{this.chunks.push({pattern:b,alphabet:hJ(b),startIndex:x})},v=this.pattern.length;if(v>Xo){let b=0;const x=v%Xo,A=v-x;for(;b<A;)m(this.pattern.substr(b,Xo),b),b+=Xo;if(x){const T=v-Xo;m(this.pattern.substr(T),T)}}else m(this.pattern,0)}searchIn(t){const{isCaseSensitive:n,ignoreDiacritics:r,includeMatches:o}=this.options;if(t=n?t:t.toLowerCase(),t=r?rh(t):t,this.pattern===t){let A={isMatch:!0,score:0};return o&&(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,b=!1;this.chunks.forEach(({pattern:A,alphabet:T,startIndex:N})=>{const{isMatch:E,score:w,indices:R}=fJ(t,A,T,{location:s+N,distance:l,threshold:u,findAllMatches:d,minMatchCharLength:f,includeMatches:o,ignoreLocation:p});E&&(b=!0),v+=w,E&&R&&(m=[...m,...R])});let x={isMatch:b,score:b?v/this.chunks.length:1};return b&&o&&(x.indices=m),x}}class Ao{constructor(t){this.pattern=t}static isMultiMatch(t){return HC(t,this.multiRegex)}static isSingleMatch(t){return HC(t,this.singleRegex)}search(){}}function HC(e,t){const n=e.match(t);return n?n[1]:null}class pJ extends Ao{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 mJ extends Ao{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 gJ extends Ao{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 yJ extends Ao{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 vJ extends Ao{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 bJ extends Ao{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 KD extends Ao{constructor(t,{location:n=ze.location,threshold:r=ze.threshold,distance:o=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:o,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 qD extends Ao{constructor(t){super(t)}static get type(){return"include"}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(t){let n=0,r;const o=[],s=this.pattern.length;for(;(r=t.indexOf(this.pattern,n))>-1;)n=r+s,o.push([r,n-1]);const l=!!o.length;return{isMatch:l,score:l?0:1,indices:o}}}const Uv=[pJ,qD,gJ,yJ,bJ,vJ,mJ,KD],$C=Uv.length,_J=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/,EJ="|";function SJ(e,t={}){return e.split(EJ).map(n=>{let r=n.trim().split(_J).filter(s=>s&&!!s.trim()),o=[];for(let s=0,l=r.length;s<l;s+=1){const u=r[s];let d=!1,f=-1;for(;!d&&++f<$C;){const p=Uv[f];let m=p.isMultiMatch(u);m&&(o.push(new p(m,t)),d=!0)}if(!d)for(f=-1;++f<$C;){const p=Uv[f];let m=p.isSingleMatch(u);if(m){o.push(new p(m,t));break}}}return o})}const xJ=new Set([KD.type,qD.type]);class AJ{constructor(t,{isCaseSensitive:n=ze.isCaseSensitive,ignoreDiacritics:r=ze.ignoreDiacritics,includeMatches:o=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:o,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=SJ(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:o,ignoreDiacritics:s}=this.options;t=o?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,b=m.length;v<b;v+=1){const x=m[v],{isMatch:A,indices:T,score:N}=x.search(t);if(A){if(l+=1,d+=N,r){const E=x.constructor.type;xJ.has(E)?u=[...u,...T]:u.push(T)}}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 Fv=[];function wJ(...e){Fv.push(...e)}function Hv(e,t){for(let n=0,r=Fv.length;n<r;n+=1){let o=Fv[n];if(o.condition(e,t))return new o(e,t)}return new GD(e,t)}const ih={AND:"$and",OR:"$or"},$v={PATH:"$path",PATTERN:"$val"},Gv=e=>!!(e[ih.AND]||e[ih.OR]),TJ=e=>!!e[$v.PATH],CJ=e=>!Ai(e)&&UD(e)&&!Gv(e),GC=e=>({[ih.AND]:Object.keys(e).map(t=>({[t]:e[t]}))});function WD(e,t,{auto:n=!0}={}){const r=o=>{let s=Object.keys(o);const l=TJ(o);if(!l&&s.length>1&&!Gv(o))return r(GC(o));if(CJ(o)){const d=l?o[$v.PATH]:s[0],f=l?o[$v.PATTERN]:o[d];if(!Hr(f))throw new Error(QQ(d));const p={keyId:Vv(d),pattern:f};return n&&(p.searcher=Hv(f,t)),p}let u={children:[],operator:s[0]};return s.forEach(d=>{const f=o[d];Ai(f)&&f.forEach(p=>{u.children.push(r(p))})}),u};return Gv(e)||(e=GC(e)),r(e)}function RJ(e,{ignoreFieldNorm:t=ze.ignoreFieldNorm}){e.forEach(n=>{let r=1;n.matches.forEach(({key:o,norm:s,score:l})=>{const u=o?o.weight:null;r*=Math.pow(l===0&&u?Number.EPSILON:l,(u||1)*(t?1:s))}),n.score=r})}function kJ(e,t){const n=e.matches;t.matches=[],qn(n)&&n.forEach(r=>{if(!qn(r.indices)||!r.indices.length)return;const{indices:o,value:s}=r;let l={indices:o,value:s};r.key&&(l.key=r.key.src),r.idx>-1&&(l.refIndex=r.idx),t.matches.push(l)})}function NJ(e,t){t.score=e.score}function IJ(e,t,{includeMatches:n=ze.includeMatches,includeScore:r=ze.includeScore}={}){const o=[];return n&&o.push(kJ),r&&o.push(NJ),e.map(s=>{const{idx:l}=s,u={item:t[l],refIndex:l};return o.length&&o.forEach(d=>{d(s,u)}),u})}class Qs{constructor(t,n={},r){this.options={...ze,...n},this.options.useExtendedSearch,this._keyStore=new nJ(this.options.keys),this.setCollection(t,r)}setCollection(t,n){if(this._docs=t,n&&!(n instanceof Y_))throw new Error(XQ);this._myIndex=n||$D(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,o=this._docs.length;r<o;r+=1){const s=this._docs[r];t(s,r)&&(this.removeAt(r),r-=1,o-=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:o,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 RJ(d,{ignoreFieldNorm:u}),s&&d.sort(l),VD(n)&&n>-1&&(d=d.slice(0,n)),IJ(d,this._docs,{includeMatches:r,includeScore:o})}_searchStringList(t){const n=Hv(t,this.options),{records:r}=this._myIndex,o=[];return r.forEach(({v:s,i:l,n:u})=>{if(!qn(s))return;const{isMatch:d,score:f,indices:p}=n.searchIn(s);d&&o.push({item:s,idx:l,matches:[{score:f,value:s,norm:u,indices:p}]})}),o}_searchLogical(t){const n=WD(t,this.options),r=(u,d,f)=>{if(!u.children){const{keyId:m,searcher:v}=u,b=this._findMatches({key:this._keyStore.get(m),value:this._myIndex.getValueForItemAtKeyId(d,m),searcher:v});return b&&b.length?[{idx:f,item:d,matches:b}]:[]}const p=[];for(let m=0,v=u.children.length;m<v;m+=1){const b=u.children[m],x=r(b,d,f);if(x.length)p.push(...x);else if(u.operator===ih.AND)return[]}return p},o=this._myIndex.records,s={},l=[];return o.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=Hv(t,this.options),{keys:r,records:o}=this._myIndex,s=[];return o.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 o=[];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&&o.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&&o.push({score:d,key:t,value:s,norm:l,indices:f})}return o}}Qs.version="7.1.0";Qs.createIndex=$D;Qs.parseIndex=uJ;Qs.config=ze;Qs.parseQuery=WD;wJ(AJ);const Rc=({children:e,className:t,identifier:n,...r})=>y.jsx("div",{className:ye("group/dropdown relative flex",t),"aria-label":`DropDown ${n}`,id:`unrollable-panel-button-${n}`,"aria-haspopup":!0,...r,children:e}),OJ=({children:e,identifier:t,className:n,label:r,...o})=>y.jsx(lt,{className:ye("w-full cursor-pointer",n),label:r??`Open panel ${t}`,onClick:s=>{s.currentTarget.focus()},variant:"none",...o,children:e}),DJ=({children:e,isHidden:t=void 0,isOverable:n=!1,isFocusable:r=!1,align:o="start",identifier:s,className:l,...u})=>y.jsx("div",{className:ye("absolute top-[calc(100%+0.5rem)] z-[1000] min-w-full",o==="start"&&"left-0",o==="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:ye("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=OJ;Rc.Panel=DJ;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 o=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,o,s],[n,o,s])},ZD=S.createContext({availableLocales:[],selectedLocales:[],setSelectedLocales:()=>{}}),YD=()=>S.useContext(ZD),LJ=({availableLocales:e,defaultSelectedLocales:t,children:n})=>{const{locale:r}=vb(),[o,s]=kc("locale-content-selector-selected-locales",t??[r]);return y.jsx(ZD,{value:{availableLocales:e,selectedLocales:o,setSelectedLocales:s},children:n})},my="locale-switcher-content",jJ=({panelProps:e,isMultilingual:t=!0})=>{const{switchTo:n,searchInput:r,localeSwitcherLabel:o,languageListLabel:s,seeAllLocalesSwitch:l}=dn("locale-switcher-content"),u=S.useRef(null),{locale:d}=vb(),{availableLocales:f,selectedLocales:p,setSelectedLocales:m}=YD(),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]),[b,x]=S.useState(v),[A,T]=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]),w=C=>{t?p.includes(C)?p.length>1&&m(I=>I.filter(D=>D!==C)):m(I=>[...I,C]):m([C])},R=C=>{T(C),m(C?f:[d])};return y.jsx("div",{className:"border-text text-text rounded-xl border transition-colors","aria-label":o.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(pH,{size:18})}),y.jsx(vH,{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:b.map(({locale:C,currentLocaleName:I,ownLocaleName:D})=>y.jsx("li",{className:"px-1.5 py-1",children:y.jsx(lt,{onClick:()=>w(C),label:`${n} ${I}`,disabled:!(f??f).includes(C),isActive:p.includes(C),variant:st.HOVERABLE,color:at.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:AV(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))})]})]})})]})})},PJ=(e,t,n)=>{const r={...e};for(const o of Object.keys(e))o===t?(r[n]=e[t],delete r[t]):r[o]=e[o];return r},Kv=({children:e,onContentChange:t,disabled:n,validate:r,additionalButtons:o,...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)},b=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:b,"aria-label":"value",variant:fo.INVISIBLE,className:"size-full",defaultValue:e,...s},d),(p||o)&&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:at.TEXT,size:Yn.ICON_SM,className:"cursor-pointer hover:scale-110",disabled:n||!x,onClick:v}),y.jsx(lt,{Icon:ga,label:"Cancel",variant:st.HOVERABLE,size:Yn.ICON_SM,color:at.TEXT,className:"cursor-pointer hover:scale-110",onClick:m})]}),o]})]},String(e))},MJ=()=>{const{session:e,revalidateSession:t,setSession:n}=mu(),{mutate:r}=yq(),o=e?.user?"authenticated":"unauthenticated",s=o==="authenticated",l=o==="unauthenticated",u=e?.user;return{isAuthenticated:s,isUnauthenticated:l,user:u,revalidateSession:t,logout:async()=>{n(null),r({})}}},zJ=(e,t)=>{const[n,r]=S.useState(e);return S.useEffect(()=>{const o=setTimeout(()=>{r(e)},t);return()=>clearTimeout(o)},[e,t]),n},BJ=({isActive:e=!0,suggestion:t,...n})=>{const r=String(n.value??n.defaultValue??""),{mutate:o}=Aq(),s=Zr(),[l,u]=S.useState(!1),[d,f]=S.useState(r),[p,m]=S.useState(""),v=S.useRef(null),b=S.useRef(null),x=S.useRef(null),[A,T]=S.useState(null),[N,E]=S.useState(-1),w=zJ(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??w.length,D=w.slice(0,I),L=w.slice(I),V=5,H=D.split(`
293
+ `),Q=H.slice(Math.max(0,H.length-V-1),-1).join(`
294
+ `),le=H[H.length-1]??"",oe=L.split(`
295
+ `).slice(1,V+1).join(`
296
+ `);o({text:D,contextBefore:Q,currentLine:le,contextAfter:oe,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)}};w.length>3?(m(""),C()):m("")},[w,e,o,s]),S.useEffect(()=>{if(!p||N===-1||!b.current||!x.current){T(null);return}const C=b.current.getBoundingClientRect(),I=x.current.getBoundingClientRect();T({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:b,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(O_,{...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)}})]})},VJ=({children:e,onContentChange:t,disabled:n,validate:r,additionalButtons:o,...s})=>{const{isAuthenticated:l}=MJ(),[u,d]=S.useState(e),[f,p]=S.useState(0),m=u!==e,v=()=>{d(e),p(T=>T+1)},b=()=>{t(u)},x=T=>d(T.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(BJ,{onChange:x,variant:"invisible",className:"size-full",defaultValue:e,isActive:l,...s},f),(m||o)&&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:b}),y.jsx(lt,{Icon:ga,label:"Cancel",variant:"hoverable",size:"icon-sm",color:"text",className:"cursor-pointer hover:scale-110",onClick:v})]}),o]})]},e)},UJ=700,XD=({isRollable:e=!0,minHeight:t=UJ,children:n,className:r})=>{const[o,s]=S.useState(0),[l,u]=S.useState(!0),d=S.useRef(null),{expandCollapseContent:f}=dn("expand-collapse"),p=o>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:ye("grid w-full",r),ref:d,children:n}),y.jsx("button",{className:ye("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:ye("grid w-full",r),ref:d,children:n}):n},FJ=[[/^(<!--)(.+)(-->)$/,!1],[/^(\/\*)(.+)(\*\/)$/,!1],[/^(\/\/|["'#]|;{1,2}|%{1,2}|--)(.*)$/,!0],[/^(\*)(.+)$/,!0]];function HJ(e,t,n){const r=[];for(const o of e){if(n==="v3"){const u=o.children.flatMap((d,f)=>{if(d.type!=="element")return d;const p=d.children[0];if(p.type!=="text")return d;const m=f===o.children.length-1;if(!qC(p.value,m))return d;const b=p.value.split(/(\s+\/\/)/);if(b.length<=1)return d;let x=[b[0]];for(let A=1;A<b.length;A+=2)x.push(b[A]+(b[A+1]||""));return x=x.filter(Boolean),x.length<=1?d:x.map(A=>({...d,children:[{type:"text",value:A}]}))});u.length!==o.children.length&&(o.children=u)}const s=o.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=qC(f.value,p);if(m)if(t&&!p&&u!==0){const v=KC(s[u-1],"{")&&KC(s[u+1],"}");r.push({info:m,line:o,token:d,isLineCommentOnly:s.length===3&&d.children.length===1,isJsxStyle:v})}else r.push({info:m,line:o,token:d,isLineCommentOnly:s.length===1&&d.children.length===1,isJsxStyle:!1})}}return r}function KC(e,t){if(e.type!=="element")return!1;const n=e.children[0];return n.type!=="text"?!1:n.value.trim()===t}function qC(e,t){let n=e.trimStart();const r=e.length-n.length;n=n.trimEnd();const o=e.length-n.length-r;for(const[s,l]of FJ){if(l&&!t)continue;const u=s.exec(n);if(u)return[" ".repeat(r)+u[1],u[2],u[3]?u[3]+" ".repeat(o):void 0]}}function $J(e){const t=e.match(/(?:\/\/|["'#]|;{1,2}|%{1,2}|--)(\s*)$/);return t&&t[1].trim().length===0?e.slice(0,t.index):e}function QD(e,t,n,r){return r==null&&(r="v3"),{name:e,code(o){const s=o.children.filter(f=>f.type==="element"),l=[];o.data??={};const u=o.data;u._shiki_notation??=HJ(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,(...b)=>n.call(this,b,f.line,f.token,s,p)?(m=!0,""):b[0]),!m)continue;r==="v1"&&(f.info[1]=$J(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 b=f.token.children[0];b.type==="text"&&(b.value=f.info.join(""))}}for(const f of l){const p=o.children.indexOf(f),m=o.children[p+1];let v=1;m?.type==="text"&&m?.value===`
297
+ `&&(v=2),o.children.splice(p,v)}}}}function GJ(e){if(!e)return null;const t=e.match(/\{([\d,-]+)\}/);return t?t[1].split(",").flatMap(r=>{const o=r.split("-").map(s=>Number.parseInt(s,10));return o.length===1?[o[0]]:Array.from({length:o[1]-o[0]+1},(s,l)=>l+o[0])}):null}const WC=Symbol("highlighted-lines");function KJ(e={}){const{className:t="highlighted"}=e;return{name:"@shikijs/transformers:meta-highlight",line(n,r){if(!this.options.meta?.__raw)return;const o=this.meta;return o[WC]??=GJ(this.options.meta.__raw),(o[WC]??[]).includes(r)&&this.addClassToHast(n,t),n}}}function qJ(e){return e?Array.from(e.matchAll(/\/((?:\\.|[^/])+)\//g)).map(n=>n[1].replace(/\\(.)/g,"$1")):[]}function WJ(e={}){const{className:t="highlighted-word"}=e;return{name:"@shikijs/transformers:meta-word-highlight",preprocess(n,r){if(!this.options.meta?.__raw)return;const o=qJ(this.options.meta.__raw);r.decorations||=[];for(const s of o){const l=ZJ(n,s);for(const u of l)r.decorations.push({start:u,end:u+s.length,properties:{class:t}})}}}}function ZJ(e,t){const n=[];let r=0;for(;;){const o=e.indexOf(t,r);if(o===-1||o>=e.length||o<r)break;n.push(o),r=o+t.length}return n}function YJ(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function X_(e={},t="@shikijs/transformers:notation-map"){const{classMap:n={},classActivePre:r=void 0}=e;return QD(t,new RegExp(`\\s*\\[!code (${Object.keys(n).map(YJ).join("|")})(:\\d+)?\\]`),function([o,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 XJ(e={}){const{classLineAdd:t="diff add",classLineRemove:n="diff remove",classActivePre:r="has-diff"}=e;return X_({classMap:{"++":t,"--":n},classActivePre:r,matchAlgorithm:e.matchAlgorithm},"@shikijs/transformers:notation-diff")}function QJ(e={}){const{classMap:t={error:["highlighted","error"],warning:["highlighted","warning"]},classActivePre:n="has-highlighted"}=e;return X_({classMap:t,classActivePre:n,matchAlgorithm:e.matchAlgorithm},"@shikijs/transformers:notation-error-level")}function JJ(e={}){const{classActiveLine:t="highlighted",classActivePre:n="has-highlighted"}=e;return X_({classMap:{highlight:t,hl:t},classActivePre:n,matchAlgorithm:e.matchAlgorithm},"@shikijs/transformers:notation-highlight")}function eee(e,t,n,r){const o=JD(e);let s=o.indexOf(n);for(;s!==-1;)tee.call(this,e.children,t,s,n.length,r),s=o.indexOf(n,s+1)}function JD(e){return e.type==="text"?e.value:e.type==="element"&&e.tagName==="span"?e.children.map(JD).join(""):""}function tee(e,t,n,r,o){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(nee([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=ree(u,d,f,p);this.addClassToHast(m[1],o);const v=m.filter(Boolean);e.splice(l,1,...v),l+=v.length-1}s+=d.value.length}}}function nee(e,t){return e[0]<=t[1]&&e[1]>=t[0]}function ree(e,t,n,r){const o=t.value,s=l=>iee(e,{children:[{type:"text",value:l}]});return[n>0?s(o.slice(0,n)):void 0,s(o.slice(n,n+r)),n+r<o.length?s(o.slice(n+r)):void 0]}function iee(e,t){return{...e,properties:{...e.properties},...t}}function oee(e={}){const{classActiveWord:t="highlighted-word",classActivePre:n=void 0}=e;return QD("@shikijs/transformers:notation-highlight-word",/\s*\[!code word:((?:\\.|[^:\]])+)(:\d+)?\]/,function([r,o,s],l,u,d,f){const p=s?Number.parseInt(s.slice(1),10):d.length;o=o.replace(/\\(.)/g,"$1");for(let m=f;m<Math.min(f+p,d.length);m++)eee.call(this,d[m],u,o,t);return n&&this.addClassToHast(this.pre,n),!0},e.matchAlgorithm)}const aee="modulepreload",see=function(e){return"/"+e},ZC={},j=function(t,n,r){let o=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");o=f(n.map(p=>{if(p=see(p),p in ZC)return;ZC[p]=!0;const m=p.endsWith(".css"),v=m?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${p}"]${v}`))return;const b=document.createElement("link");if(b.rel=m?"stylesheet":aee,m||(b.as="script"),b.crossOrigin="",b.href=p,d&&b.setAttribute("nonce",d),document.head.appendChild(b),m)return new Promise((x,A)=>{b.addEventListener("load",x),b.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 o.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 lee(e){return Q_(e)}function Q_(e){return Array.isArray(e)?cee(e):e instanceof RegExp?e:typeof e=="object"?uee(e):e}function cee(e){let t=[];for(let n=0,r=e.length;n<r;n++)t[n]=Q_(e[n]);return t}function uee(e){let t={};for(let n in e)t[n]=Q_(e[n]);return t}function eL(e,...t){return t.forEach(n=>{for(let r in n)e[r]=n[r]}),e}function tL(e){const t=~e.lastIndexOf("/")||~e.lastIndexOf("\\");return t===0?e:~t===e.length-1?tL(e.substring(0,e.length-1)):e.substr(~t+1)}var gy=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,af=class{static hasCaptures(e){return e===null?!1:(gy.lastIndex=0,gy.test(e))}static replaceCaptures(e,t,n){return e.replace(gy,(r,o,s,l)=>{let u=n[parseInt(o||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 nL(e,t){return e<t?-1:e>t?1:0}function rL(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 o=0;o<n;o++){let s=nL(e[o],t[o]);if(s!==0)return s}return 0}return n-r}function YC(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 iL(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")}var oL=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}},oh=class{constructor(e,t,n){this._colorMap=e,this._defaults=t,this._root=n}static createFromRawTheme(e,t){return this.createFromParsedTheme(hee(e),t)}static createFromParsedTheme(e,t){return mee(e,t)}_cachedMatchRoot=new oL(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(o=>dee(e.parent,o.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 dee(e,t){if(t.length===0)return!0;for(let n=0;n<t.length;n++){let r=t[n],o=!1;if(r===">"){if(n===t.length-1)return!1;r=t[++n],o=!0}for(;e&&!fee(e.scopeName,r);){if(o)return!1;e=e.parent}if(!e)return!1;e=e.parent}return!0}function fee(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 hee(e){if(!e)return[];if(!e.settings||!Array.isArray(e.settings))return[];let t=e.settings,n=[],r=0;for(let o=0,s=t.length;o<s;o++){let l=t[o];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,b=m.length;v<b;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"&&YC(l.settings.foreground)&&(f=l.settings.foreground);let p=null;typeof l.settings.background=="string"&&YC(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],T=null;x.length>1&&(T=x.slice(0,x.length-1),T.reverse()),n[r++]=new pee(A,T,o,d,f,p)}}return n}var pee=class{constructor(e,t,n,r,o,s){this.scope=e,this.parentScopes=t,this.index=n,this.fontStyle=r,this.foreground=o,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 mee(e,t){e.sort((d,f)=>{let p=nL(d.scope,f.scope);return p!==0||(p=rL(d.parentScopes,f.parentScopes),p!==0)?p:d.index-f.index});let n=0,r="#000000",o="#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&&(o=d.background)}let s=new gee(t),l=new aL(n,s.getId(r),s.getId(o)),u=new vee(new qv(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 oh(s,l,u)}var gee=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)}},yee=Object.freeze([]),qv=class sL{scopeDepth;parentScopes;fontStyle;foreground;background;constructor(t,n,r,o,s){this.scopeDepth=t,this.parentScopes=n||yee,this.fontStyle=r,this.foreground=o,this.background=s}clone(){return new sL(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(t){let n=[];for(let r=0,o=t.length;r<o;r++)n[r]=t[r].clone();return n}acceptOverwrite(t,n,r,o){this.scopeDepth>t?console.log("how did this happen?"):this.scopeDepth=t,n!==-1&&(this.fontStyle=n),r!==0&&(this.foreground=r),o!==0&&(this.background=o)}},vee=class Wv{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,o=0;for(;t.parentScopes[r]===">"&&r++,n.parentScopes[o]===">"&&o++,!(r>=t.parentScopes.length||o>=n.parentScopes.length);){const s=n.parentScopes[o].length-t.parentScopes[r].length;if(s!==0)return s;r++,o++}return n.parentScopes.length-t.parentScopes.length}match(t){if(t!==""){let r=t.indexOf("."),o,s;if(r===-1?(o=t,s=""):(o=t.substring(0,r),s=t.substring(r+1)),this._children.hasOwnProperty(o))return this._children[o].match(s)}const n=this._rulesWithParentScopes.concat(this._mainRule);return n.sort(Wv._cmpBySpecificity),n}insert(t,n,r,o,s,l){if(n===""){this._doInsertHere(t,r,o,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 Wv(this._mainRule.clone(),qv.cloneArr(this._rulesWithParentScopes)),this._children[d]=p),p.insert(t+1,f,r,o,s,l)}_doInsertHere(t,n,r,o,s){if(n===null){this._mainRule.acceptOverwrite(t,r,o,s);return}for(let l=0,u=this._rulesWithParentScopes.length;l<u;l++){let d=this._rulesWithParentScopes[l];if(rL(d.parentScopes,n)===0){d.acceptOverwrite(t,r,o,s);return}}r===-1&&(r=this._mainRule.fontStyle),o===0&&(o=this._mainRule.foreground),s===0&&(s=this._mainRule.background),this._rulesWithParentScopes.push(new qv(t,n,r,o,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),o=lr.getFontStyle(t),s=lr.getForeground(t),l=lr.getBackground(t);console.log({languageId:n,tokenType:r,fontStyle:o,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,o,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),b=lr.getBackground(t);return n!==0&&(d=n),r!==8&&(f=r),o!==null&&(p=o?1:0),s!==-1&&(m=s),l!==0&&(v=l),u!==0&&(b=u),(d<<0|f<<8|p<<10|m<<11|v<<15|b<<24)>>>0}};function ah(e,t){const n=[],r=bee(e);let o=r.next();for(;o!==null;){let d=0;if(o.length===2&&o.charAt(1)===":"){switch(o.charAt(0)){case"R":d=1;break;case"L":d=-1;break;default:console.log(`Unknown priority ${o} in scope selector`)}o=r.next()}let f=l();if(n.push({matcher:f,priority:d}),o!==",")break;o=r.next()}return n;function s(){if(o==="-"){o=r.next();const d=s();return f=>!!d&&!d(f)}if(o==="("){o=r.next();const d=u();return o===")"&&(o=r.next()),d}if(XC(o)){const d=[];do d.push(o),o=r.next();while(XC(o));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),o==="|"||o===",");){do o=r.next();while(o==="|"||o===",");f=l()}return p=>d.some(m=>m(p))}}function XC(e){return!!e&&!!e.match(/[\w\.:]+/)}function bee(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 lL(e){typeof e.dispose=="function"&&e.dispose()}var Kc=class{constructor(e){this.scopeName=e}toKey(){return this.scopeName}},_ee=class{constructor(e,t){this.scopeName=e,this.ruleName=t}toKey(){return`${this.scopeName}#${this.ruleName}`}},Eee=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))}},See=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 Eee;for(const n of e)xee(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 xee(e,t,n,r){const o=n.lookup(e.scopeName);if(!o){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:o},r):Zv(e.ruleName,{baseGrammar:s,selfGrammar:o,repository:o.repository},r);const l=n.injections(e.scopeName);if(l)for(const u of l)r.add(new Kc(u))}function Zv(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 o=r.repository?eL({},t.repository,r.repository):t.repository;Array.isArray(r.patterns)&&sh(r.patterns,{...t,repository:o},n);const s=r.include;if(!s)continue;const l=cL(s);switch(l.kind){case 0:kf({...t,selfGrammar:t.baseGrammar},n);break;case 1:kf(t,n);break;case 2:Zv(l.ruleName,{...t,repository:o},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:o};l.kind===4?Zv(l.ruleName,d,n):kf(d,n)}else l.kind===4?n.add(new _ee(l.scopeName,l.ruleName)):n.add(new Kc(l.scopeName));break}}}var Aee=class{kind=0},wee=class{kind=1},Tee=class{constructor(e){this.ruleName=e}kind=2},Cee=class{constructor(e){this.scopeName=e}kind=3},Ree=class{constructor(e,t){this.scopeName=e,this.ruleName=t}kind=4};function cL(e){if(e==="$base")return new Aee;if(e==="$self")return new wee;const t=e.indexOf("#");if(t===-1)return new Cee(e);if(t===0)return new Tee(e.substring(1));{const n=e.substring(0,t),r=e.substring(t+1);return new Ree(n,r)}}var kee=/\\(\d+)/,QC=/\\(\d+)/g,Nee=-1,uL=-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=af.hasCaptures(this._name),this._contentName=r||null,this._contentNameIsCapturing=af.hasCaptures(this._contentName)}get debugName(){const e=this.$location?`${tL(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:af.replaceCaptures(this._name,e,t)}getContentName(e,t){return!this._contentNameIsCapturing||this._contentName===null?this._contentName:af.replaceCaptures(this._contentName,e,t)}},Iee=class extends Su{retokenizeCapturedWithRuleId;constructor(e,t,n,r,o){super(e,t,n,r),this.retokenizeCapturedWithRuleId=o}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!")}},Oee=class extends Su{_match;captures;_cachedCompiledPatterns;constructor(e,t,n,r,o){super(e,t,n,null),this._match=new qc(r,this.id),this.captures=o,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}},JC=class extends Su{hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,t,n,r,o){super(e,t,n,r),this.patterns=o.patterns,this.hasMissingPatterns=o.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}},Yv=class extends Su{_begin;beginCaptures;_end;endHasBackReferences;endCaptures;applyEndPatternLast;hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,t,n,r,o,s,l,u,d,f){super(e,t,n,r),this._begin=new qc(o,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,o,s,l,u,d){super(e,t,n,r),this._begin=new qc(o,this.id),this.beginCaptures=s,this.whileCaptures=u,this._while=new qc(l,uL),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}},dL=class gn{static createCaptureRule(t,n,r,o,s){return t.registerRule(l=>new Iee(n,l,r,o,s))}static getCompiledRuleId(t,n,r){return t.id||n.registerRule(o=>{if(t.id=o,t.match)return new Oee(t.$vscodeTextmateLocation,t.id,t.name,t.match,gn._compileCaptures(t.captures,n,r));if(typeof t.begin>"u"){t.repository&&(r=eL({},r,t.repository));let s=t.patterns;return typeof s>"u"&&t.include&&(s=[{include:t.include}]),new JC(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 Yv(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 o=[];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++)o[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)),o[u]=gn.createCaptureRule(n,t[l].$vscodeTextmateLocation,t[l].name,t[l].contentName,d)}}return o}static _compilePatterns(t,n,r){let o=[];if(t)for(let s=0,l=t.length;s<l;s++){const u=t[s];let d=-1;if(u.include){const f=cL(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,b=n.getExternalGrammar(m,r);if(b)if(v){let x=b.repository[v];x&&(d=gn.getCompiledRuleId(x,n,b.repository))}else d=gn.getCompiledRuleId(b.repository.$self,n,b.repository);break}}else d=gn.getCompiledRuleId(u,n,r);if(d!==-1){const f=n.getRule(d);let p=!1;if((f instanceof JC||f instanceof Yv||f instanceof lh)&&f.hasMissingPatterns&&f.patterns.length===0&&(p=!0),p)continue;o.push(d)}}return{patterns:o,hasMissingPatterns:(t?t.length:0)!==o.length}}},qc=class fL{source;ruleId;hasAnchor;hasBackReferences;_anchorCache;constructor(t,n){if(t&&typeof t=="string"){const r=t.length;let o=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(o,u)),s.push("$(?!\\n)(?<!\\n)"),o=u+2):(f==="A"||f==="G")&&(l=!0),u++}this.hasAnchor=l,o===0?this.source=t:(s.push(t.substring(o,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=kee.test(this.source):this.hasBackReferences=!1}clone(){return new fL(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(o=>t.substring(o.start,o.end));return QC.lastIndex=0,this.source.replace(QC,(o,s)=>iL(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=[],o=[],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,o[s]=u,u==="\\"&&s+1<l&&(d=this.source.charAt(s+1),d==="A"?(t[s+1]="￿",n[s+1]="￿",r[s+1]="A",o[s+1]="A"):d==="G"?(t[s+1]="￿",n[s+1]="G",r[s+1]="￿",o[s+1]="G"):(t[s+1]=d,n[s+1]=d,r[s+1]=d,o[s+1]=d),s++);return{A0_G0:t.join(""),A0_G1:n.join(""),A1_G0:r.join(""),A1_G1:o.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 eR(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(o=>o.resolveAnchors(t,n));return new eR(e,r,this._items.map(o=>o.ruleId))}},eR=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}},Dee=class Xv{_defaultAttributes;_embeddedLanguagesMatcher;constructor(t,n){this._defaultAttributes=new vy(t,8),this._embeddedLanguagesMatcher=new Lee(Object.entries(n||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(t){return t===null?Xv._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(t)}static _NULL_SCOPE_METADATA=new vy(0,0);_getBasicScopeAttributes=new oL(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(Xv.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/},Lee=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])=>iL(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])}},tR=class{constructor(e,t){this.stack=e,this.stoppedEarly=t}};function hL(e,t,n,r,o,s,l,u){const d=t.content.length;let f=!1,p=-1;if(l){const b=jee(e,t,n,r,o,s);o=b.stack,r=b.linePos,n=b.isFirstLine,p=b.anchorPosition}const m=Date.now();for(;!f;){if(u!==0&&Date.now()-m>u)return new tR(o,!0);v()}return new tR(o,!1);function v(){const b=Pee(e,t,n,r,o,p);if(!b){s.produce(o,d),f=!0;return}const x=b.captureIndices,A=b.matchedRuleId,T=x&&x.length>0?x[0].end>r:!1;if(A===Nee){const N=o.getRule(e);s.produce(o,x[0].start),o=o.withContentNameScopesList(o.nameScopesList),yc(e,t,n,o,s,N.endCaptures,x),s.produce(o,x[0].end);const E=o;if(o=o.parent,p=E.getAnchorPos(),!T&&E.getEnterPos()===r){o=E,s.produce(o,d),f=!0;return}}else{const N=e.getRule(A);s.produce(o,x[0].start);const E=o,w=N.getName(t.content,x),R=o.contentNameScopesList.pushAttributed(w,e);if(o=o.push(A,r,p,x[0].end===d,null,R,R),N instanceof Yv){const C=N;yc(e,t,n,o,s,C.beginCaptures,x),s.produce(o,x[0].end),p=x[0].end;const I=C.getContentName(t.content,x),D=R.pushAttributed(I,e);if(o=o.withContentNameScopesList(D),C.endHasBackReferences&&(o=o.withEndRule(C.getEndWithResolvedBackReferences(t.content,x))),!T&&E.hasSameRuleAs(o)){o=o.pop(),s.produce(o,d),f=!0;return}}else if(N instanceof lh){const C=N;yc(e,t,n,o,s,C.beginCaptures,x),s.produce(o,x[0].end),p=x[0].end;const I=C.getContentName(t.content,x),D=R.pushAttributed(I,e);if(o=o.withContentNameScopesList(D),C.whileHasBackReferences&&(o=o.withEndRule(C.getWhileWithResolvedBackReferences(t.content,x))),!T&&E.hasSameRuleAs(o)){o=o.pop(),s.produce(o,d),f=!0;return}}else if(yc(e,t,n,o,s,N.captures,x),s.produce(o,x[0].end),o=o.pop(),!T){o=o.safePop(),s.produce(o,d),f=!0;return}}x[0].end>r&&(r=x[0].end,n=!1)}}function jee(e,t,n,r,o,s){let l=o.beginRuleCapturedEOL?0:-1;const u=[];for(let d=o;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}=Bee(d.rule,e,d.stack.endRule,n,r===l),m=f.findNextMatchSync(t,r,p);if(m){if(m.ruleId!==uL){o=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{o=d.stack.pop();break}}return{stack:o,linePos:r,anchorPosition:l,isFirstLine:n}}function Pee(e,t,n,r,o,s){const l=Mee(e,t,n,r,o,s),u=e.getInjections();if(u.length===0)return l;const d=zee(u,e,t,n,r,o,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 Mee(e,t,n,r,o,s){const l=o.getRule(e),{ruleScanner:u,findOptions:d}=pL(l,e,o.endRule,n,r===s),f=u.findNextMatchSync(t,r,d);return f?{captureIndices:f.captureIndices,matchedRuleId:f.ruleId}:null}function zee(e,t,n,r,o,s,l){let u=Number.MAX_VALUE,d=null,f,p=0;const m=s.contentNameScopesList.getScopeNames();for(let v=0,b=e.length;v<b;v++){const x=e[v];if(!x.matcher(m))continue;const A=t.getRule(x.ruleId),{ruleScanner:T,findOptions:N}=pL(A,t,null,r,o===l),E=T.findNextMatchSync(n,o,N);if(!E)continue;const w=E.captureIndices[0].start;if(!(w>=u)&&(u=w,d=E.captureIndices,f=E.ruleId,p=x.priority,u===o))break}return d?{priorityMatch:p===-1,captureIndices:d,matchedRuleId:f}:null}function pL(e,t,n,r,o){return{ruleScanner:e.compileAG(t,n,r,o),findOptions:0}}function Bee(e,t,n,r,o){return{ruleScanner:e.compileWhileAG(t,n,r,o),findOptions:0}}function yc(e,t,n,r,o,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 b=l[m];if(b.length===0)continue;if(b.start>p)break;for(;f.length>0&&f[f.length-1].endPos<=b.start;)o.produceFromScopes(f[f.length-1].scopes,f[f.length-1].endPos),f.pop();if(f.length>0?o.produceFromScopes(f[f.length-1].scopes,b.start):o.produce(r,b.start),v.retokenizeCapturedWithRuleId){const A=v.getName(u,l),T=r.contentNameScopesList.pushAttributed(A,e),N=v.getContentName(u,l),E=T.pushAttributed(N,e),w=r.push(v.retokenizeCapturedWithRuleId,b.start,-1,!1,null,T,E),R=e.createOnigString(u.substring(0,b.end));hL(e,R,n&&b.start===0,b.start,w,o,!1,0),lL(R);continue}const x=v.getName(u,l);if(x!==null){const T=(f.length>0?f[f.length-1].scopes:r.contentNameScopesList).pushAttributed(x,e);f.push(new Vee(T,b.end))}}for(;f.length>0;)o.produceFromScopes(f[f.length-1].scopes,f[f.length-1].endPos),f.pop()}var Vee=class{scopes;endPos;constructor(e,t){this.scopes=e,this.endPos=t}};function Uee(e,t,n,r,o,s,l,u){return new Hee(e,t,n,r,o,s,l,u)}function nR(e,t,n,r,o){const s=ah(t,ch),l=dL.getCompiledRuleId(n,r,o.repository);for(const u of s)e.push({debugSelector:t,matcher:u.matcher,ruleId:l,grammar:o,priority:u.priority})}function ch(e,t){if(t.length<e.length)return!1;let n=0;return e.every(r=>{for(let o=n;o<t.length;o++)if(Fee(t[o],r))return n=o+1,!0;return!1})}function Fee(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 Hee=class{constructor(e,t,n,r,o,s,l,u){if(this._rootScopeName=e,this.balancedBracketSelectors=s,this._onigLib=u,this._basicScopeAttributesProvider=new Dee(n,r),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=l,this._grammar=rR(t,null),this._injections=null,this._tokenTypeMatchers=[],o)for(const d of Object.keys(o)){const f=ah(d,ch);for(const p of f)this._tokenTypeMatchers.push({matcher:p.matcher,type:o[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:o=>o===this._rootScopeName?this._grammar:this.getExternalGrammar(o),injections:o=>this._grammarRepository.injections(o)},t=[],n=this._rootScopeName,r=e.lookup(n);if(r){const o=r.injections;if(o)for(let l in o)nR(t,l,o[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&&nR(t,d,u,this,u)}})}return t.sort((o,s)=>o.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]=rR(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=dL.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections());let o;if(!t||t===Qv.NULL){o=!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 b;v?b=Nc.createRootAndLookUpScopeName(v,m,this):b=Nc.createRoot("unknown",m),t=new Qv(null,this._rootId,-1,-1,!1,null,b,b)}else o=!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=hL(this,s,o,0,t,u,!0,r);return lL(s),{lineLength:l,lineTokens:u,ruleStack:d.stack,stoppedEarly:d.stoppedEarly}}};function rR(e,t){return e=lee(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,o=t?.scopePath??null;for(const s of n)o=yy.push(o,s.scopeNames),r=new Mr(r,o,s.encodedTokenAttributes);return r}static createRoot(t,n){return new Mr(null,new yy(null,t),n)}static createRootAndLookUpScopeName(t,n,r){const o=r.getMetadataForScope(t),s=new yy(null,t),l=r.themeProvider.themeMatch(s),u=Mr.mergeAttributes(n,o,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 o=-1,s=0,l=0;return r!==null&&(o=r.fontStyle,s=r.foregroundId,l=r.backgroundId),Ls.set(t,n.languageId,n.tokenType,null,o,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 o=this;for(const s of r)o=Mr._pushAttributed(o,s,n);return o}static _pushAttributed(t,n,r){const o=r.getMetadataForScope(n),s=t.scopePath.push(n),l=r.themeProvider.themeMatch(s),u=Mr.mergeAttributes(t.tokenAttributes,o,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}},Qv=class Yo{constructor(t,n,r,o,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=o}_stackElementBrand=void 0;static NULL=new Yo(null,0,0,0,!1,null,null,null);_enterPos;_anchorPos;depth;equals(t){return t===null?!1:Yo._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(){Yo._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(t,n,r,o,s,l,u){return new Yo(this,t,n,r,o,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 Yo(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 Yo(t,n.ruleId,n.enterPos??-1,n.anchorPos??-1,n.beginRuleCapturedEOL,n.endRule,r,Nc.fromExtension(r,n.contentNameScopesList))}},$ee=class{balancedBracketScopes;unbalancedBracketScopes;allowAny=!1;constructor(e,t){this.balancedBracketScopes=e.flatMap(n=>n==="*"?(this.allowAny=!0,[]):ah(n,ch).map(r=>r.matcher)),this.unbalancedBracketScopes=t.flatMap(n=>ah(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,o=!1;if(this.balancedBracketSelectors?.matchesAlways&&(o=!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&&(o=this.balancedBracketSelectors.match(s))}if(o&&(r=Ls.set(r,0,8,o,-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,o=this._binaryTokens.length;r<o;r++)n[r]=this._binaryTokens[r];return n}},Kee=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,o){if(!this._grammars.has(e)){let s=this._rawGrammars.get(e);if(!s)return null;this._grammars.set(e,Uee(e,s,t,n,r,o,this,this._onigLib))}return this._grammars.get(e)}},qee=class{_options;_syncRegistry;_ensureGrammarCache;constructor(t){this._options=t,this._syncRegistry=new Kee(oh.createFromRawTheme(t.theme,t.colorMap),t.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(t,n){this._syncRegistry.setTheme(oh.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 $ee(r.balancedBracketSelectors||[],r.unbalancedBracketSelectors||[]))}loadGrammar(t){return this._loadGrammar(t,0,null,null,null)}_loadGrammar(t,n,r,o,s){const l=new See(this._syncRegistry,t);for(;l.Q.length>0;)l.Q.map(u=>this._loadSingleGrammar(u.scopeName)),l.processQueue();return this._grammarForScopeName(t,n,r,o,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,o=null){return this._syncRegistry.addGrammar(t,n),this._grammarForScopeName(t.scopeName,r,o)}_grammarForScopeName(t,n=0,r=null,o=null,s=null){return this._syncRegistry.grammarForScopeName(t,n,r,o,s)}},Jv=Qv.NULL;const Wee=["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 mL(e,t){const n={},r={};for(const o of e)Object.assign(n,o.property),Object.assign(r,o.normal);return new xu(n,r,t)}function eb(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 Zee=0;const He=ba(),Bt=ba(),tb=ba(),me=ba(),vt=ba(),ws=ba(),Hn=ba();function ba(){return 2**++Zee}const nb=Object.freeze(Object.defineProperty({__proto__:null,boolean:He,booleanish:Bt,commaOrSpaceSeparated:Hn,commaSeparated:ws,number:me,overloadedBoolean:tb,spaceSeparated:vt},Symbol.toStringTag,{value:"Module"})),by=Object.keys(nb);class J_ extends jn{constructor(t,n,r,o){let s=-1;if(super(t,n),iR(this,"space",o),typeof r=="number")for(;++s<by.length;){const l=by[s];iR(this,by[s],(r&nb[l])===nb[l])}}}J_.prototype.defined=!0;function iR(e,t,n){n&&(e[t]=n)}function Js(e){const t={},n={};for(const[r,o]of Object.entries(e.properties)){const s=new J_(r,e.transform(e.attributes||{},r),o,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(s.mustUseProperty=!0),t[r]=s,n[eb(r)]=r,n[eb(s.attribute)]=r}return new xu(t,n,e.space)}const gL=Js({properties:{ariaActiveDescendant:null,ariaAtomic:Bt,ariaAutoComplete:null,ariaBusy:Bt,ariaChecked:Bt,ariaColCount:me,ariaColIndex:me,ariaColSpan:me,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:me,ariaLive:null,ariaModal:Bt,ariaMultiLine:Bt,ariaMultiSelectable:Bt,ariaOrientation:null,ariaOwns:vt,ariaPlaceholder:null,ariaPosInSet:me,ariaPressed:Bt,ariaReadOnly:Bt,ariaRelevant:null,ariaRequired:Bt,ariaRoleDescription:vt,ariaRowCount:me,ariaRowIndex:me,ariaRowSpan:me,ariaSelected:Bt,ariaSetSize:me,ariaSort:null,ariaValueMax:me,ariaValueMin:me,ariaValueNow:me,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function yL(e,t){return t in e?e[t]:t}function vL(e,t){return yL(e,t.toLowerCase())}const Yee=Js({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:ws,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:me,colSpan:null,content:null,contentEditable:Bt,controls:He,controlsList:vt,coords:me|ws,crossOrigin:null,data:null,dateTime:null,decoding:null,default:He,defer:He,dir:null,dirName:null,disabled:He,download:tb,draggable:Bt,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:He,formTarget:null,headers:vt,height:me,hidden:tb,high:me,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:me,manifest:null,max:null,maxLength:me,media:null,method:null,min:null,minLength:me,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:me,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:me,rowSpan:me,sandbox:vt,scope:null,scoped:He,seamless:He,selected:He,shadowRootClonable:He,shadowRootDelegatesFocus:He,shadowRootMode:null,shape:null,size:me,sizes:null,slot:null,span:me,spellCheck:Bt,src:null,srcDoc:null,srcLang:null,srcSet:null,start:me,step:null,style:null,tabIndex:me,target:null,title:null,translate:null,type:null,typeMustMatch:He,useMap:null,value:Bt,width:me,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:vt,axis:null,background:null,bgColor:null,border:me,borderColor:null,bottomMargin:me,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:He,declare:He,event:null,face:null,frame:null,frameBorder:null,hSpace:me,leftMargin:me,link:null,longDesc:null,lowSrc:null,marginHeight:me,marginWidth:me,noResize:He,noHref:He,noShade:He,noWrap:He,object:null,profile:null,prompt:null,rev:null,rightMargin:me,rules:null,scheme:null,scrolling:Bt,standby:null,summary:null,text:null,topMargin:me,valueType:null,version:null,vAlign:null,vLink:null,vSpace:me,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:He,disableRemotePlayback:He,prefix:null,property:null,results:me,security:null,unselectable:null},space:"html",transform:vL}),Xee=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:me,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:me,amplitude:me,arabicForm:null,ascent:me,attributeName:null,attributeType:null,azimuth:me,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:me,by:null,calcMode:null,capHeight:me,className: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:me,diffuseConstant:me,direction:null,display:null,dur:null,divisor:me,dominantBaseline:null,download:He,dx:null,dy:null,edgeMode:null,editable:null,elevation:me,enableBackground:null,end:null,event:null,exponent:me,externalResourcesRequired:null,fill:null,fillOpacity:me,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:ws,g2:ws,glyphName:ws,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:me,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:me,horizOriginX:me,horizOriginY:me,id:null,ideographic:me,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:me,k:me,k1:me,k2:me,k3:me,k4:me,kernelMatrix:Hn,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:me,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:me,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:me,overlineThickness:me,paintOrder:null,panose1:null,path:null,pathLength:me,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:vt,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:me,pointsAtY:me,pointsAtZ:me,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:me,specularExponent:me,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:me,strikethroughThickness:me,string:null,stroke:null,strokeDashArray:Hn,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:me,strokeOpacity:me,strokeWidth:null,style:null,surfaceScale:me,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Hn,tabIndex:me,tableValues:null,target:null,targetX:me,targetY:me,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Hn,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:me,underlineThickness:me,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:me,values:null,vAlphabetic:me,vMathematical:me,vectorEffect:null,vHanging:me,vIdeographic:me,version:null,vertAdvY:me,vertOriginX:me,vertOriginY:me,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:me,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:yL}),bL=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()}}),_L=Js({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:vL}),EL=Js({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),Qee=/[A-Z]/g,oR=/-[a-z]/g,Jee=/^data[-\w.:]+$/i;function ete(e,t){const n=eb(t);let r=t,o=jn;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&Jee.test(t)){if(t.charAt(4)==="-"){const s=t.slice(5).replace(oR,nte);r="data"+s.charAt(0).toUpperCase()+s.slice(1)}else{const s=t.slice(4);if(!oR.test(s)){let l=s.replace(Qee,tte);l.charAt(0)!=="-"&&(l="-"+l),t="data"+l}}o=J_}return new o(r,t)}function tte(e){return"-"+e.toLowerCase()}function nte(e){return e.charAt(1).toUpperCase()}const rte=mL([gL,Yee,bL,_L,EL],"html"),SL=mL([gL,Xee,bL,_L,EL],"svg"),aR={}.hasOwnProperty;function ite(e,t){const n=t||{};function r(o,...s){let l=r.invalid;const u=r.handlers;if(o&&aR.call(o,e)){const d=String(o[e]);l=aR.call(u,d)?u[d]:r.unknown}if(l)return l.call(this,o,...s)}return r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r}const ote=/["&'<>`]/g,ate=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,ste=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,lte=/[|\\{}()[\]^$+*?.]/g,sR=new WeakMap;function cte(e,t){if(e=e.replace(t.subset?ute(t.subset):ote,r),t.subset||t.escapeOnly)return e;return e.replace(ate,n).replace(ste,r);function n(o,s,l){return t.format((o.charCodeAt(0)-55296)*1024+o.charCodeAt(1)-56320+65536,l.charCodeAt(s+2),t)}function r(o,s,l){return t.format(o.charCodeAt(0),l.charCodeAt(s+1),t)}}function ute(e){let t=sR.get(e);return t||(t=dte(e),sR.set(e,t)),t}function dte(e){const t=[];let n=-1;for(;++n<e.length;)t.push(e[n].replace(lte,"\\$&"));return new RegExp("(?:"+t.join("|")+")","g")}const fte=/[\dA-Fa-f]/;function hte(e,t,n){const r="&#x"+e.toString(16).toUpperCase();return n&&t&&!fte.test(String.fromCharCode(t))?r:r+";"}const pte=/\d/;function mte(e,t,n){const r="&#"+String(e);return n&&t&&!pte.test(String.fromCharCode(t))?r:r+";"}const gte=["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:"€"},yte=["cent","copy","divide","gt","lt","not","para","times"],xL={}.hasOwnProperty,rb={};let sf;for(sf in _y)xL.call(_y,sf)&&(rb[_y[sf]]=sf);const vte=/[^\dA-Za-z]/;function bte(e,t,n,r){const o=String.fromCharCode(e);if(xL.call(rb,o)){const s=rb[o],l="&"+s;return n&&gte.includes(s)&&!yte.includes(s)&&(!r||t&&t!==61&&vte.test(String.fromCharCode(t)))?l:l+";"}return""}function _te(e,t,n){let r=hte(e,t,n.omitOptionalSemicolons),o;if((n.useNamedReferences||n.useShortestReferences)&&(o=bte(e,t,n.omitOptionalSemicolons,n.attribute)),(n.useShortestReferences||!o)&&n.useShortestReferences){const s=mte(e,t,n.omitOptionalSemicolons);s.length<r.length&&(r=s)}return o&&(!n.useShortestReferences||o.length<r.length)?o:r}function Ts(e,t){return cte(e,Object.assign({format:_te},t))}const Ete=/^>|^->|<!--|-->|--!>|<!-$/g,Ste=[">"],xte=["<",">"];function Ate(e,t,n,r){return r.settings.bogusComments?"<?"+Ts(e.value,Object.assign({},r.settings.characterReferences,{subset:Ste}))+">":"<!--"+e.value.replace(Ete,o)+"-->";function o(s){return Ts(s,Object.assign({},r.settings.characterReferences,{subset:xte}))}}function wte(e,t,n,r){return"<!"+(r.settings.upperDoctype?"DOCTYPE":"doctype")+(r.settings.tightDoctype?"":" ")+"html>"}function lR(e,t){const n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let r=0,o=n.indexOf(t);for(;o!==-1;)r++,o=n.indexOf(t,o+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 Cte(e){return e.join(" ").trim()}const Rte=/[ \t\n\f\r]/g;function e0(e){return typeof e=="object"?e.type==="text"?cR(e.value):!1:cR(e)}function cR(e){return e.replace(Rte,"")===""}const Yt=wL(1),AL=wL(-1),kte=[];function wL(e){return t;function t(n,r,o){const s=n?n.children:kte;let l=(r||0)+e,u=s[l];if(!o)for(;u&&e0(u);)l+=e,u=s[l];return u}}const Nte={}.hasOwnProperty;function TL(e){return t;function t(n,r,o){return Nte.call(e,n.tagName)&&e[n.tagName](n,r,o)}}const t0=TL({body:Ote,caption:Ey,colgroup:Ey,dd:Pte,dt:jte,head:Ey,html:Ite,li:Lte,optgroup:Mte,option:zte,p:Dte,rp:uR,rt:uR,tbody:Vte,td:dR,tfoot:Ute,th:dR,thead:Bte,tr:Fte});function Ey(e,t,n){const r=Yt(n,t,!0);return!r||r.type!=="comment"&&!(r.type==="text"&&e0(r.value.charAt(0)))}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!=="comment"}function Dte(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 Lte(e,t,n){const r=Yt(n,t);return!r||r.type==="element"&&r.tagName==="li"}function jte(e,t,n){const r=Yt(n,t);return!!(r&&r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd"))}function Pte(e,t,n){const r=Yt(n,t);return!r||r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd")}function uR(e,t,n){const r=Yt(n,t);return!r||r.type==="element"&&(r.tagName==="rp"||r.tagName==="rt")}function Mte(e,t,n){const r=Yt(n,t);return!r||r.type==="element"&&r.tagName==="optgroup"}function zte(e,t,n){const r=Yt(n,t);return!r||r.type==="element"&&(r.tagName==="option"||r.tagName==="optgroup")}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){const r=Yt(n,t);return!r||r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot")}function Ute(e,t,n){return!Yt(n,t)}function Fte(e,t,n){const r=Yt(n,t);return!r||r.type==="element"&&r.tagName==="tr"}function dR(e,t,n){const r=Yt(n,t);return!r||r.type==="element"&&(r.tagName==="td"||r.tagName==="th")}const Hte=TL({body:Kte,colgroup:qte,head:Gte,html:$te,tbody:Wte});function $te(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 Kte(e){const t=Yt(e,-1,!0);return!t||t.type!=="comment"&&!(t.type==="text"&&e0(t.value.charAt(0)))&&!(t.type==="element"&&(t.tagName==="meta"||t.tagName==="link"||t.tagName==="script"||t.tagName==="style"||t.tagName==="template"))}function qte(e,t,n){const r=AL(n,t),o=Yt(e,-1,!0);return n&&r&&r.type==="element"&&r.tagName==="colgroup"&&t0(r,n.children.indexOf(r),n)?!1:!!(o&&o.type==="element"&&o.tagName==="col")}function Wte(e,t,n){const r=AL(n,t),o=Yt(e,-1);return n&&r&&r.type==="element"&&(r.tagName==="thead"||r.tagName==="tbody")&&t0(r,n.children.indexOf(r),n)?!1:!!(o&&o.type==="element"&&o.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 Zte(e,t,n,r){const o=r.schema,s=o.space==="svg"?!1:r.settings.omitOptionalTags;let l=o.space==="svg"?r.settings.closeEmptyElements:r.settings.voids.includes(e.tagName.toLowerCase());const u=[];let d;o.space==="html"&&e.tagName==="svg"&&(r.schema=SL);const f=Yte(r,e.properties),p=r.all(o.space==="html"&&e.tagName==="template"?e.content:e);return r.schema=o,p&&(l=!1),(f||!s||!Hte(e,t,n))&&(u.push("<",e.tagName,f?" "+f:""),l&&(o.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||!t0(e,t,n))&&u.push("</"+e.tagName+">"),u.join("")}function Yte(e,t){const n=[];let r=-1,o;if(t){for(o in t)if(t[o]!==null&&t[o]!==void 0){const s=Xte(e,o,t[o]);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 Xte(e,t,n){const r=ete(e.schema,t),o=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=Ts(r.attribute,Object.assign({},e.settings.characterReferences,{subset:lf.name[o][s]}));return n===!0||(n=Array.isArray(n)?(r.commaSeparated?Tte:Cte)(n,{padLeft:!e.settings.tightCommaSeparatedLists}):String(n),e.settings.collapseEmptyAttributes&&!n)?d:(e.settings.preferUnquoted&&(u=Ts(n,Object.assign({},e.settings.characterReferences,{attribute:!0,subset:lf.unquoted[o][s]}))),u!==n&&(e.settings.quoteSmart&&lR(n,l)>lR(n,e.alternative)&&(l=e.alternative),u=l+Ts(n,Object.assign({},e.settings.characterReferences,{subset:(l==="'"?lf.single:lf.double)[o][s],attribute:!0}))+l),d+(u&&"="+u))}const Qte=["<","&"];function CL(e,t,n,r){return n&&n.type==="element"&&(n.tagName==="script"||n.tagName==="style")?e.value:Ts(e.value,Object.assign({},r.settings.characterReferences,{subset:Qte}))}function Jte(e,t,n,r){return r.settings.allowDangerousHtml?e.value:CL(e,t,n,r)}function ene(e,t,n,r){return r.all(e)}const tne=ite("type",{invalid:nne,unknown:rne,handlers:{comment:Ate,doctype:wte,element:Zte,raw:Jte,root:ene,text:CL}});function nne(e){throw new Error("Expected node, not `"+e+"`")}function rne(e){const t=e;throw new Error("Cannot compile unknown node `"+t.type+"`")}const ine={},one={},ane=[];function sne(e,t){const n=t||ine,r=n.quote||'"',o=r==='"'?"'":'"';if(r!=='"'&&r!=="'")throw new Error("Invalid quote `"+r+"`, expected `'` or `\"`");return{one:lne,all:cne,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||Wee,characterReferences:n.characterReferences||one,closeSelfClosing:n.closeSelfClosing||!1,closeEmptyElements:n.closeEmptyElements||!1},schema:n.space==="svg"?SL:rte,quote:r,alternative:o}.one(Array.isArray(e)?{type:"root",children:e}:e,void 0,void 0)}function lne(e,t,n){return tne(e,t,n,this)}function cne(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[o,s]of Object.entries(t?.colorReplacements||{}))typeof s=="string"?n[o]=s:o===r&&Object.assign(n,s);return n}function oo(e,t){return e&&(t?.[e?.toLowerCase()]||e)}function une(e){return Array.isArray(e)?e:[e]}async function RL(e){return Promise.resolve(typeof e=="function"?e():e).then(t=>t.default||t)}function n0(e){return!e||["plaintext","txt","text","plain"].includes(e)}function kL(e){return e==="ansi"||n0(e)}function r0(e){return e==="none"}function NL(e){return r0(e)}function IL(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 o=[];for(let s=0;s<n.length;s+=2){const l=t?n[s]+(n[s+1]||""):n[s];o.push([l,r]),r+=n[s].length,r+=n[s+1]?.length||0}return o}function dne(e){const t=Kh(e,!0).map(([o])=>o);function n(o){if(o===e.length)return{line:t.length-1,character:t[t.length-1].length};let s=o,l=0;for(const u of t){if(s<u.length)break;s-=u.length,l++}return{line:l,character:s}}function r(o,s){let l=0;for(let u=0;u<o;u++)l+=t[u].length;return l+=s,l}return{lines:t,indexToPos:n,posToIndex:r}}function fne(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 o=n.getBundledLanguages();return Array.from(r).filter(s=>s&&o[s])}const i0="light-dark()",hne=["color","background-color"];function pne(e,t){let n=0;const r=[];for(const o of t)o>n&&r.push({...e,content:e.content.slice(n,o),offset:e.offset+n}),n=o;return n<e.content.length&&r.push({...e,content:e.content.slice(n),offset:e.offset+n}),r}function mne(e,t){const n=Array.from(t instanceof Set?t:new Set(t)).sort((r,o)=>r-o);return n.length?e.map(r=>r.flatMap(o=>{const s=n.filter(l=>o.offset<l&&l<o.offset+o.content.length).map(l=>l-o.offset).sort((l,u)=>l-u);return s.length?pne(o,s):o})):e}function gne(e,t,n,r,o="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 b=p[v]||"inherit";if(m===0&&r&&hne.includes(v))if(r===i0&&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 T=l[x][v]||"inherit",N=l[A][v]||"inherit";d[v]=`light-dark(${T}, ${N})`,o==="css-vars"&&(d[f(m,v)]=b)}else d[v]=b;else o==="css-vars"&&(d[f(m,v)]=b)}}),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 ib(e){return typeof e=="string"?e:Object.entries(e).map(([t,n])=>`${t}:${n}`).join(";")}const OL=new WeakMap;function qh(e,t){OL.set(e,t)}function Zc(e){return OL.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(une(n).map(r=>[r,Jv])),t)}constructor(...t){if(t.length===2){const[n,r]=t;this.lang=r,this._stacks=n}else{const[n,r,o]=t;this.lang=r,this._stacks={[o]:n}}}getInternalStack(t=this.theme){return this._stacks[t]}getScopes(t=this.theme){return yne(this._stacks[t])}toJSON(){return{lang:this.lang,theme:this.theme,themes:this.themes,scopes:this.getScopes()}}}function yne(e){const t=[],n=new Set;function r(o){if(n.has(o))return;n.add(o);const s=o?.nameScopesList?.scopeName;s&&t.push(s),o.parent&&r(o.parent)}return r(e),t}function vne(e,t){if(!(e instanceof el))throw new Ut("Invalid grammar state");return e.getInternalStack(t)}function bne(){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{...o.indexToPos(l),offset:l}}else{const u=o.lines[l.line];if(u===void 0)throw new Ut(`Invalid decoration position ${JSON.stringify(l)}. Lines length: ${o.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:o.posToIndex(l.line,d)}}};const o=dne(n.source),s=(n.options.decorations||[]).map(l=>({...l,start:r(l.start),end:r(l.end)}));_ne(s),e.set(n.meta,{decorations:s,converter:o,source:n.source})}return e.get(n.meta)}return{name:"shiki:decorations",tokens(n){if(!this.options.decorations?.length)return;const o=t(this).decorations.flatMap(l=>[l.start.offset,l.end.offset]);return mne(n,o)},code(n){if(!this.options.decorations?.length)return;const r=t(this),o=Array.from(n.children).filter(p=>p.type==="element"&&p.tagName==="span");if(o.length!==r.converter.lines.length)throw new Ut(`Number of lines in code element (${o.length}) does not match the number of lines in the source (${r.converter.lines.length}). Failed to apply decorations.`);function s(p,m,v,b){const x=o[p];let A="",T=-1,N=-1;if(m===0&&(T=0),v===0&&(N=0),v===Number.POSITIVE_INFINITY&&(N=x.children.length),T===-1||N===-1)for(let w=0;w<x.children.length;w++)A+=DL(x.children[w]),T===-1&&A.length===m&&(T=w+1),N===-1&&A.length===v&&(N=w+1);if(T===-1)throw new Ut(`Failed to find start index for decoration ${JSON.stringify(b.start)}`);if(N===-1)throw new Ut(`Failed to find end index for decoration ${JSON.stringify(b.end)}`);const E=x.children.slice(T,N);if(!b.alwaysWrap&&E.length===x.children.length)u(x,b,"line");else if(!b.alwaysWrap&&E.length===1&&E[0].type==="element")u(E[0],b,"token");else{const w={type:"element",tagName:"span",properties:{},children:E};u(w,b,"wrapper"),x.children.splice(T,E.length,w)}}function l(p,m){o[p]=u(o[p],m,"line")}function u(p,m,v){const b=m.properties||{},x=m.transform||(A=>A);return p.tagName=m.tagName||"span",p.properties={...p.properties,...b,class:p.properties.class},m.properties?.class&&IL(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 b=m.line+1;b<v.line;b++)d.unshift(()=>l(b,p));s(v.line,0,v.character,p)}}d.forEach(p=>p())}}}function _ne(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 o=e[r],s=n.start.offset<=o.start.offset&&o.start.offset<n.end.offset,l=n.start.offset<o.end.offset&&o.end.offset<=n.end.offset,u=o.start.offset<=n.start.offset&&n.start.offset<o.end.offset,d=o.start.offset<n.end.offset&&n.end.offset<=o.end.offset;if(s||l||u||d){if(s&&l||u&&d||u&&n.start.offset===n.end.offset||l&&o.start.offset===o.end.offset)continue;throw new Ut(`Decorations ${JSON.stringify(n.start)} and ${JSON.stringify(o.start)} intersect.`)}}}}function DL(e){return e.type==="text"?e.value:e.type==="element"?e.children.map(DL).join(""):""}const Ene=[bne()];function fh(e){const t=Sne(e.transformers||[]);return[...t.pre,...t.normal,...t.post,...Ene]}function Sne(e){const t=[],n=[],r=[];for(const o of e)switch(o.enforce){case"pre":t.push(o);break;case"post":n.push(o);break;default:r.push(o)}return{pre:t,post:n,normal:r}}var na=["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 xne(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 fR(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 Ane(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 o=Sy[r-20];o&&(t.push({type:"resetDecoration",value:o}),o==="dim"&&t.push({type:"resetDecoration",value:"bold"}))}else if(r<=37)t.push({type:"setForegroundColor",value:{type:"named",name:na[r-30]}});else if(r===38){const o=fR(e);o&&t.push({type:"setForegroundColor",value:o})}else if(r===39)t.push({type:"resetForegroundColor"});else if(r<=47)t.push({type:"setBackgroundColor",value:{type:"named",name:na[r-40]}});else if(r===48){const o=fR(e);o&&t.push({type:"setBackgroundColor",value:o})}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:na[r-90+8]}}):r>=100&&r<=107&&t.push({type:"setBackgroundColor",value:{type:"named",name:na[r-100+8]}})}return t}function wne(){let e=null,t=null,n=new Set;return{parse(r){const o=[];let s=0;do{const l=xne(r,s),u=l.sequence?r.substring(s,l.startPosition):r.substring(s);if(u.length>0&&o.push({value:u,foreground:e,background:t,decorations:new Set(n)}),l.sequence){const d=Ane(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 o}}}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 Cne(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 o(){if(r)return r;r=[];for(let f=0;f<na.length;f++)r.push(t(na[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 o()[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 Rne(e,t,n){const r=uh(e,n),o=Kh(t),s=Cne(Object.fromEntries(na.map(u=>[u,e.colors?.[`terminal.ansi${u[0].toUpperCase()}${u.substring(1)}`]]))),l=wne();return o.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=oo(f,r),p=oo(p,r),d.decorations.has("dim")&&(f=kne(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 kne(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 o0(e,t,n={}){const{lang:r="text",theme:o=e.getLoadedThemes()[0]}=n;if(n0(r)||r0(o))return Kh(t).map(d=>[{content:d[0],offset:d[1]}]);const{theme:s,colorMap:l}=e.setTheme(o);if(r==="ansi")return Rne(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 Ine(t,u,s,l,n)}function Nne(...e){if(e.length===2)return Zc(e[1]);const[t,n,r={}]=e,{lang:o="text",theme:s=t.getLoadedThemes()[0]}=r;if(n0(o)||r0(s))throw new Ut("Plain language does not have grammar state");if(o==="ansi")throw new Ut("ANSI language does not have grammar state");const{theme:l,colorMap:u}=t.setTheme(s),d=t.getLanguage(o);return new el(hh(n,d,l,u,r).stateStack,d.name,l.name)}function Ine(e,t,n,r,o){const s=hh(e,t,n,r,o),l=new el(hh(e,t,n,r,o).stateStack,t.name,n.name);return qh(s.tokens,l),s.tokens}function hh(e,t,n,r,o){const s=uh(n,o),{tokenizeMaxLineLength:l=0,tokenizeTimeLimit:u=500}=o,d=Kh(e);let f=o.grammarState?vne(o.grammarState,n.name)??Jv:o.grammarContextCode!=null?hh(o.grammarContextCode,t,n,r,{...o,grammarState:void 0,grammarContextCode:void 0}).stateStack:Jv,p=[];const m=[];for(let v=0,b=d.length;v<b;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 T,N,E;o.includeExplanation&&(T=t.tokenizeLine(x,f,u),N=T.tokens,E=0);const w=t.tokenizeLine2(x,f,u),R=w.tokens.length/2;for(let C=0;C<R;C++){const I=w.tokens[2*C],D=C+1<R?w.tokens[2*C+2]:x.length;if(I===D)continue;const L=w.tokens[2*C+1],V=oo(r[Ls.getForeground(L)],s),H=Ls.getFontStyle(L),Z={content:x.substring(I,D),offset:A+I,color:V,fontStyle:H};if(o.includeExplanation){const Q=[];if(o.includeExplanation!=="scopeName")for(const q of n.settings){let oe;switch(typeof q.scope){case"string":oe=q.scope.split(/,/).map(z=>z.trim());break;case"object":oe=q.scope;break;default:continue}Q.push({settings:q,selectors:oe.map(z=>z.split(/ /))})}Z.explanation=[];let le=0;for(;I+le<D;){const q=N[E],oe=x.substring(q.startIndex,q.endIndex);le+=oe.length,Z.explanation.push({content:oe,scopes:o.includeExplanation==="scopeName"?One(q.scopes):Dne(Q,q.scopes)}),E+=1}}p.push(Z)}m.push(p),p=[],f=w.ruleStack}return{tokens:m,stateStack:f}}function One(e){return e.map(t=>({scopeName:t}))}function Dne(e,t){const n=[];for(let r=0,o=t.length;r<o;r++){const s=t[r];n[r]={scopeName:s,themeMatches:jne(e,s,t.slice(0,r))}}return n}function hR(e,t){return e===t||t.substring(0,e.length)===e&&t[e.length]==="."}function Lne(e,t,n){if(!hR(e[e.length-1],t))return!1;let r=e.length-2,o=n.length-1;for(;r>=0&&o>=0;)hR(e[r],n[o])&&(r-=1),o-=1;return r===-1}function jne(e,t,n){const r=[];for(const{selectors:o,settings:s}of e)for(const l of o)if(Lne(l,t,n)){r.push(s);break}return r}function LL(e,t,n){const r=Object.entries(n.themes).filter(d=>d[1]).map(d=>({color:d[0],theme:d[1]})),o=r.map(d=>{const f=o0(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=Pne(...o.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((b,x)=>{const{content:A,explanation:T,offset:N,...E}=b[f][m];v.variants[r[x].color]=E}),v})),u=o[0].state?new el(Object.fromEntries(o.map(d=>[d.theme,d.state?.getInternalStack(d.theme)])),o[0].state.lang):void 0;return u&&qh(l,u),l}function Pne(...e){const t=e.map(()=>[]),n=e.length;for(let r=0;r<e[0].length;r++){const o=e.map(d=>d[r]),s=t.map(()=>[]);t.forEach((d,f)=>d.push(s[f]));const l=o.map(()=>0),u=o.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]=o[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,o,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 b=LL(e,t,n);if(d=Zc(b),f&&i0!==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=b.map(N=>N.map(E=>gne(E,A,p,f,m))),d&&qh(s,d);const T=v.map(N=>uh(N.theme,n));o=pR(v,x,T,p,f,"fg",m),r=pR(v,x,T,p,f,"bg",m),l=`shiki-themes ${x.map(N=>N.name).join(" ")}`,u=f?void 0:[o,r].join(";")}else if("theme"in n){const f=uh(n.theme,n);s=o0(e,t,n);const p=e.getTheme(n.theme);r=oo(p.bg,f),o=oo(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:o,bg:r,themeName:l,rootStyle:u,grammarState:d}}function pR(e,t,n,r,o,s,l){return e.map((u,d)=>{const f=oo(t[d][s],n[d])||"inherit",p=`${r+u.color}${s==="bg"?"-bg":""}:${f}`;if(d===0&&o){if(o===i0&&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 b=oo(t[m][s],n[m])||"inherit",x=oo(t[v][s],n[v])||"inherit";return`light-dark(${b}, ${x});${p}`}return f}return l==="css-vars"?p:null}).filter(u=>!!u).join(";")}function mh(e,t,n,r={meta:{},options:n,codeToHast:(o,s)=>mh(e,o,s),codeToTokens:(o,s)=>ph(e,o,s)}){let o=t;for(const x of fh(n))o=x.preprocess?.call(r,o,n)||o;let{tokens:s,fg:l,bg:u,themeName:d,rootStyle:f,grammarState:p}=ph(e,o,n);const{mergeWhitespaces:m=!0,mergeSameStyleTokens:v=!1}=n;m===!0?s=zne(s):m==="never"&&(s=Bne(s)),v&&(s=Vne(s));const b={...r,get source(){return o}};for(const x of fh(n))s=x.tokens?.call(b,s)||s;return Mne(s,{...n,fg:l,bg:u,themeName:d,rootStyle:f},b,p)}function Mne(e,t,n,r=Zc(e)){const o=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:IL,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 T={type:"element",tagName:"span",properties:{class:"line"},children:[]},N=0;for(const E of x){let w={type:"element",tagName:"span",properties:{...E.htmlAttrs},children:[{type:"text",value:E.content}]};const R=ib(E.htmlStyle||dh(E));R&&(w.properties.style=R);for(const C of o)w=C?.span?.call(v,w,A+1,N,T,E)||w;u==="inline"?l.children.push(w):u==="classic"&&T.children.push(w),N+=E.content.length}if(u==="classic"){for(const E of o)T=E?.line?.call(v,T,A+1)||T;m.push(T),s.push(T)}}),u==="classic"){for(const x of o)p=x?.code?.call(v,p)||p;f.children.push(p);for(const x of o)f=x?.pre?.call(v,f)||f;l.children.push(f)}let b=l;for(const x of o)b=x?.root?.call(v,b)||b;return r&&qh(b,r),b}function zne(e){return e.map(t=>{const n=[];let r="",o=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]?(o||(o=s.offset),r+=s.content):r?(d?n.push({...s,offset:o,content:r+s.content}):n.push({content:r,offset:o},s),o=0,r=""):n.push(s)}),n})}function Bne(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[,o,s,l]=r;if(!o&&!l)return n;const u=[{...n,offset:n.offset+o.length,content:s}];return o&&u.unshift({content:o,offset:n.offset}),l&&u.push({content:l,offset:n.offset+o.length+s.length}),u}))}function Vne(e){return e.map(t=>{const n=[];for(const r of t){if(n.length===0){n.push({...r});continue}const o=n[n.length-1],s=ib(o.htmlStyle||dh(o)),l=ib(r.htmlStyle||dh(r)),u=o.fontStyle&&(o.fontStyle&vn.Underline||o.fontStyle&vn.Strikethrough),d=r.fontStyle&&(r.fontStyle&vn.Underline||r.fontStyle&vn.Strikethrough);!u&&!d&&s===l?o.content+=r.content:n.push({...r})}return n})}const Une=sne;function Fne(e,t,n){const r={meta:{},options:n,codeToHast:(s,l)=>mh(e,s,l),codeToTokens:(s,l)=>ph(e,s,l)};let o=Une(mh(e,t,n,r));for(const s of fh(n))o=s.postprocess?.call(r,o,n)||o;return o}const mR={light:"#333333",dark:"#bbbbbb"},gR={light:"#fffffe",dark:"#1e1e1e"},yR="__shiki_resolved";function a0(e){if(e?.[yR])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"?mR.light:mR.dark),n||(n=t.type==="light"?gR.light:gR.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 o=0;const s=new Map;function l(u){if(s.has(u))return s.get(u);o+=1;const d=`#${o.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,yR,{enumerable:!1,writable:!1,value:!0}),t}async function jL(e){return Array.from(new Set((await Promise.all(e.filter(t=>!kL(t)).map(async t=>await RL(t).then(n=>Array.isArray(n)?n:[n])))).flat()))}async function PL(e){return(await Promise.all(e.map(async n=>NL(n)?null:a0(await RL(n))))).filter(n=>!!n)}let Hne=3;function $ne(e,t=3){t>Hne||console.trace(`[SHIKI DEPRECATE]: ${e}`)}let _s=class extends Error{constructor(t){super(t),this.name="ShikiError"}};class Gne extends qee{constructor(t,n,r,o={}){super(t),this._resolver=t,this._themes=n,this._langs=r,this._alias=o,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=oh.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 o=this.loadGrammarWithConfiguration(t.scopeName,1,r);if(o.name=t.name,this._resolvedGrammars.set(t.name,o),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 o of t)this.resolveEmbeddedLanguages(o);const n=Array.from(this._langGraph.entries()),r=n.filter(([o,s])=>!s);if(r.length){const o=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 ${o.map(([s])=>`\`${s}\``).join(", ")}`)}for(const[o,s]of n)this._resolver.addLanguage(s);for(const[o,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 Kne{_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 o=1;o<=n.length;o++){const s=n.slice(0,o).join(".");r=[...r,...this._injections.get(s)||[]]}return r}}let hc=0;function qne(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),o=new Kne(e.engine,n),s=new Gne(o,r,n,e.langAlias);let l;function u(E){T();const w=s.getGrammar(typeof E=="string"?E:E.name);if(!w)throw new _s(`Language \`${E}\` not found, you may need to load it first`);return w}function d(E){if(E==="none")return{bg:"",fg:"",name:"none",settings:[],type:"dark"};T();const w=s.getTheme(E);if(!w)throw new _s(`Theme \`${E}\` not found, you may need to load it first`);return w}function f(E){T();const w=d(E);l!==E&&(s.setTheme(w),l=E);const R=s.getColorMap();return{theme:w,colorMap:R}}function p(){return T(),s.getLoadedThemes()}function m(){return T(),s.getLoadedLanguages()}function v(...E){T(),s.loadLanguages(E.flat(1))}async function b(...E){return v(await jL(E))}function x(...E){T();for(const w of E.flat(1))s.loadTheme(w)}async function A(...E){return T(),x(await PL(E))}function T(){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:b,loadLanguageSync:v,loadTheme:A,loadThemeSync:x,dispose:N,[Symbol.dispose]:N}}async function Wne(e){e.engine||$ne("`engine` option is required. Use `createOnigurumaEngine` or `createJavaScriptRegexEngine` to create an engine.");const[t,n,r]=await Promise.all([PL(e.themes||[]),jL(e.langs||[]),e.engine]);return qne({...e,themes:t,langs:n,engine:r})}async function Zne(e){const t=await Wne(e);return{getLastGrammarState:(...n)=>Nne(t,...n),codeToTokensBase:(n,r)=>o0(t,n,r),codeToTokensWithThemes:(n,r)=>LL(t,n,r),codeToTokens:(n,r)=>ph(t,n,r),codeToHast:(n,r)=>mh(t,n,r),codeToHtml:(n,r)=>Fne(t,n,r),getBundledLanguages:()=>({}),getBundledThemes:()=>({}),...t,getInternalContext:()=>t}}function Yne(e){const t=e.langs,n=e.themes,r=e.engine;async function o(s){function l(m){if(typeof m=="string"){if(kL(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(NL(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 Zne({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 o}function Xne(e){let t;async function n(r={}){if(t){const o=await t;return await Promise.all([o.loadTheme(...r.themes||[]),o.loadLanguage(...r.langs||[])]),o}else return t=e({...r,themes:r.themes||[],langs:r.langs||[]}),t}return n}function Qne(e,t){const n=Xne(e);async function r(o,s){const l=await n({langs:[s.lang],themes:"theme"in s?[s.theme]:Object.values(s.themes)}),u=await t?.guessEmbeddedLanguages?.(o,s.lang,l);return u&&await l.loadLanguage(...u),l}return{getSingletonHighlighter(o){return n(o)},async codeToHtml(o,s){return(await r(o,s)).codeToHtml(o,s)},async codeToHast(o,s){return(await r(o,s)).codeToHast(o,s)},async codeToTokens(o,s){return(await r(o,s)).codeToTokens(o,s)},async codeToTokensBase(o,s){return(await r(o,s)).codeToTokensBase(o,s)},async codeToTokensWithThemes(o,s){return(await r(o,s)).codeToTokensWithThemes(o,s)},async getLastGrammarState(o,s){return(await n({langs:[s.lang],themes:[s.theme]})).getLastGrammarState(o,s)}}}const ML=[{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"),[]))}],Jne=Object.fromEntries(ML.map(e=>[e.id,e.import])),ere=Object.fromEntries(ML.flatMap(e=>e.aliases?.map(t=>[t,e.import])||[])),tre={...Jne,...ere},nre=[{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"),[]))}],rre=Object.fromEntries(nre.map(e=>[e.id,e.import]));class s0 extends Error{constructor(t){super(t),this.name="ShikiError"}}function ire(){return 2147483648}function ore(){return typeof performance<"u"?performance.now():Date.now()}const are=(e,t)=>e+(t-e%t)%t;async function sre(e){let t,n;const r={};function o(b){n=b,r.HEAPU8=new Uint8Array(b),r.HEAPU32=new Uint32Array(b)}function s(b,x,A){r.HEAPU8.copyWithin(b,x,x+A)}function l(b){try{return t.grow(b-n.byteLength+65535>>>16),o(t.buffer),1}catch{}}function u(b){const x=r.HEAPU8.length;b=b>>>0;const A=ire();if(b>A)return!1;for(let T=1;T<=4;T*=2){let N=x*(1+.2/T);N=Math.min(N,b+100663296);const E=Math.min(A,are(Math.max(b,N),65536));if(l(E))return!0}return!1}const d=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0;function f(b,x,A=1024){const T=x+A;let N=x;for(;b[N]&&!(N>=T);)++N;if(N-x>16&&b.buffer&&d)return d.decode(b.subarray(x,N));let E="";for(;x<N;){let w=b[x++];if(!(w&128)){E+=String.fromCharCode(w);continue}const R=b[x++]&63;if((w&224)===192){E+=String.fromCharCode((w&31)<<6|R);continue}const C=b[x++]&63;if((w&240)===224?w=(w&15)<<12|R<<6|C:w=(w&7)<<18|R<<12|C<<6|b[x++]&63,w<65536)E+=String.fromCharCode(w);else{const I=w-65536;E+=String.fromCharCode(55296|I>>10,56320|I&1023)}}return E}function p(b,x){return b?f(r.HEAPU8,b,x):""}const m={emscripten_get_now:ore,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,o(t.buffer),Object.assign(r,x),r.UTF8ToString=p}return await v(),r}var lre=Object.defineProperty,cre=(e,t,n)=>t in e?lre(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Wt=(e,t,n)=>cre(e,typeof t!="symbol"?t+"":t,n);let nn=null;function ure(e){throw new s0(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),o=r!==n,s=o?new Uint32Array(n+1):null;o&&(s[n]=r);const l=o?new Uint32Array(r+1):null;o&&(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 b=t.charCodeAt(f+1);b>=56320&&b<=57343&&(m=(p-55296<<10)+65536|b-56320,v=!0)}o&&(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,o=t.length;r<o;r++){const s=t.charCodeAt(r);let l=s,u=!1;if(s>=55296&&s<=56319&&r+1<o){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 s0("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 zL=Zh;class dre{constructor(t){if(Wt(this,"_onigBinding"),Wt(this,"_ptr"),!nn)throw new s0("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 o=nn.omalloc(4*t.length);nn.HEAPU32.set(n,o/4);const s=nn.omalloc(4*t.length);nn.HEAPU32.set(r,s/4);const l=nn.createOnigScanner(o,s,t.length);for(let u=0,d=t.length;u<d;u++)nn.ofree(n[u]);nn.ofree(s),nn.ofree(o),l===0&&ure(nn),this._onigBinding=nn,this._ptr=l}dispose(){this._onigBinding.freeOnigScanner(this._ptr)}findNextMatchSync(t,n,r){let o=0;if(typeof r=="number"&&(o=r),typeof t=="string"){t=new zL(t);const s=this._findNextMatchSync(t,n,!1,o);return t.dispose(),s}return this._findNextMatchSync(t,n,!1,o)}_findNextMatchSync(t,n,r,o){const s=this._onigBinding,l=s.findNextOnigScannerMatch(this._ptr,t.id,t.ptr,t.utf8Length,t.convertUtf16OffsetToUtf8(n),o);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 b=t.convertUtf8OffsetToUtf16(u[d++]),x=t.convertUtf8OffsetToUtf16(u[d++]);m[v]={start:b,end:x,length:x-b}}return{index:f,captureIndices:m}}}function fre(e){return typeof e.instantiator=="function"}function hre(e){return typeof e.default=="function"}function pre(e){return typeof e.data<"u"}function mre(e){return typeof Response<"u"&&e instanceof Response}function gre(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 yre(e){if(cf)return cf;async function t(){nn=await sre(async n=>{let r=e;return r=await r,typeof r=="function"&&(r=await r(n)),typeof r=="function"&&(r=await r(n)),fre(r)?r=await r.instantiator(n):hre(r)?r=await r.default(n):(pre(r)&&(r=r.data),mre(r)?typeof WebAssembly.instantiateStreaming=="function"?r=await vre(r)(n):r=await bre(r)(n):gre(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 vre(e){return t=>WebAssembly.instantiateStreaming(e,t)}function bre(e){return async t=>{const n=await e.arrayBuffer();return WebAssembly.instantiate(n,t)}}async function _re(e){return e&&await yre(e),{createScanner(t){return new dre(t.map(n=>typeof n=="string"?n:n.source))},createString(t){return new zL(t)}}}const Ere=Yne({langs:tre,themes:rre,engine:()=>_re(j(()=>import("./wasm-CG6Dc4jp.js"),[]))}),{codeToHtml:Sre}=Qne(Ere,{guessEmbeddedLanguages:fne}),xre=({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))})})}),Are=(({children:e,lang:t,isDarkMode:n,onChange:r,...o})=>{const[s,l]=S.useState(null),u=S.useMemo(()=>({lang:t,theme:n?"github-dark":"github-light",transformers:[XJ(),JJ(),oee(),QJ(),KJ(),WJ()]}),[t,n]);return S.useEffect(()=>{Sre(e,u).then(d=>l(d)).catch(d=>console.error(d))},[u,e]),s?y.jsx("div",{dangerouslySetInnerHTML:{__html:s},...o,style:{backgroundColor:"transparent",minWidth:0,overflow:"auto"}}):y.jsx(xre,{children:e})}),wre=({className:e,onChange:t,isEditable:n,...r})=>y.jsx(Are,{className:ye("flex w-full",e),contentEditable:n,onInput:o=>t?.(o.currentTarget.textContent??""),...r}),BL=S.createContext({packageManager:"npm",setPackageManager:()=>{},codeFormat:"typescript",setCodeFormat:()=>{},contentDeclarationFormat:"typescript",setContentDeclarationFormat:()=>{}}),Yh=()=>S.useContext(BL),Tre=({children:e})=>{const[t,n]=kc("packageManager","npm"),[r,o]=kc("codeFormat","typescript"),[s,l]=kc("contentDeclarationFormat","typescript");return y.jsx(BL,{value:{packageManager:t,setPackageManager:n,codeFormat:r,setCodeFormat:o,contentDeclarationFormat:s,setContentDeclarationFormat:l},children:e})},Cre=({children:e,...t})=>{const{packageManager:n,codeFormat:r,contentDeclarationFormat:o}=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=o===t.contentDeclarationFormat;return(s||l)&&(u||d)&&(f||p)?e:y.jsx(y.Fragment,{})},Rre=()=>{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"})]})]})},kre=()=>{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"})]})]})},ob=({children:e,className:t,identifier:n,...r})=>y.jsx("div",{className:ye("group/popover relative flex cursor-pointer",t),"aria-label":`Popover ${n}`,id:`unrollable-panel-button-${n}`,"aria-haspopup":!0,...r,children:e});var VL=(e=>(e.START="start",e.END="end",e))(VL||{});const Nre=({children:e,isHidden:t=void 0,isOverable:n=!0,isFocusable:r=!1,xAlign:o="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:ye("absolute z-[1000] min-w-full ring-neutral ring-1 rounded-md",o==="start"&&"left-0",o==="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&&o==="start"&&"before:left-2",d&&o==="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});ob.Detail=Nre;const Ire=({code:e})=>{const{title:t,description:n}=dn("code");return y.jsxs(ob,{identifier:"copy",children:[y.jsx(Uk,{content:e}),y.jsxs(ob.Detail,{identifier:"copy",className:"flex flex-col gap-3 p-3 min-w-64 text-sm",xAlign:VL.END,children:[y.jsx("strong",{children:t}),y.jsx("p",{className:"text-neutral",children:n})]})]})},Ore=()=>{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"})]})]})},Dre=700,Lre=({children:e,language:t,isDarkMode:n,showHeader:r=!0,showLineNumbers:o=!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,b=u||d||f;return y.jsx(Cre,{packageManager:u,codeFormat:d,contentDeclarationFormat:f,children:y.jsxs(kr,{className:ye("relative text-sm leading-6",o&&"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(Ore,{}),d&&y.jsx(Rre,{}),f&&y.jsx(kre,{})]})]}),y.jsx("div",{className:"sticky top-46 z-20",children:y.jsx("div",{className:ye("absolute bottom-0 right-2 flex h-7 items-center",b&&"h-11"),children:y.jsx(Ire,{code:v})})})]}),y.jsx(XD,{minHeight:Dre,isRollable:p,className:"p-2 overflow-x-auto",children:y.jsx(wre,{lang:t,isDarkMode:n,children:v})})]})})},jre=e=>{const{enable:t=!0,onSwipeLeft:n,onSwipeRight:r,itemIndex:o,itemCount:s,thresholdPct:l=20,touchAction:u="pan-y",disableWhenSelectingText:d=!0}=e,f=S.useRef(null),[p,m]=S.useState(!1),[v,b]=S.useState(0),x=S.useRef({pointerId:null,startX:0,startY:0,lastX:0,axisLocked:!1,isHorizontal:!1}),A=S.useRef(!1),T=()=>{const L=f.current;return L?L.clientWidth:0},N=L=>{const V=o<=0,H=o>=s-1;if(V&&L>0||H&&L<0){const Q=1+Math.abs(L)/30;return L/Q}return L},E=L=>{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),b(0))},w=L=>{if(!t||x.current.pointerId!==L.pointerId)return;const V=T();if(!V)return;const H=L.clientX-x.current.startX,Z=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(H),q=Math.abs(Z);(le>6||q>6)&&(x.current.axisLocked=!0,x.current.isHorizontal=le>q)}if(!x.current.isHorizontal)return;try{L.currentTarget.setPointerCapture(L.pointerId)}catch{}L.preventDefault(),p||m(!0);const Q=H/V*100;b(N(Q)),x.current.lastX=L.clientX},R=L=>{try{L.currentTarget.releasePointerCapture(L.pointerId)}catch{}const V=x.current.isHorizontal,H=v;if(m(!1),b(0),x.current.pointerId=null,x.current.axisLocked=!1,x.current.isHorizontal=!1,A.current){A.current=!1;return}V&&(H>l?r?.():H<-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(()=>{b(0),m(!1)},[o]),{containerRef:f,isDragging:p,dragDeltaPct:v,containerProps:{ref:f,onPointerDown:E,onPointerMove:w,onPointerUp:C,onPointerCancel:I,style:{touchAction:u}}}};var UL=(e=>(e.PRIMARY="primary",e.SECONDARY="secondary",e.DESTRUCTIVE="destructive",e.NEUTRAL="neutral",e.LIGHT="light",e.DARK="dark",e.TEXT="text",e))(UL||{});const Pre=Tn("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"}}),Mre=Tn("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"}}}),zre=({tabs:e,selectedChoice:t,onTabClick:n,color:r="primary",hoverable:o=!1,className:s})=>{const l=S.useRef([]),u=S.useRef(null),{choiceIndicatorPosition:d}=hD(l,void 0,o);return y.jsxs("div",{className:ye(Pre({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:b=>{f.props?.onClick?.(b),n?.(m)},"aria-selected":v,"data-active":v,tabIndex:v?0:-1,ref:b=>{l.current[p]=b}})}),d&&y.jsx("div",{className:ye(Mre({color:r})),style:d,ref:u},`${t}${JSON.stringify(e.map(f=>f.key))}`)]})},FL=S.createContext({tabsValues:{},setTabsValues:(()=>{})}),Bre=()=>S.useContext(FL),Vre=({children:e})=>{const[t,n]=S.useState({});return y.jsx(FL,{value:{tabsValues:t,setTabsValues:n},children:e})},Ure=S.createContext(void 0),Fre=Tn("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"}}),l0=({children:e,...t})=>y.jsx("div",{...t,children:e});l0.displayName="TabItem";const Hre=({defaultTab:e,group:t,variant:n,children:r,className:o,...s})=>{const l=S.Children.toArray(r).filter(C=>S.isValidElement(C)&&C.type===l0),u=l[0]?.props?.value,{tabsValues:d,setTabsValues:f}=Bre(),[p,m]=S.useState(e??u??""),b=(t&&typeof d=="object"?d?.[t]:p)??e??u,x=l.findIndex(C=>C.props.value===b),A=l.length,{containerProps:T,dragDeltaPct:N,isDragging:E}=jre({itemIndex:x,itemCount:A,onSwipeLeft:()=>{const C=Math.min(A-1,x+1),I=l[C]?.props?.value;I&&w(I)},onSwipeRight:()=>{const C=Math.max(0,x-1),I=l[C]?.props?.value;I&&w(I)}}),w=C=>{m(C),typeof f=="function"&&f(I=>({...I,[t]:C}))},R={activeTab:p??u??"",setActiveTab:w};return y.jsx(Ure.Provider,{value:R,children:y.jsxs("div",{className:ye(Fre({variant:n}),o),...s,children:[y.jsx("div",{className:"sticky top-36 z-10 flex gap-3 p-3 bg-background/70 backdrop-blur",children:y.jsx(zre,{selectedChoice:b,tabs:l.map(C=>{const{label:I,value:D,disabled:L}=C.props,V=b===D;return y.jsx("button",{className:ye("px-4 text-sm font-medium rounded-md transition-colors cursor-pointer focus:outline-none py-1",!V&&"text-neutral/70"),"data-active":V,disabled:L,onClick:()=>!L&&w(D),role:"tab","aria-selected":V,"aria-controls":`tabpanel-${D}`,id:`tab-${D}`,children:I},D)}),hoverable:!0,color:UL.TEXT})}),y.jsx("div",{className:"relative w-full min-w-0 overflow-x-clip [clip-path:inset(0)] [-webkit-clip-path:inset(0)]",...T,children:y.jsx("div",{role:"tablist","aria-orientation":"horizontal",className:ye("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,V=I===x;return y.jsx("div",{role:"tabpanel","aria-labelledby":`tab-${D}`,id:`tabpanel-${D}`,"aria-hidden":!V,tabIndex:V?0:-1,"data-active":V,className:ye("w-full min-w-0 p-6 opacity-100 transition-opacity duration-300 ease-in-out",!V&&"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(Hre,{Item:l0}),$re=({className:e,isRollable:t,...n})=>{const[r,o]=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:()=>{o(!0)},label:"Move",Icon:gH})})}),y.jsx(XD,{isRollable:t,className:"max-w-full overflow-x-auto",children:y.jsx("table",{className:ye("max-w-full overflow-x-auto table-auto text-left min-w-full bg-background",e),...n})}),y.jsx(__,{isOpen:r,onClose:()=>o(!1),size:b_.XL,hasCloseButton:!0,children:r?y.jsx("div",{className:"grid",children:y.jsx("table",{className:ye("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},vR=["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"}),bR={amp:"&",apos:"'",gt:">",lt:"<",nbsp:" ",quot:"“"},Gre=["style","script","pre"],Kre=["src","href","data","formAction","srcDoc","action"],qre=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,Wre=/mailto:/i,Zre=/\n{2,}$/,_R=/^(\s*>[\s\S]*?)(?=\n\n|$)/,Yre=/^ *> ?/gm,Xre=/^(?:\[!([^\]]*)\]\n)?([\s\S]*)/,Qre=/^ {2,}\n/,Jre=/^(?:( *[-*_])){3,} *(?:\n *)+\n/,ER=/^(?: {1,3})?(`{3,}|~{3,}) *(\S+)? *([^\n]*?)?\n([\s\S]*?)(?:\1\n?|$)/,SR=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,eie=/^(`+)((?:\\`|(?!\1)`|[^`])+)\1/,tie=/^(?:\n *)*\n/,nie=/\r\n?/g,rie=/^\[\^([^\]]+)](:(.*)((\n+ {4,}.*)|(\n(?!\[\^).+))*)/,iie=/^\[\^([^\]]+)]/,oie=/\f/g,aie=/^---[ \t]*\n(.|\n)*\n---[ \t]*\n/,sie=/^\s*?\[(x|\s)\]/,xR=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,AR=/^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,wR=/^([^\n]+)\n *(=|-){3,} *\n/,wy=/^ *(?!<[a-zA-Z][^ >/]* ?\/>)<([a-zA-Z][^ >/]*) ?((?:[^>]*[^/])?)>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1\b)[\s\S])*?)<\/\1>(?!<\/\1>)\n*/i,lie=/&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi,TR=/^<!--[\s\S]*?(?:-->)/,cie=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,Ty=/^ *<([a-zA-Z][a-zA-Z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,Cy=/^ *<([A-Z][a-zA-Z0-9]*)(?:\s+((?:<.*?>|[^>])*))?>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1\b)[\s\S])*?)<\/\1>(?!<\/\1>)\n*/,uie=/^\{.*\}$/,die=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,fie=/^<([^ >]+@[^ >]+)>/,hie=/^<([^ >]+:\/[^ >]+)>/,pie=/-([a-z])?/gi,CR=/^(\|.*)\n(?: *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*))?\n?/,RR=/^[^\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)`),wie=new RegExp(`^([*_])${Xh(0)}${Qh}\\1(?!\\1)`),Tie=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:<`\\\[!])*/,kR=/^\n+/,NR=/^([ \t]*)/,Cr=1,Au=2,Oie=/(?:^|\n)( *)$/,c0="(?:\\d+\\.)",u0="(?:[*+-])",HL=e=>"( *)("+(e===Cr?c0:u0)+") +",$L=HL(Cr),GL=HL(Au),KL=e=>new RegExp("^"+(e===Cr?$L:GL)),Die=KL(Cr),Lie=KL(Au),qL=e=>new RegExp("^"+(e===Cr?$L:GL)+"[^\\n]*(?:\\n(?!\\1"+(e===Cr?c0:u0)+" )[^\\n]*)*(\\n|$)","gm"),jie=qL(Cr),Pie=qL(Au),WL=e=>{const t=e===Cr?c0:u0;return new RegExp("^( *)("+t+") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1"+t+" (?!"+t+" ))\\n*|\\s*\\n*$)")},ZL=WL(Cr),YL=WL(Au),IR=(e,t)=>{const n=e===Cr,r=n?ZL:YL,o=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(Zre,`
311
+ `).match(o);if(!m)return{items:[],ordered:n,start:p};let v=!1;return{items:m.map((x,A)=>{const T=s.exec(x);if(!T)return[];const N=T[0].length,E=new RegExp("^ {1,"+N+"}","gm"),w=x.replace(E,"").replace(s,""),R=A===m.length-1,I=w.indexOf(`
312
+
313
+ `)!==-1||R&&v;v=I;const D=d.inline,L=d.list;d.list=!0;let V;I?(d.inline=!1,V=Ic(w)+`
314
+
315
+ `):(d.inline=!0,V=Ic(w));const H=u(V,d);return d.inline=D,d.list=L,H}),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"),XL=(e,t,n,r)=>{const o=performance.now(),s=n.inTable;n.inTable=!0;let l=[[]],u="";const d=()=>{if(!u)return;const p=l[l.length-1];p.push.apply(p,t(u,n)),u=""};e.trim().split(/(`[^`]*`|\\\||\|)/).filter(Boolean).forEach((p,m,v)=>{if(p.trim()==="|"&&(d(),r)){m!==0&&m!==v.length-1&&l.push([]);return}u+=p}),d(),n.inTable=s;const f=performance.now()-o;return f>1&&console.log(`parseTableRow: ${f.toFixed(3)}ms, source length: ${e.length}, cells count: ${l.length}`),l},$ie=e=>e.replace(_ie,"").split("|").map(Hie),Gie=(e,t,n)=>{const r=performance.now(),o=e.trim().split(`
316
+ `),s=o.map(u=>XL(u,t,n,!0)),l=performance.now()-r;return l>1&&console.log(`parseTableCells: ${l.toFixed(3)}ms, source length: ${e.length}, rows count: ${o.length}`),s},Kie=(e,t,n)=>{n.inline=!0;const r=e[2]?$ie(e[2]):[],o=e[3]?Gie(e[3],t,n):[],s=XL(e[1],t,n,!!o.length);return n.inline=!1,o.length?{align:r,cells:o,header:s,type:Ie.table}:{children:s.flat(),type:Ie.paragraph}},OR=(e,t)=>e.align[t]==null?{}:{textAlign:e.align[t]},qie=e=>(e.indexOf("-")!==-1&&e.match(cie)===null&&(e=e.replace(pie,(n,r)=>r.toUpperCase())),e),Wie=e=>{const t=performance.now(),n=[];let r="",o=!1,s=!1,l="";if(!e)return n;for(let f=0;f<e.length;f++){const p=e[f];if((p==='"'||p==="'")&&!o&&(s?p===l&&(s=!1,l=""):(s=!0,l=p)),p==="("&&r.endsWith("url")?o=!0:p===")"&&o&&(o=!1),p===";"&&!s&&!o){const m=r.trim();if(m){const v=m.indexOf(":");if(v>0){const b=m.slice(0,v).trim(),x=m.slice(v+1).trim();n.push([b,x])}}r=""}else r+=p}const u=r.trim();if(u){const f=u.indexOf(":");if(f>0){const p=u.slice(0,f).trim(),m=u.slice(f+1).trim();n.push([p,m])}}const d=performance.now()-t;return d>1&&console.log(`parseStyleAttribute: ${d.toFixed(3)}ms, styleString length: ${e.length}, styles count: ${n.length}`),n},DR=(e,t)=>{const n=performance.now();if(!t)return e;const r=e.split(`
317
+ `);let o=!1,s=null;const l=m=>m.match(/^\s*(`{3,}|~{3,})/),u=m=>{const v=l(m);if(!v)return;const b=v[1];o?s&&m.includes(s)&&(o=!1,s=null):(o=!0,s=b)},f=r.map(m=>{if(l(m)){const b=m.startsWith(t)?m.slice(t.length):m;return u(m),b}return o?m:m.startsWith(t)?m.slice(t.length):m}).join(`
318
+ `),p=performance.now()-n;return p>1&&console.log(`trimLeadingWhitespaceOutsideFences: ${p.toFixed(3)}ms, text length: ${e.length}, lines count: ${r.length}`),f},Zie=(e,t,n,r)=>t==="style"?Wie(n).reduce((o,[s,l])=>{const u=s.replace(/(-[a-z])/g,d=>d[1].toUpperCase());return o[u]=r(l,e,s),o},{}):Kre.indexOf(t)!==-1?r(Br(n),e,t):(n.match(uie)&&(n=Br(n.slice(1,n.length-1))),n==="true"?!0:n==="false"?!1:n),Yie=e=>{const t=performance.now(),n=e.replace(nie,`
319
+ `).replace(oie,"").replace(bie," "),r=performance.now()-t;return r>1&&console.log(`normalizeWhitespace: ${r.toFixed(3)}ms, source length: ${e.length}`),n},Xie=e=>{const t=performance.now();var n=Object.keys(e);js.NODE_ENV!=="production"&&n.forEach(s=>{const l=e[s]._order;(typeof l!="number"||!isFinite(l))&&console.warn("intlayer: Invalid order for rule `"+s+"`: "+l)}),n.sort((s,l)=>e[s]._order-e[l]._order||(s<l?-1:1));const r=(s,l={})=>{const u=performance.now();var d=[];if(l.prevCapture=l.prevCapture||"",s.trim())for(;s;)for(var f=0;f<n.length;){var p=n[f],m=e[p];if(m._qualify&&!Uie(s,l,m._qualify)){f++;continue}const x=performance.now();var v=m._match(s,l);const A=performance.now()-x;if(A>1&&console.log(`${p}._match: ${A.toFixed(3)}ms, source length: ${s.length}`),v&&v[0]){s=s.substring(v[0].length);const T=performance.now(),N=m._parse(v,r,l),E=performance.now()-T;E>1&&console.log(`${p}._parse: ${E.toFixed(3)}ms, capture length: ${v[0].length}`),l.prevCapture+=v[0],N.type||(N.type=p),d.push(N);break}f++}l.prevCapture="";const b=performance.now()-u;return b>1&&console.log(`nestedParse: ${b.toFixed(3)}ms, source length: ${s.length}, result count: ${d.length}`),d},o=performance.now()-t;return o>1&&console.log(`parserFor: ${o.toFixed(3)}ms, rules count: ${n.length}`),(s,l)=>r(Yie(s),l)},Ps=e=>(e.inline=1,e),eo=e=>Ps((t,n)=>n.inline?e.exec(t):null),to=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=performance.now(),o=n.inline??!1,s=n.simple??!1;n.inline=!0,n.simple=!0;const l=e(t,n);n.inline=o,n.simple=s;const u=performance.now()-r;return u>1&&console.log(`parseInline: ${u.toFixed(3)}ms, children length: ${t.length}, result count: ${l.length}`),l},eoe=(e,t,n)=>{const r=performance.now(),o=n.inline??!1,s=n.simple??!1;n.inline=!1,n.simple=!0;const l=e(t,n);n.inline=o,n.simple=s;const u=performance.now()-r;return u>1&&console.log(`parseSimpleInline: ${u.toFixed(3)}ms, children length: ${t.length}, result count: ${l.length}`),l},LR=(e,t,n={})=>{const r=performance.now(),o=n.inline||!1;n.inline=!1;const s=e(t,n);n.inline=o;const l=performance.now()-r;return l>1&&console.log(`parseBlock: ${l.toFixed(3)}ms, children length: ${t.length}, result count: ${s.length}`),s},Ry=(e,t,n)=>({children:vc(t,e[2],n)}),ky=()=>({}),Ny=()=>null,QL=e=>(t,n={})=>{const r=performance.now(),o=(u,d={})=>QL(e)(u,d);if(Array.isArray(t)){const u=n.key,d=[];let f=!1;for(let m=0;m<t.length;m++){n.key=m;const v=o(t[m],n),b=typeof v=="string";b&&f?d[d.length-1]=d[d.length-1]+v:v!==null&&d.push(v),f=b}n.key=u;const p=performance.now()-r;return p>1&&console.log(`reactFor (array): ${p.toFixed(3)}ms, ast length: ${t.length}`),d}const s=e(t,o,n),l=performance.now()-r;return l>1&&console.log(`reactFor (single): ${l.toFixed(3)}ms, ast type: ${t.type}`),s},toe=(e,t)=>(n,r,o)=>{const s=performance.now(),l=e[n.type]._render,u=t?t(()=>l?.(n,r,o),n,r,o):l?.(n,r,o),d=performance.now()-s;return d>1&&console.log(`createRenderer: ${d.toFixed(3)}ms, ast type: ${n.type}, hasUserRender: ${!!t}`),u},noe=(...e)=>e.filter(Boolean).join(" "),ab=(e,t,n)=>{let r=e;const o=t.split(".");for(;o.length&&(r=r[o[0]],r!==void 0);)o.shift();return r??n},jR=(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},roe=(e="",t={})=>{t.overrides=t.overrides??{},t.namedCodesToUnicode=t.namedCodesToUnicode?{...bR,...t.namedCodesToUnicode}:bR;const n=t.slugify??pc,r=t.sanitizer??Jie,o=t.createElement??S.createElement,s=[_R,ER,SR,t.enforceAtxHeadings?AR:xR,wR,CR,ZL,YL],l=[...s,RR,wy,TR,Ty,Cy],u=E=>{const w=E.replace(kR,""),R=w.length>2048?w.slice(0,2048):w;return(t.disableParsingRawHTML?[...s,RR,Cy]:l).some(I=>I.test(R))},d=(E,w)=>{if(w.inline||w.simple||w.inHTML&&E.indexOf(`
320
+
321
+ `)===-1&&w.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,w,...R)=>{const C=ab(t.overrides??{},`${E}.props`,{});return o(jR(E,t.overrides??{}),{...w,...C,className:noe(w?.className,C.className)??void 0},...R)},p=E=>{const w=performance.now(),R=E.replace(aie,"");let C=!1;t.forceInline?C=!0:t.forceBlock||(C=vie.test(R)===!1);const I=T(A(C?R:`${Ic(R).replace(kR,"")}
326
+
327
+ `,{inline:C}));for(;typeof I[I.length-1]=="string"&&!I[I.length-1].trim();)I.pop();if(t.wrapper===null){const H=performance.now()-w;return H>1&&console.log(`compile: ${H.toFixed(3)}ms, input length: ${E.length}, inline: ${C}`),I}const D=t.wrapper??(C?"span":"div");let L;if(I.length>1||t.forceWrapper)L=I;else if(I.length===1)if(L=I[0],typeof L=="string"){const H=performance.now()-w;return H>1&&console.log(`compile: ${H.toFixed(3)}ms, input length: ${E.length}, inline: ${C}`),y.jsx("span",{children:L},"outer")}else{const H=performance.now()-w;return H>1&&console.log(`compile: ${H.toFixed(3)}ms, input length: ${E.length}, inline: ${C}`),L}else L=null;const V=performance.now()-w;return V>1&&console.log(`compile: ${V.toFixed(3)}ms, input length: ${E.length}, inline: ${C}`),o(D,{key:"outer"},L)},m=(E,w)=>{const R=performance.now();if(!w||!w.trim())return null;const C=w.match(qre);if(!C)return null;const I=C.reduce((L,V)=>{const H=V.indexOf("=");if(H!==-1){const Z=qie(V.slice(0,H)).trim(),Q=Fie(V.slice(H+1).trim()),le=vR[Z]??Z;if(le==="ref")return L;const q=L[le]=Zie(E,Z,Q,r);typeof q=="string"&&(wy.test(q)||Ty.test(q))&&(L[le]=p(q.trim()))}else V!=="style"&&(L[vR[V]??V]=!0);return L},{}),D=performance.now()-R;return D>1&&console.log(`attrStringToMap: ${D.toFixed(3)}ms, str length: ${w.length}, attributes count: ${C.length}`),I};if(js.NODE_ENV!=="production"){if(typeof e!="string")throw new Error(`intlayer: the first argument must be
328
+ a string`);if(Object.prototype.toString.call(t.overrides)!=="[object Object]")throw new Error(`intlayer: options.overrides (second argument property) must be
329
+ undefined or an object literal with shape:
330
+ {
331
+ htmltagname: {
332
+ component: string|ReactComponent(optional),
333
+ props: object(optional)
334
+ }
335
+ }`)}const v=[],b={},x={[Ie.blockQuote]:{_qualify:[">"],_match:Pr(_R),_order:tt.HIGH,_parse(E,w,R){const C=performance.now(),I=E[0].replace(Yre,"").match(Xre),D=I?.[1],L=I?.[2]??"",V={alert:D,children:w(L,R)},H=performance.now()-C;return H>1&&console.log(`blockQuote._parse: ${H.toFixed(3)}ms, capture length: ${E[0].length}`),V},_render(E,w,R={}){const C=performance.now(),I={key:R?.key};E.alert&&(I.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"}));const D=f("blockquote",I,w(E.children,R)),L=performance.now()-C;return L>1&&console.log(`blockQuote._render: ${L.toFixed(3)}ms, children count: ${E.children.length}, has alert: ${!!E.alert}`),D}},[Ie.breakLine]:{_match:uf(Qre),_order:tt.HIGH,_parse:ky,_render(E,w,R={}){return y.jsx("br",{},R.key)}},[Ie.breakThematic]:{_qualify:E=>{const w=E[0];return w==="-"||w==="*"||w==="_"},_match:Pr(Jre),_order:tt.HIGH,_parse:ky,_render(E,w,R={}){return y.jsx("hr",{},R.key)}},[Ie.codeBlock]:{_qualify:[" "],_match:Pr(SR),_order:tt.MAX,_parse(E){return{type:Ie.codeBlock,lang:void 0,text:Br(Ic(E[0].replace(/^ {4}/gm,"")))}},_render(E,w,R={}){const C=performance.now(),I={...E.attrs??{}},D=E.lang?`lang-${E.lang}`:"lang-plaintext";I.className=I.className?`${I.className} ${D}`:D,E.lang&&!I.lang&&(I.lang=E.lang);const L=f("pre",{key:R.key},f("code",I,E.text)),V=performance.now()-C;return V>1&&console.log(`codeBlock._render: ${V.toFixed(3)}ms, text length: ${E.text.length}, lang: ${E.lang||"none"}`),L}},[Ie.codeFenced]:{_qualify:["```","~~~"],_match:Pr(ER),_order:tt.MAX,_parse(E){const R=E[4];return{attrs:m("code",E[3]??""),lang:E[2]||void 0,text:R,type:Ie.codeBlock}}},[Ie.codeInline]:{_qualify:["`"],_match:to(eie),_order:tt.LOW,_parse(E){return{text:Br(E[2])}},_render(E,w,R={}){const C=performance.now(),I=f("code",{key:R.key},E.text),D=performance.now()-C;return D>1&&console.log(`codeInline._render: ${D.toFixed(3)}ms, text length: ${E.text.length}`),I}},[Ie.footnote]:{_qualify:["[^"],_match:Pr(rie),_order:tt.MAX,_parse(E){return v.push({footnote:E[2],identifier:E[1]}),{}},_render:Ny},[Ie.footnoteReference]:{_qualify:["[^"],_match:eo(iie),_order:tt.HIGH,_parse(E){return{target:`#${n(E[1],pc)}`,text:E[1]}},_render(E,w,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:eo(sie),_order:tt.HIGH,_parse(E){return{completed:E[1].toLowerCase()==="x"}},_render(E,w,R={}){return y.jsx("input",{checked:E.completed,readOnly:!0,type:"checkbox"},R.key)}},[Ie.heading]:{_qualify:["#"],_match:Pr(t.enforceAtxHeadings?AR:xR),_order:tt.HIGH,_parse(E,w,R){const C=performance.now(),I={children:vc(w,E[2],R),id:n(E[2],pc),level:E[1].length},D=performance.now()-C;return D>1&&console.log(`heading._parse: ${D.toFixed(3)}ms, capture length: ${E[0].length}, level: ${E[1].length}`),I},_render(E,w,R={}){const C=performance.now(),I=f(`h${E.level}`,{id:E.id,key:R.key},w(E.children,R)),D=performance.now()-C;return D>1&&console.log(`heading._render: ${D.toFixed(3)}ms, level: ${E.level}, children count: ${E.children.length}, id: ${E.id}`),I}},[Ie.headingSetext]:{_match:Pr(wR),_order:tt.MAX,_parse(E,w,R){return{children:vc(w,E[1],R),level:E[2]==="="?1:2,type:Ie.heading}}},[Ie.htmlBlock]:{_qualify:E=>{if(t.disableParsingRawHTML||E[0]!=="<"||!/^<([a-z][a-z0-9:-]*)\b/.test(E))return!1;const w=E.match(/^<([a-z][a-z0-9:-]*)\b/)?.[1];return w?E.indexOf(`</${w}>`)!==-1:!1},_match:uf(wy),_order:tt.HIGH,_parse(E,w,R){const I=E[3].match(NR)?.[1]??"",D=DR(E[3],I),L=u(D)?LR:vc,V=E[1].toLowerCase(),H=Gre.indexOf(V)!==-1,Z=(H?V:E[1]).trim(),Q={attrs:m(Z,E[2]??""),noInnerParse:H,tag:Z};if(R.inAnchor=R.inAnchor||V==="a",H)Q.text=E[3];else{const le=R.inHTML;R.inHTML=!0,Q.children=L(w,D,R),R.inHTML=le}return R.inAnchor=!1,Q},_render(E,w,R={}){const C=performance.now(),I=f(E.tag,{key:R.key,...E.attrs??{}},E.text??(E.children?w(E.children,R):"")),D=performance.now()-C;return D>1&&console.log(`htmlBlock._render: ${D.toFixed(3)}ms, tag: ${E.tag}, has text: ${!!E.text}, has children: ${!!E.children}`),I}},[Ie.htmlSelfClosing]:{_qualify:E=>t.disableParsingRawHTML||E[0]!=="<"?!1:/^<([a-zA-Z][a-zA-Z0-9:]*)[\s>/]/.test(E),_match:uf(Ty),_order:tt.HIGH,_parse(E){const w=E[1].trim();return{attrs:m(w,E[2]||""),tag:w}},_render(E,w,R={}){const C=performance.now(),I=f(E.tag,{key:R.key,...E.attrs??{}}),D=performance.now()-C;return D>1&&console.log(`htmlSelfClosing._render: ${D.toFixed(3)}ms, tag: ${E.tag}`),I}},[Ie.htmlComment]:{_qualify:["<!--"],_match:uf(TR),_order:tt.HIGH,_parse(){return{}},_render:Ny},[Ie.customComponent]:{_qualify:E=>!!E.match(/^ *<([A-Z][a-zA-Z0-9]*)/),_match:Pr(Cy),_order:tt.MAX,_parse(E,w,R){const I=E[3].match(NR)?.[1]??"",D=DR(E[3],I),L=u(D)?LR:vc,V=E[1],Z={attrs:m(V,E[2]??""),noInnerParse:!1,tag:V};{const Q=R.inHTML;R.inHTML=!0;const le=L(w,D,R);Z.children=le,R.inHTML=Q}return Z},_render(E,w,R={}){const C=jR(E.tag,t.overrides??{});if(typeof C=="function"){const I=E.children?w(E.children,R):null;return C({key:R.key,...E.attrs,children:I})}return o(E.tag,{key:R.key,...E.attrs},E.text??(E.children?w(E.children,R):""))}},[Ie.image]:{_qualify:["!["],_match:to(Vie),_order:tt.HIGH,_parse(E){return{alt:Br(E[1]),target:Br(E[2]),title:Br(E[3])}},_render(E,w,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:eo(Bie),_order:tt.LOW,_parse(E,w,R){return{children:eoe(w,E[1],R),target:Br(E[2]),title:Br(E[3])}},_render(E,w,R={}){return y.jsx("a",{href:r(E.target,"a","href")??void 0,title:E.title,children:w(E.children,R)},R.key)}},[Ie.linkAngleBraceStyleDetector]:{_qualify:["<"],_match:eo(hie),_order:tt.MAX,_parse(E){return{children:[{text:E[1],type:Ie.text}],target:E[1],type:Ie.link}}},[Ie.linkBareUrlDetector]:{_qualify:(E,w)=>w.inAnchor||t.disableAutoLink?!1:Nf(E,"http://")||Nf(E,"https://"),_match:eo(die),_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:eo(fie),_order:tt.MAX,_parse(E){let w=E[1],R=E[1];return Wre.test(R)||(R="mailto:"+R),{children:[{text:w.replace("mailto:",""),type:Ie.text}],target:R,type:Ie.link}}},[Ie.orderedList]:IR(Cr,(E,w,...R)=>f(E,w,...R)),[Ie.unorderedList]:IR(Au,(E,w,...R)=>f(E,w,...R)),[Ie.newlineCoalescer]:{_match:Pr(tie),_order:tt.LOW,_parse:ky,_render(){return`
336
+ `}},[Ie.paragraph]:{_match:Ps(d),_order:tt.LOW,_parse(E,w,R){const C=performance.now(),I=Ry(E,w,R),D=performance.now()-C;return D>1&&console.log(`paragraph._parse: ${D.toFixed(3)}ms, capture length: ${E[0].length}`),I},_render(E,w,R={}){const C=performance.now(),I=y.jsx("p",{children:w(E.children,R)},R.key),D=performance.now()-C;return D>1&&console.log(`paragraph._render: ${D.toFixed(3)}ms, children count: ${E.children.length}`),I}},[Ie.ref]:{_qualify:["["],_match:eo(mie),_order:tt.MAX,_parse(E){return b[E[1]]={target:E[2],title:E[4]},{}},_render:Ny},[Ie.refImage]:{_qualify:["!["],_match:to(gie),_order:tt.MAX,_parse(E){return{alt:E[1]?Br(E[1]):void 0,ref:E[2]}},_render(E,w,R={}){return b[E.ref]?y.jsx("img",{alt:E.alt,src:r(b[E.ref].target,"img","src")??void 0,title:b[E.ref].title},R.key):null}},[Ie.refLink]:{_qualify:E=>E[0]==="["&&E.indexOf("](")===-1,_match:eo(yie),_order:tt.MAX,_parse(E,w,R){return{children:w(E[1],R),fallbackChildren:E[0],ref:E[2]}},_render(E,w,R={}){return b[E.ref]?y.jsx("a",{href:r(b[E.ref].target,"a","href")??void 0,title:b[E.ref].title,children:w(E.children,R)},R.key):y.jsx("span",{children:E.fallbackChildren},R.key)}},[Ie.table]:{_qualify:["|"],_match:Pr(CR),_order:tt.HIGH,_parse(E,w,R){const C=performance.now(),I=Kie(E,w,R),D=performance.now()-C;return D>1&&console.log(`table._parse: ${D.toFixed(3)}ms, capture length: ${E[0].length}`),I},_render(E,w,R={}){const C=performance.now(),I=E,D=f("table",{key:R.key},f("thead",{},f("tr",{},...I.header.map((V,H)=>f("th",{key:H,style:OR(I,H)},w(V,R))))),f("tbody",{},...I.cells.map((V,H)=>f("tr",{key:H},...V.map((Z,Q)=>f("td",{key:Q,style:OR(I,Q)},w(Z,R))))))),L=performance.now()-C;return L>1&&console.log(`table._render: ${L.toFixed(3)}ms, header count: ${I.header.length}, rows count: ${I.cells.length}`),D}},[Ie.text]:{_match:Ps((E,w)=>{let R;return Nf(E,":")&&(R=Rie.exec(E)),R||Iie.exec(E)}),_order:tt.MIN,_parse(E){const w=E[0];return{text:w.indexOf("&")===-1?w:w.replace(lie,(R,C)=>t.namedCodesToUnicode?.[C]??R)}},_render(E){return E.text}},[Ie.textBolded]:{_qualify:["**","__"],_match:to(Aie),_order:tt.MED,_parse(E,w,R){return{children:w(E[2],R)}},_render(E,w,R={}){const C=performance.now(),I=y.jsx("strong",{children:w(E.children,R)},R.key),D=performance.now()-C;return D>1&&console.log(`textBolded._render: ${D.toFixed(3)}ms, children count: ${E.children.length}`),I}},[Ie.textEmphasized]:{_qualify:E=>{const w=E[0];return(w==="*"||w==="_")&&E[1]!==w},_match:to(wie),_order:tt.LOW,_parse(E,w,R){return{children:w(E[2],R)}},_render(E,w,R={}){const C=performance.now(),I=y.jsx("em",{children:w(E.children,R)},R.key),D=performance.now()-C;return D>1&&console.log(`textEmphasized._render: ${D.toFixed(3)}ms, children count: ${E.children.length}`),I}},[Ie.textEscaped]:{_qualify:["\\"],_match:to(kie),_order:tt.HIGH,_parse(E){return{text:E[1],type:Ie.text}}},[Ie.textMarked]:{_qualify:["=="],_match:to(Tie),_order:tt.LOW,_parse:Ry,_render(E,w,R={}){return y.jsx("mark",{children:w(E.children,R)},R.key)}},[Ie.textStrikethroughed]:{_qualify:["~~"],_match:to(Cie),_order:tt.LOW,_parse:Ry,_render(E,w,R={}){return y.jsx("del",{children:w(E.children,R)},R.key)}}};t.disableParsingRawHTML===!0&&(delete x[Ie.htmlBlock],delete x[Ie.htmlSelfClosing]);const A=Xie(x),T=QL(toe(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,T(A(E.footnote,{inline:!0}))]},E.identifier))},"footer")]}):N},ioe=({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(roe(e,t),n)),ooe=e=>{const t=e.split(/\r?\n/),n=t.find(s=>s.trim()!=="");if(!n||n.trim()!=="---")return e;let r=!1,o=-1;for(let s=0;s<t.length;s++)if(t[s].trim()==="---")if(r){o=s;break}else{r=!0;continue}return o>-1?t.slice(o+1).join(`
337
+ `):e},aoe=({children:e,isDarkMode:t,locale:n,options:r})=>{const{overrides:o,...s}=r??{},l=ooe(e);return y.jsx(Tre,{children:y.jsx(Vre,{children:y.jsx(ioe,{options:{disableParsingRawHTML:!0,overrides:{h1:u=>y.jsx(d8,{isClickable:!0,...u}),h2:u=>y.jsx(f8,{isClickable:!0,...u}),h3:u=>y.jsx(v_,{isClickable:!0,...u}),h4:u=>y.jsx(h8,{isClickable:!0,...u}),h5:u=>y.jsx(p8,{isClickable:!0,...u}),h6:u=>y.jsx(m8,{isClickable:!0,...u}),code:u=>u.className?y.jsx(Lre,{...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:ye("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:ye("mt-5 flex flex-col gap-3 pl-5 list-disc",u),...d}),ol:({className:u,...d})=>y.jsx("ol",{className:ye("mt-5 flex flex-col gap-3 pl-5 list-decimal",u),...d}),img:({className:u,...d})=>y.jsx("img",{...d,loading:"lazy",className:ye("max-w-full max-h-[80vh] rounded-md",u),src:`${d.src}?raw=true`}),a:u=>y.jsx(Cb,{color:"neutral",isExternalLink:u.href?.startsWith("http"),underlined:!0,locale:n,...u}),pre:u=>u.children,table:u=>y.jsx($re,{...u}),th:({className:u,...d})=>y.jsx("th",{className:ye("border-neutral bg-neutral/10 border-b p-4",u),...d}),tr:({className:u,...d})=>y.jsx("tr",{className:ye("hover:bg-neutral/10 hover:/10",u),...d}),td:({className:u,...d})=>y.jsx("td",{className:ye("border-b border-neutral-500/50 p-4",u),...d}),hr:({className:u,...d})=>y.jsx("hr",{className:ye("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:ye("flex max-md:flex-col gap-4",u),...d}),Column:({className:u,...d})=>y.jsx("div",{className:ye("flex-1",u),...d}),...o},...s},children:l??""})})})},soe=e=>{let t,n;if(typeof e=="number"||!isNaN(Number(e)))t="=",n=e.toString();else if(typeof e=="string"){const o=["<=",">=","<",">","="].find(s=>e.startsWith(s));o&&(t=o,n=e.slice(o.length))}return{comparator:t,numberValue:n}},loe=({value:e,onChange:t})=>{const{comparator:n,numberValue:r}=S.useMemo(()=>soe(e),[e]),[o,s]=S.useState(n??null),[l,u]=S.useState(r??null);return S.useEffect(()=>{if(o&&l&&(o!==n||l!==r)){const d=`${o}${l}`;t(d)}},[o,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"})]})},coe=({keyPath:e,dictionary:t,...n})=>{const{editedContent:r,addEditedContent:o}=wn(),s=Zr(),{mutate:l,isPending:u}=xq();return y.jsx(VJ,{variant:fo.DEFAULT,onContentChange:d=>o(t.localId,d,e),additionalButtons:y.jsx(lt,{Icon:H1,label:"Audit",variant:st.HOVERABLE,size:Yn.ICON_SM,color:at.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;o(t.localId,f,e)}catch(f){console.error(f)}}})}}),...n})},uoe=({keyPath:e,dictionary:t,...n})=>{const{addEditedContent:r}=wn();return y.jsx(Kv,{variant:fo.DEFAULT,onContentChange:o=>r(t.localId,o,e),...n})},doe=[{content:"False",value:!1},{content:"True",value:!0}],foe=({dictionary:e,keyPath:t,...n})=>{const{addEditedContent:r}=wn();return y.jsx(_u,{choices:doe,value:!0,onChange:o=>r(e.localId,o,t),color:vu.TEXT,size:bu.SM,...n})},hoe=({section:e,keyPath:t,dictionary:n,renderSection:r})=>{const{locale:o,defaultLocale:s}=vb(),{selectedLocales:l,availableLocales:u}=YD(),d=e[$.Translation],f=Object.keys(d),m=u.length>l.length?l:[...new Set([...u,...f])],v=e[$.Translation];return y.jsx("table",{className:"w-full",children:y.jsx("tbody",{className:"flex w-full flex-col gap-2",children:m.map(b=>y.jsxs(S.Fragment,{children:[y.jsx("tr",{className:"mt-2 w-full p-2 text-xs",children:gf(b,o)}),y.jsx("tr",{children:y.jsx(wo,{section:v[b]??Zn(v[s]),keyPath:[...t,{type:$.Translation,key:b}],dictionary:n,renderSection:r})})]},b))})})},poe=({section:e,keyPath:t,dictionary:n,renderSection:r})=>{const{addEditedContent:o}=wn(),{addNewEnumeration:s,removeEnumeration:l}=dn("navigation-view"),u=e[$.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[$.Enumeration]).map(f=>{const p=[...t,{type:$.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:at.TEXT,Icon:Eh,className:"ml-auto",onClick:()=>o(n.localId,void 0,p),children:l.text})})}),y.jsx("tr",{className:"w-full p-2",children:y.jsx(loe,{value:f,onChange:m=>{const v=e[$.Enumeration],b=PJ(v,f,m),x={...e,[$.Enumeration]:b};o(n.localId,x,t)}})}),y.jsx("tr",{className:"block w-full",children:y.jsx(d0,{section:u[f]??Zn(u[d]),keyPath:p,dictionary:n,renderSection:r})})]},f)})})}),y.jsx(lt,{label:s.label.value,variant:st.HOVERABLE,color:at.NEUTRAL,textAlign:ks.LEFT,isFullWidth:!0,onClick:()=>o(n.localId,Zn(u[d])??"",[...t,{type:$.Enumeration,key:"unknown"}]),Icon:_h,className:"m-2",children:s.text})]})},moe=({section:e,keyPath:t,dictionary:n,renderSection:r})=>{const o=e[$.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(wo,{section:o[s]??Zn(o.true),keyPath:[...t,{type:$.Condition,key:s}],dictionary:n,renderSection:r})},s)]},s))})})},goe=({section:e,keyPath:t,dictionary:n,renderSection:r})=>{const o=e[$.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(wo,{section:o[s]??Zn(o.male),keyPath:[...t,{type:$.Gender,key:s}],dictionary:n,renderSection:r})},s)]},s))})})},yoe=({section:e,keyPath:t,dictionary:n,renderSection:r})=>{const{addEditedContent:o}=wn(),{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:at.NEUTRAL,className:"ml-auto",textAlign:ks.LEFT,onClick:()=>{const f=[...t,{type:$.Array,key:e.length}];o(n.localId,void 0,f)},Icon:Eh,children:l.text})]}),y.jsx("tr",{className:"block w-full",children:y.jsx(wo,{section:u??Zn(e[0]),keyPath:[...t,{type:$.Array,key:d}],dictionary:n,renderSection:r})})]},JSON.stringify(u)))})}),y.jsx(lt,{label:s.label.value,variant:st.HOVERABLE,color:at.NEUTRAL,textAlign:ks.LEFT,isFullWidth:!0,onClick:()=>{const u=[...t,{type:$.Array,key:e.length}];o(n.localId,Zn(e[0])??"",u,!1)},Icon:_h,children:s.text})]})},voe=({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(o=>{const s=[...t,{type:$.Object,key:o}],l=e,u=Object.keys(l)[0],d=l[o]??Zn(l[u]);return y.jsxs(S.Fragment,{children:[y.jsx("tr",{className:"mt-2 p-2 text-xs",children:String(o)},JSON.stringify(d)),y.jsx("tr",{className:"block w-full",children:y.jsx(d0,{section:d,keyPath:s,dictionary:n,renderSection:r})},JSON.stringify(d))]},o)})})})}),boe=({section:e,keyPath:t,dictionary:n,isDarkMode:r,onContentChange:o})=>{const[s,l]=S.useState(0),u=[{content:"Edit",value:0},{content:"Preview",value:1}],d=[...t,{type:$.Markdown}],f=e[$.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(wo,{section:f,keyPath:d,dictionary:n,renderSection:s===1?p=>y.jsx(aoe,{isDarkMode:r,children:p}):void 0,onContentChange:o})]})},_oe=({section:e,keyPath:t,...n})=>{const r=[...t,{type:$.Insertion}],o=e[$.Insertion];return y.jsx("div",{className:"flex w-full flex-col justify-center gap-6 p-2",children:y.jsx(wo,{section:o,keyPath:r,...n})})},Eoe=({section:e,keyPath:t,...n})=>{const r=[...t,{type:$.File}],o=e[$.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:[o," "]}),y.jsx(wo,{section:s,keyPath:r,...n})]})},Soe=({keyPath:e,dictionary:t,renderSection:n,section:r,...o})=>{const{addEditedContent:s}=wn(),l=r[$.Nested],u=[...e,{type:$.Nested}];return y.jsxs("div",{className:"w-full p-2",children:[y.jsx(Tv,{children:"Dictionary key"}),y.jsx(Kv,{"aria-label":"Edit field",type:"text",variant:fo.DEFAULT,...o,onContentChange:d=>{s(t.localId,{...l,dictionaryKey:String(d)},u)},children:l.dictionaryKey??""}),y.jsx(Tv,{children:"Path (optional)"}),y.jsx(Kv,{"aria-label":"Edit field",type:"text",variant:fo.DEFAULT,...o,onContentChange:d=>{s(t.localId,{...l,path:d!==""?d:void 0},u)},children:l.path??""})]})},d0=({section:e,keyPath:t,dictionary:n,renderSection:r,isDarkMode:o})=>{const{tsxNotEditable:s}=dn("navigation-view"),l=Ms(e);return l===$.ReactNode?y.jsxs(y.Fragment,{children:[y.jsx("span",{children:"[React Node]"}),y.jsx("span",{className:"text-neutral text-xs",children:s})]}):l===$.Nested?y.jsx(Soe,{dictionary:n,renderSection:r,keyPath:t,section:e}):l===$.Translation?y.jsx(hoe,{dictionary:n,renderSection:r,keyPath:t,section:e}):l===$.Enumeration?y.jsx(poe,{dictionary:n,renderSection:r,keyPath:t,section:e}):l===$.Condition?y.jsx(moe,{dictionary:n,renderSection:r,keyPath:t,section:e}):l===$.Gender?y.jsx(goe,{dictionary:n,renderSection:r,keyPath:t,section:e}):l===$.Insertion?y.jsx(_oe,{dictionary:n,renderSection:r,keyPath:t,section:e}):l===$.Markdown?y.jsx(boe,{dictionary:n,keyPath:t,section:e,isDarkMode:o}):l===$.File?y.jsx(Eoe,{dictionary:n,renderSection:r,keyPath:t,section:e}):l===$.Array?y.jsx(yoe,{dictionary:n,renderSection:r,keyPath:t,section:e}):l===$.Object?y.jsx(voe,{dictionary:n,renderSection:r,keyPath:t,section:e}):l===$.Number?y.jsx("div",{className:"w-full p-2",children:y.jsx(uoe,{dictionary:n,keyPath:t,type:"number","aria-label":"Edit field",children:e})}):l===$.Text?y.jsx("div",{className:"w-full p-2",children:typeof r=="function"?r(e):y.jsx(coe,{variant:fo.DEFAULT,"aria-label":"Edit field",keyPath:t,dictionary:n,children:e})}):l===$.Boolean?y.jsx("div",{className:"w-full p-2",children:y.jsx(foe,{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]})},wo=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(d0,{...e})}),Yc=e=>{const t=e1(e),n=Ms(e);return t&&(n===$.ReactNode||n===$.File)?!0:t&&typeof t.nodeType=="string"?Yc(t[t.nodeType]):typeof t=="string"||typeof t=="number"||typeof t=="boolean"||typeof t>"u"},xoe=({keyPath:e,dictionaryKey:t,onClickKeyPath:n,locale:r})=>{const o=[{text:t,onClick:()=>n([])},...e.map((s,l)=>({onClick:()=>n(e.slice(0,l+1)),text:s.key?.toString()??""}))];return y.jsx(y$,{links:o,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}=ot?.internationalization,o=dr(e,t),{addEditedContent:s}=zs(),{setFocusedContentKeyPath:l,focusedContent:u}=mo(),{addNewElement:d,goToField:f}=dn("navigation-view"),p=Ms(o),m=b=>(u?.keyPath?.length??0)>0&&Jc(b,u?.keyPath??[]),v=Yc(o);if(!o)return y.jsx(y.Fragment,{});if(v)return y.jsx(lt,{label:f.label.value,variant:st.HOVERABLE,color:at.TEXT,className:"w-full",onClick:()=>l(t),IconRight:Mf,children:If(t[t.length-1].key)});if(typeof o=="object"){if(p===$.ReactNode)return y.jsx(y.Fragment,{children:"React Node"});if(p===$.Translation)return y.jsx("div",{className:"flex flex-col justify-between gap-2",children:r.map(x=>{const A=[...t,{type:$.Translation,key:x}];return y.jsx(ps,{keyPath:A,section:e,dictionaryKey:n},x)})});if(p===$.Enumeration||p===$.Condition)return y.jsx("div",{className:"flex flex-col justify-between gap-2",children:Object.keys(o[p]).map(x=>{const A=[...t,{type:p,key:x}];return y.jsx(ps,{keyPath:A,section:e,dictionaryKey:n},x)})});if(p===$.Array)return y.jsxs("div",{className:"flex flex-col justify-between gap-2",children:[o.map((x,A)=>{const T=[...t,{type:$.Array,key:A}];return y.jsx(ps,{keyPath:T,section:e,dictionaryKey:n},JSON.stringify(T))}),y.jsx(lt,{label:d.label.value,variant:st.HOVERABLE,color:at.NEUTRAL,textAlign:ks.LEFT,onClick:()=>{const x=[...t,{type:$.Array,key:o.length}],A=o,T=Zn(A[A.length-1])??"";s(n,T,x,!1),l(x)},Icon:_h,children:d.text})]});if(typeof o.nodeType=="string"){const x=[...t,{type:o.nodeType}];return y.jsx(ps,{keyPath:x,section:e,dictionaryKey:n})}const b=Object.keys(o);return y.jsx("div",{className:"flex w-full max-w-full flex-col justify-between gap-2",children:b.map(x=>{const A=[...t,{type:$.Object,key:x}],T=dr(e,A);return Yc(T)?y.jsx(lt,{label:`${f.label.value} ${x}`,isActive:m(A),variant:st.HOVERABLE,color:at.TEXT,className:"w-full",onClick:()=>l(A),IconRight:Mf,children:If(x)},x):y.jsx(nk,{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(o),"--",JSON.stringify(t)]})},Aoe=({dictionary:e,isDarkMode:t})=>{const{content:n,key:r}=e,{editedContent:o}=wn(),{focusedContent:s,setFocusedContentKeyPath:l}=mo(),u=s?.keyPath,d=typeof o?.[r]?.content>"u"?n:o?.[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(xoe,{dictionaryKey:r,keyPath:u??[],onClickKeyPath:l}),y.jsx("div",{className:"flex items-center gap-2",children:y.jsx(jJ,{})})]}),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(wo,{keyPath:u??[],section:f,dictionary:e,isDarkMode:t})]})]})},woe=e=>{const{titleRequiredError:t,titleInvalidTypeError:n,titleMinLengthError:r,keyRequiredError:o,keyInvalidTypeError:s,keySpaceError:l,keyMinLengthError:u,descriptionRequiredError:d,descriptionInvalidTypeError:f,requiredErrorProjectId:p,invalidTypeErrorProjectId:m,invalidTypeErrorTags:v}=dn("dictionary-detail-schema");return AQ({title:fc({error:b=>b.input===void 0?t.value:n.value}).refine(b=>b.length===0||b.length>=4,{error:r.value}).optional(),key:fc({error:b=>b.input===void 0?o.value:s.value}).min(4,{error:u.value}).regex(/^[a-zA-Z0-9-_]+$/,{error:l.value}).default(""),description:fc({error:b=>b.input===void 0?d.value:f.value}).optional(),projectIds:zv(fc({error:b=>b.input===void 0?p.value:m.value})).default([e]),tags:zv(fc({error:()=>v.value})).default([])})},Toe=({dictionary:e})=>{const{session:t}=mu(),{project:n}=t??{},{data:r,isLoading:o}=vq(),{data:s}=Eq(),l=woe(String(n?.id)),{form:u,isSubmitting:d}=FZ(l,{defaultValues:e}),{editedContent:f,setEditedDictionary:p}=wn(),{titleInput:m,keyInput:v,descriptionInput:b,projectInput:x,tagsSelect:A,auditButton:T}=dn("dictionary-details"),{mutate:N,isPending:E}=Sq(),w=f?.[e.key];S.useEffect(()=>{u.reset(e)},[e,u?.reset]),S.useEffect(()=>{typeof w>"u"&&u.reset(e)},[w]);const R=()=>{const C={...e,...w};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($e,{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($e.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($e.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($e.EditableFieldTextArea,{name:"description",label:b.label,placeholder:b.placeholder.value,description:b.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($e.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:o,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($e.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:o,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($e.Button,{type:"button",label:T.label.value,Icon:H1,variant:st.OUTLINE,color:at.TEXT,className:"max-md:w-full",onClick:R,disabled:d||E,isLoading:E,children:T.text})})]})})};function Coe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function PR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function MR(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?PR(Object(n),!0).forEach(function(r){Coe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):PR(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Roe(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,s;for(s=0;s<r.length;s++)o=r[s],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function koe(e,t){if(e==null)return{};var n=Roe(e,t),r,o;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(o=0;o<s.length;o++)r=s[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Noe(e,t){return Ioe(e)||Ooe(e,t)||Doe(e,t)||Loe()}function Ioe(e){if(Array.isArray(e))return e}function Ooe(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var n=[],r=!0,o=!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){o=!0,s=d}finally{try{!r&&l.return!=null&&l.return()}finally{if(o)throw s}}return n}}function Doe(e,t){if(e){if(typeof e=="string")return zR(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 zR(e,t)}}function zR(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 Loe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
338
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function joe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function BR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function VR(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?BR(Object(n),!0).forEach(function(r){joe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):BR(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Poe(){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(o,s){return s(o)},r)}}function bc(e){return function t(){for(var n=this,r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];return o.length>=e.length?e.apply(this,o):function(){for(var l=arguments.length,u=new Array(l),d=0;d<l;d++)u[d]=arguments[d];return t.apply(n,[].concat(o,u))}}}function gh(e){return{}.toString.call(e).includes("Object")}function Moe(e){return!Object.keys(e).length}function Xc(e){return typeof e=="function"}function zoe(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Boe(e,t){return gh(t)||ao("changeType"),Object.keys(t).some(function(n){return!zoe(e,n)})&&ao("changeField"),t}function Voe(e){Xc(e)||ao("selectorType")}function Uoe(e){Xc(e)||gh(e)||ao("handlerType"),gh(e)&&Object.values(e).some(function(t){return!Xc(t)})&&ao("handlersType")}function Foe(e){e||ao("initialIsRequired"),gh(e)||ao("initialType"),Moe(e)&&ao("initialContent")}function Hoe(e,t){throw new Error(e[t]||e.default)}var $oe={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"},ao=bc(Hoe)($oe),df={changes:Boe,selector:Voe,handler:Uoe,initial:Foe};function Goe(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};df.initial(e),df.handler(t);var n={current:e},r=bc(Woe)(n,t),o=bc(qoe)(n),s=bc(df.changes)(e),l=bc(Koe)(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){Poe(r,o,s,l)(f)}return[u,d]}function Koe(e,t){return Xc(t)?t(e.current):t}function qoe(e,t){return e.current=VR(VR({},e.current),t),t}function Woe(e,t,n){return Xc(t)?t(e.current):Object.keys(n).forEach(function(r){var o;return(o=t[r])===null||o===void 0?void 0:o.call(t,e.current[r])}),n}var Zoe={create:Goe},Yoe={paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.52.2/min/vs"}};function Xoe(e){return function t(){for(var n=this,r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];return o.length>=e.length?e.apply(this,o):function(){for(var l=arguments.length,u=new Array(l),d=0;d<l;d++)u[d]=arguments[d];return t.apply(n,[].concat(o,u))}}}function Qoe(e){return{}.toString.call(e).includes("Object")}function Joe(e){return e||UR("configIsRequired"),Qoe(e)||UR("configType"),e.urls?(eae(),{paths:{vs:e.urls.monacoBase}}):e}function eae(){console.warn(JL.deprecation)}function tae(e,t){throw new Error(e[t]||e.default)}var JL={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!
339
+ You are using deprecated way of configuration.
340
+
341
+ Instead of using
342
+ monaco.config({ urls: { monacoBase: '...' } })
343
+ use
344
+ monaco.config({ paths: { vs: '...' } })
345
+
346
+ For more please check the link https://github.com/suren-atoyan/monaco-loader#config
347
+ `},UR=Xoe(tae)(JL),nae={config:Joe},rae=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return function(o){return n.reduceRight(function(s,l){return l(s)},o)}};function ej(e,t){return Object.keys(t).forEach(function(n){t[n]instanceof Object&&e[n]&&Object.assign(t[n],ej(e[n],t[n]))}),MR(MR({},e),t)}var iae={type:"cancelation",msg:"operation is manually canceled"};function Iy(e){var t=!1,n=new Promise(function(r,o){e.then(function(s){return t?o(iae):r(s)}),e.catch(o)});return n.cancel=function(){return t=!0},n}var oae=Zoe.create({config:Yoe,isInitialized:!1,resolve:null,reject:null,monaco:null}),tj=Noe(oae,2),wu=tj[0],Jh=tj[1];function aae(e){var t=nae.config(e),n=t.monaco,r=koe(t,["monaco"]);Jh(function(o){return{config:ej(o.config,r),monaco:n}})}function sae(){var e=wu(function(t){var n=t.monaco,r=t.isInitialized,o=t.resolve;return{monaco:n,isInitialized:r,resolve:o}});if(!e.isInitialized){if(Jh({isInitialized:!0}),e.monaco)return e.resolve(e.monaco),Iy(Oy);if(window.monaco&&window.monaco.editor)return nj(window.monaco),e.resolve(window.monaco),Iy(Oy);rae(lae,uae)(dae)}return Iy(Oy)}function lae(e){return document.body.appendChild(e)}function cae(e){var t=document.createElement("script");return e&&(t.src=e),t}function uae(e){var t=wu(function(r){var o=r.config,s=r.reject;return{config:o,reject:s}}),n=cae("".concat(t.config.paths.vs,"/loader.js"));return n.onload=function(){return e()},n.onerror=t.reject,n}function dae(){var e=wu(function(n){var r=n.config,o=n.resolve,s=n.reject;return{config:r,resolve:o,reject:s}}),t=window.require;t.config(e.config),t(["vs/editor/editor.main"],function(n){nj(n),e.resolve(n)},function(n){e.reject(n)})}function nj(e){wu().monaco||Jh({monaco:e})}function fae(){return wu(function(e){var t=e.monaco;return t})}var Oy=new Promise(function(e,t){return Jh({resolve:e,reject:t})}),rj={config:aae,init:sae,__getMonacoInstance:fae},hae={wrapper:{display:"flex",position:"relative",textAlign:"initial"},fullWidth:{width:"100%"},hide:{display:"none"}},Dy=hae,pae={container:{display:"flex",height:"100%",width:"100%",justifyContent:"center",alignItems:"center"}},mae=pae;function gae({children:e}){return Oe.createElement("div",{style:mae.container},e)}var yae=gae,vae=yae;function bae({width:e,height:t,isEditorReady:n,loading:r,_ref:o,className:s,wrapperProps:l}){return Oe.createElement("section",{style:{...Dy.wrapper,width:e,height:t},...l},!n&&Oe.createElement(vae,null,r),Oe.createElement("div",{ref:o,style:{...Dy.fullWidth,...!n&&Dy.hide},className:s}))}var _ae=bae,ij=S.memo(_ae);function Eae(e){S.useEffect(e,[])}var oj=Eae;function Sae(e,t,n=!0){let r=S.useRef(!0);S.useEffect(r.current||!n?()=>{r.current=!1}:e,t)}var Gn=Sae;function Oc(){}function Es(e,t,n,r){return xae(e,r)||Aae(e,t,n,r)}function xae(e,t){return e.editor.getModel(aj(e,t))}function Aae(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 wae({original:e,modified:t,language:n,originalLanguage:r,modifiedLanguage:o,originalModelPath:s,modifiedModelPath:l,keepCurrentOriginalModel:u=!1,keepCurrentModifiedModel:d=!1,theme:f="light",loading:p="Loading...",options:m={},height:v="100%",width:b="100%",className:x,wrapperProps:A={},beforeMount:T=Oc,onMount:N=Oc}){let[E,w]=S.useState(!1),[R,C]=S.useState(!0),I=S.useRef(null),D=S.useRef(null),L=S.useRef(null),V=S.useRef(N),H=S.useRef(T),Z=S.useRef(!1);oj(()=>{let oe=rj.init();return oe.then(z=>(D.current=z)&&C(!1)).catch(z=>z?.type!=="cancelation"&&console.error("Monaco initialization: error:",z)),()=>I.current?q():oe.cancel()}),Gn(()=>{if(I.current&&D.current){let oe=I.current.getOriginalEditor(),z=Es(D.current,e||"",r||n||"text",s||"");z!==oe.getModel()&&oe.setModel(z)}},[s],E),Gn(()=>{if(I.current&&D.current){let oe=I.current.getModifiedEditor(),z=Es(D.current,t||"",o||n||"text",l||"");z!==oe.getModel()&&oe.setModel(z)}},[l],E),Gn(()=>{let oe=I.current.getModifiedEditor();oe.getOption(D.current.editor.EditorOption.readOnly)?oe.setValue(t||""):t!==oe.getValue()&&(oe.executeEdits("",[{range:oe.getModel().getFullModelRange(),text:t||"",forceMoveMarkers:!0}]),oe.pushUndoStop())},[t],E),Gn(()=>{I.current?.getModel()?.original.setValue(e||"")},[e],E),Gn(()=>{let{original:oe,modified:z}=I.current.getModel();D.current.editor.setModelLanguage(oe,r||n||"text"),D.current.editor.setModelLanguage(z,o||n||"text")},[n,r,o],E),Gn(()=>{D.current?.editor.setTheme(f)},[f],E),Gn(()=>{I.current?.updateOptions(m)},[m],E);let Q=S.useCallback(()=>{if(!D.current)return;H.current(D.current);let oe=Es(D.current,e||"",r||n||"text",s||""),z=Es(D.current,t||"",o||n||"text",l||"");I.current?.setModel({original:oe,modified:z})},[n,t,o,e,r,s,l]),le=S.useCallback(()=>{!Z.current&&L.current&&(I.current=D.current.editor.createDiffEditor(L.current,{automaticLayout:!0,...m}),Q(),D.current?.editor.setTheme(f),w(!0),Z.current=!0)},[m,f,Q]);S.useEffect(()=>{E&&V.current(I.current,D.current)},[E]),S.useEffect(()=>{!R&&!E&&le()},[R,E,le]);function q(){let oe=I.current?.getModel();u||oe?.original?.dispose(),d||oe?.modified?.dispose(),I.current?.dispose()}return Oe.createElement(ij,{width:b,height:v,isEditorReady:E,loading:p,_ref:L,className:x,wrapperProps:A})}var Tae=wae;S.memo(Tae);function Cae(e){let t=S.useRef();return S.useEffect(()=>{t.current=e},[e]),t.current}var Rae=Cae,ff=new Map;function kae({defaultValue:e,defaultLanguage:t,defaultPath:n,value:r,language:o,path:s,theme:l="light",line:u,loading:d="Loading...",options:f={},overrideServices:p={},saveViewState:m=!0,keepCurrentModel:v=!1,width:b="100%",height:x="100%",className:A,wrapperProps:T={},beforeMount:N=Oc,onMount:E=Oc,onChange:w,onValidate:R=Oc}){let[C,I]=S.useState(!1),[D,L]=S.useState(!0),V=S.useRef(null),H=S.useRef(null),Z=S.useRef(null),Q=S.useRef(E),le=S.useRef(N),q=S.useRef(),oe=S.useRef(r),z=Rae(s),ee=S.useRef(!1),W=S.useRef(!1);oj(()=>{let ie=rj.init();return ie.then(G=>(V.current=G)&&L(!1)).catch(G=>G?.type!=="cancelation"&&console.error("Monaco initialization: error:",G)),()=>H.current?P():ie.cancel()}),Gn(()=>{let ie=Es(V.current,e||r||"",t||o||"",s||n||"");ie!==H.current?.getModel()&&(m&&ff.set(z,H.current?.saveViewState()),H.current?.setModel(ie),m&&H.current?.restoreViewState(ff.get(s)))},[s],C),Gn(()=>{H.current?.updateOptions(f)},[f],C),Gn(()=>{!H.current||r===void 0||(H.current.getOption(V.current.editor.EditorOption.readOnly)?H.current.setValue(r):r!==H.current.getValue()&&(W.current=!0,H.current.executeEdits("",[{range:H.current.getModel().getFullModelRange(),text:r,forceMoveMarkers:!0}]),H.current.pushUndoStop(),W.current=!1))},[r],C),Gn(()=>{let ie=H.current?.getModel();ie&&o&&V.current?.editor.setModelLanguage(ie,o)},[o],C),Gn(()=>{u!==void 0&&H.current?.revealLine(u)},[u],C),Gn(()=>{V.current?.editor.setTheme(l)},[l],C);let be=S.useCallback(()=>{if(!(!Z.current||!V.current)&&!ee.current){le.current(V.current);let ie=s||n,G=Es(V.current,r||e||"",t||o||"",ie||"");H.current=V.current?.editor.create(Z.current,{model:G,automaticLayout:!0,...f},p),m&&H.current.restoreViewState(ff.get(ie)),V.current.editor.setTheme(l),u!==void 0&&H.current.revealLine(u),I(!0),ee.current=!0}},[e,t,n,r,o,s,f,p,m,l,u]);S.useEffect(()=>{C&&Q.current(H.current,V.current)},[C]),S.useEffect(()=>{!D&&!C&&be()},[D,C,be]),oe.current=r,S.useEffect(()=>{C&&w&&(q.current?.dispose(),q.current=H.current?.onDidChangeModelContent(ie=>{W.current||w(H.current.getValue(),ie)}))},[C,w]),S.useEffect(()=>{if(C){let ie=V.current.editor.onDidChangeMarkers(G=>{let ne=H.current.getModel()?.uri;if(ne&&G.find(ue=>ue.path===ne.path)){let ue=V.current.editor.getModelMarkers({resource:ne});R?.(ue)}});return()=>{ie?.dispose()}}return()=>{}},[C,R]);function P(){q.current?.dispose(),v?m&&ff.set(s,H.current.saveViewState()):H.current.getModel()?.dispose(),H.current.dispose()}return Oe.createElement(ij,{width:b,height:x,isEditorReady:C,loading:d,_ref:Z,className:A,wrapperProps:T})}var Nae=kae,Iae=S.memo(Nae);const Oae=({children:e,language:t,isDarkMode:n,showLineNumbers:r,showCopyButton:o=!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 T=(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:T,width:u.current?.clientWidth??0})},b=r??e.split(`
348
+ `).length>1;return y.jsxs("div",{className:ye("relative h-full w-full text-sm",r&&"ml-0"),children:[o&&y.jsx("div",{className:"sticky top-5 z-10",children:y.jsx("div",{className:ye("absolute bottom-0 right-2 flex h-7 items-center"),children:y.jsx(Uk,{content:e})})}),y.jsx("div",{className:"z-0 grid size-full grid-cols-[0px] overflow-auto",ref:u,children:y.jsx(Iae,{...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:b?"on":"off"},theme:m,className:"my-2 rounded-md"})})]})},Dae=({dictionary:e,isDarkMode:t})=>{const{setEditedContent:n,editedContent:r}=wn(),o=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(Oae,{language:"json",onChange:l=>{o(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:o,boolean:s,node:l,array:u,enumeration:d,triggerPlaceHolder:f,nest:p,condition:m,markdown:v,insertion:b,reactNode:x,file:A}=dn("node-type-selector"),T=Ms(e),[N,E]=S.useState(T),w=R=>{E(R),t(R)};return y.jsxs(Re,{value:N,onValueChange:w,children:[y.jsx(Re.Trigger,{children:y.jsx(Re.Value,{placeholder:f})}),y.jsxs(Re.Content,{children:[y.jsx(Re.Item,{value:$.Translation,children:n}),y.jsx(Re.Item,{value:$.Text,children:r}),y.jsx(Re.Item,{value:$.Number,children:o}),y.jsx(Re.Item,{value:$.Boolean,children:s}),y.jsx(Re.Item,{value:$.Object,children:l}),y.jsx(Re.Item,{value:$.Array,children:u}),y.jsx(Re.Item,{value:$.Enumeration,children:d}),y.jsx(Re.Item,{value:$.Insertion,children:b}),y.jsx(Re.Item,{value:$.Markdown,children:v}),y.jsx(Re.Item,{value:$.Nested,children:p}),y.jsx(Re.Item,{value:$.Condition,children:m}),y.jsx(Re.Item,{value:$.ReactNode,disabled:!0,children:x}),y.jsx(Re.Item,{value:$.File,children:A})]})]})},sb=({section:e,dictionaryKey:t,keyPath:n,onNodeTypeChange:r})=>{const o=Zr()?.internationalization.locales??[],s=Ms(e),l=e1(e),u=d=>{const f=Jl(s,o,d);r(f)};if(s===$.Translation||s===$.Condition||s===$.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,o))}),y.jsx(sb,{section:l,keyPath:f,dictionaryKey:t,onNodeTypeChange:u})]})}if(s===$.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,o))}),y.jsx(sb,{section:l,keyPath:d,dictionaryKey:t,onNodeTypeChange:u})]})}return s===$.Object?y.jsxs(y.Fragment,{children:[y.jsx(hf,{section:e,onValueChange:d=>r(Jl(d,o))}),y.jsx("div",{className:"ml-10 mt-6",children:y.jsx(jae,{keyPath:n,section:e,dictionaryKey:t})})]}):y.jsx(hf,{section:e,onValueChange:d=>r(Jl(d,o))})},f0=({sectionKey:e,section:t,keyPath:n,dictionaryKey:r})=>{const{focusedContent:o,setFocusedContentKeyPath:s}=mo(),{renameEditedContent:l,addEditedContent:u}=zs(),{titleInput:d,deleteButton:f}=dn("structure-view"),p=m=>{l(r,m,n);const v=n.slice(0,-1),b=n[n.length-1],x=[...v,{...b,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,o?.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(lO,{name:"key","aria-label":"Key",placeholder:d.placeholder.value,defaultValue:e,onSave:m=>p(m),variant:fo.INVISIBLE}),y.jsx(lt,{label:f.label.value,variant:st.HOVERABLE,size:Yn.ICON_SM,color:at.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(sb,{keyPath:n,dictionaryKey:r,section:t,onNodeTypeChange:m=>{u(r,m,n)}})]})})},Lae=({section:e,keyPath:t,dictionaryKey:n})=>{const{addNodeButton:r}=dn("structure-view"),{setFocusedContentKeyPath:o}=gb(),{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(f0,{sectionKey:l,section:e?.[l],keyPath:[...t,{type:$.Object,key:l}],dictionaryKey:n})},l))}),y.jsx(lt,{label:r.label.value,variant:st.HOVERABLE,size:Yn.MD,color:at.TEXT,Icon:_h,className:"flex-1",onClick:()=>{const u=[...t,{type:$.Object,key:"newKey"}];s(n,"",u),o(u)},children:r.text})]})},jae=({section:e,keyPath:t,dictionaryKey:n})=>!e||typeof e!="object"||typeof e.nodeType=="string"?y.jsx(f0,{sectionKey:"content",section:e,keyPath:t,dictionaryKey:n}):y.jsx(Lae,{section:e,keyPath:t,dictionaryKey:n}),Pae=({dictionary:e})=>{const{content:t,key:n,localId:r}=e,{editedContent:o}=wn(),s=typeof o?.[r]?.content>"u"?t:o?.[r]?.content;return y.jsx(f0,{section:s,keyPath:[],dictionaryKey:n})},Mae=({dictionary:e,onClickDictionaryList:t,isDarkMode:n,mode:r,onDelete:o})=>{const s=Zr(),[l,u]=S.useState(1),{returnToDictionaryList:d}=dn("dictionary-field-editor"),{setFocusedContent:f}=gb(),{setLocaleDictionaries:p}=yh();return S.useEffect(()=>{f(m=>({...m??{},dictionaryKey:e.key,dictionaryLocalId:e.localId})),p(m=>({...m,[e.localId]:e}))},[]),y.jsx(LJ,{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:at.TEXT,Icon:HF,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(Toe,{dictionary:e}),l===2&&y.jsx(Pae,{dictionary:e}),l===1&&y.jsx(Aoe,{dictionary:e,isDarkMode:n}),l===3&&y.jsx(Dae,{dictionary:e,isDarkMode:n}),y.jsx(_D,{dictionary:e,mode:r,onDelete:()=>{f(null),o?.()}})]})})},zae=({children:e,isHidden:t,minWidth:n=0,align:r="left",className:o,...s})=>y.jsx("div",{className:ye("relative grid h-full grid-cols-[0fr] overflow-x-hidden overflow-y-hidden transition-all duration-500 ease-in-out",t?"":"grid-cols-[1fr]",o),"aria-hidden":t,...s,children:y.jsx("div",{style:{minWidth:`${n}px`},tabIndex:t!==!1?void 0:-1,className:ye(r==="right"&&"ml-auto"),children:e})}),Bae=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}},Vae=()=>{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)},Uae=e=>{if(!(typeof window>"u"))return(window?.innerWidth??0)<=e},FR=(e="md")=>{const t=Bae(e),n=Vae(),r=Uae(t);return{isMobileScreen:r,isMobileUserAgent:n,isMobile:r??n}},Fae=(e="md")=>{const[t,n]=S.useState(FR(e));return S.useEffect(()=>{const r=()=>{n(FR(e))};return window.addEventListener("resize",r,{passive:!0}),()=>window.removeEventListener("resize",r)},[e]),t},Hae=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=PI((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})),sj=({title:e,identifier:t,children:n,header:r,closeOnOutsideClick:o=!0,backButton:s,isOpen:l,onClose:u})=>{const{isMobile:d}=Fae("md"),f=S.useRef(null),p=S.useRef(null),{close:m,open:v,isOpen:b}=ep(MI(A=>({close:()=>A.close(t),open:()=>A.open(t),isOpen:A.isOpen(t)})));zI({disableScroll:b,key:t?`right_drawer_${t}`:"right_drawer"}),S.useEffect(()=>{const A=T=>{try{if(!f.current)return;const N=b&&o,E=T.target&&!f.current.contains(T.target),w=Hae(f.current);(N&&E&&w||!T.target)&&(m(),u?.())}catch{m(),u?.()}};return window.addEventListener("mousedown",A),()=>window.removeEventListener("mousedown",A)},[b,m,u,o,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(zae,{isHidden:!b,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:at.TEXT,label:s.text??"Go back",onClick:s.onBack,Icon:ZF,children:s?.text})}),y.jsx("div",{children:y.jsx(lt,{variant:st.HOVERABLE,color:at.TEXT,label:"Close",className:"ml-auto",onClick:m,Icon:ga,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 h0="ToastProvider",[p0,$ae,Gae]=fO("Toast"),[lj,Kae]=ou("Toast",[Gae]),[qae,tp]=lj(h0),m0=e=>{const{__scopeToast:t,label:n="Notification",duration:r=5e3,swipeDirection:o="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 \`${h0}\`. Expected non-empty \`string\`.`),y.jsx(p0.Provider,{scope:t,children:y.jsx(qae,{scope:t,label:n,duration:r,swipeDirection:o,swipeThreshold:s,toastCount:f,viewport:u,onViewportChange:d,onToastAdd:S.useCallback(()=>p(b=>b+1),[]),onToastRemove:S.useCallback(()=>p(b=>b-1),[]),isFocusedToastEscapeKeyDownRef:m,isClosePausedRef:v,children:l})})};m0.displayName=h0;var cj="ToastViewport",Wae=["F8"],lb="toast.viewportPause",cb="toast.viewportResume",g0=S.forwardRef((e,t)=>{const{__scopeToast:n,hotkey:r=Wae,label:o="Notifications ({hotkey})",...s}=e,l=tp(cj,n),u=$ae(n),d=S.useRef(null),f=S.useRef(null),p=S.useRef(null),m=S.useRef(null),v=Ct(t,m,l.onViewportChange),b=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),x=l.toastCount>0;S.useEffect(()=>{const T=N=>{r.length!==0&&r.every(w=>N[w]||N.code===w)&&m.current?.focus()};return document.addEventListener("keydown",T),()=>document.removeEventListener("keydown",T)},[r]),S.useEffect(()=>{const T=d.current,N=m.current;if(x&&T&&N){const E=()=>{if(!l.isClosePausedRef.current){const I=new CustomEvent(lb);N.dispatchEvent(I),l.isClosePausedRef.current=!0}},w=()=>{if(l.isClosePausedRef.current){const I=new CustomEvent(cb);N.dispatchEvent(I),l.isClosePausedRef.current=!1}},R=I=>{!T.contains(I.relatedTarget)&&w()},C=()=>{T.contains(document.activeElement)||w()};return T.addEventListener("focusin",E),T.addEventListener("focusout",R),T.addEventListener("pointermove",E),T.addEventListener("pointerleave",C),window.addEventListener("blur",E),window.addEventListener("focus",w),()=>{T.removeEventListener("focusin",E),T.removeEventListener("focusout",R),T.removeEventListener("pointermove",E),T.removeEventListener("pointerleave",C),window.removeEventListener("blur",E),window.removeEventListener("focus",w)}}},[x,l.isClosePausedRef]);const A=S.useCallback(({tabbingDirection:T})=>{const E=u().map(w=>{const R=w.ref.current,C=[R,...sse(R)];return T==="forwards"?C:C.reverse()});return(T==="forwards"?E.reverse():E).flat()},[u]);return S.useEffect(()=>{const T=m.current;if(T){const N=E=>{const w=E.altKey||E.ctrlKey||E.metaKey;if(E.key==="Tab"&&!w){const C=document.activeElement,I=E.shiftKey;if(E.target===T&&I){f.current?.focus();return}const V=A({tabbingDirection:I?"backwards":"forwards"}),H=V.findIndex(Z=>Z===C);Ly(V.slice(H+1))?E.preventDefault():I?f.current?.focus():p.current?.focus()}};return T.addEventListener("keydown",N),()=>T.removeEventListener("keydown",N)}},[u,A]),y.jsxs(V$,{ref:d,role:"region","aria-label":o.replace("{hotkey}",b),tabIndex:-1,style:{pointerEvents:x?void 0:"none"},children:[x&&y.jsx(ub,{ref:f,onFocusFromOutsideViewport:()=>{const T=A({tabbingDirection:"forwards"});Ly(T)}}),y.jsx(p0.Slot,{scope:n,children:y.jsx(Ge.ol,{tabIndex:-1,...s,ref:v})}),x&&y.jsx(ub,{ref:p,onFocusFromOutsideViewport:()=>{const T=A({tabbingDirection:"backwards"});Ly(T)}})]})});g0.displayName=cj;var uj="ToastFocusProxy",ub=S.forwardRef((e,t)=>{const{__scopeToast:n,onFocusFromOutsideViewport:r,...o}=e,s=tp(uj,n);return y.jsx(U_,{tabIndex:0,...o,ref:t,style:{position:"fixed"},onFocus:l=>{const u=l.relatedTarget;!s.viewport?.contains(u)&&r()}})});ub.displayName=uj;var Tu="Toast",Zae="toast.swipeStart",Yae="toast.swipeMove",Xae="toast.swipeCancel",Qae="toast.swipeEnd",y0=S.forwardRef((e,t)=>{const{forceMount:n,open:r,defaultOpen:o,onOpenChange:s,...l}=e,[u,d]=zf({prop:r,defaultProp:o??!0,onChange:s,caller:Tu});return y.jsx(au,{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)})})})});y0.displayName=Tu;var[Jae,ese]=lj(Tu,{onClose(){}}),tse=S.forwardRef((e,t)=>{const{__scopeToast:n,type:r="foreground",duration:o,open:s,onClose:l,onEscapeKeyDown:u,onPause:d,onResume:f,onSwipeStart:p,onSwipeMove:m,onSwipeCancel:v,onSwipeEnd:b,...x}=e,A=tp(Tu,n),[T,N]=S.useState(null),E=Ct(t,q=>N(q)),w=S.useRef(null),R=S.useRef(null),C=o||A.duration,I=S.useRef(0),D=S.useRef(C),L=S.useRef(0),{onToastAdd:V,onToastRemove:H}=A,Z=Ar(()=>{T?.contains(document.activeElement)&&A.viewport?.focus(),l()}),Q=S.useCallback(q=>{!q||q===1/0||(window.clearTimeout(L.current),I.current=new Date().getTime(),L.current=window.setTimeout(Z,q))},[Z]);S.useEffect(()=>{const q=A.viewport;if(q){const oe=()=>{Q(D.current),f?.()},z=()=>{const ee=new Date().getTime()-I.current;D.current=D.current-ee,window.clearTimeout(L.current),d?.()};return q.addEventListener(lb,z),q.addEventListener(cb,oe),()=>{q.removeEventListener(lb,z),q.removeEventListener(cb,oe)}}},[A.viewport,C,d,f,Q]),S.useEffect(()=>{s&&!A.isClosePausedRef.current&&Q(C)},[s,C,A.isClosePausedRef,Q]),S.useEffect(()=>(V(),()=>H()),[V,H]);const le=S.useMemo(()=>T?pj(T):null,[T]);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(Jae,{scope:n,onClose:Z,children:ma.createPortal(y.jsx(p0.ItemSlot,{scope:n,children:y.jsx(B$,{asChild:!0,onEscapeKeyDown:Je(u,()=>{A.isFocusedToastEscapeKeyDownRef.current||Z(),A.isFocusedToastEscapeKeyDownRef.current=!1}),children:y.jsx(Ge.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,q=>{q.key==="Escape"&&(u?.(q.nativeEvent),q.nativeEvent.defaultPrevented||(A.isFocusedToastEscapeKeyDownRef.current=!0,Z()))}),onPointerDown:Je(e.onPointerDown,q=>{q.button===0&&(w.current={x:q.clientX,y:q.clientY})}),onPointerMove:Je(e.onPointerMove,q=>{if(!w.current)return;const oe=q.clientX-w.current.x,z=q.clientY-w.current.y,ee=!!R.current,W=["left","right"].includes(A.swipeDirection),be=["left","up"].includes(A.swipeDirection)?Math.min:Math.max,P=W?be(0,oe):0,ie=W?0:be(0,z),G=q.pointerType==="touch"?10:2,ne={x:P,y:ie},ue={originalEvent:q,delta:ne};ee?(R.current=ne,pf(Yae,m,ue,{discrete:!1})):HR(ne,A.swipeDirection,G)?(R.current=ne,pf(Zae,p,ue,{discrete:!1}),q.target.setPointerCapture(q.pointerId)):(Math.abs(oe)>G||Math.abs(z)>G)&&(w.current=null)}),onPointerUp:Je(e.onPointerUp,q=>{const oe=R.current,z=q.target;if(z.hasPointerCapture(q.pointerId)&&z.releasePointerCapture(q.pointerId),R.current=null,w.current=null,oe){const ee=q.currentTarget,W={originalEvent:q,delta:oe};HR(oe,A.swipeDirection,A.swipeThreshold)?pf(Qae,b,W,{discrete:!0}):pf(Xae,v,W,{discrete:!0}),ee.addEventListener("click",be=>be.preventDefault(),{once:!0})}})})})}),A.viewport)})]}):null}),nse=e=>{const{__scopeToast:t,children:n,...r}=e,o=tp(Tu,t),[s,l]=S.useState(!1),[u,d]=S.useState(!1);return ose(()=>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(U_,{...r,children:s&&y.jsxs(y.Fragment,{children:[o.label," ",n]})})})},rse="ToastTitle",v0=S.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return y.jsx(Ge.div,{...r,ref:t})});v0.displayName=rse;var ise="ToastDescription",b0=S.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return y.jsx(Ge.div,{...r,ref:t})});b0.displayName=ise;var dj="ToastAction",_0=S.forwardRef((e,t)=>{const{altText:n,...r}=e;return n.trim()?y.jsx(hj,{altText:n,asChild:!0,children:y.jsx(np,{...r,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${dj}\`. Expected non-empty \`string\`.`),null)});_0.displayName=dj;var fj="ToastClose",np=S.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e,o=ese(fj,n);return y.jsx(hj,{asChild:!0,children:y.jsx(Ge.button,{type:"button",...r,ref:t,onClick:Je(e.onClick,o.onClose)})})});np.displayName=fj;var hj=S.forwardRef((e,t)=>{const{__scopeToast:n,altText:r,...o}=e;return y.jsx(Ge.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0,...o,ref:t})});function pj(e){const t=[];return Array.from(e.childNodes).forEach(r=>{if(r.nodeType===r.TEXT_NODE&&r.textContent&&t.push(r.textContent),ase(r)){const o=r.ariaHidden||r.hidden||r.style.display==="none",s=r.dataset.radixToastAnnounceExclude==="";if(!o)if(s){const l=r.dataset.radixToastAnnounceAlt;l&&t.push(l)}else t.push(...pj(r))}}),t}function pf(e,t,n,{discrete:r}){const o=n.originalEvent.currentTarget,s=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?ok(o,s):o.dispatchEvent(s)}var HR=(e,t,n=0)=>{const r=Math.abs(e.x),o=Math.abs(e.y),s=r>o;return t==="left"||t==="right"?s&&r>n:!s&&o>n};function ose(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 ase(e){return e.nodeType===e.ELEMENT_NODE}function sse(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Ly(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}var lse=m0,mj=g0,gj=y0,yj=v0,vj=b0,cse=_0,bj=np;const use=Object.freeze(Object.defineProperty({__proto__:null,Action:cse,Close:bj,Description:vj,Provider:lse,Root:gj,Title:yj,Toast:y0,ToastAction:_0,ToastClose:np,ToastDescription:b0,ToastProvider:m0,ToastTitle:v0,ToastViewport:g0,Viewport:mj,createToastScope:Kae},Symbol.toStringTag,{value:"Module"})),dse=use,fse=({className:e,...t})=>y.jsx(mj,{className:ye("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=Tn("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(gj,{className:ye(hse({variant:t}),e),...n}),mse=({className:e,...t})=>y.jsx(bj,{className:ye("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(ga,{className:"size-5"})}),gse=({className:e,...t})=>y.jsx(yj,{className:ye("text-sm font-semibold [&+div]:text-xs",e),...t}),yse=({className:e,...t})=>y.jsx(vj,{className:ye("text-sm opacity-90",e),...t}),vse=1,bse=900*1e3;let jy=0;const _se=()=>(jy=(jy+1)%Number.MAX_SAFE_INTEGER,jy.toString()),Py=new Map,$R=e=>{if(Py.has(e))return;const t=setTimeout(()=>{Py.delete(e),Dc({type:"REMOVE_TOAST",toastId:e})},bse);Py.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?$R(n):e.toasts.forEach(r=>{$R(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=o=>Dc({type:"UPDATE_TOAST",toast:{...o,id:t}}),r=()=>Dc({type:"DISMISS_TOAST",toastId:t});return Dc({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:o=>{o||r()}}}),{id:t,dismiss:r,update:n}},_j=()=>{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}=_j();return y.jsxs(dse.Provider,{children:[e.map(({id:t,title:n,description:r,action:o,...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})]}),o,y.jsx(mse,{})]},t)),y.jsx(fse,{})]})};var Ase={};const wse={queries:{retry:1,refetchOnWindowFocus:!1,staleTime:0,gcTime:1e3*60*10},mutations:{retry:0}},GR=e=>e.split("_").join(" "),Tse=()=>{const{toast:e}=_j();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}=Tse(),r=new II({onSuccess:n,onError:t,onSettled:(s,l,u,d,f)=>{f.meta?.invalidateQueries&&f.meta.invalidateQueries.forEach(p=>{o.invalidateQueries({queryKey:p})})}}),o=new CK({defaultOptions:wse,mutationCache:r});return y.jsx(RK,{client:o,children:e})},Rse=({children:e})=>y.jsx(k4,{features:iK,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(rF,{children:y.jsx(D1,{path:"*",element:e})})}),db="dictionaryList",E0=e=>`dictionary_edition_${e}`,Ej=e=>{const t=E0(e),{isOpen:n,open:r,close:o}=ep(),{getEditedContentValue:s}=zs(),{focusedContent:l,setFocusedContent:u}=mo();return S.useEffect(()=>{l&&(l.keyPath?.length??0)>0&&r(t)},[l,r,t]),{isOpen:n(t),focusedContent:l,getEditedContentValue:s,close:()=>{o(t),u(d=>d?.dictionaryKey?{...d,keyPath:[]}:d)}}},Ise=({locale:e,identifier:t,handleOnBack:n,isDarkMode:r})=>{const{modalTitle:o,openDictionaryEditor:s,noDictionaryFocused:l,focusedDictionaryNotFound:u}=tu(hb),[d,f]=S.useState(!1),{focusedContent:p}=Ej(t),{data:m}=GI(),v=S.useCallback(()=>{f(!1),n()},[n]),b=p?.dictionaryKey;if(!b)return y.jsx("span",{className:"mx-auto my-10 text-sm text-neutral",children:l});const x=vV(b,p.keyPath??[],m);return x?y.jsxs(y.Fragment,{children:[y.jsx(__,{isOpen:d,onClose:()=>f(!1),hasCloseButton:!0,title:o.value,size:"xl",transparency:"lg",children:y.jsx("div",{className:"size-full px-3 pt-5",children:y.jsx(Mae,{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:F1,label:s.label.value,onClick:()=>f(!0)})]}),y.jsx(f7,{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(hb),o=E0(t),{focusedContent:s,close:l}=Ej(t),{openDictionaryListDrawer:u}=ep(f=>({openDictionaryListDrawer:()=>f.open(db)})),d=()=>{l(),u()};return y.jsx(sj,{identifier:o,backButton:{onBack:d,text:r.value},onClose:l,children:s&&y.jsx(Ise,{focusedContent:s,locale:e,identifier:o,handleOnBack:d,isDarkMode:n})})},Dse=({locale:e,isDarkMode:t})=>{const{focusedContent:n}=mo(),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(WR),{close:n,open:r}=ep(),{localeDictionaries:o}=s1(),{editedContent:s}=wn(),{setFocusedContent:l}=mo(),u=f=>{n(db),l({dictionaryKey:f.key,dictionaryLocalId:f.localId}),r(E0(f.key))},d=f=>Object.keys(s??{}).includes(f);return y.jsx(sj,{title:e.label.value,identifier:db,children:Object.values(o).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))})},Sj=(...e)=>tk(Sh(e)),jse=e=>{const{message:t}=tu(ZR);return y.jsx("div",{className:Sj("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]=so(An.INTLAYER_CURRENT_LOCALE,void 0,{receive:!0,emit:!1}),[n]=so(An.INTLAYER_HOVERED_CONTENT_CHANGED,null),{data:r}=GI(),{setLocaleDictionaries:o}=yh();return S.useEffect(()=>{if(!r)return;const s=Object.fromEntries(Object.values(r).flat().map(l=>[l.localId,l]));o(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:"*",o=n?.editor.editorURL??"*";return n?y.jsx(WV,{postMessage:s=>{window?.postMessage(s,o),t.current?.contentWindow?.postMessage(s,r)},allowedOrigins:[r,o],mode:"editor",configuration:n,children:e}):y.jsx(Rs,{})},Bse=()=>{const{editedContent:e,setEditedContentState:t}=wn(),n=()=>{const r=localStorage?.getItem("INTLAYER_EDITED_CONTENT_CHANGED");if(r)try{const o=JSON.parse(r);t(o)}catch(o){console.error(o)}};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(YR);return y.jsxs("div",{className:"flex flex-col gap-6",children:[y.jsx(v_,{className:"mb-8",children:e}),y.jsx("strong",{className:"text-neutral block",children:t}),y.jsx(Cb,{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=()=>o(n.enabled),o=HV();d1(r),Bse(),YV();const[s,l]=S.useState(!0),[u]=ZV(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:Sj("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=go();return y.jsx(zse,{iframeRef:e,children:y.jsx(tU,{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,{})})});$M.createRoot(document.getElementById("root")).render(y.jsx(S.StrictMode,{children:y.jsx(Hse,{})}));